Re: RFR: 8352773: JVMTI should disable events during java upcalls [v2]

2025-04-09 Thread Chris Plummer
On Wed, 9 Apr 2025 22:34:47 GMT, Serguei Spitsyn 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: asse

Re: RFR: 8352773: JVMTI should disable events during java upcalls [v2]

2025-04-09 Thread Serguei Spitsyn
> As noted in [JDK-8352088](https://bugs.openjdk.org/browse/JDK-8352088), JVMTI > `GetThreadGroupChildren` does an upcall to java. This results in > a`ClassPrepare` event the first time it does this, and these events can cause > problems (deadlocks) for the debugger or debug agent. The > [JDK

Re: RFR: 8352773: JVMTI should disable events during java upcalls [v2]

2025-04-09 Thread Serguei Spitsyn
On Wed, 9 Apr 2025 19:21:21 GMT, Coleen Phillimore wrote: > So this is another case where you have to ignore JVMTI event like in VTMS > transitions? It looks like a good way to fix this in general. Yes. This is a long standing issue which is good to fix now. - PR Comment: https://