Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions code/seg.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ static void segAbsFinish(Inst inst)

AVERT(Seg, seg);

RingRemove(SegPoolRing(seg));

arena = PoolArena(SegPool(seg));

/* TODO: It would be good to avoid deprotecting segments eagerly
Expand All @@ -205,6 +203,11 @@ static void segAbsFinish(Inst inst)
ShieldFlush(PoolArena(SegPool(seg)));
AVER(!seg->queued);

/* shieldDebugCheck requires SegFirst/SegNext to find all segments,
so the segment must remain on the pool ring until shield
operations are complete. */
RingRemove(SegPoolRing(seg));

limit = SegLimit(seg);

TRACT_TRACT_FOR(tract, addr, arena, seg->firstTract, limit) {
Expand Down