aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-05-30invokethrow.out: New file.Tom Tromey3-0/+35
* libjava.lang/invokethrow.out: New file. * libjava.lang/invokethrow.java: New file. From-SVN: r42711
2001-05-29* include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.Tom Tromey2-1/+3
From-SVN: r42694
2001-05-29configure: Rebuilt.Tom Tromey3-6/+18
* configure: Rebuilt. * configure.in: Only add multilib support code if we just rebuilt top-level Makefile. From-SVN: r42693
2001-05-29i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame pointer...Andrew Haley6-183/+102
2001-05-29 Andrew Haley <aph@redhat.com> * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame pointer: the dwarf unwinder in libgcc will do everything that's needed. (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any more than we absolutely need to. * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha. * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on Alpha. (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not "$libgcj_sjlj". * configure: Rebuilt. * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC for Alpha. (SIGNAL_HANDLER): Use siginfo style handler. (INIT_SEGV): Likewise. (INIT_FPE): Likewise. * include/ppc-signal.h: Delete whole file. From-SVN: r42691
2001-05-24natString.cc (init): Throw ArrayIndexOutOfBoundsException.Tom Tromey2-8/+16
* java/lang/natString.cc (init): Throw ArrayIndexOutOfBoundsException. (getChars): Likewise. (getBytes): Likewise. (valueOf): Likewise. From-SVN: r42531
2001-05-24configure.in: Only allow hash synchronization when POSIX threads are enabled.Tom Tromey4-232/+245
* configure.in: Only allow hash synchronization when POSIX threads are enabled. * java/lang/natObject.cc (alloc_heavy): Properly find `init' field of sync info object. From-SVN: r42530
2001-05-24Makefile.in: Rebuilt.Tom Tromey3-2/+5
* Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks. From-SVN: r42521
2001-05-24Revert patch of 2001-05-21:Tom Tromey3-67/+1568
* Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files. (libgcj_la_LIBADD): Likewise. (libgcjx_la_DEPENDENCIES): Removed x_nat_files. (libgcjx_la_LIBADD): Likewise. From-SVN: r42520
2001-05-24[multiple changes]Tom Tromey25-428/+1890
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-23jv-scan.c (version): Update copyright year.Joseph Myers2-2/+6
gcc/java: * jv-scan.c (version): Update copyright year. libjava: * gij.cc (version): Update copyright year. From-SVN: r42505
2001-05-23Fix cross builds.Anthony Green3-304/+290
From-SVN: r42497
2001-05-21Implement invocation interface; don't create new thread for main.Per Bothner22-1956/+472
From-SVN: r42428
2001-05-21Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).Per Bothner2-5/+11
* Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files). (libgcj_la_LIBADD): Likewise. (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files). From-SVN: r42424
2001-05-21javaprims.h (_Jv_FormatInt): New declaration.Per Bothner10-40/+98
* gcj/javaprims.h (_Jv_FormatInt): New declaration. * java/lang/natString.cc (_JvFormatInt): New primitive, with logic taken from old Integer.toString code. (Integer::valueOf): Use _Jv_FormatInt. * java/lang/Integer.java (toString): Just use call String.valueOf. * java/lang/Long.java (toString): Fix typo in comment. * java/lang/String.java (valueOf(int)): Make native. * java/lang/StringBuffer.java (append(int)): Make native. * java/lang/natStringBuffer.cc: New file, for append(jint). * Makefile.am (ant_source_files): Add java/lang/natStringBuffer.cc. From-SVN: r42419
2001-05-21* gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.Tom Tromey2-2/+6
From-SVN: r42405
2001-05-21dwarf2-signal.h: New file.Andrew Haley5-283/+378
2001-05-18 Andrew Haley <aph@cambridge.redhat.com> * include/dwarf2-signal.h: New file. * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC. * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC. * configure: Rebuilt. From-SVN: r42400
2001-05-21configure.in: Update boehm-gc include dir for new GC version.Bryce McKinlay9-324/+313
* configure.in: Update boehm-gc include dir for new GC version. * configure: Rebuilt. * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and extern "C" wrapper. * boehm.cc: Update includes for new GC version. MAKE_PROC is now GC_MAKE_PROC. mark_proc is now GC_mark_proc. * posix-threads.cc: Only include <gc.h>. Don't need to wrap with extern "C". From-SVN: r42380
2001-05-20ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.254.Alexandre Oliva1-283/+298
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number of subdir/configure scripts to use the new libtool.m4. From-SVN: r42351
2001-05-18posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'Alexandre Petit-Bianco2-2/+7
2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com> * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.' (_Jv_MutexInit): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00245.html ) From-SVN: r42303
2001-05-18Makefile.in: Rebuilt.Tom Tromey3-1/+8
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. From-SVN: r42276
2001-05-18[multiple changes]Bryce McKinlay5-7/+22
2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * include/jvm.h: Move "#pragma GCC java_exceptions" to ... * gcj/javaprims.h: ... here. * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions". 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com> * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error with length of ioffset table. (_Jv_IsAssignableFrom): Likewise. From-SVN: r42248
2001-05-17* Makefile.am (ZIP): The "fastjar" binary is now plain "jar".Per Bothner3-6/+10
From-SVN: r42207
2001-05-16SimpleDateFormat.java (parse): Handle non-dst time zones.Tom Tromey2-8/+23
* java/text/SimpleDateFormat.java (parse): Handle non-dst time zones. From-SVN: r42156
2001-05-15GregorianCalendar.java (computeTime): Only call getTimeZone() once.Tom Tromey2-1/+6
* java/util/GregorianCalendar.java (computeTime): Only call getTimeZone() once. From-SVN: r42121
2001-05-14SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before ↵Tom Tromey2-2/+9
computing the time. * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before computing the time. From-SVN: r42076
2001-05-13except.c (choose_personality_routine): Export.Zack Weinberg5-2/+35
gcc/cp: * except.c (choose_personality_routine): Export. Add explanatory comment. Take an enum languages, not a boolean. (initialize_handler_parm): Adjust to match. * cp-tree.h: Prototype choose_personality_routine. * lex.c (handle_pragma_java_exceptions): New function. (init_cp_pragma): Register #pragma GCC java_exceptions. gcc: * extend.texi: Document #pragma GCC java_exceptions. libjava: * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la. * Makefile.in: Regenerate (by hand). * include/jvm.h: Add #pragma GCC java_exceptions at top of file. * doc/cni.sgml: Document #pragma GCC java_exceptions. From-SVN: r42027
2001-05-11configure.in (ia64-*): Don't set SYSDEP_SOURCES.Richard Henderson4-310/+296
* configure.in (ia64-*): Don't set SYSDEP_SOURCES. * java/lang/natThrowable.cc: Don't use __ia64_backtrace. From-SVN: r41984
2001-05-11exception.cc: Include unwind-pe.h.Richard Henderson2-168/+6
* exception.cc: Include unwind-pe.h. Remove all pointer encoding logic. From-SVN: r41983
2001-05-11Makefile.in: Rebuilt.Tom Tromey3-3/+450
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. * java/awt/Polygon.java: New file. * java/awt/geom/AffineTransform.java (setToRotation(double,double,double)): New method. (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM. (setToShear): Likewise. From-SVN: r41954
2001-05-10[multiple changes]Tom Tromey11-399/+2085
2001-05-10 Tom Tromey <tromey@redhat.com> * java/util/GregorianCalendar.java: Imported from Classpath. * gnu/java/locale/LocaleInformation_nl.java: New file from Classpath. * gnu/java/locale/LocaleInformation_en.java: Likewise. * gnu/java/locale/LocaleInformation_de.java: Likewise. * gnu/java/locale/LocaleInformation.java: Likewise. * natGregorianCalendar.cc: Removed. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Removed natGregorianCalendar.cc. 2001-05-10 Tom Tromey <tromey@redhat.com> * java/text/SimpleDateFormat.java (computeCenturyStart): New method. (defaultCenturyStart): Use it. (readObject): Likewise. (SimpleDateFormat): Clear the calendar. Set the grouping on the number format. (parse): Copy the calendar before modifying it. Correctly handle the time zone. * java/util/Calendar.java (clear): Set field value(s) to 0. 2001-05-10 Jeff Sturm <jsturm@one-point.com> * Calendar.java (get): Clear areFieldsSet if requested field is not set. (set): Unset fields that depend on new value. From-SVN: r41942
2001-05-06Class.h (_Jv_Self): New union type.Bryce McKinlay3-7/+19
* java/lang/Class.h (_Jv_Self): New union type. (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to Jeff Sturm and Fergus Henderson. * java/lang/ClassLoader.java: Remove dead code fragment. From-SVN: r41876
2001-05-04Thread_Wait_Interrupt.xfail: New file.Tom Tromey10-9/+78
* libjava.lang/Thread_Wait_Interrupt.xfail: New file. * libjava.lang/Thread_Wait_2.xfail: New file. * libjava.lang/Thread_Wait.xfail: New file. * libjava.lang/Thread_Sleep.xfail: New file. * libjava.lang/Thread_Monitor.xfail: New file. * libjava.lang/Thread_Join.xfail: New file. * libjava.lang/Thread_Interrupt.xfail: New file. * libjava.lang/Thread_Alive.xfail: New file. * lib/libjava.exp (libjava_init): Set global libjava_uses_threads. (test_libjava): Document `need-threads' tag. (test_libjava_from_source): handle need-threads tag. (test_libjava_from_javac): Likewise. From-SVN: r41840
2001-05-03* libjava.lang/err11.xfail: Removed.Tom Tromey2-1/+4
From-SVN: r41817
2001-05-03jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.Martin Kahlert2-2/+8
2001-05-03 Martin Kahlert <martin.kahlert@infineon.com> * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking. (_Jv_JNI_SetPrimitiveArrayRegion): Likewise. From-SVN: r41795
2001-05-03Fix bad checkin.Andrew Haley1-1/+2
From-SVN: r41793
2001-05-03libgcj.spec.in (jc1): Add EXCEPTIONSPEC.Andrew Haley1-2/+8
2001-04-30 Andrew Haley <aph@cambridge.redhat.com> * libgcj.spec.in (jc1): Add EXCEPTIONSPEC. * configure.host (EXCEPTIONSPEC): New. * configure.in (EXCEPTIONSPEC): New. * configure: Rebuilt. From-SVN: r41786
2001-05-03* doc/*.texi: Remove generated documentation.Bryce McKinlay24-18255/+4
From-SVN: r41778
2001-05-01libgcj.spec.in (jc1): Add EXCEPTIONSPEC.Andrew Haley4-95/+99
2001-04-30 Andrew Haley <aph@cambridge.redhat.com> * libgcj.spec.in (jc1): Add EXCEPTIONSPEC. * configure.host (EXCEPTIONSPEC): New. * configure.in (EXCEPTIONSPEC): New. * configure: Rebuilt. From-SVN: r41733
2001-04-30natFile.cc (performSetReadOnly): Fix #ifdef test.Matt Kraai2-2/+7
2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu> * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test. (performDelete): Fix #endif placement. From-SVN: r41703
2001-04-28* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc.Zack Weinberg2-2/+4
From-SVN: r41651
2001-04-28prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.Zack Weinberg3-3/+9
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc. * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc. (_Jv_ThreadDestroyData): Use _Jv_Free. From-SVN: r41650
2001-04-27jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.Tom Tromey2-5/+17
* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking. (_Jv_JNI_SetPrimitiveArrayRegion): Likewise. From-SVN: r41634
2001-04-27jni.h (struct JNINativeInterface): Fixed types in Get/Set*ArrayRegion ↵Tom Tromey2-44/+50
declarations. 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com> * include/jni.h (struct JNINativeInterface): Fixed types in Get/Set*ArrayRegion declarations. (class _Jv_JNIEnv): Likewise. From-SVN: r41633
2001-04-27libjava.exp (libjava_init): Use UTF-8 encoding.Tom Tromey2-2/+13
* lib/libjava.exp (libjava_init): Use UTF-8 encoding. (test_libjava_from_javac): Likewise. From-SVN: r41617
2001-04-26configure.in: Obtain THREADS with `gcc -v'.Alexandre Oliva3-355/+287
* configure.in: Obtain THREADS with `gcc -v'. * configure: Rebuilt. From-SVN: r41571
2001-04-26re PR libgcj/2237 (serialization doesn't throw exception on failure)Bryce McKinlay4-121/+90
Fix PR libgcj/2237: * java/io/ObjectStreamClass.java (setClass): Calculate serialVersionUID for local class and compare it against the UID from the Object Stream. Throw InvalidClassException upon mismatch. (setUID): Renamed to... (getClassUID): this. Return the calculated class UID rather than setting uid field directly. (getDefinedSUID): Removed. * java/io/ObjectInputStream.java (resolveClass): Use the three-argument Class.forName(). * java/io/InvalidClassException (toString): Don't include classname in result if it is null. From-SVN: r41567
2001-04-25natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in ↵Kaveh R. Ghazi2-1/+6
HAVE_INET6. * java/net/natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6. From-SVN: r41547
2001-04-25Forgot this file on last commit.Bryce McKinlay1-3/+1
From-SVN: r41544
2001-04-25decl.c (init_decl_processing): Add new class "protectionDomain" field.Bryce McKinlay112-1550/+11880
gcc/java: 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * decl.c (init_decl_processing): Add new class "protectionDomain" field. * class.c (make_class_data): Set initial value for "protectionDomain". libjava: 2001-04-25 Bryce McKinlay <bryce@albatross.co.nz> java.security merge and ClassLoader compliance fixes. * java/lang/Class.h (Class): Include ProtectionDomain.h. New protectionDomain field. (forName): Add initialize parameter. Fixes declaration to comply with JDK spec. * java/lang/natClass.cc (forName): Correct declaration of the three-arg variant. Honour "initialize" flag. (getProtectionDomain0): New method. * java/lang/Class.java: Fix forName() declaration. (getPackage): New method based on Classpath implementation. (getProtectionDomain0): New native method decl. (getProtectionDomain): New method. * java/lang/ClassLoader.java (getParent): Now final. (definedPackages): New field. (getPackage): New. (defineClass): New variant with protectionDomain argument. (definePackage): New. (getPackages): New. (findSystemClass): Now final. (getSystemResourceAsStream): Remove redundant "final" modifier. (getSystemResource): Remove redundant "final" modifier. (getResources): Now final. (protectionDomainPermission): New static field. (unknownProtectionDomain): Ditto. (defaultProtectionDomain): Ditto. (getSystemClassLoader): Now non-native. * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct arguments for Class.forName(). * java/lang/Package.java: New file. * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed. (instance): Static initialize singleton. (findClass): Override this, not findSystemClass. * java/lang/natClassLoader.cc (defineClass0): Set class's protectionDomain field as specified. (getSystemClassLoader): Removed. (findClass): Renamed from findSystemClass. Call the interpreter via URLClassLoader.findClass if loading class via dlopen fails. * java/security/*.java: java.security import/merge with Classpath. * java/security/acl/*.java: Likewise. * java/security/interfaces/*.java: Likewise. * java/security/spec/*.java: Likewise. * java/net/NetPermission.java: Likewise. * java/net/SocketPermission.java: Likewise. * gnu/java/security/provider/DefaultPolicy.java: Likewise. * Makefile.am: Add new classes. * Makefile.in: Rebuilt. * gcj/javaprims.h: CNI namespace rebuild. From-SVN: r41543
2001-04-24configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool ↵Alexandre Oliva3-288/+356
tests. * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool tests. Pre-create gnu/classpath/Configuration.java. * configure: Rebuilt. From-SVN: r41522