On Sat, 21 May 2022 12:14:11 GMT, Richard Reingruber <rr...@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