[all-commits] [llvm/llvm-project] 045a62: Release the shadow memory used by the mmap range a...

Z via All-commits all-commits at lists.llvm.org
Fri Oct 2 13:18:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 045a620c455d2f27a536d687ee6a0299b9e2c734
      https://github.com/llvm/llvm-project/commit/045a620c455d2f27a536d687ee6a0299b9e2c734
  Author: Jianzhou Zhao <jianzhouzh at google.com>
  Date:   2020-10-02 (Fri, 02 Oct 2020)

  Changed paths:
    M compiler-rt/lib/dfsan/dfsan_interceptors.cpp
    A compiler-rt/test/dfsan/munmap_release_shadow.c

  Log Message:
  -----------
  Release the shadow memory used by the mmap range at munmap

When an application does a lot of pairs of mmap and munmap, if we did
not release shadoe memory used by mmap addresses, this would increase
memory usage.

Reviewed-by: morehouse

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




More information about the All-commits mailing list