[all-commits] [llvm/llvm-project] 8ce036: [scudo] Add ScopedTSD to avoid releasing TSD manua...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Mon Feb 5 14:36:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ce036d539cdaaee50ce7c63f963b7d68c43282e
      https://github.com/llvm/llvm-project/commit/8ce036d539cdaaee50ce7c63f963b7d68c43282e
  Author: ChiaHungDuan <chiahungduan at google.com>
  Date:   2024-02-05 (Mon, 05 Feb 2024)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h
    M compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/tsd_test.cpp
    M compiler-rt/lib/scudo/standalone/tsd_exclusive.h
    M compiler-rt/lib/scudo/standalone/tsd_shared.h

  Log Message:
  -----------
  [scudo] Add ScopedTSD to avoid releasing TSD manually (#80061)

This makes the use of TSD be RAII style and avoid the exposing of the
type of TSDs.

Also move some thread safety analyses from static to runtime because of
its limitation. Even we mark some code path as NO_THREAD_SAFETY_ANALYSIS
but we still have the `assertLocked()` cover the correctness.




More information about the All-commits mailing list