java.lang.Object.
Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
Licensed under the Apache License, Version 2.0 ("the License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
Definition in file jlObject.c.
#include "arch.h"
#include "jvmcfg.h"
#include "classfile.h"
#include "jvm.h"
#include "linkage.h"
#include "jvmclass.h"
Go to the source code of this file.
Native implementation of object instance functions. | |||||||||||||
The object hash of this object is always passed as the first parameter. | |||||||||||||
jvm_object_hash | jlObject_getClass (jvm_object_hash objhashthis) | ||||||||||||
JNI hook to getClass(). | |||||||||||||
jvm_object_hash | jlObject_hashCode (jvm_object_hash objhashthis) | ||||||||||||
JNI hook to hashCode(). | |||||||||||||
Native implementations of java.lang.Object.wait() functions. | |||||||||||||
Implementation of related functions java.lang.Object.wait() and java.lang.Object.wait(jlong) .If this thread is not THREAD_STATUS_INUSE, result is jfalse. Results are undefined if thread has the SLEEP, JOIN4EVER, JOINTIMED, or INTERRUPTIBLEIO status or if thread has been NOTIFIED or INTERRUPTED. This will only succeed if thread is in RUNNING state. It will fail of thread did not hold the object's monitor lock so it could release it here.
| |||||||||||||
jvoid | jlObject_wait4ever (jvm_object_hash objhashthis) | ||||||||||||
JNI hook to wait4ever(). | |||||||||||||
jvoid | jlObject_waittimed (jvm_object_hash objhashthis, jlong sleeptime) | ||||||||||||
JNI hook to waittimed(). | |||||||||||||
Functions | |||||||||||||
static void | jlObject_c_dummy (void) | ||||||||||||
Variables | |||||||||||||
static char * | jlObject_c_copyright = "\0" "$URL: https://svn.apache.org/path/name/jlObject.c $ $Id: jlObject.c 0 09/28/2005 dlydick $" " " "Copyright 2005 The Apache Software Foundation or its licensors, as applicable." |
|
Definition at line 49 of file jlObject.c. |
|
JNI hook to getClass().
Definition at line 102 of file jlObject.c. References CLASS, and OBJECT_CLASS_LINKAGE. Referenced by Java_java_lang_Object_getClass(), and native_run_local_return_jobject(). |
|
JNI hook to hashCode().
Definition at line 121 of file jlObject.c. Referenced by Java_java_lang_Object_hashCode(), and native_run_local_return_jint(). |
|
JNI hook to wait4ever(). < This slot contains an object
< Object is a
< Object is a
< Object is a < This slot contains an object
< Object is a < This slot contains an object
< Object is a
< Object is a < This slot contains an object
< Object is a < This slot contains an object
< Object is a < Access structures of the thread now running in the JVM. < thread is unconditionally waiting < Access structures of the thread now running in the JVM.
< thread threw a Definition at line 174 of file jlObject.c. References CURRENT_THREAD, JVMCLASS_JAVA_LANG_ILLEGALMONITORSTATEEXCEPTION, OBJECT, OBJECT_CLASS_LINKAGE, OBJECT_STATUS_MLOCK, OBJECT_THREAD_LINKAGE, objectutil_release(), rtrue, THREAD, THREAD_STATUS_THREW_EXCEPTION, THREAD_STATUS_WAIT4EVER, thread_throw_exception(), VERIFY_OBJECT_THREAD_LINKAGE, and VERIFY_THREAD_LINKAGE. Referenced by Java_java_lang_Object_wait(), and native_run_local_return_jvoid(). |
|
JNI hook to waittimed(). < This slot contains an object
< Object is a
< Object is a
< Object is a < This slot contains an object
< Object is a < This slot contains an object
< Object is a
< Object is a < This slot contains an object
< Object is a < This slot contains an object
< Object is a < Access structures of the thread now running in the JVM. < thread has joined another, but is waiting for a finite time < Access structures of the thread now running in the JVM.
< thread threw a Definition at line 239 of file jlObject.c. References jvm_object_hash_null, OBJECT_THREAD_LINKAGE, rtrue, VERIFY_OBJECT_THREAD_LINKAGE, and VERIFY_THREAD_LINKAGE. Referenced by Java_java_lang_Object_wait__J(), and native_run_local_return_jvoid(). |
|
Definition at line 49 of file jlObject.c. |