8221482: Initialize VMRegImpl::regName[] earlier to prevent assert during PrintStubCode
Reviewed-by: kvn
--- a/src/hotspot/share/runtime/init.cpp Wed Apr 03 13:30:05 2019 +0530
+++ b/src/hotspot/share/runtime/init.cpp Wed Apr 03 16:55:41 2019 +0200
@@ -122,6 +122,7 @@
accessFlags_init();
templateTable_init();
InterfaceSupport_init();
+ VMRegImpl::set_regName(); // need this before generate_stubs (for printing oop maps).
SharedRuntime::generate_stubs();
universe2_init(); // dependent on codeCache_init and stubRoutines_init1
javaClasses_init();// must happen after vtable initialization, before referenceProcessor_init
@@ -139,7 +140,6 @@
if (!compileBroker_init()) {
return JNI_EINVAL;
}
- VMRegImpl::set_regName();
if (!universe_post_init()) {
return JNI_ERR;