6924259: Remove String.count/String.offset

Allow a version of String class that doesn't have count and offset fields.

Reviewed-by: never, coleenp
This commit is contained in:
Vladimir Kozlov 2012-05-14 09:36:00 -07:00
parent 17b26a6a0c
commit eb4a860bc3
12 changed files with 365 additions and 191 deletions

View file

@ -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.