Skip to content

Commit f2f8136

Browse files
jtfuller111TobiHartmann
authored andcommitted
8265443: IGV: disambiguate groups by emiting additional properties
Reviewed-by: thartmann
1 parent 59c9f75 commit f2f8136

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/hotspot/share/opto/idealGraphPrinter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const char *IdealGraphPrinter::NODE_ELEMENT = "node";
4848
const char *IdealGraphPrinter::NODES_ELEMENT = "nodes";
4949
const char *IdealGraphPrinter::REMOVE_EDGE_ELEMENT = "removeEdge";
5050
const char *IdealGraphPrinter::REMOVE_NODE_ELEMENT = "removeNode";
51+
const char *IdealGraphPrinter::COMPILATION_ID_PROPERTY = "compilationId";
52+
const char *IdealGraphPrinter::COMPILATION_OSR_PROPERTY = "osr";
5153
const char *IdealGraphPrinter::METHOD_NAME_PROPERTY = "name";
5254
const char *IdealGraphPrinter::METHOD_IS_PUBLIC_PROPERTY = "public";
5355
const char *IdealGraphPrinter::METHOD_IS_STATIC_PROPERTY = "static";
@@ -313,6 +315,12 @@ void IdealGraphPrinter::begin_method() {
313315
print_prop(METHOD_IS_STATIC_PROPERTY, TRUE_VALUE);
314316
}
315317

318+
if (C->is_osr_compilation()) {
319+
print_prop(COMPILATION_OSR_PROPERTY, TRUE_VALUE);
320+
}
321+
322+
print_prop(COMPILATION_ID_PROPERTY, C->compile_id());
323+
316324
tail(PROPERTIES_ELEMENT);
317325

318326
_should_send_method = true;

src/hotspot/share/opto/idealGraphPrinter.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class IdealGraphPrinter : public CHeapObj<mtCompiler> {
5757
static const char *CONTROL_FLOW_ELEMENT;
5858
static const char *REMOVE_EDGE_ELEMENT;
5959
static const char *REMOVE_NODE_ELEMENT;
60+
static const char *COMPILATION_ID_PROPERTY;
61+
static const char *COMPILATION_OSR_PROPERTY;
6062
static const char *METHOD_NAME_PROPERTY;
6163
static const char *BLOCK_NAME_PROPERTY;
6264
static const char *BLOCK_DOMINATOR_PROPERTY;

0 commit comments

Comments
 (0)