a99e0fa2d21917cbcefd8b7a9a2128ae0399d88f |
|
03-Nov-2016 |
Jason Evans <jasone@canonware.com> |
Fix/refactor zone allocator integration code. Fix zone_force_unlock() to reinitialize, rather than unlocking mutexes, since OS X 10.12 cannot tolerate a child unlocking mutexes that were locked by its parent. Refactor; this was a side effect of experimenting with zone {de,re}registration during fork(2).
/external/jemalloc/src/zone.c
|
57cddffca6a9481973fad4e09577f8c64b7950d6 |
|
26-Sep-2016 |
Jason Evans <jasone@canonware.com> |
Formatting fixes.
/external/jemalloc/src/zone.c
|
11b5da7533f703f6274eae98d767dd1381fced15 |
|
08-Jul-2016 |
Mike Hommey <mh@glandium.org> |
Change how the default zone is found On OSX 10.12, malloc_default_zone returns a special zone that is not present in the list of registered zones. That zone uses a "lite zone" if one is present (apparently enabled when malloc stack logging is enabled), or the first registered zone otherwise. In practice this means unless malloc stack logging is enabled, the first registered zone is the default. So get the list of zones to get the first one, instead of relying on malloc_default_zone.
/external/jemalloc/src/zone.c
|
c1e00ef2a6442d1d047950247c757821560db329 |
|
11-May-2016 |
Jason Evans <jasone@canonware.com> |
Resolve bootstrapping issues when embedded in FreeBSD libc. b2c0d6322d2307458ae2b28545f8a5c9903d7ef5 (Add witness, a simple online locking validator.) caused a broad propagation of tsd throughout the internal API, but tsd_fetch() was designed to fail prior to tsd bootstrapping. Fix this by splitting tsd_t into non-nullable tsd_t and nullable tsdn_t, and modifying all internal APIs that do not critically rely on tsd to take nullable pointers. Furthermore, add the tsd_booted_get() function so that tsdn_fetch() can probe whether tsd bootstrapping is complete and return NULL if not. All dangerous conversions of nullable pointers are tsdn_tsd() calls that assert-fail on invalid conversion.
/external/jemalloc/src/zone.c
|
b2c0d6322d2307458ae2b28545f8a5c9903d7ef5 |
|
14-Apr-2016 |
Jason Evans <jasone@canonware.com> |
Add witness, a simple online locking validator. This resolves #358.
/external/jemalloc/src/zone.c
|
ea59ebf4d3c2a5749e170cc45c294e04129e5b49 |
|
12-Nov-2015 |
Dmitry-Me <wipedout@yandex.ru> |
Reuse previously computed value
/external/jemalloc/src/zone.c
|
e12eaf93dca308a426c182956197b0eeb5f2cff3 |
|
08-Dec-2014 |
Jason Evans <je@fb.com> |
Style and spelling fixes.
/external/jemalloc/src/zone.c
|
c21b05ea09874222266b3e36ceb18765fcb4a00b |
|
05-Sep-2014 |
Jason Evans <je@fb.com> |
Whitespace cleanups.
/external/jemalloc/src/zone.c
|
6f533c1903a1d067dacfca2f06c6cc9754fdf67e |
|
10-Jun-2014 |
Mike Hommey <mh@glandium.org> |
Ensure the default purgeable zone is after the default zone on OS X
/external/jemalloc/src/zone.c
|
6556e28be15d9acd8f3835fb9fad90145e1edbff |
|
21-Oct-2013 |
Jason Evans <je@fb.com> |
Prefer not_reached() over assert(false) where appropriate.
/external/jemalloc/src/zone.c
|
847ff223dedad6b0f5186f904c817c0306ce599f |
|
23-Oct-2012 |
Mike Hommey <mh@glandium.org> |
Don't register jemalloc's zone allocator if something else already replaced the system default zone
/external/jemalloc/src/zone.c
|
122449b073bcbaa504c4f592ea2d733503c272d2 |
|
06-Apr-2012 |
Jason Evans <je@fb.com> |
Implement Valgrind support, redzones, and quarantine. 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.
/external/jemalloc/src/zone.c
|
ae4c7b4b4092906c641d69b4bf9fcb4a7d50790d |
|
02-Apr-2012 |
Jason Evans <jasone@canonware.com> |
Clean up *PAGE* macros. s/PAGE_SHIFT/LG_PAGE/g and s/PAGE_SIZE/PAGE/g. Remove remnants of the dynamic-page-shift code. Rename the "arenas.pagesize" mallctl to "arenas.page". Remove the "arenas.chunksize" mallctl, which is redundant with "opt.lg_chunk".
/external/jemalloc/src/zone.c
|
80b25932ca52e9506d4e2b8ee0fa58aa5ae3306d |
|
02-Apr-2012 |
Mike Hommey <mh@glandium.org> |
Move last bit of zone initialization in zone.c, and lazy-initialize
/external/jemalloc/src/zone.c
|
3c2ba0dcbc2f4896a892fad84d5dcf5bd4c30a81 |
|
27-Mar-2012 |
Mike Hommey <mh@glandium.org> |
Avoid crashes when system libraries use the purgeable zone allocator
/external/jemalloc/src/zone.c
|
71a93b8725fb52ae393ab88e2fccd5afa84c66a0 |
|
27-Mar-2012 |
Mike Hommey <mh@glandium.org> |
Move zone registration to zone.c
/external/jemalloc/src/zone.c
|
5b3db098f73f467a03f87a2242c692268f796a56 |
|
26-Mar-2012 |
Mike Hommey <mh@glandium.org> |
Make zone_{free, realloc, free_definite_size} fallback to the system allocator if they are called with a pointer that jemalloc didn't allocate It turns out some OSX system libraries (like CoreGraphics on 10.6) like to call malloc_zone_* functions, but giving them pointers that weren't allocated with the zone they are using. Possibly, they do malloc_zone_malloc(malloc_default_zone()) before we register the jemalloc zone, and malloc_zone_realloc(malloc_default_zone()) after. malloc_default_zone() returning a different value in both cases.
/external/jemalloc/src/zone.c
|
154829d2560a202ef6378b089655747585e44fb5 |
|
20-Mar-2012 |
Mike Hommey <mh@glandium.org> |
Improve zone support for OSX I tested a build from 10.7 run on 10.7 and 10.6, and a build from 10.6 run on 10.6. The AC_COMPILE_IFELSE limbo is to avoid running a program during configure, which presumably makes it work when cross compiling for iOS.
/external/jemalloc/src/zone.c
|
f4d0fc310effc6d1200223851897a8036123738c |
|
20-Mar-2012 |
Mike Hommey <mh@glandium.org> |
Unbreak mac after commit 4e2e3dd
/external/jemalloc/src/zone.c
|
0a5489e37da88a1a50fbf8552e0d3a7f8fd93ffc |
|
02-Mar-2012 |
Jason Evans <je@fb.com> |
Add --with-mangling. Add the --with-mangling configure option, which can be used to specify name mangling on a per public symbol basis that takes precedence over --with-jemalloc-prefix. Expose the memalign() and valloc() overrides even if --with-jemalloc-prefix is specified. This change does no real harm, and simplifies the code.
/external/jemalloc/src/zone.c
|
166a745b395198c2b0d661caa717e6a9400291c6 |
|
29-Feb-2012 |
Jason Evans <je@fb.com> |
Simplify zone_good_size(). Simplify zone_good_size() to avoid memory allocation. Submitted by Mike Hommey.
/external/jemalloc/src/zone.c
|
7427525c28d58c423a68930160e3b0fe577fe953 |
|
01-Apr-2011 |
Jason Evans <jasone@canonware.com> |
Move repo contents in jemalloc/ to top level.
/external/jemalloc/src/zone.c
|