[all-commits] [llvm/llvm-project] 5172be: [scudo] Release pages of larger block more frequently

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Wed May 31 13:14:50 PDT 2023


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

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

  Log Message:
  -----------
  [scudo] Release pages of larger block more frequently

Release pages for large block (size greater than a page) is faster than
the small blocks. Besides, larger blocks are supposed not to be used
so often like smaller blocks which means we may hold several pages used
by large block and rarely get chance to release them if there's no
explicit M_PURGE call. Therefore, relax the release-interval condition
for large block.

This also fixes the assumption that FORCE_ALL should always try page
release.

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




More information about the All-commits mailing list