JVM_ENTRY(static jboolean, UH_FreeUpcallStub0(JNIEnv *env, jobject _unused, jlong addr)) // safe to call 'find_blob' without code cache lock, because stub is always alive
CodeBlob* cb = CodeCache::find_blob((char*)addr); if (cb == nullptr) { returnfalse;
}
UpcallStub::free(cb->as_upcall_stub()); returntrue;
JVM_END
#define CC (char*) /*cast a literal from (const char*)*/ #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f) #define LANG "Ljava/lang/"
// These are the native methods on jdk.internal.foreign.NativeInvoker. static JNINativeMethod UH_methods[] = {
{CC "freeUpcallStub0", CC "(J)Z", FN_PTR(UH_FreeUpcallStub0)}
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.