Request for reviews (M): 7085860: JSR 292: implement CallSite.setTargetNormal and setTargetVolatile as native methods
christian.thalinger at oracle.com
Mon Oct 31 11:27:50 PDT 2011
Could someone have a quick look just to be sure that the test is okay?
On Oct 27, 2011, at 1:17 PM, Christian Thalinger wrote:
> I'm about to push the JDK changes to hsx/hotspot-main/jdk. To have some testing coverage I added a test case and I'd like to have at least one review of that:
> -- Chris
> On Sep 8, 2011, at 9:39 PM, John Rose wrote:
>> 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.
>> Nice catch.
>> Maybe change "target" to "target_non_volatile", to emphasize the different uses of the target field.
>> -- John
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev