arrayKlassKlass.hpp revision 1155
6443N/A/*
6443N/A * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
6443N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6443N/A *
6443N/A * This code is free software; you can redistribute it and/or modify it
6443N/A * under the terms of the GNU General Public License version 2 only, as
6443N/A * published by the Free Software Foundation.
6443N/A *
6443N/A * This code is distributed in the hope that it will be useful, but WITHOUT
6443N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6443N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
6443N/A * version 2 for more details (a copy is included in the LICENSE file that
6443N/A * accompanied this code).
6443N/A *
6443N/A * You should have received a copy of the GNU General Public License version
6443N/A * 2 along with this work; if not, write to the Free Software Foundation,
6443N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6443N/A *
6443N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
6443N/A * CA 95054 USA or visit www.sun.com if you need additional information or
6443N/A * have any questions.
6443N/A *
7086N/A */
6443N/A
6443N/A// arrayKlassKlass is the abstract baseclass for all array class classes
6443N/A
6443N/Aclass arrayKlassKlass : public klassKlass {
6443N/A public:
7086N/A // Testing
7086N/A bool oop_is_arrayKlass() const { return true; }
7086N/A
6443N/A // Allocation
6443N/A DEFINE_ALLOCATE_PERMANENT(arrayKlassKlass);
6443N/A static klassOop create_klass(TRAPS);
6443N/A
6443N/A // Casting from klassOop
6443N/A static arrayKlassKlass* cast(klassOop k) {
6443N/A assert(k->klass_part()->oop_is_klass(), "cast to arrayKlassKlass");
6443N/A return (arrayKlassKlass*) k->klass_part();
6443N/A }
6443N/A
6443N/A // Sizing
6443N/A static int header_size() { return oopDesc::header_size() + sizeof(arrayKlassKlass)/HeapWordSize; }
6443N/A int object_size() const { return align_object_size(header_size()); }
6443N/A
6443N/A // Garbage collection
6443N/A void oop_follow_contents(oop obj);
6443N/A int oop_adjust_pointers(oop obj);
6443N/A bool oop_is_parsable(oop obj) const;
6443N/A
6443N/A // Parallel Scavenge and Parallel Old
6443N/A PARALLEL_GC_DECLS
6443N/A
6443N/A // Iterators
6443N/A int oop_oop_iterate(oop obj, OopClosure* blk);
6443N/A int oop_oop_iterate_m(oop obj, OopClosure* blk, MemRegion mr);
6443N/A
6443N/A public:
6443N/A // Printing
6443N/A void oop_print_value_on(oop obj, outputStream* st);
6443N/A#ifndef PRODUCT
6443N/A void oop_print_on(oop obj, outputStream* st);
6443N/A#endif //PRODUCT
6443N/A
6443N/A // Verification
6443N/A const char* internal_name() const;
6443N/A void oop_verify_on(oop obj, outputStream* st);
6443N/A};
6443N/A