mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
fix: 修正 test262 runner 监督组合行为与安全默认值
This commit is contained in:
@@ -248,11 +248,12 @@ pub(crate) fn run_supervised(
|
||||
id += 1;
|
||||
}
|
||||
|
||||
// 缺省 16:全量复测验证过的安全并发;未经复测不得抬高。
|
||||
let supervisors = std::env::var("OXIDE_TEST262_SUPERVISORS")
|
||||
.ok()
|
||||
.and_then(|s| s.parse::<usize>().ok())
|
||||
.filter(|&n| n > 0)
|
||||
.unwrap_or_else(|| std::thread::available_parallelism().map(|n| n.get()).unwrap_or(4))
|
||||
.unwrap_or(16)
|
||||
.min(windows.len().max(1));
|
||||
|
||||
eprintln!(
|
||||
|
||||
Reference in New Issue
Block a user