[all-commits] [llvm/llvm-project] f01824: [scudo][standalone] Enabled SCUDO_DEBUG for tests ...

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Fri Nov 15 08:34:20 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f018246c20481d222af4bab1868e8903c35c73d2
      https://github.com/llvm/llvm-project/commit/f018246c20481d222af4bab1868e8903c35c73d2
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2019-11-15 (Fri, 15 Nov 2019)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h
    M compiler-rt/lib/scudo/standalone/internal_defs.h
    M compiler-rt/lib/scudo/standalone/secondary.h
    M compiler-rt/lib/scudo/standalone/size_class_map.h
    M compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
    M compiler-rt/lib/scudo/standalone/vector.h

  Log Message:
  -----------
  [scudo][standalone] Enabled SCUDO_DEBUG for tests + fixes

Summary:
`SCUDO_DEBUG` was not enabled for unit tests, meaning the `DCHECK`s
were never tripped. While turning this on, I discovered that a few
of those not-exercised checks were actually wrong. This CL addresses
those incorrect checks.

Not that to work in tests `CHECK_IMPL` has to explicitely use the
`scudo` namespace. Also changes a C cast to a C++ cast.

Reviewers: hctim, pcc, cferris, eugenis, vitalybuka

Subscribers: mgorny, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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




More information about the All-commits mailing list