r116896 - in /branches/gcj-eclipse/libjava: Cha...
aph@gcc.gnu.org
aph@gcc.gnu.org
Tue Sep 12 17:16:00 GMT 2006
Author: aph
Date: Tue Sep 12 17:16:06 2006
New Revision: 116896
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116896
Log:
2006-09-12 Andrew Haley <aph@redhat.com>
* java/lang/Thread.java (alive_flag): Make it a byte.
(THREAD_DEAD, THREAD_ALIVE, THREAD_SIGNALED): new constants.
(parkPermit): New variable.
(data): Now package private.
(Thread): Set alive_flag to THREAD_DEAD, not false.
(isAlive): Test against THREAD_DEAD.
* java/lang/natThread.cc (initialize_native): Initialize
park_mutex and park_cond.
(finish_): Set parkPermit THREAD_PARK_DEAD.
(interrupt): Rewrite. Use an atomic update rather than a mutex to
access alive_flag.
If the thread is parked, unpark it.
(start): Set alive_flag to THREAD_ALIVE, not true.
(finalize_native): Destroy park_mutex and park_cond.
* sun/misc/natUnsafe.cc (unpark): New method.
(park): New method.
* include/jvm.h (struct natThread): Moved here.
Modified:
branches/gcj-eclipse/libjava/ChangeLog
branches/gcj-eclipse/libjava/include/jvm.h
branches/gcj-eclipse/libjava/java/lang/Thread.java
branches/gcj-eclipse/libjava/java/lang/natThread.cc
branches/gcj-eclipse/libjava/sun/misc/natUnsafe.cc
More information about the Gcc-cvs
mailing list