Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v5]

2023-03-22 Thread Serguei Spitsyn
> The fix is to enable virtual threads support for late binding JVMTI agents. > The fix includes: > - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which > does enabling JVMTI VTMS transition notifications in case of agent loaded > into running VM. This function executes a

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Serguei Spitsyn
On Thu, 23 Mar 2023 02:02:01 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> minor cleanup in enable_virtual_threads_notify_jvmti() > > src/hotspot/share/prims/jvmtiThreadState.hpp line 102:

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Serguei Spitsyn
On Thu, 23 Mar 2023 02:00:56 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> minor cleanup in enable_virtual_threads_notify_jvmti() > > src/hotspot/share/prims/jvmtiEnvBase.hpp line 87: > >>

Re: RFR: 8304725: AsyncGetCallTrace can cause SIGBUS on M1

2023-03-22 Thread David Holmes
On Wed, 22 Mar 2023 15:57:40 GMT, Johannes Bechberger wrote: > Fixes the issue by transitioning the thread into the WXWrite mode while > walking the stack in AsyncGetCallTrace. > > Tested on my M1 mac. Seems okay. But I am really over this game of whack-a-mole with ThreadWXEnable.

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Chris Plummer
On Wed, 22 Mar 2023 19:06:34 GMT, Serguei Spitsyn wrote: >> The fix is to enable virtual threads support for late binding JVMTI agents. >> The fix includes: >> - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which >> does enabling JVMTI VTMS transition notifications in case

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Serguei Spitsyn
On Wed, 22 Mar 2023 21:36:57 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> minor cleanup in enable_virtual_threads_notify_jvmti() > > src/hotspot/share/prims/jvmtiExport.cpp line 389: > >>

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Serguei Spitsyn
On Wed, 22 Mar 2023 21:11:45 GMT, Chris Plummer wrote: > > The fix is to enable support for late binding JVMTI agents. > Just to be clear, the late binding support was already there, but wasn't > working properly with virtual threads. Correct? Nice catch. Right, it is virtual threads support.

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Chris Plummer
On Wed, 22 Mar 2023 19:06:34 GMT, Serguei Spitsyn wrote: >> The fix is to enable support for late binding JVMTI agents. >> The fix includes: >> - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which >> does enabling JVMTI VTMS transition notifications in case of agent loaded

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Chris Plummer
On Wed, 22 Mar 2023 19:06:34 GMT, Serguei Spitsyn wrote: >> The fix is to enable support for late binding JVMTI agents. >> The fix includes: >> - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which >> does enabling JVMTI VTMS transition notifications in case of agent loaded

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v4]

2023-03-22 Thread Serguei Spitsyn
> The fix is to enable support for late binding JVMTI agents. > The fix includes: > - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which > does enabling JVMTI VTMS transition notifications in case of agent loaded > into running VM. This function executes a VM operation

Integrated: 8304376: Rename t1/t2 classes in com/sun/jdi/CLETest.java to avoid class duplication error in IDE

2023-03-22 Thread Leonid Mesnik
On Thu, 16 Mar 2023 23:54:13 GMT, Leonid Mesnik wrote: > The com/sun/jdi tests are located in the on package, and classes with same > name cause 'class duplication error' when this directory is opened as source > code in IDE. > > The simplest fix to avoid this is just to rename class. This

Re: RFR: 8291555: Implement alternative fast-locking scheme [v29]

2023-03-22 Thread Vladimir Kozlov
On Wed, 22 Mar 2023 09:46:04 GMT, Roman Kennke wrote: >> src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp line 670: >> >>> 668: get_thread (scrReg);// beware: clobbers ICCs >>> 669: movptr(Address(boxReg, OM_OFFSET_NO_MONITOR_VALUE_TAG(owner)), >>> scrReg); >>> 670:

Re: RFR: 8291555: Implement alternative fast-locking scheme [v29]

2023-03-22 Thread Vladimir Kozlov
On Wed, 22 Mar 2023 09:47:47 GMT, Roman Kennke wrote: >> src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp line 791: >> >>> 789: Compile::current()->output()->add_stub(stub); >>> 790: jcc(Assembler::notEqual, stub->entry()); >>> 791: bind(stub->continuation()); >> >> Why use stub

Re: RFR: 8301995: Move invokedynamic resolution information out of ConstantPoolCacheEntry [v11]

2023-03-22 Thread Matias Saavedra Silva
> The current structure used to store the resolution information for > invokedynamic, ConstantPoolCacheEntry, is difficult to interpret due to its > ambigious fields f1 and f2. This structure can hold information for fields, > methods, and invokedynamics and each of its fields can hold

RFR: 8304725: AsyncGetCallTrace can cause SIGBUS on M1

2023-03-22 Thread Johannes Bechberger
Fixes the issue by transitioning the thread into the WXWrite mode while walking the stack in AsyncGetCallTrace. Tested on my M1 mac. - Commit messages: - Fix 8304725 Changes: https://git.openjdk.org/jdk/pull/13144/files Webrev: https://webrevs.openjdk.org/?repo=jdk=13144=00

Re: RFR: 8291555: Implement alternative fast-locking scheme [v29]

2023-03-22 Thread Roman Kennke
On Wed, 22 Mar 2023 00:25:43 GMT, Vladimir Kozlov wrote: >> Roman Kennke has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Merge remote-tracking branch 'origin/JDK-8291555-v2' into JDK-8291555-v2 >> - Set condition flags correctly

Re: RFR: 8257967: JFR: Events for loaded agents [v10]

2023-03-22 Thread David Holmes
On Tue, 21 Mar 2023 00:53:31 GMT, Serguei Spitsyn wrote: >> Markus Grönlund has updated the pull request incrementally with one >> additional commit since the last revision: >> >> more cleanup > > src/hotspot/share/prims/jvmtiEnvBase.hpp line 166: > >> 164: >> 165: const void*

Re: RFR: 8297286: runtime/vthread tests crashing after JDK-8296324 [v3]

2023-03-22 Thread Serguei Spitsyn
> The fix is to enable support for late binding JVMTI agents. > The fix includes: > - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which > does enabling JVMTI VTMS transition notifications in case of agent loaded > into running VM. This function executes a VM operation