8291654: AArch64: assert from JDK-8287393 causes crashes

Reviewed-by: dholmes, xliu, phh
This commit is contained in:
Evgeny Astigeevich 2022-08-02 12:01:25 +00:00 committed by Paul Hohensee
parent a9db5bb373
commit af76c0c199

@ -878,9 +878,6 @@ address MacroAssembler::trampoline_call(Address entry, CodeBuffer* cbuf,
bool in_scratch_emit_size = false;
#ifdef COMPILER2
if (check_emit_size) {
assert(StubRoutines::aarch64::complete() &&
Thread::current()->is_Compiler_thread() &&
Compile::current()->output() != NULL, "not in output phase of C2 compilation");
// We don't want to emit a trampoline if C2 is generating dummy
// code during its branch shortening phase.
CompileTask* task = ciEnv::current()->task();