Author: Armin Rigo <[email protected]>
Branch: gc-del-3
Changeset: r84193:724566fe8685
Date: 2016-05-04 18:32 +0200
http://bitbucket.org/pypy/pypy/changeset/724566fe8685/

Log:    Translation fix

diff --git a/rpython/memory/gctransform/framework.py 
b/rpython/memory/gctransform/framework.py
--- a/rpython/memory/gctransform/framework.py
+++ b/rpython/memory/gctransform/framework.py
@@ -1520,7 +1520,7 @@
 
     def get_finalizer_queue_index(self, hop):
         fq_tag = hop.spaceop.args[0].value
-        assert fq_tag.expr == 'FinalizerQueue TAG'
+        assert 'FinalizerQueue TAG' in fq_tag.expr
         fq = fq_tag.default
         try:
             index = self.finalizer_queue_indexes[fq]
diff --git a/rpython/memory/gcwrapper.py b/rpython/memory/gcwrapper.py
--- a/rpython/memory/gcwrapper.py
+++ b/rpython/memory/gcwrapper.py
@@ -216,7 +216,7 @@
         self.gcdata.finalizer_handlers = llmemory.cast_ptr_to_adr(ll_handlers)
 
     def get_finalizer_queue_index(self, fq_tag):
-        assert fq_tag.expr == 'FinalizerQueue TAG'
+        assert 'FinalizerQueue TAG' in fq_tag.expr
         fq = fq_tag.default
         try:
             index = self.finalizer_queue_indexes[fq]
diff --git a/rpython/rlib/rgc.py b/rpython/rlib/rgc.py
--- a/rpython/rlib/rgc.py
+++ b/rpython/rlib/rgc.py
@@ -495,7 +495,9 @@
         self.bookkeeper.emulate_pbc_call(self.bookkeeper.position_key,
                                          s_func, [])
         if not hasattr(fq, '_fq_tag'):
-            fq._fq_tag = CDefinedIntSymbolic('FinalizerQueue TAG', default=fq)
+            fq._fq_tag = CDefinedIntSymbolic(
+                '0 /*FinalizerQueue TAG for %s*/' % fq.__class__.__name__,
+                default=fq)
         return self.bookkeeper.immutablevalue(fq._fq_tag)
 
     def specialize_call(self, hop):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to