[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Another java.lang.Runtime patch
From: |
Jeroen Frijters |
Subject: |
[cp-patches] FYI: Another java.lang.Runtime patch |
Date: |
Tue, 28 Dec 2004 13:52:03 +0100 |
Hi,
I committed the attached patch to fix a (potential) problem with
shutdown hook threads that have a lower priority than the thread doing
the shutdown processing.
The previous implementation relied on Thread.yield() to give the
shutdown hook threads time to run, but on IKVM (and I suspect most
Windows based VMs), Thread.yield() doesn't yield to lower priority
threads. This caused the loop to spin forever if the thread initiating
the shutdown has a high priority.
Regards,
Jeroen
2004-12-28 Jeroen Frijters <address@hidden>
* java/lang/Runtime.java
(runShutdownHooks): Rewrote wait for shutdown hooks loop.
runtime.patch.txt
Description: runtime.patch.txt
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Another java.lang.Runtime patch,
Jeroen Frijters <=