diff src/share/vm/classfile/systemDictionary.cpp @ 6057:8f972594effc

6924259: Remove String.count/String.offset Summary: Allow a version of String class that doesn't have count and offset fields. Reviewed-by: never, coleenp
author kvn
date Mon, 14 May 2012 09:36:00 -0700
parents b2cd0ee8f778
children 71afdabfd05b
line wrap: on
line diff
--- a/src/share/vm/classfile/systemDictionary.cpp	Fri May 11 14:54:35 2012 -0700
+++ b/src/share/vm/classfile/systemDictionary.cpp	Mon May 14 09:36:00 2012 -0700
@@ -1971,6 +1971,9 @@
   // 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.