[lworld] RFR: 8349945: Implement strict static fields (proposed JVM feature) [v3]
Chen Liang
liach at openjdk.org
Mon May 26 15:28:06 UTC 2025
On Fri, 23 May 2025 20:26:57 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
>> This patch enables and implements verification for fields with the ACC_STATIC and ACC_STRICT modifiers. To enforce strictness on static fields, the reads and writes on the field are tracked dynamically to ensure that the field is written before being read and written to before.
>
> Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:
>
> Chen and Dan comments and cleanup
I think reflective write for static final is already impossible - at least that is what I know about Method Handles and core reflection. So we probably just need to care about reflective reads.
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/1465#issuecomment-2910098188
More information about the valhalla-dev
mailing list