Skip to content

Commit c5932da

Browse files
committed
Copy gc_full libs only when in mixedrefs static mode
Signed-off-by: Sharon Wang <[email protected]>
1 parent 04d832b commit c5932da

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

closed/OpenJ9.gmk

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ ifeq (true,$(OPENJ9_ENABLE_CMAKE))
338338
-DJ9VM_OMR_DIR="$(OPENJ9OMR_TOPDIR)" \
339339
-DJAVA_SPEC_VERSION=$(VERSION_FEATURE) \
340340
-DOMR_DDR=$(OPENJ9_ENABLE_DDR) \
341+
-DOMR_MIXED_REFERENCES_MODE=$(OMR_MIXED_REFERENCES_MODE) \
341342
-DOPENJ9_BUILD=true \
342343
-DOPENJ9_SHA=$(OPENJ9_SHA) \
343344
-DOPENJDK_VERSION_NUMBER_FOUR_POSITIONS=$(VERSION_NUMBER_FOUR_POSITIONS) \
344-
-DOMR_MIXED_REFERENCES_MODE="$(OMR_MIXED_REFERENCES_MODE)" \
345345
#
346346

347347
ifeq (windows,$(OPENJDK_TARGET_OS))

closed/autoconf/custom-hook.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ AC_DEFUN([OPENJ9_CONFIGURE_CMAKE],
7878
7979
# Currently, mixedrefs mode is only available with CMake enabled
8080
if test "x$OMR_MIXED_REFERENCES_MODE" != xoff ; then
81-
AC_MSG_ERROR([--with-mixedrefs=[static|dynamic] requires --with-cmake])
81+
AC_MSG_ERROR([[--with-mixedrefs=[static|dynamic] requires --with-cmake]])
8282
fi
8383
else
8484
OPENJ9_ENABLE_CMAKE=true

closed/custom/copy/Copy-java.base.gmk

+4-13
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,13 @@ $(call openj9_copy_files_and_debuginfos, \
5959
# CPU targets without JIT support.
6060
NO_JIT_CPUS := riscv64
6161

62-
# Decide which GC lib(s) to copy
63-
ifneq (off,$(OMR_MIXED_REFERENCES_MODE))
64-
POINTER_MODE := mixed
65-
else ifeq (compressedrefs,$(OPENJ9_LIBS_SUBDIR))
66-
POINTER_MODE := compressed
67-
else
68-
POINTER_MODE := full
69-
endif
70-
7162
$(call openj9_copy_shlibs, \
7263
$(if $(filter zos,$(OPENJDK_TARGET_OS)),j9a2e) \
7364
j9dmp29 \
74-
$(if $(filter compressed mixed,$(POINTER_MODE)),j9gc29) \
75-
$(if $(filter full mixed,$(POINTER_MODE)),j9gc_full29) \
76-
$(if $(filter compressed mixed,$(POINTER_MODE)),j9gcchk29) \
77-
$(if $(filter full mixed,$(POINTER_MODE)),j9gcchk_full29) \
65+
j9gc29 \
66+
$(if $(filter static,$(OMR_MIXED_REFERENCES_MODE)),j9gc_full29) \
67+
j9gcchk29 \
68+
$(if $(filter static,$(OMR_MIXED_REFERENCES_MODE)),j9gcchk_full29) \
7869
j9hookable29 \
7970
$(if $(filter zos,$(OPENJDK_TARGET_OS)),j9ifa29) \
8071
$(if $(filter $(NO_JIT_CPUS),$(OPENJDK_TARGET_CPU)),,j9jit29) \

0 commit comments

Comments
 (0)