Changeset 7a37f258


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

Fix bug with static root traces

Location:
src/Common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/GC.cc

    r42107b4 r7a37f258  
    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
  • src/Common/GC.h

    r42107b4 r7a37f258  
    108108        GC& gc = GC::get();
    109109        traceAll(gc, roots...);
    110         gc.trace_static_roots();
    111110}
    112111
     
    116115        GC& gc = GC::get();
    117116        traceAll(gc, roots...);
    118         gc.trace_static_roots();
    119117        gc.collect();
    120118}
Note: See TracChangeset for help on using the changeset viewer.