Author: Maciej Fijalkowski <fij...@gmail.com> Branch: raw-memory-pressure-nursery Changeset: r52512:3a2a46ebcc58 Date: 2012-02-15 18:09 +0200 http://bitbucket.org/pypy/pypy/changeset/3a2a46ebcc58/
Log: jit should not see add_memory_pressure diff --git a/pypy/rlib/rgc.py b/pypy/rlib/rgc.py --- a/pypy/rlib/rgc.py +++ b/pypy/rlib/rgc.py @@ -261,17 +261,23 @@ except Exception: return False # don't keep objects whose _freeze_() method explodes +@jit.dont_look_inside +@specialize.argtype(0) def add_memory_pressure(owner, estimate): """Add memory pressure for OpaquePtrs. Owner is either None or typically the object which owns the reference (the one that would free it on __del__) """ + _add_memory_pressure(owner, estimate) + +def _add_memory_pressure(owner, estimate): pass class AddMemoryPressureEntry(ExtRegistryEntry): - _about_ = add_memory_pressure + _about_ = _add_memory_pressure def compute_result_annotation(self, s_owner, s_nbytes): from pypy.annotation import model as annmodel + assert isinstance(s_nbytes, annmodel.SomeInteger) return annmodel.s_None def specialize_call(self, hop): _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit