Skip to content

Commit f82dd76

Browse files
committedMay 3, 2022
8285885: Replay compilation fails with assert(is_valid()) failed: check invoke
Reviewed-by: thartmann, kvn
1 parent be67acd commit f82dd76

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/hotspot/share/ci/ciReplay.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,12 @@ class CompileReplay : public StackObj {
398398

399399
ik->link_class(CHECK_NULL);
400400

401-
Bytecode_invoke bytecode(caller, bci);
401+
Bytecode_invoke bytecode = Bytecode_invoke_check(caller, bci);
402+
if (!Bytecodes::is_defined(bytecode.code()) || !bytecode.is_valid()) {
403+
report_error("no invoke found at bci");
404+
return NULL;
405+
}
406+
bytecode.verify();
402407
int index = bytecode.index();
403408

404409
ConstantPoolCacheEntry* cp_cache_entry = NULL;

0 commit comments

Comments
 (0)