8148863: Remove sun.misc.ManagedLocalsThread from corba
Reviewed-by: alanb, coffeys, msheppar
This commit is contained in:
parent
4935f9d64d
commit
ebb86eaa4f
@ -255,7 +255,7 @@ public class RequestImpl
|
|||||||
public synchronized void send_deferred()
|
public synchronized void send_deferred()
|
||||||
{
|
{
|
||||||
AsynchInvoke invokeObject = new AsynchInvoke(_orb, this, false);
|
AsynchInvoke invokeObject = new AsynchInvoke(_orb, this, false);
|
||||||
new sun.misc.ManagedLocalsThread(invokeObject).start();
|
new Thread(null, invokeObject, "Async-Request-Invoker-Thread", 0, false).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized boolean poll_response()
|
public synchronized boolean poll_response()
|
||||||
|
@ -751,12 +751,13 @@ public class Util implements javax.rmi.CORBA.UtilDelegate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class KeepAlive extends sun.misc.ManagedLocalsThread
|
class KeepAlive extends Thread
|
||||||
{
|
{
|
||||||
boolean quit = false;
|
boolean quit = false;
|
||||||
|
|
||||||
public KeepAlive ()
|
public KeepAlive ()
|
||||||
{
|
{
|
||||||
|
super(null, null, "Servant-KeepAlive-Thread", 0, false);
|
||||||
setDaemon(false);
|
setDaemon(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,7 +516,7 @@ public class POAImpl extends ObjectAdapterBase implements POA
|
|||||||
|
|
||||||
// Converted from anonymous class to local class
|
// Converted from anonymous class to local class
|
||||||
// so that we can call performDestroy() directly.
|
// so that we can call performDestroy() directly.
|
||||||
static class DestroyThread extends sun.misc.ManagedLocalsThread {
|
static class DestroyThread extends Thread {
|
||||||
private boolean wait ;
|
private boolean wait ;
|
||||||
private boolean etherealize ;
|
private boolean etherealize ;
|
||||||
private boolean debug ;
|
private boolean debug ;
|
||||||
@ -524,6 +524,7 @@ public class POAImpl extends ObjectAdapterBase implements POA
|
|||||||
|
|
||||||
public DestroyThread( boolean etherealize, boolean debug )
|
public DestroyThread( boolean etherealize, boolean debug )
|
||||||
{
|
{
|
||||||
|
super(null, null, "POA-Destroy-Thread", 0, false);
|
||||||
this.etherealize = etherealize ;
|
this.etherealize = etherealize ;
|
||||||
this.debug = debug ;
|
this.debug = debug ;
|
||||||
}
|
}
|
||||||
|
@ -357,7 +357,7 @@ public class POAManagerImpl extends org.omg.CORBA.LocalObject implements
|
|||||||
if (wait_for_completion)
|
if (wait_for_completion)
|
||||||
deactivator.run() ;
|
deactivator.run() ;
|
||||||
else {
|
else {
|
||||||
Thread thr = new sun.misc.ManagedLocalsThread(deactivator) ;
|
Thread thr = new Thread(null, deactivator, "POA-Deactivator-Thread", 0, false) ;
|
||||||
thr.start() ;
|
thr.start() ;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -302,7 +302,7 @@ public class POAPolicyMediatorImpl_R_USM extends POAPolicyMediatorBase_R {
|
|||||||
throw new WrongPolicy();
|
throw new WrongPolicy();
|
||||||
}
|
}
|
||||||
|
|
||||||
class Etherealizer extends sun.misc.ManagedLocalsThread {
|
class Etherealizer extends Thread {
|
||||||
private POAPolicyMediatorImpl_R_USM mediator ;
|
private POAPolicyMediatorImpl_R_USM mediator ;
|
||||||
private ActiveObjectMap.Key key ;
|
private ActiveObjectMap.Key key ;
|
||||||
private AOMEntry entry ;
|
private AOMEntry entry ;
|
||||||
@ -314,6 +314,7 @@ public class POAPolicyMediatorImpl_R_USM extends POAPolicyMediatorBase_R {
|
|||||||
ActiveObjectMap.Key key, AOMEntry entry, Servant servant,
|
ActiveObjectMap.Key key, AOMEntry entry, Servant servant,
|
||||||
boolean debug )
|
boolean debug )
|
||||||
{
|
{
|
||||||
|
super(null, null, "PAO-Etherealizer-Thread", 0, false);
|
||||||
this.mediator = mediator ;
|
this.mediator = mediator ;
|
||||||
this.key = key ;
|
this.key = key ;
|
||||||
this.entry = entry;
|
this.entry = entry;
|
||||||
|
@ -691,7 +691,7 @@ public class ORBImpl extends com.sun.corba.se.spi.orb.ORB
|
|||||||
for (int i = 0; i < req.length; i++) {
|
for (int i = 0; i < req.length; i++) {
|
||||||
AsynchInvoke invokeObject = new AsynchInvoke( this,
|
AsynchInvoke invokeObject = new AsynchInvoke( this,
|
||||||
(com.sun.corba.se.impl.corba.RequestImpl)req[i], true);
|
(com.sun.corba.se.impl.corba.RequestImpl)req[i], true);
|
||||||
new sun.misc.ManagedLocalsThread(invokeObject).start();
|
new Thread(null, invokeObject, "ORB-Request-Thread", 0, false).start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -459,7 +459,7 @@ public class ThreadPoolImpl implements ThreadPool
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private class WorkerThread extends sun.misc.ManagedLocalsThread implements Closeable
|
private class WorkerThread extends Thread implements Closeable
|
||||||
{
|
{
|
||||||
private Work currentWork;
|
private Work currentWork;
|
||||||
private int threadId = 0; // unique id for the thread
|
private int threadId = 0; // unique id for the thread
|
||||||
@ -469,7 +469,7 @@ public class ThreadPoolImpl implements ThreadPool
|
|||||||
private StringBuffer workerThreadName = new StringBuffer();
|
private StringBuffer workerThreadName = new StringBuffer();
|
||||||
|
|
||||||
WorkerThread(ThreadGroup tg, String threadPoolName) {
|
WorkerThread(ThreadGroup tg, String threadPoolName) {
|
||||||
super(tg, "Idle");
|
super(tg, null, "Idle", 0, false);
|
||||||
this.threadId = ThreadPoolImpl.getUniqueThreadId();
|
this.threadId = ThreadPoolImpl.getUniqueThreadId();
|
||||||
this.threadPoolName = threadPoolName;
|
this.threadPoolName = threadPoolName;
|
||||||
setName(composeWorkerThreadName(threadPoolName, "Idle"));
|
setName(composeWorkerThreadName(threadPoolName, "Idle"));
|
||||||
|
@ -61,7 +61,7 @@ import com.sun.corba.se.impl.orbutil.ORBUtility;
|
|||||||
*/
|
*/
|
||||||
class SelectorImpl
|
class SelectorImpl
|
||||||
extends
|
extends
|
||||||
sun.misc.ManagedLocalsThread
|
Thread
|
||||||
implements
|
implements
|
||||||
com.sun.corba.se.pept.transport.Selector
|
com.sun.corba.se.pept.transport.Selector
|
||||||
{
|
{
|
||||||
@ -79,6 +79,7 @@ class SelectorImpl
|
|||||||
|
|
||||||
public SelectorImpl(ORB orb)
|
public SelectorImpl(ORB orb)
|
||||||
{
|
{
|
||||||
|
super(null, null, "ORB-Selector-Thread", 0, false);
|
||||||
this.orb = orb;
|
this.orb = orb;
|
||||||
selector = null;
|
selector = null;
|
||||||
selectorStarted = false;
|
selectorStarted = false;
|
||||||
@ -277,7 +278,6 @@ class SelectorImpl
|
|||||||
|
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
setName("SelectorThread");
|
|
||||||
while (!closed) {
|
while (!closed) {
|
||||||
try {
|
try {
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
@ -29,8 +29,6 @@ module java.corba {
|
|||||||
requires java.logging;
|
requires java.logging;
|
||||||
requires java.naming;
|
requires java.naming;
|
||||||
requires java.transaction;
|
requires java.transaction;
|
||||||
// 8148863
|
|
||||||
requires jdk.unsupported;
|
|
||||||
|
|
||||||
exports javax.activity;
|
exports javax.activity;
|
||||||
exports javax.rmi;
|
exports javax.rmi;
|
||||||
|
Loading…
Reference in New Issue
Block a user