rt/emul/compact/src/main/java/java/util/concurrent/ThreadPoolExecutor.java
changeset 1895 bfaf3300b7ba
parent 1890 212417b74b72
     1.1 --- a/rt/emul/compact/src/main/java/java/util/concurrent/ThreadPoolExecutor.java	Sat Mar 19 10:46:31 2016 +0100
     1.2 +++ b/rt/emul/compact/src/main/java/java/util/concurrent/ThreadPoolExecutor.java	Sat Mar 19 12:51:03 2016 +0100
     1.3 @@ -557,8 +557,8 @@
     1.4       * and failure to actually interrupt will merely delay response to
     1.5       * configuration changes so is not handled exceptionally.
     1.6       */
     1.7 -    private static final RuntimePermission shutdownPerm =
     1.8 -        new RuntimePermission("modifyThread");
     1.9 +//    private static final RuntimePermission shutdownPerm =
    1.10 +//        new RuntimePermission("modifyThread");
    1.11  
    1.12      /**
    1.13       * Class Worker mainly maintains interrupt control state for
    1.14 @@ -706,18 +706,18 @@
    1.15       * specially.
    1.16       */
    1.17      private void checkShutdownAccess() {
    1.18 -        SecurityManager security = System.getSecurityManager();
    1.19 -        if (security != null) {
    1.20 -            security.checkPermission(shutdownPerm);
    1.21 -            final ReentrantLock mainLock = this.mainLock;
    1.22 -            mainLock.lock();
    1.23 -            try {
    1.24 -                for (Worker w : workers)
    1.25 -                    security.checkAccess(w.thread);
    1.26 -            } finally {
    1.27 -                mainLock.unlock();
    1.28 -            }
    1.29 -        }
    1.30 +//        SecurityManager security = System.getSecurityManager();
    1.31 +//        if (security != null) {
    1.32 +//            security.checkPermission(shutdownPerm);
    1.33 +//            final ReentrantLock mainLock = this.mainLock;
    1.34 +//            mainLock.lock();
    1.35 +//            try {
    1.36 +//                for (Worker w : workers)
    1.37 +//                    security.checkAccess(w.thread);
    1.38 +//            } finally {
    1.39 +//                mainLock.unlock();
    1.40 +//            }
    1.41 +//        }
    1.42      }
    1.43  
    1.44      /**