[PATCH] D157459: Make DWARFContext more thread safe.
Greg Clayton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 28 21:28:43 PDT 2023
clayborg updated this revision to Diff 554162.
clayborg added a comment.
Herald added subscribers: hoy, wlei, cmtice, MaskRay.
Herald added a reviewer: jhenderson.
Created a DWARFContextState pure virtual class that contains all of the thread sensitive member variables for the DWARFContextClass.
Multi threaded access can be enabled by passing boolean to enable it in the DWARFContext constructor and create static functions. If threading is disabled we instantiate a SingleThreadedState class that contains the ivars and no mutex for thread safety. If we enable threading, a ThreadSafeState is created that uses a mutex to protect access to ivars and calls the work functions in the SingleThreadedState.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157459/new/
https://reviews.llvm.org/D157459
Files:
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
llvm/lib/ProfileData/RawMemProfReader.cpp
llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
llvm/tools/llvm-dwarfutil/DebugInfoLinker.cpp
llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
llvm/tools/llvm-profgen/ProfiledBinary.cpp
llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157459.554162.patch
Type: text/x-patch
Size: 63312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230829/58813ed2/attachment.bin>
More information about the llvm-commits
mailing list