147 Commits

Author SHA1 Message Date
daan
aa47541ee5 add mi_heap_print_json 2020-04-07 08:51:02 -07:00
daan
75053f211a add more detailed block info for heap visiting 2020-04-07 08:36:22 -07:00
daan
173978c122 add more detailed block info for heap visiting 2020-04-06 23:39:09 -07:00
daan
8a7d5804bc add corrupted block scanning on overflow detection 2020-04-06 16:10:43 -07:00
daan
083392fa15 add padding check in usable size 2020-04-06 13:42:39 -07:00
daan
a38abae0a1 comments and improved error message on buffer overflow 2020-04-06 13:30:17 -07:00
daan
19cae48556 merge from dev 2020-04-06 12:59:29 -07:00
daan
afc4f79a69 fix for ensuring heap initialization with static linking on windows on huge allocations (issues #221) 2020-04-06 12:15:12 -07:00
daan
0a3e5bb699 further fixes to compile on mingw without warnings (issue #217) 2020-04-06 10:56:53 -07:00
daan
faa83a1c47 fix issue number: 212 to #221 2020-04-06 09:19:26 -07:00
daan
c7e9cfd3ed add test case for issue #212 2020-04-06 08:32:25 -07:00
Daan
1ece3ff6aa
Merge pull request #220 from cormacrelf/usable_size
Don't call mi_page_usable_size_of with an aligned pointer
2020-04-06 08:05:34 -07:00
Cormac Relf
414acd49ab Add test to exercise mi_usable_size on aligned allocations 2020-04-06 22:50:21 +10:00
daan
2d52b967bc merge from dev 2020-03-16 16:07:52 -07:00
daan
ec61224db0 fix padding issue with zero sized allocation (issue #209) 2020-02-18 20:05:30 -08:00
daan
6e08b0c0c8 Merge branch 'dev-debug' of https://github.com/microsoft/mimalloc into dev-debug 2020-02-17 10:24:15 -08:00
daan
6527819eaf merge from dev 2020-02-17 10:24:03 -08:00
daan
baf08e8d54 fix size check on overflow when padding is enabled in debug mode 2020-02-17 09:59:34 -08:00
daan
ba3e32cb63 fix test build on linux 2020-02-15 13:15:45 -08:00
daan
e9c5b31b1c keep dbg entries in release build to allow linking with both 2020-02-14 11:08:25 -08:00
daan
c04881ef8a add getcwd and fullpath wrappers 2020-02-13 17:59:43 -08:00
daan
ff2fe673e5 merge with dev 2020-02-13 14:32:54 -08:00
daan
e981e9227e ensure thread delayed freeing is correct during heap_absorb; #204 2020-02-13 13:12:19 -08:00
daan
8a2a52843d delete all thread owned heaps when a thread is terminated (issue #202) 2020-02-13 12:15:23 -08:00
daan
946a71c4a9 fix issue #204 (and #205) by doing thread delayed free after absorbing the pages 2020-02-13 11:37:48 -08:00
daan
f42b8526d0 fix wrong __declspec(restrict) and __attribute__((malloc)) attributes on reallocation functions 2020-02-13 10:36:39 -08:00
daan
7d098836eb wip: basic tracking of allocation locations is working 2020-02-13 00:43:34 -08:00
daan
2fbe0e8842 wip: improving tracking of allocation locations 2020-02-11 20:27:09 -08:00
Daan Leijen
21a95c7449 wip: track allocation locations in debug mode 2020-02-11 12:19:22 -08:00
daan
4090561975 wip: initial work on tracking source of an allocation in debug mode 2020-02-11 09:37:26 -08:00
daan
04f1c3b1e2 bump version to v1.6.0 2020-02-09 18:53:39 -08:00
daan
b241be7075 reenable mimalloc in the stress test 2020-02-02 22:08:33 -08:00
daan
d516c9f99c Merge branch 'dev-exp' into dev-exp-tls 2020-02-02 22:02:16 -08:00
daan
f3c47c7c91 improved malloc zone handling on macOSX (not working yet) 2020-02-02 21:03:09 -08:00
daan
f0dc6e7e42 add extra alignment test 2020-02-02 16:21:06 -08:00
daan
bb64634e4e Merge branch 'dev-exp' into dev-exp-tls 2020-02-01 17:48:57 -08:00
daan
3f17ac287c add 'nodiscard' attribute to mimalloc interface 2020-02-01 17:29:30 -08:00
daan
0989562c2d add initial fast tls for macOSX 2020-02-01 16:57:00 -08:00
daan
a169cf0e3f merge dev-exp; add pthread TLS support for macOSX 2020-02-01 14:10:10 -08:00
daan
40f1e1e07b byte-precise heap block overflow checking with encoded padding 2020-01-31 23:39:51 -08:00
daan
68112a2751 better padding implementation, more precise statistics 2020-01-31 20:34:24 -08:00
daan
03b363a1c2 first working tls on macOS using interpose; still slow 2020-01-29 22:46:44 -08:00
daan
5d212d688f add MI_PADDING build option to add padding to each block to detect heap block overflows 2020-01-29 17:10:57 -08:00
daan
19a0d9dfa0 clean up stress test 2020-01-25 12:51:56 -08:00
daan
5e32d00aab add visit count to abandoned to limit list length 2020-01-25 12:26:08 -08:00
daan
b31bc52618 add cache alignment directives for contended variables 2020-01-24 19:02:13 -08:00
daan
e070eba112 fix tagged null encoding, search segment cache before reclaim 2020-01-24 16:31:18 -08:00
daan
8cf4882a85 fix linux build 2020-01-24 10:38:25 -08:00
daan
8b1520f5c1 make stress test deterministic 2020-01-23 21:53:28 -08:00
daan
58fdcbb0cd fix bug in collect where has_page was not set on free pages 2020-01-23 21:37:14 -08:00