src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp
changeset 52142 ca0c25e01c5b
parent 51996 84743156e780
child 52178 199658d1ef86
--- a/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp	Tue Oct 16 13:16:11 2018 +0200
+++ b/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp	Tue Oct 16 13:18:22 2018 +0200
@@ -2160,6 +2160,9 @@
   // -2 because return address is already present and so is saved rbp
   __ subptr(rsp, stack_size - 2*wordSize);
 
+  BarrierSetAssembler* bs = BarrierSet::barrier_set()->barrier_set_assembler();
+  bs->nmethod_entry_barrier(masm);
+
   // Frame is now completed as far as size and linkage.
   int frame_complete = ((intptr_t)__ pc()) - start;