author | rkennke |
Wed, 25 Oct 2017 10:05:17 +0200 | |
changeset 47819 | ee36a8e36561 |
parent 47663 | 3e78d37acdde |
child 49628 | 88478047bc8f |
permissions | -rw-r--r-- |
1 | 1 |
/* |
47663 | 2 |
* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
30764 | 25 |
package sun.jvm.hotspot.gc.shared; |
1 | 26 |
|
27 |
/** Mimics the enums in the VM under CollectedHeap::Name */ |
|
28 |
||
29 |
public class CollectedHeapName { |
|
30 |
private String name; |
|
31 |
||
32 |
private CollectedHeapName(String name) { this.name = name; } |
|
33 |
||
34 |
public static final CollectedHeapName GEN_COLLECTED_HEAP = new CollectedHeapName("GenCollectedHeap"); |
|
47663 | 35 |
public static final CollectedHeapName CMS_HEAP = new CollectedHeapName("CMSHeap"); |
47819
ee36a8e36561
8183542: Factor out serial GC specific code from GenCollectedHeap into its own subclass
rkennke
parents:
47663
diff
changeset
|
36 |
public static final CollectedHeapName SERIAL_HEAP = new CollectedHeapName("SerialHeap"); |
10663 | 37 |
public static final CollectedHeapName G1_COLLECTED_HEAP = new CollectedHeapName("G1CollectedHeap"); |
1 | 38 |
public static final CollectedHeapName PARALLEL_SCAVENGE_HEAP = new CollectedHeapName("ParallelScavengeHeap"); |
39 |
||
40 |
public String toString() { |
|
41 |
return name; |
|
42 |
} |
|
43 |
} |