From: "John Wilson" <tugwil...@gmail.com>
Date: Wed, 2 Apr 2008 10:10:52 +0100
Local: Wed, Apr 2 2008 5:10 am
Subject: Re: [jvm-l] Performance characteristics of mutable static primitives?
On 4/2/08, Charles Oliver Nutter <charles.nut...@sun.com> wrote:
> I ran into a very strange effect when some Sun folks tried to benchmark > The source of the problem (at least the source that, when fixed, allowed > private static int count = 0; > public void pollEvents(ThreadContext context) { > So the basic idea was that this would call poll() every 256 hits, Shouldn't count be volatile? If it's declared as volatile does that make any difference? 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.
| ||||||||||||||