[all-commits] [llvm/llvm-project] 11c533: [sanitizer coverage] write the pc-table at the pro...

Kostya Serebryany via All-commits all-commits at lists.llvm.org
Tue Sep 21 09:09:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11c533e1ea38381726ed04ab65937a03fbfb3e19
      https://github.com/llvm/llvm-project/commit/11c533e1ea38381726ed04ab65937a03fbfb3e19
  Author: Kostya Serebryany <kcc at google.com>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
    M compiler-rt/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter_default_impl.cpp

  Log Message:
  -----------
  [sanitizer coverage] write the pc-table at the process exit

The current code writes the pc-table at the process startup,
which may happen before the common_flags() are initialized.
Move writing to the process end.
This is consistent with how we write the counters and avoids the problem with the uninitalized flags.
Add prints if verbosity>=1.

Reviewed By: kostik

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




More information about the All-commits mailing list