Skip to content
Snippets Groups Projects
  1. Mar 11, 2005
    • Bryce McKinlay's avatar
      exception.cc: Remove stray MethodRef.h include. · c0cbd601
      Bryce McKinlay authored
      2005-03-10  Bryce McKinlay  <mckinlay@redhat.com>
      
              * exception.cc: Remove stray MethodRef.h include.
              * java/lang/natClass.cc: Likewise.
              * gnu/gcj/runtime/MethodRef.java: Removed.
              * gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc,
              gnu/gcj/runtime/natStackTrace.cc: Really removed.
              * java/lang/natRuntime.cc (_load): Remove unsed variable.
              * Makefile.am (ordinary_java_source_files): Remove MethodRef.java.
              * Makefile.in: Rebuilt.
      
      From-SVN: r96288
      c0cbd601
  2. Mar 10, 2005
    • Bryce McKinlay's avatar
      New Stack Trace infrastructure. · 18744d9b
      Bryce McKinlay authored
      2005-03-10  Bryce McKinlay  <mckinlay@redhat.com>
      
      	New Stack Trace infrastructure.
      	* Makefile.am (libgcj0_convenience_la_SOURCES): Add stacktrace.cc.
      	(gnu/gcj/runtime/StackTrace.lo): Removed.
      	(ordinary_java_source_files): Remove obsolete files.
      	(nat_source_files): Remove obsolete files. Add natVMThrowable.cc.
      	* configure.host (fallback_backtrace_h): Set backtrace header
      	for mingw and cygwin targets.
      	* configure.ac: Make symlink for fallback backtrace headers.
      	* Makefile.in, configure: Rebuilt.
      	* defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
      	Read 'LineNumberTable' attribute.
      	(_Jv_ClassReader::read_one_class_attribute): Read 'SourceFile'
      	attribute.
      	(_Jv_ClassReader::handleCodeAttribute): Initialize method line
      	table fields.
      	* exception.cc: Remove unused include.
      	* interpret.cc (DIRECT_THREADED, insn_slot): Moved to java-interp.h.
      	(SAVE_PC): New macro. Save current PC in the interpreter frame.
      	(NULLCHECK, NULLARRAYCHECK): Use SAVE_PC.
      	(_Jv_InterpMethod::compile): Translate bytecode PC values in the line
      	table to direct threaded instruction values.
      	(_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Removed.
      	(_Jv_InterpMethod::run): No longer member function. All
      	callers updated. Remove _Unwind calls. Call SAVE_PC whenever a call
      	is made or where an instruction could throw.
      	(_Jv_InterpMethod::get_source_line): New. Look up source line numbers
      	in line_table.
      	* prims.cc (catch_segv): Construct exception after MAKE_THROW_FRAME.
      	(catch_fpe): Likewise.
      	* stacktrace.cc: New file. Stack trace code now here.
      	* gnu/gcj/runtime/MethodRef.java:
      	* gnu/gcj/runtime/NameFinder.java: Mostly reimplemented. Now simply
      	calls addr2line to look up PC addresses in a given binary or shared
      	library.
      	* gnu/gcj/runtime/StackTrace.java, gnu/gcj/runtime/natNameFinder.cc,
      	gnu/gcj/runtime/natStackTrace.cc: Removed.
      	* gnu/java/lang/MainThread.java (call_main): Add comment warning that
      	this function name is specially recognised by the stack trace code
      	and shouldn't be changed.
      	* include/java-interp.h (DIRECT_THREADED, insn_slot): Moved here.
      	(struct  _Jv_LineTableEntry, line_table, line_table_len): New.
      	(_Jv_InterpMethod::run): Update declaration.
      	(_Jv_StackTrace_): New friend. NameFinder and StackTrace no longer
      	friends.
      	(_Jv_InterpFrame): Renamed from _Jv_MethodChain. Add PC field.
      	* include/java-stack.h: New file. Declarations for stack tracing.
      	* include/jvm.h (_Jv_Frame_info): Removed.
      	* java/lang/Class.h: Update friend declarations.
      	* java/lang/VMClassLoader.java (getSystemClassLoader): Simplify
      	exception message.
      	* java/lang/VMThrowable.java (fillInStackTrace): Now native.
      	(getStackTrace): Now native.
      	(data): New RawDataManaged field.
      	* java/lang/natClass.cc: Update includes.
      	(forName): Use _Jv_StackTrace::GetCallingClass for
      	calling-classloader check.
      	(getClassLoader): Likewise.
      	* java/lang/natRuntime.cc: Update includes.
      	(_load): Use _Jv_StackTrace::GetFirstNonSystemClassLoader.
      	* java/lang/natVMSecurityManager.cc: Update includes.
      	(getClassContext): Use _Jv_StackTrace::GetClassContext.
      	* java/lang/natVMThrowable.cc: New file. Native methods for
      	VMThrowable.
      	* java/lang/reflect/natArray.cc: Update includes.
      	(newInstance): Use _Jv_StackTrace::GetCallingClass to implement
      	accessibility check.
      	* java/lang/reflect/natConstructor.cc: Update includes.
      	(newInstance): Use _Jv_StackTrace::GetCallingClass to implement
      	accessibility check.
      	* java/lang/reflect/natField.cc: Update includes.
      	(getAddr): Use _Jv_StackTrace::GetCallingClass to implement
      	accessibility check.
      	* java/lang/reflect/natMethod.cc: Update includes.
      	(invoke): Use _Jv_StackTrace::GetCallingClass to implement
      	accessibility check.
      	* java/util/natResourceBundle.cc: Update includes.
      	(getCallingClassLoader): Use _Jv_StackTrace::GetCallingClass.
      	* java/util/logging/natLogger.cc: Update includes. Use
      	_Jv_StackTrace::GetCallerInfo to get call-site info.
      	* sysdep/generic/backtrace.h: Fallback backtrace code. Stub
      	implementation.
      	* sysdep/i386/backtrace.h: New. Fallback backtrace code. i386
      	implementation.
      
      From-SVN: r96253
      18744d9b
  3. Oct 24, 2003
    • Andrew Haley's avatar
      lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New. · 90471585
      Andrew Haley authored
      2003-10-22  Andrew Haley  <aph@redhat.com>
      
              * lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): New.
              (java_get_callee_fndecl): New.
      
              * jcf-parse.c (java_parse_file): Call emit_catch_table().
      
              * java-tree.h (ctable_decl): New.
              (catch_classes):  New.
              (java_tree_index): Add JTI_CTABLE_DECL, JTI_CATCH_CLASSES.
      
              * decl.c (java_init_decl_processing): Add catch_class_type.
              Add ctable_decl.
              Add catch_classes field.
      
              * class.c (build_indirect_class_ref): Break out from
              build_class_ref.
              (make_field_value): Check flag_indirect_dispatch.
              (make_class_data): Ditto.
              Tidy uses of PUSH_FIELD_VALUE.
              Add field catch_classes.
              (make_catch_class_record): New.
      
              * java-tree.h (PUSH_FIELD_VALUE): Tidy.
      
      2003-10-22  Andrew Haley  <aph@redhat.com>
      
              * java/lang/natClass.cc (initializeClass): Call
              _Jv_linkExceptionClassTable.
              (_Jv_LinkSymbolTable): Call )_Jv_ThrowNoSuchMethodError.  Call
              _Jv_Defer_Resolution on a method whose ncode is NULL.
              (_Jv_linkExceptionClassTable): New function.
              (_Jv_LayoutVTableMethods): If superclass looks like a constant pool
              entry, look it up.
              * java/lang/Class.h (struct _Jv_CatchClass): New.
              (_Jv_linkExceptionClassTable): New friend.
              (_Jv_Defer_Resolution): New friend.
              (class Class.catch_classes): New field.
              * include/java-interp.h (Jv_Defer_Resolution): New method.
              (_Jv_PrepareClass): Make a friend of _Jv_MethodBase.
              (_Jv_MethodBase.deferred): New field.
              (_Jv_Defer_Resolution): New function.
              * resolve.cc (_Jv_PrepareClass): Resolve deferred handlers.
              * exception.cc (get_ttype_entry): Change return type to void**.
              (PERSONALITY_FUNCTION): Remove all code related to using a
              Utf8Const* for a match type.  Change match type to be a pointer to
              a pointer, rather than a pointer to a Class.
              * defineclass.cc (handleCodeAttribute): Initialize
              method->deferred.
              (handleMethodsEnd): Likewise.
      
      From-SVN: r72886
      90471585
  4. Aug 20, 2003
    • Andrew Haley's avatar
      [multiple changes] · f2f3f409
      Andrew Haley authored
      2003-01-31  Andrew Haley  <aph@redhat.com>
      
      	* except.c (prepare_eh_table_type): Use new encoding for exception
      	handlers when using -fno-assume-compiled.
      
      2003-08-20  Andrew Haley  <aph@redhat.com>
      
      	* gnu/gcj/runtime/StackTrace.java (getClass): New method.
      	* gnu/gcj/runtime/natStackTrace.cc (getClass): New method.
      	(classAt): Break out class lookup function into getClass().
      	* exception.cc (PERSONALITY_FUNCTION): Use new encoding for exception
      	handlers when using -fno-assume-compiled.
      
      From-SVN: r70605
      f2f3f409
  5. Dec 23, 2002
    • Jeff Sturm's avatar
      exception.cc (PERSONALITY_FUNCTION): Clear least-significant-bit of catch_type. · 4017ae6e
      Jeff Sturm authored
      * exception.cc (PERSONALITY_FUNCTION): Clear least-significant-bit
      of catch_type.
      * java/lang/natClass.cc (initializeClass): Link vtable, otable,
      idt tables after initializing superclass.
      * java/lang/natClassLoader.cc (uaddr): New typedef.
      (_Jv_PrepareCompiledClass): Resolve superclass, interfaces
      if they are constant pool indicies.  Don't link vtable, otable yet.
      
      From-SVN: r60450
      4017ae6e
  6. Apr 06, 2002
  7. Feb 13, 2002
  8. Feb 11, 2002
  9. Sep 10, 2001
    • Bryce McKinlay's avatar
      jvm.h (_Jv_AllocRawObj): New prototype. · 7866a458
      Bryce McKinlay authored
      	* include/jvm.h (_Jv_AllocRawObj): New prototype.
      	* boehm.cc (_Jv_AllocRawObj): Implement.
      	* nogc.cc (_Jv_AllocRawObj): Likewise.
      	* exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc.
      
      From-SVN: r45497
      7866a458
  10. Aug 31, 2001
  11. Jun 10, 2001
  12. May 21, 2001
    • Bryce McKinlay's avatar
      configure.in: Update boehm-gc include dir for new GC version. · 1f4eb17d
      Bryce McKinlay authored
      	* configure.in: Update boehm-gc include dir for new GC version.
      	* configure: Rebuilt.
      	* exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and
      	extern "C" wrapper.
      	* boehm.cc: Update includes for new GC version. MAKE_PROC is now
      	GC_MAKE_PROC. mark_proc is now GC_mark_proc.
      	* posix-threads.cc: Only include <gc.h>. Don't need to wrap with
      	extern "C".
      
      From-SVN: r42380
      1f4eb17d
  13. May 12, 2001
  14. Apr 02, 2001
  15. Mar 28, 2001
  16. Mar 26, 2001
    • Richard Henderson's avatar
      exception.cc (java_eh_info): Make value type jthrowable. · b3208f56
      Richard Henderson authored
      	* exception.cc (java_eh_info): Make value type jthrowable.
      	(_Jv_type_matcher): Remove now unneeded cast.
      	(_Jv_Throw): Make argument type jthrowable.  Munge name
      	for SJLJ_EXCEPTIONS here ...
      	* gcj/cni.h: ... not here.
      	(JvThrow): Remove.
      	* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
      
      	* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
      	prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
      	gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
      	gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
      	gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
      	java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
      	java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
      	java/lang/natClass.cc, java/lang/natClassLoader.cc,
      	java/lang/natDouble.cc, java/lang/natObject.cc,
      	java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
      	java/lang/natString.cc, java/lang/natSystem.cc,
      	java/lang/natThread.cc, java/lang/reflect/natArray.cc,
      	java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
      	java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
      	java/util/zip/natInflater.cc:
      	Use throw, not JvThrow or _Jv_Throw.
      
      From-SVN: r40838
      b3208f56
  17. Oct 13, 2000
    • Bryce McKinlay's avatar
      exception.cc: Don't #include "exception". · c26f7a31
      Bryce McKinlay authored
      2000-10-13  Bryce McKinlay  <bryce@albatross.co.nz>
      
      	* exception.cc: Don't #include "exception".
      	(_Jv_eh_alloc): Call abort (), not terminate (), if malloc fails.
      
      	* Makefile.am (libgcj_la_LDFLAGS): Link in libsupc++.
      	* Makefile.in: Updated.
      
      From-SVN: r36855
      c26f7a31
  18. Mar 15, 2000
    • Tom Tromey's avatar
      [multiple changes] · 878885b4
      Tom Tromey authored
      2000-03-15  Tom Tromey  <tromey@cygnus.com>
      
      	* java/io/natFileDescriptorWin32.cc (winerr): Now static.
      
      	* prims.cc (win32_exception_handler): Reformatted.
      
      	* include/win32-threads.h (_Jv_HaveCondDestroy): New define.
      	(_Jv_HaveMutexDestroy): Likewise.
      
      2000-03-15 Jon Beniston <jb7216@bristol.ac.uk>
      
      	* java/io/natFileDescriptorWin32.cc: New file.
      	* java/io/natFileWin32.cc: New file.
      	* java/net/natInetAddress.cc: Added conditional inclusion of
      	Windows / Winsock headers.
      	* java/net/natPlainDatagramSocketImpl.cc: Added conditional
      	inclusion of Windows / Winsock headers.
      	* java/net/natPlainSocketImpl.cc: Added conditional inclusion of
      	Windows / Winsock headers.
      	* include/win32-signal.h: New file.
      	* include/win32-threads.h: New file.
      	* win32-threads.cc: New file.
      	* exception.cc (win32_get_restart_frame): New function.
      	* prims.cc (win32_exception_handler): New function.
      	(main_init) Performs Winsock initialisation.
      	(main_init) Installs exeception handler.
      
      From-SVN: r32567
      878885b4
  19. Mar 07, 2000
  20. Jan 19, 2000
  21. Nov 29, 1999
  22. Nov 19, 1999
  23. Sep 10, 1999
    • Tom Tromey's avatar
      configure: Rebuilt. · 27e934d8
      Tom Tromey authored
      	* configure: Rebuilt.
      	* configure.in: Build include/Makefile.
      	* Makefile.in: Rebuilt.
      	* Makefile.am (SUBDIRS): Added gcj and include.
      	(install-data-local): New target.
      	(extra_headers): New macro.
      	* include/Makefile.in: New file.
      	* include/Makefile.am: New file.
      
      	* interpret.cc: Don't include gcj/field.h or gcj/cni.h.
      	* java/lang/reflect/natField.cc: Don't include gcj/field.h or
      	gcj/cni.h.
      	* boehm.cc: Don't include java-threads.h or gcj/field.h.
      	* resolve.cc: Include config.h.
      	* defineclass.cc: Include config.h.
      	* include/java-interp.h: Don't include config.h.
      	* include/jvm.h: Include java-threads.h, Object.h, java-gc.h,
      	cni.h.
      
      	* gcj/javaprims.h: Regenerated namespace decls.
      	* classes.pl (scan): Don't put `;' after closing brace.
      
      	* Makefile.in: Rebuilt.
      	* Makefile.am (INCLUDES): Added -I for top_srcdir.
      	* configure.in: Create gcj/Makefile.
      	* gcj/Makefile.in: New file.
      	* gcj/Makefile.am: New file.
      	* java/lang/Object.h: Don't include any other headers.
      	* gcj/array.h: Renamed from include/java-array.h.
      	* gcj/field.h: Renamed from include/java-field.h.
      	* gcj/method.h: Renamed from include/java-method.h.
      	* gcj/cni.h, gcj/javaprims.h: Moved from include/.
      	Updated all files to reflect new include structure.
      
      From-SVN: r29278
      27e934d8
  24. Aug 03, 1999
    • Bryce McKinlay's avatar
      ServerSocket.java: Define ANY_IF. · 25fef12b
      Bryce McKinlay authored
              * java/net/ServerSocket.java: Define ANY_IF.
              (ServerSocket (int,int)): Use ANY_IF instead of null to bind to
              all network interfaces.
              * java/net/DatagramSocket.java (DatagramSocket): ditto.
              * java/net/natPlainSocketImpl.cc (bind): Expect 0.0.0' instead of
              null.
              * java/net/natPlainDatagramSocketImpl (bind): Expect 0.0.0'
              instead of null.
      
      From-SVN: r28429
      25fef12b
    • Bryce McKinlay's avatar
      boehm.cc (_Jv_RegisterFinalizer): Cast eth' to GC_PTR. · a0e4da0d
      Bryce McKinlay authored
      eth'
      
              * boehm.cc (_Jv_RegisterFinalizer): Cast eth' to GC_PTR.
              * exception.cc (_Jv_Throw): Cast _Jv_type_matcher' to __eh_matcher.
      
      From-SVN: r28428
      a0e4da0d
  25. Apr 07, 1999
Loading