aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-01-28 09:14:04 -0700
committerTom Tromey <tom@tromey.com>2024-03-08 17:25:50 -0700
commited29a346be439466ff2a5ce33e715e02c49fbdac (patch)
tree05fd227f4e975aca54a71f9b442f401dcb03ae31 /libbacktrace
parentba9583c7d598df78c45b86073cdbf1a9d7c40377 (diff)
downloadbinutils-ed29a346be439466ff2a5ce33e715e02c49fbdac.zip
binutils-ed29a346be439466ff2a5ce33e715e02c49fbdac.tar.gz
binutils-ed29a346be439466ff2a5ce33e715e02c49fbdac.tar.bz2
Avoid race when writing to index cache
The background DWARF reader changes introduced a race when writing to the index cache. The problem here is that constructing the index_cache_store_context object should only happen on the main thread, to ensure that the various value captures do not race. This patch adds an assert to the construct to that effect, and then arranges for this object to be constructed by the cooked_index_worker constructor -- which is only invoked on the main thread. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31262
Diffstat (limited to 'libbacktrace')
0 files changed, 0 insertions, 0 deletions