From: "Marcelo Fukushima" <takesh...@gmail.com>
Date: Thu, 3 Apr 2008 20:37:06 -0300
Local: Thurs, Apr 3 2008 7:37 pm
Subject: Re: [jvm-l] Re: Performance characteristics of mutable static primitives?
On 4/3/08, John Cowan <johnwco...@gmail.com> wrote:
> On Thu, Apr 3, 2008 at 7:01 PM, John Rose <John.R...@sun.com> wrote: > > Yes. You can then cast it to the subclass and go on from there. > That's what I had hoped, but the JLS doesn't actually seem to guarantee this. > > > If so, that provides a different approach > > That's how Java thread locals are implemented in the JVM. > I don't understand how that can be, as I can create as many public void set(T value) { apparently, every thread has a map that holds all ThreadLocal's registered > > You can only use this approach if (a) you control the creation of the > That's what I had in mind. > > You might be interested to know that Hotspot intrinsifies > Good. > -- []'s Marcelo Takeshi Fukushima 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.
| ||||||||||||||