8234321: Call cache flush after generating trampoline
Reviewed-by: adinn, iklam
This commit is contained in:
parent
e665037932
commit
8aafb0e12c
@ -222,6 +222,7 @@ void AbstractInterpreter::update_cds_entry_table(AbstractInterpreter::MethodKind
|
||||
CodeBuffer buffer(trampoline, (int)(SharedRuntime::trampoline_size()));
|
||||
MacroAssembler _masm(&buffer);
|
||||
SharedRuntime::generate_trampoline(&_masm, _entry_table[kind]);
|
||||
_masm.flush();
|
||||
|
||||
if (PrintInterpreter) {
|
||||
Disassembler::decode(buffer.insts_begin(), buffer.insts_end());
|
||||
|
@ -2626,6 +2626,7 @@ AdapterHandlerEntry* AdapterHandlerLibrary::get_adapter(const methodHandle& meth
|
||||
MacroAssembler _masm(&buffer);
|
||||
SharedRuntime::generate_trampoline(&_masm, entry->get_c2i_entry());
|
||||
assert(*(int*)trampoline != 0, "Instruction(s) for trampoline must not be encoded as zeros.");
|
||||
_masm.flush();
|
||||
|
||||
if (PrintInterpreter) {
|
||||
Disassembler::decode(buffer.insts_begin(), buffer.insts_end());
|
||||
|
Loading…
x
Reference in New Issue
Block a user