Re: RFR: 8322829: Refactor nioBlocker to avoid blocking while holding Thread's interrupt lock [v2]

2024-01-08 Thread Serguei Spitsyn
On Mon, 8 Jan 2024 09:04:57 GMT, Alan Bateman wrote: >> In preparation for when virtual threads can unmount while holding a monitor >> or unmount when blocking on monitorenter, the implementation of >> VirtualThread's interrupt method is refactored to avoid parking/blocking >> while holding

Re: RFR: 8322829: Refactor nioBlocker to avoid blocking while holding Thread's interrupt lock [v2]

2024-01-08 Thread Jaikiran Pai
On Mon, 8 Jan 2024 09:04:57 GMT, Alan Bateman wrote: >> In preparation for when virtual threads can unmount while holding a monitor >> or unmount when blocking on monitorenter, the implementation of >> VirtualThread's interrupt method is refactored to avoid parking/blocking >> while holding

Re: RFR: 8322829: Refactor nioBlocker to avoid blocking while holding Thread's interrupt lock [v2]

2024-01-08 Thread Alan Bateman
> In preparation for when virtual threads can unmount while holding a monitor > or unmount when blocking on monitorenter, the implementation of > VirtualThread's interrupt method is refactored to avoid parking/blocking > while holding the Thread's interrupt lock. The implementations of >

Re: RFR: 8322829: Refactor nioBlocker to avoid blocking while holding Thread's interrupt lock [v2]

2024-01-08 Thread Alan Bateman
On Fri, 5 Jan 2024 17:28:30 GMT, Alan Bateman wrote: >> src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java >> line 180: >> >>> 178: Thread me = Thread.currentThread(); >>> 179: if (me.isInterrupted()) { >>> 180: