src/hotspot/share/gc/g1/heapRegionType.cpp
changeset 53116 bb03098c4dde
parent 47216 71c04702a3d5
equal deleted inserted replaced
53115:b5c41404f2d1 53116:bb03098c4dde
     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.
    23  */
    23  */
    24 
    24 
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "gc/g1/g1HeapRegionTraceType.hpp"
    26 #include "gc/g1/g1HeapRegionTraceType.hpp"
    27 #include "gc/g1/heapRegionType.hpp"
    27 #include "gc/g1/heapRegionType.hpp"
       
    28 
       
    29 const HeapRegionType HeapRegionType::Eden      = HeapRegionType(EdenTag);
       
    30 const HeapRegionType HeapRegionType::Survivor  = HeapRegionType(SurvTag);
       
    31 const HeapRegionType HeapRegionType::Old       = HeapRegionType(OldTag);
       
    32 const HeapRegionType HeapRegionType::Humongous = HeapRegionType(StartsHumongousTag);
    28 
    33 
    29 bool HeapRegionType::is_valid(Tag tag) {
    34 bool HeapRegionType::is_valid(Tag tag) {
    30   switch (tag) {
    35   switch (tag) {
    31     case FreeTag:
    36     case FreeTag:
    32     case EdenTag:
    37     case EdenTag: