RFR: 8352773: JVMTI should disable events during java upcalls [v2]
Chris Plummer
cjplummer at openjdk.org
Wed Apr 9 23:29:33 UTC 2025
On Wed, 9 Apr 2025 22:34:47 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> src/hotspot/share/prims/jvmtiExport.cpp line 1419:
>>
>>> 1417: // ClassPrepare events are important for JDWP agent but not expected during such upcalls.
>>> 1418: // Catch if this invariant is not broken.
>>> 1419: assert(!thread->is_in_java_upcall(), "unexpected ClassPrepare event during JVMTI upcall");
>>
>> I think we should do this for ClassLoad also.
>
> Okay, thanks! Updated now.
> Catch if this invariant is not broken
I think you mean "Catch if this invariant is broken"
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24539#discussion_r2036269670
More information about the serviceability-dev
mailing list