[all-commits] [llvm/llvm-project] 82e599: [hwasan] Do not memset allocation if it comes from...

PiJoules via All-commits all-commits at lists.llvm.org
Wed Apr 26 14:50:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82e5994c8d72734be813db7ea56af7325b9c9f68
      https://github.com/llvm/llvm-project/commit/82e5994c8d72734be813db7ea56af7325b9c9f68
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_allocator.cpp

  Log Message:
  -----------
  [hwasan] Do not memset allocation if it comes from the secondary allocator

The secondary allocator calls mmap which should return zero-inited pages, so we
don't need to explicitly memset it with zeros. This is similar to what asan's
calloc does.

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




More information about the All-commits mailing list