Skip to content

Commit 9927519

Browse files
committed
---
yaml --- r: 176359 b: refs/heads/try c: da8023d h: refs/heads/master i: 176357: 7e2dc08 176355: 8bfafcd 176351: 7baaa19 v: v3
1 parent 18c79ee commit 9927519

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: a530cc9706324ad44dba464d541a807eb5afdb08
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 777435990e0e91df6b72ce80c9b6fa485eeb5daa
5-
refs/heads/try: a506d4cbfe8f20a2725c7efd9d43359a0bbd0e9e
5+
refs/heads/try: da8023d653618431f8e1c651e0c3b83fa0d4269a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/test/run-pass/init-large-type.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@
1414

1515
#![feature(intrinsics)]
1616

17+
use std::thread::Thread;
18+
1719
extern "rust-intrinsic" {
1820
pub fn init<T>() -> T;
1921
}
2022

2123
const SIZE: usize = 1024 * 1024;
2224

2325
fn main() {
24-
let _memory: [u8; SIZE] = unsafe { init() };
26+
// do the test in a new thread to avoid (spurious?) stack overflows
27+
let _ = Thread::scoped(|| {
28+
let _memory: [u8; SIZE] = unsafe { init() };
29+
}).join();
2530
}

0 commit comments

Comments
 (0)