public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [pushed 0/4] [gdb/symtab] Fix more index-cache data races
@ 2023-08-04 13:06 Tom de Vries
  2023-08-04 13:06 ` [pushed 1/4] [gdb/symtab] Fix data race on dwarf2_per_cu_data::{mark,is_debug_types} Tom de Vries
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tom de Vries @ 2023-08-04 13:06 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

PR symtab/30718 reports two more data races when using the index-cache.

This series contains:
- two fixes, one for each data race,
- a test-case patch that addresses a problem that made it difficult to
  reproduce the data races in the gdb.base/index-cache.exp test-case, and
- a test-case patch that adds the regression test for this PR.

Because the fixes are similar to the recently committed patches:
- [gdb/symtab] Fix data race on
  dwarf2_per_cu_data::{m_header_read_in,is_debug_type}
- [gdb/symtab] Fix race on dwarf2_per_cu_data::{queued,is_debug_type}
I consider them obvious.

Tested on x86_64-linux.

Tom de Vries (4):
  [gdb/symtab] Fix data race on
    dwarf2_per_cu_data::{mark,is_debug_types}
  [gdb/symtab] Fix data race on
    dwarf2_per_cu_data::{files_read,is_debug_types}
  [gdb/testsuite] Move "maint wait-for-index-cache" ALAP in
    gdb.base/index-cache.exp
  [gdb/testsuite] Extend gdb.base/index-cache.exp further

 gdb/dwarf2/read.h                      | 20 ++++++------
 gdb/testsuite/gdb.base/index-cache.exp | 45 +++++++++++++++-----------
 2 files changed, 37 insertions(+), 28 deletions(-)


base-commit: b44293099e215d6558a8d91b5eaab137218d2e27
-- 
2.35.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-04 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04 13:06 [pushed 0/4] [gdb/symtab] Fix more index-cache data races Tom de Vries
2023-08-04 13:06 ` [pushed 1/4] [gdb/symtab] Fix data race on dwarf2_per_cu_data::{mark,is_debug_types} Tom de Vries
2023-08-04 13:06 ` [pushed 2/4] [gdb/symtab] Fix data race on dwarf2_per_cu_data::{files_read,is_debug_types} Tom de Vries
2023-08-04 13:06 ` [pushed 3/4] [gdb/testsuite] Move "maint wait-for-index-cache" ALAP in gdb.base/index-cache.exp Tom de Vries
2023-08-04 13:06 ` [pushed 4/4] [gdb/testsuite] Extend gdb.base/index-cache.exp further Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).