OSDN Git Service

* jni.cc (nathash, nathash_count, nathash_size): New globals.
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index d632ce1..b6fa026 100644 (file)
@@ -1,3 +1,457 @@
+2001-08-20  Tom Tromey  <tromey@redhat.com>
+
+       * jni.cc (nathash, nathash_count, nathash_size): New globals.
+       (DELETED_ENTRY): New define.
+       (hash): New function.
+       (nathash_find_slot): Likewise.
+       (natrehash): Likewise.
+       (nathash_add): Likewise.
+       (_Jv_JNI_RegisterNatives): No longer interpreter-specific.  Use
+       nathash_add.
+       (nathash_find): New function.
+       (_Jv_LookupJNIMethod): Use it.  Synchronize body.
+       (call): Synchronize around assignment.
+
+2001-08-17  Jeff Sturm  <jsturm@one-point.com>
+
+       * gnu/gcj/convert/UnicodeToBytes.java (write): Write work buffer
+       starting from zero offset.
+
+2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
+
+       * boehm.cc: Include gc_local_alloc.h if appropriate.
+       (GC_GENERIC_MALLOC): Don't define.
+       (MAYBE_MARK): Redefine for GC 6.0.
+       (_Jv_MarkObj): Mark class differently.
+       (_Jv_AllocArray): Use GC_generic_malloc.
+
+2001-08-17  Mark J Roberts  <mjr@anarcast.net>
+
+       * java/math/BigInteger.java (randBytes): New method.
+       (BigInteger(int,Random)): Use randBytes.
+
+2001-08-17  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/gcj/convert/IOConverter.java: Add `646' alias.
+
+2001-08-17  Hans-J. Boehm <Hans_Boehm@hp.com>
+
+       * BigInteger.java: fix right shifts by nonzero multiples of 32.
+       
+2001-08-15  Tom Tromey  <tromey@redhat.com>
+
+       * jni.cc: Include IdentityHashMap.h, not Hashtable.h.
+       (local_ref_table, global_ref_table): Now IdentityHashMap.
+       (_Jv_JNI_Init): Updated for new types.
+       (mark_for_gc): Likewise.
+       (unmark_for_gc): Likewise.
+       * gcj/javaprims.h: Rebuilt class list.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (core_java_source_files): Added new file.
+       * java/util/IdentityHashMap.java: New file.
+
+       * gnu/gcj/convert/natIconv.cc (read): Handle EINVAL and E2BIG
+       correctly.
+
+2001-08-09  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/image/SampleModel.java (getPixel): Set correct array
+       element.  From Chris Meyer.
+
+2001-08-10  Loren J. Rittle  <ljrittle@acm.org>
+
+       * java/lang/natObject.cc (is_mp): Protect use of _SC_NPROCESSORS_ONLN.
+       * gnu/gcj/convert/natIconv.cc (done): Use HAVE_ICONV.
+
+2001-08-06  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/InputStreamReader.java (refill): Only call refill on
+       BufferedInputStream when appropriate constraints are met.
+
+2001-08-05  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/StringWriter.java: Merged with Classpath.
+       * java/io/InputStream.java: Merged with Classpath.
+       * java/io/OutputStream.java: Merged with Classpath.
+       * java/io/PushbackInputStream.java: Merged with Classpath.
+       * java/io/CharArrayReader.java: Merged with Classpath.
+       * java/io/CharArrayWriter.java: Merged with Classpath.
+
+2001-08-02  Tom Tromey  <tromey@redhat.com>
+
+       * prims.cc (JNI_OnLoad): Don't declare.
+       (_JNI_OnLoad): Don't define.
+       (_Jv_CreateJavaVM): Don't handle JNI_OnLoad.
+
+2001-08-02  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/RandomAccessFile.java (seek): Let seek go past end of
+       file.
+       (skipBytes): Don't fail if seeking past end of file.
+       * java/io/FileInputStream.java (skip): Don't fail if seeking past
+       end of file.
+       * java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
+       argument.
+       * java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
+       argument.
+       * java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
+       argument.
+       * java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.
+
+2001-08-02  Martin Kahlert  <martin.kahlert@infineon.com>
+
+       * jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
+       to initialize global_ref_table/local_ref_table.
+
+2001-08-02  Tom Tromey  <tromey@redhat.com>
+
+       * configure: Rebuilt.
+       * configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin.  From
+       David Billinghurst.
+
+2001-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * include/posix.h (_POSIX_PII_SOCKET): Define.
+       * configure.in (HAVE_SOCKLEN_T): Define.
+       * java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
+       definition up. 
+       (_JV_accept): New function, avoids Tru64 UNIX accept macro.
+       (java::net::PlainSocketImpl::accept): Use it.
+       Fixes PRs libgcj/3694, libgcj/3696.
+       
+       * configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
+       * acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
+       * configure, include/config.h.in: Regenerate.
+       * java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
+       (mcastGrp): Likewise.
+       (java::net::PlainDatagramSocketImpl::setOption): Guard against
+       missing IPV6_MULTICAST_IF.
+       Fixes PR libgcj/3694.
+
+2001-08-01  Jeff Sturm  <jsturm@one-point.com>
+
+       * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
+
+2001-07-30  Christian Iseli  <chris@ludwig-alpha.unil.ch>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (GCJLINK): Added --tag=GCJ.
+       (LIBLINK): Likewise.
+
+2001-07-30  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/Date.java: Re-merged with Classpath.
+
+2001-07-30  Jeff Sturm  <jsturm@one-point.com>
+
+       * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined.
+       (_Jv_bind): New static function.
+       (bind): Use _Jv_bind.
+       * java/net/natPlainSocketImpl.cc: Undefine bind, connect if defined.
+       (_Jv_bind, _Jv_connect): New static functions.
+       (bind): Use _Jv_bind.
+       (connect): Use _Jv_connect.
+
+2001-07-30  Tom Tromey  <tromey@redhat.com>
+           Corey Minyard  <minyard@acm.org>
+
+       * gnu/gcj/convert/natIconv.cc (done): New methods.
+       * gnu/gcj/convert/Output_iconv.java (done): New method.
+       * gnu/gcj/convert/Input_iconv.java (done): New method.
+       * gnu/gcj/convert/UnicodeToBytes.java (defaultEncodingClass):
+       Removed.
+       (getDefaultEncodingClass): Removed.
+       (getDefaultEncoder): Use getEncoder.
+       (done): New method.
+       (defaultEncoding, CACHE_SIZE, encoderCache, currCachePos): New
+       static fields.
+       * gnu/gcj/convert/BytesToUnicode.java (defaultDecodingClass):
+       Removed.
+       (defaultEncoding, CACHE_SIZE, decoderCache, currCachePos): New
+       static fields.
+       (getDefaultDecodingClass): Removed.
+       (getDefaultDecoder): Use getDecoder.
+       (getDecoder): Look up decoder in cache.
+       (done): New method.
+       * java/lang/natString.cc (init): Call `done' on converter.
+       (getBytes): Likewise.
+
+2001-07-30  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/Integer.java: Merged with Classpath.
+
+2001-07-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/util/GregorianCalendar.java (GregorianCalendar): Call
+       setTimeInMillis() to set the default/current time.
+
+2001-07-29  Mark Wielaard <mark@klomp.org>
+
+       * HACKING: add description on updating namespace
+
+2001-07-26  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/util/Calendar.java (set): Never recompute fields here. They 
+       will already be set if someone set time explicitly, and it can cause
+       problems to do so. Don't invalidate AM_PM setting if HOUR is set.
+       * java/util/GregorianCalendar.java (computeTime): Don't ignore an
+       HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is 
+       sane.
+       * java/text/SimpleDateFormat.java (defaultCentury): New field.
+       (readObject): Call set2DigitYearStart if appropriate so that 
+       defaultCentury is calculated.
+       (SimpleDateFormat): Don't bother clearing calendar here. Call
+       computeCenturyStart().
+       (set2DigitYearStart): Calculate and set defaultCentury.
+       (format): Don't clone the calendar. Use "calendar" not "theCalendar"
+       everywhere.
+       (parse): Likewise. If the pattern is "y" or "yy" and it found exactly
+       2 numeric digits, use the 80-20 heuristic to parse the value into a
+       default century based on defaultCenturyStart.
+       (computeCenturyStart): Rewritten. Call set2DigitYearStart().
+
+2001-07-25  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libgcj.jar): Correctly fail when bytecode
+       compilation fails.
+
+2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * prims.cc (_JNI_OnLoad): New function.
+       (JNI_OnLoad): Use it.
+       (_Jv_CreateJavaVM): Check for _JNI_OnLoad, not NULL.
+
+2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.
+       Makefile.in: Regenerate.
+
+2001-07-24  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/VMClassLoader.java (getPrimitiveClass): Return correct
+       type.
+
+2001-07-23  Tom Tromey  <tromey@redhat.com>
+
+       * gcj/javaprims.h: Rebuilt class list.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (core_java_source_files): Added VMClassLoader.
+       * java/lang/VMClassLoader.java: New file.
+       * java/lang/Boolean.java: Merged with Classpath.
+       * java/lang/Byte.java: Merged with Classpath.
+       * java/lang/Integer.java: Merged with Classpath.
+       * java/lang/Long.java: Merged with Classpath.
+       * java/lang/Number.java: Merged with Classpath.
+       * java/lang/Short.java: Merged with Classpath.
+
+2001-07-22  Jeff Sturm  <jsturm@one-point.com>
+
+       * configure.host: Enable hash synchronization for alpha*-*.
+       * include/posix-threads.h (_Jv_ThreadSelf): Added inline
+       function for alpha.
+       * java/lang/natObject.cc (compare_and_swap, release_set,
+       compare_and_swap_release): Added inline functions for alpha.
+
+2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * java/net/natPlainDatagramSocketImpl.cc (mcastGrp): Use new RFC
+       2533 socket options IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP, falling
+       back to old RFC 2133 variants if missing.
+
+2001-07-18  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/natFileWin32.cc (_access): Renamed.
+       (_stat): Likewise.
+       * java/io/natFile.cc (_access): Renamed.
+       (_stat): Likewise.
+       * java/io/File.java (access, stat): Add leading `_' to name.
+       Updated all callers.
+
+2001-07-18  Tom Tromey  <tromey@redhat.com>
+
+       For PR java/2812:
+       * libgcj.spec.in (*lib): Added LIBICONV.
+       * configure: Rebuilt.
+       * configure.in: Call AM_ICONV.  Don't check for iconv function.
+       Add parameters to JV_HASH_SYNCHRONIZATION define.
+       * acinclude.m4 (AM_ICONV): New macro, from Bruno Haible.
+
+2001-07-17  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * java/util/LinkedList.java (clone): Clear the copy list with clear(), 
+       not by setting its size field.
+
+2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
+       local `_ebp.'
+
+2001-07-12  Tom Tromey  <tromey@redhat.com>
+           David Brownell  <david-b@pacbell.net>
+       
+       Fix for PR libgcj/3426:
+       * gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
+       errno.h.
+       (read): Throw exception if character conversion fails.
+       * java/io/BufferedInputStream.java (refill): Now package-private.
+       * java/io/InputStreamReader.java (ready): Simplified.
+       (refill): New method.
+       (read): Use it.
+
+2001-07-12  Tom Tromey  <tromey@redhat.com>
+
+       Report from Henner Zeller:
+       * java/io/FileOutputStream.java (FileOutputStream): Throw
+       FileNotFoundException, not IOException.
+
+2001-07-10  Anthony Green  <green@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am: Add new files.
+       * org/w3c/dom/Attr.java, org/w3c/dom/CDATASection.java,
+       org/w3c/dom/CharacterData.java, org/w3c/dom/Comment.java,
+       org/w3c/dom/DOMException.java, org/w3c/dom/DOMImplementation.java,
+       org/w3c/dom/Document.java, org/w3c/dom/DocumentFragment.java,
+       org/w3c/dom/DocumentType.java, org/w3c/dom/Element.java,
+       org/w3c/dom/Entity.java, org/w3c/dom/EntityReference.java,
+       org/w3c/dom/NamedNodeMap.java, org/w3c/dom/Node.java,
+       org/w3c/dom/NodeList.java, org/w3c/dom/Notation.java,
+       org/w3c/dom/ProcessingInstruction.java, org/w3c/dom/Text.java,
+       org/w3c/dom/ranges/DocumentRange.java,
+       org/w3c/dom/ranges/Range.java,
+       org/w3c/dom/ranges/RangeException.java,
+       org/w3c/dom/traversal/DocumentTraversal.java,
+       org/w3c/dom/traversal/NodeFilter.java,
+       org/w3c/dom/traversal/NodeIterator.java,
+       org/w3c/dom/traversal/TreeWalker.java,
+       org/xml/sax/ext/DeclHandler.java,
+       org/xml/sax/ext/LexicalHandler.java,
+       org/xml/sax/helpers/AttributeListImpl.java,
+       org/xml/sax/helpers/AttributesImpl.java,
+       org/xml/sax/helpers/DefaultHandler.java,
+       org/xml/sax/helpers/LocatorImpl.java,
+       org/xml/sax/helpers/NamespaceSupport.java,
+       org/xml/sax/helpers/ParserAdapter.java,
+       org/xml/sax/helpers/ParserFactory.java,
+       org/xml/sax/helpers/XMLFilterImpl.java,
+       org/xml/sax/helpers/XMLReaderAdapter.java,
+       org/xml/sax/helpers/XMLReaderFactory.java,
+       org/xml/sax/AttributeList.java, org/xml/sax/Attributes.java,
+       org/xml/sax/ContentHandler.java, org/xml/sax/DTDHandler.java,
+       org/xml/sax/DocumentHandler.java, org/xml/sax/EntityResolver.java,
+       org/xml/sax/ErrorHandler.java, org/xml/sax/HandlerBase.java,
+       org/xml/sax/InputSource.java, org/xml/sax/Locator.java,
+       org/xml/sax/Parser.java, org/xml/sax/SAXException.java,
+       org/xml/sax/SAXNotRecognizedException.java,
+       org/xml/sax/SAXNotSupportedException.java,
+       org/xml/sax/SAXParseException.java, org/xml/sax/XMLFilter.java,
+       org/xml/sax/XMLReader.java:  New files.
+
+2001-07-10  Alexandre Petit-Bianco  <apbianco@redhat.com>
+
+       * Makefile.am: Added `java/lang/ThreadLocal.java'.
+       * Makefile.in: Regenerate.
+       * java/lang/ThreadLocal.java: Initial import.
+
+2001-07-07  Jeff Sturm  <jsturm@one-point.com>
+       
+       * Makefile.am (libgcj.jar): Don't recursively make
+       built_java_source_files.  Avoid long command lines.
+       Don't change to $(srcdir) to invoke javac.
+       (libgcj.la, libgcjx.la); Avoid long command lines.
+       ($(nat_headers),$(x_nat_headers)): Depend on libgcj.jar.
+       * Makefile.in: Rebuilt.
+
+2001-07-06  Andrew Haley  <aph@cambridge.redhat.com>
+
+       * include/i386-signal.h: Don't do anything with unsigned divide
+       overflow except throw an exception.
+
+2001-07-05  Tom Tromey  <tromey@redhat.com>
+
+       For PR java/3562:
+       * java/lang/Class.h (Class(void)): Now private.  Removed
+       implementation.  From dmorsberger@sensysdl.com.
+
+2001-07-02  Tom Tromey  <tromey@redhat.com>
+
+       Fix for PR bootstrap/3281:
+       * aclocal.m4, configure: Rebuilt.
+       * acinclude.m4 (LIBGCJ_CONFIGURE): Don't set libgcj_flagbasedir.
+       Correctly compute libgcj_basedir.
+       (mkinstalldirs): Define and subst.
+
+2001-07-01  Jeremy Nimmer  <jwnimmer@alum.mit.edu>
+
+       For PR libgcj/3523:
+       * java/io/LineNumberReader.java (reset): Pass correct arguments to
+       countLines.
+
+2001-06-27  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/gcj/convert/IOConverter.java: Manually maintained alias now
+       lowercase.
+
+2001-06-25  Tom Tromey  <tromey@redhat.com>
+
+       * scripts/encodings.pl: Generate lower-case names.  Updated URL
+       for `character-sets' file.
+       * gnu/gcj/convert/IOConverter.java (canonicalize): Convert name to
+       lower case.
+       Rebuilt list of aliases.
+
+2001-06-25  Tom Tromey  <tromey@redhat.com>
+
+       * java/io/natFileDescriptorPosix.cc (open): Change error message
+       formatting.  From David Brownell.
+
+2001-06-21  Tom Tromey  <tromey@redhat.com>
+
+       * include/java-interp.h (_Jv_InterpClass): Use JV_MARKOBJ_DECL.
+       From Corey Minyard.
+
+2001-06-19  Mark J. Roberts  <mjr@statesmean.com>
+
+       * java/math/BigInteger.java (byteArrayToIntArray): Don't include
+       extraneous/malformed sign word.
+
+2001-06-15  Tom Tromey  <tromey@redhat.com>
+
+       * jni.cc (_Jv_JNI_NewLocalRef): Search other frames.
+
+2001-06-15  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Return
+       NULL if no library on the list has the symbol.
+       (init): Call add_library on the program itself.
+       * prims.cc (JvRunMain): Initialize Runtime before searching for
+       `main'.
+       (_Jv_RunMain): Likewise.
+
+2001-06-15  Tom Tromey  <tromey@redhat.com>
+
+       * jni.cc (ClassClass): Removed; updated all users.
+       (ObjectClass): Likewise.
+       (ThrowableClass): Likewise.
+       (MethodClass): Likewise.
+       (ThreadGroupClass): Likewise.
+       (local_ref_table): Renamed from `ref_table'.
+       (global_ref_table): New global.
+       (_Jv_JNI_Init): Initialize both ref tables.
+       (mark_for_gc): Added `ref_table' parameter.
+       (unmark_for_gc): Likewise.  Also, fail if we unreferenced too many
+       times.
+       (_Jv_JNI_NewGlobalRef): Updated for new mark function.
+       (_Jv_JNI_DeleteGlobalRef): Likewise.
+       (_Jv_JNI_DeleteLocalRef): Likewise.
+       (_Jv_JNI_NewLocalRef): Likewise.
+       (_Jv_JNI_PopLocalFrame): Likewise.
+       (_Jv_JNI_GetStringChars): Likewise.
+       (_Jv_JNI_ReleaseStringChars): Likewise.
+       (_Jv_JNI_GetPrimitiveArrayElements): Likewise.
+       (_Jv_JNI_ReleasePrimitiveArrayElements): Likewise.
+
 2001-06-14  Tom Tromey  <tromey@redhat.com>
 
        Fix for PR libgcj/3144: