Skip to content

Commit 3a9ed7e

Browse files
FFY00ljfp
authored andcommitted
pythonGH-145278: also filter mmap2 in strace_helper.filter_memory (pythonGH-148648)
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent a86b1fc commit 3a9ed7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)