On Tue, 1 Dec 2026 17:01:43 GMT, Leonid Mesnik <[email protected]> wrote:
>> During exit VM disable execution of new JVMTI events and waits for already >> started events before changing jvmti phase to dead. >> >> Thus it exits from VM event then it block itself. The fix updates vm_death >> to wait only events on the other threads. >> >> >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Leonid Mesnik has updated the pull request incrementally with one additional > commit since the last revision: > > updated after feedback test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TransformerExitInPremainTest.java line 78: > 76: > 77: public static void premain(String agentArgs, Instrumentation > inst) { > 78: System.exit(0); This only tests _current_thread_in_callback_count being incremented to 1. If you instead register a transformer here and then trigger the loading of a class, you could have the transformer call exit(0) when that class is loaded. _current_thread_in_callback_count would be 2 at that case. Note if the class load succeeds, you should fail the test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/34135#discussion_r4764516186
