This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [MinGW]: Reset/Ignore Thread Interruption for Plain[Datagram]SocketImpl


On Dec 12, 2003, at 5:28 PM, Mohan Embar wrote:

Hi People,

Operations on Plain[Datagram]Socket aren't
interruptible under Sun's JRE; this patch simply
resets and ignores the thread's interrupted
flag after such operations. With this patch,
I get an almost-perfect diff with the attached test
between Sun's JRE 1.4.2 and gcj on Win32.

+        // Reset and ignore our thread's interrupted flag.
+        // It's not possible to interrupt these sort of
+        // operations on Win32 anyway.
+        ::java::lang::Thread::interrupted();
+

Yuck! Does the Sun JRE really do this? It seems like a bug if thats the case. I can't think of any good reason to silently swallow the interrupted flag.


Regards

Bryce.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]