src/share/vm/memory/heap.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8068352.02 Sdiff src/share/vm/memory

src/share/vm/memory/heap.hpp

Print this page




  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_MEMORY_HEAP_HPP
  26 #define SHARE_VM_MEMORY_HEAP_HPP
  27 
  28 #include "code/codeBlob.hpp"
  29 #include "memory/allocation.hpp"
  30 #include "runtime/virtualspace.hpp"
  31 
  32 // Blocks
  33 
  34 class HeapBlock VALUE_OBJ_CLASS_SPEC {
  35   friend class VMStructs;
  36 
  37  public:
  38   struct Header {
  39     size_t  _length;                             // the length in segments
  40     bool    _used;                               // Used bit
  41   };
  42 
  43  protected:
  44   union {
  45     Header _header;
  46     int64_t _padding[ (sizeof(Header) + sizeof(int64_t)-1) / sizeof(int64_t) ];
  47                         // pad to 0 mod 8
  48   };
  49 
  50  public:




  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_MEMORY_HEAP_HPP
  26 #define SHARE_VM_MEMORY_HEAP_HPP
  27 
  28 #include "code/codeBlob.hpp"
  29 #include "memory/allocation.hpp"
  30 #include "memory/virtualspace.hpp"
  31 
  32 // Blocks
  33 
  34 class HeapBlock VALUE_OBJ_CLASS_SPEC {
  35   friend class VMStructs;
  36 
  37  public:
  38   struct Header {
  39     size_t  _length;                             // the length in segments
  40     bool    _used;                               // Used bit
  41   };
  42 
  43  protected:
  44   union {
  45     Header _header;
  46     int64_t _padding[ (sizeof(Header) + sizeof(int64_t)-1) / sizeof(int64_t) ];
  47                         // pad to 0 mod 8
  48   };
  49 
  50  public:


src/share/vm/memory/heap.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File