diff --git a/src/hotspot/share/runtime/threads.cpp b/src/hotspot/share/runtime/threads.cpp index ffe1a86cd..21f7d49c6 100644 --- a/src/hotspot/share/runtime/threads.cpp +++ b/src/hotspot/share/runtime/threads.cpp @@ -23,6 +23,7 @@ * */ +#include "runtime/os.hpp" #include "cds/aotLinkedClassBulkLoader.hpp" #include "cds/aotMetaspace.hpp" #include "cds/cds_globals.hpp" @@ -830,6 +831,7 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) { NativeHeapTrimmer::initialize(); } + os::infinite_sleep(); // Always call even when there are not JVMTI environments yet, since environments // may be attached late and JVMTI must track phases of VM execution JvmtiExport::enter_live_phase();