File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8d97c905ddecec2e2d0d72926bc4c9e739ccb6e3
2
+ refs/heads/master: 098709aa638bb29998b5e6f2700997b13c2c6712
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
Original file line number Diff line number Diff line change @@ -64,18 +64,17 @@ pub fn run_in_mt_newsched_task(f: ~fn()) {
64
64
use os;
65
65
use from_str:: FromStr ;
66
66
use rt:: sched:: Shutdown ;
67
- use rt:: util;
68
67
69
68
let f_cell = Cell :: new ( f) ;
70
69
71
70
do run_in_bare_thread {
72
71
let nthreads = match os:: getenv ( "RUST_RT_TEST_THREADS" ) {
73
72
Some ( nstr) => FromStr :: from_str ( nstr) . get ( ) ,
74
73
None => {
75
- // Using more threads than cores in test code
76
- // to force the OS to preempt them frequently.
77
- // Assuming that this help stress test concurrent types.
78
- util :: num_cpus ( ) * 2
74
+ // A reasonable number of threads for testing
75
+ // multithreading. NB: It's easy to exhaust OS X's
76
+ // low maximum fd limit by setting this too high (#7772)
77
+ 4
79
78
}
80
79
} ;
81
80
You can’t perform that action at this time.
0 commit comments