]> git.lizzy.rs Git - rust.git/commit
auto merge of #8656 : toddaaro/rust/idle-opt+cleaning, r=brson
authorbors <bors@rust-lang.org>
Wed, 21 Aug 2013 01:51:55 +0000 (18:51 -0700)
committerbors <bors@rust-lang.org>
Wed, 21 Aug 2013 01:51:55 +0000 (18:51 -0700)
commitd56b9b102b307b473487402b0e494975206237b6
tree85e3a24ee890729a3f7194bc39575343b6edc89b
parent0bc1ca404539102065ee0757944ce2288db4cb32
parent352ac2efdf825864335cd31e56fdda7352bb6a1a
auto merge of #8656 : toddaaro/rust/idle-opt+cleaning, r=brson

Fixed a memory leak caused by the singleton idle callback failing to close correctly. The problem was that the close function requires running inside a callback in the event loop, but we were trying to close the idle watcher after the loop returned from run. The fix was to just call run again to process this callback. There is an additional tweak to move the initialization logic fully into bootstrap, so tasks that do not ever call run do not have problems destructing.
src/libstd/rt/sched.rs
src/libstd/rt/uv/uvio.rs