[Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

Zachary Turner via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 20 14:42:31 PDT 2018


zturner added a comment.

Long term I think one potentially interesting possibility for solving a lot of these threading and lazy evaluation issues is to make a task queue that runs all related operations on a single thread and returns a future you can wait on.  This way, the core data structures themselves do not need synchronization because they are only ever accessed from one thread.  I actually have a patch in progress <https://reviews.llvm.org/D48240> to make this kind of infrastructure, which I actually needed for a different reason, but it would work equally well here.

Mostly just putting this out there as an idea for down the road, not that you should do it right now.


https://reviews.llvm.org/D48393





More information about the lldb-commits mailing list