changeset 3318:0ef137ae6f3b

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 a72e7147816f
children e6ed7c95d94f
files src/share/demo/jvmti/heapTracker/heapTracker.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/demo/jvmti/heapTracker/heapTracker.c	Tue Dec 14 16:08:43 2010 -0500
+++ b/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;