Opened 7 years ago

Closed 7 years ago

#7058 closed feature request (fixed)

Add strict version of modifySTRef

Reported by: joeyadams Owned by: simonmar
Priority: high Milestone: 7.6.1
Component: libraries/base Version: 7.4.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Runtime performance bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

We added strict versions of modifyIORef and atomicModifyIORef recently (see #5926), and STM has modifyTVar' since stm-2.3.

This patch adds modifySTRef', mostly copy-pasted from modifyIORef'. My ghc currently doesn't build, so I wasn't able to test it.

Attachments (1)

0001-Add-strict-version-of-modifySTRef.patch (1.9 KB) - added by joeyadams 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by joeyadams

comment:1 Changed 7 years ago by simonmar

difficulty: Unknown
Milestone: 7.6.1
Owner: set to simonmar
Priority: normalhigh

comment:2 Changed 7 years ago by simonmar

Resolution: fixed
Status: newclosed

Fixed:

commit 5ccd462b97f00802936eb75276bedcda6ed9edfb
Author: Joey Adams <joeyadams3.14159@gmail.com>
Date:   Sat Jul 7 22:13:52 2012 -0400

    Add strict version of modifySTRef
    
    Also, add a warning to modifySTRef, mostly copy-pasted from the warning
    for modifyIORef.
Note: See TracTickets for help on using tickets.