RFR: 8316641: VarHandle template classes can share code in the base class [v2]
Chen Liang
liach at openjdk.org
Fri Sep 22 03:58:24 UTC 2023
On Thu, 21 Sep 2023 08:50:00 GMT, Chen Liang <liach at openjdk.org> wrote:
>> VarHandle implementations have many static fields and methods that can be pulled to the common superclass to avoid repeated initialization and code duplication.
>>
>> In addition, the Unsafe-based Buffer field access are replaced by usage of public methods or JavaNioAccess.
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
>
> byte array var handles can share a common base class
Since this cleanup affects both non-ffi and ffi VHs, I have re-targeted this against the FFI JEP pr. The only issue is that this pr now includes the mainline changes so the diff is probably not reviewable until the JEP pr's merged.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15854#issuecomment-1730766746
More information about the core-libs-dev
mailing list