src/share/vm/oops/oopsHierarchy.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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 // OBJECT hierarchy
  26 // This hierarchy is a representation hierarchy, i.e. if A is a superclass
  27 // of B, A's representation is a prefix of B's representation.
  28 
  29 typedef juint narrowOop; // Offset instead of address for an oop within a java object
  30 typedef class klassOopDesc* wideKlassOop; // to keep SA happy and unhandled oop
  31                                           // detector happy.
  32 typedef void* OopOrNarrowOopStar;
  33 
  34 #ifndef CHECK_UNHANDLED_OOPS
  35 
  36 typedef class oopDesc*                            oop;
  37 typedef class   instanceOopDesc*            instanceOop;
  38 typedef class   methodOopDesc*                    methodOop;
  39 typedef class   constMethodOopDesc*            constMethodOop;
  40 typedef class   methodDataOopDesc*            methodDataOop;
  41 typedef class   arrayOopDesc*                    arrayOop;
  42 typedef class     objArrayOopDesc*            objArrayOop;
  43 typedef class     typeArrayOopDesc*            typeArrayOop;
  44 typedef class   constantPoolOopDesc*            constantPoolOop;


 169 // The klass hierarchy is separate from the oop hierarchy.
 170 
 171 class Klass;
 172 class   instanceKlass;
 173 class     instanceRefKlass;
 174 class   methodKlass;
 175 class   constMethodKlass;
 176 class   methodDataKlass;
 177 class   klassKlass;
 178 class     instanceKlassKlass;
 179 class     arrayKlassKlass;
 180 class       objArrayKlassKlass;
 181 class       typeArrayKlassKlass;
 182 class   arrayKlass;
 183 class     objArrayKlass;
 184 class     typeArrayKlass;
 185 class   constantPoolKlass;
 186 class   constantPoolCacheKlass;
 187 class   symbolKlass;
 188 class   compiledICHolderKlass;


   1 /*
   2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   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_OOPSHIERARCHY_HPP
  26 #define SHARE_VM_OOPS_OOPSHIERARCHY_HPP
  27 
  28 #include "runtime/globals.hpp"
  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 // OBJECT hierarchy
  32 // This hierarchy is a representation hierarchy, i.e. if A is a superclass
  33 // of B, A's representation is a prefix of B's representation.
  34 
  35 typedef juint narrowOop; // Offset instead of address for an oop within a java object
  36 typedef class klassOopDesc* wideKlassOop; // to keep SA happy and unhandled oop
  37                                           // detector happy.
  38 typedef void* OopOrNarrowOopStar;
  39 
  40 #ifndef CHECK_UNHANDLED_OOPS
  41 
  42 typedef class oopDesc*                            oop;
  43 typedef class   instanceOopDesc*            instanceOop;
  44 typedef class   methodOopDesc*                    methodOop;
  45 typedef class   constMethodOopDesc*            constMethodOop;
  46 typedef class   methodDataOopDesc*            methodDataOop;
  47 typedef class   arrayOopDesc*                    arrayOop;
  48 typedef class     objArrayOopDesc*            objArrayOop;
  49 typedef class     typeArrayOopDesc*            typeArrayOop;
  50 typedef class   constantPoolOopDesc*            constantPoolOop;


 175 // The klass hierarchy is separate from the oop hierarchy.
 176 
 177 class Klass;
 178 class   instanceKlass;
 179 class     instanceRefKlass;
 180 class   methodKlass;
 181 class   constMethodKlass;
 182 class   methodDataKlass;
 183 class   klassKlass;
 184 class     instanceKlassKlass;
 185 class     arrayKlassKlass;
 186 class       objArrayKlassKlass;
 187 class       typeArrayKlassKlass;
 188 class   arrayKlass;
 189 class     objArrayKlass;
 190 class     typeArrayKlass;
 191 class   constantPoolKlass;
 192 class   constantPoolCacheKlass;
 193 class   symbolKlass;
 194 class   compiledICHolderKlass;
 195 
 196 #endif // SHARE_VM_OOPS_OOPSHIERARCHY_HPP