[pypy-commit] pypy default: Fix for 64-bit: disable automatically collecting on the second external_malloc.
arigo
noreply at buildbot.pypy.org
Wed Jul 13 15:56:08 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r45555:663cb9f5a040
Date: 2011-07-13 15:55 +0200
http://bitbucket.org/pypy/pypy/changeset/663cb9f5a040/
Log: Fix for 64-bit: disable automatically collecting on the second
external_malloc.
diff --git a/pypy/rpython/memory/gc/test/test_direct.py b/pypy/rpython/memory/gc/test/test_direct.py
--- a/pypy/rpython/memory/gc/test/test_direct.py
+++ b/pypy/rpython/memory/gc/test/test_direct.py
@@ -525,6 +525,7 @@
def test_writebarrier_before_copy(self):
from pypy.rpython.memory.gc import minimark
largeobj_size = self.gc.nonlarge_max + 1
+ self.gc.next_major_collection_threshold = 99999.0
p_src = self.malloc(VAR, largeobj_size)
p_dst = self.malloc(VAR, largeobj_size)
# make them old
@@ -564,6 +565,7 @@
from pypy.rpython.memory.gc import minimark
tid = self.get_type_id(VAR)
largeobj_size = self.gc.nonlarge_max + 1
+ self.gc.next_major_collection_threshold = 99999.0
addr_src = self.gc.external_malloc(tid, largeobj_size)
addr_dst = self.gc.external_malloc(tid, largeobj_size)
hdr_src = self.gc.header(addr_src)
More information about the pypy-commit
mailing list