On Wed, 8 Apr 2026 02:16:07 GMT, Leonid Mesnik <[email protected]> wrote:
> This is a bug in recompute enabled for thread filtered events. It doesn't > check current jvmti phase. > > Usually it works fine because most of thread filtered events are not "truly" > enabled before live phase. > So `JvmtiEventControllerPrivate::recompute_enabled()` doesn't create state > for them and thus doesn't call `recompute_thread_enabled` and never try to > enable singestep event (and other thread filtered events). > > > The issue happens when SingleStep event is enabled before live phase and also > one of thread filtered and early events are enabled before live phase. > > I updated test to trigger this problem by itself. Also I simplified it to > fail earlier and fail after VM Death. > > Aslo, verified with reproducer from > https://bugs.openjdk.org/browse/JDK-8381721 > by running test with async-profiler. > > Testing ther svc testing from tier5. > > --------- > - [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 now been integrated. Changeset: e82f8718 Author: Leonid Mesnik <[email protected]> URL: https://git.openjdk.org/jdk/commit/e82f871871885688d42985c1cfe00ba0dc4c35b3 Stats: 60 lines in 4 files changed: 13 ins; 34 del; 13 mod 8362350: recompute_enable hit assertion "should never come here before live phase" if happens in post_vm_start Reviewed-by: cjplummer, sspitsyn ------------- PR: https://git.openjdk.org/jdk/pull/30617
