Author: Manuel Jacob <m...@manueljacob.de>
Branch: reverse-debugger-updated
Changeset: r94068:899d967fe147
Date: 2018-03-22 14:30 +0100
http://bitbucket.org/pypy/pypy/changeset/899d967fe147/

Log:    Change 'hash' field to be there only for revdb.

diff --git a/rpython/memory/gctransform/boehm.py 
b/rpython/memory/gctransform/boehm.py
--- a/rpython/memory/gctransform/boehm.py
+++ b/rpython/memory/gctransform/boehm.py
@@ -28,8 +28,9 @@
         ll_malloc_varsize_no_length = mh.ll_malloc_varsize_no_length
         ll_malloc_varsize = mh.ll_malloc_varsize
 
-        fields = [("hash", lltype.Signed)]
+        fields = []
         if translator and translator.config.translation.reverse_debugger:
+            fields.append(("hash", lltype.Signed))
             fields.append(("uid", lltype.SignedLongLong))
         hints = {'hints': {'gcheader': True}}
         self.HDR = lltype.Struct("header", *fields, **hints)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to