8232613: Move Object.registerNatives into HotSpot

Reviewed-by: dholmes, adinn, coleenp, lfoltan, mchung
This commit is contained in:
Claes Redestad 2019-10-24 09:57:29 +02:00
parent 68e5c40f6f
commit 574263a884
13 changed files with 312 additions and 136 deletions

View file

@ -39,21 +39,6 @@
#include "java_lang_Object.h"
static JNINativeMethod methods[] = {
{"hashCode", "()I", (void *)&JVM_IHashCode},
{"wait", "(J)V", (void *)&JVM_MonitorWait},
{"notify", "()V", (void *)&JVM_MonitorNotify},
{"notifyAll", "()V", (void *)&JVM_MonitorNotifyAll},
{"clone", "()Ljava/lang/Object;", (void *)&JVM_Clone},
};
JNIEXPORT void JNICALL
Java_java_lang_Object_registerNatives(JNIEnv *env, jclass cls)
{
(*env)->RegisterNatives(env, cls,
methods, sizeof(methods)/sizeof(methods[0]));
}
JNIEXPORT jclass JNICALL
Java_java_lang_Object_getClass(JNIEnv *env, jobject this)
{