[Mono-bugs] [Bug 551228] Race conditions despite locks with Mono 2.4 on IA-64 SGI Altix 4700

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 30 11:15:28 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=551228

User vargaz at gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=551228#c3





--- Comment #3 from Zoltan Varga <vargaz at gmail.com>  2009-10-30 09:15:25 MDT ---
The difference is that with 'readonly' the JIT knows the value of the static
field can't change, so it embeds the value into the JITted code, without
readonly, it needs to emit a load instruction to load the value. No idea why
that makes a difference, the value is constant anyway, since it is initialized
in the type initializer of SharedCounter, which is called after Main was JIT
compiled.

-- 
Configure bugmail: http://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