Skip to content

Commit 7e20cf7

Browse files
committed
8238960: linux-i586 builds are inconsistent as the newly build jdk is not able to reserve enough space for object heap
Reviewed-by: ihse, tbell, ahgross, jwilhelm
1 parent 5fff050 commit 7e20cf7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

make/autoconf/flags-ldflags.m4

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_HELPER],
151151
152152
# Setup LDFLAGS for linking executables
153153
if test "x$TOOLCHAIN_TYPE" = xgcc; then
154-
EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -Wl,--allow-shlib-undefined -pie"
154+
EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -Wl,--allow-shlib-undefined"
155+
# Enabling pie on 32 bit builds prevents the JVM from allocating a continuous
156+
# java heap.
157+
if test "x$OPENJDK_TARGET_CPU_BITS" != "x32"; then
158+
EXECUTABLE_LDFLAGS="$EXECUTABLE_LDFLAGS -pie"
159+
fi
155160
fi
156161
157162
if test "x$ALLOW_ABSOLUTE_PATHS_IN_OUTPUT" = "xfalse"; then

0 commit comments

Comments
 (0)