We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f9ce09 + 738ec51 commit 992b558Copy full SHA for 992b558
src/libextra/test.rs
@@ -731,13 +731,6 @@ fn run_tests(opts: &TestOpts,
731
}
732
733
734
-// Windows tends to dislike being overloaded with threads.
735
-#[cfg(windows)]
736
-static SCHED_OVERCOMMIT : uint = 1;
737
-
738
-#[cfg(unix)]
739
-static SCHED_OVERCOMMIT : uint = 4u;
740
741
fn get_concurrency() -> uint {
742
use std::rt;
743
match os::getenv("RUST_TEST_TASKS") {
@@ -749,9 +742,7 @@ fn get_concurrency() -> uint {
749
750
751
744
None => {
752
- let threads = rt::util::default_sched_threads();
753
- if threads == 1 { 1 }
754
- else { threads * SCHED_OVERCOMMIT }
745
+ rt::util::default_sched_threads()
755
746
756
747
757
748
0 commit comments