@@ -905,6 +905,7 @@ CMAKE
905
905
USERNAME
906
906
JDK_FIX_VERSION
907
907
JDK_MOD_VERSION
908
+ OMR_MIXED_REFERENCES_MODE
908
909
OPENJ9_LIBS_SUBDIR
909
910
OPENJ9_PLATFORM_CODE
910
911
OPENJ9_BUILDSPEC
@@ -1076,6 +1077,7 @@ with_jvm_variants
1076
1077
enable_debug
1077
1078
with_debug_level
1078
1079
with_noncompressedrefs
1080
+ with_mixedrefs
1079
1081
with_cmake
1080
1082
with_openj9_cc
1081
1083
with_openj9_cxx
@@ -1949,6 +1951,8 @@ Optional Packages:
1949
1951
[release]
1950
1952
--with-noncompressedrefs
1951
1953
build non-compressedrefs vm (large heap)
1954
+ --with-mixedrefs build mixedrefs vm (--with-mixedrefs=static or
1955
+ --with-mixedrefs=dynamic)
1952
1956
--with-cmake enable building openJ9 with CMake
1953
1957
--with-openj9-cc build OpenJ9 with a specific C compiler
1954
1958
--with-openj9-cxx build OpenJ9 with a specific C++ compiler
@@ -4546,7 +4550,7 @@ VS_SDK_PLATFORM_NAME_2017=
4546
4550
4547
4551
4548
4552
# Do not change or remove the following line, it is needed for consistency checks:
4549
- DATE_WHEN_GENERATED=1604507962
4553
+ DATE_WHEN_GENERATED=1605209646
4550
4554
4551
4555
###############################################################################
4552
4556
#
@@ -15187,6 +15191,13 @@ fi
15187
15191
15188
15192
15189
15193
15194
+ # Check whether --with-mixedrefs was given.
15195
+ if test "${with_mixedrefs+set}" = set; then :
15196
+ withval=$with_mixedrefs;
15197
+ fi
15198
+
15199
+
15200
+
15190
15201
# Convert openjdk cpu names to openj9 names
15191
15202
case "$build_cpu" in
15192
15203
x86_64)
@@ -15209,43 +15220,52 @@ fi
15209
15220
;;
15210
15221
esac
15211
15222
15212
- if test "x$with_noncompressedrefs" != x -o "x$OPENJDK_TARGET_CPU_BITS" = x32 ; then
15213
- OPENJ9_BUILDSPEC="${OPENJDK_BUILD_OS}_${OPENJ9_CPU}"
15223
+
15224
+ # Default OPENJ9_BUILD_OS=OPENJDK_BUILD_OS, but override with OpenJ9 equivalent as appropriate
15225
+ OPENJ9_BUILD_OS="${OPENJDK_BUILD_OS}"
15226
+ OMR_MIXED_REFERENCES_MODE=off
15227
+ if test "x$with_mixedrefs" != x -a "x$with_mixedrefs" != xno; then
15228
+ if test "x$with_mixedrefs" = xyes -o "x$with_mixedrefs" = xstatic; then
15229
+ OMR_MIXED_REFERENCES_MODE=static
15230
+ elif test "x$with_mixedrefs" = xdynamic; then
15231
+ OMR_MIXED_REFERENCES_MODE=dynamic
15232
+ else
15233
+ as_fn_error $? "OpenJ9 supports --with-mixedrefs=static and --with-mixedrefs=dynamic" "$LINENO" 5
15234
+ fi
15235
+ OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_mxdptrs"
15236
+ OPENJ9_LIBS_SUBDIR=default
15237
+ elif test "x$with_noncompressedrefs" = xyes ; then
15238
+ OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
15214
15239
OPENJ9_LIBS_SUBDIR=default
15215
15240
else
15216
- OPENJ9_BUILDSPEC="${OPENJDK_BUILD_OS}_ ${OPENJ9_CPU}_cmprssptrs"
15241
+ OPENJ9_BUILD_MODE_ARCH=" ${OPENJ9_CPU}_cmprssptrs"
15217
15242
OPENJ9_LIBS_SUBDIR=compressedrefs
15218
15243
fi
15219
15244
15220
15245
if test "x$OPENJ9_CPU" = xx86-64 ; then
15221
- if test "x$OPENJDK_BUILD_OS " = xlinux ; then
15246
+ if test "x$OPENJ9_BUILD_OS " = xlinux ; then
15222
15247
OPENJ9_PLATFORM_CODE=xa64
15223
- elif test "x$OPENJDK_BUILD_OS " = xwindows ; then
15248
+ elif test "x$OPENJ9_BUILD_OS " = xwindows ; then
15224
15249
OPENJ9_PLATFORM_CODE=wa64
15225
- if test "x$OPENJ9_LIBS_SUBDIR" = xdefault ; then
15226
- if test "x$OPENJDK_TARGET_CPU_BITS" = x32 ; then
15227
- OPENJ9_PLATFORM_CODE=wi32
15228
- OPENJ9_BUILDSPEC="win_x86"
15229
- else
15230
- OPENJ9_BUILDSPEC="win_x86-64"
15231
- fi
15232
- else
15233
- OPENJ9_BUILDSPEC="win_x86-64_cmprssptrs"
15250
+ OPENJ9_BUILD_OS=win
15251
+ if test "x$OPENJDK_TARGET_CPU_BITS" = x32 ; then
15252
+ OPENJ9_PLATFORM_CODE=wi32
15253
+ OPENJ9_BUILD_MODE_ARCH="x86"
15234
15254
fi
15235
- elif test "x$OPENJDK_BUILD_OS " = xmacosx ; then
15255
+ elif test "x$OPENJ9_BUILD_OS " = xmacosx ; then
15236
15256
OPENJ9_PLATFORM_CODE=oa64
15237
- if test "x$OPENJ9_LIBS_SUBDIR" = xdefault ; then
15238
- OPENJ9_BUILDSPEC="osx_x86-64"
15239
- else
15240
- OPENJ9_BUILDSPEC="osx_x86-64_cmprssptrs"
15241
- fi
15257
+ OPENJ9_BUILD_OS=osx
15242
15258
else
15243
- as_fn_error $? "Unsupported OpenJ9 platform ${OPENJDK_BUILD_OS }!" "$LINENO" 5
15259
+ as_fn_error $? "Unsupported OpenJ9 platform ${OPENJ9_BUILD_OS }!" "$LINENO" 5
15244
15260
fi
15245
15261
elif test "x$OPENJ9_CPU" = xppc-64_le ; then
15246
15262
OPENJ9_PLATFORM_CODE=xl64
15247
- if test "x$OPENJ9_LIBS_SUBDIR" != xdefault ; then
15248
- OPENJ9_BUILDSPEC="${OPENJDK_BUILD_OS}_ppc-64_cmprssptrs_le"
15263
+ if test "x$OMR_MIXED_REFERENCES_MODE" = xoff ; then
15264
+ if test "x$OPENJ9_LIBS_SUBDIR" != xdefault ; then
15265
+ OPENJ9_BUILD_MODE_ARCH="ppc-64_cmprssptrs_le"
15266
+ fi
15267
+ else
15268
+ OPENJ9_BUILD_MODE_ARCH="ppc-64_mxdptrs_le"
15249
15269
fi
15250
15270
elif test "x$OPENJ9_CPU" = x390-64 ; then
15251
15271
OPENJ9_PLATFORM_CODE=xz64
@@ -15257,6 +15277,9 @@ fi
15257
15277
as_fn_error $? "Unsupported OpenJ9 cpu ${OPENJ9_CPU}!" "$LINENO" 5
15258
15278
fi
15259
15279
15280
+ OPENJ9_BUILDSPEC="${OPENJ9_BUILD_OS}_${OPENJ9_BUILD_MODE_ARCH}"
15281
+
15282
+
15260
15283
15261
15284
15262
15285
@@ -15277,7 +15300,7 @@ fi
15277
15300
# Check whether --with-cmake was given.
15278
15301
if test "${with_cmake+set}" = set; then :
15279
15302
withval=$with_cmake;
15280
- if test "x$with_cmake" == xyes -o "x$with_cmake" = = x ; then
15303
+ if test "x$with_cmake" = xyes -o "x$with_cmake" = x ; then
15281
15304
with_cmake=cmake
15282
15305
fi
15283
15306
if test "x$with_cmake" != xno ; then
@@ -15485,10 +15508,15 @@ else
15485
15508
with_cmake=no
15486
15509
fi
15487
15510
15488
- if test "$with_cmake" == yes ; then
15511
+ if test "$with_cmake" = yes ; then
15489
15512
OPENJ9_ENABLE_CMAKE=true
15490
15513
else
15491
15514
OPENJ9_ENABLE_CMAKE=false
15515
+
15516
+ # Currently, mixedrefs mode is only available with CMake enabled
15517
+ if test "x$OMR_MIXED_REFERENCES_MODE" != xoff ; then
15518
+ as_fn_error $? "--with-mixedrefs=[static|dynamic] requires --with-cmake" "$LINENO" 5
15519
+ fi
15492
15520
fi
15493
15521
15494
15522
@@ -17648,7 +17676,7 @@ fi
17648
17676
17649
17677
FREEMARKER_JAR=
17650
17678
if test "x$OPENJ9_ENABLE_CMAKE" != xtrue ; then
17651
- if test "x$with_freemarker_jar" == x -o "x$with_freemarker_jar" = = xno ; then
17679
+ if test "x$with_freemarker_jar" = x -o "x$with_freemarker_jar" = xno ; then
17652
17680
printf "\n"
17653
17681
printf "The FreeMarker library is required to build the OpenJ9 build tools\n"
17654
17682
printf "and has to be provided during configure process.\n"
0 commit comments