diff src/share/vm/graal/graalEnv.cpp @ 15164:62e218478931

Fix regression when accessing a Graal installed code object.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Wed, 16 Apr 2014 18:20:00 +0200
parents cd22c8dbda4f
children 6eda3b299460
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.cpp	Tue Apr 15 15:31:01 2014 +0200
+++ b/src/share/vm/graal/graalEnv.cpp	Wed Apr 16 18:20:00 2014 +0200
@@ -515,7 +515,7 @@
       // (Put nm into the task handle *before* publishing to the Java heap.)
       if (task != NULL)  task->set_code(nm);
 
-      if (HotSpotNmethod::isDefault(installed_code())) {
+      if (installed_code->is_a(HotSpotNmethod::klass()) && HotSpotNmethod::isDefault(installed_code())) {
         if (entry_bci == InvocationEntryBci) {
           if (TieredCompilation) {
             // If there is an old version we're done with it