Beispiel #1
0
/*
 * Class:     sun_instrument_InstrumentationImpl
 * Method:    getAllLoadedClasses0
 * Signature: ()[Ljava/lang/Class;
 */
JNIEXPORT jobjectArray JNICALL Java_sun_instrument_InstrumentationImpl_getAllLoadedClasses0
  (JNIEnv * jnienv, jobject implThis) {
    jobjectArray    result = NULL;
    JPLISAgent *    agent = getJPLISAgentFromJavaImpl(jnienv, implThis);
    if ( agent == NULL ) {
        createAndThrowInternalError(jnienv);
    }
    else {
        result = getAllLoadedClasses(jnienv, agent);
    }
    return result;
}
Beispiel #2
0
/*
 * Class:     sun_instrument_InstrumentationImpl
 * Method:    getAllLoadedClasses0
 * Signature: ()[Ljava/lang/Class;
 */
JNIEXPORT jobjectArray JNICALL Java_sun_instrument_InstrumentationImpl_getAllLoadedClasses0
  (JNIEnv * jnienv, jobject implThis, jlong agent) {
    return getAllLoadedClasses(jnienv, (JPLISAgent*)agent);
}