equal
deleted
inserted
replaced
691 String caption, |
691 String caption, |
692 String prefix, |
692 String prefix, |
693 Set<Throwable> dejaVu) { |
693 Set<Throwable> dejaVu) { |
694 assert Thread.holdsLock(s.lock()); |
694 assert Thread.holdsLock(s.lock()); |
695 if (dejaVu.contains(this)) { |
695 if (dejaVu.contains(this)) { |
696 s.println("\t[CIRCULAR REFERENCE:" + this + "]"); |
696 s.println(prefix + caption + "[CIRCULAR REFERENCE: " + this + "]"); |
697 } else { |
697 } else { |
698 dejaVu.add(this); |
698 dejaVu.add(this); |
699 // Compute number of frames in common between this and enclosing trace |
699 // Compute number of frames in common between this and enclosing trace |
700 StackTraceElement[] trace = getOurStackTrace(); |
700 StackTraceElement[] trace = getOurStackTrace(); |
701 int m = trace.length - 1; |
701 int m = trace.length - 1; |