Keith Seitz
a56913dd37
jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.
...
* 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
2006-09-01 17:58:22 +00:00
Keith Seitz
e6789bef7a
jvm.h (_Jv_JVMTI_Init): Declare.
...
* 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
2006-09-01 17:42:23 +00:00
Keith Seitz
59294c2bdf
jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
...
* jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
Pass millis to _Jv_CondWait.
From-SVN: r116611
2006-08-31 22:56:23 +00:00
Mark Wielaard
76b63f3c5f
jvmti.cc: Include gcj/method.h.
...
2006-08-04 Mark Wielaard <mark@klomp.org>
* jvmti.cc: Include gcj/method.h.
From-SVN: r115943
2006-08-05 03:17:07 +00:00
Tom Tromey
cb86b2b6db
jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.
...
* jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.
(_Jv_JVMTI_GetObjectSize): Cast _Jv_GetArrayElementFromElementType
result to _Jv_uintptr_t.
From-SVN: r115942
2006-08-05 01:28:36 +00:00
Tom Tromey
224aaa4139
jvmti.cc (REQUIRE_PHASE): New macro.
...
* 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
2006-08-03 17:13:51 +00:00
Mohan Embar
3201e73d96
jvmti.cc (_Jv_JVMTI_SuspendThread): Add missing JNICALL attribute.
...
2006-07-23 Mohan Embar <gnustuff@thisiscool.com>
* jvmti.cc (_Jv_JVMTI_SuspendThread): Add missing JNICALL
attribute.
(_Jv_JVMTI_ResumeThread): Likewise.
(_Jv_JVMTI_DisposeEnvironment): Likewise.
From-SVN: r115692
2006-07-23 23:59:24 +00:00
Keith Seitz
303f32ccd7
boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration, just the 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-21 23:45:03 +00:00
Keith Seitz
326d5132e4
jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
...
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
(_Jv_JVMTI_Interface): Define DisposeEnvironment method.
From-SVN: r115631
2006-07-20 22:20:09 +00:00
Keith Seitz
94f473ee2c
jvm.h (_Jv_GetJVMTIEnv): Declare.
...
* 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 19:30:30 +00:00