-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Update FAQ: Shared does not cause memory barriers #1570
Conversation
|
I think we need to revisit this. |
|
@andralex I think |
|
Hmm... was it initially meant so? Some people wanted it, but I don't think the compiler itself was meant to do it. Do you mean Bartosz proposal here? |
The FAQ entry changed by this pull request is currently:
This is also mentioned in TDPL, chapter 13.12.1 Sequential consistency of shared data:
The discussion linked in the pull request description is more recent than TDPL though: |
|
I think we made a mistake in the forum discussion. For now let's update this PR by making it state the current state of affairs: "Currently the compiler does not insert memory barriers around |
Done.
Do we need another issues or can we use 14932 and 16198 for this? |
|
I think 14932 suffices ;) |
|
OK we're good with bugzilla. Thanks. |
There's been a question about this in D.learn recently:
http://forum.dlang.org/post/apoqhsoqksuwieklcnjj@forum.dlang.org
If I remember correctly the final decision from 2012 was that shared variables do not automatically cause any memory barriers, but we never documented this:
http://forum.dlang.org/post/k7pn19$bre$1@digitalmars.com
http://forum.dlang.org/post/mailman.1904.1352922666.5162.digitalmars-d@puremagic.com
ping @WalterBright @andralex