about summary refs log tree commit diff
path: root/src/test/bench/task-perf-alloc-unwind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/bench/task-perf-alloc-unwind.rs')
-rw-r--r--src/test/bench/task-perf-alloc-unwind.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/bench/task-perf-alloc-unwind.rs b/src/test/bench/task-perf-alloc-unwind.rs
index 9e78ede74ca..55e8dcbb6e8 100644
--- a/src/test/bench/task-perf-alloc-unwind.rs
+++ b/src/test/bench/task-perf-alloc-unwind.rs
@@ -36,7 +36,7 @@ fn main() {
 fn run(repeat: int, depth: int) {
     for _ in range(0, repeat) {
         let dur = Duration::span(|| {
-            let _ = Thread::spawn(move|| {
+            let _ = Thread::scoped(move|| {
                 recurse_or_panic(depth, None)
             }).join();
         });