Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1MarkSweep.cpp @ 2177:3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank
author | coleenp |
---|---|
date | Thu, 27 Jan 2011 16:11:27 -0800 |
parents | 377371490991 |
children | 1216415d8e35 |
comparison
equal
deleted
inserted
replaced
2176:27e4ea99855d | 2177:3582bf76420e |
---|---|
170 // Visit memoized MDO's and clear any unmarked weak refs | 170 // Visit memoized MDO's and clear any unmarked weak refs |
171 GenMarkSweep::follow_mdo_weak_refs(); | 171 GenMarkSweep::follow_mdo_weak_refs(); |
172 assert(GenMarkSweep::_marking_stack.is_empty(), "just drained"); | 172 assert(GenMarkSweep::_marking_stack.is_empty(), "just drained"); |
173 | 173 |
174 | 174 |
175 // Visit symbol and interned string tables and delete unmarked oops | 175 // Visit interned string tables and delete unmarked oops |
176 SymbolTable::unlink(&GenMarkSweep::is_alive); | |
177 StringTable::unlink(&GenMarkSweep::is_alive); | 176 StringTable::unlink(&GenMarkSweep::is_alive); |
177 // Clean up unreferenced symbols in symbol table. | |
178 SymbolTable::unlink(); | |
178 | 179 |
179 assert(GenMarkSweep::_marking_stack.is_empty(), | 180 assert(GenMarkSweep::_marking_stack.is_empty(), |
180 "stack should be empty by now"); | 181 "stack should be empty by now"); |
181 } | 182 } |
182 | 183 |