mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-142419: Add mmap.set_name method for user custom annotation (gh-142480)
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user