Fwd: I can't build in MacOS

Alan Bateman Alan.Bateman at oracle.com
Tue Apr 16 15:38:18 UTC 2019


On 15/04/2019 22:20, Altan Özlü wrote:
> I get this error with building default branch too now i use java-next’s loom binaries and they work fine.
> I’m using Mojave btw and i have a question does normal sockets blocking scheduler ?
I think you are asking if blocking socket operations pin the carrier 
thread. At this time, the following (potentially blocking) operations 
are "fiber friendly" and will free up the carrier thread for other tasks 
when the operation doesn't complete immediately:

Socket: read, write, close
ServerSocket: accept, close
SocketChannel: read, write
ServerSocketChanne: accept
DatagramChannel: read, receive, write, send
Pipe.SourceChannel: read
Pipe.SinkChannel: write

Absent from the list is DatagramSocket.receive that we'll get to at some 
point. The close method of the network channels also needs a bit of work 
(trivial, just not done yet).

If you are using a library that does the socket I/O then you might run 
into issues with synchronization in the library. Running with 
-Djdk.tracePinning=full is a useful to track down many of the issues.

-Alan


More information about the loom-dev mailing list