[all-commits] [llvm/llvm-project] a60807: [libc][Obvious] Check if the state hasn't already ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Jul 11 12:35:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6080767268c04ab4dfcf22b12ac9f6ba6cf1a00
      https://github.com/llvm/llvm-project/commit/a6080767268c04ab4dfcf22b12ac9f6ba6cf1a00
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M libc/utils/gpu/server/rpc_server.cpp

  Log Message:
  -----------
  [libc][Obvious] Check if the state hasn't already been destroyed on shutdown

This ensures that if someone calls the `rpc_shutdown` method multiple
times it will not segfault and gracefully continue. This was causing
problems in the OpenMP usage. This could point to other issues, but for
now this is a safe fix.

Differential Revision: https://reviews.llvm.org/D155005




More information about the All-commits mailing list