comparison src/share/vm/memory/sharedHeap.cpp @ 10179:a08c80e9e1e5

8012687: Remove unused is_root checks and closures Reviewed-by: tschatzl, jmasa
author stefank
date Mon, 22 Apr 2013 20:27:36 +0200
parents be4d5c6c1f79
children 001ec9515f84
comparison
equal deleted inserted replaced
10178:d391427ddc29 10179:a08c80e9e1e5
216 bool do_object_b(oop p) { return true; } 216 bool do_object_b(oop p) { return true; }
217 }; 217 };
218 static AlwaysTrueClosure always_true; 218 static AlwaysTrueClosure always_true;
219 219
220 void SharedHeap::process_weak_roots(OopClosure* root_closure, 220 void SharedHeap::process_weak_roots(OopClosure* root_closure,
221 CodeBlobClosure* code_roots, 221 CodeBlobClosure* code_roots) {
222 OopClosure* non_root_closure) {
223 // Global (weak) JNI handles 222 // Global (weak) JNI handles
224 JNIHandles::weak_oops_do(&always_true, root_closure); 223 JNIHandles::weak_oops_do(&always_true, root_closure);
225 224
226 CodeCache::blobs_do(code_roots); 225 CodeCache::blobs_do(code_roots);
227 StringTable::oops_do(root_closure); 226 StringTable::oops_do(root_closure);
228 } 227 }
229 228
230 void SharedHeap::set_barrier_set(BarrierSet* bs) { 229 void SharedHeap::set_barrier_set(BarrierSet* bs) {
231 _barrier_set = bs; 230 _barrier_set = bs;
232 // Cached barrier set for fast access in oops 231 // Cached barrier set for fast access in oops
233 oopDesc::set_bs(bs); 232 oopDesc::set_bs(bs);