8153498: Update the PostVMInitHook mechanism to use an internal package in the base module
authorchegar
Sat, 09 Apr 2016 23:03:25 +0100
changeset 36850 ada6dcfa50dc
parent 36849 3b68a6f2da68
child 36851 03e2f4d0a421
8153498: Update the PostVMInitHook mechanism to use an internal package in the base module Reviewed-by: alanb, lfoltan
hotspot/src/share/vm/classfile/vmSymbols.hpp
hotspot/src/share/vm/runtime/thread.cpp
--- a/hotspot/src/share/vm/classfile/vmSymbols.hpp	Thu Apr 07 11:04:36 2016 -0700
+++ b/hotspot/src/share/vm/classfile/vmSymbols.hpp	Sat Apr 09 23:03:25 2016 +0100
@@ -120,7 +120,7 @@
   template(jdk_internal_misc_Signal,                  "jdk/internal/misc/Signal")                 \
   template(java_lang_AssertionStatusDirectives,       "java/lang/AssertionStatusDirectives")      \
   template(getBootClassPathEntryForClass_name,        "getBootClassPathEntryForClass")            \
-  template(sun_misc_PostVMInitHook,                   "sun/misc/PostVMInitHook")                  \
+  template(jdk_internal_vm_PostVMInitHook,            "jdk/internal/vm/PostVMInitHook")           \
   template(sun_net_www_ParseUtil,                     "sun/net/www/ParseUtil")                    \
                                                                                                   \
   template(jdk_internal_loader_ClassLoaders_AppClassLoader,      "jdk/internal/loader/ClassLoaders$AppClassLoader")      \
--- a/hotspot/src/share/vm/runtime/thread.cpp	Thu Apr 07 11:04:36 2016 -0700
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Sat Apr 09 23:03:25 2016 +0100
@@ -1051,7 +1051,7 @@
 // General purpose hook into Java code, run once when the VM is initialized.
 // The Java library method itself may be changed independently from the VM.
 static void call_postVMInitHook(TRAPS) {
-  Klass* k = SystemDictionary::resolve_or_null(vmSymbols::sun_misc_PostVMInitHook(), THREAD);
+  Klass* k = SystemDictionary::resolve_or_null(vmSymbols::jdk_internal_vm_PostVMInitHook(), THREAD);
   instanceKlassHandle klass (THREAD, k);
   if (klass.not_null()) {
     JavaValue result(T_VOID);