ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ForkJoinTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ForkJoinTask.java (file contents):
Revision 1.97 by jsr166, Sat Sep 19 19:51:33 2015 UTC vs.
Revision 1.98 by jsr166, Sun Sep 20 05:49:39 2015 UTC

# Line 405 | Line 405 | public abstract class ForkJoinTask<V> im
405          ExceptionNode next;
406          final long thrower;  // use id not ref to avoid weak cycles
407          final int hashCode;  // store task hashCode before weak ref disappears
408 <        ExceptionNode(ForkJoinTask<?> task, Throwable ex, ExceptionNode next) {
408 >        ExceptionNode(ForkJoinTask<?> task, Throwable ex, ExceptionNode next,
409 >                      ReferenceQueue<Object> exceptionTableRefQueue) {
410              super(task, exceptionTableRefQueue);
411              this.ex = ex;
412              this.next = next;
# Line 431 | Line 432 | public abstract class ForkJoinTask<V> im
432                  int i = h & (t.length - 1);
433                  for (ExceptionNode e = t[i]; ; e = e.next) {
434                      if (e == null) {
435 <                        t[i] = new ExceptionNode(this, ex, t[i]);
435 >                        t[i] = new ExceptionNode(this, ex, t[i],
436 >                                                 exceptionTableRefQueue);
437                          break;
438                      }
439                      if (e.get() == this) // already present

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines