summaryrefslogtreecommitdiffstats
path: root/libjava/jvmti.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2007-01-17 Marco Trudel <mtrudel@gmx.ch>tromey2007-01-171-7/+5
| | | | | | | * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static. Use JNICALL. Fixed indentation. Removed unused variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120854 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-01-16 Kyle Galloway <kgallowa@redhat.com>kgallowa2007-01-161-1/+48
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120827 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.kseitz2006-11-021-1/+49
| | | | | | | (_Jv_JVMTI_Interface): Define GetLineNumberTable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118419 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/jvmti/Location.java: New file.kseitz2006-11-011-2/+72
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118391 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/java-stack.h (ncodeMap): Declare.kseitz2006-10-281-1/+19
| | | | | | | | | | | | | | | | | (_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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118100 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvmti-int.h (JVMTI): Declare all members "extern".kseitz2006-10-121-0/+39
| | | | | | | * jvmti.cc (JVMTI): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117670 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-22 Marco Trudel <mtrudel@gmx.ch>tromey2006-09-221-1/+1
| | | | | | * jvmti.cc (_Jv_JVMTI_GetErrorName): Now static. Marked JNICALL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117153 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabledkseitz2006-09-221-2/+684
| | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117133 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchkedkseitz2006-09-211-5/+19
| | | | | | | | | | and return JVMTI_ERROR_OUT_OF_MEMORY if necessary. (_Jv_JVMTI_GetClassMethods): Likewise. (_Jv_JVMTI_GetClassLoaderClasses): Likewise. (_Jv_JVMTI_GetJNIFunctionTable): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117098 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_GetErrorName): New function.kseitz2006-09-201-1/+214
| | | | | | | | | | (_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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117086 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.kseitz2006-09-191-12/+14
| | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117064 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.kseitz2006-09-011-12/+36
| | | | | | | | | | (THREAD_CHECK_VALID): Likewise. (THREAD_CHECK_IS_ALIVE): Likewise. (NULL_CHECK): Likewise. (ILLEGAL_ARGUMENT): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116636 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvm.h (_Jv_JVMTI_Init): Declare.kseitz2006-09-011-3/+71
| | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116635 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.kseitz2006-08-311-2/+3
| | | | | | | Pass millis to _Jv_CondWait. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116611 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-04 Mark Wielaard <mark@klomp.org>tromey2006-08-051-0/+2
| | | | | | * jvmti.cc: Include gcj/method.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115943 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.tromey2006-08-051-24/+34
| | | | | | | (_Jv_JVMTI_GetObjectSize): Cast _Jv_GetArrayElementFromElementType result to _Jv_uintptr_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115942 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (REQUIRE_PHASE): New macro.tromey2006-08-031-35/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (_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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115907 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-07-23 Mohan Embar <gnustuff@thisiscool.com>membar2006-07-231-3/+3
| | | | | | | | | | | * jvmti.cc (_Jv_JVMTI_SuspendThread): Add missing JNICALL attribute. (_Jv_JVMTI_ResumeThread): Likewise. (_Jv_JVMTI_DisposeEnvironment): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115692 138bc75d-0d04-0410-961f-82ee72b054a4
* * boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration,kseitz2006-07-211-2/+50
| | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115655 138bc75d-0d04-0410-961f-82ee72b054a4
* * jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.kseitz2006-07-201-1/+9
| | | | | | | (_Jv_JVMTI_Interface): Define DisposeEnvironment method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115631 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/jvm.h (_Jv_GetJVMTIEnv): Declare.kseitz2006-07-201-0/+184
* jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests. * jvmti.cc: New file. * Makefile.am (libgcj_la_SOURCES): Add jvmti.cc. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115629 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud