From 27dae84ed92f1ef0300263091972338d12e78348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 18 Oct 2025 19:06:52 +0200 Subject: New upstream version 1.4.1 --- tests/test-pthread-rwlock.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/test-pthread-rwlock.c') diff --git a/tests/test-pthread-rwlock.c b/tests/test-pthread-rwlock.c index 7ab8d5ee..8a4ab93b 100644 --- a/tests/test-pthread-rwlock.c +++ b/tests/test-pthread-rwlock.c @@ -1,5 +1,5 @@ /* Test of read-write locks in multithreaded situations. - Copyright (C) 2005, 2008-2024 Free Software Foundation, Inc. + Copyright (C) 2005, 2008-2025 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,6 +16,15 @@ /* Written by Bruno Haible , 2005. */ +/* This test fails when writer starvation occurs + . + It depends on the implementation of pthread rwlocks, cf. + , + as well as on the number of CPUs (because when there are >= 2*THREAD_COUNT + CPUs, the checker threads are more "efficient" at not giving away the + reader lock). + A failure was seen with musl libc/riscv64 on a machine with 64 CPUs. */ + #include #if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS -- cgit v1.2.3