Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
  /* Perform garbage collection on the young objects. */
  void BakerGC::collect(Roots &roots, CallFrameLocationList &call_frames) {
    Object* tmp;
    ObjectArray *current_rs = object_memory->remember_set;

#ifdef RBX_GC_STATS
    stats::GCStats::get()->collect_young.start();
#endif

    object_memory->remember_set = new ObjectArray(0);
    total_objects = 0;

...