We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbe85e7 commit 57cd5dbCopy full SHA for 57cd5db
Lib/test/support/strace_helper.py
@@ -81,10 +81,10 @@ def filter_memory(syscalls):
81
def _filter(call):
82
# mmap can operate on a fd or `NULL` which gives a block of memory.
83
# Ignore the `NULL` ones.
84
- if call.syscall == 'mmap' and call.args[0] == 'NULL':
+ if call.syscall == "mmap" and "MAP_ANON" in call.args[3]:
85
return False
86
87
- if call.syscall in ('munmap', 'mprotect'):
+ if call.syscall in ("munmap", "mprotect"):
88
89
90
return True
0 commit comments