[pypy-commit] pypy default: Temporary fix?
arigo
pypy.commits at gmail.com
Tue Mar 21 07:10:09 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r90776:f3f2566b1a08
Date: 2017-03-21 12:09 +0100
http://bitbucket.org/pypy/pypy/changeset/f3f2566b1a08/
Log: Temporary fix?
diff --git a/rpython/rlib/rthread.py b/rpython/rlib/rthread.py
--- a/rpython/rlib/rthread.py
+++ b/rpython/rlib/rthread.py
@@ -429,7 +429,11 @@
gc._trace_callback(callback, arg, p + offset)
llop.threadlocalref_release(lltype.Void)
_lambda_trace_tlref = lambda: _trace_tlref
- TRACETLREF = lltype.GcStruct('TRACETLREF')
+ # WAAAH obscurity: can't use a name that may be non-unique,
+ # otherwise the types compare equal, even though we call
+ # register_custom_trace_hook() to register different trace
+ # functions...
+ TRACETLREF = lltype.GcStruct('TRACETLREF%d' % unique_id)
_tracetlref_obj = lltype.malloc(TRACETLREF, immortal=True)
@staticmethod
More information about the pypy-commit
mailing list