[jdk11u-dev] RFR: 8303861: Error handling step timeouts should never be blocked by OnError and others

Alexey Pavlyutkin duke at openjdk.org
Fri May 5 10:35:29 UTC 2023


HI!

Here is backport of JDK-8303861. The patch fixes error reporting timeout processing for the case when a user specifies OnError hook. Before the patch in this case JVM just ignored timeout and therefore WatcherThread could not break malloc() deadlock in error reporting routine.

The patch from 17 applied with the only change: in `void WatcherThread::run()` is located in `thread.cpp` (`nonJavaThread.cpp` in 17).

Verification/regression (amd64/LTS20.04): test/hotspot/jtreg/runtime/ErrorHandling (includes updated test)

-------------

Commit messages:
 - Backport a00f5d24d3824e3ab84208401a967efe0e7bf88e

Changes: https://git.openjdk.org/jdk11u-dev/pull/1856/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=1856&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8303861
  Stats: 97 lines in 3 files changed: 61 ins; 1 del; 35 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/1856.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/1856/head:pull/1856

PR: https://git.openjdk.org/jdk11u-dev/pull/1856


More information about the jdk-updates-dev mailing list