• Simon Marlow's avatar
    Foreign calls can clobber heap & stack memory too · 412af8c2
    Simon Marlow authored
    We were making an aggressive assumption that foreign calls cannot
    clobber heap or stack memory, which for the majority of foreign calls
    is true, but we violate the assumption in the implementation of
    primops in the RTS.  This was causing crashes in some STM tests.
CmmSink.hs 21.3 KB