Browse Source

Remove stack size overrides now that std defaults to 2MiB

pull/46/head
AzureMarker 3 years ago
parent
commit
12ba4278c6
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 2
      ctru-rs/examples/futures-tokio.rs
  2. 1
      ctru-rs/src/services/ps.rs

2
ctru-rs/examples/futures-tokio.rs

@ -31,8 +31,6 @@ fn main() {
let runtime_thread = std::thread::Builder::new() let runtime_thread = std::thread::Builder::new()
// Run on the system core // Run on the system core
.affinity(1) .affinity(1)
// Use a bigger stack size. Default is 0x1000 but we'd easily overflow that.
.stack_size(0x200000)
.spawn(move || { .spawn(move || {
runtime.block_on(async move { runtime.block_on(async move {
let mut wake_time = tokio::time::Instant::now() + Duration::from_secs(1); let mut wake_time = tokio::time::Instant::now() + Duration::from_secs(1);

1
ctru-rs/src/services/ps.rs

@ -124,7 +124,6 @@ mod tests {
// thread prints to the console, which is not captured by the default test // thread prints to the console, which is not captured by the default test
// harness and prints even when the test passes. // harness and prints even when the test passes.
std::thread::Builder::new() std::thread::Builder::new()
.stack_size(0x20_0000)
.spawn(|| { .spawn(|| {
let map: HashMap<i32, String> = HashMap::from_iter([ let map: HashMap<i32, String> = HashMap::from_iter([
(1_i32, String::from("123")), (1_i32, String::from("123")),

Loading…
Cancel
Save