RFR: 8257967: JFR: Events for loaded agents [v10]

David Holmes dholmes at openjdk.org
Tue Mar 14 05:53:28 UTC 2023


On Thu, 9 Mar 2023 09:29:41 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

>> src/hotspot/share/runtime/threads.cpp line 338:
>> 
>>> 336:   if (EagerXrunInit && Arguments::init_libraries_at_startup()) {
>>> 337:     create_vm_init_libraries();
>>> 338:   }
>> 
>> Not obvious where this went. Changes to the initialization order can be very problematic.
>
> Thanks, David. Two calls to launch XRun agents are invoked during startup, and they depend on the EagerXrunInit option. The !EagerXrunInit case is already located in create_vm(), but the EagerXrunInit was located as the first entry in initialize_java_lang_classes(), which I thought was tucked away a bit unnecessarily.
> 
> I hoisted the EagerXrunInit case from initialize_java_lang_classes() up to create_vm(). It's now the call just before initialize_java_lang_classes().
> 
> This made it clearer, i.e. to have both calls located directly in create_vm().

Thanks for clarifying. That makes sense.

-------------

PR: https://git.openjdk.org/jdk/pull/12923


More information about the serviceability-dev mailing list