Skip to content

Commit 71c48d0

Browse files
author
Jonathan Knight
committed
Bug 38298007 remove use of deprecated ThreadGroup methods in the Coherence Daemon class
(merge 14.1.2-0 -> ce/14.1.2-0 118476) [git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v14.1.2.0/": change = 118477]
1 parent b94bd4d commit 71c48d0

File tree

1 file changed

+2
-7
lines changed
  • prj/coherence-core/src/main/java/com/tangosol/util

1 file changed

+2
-7
lines changed

prj/coherence-core/src/main/java/com/tangosol/util/Daemon.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,7 @@ protected void configureWorker(DaemonWorker worker)
751751
ThreadGroup curThreadGroup = ensureThreadGroup();
752752
synchronized (curThreadGroup) // ensures that the thread group is not destroyed concurrently
753753
{
754-
if (curThreadGroup.isDestroyed())
755-
{
756-
ensureThreadGroup();
757-
}
754+
ensureThreadGroup();
758755
threadWorker = makeThread(m_threadGroup, worker, null);
759756
}
760757

@@ -785,11 +782,9 @@ protected void configureWorker(DaemonWorker worker)
785782
protected ThreadGroup ensureThreadGroup()
786783
{
787784
ThreadGroup threadGroup = m_threadGroup;
788-
if (threadGroup == null || threadGroup.isDestroyed())
785+
if (threadGroup == null)
789786
{
790787
threadGroup = m_threadGroup = new ThreadGroup(getConfiguredName());
791-
// Make it a daemon so that it is destroyed automatically.
792-
threadGroup.setDaemon(true);
793788
}
794789
return threadGroup;
795790
}

0 commit comments

Comments
 (0)