gh-142419: Add mmap.set_name method for user custom annotation (gh-142480)

This commit is contained in:
Donghee Na
2025-12-18 23:33:49 +09:00
committed by GitHub
parent d2abd5733b
commit 14f0b5191a
11 changed files with 159 additions and 14 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ jit_alloc(size_t size)
unsigned char *memory = mmap(NULL, size, prot, flags, -1, 0);
int failed = memory == MAP_FAILED;
if (!failed) {
_PyAnnotateMemoryMap(memory, size, "cpython:jit");
(void)_PyAnnotateMemoryMap(memory, size, "cpython:jit");
}
#endif
if (failed) {