Author: Alexander Schremmer <alex AT alexanderweb DOT de>
Branch: reverse-debugger-updated
Changeset: r94026:1f98c4723883
Date: 2018-03-20 13:44 +0100
http://bitbucket.org/pypy/pypy/changeset/1f98c4723883/

Log:    Make it compile, breaks identityhash of prebuilt objects.

diff --git a/rpython/translator/revdb/src-revdb/revdb.c 
b/rpython/translator/revdb/src-revdb/revdb.c
--- a/rpython/translator/revdb/src-revdb/revdb.c
+++ b/rpython/translator/revdb/src-revdb/revdb.c
@@ -410,17 +410,8 @@
 RPY_EXTERN
 Signed rpy_reverse_db_identityhash(struct pypy_header0 *obj)
 {
-    /* Boehm only */
-    if (obj->h_hash == 0) {
-        /* We never need to record anything: if h_hash is zero (which
-           is the case for all newly allocated objects), then we just
-           copy h_uid.  This gives a stable answer.  This would give
-           0 for all prebuilt objects, but these should not have a
-           null h_hash anyway.
-        */
-        obj->h_hash = obj->h_uid;
-    }
-    return obj->h_hash;
+    /* XXX This will make all prebuilt objects have id-hash 0. */
+    return obj->h_uid;
 }
 
 RPY_EXTERN
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to