aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2006-07-21boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration, just the ↵Keith Seitz7-67/+71
contents. * boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration, just the contents. (_Jv_ResumeThread): Likewise. * posix-threads.cc: Revert 2006-06-19 _Jv_ThreadDebugSuspend, _Jv_ThreadDebugResume, _Jv_ThreadDebugSuspendCount patch. Moving to JVMTI instead. * include/posix-threads.h: Likewise. * win32-threads.cc: Likewise. * include/win32-threads.h: Likewise. * jvmti.cc (_Jv_JVMTI_SuspentThread): New function. (_Jv_JVMTI_ResumeThread): New function. (_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread. From-SVN: r115655
2006-07-21re PR libgcj/28426 (libgcj header files installed in wrong location in cross ↵David Daney2-1/+12
build) libstdc++-v3/ PR libgcj/28426 * acinclude.m4: Added a comment. config/ PR libgcj/28426 * gxx-include-dir.m4: Use target_alias in path for cross build. libjava/ PR libgcj/28426 * configure: Regenerated. From-SVN: r115650
2006-07-21* java/io/OutputStreamWriter.java (flush): Create work if null.Mark Wielaard2-1/+7
From-SVN: r115647
2006-07-21natThread.cc (_Jv_ThreadGetData): New function.Keith Seitz4-0/+20
* java/lang/natThread.cc (_Jv_ThreadGetData): New function. * Makefile.am (java/lang/Thread.h): Add friend function _Jv_ThreadGetData. * Makefile.in: Regenerate. From-SVN: r115646
2006-07-20jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.Keith Seitz2-1/+14
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function. (_Jv_JVMTI_Interface): Define DisposeEnvironment method. From-SVN: r115631
2006-07-20jvm.h (_Jv_GetJVMTIEnv): Declare.Keith Seitz6-10/+215
* include/jvm.h (_Jv_GetJVMTIEnv): Declare. * jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests. * jvmti.cc: New file. * Makefile.am (libgcj_la_SOURCES): Add jvmti.cc. * Makefile.in: Regenerate. From-SVN: r115629
2006-07-20* include/jvmti.h: Include copy from upstream before next merge.Keith Seitz2-0/+1819
From-SVN: r115628
2006-07-20* configure.host: Enable the interpreter for mipsel-* and mips-*.David Daney2-0/+7
From-SVN: r115625
2006-07-20mips-signal.h: Update copyright.David Daney2-42/+31
* include/mips-signal.h: Update copyright. (struct kernel_sigaction): Removed. (SIGNAL_HANDLER): Changed prototype. (MAKE_THROW_FRAME): Added cast. (INIT_SEGV): Use sigaction instead of syscall. (INIT_FPE): Likewise. From-SVN: r115624
2006-07-18Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir for ↵Paolo Bonzini2-4/+28
stages after the first. 2006-07-18 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir for stages after the first. config: 2006-07-18 Paolo Bonzini <bonzini@gnu.org> * acx.m4: Support --with-build-libsubdir and AC_SUBST build_libsubdir. gcc: 2006-07-18 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. * Makefile.in (build_libsubdir): New configure substitution (build_libobjdir): New variable. (BUILD_LIBIBERTY): Use it. libgfortran: 2006-07-18 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. libjava: 2006-07-18 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. libobjc: 2006-07-18 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. From-SVN: r115552
2006-07-18File.java (deleteOnExit): Fix security check.Gary Benson2-1/+5
2006-07-18 Gary Benson <gbenson@redhat.com> * java/io/File.java (deleteOnExit): Fix security check. From-SVN: r115551
2006-07-14natFilePosix.cc (performSetLastModified): Return true on success, false ↵Anthony Green2-1/+6
otherwise. 2006-07-14 Anthony Green <green@redhat.com> * java/io/natFilePosix.cc (performSetLastModified): Return true on success, false otherwise. From-SVN: r115452
2006-07-14stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use ↵Ranjit Mathew4-49/+77
_Unwind_Backtrace(). * stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use _Unwind_Backtrace(). (_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ EH. (_Jv_StackTrace::GetClassContext): Unconditionally use _Unwind_Backtrace(). (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise. * sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define. (_Unwind_GetIPInfo): Define macro if SJLJ EH is in use. (_Unwind_GetRegionStart): Likewise. (_Unwind_Backtrace): Likewise. (fallback_backtrace): Accept additional unwind trace function argument. Call it during unwinding. Stop when any of _Jv_RunMain(), _Jv_ThreadStart() or main() is seen during unwinding. * sysdep/generic/backtrace.h (fallback_backtrace): Accept an additional unwind trace function argument. From-SVN: r115449
2006-07-14File.java (internalExists): New method.Gary Benson2-4/+30
2006-07-14 Gary Benson <gbenson@redhat.com> * java/io/File.java (internalExists): New method. (exists): Use internalExists. (internalIsDirectory): New method. (isDirectory): Use internalIsDirectory. (createTempFile): Use internalExists and internalIsDirectory. From-SVN: r115441
2006-07-14interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.Bryce McKinlay2-1/+4
2006-07-13 Bryce McKinlay <mckinlay@redhat.com> * interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv. From-SVN: r115431
2006-07-13interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.Bryce McKinlay2-5/+29
2006-07-13 Bryce McKinlay <mckinlay@redhat.com> * interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment. (_Jv_InterpMethod::run): SAVE_PC before executing any instruction using resolve_pool_entry, as it can throw. Likewise for div/rem ops that can throw ArithmeticException. From-SVN: r115422
2006-07-12re PR libgcj/27271 (i/o error (java.util.zip.ZipException: Deflated stream ↵Tom Tromey2-5/+35
ends early.)) PR libgcj/27271: * java/util/zip/ZipFile.java (getInputStream): Call addDummyByte on PartialInputStream. (PartialInputStream.dummyByteCount): New field. (PartialInputStream.fillBuffer): Handle dummy byte. (PartialInputStream.read): Likewise. (PartialInputStream.addDummyByte): New method. From-SVN: r115378
2006-07-12File.java (renameTo): Fix security checks.Gary Benson2-4/+6
2006-07-12 Gary Benson <gbenson@redhat.com> * java/io/File.java (renameTo): Fix security checks. From-SVN: r115373
2006-07-12re PR java/28352 (gcj -C fails to generate line number info for method)Bryce McKinlay2-1/+9
2006-07-12 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/28352 * stacktrace.cc (getLineNumberForFrame): Roll back PC by 1 when looking up line number for interpreted frame. From-SVN: r115370
2006-07-07Port to hosts whose 'sort' and 'tail' implementations treat operands with ↵Paul Eggert2-1/+19
leading '+' as file names... Port to hosts whose 'sort' and 'tail' implementations treat operands with leading '+' as file names, as POSIX has required since 2001. However, make sure the code still works on pre-POSIX hosts. * libjava/classpath/ltmain.sh: Don't assume "sort +2" is equivalent to "sort -k 3", since POSIX 1003.1-2001 no longer requires this. This uses the same fix that is already in libjava/libltdl/ltmain.sh. From-SVN: r115271
2006-07-07StackTrace2.java: Renamed from StackTrace.java.Bryce McKinlay3-10/+18
2006-07-07 Bryce McKinlay <mckinlay@redhat.com> Geoffrey Keating <geoffk@apple.com> * testsuite/libjava.lang/StackTrace2.java: Renamed from StackTrace.java. Changed class name. * testsuite/libjava.lang/StackTrace2.out: Renamed from StackTrace.out. Updated for new class name. Co-Authored-By: Geoffrey Keating <geoffk@apple.com> From-SVN: r115268
2006-07-07Fix conflict with stacktrace.java.Geoffrey Keating1-0/+0
From-SVN: r115267
2006-07-07Fix conflict with stacktrace.out.Geoffrey Keating1-0/+0
From-SVN: r115266
2006-07-07backtrace.h (fallback_backtrace): Scan for a function's prologue to ↵Ranjit Mathew2-22/+42
determine its beginning. * sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function's prologue to determine its beginning. Stop unwinding when we reach JvRunMain(). From-SVN: r115261
2006-07-07Makefile.am (BOOT_CLASS_PATH_DIR): Only contain libgcj.jar.Gary Benson3-2/+7
2006-07-07 Gary Benson <gbenson@redhat.com> * Makefile.am (BOOT_CLASS_PATH_DIR): Only contain libgcj.jar. * Makefile.in: Regenerate. From-SVN: r115252
2006-07-07stacktrace.cc (ClassForFrame): Remove commented-out code.Bryce McKinlay4-9/+100
2006-07-06 Bryce McKinlay <mckinlay@redhat.com> * stacktrace.cc (ClassForFrame): Remove commented-out code. (UnwindTraceFn): Use _Unwind_GetIPInfo and adjust IP only when needed. (getLineNumberForFrame): Don't adjust IP here. * testsuite/libjava.lang/StackTrace.java: New test case. * testsuite/libjava.lang/StackTrace.out: Ditto. From-SVN: r115235
2006-07-06Makefile.am (libgcj_tools_la_GCJFLAGS): Add -fno-indirect-classes.Thomas Fitzsimmons6-2/+15
2006-07-06 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (libgcj_tools_la_GCJFLAGS): Add -fno-indirect-classes. * Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. From-SVN: r115230
2006-07-06boehm.cc (_Jv_MarkObj): Mark the next_or_version field.Bryce McKinlay2-0/+9
2006-07-06 Bryce McKinlay <mckinlay@redhat.com> * boehm.cc (_Jv_MarkObj): Mark the next_or_version field. From-SVN: r115227
2006-07-06configure.ac (ac_configure_args): Add --with-native-libdir.Thomas Fitzsimmons9-147/+132
2006-07-06 Thomas Fitzsimmons <fitzsim@redhat.com> * configure.ac (ac_configure_args): Add --with-native-libdir. * configure: Regenerate. * classpath/native/jni/gtk-peer/Makefile.am: Remove GCJ LOCAL sections. * classpath/native/jni/gtk-peer/Makefile.in: Regenerate. * classpath/native/jawt/Makefile.am: Remove GCJ LOCAL sections. * classpath/native/jawt/Makefile.in: Regenerate. * classpath/native/plugin/Makefile.am: Remove GCJ LOCAL sections. * classpath/native/plugin/Makefile.in: Regenerate. From-SVN: r115223
2006-07-05libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for startfile.Ranjit Mathew5-21/+54
* libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for startfile. * configure.ac: Allow targets to affect the spec for startfile by specifying a THREADSTARTFILESPEC variable. Define this for the win32 threads package to include crtmt.o. * configure: Regenerate. * win32.cc (_CRT_MT): Remove definition. (__mingwthr_key_dtor): Likewise. Co-Authored-By: Danny Smith <dannysmith@users.sourceforge.net> From-SVN: r115196
2006-07-04libjava.exp (libjava_init): Call the GCJ_UNDER_TEST with the -B$specdir.Andreas Tobler2-8/+10
2006-07-04 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_init): Call the GCJ_UNDER_TEST with the -B$specdir. From-SVN: r115188
2006-07-04re PR libgcj/28226 (posix.cc:222: error: invalid conversion from 'const ↵Andreas Tobler5-4/+10
void*' to 'void*') 2006-07-04 Andreas Tobler <a.tobler@schweiz.ch> PR libgcj/28226: * include/posix.h (_Jv_platform_dladdr): Remove const qualifier. * include/win32.h (_Jv_platform_dladdr): Likewise. * posix.cc (_Jv_platform_dladdr): Likewise. * win32.cc (_Jv_platform_dladdr): Likewise. From-SVN: r115184
2006-07-04ltconfig: chmod 644 before ranlib during install.Peter O'Gorman2-1/+5
ChangeLog: * ltconfig: chmod 644 before ranlib during install. libiberty/ChangeLog: * Makefile.in: chmod 644 before ranlib during install. gcc/ChangeLog: * mklibgcc.in: chmod 644 before ranlib during install. libjava/classpath/ChangeLog: * ltconfig: chmod 644 before ranlib during install. From-SVN: r115183
2006-07-04libjava.exp (libjava_init): Look for libgcj-$version.jar instead of ↵Andreas Tobler2-1/+14
libgcj-*.jar. 2006-07-04 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar instead of libgcj-*.jar. From-SVN: r115181
2006-07-04re PR libgcj/28244 (missing dependency causes build failure)Thomas Fitzsimmons3-0/+9
2006-07-04 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/28244: * Makefile.am (libgcj_tools_la_DEPENDENCIES): Add libgcj.la and libgcj.spec. * Makefile.in: Regenerate. From-SVN: r115180
2006-06-30Makefile.am: Comment out tools wrapper creation.Thomas Fitzsimmons7-407/+318
2006-06-30 Thomas Fitzsimmons <fitzsim@redhat.com> * classpath/tools/Makefile.am: Comment out tools wrapper creation. (TOOLS_ZIP): Rename tools.zip tools.jar. (noinst_DATA): Do not install tools.jar. * classpath/tools/Makefile.in: Regenerate. * classpath/Makefile.am (SUBDIRS): Add tools. (DIST_SUBDIRS): Likewise. * classpath/Makefile.in: Regenerate. * Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj-tools.la. (jar_DATA): Add libgcj-tools-$(gcc_version).jar. (bin_PROGRAMS): Add gappletviewer, gjarsigner and gkeytool. Add build logic for libgcj-tools.la, libgcj-tools-$(gcc_version).jar and gappletviewer, gjarsigner and gkeytool. * Makefile.in: Regenerate. From-SVN: r115097
2006-06-29javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in C99.Ranjit Mathew9-58/+209
* gcj/javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in C99. * include/java-stack.h: Include stdlib.h. (_Jv_AddrInfo): New structure to hold address information. * include/posix.h (_Jv_platform_dladdr): Declare. * include/win32.h (_Jv_platform_dladdr): Declare. (backtrace): Remove declaration. * posix.cc: Include dlfcn.h if available. Include java-stack.h. (_Jv_platform_dladdr): Define. * win32.cc: Include string.h. Include java-stack.h. (backtrace): Remove. (_Jv_platform_dladdr): Define. * sysdep/i386/backtrace.h (fallback_backtrace): Check that a potential frame pointer value is 32-bit word-aligned. Use operand of the CALL instruction calling the current function to find its starting address. * stacktrace.cc: Do not include dlfcn.h. Include platform.h. (_Jv_StackTrace::getLineNumberForFrame): Use _Jv_platform_dladdr() instead of dladdr(). (_Jv_StackTrace::GetStackTraceElements): Use nCodeMap even for Windows. (_Jv_StackTrace::GetClassContext): Use fallback_backtrace() for targets with SJLJ exceptions instead of using _Unwind_Backtrace(). (_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise. From-SVN: r115069
2006-06-27OutputStreamWriter.java (writeChars): Use a 'do' loop.Tom Tromey8-23/+85
* java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop. Set 'out.count' earlier. (close): Call setFinished on converter. (flush): Always write work buffer. * java/io/PrintStream.java (writeChars): Do 'do' loop. (close): Call setFinished on converter. Write a 'flush' array. * java/lang/natString.cc (getBytes): Call setFinished on converter. * gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New field. (write): Set hasBytes. Changed 'finished' logic. (havePendingBytes): Rewrote. (setFinished): New method. * gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method. * testsuite/libjava.lang/RH194522.java: New file. * testsuite/libjava.lang/RH194522.out: New file. From-SVN: r115039
2006-06-27boehm.cc (_Jv_SuspendThread, [...]): Define conditionally on GC_PTHREADS...Marco Trudel2-0/+11
2006-06-27 Marco Trudel <mtrudel@gmx.ch> * boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS, !GC_WIN32_THREADS and !GC_DARWIN_THREADS. From-SVN: r115036
2006-06-27re PR libgcj/28178 (jniEnv->DeleteLocalRef (null) fails)Tom Tromey5-0/+45
PR libgcj/28178: * jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument. (_Jv_JNI_DeleteGlobalRef): Likewise. * testsuite/libjava.jni/PR28178.java: New file. * testsuite/libjava.jni/PR28178.c: New file. * testsuite/libjava.jni/PR28178.out: New file. From-SVN: r115034
2006-06-26posix-threads.h: Fix coding style aberrations from 2006-06-19 check-in.Keith Seitz5-12/+20
* include/posix-threads.h: Fix coding style aberrations from 2006-06-19 check-in. * posix-threads.cc (_Jv_ThreadDebugSuspend): Ditto. * include/win32-threads.h (_Jv_ThreadDebugSuspend): Ditto. * win32-threads.cc (_Jv_ThreadDebugSuspend): Ditto. From-SVN: r115020
2006-06-26no-gc.h (_Jv_SuspendThread): Declare.Keith Seitz5-4/+46
* include/no-gc.h (_Jv_SuspendThread): Declare. (_Jv_ResumeThread): Likewise. * include/boehm-gc.h (_Jv_SuspendThread): Declare. (_Jv_ResumeThread): Likewise. * nogc.cc (_Jv_SuspendThread): New function. (_Jv_ResumeThread): Likewise. * boehm.cc (_Jv_SuspendThread): New function. (_Jv_ResumeThread): Likewise. From-SVN: r115019
2006-06-22jni.exp (gcj_jni_invocation_test_one): Link against -ljvm, not -lgcj.Thomas Fitzsimmons2-2/+7
2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com> * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Link against -ljvm, not -lgcj. From-SVN: r114902
2006-06-22Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to toolexeclibdir.Thomas Fitzsimmons3-2/+8
2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to toolexeclibdir. * Makefile.in: Regenerate. From-SVN: r114900
2006-06-22natField.cc (getAddr): Allow setting of final field when it is accessible.Tom Tromey2-0/+9
* java/lang/reflect/natField.cc (getAddr): Allow setting of final field when it is accessible. From-SVN: r114896
2006-06-21win32-threads.h (_Jv_ThreadDesc_t): New typedef.Bryce McKinlay3-1/+25
2006-06-21 Bryce McKinlay <mckinlay@redhat.com> * include/win32-threads.h (_Jv_ThreadDesc_t): New typedef. (_Jv_GetPlatformThreadID): New function. * include/posix-threads.h (_Jv_ThreadDesc_t): New typedef. (_Jv_GetPlatformThreadID): New function. From-SVN: r114854
2006-06-20natSystemProperties.cc (insertSystemProperties): Bump "java.class.version" ↵Bryce McKinlay2-2/+6
to 48.0. 2006-06-20 Bryce McKinlay <mckinlay@redhat.com> * gnu/classpath/natSystemProperties.cc (insertSystemProperties): Bump "java.class.version" to 48.0. From-SVN: r114831
2006-06-20Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to "$(dbexecdir)".Thomas Fitzsimmons5-115/+208
2006-06-20 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to "$(dbexecdir)". Build libjvm.la. * Makefile.in: Regenerate. * jni.cc (the_vm): Rename and export as ... (_Jv_the_vm): New exported symbol. (_Jv_JNI_AttachCurrentThread): Export. (_Jv_JNI_DestroyJavaVM): Replace the_vm references with _Jv_the_vm references. (_Jv_GetJavaVM): Likewise. (JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM, JNI_GetCreatedJavaVMs): Move to ... * jni-libjvm.cc: New file. From-SVN: r114824
2006-06-19re PR java/27908 (VMSecureRandom generateSeed infinite loop? (Regression))Andrew Haley3-0/+92
2006-06-19 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/PR27908.out: New. * testsuite/libjava.lang/PR27908.java: New. From-SVN: r114779
2006-06-19posix-threads.h (_Jv_ThreadDebugSuspend): Declare.Keith Seitz5-4/+82
* include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare. (_Jv_ThreadDebugResume): Declare. (_Jv_ThreadDebugSuspendCount): Declare. * posix-threads.cc (_Jv_ThreadDebugSuspend): New function. (_Jv_ThreadDebugSuspendCount): New function. (_Jv_ThreadDebugResume): New function. * include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare. (_Jv_ThreadDebugResume): Declare. (_Jv_ThreadDebugSuspendCount): Declare. * win32-threads.cc (_Jv_ThreadDebugSuspend): New function. (_Jv_ThreadDebugSuspendCount): New function. (_Jv_ThreadDebugResume): New function. From-SVN: r114769