RFR: 8372617: Save and restore stubgen stubs when using an AOT code cache [v3]
Andrew Dinn
adinn at openjdk.org
Tue Jan 20 10:11:43 UTC 2026
On Tue, 2 Dec 2025 16:43:19 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:
>> Andrew Dinn has updated the pull request incrementally with one additional commit since the last revision:
>>
>> asmehra feedback
>
> src/hotspot/share/runtime/stubCodeGenerator.cpp line 118:
>
>> 116: // default_handler.
>> 117:
>> 118: void StubCodeGenerator::register_unsafe_access_handlers(GrowableArray<address> &entries, int begin, int count) {
>
> Is there a case or is it possible that `begin` is non -zero? I think it is same to assume we need to register all the values in `entries` in the `UnsafeMemoryAccess::_table`, right?
I think at present begin is always 0 but I'm not sure we can assume that for all future stubs all extra addresses will be unsafe ranges.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28433#discussion_r2707634118
More information about the hotspot-dev
mailing list