William Esz
8603df7a5c
Derive Copy, Clone, Default, Debug
2019-01-28 15:39:42 +01:00
gnzlbg
08c2168b7d
Make shrink_in_place implementation accurate
2018-11-09 20:05:36 +01:00
gnzlbg
7d5b0ebafd
Fix shrink_in_place implementation
2018-11-09 20:05:36 +01:00
gnzlbg
bc8e071516
fix grow_in_place
2018-11-06 16:26:42 +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
d9463c3f72
reformat
2018-10-30 22:41:07 +01:00
gnzlbg
d5dcec6d7f
fix shrink_to_fit implementation
2018-07-11 19:46:26 +02:00
Simon Sapin
607de93c67
Support stable Rust, move impl Alloc
behind a feature flag
2018-06-13 19:46:20 +02:00
Simon Sapin
42231d7495
Upgrade to rustc 1.28.0-nightly (b68432d56 2018-06-12)
2018-06-13 19:46:20 +02:00
gnzlbg
d2c707da0c
Fix typo
2018-05-17 23:31:43 +02:00
gnzlbg
2f1755a875
use core instead of std
2018-05-02 11:26:15 +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
de7ab8adf3
Make jemallocator no_std
2018-04-27 13:06:13 +02:00
Simon Sapin
9a56412a58
Upgrade to rustc 1.27.0-nightly (7f3444e1b 2018-04-26)
2018-04-27 13:06:13 +02: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
gnzlbg
c652a34f4e
[jemalloc-sys] expose mallocx_align, equivalent to MALLOCX_ALIGN macro
2017-11-28 12:23:27 +01:00
gnzlbg
dfacaf7bfc
fix mips, sparc64, and s390x builds
2017-11-27 14:53:07 +01:00
gnzlbg
1773d5f953
[bugfix] update align to flags in excess methods
...
- Also rename `align_to_flags(align, size)` to
`layout_to_flags(layout)` because it was taking
its parameters in a weird order (typically its
size first and align second) and size + align
is actually `Layout`.
2017-11-25 11:05:47 +01:00
Alex Crichton
b87f8b806a
Merge pull request #28 from gnzlbg/excess
...
Add alloc_excess/realloc_excess
2017-11-24 09:50:13 -06:00
Alex Crichton
8500b5b5e4
Comment special case of alignment
2017-11-24 07:20:26 -08:00
gnzlbg
57b557f449
Add alloc_excess/realloc_excess
2017-11-23 14:34:25 +01: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
Alex Crichton
dc99b9f535
Tweak expors
2017-10-30 10:20:20 -07:00
Simon Sapin
87e5eff7e3
Re-export the jemalloc_sys crate as jemallocator::ffi
2017-10-30 16:19:46 +01:00
Simon Sapin
dd5861f6de
Swap the order of arguments to calloc.
...
The documented order is (number of objects, size of each object),
though in practice they end up being multiplied together
and so are somewhat interchangeable.
2017-10-30 13:25:02 +01:00
Alex Crichton
4e2a285389
Remove unnecessary : Sized
bound
2017-10-14 07:16:43 -07:00
Simon Sapin
d24b998401
Expose malloc_usable_size
in the high-level crate.
2017-10-13 21:37:45 +02:00
Alex Crichton
ceae58b585
Update with new global allocator API
2017-06-25 11:10:31 -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
Jay Lee
37a54f065b
fix allocate_zeroed
2017-05-29 22:21:13 +08:00
Kmindg
f916af392d
Fix test failure
...
rust-lang/rust#40409 requires a __rust_alloc_zeroed function.
2017-05-24 07:37:39 -04:00
Jay Lee
9211e1e5e6
fix tests
2017-04-07 11:45:03 +08:00
Jay Lee
449b58625a
make mallctl more simple
2017-04-06 17:27:50 +08:00
Alex Crichton
523f5996f9
Add some simple tests here and there
2016-01-20 17:14:01 -08:00
Alex Crichton
8e7e43739c
Initial commit
2016-01-20 17:03:24 -08:00