From 38c81423abd845637e2d9a29f553251c7b29f36d Mon Sep 17 00:00:00 2001 From: bmjask <> Date: Thu, 26 Nov 2026 06:43:39 -0800 Subject: [PATCH] Tests: bound concurrent direct-DXIL translations Each translation already owns a 256 MiB-stack worker. Keep two translations concurrent to exercise separate thread-local and hash-map state, but remove redundant outer 64 MiB stacks and avoid crowding the other direct-DXIL tests in the four-thread suite. Assisted-by: Codex (GPT-5.6-sol) --- crates/xcl/src/gpu/dxil/robustness_tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/xcl/src/gpu/dxil/robustness_tests.rs b/crates/xcl/src/gpu/dxil/robustness_tests.rs index 46a06c63d4..00b1b45aeb 100644 --- a/crates/xcl/src/gpu/dxil/robustness_tests.rs +++ b/crates/xcl/src/gpu/dxil/robustness_tests.rs @@ -87,7 +87,10 @@ fn translation_is_byte_identical_across_runs_and_threads() { for _ in 0..3 { assert!(translate_all() == first, "a second translation differs"); } - let threads: Vec<_> = (0..4).map(|_| std::thread::Builder::new().stack_size(64 << 20).spawn(translate_all).unwrap()).collect(); + // Every translate already runs on its own 256 MiB-stack worker. Keep genuine concurrent + // translator coverage without adding four redundant 64 MiB outer stacks or crowding the + // other direct-DXIL tests which the harness runs in parallel. + let threads: Vec<_> = (0..2).map(|_| std::thread::spawn(translate_all)).collect(); for t in threads { assert!(t.join().unwrap() == first, "a translation on another thread differs"); }