8347842: ThreadPoolExecutor specification discusses RuntimePermission

Reviewed-by: alanb, jpai
This commit is contained in:
Viktor Klang 2025-02-06 15:02:21 +00:00
parent 3fbae32d0a
commit 5ec1aae21e

View file

@ -113,12 +113,7 @@ import jdk.internal.vm.SharedThreadContainer;
* alter the thread's name, thread group, priority, daemon status,
* etc. If a {@code ThreadFactory} fails to create a thread when asked
* by returning null from {@code newThread}, the executor will
* continue, but might not be able to execute any tasks. Threads
* should possess the "modifyThread" {@code RuntimePermission}. If
* worker threads or other threads using the pool do not possess this
* permission, service may be degraded: configuration changes may not
* take effect in a timely manner, and a shutdown pool may remain in a
* state in which termination is possible but not completed.</dd>
* continue, but might not be able to execute any tasks.</dd>
*
* <dt>Keep-alive times</dt>
*