Author: Armin Rigo <[email protected]>
Branch:
Changeset: r65962:d128eac00db1
Date: 2013-08-06 11:54 +0200
http://bitbucket.org/pypy/pypy/changeset/d128eac00db1/
Log: Clarify the meaning of this constant
diff --git a/rpython/memory/gc/minimark.py b/rpython/memory/gc/minimark.py
--- a/rpython/memory/gc/minimark.py
+++ b/rpython/memory/gc/minimark.py
@@ -124,7 +124,7 @@
# note that GCFLAG_CARDS_SET is the most significant bit of a byte:
# this is required for the JIT (x86)
-TID_MASK = (first_gcflag << 8) - 1
+_GCFLAG_FIRST_UNUSED = first_gcflag << 8 # the first unused bit
FORWARDSTUB = lltype.GcStruct('forwarding_stub',
@@ -944,7 +944,7 @@
ll_assert(tid == -42, "bogus header for young obj")
else:
ll_assert(bool(tid), "bogus header (1)")
- ll_assert(tid & ~TID_MASK == 0, "bogus header (2)")
+ ll_assert(tid & -_GCFLAG_FIRST_UNUSED == 0, "bogus header (2)")
return result
def get_forwarding_address(self, obj):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit