[Mono-bugs] [Bug 464537] GC.Collect() + WeakRefence behaviour differs from CLR behaviour.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 8 13:23:03 EST 2009


User rkumpera at novell.com added comment

Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |rkumpera at novell.com
             Status|NEW                                             |RESOLVED
         Resolution|                                                |WONTFIX

--- Comment #1 from Rodrigo Kumpera <rkumpera at novell.com>  2009-01-08 11:23:02 MST ---
This behavior is expected as the JIT eliminates the dead store (obj = null)
thus letting obj remain alive.

The same test works fine if the store is done on another function that get's

Object reachability on the stack is not precisely defined, it's up to the
implementation, specially for the top frame.

Yes, mono doesn't behave like .NET, but, alas, nobody is going to use your
example in a real system.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list