Skip to content

Commit 049b953

Browse files
8305223: IGV: mark osr compiled graphs with [OSR] in the name
Reviewed-by: thartmann, rcastanedalo, eliu
1 parent 345669c commit 049b953

File tree

1 file changed

+6
-2
lines changed
  • src/utils/IdealGraphVisualizer/Data/src/main/java/com/sun/hotspot/igv/data

1 file changed

+6
-2
lines changed

src/utils/IdealGraphVisualizer/Data/src/main/java/com/sun/hotspot/igv/data/Group.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -126,7 +126,11 @@ public String getName() {
126126

127127
@Override
128128
public String getDisplayName() {
129-
return (getParent() == null ? "" : getParent().getElements().indexOf(this) + 1 + " - ") + getName();
129+
String displayName = (getParent() == null ? "" : getParent().getElements().indexOf(this) + 1 + " - ") + getName();
130+
if (getProperties().get("osr") != null) {
131+
displayName += " [OSR]";
132+
}
133+
return displayName;
130134
}
131135

132136
public String getType() {

0 commit comments

Comments
 (0)