Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for thread dump

orbiter62762ba81ac9
diff --git a/htroot/Threaddump_p.java b/htroot/Threaddump_p.java
index 7d4e5976e..28d8c54cc 100644
--- a/htroot/Threaddump_p.java
+++ b/htroot/Threaddump_p.java
@@ -194,13 +194,15 @@ public class Threaddump_p {
}
String threadtitle = tracename + "Thread= " + thread.getName() + " " + (thread.isDaemon()?"daemon":"") + " id=" + thread.getId() + " " + thread.getState().toString();
String className;
+ boolean cutcore = true;
for (int i = 0; i < stackTraceElements.length; i++) {
ste = stackTraceElements[i];
className = ste.getClassName();
- if (className.startsWith("java.") || className.startsWith("sun.")) {
+ if (cutcore && (className.startsWith("java.") || className.startsWith("sun."))) {
sb.setLength(0);
bufferappend(sb, plain, tracename + "at " + htmlFilterCharacterCoding.unicode2html(ste.toString(), true));
} else {
+ cutcore = false;
if (i == 0) {
line = getLine(getClassFile(classPath, className), ste.getLineNumber());
} else {