diff options
| author | Ben Gamari <ben@smart-cactus.org> | 2022-11-10 19:47:53 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2023-04-12 07:42:54 -0400 |
| commit | 93b4e418ecce76ed53ea89827332e811fa8ce59d (patch) | |
| tree | 471bea54c5fdb070c16054a2586c38c738417ab5 | |
| parent | 5ea94343e27b873eb20ffb417ce213d9bf423c3f (diff) | |
| download | haskell-93b4e418ecce76ed53ea89827332e811fa8ce59d.tar.gz | |
nonmoving: Make segment state updates atomic
(cherry picked from commit 377697ea4d44023e0c690d722e1e27f03629227f)
| -rw-r--r-- | rts/sm/NonMoving.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/sm/NonMoving.h b/rts/sm/NonMoving.h index 8cc90d13cc..1f01a57a85 100644 --- a/rts/sm/NonMoving.h +++ b/rts/sm/NonMoving.h @@ -44,7 +44,7 @@ enum NonmovingSegmentState { FREE, CURRENT, ACTIVE, FILLED, FILLED_SWEEPING }; -#define SET_SEGMENT_STATE(seg, st) (seg)->state = (st) +#define SET_SEGMENT_STATE(seg, st) RELAXED_STORE(&(seg)->state, (st)) #else #define SET_SEGMENT_STATE(_seg,_st) #endif |
