diff options
Diffstat (limited to 'libjava/java/lang/natThread.cc')
-rw-r--r-- | libjava/java/lang/natThread.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/java/lang/natThread.cc b/libjava/java/lang/natThread.cc index 42f18c4eb3a..d6abff13f54 100644 --- a/libjava/java/lang/natThread.cc +++ b/libjava/java/lang/natThread.cc @@ -27,8 +27,11 @@ details. */ #include <java/lang/NullPointerException.h> #include <jni.h> + +#ifdef INTERPRETER #include <jvmti.h> #include "jvmti-int.h" +#endif #ifdef ENABLE_JVMPI #include <jvmpi.h> @@ -217,8 +220,10 @@ java::lang::Thread::finish_ () nt->park_helper.deactivate (); group->removeThread (this); +#ifdef INTERPRETER if (JVMTI_REQUESTED_EVENT (ThreadEnd)) _Jv_JVMTI_PostEvent (JVMTI_EVENT_THREAD_END, this, nt->jni_env); +#endif #ifdef ENABLE_JVMPI if (_Jv_JVMPI_Notify_THREAD_END) @@ -258,11 +263,13 @@ java::lang::Thread::finish_ () static void _Jv_NotifyThreadStart (java::lang::Thread* thread) { +#ifdef INTERPRETER if (JVMTI_REQUESTED_EVENT (ThreadStart)) { natThread *nt = reinterpret_cast<natThread *> (thread->data); _Jv_JVMTI_PostEvent (JVMTI_EVENT_THREAD_START, thread, nt->jni_env); } +#endif #ifdef ENABLE_JVMPI if (_Jv_JVMPI_Notify_THREAD_START) |