src/share/vm/gc_implementation/g1/g1HRPrinter.cpp

changeset 9327
f96fcd9e1e1b
parent 6680
78bbf4d43a14
child 9448
73d689add964
equal deleted inserted replaced
9324:efdbe9b904ad 9327:f96fcd9e1e1b
82 const char* type_str = region_type_name(type); 82 const char* type_str = region_type_name(type);
83 HeapWord* bottom = hr->bottom(); 83 HeapWord* bottom = hr->bottom();
84 84
85 if (type_str != NULL) { 85 if (type_str != NULL) {
86 if (top != NULL) { 86 if (top != NULL) {
87 gclog_or_tty->print_cr(G1HR_PREFIX" %s(%s) "PTR_FORMAT" "PTR_FORMAT, 87 gclog_or_tty->print_cr(G1HR_PREFIX " %s(%s) " PTR_FORMAT " " PTR_FORMAT,
88 action_str, type_str, bottom, top); 88 action_str, type_str, bottom, top);
89 } else { 89 } else {
90 gclog_or_tty->print_cr(G1HR_PREFIX" %s(%s) "PTR_FORMAT, 90 gclog_or_tty->print_cr(G1HR_PREFIX " %s(%s) " PTR_FORMAT,
91 action_str, type_str, bottom); 91 action_str, type_str, bottom);
92 } 92 }
93 } else { 93 } else {
94 if (top != NULL) { 94 if (top != NULL) {
95 gclog_or_tty->print_cr(G1HR_PREFIX" %s "PTR_FORMAT" "PTR_FORMAT, 95 gclog_or_tty->print_cr(G1HR_PREFIX " %s " PTR_FORMAT " " PTR_FORMAT,
96 action_str, bottom, top); 96 action_str, bottom, top);
97 } else { 97 } else {
98 gclog_or_tty->print_cr(G1HR_PREFIX" %s "PTR_FORMAT, 98 gclog_or_tty->print_cr(G1HR_PREFIX " %s " PTR_FORMAT,
99 action_str, bottom); 99 action_str, bottom);
100 } 100 }
101 } 101 }
102 } 102 }
103 103
104 void G1HRPrinter::print(ActionType action, HeapWord* bottom, HeapWord* end) { 104 void G1HRPrinter::print(ActionType action, HeapWord* bottom, HeapWord* end) {
105 const char* action_str = action_name(action); 105 const char* action_str = action_name(action);
106 106
107 gclog_or_tty->print_cr(G1HR_PREFIX" %s ["PTR_FORMAT","PTR_FORMAT"]", 107 gclog_or_tty->print_cr(G1HR_PREFIX " %s [" PTR_FORMAT "," PTR_FORMAT "]",
108 action_str, bottom, end); 108 action_str, bottom, end);
109 } 109 }
110 110
111 void G1HRPrinter::print(PhaseType phase, size_t phase_num) { 111 void G1HRPrinter::print(PhaseType phase, size_t phase_num) {
112 const char* phase_str = phase_name(phase); 112 const char* phase_str = phase_name(phase);
113 gclog_or_tty->print_cr(G1HR_PREFIX" #%s "SIZE_FORMAT, phase_str, phase_num); 113 gclog_or_tty->print_cr(G1HR_PREFIX " #%s " SIZE_FORMAT, phase_str, phase_num);
114 } 114 }

mercurial