diff options
author | Derek Mauro <dmauro@google.com> | 2024-04-03 20:21:06 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-04-03 20:21:58 (GMT) |
commit | d3a29ff624e0984a40a60dbc1f03ac74b8d03658 (patch) | |
tree | 87b342007dbbb096230f003b1e8b28fa431df0a0 /docs | |
parent | ec7b38672c04c8af3cfb078214edf6751b841014 (diff) | |
download | googletest-d3a29ff624e0984a40a60dbc1f03ac74b8d03658.zip googletest-d3a29ff624e0984a40a60dbc1f03ac74b8d03658.tar.gz googletest-d3a29ff624e0984a40a60dbc1f03ac74b8d03658.tar.bz2 |
Fix a race condition between the Watcher thread and the main thread
during program exit
A race condition exist between the Watcher thread and main(). A case
was found where the Watcher thread does not get execution time before
the main function returns and calls atexit(). At that point the
Watcher thread started runing tls_init() code while the main thread
was shutting down. This resulted in rare crashes and deadlocks.
Fixes #4493
Closes #4494
PiperOrigin-RevId: 621619768
Change-Id: I66f00d8f0f3c37f9937c6d13890f7fa10038256d
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions