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

Comparing jsr166/src/main/java/util/concurrent/ForkJoinPool.java (file contents):
Revision 1.323 by jsr166, Wed Aug 24 21:44:03 2016 UTC vs.
Revision 1.324 by jsr166, Wed Aug 24 21:56:56 2016 UTC

# Line 3212 | Line 3212 | public class ForkJoinPool extends Abstra
3212           * An ACC to restrict permissions for the factory itself.
3213           * The constructed workers have no permissions set.
3214           */
3215 <        private static final AccessControlContext innocuousAcc;
3215 >        private static final AccessControlContext INNOCUOUS_ACC;
3216          static {
3217              Permissions innocuousPerms = new Permissions();
3218              innocuousPerms.add(modifyThreadPermission);
# Line 3220 | Line 3220 | public class ForkJoinPool extends Abstra
3220                                     "enableContextClassLoaderOverride"));
3221              innocuousPerms.add(new RuntimePermission(
3222                                     "modifyThreadGroup"));
3223 <            innocuousAcc = new AccessControlContext(new ProtectionDomain[] {
3223 >            INNOCUOUS_ACC = new AccessControlContext(new ProtectionDomain[] {
3224                      new ProtectionDomain(null, innocuousPerms)
3225                  });
3226          }
# Line 3231 | Line 3231 | public class ForkJoinPool extends Abstra
3231                      public ForkJoinWorkerThread run() {
3232                          return new ForkJoinWorkerThread.
3233                              InnocuousForkJoinWorkerThread(pool);
3234 <                    }}, innocuousAcc);
3234 >                    }}, INNOCUOUS_ACC);
3235          }
3236      }
3237  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines