[all-commits] [llvm/llvm-project] 0d45bb: [scudo] Skip releaseToOSMaybe if there's no byte i...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Wed May 10 13:21:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d45bbcb6007f5c345bacd30f94d61f6d9dfebb2
      https://github.com/llvm/llvm-project/commit/0d45bbcb6007f5c345bacd30f94d61f6d9dfebb2
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2023-05-10 (Wed, 10 May 2023)

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

  Log Message:
  -----------
  [scudo] Skip releaseToOSMaybe if there's no byte in freelist

In primary32, the unused region will have max/min region index with 0
value and it's an invalid index. Skip releaseToOSMaybe in both primary32
and primary64 even it's M_PURGE_ALL.

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


  Commit: 6a057e7b51beaa54ebaece825ba1c87db0a7322d
      https://github.com/llvm/llvm-project/commit/6a057e7b51beaa54ebaece825ba1c87db0a7322d
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2023-05-10 (Wed, 10 May 2023)

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

  Log Message:
  -----------
  [scudo] Drain caches when release with M_PURGE_ALL

This will drain both quarantine and local caches.

Reviewed By: cferris

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


Compare: https://github.com/llvm/llvm-project/compare/642bd1123d05...6a057e7b51be


More information about the All-commits mailing list