diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-08 23:28:56 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-08 23:28:56 +0000 |
commit | 9007522bf97494be0eb119dc7a5daa5207755acf (patch) | |
tree | be919e8f9daa4b9caa6045e085c18aa82e8c4a09 /libjava/boehm.cc | |
parent | 1ca75808120df5bb57e654e0dd4c5c097468b56e (diff) | |
download | gcc-9007522bf97494be0eb119dc7a5daa5207755acf.tar.gz |
In gcc/java:
* class.c (make_class_data): Push initial value for "arrayclass".
* decl.c (init_decl_processing): Add new class field "arrayclass".
In libjava:
* java/lang/Class.h (_Jv_InitClass): Use __builtin_expect.
(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass.
(_Jv_GetArrayClass): New inline function.
(arrayclass): New field.
* prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use
_Jv_GetArrayElementFromElementType.
(_Jv_NewPrimArray): Ditto.
(_Jv_PrimClass constructor): Initialize "depth", "ancestors", and
"idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass.
Set Modifier::ABSTRACT.
* java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass".
(_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void.
Now synchronized. Array classes are now referenced from
elementClass->arrayclass. Don't use _Jv_FindClassInCache.
Set array classes' accessibility flags correctly. Optimize so that
all array classes share the same IDT.
* java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass.
* java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto.
* java/lang/natClass.cc (_getFields): Increment offset. Prevent fields
in superclasses from overwriting classes own fields.
(_Jv_IsAssignableFrom): Check for NULL source idt instead of calling
Modifier::isAbstract().
(null_idt): New static field.
(_Jv_PrepareConstantTimeTables): Optimize case where class implements
no interfaces.
(_Jv_IndexOf): Made inline.
* boehm.cc (_Jv_MarkObj): Mark "arrayclass" field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38808 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index 877d97c9d9c..49b4eab27fd 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -225,6 +225,8 @@ _Jv_MarkObj (void *addr, void *msp, void *msl, void * /* env */) } p = (ptr_t) c->loader; MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c, cBlabel); + p = (ptr_t) c->arrayclass; + MAYBE_MARK (p, mark_stack_ptr, mark_stack_limit, c, cDlabel); #ifdef INTERPRETER if (_Jv_IsInterpretedClass (c)) |