Integrated: 8254744: Clean-up CodeBlob::align_code_offset

Claes Redestad redestad at openjdk.java.net
Wed Oct 14 13:24:11 UTC 2020


On Wed, 14 Oct 2020 10:34:32 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> - Modernize by using align_up
> - Move definition of the trivial CodeHeap::header_size() to header to help inlining, which optimizes align_code_offset
>   and others. No big gain, but we're calling CodeHeap::header_size() 1300+ times on Hello World, and when inlined it's
>   just a constant fold.

This pull request has now been integrated.

Changeset: 738effad
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/738effad
Stats:     9 lines in 3 files changed: 0 ins; 6 del; 3 mod

8254744: Clean-up CodeBlob::align_code_offset

Reviewed-by: mdoerr, eosterlund

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

PR: https://git.openjdk.java.net/jdk/pull/651


More information about the hotspot-dev mailing list