Replace the atomicModifyMutVar# primop
This was accepted proposal #27. Specifically:
- Replace
atomicModifyMutVar#
withatomicModifyMutVar2#
. - Add
atomicModifyMutVar_#
andatomicSwapMutVar#
. - Add a function imitating
atomicModifyMutVar#
toGHC.Exts
for backwards compatibility. - Use the new primops where appropriate throughout
base
.
Trac metadata
Trac field | Value |
---|---|
Version | 8.5 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | simonmar |
Operating system | |
Architecture |