RFR: 8316694: Implement relocation of nmethod within CodeCache [v18]
Chad Rakoczy
duke at openjdk.org
Wed May 28 16:36:06 UTC 2025
On Wed, 28 May 2025 15:43:21 GMT, Evgeny Astigeevich <eastigeevich at openjdk.org> wrote:
>> Chad Rakoczy has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add JVMCINMethodData::has_mirror()
>
> src/hotspot/share/code/nmethod.cpp line 1167:
>
>> 1165: #endif
>> 1166: + align_up(debug_info->data_size() , oopSize)
>> 1167: + align_up((int)sizeof(int) , oopSize);
>
> Why do we need `align_up((int)sizeof(int) , oopSize)`?
That is for the int that keeps track of the number of nmethods using the immutable data. That way it can be shared between the old and new nmethod
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r2112316704
More information about the hotspot-compiler-dev
mailing list