Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix #10701 & 10838
Browse files Browse the repository at this point in the history
  • Loading branch information
Safety0ff committed Oct 25, 2013
1 parent 3385c79 commit 71ca582
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gc/gc.d
Expand Up @@ -2630,7 +2630,7 @@ struct Gcx
toClear |= GCBits.BITS_1 << clearIndex;

List *list = cast(List *)p;
debug(PRINTF) printf("\tcollecting %p\n", list);
debug(COLLECT_PRINTF) printf("\tcollecting %p\n", list);
log_free(sentinel_add(list));

debug (MEMSTOMP) memset(p, 0xF3, size);
Expand Down Expand Up @@ -2744,11 +2744,15 @@ struct Gcx
{
biti = (offset & notbinsize[bins]) >> pool.shiftBy;
}
else
else if(bins == B_PAGEPLUS)
{
pn -= pool.bPageOffsets[pn];
biti = pn * (PAGESIZE >> pool.shiftBy);
}
else // bins == B_FREE
{
return IsMarked.no;
}
return pool.mark.test(biti) ? IsMarked.yes : IsMarked.no;
}
return IsMarked.unknown;
Expand Down

0 comments on commit 71ca582

Please sign in to comment.