aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-05-04Locale.java (Locale): Don't explicitly check for null.Tom Tromey10-57/+50
* java/util/Locale.java (Locale): Don't explicitly check for null. * java/util/Hashtable.java (containsKey): Don't explicitly check for null. (get): Likewise. * java/util/BitSet.java (and, or, xor): Don't explicitly check for null. * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check for null. * java/text/StringCharacterIterator.java (StringCharacterIterator): Don't check for null. * java/text/ChoiceFormat.java (setChoices): Don't explicitly check for null pointer. * java/net/MulticastSocket.java (joinGroup): Don't explicitly check for null pointer. (leaveGroup): Likewise. * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous comment. (setData): Likewise. * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check for `p==null'. From-SVN: r33671
2000-05-01Makefile.am (GCJCOMPILE, [...]): Move -L option out of FLAGS.Jakub Jelinek3-20/+29
2000-04-28 Jakub Jelinek <jakub@redhat.com> * Makefile.am (GCJCOMPILE, JCFLAGS, JF1CLAGS, jv_convert_LINK, gij_LINK, libgcj.zip, .java=.class): Move -L option out of FLAGS. (libgcj_la_LDFLAGS): Add -L../libstdc++ for in-gcc builds. (jv_convert_LDFLAGS, gij_LDFLAGS): Add `pwd`/../libstdc++ to -rpath for in-gcc builds. * Makefile.in: Rebuilt. From-SVN: r33587
2000-04-28Removed mistakenly-committed ChangeLog entryTom Tromey1-11/+0
From-SVN: r33512
2000-04-28re GNATS gcj/218 (Java executables can abort trying to access a null pointer ↵Tom Tromey2-1/+17
in a leaf function) * libgcj.spec.in (*jc1): Added -fasynchronous-exceptions. Fix for PR gcj/218. From-SVN: r33511
2000-04-28String.java (toString): Remove `final' hack.Bryce McKinlay2-3/+4
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz> * libjava/java/lang/String.java (toString): Remove `final' hack. From-SVN: r33508
2000-04-28Test for PR gcj/218:Bryce McKinlay3-0/+35
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz> Test for PR gcj/218: * libjava.lang/PR218.java: New file. * libjava.lang/PR218.out: New file. From-SVN: r33506
2000-04-27Runtime support for PR gcj/2:Tom Tromey3-0/+13
* prims.cc (_Jv_ThrowNullPointerException): New function. * include/jvm.h (_Jv_ThrowNullPointerException): Declare. From-SVN: r33492
2000-04-27prims.cc (_Jv_NewObjectArray): Fix typo.Bryce McKinlay2-1/+5
2000-04-27 Bryce McKinlay <bryce@albatross.co.nz> * prims.cc (_Jv_NewObjectArray): Fix typo. From-SVN: r33479
2000-04-26Makefile.in: Rebuilt.Tom Tromey3-51/+27
* Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Added -fasynchronous-exceptions. From-SVN: r33447
2000-04-25MethodFailure4.java: New file.Alexandre Petit-Bianco3-0/+46
2000-04-25 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.compile/MethodFailure4.java: New file. * libjava.compile/MethodFailure4.out: New file. From-SVN: r33415
2000-04-24natFirstThread.cc (run): Initialize class before calling main.Jeff Sturm2-4/+8
* gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before calling main. From-SVN: r33377
2000-04-22+ 2000-04-22 Anthony Green <green@cygnus.com> + + * include/jvm.h ↵Anthony Green7-34/+65
(__builtin_expect): Define as unused for now. + 2000-04-22 Anthony Green <green@cygnus.com> + + * include/jvm.h (__builtin_expect): Define as unused for now. + * java/lang/natObject.cc (_Jv_MonitorEnter): Add __builtin_expect. + (notify): Ditto. + (notifyAll): Ditto. + (wait): Ditto. + (_Jv_MonitorExit): Ditto. + * boehm.cc (_Jv_MarkObj): Ditto. + (_Jv_MarkObj): Ditto. + (_Jv_MarkArray): Ditto. + (_Jv_AllocBytes): Ditto. + * prims.cc (_Jv_AllocObject): Ditto. + (_Jv_NewObjectArray): Ditto. + (_Jv_NewPrimArray): Ditto. + (_Jv_Malloc): Ditto. + (_Jv_Realloc): Ditto. + (_Jv_MallocUnchecked): Ditto. + (_Jv_divI): Ditto. + (_Jv_remI): Ditto. + (_Jv_divJ): Ditto. + (_Jv_remJ): Ditto. + + * include/Makefile.in: Rebuilt. + * include/Makefile.am (include_HEADERS): Add jvmpi.h. + From-SVN: r33339
2000-04-21PipedInputStream.java, [...]: Yet another new version from Classpath.Tom Tromey3-27/+16
* java/io/PipedInputStream.java, java/io/PipedOutputStream.java: Yet another new version from Classpath. From-SVN: r33328
2000-04-21re GNATS libgcj/15 (_REENTRANT should be defined more consistently)Tom Tromey3-164/+216
Fix for PR libgcj/15: * java/util/natGregorianCalendar.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/net/natInetAddress.cc (_REENTRANT): Don't define. * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * configure: Rebuilt. * configure.in: If using POSIX threads, define _REENTRANT if needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define GETHOSTBYNAME_R_NEEDS_REENTRANT. From-SVN: r33319
2000-04-21re GNATS libgcj/15 (_REENTRANT should be defined more consistently)Tom Tromey5-28/+16
Fix for PR libgcj/15: * java/util/natGregorianCalendar.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/net/natInetAddress.cc (_REENTRANT): Don't define. * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * configure: Rebuilt. * configure.in: If using POSIX threads, define _REENTRANT if needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define GETHOSTBYNAME_R_NEEDS_REENTRANT. From-SVN: r33318
2000-04-21PipedInputStream.java, [...]: New version from Classpath.Tom Tromey3-241/+214
* java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PipedOutputStream.java, java/io/PipedWriter.java: New version from Classpath. From-SVN: r33316
2000-04-21re GNATS libgcj/213 (Another parallel build error)Tom Tromey3-68/+35
Fix for PR libgcj/213: * Makefile.in: Rebuilt. * Makefile.am (gij_SOURCES): Added gij.cc. (EXTRA_gij_SOURCES): Removed. (gij_LDADD): Removed gij.lo. (gij_DEPENDENCIES): Likewise. ($(gij_OBJECTS)): Depend on nat_headers. From-SVN: r33307
2000-04-21Handler.java (openConnection): Use `setURL', not `url.set'.Tom Tromey2-2/+7
* gnu/gcj/protocol/file/Handler.java (openConnection): Use `setURL', not `url.set'. From-SVN: r33306
2000-04-21Fix for PR java.io/204:Tom Tromey5-568/+1431
* java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PipedOutputStream.java, java/io/PipedWriter.java: Imported from Classpath. From-SVN: r33300
2000-04-21block.java: New file.Alexandre Petit-Bianco3-0/+20
* libjava.compile/block.java: New file. * libjava.compile/block.out: New file. From-SVN: r33298
2000-04-20re GNATS libgcj/212 (build is broken on Linux/Alpha)Tom Tromey4-31/+36
Fix for PR libgcj/212: * gcj/javaprims.h (_Jv_word, _Jv_word2): Removed definitions. * include/jvm.h (_Jv_word, _Jv_word2): Define. * java/lang/Class.h (_Jv_word): Declare. From-SVN: r33292
2000-04-20throwit.out: Fixed output to be correct.Tom Tromey3-5/+18
* libjava.jni/throwit.out: Fixed output to be correct. * libjava.jni/noclass.java (main): `find_it' throws an exception. From-SVN: r33291
2000-04-20* jni.cc (_Jv_JNI_PopSystemFrame): Clear `env->ex'.Tom Tromey2-1/+9
From-SVN: r33285
2000-04-20jni.cc (_Jv_JNI_FindClass): Use system class loader if class doesn't have a ↵Tom Tromey2-4/+10
loader. * jni.cc (_Jv_JNI_FindClass): Use system class loader if class doesn't have a loader. From-SVN: r33272
2000-04-19boehm.cc: (_Jv_MarkObj...Bryce McKinlay2-56/+61
2000-04-19 Bryce McKinlay <bryce@albatross.co.nz> * boehm.cc: (_Jv_MarkObj, _Jv_MarkArray): Cast pointers for MAYBE_MARK to ptr_t, for compatibility with new GC version. From-SVN: r33252
2000-04-17Test case for gcj/209Anthony Green2-0/+8
From-SVN: r33205
2000-04-17Test case for gcj/208Anthony Green2-0/+20
From-SVN: r33204
2000-04-17More new tests.Anthony Green1-0/+7
From-SVN: r33203
2000-04-17New tests.Anthony Green4-0/+34
From-SVN: r33202
2000-04-16re GNATS java.io/202 (File creation doesn't observe umask)Bryce McKinlay2-2/+8
2000-04-16 Bryce McKinlay <bryce@albatross.co.nz> * java/io/natFileDescriptorPosix.cc (open): Use mode 0666. Fix for PR libgcj/202. (available): Initialize `Where' to prevent bogus compiler warning. From-SVN: r33181
2000-04-14Additional test for PR gcj/148:Bryce McKinlay2-0/+37
2000-04-14 Bryce McKinlay <bryce@albatross.co.nz> Additional test for PR gcj/148: * libjava.compile/assignment_2.java: New file. From-SVN: r33144
2000-04-12natString.cc (intern): Temporarily disable finalizer registration.Tom Tromey2-1/+4
* java/lang/natString.cc (intern): Temporarily disable finalizer registration. From-SVN: r33127
2000-04-12natString.cc (unintern): Added `obj' argument.Tom Tromey3-5/+15
* java/lang/natString.cc (unintern): Added `obj' argument. (intern): Register finalizer for string. * java/lang/String.java (unintern): Now static; added obj argument. From-SVN: r33124
2000-04-11Vector.java (VectorEnumeration): Now `final'.Tom Tromey5-9/+17
* java/util/Vector.java (VectorEnumeration): Now `final'. * java/util/Hashtable.java (HashtableEntry): Now `final'. (HashtableEnumeration): Likewise. * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'. * java/text/RuleBasedCollator.java (RBCElement): Now `final'. From-SVN: r33083
2000-04-11ObjectStreamException.java: New file.Warren Levy26-20/+7065
* java/io/ObjectStreamException.java: New file. * java/io/OptionalDataException.java: New file. * java/io/StreamCorruptedException.java: New file. * java/math/BigDecimal.java: New file. * java/sql/CallableStatement.java: New file. * java/sql/Connection.java: New file. * java/sql/DataTruncation.java: New file. * java/sql/DatabaseMetaData.java: New file. * java/sql/Date.java: New file. * java/sql/Driver.java: New file. * java/sql/DriverManager.java: New file. * java/sql/DriverPropertyInfo.java: New file. * java/sql/PreparedStatement.java: New file. * java/sql/ResultSet.java: New file. * java/sql/ResultSetMetaData.java: New file. * java/sql/SQLException.java: New file. * java/sql/SQLWarning.java: New file. * java/sql/Statement.java: New file. * java/sql/Time.java: New file. * java/sql/Timestamp.java: New file. * java/sql/Types.java: New file. * Makefile.am: Added above new files. * Makefile.in: Rebuilt. * mauve-libgcj: Turned on java.math, java.sql and java.security tests. * java/net/MulticastSocket.java (MulticastSocket): Pass values a la DatagramSocket constructor instead of null. java.sql is JDK 1.1 Compliant From-SVN: r33077
2000-04-09posix-threads.h (_Jv_MutexUnlock): Replace _JV_NOT_OWNER.Anthony Green2-1/+6
2000-04-08 Anthony Green <green@cygnus.com> * include/posix-threads.h (_Jv_MutexUnlock): Replace _JV_NOT_OWNER. From-SVN: r33039
2000-04-09posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h.Anthony Green3-35/+39
2000-04-08 Anthony Green <green@cygnus.com> * posix-threads.cc (_Jv_MutexLock): Moved back to posix-threads.h. (_Jv_MutexUnlock): Ditto. * include/posix-threads.h (_Jv_MutexLock): From posix-threads.cc. (_Jv_MutexUnlock): Ditto. From-SVN: r33037
2000-04-09StringBuffer.java (ensureCapacity): Don't call Math::max.Anthony Green2-9/+35
2000-04-08 Anthony Green <green@cygnus.com> * java/lang/StringBuffer.java (ensureCapacity): Don't call Math::max. (ensureCapacity_unsynchronized): New private method. (append): Use ensureCapacity_unsynchronized. From-SVN: r33036
2000-04-09Makefile.in: Rebuilt.Tom Tromey39-78/+1617
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added new files. * java/awt/IllegalComponentStateException.java: New file. * java/awt/ItemSelectable.java: New file. * java/awt/event/WindowEvent.java: Finished. * java/awt/event/TextEvent.java: Finished. * java/awt/event/ContainerEvent.java: New file. * java/awt/Component.java (getX, getY): New methods. * java/awt/event/PaintEvent.java: New file. * java/awt/event/MouseEvent.java: New file. * java/awt/ActiveEvent.java: New file. * java/awt/event/KeyEvent.java: Finished. * java/awt/event/ItemEvent.java: New file. * java/awt/Adjustable.java: New file. * java/awt/event/InputMethodEvent.java: New file. * java/awt/event/InputEvent.java: Finished. * java/awt/event/FocusEvent.java: New file. * java/awt/event/MouseMotionAdapter.java: New file. * java/awt/event/MouseAdapter.java: New file. * java/awt/event/KeyAdapter.java: New file. * java/awt/event/FocusAdapter.java: New file. * java/awt/event/ContainerAdapter.java: New file. * java/awt/event/ComponentEvent.java: Finished. * java/awt/event/AdjustmentEvent.java: New file. * java/awt/event/ComponentAdapter.java: New file. * java/awt/event/ActionEvent.java: Finished. * java/awt/event/MouseMotionListener.java: New file. * java/awt/event/MouseListener.java: New file. * java/awt/event/ItemListener.java: New file. * java/awt/event/InputMethodListener.java: New file. * java/awt/event/ContainerListener.java: New file. * java/awt/event/FocusListener.java: New file. * java/awt/event/ComponentListener.java: New file. * java/awt/event/AWTEventListener.java: New file. * java/awt/event/AdjustmentListener.java: New file. From-SVN: r33034
2000-04-09natObject.cc (_Jv_MonitorEnter): Only perform null check when we have to.Anthony Green5-4/+21
2000-04-08 Anthony Green <green@redhat.com> * java/lang/natObject.cc (_Jv_MonitorEnter): Only perform null check when we have to. * gcj/array.h: Mark elements(JArray<T>& x) and elements(JArray<T>* x) as `inline'. * java/util/StringTokenizer.java: Minor optimization. Eliminates one method call. * java/util/Vector.java (VectorEnumeration.nextElement): Manually inline hasMoreElements. From-SVN: r33033
2000-04-06configure: Rebuilt.Tom Tromey5-231/+355
* configure: Rebuilt. * configure.in: Recognize --enable-java-awt. (AWT): New conditional. * Makefile.in: Rebuilt. * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if requested. (libgcjawt_la_SOURCES): New macro. (EXTRA_libgcjawt_la_SOURCES): Likewise. (libgcjawt_la_DEPENDENCIES): Likewise. (libgcjawt_la_LIBADD): Likewise. (libgcjawt_la_LDFLAGS): Likewise. (libgcj.zip): Depend on cond_java_awt_source_files (cond_awt_java_source_files): New macro. (MOSTLYCLEANFILES): Added awto_files. (awto_files): New macro. Use where javao_files used. (nat_headers): Use cond_awt_java_source_files. From-SVN: r32954
2000-04-04Makefile.in: Rebuilt.Tom Tromey4-0/+35
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added AWTException.java. * java/awt/AWTException.java: New file. From-SVN: r32907
2000-04-03jvm.h (_Jv_GetArrayElementFromElementType): More commentary from Alex.Tom Tromey2-1/+5
* include/jvm.h (_Jv_GetArrayElementFromElementType): More commentary from Alex. From-SVN: r32894
2000-04-03Makefile.in: Rebuilt.Tom Tromey4-47/+26
* Makefile.in: Rebuilt. * Makefile.am ($(javao_files)): Depend on libgcj.zip. From H.J. Lu. From-SVN: r32885
2000-04-02Forgot to add this file before...Anthony Green1-0/+227
From-SVN: r32868
2000-04-02JVMPI changes...Anthony Green12-212/+636
Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> * configure: Rebuilt. * configure.in: Add --disable-jvmpi. * include/config.h.in: Rebuilt. * acconfig.h: Add ENABLE_JVMPI. * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC. (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define. (_Jv_JVMPI_Notify_THREAD_END): New define. (_Jv_JVMPI_Notify_THREAD_END): New define. * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare. (_Jv_JVMPI_Notify_THREAD_END): Declare. (_Jv_JVMPI_Notify_THREAD_END): Declare. * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation events. * java/lang/natThread.cc: Include JVMPI headers if necessary. (finish_): Generate JVMPI thread end events. (run_): Generate JVMPI thread start events. * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any preloaded JNI library. Include JVMPI headers if necessary. (run): Generate JVMPI thread start events. * boehm.cc: Define GC_disable and GC_enable. (_Jv_DisableGC): New function. (_Jv_EnableGC): New function. (disable_gc_mutex): Declare. * nogc.cc (_Jv_DisableGC): New function. (_Jv_EnableGC): New function. * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests. (_Jv_JVMPI_Interface): Define. (jvmpiEnableEvent): New function. (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface. * include/jvmpi.h: New file. From-SVN: r32866
2000-03-29Test case for PR libgcj/184:Bryce McKinlay3-0/+29
* libjava.lang/pr184.java: New file. * libjava.lang/pr184.out: New file. From-SVN: r32796
2000-03-28Synchronized gcjh commands for java/lang/Thread.h with Makefile.in.Bryce McKinlay2-1/+6
From-SVN: r32776
2000-03-28Forgot to commit this earlier.Bryce McKinlay1-0/+5
From-SVN: r32775
2000-03-28Makefile.in: New #defines and friends for Thread.h.Bryce McKinlay8-482/+382
* 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