comparison src/share/vm/memory/sharedHeap.cpp @ 20258:64ac9c55d666

8034764: Use process_strong_roots to adjust the StringTable Reviewed-by: tschatzl, brutisso
author stefank
date Fri, 14 Feb 2014 09:29:56 +0100
parents 7426d8d76305
children 2c6ef90f030a
comparison
equal deleted inserted replaced
20257:7426d8d76305 20258:64ac9c55d666
237 static AlwaysTrueClosure always_true; 237 static AlwaysTrueClosure always_true;
238 238
239 void SharedHeap::process_weak_roots(OopClosure* root_closure) { 239 void SharedHeap::process_weak_roots(OopClosure* root_closure) {
240 // Global (weak) JNI handles 240 // Global (weak) JNI handles
241 JNIHandles::weak_oops_do(&always_true, root_closure); 241 JNIHandles::weak_oops_do(&always_true, root_closure);
242
243 StringTable::oops_do(root_closure);
244 } 242 }
245 243
246 void SharedHeap::set_barrier_set(BarrierSet* bs) { 244 void SharedHeap::set_barrier_set(BarrierSet* bs) {
247 _barrier_set = bs; 245 _barrier_set = bs;
248 // Cached barrier set for fast access in oops 246 // Cached barrier set for fast access in oops