|
Relates :
|
At present, the AArch64 back end does this when generating trampolines:
if (far_branches() && !Compile::current()->in_scratch_emit_size()) {
address stub = emit_trampoline_stub(start_offset, entry.target());
This is only correct for C2 compilation. The class Compile is, despite its name, only present in C2, so we must check that we are C2-compiling before calling it.