Commit Graph

131 Commits

Author SHA1 Message Date
Daan Leijen 17a20f280b dont track ETW by default 2023-03-16 20:16:31 -07:00
Daan Leijen 1a99efc671 integrate ETW windows event tracing into mimalloc as another track tool 2023-03-16 20:08:43 -07:00
Xinglong He 072316bd33 add etw support 2023-03-16 17:47:20 -07:00
Daan Leijen 2e6ab0f230 add documentation for tracking tools; rename with prefix MI_TRACK_tool 2023-03-06 09:02:38 -08:00
Daan 6dcebdc303 fix sizes in memory tracking and padding for huge alignments 2023-03-04 14:49:02 -08:00
Johannes Schindelin 745a34f475 Fix whitespace
This mostly deletes trailing spaces.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2022-12-03 00:24:20 +01:00
Daan Leijen 969d8bc5fe make huge pages part of the regular page queues again 2022-11-22 20:56:35 -08:00
Daan Leijen 18cf94dff6 move keys field in the page struct to keep offsets in the fast path the same for different build variants 2022-11-18 10:14:37 -08:00
daan 3e1d800e9b potential fix for windows static linking with thread creation in dll's 2022-11-07 14:47:53 -08:00
daan 1f12c3dd12 remove MI_ALIGNMENT_MAX and add comments 2022-11-07 11:13:42 -08:00
daan 6a80fa3ac1 initial progress on removing alignment limit 2022-11-05 14:46:52 -07:00
daan 886fd7d1b8 add cmakefile MI_VALGRIND option 2022-10-30 12:49:29 -07:00
daan b48040e20a set pages to noaccess explicitly for valgrind precision 2022-10-30 12:23:11 -07:00
daan 84c706508c fix false positives from valgrind in rptest 2022-10-30 10:45:51 -07:00
daan a1f5a5d962 fix various false positives in test-stress from valgrind 2022-10-29 14:37:55 -07:00
Daan Leijen 6c91c75b14 remove thread local segment cache 2022-04-09 14:33:20 -07:00
Daan c6f32c9533 Merge pull request #528 from michaeljclark/mimalloc-fixes
mimalloc-types: amend comment adding medium to list of page kinds
2022-02-02 19:57:50 -08:00
Michael Clark 9da8788dae mimalloc-types: amend comment adding medium to list of page kinds 2022-01-19 10:14:08 +13:00
Christian Heimes 0353fc38dd Allow overrides of MI_DEBUG memory constants
CPython and Windows CRT debug builds use different values for uninit,
freed, and padding bytes. Make ``MI_DEBUG_*`` constants conditional to
allow embedders to override the constants.

Windows dbgheap:

```
_bNoMansLandFill = 0xFD
_bDeadLandFill   = 0xDD
_bCleanLandFill  = 0xCD
```

Python memory debug

```
PYMEM_CLEANBYTE      0xCD
PYMEM_DEADBYTE       0xDD
PYMEM_FORBIDDENBYTE  0xFD
```

Signed-off-by: Christian Heimes <christian@python.org>
2022-01-05 13:22:47 +01:00
Daan Leijen 89090510bd update alignment tests 2021-12-18 11:11:44 -08:00
daan 684c2c82a7 restrict max aligment boundary to prevent bug with segment determination (found by Matthew Parkinson). 2021-12-17 11:40:46 -08:00
daan 28896e5b19 prefix UNUSED,KiB,MiB,GiB; add mi_threadid_t type; add mi_ssize_t 2021-11-13 14:46:03 -08:00
Daan 75987e4590 Merge pull request #410 from jserv/enforce-binary-prefix
Distinguish SI and Binary Prefixes
2021-10-19 12:28:33 -07:00
bmalrat 30be78d97a Fixed typo in headers 2021-08-04 17:31:48 -04:00
Daan Leijen aeb62c2711 fix double quote includes 2021-06-07 16:50:31 -07:00