- Mar 31, 2014
-
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
Remove autoconf code that explicitly disabled libgcc-based backtracing on i[3456]86. There is no mention of which platforms/compilers exhibited problems when this code was added, and chances are good that any gcc toolchain issues have long since been fixed.
-
Jason Evans authored
Specify -fno-omit-frame-pointer when using __builtin_frame_address() and __builtin_return_address() for backtracing. This fixes backtracing failures on e.g. i686 for optimized builds.
-
Jason Evans authored
Add cpp logic to enable big-endian mode in SFMT. This should fix SFMT tests on e.g. MIPS and SPARC.
-
Jason Evans authored
The hash code, which has MurmurHash3 at its core, generates different output depending on system endianness, so adapt the expected output on big-endian systems. MurmurHash3 code also makes the assumption that unaligned access is okay (not true on all systems), but jemalloc only hashes data structures that have sufficient alignment to dodge this limitation.
-
- Mar 30, 2014
-
-
Jason Evans authored
Reduce maximum tested alignment from 2^29 to 2^25. Some systems may not have enough contiguous virtual memory to satisfy the larger alignment, but the smaller alignment is still adequate to test multi-chunk alignment.
-
Jason Evans authored
-
Jason Evans authored
p_test_fail() was passing a va_list to two separate functions with the expectation that no reset would occur. Refactor p_test_fail()'s callers to instead format two strings and pass them to p_test_fail(). Add a missing parameter to an assert_u64_eq() call, which the compiler warned about after the assertion macro refactoring.
-
Jason Evans authored
FreeBSD memory (leak) profiling support
-
- Mar 28, 2014
-
-
Jason Evans authored
Use arena dss prec instead of default for huge allocs.
-
Harald Weppner authored
Fixes a situation where nm uses the debug lib but addr2line does not, which completely messes up the symbol lookup.
-
Max Wang authored
Pass a dss_prec_t parameter to huge_{m,p,r}alloc instead of defaulting to the chunk dss prec.
-
Jason Evans authored
-
Jason Evans authored
Fix a crashing case where arena_chunk_init_hard returns NULL.
-
- Mar 26, 2014
-
-
Chris Pride authored
This happens when it fails to allocate a new chunk. Which arena_chunk_alloc then passes into arena_avail_insert without any checks. This then causes a crash when arena_avail_insert tries to check chunk->ndirty. This was introduced by the refactoring of arena_chunk_alloc which previously would have returned NULL immediately after calling chunk_alloc. This is now the return from arena_chunk_init_hard so we need to check that return, and not continue if it was NULL.
-
- Mar 18, 2014
-
-
Harald Weppner authored
Fixes a situation where nm uses the debug lib but addr2line does not, which completely messes up the symbol lookup.
-
Harald Weppner authored
* Assumes procfs is mounted at /proc, cf. <http://www.freebsd.org/doc/en/articles/linux-users/procfs.html>
-
- Feb 26, 2014
-
-
Jason Evans authored
Reported by İsmail Dönmez.
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
Restore the essence of 89896024, which sabotages tail call optimization. This is necessary even when the mutually recursive functions are in separate compilation units.
-
- Feb 25, 2014
-
-
Jason Evans authored
If mremap(2) is used for huge reallocation, physical pages are mapped to new virtual addresses rather than data being copied to new pages. This bypasses the normal junk filling that would happen during allocation, so add junk filling that is specific to this case.
-
Jason Evans authored
Make sure that emmintrin.h can be #include'd without causing a compilation error, rather than blindly defining HAVE_SSE2 based on architecture. Attempts to force SSE2 compilation on a 32-bit Ubuntu 13.10 system running as a VMware guest resulted in a no-win choice without any obvious explanation besides toolchain misconfiguration/bug: - Suffer compilation failure due to __MMX__, __SSE__, and __SSE2__ not being defined, even if -mmmx, -msse, and -msse2 are manually specified (note that they appear to be enabled by default). - Manually define __MMX__, __SSE__, and __SSE2__, and suffer compiler warnings that they are already automatically defined. This results in successful compilation and execution, but the noise is intolerable.
-
Jason Evans authored
Break prof_accum into multiple compilation units, in order to thwart compiler optimizations such as inlining and tail call optimization that would alter backtraces.
-
Jason Evans authored
Add a cpp #define that removes 'restrict' keyword usage unless the compiler definitely supports C99. As written, 'restrict' is only enabled if the compiler supports the -std=gnu99 option (e.g. gcc and llvm). Reported by Tobias Hieta.
-
- Feb 14, 2014
-
-
Jason Evans authored
Fix typo
-
Erwan Legrand authored
-
- Feb 13, 2014
-
-
Jason Evans authored
Using MADV_FREE on Solaris/Illumos
-
George Kola authored
-
- Jan 29, 2014
-
-
Jason Evans authored
Inlining of alloc_0() and alloc_1() would prevent generation of unique backtraces, upon which the test code relies.
-
Jason Evans authored
Remove the allocm() test equivalent to the mallocx() test removed in the previous commit. The flawed test attempted to cause OOM due to large request size and alignment constraint. Although this test "passed" on 64-bit systems due to the virtual memory hole, it could pass on some 32-bit systems.
-
Jason Evans authored
Avoid copying "jeprof" to a 1-byte buffer within prof_boot0() when heap profiling is disabled. Although this is dead code under such conditions, the compiler doesn't figure that part out. Reported by Eduardo Silva.
-
Jason Evans authored
Fix/remove three related flawed tests that attempted to cause OOM due to large request size and alignment constraint. Although these tests "passed" on 64-bit systems due to the virtual memory hole, they could pass on some 32-bit systems.
-
Jason Evans authored
Reported by İsmail Dönmez.
-
- Jan 22, 2014
-
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
-