Author: Armin Rigo <[email protected]>
Branch: ec-threadlocal
Changeset: r72161:bbf90bac634b
Date: 2014-06-23 13:54 +0200
http://bitbucket.org/pypy/pypy/changeset/bbf90bac634b/

Log:    Must take a GCREF argument

diff --git a/rpython/rlib/rthread.py b/rpython/rlib/rthread.py
--- a/rpython/rlib/rthread.py
+++ b/rpython/rlib/rthread.py
@@ -315,7 +315,8 @@
                 from rpython.rtyper.annlowlevel import 
cast_instance_to_base_ptr
                 from rpython.rlib.rgc import _make_sure_does_not_move
                 ptr = cast_instance_to_base_ptr(value)
-                _make_sure_does_not_move(ptr)
+                gcref = lltype.cast_opaque_ptr(llmemory.GCREF, ptr)
+                _make_sure_does_not_move(gcref)
                 llop.threadlocalref_set(lltype.Void, opaque_id, ptr)
             else:
                 self.local.value = value
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to