src/hotspot/share/runtime/sharedRuntime.cpp
changeset 59165 2c55c2fc08f5
parent 59056 15936b142f86
--- a/src/hotspot/share/runtime/sharedRuntime.cpp	Thu Nov 21 09:55:12 2019 +0800
+++ b/src/hotspot/share/runtime/sharedRuntime.cpp	Wed Nov 20 05:58:19 2019 +0000
@@ -2626,6 +2626,7 @@
       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());