1441 |
|
|
1442 |
|
/** |
1443 |
|
* Returns the number of worker threads that have started but not |
1444 |
< |
* yet terminated. This result returned by this method may differ |
1444 |
> |
* yet terminated. The result returned by this method may differ |
1445 |
|
* from {@link #getParallelism} when threads are created to |
1446 |
|
* maintain parallelism when others are cooperatively blocked. |
1447 |
|
* |
1842 |
|
private static final long eventCountOffset = |
1843 |
|
objectFieldOffset("eventCount", ForkJoinPool.class); |
1844 |
|
private static final long eventWaitersOffset = |
1845 |
< |
objectFieldOffset("eventWaiters",ForkJoinPool.class); |
1845 |
> |
objectFieldOffset("eventWaiters", ForkJoinPool.class); |
1846 |
|
private static final long stealCountOffset = |
1847 |
< |
objectFieldOffset("stealCount",ForkJoinPool.class); |
1847 |
> |
objectFieldOffset("stealCount", ForkJoinPool.class); |
1848 |
|
private static final long spareWaitersOffset = |
1849 |
< |
objectFieldOffset("spareWaiters",ForkJoinPool.class); |
1849 |
> |
objectFieldOffset("spareWaiters", ForkJoinPool.class); |
1850 |
|
|
1851 |
|
private static long objectFieldOffset(String field, Class<?> klazz) { |
1852 |
|
try { |