File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
branches/snap-stage3/src/test/run-pass Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: a0f86de49748b472d4d189d9688b0d856c000914
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: a506d4cbfe8f20a2725c7efd9d43359a0bbd0e9e
4
+ refs/heads/snap-stage3: da8023d653618431f8e1c651e0c3b83fa0d4269a
5
5
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change 14
14
15
15
#![ feature( intrinsics) ]
16
16
17
+ use std:: thread:: Thread ;
18
+
17
19
extern "rust-intrinsic" {
18
20
pub fn init < T > ( ) -> T ;
19
21
}
20
22
21
23
const SIZE : usize = 1024 * 1024 ;
22
24
23
25
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 ( ) ;
25
30
}
You can’t perform that action at this time.
0 commit comments