public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* V2 Patch of fix for #BZ 25847
@ 2021-09-08  2:52 Malte Skarupke
  2021-09-08  2:52 ` [PATCH v2 1/6] nptl: Fix pthread_cond_signal missing a sleeper (#BZ 25847) Malte Skarupke
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Malte Skarupke @ 2021-09-08  2:52 UTC (permalink / raw)
  To: libc-alpha; +Cc: malteskarupke, triegel

Early this year I submitted patches to fix #BZ 25847. Here is a second
version of the same patches. I believe it incorporates all the feedback
from the first round:

The first patch now has the calls at the end of pthread_cond_wait in
the right order.

The third patch now clears the wake-request flag correctly, removing a
case where a waiter could write to a condvar after it was destroyed.

The fifth patch now renames wrefs to crefs.

I also updated comments as requested.

Finally I added another patch because I realized that g1_start was too
complex for its reduced role after signal stealing was no longer
possible, so the final patch cleans that up.

The one feedback I did not do is to benchmark this against the existing
code. Is there existing benchmark code? It looks like 'make bench' does
not have a test for condition variables.

Let me know if there is any other feedback.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-08  2:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08  2:52 V2 Patch of fix for #BZ 25847 Malte Skarupke
2021-09-08  2:52 ` [PATCH v2 1/6] nptl: Fix pthread_cond_signal missing a sleeper (#BZ 25847) Malte Skarupke
2021-09-08  2:52 ` [PATCH v2 2/6] nptl: Remove the signal-stealing code. It is no longer needed Malte Skarupke
2021-09-08  2:52 ` [PATCH v2 3/6] nptl: Optimization by not incrementing wrefs in pthread_cond_wait Malte Skarupke
2021-09-08  2:52 ` [PATCH v2 4/6] nptl: Make test-cond-printers check the number of waiters Malte Skarupke
2021-09-08  2:52 ` [PATCH v2 5/6] nptl: Rename __wrefs to __crefs because its meaning has changed Malte Skarupke
2021-09-08  2:52 ` [PATCH v2 6/6] nptl: Cleaning up __g1_start and related code in pthread_cond_wait Malte Skarupke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).