Properly clear weak refs that don't track resurrection.
authorRodrigo Kumpera <kumpera@gmail.com>
Wed, 19 Jan 2011 00:21:00 +0000 (01:21 +0100)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 19 Jan 2011 00:32:16 +0000 (01:32 +0100)
commit667cf394f0a3039e4db6123b5a44bd06d8d720bc
treeb630f2f52e6cdd878512180e813bef811818dc18
parentc6b1dd9db328c876e78a589ae020963d8009739c
Properly clear weak refs that don't track resurrection.

* sgen-gc.c (finish_gray_stack): We must clear
weak refs that don't track resurrection before
processing finalizable objects otherwise we'll
copy/mark them and the weak ref won't be cleared
until after finalization.

Fixes #657408
mono/metadata/sgen-gc.c