about summary refs log tree commit diff
path: root/tests/ui/std/channel-stack-overflow-issue-102246.rs
AgeCommit message (Collapse)AuthorLines
2025-03-19Specify a concrete stack size in channel testsJeff Martin-5/+15
The channel-stack-overflow-issue-102246 regression test fails on platforms with a small default stack size (e.g. Fuchsia, with a default of 256KiB). Update the test to specify an exact stack size for both the sender and receiver operations, to ensure it is platform agnostic. Set the stack size to less than the total allocation size of the mpsc channel, to continue to prove that the allocation is on the heap.
2024-11-07This test needs threadsJosh Stone-0/+1
2024-11-07Initialize channel `Block`s directly on the heapJosh Stone-0/+28
The channel's `Block::new` was causing a stack overflow because it held 32 item slots, instantiated on the stack before moving to `Box::new`. The 32x multiplier made modestly-large item sizes untenable. That block is now initialized directly on the heap. Fixes #102246