aboutsummaryrefslogtreecommitdiff
path: root/gdb/make-init-c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-24 15:53:22 -0600
committerTom Tromey <tom@tromey.com>2023-03-31 08:40:11 -0600
commit6f214d0f399847b13f979651c3b46befcbb42140 (patch)
tree07c6fe221bbe2eb79cf5cddfdeb0b3c9a3c520b4 /gdb/make-init-c
parent03d83cd5f55abef6a8e6b8e1811cb86f8a05d616 (diff)
downloadfsf-binutils-gdb-6f214d0f399847b13f979651c3b46befcbb42140.zip
fsf-binutils-gdb-6f214d0f399847b13f979651c3b46befcbb42140.tar.gz
fsf-binutils-gdb-6f214d0f399847b13f979651c3b46befcbb42140.tar.bz2
Fix race in background index-cache writing
Tom de Vries pointed out a bug in the index-cache background writer -- sometimes it will fail. He also noted that it fails when the number of worker threads is set to zero. These turn out to be the same problem -- the cache can't be written to until the per-BFD's "index_table" member is set. This patch avoids the race by rearranging the code slightly, to ensure the cache cannot possibly be written before the member is set. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30261
Diffstat (limited to 'gdb/make-init-c')
0 files changed, 0 insertions, 0 deletions