[all-commits] [llvm/llvm-project] 70758b: [scudo] Calling getStats requires holding lock

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Mon Feb 13 15:11:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70758b801df9b76b8200ae6f22cab44554545693
      https://github.com/llvm/llvm-project/commit/70758b801df9b76b8200ae6f22cab44554545693
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h
    M compiler-rt/lib/scudo/standalone/primary32.h
    M compiler-rt/lib/scudo/standalone/primary64.h
    M compiler-rt/lib/scudo/standalone/quarantine.h
    M compiler-rt/lib/scudo/standalone/secondary.h

  Log Message:
  -----------
  [scudo] Calling getStats requires holding lock

We didn't acquire the mutex while accessing those lock protected data,
this CL fixes it and now we don't need to disable the allocator while
reading its states.

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




More information about the All-commits mailing list