[kaffe] CVS kaffe (robilad): small fix for building with jvmpi disabled
Kaffe CVS
cvs-commits at kaffe.org
Sun Apr 16 16:58:28 PDT 2006
PatchSet 7227
Date: 2006/04/16 23:49:13
Author: robilad
Branch: HEAD
Tag: (none)
Log:
small fix for building with jvmpi disabled
2006-04-16 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/jni/jni-base.c (detectAllActiveThreads):
Only define when JVMPI support is enabled.
Members:
ChangeLog:1.4733->1.4734
kaffe/kaffevm/jni/jni-base.c:1.25->1.26
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4733 kaffe/ChangeLog:1.4734
--- kaffe/ChangeLog:1.4733 Sun Apr 16 18:44:10 2006
+++ kaffe/ChangeLog Sun Apr 16 23:49:13 2006
@@ -1,5 +1,10 @@
2006-04-16 Dalibor Topic <robilad at kaffe.org>
+ * kaffe/kaffevm/jni/jni-base.c (detectAllActiveThreads):
+ Only define when JVMPI support is enabled.
+
+2006-04-16 Dalibor Topic <robilad at kaffe.org>
+
* kaffe/kaffevm/systems/unix-pthreads/thread-internal.h:
Conditionally define (__USE_GNU) if it has not been defined
to fix a compiler warning.
Index: kaffe/kaffe/kaffevm/jni/jni-base.c
diff -u kaffe/kaffe/kaffevm/jni/jni-base.c:1.25 kaffe/kaffe/kaffevm/jni/jni-base.c:1.26
--- kaffe/kaffe/kaffevm/jni/jni-base.c:1.25 Sun Apr 16 07:20:15 2006
+++ kaffe/kaffe/kaffevm/jni/jni-base.c Sun Apr 16 23:49:17 2006
@@ -267,6 +267,8 @@
return 1;
}
+#if defined(ENABLE_JVMPI)
+
static void
detectAllActiveThreads(jthread_t jtid, void *param UNUSED)
{
@@ -279,6 +281,8 @@
jvmpiPostEvent(&ev);
jvmpiCleanupThreadStart(&ev);
}
+
+#endif /* defined(ENABLE_JVMPI) */
jint
JNI_CreateJavaVM(JavaVM** vm, void** penv, void* args)
More information about the kaffe
mailing list