8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_OOPS_KLASS_HPP
26 #define SHARE_VM_OOPS_KLASS_HPP
27
28 #include "memory/iterator.hpp"
29 #include "memory/memRegion.hpp"
30 #include "memory/specialized_oop_closures.hpp"
31 #include "oops/metadata.hpp"
32 #include "oops/oop.hpp"
33 #include "trace/traceMacros.hpp"
34 #include "utilities/accessFlags.hpp"
35 #include "utilities/macros.hpp"
36
37 //
38 // A Klass provides:
39 // 1: language level class object (method dictionary etc.)
40 // 2: provide vm dispatch behavior for the object
41 // Both functions are combined into one C++ class.
42
43 // One reason for the oop/klass dichotomy in the implementation is
44 // that we don't want a C++ vtbl pointer in every object. Thus,
45 // normal oops don't have any virtual functions. Instead, they
46 // forward all "virtual" functions to their klass, which does have
47 // a vtbl and does the C++ dispatch depending on the object's
48 // actual type. (See oop.inline.hpp for some of the forwarding code.)
49 // ALL FUNCTIONS IMPLEMENTING THIS DISPATCH ARE PREFIXED WITH "oop_"!
50
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_OOPS_KLASS_HPP
26 #define SHARE_VM_OOPS_KLASS_HPP
27
28 #include "gc/shared/specialized_oop_closures.hpp"
29 #include "memory/iterator.hpp"
30 #include "memory/memRegion.hpp"
31 #include "oops/metadata.hpp"
32 #include "oops/oop.hpp"
33 #include "trace/traceMacros.hpp"
34 #include "utilities/accessFlags.hpp"
35 #include "utilities/macros.hpp"
36
37 //
38 // A Klass provides:
39 // 1: language level class object (method dictionary etc.)
40 // 2: provide vm dispatch behavior for the object
41 // Both functions are combined into one C++ class.
42
43 // One reason for the oop/klass dichotomy in the implementation is
44 // that we don't want a C++ vtbl pointer in every object. Thus,
45 // normal oops don't have any virtual functions. Instead, they
46 // forward all "virtual" functions to their klass, which does have
47 // a vtbl and does the C++ dispatch depending on the object's
48 // actual type. (See oop.inline.hpp for some of the forwarding code.)
49 // ALL FUNCTIONS IMPLEMENTING THIS DISPATCH ARE PREFIXED WITH "oop_"!
50
|