# HG changeset patch # User Peter Hofer # Date 1326724533 -3600 # Node ID 9770cb8164b7a9e681c1daa7830664b63830ff8d # Parent 1339f1817d285700b606b03ee5d12e92fa5c5cba IdealGraphVisualizer: don't internalize strings from parsed graphs, it's expensive and can lead to OutOfMemoryErrors in the perm gen space for huge graphs diff -r 1339f1817d28 -r 9770cb8164b7 src/share/tools/IdealGraphVisualizer/BatikSVGProxy/nbproject/genfiles.properties --- a/src/share/tools/IdealGraphVisualizer/BatikSVGProxy/nbproject/genfiles.properties Fri Jan 13 16:26:37 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/BatikSVGProxy/nbproject/genfiles.properties Mon Jan 16 15:35:33 2012 +0100 @@ -2,4 +2,4 @@ # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=ebcf0422 nbproject/build-impl.xml.script.CRC32=42ef3ff6 -nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.45.1 +nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.47.1 diff -r 1339f1817d28 -r 9770cb8164b7 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java --- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Fri Jan 13 16:26:37 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Mon Jan 16 15:35:33 2012 +0100 @@ -293,7 +293,7 @@ @Override protected InputBlock start() throws SAXException { InputGraph graph = getParentObject(); - String name = readRequiredAttribute(BLOCK_NAME_PROPERTY).intern(); + String name = readRequiredAttribute(BLOCK_NAME_PROPERTY); InputBlock b = graph.addBlock(name); for (InputNode n : b.getNodes()) { assert graph.getBlock(n).equals(b); @@ -447,12 +447,12 @@ @Override public String start() throws SAXException { - return readRequiredAttribute(PROPERTY_NAME_PROPERTY).intern(); + return readRequiredAttribute(PROPERTY_NAME_PROPERTY); } @Override public void end(String text) { - getParentObject().getProperties().setProperty(getObject(), text.trim().intern()); + getParentObject().getProperties().setProperty(getObject(), text.trim()); } }; diff -r 1339f1817d28 -r 9770cb8164b7 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/XMLParser.java --- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/XMLParser.java Fri Jan 13 16:26:37 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/XMLParser.java Mon Jan 16 15:35:33 2012 +0100 @@ -150,8 +150,8 @@ public void processAttributesAsProperties(Properties p) { int length = attr.getLength(); for (int i = 0; i < length; i++) { - String val = attr.getValue(i).intern(); - String localName = attr.getLocalName(i).intern(); + String val = attr.getValue(i); + String localName = attr.getLocalName(i); p.setProperty(val, localName); } } diff -r 1339f1817d28 -r 9770cb8164b7 src/share/tools/IdealGraphVisualizer/Graal/src/com/sun/hotspot/igv/graal/filters/callgraph.filter --- a/src/share/tools/IdealGraphVisualizer/Graal/src/com/sun/hotspot/igv/graal/filters/callgraph.filter Fri Jan 13 16:26:37 2012 +0100 +++ b/src/share/tools/IdealGraphVisualizer/Graal/src/com/sun/hotspot/igv/graal/filters/callgraph.filter Mon Jan 16 15:35:33 2012 +0100 @@ -1,5 +1,3 @@ -colorize("abstract", "1", yellow); -colorize("leaf", "1", lightGray); - -var f = new com.sun.hotspot.igv.filter.EdgeColorIndexFilter("INPUTS", [black, pink]); -f.apply(graph); +colorize("name", ".*", yellow); +colorize("name", ".*", pink); +colorize("leaf", "1", red);