[lworld] RFR: 8378273: [lworld] Use acmp map to detect oops for VarHandle [v2]

Chen Liang liach at openjdk.org
Fri Feb 20 04:21:58 UTC 2026


On Thu, 19 Feb 2026 19:33:16 GMT, Chen Liang <liach at openjdk.org> wrote:

>> VarHandle reflectively checks if a class has oops (and does it incorrectly by not filtering static fields). This information is easily accessible from acmp maps, and we should use that instead of spinning our custom logic.
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   interface-typed fields were using atomic flat VHs ???

Just discovered that interface-typed fields were using the VarHandleFlatValues incorrectly instead of VarHandleReferences.

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/2143#issuecomment-3931532944


More information about the valhalla-dev mailing list