RFR: 8285739: disable EA when both JVMTI and Preview are enabled

Leonid Mesnik lmesnik at openjdk.java.net
Mon May 9 21:51:56 UTC 2022


On Mon, 9 May 2022 21:31:12 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> Hi Leonid,
> 
> have you done some testing? [JDK-8227745](https://bugs.openjdk.java.net/browse/JDK-8227745) came with a bunch of tests. I wonder how they behave with your change.
> 
> Thanks, Richard.

Thank you for looking on this.

The EA-related tests passed and still pass when are executed without any additional options.  There is a special mode when the test runs main() method in the virtual thread. Test IterateHeapWithEscapeAnalysisEnabled.java failed before the fix and start passing after my fix. It failed because before the fix EscapeBarrier was disabled while EA was enabled and we got incorrect data.
Unfortunately, I was unable to run EATests.java in this mode even before the fix. (Not all tests are compatible with this "wrapper" mode)

The goal is to restore the same behavior as it was before JDK-8227745 is implemented when virtual threads are enabled.

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

PR: https://git.openjdk.java.net/jdk/pull/8589


More information about the hotspot-dev mailing list