RFC: Too many race conditions.

Florian Weimer fw@deneb.enyo.de
Sat May 19 20:01:00 GMT 2007


* David Daney:
> I have been thinking about:
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29604
>> My inclination is to do nothing. My analysis (int the bug report),
> makes me think that to fix the race, all I/O operations would have to
> enter a synchronized block twice. This would create a tremendous
> overhead.
>> Opinions?

| Any thread currently blocked in an I/O operation upon this socket
| will throw a SocketException.

<http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#close()>
This requires a fairly elaborate wrapper anyway. 8-(


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /