--- a/src/hotspot/share/runtime/thread.cpp Mon Jun 03 21:28:45 2019 +0200
+++ b/src/hotspot/share/runtime/thread.cpp Mon Jun 03 13:21:02 2019 -0700
@@ -24,6 +24,7 @@
#include "precompiled.hpp"
#include "jvm.h"
+#include "aot/aotLoader.hpp"
#include "classfile/classLoader.hpp"
#include "classfile/javaClasses.hpp"
#include "classfile/moduleEntry.hpp"
@@ -3650,6 +3651,9 @@
initialize_class(vmSymbols::java_lang_StackOverflowError(), CHECK);
initialize_class(vmSymbols::java_lang_IllegalMonitorStateException(), CHECK);
initialize_class(vmSymbols::java_lang_IllegalArgumentException(), CHECK);
+
+ // Eager box cache initialization only if AOT is on and any library is loaded.
+ AOTLoader::initialize_box_caches(CHECK);
}
void Threads::initialize_jsr292_core_classes(TRAPS) {
@@ -3912,6 +3916,7 @@
Chunk::start_chunk_pool_cleaner_task();
}
+
// initialize compiler(s)
#if defined(COMPILER1) || COMPILER2_OR_JVMCI
#if INCLUDE_JVMCI