Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r58780:d28cbc6eaf86
Date: 2012-11-07 11:45 +0100
http://bitbucket.org/pypy/pypy/changeset/d28cbc6eaf86/

Log:    Should make the "extra" flag really independent from any other flag
        used in the GC.

diff --git a/pypy/rpython/memory/gc/semispace.py 
b/pypy/rpython/memory/gc/semispace.py
--- a/pypy/rpython/memory/gc/semispace.py
+++ b/pypy/rpython/memory/gc/semispace.py
@@ -33,6 +33,8 @@
 #   - we have our own extra field to store the hash
 GC_HASH_HASFIELD   = _GCFLAG_HASH_BASE * 0x3
 
+GCFLAG_EXTRA = first_gcflag << 5    # for RPython abuse only
+
 memoryError = MemoryError()
 
 
@@ -41,8 +43,8 @@
     inline_simple_malloc = True
     inline_simple_malloc_varsize = True
     malloc_zero_filled = True
-    first_unused_gcflag = first_gcflag << 5
-    gcflag_extra = GCFLAG_FINALIZATION_ORDERING
+    first_unused_gcflag = first_gcflag << 6
+    gcflag_extra = GCFLAG_EXTRA
 
     HDR = lltype.Struct('header', ('tid', lltype.Signed))   # XXX or rffi.INT?
     typeid_is_in_field = 'tid'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to