(cleanup) Uncomment an assertion that now holds.

This commit is contained in:
Ben Blum 2013-08-02 19:35:13 -04:00
parent 2d1eb1916e
commit 47e82c8555

View file

@ -205,11 +205,10 @@ impl BlockedTask {
let flag_arc = match task.death.spare_kill_flag.take() {
Some(spare_flag) => spare_flag,
None => {
// FIXME(#7544): Uncomment this when terminate_current_task
// stops being *terrible*. That's the only place that violates
// the assumption of "becoming unkillable will fail if the
// task was killed".
// rtassert!(task.unwinder.unwinding);
// A task that kills us won't have a spare kill flag to
// give back to us, so we restore it ourselves here. This
// situation should only arise when we're already failing.
rtassert!(task.unwinder.unwinding);
(*task.death.kill_handle.get_ref().get()).killed.clone()
}
};