summaryrefslogtreecommitdiff
path: root/libjava
Commit message (Collapse)AuthorAgeFilesLines
* re PR libgcj/27352 (SecurityManager.checkPermission() called unnecessarily)Bryce McKinlay2006-05-172-7/+26
| | | | | | | | | | | | PR libgcj/27352 * java/lang/Class.java (getClassLoaderInternal): New method. (forName (String, Class)): Use getClassLoaderInternal. (getPackage): Likewise. (getResource): Likewise. (getResourceAsStream): Likewise. (desiredAssertionStatus): Likewise. From-SVN: r113863
* Fix typo in the last commit. Sorry.Andreas Tobler2006-05-151-1/+1
| | | | From-SVN: r113802
* stacktrace.cc (StackTrace::FillInFrameInfo): Use UNWRAP_FUNCTION_DESCRIPTOR ↵Andreas Tobler2006-05-152-3/+10
| | | | | | | | | | | | to compare frame->start_ip against the... 2006-05-15 Andreas Tobler <a.tobler@schweiz.ch> * stacktrace.cc (StackTrace::FillInFrameInfo): Use UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the klass->methods[j].ncode. From-SVN: r113801
* sources.am, [...]: Rebuilt.Tom Tromey2006-05-136-98/+41
| | | | | | | | | | | | | * sources.am, Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Mention natVMChannels.cc, not natChannels.cc. * java/nio/channels/natVMChannels.cc: Renamed from natChannels.cc. * java/nio/channels/Channels.java: Removed. * java/nio/channels/natChannels.cc: Removed. * java/nio/channels/VMChannels.java: New file. From-SVN: r113745
* sources.am, [...]: Rebuilt.Tom Tromey2006-05-134-926/+7
| | | | | | | * sources.am, Makefile.in: Rebuilt. * java/text/DateFormat.java: Removed. From-SVN: r113740
* sources.am, [...]: Rebuilt.Tom Tromey2006-05-135-581/+18
| | | | | | | | * sources.am, Makefile.in: Rebuilt. * gnu/java/net/protocol/jar/Connection.java: Removed. * java/net/JarURLConnection.java: Removed. From-SVN: r113739
* java-interp.h (_Jv_InterpMethod::dump_object): Removed declaration.Tom Tromey2006-05-132-1/+5
| | | | | | | * include/java-interp.h (_Jv_InterpMethod::dump_object): Removed declaration. From-SVN: r113738
* sources.am, [...]: Rebuilt.Tom Tromey2006-05-1314-2925/+102
| | | | | | | | | | | | | | | | | | | | | * sources.am, Makefile.in: Rebuilt. * java/util/logging/LogManager.java: Removed. * java/util/logging/Logger.java (resetLogger): New method, from Classpath. * java/io/RandomAccessFile.java: Removed. * gnu/java/nio/channels/FileChannelImpl.java (create): New method. (FileChannelImpl): Now private. * java/io/FileInputStream.java: Removed. * java/io/FileOutputStream.java: Removed. * java/security/AccessControlContext.java: Removed. * java/lang/ThreadLocal.java: Removed. * java/lang/InheritableThreadLocal.java: Removed. * java/lang/Thread.java (locals): New field. (getThreadLocals): New method. * java/lang/natThread.cc (finish_): Clear 'locals'. From-SVN: r113735
* NameFinder.java (lookup): If exec'ing addr2line fails, don't try again.Bryce McKinlay2006-05-112-3/+12
| | | | | | | | | | 2006-05-11 Bryce McKinlay <mckinlay@redhat.com> * gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line fails, don't try again. (use_addr2line): Field no longer final. From-SVN: r113715
* NameFinder.java (blacklist): New static field.Bryce McKinlay2006-05-112-1/+20
| | | | | | | | | | 2006-05-11 Bryce McKinlay <mckinlay@redhat.com> * gnu/gcj/runtime/NameFinder.java (blacklist): New static field. (lookup): If addr2line fails to find an address, flag the binary as having no debug info and avoid calling addr2line on it again. From-SVN: r113711
* re PR java/20418 (ICE if variable name is omitted in an initialiser and a ↵David Daney2006-05-113-0/+13
| | | | | | | | | qualified type for the variable is used) * testsuite/libjava.compile/PR20418.java: New. * testsuite/libjava.compile/PR20418.xfail: New. From-SVN: r113707
* natSharedLibLoader.cc (init): Remove debugging line.Andrew Haley2006-05-112-1/+5
| | | | | | | | | 2006-05-11 Andrew Haley <aph@redhat.com> * gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging line. From-SVN: r113693
* natClassLoader.cc: Add comments.Andrew Haley2006-05-102-0/+28
| | | | | | | | 2006-05-10 Andrew Haley <aph@redhat.com> * java/lang/natClassLoader.cc: Add comments. From-SVN: r113677
* prims.cc (_Jv_soleIndirectCompiledEngine): New.Andrew Haley2006-05-107-21/+119
| | | | | | | | | | | | | | | | | | | | 2006-05-09 Andrew Haley <aph@redhat.com> * prims.cc (_Jv_soleIndirectCompiledEngine): New. * include/execution.h (Jv_CompiledEngine::do_allocate_static_fields): Remove body. (_Jv_CompiledEngine::allocate_field_initializers): New. (_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize allocate_field_initializers. (class _Jv_IndirectCompiledClass): New. (struct _Jv_IndirectCompiledEngine): New. * java/lang/Class.h: (IndirectCompiledEngine): New. * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set engine to _Jv_soleIndirectCompiledEngine * link.cc (ensure_fields_laid_out): Call engine->allocate_field_initializers(). From-SVN: r113674
* jni.exp (gcj_jni_compile_c_to_so): Add check for HP-UX and add appropriate ↵Andreas Tobler2006-05-063-8/+24
| | | | | | | | | | | | | | | extension for shared libraries, sl. 2006-05-06 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for HP-UX and add appropriate extension for shared libraries, sl. (gcj_jni_test_one): Likewise. * testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared library extensions. From-SVN: r113587
* re PR libgcj/27294 (gij throws NullPointerException, when the interpreter is ↵Tom Tromey2006-05-052-1/+22
| | | | | | | | | | not enabled) PR libgcj/27294: * java/lang/natVMClassLoader.cc (defineClass): Throw VirtualMachineError if no interpreter configured. From-SVN: r113554
* [multiple changes]Andrew Haley2006-05-045-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-04 Andrew Haley <aph@redhat.com> * class.c (make_field_value): Always build_address_of fdecl if there is an initializer. 2006-05-03 Andrew Haley <aph@redhat.com> PR libgcj/27352 * expr.c (maybe_rewrite_invocation): New function. (rewrite_arglist_getclass): Likewise. (rules): New. (expand_invoke): Call maybe_rewrite_invocation. * parse.y (patch_invoke): Likewise. * java-tree.h: (maybe_rewrite_invocation): New function. 2006-05-03 Andrew Haley <aph@redhat.com> PR libgcj/27352 * java/lang/Class.java (getClassLoader(Class)): New. forName(String, Class): New. * java/lang/natClass.cc (getClassLoader(Class)): New. 2006-05-02 Andrew Haley <aph@redhat.com> * prims.cc (_Jv_NewMultiArray): Check for phantom class. From-SVN: r113532
* re PR libgcj/26861 (VirtualMachineError in interperter.)Tom Tromey2006-05-043-23/+19
| | | | | | | | | | PR libgcj/26861: * interpret.cc (run) <insn_getfield>: Removed 0xffff check. <insn_putfield>: Likewise. (NULLCHECK): Define unconditionally. * link.cc (ensure_class_linked): Removed dead code. From-SVN: r113531
* Class.h (JV_STATE_LOADING): Added comment.Tom Tromey2006-05-046-16/+67
| | | | | | | | | | | | | | * java/lang/Class.h (JV_STATE_LOADING): Added comment. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natSystemClassLoader.cc. * gnu/gcj/runtime/natSystemClassLoader.cc: New file. * gnu/gcj/runtime/SystemClassLoader.java (nativeClasses): New field. (loadedClasses): Removed. (findClass): Declare. (addClass): Add to nativeClasses, not loadedClasses. From-SVN: r113530
* re PR libgcj/26858 (NullPointerException not generated for large classes...)Andrew Haley2006-05-042-2/+5
| | | | | | | | | 2006-05-04 Andrew Haley <aph@redhat.com> PR java/26858 * testsuite/libjava.lang/PR26858.xfail: Delete. From-SVN: r113526
* libjava.exp (test_libjava): Test bytecode->native -findirect-dispatch ↵Bryce McKinlay2006-05-022-0/+11
| | | | | | | | | | | compilation. 2006-05-02 Bryce McKinlay <mckinlay@redhat.com> * testsuite/lib/libjava.exp (test_libjava): Test bytecode->native -findirect-dispatch compilation. From-SVN: r113477
* configure.ac: Simplify the mmap check a bit more.Andreas Tobler2006-05-014-107/+10
| | | | | | | | | | 2006-05-01 Andreas Tobler <a.tobler@schweiz.ch> * configure.ac: Simplify the mmap check a bit more. * configure: Rebuilt. * include/config.h.in: Likewise. From-SVN: r113426
* boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR before calling...Roger Sayle2006-05-012-3/+11
| | | | | | | | | | | | * boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR before calling GC_register_has_static_roots_callback. (_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and HAVE_DLADDR before calling dladdr. Co-Authored-By: Andrew Haley <aph@redhat.com> From-SVN: r113417
* link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index to ↵Bryce McKinlay2006-04-295-47/+40
| | | | | | | | | | | | | | | | | | | | | | resolve_method. 2006-04-28 Bryce McKinlay <mckinlay@redhat.com> * link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index to resolve_method. * interpret.cc (insn_invokevirtual): Use method->index, not vtable_index. Check accflag FINAL to determine finals. Only do explicit null check if calling a final method. Use throw_null_pointer_exception. (invokevirtual_resolved): Likewise. (null_pointer_exc): Remove static field. (throw_null_pointer_exception): Always define. Throw a new NullPointerException every time. * include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index field. * include/execution.h (resolve_method): Remove vtable_index argument. From-SVN: r113370
* configure.ac: Add an additional checks for dladdr and dlopen on dld.Andreas Tobler2006-04-283-5/+176
| | | | | | | | | 2006-04-28 Andreas Tobler <a.tobler@schweiz.ch> * configure.ac: Add an additional checks for dladdr and dlopen on dld. * configure: Rebuilt. From-SVN: r113323
* natSharedLibLoader.cc: Include gc.h later.Tom Tromey2006-04-252-6/+17
| | | | | | | | * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later. Include platform.h. Set GC_DEBUG before including gc.h, if needed. From-SVN: r113251
* natClassLoader.cc: Don't include link.h or dladdr.h.Andrew Haley2006-04-253-8/+8
| | | | | | | | | | 2006-04-25 Andrew Haley <aph@redhat.com> * java/lang/natClassLoader.cc: Don't include link.h or dladdr.h. * boehm.cc: Don't include link.h. (_Jv_RegisterLibForGc): Cast away const when calling dladdr(). From-SVN: r113246
* * java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.Tom Tromey2006-04-242-5/+16
| | | | From-SVN: r113229
* lang.c (java_init): Handle flag_indirect_classes.Andrew Haley2006-04-2410-41/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-21 Andrew Haley <aph@redhat.com> * lang.c (java_init): Handle flag_indirect_classes. * jvgenmain.c: Use "class$$" instead of "class$". * mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as DECLs. (mangle_class_field): Special case "class$$" as well as "class$". * constants.c (build_ref_from_constant_pool): If flag_indirect_classes, generate a ref into the heap. * decl.c (constants_field_decl_node, constants_data_field_decl_node): New. * class.c (build_static_class_ref): New. (build_classdollar_field): Factor out from build_class_ref(). (make_field_value): Handle static fields in heap. (make_class_data): Make sure we get a static ref to class. Make class initializer const if flag_indirect_classes. (register_class): Build a class_ref for initialization if flag_indirect_classes. (emit_indirect_register_classes): New. 2006-04-21 Andrew Haley <aph@redhat.com> * include/execution.h (struct _Jv_CompiledEngine): Define for compiled classes. * java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call _Jv_RegisterLibForGc. (_Jv_RegisterClasses_Counted): Likewise. (_Jv_NewClassFromInitializer): New. (_Jv_RegisterNewClasses): New. * sources.am: Regenerate. * boehm.cc (_Jv_GC_has_static_roots): new. (_Jv_InitGC): Call GC_register_has_static_roots_callback. (filename_node, find_file, _Jv_print_gc_store, new_node, _Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New. * scripts/makemake.tcl: Add -fno-indirect-classes. * Makefile.in: Regenerate. * link.cc (resolve_pool_entry): Allocate constant pool. Allocate fields. From-SVN: r113224
* configure.ac: Weaken the check for MMAP.Andreas Tobler2006-04-234-385/+51
| | | | | | | | | | 2006-04-22 Andreas Tobler <a.tobler@schweiz.ch> * configure.ac: Weaken the check for MMAP. * configure: Rebuilt. * include/config.h.in: Likewise. From-SVN: r113182
* re PR libgcj/27170 (Deadlock in garbage collector)Bryce McKinlay2006-04-212-0/+11
| | | | | | | | PR libgcj/27170 * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override dlopen(). From Anthony Green. From-SVN: r113123
* re PR libgcj/21941 (NPE in Socket.connect())Tom Tromey2006-04-203-4/+21
| | | | | | | | | | PR libgcj/21941: * gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw UnknownHostException if needed. * gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw UnknownHostException if needed. From-SVN: r113118
* Makefile.in: Rebuilt.Tom Tromey2006-04-193-5/+8
| | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (CLEANFILES): Removed all_java_filelist_files, all_java_deps_files. From-SVN: r113101
* natFileChannelPosix.cc (write): Properly handle EINTR.Tom Tromey2006-04-192-1/+7
| | | | | | | * gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly handle EINTR. From-SVN: r113082
* re PR libgcj/27171 (UTF8 PrintWriter goes haywire)Tom Tromey2006-04-174-8/+57
| | | | | | | | | | | | PR libgcj/27171: * testsuite/libjava.lang/pr27171.java: New file. * testsuite/libjava.lang/pr27171.out: New file. * gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return true if we've seen a high surrogate. (write): Handle high surrogates at the end of the stream. Properly emit isolated low surrogates. From-SVN: r113013
* stringconst2.java: Print a stack trace in case of failure.Andreas Tobler2006-04-172-1/+7
| | | | | | | | | 2006-04-17 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.lang/stringconst2.java: Print a stack trace in case of failure. From-SVN: r113011
* re PR libgcj/26522 (gcc-4.1.0-RC{1,2} install headers into a top-level ↵Tom Tromey2006-04-133-0/+12
| | | | | | | | | | (root) /include) PR libgcj/26522: * Makefile.in: Rebuilt. * Makefile.am (libsubdir): New variable. From-SVN: r112925
* re PR libgcj/23829 (FreeBSD 5 support for libjava)NAKATA Maho2006-04-123-8/+13
| | | | | | | | | PR libgcj/23829 * configure.ac: Link against -lpthread rather than -lc_r on FreeBSD 5 and above. * configure: Regenerate. From-SVN: r112897
* SystemClassLoader.java (addClass): Get the value of package-private field ↵Bryce McKinlay2006-04-113-7/+28
| | | | | | | | | | | "loadedClasses" using reflection. * gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value of package-private field "loadedClasses" using reflection. * java/lang/VMCompiler.java (compileClass): Remove unreachable catch block. From-SVN: r112858
* libjava.exp (libjava_init): Recognize multilib directory names containing ↵Matthias Klose2006-04-102-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | underscores. gcc/testsuite: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libffi: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libgomp: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libjava: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libmudflap: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. libstdc++: 2006-04-10 Matthias Klose <doko@debian.org> * testsuite/lib/libjava.exp (libjava_init): Recognize multilib directory names containing underscores. From-SVN: r112833
* x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.Andrew Haley2006-04-103-10/+113
| | | | | | | | | | | 2006-04-10 Andrew Haley <aph@redhat.com> * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New. (SIGNAL_HANDLER): Mark arg as unused. * configure.host (x86_64-* DIVIDESPEC): Use fno-use-divide-subroutine. From-SVN: r112827
* configure: Rebuilt.Andreas Tobler2006-04-082-1/+6
| | | | | | | | 2006-04-08 Andreas Tobler <a.tobler@schweiz.ch> * configure: Rebuilt. From-SVN: r112766
* InetAddress.java: Throw an UnknownHostException if lookup fails.Andrew Haley2006-04-072-0/+8
| | | | | | | | | 2006-04-07 Andrew Haley <aph@redhat.com> * java/net/InetAddress.java: Throw an UnknownHostException if lookup fails. From-SVN: r112754
* acinclude.m4 (AC_LTDL_SHLIBEXT): Add GCJ LOCAL marker to indicate GCJ ↵Andreas Tobler2006-04-062-0/+6
| | | | | | | | | | | specific stuff. 2006-04-06 Andreas Tobler <a.tobler@schweiz.ch> * acinclude.m4 (AC_LTDL_SHLIBEXT): Add GCJ LOCAL marker to indicate GCJ specific stuff. From-SVN: r112736
* re PR libgcj/26625 (libgcj-4.2.0.jar not rebuilt after a source file change)Tom Tromey2006-04-056-2/+17
| | | | | | | | | | | | | | libjava/classpath: PR libgcj/26625: * lib/Makefile.in: Rebuilt. * lib/Makefile.am (compile-classes): Touch the output file. libjava: PR libgcj/26625: * Makefile.in: Rebuilt. * Makefile.am (libgcj-$(gcc_version).jar): Depend on classpath/lib/compile-classes. From-SVN: r112724
* configure.host: Add -fno-omit-frame-pointer to libgcj_flags for MinGW since ↵Ranjit Mathew2006-04-052-0/+7
| | | | | | | | | | EBP is used for... * configure.host: Add -fno-omit-frame-pointer to libgcj_flags for MinGW since EBP is used for backtracking through call frames on this platform. From-SVN: r112708
* re PR libgcj/25414 (should update rmic)Archit Shah2006-04-057-90/+293
| | | | | | | | | | | | | | | | | | | 2006-04-05 Archit Shah <ashah@redhat.com> PR java/25414 * gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments): Add classpath argument. * gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust caller. * gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise. * gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise. * gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New. * gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call mkdirs for destination directory, correct handling of superclasses and interfaces of the remote class, correct handling of exceptions declared by remote methods. From-SVN: r112699
* re PR classpath/26990 (SecurityManager.checkExit() problem)Tom Tromey2006-04-046-5/+40
| | | | | | | | | | | | | | PR libgcj/26990: * prims.cc (_Jv_RunMain): Use exitNoChecksAccessor. * gnu/java/lang/natMainThread.cc (call_main): Use exitNoChecksAccessor. * testsuite/libjava.lang/pr26990.out: New file. * testsuite/libjava.lang/pr26990.java: New file. * java/lang/Runtime.java (exitNoChecks): New method. (exitNoChecksAccessor): Likewise. (exit): Call exitNoChecks. From-SVN: r112685
* gen-classlist.sh.in: Correct handle generated files.Tom Tromey2006-04-045-41/+86
| | | | | | | | | | | | | | | | | | * lib/gen-classlist.sh.in: Correct handle generated files. 2006-04-04 Mark Wielaard <mark@klomp.org> * lib/gen-classlist.sh.in: Use classes.tmp, not classes.2 as temporary file name. 2006-04-04 Tom Tromey <tromey@redhat.com> * lib/split-for-gcj.sh: Updated for multi-field format. * lib/Makefile.am (CLEANFILES): Added classes.2. * lib/gen-classlist.sh.in (GCJ): Removed. Create classes.1 and classes.2 using multiple fields. From-SVN: r112677
* Temporarily reverting previous patch due to build-breaking bug.Tom Tromey2006-04-045-77/+39
| | | | From-SVN: r112671