[jdk17] RFR: 8269034: AccessControlException for SunPKCS11 daemon threads [v2]
Valerie Peng
valeriep at openjdk.java.net
Fri Jun 25 22:31:05 UTC 2021
On Fri, 25 Jun 2021 19:39:22 GMT, Valerie Peng <valeriep at openjdk.org> wrote:
>> Sean Coffey has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Move TokenPoller to Runnable
>
> src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/SunPKCS11.java line 952:
>
>> 950: AccessController.doPrivileged((PrivilegedAction<Void>) () -> {
>> 951: Thread t = InnocuousThread.newSystemThread(
>> 952: "Poller " + getName(),
>
> nit: "Poller " -> "Poller-" (like before)?
It seems that the AccessController.doPrivileged((PrivilegedAction<Void>) () -> {} is un-necessary? I tried your test without it and test still passes.
-------------
PR: https://git.openjdk.java.net/jdk17/pull/117
More information about the core-libs-dev
mailing list