This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Disable DwarfFDECache if _LIBUNWIND_NO_HEAP=1
Needs ReviewPublic

Authored by kitaisreal on Jun 3 2022, 10:25 AM.

Details

Reviewers
None
Group Reviewers
Restricted Project

Diff Detail

Repository
rUNW libunwind

Event Timeline

kitaisreal created this revision.Jun 3 2022, 10:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2022, 10:25 AM
kitaisreal requested review of this revision.Jun 3 2022, 10:25 AM

In add method of DwarfFDECache we disable adding entries into cache if _LIBUNWIND_NO_HEAP=1. Other methods could also be disabled if _LIBUNWIND_NO_HEAP=1, to avoid mutex lock, unlock and empty cache check.

kitaisreal added projects: Restricted Project, Restricted Project, Restricted Project.Jun 9 2022, 7:34 AM
kitaisreal added a reviewer: Restricted Project.Jul 2 2023, 10:09 AM