This is an archive of the discontinued LLVM Phabricator instance.

Fix tsan problem where the per-thread shared_ptr() can be locked right before the cache is destroyed causing a race where it tries to remove an entry from a destroyed cache.
ClosedPublic

Authored by pschuh on Feb 3 2023, 2:04 PM.

Details

Summary

This is a rollforward with fixes of https://reviews.llvm.org/rGbcc10817d5569172ee065015747e226280e9b698 (originally https://reviews.llvm.org/D142394). The original patch exposed an asan problem on aarch64, which is fixed by simply calling the context destructors properly.

Diff Detail

Event Timeline

pschuh created this revision.Feb 3 2023, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2023, 2:04 PM
pschuh requested review of this revision.Feb 3 2023, 2:04 PM
rriddle accepted this revision.Feb 3 2023, 2:06 PM
This revision is now accepted and ready to land.Feb 3 2023, 2:06 PM