Changeset 7a37f25 for src/Common/GC.cc


Ignore:
Timestamp:
Apr 27, 2018, 3:22:18 PM (4 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env, with_gc
Children:
f6f0cca3
Parents:
42107b4
Message:

Fix bug with static root traces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/GC.cc

    r42107b4 r7a37f25  
    9696        Generation& old = gens[--g];
    9797
     98        // ensure static roots traced
     99        trace_static_roots();
     100
    98101        // collect young gen
    99102        for ( GC_Object*& obj : young ) {
     
    120123        assert(g == 0 && "Cannot do old collection when young generation is active");
    121124        Generation& old = gens[0];
     125
     126        // ensure static roots traced
     127        trace_static_roots();
    122128
    123129        // collect old gen
Note: See TracChangeset for help on using the changeset viewer.