Cosmetics.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2019-10-01 17:23:29 +02:00
parent fef5975b86
commit 5b829a10e4
1 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
_executor = executor;
_capacity = reservedThreads(executor, capacity);
_stack = new ConcurrentLinkedDeque<>();
if (LOG.isDebugEnabled())
LOG.debug("{}", this);
}
@ -180,7 +180,7 @@ public class ReservedThreadExecutor extends AbstractLifeCycle implements TryExec
{
// Reserved thread must have incremented size but not yet added itself to queue.
// We will spin until it is added.
Thread.yield(); // TODO: use Thread.onSpinWait() in jetty-10
Thread.yield();
continue;
}