aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2006-09-14* posix-threads.cc: Include "posix.h".Andreas Schwab2-0/+6
From-SVN: r116943
2006-09-14posix.cc (_Jv_platform_nanotime): Return nanoseconds, not microseconds; use ↵Geoffrey Keating6-16/+81
gettimeofday when available. * 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. From-SVN: r116941
2006-09-12re PR java/29013 (gcj generates a MetalLookAndFeel class that fails cacao's ↵Tom Tromey3-0/+15
verifier) gcc/java PR java/29013: * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Always note the push of the called method's return result. libjava PR java/29013: * testsuite/libjava.lang/PR29013.out: Likewise. * testsuite/libjava.lang/PR29013.java: New file. From-SVN: r116902
2006-09-12* testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.Tom Tromey2-5/+5
From-SVN: r116892
2006-09-12Fix some whitespace issues in the changelog.Andrew Pinski1-42/+42
From-SVN: r116881
2006-09-11re PR classpath/28580 (HTTP HEAD fails on chuncked encoding)David Daney2-3/+20
PR classpath/28580 * gnu/java/net/protocol/http/Request.java (readResponse): Call createResponseBodyStream in more cases and with new parameter. (createResponseBodyStream): Added new parameter mayHaveBody. Handle HEAD and !mayHaveBody responses specially. From-SVN: r116853
2006-09-07Makefile.am (AM_CXXFLAGS): Remove duplicate define.Matthias Klose3-4/+7
2006-09-07 Matthias Klose <doko@debian.org> * Makefile.am (AM_CXXFLAGS): Remove duplicate define. * Makefile.in: Regenerate. From-SVN: r116750
2006-09-06Class.h (_Jv_FindInterpreterMethod): Change return type to _Jv_MethodBase ↵Keith Seitz3-15/+19
instead of _Jv_InterpMethod. * java/lang/Class.h (_Jv_FindInterpreterMethod): Change return type to _Jv_MethodBase instead of _Jv_InterpMethod. * java/lang/natClass.cc (_Jv_FindInterpreterMethod): Likewise. Do not check access flags. Fix some minor style anomalies. From-SVN: r116730
2006-09-052006-09-05 Gary Benson <gbenson@redhat.com>Gary Benson2-14/+21
* java/net/SocketPermission.java (maybeBracketIPv6Address): Renamed to processHostport. (processHostport): Also translate "" to "localhost". (setHostPort): Remove special cases for empty hostport and for extra colons in hostport (processHostport handles these now). From-SVN: r116694
2006-09-01jni.exp (gcj_jni_invocation_test_one): Pass -lgcj to linker for C++ files on ↵Geoffrey Keating2-1/+7
Darwin. * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Pass -lgcj to linker for C++ files on Darwin. From-SVN: r116639
2006-09-01jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.Keith Seitz2-12/+44
* jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop. (THREAD_CHECK_VALID): Likewise. (THREAD_CHECK_IS_ALIVE): Likewise. (NULL_CHECK): Likewise. (ILLEGAL_ARGUMENT): Likewise. From-SVN: r116636
2006-09-01jvm.h (_Jv_JVMTI_Init): Declare.Keith Seitz4-4/+95
* include/jvm.h (_Jv_JVMTI_Init): Declare. * jvmti.cc (_Jv_JVMTI_Init): New function. * prims.cc (_Jv_CreateJavaVM): Initialize JVMTI. * jvmti.cc (ILLEGAL_ARGUMENT): New macro. (_Jv_JVMTI_Allocate): Use ILLEGAL_ARUMENT. * jvmti.cc (_jvmtiEnvironments): New linked list of JVMTI environments. (FOREACH_ENVIRONMENT): New macro. (_envListLock): New object to act as synchronization lock for _jvmtiEnvironments. (_Jv_JVMTI_DisposeEnvironment): Check for NULL environment. Remove the environment from the list of known environments. (_Jv_GetJVMTIEnv): Add the new environment to the list of known environments. From-SVN: r116635
2006-09-01InetAddress.java (getLocalHost): Refactor to avoid security check if ↵Gary Benson2-24/+18
getLocalHostname() fails and to provide... 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getLocalHost): Refactor to avoid security check if getLocalHostname() fails and to provide more meaningful exceptions it the security check fails. From-SVN: r116627
2006-09-01InetAddress.java (getByAddress): Create Inet4Address objects when passed ↵Gary Benson2-25/+23
IPv4-mapped IPv6 addresses. 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getByAddress): Create Inet4Address objects when passed IPv4-mapped IPv6 addresses. (getByName, getAllByName): Defer to the above to ensure that the correct Inet*Address objects are returned. From-SVN: r116622
2006-09-01InetAddress.java (getByName, [...]): Only perform security check when DNS ↵Gary Benson2-10/+17
lookups are required. 2006-09-01 Gary Benson <gbenson@redhat.com> * java/net/InetAddress.java (getByName, getAllByName): Only perform security check when DNS lookups are required. From-SVN: r116621
2006-08-31jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.Keith Seitz2-2/+6
* jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter. Pass millis to _Jv_CondWait. From-SVN: r116611
2006-08-31jvmti.h: Update from Classpath to get latest fixes and improvements.Keith Seitz2-11/+20
* include/jvmti.h: Update from Classpath to get latest fixes and improvements. From-SVN: r116610
2006-08-31* include/jvmti_md.h: New file.Keith Seitz2-0/+36
From-SVN: r116609
2006-08-31re PR libgcj/28698 ([gcj] libgcj-bc only used when building shared libs, not ↵Tom Tromey2-0/+22
executables) PR libgcj/28698: * libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive classes. From-SVN: r116603
2006-08-292006-08-29 Gary Benson <gbenson@redhat.com>Gary Benson3-6/+56
* java/net/SocketPermission.java (maybeBracketIPv6Address): New method. (<init>): Pass the hostport argument through the above. * java/net/NetworkInterface.java (getInetAddresses): Revert the previous change. From-SVN: r116557
2006-08-24prims.cc (remoteDebug): New global.Keith Seitz2-2/+57
* prims.cc (remoteDebug): New global. (jdwpOptions): New global. (parse_x_arg): Add processing for "X" options "debug" and "runjdwp:" (_Jv_RunMain): If debugging, start up JDWP backend. Send VM_INIT and VM_DEATH when appropriate. From-SVN: r116383
2006-08-24NetworkInterface.java (getInetAddresses): Bracket IPv6 addresses.Gary Benson2-1/+9
2006-08-24 Gary Benson <gbenson@redhat.com> * java/net/NetworkInterface.java (getInetAddresses): Bracket IPv6 addresses. From-SVN: r116375
2006-08-23* gnu/classpath/jdwp/VMVirtualMachine.javaKeith Seitz3-0/+21
(initialize): Declare. * gnu/classpath/jdwp/natVMVirtualMachine.cc (initialize): Get and save JVMTI environment. From-SVN: r116357
2006-08-22re PR libgcj/27890 (lib/logging.properties pollutes common namespace)Thomas Fitzsimmons48-182/+274
2006-08-22 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/27890 * gnu/classpath/natSystemProperties.cc (insertSystemProperties): Set gnu.classpath.home.url to TOOLEXECLIBDIR. * configure.ac: Do not add --with-native-libdir to ac_configure_args. * java/security/libgcj.security: Remove file. * java/util/logging/logging.properties: Likewise. * classpath/m4/acinclude.m4 (CLASSPATH_TOOLEXECLIBDIR): New macro. * classpath/resource/Makefile.am (loggingdir): Define to toolexeclibdir. (securitydir): Likewise. * classpath/configure.ac: Call CLASSPATH_TOOLEXECLIBDIR. Set default nativeexeclibdir using toolexeclibdir. * HACKING: Fix classpath aclocal arguments. * Makefile.am (secdir): Remove variable. (propdir): Likewise. (AM_CXXFLAGS): Replace LIBDIR definition with TOOLEXECLIBDIR definition. (all_property_files): Remove variable. (install-data-local): Do not install libgcj.security or logging.properties. * configure, Makefile.in, classpath/configure, classpath/Makefile.in, classpath/native/jni/java-lang/Makefile.in, classpath/native/jni/midi-alsa/Makefile.in, classpath/native/jni/classpath/Makefile.in, classpath/native/jni/midi-dssi/Makefile.in, classpath/native/jni/Makefile.in, classpath/native/jni/java-nio/Makefile.in, classpath/native/jni/java-net/Makefile.in, classpath/native/jni/gconf-peer/Makefile.in, classpath/native/jni/java-io/Makefile.in, classpath/native/jni/xmlj/Makefile.in, classpath/native/jni/java-util/Makefile.in, classpath/native/jni/qt-peer/Makefile.in, classpath/native/jni/gtk-peer/Makefile.in, classpath/native/Makefile.in, classpath/native/jawt/Makefile.in, classpath/native/target/Linux/Makefile.in, classpath/native/target/Makefile.in, classpath/native/target/generic/Makefile.in, classpath/native/fdlibm/Makefile.in, classpath/native/plugin/Makefile.in, classpath/resource/Makefile.in, classpath/scripts/Makefile.in, classpath/tools/Makefile.in, classpath/doc/Makefile.in, classpath/doc/api/Makefile.in, classpath/lib/Makefile.in, classpath/external/Makefile.in, classpath/external/sax/Makefile.in, classpath/external/w3c_dom/Makefile.in, classpath/external/relaxngDatatype/Makefile.in, classpath/include/Makefile.in, classpath/aclocal.m4, classpath/examples/Makefile.in, aclocal.m4: Regenerate. From-SVN: r116332
2006-08-21re PR libgcj/13212 (JNI/CNI AttachCurrentThread does not register thread ↵Bryce McKinlay4-1/+37
with garbage collector) boehm-gc PR libgcj/13212: * configure.ac: Check for pthread_getattr_np(). Remove GC_PTHREAD_SYM_VERSION detection. * include/gc.h (GC_register_my_thread, GC_unregister_my_thread, GC_get_thread_stack_base): New declarations. * pthread_support.c (GC_register_my_thread, GC_unregister_my_thread, GC_get_thread_stack_base): New functions. (GC_delete_thread): Don't try to free the first_thread. * misc.c (GC_init_inner): Use GC_get_thread_stack_base() if possible. (pthread_create_, constr): Removed. (pthread_create): Don't rename. * include/gc_ext_config.h.in: Rebuilt. * include/gc_pthread_redirects.h (pthread_create): Define unconditionally. * include/gc_config.h.in: Rebuilt. * configure: Rebuilt. libjava * java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread to GC. (_Jv_DetachCurrentThread): Detach thread from GC. * include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread): Declare. * boehm.cc (_Jv_GCAttachThread): New function. (_Jv_GCDetachThread): Likewise. From-SVN: r116313
2006-08-19backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC" as another sequence ↵Ranjit Mathew2-4/+12
that can indicate a "pushl %ebp... * sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC" as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp" function prologue. From-SVN: r116258
2006-08-18check_jni_methods.sh: Don't use the "set -C" command which isn't available ↵Roger Sayle2-2/+5
in all shells. 2006-08-18 Roger Sayle <roger@eyesopen.com> * scripts/check_jni_methods.sh: Don't use the "set -C" command which isn't available in all shells. From-SVN: r116251
2006-08-18NodeWriter.java (writeParents): Removed debugging prints.Tom Tromey3-5/+8
* gnu/java/util/prefs/NodeWriter.java (writeParents): Removed debugging prints. * gnu/java/util/prefs/NodeReader.java (readNodes): Removed debugging print. (readEntries): Likewise. From-SVN: r116247
2006-08-17Makefile.am (install-exec-hook): Support $(DESTDIR).H.J. Lu3-12/+17
2006-08-17 H.J. Lu <hongjiu.lu@intel.com> * Makefile.am (install-exec-hook): Support $(DESTDIR). * Makefile.in: Regenerated. From-SVN: r116227
2006-08-17* libtool-version: Updated.Tom Tromey2-1/+5
From-SVN: r116206
2006-08-17jvspec.c (lang_specific_driver): Add -s-bc-abi when needed.Jakub Jelinek11-39/+289
gcc/java/ChangeLog * jvspec.c (lang_specific_driver): Add -s-bc-abi when needed. libjava/ChangeLog * configure, Makefile.in: Rebuilt. * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la. (libgcj_bc_la_SOURCES): New variable. (libgcj_bc_la_LDFLAGS): Likewise. (libgcj_bc_la_LIBADD): Likewise. (libgcj_bc_la_DEPENDENCIES): Likewise. (libgcj_bc_la_LINK): Likewise. (libgcj_bc_dummy_LINK): Likewise. (libgcj_bc.la): New target. (install-exec-hook): Likewise. * libgcj.spec.in (*lib): Use LIBGCJ_SPEC. * libgcj_bc.c: New file. * configure.ac (LIBGCJ_SPEC): New subst. * configure.host (use_libgcj_bc): New variable. Co-Authored-By: Bryce McKinlay <bryce@mckinlay.net.nz> From-SVN: r116204