Skip to content

Commit 519544c

Browse files
author
Thomas Schatzl
committedOct 11, 2024
8341909: G1: Add region index to region printer output
Reviewed-by: kbarrett, lkorinth
1 parent 7c0dbf8 commit 519544c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/gc/g1/g1HeapRegionPrinter.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class G1HeapRegionPrinter : public AllStatic {
3535

3636
// Print an action event.
3737
static void print(const char* action, G1HeapRegion* hr) {
38-
log_trace(gc, region)("G1HR %s(%s) [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT "]",
39-
action, hr->get_type_str(), p2i(hr->bottom()), p2i(hr->top()), p2i(hr->end()));
38+
log_trace(gc, region)("G1HR %4u %s(%s) [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT "]",
39+
hr->hrm_index(), action, hr->get_type_str(), p2i(hr->bottom()), p2i(hr->top()), p2i(hr->end()));
4040
}
4141

4242
public:

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Oct 11, 2024

@openjdk-notifier[bot]
Please sign in to comment.