This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Sun, 14 Dec 2003 19:08:45 -0600
- Subject: Re: [PATCH] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl
- Reply-to: gnustuff at thisiscool dot com
Hi Bryce,
>> Like you, I hoped the situation would improve for java.nio, but it
>> only has somewhat. My channels tests show that under Sun's JRE,
>> when you interrupt a thread that's blocked under Selector.select(),
>> you can reliably query the thread's interrupted status immediately
>> under Linux, but not on Windows.
>
>Surely that behaviour is a bug - it directly contradicts the spec for
>Selector....
I agree.
>> If you're interested, take NetTest.java (attached here):
>>
>> http://gcc.gnu.org/ml/java-patches/2003-q4/msg00736.html
>>
>> ...for a spin under Sun's JRE as well as both pre-patch and
>> post-patch gcj and see what you think.
>
>Thats a nice test. Have you thought about adapting it into one or more
>mauve tests?
I have. I really do want to be a team player and figure all of this stuff
out. Is there any link that talks about the different tests: jacks, the
libjava tests, Mauve and what a POSIX person typically does to certify
his or her stuff? I'm still confused and overwhelmed by this.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/