gcc/libjava/java/lang
Bryce McKinlay b834f1fa06 Makefile.in: New #defines and friends for Thread.h.
* Makefile.in: New #defines and friends for Thread.h.
        * posix-threads.cc: (struct starter): Remove `object'.
        (_Jv_CondWait): Use interruptable condition variables and new
        recursive mutexes. New return codes on interrupt or non-ownership
        of mutex.
        (_Jv_CondNotify): Ditto.
        (_Jv_CondNotifyAll): Ditto.
        (_Jv_ThreadInterrupt): Set thread interrupt flag directly. Interrupt
        the target thread by signaling its wait condition.
        (_Jv_ThreadInitData): Set `thread_obj' in the thread data struct,
        not the starter struct. Initialize wait_mutex and wait_cond.
        (_Jv_MutexLock): New recursive mutex implementation. Moved from
        posix-threads.h.
        (_Jv_MutexUnlock): Ditto.
        (really_start): Set info->data->thread from pthread_self() to work
        around a race condition. Destroy wait_mutex and wait_cond when run()
        returns.
        * java/lang/Thread.java: (isInterrupted_): Renamed to overloaded
        `isInterrupted(boolean)'. Clear interrupted flag if clear_flag is
        set.
        startable_flag: New private field.
        (Thread): Initialize `startable_flag'.
        (toString): Check for null thread group.
        * java/lang/natThread.cc: (struct natThread): New fields
        `join_mutex', `join_cond'. Removed fields `joiner', `next'.
        (class locker): Removed.
        (initialize_native): Initialize `join_cond' and `join_mutex'.
        (interrupt): Now just calls _Jv_ThreadInterrupt().
        (join): Simplified. Just wait on the target thread's join condition.
        (finish_): Remove join list code. Unset thread group. Signal
        potential joiners by notifying the dying threads join_cond.
        (start): Check for illegal restarts.
        * java/lang/natObject.cc: Check for return value of _Jv_CondWait and
        act appropriatly.
        * include/posix-threads.h: Remove all HAVE_RECURSIVE_MUTEX related
        #defines and #ifdefs.
        (struct _Jv_Thread_t): New fields `thread_obj', `wait_cond',
        `wait_mutex', `next'.
        (struct _Jv_ConditionVariable_t): Define as a struct instead of
        directly mapping to pthread_cond_t.
        (struct _Jv_Mutex_t): New recursive implementation.
        (_Jv_PthreadCheckMonitor): Reimplemented. Simple `owner' check.
        _Jv_HaveCondDestroy: Never define this for posix-threads.
        (_Jv_CondNotify): Remove inline implementation(s), prototype instead.
        (_Jv_CondNotifyAll): Ditto.
        (_Jv_MutexLock): Ditto.
        (_Jv_MutexUnlock): Ditto.
        (_Jv_MutexInit): Changed to reflect new mutex implementation.
        (_Jv_MutexDestroy): Ditto.
        (_Jv_CondDestroy): Removed.
        (_Jv_PthreadGetMutex): Removed.
        * include/win32-threads.h: (_Jv_CondNotify): Guess _JV_NOT_OWNER on an
        error. Add a FIXME about this.
        (_Jv_CondNotifyAll): Ditto.
        * win32-threads.cc: (_Jv_CondWait): Return 0 on a timeout. Guess
        _JV_NOT_OWNER on other errors. Add FIXME.

From-SVN: r32773
2000-03-28 03:22:24 +01:00
..
reflect natArray.cc (newInstance): Don't allow array of `void' to be created. 2000-03-09 04:50:49 +00:00
AbstractMethodError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ArithmeticException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ArrayIndexOutOfBoundsException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ArrayStoreException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Boolean.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Byte.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Character.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Class.h All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Class.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ClassCastException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ClassCircularityError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ClassFormatError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ClassLoader.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ClassNotFoundException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Cloneable.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
CloneNotSupportedException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Comparable.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Compiler.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Double.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
dtoa.c
e_acos.c
e_asin.c
e_atan2.c
e_exp.c
e_fmod.c
e_log.c
e_pow.c
e_rem_pio2.c
e_remainder.c
e_scalb.c
e_sqrt.c
EcosProcess.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Error.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Exception.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ExceptionInInitializerError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
fdlibm.h
Float.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ieeefp.h
IllegalAccessError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IllegalAccessException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IllegalArgumentException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IllegalMonitorStateException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IllegalStateException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IllegalThreadStateException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IncompatibleClassChangeError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
IndexOutOfBoundsException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
InstantiationError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
InstantiationException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Integer.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
InternalError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
InterruptedException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
k_cos.c
k_rem_pio2.c
k_sin.c
k_tan.c
LinkageError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Long.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Math.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
mprec.c
mprec.h [multiple changes] 2000-03-26 20:33:04 +00:00
natCharacter.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natClass.cc * java/lang/natClass.cc (isInstance): Use JV_CLASS, not getClass(). 2000-03-21 05:54:42 +00:00
natClassLoader.cc natClassLoader.cc (_Jv_FindArrayClass): Call _Jv_PrepareConstantTimeTables. 2000-03-09 09:22:36 +00:00
natDouble.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natEcosProcess.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natFloat.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natMath.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natObject.cc Makefile.in: New #defines and friends for Thread.h. 2000-03-28 03:22:24 +01:00
natPosixProcess.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natRuntime.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natString.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natSystem.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natThread.cc Makefile.in: New #defines and friends for Thread.h. 2000-03-28 03:22:24 +01:00
natThrowable.cc
NegativeArraySizeException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NoClassDefFoundError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NoSuchFieldError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NoSuchFieldException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NoSuchMethodError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NoSuchMethodException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NullPointerException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Number.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
NumberFormatException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Object.h All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Object.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
OutOfMemoryError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
PosixProcess.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Process.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Runnable.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Runtime.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
RuntimeException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
s_atan.c
s_ceil.c
s_copysign.c
s_cos.c
s_fabs.c
s_floor.c
s_rint.c
s_scalbn.c
s_sin.c
s_tan.c
SecurityException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SecurityManager.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
sf_rint.c
Short.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
StackOverflowError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
String.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
StringBuffer.java
StringIndexOutOfBoundsException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
strtod.c
System.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Thread.java Makefile.in: New #defines and friends for Thread.h. 2000-03-28 03:22:24 +01:00
ThreadDeath.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
ThreadGroup.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Throwable.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
UnknownError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
UnsatisfiedLinkError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
UnsupportedOperationException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
VerifyError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
VirtualMachineError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Void.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
w_acos.c
w_asin.c
w_atan2.c
w_exp.c
w_fmod.c
w_log.c
w_pow.c
w_remainder.c
w_sqrt.c