Skip to content

Commit 45e145f

Browse files
author
Matias Saavedra Silva
committed
8359057: AbstractInterpreter::is_not_reached returns incorrectly with invokedynamic
Reviewed-by: vlivanov
1 parent 4377e7c commit 45e145f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/interpreter/abstractInterpreter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ bool AbstractInterpreter::is_not_reached(const methodHandle& method, int bci) {
258258
case Bytecodes::_invokedynamic: {
259259
assert(invoke_bc.has_index_u4(code), "sanity");
260260
int method_index = invoke_bc.get_index_u4(code);
261-
return cpool->resolved_indy_entry_at(method_index)->is_resolved();
261+
bool is_resolved = cpool->resolved_indy_entry_at(method_index)->is_resolved();
262+
return !is_resolved;
262263
}
263264
case Bytecodes::_invokevirtual: // fall-through
264265
case Bytecodes::_invokeinterface: // fall-through

0 commit comments

Comments
 (0)