[all-commits] [llvm/llvm-project] 4f7681: [scudo] Detach the hooks from Scudo's internal imp...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Fri Aug 25 09:22:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f76810d4860d851f069aa0caca24c54ab698c3b
      https://github.com/llvm/llvm-project/commit/4f76810d4860d851f069aa0caca24c54ab698c3b
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h
    M compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
    R compiler-rt/lib/scudo/standalone/tests/scudo_hooks_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp
    M compiler-rt/lib/scudo/standalone/wrappers_c.cpp
    M compiler-rt/lib/scudo/standalone/wrappers_c.inc
    M compiler-rt/lib/scudo/standalone/wrappers_c_bionic.cpp
    M compiler-rt/lib/scudo/standalone/wrappers_cpp.cpp

  Log Message:
  -----------
  [scudo] Detach the hooks from Scudo's internal implementation

Move the invocation of hooks from Scudo internal to wrapper_c.cpp and
wrapper_c_bionic.cpp respectively. Therefore, Scudo's core algorithm
doesnt need to worry about the reentrant of hooks and leave the caring
of reentrant to the hook users.

Reviewed By: hctim, cferris, chelfi

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




More information about the All-commits mailing list