summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index c9ee20e585..d8383222cf 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -1217,6 +1217,12 @@ void ClassLinker::RunRootClinits(Thread* self) {
// Initialize empty arrays needed by `StackOverflowError`.
WellKnownClasses::java_util_Collections_EMPTY_LIST,
WellKnownClasses::libcore_util_EmptyArray_STACK_TRACE_ELEMENT,
+ // Initialize boxing caches needed by the compiler.
+ WellKnownClasses::java_lang_Byte_ByteCache_cache,
+ WellKnownClasses::java_lang_Character_CharacterCache_cache,
+ WellKnownClasses::java_lang_Integer_IntegerCache_cache,
+ WellKnownClasses::java_lang_Long_LongCache_cache,
+ WellKnownClasses::java_lang_Short_ShortCache_cache,
};
for (ArtField* field : fields_of_classes_to_initialize) {
EnsureRootInitialized(this, self, field->GetDeclaringClass());