RFR: 8325467: Support methods with many arguments in C2

Daniel Lundén dlunden at openjdk.org
Wed Aug 7 11:57:32 UTC 2024


On Wed, 7 Aug 2024 10:58:57 GMT, Daniel Lundén <dlunden at openjdk.org> wrote:

> but I realize I should add an explicit check to see if the allocation succeeds or not when growing the register mask (and bail out if it doesn't)

After a bit of investigation, I do not believe we actually need explicit checks for if the allocation succeeds. This is already handled internally in the arena allocation and the VM will crash if we run out of memory. This should never really happen in practice, but we could set some sanity limit on register mask size if we feel that's appropriate.

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

PR Comment: https://git.openjdk.org/jdk/pull/20404#issuecomment-2273291282


More information about the hotspot-compiler-dev mailing list