aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2006-08-15Incorrect date in changelogKyle Galloway1-1/+1
From-SVN: r116169
2006-08-15Forgot to commit changelog with last patch.Kyle Galloway1-0/+17
2006-08-15 Kyle Galloway <kgallowa@redhat.com> * ChangeLog: Added entry for previous patch From-SVN: r116168
2006-08-15java-interp.h (_Jv_InterpMethod::run_debug): New method.Kyle Galloway4-2511/+2668
2006-08-15 Kyle Galloway <kgallowa@redhat.com> * include/java-interp.h (_Jv_InterpMethod::run_debug): New method. * interpret.cc: Added placeholder for debug variable type info to STORE* macros. (_Jv_InterpMethod::run_debug): New method. (_Jv_InterpMethod::run_sync_object_debug): New method. (_Jv_InterpMethod::run_sync_class_debug): New method. (_Jv_InterpMethod::run_normal_debug): New method. (_Jv_InterpMethod::run_class_debug): New method. (_Jv_InterpMethod::ncode ()): Changed to select either debug or normal versions of these functions. * interpret-run.cc: New file, holds contents of old _Jv_InterpMethod::run method. * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Changed to select appropriate function for debug or normal mode. From-SVN: r116167
2006-08-14Imported GNU Classpath 0.92Mark Wielaard1294-35823/+99369
2006-08-14 Mark Wielaard <mark@klomp.org> Imported GNU Classpath 0.92 * HACKING: Add more importing hints. Update automake version requirement. * configure.ac (gconf-peer): New enable AC argument. Add --disable-gconf-peer and --enable-default-preferences-peer to classpath configure when gconf is disabled. * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and gnu/java/awt/dnd/peer/gtk to bc. Classify gnu/java/security/Configuration.java as generated source file. * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java, gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java, gnu/java/lang/management/VMClassLoadingMXBeanImpl.java, gnu/java/lang/management/VMRuntimeMXBeanImpl.java, gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java, gnu/java/lang/management/VMThreadMXBeanImpl.java, gnu/java/lang/management/VMMemoryMXBeanImpl.java, gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub classes. * java/lang/management/VMManagementFactory.java: Likewise. * java/net/VMURLConnection.java: Likewise. * gnu/java/nio/VMChannel.java: Likewise. * java/lang/Thread.java (getState): Add stub implementation. * java/lang/Class.java (isEnum): Likewise. * java/lang/Class.h (isEnum): Likewise. * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed. * javax/naming/spi/NamingManager.java: New override for StackWalker functionality. * configure, sources.am, Makefile.in, gcj/Makefile.in, include/Makefile.in, testsuite/Makefile.in: Regenerated. From-SVN: r116139
2006-08-14Thread.java (accessControlState): New field.Gary Benson8-37/+181
2006-08-14 Gary Benson <gbenson@redhat.com> * java/lang/Thread.java (accessControlState): New field. * java/security/VMAccessControlState.java: New file. * java/security/natVMAccessControlState.cc: Likewise. * java/security/VMAccessController.java (contexts, inGetContext): Removed. (pushContext, popContext, getContext): Use VMAccessControlState. * Makefile.am (nat_source_files): Updated. * sources.am, Makefile.in: Rebuilt. From-SVN: r116128
2006-08-10java-stack.h (GetAccessControlStack): Change return type.Gary Benson5-55/+59
2006-08-10 Gary Benson <gbenson@redhat.com> * include/java-stack.h (GetAccessControlStack): Change return type. * stacktrace.cc (accesscontrol_trace_fn): Record the number of Java frames encountered. (GetAccessControlStack): Return a flag indicating whether a call to doPrivileged was encountered rather than an array of method names. * java/security/natVMAccessController.cc (getStack): Change return type. * java/security/VMAccessController.java (getStack): Likewise. (getContext): Change to reflect the above. From-SVN: r116058
2006-08-09re PR awt/28666 (IllegalAccessError in gtk peers)Tom Tromey2-2/+9
PR classpath/28666: * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c (Java_gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice_nativeGetDisplayModes): Create a 'short' array. From-SVN: r116044
2006-08-09stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames.Gary Benson2-1/+7
2006-08-09 Gary Benson <gbenson@redhat.com> * stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames. From-SVN: r116038