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-6357005 by running test with async-profiler. Testing ther svc testing from tier5. ------------- Commit messages: - 8362350 Changes: https://git.openjdk.org/jdk/pull/30617/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30617&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8362350 Stats: 54 lines in 3 files changed: 10 ins; 26 del; 18 mod Patch: https://git.openjdk.org/jdk/pull/30617.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30617/head:pull/30617 PR: https://git.openjdk.org/jdk/pull/30617
