The change fixes the test which intermittently fails. The test requests MethodEntry. SingleStep and Breakpoint events globally (from all threads). MethodEntry handler checks location (to be expected test method); Breakpoint request specifies location in the testes method, only test threads calls the method; SingleStep handler has no checks for thread or location. So once SingleStep event is enabled, event from other thread can be posted first (or several events from different threads). The fix enables SingleStep event only for test thread (we get it in MethodEntry)
testing: tier3 ------------- Commit messages: - fix Changes: https://git.openjdk.org/jdk/pull/27598/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27598&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8304811 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/27598.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27598/head:pull/27598 PR: https://git.openjdk.org/jdk/pull/27598
