[pypy-svn] r68767 - pypy/branch/gc-dump-heap/pypy/rpython/memory/gctransform

fijal at codespeak.net fijal at codespeak.net
Mon Oct 26 19:48:01 CET 2009


Author: fijal
Date: Mon Oct 26 19:48:00 2009
New Revision: 68767

Modified:
   pypy/branch/gc-dump-heap/pypy/rpython/memory/gctransform/framework.py
Log:
push/pop roots around call to gc dump heap


Modified: pypy/branch/gc-dump-heap/pypy/rpython/memory/gctransform/framework.py
==============================================================================
--- pypy/branch/gc-dump-heap/pypy/rpython/memory/gctransform/framework.py	(original)
+++ pypy/branch/gc-dump-heap/pypy/rpython/memory/gctransform/framework.py	Mon Oct 26 19:48:00 2009
@@ -650,8 +650,10 @@
 
     def gct_gc_dump_heap(self, hop):
         op = hop.spaceop
+        livevars = self.push_roots(hop)
         hop.genop("direct_call", [self.dump_heap_ptr, self.c_const_gc],
                   resultvar=op.result)
+        self.pop_roots(hop, livevars)
 
     def gct_get_member_index(self, hop):
         op = hop.spaceop



More information about the Pypy-commit mailing list