Commit graph

1744 commits

Author SHA1 Message Date
daanx
6fce7b90a4 reduce object class sizes (/8), add max reclaim queue size 2025-02-28 16:51:59 -08:00
Daan Leijen
2efc71ef57 Merge branch 'dev3-bin' into dev3 2025-02-28 16:29:14 -08:00
Daan
7e611f7545 merge from dev 2025-02-18 16:04:50 -08:00
Daan
dce6ec8b41 fix find_highest_bit 2025-02-18 06:45:12 -08:00
Daan
2775be9bed disable page commit_on_demand by default 2025-02-11 16:28:08 -08:00
Daan
cd2763aa3d fix compile warnings and assertion 2025-02-11 16:27:25 -08:00
Daan
0cbdcfac94 fix signed warning 2025-02-11 16:07:35 -08:00
Daan
6444cbc422 Merge branch 'dev3' into dev3-bin 2025-02-11 16:05:07 -08:00
daanx
d9439a7e39 merge from dev 2025-02-11 14:47:20 -08:00
daanx
ece1defe5b parameter of clz/ctz is size_t 2025-02-11 14:35:21 -08:00
daanx
c62d276835 optimize mi_bin 2025-02-11 14:27:01 -08:00
daanx
44a4c83fbf maintain count in pagequeue for constant time test in free.c 2025-02-11 13:56:58 -08:00
daanx
e81ddcb786 Merge branch 'dev3' into dev3-bin 2025-02-11 13:07:20 -08:00
daanx
63b8f8f753 fix assertion condition 2025-02-11 09:47:03 -08:00
daanx
69a5fbb1f3 avoid overflow in max address calculation on 32-bit (issue #1010) 2025-02-11 09:32:13 -08:00
daanx
f905c14f09 Merge branch 'dev' into dev3 2025-02-11 09:22:37 -08:00
daanx
d3897635ad fix compilation warning 2025-02-11 09:22:31 -08:00
daanx
02b97b6891 merge from dev 2025-02-11 09:21:48 -08:00
daanx
0c8069adab use physical memory in kib to avoid overflow of size_t (issue #1010) 2025-02-11 09:18:23 -08:00
daanx
ec4aa62b65 use physical memory in kib to avoid overflow of size_t (issue #1010) 2025-02-11 09:12:29 -08:00
Daan
c820259f3b fix heap_main declaration 2025-02-10 21:25:30 -08:00
Daan
8755369301 Merge branch 'dev' into dev3 2025-02-10 20:55:51 -08:00
Daan
78dd3f0e38 add mi_is_redirected back (issue #993) 2025-02-10 20:55:30 -08:00
Daan
e92358ba49 merge from dev; add _mi_heap_main_get
(issue #1010)
2025-02-10 20:42:29 -08:00
Daan
1d3d193561 make heap_main mi_decl_hidden 2025-02-10 20:37:01 -08:00
Daan
a7a0db06d5 merge from dev 2025-02-10 20:28:53 -08:00
Daan
156687ac8b rename to mi_thread_set_in_threadpool 2025-02-10 20:26:19 -08:00
Daan
aae2e0b2f6 merge from dev 2025-02-10 20:15:42 -08:00
daanx
08ebe070a4 add mi_heap_set_in_threadpool 2025-02-10 20:11:52 -08:00
Daan
89d629317f limit page_reclaim to page queues of less than 4 pages; make page_commit_on_demand 0 by default. 2025-02-10 12:45:38 -08:00
Daan
35e81c1a3d Merge branch 'dev3' into dev3-bin 2025-02-09 09:15:15 -08:00
Daan Leijen
d8c119cc4f add mi_decl_maybe_unused; fix compilation with OPT_SIMD (issue #1009) 2025-02-09 08:56:22 -08:00
Daan
fe5258a179 change process initialization order (potential fix for issue #1007) 2025-02-08 23:33:16 -08:00
daanx
8d9b6b2b9e merge from dev3 2025-02-08 13:14:19 -08:00
daanx
9dd753d2c0 add comment 2025-02-08 13:12:19 -08:00
daanx
4d1b0f0dbb Merge branch 'dev' into dev3 2025-02-08 12:52:15 -08:00
Daan Leijen
5f9b42685e remove declspec(dllexport) from DllMain on Windows (issue #1008) 2025-02-08 12:51:06 -08:00
Daan Leijen
c7f7c23dc1 make C compatible 2025-02-08 12:43:00 -08:00
daanx
1500d73e9a Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2025-02-08 12:20:53 -08:00
daanx
6d350ab850 set the option commit_on_demand back to 2 as we only do this for medium/large pages 2025-02-08 11:51:18 -08:00
daanx
2048fa2d17 fix comments 2025-02-08 09:53:00 -08:00
daanx
2017181a69 improve performance of clearNX 2025-02-08 09:36:09 -08:00
daanx
bc7fe059a6 improve performance of mi_free_collect_mt by specializing mi_page_unown 2025-02-08 09:35:52 -08:00
daanx
9b7914fd3f fix bug in mi_page_free_collect_partly where the tail of the free list was kept 2025-02-08 09:35:21 -08:00
daanx
ca25fb3d17 avoid reload on clearing mask 2025-02-07 17:38:53 -08:00
Sergey Markelov
9053cf0cd2 prim: fix dev3 UWP build (#1005) 2025-02-07 12:35:59 -07:00
daanx
7931678899 further optimize mi_bchunk_try_find_and_clearNX 2025-02-06 22:59:14 -08:00
Daan
64aaf9d88f fix performance bug in mi_bchunk_try_find _and_clearNX 2025-02-06 17:08:06 -08:00
Daan
63e625d9f8 Merge branch 'dev3' into dev3-bin 2025-02-06 11:56:33 -08:00
daanx
4c562f392a allow page reclaim on free to the originating heap also within a threadpool 2025-02-06 11:53:22 -08:00