Files
rust/library/std/tests
Paul Mabileau 962e9e2aab Test(lib/sync): Fix test_rwlock_max_readers for x86 Win7
The recently-added test currently systematically deadlocks when running
it under i686 Windows 7, but not x86_64 that passes it fine. This
therefore fixes the test for the target.

Empirically, the correct value for `MAX_READERS` seems to be `2^28 - 1`:
removing the `- 1` re-introduces the deadlock, at least under our
testing environment. This fix thus uses this value. However, I have no
real justification to support that, because I find myself a bit at a
loss when comparing the implementation details, the comment added above
the test and what the current value is; some help would therefore be
nice in this aspect. Also, the value change is restricted to 32-bit Win7
as there is no evidence to support it should be done for other targets.

Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
2026-04-08 10:50:37 +02:00
..
2025-02-07 16:54:07 +01:00
2024-04-28 18:04:25 -04:00
2026-02-22 19:59:25 +01:00
2026-02-26 23:11:40 +05:30
2024-04-28 18:04:25 -04:00
2025-02-09 17:11:13 +00:00
2024-07-29 08:26:52 +10:00