File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2630,7 +2630,7 @@ struct Gcx
2630
2630
toClear |= GCBits.BITS_1 << clearIndex;
2631
2631
2632
2632
List * list = cast (List * )p;
2633
- debug (PRINTF ) printf(" \t collecting %p\n " , list);
2633
+ debug (COLLECT_PRINTF ) printf(" \t collecting %p\n " , list);
2634
2634
log_free(sentinel_add(list));
2635
2635
2636
2636
debug (MEMSTOMP ) memset(p, 0xF3 , size);
@@ -2744,11 +2744,15 @@ struct Gcx
2744
2744
{
2745
2745
biti = (offset & notbinsize[bins]) >> pool.shiftBy;
2746
2746
}
2747
- else
2747
+ else if (bins == B_PAGEPLUS )
2748
2748
{
2749
2749
pn -= pool.bPageOffsets[pn];
2750
2750
biti = pn * (PAGESIZE >> pool.shiftBy);
2751
2751
}
2752
+ else // bins == B_FREE
2753
+ {
2754
+ return IsMarked.no;
2755
+ }
2752
2756
return pool.mark.test(biti) ? IsMarked.yes : IsMarked.no;
2753
2757
}
2754
2758
return IsMarked.unknown;
You can’t perform that action at this time.
0 commit comments