changeset 7798:be6c7160f8fc

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
author alanb
date Wed, 15 Dec 2010 09:15:20 +0000
parents 5869cf1fbd3e
children 8cd7dc04cd85
files jdk/src/share/demo/jvmti/heapTracker/heapTracker.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;