comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 3377:2aa9ddbb9e60

7041789: 30% perf regression with c2/arm following 7017732 Summary: Implement a more accurate is_scavengable() Reviewed-by: stefank, jcoomes, ysr
author jmasa
date Tue, 03 May 2011 10:30:34 -0700
parents 063382f9b575
children 053d84a76d3d
comparison
equal deleted inserted replaced
3373:688202ef6306 3377:2aa9ddbb9e60
1252 bool is_in_young(oop obj) { 1252 bool is_in_young(oop obj) {
1253 HeapRegion* hr = heap_region_containing(obj); 1253 HeapRegion* hr = heap_region_containing(obj);
1254 return hr != NULL && hr->is_young(); 1254 return hr != NULL && hr->is_young();
1255 } 1255 }
1256 1256
1257 #ifdef ASSERT
1258 virtual bool is_in_partial_collection(const void* p);
1259 #endif
1260
1261 virtual bool is_scavengable(const void* addr);
1262
1257 // We don't need barriers for initializing stores to objects 1263 // We don't need barriers for initializing stores to objects
1258 // in the young gen: for the SATB pre-barrier, there is no 1264 // in the young gen: for the SATB pre-barrier, there is no
1259 // pre-value that needs to be remembered; for the remembered-set 1265 // pre-value that needs to be remembered; for the remembered-set
1260 // update logging post-barrier, we don't maintain remembered set 1266 // update logging post-barrier, we don't maintain remembered set
1261 // information for young gen objects. Note that non-generational 1267 // information for young gen objects. Note that non-generational