Skip to content

Commit fda5eec

Browse files
committed
8353669: IGV: dump OOP maps for MachSafePoint nodes
Reviewed-by: chagedorn, thartmann
1 parent ea07e71 commit fda5eec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/hotspot/share/opto/idealGraphPrinter.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,15 @@ void IdealGraphPrinter::visit_node(Node* n, bool edges) {
667667
print_prop("lrg", lrg_id);
668668
}
669669

670+
if (node->is_MachSafePoint()) {
671+
const OopMap* oopmap = node->as_MachSafePoint()->oop_map();
672+
if (oopmap != nullptr) {
673+
stringStream oopmap_stream;
674+
oopmap->print_on(&oopmap_stream);
675+
print_prop("oopmap", oopmap_stream.freeze());
676+
}
677+
}
678+
670679
Compile::current()->_in_dump_cnt--;
671680

672681
tail(PROPERTIES_ELEMENT);

0 commit comments

Comments
 (0)