OSDN Git Service

Don't send ClassFileLoadHook before JVMTI_PHASE_START.
authorAlex Light <allight@google.com>
Mon, 27 Feb 2017 18:52:29 +0000 (10:52 -0800)
committerAlex Light <allight@google.com>
Tue, 14 Mar 2017 00:45:06 +0000 (17:45 -0700)
commitd8ce4e73ef9cbbe7cb58ab4ee3258558ee4e73a7
tree988c0445016207568160123ac8063487130d8b27
parentebecb7e183eff584827555e918753e86f86e01e0
Don't send ClassFileLoadHook before JVMTI_PHASE_START.

All the classes we load prior to transitioning into JVMTI_PHASE_START
are tightly coupled into the runtime itself. For this reason
redefining them in the ways allowed by the ClassFileLoadHook during
first load could cause difficult to diagnose problems with the
runtime. Since there is no good way to determine if the new definition
is safe nor to report that the definition was ignored we instead
simply do not send this event during this stage of runtime
initialization.

Test: ./test/testrunner/testrunner.py --host -j40 -b
Change-Id: I813f2ced49a2a85e485a6f2cf94edb024799c5c0
runtime/openjdkjvmti/ti_class.cc