This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Flush the global thread pool in Debugger::Terminate
ClosedPublic

Authored by JDevlieghere on Aug 8 2022, 8:42 AM.

Details

Summary

Use the Initialize/Terminate pattern for the global thread pool to make sure it gets flushed during teardown.

Diff Detail

Event Timeline

JDevlieghere created this revision.Aug 8 2022, 8:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 8:42 AM
JDevlieghere requested review of this revision.Aug 8 2022, 8:42 AM
JDevlieghere updated this revision to Diff 450827.
  • Create the thread pool before the plugin callback

@labath Ping in case it got pushed down your review queue.

jasonmolenda accepted this revision.Aug 15 2022, 5:21 PM
jasonmolenda added a subscriber: jasonmolenda.

This looks good to me.

This revision is now accepted and ready to land.Aug 15 2022, 5:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2022, 5:57 PM