Re: RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount [v2]

2023-10-19 Thread Serguei Spitsyn
On Thu, 19 Oct 2023 09:33:49 GMT, Alan Bateman wrote: >> JVMTI is notified after a virtual thread unmounts. Right not, this >> notification is done after the virtual thread has finished parking or >> yielding so it's possible for the virtual to continue, and be mounted on a >> different carrie

Re: RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount

2023-10-19 Thread Alan Bateman
On Sat, 14 Oct 2023 18:07:45 GMT, Alan Bateman wrote: > JVMTI is notified after a virtual thread unmounts. Right not, this > notification is done after the virtual thread has finished parking or > yielding so it's possible for the virtual to continue, and be mounted on a > different carrier, b

Re: RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount [v2]

2023-10-19 Thread Alan Bateman
> JVMTI is notified after a virtual thread unmounts. Right not, this > notification is done after the virtual thread has finished parking or > yielding so it's possible for the virtual to continue, and be mounted on a > different carrier, before the unmount notification has completed on the > o

Re: RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount

2023-10-18 Thread Alan Bateman
On Wed, 18 Oct 2023 23:37:58 GMT, Serguei Spitsyn wrote: > Looks good. It is more elegant now. I was thinking if it'd make sense to move: > > * `notifyJvmtiMount(/*hide*/true);` at start of `mount()` > * `notifyJvmtiUnmount(/*hide*/false);` at end of unmount() > but I guess you wanted to have

Re: RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount

2023-10-18 Thread Serguei Spitsyn
On Sat, 14 Oct 2023 18:07:45 GMT, Alan Bateman wrote: > JVMTI is notified after a virtual thread unmounts. Right not, this > notification is done after the virtual thread has finished parking or > yielding so it's possible for the virtual to continue, and be mounted on a > different carrier, b

Re: RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount

2023-10-15 Thread Hamlin Li
On Sat, 14 Oct 2023 18:07:45 GMT, Alan Bateman wrote: > JVMTI is notified after a virtual thread unmounts. Right not, this > notification is done after the virtual thread has finished parking or > yielding so it's possible for the virtual to continue, and be mounted on a > different carrier, b

RFR: 8312777: notifyJvmtiMount before notifyJvmtiUnmount

2023-10-14 Thread Alan Bateman
JVMTI is notified after a virtual thread unmounts. Right not, this notification is done after the virtual thread has finished parking or yielding so it's possible for the virtual to continue, and be mounted on a different carrier, before the unmount notification has completed on the original car