changeset 55685:1ad7f5bcc670

8221482: Initialize VMRegImpl::regName[] earlier to prevent assert during PrintStubCode Reviewed-by: kvn
author lucy
date Wed, 03 Apr 2019 16:55:41 +0200
parents 7feb5e303c83
children 41356f083e93
files src/hotspot/share/runtime/init.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;