From fda5eecd6717eb6e1db56be3e41b65deae6e683e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Casta=C3=B1eda=20Lozano?= Date: Tue, 8 Apr 2025 08:27:00 +0000 Subject: [PATCH] 8353669: IGV: dump OOP maps for MachSafePoint nodes Reviewed-by: chagedorn, thartmann --- src/hotspot/share/opto/idealGraphPrinter.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hotspot/share/opto/idealGraphPrinter.cpp b/src/hotspot/share/opto/idealGraphPrinter.cpp index f6ec1a72506..47cc66c4cf0 100644 --- a/src/hotspot/share/opto/idealGraphPrinter.cpp +++ b/src/hotspot/share/opto/idealGraphPrinter.cpp @@ -667,6 +667,15 @@ void IdealGraphPrinter::visit_node(Node* n, bool edges) { print_prop("lrg", lrg_id); } + if (node->is_MachSafePoint()) { + const OopMap* oopmap = node->as_MachSafePoint()->oop_map(); + if (oopmap != nullptr) { + stringStream oopmap_stream; + oopmap->print_on(&oopmap_stream); + print_prop("oopmap", oopmap_stream.freeze()); + } + } + Compile::current()->_in_dump_cnt--; tail(PROPERTIES_ELEMENT);