fix closure_sizeW_() for AP closures
authorSimon Marlow <simonmar@microsoft.com>
Wed, 14 Feb 2007 12:04:01 +0000 (12:04 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 14 Feb 2007 12:04:01 +0000 (12:04 +0000)
commitdcecd7a5170b54d06df3f7eb6e8f38585a283a21
treeda59d21f0d8cd2d55dd127aa97926a9158b92fc8
parent7b60a2503ddc77a23d7c19c8d3079fb4a997f0ea
fix closure_sizeW_() for AP closures
Since thunks grew an extra padding word in GHC 6.6, closure_sizeW()
has been wrong for AP closures because it assumed compatible layout
between PAPs and APs.  One symptom is that the compacting GC would
crash if it encountered an AP.  APs conly crop up in GHCi or
when using asynchronous exceptions.

Fixes #1010
includes/Storage.h