================ @@ -1410,8 +1416,22 @@ class Thread : public std::enable_shared_from_this<Thread>, /// The Thread backed by this thread, if any. lldb::ThreadWP m_backed_thread; - /// The Scripted Frame Providers for this thread. - llvm::SmallVector<lldb::SyntheticFrameProviderSP, 0> m_frame_providers; + /// Map from frame list ID to its frame provider. + /// Cleared in ClearStackFrames(), repopulated in GetStackFrameList(). + llvm::SmallDenseMap<uint64_t, lldb::SyntheticFrameProviderSP, 4> + m_frame_providers; ---------------- adrian-prantl wrote:
Similar as below, this is waisting 4 elements of inline storage in every thread, I would probably just make this a DenseMap, unless you are sure about 4 being the perfect size. https://github.com/llvm/llvm-project/pull/178823 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
