--- old/src/hotspot/share/compiler/compileBroker.hpp 2019-11-21 11:54:11.015952087 +0100 +++ new/src/hotspot/share/compiler/compileBroker.hpp 2019-11-21 11:54:10.763947825 +0100 @@ -350,7 +350,7 @@ static void disable_compilation_forever() { UseCompiler = false; AlwaysCompileLoopMethods = false; - Atomic::xchg(jint(shutdown_compilation), &_should_compile_new_jobs); + Atomic::xchg(&_should_compile_new_jobs, jint(shutdown_compilation)); } static bool is_compilation_disabled_forever() {