cpython/Objects/mimalloc/prim/windows/etw.man
Dino Viehland 05f2f0ac92
gh-90815: Add mimalloc memory allocator (#109914)
* Add mimalloc v2.12

Modified src/alloc.c to remove include of alloc-override.c and not
compile new handler.

Did not include the following files:

 - include/mimalloc-new-delete.h
 - include/mimalloc-override.h
 - src/alloc-override-osx.c
 - src/alloc-override.c
 - src/static.c
 - src/region.c

mimalloc is thread safe and shares a single heap across all runtimes,
therefore finalization and getting global allocated blocks across all
runtimes is different.

* mimalloc: minimal changes for use in Python:

 - remove debug spam for freeing large allocations
 - use same bytes (0xDD) for freed allocations in CPython and mimalloc
   This is important for the test_capi debug memory tests

* Don't export mimalloc symbol in libpython.
* Enable mimalloc as Python allocator option.
* Add mimalloc MIT license.
* Log mimalloc in Lib/test/pythoninfo.py.
* Document new mimalloc support.
* Use macro defs for exports as done in:
  https://github.com/python/cpython/pull/31164/

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-10-30 15:43:11 +00:00

30 lines
3.8 KiB
Groff

<?xml version="1.0" encoding="UTF-16"?>
<!-- under visual studio command prompt, run: mc .\etw.man -->
<instrumentationManifest xsi:schemaLocation="http://schemas.microsoft.com/win/2004/08/events eventman.xsd" xmlns="http://schemas.microsoft.com/win/2004/08/events" xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:trace="http://schemas.microsoft.com/win/2004/08/events/trace">
<instrumentation>
<events>
<provider name="microsoft-windows-mimalloc" guid="{138f4dbb-ee04-4899-aa0a-572ad4475779}" symbol="ETW_MI_Provider" resourceFileName="dummy" messageFileName="dummy">
<events>
<event symbol="ETW_MI_ALLOC" value="100" version="1" level="win:Informational" template="ETW_CUSTOM_HEAP_ALLOC_DATA">
</event>
<event symbol="ETW_MI_FREE" value="101" version="1" level="win:Informational" template="ETW_CUSTOM_HEAP_FREE_DATA">
</event>
</events>
<templates>
<template tid="ETW_CUSTOM_HEAP_ALLOC_DATA">
<data name="Address" inType="win:UInt64" outType="xs:unsignedLong">
</data>
<data name="Size" inType="win:UInt64" outType="xs:unsignedLong">
</data>
</template>
<template tid="ETW_CUSTOM_HEAP_FREE_DATA">
<data name="Address" inType="win:UInt64" outType="xs:unsignedLong">
</data>
<data name="Size" inType="win:UInt64" outType="xs:unsignedLong">
</data>
</template>
</templates>
</provider>
</events>
</instrumentation>
</instrumentationManifest>