@@ -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=1605236068
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,53 @@ 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
+
15227
+ OMR_MIXED_REFERENCES_MODE=off
15228
+ if test "x$with_mixedrefs" != x -a "x$with_mixedrefs" != xno; then
15229
+ if test "x$with_mixedrefs" = xyes -o "x$with_mixedrefs" = xstatic; then
15230
+ OMR_MIXED_REFERENCES_MODE=static
15231
+ elif test "x$with_mixedrefs" = xdynamic; then
15232
+ OMR_MIXED_REFERENCES_MODE=dynamic
15233
+ else
15234
+ as_fn_error $? "OpenJ9 supports --with-mixedrefs=static and --with-mixedrefs=dynamic" "$LINENO" 5
15235
+ fi
15236
+ OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}_mxdptrs"
15237
+ OPENJ9_LIBS_SUBDIR=default
15238
+ elif test "x$with_noncompressedrefs" = xyes ; then
15239
+ OPENJ9_BUILD_MODE_ARCH="${OPENJ9_CPU}"
15214
15240
OPENJ9_LIBS_SUBDIR=default
15215
15241
else
15216
- OPENJ9_BUILDSPEC="${OPENJDK_BUILD_OS}_ ${OPENJ9_CPU}_cmprssptrs"
15242
+ OPENJ9_BUILD_MODE_ARCH=" ${OPENJ9_CPU}_cmprssptrs"
15217
15243
OPENJ9_LIBS_SUBDIR=compressedrefs
15218
15244
fi
15219
15245
15220
15246
if test "x$OPENJ9_CPU" = xx86-64 ; then
15221
- if test "x$OPENJDK_BUILD_OS " = xlinux ; then
15247
+ if test "x$OPENJ9_BUILD_OS " = xlinux ; then
15222
15248
OPENJ9_PLATFORM_CODE=xa64
15223
- elif test "x$OPENJDK_BUILD_OS " = xwindows ; then
15249
+ elif test "x$OPENJ9_BUILD_OS " = xwindows ; then
15224
15250
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"
15251
+ OPENJ9_BUILD_OS=win
15252
+ if test "x$OPENJDK_TARGET_CPU_BITS" = x32 ; then
15253
+ OPENJ9_PLATFORM_CODE=wi32
15254
+ OPENJ9_BUILD_MODE_ARCH="x86"
15234
15255
fi
15235
- elif test "x$OPENJDK_BUILD_OS " = xmacosx ; then
15256
+ elif test "x$OPENJ9_BUILD_OS " = xmacosx ; then
15236
15257
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
15258
+ OPENJ9_BUILD_OS=osx
15242
15259
else
15243
- as_fn_error $? "Unsupported OpenJ9 platform ${OPENJDK_BUILD_OS }!" "$LINENO" 5
15260
+ as_fn_error $? "Unsupported OpenJ9 platform ${OPENJ9_BUILD_OS }!" "$LINENO" 5
15244
15261
fi
15245
15262
elif test "x$OPENJ9_CPU" = xppc-64_le ; then
15246
15263
OPENJ9_PLATFORM_CODE=xl64
15247
- if test "x$OPENJ9_LIBS_SUBDIR" != xdefault ; then
15248
- OPENJ9_BUILDSPEC="${OPENJDK_BUILD_OS}_ppc-64_cmprssptrs_le"
15264
+ if test "x$OMR_MIXED_REFERENCES_MODE" = xoff ; then
15265
+ if test "x$OPENJ9_LIBS_SUBDIR" != xdefault ; then
15266
+ OPENJ9_BUILD_MODE_ARCH="ppc-64_cmprssptrs_le"
15267
+ fi
15268
+ else
15269
+ OPENJ9_BUILD_MODE_ARCH="ppc-64_mxdptrs_le"
15249
15270
fi
15250
15271
elif test "x$OPENJ9_CPU" = x390-64 ; then
15251
15272
OPENJ9_PLATFORM_CODE=xz64
@@ -15257,6 +15278,9 @@ fi
15257
15278
as_fn_error $? "Unsupported OpenJ9 cpu ${OPENJ9_CPU}!" "$LINENO" 5
15258
15279
fi
15259
15280
15281
+ OPENJ9_BUILDSPEC="${OPENJ9_BUILD_OS}_${OPENJ9_BUILD_MODE_ARCH}"
15282
+
15283
+
15260
15284
15261
15285
15262
15286
@@ -15277,7 +15301,7 @@ fi
15277
15301
# Check whether --with-cmake was given.
15278
15302
if test "${with_cmake+set}" = set; then :
15279
15303
withval=$with_cmake;
15280
- if test "x$with_cmake" == xyes -o "x$with_cmake" = = x ; then
15304
+ if test "x$with_cmake" = xyes -o "x$with_cmake" = x ; then
15281
15305
with_cmake=cmake
15282
15306
fi
15283
15307
if test "x$with_cmake" != xno ; then
@@ -15485,10 +15509,15 @@ else
15485
15509
with_cmake=no
15486
15510
fi
15487
15511
15488
- if test "$with_cmake" == yes ; then
15512
+ if test "$with_cmake" = yes ; then
15489
15513
OPENJ9_ENABLE_CMAKE=true
15490
15514
else
15491
15515
OPENJ9_ENABLE_CMAKE=false
15516
+
15517
+ # Currently, mixedrefs mode is only available with CMake enabled
15518
+ if test "x$OMR_MIXED_REFERENCES_MODE" != xoff ; then
15519
+ as_fn_error $? "--with-mixedrefs=[static|dynamic] requires --with-cmake" "$LINENO" 5
15520
+ fi
15492
15521
fi
15493
15522
15494
15523
@@ -17648,7 +17677,7 @@ fi
17648
17677
17649
17678
FREEMARKER_JAR=
17650
17679
if test "x$OPENJ9_ENABLE_CMAKE" != xtrue ; then
17651
- if test "x$with_freemarker_jar" == x -o "x$with_freemarker_jar" = = xno ; then
17680
+ if test "x$with_freemarker_jar" = x -o "x$with_freemarker_jar" = xno ; then
17652
17681
printf "\n"
17653
17682
printf "The FreeMarker library is required to build the OpenJ9 build tools\n"
17654
17683
printf "and has to be provided during configure process.\n"
0 commit comments