8232613: Move Object.registerNatives into HotSpot

Reviewed-by: dholmes, adinn, coleenp, lfoltan, mchung
This commit is contained in:
Claes Redestad 2019-10-24 09:57:29 +02:00
parent 68e5c40f6f
commit 574263a884
13 changed files with 312 additions and 136 deletions

View file

@ -1972,6 +1972,10 @@ void SystemDictionary::resolve_well_known_classes(TRAPS) {
resolve_wk_klasses_through(WK_KLASS_ENUM_NAME(Class_klass), scan, CHECK);
}
assert(WK_KLASS(Object_klass) != NULL, "well-known classes should now be initialized");
java_lang_Object::register_natives(CHECK);
// Calculate offsets for String and Class classes since they are loaded and
// can be used after this point.
java_lang_String::compute_offsets();