205 Commits

Author SHA1 Message Date
Boris Frolikov 32382e37c7 Implement mi_malloc_backtrace stub and test
Signed-off-by: Boris Frolikov <frolikov.boris@huawei.com>
2022-09-07 12:53:10 +03:00
Timur Valeev 4d7835d4d2 Add check that mimalloc was initialized
Signed-off-by: Timur Valeev <valeev.timur@huawei.com>
2022-08-17 14:20:21 +03:00
Timur Valeev b3e8a62d66 Add several tests and mallopt API
Signed-off-by: Timur Valeev <valeev.timur@huawei.com>
2022-08-17 14:20:21 +03:00
Timur Valeev faa6da2371 Add mallinfo
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 e40bf72011 merge from dev 2022-04-14 16:07:57 -07:00
Daan Leijen b881601e64 add max segment reclaim as an option 2022-04-14 16:05:49 -07:00
Daan Leijen 497e63a75f merge from dev 2022-04-09 15:07:07 -07:00
Daan Leijen ad8b9cb70a remove thread local segment cache 2022-04-09 14:33:20 -07:00
Daan Leijen f86f32524b merge from dev 2022-04-09 13:26:38 -07:00
Daan Leijen 6fdac260e2 add heap walk test 2022-04-08 16:58:32 -07:00
Daan c40b0e1e91 merge from dev 2022-02-14 16:48:30 -08:00
Daan 8a117ac536 bump version for further development 2022-02-14 16:47:57 -08:00
Daan 5b4ceefad3 merge from dev 2022-02-14 16:36:03 -08:00
Daan 89012dee46 bump to version x.0.5 2022-02-14 16:34:18 -08:00
daan d03c503dbc increase minimal commit size to 8*slice-size and add decommit_extend_delay as option 2022-02-04 16:11:38 -08:00
Daan f3ab8071ca merge from dev 2022-02-02 19:21:15 -08:00
Daan 41f854962b update documentation on options 2022-02-02 19:19:03 -08:00
Daan 02b622cab8 clean up options 2022-02-02 19:01:41 -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 da7f0bd393 Merge branch 'dev' into dev-slice 2022-01-01 16:24:41 -08:00
Daan e5f90772ab Merge pull request #504 from res2k/tweak-stats-doc
Tweak documentation for mi_heap_area_t::used.
2021-12-20 17:44:52 -08:00
Frank Richter 134947510c Tweak documentation for mi_heap_area_t::used.
For microsoft/mimalloc#503.
2021-12-19 14:51:15 +01:00
Daan Leijen 988d9343d1 Merge branch 'dev' into dev-slice 2021-12-18 11:11:54 -08:00
Daan Leijen c6e3e3ff66 update alignment tests 2021-12-18 11:11:44 -08:00
daan af797c127e merge from dev (MI_ALIGNED_MAX) 2021-12-17 13:23:24 -08:00
daan 7f3485781e restrict max aligment boundary to prevent bug with segment determination (found by Matthew Parkinson). 2021-12-17 11:40:46 -08:00
daan 1024f8e15f Merge branch 'dev' into dev-slice 2021-12-15 19:29:04 -08:00
daan d8fa15e358 fix warning on mi_reallocarr 2021-12-15 18:54:57 -08:00
Daan 9a4247a3cc Merge branch 'dev' into netbsd_reallocarr 2021-12-15 16:27:26 -08:00
Daan 2f533aeeeb merge from dev 2021-12-14 18:29:58 -08:00
Daan dbb04e1d42 further improvements to installation directories 2021-12-14 18:29:14 -08:00
David Carlier 9374e5b821 introduces netbsd's reallocarr overriding.
and couple of tests.
2021-12-01 22:43:13 +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 e87796f6d0 Merge branch 'dev' into dev-slice 2021-11-14 16:48:04 -08:00
daan fe8f7c19d1 Merge branch 'master' into dev 2021-11-14 16:44:54 -08:00
Daan ee9e56f68f merge from dev 2021-11-14 15:39:05 -08:00
Daan 2d7ce44444 bump version number to 1.7.3 2021-11-14 15:33:56 -08:00
Daan bf9697e50f add include cstdef for std::size_t in C++ 2021-11-14 15:32:43 -08:00
Daan a6ec9fc750 merge from dev 2021-11-02 22:42:25 -07:00
Daan 48923f73e9 add mi_malloc_good_size 2021-11-02 21:52:00 -07:00
Daan 2e5873a686 merge from dev 2021-10-27 18:09:16 -07:00
Daan 0bdf6f2971 only set visibility attribute when compiling for a shared library 2021-10-27 17:01:12 -07:00
Daan Leijen ed36548ff2 merge from dev 2021-10-18 16:28:08 -07:00
paulip1792 f02d881fb2 add option to reserve huge os pages at a specific numa node. 2021-08-10 16:30:44 +08:00
Jim Huang 1c4c19d2e8 Eliminate preprocessor warnings due to undefined "__GNUC__" with ClangCL
When building some code against mimalloc with C inside Visual Studio
with ClangCL, the compiler complains about __GNUC__ being undefined.

Reported by Mojca Miklavec.

Close #422
2021-06-24 17:29:06 +08:00