Skip to content

Commit

Permalink
[JENKINS-36871] Optimize hot code path
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Aug 3, 2016
1 parent 7d003c8 commit 38cd6e4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/org/jenkinsci/remoting/protocol/IOHub.java
Expand Up @@ -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,
Expand Down

0 comments on commit 38cd6e4

Please sign in to comment.