Skip to content

Fix build issue with SharedMutex - #5211

Merged
SirTyson merged 1 commit into
stellar:masterfrom
SirTyson:fix-build
Apr 8, 2026
Merged

SirTyson merged 1 commit into
stellar:masterfrom
SirTyson:fix-build

Conversation

@SirTyson

@SirTyson SirTyson commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes minor build issue with tracy flags.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Copilot AI review requested due to automatic review settings April 8, 2026 20:23
@SirTyson
SirTyson enabled auto-merge April 8, 2026 20:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a build issue when compiling with Tracy enabled by declaring mLedgerStateSnapshotMutex using the project’s Tracy-aware shared-mutex macro, keeping the mutex type consistent with the SharedLockShared / SharedLockExclusive helpers used throughout LedgerManagerImpl.

Changes:

  • Replace a raw SharedMutex member with ANNOTATED_SHARED_MUTEX(...) to correctly select tracy::SharedLockable<std::shared_mutex> under USE_TRACY.

@SirTyson
SirTyson added this pull request to the merge queue Apr 8, 2026
Merged via the queue into stellar:master with commit 05da5cd Apr 8, 2026
71 checks passed
@SirTyson
SirTyson deleted the fix-build branch April 8, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants