aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-01-04natPlainDatagramSocketImpl.cc (peek): Removed unnecesary comment.Warren Levy2-3/+8
* java/net/natPlainDatagramSocketImpl.cc (peek): Removed unnecesary comment. (receive): Set the sender's address in the DatagramPacket. From-SVN: r31218
2000-01-04[multiple changes]Tom Tromey18-227/+734
2000-01-04 Tom Tromey <tromey@cygnus.com> * java/lang/reflect/natConstructor.cc (newInstance): Pass declaring class as return_type argument to _Jv_CallNonvirtualMethodA. * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In constructor case, create object and use it as `this' argument. * java/lang/Class.h (_getConstructors): Declare. (_getFields): Declare. * java/lang/Class.java (getConstructors): Wrote. (_getConstructors): New native method. (getDeclaredConstructors): Wrote. (_getFields): Declare new native method. * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed incorrect comment. (getMethod): Work correctly when class is primitive. (getDeclaredMethods): Likewise. Compute offset using `method', not `mptr'. (getDeclaredMethod): Likewise. (getConstructor): Wrote. (ConstructorClass): New define. (getDeclaredConstructor): Wrote. (_getConstructors): New method. (_getFields): New method. (getFields): Wrote. * Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE. * prims.cc: Remove `#pragma implementation'. * gcj/array.h: Remove `#pragma interface'. * prims.cc (_Jv_equaln): New function. * java/lang/Class.java (getSignature): Declare. * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc. * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from resolve.cc. (getSignature): New method. (getDeclaredMethod): Wrote. (getMethod): Wrote. Include StringBuffer.h. * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as a friend. (getSignature): Declare. * include/jvm.h (_Jv_GetTypesFromSignature): Declare. (_Jv_equaln): Declare. (_Jv_CallNonvirtualMethodA): Declare. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natConstructor.cc. (java/lang/reflect/Constructor.h): New target. * java/lang/reflect/natConstructor.cc: New file. * java/lang/reflect/Constructor.java (newInstance): Now native. (declaringClass): Renamed from decl_class. (offset): Renamed from index. (getType): New native method. (getModifiers): Now native. (getParameterTypes): Call getType if required. (hashCode): Include hash code from declaring class. (modifiers): Removed. (toString): Call getType if required. * gcj/method.h (_Jv_FromReflectedConstructor): New function. * java/lang/reflect/natMethod.cc (hack_call): New method. Removed `#if 0' around FFI code. Include <gnu/gcj/RawData.h>. (invoke): Use _Jv_CallNonvirtualMethodA. Throw IllegalArgumentException when argument object and class disagree. (_Jv_GetTypesFromSignature): New function. (getType): Use it. (ObjectClass): New define. (_Jv_CallNonvirtualMethodA): New function. * java/lang/reflect/Method.java (hack_trampoline): New method. (hack_call): New native method. 1999-12-21 Per Bothner <per@bothner.com> * java/lang/natClass.cc (getDeclaredMethods): Correctly compute offset in new Method. From-SVN: r31199
2000-01-03mauve.exp (mauve_compute_uses): Let user select specific tests to run.Tom Tromey2-1/+11
* libjava.mauve/mauve.exp (mauve_compute_uses): Let user select specific tests to run. From-SVN: r31183
1999-12-27Commit forgotten Thread.java patch.Bryce McKinlay1-4/+13
From-SVN: r31094
1999-12-24natObject.cc (notify): Throw message with IllegalMonitorStateException.Bryce McKinlay4-64/+108
1999-12-22 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/natObject.cc (notify): Throw message with IllegalMonitorStateException. (notifyAll): Ditto. (wait): Ditto. * java/lang/Thread.java (isInterrupted): Don't clear interrupt_flag. (isInterrupted_): New function, which does clear interrupt_flag. (interrupt): Use `isInterrupted_'. * java/lang/natThread.cc (interrupt): Add comment. (join): Set `Prev' in joiner loop. Change various calls to `isInterrupted' to use `isInterrupted_'. * posix-threads.cc (_Jv_CondWait): Allways use pthread_cond_timedwait on linux. Set result to 0 on an interrupt. Test interrupted status of java Thread object directly. FLAG_INTERRUPTED: removed. (_Jv_ThreadStart): Throw OutOfMemoryError if pthread_create fails. (_Jv_ThreadInterrupt): Don't set FLAG_INTERRUPTED. (_Jv_InitThreads): Don't block SIGINT. (_Jv_ThreadWait): Don't configure SIGINT handler. From-SVN: r31082
1999-12-21* mauve-libgcj: Added java.lang.reflect.Modifier.toString12.Tom Tromey2-0/+6
From-SVN: r31061
1999-12-20Modifier.java (STRICT): New constant.Tom Tromey3-3/+16
* java/lang/reflect/Modifier.java (STRICT): New constant. (isStrict): New method. (toString): Added `strict'. From-SVN: r31040
1999-12-20Alpha Linux changes.Anthony Green3-2/+8
From-SVN: r31030
1999-12-20libgcjdata.c: New file.Anthony Green7-256/+427
1999-12-19 Anthony Green <green@cygnus.com> * libgcjdata.c: New file. * libgcj.spec.in: Use @LIBDATASTARTSPEC@ in startfile. * configure: Rebuilt. * configure.in (LIBDATASTARTSPEC): Force data with a known name into the program. * Makefile.in: Rebuilt. * Makefile.am: Build libgcjdata.a. * libgcj.spec.in: Use @FORCELIBGCCSPEC@ in startfile. * configure: Rebuilt. * configure.in (FORCELIBGCCSPEC): Force important parts of libgcc into every program. From-SVN: r31027
1999-12-18re GNATS libgcj/111 (bug in reflection code)Tom Tromey2-0/+6
* java/lang/reflect/Method.java (toString): Call getType if required. Partial fix for PR libgcj/111. From Per Bothner. From-SVN: r31002
1999-12-17* java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.Tom Tromey2-4/+9
From-SVN: r30996
1999-12-17Boolean.java (Boolean(String)): Set Value' to false on a null String ↵Bryce McKinlay4-61/+47
constructor parameter. 1999-12-16 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/Boolean.java (Boolean(String)): Set Value' to false on a null String constructor parameter. * java/net/natPlainSocketImpl.cc: Remove unneccessary sprintf calls for exception messages. BooleanClass: declare. (setOption): Use BooleanClass instead of Class.forName() for instanceof test. (bind): Cast 4th parameter of setsockopt to char *' for compatibility with older Solaris headers. * java/net/natPlainDatagramSocketImpl.cc: Remove unneccessary sprintf calls for exception messages. BooleanClass, IntegerClass: declare. (setOption): Use BooleanClass and IntegerClass, not Class.forName() for instanceof test. From-SVN: r30988
1999-12-15natSystem.cc (init_properties): Don't set user.name or user.home if ↵Tom Tromey6-232/+603
NO_GETUID defined. * java/lang/natSystem.cc (init_properties): Don't set user.name or user.home if NO_GETUID defined. Only set user.dir if getcwd exists. * include/config.h.in: Rebuilt. * acconfig.h (NO_GETUID): New define. * configure.in: Rebuilt. * configure.in: Define NO_GETUID in cross case. Check for getcwd in native case. From-SVN: r30964
1999-12-09re GNATS libgcj/117 (_Jv_PthreadCheckMonitor test is not portable.)Tom Tromey2-2/+22
* include/posix-threads.h (_Jv_PthreadCheckMonitor): Handle case where no recursive mutexes exist. Fixes PR libgcj/117. From-SVN: r30847
1999-12-06jvm.h: Declare many functions with __attribute__((__malloc__)).Anthony Green3-12/+23
* include/jvm.h: Declare many functions with __attribute__((__malloc__)). * gcj/javaprims.h: Ditto. From-SVN: r30794
1999-12-03Updated the thanks list.Anthony Green2-2/+19
From-SVN: r30764
1999-12-02natString.cc (equalsIgnoreCase): return false if anotherString is null.Bryce McKinlay3-5/+12
* java/lang/natString.cc (equalsIgnoreCase): return false if anotherString is null. * java/lang/Boolean.java (valueOf): return FALSE if argument is null. From-SVN: r30763
1999-12-02ServerSocket.java (ServerSocket): Bind to any interface if bindAddr is null.Bryce McKinlay2-1/+6
1999-12-02 Bryce McKinlay <bryce@albatross.co.nz> * libjava/java/net/ServerSocket.java (ServerSocket): Bind to any interface if bindAddr is null. From-SVN: r30755
1999-11-30re GNATS libgcj/98 (pthread_mutex_init in libjava/posix-threads.cc)Tom Tromey2-1/+10
* posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get mutex to initialize. Initialize `count' if required. Fixes PR libgcj/98. From-SVN: r30725
1999-11-29exception.cc: Remove prototype declarations for malloc and free.Per Bothner3-74/+276
1999-11-27 Per Bothner <per@bothner.com> * exception.cc: Remove prototype declarations for malloc and free. These clash with recent versions of glibc, which specifies `throws ()' when __cplusplus is defined. Instead, #include <stdlib.h>. From-SVN: r30709
1999-11-25prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayElementFromElementType.Tom Tromey5-51/+63
* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayElementFromElementType. (_Jv_NewPrimArray): Likewise. * java/lang/natObject.cc (clone): Use _Jv_GetArrayElementFromElementType instead of sizeof. * java/lang/natSystem.cc (arraycopy): Use _Jv_GetArrayElementFromElementType. * include/jvm.h (_Jv_GetArrayElementFromElementType): New function. From-SVN: r30655
1999-11-23re GNATS java.net/57 (potential buffer overruns)Bryce McKinlay3-34/+46
1999-11-23 Bryce McKinlay <bryce@albatross.co.nz> * java/net/natPlainSocketImpl.cc: Fix potential buffer overruns in Exception messages. PR java.net/57. (bind): set SO_REUSEADDR before bind. * java/net/natPlainDatagramSocketImpl.cc: Fix potential buffer overruns. PR java.net/57. From-SVN: r30637
1999-11-19sjlj jumbo patchTom Tromey18-661/+469
From-SVN: r30591
1999-11-18* no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.Tom Tromey2-1/+6
From-SVN: r30569
1999-11-18natClass.cc (MCACHE_SIZE): Define as a power of 2 minus 1.Tom Tromey2-3/+16
* java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2 minus 1. (method_cache): Made larger. From-SVN: r30568
1999-11-07ZipFile.java: Compute the offset of the ZipEntry data correctly.Anthony Green2-4/+12
* java/util/zip/ZipFile.java: Compute the offset of the ZipEntry data correctly. From-SVN: r30439
1999-11-05* java/lang/natThread.cc (destroy): Removed incorrect comment.Tom Tromey2-2/+4
From-SVN: r30423
1999-11-05boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current.Jeff Sturm3-5/+11
1999-11-05 Jeff Sturm <jsturm@sigma6.com> * boehm.cc (_Jv_GCSetInitialHeapSize): Swapped size & current. * prims.cc (parse_heap_size): Use end, not spec. Use 1024 multipler for `k'. From-SVN: r30418
1999-11-05natThread.cc (stop): Removed argument name.Tom Tromey5-16/+11
* java/lang/natThread.cc (stop): Removed argument name. * java/lang/ThreadGroup.java (ThreadGroup(int)): No longer `private'; now has default access. * Makefile.in: Rebuilt. * Makefile.am (java/lang/ThreadGroup.h): Removed. From-SVN: r30417
1999-11-04natClass.cc (method_cache_count): Removed.Tom Tromey4-317/+137
* java/lang/natClass.cc (method_cache_count): Removed. (_Jv_FindMethodInCache): Don't loop looking for the hash entry. (_Jv_AddMethodToCache): Don't loop. From-SVN: r30397
1999-11-04configure.in: Removed `qt' threads case.Tom Tromey5-428/+214
* configure.in: Removed `qt' threads case. * include/quick-threads.h: Removed. * quick-threads.cc: Removed. From-SVN: r30393
1999-11-04quick-threads.h (_Jv_ThreadCancel): Removed.Tom Tromey7-68/+21
* include/quick-threads.h (_Jv_ThreadCancel): Removed. (_Jv_ThreadDestroy): Likewise. * include/no-threads.h (_Jv_ThreadCancel): Removed. (_Jv_ThreadDestroy): Likewise. * include/posix-threads.h (struct _Jv_Thread_t): Removed `exception' field. (_Jv_ThreadCancel): Removed decl. (_Jv_ThreadDestroy): Removed. * posix-threads.cc (_Jv_ThreadCancel): Removed. (throw_cleanup): Removed. (really_start): Don't push or pop cleanup. (_Jv_ThreadInitData): Don't initialize `exception' field. * java/lang/Thread.java (stop): Officially unimplemented. * java/lang/natThread.cc (stop): Officially unimplemented. From-SVN: r30392
1999-11-03Actually removed files which were supposedlyTom Tromey6-614/+0
removed a long time ago. From-SVN: r30379
1999-11-03posix-threads.cc: Don't include boehm-config.h.Bryce McKinlay2-1/+3
1999-11-02 Bryce McKinlay <bryce@albatross.co.nz> * posix-threads.cc: Don't include boehm-config.h. Include gcconfig.h instead. From-SVN: r30365
1999-11-03posix-threads.cc: Don't include boehm-config.h.Bryce McKinlay2-1/+4
1999-11-02 Bryce McKinlay <bryce@albatross.co.nz> * posix-threads.cc: Don't include boehm-config.h. From-SVN: r30361
1999-11-03* boehm.cc: Don't include boehm-config.h.Tom Tromey2-4/+4
From-SVN: r30359
1999-11-02boehm.cc (_Jv_InitGC): Set GC_java_finalization.Tom Tromey2-19/+9
* boehm.cc (_Jv_InitGC): Set GC_java_finalization. (sum_blocks): Removed. (_Jv_GCFreeMemory): Use GC_get_free_bytes. From-SVN: r30335
1999-11-01PrintStream (PrintStream): Fix illegal usage of "this" before "super".Bryce McKinlay4-10/+28
1999-11-01 Bryce McKinlay <bryce@albatross.co.nz> * java/io/PrintStream (PrintStream): Fix illegal usage of "this" before "super". * java/io/OutputStreamWriter (OutputStreamWriter): ditto. * java/io/InputStreamReader (InputStreamReader): ditto. From-SVN: r30300
1999-10-22Makefile.in: Rebuilt.Tom Tromey11-26/+229
* Makefile.in: Rebuilt. * Makefile.am (java/lang/ClassLoader.h): New target. * java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference to `redirect'. * include/java-props.h (_Jv_Compiler_Properties): Changed declaration. * gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare. * include/jvm.h (_Jv_GCSetInitialHeapSize, _Jv_GCSetMaximumHeapSize): Declare. (JvRunMain, _Jv_RunMain): Declare. (_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare. * nogc.cc (_Jv_GCSetInitialHeapSize): New function. (_Jv_GCSetMaximumHeapSize): Likewise. * boehm.cc (_Jv_GCSetInitialHeapSize): New function. (_Jv_GCSetMaximumHeapSize): Likewise. * prims.cc (parse_heap_size): New function. (_Jv_SetInitialHeapSize): Likewise. (_Jv_SetMaximumHeapSize): Likewise. (_Jv_Compiler_Properties): New global. * gij.cc (help): New function. (version): Likewise. (heap_size): Likewise. (heap_max_size): Likewise. (main): Parse arguments. Set _Jv_Compiler_Properties. Include <config.h>, <java-props.h>. (_Jv_Compiler_Properties): Removed. From-SVN: r30133
1999-10-20Test code for GNATS gcj/71 and GNATS gcj/72.Bryce McKinlay4-0/+35
1999-10-19 Bryce McKinlay <bryce@albatross.co.nz> * libjava.compile/invokeinterface: New directory. * libjava.compile/invokeinterface/Test.java: New file. Test code for PR gcj/71 and PR gcj/72. * libjava.compile/invokeinterface/A.java: New file. * libjava.compile/invokeinterface/B.java: New file. From-SVN: r30094
1999-10-18VMClassLoader.java (getVMClassLoader): New method.Tom Tromey4-14/+30
* gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): New method. (redirect): New static field. * java/lang/ClassLoader.java (getSystemClassLoader): Now native (getVMClassLoader0): Removed. * java/lang/natClassLoader.cc (getVMClassLoader0): Removed. (redirect): Removed. (getSystemClassLoader): Implemented. From-SVN: r30075
1999-10-17ClassLoader.java (getSystemResource): Use getSystemClassLoader instead of ↵Anthony Green4-12/+40
ClassLoader.system. * java/lang/ClassLoader.java (getSystemResource): Use getSystemClassLoader instead of ClassLoader.system. (getSystemResourceAsStream): Ditto. * java/lang/natClassLoader.cc (redirect): Make static and remove #ifdef INTERPRETER so it is always defined. (getVMClassLoader0): Remove #ifdef INTERPRETER so it always returns a VMClassLoader. * java/util/ResourceBundle.java (trySomeGetBundle): Create a PropertyResourceBundle if a properties file is found before a ResourceBundle class. From-SVN: r30048
1999-10-15gij.cc (main): Formatting fixes.Tom Tromey4-6/+39
* gij.cc (main): Formatting fixes. (_Jv_Compiler_Properties): Define. * java/lang/natSystem.cc (_Jv_Environment_Properties): Don't declare. (init_properties): Set properites from _Jv_Compiler_Properties. * include/java-props.h (_Jv_Compiler_Properties, _Jv_Environment_Properties): Declare. From-SVN: r30020
1999-10-15* include/java-props.h: Added copyright.Tom Tromey2-0/+12
From-SVN: r30018
1999-10-15libtool-version: Catch up by incrementing current.Anthony Green10-213/+494
* libtool-version: Catch up by incrementing current. * configure.host: Disable use of GCJ_PROPERTIES for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine. * configure.in: Added --disable-getenv-properties and new define `DISABLE_GETENV_PROPERTIES'. * prims.cc (PROCESS_GCJ_PROPERTIES): Define. (next_property_key): New function. (next_property_value): New function. (process_gcj_properties): New function. (JvRunMain): Call process_gcj_properties. (_JvRunMain): Ditto. * java/lang/natSystem.cc (init_properties): Set properties defined in GCJ_PROPERTIES. Also add 1.2 style versioning properties. * include/java-props.h: New file. * java/lang/natSystem.cc (init_properties): Add new properties to conform with Java Product Versioning Specification. From-SVN: r30007
1999-10-13configure: Rebuilt.Tom Tromey4-226/+220
* configure: Rebuilt. * configure.in: Fixed test for --disable-java-net. From-SVN: r29931
1999-10-06configure.in (GCJ): Define as "target-gcj", not "target/gcj" when building ↵Tom Tromey4-137/+147
Canadian cross. * configure.in (GCJ): Define as "target-gcj", not "target/gcj" when building Canadian cross. (NATIVE): Don't define when cross-compiling. From-SVN: r29848
1999-10-04natPlainSocketImpl.cc: Don't include headers if java.net is disabled.Tom Tromey2-0/+5
* java/net/natPlainSocketImpl.cc: Don't include headers if java.net is disabled. From-SVN: r29812
1999-10-04Makefile.in: Rebuilt.Tom Tromey3-3/+8
* Makefile.in: Rebuilt. * Makefile.am (ZINCS): Removed. This is defined in configure.in when needed, and must be left empty when not needed. From-SVN: r29809
1999-10-04Fix changelog entryAnthony Green1-3/+0
From-SVN: r29791