Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
6054:56d1af561395 | 6057:8f972594effc |
---|---|
1969 // Preload commonly used klasses | 1969 // Preload commonly used klasses |
1970 WKID scan = FIRST_WKID; | 1970 WKID scan = FIRST_WKID; |
1971 // first do Object, String, Class | 1971 // first do Object, String, Class |
1972 initialize_wk_klasses_through(WK_KLASS_ENUM_NAME(Class_klass), scan, CHECK); | 1972 initialize_wk_klasses_through(WK_KLASS_ENUM_NAME(Class_klass), scan, CHECK); |
1973 | 1973 |
1974 // Calculate offsets for String and Class classes since they are loaded and | |
1975 // can be used after this point. | |
1976 java_lang_String::compute_offsets(); | |
1974 java_lang_Class::compute_offsets(); | 1977 java_lang_Class::compute_offsets(); |
1975 | 1978 |
1976 // Fixup mirrors for classes loaded before java.lang.Class. | 1979 // Fixup mirrors for classes loaded before java.lang.Class. |
1977 // These calls iterate over the objects currently in the perm gen | 1980 // These calls iterate over the objects currently in the perm gen |
1978 // so calling them at this point is matters (not before when there | 1981 // so calling them at this point is matters (not before when there |