Request for reviews (M): 7085860: JSR 292: implement CallSite.setTargetNormal and setTargetVolatile as native methods
john.r.rose at oracle.com
Thu Sep 8 12:39:09 PDT 2011
On Sep 8, 2011, at 9:03 AM, Tom Rodriguez wrote:
> That looks good. One thing that occurred to me is that reading of the target field within the JVM must be done as if it were volatile, since we don't actually know what type of call site we're reading from. You could put a check in CallSite::target but I think you just always read it as volatile. I suspect the invokedynamic call site assembly also needs to do any required barriers.
Maybe change "target" to "target_non_volatile", to emphasize the different uses of the target field.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev