8153371: Remove sun.misc.ManagedLocalsThread from jdk.crypto.pkcs11
Replace usage of ManagedLocalsThread with the new Thread constructor Reviewed-by: xuelei, chegar
This commit is contained in:
parent
16ee51bad7
commit
89499e85db
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2016, 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
|
||||
@ -26,8 +26,6 @@
|
||||
module jdk.crypto.pkcs11 {
|
||||
// Depends on SunEC provider for EC related functionality
|
||||
requires jdk.crypto.ec;
|
||||
// 8153371
|
||||
requires jdk.unsupported;
|
||||
provides java.security.Provider with sun.security.pkcs11.SunPKCS11;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2016, 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
|
||||
@ -42,7 +42,6 @@ import javax.security.auth.callback.ConfirmationCallback;
|
||||
import javax.security.auth.callback.PasswordCallback;
|
||||
import javax.security.auth.callback.TextOutputCallback;
|
||||
|
||||
import sun.misc.ManagedLocalsThread;
|
||||
import sun.security.util.Debug;
|
||||
import sun.security.util.ResourcesMgr;
|
||||
|
||||
@ -816,7 +815,7 @@ public final class SunPKCS11 extends AuthProvider {
|
||||
return;
|
||||
}
|
||||
final TokenPoller poller = new TokenPoller(this);
|
||||
Thread t = new ManagedLocalsThread(poller, "Poller " + getName());
|
||||
Thread t = new Thread(null, poller, "Poller " + getName(), 0, false);
|
||||
t.setDaemon(true);
|
||||
t.setPriority(Thread.MIN_PRIORITY);
|
||||
t.start();
|
||||
|
Loading…
Reference in New Issue
Block a user