-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about fence(SC) & Promise #411
Comments
From the Promising semantic paper,
So T1 can't promise |
|
@tomtomjhj Thanks for a thoughtful answer. |
I tried:
X = 1@1
at T1.X = 1
. At that moment,r2
becomes1
read fromY
and move the global view{ X: 0@0, Y: 0@0 }
to{ X: 0@0, Y: 1@2}
since T1's view is also{ X: 0@0, Y: 1@2}
.X = 1@1
and judge this behavior is allowed.Question
However, It's weird because, as I know, it cannot be reordered by store-hoisting due to
fence(SC)
which forbids to reorder the program order back and forth. But it seems to be allowed on Promising Semantics. Did I miss something?The text was updated successfully, but these errors were encountered: