[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


https://bugzilla.novell.com/show_bug.cgi?id=464537

User rkumpera at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=464537#c1


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
called.

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