6927816: Demo crash in heaptracker with Non-Sun JDK due to possible violation of JNI spec

Reviewed-by: ohair, alanb
This commit is contained in:
Steve Poole 2010-12-15 09:15:20 +00:00 committed by Alan Bateman
parent e7d9fa1a92
commit 7baef5d619

View File

@ -340,7 +340,7 @@ tagObjectWithTraceInfo(jvmtiEnv *jvmti, jobject object, TraceInfo *tinfo)
}
/* 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 @@ HEAP_TRACKER_native_newobj(JNIEnv *env, jclass klass, jthread thread, jobject o)
}
/* Java Native Method for newarray */
static void
static void JNICALL
HEAP_TRACKER_native_newarr(JNIEnv *env, jclass klass, jthread thread, jobject a)
{
TraceInfo *tinfo;