pu369com

2021年9月10日

rust thread '<main>' has overflowed its stack in Rust

摘要: 在子线程中,写成这样就不提示溢出了 use std::thread; use std::time::Duration; fn main() { let handle = thread::Builder::new().stack_size(2 * 1024 * 1024 * 1024 ).spawn( 阅读全文

posted @ 2021-09-10 16:29 pu369com 阅读(359) 评论(0) 推荐(0) 编辑

导航