- Apr 21, 2012
-
-
Jason Evans authored
Put CONF_HANDLE_*() keys in quotes, so that they aren't mangled when --with-private-namespace is used.
-
- Apr 20, 2012
-
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
Don't mangle pthread_create(); it's an exported symbol when defined.
-
Jason Evans authored
-
- Apr 19, 2012
-
-
Mike Hommey authored
Bookkeeping an extra argument that actually only stores a function pointer for a function we already have is not very useful.
-
Mike Hommey authored
Using static memory when malloc_tsd_malloc fails means all threads share the same wrapper and thus the same wrapped value. This defeats the purpose of TSD.
-
Mike Hommey authored
Not setting the initialized member leads to randomly calling the cleanup function in cases it shouldn't be called (and isn't called in other implementations).
-
Jason Evans authored
Make special FreeBSD libc/libthr function overrides for _malloc_prefork(), _malloc_postfork(), and _malloc_thread_cleanup() visible.
-
Mike Hommey authored
These flags take unsigned values, but they were fed with signed values taken with va_arg, and that led to sign extension in cases where the corresponding value has the most significant bit set.
-
Mike Hommey authored
This will be used to implement the feature on mingw, which doesn't have madvise.
-
- Apr 18, 2012
-
-
Mike Hommey authored
-
Mike Hommey authored
-
Mike Hommey authored
This allows for different patterns for file names: - lib.so.version for e.g. Linux - lib.version.dylib for OSX (which is much more common than lib.dylib.version) - lib.dll for Windows (no version at all).
-
Jason Evans authored
Clean up a few config-related conditionals to avoid unnecessary dependencies on prof symbols. Use cassert() rather than assert() everywhere that it's appropriate.
-
Jason Evans authored
Change the "opt.lg_prof_sample" default from 0 to 19 (1 B to 512 KiB). Change the "opt.prof_accum" default from true to false. Add the "opt.prof_final" mallctl, so that "opt.prof_prefix" need not be abused to disable final profile dumping.
-
Jason Evans authored
-
- Apr 17, 2012
-
-
Jason Evans authored
Add atomic(9) implementations of atomic operations. These are used on FreeBSD for non-x86 architectures.
-
Mike Hommey authored
-
Mike Hommey authored
This will make things easier for MSVC support.
-
Mike Hommey authored
This makes hacking on Makefile easier.
-
Mike Hommey authored
This avoids fork/exec()ing in loops, as echo is a builtin, and makes size_classes.sh much faster (from > 10s to < 0.2s on mingw on my machine).
-
Mike Hommey authored
-
Mike Hommey authored
This will allow linking for win32 without pthreads more easily
-
Mike Hommey authored
It is a linker flag, so it doesn't make sense in CFLAGS, and it's the default when invoking the linker for shared libraries.
-
Jason Evans authored
Start preparing ChangeLog for 3.0.0 release. Additional fixes and changes are yet to come, so this is not a complete ChangeLog.
-
Jason Evans authored
Add the --disable-munmap option, remove the configure test that attempted to detect the VM allocation quirk known to exist on Linux x86[_64], and make --disable-munmap implicit on Linux.
-
- Apr 16, 2012
-
-
Jason Evans authored
-
- Apr 14, 2012
-
-
Jason Evans authored
-
- Apr 13, 2012
-
-
Jason Evans authored
Add a configure test to determine whether common mmap()/munmap() patterns cause VM map holes, and only use munmap() to discard unused chunks if the problem does not exist. Unify the chunk caching for mmap and dss. Fix options processing to limit lg_chunk to be large enough that redzones will always fit.
-
Jason Evans authored
Always disable redzone by default, even when --enable-debug is specified. The memory overhead for redzones can be substantial, which makes this feature something that should only be opted into.
-
Jason Evans authored
-
- Apr 12, 2012
-
-
Mike Hommey authored
-
Mike Hommey authored
test/bitmap.c #includes src/bitmap.c, which is correctly detected by gcc -MM, but building test/bitmap.o doesn't require src/bitmap.o.
-
Mike Hommey authored
Chunk_boot0 calls rtree_new, which calls base_alloc, which locks the base_mtx mutex. That mutex is initialized in base_boot.
-
Mike Hommey authored
-
Jason Evans authored
Normalize arena_palloc(), chunk_alloc_mmap_slow(), and chunk_recycle_dss() to use the same algorithm for trimming over-allocation. Add the ALIGNMENT_ADDR2BASE(), ALIGNMENT_ADDR2OFFSET(), and ALIGNMENT_CEILING() macros, and use them where appropriate. Remove the run_size_p parameter from sa2u(). Fix a potential deadlock in chunk_recycle_dss() that was introduced by eae26903 (Add alignment support to chunk_alloc()).
-
- Apr 11, 2012
-
-
Jason Evans authored
Implement Valgrind support, as well as the redzone and quarantine features, which help Valgrind detect memory errors. Redzones are only implemented for small objects because the changes necessary to support redzones around large and huge objects are complicated by in-place reallocation, to the point that it isn't clear that the maintenance burden is worth the incremental improvement to Valgrind support. Merge arena_salloc() and arena_salloc_demote(). Refactor i[v]salloc() to expose the 'demote' option.
-
Jason Evans authored
Rename labels from FOO to label_foo in order to avoid system macro definitions, in particular OUT and ERROR on mingw. Reported by Mike Hommey.
-
- Apr 10, 2012
-
-
Mike Hommey authored
-