summaryrefslogtreecommitdiffstats
path: root/libjava/include
Commit message (Collapse)AuthorAgeFilesLines
* Fix for PR libgcj/6081:tromey2002-04-161-4/+4
| | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (install-data-local): Use GNU make trick to avoid shell limit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52370 138bc75d-0d04-0410-961f-82ee72b054a4
* Install libgcj.jar as libgcj-VERSION.jar.green2002-04-121-4/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52226 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-04-11 Adam King <aking@dreammechanics.com>tromey2002-04-111-3/+5
| | | | | | | | | | | | | Tom Tromey <tromey@redhat.com> * include/jvm.h (_Jv_ThrowBadArrayIndex, _Jv_ThrowNullPointerException): Mark as noreturn. * win32.cc (_Jv_platform_initProperties): Use _Jv_MallocUnchecked and _Jv_free. Correctly invoke GetTempPath(). Indentation fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52164 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2002-04-101-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (java/lang/Thread.h): Mark _Jv_AttachCurrentThreadAsDaemon as friend. * gcj/javaprims.h (_Jv_AttachCurrentThreadAsDaemon): Declare. * gcj/cni.h (JvAttachCurrentThreadAsDaemon): New function. * java/lang/natThread.cc (_Jv_AttachCurrentThreadAsDaemon): New function. * java/lang/natRuntime.cc (_load): Recognize JNI_VERSION_1_4. * jni.cc (_Jv_JNI_GetVersion): Return JNI_VERSION_1_4. (_Jv_JNI_InvokeFunctions): Added _Jv_JNI_AttachCurrentThreadAsDaemon. (_Jv_JNI_GetEnv): Handle JNI_VERSION_1_4. (JNI_GetDefaultJavaVMInitArgs): Likewise. (JNI_CreateJavaVM): Likewise. (_Jv_JNI_AttachCurrentThread): Likewise. (_Jv_JNI_AttachCurrentThread): Added `is_daemon' argument. (_Jv_JNI_AttachCurrentThreadAsDaemon): New method. (_Jv_JNIFunctions): Initialize new fields. (_Jv_JNI_NewDirectByteBuffer): New function. (_Jv_JNI_GetDirectBufferAddress): Likewise. (_Jv_JNI_GetDirectBufferCapacity): Likewise. * include/jni.h (JNI_VERSION_1_4): New macro. (JNIInvokeInterface::AttachCurrentThreadAsDaemon): New field. (_Jv_JavaVM::AttachCurrentThreadAsDaemon): New method. (JNINativeInterface::NewDirectByteBuffer): New field. (JNINativeInterface::GetDirectBufferAddress): New field. (JNINativeInterface::GetDirectBufferCapacity): New field. (_Jv_JNIEnv::NewDirectByteBuffer): New method. (_Jv_JNIEnv::GetDirectBufferAddress): New method. (_Jv_JNIEnv::GetDirectBufferCapacity): New method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52144 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-04-07 Adam King <aking@dreammechanics.com>bryce2002-04-072-0/+4
| | | | | | | | | | | | | * java/lang/natSystem.cc (init_properties): Call new function _Jv_platform_initProperties. * win32 (_Jv_platform_initProperties): New function that adds Win32 support for the System properties os.name, os.arch, os.version, user.name, user.home, and user.dir. * include/posix.h, include/win32.h, posix.cc: New function _Jv_platform_initProperties. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51989 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-04-04 Adam Megacz <adam@xwt.org>megacz2002-04-051-1/+2
| | | | | | | | * include/win32.h (_Jv_platform_close_on_exec): added inline modifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51899 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix-threads.h [alpha] (_Jv_ThreadSelf): Avoid a copy.rth2002-03-271-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51468 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-25 Andrew Haley <aph@cambridge.redhat.com>, Hans Boehm ↵aph2002-03-271-0/+55
| | | | | | | | | | | | <Hans_Boehm@hp.com> * include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64. (INIT_SEGV, INIT_FPE): Add versions that use __libc_sigaction instead of syscall on IA-64. Add FIXME comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51459 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-27 Anthony Green <green@redhat.com>tromey2002-03-271-0/+1
| | | | | | | | | | * libgcj.spec.in: Add CHECKREFSPEC. * configure.in: Ditto. * configure.host: Ditto. Check references for xscale-elf. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51457 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/dwarf2-signal.h: Temporarily back out last change.hboehm2002-03-261-30/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51415 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix-threads.h: Support <.../pal.h> on FreeBSD/alpha.ljrittle2002-03-261-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51383 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in, configure: enable dwarf2-exception-stylehboehm2002-03-261-2/+30
| | | | | | | | | | exception handling on IA-64. * include/dwarf2-signal.h (MAKE_THROW_FRAME): Add for IA-64. (INIT_SEGV, INIT_FPE): Use __libc_sigaction instead of syscall. Add FIXME comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51367 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am (libgcj_la_LDFLAGS): Use THREADLDFLAGS.tromey2002-03-261-5/+7
| | | | | | | | | | | | (jv_convert_LDFLAGS): Likewise. (gij_LDFLAGS): Likewise. (rmic_LDFLAGS): Likewise. (rmiregistry_LDFLAGS): Likewise. * configure.in (THREADLDFLAGS): New subst; set correctly for *BSD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51363 138bc75d-0d04-0410-961f-82ee72b054a4
* reverted erroneous checkintromey2002-03-231-6/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51235 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/name-finder.h (_Jv_name_finder::myclose): New method.tromey2002-03-232-11/+27
| | | | | | | * name-finder.cc (_Jv_name_finder): Initialize file descriptors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51234 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-19 Martin Kahlert <martin.kahlert@infineon.com>tromey2002-03-191-1/+1
| | | | | | | * include/jni.h Use correct C comments git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51046 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jni.h (JNIIMPORT): New macro.tromey2002-03-181-0/+6
| | | | | | | | (JNIEXPORT): Likewise. (JNICALL): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51009 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-18 Andrew Haley <aph@cambridge.redhat.com>aph2002-03-181-26/+41
| | | | | | | | | * include/i386-signal.h (old_i386_kernel_sigaction): New. INIT_SEGV: Use old_i386_kernel_sigaction. INIT_FP: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50980 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (init_properties): Update VM versionbryce2002-03-181-0/+7
| | | | | | | | | | | properties. * configure.in: Set GCJVERSION. * acconfig.h: Add GCJVERSION. * configure: Rebuilt. * include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50944 138bc75d-0d04-0410-961f-82ee72b054a4
* Install libgcj-config.h in a better place.green2002-03-151-4/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50817 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/posix.h: Add multiple include header protection.bryce2002-03-111-0/+5
| | | | | | | * java/net/natPlainSocketImpl.cc: Don't #include <posix.h>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50559 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Win32Process.java: Added comment.tromey2002-03-102-4/+13
| | | | | | | | | | | | | | | | * include/posix.h (_Jv_platform_close_on_exec): New function. Include fcntl.h. * include/win32.h (_Jv_platform_close_on_exec): New function. * java/net/natPlainSocketImpl.cc (create): Set close-on-exec flag. (accept): Likewise. * java/net/natPlainDatagramSocketImpl.cc (create): Set close-on-exec flag. * java/io/natFileDescriptorPosix.cc (open): Set close-on-exec flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50536 138bc75d-0d04-0410-961f-82ee72b054a4
* libjava:bryce2002-03-101-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hashtable synchronization for PowerPC. * configure.in: Define SLOW_PTHREAD_SELF if configure.host set slow_pthread_self. Set up symlink for sysdeps directory. * configure: Rebuild. * configure.host: Document more shell variables. Set sysdeps_dir for most platforms. Set slow_pthread_self for i686. Set enable_hash_synchronization_default and slow_pthread_self for PowerPC. * posix-threads.cc (_Jv_ThreadSelf_out_of_line): Use release_set so that memory barrier is emitted where required. * prims.cc: 64-bit align static primitive class instances. * include/posix-threads.h (_Jv_ThreadSelf for SLOW_PTHREAD_SELF): Add read_barrier() to enforce ordering of reads. * sysdep/powerpc/locks.h: New file. Implementation of synchronization primitives for PowerPC. * sysdep/i386/locks.h: New file. Synchronization primitives for i386 moved from natObject.cc. * sysdep/alpha/locks.h: Likewise. * sysdep/ia64/locks.h: Likewise. * sysdep/generic/locks.h: Likewise. * java/lang/natObject.cc: Move thread synchronization primitives to system-dependent headers. gcc/java: * decl.c (java_init_decl_processing): Make sure class_type_node alignment is not less than 64 bits if hash synchronization isenabled. boehm-gc: * include/gc_priv.h: Define ALIGN_DOUBLE on 32 bit targets if GCJ support is enabled, for hash synchronization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50523 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jni.h: Include stdio.h.tromey2002-03-081-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50457 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-07 Adam Megacz <adam@xwt.org>megacz2002-03-082-2/+10
| | | | | | | | | | | | | | | | * win32.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. Added implementation * posix.cc (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * win32.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * posix.h (_Jv_platform_gettimeofday): Now takes no args, returns jlong. * java/lang/natSystem.cc (currentTimeMillis): Now uses updated _Jv_platform_gettimeofday signature. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50416 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/config.h.in: Rebuilt.tromey2002-03-061-3/+0
| | | | | | | | * configure: Rebuilt. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50381 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-04 Eric Blake <ebb9@email.byu.edu>ericb2002-03-062-83182/+1278
| | | | | | | | | | | | | | | | | | | | | | | | | * scripts/unicode-decomp.pl: Move from chartables.pl, and remove the code for generating include/java-chartables.h. * scripts/unicode-blocks.pl: Move from scripts/blocks.pl, and merge with Classpath. * scripts/unicode-muncher.pl: Copy from Classpath. * scritps/MakeCharTables.java: New file. * gnu/gcj/convert/Blocks-3.txt: New file. * gnu/gcj/convert/UnicodeData-3.0.0.txt: New file. * gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html: New file. * gnu/java/lang/CharData.java: Copy from Classpath. * Makefile.am (ordinary_java_source_files): Add gnu/java/lang/CharData.java. * configure.in: Remove --enable-fast-character option. * java/lang/Character.java: Merge algorithms and Javadoc with Classpath. * java/lang/natCharacter.cc: Implement Unicode lookup table more efficiently. * include/java-chardecomp.h: Regenerate. * include/java-chartables.h: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50368 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc (init_properties): Use __VERSION__.tromey2002-02-272-7/+3
| | | | | | | | | | | * gij.cc (version): Use __VERSION__. * include/config.h.in: Rebuilt. * acconfig.h (GCJVERSION): Removed. * configure: Rebuilt. * configure.in (GCJVERSION): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50088 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in, gcj/Makefile.in, include/Makefile.in: Rebuilt.aoliva2002-02-231-2/+4
| | | | | | | * testsuite/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49985 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-14 Martin Kahlert <martin.kahlert@infineon.com>tromey2002-02-141-2/+2
| | | | | | | * include/jni.h: Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49767 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-11 Adam Megacz <adam@xwt.org>megacz2002-02-121-0/+1
| | | | | | | | * include/win32.h: Added _Jv_platform_gettimeofday. * win32.cc (_Jv_platform_gettimeofday): Added dummy function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49693 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/name-finder.h: Conditionally include sys/wait.h.tromey2002-02-072-1/+6
| | | | | | | * include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49585 138bc75d-0d04-0410-961f-82ee72b054a4
* * prims.cc (_Jv_CreateJavaVM): Call _Jv_platform_initialize.tromey2002-02-072-3/+4
| | | | | | | | | | | | | | | | | * win32.cc (win32_exception_handler): Now static. * include/win32.h (_Jv_platform_initialize): Declare. (win32_exception_handler): Don't declare. * java/lang/natSystem.cc (currentTimeMillis): Use _Jv_platform_gettimeofday. * posix.cc (_Jv_platform_gettimeofday): Renamed. (_Jv_select): Use new name. (_Jv_platform_initialize): New function. * include/posix.h (_Jv_platform_gettimeofday): Renamed from _Jv_gettimeofday. (_Jv_platform_initialize): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49583 138bc75d-0d04-0410-961f-82ee72b054a4
* For some reason AC_HEADER_SYS_WAIT() isn't defining HAVE_SYS_WAIT_H onmegacz2002-02-071-2/+0
| | | | | | | | Linux; this patch backs out my patch that added the #ifdefs until I can figure out what happened. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49572 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-06 Adam Megacz <adam@xwt.org>megacz2002-02-071-0/+22
| | | | | | | | | | | | | | * configure.in: Changed mingw) to *mingw*). * win32.cc: Created this file. * win32.h: Created this file. * win32.cc, prims.cc, win32.h (win32_exception_handler): Moved win32_exception_handler from prims.cc to win32.cc, added header in win32.h. * prims.cc: removed some #ifdef-WIN32'd headers which are no longer needed now that we have platform.h git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49566 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-06 Adam Megacz <adam@xwt.org>megacz2002-02-071-0/+3
| | | | | | | * name-finder.h: don't #include sys/wait.h unless HAVE_SYS_WAIT_H git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49564 138bc75d-0d04-0410-961f-82ee72b054a4
* embedded updatesgreen2002-02-071-4/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49562 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-01 Adam Megacz <adam@xwt.org>megacz2002-02-021-51/+31
| | | | | | | | | | | | | | * include/win32-threads.h (_Jv_ConditionVariable_t): Now a struct, to enable safer wait() algorithm. (_Jv_CondWait, _Jv_CondInit, _Jv_CondDestroy, _Jv_CondNotify, _Jv_CondNotifyAll): Implementations moved to win32-threads.cc. (_Jv_MutexInit, _Jv_HaveMutexDestroy, _Jv_MutexUnlock, _Jv_MutexLock, _Jv_ThreadYield): Reimplement using CRITICAL_SECTIONs instead of mutex. (_Jv_ThreadYield): Don't call Sleep(), because it crashes win98. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49427 138bc75d-0d04-0410-961f-82ee72b054a4
* Start of AWT merge with Classpath:tromey2002-01-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Reference files in gnu/java/awt, not gnu/gcj/awt. * java/awt/image/BufferedImage.java: Updated copyright. * java/awt/image/ComponentColorModel.java: Updated copyright. * java/awt/image/ComponentSampleModel.java: Updated copyright. * java/awt/image/DataBuffer.java: Updated copyright. * java/awt/image/DataBufferByte.java: Updated copyright. * java/awt/image/DataBufferInt.java: Updated copyright. * java/awt/image/DataBufferUShort.java: Updated copyright. * java/awt/image/IndexColorModel.java: Updated copyright. * java/awt/image/PackedColorModel.java: Updated copyright. * java/awt/image/Raster.java: Updated copyright. * java/awt/image/RasterOp.java: Updated copyright. * java/awt/image/SampleModel.java: Updated copyright. * java/awt/image/SinglePixelPackedSampleModel.java: Updated copyright. * java/awt/image/WritableRaster.java: Updated copyright. * java/awt/color/ColorSpace.java: Updated copyright. * java/awt/color/ICC_ColorSpace.java: Updated copyright * java/awt/color/ICC_Profile.java: Updated copyright. * java/awt/event/HierarchyBoundsAdapter.java: Updated copyright. * java/awt/event/HierarchyBoundsListener.java: Updated copyright. * java/awt/event/HierarchyEvent.java: Updated copyright. * java/awt/event/HierarchyListener.java: Updated copyright. * java/awt/geom/AffineTransform.java: Updated copyright. * java/awt/geom/Dimension2D.java: Updated copyright. * java/awt/geom/Ellipse2D.java: Updated copyright. * java/awt/geom/IllegalPathStateException.java: Updated copyright. * java/awt/geom/Line2D.java: Updated copyright. * java/awt/geom/NoninvertibleTransformException.java: Updated copyright. * java/awt/geom/PathIterator.java: Updated copyright. * java/awt/geom/Point2D.java: Updated copyright. * java/awt/geom/Rectangle2D.java: Updated copyright. * java/awt/geom/RectangularShape.java: Updated copyright. * java/awt/geom/RoundRectangle2D.java: Updated copyright. * java/awt/Toolkit.java: Updated import for file moves. * java/awt/Rectangle.java: Updated copyright; added javadoc from Classpath. (hashCode): New method from Classpath. * java/awt/Graphics2D.java: Updated copyright. * java/awt/Transparency.java: Updated copyright. * java/awt/Paint.java: Updated copyright. * java/awt/Graphics.java: New version from Classpath. * java/awt/EventDispatchThread.java: Updated copyright. * java/awt/CardLayout.java (layoutContainer): Don't skip invisible children. (gotoComponent): Wrap around on next/previous. * gnu/gcj/awt/BitMaskExtent.java: Removed. * gnu/gcj/awt/Buffers.java: Removed. * gnu/gcj/awt/ComponentDataBlitOp.java: Removed. * gnu/gcj/awt/GLightweightPeer.java: Removed. * gnu/java/awt/BitMaskExtent.java: Added. * gnu/java/awt/Buffers.java: Added. * gnu/java/awt/ComponentDataBlitOp.java: Added. * gnu/java/awt/GLightweightPeer.java: Added. * java/awt/geom/Line2D.java (clone): Ignore CloneNotSupportedException. * gnu/gcj/awt/GLightweightPeer.java (getColorModel): New method. * java/awt/Frame.java: Merged with Classpath. * java/awt/RenderingHints.java: Copyright update. * java/awt/Paint.java: Copyright update. * java/awt/image/DirectColorModel.java: Merged with Classpath. * java/awt/image/ColorModel.java: Merged with Classpath. * java/awt/Window.java (show): New Implementation from Classpath. (isShowing): Use super.isShowing(). * java/awt/EventQueue.java: Merged with Classpath. * java/awt/AWTEventMulticaster.java (save): Throw RuntimeException. (saveInternal): Likewise. * java/awt/AWTEvent.java: Now implements Serializable. * java/awt/Event.java: Copyright update. * java/awt/peer/ComponentPeer.java: Merged with Classpath. * java/awt/image/BufferedImage.java: Copyright update. * java/awt/GraphicsConfiguration.java: Copyright update. * java/awt/Component.java: (addNotify): Don't call addNotifyContainerChildren(). (addNotifyContainerChildren): Removed. (setPeer): New method from Classpath. (setTreeLock): Likewise. (setVisible): Rewrote. (show): Use it. (hide): Likewise. (validate): Set `valid'. (checkImage(Image,ImageObserver)): Implementation from Classpath. (createImage(ImageProducer)): Likewise. (prepareImage): Likewise. * java/awt/Container.java (addImpl): Handle case where constraint is not a String. Post event via system event queue. (remove): Post event via system event queue. (validateTree): Only validate child if it is invalid. (getAlignmentX): Call super method as default. (getAlignmentY): Likewise. (addContainerListener): Now synchronized. (removeContainerListener): Likewise. (addNotifyContainerChildren): Now private. * java/awt/ComponentOrientation.java: Updated copyright. Added @author. * java/awt/FlowLayout.java (serialVersionUID): New field. (setAlignment): Better exception message. (layoutContainer): Don't compute component's preferred size unless we're going to use it. * java/awt/BorderLayout.java (AFTER_LAST_LINE, AFTER_LINE_ENDS, BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS): New constants. (firstLine, lastLine, firstItem, lastItem): New fields. (addLayoutComponent): Handle case where constraints is null. Also, handle relative locations. (removeLayoutComponent): Handle relative locations. (MIN, MAX, PREF): New constants. (calcCompSize): New method. (calcSize): New method. (minimumLayoutSize): Use it. (preferredLayoutSize): Likewise. (maximumLayoutSize): Likewise. (toString): Include more information. (setBounds): New method. (layoutContainer): Use libgcj implementation; extended to handle relative locations. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48896 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-06 Andreas Tobler <a.tobler@schweiz.ch>tromey2002-01-061-0/+10
| | | | | | | | | * configure, include/config.h.in: Rebuilt. * java/lang/natSystem.cc (getSystemTimeZone): Check HAVE_TM_ZONE. * configure.in: Call AC_STRUCT_TIMEZONE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48588 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvm.h (_Jv_BuildGCDescr): Declare unconditionally.bryce2001-12-191-2/+0
| | | | | | | * nogc.cc (_Jv_BuildGCDescr): Define unconditionally. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48169 138bc75d-0d04-0410-961f-82ee72b054a4
* For PR libgcj/5103:tromey2001-12-163-15/+113
| | | | | | | | | | | | | | | | | * include/jvm.h (__GCJ_JNI_IMPL__): Define. * include/config.h.in: Rebuilt. * configure: Rebuilt. * configure.in: Define JV_HAVE_INTTYPES_H if inttypes.h found. Added comment for HAVE_DLOPEN to avoid autoheader error. * gcj/libgcj-config.h.in (JV_HAVE_INTTYPES_H): Added. * include/jni.h: Include <gcj/libgcj-config.h>. Don't include CNI-specific headers if we are compiling ordinary JNI code with a C++ compiler. Include <inttypes.h> and JNIWeakRef.h when appropriate. * jni.cc: Don't include JNIWeakRef.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48082 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/java:bryce2001-12-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java-tree.h (otable_methods, otable_decl, otable_syms_decl, otable_type, otable_ptr_type, method_symbol_type, method_symbols_array_type, method_symbols_array_ptr_type): New field/global tree definitions. (flag_indirect_dispatch): New flag. * decl.c (java_init_decl_processing): Initialize new otable and otable_syms type nodes and decls. Add new field "index" to method_type_node. * class.c (build_method_symbols_entry): New function. (make_method_value): Set "index" to to method's vtable index for virtual methods when indirect-dispatch is not used. (make_class_data): For indirect-dispatch, dont emit the dtable_decl, and set vtable_method_count to -1. Set otable and otable_syms field if indirect-dispatch is used and there was something to put in them. (build_method_symbols_entry): New function. (emit_offset_symbol_table): New function. * expr.c (get_offset_table_index): New function. (build_invokevirtual): Build array reference to otable at the index returned by get_offset_table_index, and use the result as the vtable offset. (build_invokeinterface): Similar. * jcf-parse.c (yyparse): If indirect-dispatch, call emit_offset_symbol_table at the end of compilation, after all classes have been generated. * jvspec.c: Don't pass findirect-dispatch to jvgenmain. * lang.c (flag_indirect_dispatch): Define. (lang_f_options): Add indirect-dispatch flag. libjava: * include/jvm.h (_Jv_VTable::idx_to_offset): New method. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_MakeVTable and _Jv_LinkOffsetTable if needed. * java/lang/Class.h (_Jv_Method): Add "index" field. (_Jv_MethodSymbol): New struct type. (_Jv_LinkOffsetTable, _Jv_LayoutVTableMethods, _Jv_SetVTableEntries, _Jv_MakeVTable): Friends. (otable, otable_syms): New Class fields. * java/lang/natClass.cc (_Jv_LinkOffsetTable): New function. (isVirtualMethod): New static function. (_Jv_LayoutVTableMethods): New function. (_Jv_SetVTableEntries): New function. (_Jv_MakeVTable): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48038 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava/prims.cc: Some old cleanups. The collector nowhboehm2001-12-141-9/+11
| | | | | | | | | | | | | | handles test for out of memory. * libjava/prims.cc, libjava/gcj/javaprims.h: (_Jv_AllocObjectNoInitNoFinalizer, _Jv_AllocObjectNoFinalizer): New functions for finalizer-free allocation. (jvmpi_notify_alloc): Became separate function. * libjava/java/lang/Object.h, libjava/include/jvm.h: Adjust for revised vtable layout on IA64. With TARGET_VTABLE_USES_DESCRIPTORS, there is only one extra descriptor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48002 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/2024, plus other class name cleanups:tromey2001-11-262-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | * include/jvm.h (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature, _Jv_VerifyClassName, _Jv_VerifyIdentifier, _Jv_ClassNameSamePackage): Moved from ... * include/java-interp.h: ... here. * defineclass.cc (UTF8_PEEK): No longer conditional on interpreter. (_Jv_VerifyOne): Likewise. (_Jv_VerifyFieldSignature): Likewise. (_Jv_VerifyMethodSignature): Likewise. (is_identifier_start): Likewise. (is_identifier_part): Likewise. (_Jv_VerifyIdentifier): Likewise. (_Jv_VerifyClassName): Likewise. (_Jv_VerifyClassName): Likewise. (_Jv_ClassNameSamePackage): Likewise. (_Jv_VerifyClassName): Fail if class name is too long. * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Disallow array of void. * java/lang/natClass.cc (forName): Check syntax of class name. Include IllegalArgumentException.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47334 138bc75d-0d04-0410-961f-82ee72b054a4
* * verify.cc (_Jv_BytecodeVerifier::branch_prepass): Usetromey2001-11-251-2/+2
| | | | | | | | | | | java_opcode as type for switch. [op_wide]: Likewise. (_Jv_BytecodeVerifier::verify_instructions_0): Likewise. [op_invokevirtual]: Likewise. * include/java-insns.h (java_opcode): Give enum a name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47330 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.tromey2001-11-051-1/+7
| | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (libgcj_la_SOURCES): Added verify.cc. * verify.cc: New file. * include/java-interp.h (_Jv_count_arguments): Declare. (_Jv_VerifyMethod): Likewise. (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend. (class _Jv_InterpException): Likewise. * resolve.cc (_Jv_count_arguments): Renamed from count_arguments. No longer static. Updated callers. * defineclass.cc (int_bits_to_float): Removed. (long_bits_to_double): Likewise. (prepare_pool_entry): Updated. (handleCodeAttribute): Verify method (commented out for now). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46796 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jni.h (struct JNINativeInterface) [GetStringLength]:tromey2001-10-271-1/+1
| | | | | | | Returns jsize, not jint. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46569 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/boehm-gc.h: Call thread local allocation functionshboehm2001-10-251-2/+18
| | | | | | | if THREAD_LOCAL_ALLOC is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46490 138bc75d-0d04-0410-961f-82ee72b054a4
* * prims.cc (_Jv_Abort): Always print error message using fprintf,bryce2001-10-231-0/+3
| | | | | | | | | | | | don't try to allocate. (_Jv_CreateJavaVM): Set gcj::runTimeInitialized. * include/jvm.h (gcj::runTimeInitialized): New variable declaration. * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle duplicate class registration with JvFail if the runtime hasn't been initialized yet. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46424 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud