Integrated: 8334495: Use FFM instead of jdk.internal.misc.Unsafe in java.desktop font implementation
Phil Race
prr at openjdk.org
Thu Jul 18 17:37:37 UTC 2024
On Tue, 18 Jun 2024 20:31:58 GMT, Phil Race <prr at openjdk.org> wrote:
> Migrate font code from jdk.internal.misc.Unsafe to using FFM.
> This reduces the coupling between the java.desktop module and the internals of the java.base module.
>
> The code being changed here is not particularly performance sensitive, and it is not executed in the most common cases.
> The main impact performance-wise is a total of around 37ms in initialisation costs on my x64 macbook.
> A minimal program that just draws a string to an image - does not even put up a window - runs at around 690-700ms.
> There's variability in that number and the overall time for a JDK without the change is around (660-670ms)
> In the small test, this is the first and only use of FFM, so the one-off part cost should move elsewhere when FFM starts
> to be used earlier in the JDK itself.
This pull request has now been integrated.
Changeset: 02be7b8d
Author: Phil Race <prr at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/02be7b8ddcdb62977770cb5052e86bcada8478ba
Stats: 321 lines in 5 files changed: 131 ins; 97 del; 93 mod
8334495: Use FFM instead of jdk.internal.misc.Unsafe in java.desktop font implementation
Reviewed-by: jdv, dnguyen, achung
-------------
PR: https://git.openjdk.org/jdk/pull/19777
More information about the client-libs-dev
mailing list