gcc/libjava/java/lang
Tom Tromey 3610e0d548 [multiple changes]
2001-05-23  Tom Tromey  <tromey@redhat.com>

	* posix-threads.cc (_Jv_self_cache): Renamed from self_cache.
	* gcj/Makefile.in: Rebuilt.
	* gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h.
	* gcj/javaprims.h: Include gcj/libgcj-config.h.
	* gcj/libgcj-config.h.in: New file.
	* libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@.
	* configure: Rebuilt.
	* configure.in: Enable hash synchronization by default on some
	platforms.
	(HASH_SYNC_SPEC): New subst.
	(AC_CONFIG_HEADER): Added gcj/libgcj-config.h.
	Correctly use `test -z' instead of `test -n' in a couple places.
	(JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to
	LIBGCJ_CXXFLAGS.
	* configure.host (enable_java_net_default): Initialize.
	(enable_hash_synchronization_default): New variable.

2001-05-23  Hans Boehm <Hans_Boehm@hp.com>

	* boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash
	synchronization in use.
	(_Jv_MarkArray): Likewise.
	(_Jv_AllocBytes): Don't check return result.
	(handle_out_of_memory): New function.
	(_Jv_InitGC): Set GC_oom_fn.
	(trace_one_vtable): New global.
	(_Jv_AllocTraceOne): New function.
	* configure.in: Added --enable-hash-synchronization.
	* defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc,
	java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked.
	* nogc.cc (_Jv_AllocObj): Throw out-of-memory.
	(_Jv_AllocArray): Likewise.
	(_Jv_AllocBytes): Likewise.
	(_Jv_AllocPtrFreeObject): New function.
	(_Jv_AllocTraceOne): Likewise.
	* posix-threads.cc (_Jv_ThreadRegister): Handle slow
	pthread_self().
	(self_cache): New global.
	(_Jv_ThreadSelf_out_of_line): New function.
	* prims.cc (_Jv_AllocBytesChecked): Removed.
	(_Jv_ThrowNoMemory): New function.
	(_Jv_AllocObject): Don't check for null return from allocator.
	(_Jv_NewObjectArray): Likewise.
	(_Jv_AllocPtrFreeObject): New function.
	(_Jv_NewPrimArray): Allocate pointer-free object if possible.
	* include/javaprims.h (_Jv_AllocPtrFreeObject): Declare.
	(_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value.
	* include/boehm-gc.h (_Jv_AllocObj): Define.
	(_Jv_AllocPtrFreeObj): Define.
	* include/jvm.h (_Jv_AllocPtrFreeObj): Declare.
	(_Jv_ThrowNoMemory): Declare.
	(_Jv_AllocTraceOne): Declare.
	(_Jv_AllocBytesChecked): Removed.
	* include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock,
	_Jv_MutexUnlock): Handle LOCK_DEBUG.
	(_Jv_ThreadSelf): Handle case where system pthread_self() is
	slow.
	* java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as
	friend.
	* java/lang/Object.h (sync_info): Conditional upon presence of
	hash synchronization.
	* java/lang/natObject.cc: Much new code to handle thin locks and
	hash synchronization.
	* java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free
	object if possible.

From-SVN: r42519
2001-05-24 05:40:37 +00:00
..
ref Makefile.am: Add HashSet.java and java/lang/ref classes. 2000-12-11 03:47:48 +00:00
reflect exception.cc (java_eh_info): Make value type jthrowable. 2001-03-25 23:05:32 -08: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 PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
Byte.java Byte.java: Remove redundant instanceof and null checks. 2001-02-09 02:56:38 +00:00
Character.java Character.java: Updated UnicodeBlock constants. 2000-12-15 05:53:39 +00:00
Class.h [multiple changes] 2001-05-24 05:40:37 +00:00
Class.java decl.c (init_decl_processing): Add new class "protectionDomain" field. 2001-04-25 16:45:15 +01: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 Class.h (_Jv_Self): New union type. 2001-05-06 14:42:11 +01:00
ClassNotFoundException.java Makefile.am: Added locale files from Classpath. 2000-10-27 10:33:46 +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 Double.java (doubleToRawLongBits): Now native. 2001-02-09 22:13:33 +00:00
dtoa.c natMath.cc: Declare fabsf() function. 2000-12-02 00:28:44 +00:00
e_acos.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_asin.c [multiple changes] 1999-06-24 20:41:47 +00:00
e_atan2.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_exp.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_fmod.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_log.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_pow.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_rem_pio2.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_remainder.c [multiple changes] 1999-06-24 20:06:09 +00:00
e_scalb.c
e_sqrt.c [multiple changes] 1999-06-24 20:06:09 +00:00
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 ExceptionInInitializerError.java (printStackTrace): Only try to print the subordinate stack trace if "exception" is set. 2001-03-12 07:47:13 +00:00
fdlibm.h natIconv.cc (read): Remove unused local. 2000-09-05 12:05:59 +01:00
Float.java Double.java (doubleToRawLongBits): Now native. 2001-02-09 22:13:33 +00:00
ieeefp.h ieeefp.h: Handle ia64, fr30, mcore. 2000-06-23 19:53:33 +00:00
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 javaprims.h (_Jv_FormatInt): New declaration. 2001-05-21 21:38:37 -07: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 [multiple changes] 1999-06-24 20:06:09 +00:00
k_rem_pio2.c [multiple changes] 1999-06-24 20:06:09 +00:00
k_sin.c [multiple changes] 1999-06-24 20:06:09 +00:00
k_tan.c [multiple changes] 1999-06-24 20:06:09 +00:00
LinkageError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Long.java javaprims.h (_Jv_FormatInt): New declaration. 2001-05-21 21:38:37 -07:00
Math.java PushbackReader.java: Merged with Classpath. 2000-11-17 04:51:25 +00:00
mprec.c
mprec.h * java/lang/mprec.h: Change C9X reference to refer to C99. 2000-12-23 23:38:51 +00:00
natCharacter.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natClass.cc [multiple changes] 2001-05-18 07:29:11 +01:00
natClassLoader.cc * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc. 2001-04-28 01:39:15 +00:00
natDouble.cc exception.cc (java_eh_info): Make value type jthrowable. 2001-03-25 23:05:32 -08:00
natEcosProcess.cc All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
natFloat.cc Double.java (doubleToRawLongBits): Now native. 2001-02-09 22:13:33 +00:00
natMath.cc natMath.cc: Declare fabsf() function. 2000-12-02 00:28:44 +00:00
natObject.cc [multiple changes] 2001-05-24 05:40:37 +00:00
natPosixProcess.cc exception.cc (java_eh_info): Make value type jthrowable. 2001-03-25 23:05:32 -08:00
natRuntime.cc exception.cc (java_eh_info): Make value type jthrowable. 2001-03-25 23:05:32 -08:00
natString.cc [multiple changes] 2001-05-24 05:40:37 +00:00
natStringBuffer.cc javaprims.h (_Jv_FormatInt): New declaration. 2001-05-21 21:38:37 -07:00
natSystem.cc natSystem.cc (getSystemTimeZone): Adjust for DST. 2001-04-20 09:43:52 +00:00
natThread.cc Implement invocation interface; don't create new thread for main. 2001-05-21 23:47:48 -07:00
natThrowable.cc configure.in (ia64-*): Don't set SYSDEP_SOURCES. 2001-05-11 23:25:03 -07:00
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 PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
NumberFormatException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
Object.h [multiple changes] 2001-05-24 05:40:37 +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
Package.java decl.c (init_decl_processing): Add new class "protectionDomain" field. 2001-04-25 16:45:15 +01: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 Runtime.java (_exit): Declare new package-private native. 2001-03-12 07:40:17 +00:00
RuntimeException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
RuntimePermission.java * java/lang/RuntimePermission.java: Class now final. 2000-12-15 06:13:35 +00:00
s_atan.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_ceil.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_copysign.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_cos.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_fabs.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_floor.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_rint.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_scalbn.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_sin.c [multiple changes] 1999-06-24 20:06:09 +00:00
s_tan.c [multiple changes] 1999-06-24 20:06:09 +00:00
SecurityException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
SecurityManager.java Jumbo patch: 2000-05-19 17:55:34 +00:00
sf_fabs.c * java/lang/sf_fabs.c: Use uint32_t, not __uint32_t. 2001-01-25 19:07:18 +00:00
sf_rint.c [multiple changes] 1999-06-24 20:06:09 +00:00
Short.java Byte.java: Remove redundant instanceof and null checks. 2001-02-09 02:56:38 +00:00
StackOverflowError.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
String.java javaprims.h (_Jv_FormatInt): New declaration. 2001-05-21 21:38:37 -07:00
StringBuffer.java javaprims.h (_Jv_FormatInt): New declaration. 2001-05-21 21:38:37 -07:00
StringIndexOutOfBoundsException.java All files: Updated copyright information. 2000-03-07 19:55:28 +00:00
strtod.c
System.java Runtime.java (_exit): Declare new package-private native. 2001-03-12 07:40:17 +00:00
Thread.java Implement invocation interface; don't create new thread for main. 2001-05-21 23:47:48 -07:00
ThreadDeath.java PropertyChangeEvent.java (serialVersionUID): Added. 2000-09-08 19:37:09 +00:00
ThreadGroup.java Runtime.java (_exit): Declare new package-private native. 2001-03-12 07:40:17 +00:00
Throwable.java Throwable.java (CPlusPlusDemangler): Pass -s java to c++filt to select java-style output. 2001-02-23 19:52:49 -08: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