Quick look at JavaFX methods above the HotSpot inlining threshold

Chris Newland cnewland at chrisnewland.com
Mon Nov 3 23:42:53 UTC 2014


Hi all,

As part of the JITWatch[1] project I've written a tool called JarScan
which counts the bytecode size of methods in a jar and logs those methods
which are above HotSpot's 325 byte size threshold for inlining methods it
determines are "hot".

In jfxrt.jar from Oracle's JDK 1.8.0_25 on Linux x86_64 there are 774
methods above the threshold which I've listed in this gist:
https://gist.github.com/chriswhocodes/c474e49f0d111757dbf2

A lot of these won't be found in hot code but perhaps the methods under
com.sun.javafx.geom and javafx.scene.transform could be candidates for
examination with JIT compilation in mind?

Has anybody on the list done any experiments in this area? If not I'll try
and find some time to see if there are any gains to be made by trimming
methods (in the OpenJFX source) to fit inside the inlining threshold.

Cheers,

Chris
@chriswhocodes

[1] https://github.com/AdoptOpenJDK/jitwatch



More information about the openjfx-dev mailing list