[all-commits] [llvm/llvm-project] e96641: scudo: Move getChunkFromBlock() allocated check in...

pcc via All-commits all-commits at lists.llvm.org
Tue Dec 10 12:09:32 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e966416ff15178bf982430085be9ae69e5a511fa
      https://github.com/llvm/llvm-project/commit/e966416ff15178bf982430085be9ae69e5a511fa
  Author: Peter Collingbourne <peter at pcc.me.uk>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

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

  Log Message:
  -----------
  scudo: Move getChunkFromBlock() allocated check into caller. NFCI.

With tag-on-free we will need to get the chunk of a deallocated block. Change
getChunkFromBlock() so that it doesn't check that the chunk is allocated,
and move the check into the caller, so that it can be reused for this purpose.

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




More information about the All-commits mailing list