X
xwd
Hi,
Why the following function in heapTracker.c is delcared as "static
void" instead of the standard "JNIEXPORT void JNICALL"
static void
HEAP_TRACKER_native_newobj(JNIEnv *env, jclass klass, jthread thread,
jobject o)
{
TraceInfo *tinfo;
if ( gdata->vmDead ) {
return;
}
tinfo = findTraceInfo(gdata->jvmti, thread, TRACE_USER);
tagObjectWithTraceInfo(gdata->jvmti, o, tinfo);
}
I guess the reason for omitting JNIEXPORT is because the method has
already been reigistered to the jvmti environment using the jvmti
function "RegisterNatives" in heapTracker.c, but why "JNICALL" is too
omitted?
thx
eric
Why the following function in heapTracker.c is delcared as "static
void" instead of the standard "JNIEXPORT void JNICALL"
static void
HEAP_TRACKER_native_newobj(JNIEnv *env, jclass klass, jthread thread,
jobject o)
{
TraceInfo *tinfo;
if ( gdata->vmDead ) {
return;
}
tinfo = findTraceInfo(gdata->jvmti, thread, TRACE_USER);
tagObjectWithTraceInfo(gdata->jvmti, o, tinfo);
}
I guess the reason for omitting JNIEXPORT is because the method has
already been reigistered to the jvmti environment using the jvmti
function "RegisterNatives" in heapTracker.c, but why "JNICALL" is too
omitted?
thx
eric