* src/vmcore/class.c (class_define): Added protection domain to
authortwisti <none@none>
Tue, 21 Aug 2007 15:37:47 +0000 (15:37 +0000)
committertwisti <none@none>
Tue, 21 Aug 2007 15:37:47 +0000 (15:37 +0000)
commitfe591db3dfe5033371ca2eb768e05f48502b38e4
tree3edcc51ee38550890c4cd45995fee210872178ab
parent5f22275b6363f7b16e6a37aa5852e05e852d716f
* src/vmcore/class.c (class_define): Added protection domain to
signature.
(class_resolve_superclass): Some changes (not yet correct).
(class_issubclass): Added assert to see if super is resolved.

* src/vmcore/class.h (classinfo) [ENABLE_JAVASE &&
WITH_CLASSPATH_SUN]: Added protectiondomain.

* src/native/jni.c (_Jv_JNI_DefineClass): Pass protection domain to
class_define.
* src/native/vm/java_lang_ClassLoader.c (defineClass): Likewise.

* src/native/vm/sun_misc_Unsafe.c (unistd.h): Added.
(vm/builtin.h): Likewise.
(putShort__Ljava_lang_Object_2JS): Implemented.
(putFloat__Ljava_lang_Object_2JF): Likewise
(putInt__JI): Likewise
(pageSize): Likewise
(allocateInstance): Likewise
(getLongVolatile): Likewise
(defineClass__Ljava_lang_String_2_3BIILjava_lang_ClassLoader_2Ljava_security_ProtectionDomain_2):
Pass protection domain to class_define.

* src/native/vm/sun/jvm.c (threads/threads-common.h): Added.
(vm/signallocal.h): Likewise.
(PRINTJVMWARNINGS): New macro (not enabled yet).
(JVM_MaxMemory): Implemented.
(JVM_EnableCompiler): Likewise.
(JVM_DisableCompiler): Likewise.
(JVM_ResolveClass): Likewise.
(JVM_GetClassSignature): Likewise.
(JVM_Yield): Likewise.
(JVM_GetThreadStateValues): Likewise.
(JVM_GetThreadStateNames): Likewise.
(JVM_RegisterSignal): Likewise.
(JVM_FindSignal): Likewise.
(JVM_DefineClassWithSource): Pass protection domain to class_define.
(JVM_DesiredAssertionStatus): Return false for now.
(JVM_Available): Only ioctl is a correct implementation.
src/native/jni.c
src/native/vm/java_lang_ClassLoader.c
src/native/vm/sun/jvm.c
src/native/vm/sun_misc_Unsafe.c
src/vmcore/class.c
src/vmcore/class.h