[all-commits] [llvm/llvm-project] 8c61ef: [clangd] Explicitly block until async task complet...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Thu Mar 6 04:38:30 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c61ef17c3aefd13eaf75f401aa8f3c7dd5d4a12
      https://github.com/llvm/llvm-project/commit/8c61ef17c3aefd13eaf75f401aa8f3c7dd5d4a12
  Author: kadir çetinkaya <kadircet at google.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M clang-tools-extra/clangd/ClangdServer.cpp
    M clang-tools-extra/clangd/CodeComplete.h

  Log Message:
  -----------
  [clangd] Explicitly block until async task completes (#130077)

We started seeing some use-after-frees starting with
https://github.com/llvm/llvm-project/pull/125433.

This patch ensures we explicitly block for the async task, if there's
one, before destructing `std::future`, independent of the stdlib
implementation.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list