8287373: remove unnecessary paddings in generated code #8453
…nerate_handler_blob asks a 1KB buffer, actually CodeBuffer::initialize reserves the given size with some extra bytes; with the new formula (code_size + align + slop * SECT_LIMIT) the extra bytes number is reduced, causing the handler_blob generator buffer to overflow. Solution: double the code_size estimate for handler_blob generator buffer (the temporary buffer size is not really important)
HotSpotCompiledCode.dataSectionAlignment value was changed to 8 to correspond the new CodeBuffer.constants code section alignment.
The jtreg tests issue was repoduced as "invalid data section alignment" JVMCI error in CodeInstaller::initialize_fields
@bulasevich This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 166 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
Going to push as commit 68b2057.
Your commit was automatically rebased without conflicts.