Fix a very rare crash in GHCi
authorSimon Marlow <marlowsd@gmail.com>
Tue, 5 Oct 2010 14:47:35 +0000 (14:47 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 5 Oct 2010 14:47:35 +0000 (14:47 +0000)
commit4a05e6139d756c0473df7a6dcb257074201f843d
treefe856f1144746b96522f74e3002d794b58560c28
parentc4c2f7ecc229de0059018aebac1f6a444a382900
Fix a very rare crash in GHCi
When a BCO with a zero-length bitmap was right at the edge of
allocated memory, we were reading a word of non-existent memory.

This showed up as a segfault in T789(ghci) for me, but the crash was
extremely sensitive and went away with most changes.

Also, optimised scavenge_large_bitmap a bit while I was in there.
rts/sm/Scav.c