Commit graph

327 commits

Author SHA1 Message Date
Daan Leijen
163afcce75 merge from dev with the destroy_on_exit option 2022-11-21 10:03:52 -08:00
daan
89ba6cc2fa merge from dev 2022-11-07 16:48:00 -08:00
daan
2479d168ad decommit unused prefix of large aligned blocks 2022-11-07 16:41:40 -08:00
daan
c55cc260ab merge from dev-align 2022-11-07 11:29:03 -08:00
daan
1f12c3dd12 remove MI_ALIGNMENT_MAX and add comments 2022-11-07 11:13:42 -08:00
daan
96f1574faf fix huge page aligned allocation size in secure mode 2022-11-07 10:51:15 -08:00
daan
651a99b35d refine last slice setting for large alignments 2022-11-06 20:57:27 -08:00
daan
562efed54d fix full SEGMENT_SIZE internal alignment by adding one more slice entry 2022-11-06 20:36:51 -08:00
daan
4814a649be merge from dev-align 2022-11-06 16:23:42 -08:00
Daan
d1ae630dec Merge branch 'dev-align' of https://github.com/microsoft/mimalloc into dev-align 2022-11-06 14:51:37 -08:00
Daan
3eb616f2bf fix bug in secure mode where adjustment would make the page size less than the blocksize on the first page of a segment 2022-11-06 14:51:06 -08:00
daan
f788e3c9a3 add comment 2022-11-06 14:18:52 -08:00
Daan
f54e64365f fix assertions with incorrect block size for large alignments 2022-11-06 09:44:12 -08:00
daan
4b91ff760d initial working large alignment 2022-11-05 16:40:42 -07:00
daan
6a80fa3ac1 initial progress on removing alignment limit 2022-11-05 14:46:52 -07:00
daan
9f36808a7f initial api for heaps restricted to a certain arena 2022-11-01 16:22:51 -07:00
daan
e961ef705e merge arena_id from dev 2022-11-01 14:16:49 -07:00
daan
66525ccae3 merge from dev-track 2022-10-30 14:31:21 -07:00
daan
a1f5a5d962 fix various false positives in test-stress from valgrind 2022-10-29 14:37:55 -07:00
daan
c61b365e76 valgrind works on test-stress 2022-10-29 11:51:04 -07:00
daan
eee7c40da5 updates to run valgrind on test-api 2022-10-29 11:43:09 -07:00
Daan Leijen
413141ae29 merge from dev 2022-04-19 19:55:03 -07:00
Daan Leijen
7bc602ebb4 redefine mi_likely/mi_unlikely to work with C++ 20 [[likely]] attributes 2022-04-19 19:50:06 -07:00
Daan Leijen
b86bbbff00 merge from dev 2022-04-14 16:07:57 -07:00
Daan Leijen
f87cba9bd8 add max segment reclaim as an option 2022-04-14 16:05:49 -07:00
Daan Leijen
f4b7ea9e9e fix compile warnings 2022-04-09 16:20:27 -07:00
Daan Leijen
7e492f4420 merge from dev 2022-04-09 15:07:07 -07:00
Daan Leijen
faca422b71 fix msvc warnings at level 4 2022-04-09 14:48:30 -07:00
Daan Leijen
6c91c75b14 remove thread local segment cache 2022-04-09 14:33:20 -07:00
daan
96008c55d0 fix ubsan warning on huge allocations (issue #543) 2022-02-10 11:57:30 -08:00
daan
f2b6938d64 fix start adjustment for the commit mask 2022-02-05 17:36:14 -08:00
daan
47f8caad4d improve commit chunk alignment 2022-02-05 17:23:28 -08:00
daan
e11100a137 add minimal commit size for increased efficiency (decommit fine grained, commit coarse grained) 2022-02-05 10:57:15 -08:00
daan
9ca363d0e4 merge from dev 2022-02-04 16:13:12 -08:00
daan
f2bfaa74fe enable eager delay even on overcommit systems 2022-02-04 16:12:22 -08:00
daan
fb418831df only delay eager commit after the first thread 2022-02-04 16:10:51 -08:00
Daan
0e1beb0018 check for decommit allowed before purging the segment cache 2022-02-03 15:51:27 -08:00
daan
741d39a004 fix over aggressive decommit of abandoned pages 2022-02-03 14:26:56 -08:00
Daan
4e65b5018f clean up options 2022-02-02 19:01:41 -08:00
Daan
ccfe005731 decommit in abandoned pages on mi_collect 2022-02-02 17:08:05 -08:00
Daan Leijen
6ff2312ab5 fix warning in vs2019 2022-02-02 13:05:32 -08:00
Daan
2cb2c7fd80 fix uint8_t to size_t comparison (issue #525) 2022-01-16 12:12:45 -08:00
daan
72a33c37ef merge from dev 2021-12-18 11:34:02 -08:00
daan
c46a6f66c6 Merge branch 'dev-slice' into dev-slice-cmask 2021-11-14 11:26:47 -08:00
daan
f039774cf5 adjust decommit delay 2021-11-14 11:26:30 -08:00
daan
a4ea2205ba merge from dev 2021-11-14 11:25:51 -08:00
daan
4b0cda2012 take overcommit into account for eager commit delay 2021-11-14 11:23:11 -08:00
daan
511a8996f3 increase commit mask blocks to 2xslice size 2021-11-13 20:12:03 -08:00
daan
fa66db840d increase decommit hysterisis 2021-11-13 19:43:52 -08:00
daan
fb5645a30d increase decommit hysterisis 2021-11-13 19:41:41 -08:00