[all-commits] [llvm/llvm-project] a06d35: [NFC][sanitizer] Track progress of populating the ...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Mon Nov 29 18:44:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a06d3527563503f17794bf119ee471d0ca2669ca
      https://github.com/llvm/llvm-project/commit/a06d3527563503f17794bf119ee471d0ca2669ca
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-11-29 (Mon, 29 Nov 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h
    M compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp
    M compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp

  Log Message:
  -----------
  [NFC][sanitizer] Track progress of populating the block

In multi-threaded application concurrent StackStore::Store may
finish in order different from assigned Id. So we can't assume
that after we switch writing the next block the previous is done.

The workaround is to count exact number of uptr stored into the block,
including skipped tail/head which were not able to fit entire trace.

Depends on D114490.

Reviewed By: morehouse

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




More information about the All-commits mailing list