aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/classfile/systemDictionary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/vm/classfile/systemDictionary.cpp')
-rw-r--r--src/share/vm/classfile/systemDictionary.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/share/vm/classfile/systemDictionary.cpp b/src/share/vm/classfile/systemDictionary.cpp
index 04bb9d9f5..0bdc16de6 100644
--- a/src/share/vm/classfile/systemDictionary.cpp
+++ b/src/share/vm/classfile/systemDictionary.cpp
@@ -1971,6 +1971,9 @@ void SystemDictionary::initialize_preloaded_classes(TRAPS) {
// first do Object, String, Class
initialize_wk_klasses_through(WK_KLASS_ENUM_NAME(Class_klass), scan, CHECK);
+ // Calculate offsets for String and Class classes since they are loaded and
+ // can be used after this point.
+ java_lang_String::compute_offsets();
java_lang_Class::compute_offsets();
// Fixup mirrors for classes loaded before java.lang.Class.