cosmopolitan/tool/scripts
Justine Tunney e939659b70
Fix ordering of pthread_create(pthread_t *thread)
This change fixes a bug where signal_latency_async_test would flake less
than 1/1000 of the time. What was happening was pthread_kill(sender_thr)
would return EFAULT. This was because pthread_create() was not returning
the thread object pointer until after clone() had been called. So it was
actually possible for the main thread to stall after calling clone() and
during that time the receiver would launch and receive a signal from the
sender thread, and then fail when it tried to send a pong. I thought I'd
use a barrier at first, in the test, to synchronize thread creation, but
I firmly believe that pthread_create() was to blame and now that's fixed
2025-01-03 17:34:29 -08:00
..
asmexpr Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk1 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk2 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk3 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk4 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk5 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk6 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk7 Pay off more technical debt 2022-09-12 23:36:56 -07:00
awk8 Pay off more technical debt 2022-09-12 23:36:56 -07:00
bf Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
bloat Pay off more technical debt 2022-09-12 23:36:56 -07:00
explain-deps.py Refactor and improve CTL and other code 2024-06-04 05:45:48 -07:00
ezgdb Pay off more technical debt 2022-09-12 23:36:56 -07:00
find-autonomous-objects Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
fix-third-party.py Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
flakes Fix ordering of pthread_create(pthread_t *thread) 2025-01-03 17:34:29 -08:00
get-deps.py Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
grep Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
loc Pay off more technical debt 2022-09-12 23:36:56 -07:00
man2txt Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
obj Pay off more technical debt 2022-09-12 23:36:56 -07:00
pb Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
pe Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
performance Pay off more technical debt 2022-09-12 23:36:56 -07:00
po Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
powersave Pay off more technical debt 2022-09-12 23:36:56 -07:00
px Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
re Pay off more technical debt 2022-09-12 23:36:56 -07:00
renameheader Pay off more technical debt 2022-09-12 23:36:56 -07:00
resurrect-file Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
wut Pay off more technical debt 2022-09-12 23:36:56 -07:00