Skip to content

Commit

Permalink
Less thread-polling. More cow bell!
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Feb 2, 2015
1 parent d0e008d commit 2a123a0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/src/main/java/org/jruby/ir/IRBuilder.java
Expand Up @@ -1665,9 +1665,6 @@ protected void defineMethodInner(MethodDefNode defNode, IRScope parent) {
// Build IR for arguments (including the block arg)
receiveMethodArgs(defNode.getArgsNode());

// Thread poll on entry to method
addInstr(new ThreadPollInstr());

// Build IR for body
Operand rv = build(defNode.getBodyNode());

Expand Down Expand Up @@ -2355,7 +2352,6 @@ private void buildForIterInner(ForNode forNode) {
if (varNode != null && varNode.getNodeType() != null) receiveBlockArgs(forNode);

addCurrentScopeAndModule(); // %current_scope/%current_module
addInstr(new ThreadPollInstr()); // Thread poll on entry of closure
addInstr(new LabelInstr(((IRClosure) scope).startLabel)); // Start label -- used by redo!

// Build closure body and return the result of the closure
Expand Down Expand Up @@ -2498,7 +2494,6 @@ private void buildIterInner(IterNode iterNode) {
if (iterNode.getVarNode().getNodeType() != null) receiveBlockArgs(iterNode);

addCurrentScopeAndModule(); // %current_scope/%current_module
addInstr(new ThreadPollInstr()); // Thread poll on entry of closure
addInstr(new LabelInstr(((IRClosure) scope).startLabel)); // start label -- used by redo!

// Build closure body and return the result of the closure
Expand Down

0 comments on commit 2a123a0

Please sign in to comment.