]> git.lizzy.rs Git - rust.git/commit
auto merge of #9723 : blake2-ppc/rust/trans-no-push-ctxt-clone, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 4 Oct 2013 23:21:36 +0000 (16:21 -0700)
committerbors <bors@rust-lang.org>
Fri, 4 Oct 2013 23:21:36 +0000 (16:21 -0700)
commit8cb3426f16e22215f9a8dd61bb8b965fb9b26023
tree09f66e0a9730281aaee65121da54de27b0275036
parentc5295f9c4713e77dbb8dfc76bc91e10fceaabbb2
parent87294c23baacaee17a13d2f7316fffc76239cff5
auto merge of #9723 : blake2-ppc/rust/trans-no-push-ctxt-clone, r=alexcrichton

Avoid cloning the stack on every `push_ctxt` call in trans

Rewrite the use of TLS variable for `push_ctxt` so that it uses a ~[]
instead of a @~[]. Before it cloned the whole vector on each push and
pop, which is unnecessary.