diff --git a/src/hotspot/cpu/s390/stubGenerator_s390.cpp b/src/hotspot/cpu/s390/stubGenerator_s390.cpp index f11521efee5..5d6b836f1e2 100644 --- a/src/hotspot/cpu/s390/stubGenerator_s390.cpp +++ b/src/hotspot/cpu/s390/stubGenerator_s390.cpp @@ -3152,6 +3152,13 @@ class StubGenerator: public StubCodeGenerator { // Arraycopy stubs used by compilers. generate_arraycopy_stubs(); + + // nmethod entry barriers for concurrent class unloading + BarrierSetNMethod* bs_nm = BarrierSet::barrier_set()->barrier_set_nmethod(); + if (bs_nm != NULL) { + StubRoutines::zarch::_nmethod_entry_barrier = generate_nmethod_entry_barrier(); + } + } void generate_compiler_stubs() { @@ -3199,12 +3206,6 @@ class StubGenerator: public StubCodeGenerator { StubRoutines::_sha512_implCompressMB = generate_SHA512_stub(true, "SHA512_multiBlock"); } - // nmethod entry barriers for concurrent class unloading - BarrierSetNMethod* bs_nm = BarrierSet::barrier_set()->barrier_set_nmethod(); - if (bs_nm != NULL) { - StubRoutines::zarch::_nmethod_entry_barrier = generate_nmethod_entry_barrier(); - } - #ifdef COMPILER2 if (UseMultiplyToLenIntrinsic) { StubRoutines::_multiplyToLen = generate_multiplyToLen();