diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-07-22 15:17:38 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-07-31 12:19:13 -0700 |
commit | 79e29851bf57741252a20838cdc59074ab5bac29 (patch) | |
tree | 3f621495d951e70fda813d2903fa73148d4cede1 /util/thread-context.c | |
parent | d37a259fa4f5164e300e8a20cdd83fe39c7fdadb (diff) |
util/interval-tree: Use qatomic_read/set for rb_parent_color
While less susceptible to optimization problems than left and right,
interval_tree_iter_next also reads rb_parent(), so make sure that
stores and loads are atomic.
This goes further than technically required, changing all loads to
be atomic, rather than simply the ones in the iteration side. But
it doesn't really affect the code generation on the rebalance side
and is cleaner to handle everything the same.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'util/thread-context.c')
0 files changed, 0 insertions, 0 deletions