Skip to content

Commit

Permalink
fix broken assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
shwestrick committed Feb 16, 2024
1 parent 63603a2 commit 27116ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/gc/hierarchical-heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,8 +1143,10 @@ HM_HierarchicalHeap HM_HH_getCurrent(GC_state s) {
}

pointer HM_HH_getFrontier(GC_thread thread) {
assert(blockOf(HM_getChunkFrontier(thread->currentChunk)) == (pointer)thread->currentChunk);
return HM_getChunkFrontier(thread->currentChunk);
pointer result = HM_getChunkFrontier(thread->currentChunk);
assert(inFirstBlockOfChunk(thread->currentChunk, result)
|| HM_getChunkLimit(thread->currentChunk) == result);
return result;
}

pointer HM_HH_getLimit(GC_thread thread) {
Expand Down

0 comments on commit 27116ab

Please sign in to comment.