[9] RFR (S): 8160527: Check for final instance field updates can be omitted
John Rose
john.r.rose at oracle.com
Wed Jun 29 21:20:07 UTC 2016
On Jun 29, 2016, at 8:00 AM, Zoltán Majó <zoltan.majo at oracle.com> wrote:
>
> please review the patch for 8160527.
>
> https://bugs.openjdk.java.net/browse/JDK-8160527 <https://bugs.openjdk.java.net/browse/JDK-8160527>
>
> Problem: 8157181 added a check that verifies that final instance fields can be updated only by object initializer methods (as required by JVMS >=7) [1].
Reviewed. I'm glad it was a simple tweak; I was afraid you'd have to muck with assembly code.
Kudos to the original designers of the CP cache mechanism, which allows a CPCE to be (a) resolved for use by assembly code, and (b) force re-resolution (because a "byte" in the CPCE indices is still zero). We use this trick for some corner cases with interface invocation, IIRC.
— John
More information about the hotspot-runtime-dev
mailing list