RFR: 8290495: Micro-optimize Method::can_be_statically_bound assertions

David Holmes dholmes at openjdk.org
Tue Jul 19 06:29:53 UTC 2022


On Tue, 19 Jul 2022 05:47:59 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> See the rationale in the bug.
> 
> The test time improves:
> 
> 
> # Before
> real 1m27.397s
> user 2m39.937s
> sys 0m5.966s
> 
> # After
> real 1m13.443s ; -16%
> user 2m24.238s ; -10%
> sys 0m5.885s

As a general rule we don't care about the performance of non-product code. If you start down this path there is a huge amount of potential optimisation that might be done. Why is this one worthwhile?

Cheers.

-------------

PR: https://git.openjdk.org/jdk/pull/9548


More information about the hotspot-dev mailing list