[Mono-bugs] [Bug 325566] Thread.GetHashCode returns zero before Start (gmcs)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 19 09:23:00 EDT 2007


Dick Porter <dick at novell.com> changed:

           What    |Removed                                         |Added
             Status|REOPENED                                        |RESOLVED
         Resolution|                                                |FIXED

--- Comment #5 from Dick Porter <dick at novell.com>  2007-10-19 07:22:59 MST ---
I think GetHashCode is allowed to return 0, so long as it carries on returning
the same value for the same object.

The reason this bug originally failed with gmcs and not mcs is that GetHashCode
is only overridden in the 2.0 profile.  It now returns the managed_id counter,
rather than the OS thread_id, so now keeps returning the same value.

I've commented out the test assert that GetHashCode has to be > 0.

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

More information about the mono-bugs mailing list