ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/ForkJoinPool.java
(Generate patch)

Comparing jsr166/src/jsr166y/ForkJoinPool.java (file contents):
Revision 1.13 by jsr166, Wed Jul 22 01:36:51 2009 UTC vs.
Revision 1.16 by jsr166, Thu Jul 23 19:44:46 2009 UTC

# Line 219 | Line 219 | public class ForkJoinPool extends Abstra
219       * threads, packed into one int to ensure consistent snapshot when
220       * making decisions about creating and suspending spare
221       * threads. Updated only by CAS.  Note: CASes in
222 <     * updateRunningCount and preJoin running active count is in low
223 <     * word, so need to be modified if this changes
222 >     * updateRunningCount and preJoin assume that running active count
223 >     * is in low word, so need to be modified if this changes.
224       */
225      private volatile int workerCounts;
226  
# Line 433 | Line 433 | public class ForkJoinPool extends Abstra
433  
434      /**
435       * Creates or resizes array if necessary to hold newLength.
436 <     * Call only under exclusion or lock.
436 >     * Call only under exclusion.
437 >     *
438       * @return the array
439       */
440      private ForkJoinWorkerThread[] ensureWorkerArrayCapacity(int newLength) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines