Skip to content

Commit 5512b31

Browse files
committed
---
yaml --- r: 174822 b: refs/heads/snap-stage3 c: da8023d h: refs/heads/master v: v3
1 parent 0e71ffc commit 5512b31

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: a0f86de49748b472d4d189d9688b0d856c000914
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a506d4cbfe8f20a2725c7efd9d43359a0bbd0e9e
4+
refs/heads/snap-stage3: da8023d653618431f8e1c651e0c3b83fa0d4269a
55
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)