Changeset 7a37f258
- Timestamp:
- Apr 27, 2018, 3:22:18 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- f6f0cca3
- Parents:
- 42107b4
- Location:
- src/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/GC.cc
r42107b4 r7a37f258 96 96 Generation& old = gens[--g]; 97 97 98 // ensure static roots traced 99 trace_static_roots(); 100 98 101 // collect young gen 99 102 for ( GC_Object*& obj : young ) { … … 120 123 assert(g == 0 && "Cannot do old collection when young generation is active"); 121 124 Generation& old = gens[0]; 125 126 // ensure static roots traced 127 trace_static_roots(); 122 128 123 129 // collect old gen -
src/Common/GC.h
r42107b4 r7a37f258 108 108 GC& gc = GC::get(); 109 109 traceAll(gc, roots...); 110 gc.trace_static_roots();111 110 } 112 111 … … 116 115 GC& gc = GC::get(); 117 116 traceAll(gc, roots...); 118 gc.trace_static_roots();119 117 gc.collect(); 120 118 }
Note: See TracChangeset
for help on using the changeset viewer.