[Haskell-cafe] STM, newArray, and a stack overflow?
Felipe Almeida Lessa
felipe.lessa at gmail.com
Wed Mar 23 15:30:42 CET 2011
On Wed, Mar 23, 2011 at 2:22 PM, Bas van Dijk <v.dijk.bas at gmail.com> wrote:
> On 23 March 2011 13:35, Ketil Malde <ketil at malde.org> wrote:
>> I'm seeing some weirdness here. My code does this:
>> omap <- atomically $ (newArray_ (0,n-1) :: STM (TArray Int Int))
>> This gives a stack overflow when n is one million.
> I can't reproduce this with ghci-7.0.2 (base-18.104.22.168, array-0.3.0.2
> and stm-22.214.171.124). What version of ghc/ghci are you using?
I can't reproduce it either, using ghci-6.12.3, base-126.96.36.199,
array-0.3.0.1 and stm-188.8.131.52. However it takes a loooong time and a
lot of CPU time =).
More information about the Haskell-Cafe