equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2017, 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. |
35 Eden, |
35 Eden, |
36 Survivor, |
36 Survivor, |
37 StartsHumongous, |
37 StartsHumongous, |
38 ContinuesHumongous, |
38 ContinuesHumongous, |
39 Old, |
39 Old, |
40 Archive, |
40 Pinned, |
|
41 OpenArchive, |
|
42 ClosedArchive, |
41 G1HeapRegionTypeEndSentinel |
43 G1HeapRegionTypeEndSentinel |
42 }; |
44 }; |
43 |
45 |
44 static const char* to_string(G1HeapRegionTraceType::Type type) { |
46 static const char* to_string(G1HeapRegionTraceType::Type type) { |
45 switch (type) { |
47 switch (type) { |
47 case Eden: return "Eden"; |
49 case Eden: return "Eden"; |
48 case Survivor: return "Survivor"; |
50 case Survivor: return "Survivor"; |
49 case StartsHumongous: return "Starts Humongous"; |
51 case StartsHumongous: return "Starts Humongous"; |
50 case ContinuesHumongous: return "Continues Humongous"; |
52 case ContinuesHumongous: return "Continues Humongous"; |
51 case Old: return "Old"; |
53 case Old: return "Old"; |
52 case Archive: return "Archive"; |
54 case Pinned: return "Pinned"; |
|
55 case OpenArchive: return "OpenArchive"; |
|
56 case ClosedArchive: return "ClosedArchive"; |
53 default: ShouldNotReachHere(); return NULL; |
57 default: ShouldNotReachHere(); return NULL; |
54 } |
58 } |
55 } |
59 } |
56 }; |
60 }; |
57 |
61 |