Commit graph

324 commits

Author SHA1 Message Date
Daan
1b5ee4e2d0 skip purge after arenas destroy 2025-06-17 19:59:12 -07:00
Daan
aaf8da9aba potential fix for use-after-free of the tld on unsafe arenas destroy 2025-06-17 19:49:09 -07:00
Daan
2ce6568af6 fix compile error for mi_decl_nodiscard 2025-06-17 18:44:17 -07:00
Daan
d8321f6d66 check commit success for pagemap extension so NULL can be returned instead of faulting (issue #1098) 2025-06-17 18:34:41 -07:00
Daan
b10c0f87ee fix state of commit bits on commit failure 2025-06-13 21:31:30 -07:00
Daan
6cfc8ad9d0 improve handling of commit failure in arena allocation 2025-06-06 21:29:33 -07:00
Daan
a067bd42ae merge from dev (support for mi_prim_reuse, #1097) 2025-06-06 18:05:13 -07:00
Daan
d389819cc9 add initial support for _mi_prim_reuse and MADV_FREE_REUSABLE on macOS (issue #1097) 2025-06-06 17:59:46 -07:00
Daan
317b22cdb1 check return value of mi_arena_commit, potential fix for #1098 2025-06-06 15:51:34 -07:00
daanx
7c7ecf096f ensure use of subproc_main during unsafe destroy to avoid derefercing the heap 2025-06-06 11:49:44 -07:00
Daan
488304053e merge from dev; check all os_commit calls 2025-06-03 15:26:41 -07:00
Daan
6c2cfd7830 ensure page stats are done on the subproc stats in case the tld is NULL 2025-05-21 15:18:53 -07:00
Daan
752dc834a9 merge 3301ba0 to fix page_bin and pages statistics 2025-05-21 15:18:29 -07:00
Daan
21378d6d8a merge from dev 2025-05-13 16:13:34 -07:00
daanx
a6ecb5c299 fix format specifier (for alpine linux x86, issue #1086) 2025-05-13 15:35:29 -07:00
daanx
26e4632287 merge from dev 2025-04-02 10:45:18 -07:00
daanx
5a58df6534 fix signed compare warning 2025-04-02 10:40:30 -07:00
Daan
26fa8be427 improved accounting of committed bytes (issue #1035) 2025-03-19 18:50:53 -07:00
Daan
9a35bca556 possible fix for wrong accounting of committed bytes (issue #1035) 2025-03-19 16:12:17 -07:00
daanx
3a1f2fcd3b nicer show arenas 2025-03-14 17:20:27 -07:00
Daan
f735e6e6b5 move arena_t definition to types.h 2025-03-14 10:22:08 -07:00
Daan
a0a22d954b rename cbin to chunkbin 2025-03-14 09:57:52 -07:00
Daan
22b879fde1 merge from dev3 2025-03-10 18:15:26 -07:00
daanx
d1d01deea7 add support for custom commit in arena loading 2025-03-10 18:11:27 -07:00
Daan
0d068797b6 fix prototype 2025-03-10 16:33:58 -07:00
daanx
d41f7267d1 add mi_arena_min_alignment 2025-03-10 16:29:37 -07:00
daanx
a99de4b9a3 fix abandoned count on reload 2025-03-10 16:23:06 -07:00
Daan Leijen
992a1ca820 allow smaller and larger default arena slice sizes 2025-03-10 13:26:52 -07:00
Daan Leijen
ccc65d2fd9 fix msvc compilation in C mode 2025-03-10 12:37:42 -07:00
daanx
dd3a74d89d Merge branch 'dev3' into dev3-binx 2025-03-05 20:47:05 -08:00
daanx
119f2eff6c use int for numa node count 2025-03-05 09:51:40 -08:00
daanx
6093971bcb use per cmap entry size class binning 2025-03-04 09:22:21 -08:00
Daan
c1cbe71836 add numa-affine allocation, and per-heap numa affinity 2025-03-03 18:08:57 -08:00
Daan
30dfe97f5b merge from dev 2025-03-03 16:28:43 -08:00
Daan
db831d4cf4 make mi_options_print, mi_arenas_print, and mi_stats_print independent of the vebosity setting 2025-03-03 16:23:28 -08:00
Daan Leijen
4f1edad4fe add arena_purges stat 2025-03-02 16:36:16 -08:00
Daan Leijen
ec92690117 merge from dev; lean stats 2025-03-01 17:35:34 -08:00
daanx
951a6642ae merge from dev 2025-02-28 17:37:06 -08:00
daanx
5f6ebb70fa add mi_options_print and mi_arenas_print 2025-02-28 17:30:41 -08:00
daanx
5fbba3f20c fix sign of comparison 2025-02-05 14:27:36 -08:00
daanx
27895ce35d fix guard page size calculation in secure mode 2025-02-05 14:25:36 -08:00
Daan Leijen
8fc8da5d81 use thread local stats for abandoned statistics to reduce contention 2025-02-04 17:54:49 -08:00
Daan
6137ae4ab8 fix page_flags 2025-01-21 20:12:13 -08:00
daanx
d7c273e5cd merge from dev 2025-01-06 12:11:06 -08:00
Daan Leijen
5764845c4d fix build on msvc in C compilation; fix build with clang-cl on Windows 2025-01-06 10:27:46 -08:00
daanx
aa8e8ab58d remove mi_debug_show_arenas parameter 2025-01-05 11:42:17 -08:00
daanx
bd3392466b remove mi_debug_show_arenas parameter 2025-01-05 11:39:42 -08:00
daanx
c518312fb6 allow narrow arena debug output 2025-01-04 22:49:25 -08:00
daanx
fab6bee764 nicer arena debug output 2025-01-04 22:39:06 -08:00
daanx
b432f77bfc Merge branch 'dev3' into dev3-bin 2025-01-03 13:50:37 -08:00