]> Git Repo - qemu.git/commit
configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext
authorLingfeng Yang <[email protected]>
Fri, 12 Jun 2020 19:02:23 +0000 (20:02 +0100)
committerAlex Bennée <[email protected]>
Tue, 16 Jun 2020 13:49:05 +0000 (14:49 +0100)
commit0aebab04b9289bd37017593b413ce7a762b54c55
tree98905d512be034c19c907c07c351868bc7d9fe3d
parent897e34f20f2196089ad4910d95a7c74ee14292c8
configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext

We tried running QEMU under tsan in 2016, but tsan's lack of support for
longjmp-based fibers was a blocker:
  https://groups.google.com/forum/#!topic/thread-sanitizer/se0YuzfWazw

Fortunately, thread sanitizer gained fiber support in early 2019:
  https://reviews.llvm.org/D54889

This patch brings tsan support upstream by importing the patch that annotated
QEMU's coroutines as tsan fibers in Android's QEMU fork:
  https://android-review.googlesource.com/c/platform/external/qemu/+/844675

Tested with '--enable-tsan --cc=clang-9 --cxx=clang++-9 --disable-werror'
configure flags.

Signed-off-by: Lingfeng Yang <[email protected]>
Signed-off-by: Emilio G. Cota <[email protected]>
[cota: minor modifications + configure changes]
Signed-off-by: Robert Foley <[email protected]>
[RF: configure changes, coroutine fix + minor modifications]
Reviewed-by: Alex Bennée <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-Id: <20200609200738[email protected]>
Message-Id: <20200612190237[email protected]>
configure
util/coroutine-ucontext.c
This page took 0.024653 seconds and 4 git commands to generate.