Commit Graph

22 Commits

Author SHA1 Message Date
gnzlbg aa420aed20 Document jemalloc-sys; re-enable ctest; add stats feature
* document jemalloc-sys APIs
* document readme for crates.io
* add missing jemalloc apis
* re-enable ctest
* add stats feature
2018-08-13 12:04:37 +02:00
gnzlbg de8bcc6932 bump version 2018-07-04 16:43:04 +02:00
Simon Sapin 980f69c5ba Rename no_prefix feature to unprefixed_malloc_on_supported_platforms 2018-06-25 18:59:27 +02:00
Steven Fackler 4f01b49922 Add a no_prefix feature
There are some targets that we still force a prefix since they have
issues when their libc malloc is replaced in this way.

Closes #39
2018-06-24 21:27:26 +02:00
gnzlbg 69ae59c309 bump jemalloc-sys to 0.1.6 and jemallocator to 0.1.8 2018-05-22 17:29:13 +02:00
gnzlbg ed07a3e01f add feature to enable the bg thread (enabled by default) 2018-05-22 16:56:01 +02:00
gnzlbg fa84575503 don't use cp or diff 2018-05-04 16:46:30 +02:00
gnzlbg 8429f769d5 disable -Wextra; do a make distclean before configure 2018-05-02 10:08:22 +02:00
Alex Crichton f295f6873b Bump jemalloc-sys to 0.1.5 2018-04-15 09:30:22 -07:00
gnzlbg 56559c7fee Adds benchmarks for nallocx, calloc, alloc, alloc_excess, ralloc, ralloc_excess (#26)
* [bench] nallocx cost

* [jemalloc-sys] detect jemalloc/configure

* [bench] calloc cost

* [bench] alloc/dealloc round-trip

* [bench] alloc_excess when the excess is used/unused

* [jemalloc-sys] detect unsupported targets

* [bench] add test::black_box(ptr) on all benches

* [bench] realloc

* [bench] realloc_excess

* [bench] run benchmarks only on x86_64-unknown-linux-gnu

* move all benchmarks into one file

* remove benchmark build from travis

* remove checks in jemalloc-sys/build.rs for missing configure file

* docs

* fix calloc bench
2017-11-27 10:07:57 -08: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
Alex Crichton e0f809800e Update gcc dep 2017-09-30 00:47:14 -07:00
Nick Fitzgerald d93f0a803b Bump jemalloc to 0.1.2; jemalloc-sys to 0.1.3
This allows publishing the fixed `debug` feature.
2017-09-29 12:38:43 -07:00
Alex Crichton eb631dd7da Fix building debug jemalloc 2017-09-26 14:06:56 -07:00
arthurprs 08bb4ca869 Update jemalloc
Includes fix to fork deadlock in OS X.
2017-07-27 11:07:15 -03:00
Alex Crichton 1094c9f7bc Bump jemalloc-sys to 0.1.1 2017-07-07 08:20:06 -07: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
Alex Crichton bf6b838128 Add a feature to enable profiling 2016-08-07 00:55:49 -07:00
Alex Crichton c38ddafb84 Update dep on libc 2016-03-07 13:14:40 -08:00
Alex Crichton 20beddb7ed Fill out metadata in jemalloc-sys/Cargo.toml 2016-01-20 17:18:18 -08:00
Alex Crichton 8e7e43739c Initial commit 2016-01-20 17:03:24 -08:00