RFR: 8345302: Building microbenchmarks require larger Java heap [v2]

Magnus Ihse Bursie ihse at openjdk.org
Thu Dec 5 22:46:41 UTC 2024


On Thu, 5 Dec 2024 14:05:16 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> Recently we have started to see OOME being thrown when building the microbenchmarks. See the bug for a closer analysis of why this happens by @shipilev and @mcimadamore. This patch just increases the default mx setting for the "big" java configuration in the build. I think that in 2024, we are ready to bump this to 2048M.
>> 
>> I'm not touching the 32 bit max mx setting as I have no way of testing it.
>
> Erik Joelsson has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Copyright year

This was integrated before I managed to get to it...

I think you should also update 

JAVA_FLAGS_BIG := -Xms64M -Xmx1600M

in `make/RunTestsPrebuiltSpec.gmk`, since that is basically supposed to be a hard-coded typical result of the code in `boot-jdk.m4`.

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

PR Comment: https://git.openjdk.org/jdk/pull/22565#issuecomment-2521632933


More information about the build-dev mailing list