public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/30846] [gdb/symtab] incorrect parent for forward spec (inter-cu case)
Date: Tue, 16 Apr 2024 17:55:24 +0000	[thread overview]
Message-ID: <bug-30846-4717-P3t9VphXeu@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30846-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=30846

--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4320a9c921db0245e9486bf3144a326434919f15

commit 4320a9c921db0245e9486bf3144a326434919f15
Author: Tom Tromey <tom@tromey.com>
Date:   Fri Jan 12 18:29:52 2024 -0700

    Correctly handle DIE parent computations

    Tom de Vries pointed out that the combination of sharding,
    multi-threading, and per-CU "racing" means that sometimes a cross-CU
    DIE reference might not be correctly resolved.  However, it's
    important to handle this correctly, due to some unfortunate aspects of
    DWARF.

    This patch implements this by arranging to preserve each worker's DIE
    map through the end of index finalization.  The extra data is
    discarded when finalization is done.  This approach also allows the
    parent name resolution to be sharded, by integrating it into the
    existing entry finalization loop.

    In an earlier review, I remarked that addrmap couldn't be used here.
    However, I was mistaken.  A *mutable* addrmap cannot be used, as those
    are based on splay trees and restructure the tree even during lookups
    (and thus aren't thread-safe).  A fixed addrmap, on the other hand, is
    just a vector and is thread-safe.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30846

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2024-04-16 17:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13 14:32 [Bug symtab/30846] New: " vries at gcc dot gnu.org
2023-10-02 12:54 ` [Bug symtab/30846] " vries at gcc dot gnu.org
2024-01-18 15:41 ` tromey at sourceware dot org
2024-02-09 19:42 ` tromey at sourceware dot org
2024-04-16 17:55 ` cvs-commit at gcc dot gnu.org [this message]
2024-04-16 17:55 ` cvs-commit at gcc dot gnu.org
2024-04-16 17:55 ` cvs-commit at gcc dot gnu.org
2024-04-16 17:57 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30846-4717-P3t9VphXeu@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).