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
--- 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;