aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
1999-09-27sparc-signal.h (SIGNAL_HANDLER): Third argument now a `void *'.Tom Tromey2-1/+6
* include/sparc-signal.h (SIGNAL_HANDLER): Third argument now a `void *'. (MAKE_THROW_FRAME): Cast third argument back to `ucontext_t *'. From-SVN: r29682
1999-09-24re GNATS java.util/47 (Date.toString() returns embedded newline)Tom Tromey10-372/+343
Fix for PR java.util/47: * configure, include/config.h: Rebuilt. * configure.in: Don't look for ctime or ctime_r. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Don't mention natDate.cc. * java/util/natDate.cc: Removed. * java/util/TimeZone.java (tzIDs, rawOffsets, timeZones): New static fields. (getAvailableIDs): Rewrote. (getTimeZone): Rewrote. * java/util/Date.java (toGMTString): New method. (toLocaleString): New method. (toString): Rewrote. From-SVN: r29656
1999-09-23configure: Rebuilt.Tom Tromey3-48/+57
* configure: Rebuilt. * configure.in: Print message when checking to see if gcj can handle -fuse-divide-subroutine. From-SVN: r29628
1999-09-23natFirstThread.cc (run): Renamed from `run0'.Tom Tromey3-20/+7
* java/lang/natFirstThread.cc (run): Renamed from `run0'. Removed dead code. * java/lang/FirstThread.java (run0): Renamed to `run'. (run): Removed. From-SVN: r29626
1999-09-23re GNATS gcj/51 (Writing on OutputStream of bad Socket kills app with ↵Tom Tromey2-15/+25
"Broken pipe") * prims.cc (main_init): New function. (JvRunMain): Call it. (_Jv_RunMain): Likewise. Include <signal.h>. (main_init): Ignore SIGPIPE. Fixes PR 51. From-SVN: r29625
1999-09-22* libgcj.spec.in: Use `jc1' spec, not `cc1' spec.Tom Tromey2-2/+6
From-SVN: r29602
1999-09-22MessageFormat.java (MessageFormat(String)): Set the default locale.Bryce McKinlay3-1/+12
1999-09-16 Bryce McKinlay <bryce@albatross.co.nz> * java/text/MessageFormat.java (MessageFormat(String)): Set the default locale. * java/text/NumberFormat.java: Check that object is a Number. If not, throw IllegialArgumentException. From-SVN: r29574
1999-09-21Output_UTF8.java (write): Don't exit loop unless both `inlength' and ↵Tom Tromey2-14/+9
`bytes_todo' are 0. * gnu/gcj/convert/Output_UTF8.java (write): Don't exit loop unless both `inlength' and `bytes_todo' are 0. Simplified 2-byte case. From-SVN: r29570
1999-09-21posix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex.Tom Tromey2-3/+8
* include/posix-threads.h (_Jv_MutexDestroy): Use _Jv_PthreadGetMutex. (_Jv_MutexLock): Likewise. (_Jv_MutexUnlock): Likewise. From-SVN: r29569
1999-09-21OutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it ↵Tom Tromey3-10/+10
too was incorrect. * java/io/OutputStreamWriter.java (OutputStreamWriter): Reverted previous patch; it too was incorrect. * java/io/PrintStream.java (PrintStream): Likewise. From-SVN: r29566
1999-09-21OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before ↵Tom Tromey3-6/+17
calling superclass constructor. * java/io/OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before calling superclass constructor. * java/io/PrintStream.java (PrintStream): Don't refer to `this' before calling superclass constructor. From-SVN: r29560
1999-09-20configure: Rebuilt.Tom Tromey3-50/+58
* configure: Rebuilt. * configure.in: Send output of `-fuse-divide-subroutine' test compilation to /dev/null. From-SVN: r29529
1999-09-14java-insns.h: Turned constants into an enum.Tom Tromey2-228/+236
* include/java-insns.h: Turned constants into an enum. Added multiple-inclusion protection. From-SVN: r29406
1999-09-10configure: Rebuilt.Tom Tromey65-155/+739
* configure: Rebuilt. * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: New file. * java/lang/Object.h: Don't include any other headers. * gcj/array.h: Renamed from include/java-array.h. * gcj/field.h: Renamed from include/java-field.h. * gcj/method.h: Renamed from include/java-method.h. * gcj/cni.h, gcj/javaprims.h: Moved from include/. Updated all files to reflect new include structure. From-SVN: r29278
1999-09-10configure: Rebuilt.Tom Tromey3-237/+232
* configure: Rebuilt. * configure.in: Fixed typo; variable is THREADSPEC and not THREADSPECS. From-SVN: r29251
1999-09-08posix-threads.h (_Jv_PthreadCheckMonitor): Reverted previous change and ↵Tom Tromey2-1/+7
implemented a correct test in the __m_count case. * include/posix-threads.h (_Jv_PthreadCheckMonitor): Reverted previous change and implemented a correct test in the __m_count case. From-SVN: r29209
1999-09-08posix-threads.h (_Jv_PthreadCheckMonitor): Changed test in __m_count case.Tom Tromey3-2/+8
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Changed test in __m_count case. From-SVN: r29193
1999-09-08posix-threads.cc (_Jv_CondWait): pthread_ calls return error code and don't ↵Tom Tromey2-3/+6
set errno. * posix-threads.cc (_Jv_CondWait): pthread_ calls return error code and don't set errno. From-SVN: r29179
1999-09-08posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR, not `r'.Tom Tromey3-9/+77
1999-09-07 Tom Tromey <tromey@cygnus.com> * posix-threads.cc (_Jv_CondWait): Check `errno' against EINTR, not `r'. Changed `done_sleeping' to a `bool'. 1999-09-07 Matt Welsh <mdw@cs.berkeley.edu * libjava/posix-threads.cc: Added _Jv_ThreadDataKey. Added FLAG_INTERRUPTED to indicate that a thread was interrupted by another thread, rather than by the GC. (_Jv_CondWait): Prevent premature thread wakeup by GC. (_Jv_InitThreads): Initialize _Jv_ThreadDataKey. * libjava/include/posix-threads.h (_Jv_ThreadCurrentData): New function. From-SVN: r29177
1999-09-03re GNATS libgcj/3 (FileInputStream.available always returns 0)Tom Tromey5-235/+300
* configure: Rebuilt. * configure.in: Check for fstat function. * java/io/natFileDescriptorPosix.cc (available): Use fstat() if FIONREAD fails. This fixes PR 3 From-SVN: r29078
1999-09-02java-array.h (jobjectArrayjchar): Removed unused declaration.Tom Tromey2-2/+3
* include/java-array.h (jobjectArrayjchar): Removed unused declaration. From-SVN: r29068
1999-09-02natClassLoader.cc (_Jv_WaitForState): Call _Jv_PrepareCompiledClass while ↵Tom Tromey2-2/+9
holding class mutex. * java/lang/natClassLoader.cc (_Jv_WaitForState): Call _Jv_PrepareCompiledClass while holding class mutex. From-SVN: r29063
1999-09-02posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define.Tom Tromey10-361/+1402
* include/posix-threads.h (PTHREAD_MUTEX_IS_STRUCT): New define. (_Jv_PthreadGetMutex): Use it. (_Jv_PthreadCheckMonitor): Use new M_COUNT macros. (_Jv_MutexInit): Use PTHREAD_MUTEX_IS_STRUCT. (_Jv_MutexLock): Likewise. (_Jv_MutexUnlock): Likewise. * include/config.h.in: Rebuilt. * acconfig.h (PTHREAD_MUTEX_HAVE_M_COUNT, PTHREAD_MUTEX_HAVE___M_COUNT): New undefs. * configure: Rebuilt. * libgcj.spec.in: Don't mention INTERPSPEC. * configure.in (INTERPSPEC): Removed. Only run pthreads-related checks when using POSIX threads. Check for m_count and __m_count in mutex structure. From-SVN: r29048
1999-09-02natClass.cc: Fixed notification of threads when class initialization is ↵Matt Welsh2-2/+7
complete. * java/lang/natClass.cc: Fixed notification of threads when class initialization is complete. From-SVN: r29043
1999-09-01Modifier.java (ALL_FLAGS): New constant.Tom Tromey6-105/+122
* java/lang/reflect/Modifier.java (ALL_FLAGS): New constant. * resolve.cc: Removed constants defined by java.lang.reflect.Modifier. Include <java/lang/reflect/Modifier.h>. (_Jv_ResolvePoolEntry): Use values from Modifier. (_Jv_DetermineVTableIndex): Likewise. (_Jv_PrepareClass): Likewise. (ncode): Likewise. * defineclass.cc (_Jv_ClassReader): Removed constants defined by java.lang.reflect.Modifier. Include <java/lang/reflect/Modifier.h>. (checkExtends): Use values from Modifier. (checkImplements): Likewise. (handleField): Likewise. (handleConstantValueAttribute): Likewise. (handleFieldsEnd): Likewise. (handleMethod ): Likewise. (handleMethodsEnd): Likewise. (handleClassBegin): Likewise. * interpret.cc: Removed constants defined by java.lang.reflect.Modifier. (continue1): Use values from Modifier. * java/lang/natClassLoader.cc: Removed constants defined by java.lang.reflect.Modifier. From-SVN: r29037
1999-09-01natClassLoader.cc (_Jv_NewClass): Use JV_STATE_NOTHING, not `0'.Tom Tromey3-16/+21
* java/lang/natClassLoader.cc (_Jv_NewClass): Use JV_STATE_NOTHING, not `0'. * java/lang/Class.h: Replaced JV_STATE_ defines with enum. From-SVN: r29033
1999-09-01posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex.Tom Tromey3-23/+80
* posix-threads.cc (_Jv_CondWait): Use _Jv_PthreadGetMutex. * include/posix-threads.h (_Jv_Mutex_t): Define as structure, except on Linux. (_Jv_PthreadGetMutex): New function. (_Jv_PthreadCheckMonitor): Use it. (_Jv_MutexInit): Likewise. ALso, initialize `count'. (_Jv_MutexLock): Update `count'. (_Jv_MutexUnlock): Likewise. (_Jv_PthreadCheckMonitor): Use Linux-specific knowledge when appropriate. From-SVN: r29032
1999-09-01* ChangeLog: update.Kresten Krab Thorup1-0/+6
From-SVN: r29031
1999-09-01posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor.Tom Tromey5-8/+40
* posix-threads.cc (_Jv_CondWait): Call _Jv_PthreadCheckMonitor. * include/posix-threads.h (_Jv_PthreadCheckMonitor): New function. (_Jv_CondNotify): Use it. (_Jv_CondNotifyAll): Likewise. * java/lang/Class.h (JV_STATE_NOTHING): Correct misspelling. From-SVN: r29030
1999-09-01Makefile.am (.java.lo): Add rule.Kresten Krab Thorup2-1360/+204
* Makefile.am (.java.lo): Add rule. * Makefile.in: Rebuilt. From-SVN: r29029
1999-09-01jvm.h (_Jv_makeUtf8TypeConst): Removed unused declaration.Tom Tromey2-1/+5
* include/jvm.h (_Jv_makeUtf8TypeConst): Removed unused declaration. From-SVN: r29021
1999-08-25G19990304_01.out: New file.Tom Tromey3-0/+24
* libjava.toshiba/G19990304_01.out: New file. * libjava.toshiba/G19990304_01.java: New file. From-SVN: r28870
1999-08-25G19990310_01.out: New file.Tom Tromey3-0/+29
* libjava.lang/G19990310_01.out: New file. * libjava.lang/G19990310_01.java: New file. From-SVN: r28865
1999-08-25* posix-threads.cc: Include <errno.h>.Bryce McKinlay2-0/+5
From-SVN: r28831
1999-08-24boehm.cc: Undefine TRUE and FALSE.Tom Tromey3-1/+12
* boehm.cc: Undefine TRUE and FALSE. * posix-threads.cc (_Jv_CondWait): Use ETIMEDOUT, not ETIME. From-SVN: r28810
1999-08-22Added missing whitespace in function calls within adaptorsAlexandre Oliva2-4/+4
Pointed out by Tom From-SVN: r28803
1999-08-22re GNATS libgcj/40 (wait(timeout) wrongly throws IllegalMonitorState exception)Tom Tromey2-0/+8
* posix-threads.cc (_Jv_CondWait): Treat a timeout as a normal result. PR 40. From-SVN: r28799
1999-08-21configure.in: Check for in_addr_t in netinet/in.h too.Alexandre Oliva7-48/+117
* configure.in: Check for in_addr_t in netinet/in.h too. Check for ip_mreq too. * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t. (HAVE_STRUCT_IP_MREQ): Added. * configure, include/config.h.in: Rebuilt. * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint if needed. * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp): Disable if ip_mreq is not available. From-SVN: r28798
1999-08-21Change in_addr_t default to jintAlexandre Oliva4-4/+4
From-SVN: r28796
1999-08-21configure.in: Check types ssize_t and in_addr_t.Alexandre Oliva5-27/+220
* configure.in: Check types ssize_t and in_addr_t. * acconfig.h: Undefine them. * configure, include/config.h.in: Rebuilt. From-SVN: r28793
1999-08-21natSystem.cc (getpwuid_adaptor): New overloaded function that detects the ↵Alexandre Oliva1-0/+8
signature of getpwuid_r. * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r. (init_properties): Use it. * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r. (toString): Use it. From-SVN: r28792
1999-08-21natSystem.cc (getpwuid_adaptor): New overloaded function that detects the ↵Alexandre Oliva2-2/+53
signature of getpwuid_r. * java/lang/natSystem.cc (getpwuid_adaptor): New overloaded function that detects the signature of getpwuid_r. (init_properties): Use it. * java/util/natDate.cc (ctime_adaptor): Likewise for ctime_r. (toString): Use it. From-SVN: r28790
1999-08-20interpret.cc (continue1): Implement explicit dispatch table.Kresten Krab Thorup6-751/+983
* interpret.cc (continue1): Implement explicit dispatch table. insn_target: Explicit interpreter switch table. SAVE_PC: New macro, moves pc saving code into instructions that require so. NEXT_INSN: New macro, replaces `goto next_insn' in all insns. PC_REGISTER_ASM: New macro. INLINE_SWITCH: New macro. Constrols dispatching strategy. opcode: Remove local variable. {i,l,f,d}{load,store}_{0,1,2,3}: Expand definitions. (POKEI): Use _Jv_word. (iinc): Use _Jv_word. (dupx): Change reference argument (sp) to pointer. (jvdump): Remove * interpret.cc: Remove instruction timing instrumentation. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Changed comment. Don't use _Jv_ClassNameSamePackage. * gnu/gcj/util/path/{SearchPath,ZipFileEntry,DirectoryPathEntry, URLPathEntry, CacheEntry}: Removed. * Makefile.am (ordinary_java_source_files): Remove gnu/gcj/util/path package. (.java.lo): Rule removed. * Makefile.in: Rebuilt. From-SVN: r28777
1999-08-19natThread.cc (class locker): New class.Tom Tromey2-7/+37
* java/lang/natThread.cc (class locker): New class. (join): Use a locker around _Jv_CondWait. (sleep): Likewise. From-SVN: r28770
1999-08-18ThreadGroup.java: Fixed now-erroneous comment.Tom Tromey3-3/+8
* java/lang/ThreadGroup.java: Fixed now-erroneous comment. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove. From-SVN: r28753
1999-08-18* include/javaprims.h ("Java"): Regenerated namespace decls.Tom Tromey2-1/+11
From-SVN: r28749
1999-08-18natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from ↵Kresten Krab Thorup26-515/+2193
_Jv_InternClassStrings. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamed from _Jv_InternClassStrings. * prims.cc (_Jv_RunMain): New function. (JvRunMain): Remove gij-support. * gij.cc (main): Use _Jv_RunMain. * java/util/zip/ZipFile.java: Call readDirectory in constructor. * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store argument in temp variable. (continue1): For all op_x2y insns, use temp variable for intermediate value. Also remove some comments. * java/lang/natClass.cc (newInstance): Call _Jv_InitClass. (forName): Don't call _Jv_InitClass. * java/lang/Class.java (getResource,getResourceAsStream): Implement. * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor. * java/util/jar/JarInputStream.java: New file. * java/util/jar/JarEntry.java: New file. * java/util/jar/JarFile.java: New file. * java/net/URLClassLoader.java: New file. * java/net/JarURLConnection.java: New file. * gnu/gcj/protocol/jar/Handler.java: New file. * gnu/gcj/protocol/jar/Connection.java: New file. * java/security/SecureClassLoader.java: New file. * java/lang/ClassLoader.java (parent): New variable. (ClassLoader (ClassLoader)): new constructor. (findClass): New method. (loadClass): Add default 1.2 implementation. (getSystemResourceAsBytes, getResourceAsBytes): Removed. (readfully): Removed. * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. (findSystemClass): New method. (VMClassLoader): Constructor rewritten. (init): New method. All other methods removed. * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader to gnu::gcj::runtime::VMClassLoader. (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle class entries. (VMClassLoader::findSystemClass): renamed from findBootClass. * Makefile.am: Add new files. (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend. * Makefile.in: Rebuilt. From-SVN: r28748
1999-08-18natThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano.Tom Tromey3-1/+15
* java/lang/natThread.cc (sleep): Turn 0 millis and 0 nanos into 1 nano. * include/quick-threads.h (_Jv_CondWait): Don't round to 0 inappropriately. From-SVN: r28742
1999-08-17From Bryce McKinlay:Tom Tromey3-0/+22
* libjava.lang/Array_2.java: New file. * libjava.lang/Array_2.out: New file. From-SVN: r28737
1999-08-16configure: Rebuilt.Tom Tromey3-203/+222
* configure: Rebuilt. * configure.in: Set DIVIDESPEC to empty string if compiler does not support -fuse-divide-subroutine. From-SVN: r28727