src/hotspot/share/gc/g1/heapRegionType.hpp
changeset 49392 2956d0ece7a9
parent 47602 d4380ee1cbe9
child 51494 1906adbef2dc
equal deleted inserted replaced
49391:02076019c25d 49392:2956d0ece7a9
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 
    24 
    25 #ifndef SHARE_VM_GC_G1_HEAPREGIONTYPE_HPP
    25 #ifndef SHARE_VM_GC_G1_HEAPREGIONTYPE_HPP
    26 #define SHARE_VM_GC_G1_HEAPREGIONTYPE_HPP
    26 #define SHARE_VM_GC_G1_HEAPREGIONTYPE_HPP
    27 
    27 
    28 #include "gc/g1/g1HeapRegionTraceType.hpp"
    28 #include "gc/g1/g1HeapRegionTraceType.hpp"
    29 #include "memory/allocation.hpp"
       
    30 
    29 
    31 #define hrt_assert_is_valid(tag) \
    30 #define hrt_assert_is_valid(tag) \
    32   assert(is_valid((tag)), "invalid HR type: %u", (uint) (tag))
    31   assert(is_valid((tag)), "invalid HR type: %u", (uint) (tag))
    33 
    32 
    34 class HeapRegionType VALUE_OBJ_CLASS_SPEC {
    33 class HeapRegionType {
    35 friend class VMStructs;
    34 friend class VMStructs;
    36 
    35 
    37 private:
    36 private:
    38   // We encode the value of the heap region type so the generation can be
    37   // We encode the value of the heap region type so the generation can be
    39   // determined quickly. The tag is split into two parts:
    38   // determined quickly. The tag is split into two parts: