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

Print this page
rev 6559 : 8046231: G1: Code root location ... from nmethod ... not in strong code roots for region
Reviewed-by:

@@ -6991,11 +6991,11 @@
     nmethod* nm = (cb != NULL) ? cb->as_nmethod_or_null() : NULL;
     if (nm == NULL) {
       return;
     }
 
-    if (ScavengeRootsInCode && nm->detect_scavenge_root_oops()) {
+    if (ScavengeRootsInCode) {
       _g1h->register_nmethod(nm);
     }
   }
 };