Merged branch 'jetty-9.4.x' into 'jetty-10.0.x'.

This commit is contained in:
Simone Bordet 2019-10-01 17:25:32 +02:00
commit ca1b706107
1 changed files with 5 additions and 4 deletions

View File

@ -81,8 +81,8 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
_executor = executor;
_capacity = reservedThreads(executor, capacity);
_stack = new ConcurrentLinkedDeque<>();
LOG.debug("{}", this);
if (LOG.isDebugEnabled())
LOG.debug("{}", this);
}
/**
@ -209,9 +209,10 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
return false;
ReservedThread thread = _stack.pollFirst();
if (thread == null && task != STOP)
if (thread == null)
{
startReservedThread();
if (task != STOP)
startReservedThread();
return false;
}