The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: "John Wilson" <tugwil...@gmail.com>
Date: Wed, 2 Apr 2008 11:36:14 +0100
Local: Wed, Apr 2 2008 6:36 am
Subject: Re: [jvm-l] Re: Performance characteristics of mutable static primitives?
On 4/2/08, Charles Oliver Nutter <charles.nut...@sun.com> wrote:
> John Wilson wrote: > > Shouldn't count be volatile? > > If it's declared as volatile does that make any difference? > I had not tried it because I expected volatile would only make it that count should have been volatile but you numbers show that this is not the case. [snip] > I tried another non-volatile run using i += 1 rather than i++ and the It would be interesting to try: > numbers were almost identical, with Java 6 severely degrading with > multiple threads running and Java 5 improving. tmp = i; for tmp as a local variable and again for tmp as a public instance field. (I'm sorry I can't do the tests for mystelf as I don't have access to John Wilson You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||