Mercurial > hg > graal-jvmci-8
changeset 22750:cbdce7fb4091
Handle missing level in LogCompilation output
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 15 Dec 2015 09:44:47 -0800 |
parents | ef604fb44c7a |
children | 1dc87d090f96 |
files | src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java Tue Dec 15 09:03:09 2015 -0800 +++ b/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/LogParser.java Tue Dec 15 09:44:47 2015 -0800 @@ -373,12 +373,12 @@ failureReason = search(atts, "reason"); } else if (qname.equals("task_queued")) { String id = makeId(atts); - int level = Integer.parseInt(search(atts, "level")); + int level = Integer.parseInt(search(atts, "level", "4")); TaskEvent t = new TaskEvent(Double.parseDouble(search(atts, "stamp")), id, level, TaskEvent.Kind.Enqueue); events.add(t); } else if (qname.equals("task_dequeued")) { String id = makeId(atts); - int level = Integer.parseInt(search(atts, "level")); + int level = Integer.parseInt(search(atts, "level", "4")); TaskEvent t = new TaskEvent(Double.parseDouble(search(atts, "stamp")), id, level, TaskEvent.Kind.Dequeue); t.setComment(search(atts, "comment")); events.add(t); @@ -445,7 +445,7 @@ nmethods.put(id, nm); events.add(nm); - int level = Integer.parseInt(search(atts, "level")); + int level = Integer.parseInt(search(atts, "level", "4")); if (level > 0) { TaskEvent t = new TaskEvent(Double.parseDouble(search(atts, "stamp")), id, level, TaskEvent.Kind.Finish); events.add(t);