OSDN Git Service

* sysdep/x86-64/locks.h: Enable use of either file on either
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index da8704f..fd1d4eb 100644 (file)
@@ -1,3 +1,362 @@
+2006-11-27  Mike Stump  <mrs@apple.com>
+
+       * sysdep/x86-64/locks.h: Enable use of either file on either
+       target to support multilibs from one to the other.
+       * sysdep/i386/locks.h: Likewise.
+
+2006-11-21  Gary Benson  <gbenson@redhat.com>
+
+       * java/security/Security.java: Merge with classpath.
+       * java/lang/Package.java: Likewise.
+       * java/lang/Class.java (getDeclaredAnnotations): New method.
+
+2006-11-20  David Daney  <ddaney@avtrex.com>
+
+       * include/mips-signal.h (sys/syscall.h): Do not include.
+       (sig_ucontext_t): Removed.
+       (MAKE_THROW_FRAME): Changed to be a nop.
+       (_INIT_SIG_HANDLER): New macro.
+       (INIT_SEGV): Rewrote to use _INIT_SIG_HANDLER.
+       (INIT_FPE): Same.
+
+2006-11-20  David Daney  <ddaney@avtrex.com>
+
+       * testsuite/libjava.lang/Throw_3.java: New Test.
+       * testsuite/libjava.lang/Throw_3.out: Its expected output.
+
+2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * configure: Regenerated.
+
+2006-11-03  Gary Benson  <gbenson@redhat.com>
+
+       * java/net/InetAddress.java: Removed.
+       * java/net/natInetAddressNoNet.cc: Likewise.
+       * java/net/natInetAddressPosix.cc: Likewise.
+       * java/net/natInetAddressWin32.cc: Likewise.
+       * java/net/VMInetAddress.java (getLocalHostname,
+       lookupInaddrAny, getHostByAddr, getHostByName,
+       aton): Replace glue methods with native ones.
+       * java/net/natVMInetAddressNoNet.cc: New file.
+       * java/net/natVMInetAddressPosix.cc: Likewise.
+       * java/net/natVMInetAddressWin32.cc: Likewise.
+       * Makefile.am, configure.ac: Reflect the above.
+       * sources.am, Makefile.in, configure: Rebuilt.
+
+       * java/net/natVMNetworkInterfaceWin32.cc
+       (winsock2GetRealNetworkInterfaces): Create InetAddress
+       objects using InetAddress.getByAddress.
+       * gnu/java/net/natPlainSocketImplWin32.cc
+       (accept, getOption): Likewise.
+       * gnu/java/net/natPlainDatagramSocketImplWin32.cc
+       (peekData, receive, getOption): Likewise.
+
+2006-11-02  Keith Seitz  <keiths@redhat.com>
+
+       * gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.
+
+2006-11-02  Keith Seitz  <keiths@redhat.com>
+
+       * jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.
+       (_Jv_JVMTI_Interface): Define GetLineNumberTable.
+
+2006-11-01  Keith Seitz  <keiths@redhat.com>
+
+       * gnu/gcj/jvmti/Location.java: New file.
+       * gnu/gcj/jvmti/BreakpointManager.java: New file.
+       * jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
+       (_Jv_JVMTI_ClearBreakpoint): New function.
+       (_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
+       * sources.am: Regenerated.
+       * Makefile.in: Regenerated.
+
+2006-10-28  Keith Seitz  <keiths@redhat.com>
+
+       * Makefile.am (nat_source_files): Add natBreakpoint.cc.
+       * sources.am: Regenerated.
+       * Makefile.in: Regenerated.
+       * gnu/gcj/jvmti/Breakpoint.java: New file.
+       * gnu/gcj/jvmti/natBreakpoint.java: New file.
+
+2006-10-27  Keith Seitz  <keiths@redhat.com>
+
+       * include/java-stack.h (ncodeMap): Declare.
+       (_Jv_StackTrace): Make _Jv_GetMethodDeclaringClass friend.
+       * java/lang/Class.h (_Jv_GetMethodDeclaringClass): Declare.
+       * java/lang/natClass.cc (_Jv_GetMethodDeclaringClass): New
+       function.
+       * stacktrace.cc (ncodeMap): Redefine from file global to global
+       for class _Jv_StackTrace.
+       (_Jv_StackTrace::UpdateNCodeMap): Add interpreted classes, too,
+       so that _Jv_GetMethodDeclaringClass can find them all.
+       (_Jv_StackTrace::ClassForFrame): Exclude interpreted classes.
+       * jvmti.cc (_Jv_JVMTI_GetMethodDeclaringClass): New function.
+       (_Jv_JVMTI_Interface): Define GetMethodDeclaringClass function.
+
+2006-10-25  Andreas Tobler  <a.tobler@schweiz.org>
+
+       * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests): Replace
+       formatting modifiers %p with %#llx and cast the arguments.
+
+2006-10-20  Tom Tromey  <tromey@redhat.com>
+
+       * testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests):
+       Correctly pass jvalues.
+
+2006-10-18  Tom Tromey  <tromey@redhat.com>
+           Bryce McKinlay  <mckinlay@redhat.com>
+
+       * testsuite/libjava.jni/register2.java: New file.
+       * testsuite/libjava.jni/register2.out: New file.
+       * testsuite/libjava.jni/register2.c: New file.
+       * java/lang/natClass.cc (_Jv_GetClassNameUtf8): New function.
+       * java/lang/Class.h (_Jv_GetClassNameUtf8): Declare.
+       * jni.cc (struct NativeMethodCacheEntry): New struct.
+       (nathash): Changed type.
+       (hash): Updated.
+       (nathash_find_slot): Likewise.
+       (nathash_find): Likewise.
+       (natrehash): Likewise.
+       (nathash_add): Likewise.
+       (_Jv_JNI_RegisterNatives): Likewise.
+       (_Jv_LookupJNIMethod): Likewise.
+       Idea from Juerg Lehni <juerg@scratchdisk.com>
+
+2006-10-16  Geoffrey Keating  <geoffk@apple.com>
+
+       * testsuite/libjava.jvmti/natevents.cc (env): Delete.
+       (ExceptionCB): Fix types for printf arguments.
+       (ExceptionCatchCB): Likewise.
+       (SingleStepCB): Likewise.
+       (BreakpointCB): Likewise.
+       (FieldAccessCB): Likewise.
+       (FieldModificationCB): Likewise.
+       (CompiledMethodLoadCB): Likewise.
+
+2006-10-14  Keith Seitz  <keiths@redhat.com>
+
+       * include/java-insns.h (enum java_code): Add op_breakpoint.
+       * include/java-interp.h (_Jv_InterpMethod): Declare breakpoint_insn.
+       [INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_slot.
+       [!INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_opcode.
+       (install_break): Declare.
+       * interpret.cc (breakpoint_insn): Define breakpoint insn.
+       (compile): Add op_breakpoint to "can't happen" cases.
+       [INTERPRETER] Initialize breakpoint insn if necessary.
+       (install_break): New method.
+       * interpret-run.cc: Add op_breakpoint to insn_targets.
+       Add insn_breakpoint label.
+       * verify.cc (branch_prepass): Add op_breakpoint to unrecognized
+       opcodes section of switch statement.
+       (verify_instructions_0): Likewise.
+
+2006-10-12  Keith Seitz  <keiths@redhat.com>
+
+       * include/jvmti-int.h (JVMTI): Declare all members "extern".
+       * jvmti.cc (JVMTI): Define.
+
+2006-10-11  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in: Rebuilt.
+       * Makefile.am (install-data-local): Use mkinstalldirs.
+
+2006-10-10  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
+       Removed obsolete comment.
+
+2006-10-10  Keith Seitz  <keiths@redhat.com>
+
+       * include/java-interp.h (_Jv_InterpMethod::get_insn): Declare.
+       (_Jv_InterpMethod::set_insn): Declare.
+       * interpret.cc (_Jv_InterpMethod::get_insn): New method.
+       (_Jv_InterpMethod::get_insn): New method.
+
+2006-10-10  Tom Tromey  <tromey@redhat.com>
+
+       * prims.cc (_Jv_PrependVersionedLibdir): Use
+       _Jv_platform_path_separator.
+
+2006-10-10  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/29205:
+       * Makefile.in: Rebuilt.
+       * Makefile.am (install-data-local): Install the .pc file.
+       (pkgconfig_DATA): Removed.
+
+2006-10-03  Gary Benson  <gbenson@redhat.com>
+
+       * java/net/InetAddress.java
+       (<clinit>): Reorder the static initializers.
+
+2006-10-02  Gary Benson  <gbenson@redhat.com>
+
+       * java/net/InetAddress.java
+       (checkConnect): Reinstated.
+       (loopbackAddress): Ensure initialized from non-null object.
+
+2006-09-30  Keith Seitz  <keiths@redhat.com>
+
+       * include/java-interp.h (prepared): Change type to pc_t.
+       (insn_index): Define for both DIRECT_THREADED and bytecode interpreters.
+       * interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo.
+       (insn_index): Implement for bytecode interpreter.
+       * interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class
+       qualifier to resolve_pool_entry.
+       [!DIRECT_THREADED] (AVAL2U): Likewise.
+       [!DIRECT_THREADED] bytecode() cannot be called without an object.
+       Changed all typos.
+       [!DIRECT_THREADED] Likewise for defining_class.
+
+2006-09-26  Jack Howarth  <howarth@bromo.med.uc.edu>
+
+       PR target/26792:
+       * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP
+       if HAVE_GETIPINFO not defined.
+       * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise.
+       (_Jv_StackTrace::getLineNumberForFrame): Likewise.
+       * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO.
+       * aclocal.m4, configure, include/config.h.in, Makefile.in:
+       Rebuilt.
+
+2006-09-27  Tom Tromey  <tromey@redhat.com>
+
+       https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201712
+       * java/util/Locale.java (hashcode): No longer transient.
+       (writeObject): Use ObjectOutputStream.PutField and
+       defaultWriteObject.
+       (readObject): Use defaultReadObject.
+
+2006-09-25  Keith Seitz  <keiths@redhat.com>
+
+       * gnu/classpath/jdwp/VMVirtualMachine.java
+       (_jdwp_suspend_counts): New private variable.
+       * gnu/classpath/jdwp/natVMVirtualMachine.cc
+       (initialize): Initialize _jdwp_suspend_counts.
+       (suspendThread): Implement.
+       (resumeThread): Implement.
+       (getSuspendCount): Implement.
+
+2006-09-22  Marco Trudel  <mtrudel@gmx.ch>
+
+       * jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.  Marked JNICALL.
+
+2006-09-21  Keith Seitz  <keiths@redhat.com>
+
+       * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled
+       events.
+       (check_enabled_event): New function.
+       (check_enabled_events): New function.
+       (post_event): New function.
+       (_Jv_JVMTI_SetEventNotificationMode): New function.
+       (_Jv_JVMTI_SetEventCallbacks): New function.
+       (_Jv_JVMTI_Interface): Define SetEventNotificationMode and
+       SetEventCallbacks members.
+       * include/jvmti-int.h: New file.
+       * include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define.
+       (_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define.
+       * testsuite/libjava.jvmti/events.java: New file.
+       * testsuite/libjava.jvmti/events.out: New file.
+       * testsuite/libjava.jvmti/natevents.cc: New file. 
+
+2006-09-21  Sandro Tolaini  <tolaini@libero.it>
+
+       * configure.ac: Don't use darwin-signal.h as signal handler for
+       Darwin/i386.
+       * configure.host: Enable Darwin/i386 as a supported host, with no
+       signal unwinding.
+
+2006-09-20  Keith Seitz  <keiths@redhat.com>
+
+       * jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked
+       and return JVMTI_ERROR_OUT_OF_MEMORY if necessary.
+       (_Jv_JVMTI_GetClassMethods): Likewise.
+       (_Jv_JVMTI_GetClassLoaderClasses): Likewise.
+       (_Jv_JVMTI_GetJNIFunctionTable): Likewise.
+       (_Jv_JVMTI_GetSystemProperty): Likewise.
+
+2006-09-20  Keith Seitz  <keiths@redhat.com>
+
+       * jvmti.cc (_Jv_JVMTI_GetErrorName): New function.
+       (_Jv_JVMTI_Interface): Define GetErrorName member.
+       * testsuite/libjava.jvmti/geterrorname.java: New file.
+       * testsuite/libjava.jvmti/geterrorname.out: New file.
+       * testsuite/libjava.jvmti/natgeterrorname.cc: New file.
+
+2006-09-20  Gary Benson  <gbenson@redhat.com>
+
+       * java/net/InetAddress.java: Mostly merged with Classpath.
+       * java/net/VMInetAddress.java: New file.
+       * sources.am, Makefile.in: Rebuilt.
+
+       * java/net/natVMNetworkInterfacePosix.cc
+       (getInterfaces): Create InetAddress objects using
+       InetAddress.getByAddress.
+       * gnu/java/net/natPlainSocketImplPosix.cc
+       (accept, getOption): Likewise.
+       * gnu/java/net/natPlainDatagramSocketImplPosix.cc
+       (peekData, receive, getLocalAddress): Likewise.
+
+2006-09-19  Keith Seitz  <keiths@redhat.com>
+
+       * testsuite/libjava.jvmti/jvmti.exp: New file.
+
+2006-09-19  Keith Seitz  <keiths@redhat.com>
+
+       * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.
+       (THREAD_CHECK_VALID): Likewise.
+       (THREAD_CHECK_ALIVE): Likewise.
+       (_Jv_JVMTI_SuspendThread): Call THREAD_CHECK_VALID on a Thread not
+       jthread.
+       (_Jv_JVMTI_ResumeThread): Likewise.
+       (_Jv_JVMTI_InterruptThread): Likewise.
+
+       (_Jv_JVMTI_DisposeEnvironment): Probably unwise to dereference an object
+       that was just freed.
+
+2006-09-19  Mark Wielaard  <mark@klomp.org>
+
+       Fixes bug #29137
+       * java/util/logging/LogManager.java (addLogger): Always check for
+       existing children of a new Logger.
+
+2006-09-19  Tom Tromey  <tromey@redhat.com>
+
+       * java/util/logging/LogManager.java: Re-merged with Classpath.
+
+2006-09-18  Tom Tromey  <tromey@redhat.com>
+
+       * configure: Rebuilt.
+
+2006-09-18  Petr Salinger  <Petr.Salinger@seznam.cz>
+
+       * configure.host: Handle kfreebsd.
+
+2006-09-18  Petr Salinger  <Petr.Salinger@seznam.cz>
+
+       * configure: Rebuilt.
+       * shlibpath.m4: Handle GNU/kFreeBSD.
+
+2006-09-14  Tom Tromey  <tromey@redhat.com>
+
+       PR boehm-gc/29068:
+       * boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
+       (_Jv_GCDetachThread): Likewise.
+
+2006-09-14  Andreas Schwab  <schwab@suse.de>
+
+       * posix-threads.cc: Include "posix.h".
+
+2006-09-13  Geoffrey Keating  <geoffk@apple.com>
+
+       * posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
+       microseconds; use gettimeofday when available.
+       * posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
+       timeout calculation.
+       * testsuite/libjava.lang/Thread_Sleep_2.java: New.
+       * testsuite/libjava.lang/Thread_Sleep_2.out: New.
+       * testsuite/libjava.lang/Thread_Sleep_2.xfail: New.
+
 2006-09-12  Tom Tromey  <tromey@redhat.com>
 
        PR java/29013:
        * jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
        Pass millis to _Jv_CondWait.
 
->>>>>>> .r116849
 2006-08-31  Tom Tromey  <tromey@redhat.com>
 
        PR libgcj/28698: