[all-commits] [llvm/llvm-project] c904c3: [GWP-ASan] Fix flaky test on Fuchsia

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Wed Dec 2 09:01:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c904c32b9c9243b11ffc18e46b7350f000e9c088
      https://github.com/llvm/llvm-project/commit/c904c32b9c9243b11ffc18e46b7350f000e9c088
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2020-12-02 (Wed, 02 Dec 2020)

  Changed paths:
    M compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp

  Log Message:
  -----------
  [GWP-ASan] Fix flaky test on Fuchsia

The LateInit test might be reusing some already initialized thread
specific data if run within the main thread. This means that there
is a chance that the current value will not be enough for the 100
iterations, hence the test flaking.

Fix this by making the test run in its own thread.

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




More information about the All-commits mailing list