Skip to content

Commit 559039b

Browse files
authored
Merge pull request #871 from keithc-ca/mixedrefs
Remove --with-mixedrefs configuration option
2 parents d886adc + a445ecd commit 559039b

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

closed/autoconf/custom-hook.m4

+8-18
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,6 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
507507
AC_ARG_WITH(noncompressedrefs, [AS_HELP_STRING([--with-noncompressedrefs],
508508
[build non-compressedrefs vm (large heap)])])
509509
510-
AC_ARG_WITH(mixedrefs, [AS_HELP_STRING([--with-mixedrefs],
511-
[build mixedrefs vm (--with-mixedrefs=static or --with-mixedrefs=dynamic)])])
512-
513510
# When compiling natively host_cpu and build_cpu are the same. But when
514511
# cross compiling we need to work with the host_cpu (which is where the final
515512
# JVM will run).
@@ -518,23 +515,16 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
518515
# Default OPENJ9_BUILD_OS=OPENJDK_BUILD_OS, but override with OpenJ9 equivalent as appropriate
519516
OPENJ9_BUILD_OS="${OPENJDK_BUILD_OS}"
520517
521-
if test "x$with_noncompressedrefs" = xyes -o "x$with_mixedrefs" = xno -o "x$COMPILE_TYPE" = xcross ; then
518+
if test "x$with_noncompressedrefs" = xyes ; then
522519
OMR_MIXED_REFERENCES_MODE=off
523-
if test "x$with_noncompressedrefs" = xyes ; then
524-
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
525-
OPENJ9_LIBS_SUBDIR=default
526-
else
527-
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_cmprssptrs"
528-
OPENJ9_LIBS_SUBDIR=compressedrefs
529-
fi
520+
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
521+
OPENJ9_LIBS_SUBDIR=default
522+
elif test "x$with_noncompressedrefs" = xno -o "x$COMPILE_TYPE" = xcross ; then
523+
OMR_MIXED_REFERENCES_MODE=off
524+
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_cmprssptrs"
525+
OPENJ9_LIBS_SUBDIR=compressedrefs
530526
else
531-
if test "x$with_mixedrefs" = x -o "x$with_mixedrefs" = xyes -o "x$with_mixedrefs" = xstatic ; then
532-
OMR_MIXED_REFERENCES_MODE=static
533-
elif test "x$with_mixedrefs" = xdynamic ; then
534-
OMR_MIXED_REFERENCES_MODE=dynamic
535-
else
536-
AC_MSG_ERROR([OpenJ9 supports --with-mixedrefs=static and --with-mixedrefs=dynamic])
537-
fi
527+
OMR_MIXED_REFERENCES_MODE=static
538528
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_mxdptrs"
539529
OPENJ9_LIBS_SUBDIR=default
540530
fi

0 commit comments

Comments
 (0)