Skip to content

Commit c6eb972

Browse files
authored
Merge pull request #444 from keithc-ca/mixedrefs
Remove --with-mixedrefs configuration option
2 parents 823b7ef + abaeaa5 commit c6eb972

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
@@ -484,9 +484,6 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
484484
AC_ARG_WITH(noncompressedrefs, [AS_HELP_STRING([--with-noncompressedrefs],
485485
[build non-compressedrefs vm (large heap)])])
486486
487-
AC_ARG_WITH(mixedrefs, [AS_HELP_STRING([--with-mixedrefs],
488-
[build mixedrefs vm (--with-mixedrefs=static or --with-mixedrefs=dynamic)])])
489-
490487
# When compiling natively host_cpu and build_cpu are the same. But when
491488
# cross compiling we need to work with the host_cpu (which is where the final
492489
# JVM will run).
@@ -495,23 +492,16 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
495492
# Default OPENJ9_BUILD_OS=OPENJDK_BUILD_OS, but override with OpenJ9 equivalent as appropriate
496493
OPENJ9_BUILD_OS="${OPENJDK_BUILD_OS}"
497494
498-
if test "x$with_noncompressedrefs" = xyes -o "x$with_mixedrefs" = xno -o "x$COMPILE_TYPE" = xcross ; then
495+
if test "x$with_noncompressedrefs" = xyes ; then
499496
OMR_MIXED_REFERENCES_MODE=off
500-
if test "x$with_noncompressedrefs" = xyes ; then
501-
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
502-
OPENJ9_LIBS_SUBDIR=default
503-
else
504-
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_cmprssptrs"
505-
OPENJ9_LIBS_SUBDIR=compressedrefs
506-
fi
497+
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
498+
OPENJ9_LIBS_SUBDIR=default
499+
elif test "x$with_noncompressedrefs" = xno -o "x$COMPILE_TYPE" = xcross ; then
500+
OMR_MIXED_REFERENCES_MODE=off
501+
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_cmprssptrs"
502+
OPENJ9_LIBS_SUBDIR=compressedrefs
507503
else
508-
if test "x$with_mixedrefs" = x -o "x$with_mixedrefs" = xyes -o "x$with_mixedrefs" = xstatic ; then
509-
OMR_MIXED_REFERENCES_MODE=static
510-
elif test "x$with_mixedrefs" = xdynamic ; then
511-
OMR_MIXED_REFERENCES_MODE=dynamic
512-
else
513-
AC_MSG_ERROR([OpenJ9 supports --with-mixedrefs=static and --with-mixedrefs=dynamic])
514-
fi
504+
OMR_MIXED_REFERENCES_MODE=static
515505
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_mxdptrs"
516506
OPENJ9_LIBS_SUBDIR=default
517507
fi

0 commit comments

Comments
 (0)