Skip to content

Commit

Permalink
[Truffle] Remove at_exit hooks from the list as they are run.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Mar 9, 2015
1 parent 765a3ef commit f4d56c9
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -30,7 +30,9 @@ public synchronized void run() {
final ListIterator<RubyProc> iterator = blocks.listIterator(blocks.size());

while (iterator.hasPrevious()) {
iterator.previous().rootCall();
RubyProc hook = iterator.previous();
iterator.remove();
hook.rootCall();
}
}
}

0 comments on commit f4d56c9

Please sign in to comment.