RFR: 8299570: [JVMCI] Insufficient error handling when CodeBuffer is exhausted
Doug Simon
dnsimon at openjdk.org
Wed Jan 18 09:59:21 UTC 2023
On Tue, 17 Jan 2023 19:14:55 GMT, Tom Rodriguez <never at openjdk.org> wrote:
>> it looks like estimate_stubs_size is computing space for the trampolines via
>>
>> `size += trampoline_stubs * CompiledStaticCall::to_trampoline_stub_size();`?
>
> It seems like the estimate agrees with the code emitted for the trampoline, so we either have a general problem in this computation or we have some other unexpected use of code cache space. It isn't critical that we get this estimate right but we do try to avoid resizing during code installation as it can be expensive.
Yes, this is a very defensive (and cheap) check that should never fail. Still, better to have it.
-------------
PR: https://git.openjdk.org/jdk/pull/11945
More information about the hotspot-compiler-dev
mailing list