aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-02-18jvm.h (_Jv_GetJavaVM): Declare.Tom Tromey5-14/+135
* include/jvm.h (_Jv_GetJavaVM): Declare. * include/java-interp.h (_Jv_GetFirstMethod): New function. (_Jv_MethodBase::get_method): New method. (_Jv_JNIMethod::set_function): New method. * jni.cc (_Jv_JNI_UnregisterNatives): New function. (_Jv_JNI_RegisterNatives): New function. (_Jv_JNIFunctions): Updated for new functions. (_Jv_GetJavaVM): New function. (_Jv_JNI_GetJavaVM): Use it. Now static. (_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread is already a Java thread but does not have a JNIEnv yet. * java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload function. From-SVN: r32056
2000-02-18register.java: New file.Tom Tromey4-0/+55
* libjava.jni/register.java: New file. * libjava.jni/register.c: New file. * libjava.jni/register.out: New file. From-SVN: r32055
2000-02-17Rotated ChangeLogsTom Tromey2-7109/+7108
From-SVN: r32043
2000-02-17re GNATS gcj/152 (Installation flaw)Tom Tromey2-1/+8
* gcj/field.h (_Jv_Field::getClass): Don't use JvAssert. Fixes PR gcj/152. From-SVN: r32036
2000-02-17* jni.cc (_Jv_JNI_CallStaticMethodV): Added some assertions.Tom Tromey2-0/+11
From-SVN: r32021
2000-02-17calls.c: New file.Tom Tromey4-0/+140
* libjava.jni/calls.c: New file. * libjava.jni/calls.out: New file. * libjava.jni/calls.java: New file. From-SVN: r32020
2000-02-16jni.cc (_Jv_JNI_NewObjectV): Corrected assertion.Tom Tromey2-3/+34
* jni.cc (_Jv_JNI_NewObjectV): Corrected assertion. (_Jv_JNI_NewObject): Likewise. (_Jv_JNI_NewObjectA): Likewise. (_Jv_JNI_CallAnyMethodV): In constructor case, pass correct value as "return" type to _Jv_CallAnyMethodA. (_Jv_JNI_CallAnyMethodA): Likewise. (_Jv_JNI_CallAnyVoidMethodV): Likewise. From-SVN: r32017
2000-02-16throwit.java: New file.Tom Tromey4-0/+68
* libjava.jni/throwit.java: New file. * libjava.jni/throwit.c: New file. * libjava.jni/throwit.out: New file. From-SVN: r32016
2000-02-16jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass.Tom Tromey2-1/+6
* jni.cc (_Jv_JNI_FindClass): Use ClassLoader.loadClass, not findClass. From-SVN: r32013
2000-02-16findclass.java: New fileTom Tromey1-0/+6
* libjava.jni/findclass.java: New file * libjava.jni/findclass.c: New file * libjava.jni/findclass.out: New file From-SVN: r32012
2000-02-16findclass.java: New fileTom Tromey3-0/+29
* libjava.jni/findclass.java: New file * libjava.jni/findclass.c: New file * libjava.jni/findclass.out: New file From-SVN: r32011
2000-02-16InterfaceDispatch.java: New file.Bryce McKinlay3-0/+435
2000-02-16 Bryce McKinlay <bryce@albatross.co.nz> * libjava.lang/InterfaceDispatch.java: New file. * libjava.lang/InterfaceDispatch.out: New file. From-SVN: r32001
2000-02-16virtual.java: New file.Tom Tromey16-0/+156
* libjava.jni/virtual.java: New file. * libjava.jni/virtual.c: New file. * libjava.jni/virtual.out: New file. * libjava.jni/final_method.java: New file. * libjava.jni/final_method.c: New file. * libjava.jni/final_method.out: New file. * libjava.jni/overload.java: New file. * libjava.jni/overload.c: New file. * libjava.jni/overload.out: New file. * libjava.jni/simple_int.java: New file. * libjava.jni/simple_int.c: New file. * libjava.jni/simple_int.out: New file. * libjava.jni/invoke.out: New file. * libjava.jni/invoke.c: New file. * libjava.jni/invoke.java: New file. From-SVN: r31996
2000-02-16resolve.cc (ncode): Set args_raw_size.Tom Tromey4-9/+71
* resolve.cc (ncode): Set args_raw_size. Compute jni_cif and jni_arg_types. (init_cif): Added `rtype_p' argument. * include/java-interp.h (class _Jv_MethodBase): Added args_raw_size. (class _Jv_InterpMethod): Removed args_raw_size. (class _Jv_JNIMethod): Added jni_cif and jni_arg_types fields. * jni.cc (call): Pass JNIEnv and (for static methods only) the class pointer as well as the ordinary arguments. From-SVN: r31995
2000-02-15* jni.cc (mangled_name): Skip leading `(' in signature.Tom Tromey2-1/+4
From-SVN: r31993
2000-02-15* jni.cc (add_char): Added missing `else'.Tom Tromey2-1/+3
From-SVN: r31991
2000-02-15jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc fails.Tom Tromey2-2/+12
* jni.cc (_Jv_JNI_AttachCurrentThread): Return error if malloc fails. From-SVN: r31986
2000-02-15Updated the NEWSBryce McKinlay1-6/+8
From-SVN: r31983
2000-02-15Updated ChangeLogBryce McKinlay1-0/+13
From-SVN: r31982
2000-02-15natSystem.cc (init_properties): set java.lang.classpath property.Bryce McKinlay1-2/+9
* java/lang/natSystem.cc (init_properties): set java.lang.classpath property. From-SVN: r31981
2000-02-15Updated the NEWSBryce McKinlay1-8/+20
From-SVN: r31980
2000-02-15natRuntime.cc (_load): Include library path with exception message.Bryce McKinlay1-1/+3
* java/lang/natRuntime.cc (_load): Include library path with exception message. From-SVN: r31979
2000-02-15natThread.cc (dumpStack): Removed.Bryce McKinlay2-10/+5
* java/lang/natThread.cc (dumpStack): Removed. * java/lang/Thread.java (dumpStack): Implemented. From-SVN: r31978
2000-02-15re GNATS gcj/150 (System.loadLibrary() semantics arn't the same as in the JDK)Tom Tromey2-3/+17
* java/lang/natRuntime.cc (_load): On Unix, prefix library name with `lib' for loadLibrary. Fixes PR gcj/150. From-SVN: r31976
2000-02-14ltdl.c: If HAVE_BOEHM_GC defined, includ gc.h.Tom Tromey9-105/+184
* ltdl.c: If HAVE_BOEHM_GC defined, includ gc.h. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): New macro. * config.h.in, configure: Rebuilt. * acconfig.h (HAVE_BOEHM_GC): Define. * configure.in: Handle --enable-java-gc. From-SVN: r31971
2000-02-14MPN.java (findLowestBit): Made methods public.Warren Levy3-23/+171
* gnu/gcj/math/MPN.java(findLowestBit): Made methods public. * java/math/BigInteger.java(BigInteger(int,int,java.util.Random): New constructor. (min): Implemented. (max): Implemented. (modPow): Rewritten to not use the naive, slow, brute force approach. (isProbablePrime): Implemented. (testBit): Implemented. (flipBit): Implemented. (getLowestSetBit): Implemented. From-SVN: r31966
2000-02-13gcj/142Anthony Green2-1/+6
i386 and i486 should configure the same as i586 and i686. From-SVN: r31954
2000-02-12New test code.Anthony Green2-0/+11
From-SVN: r31952
2000-02-12New test case.Anthony Green2-0/+23
From-SVN: r31951
2000-02-12New test case.Anthony Green2-0/+18
From-SVN: r31950
2000-02-12New test case.Anthony Green2-0/+18
From-SVN: r31949
2000-02-12File.java (createTempFile): Use low bits from counter, not high bits.Tom Tromey2-1/+7
* java/io/File.java (createTempFile): Use low bits from counter, not high bits. From-SVN: r31946
2000-02-12inner_interface.out: New file.Alexandre Petit-Bianco7-0/+80
2000-02-12 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.lang/inner_interface.out: New file. * libjava.lang/inner_interface.java: New file. * libjava.lang/final_int.out: New file. * libjava.lang/final_int.java: New file. * libjava.lang/final_static_and_friend.out: New file. * libjava.lang/final_static_and_friend.java: New file. From-SVN: r31944
2000-02-12More thanks.Anthony Green2-1/+14
From-SVN: r31942
2000-02-11interpret.cc (continue1): Use STOREA, not STOREI, to implement astore ↵Tom Tromey3-2/+7
instruction. * interpret.cc (continue1): Use STOREA, not STOREI, to implement astore instruction. From Hans Boehm. From-SVN: r31939
2000-02-11BigInteger.java (BigInteger(String, int)): New constructor.Warren Levy2-24/+418
* java/math/BigInteger.java(BigInteger(String, int)): New constructor. (BigInteger(String)): New constructor. (not): Rewritten using version from Kawa's BitOps class. (valueOf): New private methods from Kawa's BitOps class. (swappedOp): ditto. (bitOp): ditto. (setBitOp): ditto. (and): Implemented. (or): Implemented. (xor): Implemented. (andNot): Implemented. (clearBit): Implemented. (setBit): Implemented. (bitCount): Implemented. (toByteArray): Implemented. From-SVN: r31926
2000-02-11* java/io/File.java (nextValue): Now synchronized.Tom Tromey2-1/+5
From-SVN: r31925
2000-02-11natFileDescriptorPosix.cc (open): Recognize EXCL flag.Tom Tromey5-4/+92
* java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag. * java/io/FileDescriptor.java (EXCL): New static field. * java/io/File.java (tmpdir): New static field. (createTempFile): New method. (nextValue): New method. * java/lang/natSystem.cc (init_properties): Set java.io.tmpdir property. From-SVN: r31922
2000-02-10jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops.Tom Tromey2-4/+12
* include/jni.h (JNI_FALSE): Renamed from JNI_TRUE; oops. (jboolean): Declare as an attributed int, not a bool. (_Jv_func): Declare differently for C. From-SVN: r31907
2000-02-10natNativeThread.cc: New file.Tom Tromey10-30/+560
* gnu/gcj/jni/natNativeThread.cc: New file. * gnu/gcj/jni/NativeThread.java: New file. * java/lang/Thread.java (data): Now a RawData. * include/jvm.h (_Jv_GetCurrentJNIEnv, _Jv_SetCurrentJNIEnv): Declare. * Makefile.in: Rebuilt. * Makefile.am (java/lang/Thread.h): New target. (ordinary_java_source_files): Added NativeThread.java. (nat_source_files): Added natNativeThread.cc. * java/lang/natThread.cc: Include <jni.h> (struct natThread): Added `jni_env' field. (_Jv_GetCurrentJNIEnv): New function. (_Jv_SetCurrentJNIEnv): Likewise. (initialize_native): Initialize jni_env. Include RawData.h. * jni.cc (ThreadGroupClass): New define. (_Jv_JNI_InvokeFunctions): New structure. (JNI_GetCreatedJavaVMs): New function. (the_vm): New global. (JNI_GetDefaultJavaVMInitArgs): New function. Include NativeThread.h. (NativeThreadClass): New define. (_Jv_JNI_EnsureLocalCapacity): Return JNI_ERR, not -1. (_Jv_JNI_DestroyJavaVM): New function. (_Jv_JNI_AttachCurrentThread): New function. (_Jv_JNI_DetachCurrentThread): New function. (_Jv_JNI_GetEnv): New function. (JNI_CreateJavaVM): New function. (_Jv_JNI_GetJavaVM): New function. (_Jv_JNIFunctions): Added entry for GetJavaVM. * include/jni.h (JavaVMAttachArgs): New structure. (JNI_EDETACHED): New define. (JNI_EVERSION): Likewise. (JavaVM): Define properly. (struct JNIInvokeInterface): New structure. (class _Jv_JavaVM): New class. (JNI_OnLoad, JNI_OnUnload): Declare. (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM, JNI_GetCreatedJavaVMs): Declare. (JavaVMInitArgs): New typedef. (JavaVMOption): Likewise. (JNI_ERR): New define. (JNI_OK): Likewise. From-SVN: r31901
2000-02-10interpret.cc: Don't include fdlibm.h.Andrew Haley5-312/+130
2000-02-10 Andrew Haley <aph@cygnus.com> * interpret.cc: Don't include fdlibm.h. Replace #if with #ifdef throughout. Declare extern __ieee754_fmod. (continue1): Remove op_getfield, op_getstatic, op_putfield, op_putstatic insns. * resolve.cc (_Jv_PrepareClass): Use imeth as method pointer. Search class hierarchy for superclass vtable. * java/lang/natClassLoader.cc (_Jv_UnregisterClass): Don't fall off the end of a pointer list. * java/lang/natThread.cc (stop): Don't abort, throw an exception instead. (suspend): Ditto. From-SVN: r31897
2000-02-10natRuntime.cc (_load): Call add_library.Tom Tromey2-0/+7
* java/lang/natRuntime.cc (_load): Call add_library. (loadLibraryInternal): Likewise. From-SVN: r31877
2000-02-10natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL.Tom Tromey2-2/+8
* gnu/gcj/convert/natIconv.cc (Input_iconv::finalize): Call iconv_close when handle is not NULL. Thanks to Andrew Haley. (Output_iconv::finalize): Likewise. From-SVN: r31876
2000-02-09anonarray3.out: New file.Alexandre Petit-Bianco3-0/+19
2000-02-07 Alexandre Petit-Bianco <apbianco@cygnus.com> * libjava.lang/anonarray3.out: New file. * libjava.lang/anonarray3.java: New file. From-SVN: r31871
2000-02-09* libjava.compile/inner_priv.java: New file.Tom Tromey2-0/+15
From-SVN: r31868
2000-02-08Properties.java (setProperty): New method.Tom Tromey2-79/+95
* java/util/Properties.java (setProperty): New method. (store): New method. From-SVN: r31855
2000-02-08Runtime.java (_load): Declare.Tom Tromey3-28/+37
* java/lang/Runtime.java (_load): Declare. (load, loadLibrary): Wrote in terms of _load. * java/lang/natRuntime.cc (load): Call JNI_OnLoad if it appears in library. (loadLibrary): Likewise. Include <jni.h>. (_load): New method. (loadLibrary, load): Removed. From-SVN: r31846
2000-02-08jni.cc (ThrowableClass): New define.Tom Tromey2-15/+60
* jni.cc (ThrowableClass): New define. (_Jv_JNI_Throw): Check argument. (_Jv_JNI_ThrowNew): Likewise. (wrap_value): Don't wrap object if it is NULL. (_Jv_JNI_DefineClass): Use wrap_value. (_Jv_JNI_FindClass): Likewise. (_Jv_JNI_GetSuperclass): Likewise. (_Jv_JNI_ExceptionOccurred): Likewise. (_Jv_JNI_AllocObject): Likewise. (_Jv_JNI_GetObjectClass): Likewise. (_Jv_JNI_NewString): Likewise. (_Jv_JNI_NewStringUTF): Likewise. (_Jv_JNI_NewObjectArray): Likewise. (_Jv_JNI_GetObjectArrayElement): Likewise. (_Jv_JNI_NewPrimitiveArray): Likewise. (_Jv_JNI_ToReflectedField): Likewise. (_Jv_JNI_ToReflectedMethod): Likewise. (_Jv_JNI_AllocObject): Check argument. (_Jv_JNI_NewObjectV): Likewise. (_Jv_JNI_NewObject): Likewise. (_Jv_JNI_NewObjectA): Likewise. (_Jv_JNI_GetObjectClass): Likewise. (_Jv_JNI_GetField): Likewise. (_Jv_JNI_SetField): Likewise. From-SVN: r31845
2000-02-08interpret.cc (PUSHL): Don't use expression statement.Tom Tromey2-8/+13
* interpret.cc (PUSHL): Don't use expression statement. (PUSHD): Likewise. (LOADL): Likewise. (STOREL): Likewise. From-SVN: r31844
2000-02-07instinit2.out: New file.Alexandre Petit-Bianco15-0/+330
* libjava.lang/instinit2.out: New file. * libjava.lang/instinit2.java: New file. * libjava.lang/instinit.out: New file. * libjava.lang/instinit.java: New file. * libjava.lang/anonarray2.out: New file. * libjava.lang/anonarray2.java: New file. * libjava.lang/anonarray.out: New file. * libjava.lang/anonarray.java: New file. * libjava.lang/nested_with_ctor.out: New file. * libjava.lang/nested_with_ctor.java: New file. * libjava.lang/anfi.out: New file. * libjava.lang/anfi.java: New file. * libjava.lang/stub.out: New file. * libjava.lang/stub.java: New file. From-SVN: r31841