RFR: JDK-8328303: 3 JDI tests timed out with UT enabled [v2]

Alex Menkov amenkov at openjdk.org
Fri Mar 22 21:42:32 UTC 2024


On Fri, 22 Mar 2024 20:39:47 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> One more question. Why these tests are failed with the UT enabled? Or maybe this was wrong assumption?

UT can add additional events (ClassPrepareEvent, ThreadDeathEvent). As the event are requested with SUSPEND_ALL policy, debuggee VM needs to be resumed.
But the tests didn't expect "extra" events from other thread, event handler thread can exit before all events are handled, and tests fail with timeout waiting while debuggee exits.

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

PR Comment: https://git.openjdk.org/jdk/pull/18442#issuecomment-2015967581


More information about the serviceability-dev mailing list