Skip to content

Commit 1228fbd

Browse files
committed
---
yaml --- r: 64494 b: refs/heads/snap-stage3 c: 098709a h: refs/heads/master v: v3
1 parent 4e7c6f5 commit 1228fbd

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,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8d97c905ddecec2e2d0d72926bc4c9e739ccb6e3
4+
refs/heads/snap-stage3: 098709aa638bb29998b5e6f2700997b13c2c6712
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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