RFR: 8254744: Clean-up CodeBlob::align_code_offset

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


On Wed, 14 Oct 2020 10:45:06 GMT, Erik Österlund <eosterlund 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.
>
> Looks good.

Thanks for reviewing!

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

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


More information about the hotspot-dev mailing list