Skip to content

Commit 0ebf60a

Browse files
committed
Bug 38360810 - [38298007->15.1.1.0.0] remove use of deprecated ThreadGroup methods in the Coherence Daemon class
(merge 15.1.1-0 -> ce/15.1.1-0 118480) [git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v15.1.1.0/": change = 118481]
1 parent 0d5fad8 commit 0ebf60a

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
@@ -750,10 +750,7 @@ protected void configureWorker(DaemonWorker worker)
750750
ThreadGroup curThreadGroup = ensureThreadGroup();
751751
synchronized (curThreadGroup) // ensures that the thread group is not destroyed concurrently
752752
{
753-
if (curThreadGroup.isDestroyed())
754-
{
755-
ensureThreadGroup();
756-
}
753+
ensureThreadGroup();
757754
threadWorker = makeThread(m_threadGroup, worker, null);
758755
}
759756

@@ -784,11 +781,9 @@ protected void configureWorker(DaemonWorker worker)
784781
protected ThreadGroup ensureThreadGroup()
785782
{
786783
ThreadGroup threadGroup = m_threadGroup;
787-
if (threadGroup == null || threadGroup.isDestroyed())
784+
if (threadGroup == null)
788785
{
789786
threadGroup = m_threadGroup = new ThreadGroup(getConfiguredName());
790-
// Make it a daemon so that it is destroyed automatically.
791-
threadGroup.setDaemon(true);
792787
}
793788
return threadGroup;
794789
}

0 commit comments

Comments
 (0)