Re: RFR: 8296896: Change virtual Thread.yield to use external submit [v2]

2022-12-07 Thread Jaikiran Pai
On Thu, 8 Dec 2022 07:21:13 GMT, Alan Bateman wrote: >> The implementation of Thread.yield for virtual threads is currently a "lazy >> submit". This means the task for the virtual thread is queued to the >> carrier/worker local queue without signalling other threads. This behavior >> can be su

Re: RFR: 8296896: Change virtual Thread.yield to use external submit [v2]

2022-12-07 Thread Alan Bateman
On Thu, 8 Dec 2022 02:21:54 GMT, Paul Sandoz wrote: >> Alan Bateman has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains five additional >> commits s

Re: RFR: 8296896: Change virtual Thread.yield to use external submit [v2]

2022-12-07 Thread Alan Bateman
> The implementation of Thread.yield for virtual threads is currently a "lazy > submit". This means the task for the virtual thread is queued to the > carrier/worker local queue without signalling other threads. This behavior > can be surprising/unfair when there are tasks in the submission queu

Re: RFR: 8296896: Change virtual Thread.yield to use external submit

2022-12-07 Thread Paul Sandoz
On Tue, 6 Dec 2022 10:16:38 GMT, Alan Bateman wrote: > The implementation of Thread.yield for virtual threads is currently a "lazy > submit". This means the task for the virtual thread is queued to the > carrier/worker local queue without signalling other threads. This behavior > can be surpri

Re: RFR: 8296896: Change virtual Thread.yield to use external submit

2022-12-07 Thread Ron Pressler
On Tue, 6 Dec 2022 10:16:38 GMT, Alan Bateman wrote: > The implementation of Thread.yield for virtual threads is currently a "lazy > submit". This means the task for the virtual thread is queued to the > carrier/worker local queue without signalling other threads. This behavior > can be surpri

Re: RFR: 8296896: Change virtual Thread.yield to use external submit

2022-12-06 Thread Jaikiran Pai
On Tue, 6 Dec 2022 10:16:38 GMT, Alan Bateman wrote: > The implementation of Thread.yield for virtual threads is currently a "lazy > submit". This means the task for the virtual thread is queued to the > carrier/worker local queue without signalling other threads. This behavior > can be surpri

RFR: 8296896: Change virtual Thread.yield to use external submit

2022-12-06 Thread Alan Bateman
The implementation of Thread.yield for virtual threads is currently a "lazy submit". This means the task for the virtual thread is queued to the carrier/worker local queue without signalling other threads. This behavior can be surprising/unfair when there are tasks in the submission queues, say