Commit Graph

100 Commits

Author SHA1 Message Date
daan 8e4e8c93a7 merge from dev 2020-04-30 20:40:48 -07:00
Anton Korobeynikov 079b886feb Add cmake option to specify whether warnings / errors are enabled by default.
Currently warnings / errors are enabled by default in debug build.
Otherwise they could be enabled only via environmental variable or
API option call. Add possibility to specify the default during the
build time. This simplifies e.g. integration of the library into
bigger projects as no source changes would be required.
2020-04-28 16:44:44 +03:00
daan 9ebb94fe17 set extra debug padding per-heap 2020-04-20 17:09:28 -07:00
daan 6b6a8a2315 fix padding check and set default extra padding to 0 2020-04-07 10:35:51 -07:00
daan 2e175c1221 merge from dev 2020-04-07 10:29:14 -07:00
daan 69a0846478 add MI_PADDING flag to cmake to supress use of padding in debug mode 2020-04-07 10:01:18 -07:00
daan 2d52b967bc merge from dev 2020-03-16 16:07:52 -07:00
daan 7745dde8d2 allow retirement for all object sizes (issue #212) 2020-03-16 15:31:37 -07:00
daan ff2fe673e5 merge with dev 2020-02-13 14:32:54 -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 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 aa68b8cbc7 improve encoding of padding canary and buffer overflow detection 2020-02-01 12:16:37 -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 4531367de2 fix padding check for aligned allocation; improve perf for small aligned allocations 2020-01-31 13:20:02 -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 5e32d00aab add visit count to abandoned to limit list length 2020-01-25 12:26:08 -08:00
daan 7a1e86fc20 merge from dev 2020-01-15 18:03:37 -08:00
daan 0099707af9 use delayed free for all pages; reduce size of the page structure for improved address calculation 2020-01-15 17:19:01 -08:00
daan c9b5ac80b3 update page reset queue to just do delayed page resets 2020-01-15 12:00:44 -08:00
daan 941c55ee42 wip: first implementation of page free list on segments for effecient delayed page reset 2020-01-14 21:47:18 -08:00
daan 683d8998d4 fix potential A-B-A problem with segment abandonment; noticed by Manual Poeter and Sam Gross 2020-01-08 17:45:38 -08:00
daan eeb623e6af increase retire limit, collect retired pages 2020-01-03 17:06:41 -08:00
daan f9ca88f71c set secure default to 0 again 2020-01-02 17:57:41 -08:00