6927816: Demo crash in heaptracker with Non-Sun JDK due to possible violation of JNI spec
authoralanb
Wed, 15 Dec 2010 09:15:20 +0000
changeset 7798 be6c7160f8fc
parent 7797 5869cf1fbd3e
child 7799 8cd7dc04cd85
6927816: Demo crash in heaptracker with Non-Sun JDK due to possible violation of JNI spec Reviewed-by: ohair, alanb Contributed-by: spoole@uk.ibm.com
jdk/src/share/demo/jvmti/heapTracker/heapTracker.c
--- a/jdk/src/share/demo/jvmti/heapTracker/heapTracker.c	Tue Dec 14 16:08:43 2010 -0500
+++ b/jdk/src/share/demo/jvmti/heapTracker/heapTracker.c	Wed Dec 15 09:15:20 2010 +0000
@@ -340,7 +340,7 @@
 }
 
 /* Java Native Method for Object.<init> */
-static void
+static void JNICALL
 HEAP_TRACKER_native_newobj(JNIEnv *env, jclass klass, jthread thread, jobject o)
 {
     TraceInfo *tinfo;
@@ -353,7 +353,7 @@
 }
 
 /* Java Native Method for newarray */
-static void
+static void JNICALL
 HEAP_TRACKER_native_newarr(JNIEnv *env, jclass klass, jthread thread, jobject a)
 {
     TraceInfo *tinfo;