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

Log:    Set the debugging flag SMALLSTUB if we allocated a small stub here.

diff --git a/c4/steal.c b/c4/steal.c
--- a/c4/steal.c
+++ b/c4/steal.c
@@ -104,6 +104,8 @@
     stub->h_tid = (obj->h_tid & STM_USER_TID_MASK) | GCFLAG_PUBLIC
                                                    | GCFLAG_STUB
                                                    | GCFLAG_OLD;
+    if (size == 0)
+        stub->h_tid |= GCFLAG_SMALLSTUB;
     stub->h_revision = ((revision_t)obj) | 2;
     if (obj->h_original) {
         stub->h_original = obj->h_original;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to