Using mutable array after an unsafeFreezeArray, and GC details

Brandon Simmons brandon.m.simmons at
Sat May 10 18:52:47 UTC 2014

On Sat, May 10, 2014 at 2:47 PM, Brandon Simmons
<brandon.m.simmons at> wrote:
> On Fri, May 9, 2014 at 7:49 PM, Carter Schonwald
> <carter.schonwald at> wrote:
>> Any chance you could try to use storable or unboxed vectors?
> Yeah, I'd thought about a variant for Storables, but it didn't seem
> like it would be a win on paper (probably requiring a CAS on one
> unboxed array, a loadLoadBarrier, and a second write to a different

Sorry s/loadLoadBarrier/writeBarrier/  i.e. write_barrier() from SMP.h

By the way, I'm playing with concurrent FIFO queue designs, I realized
I haven't mentioned!

> unboxed array), but it would probably be worth playing with in light
> of this issue. Thanks for the suggestion!
> Brandon

More information about the Glasgow-haskell-users mailing list