File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,12 @@ def check(self, code):
2424 out = assert_python_failure (
2525 '-c' , code ,
2626 PYTHONMALLOC = self .PYTHONMALLOC ,
27- # FreeBSD: instruct jemalloc to not fill freed() memory
28- # with junk byte 0x5a, see JEMALLOC(3)
27+ # Instruct the system allocator to not fill freed() memory
28+ # with junk bytes:
29+ # FreeBSD: jemalloc, see JEMALLOC(3).
2930 MALLOC_CONF = "junk:false" ,
31+ # OpenBSD: see MALLOC.CONF(5).
32+ MALLOC_OPTIONS = "j" ,
3033 )
3134 stderr = out .err
3235 return stderr .decode ('ascii' , 'replace' )
@@ -102,7 +105,9 @@ def check_pyobject_is_freed(self, func_name):
102105 assert_python_ok (
103106 '-c' , code ,
104107 PYTHONMALLOC = self .PYTHONMALLOC ,
108+ # See the comment in check() above.
105109 MALLOC_CONF = "junk:false" ,
110+ MALLOC_OPTIONS = "j" ,
106111 )
107112
108113 def test_pyobject_null_is_freed (self ):
You can’t perform that action at this time.
0 commit comments