We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d752ba commit b23c23dCopy full SHA for b23c23d
vm/object_memory.cpp
@@ -507,6 +507,13 @@ namespace rubinius {
507
// Don't go any further unless we're allowed to GC.
508
if(!can_gc()) return;
509
510
+ /* A pending GC is less common than not, so don't checkpoint the entire
511
+ * process to check for the condition.
512
+ *
513
+ * This is a race, but that is handled by the stop_the_world code below.
514
+ */
515
+ if(!collect_young_now && !collect_mature_now) return;
516
+
517
while(!state->stop_the_world()) {
518
state->checkpoint(gct, call_frame);
519
0 commit comments