Author: Armin Rigo <ar...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit