Skip to content

Gate DwarfFDECache with _LIBUNWIND_NO_HEAP more carefully#35

Merged
alexey-milovidov merged 1 commit intomasterfrom
noheap
Feb 13, 2025
Merged

Gate DwarfFDECache with _LIBUNWIND_NO_HEAP more carefully#35
alexey-milovidov merged 1 commit intomasterfrom
noheap

Conversation

@al13n321
Copy link
Copy Markdown
Member

@al13n321 al13n321 commented Feb 13, 2025

Avoid using mutex in DwarfFDECache when the cache is disabled.

We used to already have this: https://github.com/ClickHouse/libunwind/pull/1/files , but that change wasn't reapplied after an update: #17 . That re-broke signal safety: ClickHouse/ClickHouse#69904 . Then signal safety was fixed a different way, by making it ok to lock the mutex: #34 . Now this PR also avoid the unnecessary mutex locking.

@alexey-milovidov alexey-milovidov self-assigned this Feb 13, 2025
@alexey-milovidov alexey-milovidov merged commit 89b833a into master Feb 13, 2025
al13n321 added a commit to ClickHouse/ClickHouse that referenced this pull request Feb 13, 2025
al13n321 added a commit to ClickHouse/ClickHouse that referenced this pull request Feb 14, 2025
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.

2 participants