Skip to content

Commit 5c82e2e

Browse files
committed
Don't abort 1/2 way through chunk
1 parent 1d74647 commit 5c82e2e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

gc/default/default.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5095,12 +5095,6 @@ gc_sweep_step_worker(rb_objspace_t *objspace, rb_heap_t *heap)
50955095
batch_tail = page;
50965096
}
50975097
batch_count++;
5098-
5099-
/* Halfway into a batch, do a cheap atomic peek at the abort flag.
5100-
* If a Ruby thread has raised it, drain what we have and bail */
5101-
if (batch_count == (chunk_sz / 2) && rbimpl_atomic_load(&objspace->background_sweep_abort, RBIMPL_ATOMIC_ACQUIRE)) {
5102-
break;
5103-
}
51045098
}
51055099

51065100
if (batch_head != NULL) {

0 commit comments

Comments
 (0)