[all-commits] [llvm/llvm-project] aae707: [lsan] Expose Frontier object to OS-specific LockS...

Roland McGrath via All-commits all-commits at lists.llvm.org
Fri Jan 24 16:53:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: aae707cd881f35d1d191f03ed7ef3b5b394e8ddb
      https://github.com/llvm/llvm-project/commit/aae707cd881f35d1d191f03ed7ef3b5b394e8ddb
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2020-01-24 (Fri, 24 Jan 2020)

  Changed paths:
    M compiler-rt/lib/lsan/lsan_common.cpp
    M compiler-rt/lib/lsan/lsan_common.h
    M compiler-rt/lib/lsan/lsan_common_linux.cpp
    M compiler-rt/lib/lsan/lsan_common_mac.cpp

  Log Message:
  -----------
  [lsan] Expose Frontier object to OS-specific LockStuffAndStopTheWorld callback

This is a small refactoring to prepare for porting LSan to Fuchsia.
On Fuchsia, the system supplies a unified API for suspending threads and
enumerating roots from OS-specific places like thread state and global data
ranges. So its LockStuffAndStopTheWorld implementation will make specific
callbacks for all the OS-specific root collection work before making the
common callback that includes the actual leak-checking logic.

Patch By: mcgrathr

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




More information about the All-commits mailing list