agent/src/share/classes/sun/jvm/hotspot/CommandProcessor.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/agent/src/share/classes/sun/jvm/hotspot/CommandProcessor.java	Wed Mar 13 23:31:51 2013
--- new/agent/src/share/classes/sun/jvm/hotspot/CommandProcessor.java	Wed Mar 13 23:31:51 2013

*** 1515,1525 **** --- 1515,1525 ---- boolean all = name.equals("-a"); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); thread.printThreadIDOn(new PrintStream(bos)); if (all || bos.toString().equals(name)) { ! out.println(bos.toString() + " = " + thread.getAddress()); ! out.println("Thread " + bos.toString() + " Address: " + thread.getAddress()); HTMLGenerator gen = new HTMLGenerator(false); try { out.println(gen.genHTMLForJavaStackTrace(thread)); } catch (Exception e) { err.println("Error: " + e);
*** 1544,1554 **** --- 1544,1554 ---- boolean all = name.equals("-a"); for (JavaThread thread = threads.first(); thread != null; thread = thread.next()) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); thread.printThreadIDOn(new PrintStream(bos)); if (all || bos.toString().equals(name)) { ! out.println(bos.toString() + " = " + thread.getAddress()); ! out.println("Thread " + bos.toString() + " Address " + thread.getAddress()); if (!all) return; } } out.println("Couldn't find thread " + name); }

agent/src/share/classes/sun/jvm/hotspot/CommandProcessor.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File