8 Commits

Author SHA1 Message Date
Chris Seymour 4edea8eb8e switch to https 2023-03-09 11:44:02 -08:00
Jason Evans c716c1e531 Update project URL. 2016-09-12 11:56:24 -07:00
Jason Evans 9a8add1510 Remove Valgrind support. 2016-05-13 09:56:18 -07:00
Jason Evans 7a9c8d10b6 Update README. 2013-10-20 19:38:19 -07:00
Jason Evans 079687bb87 Clean up documentation and formatting. 2012-04-23 12:49:23 -07:00
Jason Evans 40f514fd92 Document MinGW support. 2012-04-22 16:21:06 -07:00
Jason Evans 41b6afb834 Port to FreeBSD.
Use FreeBSD-specific functions (_pthread_mutex_init_calloc_cb(),
_malloc_{pre,post}fork()) to avoid bootstrapping issues due to
allocation in libc and libthr.

Add malloc_strtoumax() and use it instead of strtoul().  Disable
validation code in malloc_vsnprintf() and malloc_strtoumax() until
jemalloc is initialized.  This is necessary because locale
initialization causes allocation for both vsnprintf() and strtoumax().

Force the lazy-lock feature on in order to avoid pthread_self(),
because it causes allocation.

Use syscall(SYS_write, ...) rather than write(...), because libthr wraps
write() and causes allocation.  Without this workaround, it would not be
possible to print error messages in malloc_conf_init() without
substantially reworking bootstrapping.

Fix choose_arena_hard() to look at how many threads are assigned to the
candidate choice, rather than checking whether the arena is
uninitialized.  This bug potentially caused more arenas to be
initialized than necessary.
2012-02-02 23:09:53 -08:00
Jason Evans 7427525c28 Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00