aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2006-11-13* tls.m4 (GCC_CHECK_TLS): Fall back to a link test.Daniel Jacobowitz2-12/+22
From-SVN: r118777
2006-11-032006-11-03 Gary Benson <gbenson@redhat.com>Gary Benson3-5/+14
* java/net/Inet4Address.java (FAMILY): Renamed to AF_INET. (<init>, writeReplace): Reflect the above. * java/net/Inet6Address.java (FAMILY): Renamed to AF_INET6. (<init>): Reflect the above. From-SVN: r118452
2006-11-03InetAddress.java: Removed.Gary Benson17-1380/+506
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. From-SVN: r118451
2006-11-02* gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.Keith Seitz2-2/+42
From-SVN: r118420
2006-11-02jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.Keith Seitz2-1/+54
* jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function. (_Jv_JVMTI_Interface): Define GetLineNumberTable. From-SVN: r118419
2006-11-01Location.java: New file.Keith Seitz6-4/+224
* 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. From-SVN: r118391
2006-10-28Makefile.am (nat_source_files): Add natBreakpoint.cc.Keith Seitz6-5/+179
* 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. From-SVN: r118108
2006-10-28java-stack.h (ncodeMap): Declare.Keith Seitz6-20/+73
* 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. From-SVN: r118100
2006-10-25natevents.cc (do_callback_arg_tests): Replace formatting modifiers %p with ↵Andreas Tobler2-60/+97
%#llx and cast the arguments. 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. From-SVN: r118040
2006-10-20natevents.cc (do_callback_arg_tests): Correctly pass jvalues.Tom Tromey2-2/+11
* testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests): Correctly pass jvalues. From-SVN: r117913
2006-10-18register2.java: New file.Tom Tromey7-19/+140
* 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> Co-Authored-By: Bryce McKinlay <mckinlay@redhat.com> From-SVN: r117867
2006-10-17natevents.cc (env): Delete.Geoffrey Keating2-18/+27
* 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. From-SVN: r117817
2006-10-14java-insns.h (enum java_code): Add op_breakpoint.Keith Seitz6-6/+65
* 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. From-SVN: r117734
2006-10-12jvmti-int.h (JVMTI): Declare all members "extern".Keith Seitz3-35/+79
* include/jvmti-int.h (JVMTI): Declare all members "extern". * jvmti.cc (JVMTI): Define. From-SVN: r117670
2006-10-11Makefile.in: Rebuilt.Tom Tromey3-0/+7
* Makefile.in: Rebuilt. * Makefile.am (install-data-local): Use mkinstalldirs. From-SVN: r117634
2006-10-11natSystemProperties.cc (insertSystemProperties): Removed obsolete comment.Tom Tromey2-1/+6
* gnu/classpath/natSystemProperties.cc (insertSystemProperties): Removed obsolete comment. From-SVN: r117626
2006-10-10java-interp.h (_Jv_InterpMethod::get_insn): Declare.Keith Seitz3-0/+54
* 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. From-SVN: r117614
2006-10-10re PR xml/29362 (NullPointerException in ↵Tom Tromey2-1/+8
gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)) PR classpath/29362: * gnu/xml/transform/TransformerImpl.java (transform): Only strip if there is a stylesheet. From-SVN: r117612
2006-10-10prims.cc (_Jv_PrependVersionedLibdir): Use _Jv_platform_path_separator.Tom Tromey2-3/+11
* prims.cc (_Jv_PrependVersionedLibdir): Use _Jv_platform_path_separator. From-SVN: r117611
2006-10-10re PR libgcj/29205 (lib/pkgconfig/libgcj.pc needs to become version dependent)Tom Tromey3-40/+33
PR libgcj/29205: * Makefile.in: Rebuilt. * Makefile.am (install-data-local): Install the .pc file. (pkgconfig_DATA): Removed. From-SVN: r117610
2006-10-052006-10-05 Gary Benson <gbenson@redhat.com>Gary Benson2-3/+13
* java/net/SocketPermission.java (processHostport): Cope with IPv6 addresses with a one-digit first component. From-SVN: r117454
2006-10-032006-10-03 Gary Benson <gbenson@redhat.com>Gary Benson2-18/+23
* java/net/InetAddress.java (<clinit>): Reorder the static initializers. From-SVN: r117394
2006-10-022006-10-02 Gary Benson <gbenson@redhat.com>Gary Benson2-2/+14
* java/net/InetAddress.java (checkConnect): Reinstated. (loopbackAddress): Ensure initialized from non-null object. From-SVN: r117370
2006-09-30java-interp.h (prepared): Change type to pc_t.Keith Seitz4-20/+32
* 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. From-SVN: r117333
2006-09-27re PR target/26792 (need to use autoconf when using newly-added libgcc ↵Jack Howarth11-14/+145
functions) 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. From-SVN: r117259
2006-09-27Locale.java (hashcode): No longer transient.Tom Tromey2-11/+17
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. From-SVN: r117248
2006-09-25Makefile.in: Rebuilt.Tom Tromey3-0/+9
* native/jni/gconf-peer/Makefile.in: Rebuilt. * native/jni/gconf-peer/Makefile.am (libgconfpeer_la_LDFLAGS): New variable. From-SVN: r117210
2006-09-25re PR libgcj/29178 (CharsetEncoder.canEncode() gives different results than ↵Tom Tromey4-1/+56
Sun version) PR libgcj/29178: * gnu/java/nio/charset/US_ASCII.java (Encoder.canEncode): New method. (Encoder.canEncode): Likewise. (Encoder.encodeLoop): Return unmappable for all non-ASCII characters. * gnu/java/nio/charset/ByteCharset.java (Encoder.canEncode): New method. (Encoder.canEncode): Likewise. * gnu/java/nio/charset/ISO_8859_1.java (Encoder.canEncode): New method. (Encoder.canEncode): Likewise. From-SVN: r117209
2006-09-25mprec.c (mprec_calloc): Renamed.Tom Tromey2-3/+8
* native/fdlibm/mprec.c (mprec_calloc): Renamed. (Balloc): Updated. From-SVN: r117204
2006-09-25Suggested by Aaron M.Mark Wielaard2-1/+7
2006-09-25 Mark Wielaard <mark@klomp.org> Suggested by Aaron M. Ucko <ucko@debian.org> Fixes bug #29203 * native/fdlibm/mprec.c (ulp): Define L as int32_t. From-SVN: r117197
2006-09-25* gnu/classpath/jdwp/VMVirtualMachine.javaKeith Seitz3-1/+110
(_jdwp_suspend_counts): New private variable. * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize): Initialize _jdwp_suspend_counts. (suspendThread): Implement. (resumeThread): Implement. (getSuspendCount): Implement. From-SVN: r117196
2006-09-22jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.Marco Trudel2-1/+5
2006-09-22 Marco Trudel <mtrudel@gmx.ch> * jvmti.cc (_Jv_JVMTI_GetErrorName): Now static. Marked JNICALL. From-SVN: r117153
2006-09-22re PR classpath/28661 (HTTP Header differs b/w java and classpath)David Daney2-0/+14
PR classpath/28661 * gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Add default content-type for POST method. From-SVN: r117149
2006-09-22[multiple changes]Sven de Marothy5-511/+406
2006-08-02 Sven de Marothy <sven@physto.se> * gnu/java/awt/peer/gtk/GtkChoicePeer.java (remove): Force event on removing item 0 when it's selected. (handleEvent): Always call Choice.selected(). * java/awt/Choice.java: (remove): Simplify and correct. 2006-07-30 Sven de Marothy <sven@physto.se> * java/awt/Choice.java: (accessibleAction): Call select() directly. (add, insert, remove): Reimplement. (dispatchEventImpl): Always call super. (processItemEvent): Does not set the index. * include/gnu_java_awt_peer_gtk_GtkChoicePeer.h * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c (append): removed. (nativeAdd): Name changed to add. (selection_changed_cb): Simplify callback. * gnu/java/awt/peer/gtk/GtkChoicePeer.java (selected): New field. (add): Replaced with native impl. (handleEvent): New method. From-SVN: r117142
2006-09-22jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled events.Keith Seitz7-3/+1429
* 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. From-SVN: r117133
2006-09-21configure.ac: Don't use darwin-signal.h as signal handler for Darwin/i386.Sandro Tolaini3-1/+13
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. From-SVN: r117127
2006-09-21jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked and return ↵Keith Seitz2-5/+28
JVMTI_ERROR_OUT_OF_MEMORY if necessary. * 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. From-SVN: r117098
2006-09-20jvmti.cc (_Jv_JVMTI_GetErrorName): New function.Keith Seitz5-1/+359
* 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. From-SVN: r117086
2006-09-20ChangeLog: Fix latest entry.Gary Benson1-7/+7
* ChangeLog: Fix latest entry. From-SVN: r117080
2006-09-20InetAddress.java: Mostly merged with Classpath.Gary Benson8-303/+474
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. From-SVN: r117075
2006-09-20InetAddress.java: Updated to latest.Gary Benson6-250/+649
2006-09-20 Gary Benson <gbenson@redhat.com> * classpath/java/net/InetAddress.java: Updated to latest. * classpath/java/net/Inet4Address.java: Likewise. * classpath/java/net/Inet6Address.java: Likewise. * classpath/java/net/ResolverCache.java: Likewise. * classpath/java/net/SocketPermission.java: Likewise. * classpath/java/net/Inet4Address.java (AF_INET): Renamed to FAMILY. (<init>, writeReplace): Reflect the above. * classpath/java/net/Inet6Address.java (AF_INET6): Renamed to FAMILY. (<init>): Reflect the above. From-SVN: r117074
2006-09-19* testsuite/libjava.jvmti/jvmti.exp: New file.Keith Seitz2-0/+126
From-SVN: r117065
2006-09-19jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.Keith Seitz2-12/+27
* 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. From-SVN: r117064
2006-09-19[multiple changes]Tom Tromey2-22/+101
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. From-SVN: r117058
2006-09-19tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE.Tom Tromey2-4/+7
config * tls.m4 (GCC_CHECK_TLS): Pass empty argument as "help arg" to GCC_ENABLE. libgomp * configure: Rebuilt. libstdc++-v3 * configure: Rebuilt. libmudflap * configure: Rebuilt. libjava * configure: Rebuilt. From-SVN: r117049
2006-09-18configure.host: Handle kfreebsd.Petr Salinger2-1/+9
2006-09-18 Petr Salinger <Petr.Salinger@seznam.cz> * configure.host: Handle kfreebsd. From-SVN: r117043
2006-09-18SSLSocket.java (isBound, [...]): Removed old comment.Tom Tromey2-122/+117
* gnu/javax/net/ssl/provider/SSLSocket.java (isBound, isClosed, isConnected): Removed old comment. (getRemoteSocketAddress): Uncommented. (setOOBInline, getOOBInline, setKeepAlive, getKeepAlive, setTrafficClass, getTrafficClass, setReuseAddress, getReuseAddress, shutdownInput, shutdownOutput, isInputShutdown, isOutputShutdown): Uncommented. From-SVN: r117035
2006-09-18configure: Rebuilt.Petr Salinger3-2/+7
2006-09-18 Petr Salinger <Petr.Salinger@seznam.cz> * configure: Rebuilt. * shlibpath.m4: Handle GNU/kFreeBSD. From-SVN: r117032
2006-09-18removed old conflict markerTom Tromey1-1/+0
From-SVN: r117030
2006-09-14re PR boehm-gc/29068 (Bootstrap fails building libjava on SPARC/Solaris)Tom Tromey2-2/+9
libjava PR boehm-gc/29068: * boehm.cc (_Jv_GCAttachThread): Disable on Solaris. (_Jv_GCDetachThread): Likewise. boehm-gc PR boehm-gc/29068. * misc.c (GC_init_inner): Don't use GC_get_thread_stack_base on Solaris. From-SVN: r116948