summaryrefslogtreecommitdiffstats
path: root/jemalloc/src/huge.c
Commit message (Collapse)AuthorAgeFilesLines
* Add the "stats.cactive" mallctl.Jason Evans2011-03-191-0/+3
| | | | | | Add the "stats.cactive" mallctl, which can be used to efficiently and repeatedly query approximately how much active memory the application is utilizing.
* Fix an alignment-related bug in huge_ralloc().Jason Evans2011-02-011-3/+3
| | | | | | | Fix huge_ralloc() to call huge_palloc() only if alignment requires it. This bug caused under-sized allocation for aligned huge reallocation (via rallocm()) if the requested alignment was less than the chunk size (4 MiB by default).
* Use mremap(2) for huge realloc().Jason Evans2010-12-011-6/+51
| | | | | | | | | | If mremap(2) is available and supports MREMAP_FIXED, use it for huge realloc(). Initialize rtree later during bootstrapping, so that --enable-debug --enable-dss works. Fix a minor swap_avail stats bug.
* Add {,r,s,d}allocm().Jason Evans2010-09-171-24/+57
| | | | | | Add allocm(), rallocm(), sallocm(), and dallocm(), which are a functional superset of malloc(), calloc(), posix_memalign(), malloc_usable_size(), and free().
* Port to Mac OS X.Jason Evans2010-09-121-2/+2
| | | | | Add Mac OS X support, based in large part on the OS X support in Mozilla's version of jemalloc.
* Fix threads-related profiling bugs.Jason Evans2010-04-141-6/+6
| | | | | | | | Initialize bt2cnt_tsd so that cleanup at thread exit actually happens. Associate (prof_ctx_t *) with allocated objects, rather than (prof_thr_cnt_t *). Each thread must always operate on its own (prof_thr_cnt_t *), and an object may outlive the thread that allocated it.
* Restructure source tree.Jason Evans2010-02-111-0/+298