Commit graph

116 commits

Author SHA1 Message Date
gnzlbg 5dd07174bc Add must_use and const to jemalloc-sys APIs 2019-11-28 15:59:34 +01:00
king6cong 560491226e Adapt android toolchain names 2019-10-11 12:25:21 +02:00
king6cong e3e08d2189 Use correct symbol prefix when using prebuilt jemalloc 2019-10-11 12:25:21 +02:00
gnzlbg 7fef687624 Bump patch versions again 2019-06-16 17:39:15 +02:00
gnzlbg c0bdff5533 Bump patch versions 2019-06-14 12:02:38 +02:00
gnzlbg 01b2dc8923 Document that the MALLOC_CONF env var might be prefixed 2019-04-25 10:03:12 +02:00
gnzlbg 559d949860 Update links 2019-04-25 10:03:12 +02:00
gnzlbg db85601eac Allow jemalloc-sys to pick jemalloc from git
This PR allows automatically fetching the latest jemalloc from
its dev branch by defining the environment variable
`JEMALLOC_SYS_GIT_DEV_BRANCH`. This is useful when debugging
whether certain bugs are already fixed upstream, as well as
for detecting whether upstream changes break our tests.
This PR adds two build jobs that test the dev branch on the
tier-1 x86_64 linux and osx targets.
2019-04-03 20:03:09 +02:00
Joel Höner ff19eebf75 Add disable_initial_exec_tls description 2019-03-20 10:49:39 +01:00
Joel Höner ea444b8758 Add disable_initial_exec_tls feature
This allows libraries that link against jemalloc to be dlopened. 

See

https://github.com/jemalloc/jemalloc/issues/937
https://github.com/jemalloc/jemalloc/blob/dev/INSTALL.md

for detailed explanation of the feature.
2019-03-20 10:49:39 +01:00
gnzlbg ab9b2474b6 detect missing links in jemallocator and jemalloc-sys docs 2019-02-27 09:39:39 +01:00
gnzlbg 0a711d8fc1 add jemalloc-ctl 2019-02-27 09:39:39 +01:00
Brian Anderson 4d3701f58f Fix typo in jemalloc-sys docs 2019-02-10 09:43:16 +01:00
gnzlbg 3392d70bc8 Add jemallocator-global crate 2019-01-15 16:12:53 +01:00
Brian Anderson 2db68249db Fix a minor typo 2019-01-13 12:28:59 +01:00
Alex Crichton 7758a0b8af Run cargo fmt 2019-01-03 07:28:49 -08:00
gnzlbg d2cf48f597 format jemalloc-sys build.rs 2018-11-18 12:29:02 +01:00
Erich Gubler 9dbe789c3b Fix the Appveyor build for gnu targets all the way up to upstream
tests.

For some reason, the tests are hitting linking errors for me locally,
but in Appveyor they run just fine.
2018-11-18 12:27:09 +01:00
Erich Gubler 00973f275d Remove an unnecessary clone call in jemalloc-sys/build.rs 2018-11-18 12:26:05 +01:00
gnzlbg 7b30e059ca jemallocator does not require the libc/use_std feature 2018-11-07 20:38:18 +01:00
gnzlbg b857155821 formatting 2018-11-07 00:26:16 +01:00
gnzlbg 81b15f1322 Re-enable configure file verification 2018-11-07 00:26:16 +01:00
gnzlbg 16c76c23a5 clean up build.rs a bit 2018-11-07 00:26:16 +01:00
gnzlbg bca6aa8759 Fix extent hooks struct 2018-11-06 20:35:50 +01:00
gnzlbg fdb5251af2 Run jemalloc tests on CI while building jemalloc-sys
In the following platforms, jemalloc's tests currently fail:

* `{i686,x86_64}-apple-darwin`: due to https://github.com/alexcrichton/jemallocator/issues/85
2018-11-04 19:06:37 +01:00
gnzlbg 0b7c2fdbb4 use clippy on CI 2018-11-03 19:21:58 +01:00
gnzlbg f2f17b9557 disable background threads in musl targets 2018-11-03 09:39:37 +01:00
gnzlbg de2fd16d95 turn unprefixed request failure into a warning 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 6e6b97717b bump jemallocator version to 0.2 2018-10-31 13:16:57 +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
gnzlbg 9a775f8200 Update ctest to 0.2.5. 2018-10-30 13:29:40 +01:00
gnzlbg e2a362d288 Expose malloc_conf 2018-10-30 13:29:40 +01:00
gnzlbg 915d2d14d7 Jemalloc --disable-thp option has been removed 2018-10-23 14:49:48 +02:00
gnzlbg 3df921a811 add missing readme links 2018-10-23 14:49:48 +02:00
gnzlbg cb0e906dda Expose more jemalloc configure options 2018-10-23 14:49:48 +02:00
gnzlbg 8dede09346 Raise iOS page-size to 16kB.
Newer iOS devices have 16kB page sizes and jemalloc's LG_PAGE size
cannot be smaller than the system's page size.

Closes #68 .
2018-10-23 14:48:04 +02:00
gnzlbg 1cb6a86a06 The LG_QUANTUM for sparc64 is always 4 in jemalloc by default.
https://github.com/jemalloc/jemalloc/blob/dev/include/jemalloc/internal/quantum.h#L19
2018-10-23 14:48:04 +02:00
Corey Farwell 10da06e6aa
Fix a couple broken links 2018-10-21 10:01:21 -04:00
Alex Crichton 4ac247967f Update cargo metadata for jemalloc-sys 2018-10-20 12:54:21 -07:00
Alex Crichton 119fa5f288 Bump jemalloc-sys to 0.1.8 2018-10-20 12:53:19 -07:00
gnzlbg c18e43008d extent hooks should be unsafe fns 2018-10-15 16:29:02 +02:00
gnzlbg 060ad53b66 make function pointers extern 2018-08-13 12:04:37 +02:00
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
Alex Crichton 51db5a4511
Merge pull request #55 from SimonSapin/prefix-private
Prefix private symbols unconditionally
2018-06-27 13:28:35 -05:00
Simon Sapin de305db300 Document in code why symbol prefixes are always enabled on some platforms. 2018-06-25 18:59:27 +02:00
Simon Sapin 980f69c5ba Rename no_prefix feature to unprefixed_malloc_on_supported_platforms 2018-06-25 18:59:27 +02:00
Simon Sapin 3450b53222 Add a test for prefixed vs unprefixed symbols 2018-06-25 18:59:27 +02:00