Author: Antonio Cuni <anto.c...@gmail.com> Branch: vmprof Changeset: r74186:fd6905b8396d Date: 2014-10-24 18:06 +0100 http://bitbucket.org/pypy/pypy/changeset/fd6905b8396d/
Log: (antocuni, arigo): argh, try hard not to make it a constant diff --git a/pypy/module/_vmprof/interp_vmprof.py b/pypy/module/_vmprof/interp_vmprof.py --- a/pypy/module/_vmprof/interp_vmprof.py +++ b/pypy/module/_vmprof/interp_vmprof.py @@ -122,7 +122,8 @@ def _annotate_get_virtual_ip(self): if FALSE_BUT_NON_CONSTANT: # make sure it's annotated - get_virtual_ip(lltype.nullptr(llmemory.GCREF.TO)) + gcref = rffi.cast(llmemory.GCREF, self.counter) # just a random non-constant value + get_virtual_ip(gcref) def enable(self, space, filename, period): self._annotate_get_virtual_ip() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit