summaryrefslogtreecommitdiffstats
path: root/libjava
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in: Rebuilt.tromey2000-04-034-47/+26
| | | | | | | | * Makefile.am ($(javao_files)): Depend on libgcj.zip. From H.J. Lu. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32885 138bc75d-0d04-0410-961f-82ee72b054a4
* Forgot to add this file before...green2000-04-021-0/+227
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32868 138bc75d-0d04-0410-961f-82ee72b054a4
* JVMPI changes...green2000-04-0212-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32866 138bc75d-0d04-0410-961f-82ee72b054a4
* Test case for PR libgcj/184:bryce2000-03-293-0/+29
| | | | | | | | * libjava.lang/pr184.java: New file. * libjava.lang/pr184.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32796 138bc75d-0d04-0410-961f-82ee72b054a4
* Synchronized gcjh commands for java/lang/Thread.h with Makefile.in.bryce2000-03-282-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32776 138bc75d-0d04-0410-961f-82ee72b054a4
* Forgot to commit this earlier.bryce2000-03-281-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32775 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: New #defines and friends for Thread.h.bryce2000-03-288-482/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32773 138bc75d-0d04-0410-961f-82ee72b054a4
* * jni.cc (_Jv_JNI_PopSystemFrame): If environment has exceptiontromey2000-03-272-3/+9
| | | | | | | | set, throw it. (call): Don't throw exception here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32770 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.lang/test_long.out: New file.tromey2000-03-273-0/+19
| | | | | | | * libjava.lang/test_long.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32769 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-26 Tom Tromey <tromey@cygnus.com>tromey2000-03-268-31/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/mprec.h: Use SIZEOF_VOID_P. * interpret.cc: Use SIZEOF_VOID_P. * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P. (_Jv_loadLong): Likewise. (_Jv_storeDouble): Likewise. * configure: Rebuilt. * configure.in: Check size of void*. * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE. 2000-03-26 Hans Boehm <boehm@acm.org> * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong, _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit machine. * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN appropriately on IA64. * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine. * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit case. * resolve.cc (FFI_PREP_RAW_CLOSURE): New define. (FFI_RAW_SIZE): Likewise. (_Jv_InterpMethod::ncode): Use them. * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL, STORED): Define differently on a 64 bit machine. (continue1): Use ffi_java_raw_call when appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32754 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.lang/Array_1.xfail: Removed.tromey2000-03-262-1/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32753 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/math/BigInteger.java(divide): Handle the special case whenwarrenl2000-03-242-2/+17
| | | | | | | | dividing by 1 and the high bit of the dividend is set. (setShiftRight): Handle case when count == 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32724 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Font.java(isBold): Fix syntax error.warrenl2000-03-246-6/+16
| | | | | | | | | | | (isItalic): ditto. * java/awt/Frame.java(postEvent): ditto. * java/awt/Menu.java(postEvent): ditto. * java/awt/MenuBar.java(postEvent): ditto. * java/awt/Toolkit.java(init): Included a stub. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32723 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-23 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-2317-0/+683
| | | | | | | | | | | | | | | | | | | | | | * libjava.lang/Thread_Wait.java: New file. * libjava.lang/Thread_Sleep.java: New file. * libjava.lang/Thread_Monitor.java: New file. * libjava.lang/Thread_Wait.out: New file. * libjava.lang/Thread_Sleep.out: New file. * libjava.lang/Thread_Monitor.out: New file. * libjava.lang/Thread_Interrupt.java: New file. * libjava.lang/Thread_Wait_2.java: New file. * libjava.lang/Thread_Wait_2.out: New file. * libjava.lang/Thread_Wait_Interrupt.java: New file. * libjava.lang/Thread_Wait_Interrupt.out: New file. * libjava.lang/Thread_Interrupt.out: New file. * libjava.lang/Thread_Join.java: New file. * libjava.lang/Thread_Join.out: New file. * libjava.lang/Thread_Alive.java: New file. * libjava.lang/Thread_Alive.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32706 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/iface.java: New file.tromey2000-03-2222-0/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | * libjava.compile/static_3.java: New file. * libjava.compile/static_2.java: New file. * libjava.compile/static_1.xfail: New file. * libjava.compile/static_1.java: New file. * libjava.compile/redef6.xfail: New file. * libjava.compile/redef6.java: New file. * libjava.compile/redef5.xfail: New file. * libjava.compile/redef5.java: New file. * libjava.compile/redef4.xfail: New file. * libjava.compile/redef4.java: New file. * libjava.compile/redef3.xfail: New file. * libjava.compile/redef3.java: New file. * libjava.compile/redef2.xfail: New file. * libjava.compile/redef2.java: New file. * libjava.compile/redef1.xfail: New file. * libjava.compile/redef1.java: New file. * libjava.compile/not_a_redef.java: New file. * libjava.compile/inner_1.java: New file. * libjava.compile/static_init.xfail: New file. * libjava.compile/static_init.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32688 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-212-2/+142
| | | | | | | | | | | | | | * java/awt/Event.java: Add all the event type constants. (Event): Implemented constructors. (controlDown): Implemented. (metaDown): Implemented. (paramString): Stubbed. (shiftDown): Implemented. (toString): Implemented. (translate): Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32676 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (isInstance): Use JV_CLASS, not getClass().bryce2000-03-212-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32665 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClass.cc (isInstance): Use _Jv_IsAssignableFrom(),bryce2000-03-212-1/+3
| | | | | | | not Class.isAssignableFrom(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32664 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-212-1/+13
| | | | | | | | | | * java/lang/natClass.cc (isInstance): Initialize `this'. (isAssignableFrom): Initialize `this' and `klass'. (_Jv_IsAssignableFrom): If an interface has no idt, it is not implemented by any loaded class, so return false. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32663 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-213-0/+75
| | | | | | | | | Test case for PR libgcj/179: * libjava.lang/pr179.java: New file. * libjava.lang/pr179.out: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32662 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Color.java: Specified java.io for Serializable.warrenl2000-03-193-1/+7
| | | | | | | * java/awt/Toolkit.java: Imported java.net.URL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32639 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Color.java: Rewrote to be more memory efficient (& compile).warrenl2000-03-192-25/+55
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32634 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.lang/pr109.java: Added `println' at end.tromey2000-03-192-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32627 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/Color.java: New file.warrenl2000-03-1719-10/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/Graphics.java: New file. * java/awt/Image.java: New file. * java/awt/Paint.java: New file. * java/awt/PaintContext.java: New file. * java/awt/Transparency.java: New file. * java/util/Collection.java: New file. * java/util/Comparator.java: New file. * java/util/Iterator.java: New file. * java/util/List.java: New file. * java/util/ListIterator.java: New file. * Makefile.am: Added above new files. * Makefile.in: Rebuilt. * java/awt/Font.java (PLAIN): New field. (BOLD): New field. (ITALIC): New field. (ROMAN_BASELINE): New field. (CENTER_BASELINE): New field. (HANGING_BASELINE): New field. (name): New field. (style): New field. (size): New field. (pointSize): New field. (Font): Implemented constructor. (isPlain): Implemented method. (isBold): Implemented method. (isItalic): Implemented method. (getName): Implemented method. (getStyle): Implemented method. (getSize): Implemented method. (getSize2D): Implemented method. (decode): Stubbed. * java/awt/Frame.java (getFont): Stubbed. (postEvent): Stubbed. (remove): Stubbed. * java/awt/Menu.java (postEvent): Stubbed. * java/awt/MenuBar.java (getFont): Stubbed. (postEvent): Stubbed. * java/awt/Toolkit.java (getImage): Added abstract method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32598 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-15 Tom Tromey <tromey@cygnus.com>tromey2000-03-1511-2/+1031
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/io/natFileDescriptorWin32.cc (winerr): Now static. * prims.cc (win32_exception_handler): Reformatted. * include/win32-threads.h (_Jv_HaveCondDestroy): New define. (_Jv_HaveMutexDestroy): Likewise. 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk> * java/io/natFileDescriptorWin32.cc: New file. * java/io/natFileWin32.cc: New file. * java/net/natInetAddress.cc: Added conditional inclusion of Windows / Winsock headers. * java/net/natPlainDatagramSocketImpl.cc: Added conditional inclusion of Windows / Winsock headers. * java/net/natPlainSocketImpl.cc: Added conditional inclusion of Windows / Winsock headers. * include/win32-signal.h: New file. * include/win32-threads.h: New file. * win32-threads.cc: New file. * exception.cc (win32_get_restart_frame): New function. * prims.cc (win32_exception_handler): New function. (main_init) Performs Winsock initialisation. (main_init) Installs exeception handler. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32567 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/pr176.java: New file, for PR gcj/176.tromey2000-03-152-0/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32561 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/PR140.xfail: New file.bryce2000-03-152-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32553 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-15 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-153-8/+9
| | | | | | | | | * libjava.compile/pr172.java: Correct classname to match file name. * libjava.compile/pr174.java: ditto. Remove superfluous main() method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32552 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/PR140.java: New file, for PR gcj/140.tromey2000-03-152-0/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32551 138bc75d-0d04-0410-961f-82ee72b054a4
* * jni.cc (mangled_name): Fixed assertion.tromey2000-03-142-3/+11
| | | | | | | | (JNI_GetCreatedJavaVMs): Don't comment out `buf_len' argument; turned assert into actual failure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32546 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/pr172.java: New file, for PR gcj/172.tromey2000-03-142-0/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32539 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/pr174.java: New file, for PR gcj/174.tromey2000-03-142-0/+24
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32537 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/security/Key.java(serialVersionUID): Set to 0 for now.warrenl2000-03-104-3/+11
| | | | | | | | * java/security/interfaces/DSAPrivateKey.java(serialVersionUID): Ditto. * java/security/interfaces/DSAPublicKey.java(serialVersionUID): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32464 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/security/AlgorithmParameterGeneratorSpi.java: New file.warrenl2000-03-1038-52/+1512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/security/DigestException.java: New file. * java/security/GeneralSecurityException.java: New file. * java/security/InvalidAlgorithmParameterException.java: New file. * java/security/InvalidKeyException.java: New file. * java/security/InvalidParameterException.java: New file. * java/security/Key.java: New file. * java/security/KeyException.java: New file. * java/security/KeyPair.java: New file. * java/security/KeyPairGenerator.java: New file. * java/security/KeyPairGeneratorSpi.java: New file. * java/security/NoSuchProviderException.java: New file. * java/security/PrivateKey.java: New file. * java/security/Provider.java: New file. * java/security/PublicKey.java: New file. * java/security/SecureRandom.java: New file. * java/security/Security.java: New file. * java/security/Signature.java: New file. * java/security/SignatureException.java: New file. * java/security/interfaces/DSAKey.java: New file. * java/security/interfaces/DSAParams.java: New file. * java/security/interfaces/DSAPrivateKey.java: New file. * java/security/interfaces/DSAPublicKey.java: New file. * java/security/interfaces/RSAPrivateCrtKey.java: New file. * java/security/interfaces/RSAPrivateKey.java: New file. * java/security/interfaces/RSAPublicKey.java: New file. * java/security/spec/AlgorithmParameterSpec.java: New file. * java/security/spec/InvalidKeySpecException.java: New file. * java/security/spec/InvalidParameterSpecException.java: New file. * java/security/spec/KeySpec.java: New file. * java/security/spec/RSAPrivateCrtKeySpec.java: New file. * java/security/spec/RSAPrivateKeySpec.java: New file. * java/security/spec/RSAPublicKeySpec.java: New file. * Makefile.am: Added above java.security files. * Makefile.in: Rebuilt. * java/security/MessageDigest.java: Rewritten. * java/security/SecureClassLoader.java: Added JDK1.2 comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32461 138bc75d-0d04-0410-961f-82ee72b054a4
* Updated again.bryce2000-03-091-1/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32457 138bc75d-0d04-0410-961f-82ee72b054a4
* Updated README.bryce2000-03-092-10/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32456 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-09 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-093-2/+12
| | | | | | | | | | | * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Call _Jv_PrepareConstantTimeTables. * java/lang/natClass.cc (_Jv_PrepareConstantTimeTables): Array classes should have an IDT, so don't return if klass is an array class. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32445 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/natArray.cc (newInstance): Don't allow arraytromey2000-03-095-24/+68
| | | | | | | of `void' to be created. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32443 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/math/BigInteger.java(signum): Handle zero properly.warrenl2000-03-092-1/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32441 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.lang/PR162.java: Mention `PR162', not `Test', as classtromey2000-03-082-3/+8
| | | | | | | name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32408 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-073-0/+15
| | | | | | | | | Test for PR gcj/163: * libjava.lang/PR163.java: New file. * libjava.lang/PR163.xfail: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32393 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/libjava.exp (test_libjava_from_javac): Removed hack fortromey2000-03-072-13/+23
| | | | | | | interfaces. Fail if jv-scan reports a parse error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32392 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright information.tromey2000-03-07390-880/+750
| | | | | | | | | * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32387 138bc75d-0d04-0410-961f-82ee72b054a4
* Test for PR gcj/162:tromey2000-03-073-0/+39
| | | | | | | | * libjava.lang/PR162.out: New file. * libjava.lang/PR162.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32384 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-0710-224/+772
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolve.cc (_Jv_SearchMethodInClass): New function. (_Jv_ResolvePoolEntry): Search superinterfaces for interface methods. * java/lang/Class.h (_Jv_SearchMethodInClass): New prototype. 2000-03-07 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/Class.h (union _Jv_IDispatchTable): New declaration. (struct _Jv_ifaces): New declaration. JV_CLASS: New macro definition. (getComponentType): Relocate below isArray() for inlining. (getModifiers): Declare `inline'. (getSuperclass): Ditto. (isArray): Ditto. (isPrimitive): Ditto. (_Jv_IsAssignableFrom): New prototype. (_Jv_LookupInterfaceMethodIdx): New prototype. Predeclare with "C" linkage. (_Jv_InitClass): Move from natClass.cc. Declare `inline'. Check for JV_STATE_DONE before invoking initializeClass(). (_Jv_PrepareConstantTimeTables): New prototype. (_Jv_GetInterfaces): Ditto. (_Jv_GenerateITable): Ditto. (_Jv_GetMethodString): Ditto. (_Jv_AppendPartialITable): Ditto. (_Jv_FindIIndex): Ditto. depth, ancestors, idt: New class fields. * java/lang/natClass.cc (isAssignableFrom): Move functionality to inline function `_Jv_IsAssignableFrom'. Use that function. (isInstance): Declare `inline'. (initializeClass): Get lock on class before checking `state'. Unlock before calling resolveClass0. Call _Jv_PrepareConstantTimeTables with the lock held. (_Jv_LookupInterfaceMethod): Use _Jv_GetMessageString. (_Jv_IsAssignableFrom): New inline function. Test assignability using class->depth and ancestor table. (_Jv_IsInstanceOf): Use _Jv_IsAssignableFrom. (_Jv_CheckCast): Move from prims.cc. Use JV_CLASS and _Jv_IsAssignableFrom. (_Jv_CheckArrayStore): Ditto. (_Jv_LookupInterfaceMethodIdx): New function. INITIAL_IOFFSETS_LEN, INITIAL_IFACES_LEN: New #defines. (_Jv_PrepareConstantTimeTables): New function. (_Jv_IndexOf): Ditto. (_Jv_GetInterfaces): Ditto. (_Jv_GenerateITable): Ditto. (_Jv_GetMethodString): Ditto. (_Jv_AppendPartialITable): Ditto. iindex_mutex, iindex_mutex_initialized: New static fields. (_Jv_FindIIndex): New function. * java/lang/natClassLoader.cc (_Jv_NewClass): Set new jclass fields. * prims.cc (_Jv_CheckCast): Moved to natClass.cc. (_Jv_CheckArrayStore): Ditto. (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray): Moved to gcj/array.h. (_Jv_Realloc): New function. * gcj/cni.h: Move _Jv_PrimClass definitions to gcj/array.h. * gcj/array.h: _Jv_PrimClass definitions moved from gcj/cni.h. (JvNewCharArray, JvNewBooleanArray, JvNewByteArray, JvNewShortArray, JvNewIntArray, JvNewLongArray, JvNewFloatArray, JvNewDoubleArray): Implementations moved from prims.cc and declared `inline'. * gcj/javaprims.h (_Jv_Realloc): Prototype. * include/jvm.h (_Jv_LookupInterfaceMethodIdx): Prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32382 138bc75d-0d04-0410-961f-82ee72b054a4
* Test for PR gcj/164:tromey2000-03-073-0/+13
| | | | | | | | * libjava.compile/PR164.xfail: New file. * libjava.compile/PR164.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32374 138bc75d-0d04-0410-961f-82ee72b054a4
* * jni.cc (MARK_NONE): New define.tromey2000-03-072-50/+117
| | | | | | | | | | | | | | | | | | | | (MARK_USER): Likewise. (MARK_SYSTEM): Likewise. (struct _Jv_JNI_LocalFrame): Made `marker' bigger and `size' smaller. (_Jv_JNI_DeleteLocalRef): Use MARK_NONE in assert. (_Jv_JNI_EnsureLocalCapacity): Use MARK_NONE. (_Jv_JNI_PushLocalFrame): Use MARK_USER. (_Jv_JNI_PopLocalFrame): New version with additional `stop' argument. (call): Use MARK_SYSTEM. (_Jv_GetJNIEnvNewFrame): New function. (_Jv_LookupJNIMethod): New function. (_Jv_JNI_PopSystemFrame): New function. (call): Use _Jv_JNI_PopSystemFrame and _Jv_LookupJNIMethod. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32373 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava.compile/PR127.xfail: New file.bryce2000-03-062-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32357 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-06 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-03-062-0/+16
| | | | | | | | * libjava.compile/PR127.java: New file. PR 127 test case from Joerg Brunsmann. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32356 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/libjava.exp (test_libjava): Document `shouldfail' token.tromey2000-03-065-5/+58
| | | | | | | | | | | | (test_libjava_from_source): Handle `shouldfail' case. (test_libjava_from_javac): Likewise. Test for PR libgcj/124: * libjava.compile/PR124.java: New file. * libjava.compile/PR124.xfail: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32353 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud