On Sat, 10 Oct 2026 07:09:41 GMT, Yunbo Zhang <[email protected]> wrote:

> Please review this small fix.
> 
> `SetExtensionEventCallback()` registers the callback but does not enable the 
> event.
> 
> **Fix:**
> 
> Update the user-enabled bit when setting or clearing the callback, and add 
> mount/unmount protection when updating the event state.
> 
> **Testing:**
> 
> - Removed explicit mount/unmount enabling from `libVThreadEventTest.cpp` to 
> verify that callback registration enables the events.
> - In `libMethodExitTest.cpp`, disable these events after registration, since 
> the test enables them per thread at the second breakpoint.
> - `serviceability/jvmti`: 264 passed, 0 failed.
> - `vmTestbase/nsk/jvmti`: 586 passed, 0 failed.
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has been closed without being integrated.

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

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

Reply via email to