Skip to content

Commit

Permalink
Use run_gc_soon method
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Jan 11, 2013
1 parent 903ee7c commit 592485d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vm/capi/gc.cpp
Expand Up @@ -35,9 +35,7 @@ extern "C" {

// Normally ignore this. It's almost always a hack.
if(getenv("RBX_RESPECT_RB_GC")) {
env->state()->vm()->om->collect_young_now = true;
env->state()->vm()->om->collect_mature_now = true;
env->state()->shared().gc_soon();
env->state()->vm()->run_gc_soon();
}
}

Expand Down

0 comments on commit 592485d

Please sign in to comment.