8341909: G1: Add region index to region printer output

Reviewed-by: kbarrett, lkorinth
This commit is contained in:
Thomas Schatzl 2024-10-11 09:12:16 +00:00
parent 7c0dbf8e9c
commit 519544c1d7

View File

@ -35,8 +35,8 @@ class G1HeapRegionPrinter : public AllStatic {
// Print an action event.
static void print(const char* action, G1HeapRegion* hr) {
log_trace(gc, region)("G1HR %s(%s) [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT "]",
action, hr->get_type_str(), p2i(hr->bottom()), p2i(hr->top()), p2i(hr->end()));
log_trace(gc, region)("G1HR %4u %s(%s) [" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT "]",
hr->hrm_index(), action, hr->get_type_str(), p2i(hr->bottom()), p2i(hr->top()), p2i(hr->end()));
}
public: