Commit Graph

24 Commits

Author SHA1 Message Date
gnzlbg 559d949860 Update links 2019-04-25 10:03:12 +02:00
gnzlbg 1abc6d7ef8 separate safe/unsafe ctl apis, test everything 2019-02-27 09:39:39 +01:00
gnzlbg 7fb8e425e5 rename IntoName -> AsName 2019-02-27 09:39:39 +01:00
gnzlbg 1c5d871828 fix jemallocator tests 2019-02-27 09:39:39 +01:00
gnzlbg 034067f951 mallctl panics on empty or non-null terminated input strings 2019-02-27 09:39:39 +01:00
gnzlbg 0a711d8fc1 add jemalloc-ctl 2019-02-27 09:39:39 +01:00
gnzlbg 7d5b0ebafd Fix shrink_in_place implementation 2018-11-09 20:05:36 +01:00
gnzlbg d32993869a add a test for shrink_in_place 2018-11-09 20:05:36 +01:00
gnzlbg bc8e071516 fix grow_in_place 2018-11-06 16:26:42 +01:00
gnzlbg f2f17b9557 disable background threads in musl targets 2018-11-03 09:39:37 +01:00
gnzlbg 07764999bd Refactor background threads options
* rename bg_thread feature to background_threads_runtime_support
* add background_threads option to enable background threads at run-time
2018-11-03 09:39:37 +01:00
gnzlbg d342b97a58 Make malloc_stats_print argument nullable 2018-10-31 13:16:57 +01:00
gnzlbg d9463c3f72 reformat 2018-10-30 22:41:07 +01:00
Simon Sapin 42231d7495 Upgrade to rustc 1.28.0-nightly (b68432d56 2018-06-12) 2018-06-13 19:46:20 +02:00
gnzlbg 8d1adbfd19 oom is no longer part of GlobalAlloc 2018-05-02 10:08:22 +02:00
Alex Crichton 1d463baa04 Fix invokation of `oom` in tests 2018-04-27 08:54:20 -07:00
Simon Sapin c66f9d4d51 Implement the GlobalAlloc trait, upgrade to nightly-2018-04-15
CC https://github.com/rust-lang/rust/pull/49669
2018-04-15 08:15:10 +02:00
Simon Sapin fd99aeeb2d Don’t assume MIN_ALIGN for small sizes
Same as https://github.com/rust-lang/rust/pull/46117

See also discussion of jemalloc’s behavior at
https://github.com/jemalloc/jemalloc/issues/1072
2017-11-22 16:45:11 +01:00
Simon Sapin e6ea8a94b4 Add bindings to all jemalloc public functions
That is, those documented in http://jemalloc.net/jemalloc.3.html

For example `malloc` and `free` can be useful when implementing
callbacks for a C library that doesn’t provide a size when deallocating:
https://www.freetype.org/freetype2/docs/reference/ft2-system_interface.html
2017-10-30 16:13:25 +01:00
Simon Sapin d24b998401 Expose `malloc_usable_size` in the high-level crate. 2017-10-13 21:37:45 +02:00
Alex Crichton 41abc44d9d Fix tests on OSX 2017-07-07 11:07:16 -07:00
Alex Crichton 834f517f31 Fix malloctl tests 2017-07-07 08:23:27 -07:00
Alex Crichton ddd38e9ba9 Fix CI and 32-bit builds
Also expand CI slightly and more targeted versions across Rust channels. Finally
also run `systest` on CI.
2017-05-30 07:32:16 -07:00
Alex Crichton 523f5996f9 Add some simple tests here and there 2016-01-20 17:14:01 -08:00