OSDN Git Service

2006-05-11 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index e65b16c..6260092 100644 (file)
@@ -1,3 +1,220 @@
+2006-05-11  Andrew Haley  <aph@redhat.com>
+
+       * gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
+       line.
+
+2006-05-10  Andrew Haley  <aph@redhat.com>
+
+       * java/lang/natClassLoader.cc: Add comments.
+
+2006-05-09  Andrew Haley  <aph@redhat.com>
+
+       * prims.cc (_Jv_soleIndirectCompiledEngine): New.
+       * include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
+       Remove body.
+       (_Jv_CompiledEngine::allocate_field_initializers): New.
+       (_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
+       allocate_field_initializers.
+       (class _Jv_IndirectCompiledClass): New.
+       (struct _Jv_IndirectCompiledEngine): New.
+       * java/lang/Class.h: (IndirectCompiledEngine): New.
+       * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
+       engine to _Jv_soleIndirectCompiledEngine
+       * link.cc (ensure_fields_laid_out): Call
+       engine->allocate_field_initializers().
+
+2006-05-06  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for
+       HP-UX and add appropriate extension for shared libraries, sl.
+       (gcj_jni_test_one): Likewise.
+       
+       * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared
+       library extensions.
+
+2006-05-05  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/27294:
+       * java/lang/natVMClassLoader.cc (defineClass): Throw
+       VirtualMachineError if no interpreter configured.
+
+2006-05-03  Andrew Haley  <aph@redhat.com>
+
+       PR libgcj/27352
+       * java/lang/Class.java (getClassLoader(Class)): New.
+       forName(String, Class): New.
+       * java/lang/natClass.cc (getClassLoader(Class)): New.
+
+2006-05-02  Andrew Haley  <aph@redhat.com>
+
+       * prims.cc (_Jv_NewMultiArray): Check for phantom class.
+
+2006-05-04  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/26861:
+       * interpret.cc (run) <insn_getfield>: Removed 0xffff check.
+       <insn_putfield>: Likewise.
+       (NULLCHECK): Define unconditionally.
+       * link.cc (ensure_class_linked): Removed dead code.
+
+2006-05-04  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/Class.h (JV_STATE_LOADING): Added comment.
+       * Makefile.in: Rebuilt.
+       * Makefile.am (nat_source_files): Added natSystemClassLoader.cc.
+       * gnu/gcj/runtime/natSystemClassLoader.cc: New file.
+       * gnu/gcj/runtime/SystemClassLoader.java (nativeClasses):
+       New field.
+       (loadedClasses): Removed.
+       (findClass): Declare.
+       (addClass): Add to nativeClasses, not loadedClasses.
+
+2006-05-04  Andrew Haley  <aph@redhat.com>
+
+       PR java/26858
+       * testsuite/libjava.lang/PR26858.xfail: Delete.
+
+2006-05-02  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
+       -findirect-dispatch compilation.
+
+2006-05-01  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.ac: Simplify the mmap check a bit more.
+       * configure: Rebuilt.
+       * include/config.h.in: Likewise.
+
+2006-05-01  Roger Sayle  <roger@eyesopen.com>
+           Andrew Haley  <aph@redhat.com>
+
+       * boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR
+       before calling GC_register_has_static_roots_callback.
+       (_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and
+       HAVE_DLADDR before calling dladdr.
+
+2006-04-28  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index
+       to resolve_method.
+       * interpret.cc (insn_invokevirtual): Use method->index, not
+       vtable_index. Check accflag FINAL to determine finals. Only do
+       explicit null check if calling a final method. Use
+       throw_null_pointer_exception.
+       (invokevirtual_resolved): Likewise.
+       (null_pointer_exc): Remove static field.
+       (throw_null_pointer_exception): Always define. Throw a new
+       NullPointerException every time.
+       * include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
+       field.
+       * include/execution.h (resolve_method): Remove vtable_index argument.
+
+2006-04-28  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.ac: Add an additional checks for dladdr and dlopen on dld.
+       * configure: Rebuilt.
+
+2006-04-25  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
+       Include platform.h.  Set GC_DEBUG before including gc.h, if
+       needed.
+
+2006-04-25  Andrew Haley  <aph@redhat.com>
+
+       * java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
+       * boehm.cc: Don't include link.h.
+       (_Jv_RegisterLibForGc): Cast away const when calling dladdr().
+
+2006-04-24  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
+
+2006-04-21  Andrew Haley  <aph@redhat.com>
+
+       * include/execution.h (struct _Jv_CompiledEngine): Define for
+       compiled classes.
+       * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call
+       _Jv_RegisterLibForGc.
+       (_Jv_RegisterClasses_Counted): Likewise.
+       (_Jv_NewClassFromInitializer): New.
+       (_Jv_RegisterNewClasses): New.
+       * sources.am: Regenerate.
+       * boehm.cc (_Jv_GC_has_static_roots): new.
+       (_Jv_InitGC): Call GC_register_has_static_roots_callback.
+       (filename_node, find_file, _Jv_print_gc_store, new_node,
+       _Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New.
+       * scripts/makemake.tcl: Add -fno-indirect-classes.
+       * Makefile.in: Regenerate.
+       * link.cc (resolve_pool_entry): Allocate constant pool.
+       Allocate fields.
+       
+2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * configure.ac: Weaken the check for MMAP.
+       * configure: Rebuilt.
+       * include/config.h.in: Likewise.
+
+2006-04-20  Bryce McKinlay  <mckinlay@redhat.com>
+
+       PR libgcj/27170
+       * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
+       dlopen(). From Anthony Green.
+
+2006-04-20  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/21941:
+       * gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
+       UnknownHostException if needed.
+       * gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
+       UnknownHostException if needed.
+
+2006-04-19  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (CLEANFILES): Removed all_java_filelist_files,
+       all_java_deps_files.
+
+2006-04-19  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
+       handle EINTR.
+
+2006-04-17  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/27171:
+       * testsuite/libjava.lang/pr27171.java: New file.
+       * testsuite/libjava.lang/pr27171.out: New file.
+       * gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
+       true if we've seen a high surrogate.
+       (write): Handle high surrogates at the end of the stream.
+       Properly emit isolated low surrogates.
+
+2006-04-17  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
+       of failure.
+
+2006-04-13  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/26522:
+       * Makefile.in: Rebuilt.
+       * Makefile.am (libsubdir): New variable.
+
+2006-04-12  NAKATA Maho  <maho@FreeBSD.org> 
+
+       PR libgcj/23829
+       * configure.ac: Link against -lpthread rather than -lc_r on
+       FreeBSD 5 and above.
+       * configure: Regenerate.
+
+2006-04-11  Bryce McKinlay  <mckinlay@redhat.com>
+
+       * gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
+       of package-private field "loadedClasses" using reflection.
+       * java/lang/VMCompiler.java (compileClass): Remove unreachable catch
+       block.
+
 2006-04-10  Matthias Klose  <doko@debian.org>
 
        * testsuite/lib/libjava.exp (libjava_init): Recognize multilib