This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] for Review: SelectorImpl.wakeup() + Synchronization
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Fri, 19 Dec 2003 11:11:38 -0600
- Subject: Re: [PATCH] for Review: SelectorImpl.wakeup() + Synchronization
- Reply-to: gnustuff at thisiscool dot com
>> Reading the JavaDoc, I think I see how they want us to implement interruption,
>> but I think they way we've implemented interruptible I/O on POSIX and Win32
>> precludes us from doing this and forces us to do the inverse: that wakeup()
>> uses Thread.interrupt() under the covers.
>
>I think I need to dig into chaos some time soon.
I'll redo the patch with the corrections you mentioned, leave AbstractSelector
alone and make the begin() and end() calls (which will do nothing). I'll
let you figure out what to do from there. If it's any consolation, the output
diffs beautifully between Sun's JRE and post-patch gcj.
I'm trying to get in the Sun people's heads, but can't figure out what they
want begin() and end() for (in AbstractSelector) or why they think Thread.interrupt()
should call wakeup() instead of the other way around. Even on Win32, it makes
more sense (to me) to leverage Thread.interrupt() for wakeup()....
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/