diff options
author | Stefan Hajnoczi | 2022-03-07 16:38:51 +0100 |
---|---|---|
committer | Kevin Wolf | 2022-05-04 15:55:23 +0200 |
commit | 34145a307d849d0b6734d0222a7aa0bb9eef7407 (patch) | |
tree | f7a3b008ee2db53d3a41e97da2e606637c73087e /util/event_notifier-win32.c | |
parent | iotests/reopen-file: Test reopening file child (diff) | |
download | qemu-34145a307d849d0b6734d0222a7aa0bb9eef7407.tar.gz qemu-34145a307d849d0b6734d0222a7aa0bb9eef7407.tar.xz qemu-34145a307d849d0b6734d0222a7aa0bb9eef7407.zip |
coroutine-ucontext: use QEMU_DEFINE_STATIC_CO_TLS()
Thread-Local Storage variables cannot be used directly from coroutine
code because the compiler may optimize TLS variable accesses across
qemu_coroutine_yield() calls. When the coroutine is re-entered from
another thread the TLS variables from the old thread must no longer be
used.
Use QEMU_DEFINE_STATIC_CO_TLS() for the current and leader variables.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220307153853.602859-2-stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util/event_notifier-win32.c')
0 files changed, 0 insertions, 0 deletions