Bug 14068 – [AA] Concurrent access allowed

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-28T14:04:57Z
Last change time
2020-03-21T03:56:39Z
Keywords
accepts-invalid, safe, spec
Assigned to
No Owner
Creator
anonymous4
See also
https://issues.dlang.org/show_bug.cgi?id=16597

Comments

Comment #0 by dfj1esp02 — 2015-01-28T14:04:57Z
This compiles allowing concurrent modifications to AA: --- shared string[string] t; void main() { t["a"] = "b"; } --- Though it doesn't look like AA is thread-safe. And functions like T rehash(T : shared Value[Key], Value, Key)(T aa) can lead to believe it is. It should be also documented whether AA is thread-safe http://dlang.org/hash-map.html because there's no legible AA source to consult.
Comment #1 by b2.temp — 2019-03-20T22:11:42Z
*** This issue has been marked as a duplicate of issue 16597 ***