Skip to content

Commit 1a0cc53

Browse files
authored
Merge pull request ibmruntimes#951 from keithc-ca/mixedrefs
Remove --with-mixedrefs configuration option
2 parents ac5d97d + 201f924 commit 1a0cc53

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
@@ -506,9 +506,6 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
506506
AC_ARG_WITH(noncompressedrefs, [AS_HELP_STRING([--with-noncompressedrefs],
507507
[build non-compressedrefs vm (large heap)])])
508508
509-
AC_ARG_WITH(mixedrefs, [AS_HELP_STRING([--with-mixedrefs],
510-
[build mixedrefs vm (--with-mixedrefs=static or --with-mixedrefs=dynamic)])])
511-
512509
# When compiling natively host_cpu and build_cpu are the same. But when
513510
# cross compiling we need to work with the host_cpu (which is where the final
514511
# JVM will run).
@@ -517,23 +514,16 @@ AC_DEFUN([OPENJ9_PLATFORM_SETUP],
517514
# Default OPENJ9_BUILD_OS=OPENJDK_BUILD_OS, but override with OpenJ9 equivalent as appropriate
518515
OPENJ9_BUILD_OS="${OPENJDK_BUILD_OS}"
519516
520-
if test "x$with_noncompressedrefs" = xyes -o "x$with_mixedrefs" = xno -o "x$COMPILE_TYPE" = xcross ; then
517+
if test "x$with_noncompressedrefs" = xyes ; then
521518
OMR_MIXED_REFERENCES_MODE=off
522-
if test "x$with_noncompressedrefs" = xyes ; then
523-
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
524-
OPENJ9_LIBS_SUBDIR=default
525-
else
526-
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_cmprssptrs"
527-
OPENJ9_LIBS_SUBDIR=compressedrefs
528-
fi
519+
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
520+
OPENJ9_LIBS_SUBDIR=default
521+
elif test "x$with_noncompressedrefs" = xno -o "x$COMPILE_TYPE" = xcross ; then
522+
OMR_MIXED_REFERENCES_MODE=off
523+
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_cmprssptrs"
524+
OPENJ9_LIBS_SUBDIR=compressedrefs
529525
else
530-
if test "x$with_mixedrefs" = x -o "x$with_mixedrefs" = xyes -o "x$with_mixedrefs" = xstatic ; then
531-
OMR_MIXED_REFERENCES_MODE=static
532-
elif test "x$with_mixedrefs" = xdynamic ; then
533-
OMR_MIXED_REFERENCES_MODE=dynamic
534-
else
535-
AC_MSG_ERROR([OpenJ9 supports --with-mixedrefs=static and --with-mixedrefs=dynamic])
536-
fi
526+
OMR_MIXED_REFERENCES_MODE=static
537527
OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_mxdptrs"
538528
OPENJ9_LIBS_SUBDIR=default
539529
fi

0 commit comments

Comments
 (0)