Author: Armin Rigo <[email protected]>
Branch: copy-over-original2
Changeset: r458:efe729c34c6f
Date: 2013-07-26 19:57 +0200
http://bitbucket.org/pypy/stmgc/changeset/efe729c34c6f/

Log:    hg backout 5c385b2b629a: it's still needed

diff --git a/c4/extra.c b/c4/extra.c
--- a/c4/extra.c
+++ b/c4/extra.c
@@ -105,9 +105,12 @@
                  p, (gcptr)p->h_original));
     }
     else {
-        /* must create shadow original object
-           (XXX could use the backup, if it exists) */
+        /* must create shadow original object XXX: or use
+           backup, if exists */
         gcptr O = (gcptr)stmgcpage_malloc(stmgc_size(p));
+        memcpy(O, p, stmgc_size(p)); /* at least major collections
+                                      depend on some content of id_copy.
+                                      remove after fixing that XXX */
         O->h_tid |= GCFLAG_OLD;
 
         p->h_original = (revision_t)O;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to