[pypy-commit] pypy reverse-debugger: fixes
arigo
pypy.commits at gmail.com
Fri Jul 1 18:17:55 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: reverse-debugger
Changeset: r85506:e5e2c4c6d62f
Date: 2016-07-01 23:29 +0200
http://bitbucket.org/pypy/pypy/changeset/e5e2c4c6d62f/
Log: fixes
diff --git a/pypy/module/_cffi_backend/hide_reveal.py b/pypy/module/_cffi_backend/hide_reveal.py
--- a/pypy/module/_cffi_backend/hide_reveal.py
+++ b/pypy/module/_cffi_backend/hide_reveal.py
@@ -1,6 +1,5 @@
from rpython.rlib import rgc
from rpython.rlib.rweaklist import RWeakListMixin
-from rpython.rlib.objectmodel import fetch_translated_config
from rpython.rtyper.lltypesystem import lltype, llmemory, rffi
@@ -19,7 +18,7 @@
def hide_object(self, obj):
# XXX leaks if we call this function often on the same object
index = self.glob_gcrefs.add_handle(obj)
- return rffi.cast(llmemory.Address, index)
+ return rffi.cast(rffi.VOIDP, index)
def reveal_object(self, Class, addr):
index = rffi.cast(lltype.Signed, addr)
@@ -47,8 +46,7 @@
hide_reveal_fast = HideRevealCast()
def hide_reveal():
- config = fetch_translated_config()
- if config is not None and config.translation.split_gc_address_space:
+ if rgc.must_split_gc_address_space():
return hide_reveal_slow
else:
return hide_reveal_fast
More information about the pypy-commit
mailing list