RFR: 8285739: disable EA when both JVMTI and Preview are enabled [v2]
Leonid Mesnik
lmesnik at openjdk.java.net
Sat May 21 16:12:50 UTC 2022
On Sat, 21 May 2022 12:14:11 GMT, Richard Reingruber <rrich at openjdk.org> wrote:
> Hi Leonid, if EscapeAnalysis is not disabled, then local objects cannot be read per JVMTI if they are scalarized in compiled frames on the heap, right? This would be a problem I'd think. Thanks, Richard.
Yes, the fix restores correct behavior for platform threads if --enable-preview is on. The [JDK-8285739](https://bugs.openjdk.java.net/browse/JDK-8285739) should fix this for virtual threads.
And as test serviceability/jvmti/Heap/IterateHeapWithEscapeAnalysisEnabled.java demonstrates there are might be methods which compiled with EA before JVMTI agent require capabilities.
I incorrectly tested my previous fix, it really doesn't pass serviceability/jvmti/Heap/IterateHeapWithEscapeAnalysisEnabled.java test with --enable-preview.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8589
More information about the serviceability-dev
mailing list