[all-commits] [llvm/llvm-project] 8bda5f: [clangd] abort if shutdown takes more than a minute.
Sam McCall via All-commits
all-commits at lists.llvm.org
Wed Oct 23 08:53:28 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8bda5f20674df1765bce8f0866204dff93ed244c
https://github.com/llvm/llvm-project/commit/8bda5f20674df1765bce8f0866204dff93ed244c
Author: Sam McCall <sammccall at google.com>
Date: 2019-10-23 (Wed, 23 Oct 2019)
Changed paths:
M clang-tools-extra/clangd/ClangdLSPServer.cpp
M clang-tools-extra/clangd/ClangdLSPServer.h
M clang-tools-extra/clangd/tool/ClangdMain.cpp
Log Message:
-----------
[clangd] abort if shutdown takes more than a minute.
Summary:
A certain class of bug (e.g. infloop on an AST worker thread) currently means
clangd never terminates, even if the editor shuts down the protocol and closes
our stdin, and the main thread recognizes that.
Instead, let's wait 60 seconds for threads to finish cleanly, and then crash
if they haven't.
(Obviously, we should still fix these bugs).
Reviewers: kadircet
Subscribers: MaskRay, jkorous, arphaman, jfb, usaxena95, cfe-commits, ilya-biryukov
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69329
More information about the All-commits
mailing list