Mercurial > hg > truffle
diff src/share/vm/runtime/deoptimization.cpp @ 15161:2c940b1a48d8
Convert InstalledCode from an interface into an abstract class.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 15 Apr 2014 15:01:40 +0200 |
parents | ed29f7ff71eb |
children | bb97b75d1d65 |
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp Tue Apr 15 13:27:16 2014 +0200 +++ b/src/share/vm/runtime/deoptimization.cpp Tue Apr 15 15:01:40 2014 +0200 @@ -1485,7 +1485,10 @@ #ifdef GRAAL oop installedCode = nm->graal_installed_code(); if (installedCode != NULL) { - oop installedCodeName = HotSpotNmethod::name(installedCode); + oop installedCodeName = NULL; + if (installedCode->is_a(HotSpotNmethod::klass())) { + installedCodeName = HotSpotNmethod::name(installedCode); + } if (installedCodeName != NULL) { tty->print(" (Graal: installedCodeName=%s) ", java_lang_String::as_utf8_string(installedCodeName)); } else {