Skip to content

Commit 11ed8c4

Browse files
committed
---
yaml --- r: 67075 b: refs/heads/master c: 098709a h: refs/heads/master i: 67073: 368b194 67071: d497015 v: v3
1 parent 71da202 commit 11ed8c4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8d97c905ddecec2e2d0d72926bc4c9e739ccb6e3
2+
refs/heads/master: 098709aa638bb29998b5e6f2700997b13c2c6712
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libstd/rt/test.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,17 @@ pub fn run_in_mt_newsched_task(f: ~fn()) {
6464
use os;
6565
use from_str::FromStr;
6666
use rt::sched::Shutdown;
67-
use rt::util;
6867

6968
let f_cell = Cell::new(f);
7069

7170
do run_in_bare_thread {
7271
let nthreads = match os::getenv("RUST_RT_TEST_THREADS") {
7372
Some(nstr) => FromStr::from_str(nstr).get(),
7473
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
7978
}
8079
};
8180

0 commit comments

Comments
 (0)