RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx] (original) (raw)
Michael McMahon michael.x.mcmahon at oracle.com
Mon Jan 23 09:09:24 PST 2012
- Previous message: Review request for 7130360: [macosx] Packed JInternalFrame invisible on Aqua L&F
- Next message: RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can I get the following change reviewed please?
http://cr.openjdk.java.net/~michaelm/7131399/webrev.1/
The problem is that poll(2) doesn't seem to work in a specific edge case tested by JCK, namely, when a zero length UDP message is sent on a DatagramSocket. The problem is only detected on timed reads, ie. normal blocking reads work fine.
The fix is to make the NET_Timeout() function use select() instead of poll().
Thanks, Michael.
- Previous message: Review request for 7130360: [macosx] Packed JInternalFrame invisible on Aqua L&F
- Next message: RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]