diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-06-19 00:49:05 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-06-19 00:49:05 -0700 |
| commit | 5722c953e5180ae3e086b4354f65ee8b5fb8d868 (patch) | |
| tree | c3a071128316a07cefd21ae294249850294e00bd | |
| parent | 915aaa7f67671186348b1b6c10d765a3d9ab6e37 (diff) | |
| download | rust-5722c953e5180ae3e086b4354f65ee8b5fb8d868.tar.gz rust-5722c953e5180ae3e086b4354f65ee8b5fb8d868.zip | |
std::rt: Correct the numbers of default cores
| -rw-r--r-- | src/libstd/rt/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 899fa171b72..58da7549b3f 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -197,12 +197,7 @@ pub fn run(main: ~fn()) -> int { let nthreads = match os::getenv("RUST_THREADS") { Some(nstr) => FromStr::from_str(nstr).get(), - None => unsafe { - // Using more threads than cores in test code - // to force the OS to preempt them frequently. - // Assuming that this help stress test concurrent types. - util::num_cpus() * 2 - } + None => unsafe { util::num_cpus() } }; let sleepers = SleeperList::new(); |
