< prev index next >

src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

Print this page
rev 7557 : 8060025: Object copy time regressions after JDK-8031323 and JDK-8057536
Summary: Evaluate and improve object copy time by micro-optimizations and splitting out slow and fast paths aggressively.
Reviewed-by:
Contributed-by: Tony Printezis <tprintezis@twitter.com>, Thomas Schatzl <thomas.schatzl@oracle.com>
rev 7558 : imported patch 8060025-mikael-review1
rev 7559 : imported patch mikael-refactor-cset-state
rev 7560 : imported patch kim-review

@@ -2761,11 +2761,11 @@
   case VerifyOption_G1UseMarkWord:
     return false;
   default:
     ShouldNotReachHere();
   }
-  return false; // Keep some compilers happy
+  return false; // keep some compilers happy
 }
 
 HeapWord* G1CollectedHeap::top_at_mark_start(HeapRegion* hr, VerifyOption vo) {
   switch (vo) {
   case VerifyOption_G1UsePrevMarking: return hr->prev_top_at_mark_start();

@@ -5093,11 +5093,11 @@
   void do_oop(oop* p) {
     oop obj = *p;
     assert(obj != NULL, "the caller should have filtered out NULL values");
 
     const InCSetState cset_state = _g1->in_cset_state(obj);
-    if (cset_state.is_not_in_cset()) {
+    if (!cset_state.is_in_cset_or_humongous()) {
       return;
     }
     if (cset_state.is_in_cset()) {
       assert( obj->is_forwarded(), "invariant" );
       *p = obj->forwardee();
< prev index next >