[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] 3b1d81: tests-aio-multithread: use atomic_rea
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] 3b1d81: tests-aio-multithread: use atomic_read properly |
Date: |
Mon, 27 Feb 2017 05:45:09 -0800 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: 3b1d8169844fafee184366b0e0d7080534758b4d
https://github.com/qemu/qemu/commit/3b1d8169844fafee184366b0e0d7080534758b4d
Author: Paolo Bonzini <address@hidden>
Date: 2017-02-27 (Mon, 27 Feb 2017)
Changed paths:
M tests/test-aio-multithread.c
Log Message:
-----------
tests-aio-multithread: use atomic_read properly
nodes[id].next is written by other threads. If atomic_read is not used
(matching atomic_set in mcs_mutex_lock!) the compiler can optimize the
whole "if" away!
Reported-by: Alex Bennée <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Tested-by: Greg Kurz <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] 3b1d81: tests-aio-multithread: use atomic_read properly,
GitHub <=