Skip to content
Snippets Groups Projects
  1. Jan 03, 2011
  2. Mar 21, 2010
  3. Apr 23, 2007
    • Keith Seitz's avatar
      no-gc.h (_Jv_IsThreadSuspended): Declare. · 22099c59
      Keith Seitz authored
              * include/no-gc.h (_Jv_IsThreadSuspended): Declare.
              * include/boehm-gc.h (_Jv_IsThreadSuspended): Likewise.
              * boehm.cc (_Jv_IsThreadSuspended): New function.
              * nogc.cc (_Jv_IsThreadSuspended): Likewise.
              * jvmti.cc (_Jv_JVMTI_GetThreadState): New function.
              (_Jv_JVMTI_Interface): Define GetThreadState.
      
      From-SVN: r124082
      22099c59
    • Kyle Galloway's avatar
      java-interp.h (_Jv_InterpFrame): Add pointer to the interpreter PC. · d7647361
      Kyle Galloway authored
      2007-04-23  Kyle Galloway  <kgallowa@redhat.com>
      
      	* include/java-interp.h (_Jv_InterpFrame): Add pointer to the
      	interpreter PC.
      	(<init>): Add a pointer to the interpreter PC as a parameter with
      	default value NULL.
      	(get_pc): New method.
      	* interpret-run.cc: If debugging, pass a pointer to the PC when
      	creating the stack frame.
      	* jvmti.cc (_Jv_JVMTI_GetStackTrace): Call _Jv_InterpFrame::get_pc
      	to get the PC.
      
      From-SVN: r124076
      d7647361
  4. Mar 12, 2007
  5. Mar 06, 2007
  6. Feb 21, 2007
    • Kyle Galloway's avatar
      jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function. · 532e9fe7
      Kyle Galloway authored
      2007-02-21  Kyle Galloway  <kgallowa@redhat.com>
      
      	* jvmti.cc (_Jv_JVMTI_GetArgumentsSize): New function.
      	* testsuite/libjava.jvmti/interp/getargssize.java: New test.
      	* testsuite/libjava.jvmti/interp/getargssize.h: Ditto.
      	* testsuite/libjava.jvmti/interp/getargssize.jar: Ditto.
      	* testsuite/libjava.jvmti/interp/getargssize.out: Ditto.
      	* testsuite/libjava.jvmti/interp/natgetargssize.cc: Ditto.
      
      From-SVN: r122201
      532e9fe7
  7. Feb 16, 2007
    • Kyle Galloway's avatar
      interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot variables to maintain type info. · ce359ed9
      Kyle Galloway authored
      2007-02-16  Kyle Galloway  <kgallowa@redhat.com>
      
      	* interpret.cc: Add extra DEBUG_LOCALS_INSN calls for multi-slot
      	variables to maintain type info.
      	* interpret-run.cc: Add local variable info to frame in the debug
      	interpreter.
      	* jvmti.cc (getLocalFrame): New method.
      	(_Jv_JVMTI_GetLocalObject): New method.
      	(_Jv_JVMTI_GetLocallInt): New method.
      	(_Jv_JVMTI_GetLocalFloat): New method.
      	(_Jv_JVMTI_GetLocalLong): New method.
      	(_Jv_JVMTI_GetLocalDouble): New method.
      	(_Jv_JVMTI_SetLocalObject): New method.
      	(_Jv_JVMTI_SetLocalInt): New method.
      	(_Jv_JVMTI_SetLocalFloat): New method.
      	(_Jv_JVMTI_SetLocalLong): New method.
      	(_Jv_JVMTI_SetLocalDouble): New method.
      
      From-SVN: r122048
      ce359ed9
  8. Feb 15, 2007
    • Kyle Galloway's avatar
      defineclass.cc (_Jv_ClassReader::read_one_code_attribute): Added... · fe60528e
      Kyle Galloway authored
      defineclass.cc (_Jv_ClassReader::read_one_code_attribute): Added LocalVariableTable attribute handling.
      
      2007-02-15  Kyle Galloway  <kgallowa@redhat.com>
      
      	* defineclass.cc (_Jv_ClassReader::read_one_code_attribute):
          Added LocalVariableTable attribute handling.
          (_Jv_ClassReader::pool_Utf8_to_char_arr): New method.
          * jvmti.cc (_Jv_JVMTI_GetLocalVariableTable): New method.
          * include/java-interp.h: Added local_var_table and
          local_var_table_len fields to _Jv_InterpMethod.
          (_Jv_InterpMethod::get_local_var_table): New method.
          * testsuite/libjava.jvmti/interp/getlocalvartable.java: New
          test.
          * testsuite/libjava.jvmti/interp/getlocalvartable.jar: New test.
          * testsuite/libjava.jvmti/interp/getlocalvartable.out: Output
          for new test.
          * testsuite/libjava.jvmti/interp/getlocalvartable.h: New test.
          * testsuite/libjava.jvmti/interp/natgetlocalvartable.cc: New
          test.
      
      From-SVN: r121999
      fe60528e
  9. Feb 13, 2007
  10. Feb 08, 2007
  11. Feb 07, 2007
    • Kyle Galloway's avatar
      jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro. · 04ab4573
      Kyle Galloway authored
      2007-02-07  Kyle Galloway  <kgallowa@redhat.com>
      
          * jvmti.cc (CHECK_FOR_NATIVE_METHOD): New macro.
          (_Jv_JVMTI_GetMaxLocals): New method.
          * include/java-interp.h
          (_Jv_InterpMethod::get_max_locals): New method.
      
      From-SVN: r121700
      04ab4573
  12. Feb 05, 2007
    • Keith Seitz's avatar
      jvmti.cc (_envListLock): Change type to ReentrantReadWriteLock. · d6df67ef
      Keith Seitz authored
              * jvmti.cc (_envListLock): Change type to
              ReentrantReadWriteLock.
              (_Jv_JVMTI_DisposeEnvironment): Switch to read/write
              lock.
              (check_enabled_event): Likewise.
              (_Jv_GetJVMTIEnv): Likewise.
              (_Jv_JVMTI_Init): Likewise.
              (_Jv_JVMTI_PostEvent): Likewise.
      
      From-SVN: r121616
      d6df67ef
  13. Jan 31, 2007
    • Keith Seitz's avatar
      jvmti-int.h (JVMTI): Declare member "enabled". · c6923d93
      Keith Seitz authored
              * include/jvmti-int.h (JVMTI): Declare member "enabled".
              * jvmti.cc (JVMTI): Add member "enabled".
              (_Jv_GetJVMTIEnv): Mark JVMTI enabled.
              * interpret.cc (_Jv_InterpMethod::ncode): Use JVMTI::enabled
              instead of gnu::classpath::jdwp::Jdwp::isDebugging.
              (_Jv_CompileMethod): If JVMTI is enabled, use run_debug
              instead of run to compile the method.
      
              * interpret-run.cc [DEBUG] (NEXT_INSN): Add JVMTI single step
              notification.
      
      From-SVN: r121442
      c6923d93
  14. Jan 29, 2007
    • Kyle Galloway's avatar
      java-interp.h: Added _Jv_Frame class and its two subclasses _Jv_InterpFrame and _Jv_NativeFrame. · 39273131
      Kyle Galloway authored
      2007-01-29  Kyle Galloway  <kgallowa@redhat.com>
      
      	* include/java-interp.h:  Added _Jv_Frame class and its two
      	subclasses _Jv_InterpFrame and _Jv_NativeFrame.  Also moved
      	_Jv_FrameType from java-stack.h.
      	* include/java-stack.h: Removed _Jv_FrameType.
      	* java/lang/Thread.java: Added frame member to hold new
      	composite frame stack.
      	* java/lang/Thread.h: Regenerated.
      	* java/lang/Thread.class: Rebuilt.
      	* jni.cc (_Jv_JNIMethod::call): Push a frame onto the stack when
      	calling a JNI method.
      	* jvmti.cc (_Jv_JVMTI_GetStackTrace): New Method.
      	(_Jv_JVMTI_GetFrameCount): New method.
      	* stacktrace.cc (UnwindTraceFn): Modified to use new _Jv_Frame
      	classes.
      	* testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
      	* testsuite/libjava.jvmti/interp/natgetstacktrace.cc: New test.
      	* testsuite/libjava.jvmti/interp/getstacktrace.h: New test.
      	* testsuite/libjava.jvmti/interp/getstacktrace.jar: New test.
      	* testsuite/libjava.jvmti/interp/getstacktrace.out: Output file
      	for test.
      
      From-SVN: r121314
      39273131
    • Keith Seitz's avatar
      jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define. · 68254f23
      Keith Seitz authored
              * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
              Define.
              [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
              gcj. All jvmti object types now are defined to be their
              corresponding java classes.
              * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
              jthread to Thread*.
              (_Jv_JVMTI_ResumeThread): Likewise.
              (_Jv_JVMTI_InterruptThread): Likewise.
              (_Jv_JVMTI_SetEventNotificationMode): Likewise.
              * gnu/classpath/jdwp/natVMVirtualMachine.cc
              (jdwpClassPrepareCB): Likewise.
              (jdwpThreadEndCB): Likewise.
              (jdwpThreadStartCB): Likewise.
              (jdwpVMInitCB): Likewise.
      
      From-SVN: r121296
      68254f23
  15. Jan 25, 2007
    • Keith Seitz's avatar
      jvmti.cc (_Jv_JVMTI_GetMethodName): New function. · ff393407
      Keith Seitz authored
              * jvmti.cc (_Jv_JVMTI_GetMethodName): New function.
              (_Jv_JVMTI_Interface): Define GetMethodName.
              * testsuite/libjava.jvmti/getmethodname.java: New file.
              * testsuite/libjava.jvmti/natgetmethodname.cc: New file.
              * testsuite/libjava.jvmti/getmethodname.out: New file.
      
      From-SVN: r121179
      ff393407
  16. Jan 23, 2007
    • Keith Seitz's avatar
      Class.h (_Jv_GetClassStatus): Declare. · 2b3c6788
      Keith Seitz authored
              * java/lang/Class.h (_Jv_GetClassStatus): Declare.
              * java/lang/natClass.cc (_Jv_GetClassStatus): New function.
              * jvmti.cc (_Jv_JVMTI_GetClassStatus): New function.
              (_Jv_JVMTI_Interface): Define GetClassStatus.
      
      From-SVN: r121074
      2b3c6788
  17. Jan 17, 2007
  18. Jan 16, 2007
    • Kyle Galloway's avatar
      jvmti.cc (_Jv_JVMTI_GetAllThreads): New function. · 05794ce8
      Kyle Galloway authored
      2007-01-16  Kyle Galloway  <kgallowa@redhat.com>
      
      	* jvmti.cc (_Jv_JVMTI_GetAllThreads): New function.
      	* testsuite/libjava.jvmti/getallthreads.java: New test.
      	* testsuite/libjava.jvmti/natgetallthreads.cc: Ditto.
      	* testsuite/libjava.jvmti/getallthreads.out: Ditto.
      	* testsuite/libjava.jvmti/getallthreads.h: Ditto.
      	* testsuite/libjava.jvmti/getallthreads.jar: Ditto.
      
      From-SVN: r120827
      05794ce8
  19. Nov 02, 2006
  20. Nov 01, 2006
    • Keith Seitz's avatar
      Location.java: New file. · 444dd946
      Keith Seitz authored
              * gnu/gcj/jvmti/Location.java: New file.
              * gnu/gcj/jvmti/BreakpointManager.java: New file.
              * jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
              (_Jv_JVMTI_ClearBreakpoint): New function.
              (_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
              * sources.am: Regenerated.
              * Makefile.in: Regenerated.
      
      From-SVN: r118391
      444dd946
  21. Oct 28, 2006
    • Keith Seitz's avatar
      java-stack.h (ncodeMap): Declare. · f356a436
      Keith Seitz authored
              * include/java-stack.h (ncodeMap): Declare.
              (_Jv_StackTrace): Make _Jv_GetMethodDeclaringClass friend.
              * java/lang/Class.h (_Jv_GetMethodDeclaringClass): Declare.
              * java/lang/natClass.cc (_Jv_GetMethodDeclaringClass): New
              function.
              * stacktrace.cc (ncodeMap): Redefine from file global to global
              for class _Jv_StackTrace.
              (_Jv_StackTrace::UpdateNCodeMap): Add interpreted classes, too,
              so that _Jv_GetMethodDeclaringClass can find them all.
              (_Jv_StackTrace::ClassForFrame): Exclude interpreted classes.
              * jvmti.cc (_Jv_JVMTI_GetMethodDeclaringClass): New function.
              (_Jv_JVMTI_Interface): Define GetMethodDeclaringClass function.
      
      From-SVN: r118100
      f356a436
  22. Oct 12, 2006
  23. Sep 22, 2006
    • Marco Trudel's avatar
      jvmti.cc (_Jv_JVMTI_GetErrorName): Now static. · f8e04884
      Marco Trudel authored
      2006-09-22  Marco Trudel  <mtrudel@gmx.ch>
      
      	* jvmti.cc (_Jv_JVMTI_GetErrorName): Now static.  Marked JNICALL.
      
      From-SVN: r117153
      f8e04884
    • Keith Seitz's avatar
      jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled events. · ebf29cf6
      Keith Seitz authored
              * 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
      ebf29cf6
  24. Sep 21, 2006
    • Keith Seitz's avatar
      jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked and return... · e853e26e
      Keith Seitz authored
      jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked and return 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
      e853e26e
  25. Sep 20, 2006
    • Keith Seitz's avatar
      jvmti.cc (_Jv_JVMTI_GetErrorName): New function. · 19289614
      Keith Seitz authored
              * 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
      19289614
  26. Sep 19, 2006
    • Keith Seitz's avatar
      jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list. · af91f02d
      Keith Seitz authored
              * 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
      af91f02d
  27. Sep 01, 2006
    • Keith Seitz's avatar
      jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop. · a56913dd
      Keith Seitz authored
              * 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
      a56913dd
    • Keith Seitz's avatar
      jvm.h (_Jv_JVMTI_Init): Declare. · e6789bef
      Keith Seitz authored
              * 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
      e6789bef
  28. Aug 31, 2006
  29. Aug 05, 2006
  30. Aug 03, 2006
    • Tom Tromey's avatar
      jvmti.cc (REQUIRE_PHASE): New macro. · 224aaa41
      Tom Tromey authored
      	* jvmti.cc (REQUIRE_PHASE): New macro.
      	(_Jv_JVMTI_InterruptThread): New function.
      	(_Jv_JVMTI_CreateRawMonitor): Likewise.
      	(_Jv_JVMTI_DestroyRawMonitor): Likewise.
      	(_Jv_JVMTI_RawMonitorEnter): Likewise.
      	(_Jv_JVMTI_RawMonitorExit): Likewise.
      	(_Jv_JVMTI_RawMonitorWait): Likewise.
      	(_Jv_JVMTI_RawMonitorNotify): Likewise.
      	(_Jv_JVMTI_RawMonitorNotifyAll): Likewise.
      	(_Jv_JVMTI_Allocate): Likewise.
      	(_Jv_JVMTI_Deallocate): Likewise.
      	(_Jv_JVMTI_GetClassModifiers): Likewise.
      	(_Jv_JVMTI_GetClassMethods): Likewise.
      	(_Jv_JVMTI_IsInterface): Likewise.
      	(_Jv_JVMTI_IsArrayClass): Likewise.
      	(_Jv_JVMTI_GetClassLoader): Likewise.
      	(_Jv_JVMTI_GetObjectHashCode): Likewise.
      	(_Jv_JVMTI_GetFieldModifiers): Likewise.
      	(_Jv_JVMTI_IsFieldSynthetic): Likewise.
      	(_Jv_JVMTI_GetMethodModifiers): Likewise.
      	(_Jv_JVMTI_IsMethodNative): Likewise.
      	(_Jv_JVMTI_IsMethodSynthetic): Likewise.
      	(_Jv_JVMTI_GetClassLoaderClasses): Likewise.
      	(_Jv_JVMTI_ForceGarbageCollection): Likewise.
      	(_Jv_JVMTI_GetSystemProperty): Likewise.
      	(_Jv_JVMTI_SetSystemProperty): Likewise.
      	(_Jv_JVMTI_GetTime): Likewise.
      	(_Jv_JVMTI_GetAvailableProcessors): Likewise.
      	(_Jv_JVMTI_AddToBootstrapClassLoaderSearch): Likewise.
      	(_Jv_JVMTI_SetVerboseFlag): Likewise.
      	(_Jv_JVMTI_GetObjectSize): Likewise.
      	(_Jv_JVMTI_SetJNIFunctionTable): Likewise.
      	(_Jv_JVMTI_GetJNIFunctionTable): Likewise.
      	(_Jv_JVMTI_Interface): Updated.
      	(NULL_CHECK): New macro.
      
      From-SVN: r115907
      224aaa41
  31. Jul 23, 2006
  32. Jul 21, 2006
    • Keith Seitz's avatar
      boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration, just the contents. · 303f32cc
      Keith Seitz authored
              * 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
      303f32cc
  33. Jul 20, 2006
Loading