Fix #650: use a card table to mark dirty sections of mutable arrays
[ghc-hetmet.git] / includes / rts / storage / Closures.h
index 6e06e57..8928268 100644 (file)
@@ -136,7 +136,9 @@ typedef struct {
 typedef struct {
     StgHeader   header;
     StgWord     ptrs;
+    StgWord     size; // ptrs plus card table
     StgClosure *payload[FLEXIBLE_ARRAY];
+    // see also: StgMutArrPtrs macros in ClosureMacros.h
 } StgMutArrPtrs;
 
 typedef struct {