### Description The use of `ThreadDeath` is replaced with checking the exception be of type `Error` and the thread is `TERMINATED`.
### Test local and mach5 tier1 ------------- Commit messages: - 8301622: ProcessTools.java compilation gets ThreadDeath deprecation warning Changes: https://git.openjdk.org/jdk/pull/12827/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12827&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8301622 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/12827.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12827/head:pull/12827 PR: https://git.openjdk.org/jdk/pull/12827