Skip to content
Snippets Groups Projects
Commit 6bddfd3d authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

rts: Use fence rather than redundant load

Previously we would use an atomic load to ensure acquire ordering.
However, we now have `ACQUIRE_FENCE_ON`, which allows us to express this
more directly.
parent a6316eb4
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ isAlive(StgClosure *p)
return TAG_CLOSURE(tag,(StgClosure*)UN_FORWARDING_PTR(info));
}
info = ACQUIRE_LOAD(&q->header.info);
ACQUIRE_FENCE_ON(&q->header.info);
info = INFO_PTR_TO_STRUCT(info);
switch (info->type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment