aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
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 /bfd/bfd-in2.h
parentba9583c7d598df78c45b86073cdbf1a9d7c40377 (diff)
downloadgdb-ed29a346be439466ff2a5ce33e715e02c49fbdac.zip
gdb-ed29a346be439466ff2a5ce33e715e02c49fbdac.tar.gz
gdb-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 'bfd/bfd-in2.h')
0 files changed, 0 insertions, 0 deletions