[all-commits] [llvm/llvm-project] 908256: tsan: rearrange thread state callbacks (NFC)

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Tue Sep 21 04:26:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 908256b0ea3e3ba3b80dbe9c81fc68a1ee35ac33
      https://github.com/llvm/llvm-project/commit/908256b0ea3e3ba3b80dbe9c81fc68a1ee35ac33
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp

  Log Message:
  -----------
  tsan: rearrange thread state callbacks (NFC)

Thread state functions are split into 2 parts:
tsan entry function (e.g. ThreadStart) and thread registry
state change callback (e.g. OnStart). Currently these
pairs of functions are located far from each other and
in reverse order. This makes it hard to read and follow the logic.
Reorder the code so that OnFoo directly follows ThreadFoo.
No other code changes.

Reviewed By: melver

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




More information about the All-commits mailing list