aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/classpath
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2007-01-29 17:43:34 +0000
committerKeith Seitz <kseitz@gcc.gnu.org>2007-01-29 17:43:34 +0000
commit68254f23e8c232a4da9b6f0e3fdabe1800a4b014 (patch)
tree186cf38e0affab2bbcb19802d5501e67e12a76eb /libjava/gnu/classpath
parent48e540b04f64910218cc702d0e05760e2eb1ef44 (diff)
downloadgcc-68254f23e8c232a4da9b6f0e3fdabe1800a4b014.zip
gcc-68254f23e8c232a4da9b6f0e3fdabe1800a4b014.tar.gz
gcc-68254f23e8c232a4da9b6f0e3fdabe1800a4b014.tar.bz2
jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED): Define.
* 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
Diffstat (limited to 'libjava/gnu/classpath')
-rw-r--r--libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
index 1e08066..389b6cc 100644
--- a/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
+++ b/libjava/gnu/classpath/jdwp/natVMVirtualMachine.cc
@@ -426,7 +426,6 @@ jdwpClassPrepareCB (jvmtiEnv *env, MAYBE_UNUSED JNIEnv *jni_env,
{
using namespace gnu::classpath::jdwp;
- Thread *t = reinterpret_cast<Thread *> (thread);
jint flags = 0;
jvmtiError err = env->GetClassStatus (klass, &flags);
if (err != JVMTI_ERROR_NONE)
@@ -444,7 +443,7 @@ jdwpClassPrepareCB (jvmtiEnv *env, MAYBE_UNUSED JNIEnv *jni_env,
status |= ClassPrepareEvent::STATUS_INITIALIZED;
event::ClassPrepareEvent *event
- = new event::ClassPrepareEvent (t, klass, status);
+ = new event::ClassPrepareEvent (thread, klass, status);
Jdwp::notify (event);
}
@@ -454,8 +453,7 @@ jdwpThreadEndCB (MAYBE_UNUSED jvmtiEnv *env, MAYBE_UNUSED JNIEnv *jni_env,
{
using namespace gnu::classpath::jdwp::event;
- Thread *t = reinterpret_cast<Thread *> (thread);
- ThreadEndEvent *e = new ThreadEndEvent (t);
+ ThreadEndEvent *e = new ThreadEndEvent (thread);
gnu::classpath::jdwp::Jdwp::notify (e);
}
@@ -465,8 +463,7 @@ jdwpThreadStartCB (MAYBE_UNUSED jvmtiEnv *env, MAYBE_UNUSED JNIEnv *jni_env,
{
using namespace gnu::classpath::jdwp::event;
- Thread *t = reinterpret_cast<Thread *> (thread);
- ThreadStartEvent *e = new ThreadStartEvent (t);
+ ThreadStartEvent *e = new ThreadStartEvent (thread);
gnu::classpath::jdwp::Jdwp::notify (e);
}
@@ -497,6 +494,5 @@ jdwpVMInitCB (MAYBE_UNUSED jvmtiEnv *env, MAYBE_UNUSED JNIEnv *jni_env,
// Send JDWP VMInit
using namespace gnu::classpath::jdwp::event;
- Thread *init_thread = reinterpret_cast<Thread *> (thread);
- gnu::classpath::jdwp::Jdwp::notify (new VmInitEvent (init_thread));
+ gnu::classpath::jdwp::Jdwp::notify (new VmInitEvent (thread));
}