Can we also get some feedback on specialization, please?
brian.goetz at oracle.com
Sat Jan 10 03:49:30 UTC 2015
You might look at ClassValue as a means for this sort of per-class
On 1/9/2015 10:47 PM, MacGregor, Duncan (GE Energy Management) wrote:
> And another thing...
> If I want to try and combine the use of VarHandles and specialisation
> to make something with atomic properties (as I'm sure we'll all want
> to do for concurrent collections) then at the moment I can't use
> static fields for the var handles, and the JIT is almost certainly
> going to hate me if I they are stored on instance fields. I think
> we'll need some way to specify static fields as specialised and
> provide initialisers for them. This cannot be done by simply having
> different statics for different layers since each specialised class
> will need it's own statics.
> I'm sure there's also some evil I can perpetrate by specialising
> CallSites, but I haven't though of a really convincing case for doing
> so yet (at least not until I can define typed tuples when I can maybe
> replace various varargs fallbacks), and I hit the same statics
> problem as above with MethodHandles anyway.
More information about the valhalla-dev