RFR: 8337237: Use FFM instead of Unsafe for Java 2D RenderBuffer class
Phil Race
prr at openjdk.org
Fri Jul 26 22:59:25 UTC 2024
On Fri, 26 Jul 2024 06:56:17 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> Most put operations require that the item is properly aligned now that the FFM API is used in conjunction with the aligned `ValueLayout` instances like `JAVA_LONG`. `Unsafe` did not impose this restriction. Is this the intended behavior?
Yes, we have pre-existing comments saying the caller has to make sure to properly align variables.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20339#issuecomment-2253615860
More information about the client-libs-dev
mailing list