287 Commits

Author SHA1 Message Date
Timur Valeev c5f5968099 Implement new malloc synchronization
Signed-off-by: Timur Valeev <valeev.timur@huawei.com>
2022-08-17 14:20:21 +03:00
Timur Valeev 671dbe6259 - Add PR_SET_VMA for memory mapped area
- Remove TLS variables from OHOS mimalloc build
- Add mi_malloc_stats_print to mimic malloc_stats_print from jemalloc
- Add mi_stats_mallinfo
- Fix several build errors

Signed-off-by: Timur Valeev <valeev.timur@huawei.com>
2022-08-17 14:20:21 +03:00
Daan Leijen c440725fb1 Merge branch 'dev' into dev-slice 2022-04-07 19:09:39 -07:00
Daan Leijen a226a72b6d improve mi_realloc codepath 2022-04-07 19:09:31 -07:00
Daan fc5b9f016f merge from dev 2022-02-03 15:49:27 -08:00
Daan 1a6845f473 decommit in abandoned pages on mi_collect 2022-02-02 17:08:05 -08:00
Daan ff7e240ac8 collect segment cache on mi_collect 2022-02-02 16:17:21 -08:00
David Carlier 0353d1d885 tls revives inline asm for openbsd 2022-01-27 07:01:32 +00:00
Daan 3ec1180470 ignore reset_decommits option in the 2.x / dev-slice version 2022-01-10 12:10:18 -08:00
Daan 6ad7ef3294 Merge branch 'dev' into dev-slice 2022-01-10 12:04:47 -08:00
Daan c0e585c070 update copyright year 2022-01-10 12:01:26 -08:00
Daan 2085cca66b Merge branch 'dev' into dev-slice 2022-01-10 11:41:12 -08:00
Daan b437501280 avoid conditional load on macos 2022-01-10 11:40:36 -08:00
daan da7f0bd393 Merge branch 'dev' into dev-slice 2022-01-01 16:24:41 -08:00
daan 721996d035 revise assembly test for the _mi_threadid(); fix issue #495 with musl libc on arm; test specifically for bionic libc on Android 2022-01-01 15:54:06 -08:00
Daan Leijen 988d9343d1 Merge branch 'dev' into dev-slice 2021-12-18 11:11:54 -08:00
daan 297e5f31ee default to portable C for the thread id on arm 32-bit, issue #495 2021-12-17 13:48:39 -08:00
daan af797c127e merge from dev (MI_ALIGNED_MAX) 2021-12-17 13:23:24 -08:00
daan 3d46cad1ed improve aligned allocation performance 2021-12-17 13:18:05 -08:00
daan 1024f8e15f Merge branch 'dev' into dev-slice 2021-12-15 19:29:04 -08:00
daan 48d0afeaff wip: fix zero init for sbrk; add lock around sbrk 2021-12-15 19:28:34 -08:00
Daan 00752da4a4 merge 2021-12-15 16:52:36 -08:00
Daan 0fb617606b fix Android overriding (issue #381 and PR #487) 2021-12-15 16:48:57 -08:00
Daan 38c44ab521 Merge pull request #489 from devnexen/remove_dfbsd_warning
removes dragonflybsd warning since the api and library overriding wor…
2021-12-15 16:37:56 -08:00
Daan a5ba442ec0 fix thread slot on arm32 (issue #495) 2021-12-15 16:05:07 -08:00
Daan 2f533aeeeb merge from dev 2021-12-14 18:29:58 -08:00
Daan 46b32eca88 fix assembly for mi_tls_slot_set on x32 and x64. Issue #488 2021-12-12 10:35:13 -08:00
DC 2de8b731f2 removes dragonflybsd warning since the api and library overriding works, also
for the os doc report purpose.
2021-11-28 08:14:21 +00:00
daan 835cbb7039 merge from dev 2021-11-23 19:05:19 -08:00
daan 3cfac653c2 remove experiment with unsafe_free_with_threadid 2021-11-23 19:04:41 -08:00
daan f47b8337a9 merge from dev 2021-11-23 18:00:12 -08:00
daan e05fe1dcfc add mi_unsafe_free_with_threadid and mi_get_current_threadid() 2021-11-23 17:59:27 -08:00
Daan ee9e56f68f merge from dev 2021-11-14 15:39:05 -08:00
Daan 95a556f8eb Merge pull request #485 from devnexen/builtin_overflow_sig_fix
fix spurious build warning with overflow builtins
2021-11-14 14:47:38 -08:00
daan 821924cf0a Merge branch 'dev-slice' into dev-slice-cmask 2021-11-14 11:26:47 -08:00
daan baac7e44cb merge from dev 2021-11-14 11:25:51 -08:00
daan e9235a724c take overcommit into account for eager commit delay 2021-11-14 11:23:11 -08:00
daan 074190ff3b fix commit mask for huge segments 2021-11-13 16:15:03 -08:00
daan dcf4912a51 merge from dev-slice 2021-11-13 15:53:57 -08:00
daan c633be9c74 move commit mask functions to segment.c 2021-11-13 15:50:26 -08:00
daan 980ed04eb0 fix types to size_t 2021-11-13 15:25:51 -08:00
daan 91020569db merge from dev-slice 2021-11-13 15:18:56 -08:00
daan dfbe187a67 merge from dev 2021-11-13 14:52:11 -08:00
daan e14bcff707 prefix UNUSED,KiB,MiB,GiB; add mi_threadid_t type; add mi_ssize_t 2021-11-13 14:46:03 -08:00
daan 8338906634 add comments, renaming 2021-11-13 14:03:16 -08:00
daan 4323f0862f Merge branch 'dev-slice' into dev-slice-cmask 2021-11-12 19:04:35 -08:00
daan 671240265f merge from dev 2021-11-12 19:04:18 -08:00
daan 94c33d4be3 suppres eager commit delay for the first 4 threads 2021-11-12 19:03:20 -08:00
daan 3c96a61845 merge from dev-slice 2021-11-12 18:38:14 -08:00
daan ca0d9a54e0 fix decommit bug 2021-11-11 17:45:41 -08:00