[pypy-commit] pypy lightweight-finalizers: remove track_alloc_stop support, not needed any more

fijal noreply at buildbot.pypy.org
Tue Oct 25 16:59:35 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: lightweight-finalizers
Changeset: r48441:d80d4e3f457a
Date: 2011-10-25 16:58 +0200
http://bitbucket.org/pypy/pypy/changeset/d80d4e3f457a/

Log:	remove track_alloc_stop support, not needed any more

diff --git a/pypy/rpython/lltypesystem/lloperation.py b/pypy/rpython/lltypesystem/lloperation.py
--- a/pypy/rpython/lltypesystem/lloperation.py
+++ b/pypy/rpython/lltypesystem/lloperation.py
@@ -400,7 +400,7 @@
     'raw_store':            LLOp(),
     'stack_malloc':         LLOp(), # mmh
     'track_alloc_start':    LLOp(),
-    'track_alloc_stop':     LLOp(canrun=True),
+    'track_alloc_stop':     LLOp(),
     'adr_add':              LLOp(canfold=True),
     'adr_sub':              LLOp(canfold=True),
     'adr_delta':            LLOp(canfold=True),
diff --git a/pypy/rpython/lltypesystem/opimpl.py b/pypy/rpython/lltypesystem/opimpl.py
--- a/pypy/rpython/lltypesystem/opimpl.py
+++ b/pypy/rpython/lltypesystem/opimpl.py
@@ -4,7 +4,6 @@
 from pypy.rpython.lltypesystem import lltype, llmemory
 from pypy.rpython.lltypesystem.lloperation import opimpls
 from pypy.rlib import debug
-from pypy.tool import leakfinder
 
 # ____________________________________________________________
 # Implementation of the 'canfold' operations
@@ -599,9 +598,6 @@
     from pypy.rlib.rtimer import read_timestamp
     return read_timestamp()
 
-def op_track_alloc_stop(addr):
-    leakfinder.remember_free(addr.ptr._obj)
-
 # ____________________________________________________________
 
 def get_op_impl(opname):


More information about the pypy-commit mailing list