The kill sends async exception that is thrown somewhere during log.display(...) method. The log shows that it is thrown while PrintStream locking moving it into an inconsistent state. So the fix is to use some method that could be safely interrupted by async exception.
------------- Commit messages: - dot added. - 8333235: vmTestbase/nsk/jdb/kill/kill001/kill001.java fails with C1 Changes: https://git.openjdk.org/jdk/pull/19547/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19547&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8333235 Stats: 14 lines in 1 file changed: 11 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/19547.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19547/head:pull/19547 PR: https://git.openjdk.org/jdk/pull/19547