8238960: linux-i586 builds are inconsistent as the newly build jdk is not able to reserve enough space for object heap

Thu, 20 Feb 2020 14:05:38 -0800

author
alvdavi
date
Thu, 20 Feb 2020 14:05:38 -0800
changeset 2497
343c4ea489d5
parent 2496
f2715985987e
child 2498
8c54aca26212

8238960: linux-i586 builds are inconsistent as the newly build jdk is not able to reserve enough space for object heap
Reviewed-by: andrew

common/autoconf/flags.m4 file | annotate | diff | comparison | revisions
common/autoconf/generated-configure.sh file | annotate | diff | comparison | revisions
     1.1 --- a/common/autoconf/flags.m4	Mon Apr 06 01:58:35 2020 +0100
     1.2 +++ b/common/autoconf/flags.m4	Thu Feb 20 14:05:38 2020 -0800
     1.3 @@ -747,7 +747,11 @@
     1.4        LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
     1.5      fi
     1.6      if test "x$TOOLCHAIN_TYPE" = xgcc; then
     1.7 -      LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
     1.8 +      # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
     1.9 +      # java heap.
    1.10 +      if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
    1.11 +        LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
    1.12 +      fi
    1.13      fi
    1.14    fi
    1.15    AC_SUBST(LDFLAGS_JDKLIB)
     2.1 --- a/common/autoconf/generated-configure.sh	Mon Apr 06 01:58:35 2020 +0100
     2.2 +++ b/common/autoconf/generated-configure.sh	Thu Feb 20 14:05:38 2020 -0800
     2.3 @@ -4379,7 +4379,7 @@
     2.4  #CUSTOM_AUTOCONF_INCLUDE
     2.5  
     2.6  # Do not change or remove the following line, it is needed for consistency checks:
     2.7 -DATE_WHEN_GENERATED=1585090811
     2.8 +DATE_WHEN_GENERATED=1585090987
     2.9  
    2.10  ###############################################################################
    2.11  #
    2.12 @@ -42177,7 +42177,11 @@
    2.13        LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
    2.14      fi
    2.15      if test "x$TOOLCHAIN_TYPE" = xgcc; then
    2.16 -      LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
    2.17 +      # Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
    2.18 +      # java heap.
    2.19 +      if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
    2.20 +        LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -pie"
    2.21 +      fi
    2.22      fi
    2.23    fi
    2.24  

mercurial