Skip to content

Commit 1880772

Browse files
committed
GH-145278: also filter mmap2 in strace_helper.filter_memory
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 0fcf2b7 commit 1880772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/support/strace_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def sections(self):
7474
def _filter_memory_call(call):
7575
# mmap can operate on a fd or "MAP_ANONYMOUS" which gives a block of memory.
7676
# Ignore "MAP_ANONYMOUS + the "MAP_ANON" alias.
77-
if call.syscall == "mmap" and "MAP_ANON" in call.args[3]:
77+
if call.syscall in ("mmap", "mmap2") and "MAP_ANON" in call.args[3]:
7878
return True
7979

8080
if call.syscall in ("munmap", "mprotect"):

0 commit comments

Comments
 (0)