7086560: 7085404 changes broke VM with -XX:-EnableInvokeDynamic
Add check that ciEnv::_CallSite_klass is initialized. Reviewed-by: jrose
This commit is contained in:
parent
b13890a199
commit
dece7fbfec
@ -176,7 +176,10 @@ public:
|
||||
bool is_transient () { return flags().is_transient(); }
|
||||
|
||||
bool is_call_site_target() {
|
||||
return (holder()->is_subclass_of(CURRENT_ENV->CallSite_klass()) && (name() == ciSymbol::target_name()));
|
||||
ciInstanceKlass* callsite_klass = CURRENT_ENV->CallSite_klass();
|
||||
if (callsite_klass == NULL)
|
||||
return false;
|
||||
return (holder()->is_subclass_of(callsite_klass) && (name() == ciSymbol::target_name()));
|
||||
}
|
||||
|
||||
// Debugging output
|
||||
|
Loading…
Reference in New Issue
Block a user