Using mutable array after an unsafeFreezeArray, and GC details

Brandon Simmons brandon.m.simmons at gmail.com
Fri May 9 18:21:22 UTC 2014


A couple of updates: Edward Yang responded here, confirming the sort
of track I was thinking on:

  http://blog.ezyang.com/2014/05/ghc-and-mutable-arrays-a-dirty-little-secret/

And I can report that:
  1) cloning a frozen array doesn't provide the benefits of creating a
new array and freezing
  2) and anyway, I'm seeing some segfaults when cloning, freezing,
reading then writing in my library

I'd love to learn if there are any other approaches I might take, e.g.
maybe with my own CMM primop variants?

Thanks,
Brandon


More information about the Glasgow-haskell-users mailing list