Eduard Voronkin
076df2b8bb
do not touch uncommitted memory
...
sometimes, under high memory pressure situation, VirtualAlloc can fail to commit memory. In such cases, we should not touch such memory, but rather return NULL ptr so we try to mi_heap_collect and recover.
2025-06-02 21:38:32 -07:00
daanx
550b628358
merge from dev
2025-05-28 08:38:54 -07:00
daanx
3e32b4c385
fix OS allocation size tracking in the memid
2025-05-28 08:37:34 -07:00
daanx
90da648b08
merge from dev
2025-05-02 16:28:57 -07:00
daanx
6bfb1c656c
allow size==0 for mi_prim_free (issue #1041 )
2025-05-02 08:40:21 -07:00
daanx
26e4632287
merge from dev
2025-04-02 10:45:18 -07:00
daanx
235a0390ee
refactor numa_node_count
2025-04-02 10:34:00 -07:00
Daan
f735e6e6b5
move arena_t definition to types.h
2025-03-14 10:22:08 -07:00
daanx
d1d01deea7
add support for custom commit in arena loading
2025-03-10 18:11:27 -07:00
daanx
ad52fc1b7e
fix type
2025-03-05 16:09:22 -08:00
daanx
119f2eff6c
use int for numa node count
2025-03-05 09:51:40 -08:00
Daan
c1cbe71836
add numa-affine allocation, and per-heap numa affinity
2025-03-03 18:08:57 -08:00
Daan Leijen
6e0af52c95
merge new statistics from dev
2025-03-02 16:08:50 -08:00
daanx
02b97b6891
merge from dev
2025-02-11 09:21:48 -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
daanx
8339cefdeb
fix stats for delay purge commit
2024-12-25 11:45:01 -08:00
daanx
587e08ccd4
improve commit stats
2024-12-25 11:12:26 -08:00
daanx
cfe73e9d48
wip: merging from upstream
2024-12-25 10:56:43 -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
b515a0ad4c
add _mi_os_guard_page_size
2024-12-23 16:28:34 -08:00
daanx
773fe7ae5b
support full secure build
2024-12-22 17:25:58 -08:00
daanx
dece8a587b
make stats part of a subproc
2024-12-21 10:43:08 -08:00
daanx
94ce342ea9
maintain pages set for arenas; improve arena load/unload
2024-12-11 22:06:25 -08:00
daanx
aed76f2910
wip: allow arena (re)loading
2024-12-11 20:34:23 -08:00
Daan
2556a2022d
fix missing void
2024-12-09 20:50:00 -08:00
daanx
d5ed0cc71e
various improvements
2024-12-09 14:31:43 -08:00
daanx
c8607a8d01
remove os_tld and stats parameters to os interface
2024-12-08 17:56:13 -08:00
daanx
2084df3dde
add dedicated meta data allocation for threads and tld
2024-12-08 12:20:54 -08:00
daanx
5a06d2aeba
update bit primitives
2024-12-08 09:03:25 -08:00
daanx
70115d8b8c
small fixes
2024-12-06 23:25:53 -08:00
daanx
659a9dd51d
fix page info size and order; atomic page flags
2024-12-06 22:37:59 -08:00
daanx
8d9c725482
increase MAX_OBJ_SLICES to a full chunk (32MiB)
2024-12-03 17:27:43 -08:00
daanx
fe5a314114
add base and size to OS memid
2024-12-02 19:31:36 -08:00
daanx
1d7a9f62a5
bug fixes
2024-12-01 12:54:16 -08:00
daanx
8f2a5864b8
pass all debug tests
2024-11-30 22:54:57 -08:00
daanx
f8d04dc2bc
compile with clang and gcc
2024-11-30 12:41:11 -08:00
daanx
68f5fb2f4b
wip: further progress on segment removal; arena allocation
2024-11-29 15:08:06 -08:00
daanx
441d4fed9f
wip: further progress on removing segments
2024-11-29 10:40:18 -08:00
daanx
71cfa45e76
wip: initial work on mimalloc3 without segments
2024-11-28 19:31:04 -08:00
daanx
b8dc09e3d2
fix asan with MI_GUARDED
2024-11-17 22:56:26 -08:00
daanx
0e76fe3798
add address hint to primitive allocation API
2024-11-16 16:57:37 -08:00
daanx
b27d154ffd
add virtual address bits and physical memory to the mem config
2024-11-16 15:37:08 -08:00
Daan
b3828bba9e
disable aligned hinting or SV39 mmu's, issue #939 , and pr #949
2024-10-27 21:58:20 -07:00
daanx
a964322a21
revise the segment map to only apply to OS allocated segments and reduce the .BSS footprint
2024-06-02 14:46:59 -07:00
Daan
a38c8dd0f9
rename must_free_whole -> has_partial_free
2024-05-16 14:41:10 -07:00
Daan Leijen
6688b45fbd
rename MI_ALIGNMENT_MAX to MI_BLOCK_ALIGNMENT_MAX for clarity
2024-03-24 10:57:02 -07:00
Daan
fa10914f73
track os stats in the main stats directly
2024-03-03 13:19:27 -08:00
Daan
e1f6516fda
Fix undefined symbol errors when building for wasi #758 , by @anuraaga
2024-03-02 17:05:29 -08:00
daanx
4b2f6448cb
fix asan memory tracking for zero initialized memory
2023-04-23 19:45:29 -07:00