[project @ 2003-09-10 11:46:58 by simonmar]
authorsimonmar <unknown>
Wed, 10 Sep 2003 11:46:58 +0000 (11:46 +0000)
committersimonmar <unknown>
Wed, 10 Sep 2003 11:46:58 +0000 (11:46 +0000)
commit26021ff9493fb5bceba65415e8689e0d2a170d5e
tree806ef8499d3ee9b2e1aa700ec9cfc34593990499
parent9f9c1ba962b98906e1a750b16138344bc62a6fd3
[project @ 2003-09-10 11:46:58 by simonmar]
The finalizer for a ForeignPtr created with mallocForeignPtr better
"touch#" the MutableByteArray# after running the other finalizers,
otherwise the memory might be garbage collected before we've finished
running the finalizers.

This can cause crashes if you add any extra finalizers to a ForeignPtr
created with mallocForeignPtr.

SourceForge bug: #802692
GHC/ForeignPtr.hs