Run finalizers *after* updating the stable pointer table (#4221)
authorSimon Marlow <marlowsd@gmail.com>
Tue, 10 Aug 2010 13:37:39 +0000 (13:37 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 10 Aug 2010 13:37:39 +0000 (13:37 +0000)
Silly bug really, we were running the C finalizers while the StablePtr
table was still in a partially-updated state during GC, but finalizers
are allowed to call freeStablePtr() (via hs_free_fun_ptr(), for
example), and chaos ensues.


No differences found