Skip to content
Permalink
Browse files
[JENKINS-36871] Optimize hot code path
  • Loading branch information
stephenc committed Aug 3, 2016
1 parent 7d003c8 commit 38cd6e424705ff64df68080ab0df9a3a4468a56a
Showing 1 changed file with 1 addition and 6 deletions.
@@ -689,12 +689,7 @@ public void run() {
final Thread workerThread = Thread.currentThread();
final String oldName = workerThread.getName();
try {
workerThread.setName(
String.format("IOHub#%d: Worker[channel:%s] / %s",
_id,
key.channel(),
oldName)
);
workerThread.setName("IOHub#" + _id + ": Worker[channel:" + key.channel() + "] / " + oldName);
listener.ready((ops & SelectionKey.OP_ACCEPT) == SelectionKey.OP_ACCEPT,
(ops & SelectionKey.OP_CONNECT) == SelectionKey.OP_CONNECT,
(ops & SelectionKey.OP_READ) == SelectionKey.OP_READ,

0 comments on commit 38cd6e4

Please sign in to comment.