Commit graph

2414 commits

Author SHA1 Message Date
daanx
4d1d3471cf rename page options 2024-12-24 17:14:53 -08:00
daanx
1e1a12bf3c fix rounding issue with huge size allocations 2024-12-24 17:07:11 -08:00
daanx
d862e57955 fix huge page allocation size 2024-12-24 16:39:54 -08:00
daanx
ad6f48f3e4 fix assertion for huge pages 2024-12-24 15:00:05 -08:00
Daan Leijen
016b36d917 fix max va bits on unix 2024-12-24 12:10:34 -08:00
daanx
d21114b5f2 improve page commit on demand 2024-12-24 11:37:52 -08:00
daanx
ba68810333 commit page on demand 2024-12-23 18:33:37 -08:00
daanx
9a7c0d443a max obj size 1/8 of a page 2024-12-23 17:15:13 -08:00
daanx
9bad269c51 fix purge delay check for arenas 2024-12-23 16:47:01 -08:00
daanx
c65c6d83bd fix guard page size 2024-12-23 16:31:42 -08:00
daanx
b515a0ad4c add _mi_os_guard_page_size 2024-12-23 16:28:34 -08:00
daanx
88d8ee964f remove is_large member (and use is_pinned for this) 2024-12-23 15:04:06 -08:00
daanx
657135de36 commit 2level page-map on over-commit systems 2024-12-23 09:53:52 -08:00
daanx
bc5ae31649 add abandoned_visit_blocks 2024-12-22 22:31:16 -08:00
daanx
04970f43e5 document way to use a TLS slot on windows 2024-12-22 21:55:40 -08:00
daanx
dd1b37c9f8 fix recursive tls access on macOS <= 14 2024-12-22 21:03:03 -08:00
daanx
f605cb73e5 old purge delay 2024-12-22 18:33:44 -08:00
daanx
e61ab67185 cleanup 2024-12-22 18:31:33 -08:00
daanx
db82baf1a8 cleanup, some renaming 2024-12-22 18:09:16 -08:00
daanx
9ecadaecd5 clean up 2024-12-22 17:55:56 -08:00
daanx
773fe7ae5b support full secure build 2024-12-22 17:25:58 -08:00
daanx
516e644359 rename option pagemap_commit; always commit the page map on macos (for now) 2024-12-22 16:06:49 -08:00
daanx
c5cfc92f0c small fixes 2024-12-22 14:39:57 -08:00
daanx
a42a2a926b improving level 2 page-map 2024-12-22 14:18:33 -08:00
daanx
3c7d7e1f11 experiment with 2 level pagemap 2024-12-22 14:07:57 -08:00
daanx
8d16303aa6 add -mtune=native with opt arch 2024-12-22 12:21:31 -08:00
daanx
93fa8d895a revert back to flat address map 2024-12-22 12:18:53 -08:00
daanx
c9b2d31665 fix page_map initialization 2024-12-21 23:17:11 -08:00
daanx
56cbddfc7e initial work on a two-level page-map 2024-12-21 23:08:52 -08:00
daanx
1e2221f512 fix signed/unsigned; fix heap_destroy assert failure 2024-12-21 19:28:53 -08:00
daanx
d7d626cbfa enable collecting from the full page queue 2024-12-21 16:24:56 -08:00
daanx
da17a59bdb re-add deferred free and heap retired collect 2024-12-21 15:53:50 -08:00
daanx
c138fba149 merge from dev 2024-12-21 15:49:17 -08:00
daanx
1a6fbdf0b2 merge from dev 2024-12-21 15:48:49 -08:00
daanx
7085b6cec3 limit candidate search to 4 2024-12-21 15:38:27 -08:00
daanx
825dd41769 fix build error 2024-12-21 15:29:39 -08:00
daanx
476d4699ff limit purgeing to one purge cycle per purge delay 2024-12-21 15:24:46 -08:00
daanx
108c84e858 remove req_arena parameter to arena_reserve 2024-12-21 14:45:14 -08:00
daanx
e3ebebb990 update lock primitive; fix arena exclusive allocation 2024-12-21 14:39:17 -08:00
daanx
7d46478a5f add initial load/unload for heaps 2024-12-21 13:19:06 -08:00
daanx
89b0d5a357 allocate heaps associated with an arena in that arena 2024-12-21 11:53:29 -08:00
daanx
4ad7fedd25 track os abandoned pages in a list 2024-12-21 11:35:30 -08:00
daanx
95aeda4cdd merge subproc stats on delete 2024-12-21 10:53:34 -08:00
daanx
dece8a587b make stats part of a subproc 2024-12-21 10:43:08 -08:00
daanx
daac75af36 fix lock recursion 2024-12-20 22:13:58 -08:00
daanx
a5b7d7f264 subprocesses own arena's 2024-12-20 21:38:31 -08:00
daanx
53857ddaa3 Merge branch 'dev' into dev3 2024-12-20 17:32:32 -08:00
daanx
93e14344c7 use srw lock on windows 2024-12-20 17:32:26 -08:00
daanx
7141d9f164 remove busy wait for arena reservation 2024-12-20 17:31:48 -08:00
daanx
bc459b5e16 Merge branch 'dev3' of https://github.com/microsoft/mimalloc into dev3 2024-12-20 16:46:18 -08:00