1472 |
|
} |
1473 |
|
|
1474 |
|
// Unsafe mechanics |
1475 |
< |
private static final sun.misc.Unsafe U; |
1475 |
> |
private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe(); |
1476 |
|
private static final long STATUS; |
1477 |
|
|
1478 |
|
static { |
1480 |
|
exceptionTableRefQueue = new ReferenceQueue<Object>(); |
1481 |
|
exceptionTable = new ExceptionNode[EXCEPTION_MAP_CAPACITY]; |
1482 |
|
try { |
1483 |
– |
U = sun.misc.Unsafe.getUnsafe(); |
1484 |
– |
Class<?> k = ForkJoinTask.class; |
1483 |
|
STATUS = U.objectFieldOffset |
1484 |
< |
(k.getDeclaredField("status")); |
1484 |
> |
(ForkJoinTask.class.getDeclaredField("status")); |
1485 |
|
} catch (ReflectiveOperationException e) { |
1486 |
|
throw new Error(e); |
1487 |
|
} |