Commit d5b62460 authored by Ben Gamari's avatar Ben Gamari 🐢

NonMoving: Prefetch when clearing bitmaps

Ensure that the bitmap of the segmentt that we will clear next is in
cache by the time we reach it.
parent 32b17d50
......@@ -497,6 +497,8 @@ static void nonmovingClearBitmap(struct NonmovingSegment *seg)
static void nonmovingClearSegmentBitmaps(struct NonmovingSegment *seg)
{
while (seg) {
prefetchForRead(seg->link);
prefetchForWrite(seg->link->bitmap);
nonmovingClearBitmap(seg);
seg = seg->link;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment