[pypy-commit] stmgc copy-over-original2: Set the debugging flag SMALLSTUB if we allocated a small stub here.

arigo noreply at buildbot.pypy.org
Fri Jul 26 20:20:47 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
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;


More information about the pypy-commit mailing list