8221482: Initialize VMRegImpl::regName[] earlier to prevent assert during PrintStubCode
authorlucy
Wed, 03 Apr 2019 16:55:41 +0200
changeset 54411 1ad7f5bcc670
parent 54410 7feb5e303c83
child 54412 41356f083e93
8221482: Initialize VMRegImpl::regName[] earlier to prevent assert during PrintStubCode Reviewed-by: kvn
src/hotspot/share/runtime/init.cpp
--- 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;