[all-commits] [llvm/llvm-project] 326b00: sanitizer_common: use 0 for empty stack id

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Jul 12 03:24:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 326b0054fd32ecaa6da0c7ae014fb9bbf1e80048
      https://github.com/llvm/llvm-project/commit/326b0054fd32ecaa6da0c7ae014fb9bbf1e80048
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cpp

  Log Message:
  -----------
  sanitizer_common: use 0 for empty stack id

We use 0 for empty stack id from stack depot.
Deadlock detector 1 is the only place that uses -1
as a special case. Use 0 because there is a number
of checks of the form "if (stack id) ...".

Reviewed By: melver

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




More information about the All-commits mailing list