Withdrawn: 8359131: JShell AbstractStopExecutionTest does not stop reliably
Archie Cobbs
acobbs at openjdk.org
Tue Jun 10 18:33:33 UTC 2025
On Tue, 10 Jun 2025 14:24:15 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> The JShell regression test support class `AbstractStopExecutionTest.java` provides code that starts a JShell evaluation in one thread and then invokes `JShell.stop()` to interrupt that evaluation from another thread.
>
> This class uses a `boolean` field to synchronize the action between threads. However, this field is not marked `volatile` and so the communication is unreliable. As a result, in rare cases, the test can fail due to a timeout.
>
> The simple fix is to make the field `volatile`. This has been verified in testing to resolve the problem (see discussion in [JDK-8355323](https://bugs.openjdk.org/browse/JDK-8355323)).
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/25730
More information about the kulla-dev
mailing list