exporting patch: # HG changeset patch # User Steve Poole # Date 1292268601 0 # Node ID 4d4605b80b3c748a8dafd6351d51209a7eeb73b1 # Parent ac311eb325bfc763698219252bf3cee9e091f3af 6927816 : Missing JNICALL markers on heapTracker demo native code can cause runtime failures diff --git a/src/share/demo/jvmti/heapTracker/heapTracker.c b/src/share/demo/jvmti/heapTracker/heapTracker.c --- a/src/share/demo/jvmti/heapTracker/heapTracker.c +++ b/src/share/demo/jvmti/heapTracker/heapTracker.c @@ -340,7 +340,7 @@ } /* Java Native Method for Object. */ -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;