[pypy-commit] pypy ec-threadlocal: Must take a GCREF argument
arigo
noreply at buildbot.pypy.org
Mon Jun 23 13:54:59 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list