Skip to content

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Apr 2, 2025

Backport e0f8898

Requested by: @nikic

@llvmbot
Copy link
Member Author

llvmbot commented Apr 2, 2025

@serge-sans-paille What do you think about merging this PR to the release branch?

@nikic nikic moved this from Needs Triage to Needs Review in LLVM Release Status Apr 2, 2025
See https://bugzilla.redhat.com/2336915
See https://reviews.llvm.org/D41784?id=
See
androm3da/optviewer-demo#4 (comment)

Fixes llvm#62403.

The race condition happened when the demangler_proc was being set. The
locking mechanism itself happened too late.

This way, the lock always exists (to avoid a race when creating it) and
is always used when *creating* demangler_proc.

(cherry picked from commit e0f8898)
@tstellar tstellar merged commit d5bb7b8 into llvm:release/20.x Apr 11, 2025
7 of 10 checks passed
@github-project-automation github-project-automation bot moved this from Needs Review to Done in LLVM Release Status Apr 11, 2025
Copy link

@nikic (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants