hotspot/src/share/vm/gc/g1/heapRegion.cpp
changeset 42650 1f304d0c888b
parent 42589 037b433e8069
child 46258 d26ebd7e2f10
--- a/hotspot/src/share/vm/gc/g1/heapRegion.cpp	Sun Dec 11 12:05:57 2016 -0800
+++ b/hotspot/src/share/vm/gc/g1/heapRegion.cpp	Sun Dec 11 19:07:04 2016 -0800
@@ -528,7 +528,7 @@
     _hr(hr), _failures(false) {}
 
   void do_code_blob(CodeBlob* cb) {
-    nmethod* nm = (cb == NULL) ? NULL : cb->as_nmethod_or_null();
+    nmethod* nm = (cb == NULL) ? NULL : cb->as_compiled_method()->as_nmethod_or_null();
     if (nm != NULL) {
       // Verify that the nemthod is live
       if (!nm->is_alive()) {