[PATCH] D54938: [clangd] Prevent thread starvation in tests on loaded systems.

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 27 04:01:01 PST 2018


kadircet accepted this revision.
kadircet added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clangd/tool/ClangdMain.cpp:356
+  if (Test)
+    preventThreadStarvationInTests();
   std::unique_ptr<SymbolIndex> StaticIdx;
----------------
Can we move this to the beginning of main, it seems like that's where we handle test specific adjustments, could be better to keep them in one place.


Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54938/new/

https://reviews.llvm.org/D54938





More information about the cfe-commits mailing list