This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Too many race conditions.
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: David Daney <ddaney at avtrex dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 19 May 2007 22:01:20 +0200
- Subject: Re: RFC: Too many race conditions.
- References: <464F3346.6040700@avtrex.com>
* 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-(