From 5b829a10e4d46b1d0d708b3bff9b2bfa213a53b7 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Tue, 1 Oct 2019 17:23:29 +0200 Subject: [PATCH] Cosmetics. Signed-off-by: Simone Bordet --- .../eclipse/jetty/util/thread/ReservedThreadExecutor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java index a8a27ad4bce..30bc6dc9d2c 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/thread/ReservedThreadExecutor.java @@ -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); } /** @@ -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; }