mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8232613: Move Object.registerNatives into HotSpot
Reviewed-by: dholmes, adinn, coleenp, lfoltan, mchung
This commit is contained in:
parent
68e5c40f6f
commit
574263a884
13 changed files with 312 additions and 136 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue