[all-commits] [llvm/llvm-project] 318f60: [lldb] Protect OptionValue accesses from data races

Augusto Noronha via All-commits all-commits at lists.llvm.org
Fri Aug 4 15:34:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 318f600722e3cc6745317bb68309f82656c97b27
      https://github.com/llvm/llvm-project/commit/318f600722e3cc6745317bb68309f82656c97b27
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M lldb/include/lldb/Interpreter/OptionValue.h
    M lldb/source/Interpreter/OptionValue.cpp

  Log Message:
  -----------
  [lldb] Protect OptionValue accesses from data races

Thread sanitizer is catching data races in OptionValue, protect accesses
to OptionValue with a mutex.

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




More information about the All-commits mailing list