OpenJDK / jdk8u / jdk8u / jdk
changeset 12322:51631f9fa8d8
8172465: Better handling of channel groups
Reviewed-by: alanb, coffeys, skoivu, rhalade, chegar
author | bpb |
---|---|
date | Tue, 14 Mar 2017 13:23:50 +0000 |
parents | d7bd49ad8f0a |
children | 78a83e6e0fe8 |
files | src/share/classes/sun/nio/ch/AsynchronousChannelGroupImpl.java |
diffstat | 1 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/nio/ch/AsynchronousChannelGroupImpl.java Mon Feb 06 15:32:59 2017 -0800 +++ b/src/share/classes/sun/nio/ch/AsynchronousChannelGroupImpl.java Tue Mar 14 13:23:50 2017 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -246,13 +246,16 @@ abstract void shutdownHandlerTasks(); private void shutdownExecutors() { - AccessController.doPrivileged(new PrivilegedAction<Void>() { - public Void run() { - pool.executor().shutdown(); - timeoutExecutor.shutdown(); - return null; - } - }); + AccessController.doPrivileged( + new PrivilegedAction<Void>() { + public Void run() { + pool.executor().shutdown(); + timeoutExecutor.shutdown(); + return null; + } + }, + null, + new RuntimePermission("modifyThread")); } @Override