未验证 提交 ba3c2452 编写于 作者: Y Yuki Okushi 提交者: GitHub

Rollup merge of #74598 - mzohreva:mz/fix-test, r=KodrAus

Fix sync_once_cell_does_not_leak_partially_constructed_boxes

Spinning multiple threads in this test causes a deadlock in
SGX where thread scheduling is not preemptive.

cc @jethrogb @AdrianCX
......@@ -827,6 +827,8 @@ fn sync_once_cell_does_not_leak_partially_constructed_boxes() {
tx.send(msg).unwrap();
break;
}
#[cfg(target_env = "sgx")]
crate::thread::yield_now();
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册