src/java.base/share/classes/java/lang/Throwable.java
changeset 55526 1de28d191f9c
parent 54059 1bc8513104f2
child 55717 2b4e14968afd
equal deleted inserted replaced
55525:c9093341cfe2 55526:1de28d191f9c
   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;