Skip to content

Conversation

@alecmocatta
Copy link

Currently Box::new(ArrayDeque::<1_000_000, u32>()) will likely cause a stackoverflow due to the ArrayDeque being written to the stack and then copied into the Box. This occurs even in release mode.

This manifests as a SIGSEGV for me on macOS (at least until rust-lang/rust#77071 lands).

This method is necessary to avoid such a stack overflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant