[pypy-commit] pypy sandbox-2: fix

arigo pypy.commits at gmail.com
Mon Aug 26 08:19:56 EDT 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: sandbox-2
Changeset: r97263:8bd962a47352
Date: 2019-08-26 14:19 +0200
http://bitbucket.org/pypy/pypy/changeset/8bd962a47352/

Log:	fix

diff --git a/rpython/rlib/rgc.py b/rpython/rlib/rgc.py
--- a/rpython/rlib/rgc.py
+++ b/rpython/rlib/rgc.py
@@ -373,7 +373,7 @@
 
     TP = lltype.typeOf(source).TO
     assert TP == lltype.typeOf(dest).TO
-    if not lltype_is_gc(TP) and sandboxed_translation():
+    if TP._gckind != 'gc' and sandboxed_translation():
         _ll_arraycopy_of_nongc_not_for_sandboxed()
 
     # XXX: Hack to ensure that we get a proper effectinfo.write_descrs_arrays


More information about the pypy-commit mailing list