heapTracker.c in jdk demo/jvmti folder

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top