On Tue, 5 Aug 2025 01:23:17 GMT, Shaojin Wen <s...@openjdk.org> wrote:
> By adding the JVM startup parameters `-XX:+UnlockDiagnosticVMOptions > -XX:+PrintInlining` and analyzing the printed log information, and found that > the code size of the j.t.f.DateTimePrintContext::adjust method is 382, which > is greater than 325, causing inlining failure. > > > @ 7 java.time.format.DateTimePrintContext::adjust (382 bytes) failed to > inline: hot method too big > > > By splitting the code into `common/uncommon`, and moving the uncommon code > into adjust0, the adjust method is kept small and can be inlined by the C2 > optimizer. This pull request has now been integrated. Changeset: f5f414f9 Author: Shaojin Wen <s...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/f5f414f9fc67e55acb83e04ea270d39041cb6198 Stats: 87 lines in 1 file changed: 86 ins; 0 del; 1 mod 8365186: Reduce size of j.t.f.DateTimePrintContext::adjust Reviewed-by: rriggs ------------- PR: https://git.openjdk.org/jdk/pull/26633