Skip to content

Commit 3a416b9

Browse files
committed
8243988: Added flexibility in build system for unusal hotspot configurations
Reviewed-by: erikj
1 parent f4cb2bf commit 3a416b9

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

make/ModuleTools.gmk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,7 @@ TOOL_GENGRAPHS := $(BUILD_JAVA) -esa -ea -cp $(TOOLS_CLASSES_DIR) \
4444
TOOL_MODULESUMMARY := $(BUILD_JAVA) -esa -ea -cp $(TOOLS_CLASSES_DIR) \
4545
build.tools.jigsaw.ModuleSummary
4646

47-
TOOL_ADD_PACKAGES_ATTRIBUTE := $(BUILD_JAVA) $(JAVA_FLAGS_SMALL) \
47+
TOOL_ADD_PACKAGES_ATTRIBUTE := $(BUILD_JAVA) $(JAVA_FLAGS_SMALL_BUILDJDK) \
4848
-cp $(TOOLS_CLASSES_DIR) \
4949
--add-exports java.base/jdk.internal.module=ALL-UNNAMED \
5050
build.tools.jigsaw.AddPackagesAttribute

make/RunTestsPrebuiltSpec.gmk

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -63,8 +63,9 @@ TEST_JOBS ?= 0
6363

6464
# Use hard-coded values for java flags (one size, fits all!)
6565
JAVA_FLAGS := -Duser.language=en -Duser.country=US
66-
JAVA_FLAGS_BIG:= -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
67-
JAVA_FLAGS_SMALL:= -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
66+
JAVA_FLAGS_BIG := -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
67+
JAVA_FLAGS_SMALL := -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
68+
BUILDJDK_JAVA_FLAGS_SMALL := -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
6869
BUILD_JAVA_FLAGS := $(JAVA_FLAGS_BIG)
6970

7071
################################################################################

make/autoconf/boot-jdk.m4

+5
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
496496
JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small
497497
AC_SUBST(JAVA_FLAGS_SMALL)
498498
499+
# Don't presuppose SerialGC is present in the buildjdk. Also, we cannot test
500+
# the buildjdk, but on the other hand we know what it will support.
501+
BUILDJDK_JAVA_FLAGS_SMALL="-Xms32M -Xmx512M -XX:TieredStopAtLevel=1"
502+
AC_SUBST(BUILDJDK_JAVA_FLAGS_SMALL)
503+
499504
JAVA_TOOL_FLAGS_SMALL=""
500505
for f in $JAVA_FLAGS_SMALL; do
501506
JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f"

make/autoconf/spec.gmk.in

+1
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ STRIPFLAGS:=@STRIPFLAGS@
620620
JAVA_FLAGS:=@JAVA_FLAGS@
621621
JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
622622
JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
623+
BUILDJDK_JAVA_FLAGS_SMALL:=@BUILDJDK_JAVA_FLAGS_SMALL@
623624
JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
624625
JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
625626
SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@

make/hotspot/lib/JvmFeatures.gmk

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ ifeq ($(call check-jvm-feature, zero), true)
5555
endif
5656
endif
5757

58+
ifeq ($(JVM_VARIANT), custom)
59+
JVM_CFLAGS_FEATURES += -DVMTYPE=\"Custom\"
60+
endif
61+
5862
ifeq ($(call check-jvm-feature, minimal), true)
5963
JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
6064
ifeq ($(call isTargetOs, linux), true)
@@ -151,8 +155,6 @@ endif
151155
ifneq ($(call check-jvm-feature, serialgc), true)
152156
JVM_CFLAGS_FEATURES += -DINCLUDE_SERIALGC=0
153157
JVM_EXCLUDE_PATTERNS += gc/serial
154-
# If serial is disabled, we cannot use serial as OldGC in parallel
155-
JVM_EXCLUDE_FILES += psMarkSweep.cpp psMarkSweepDecorator.cpp
156158
endif
157159

158160
ifneq ($(call check-jvm-feature, epsilongc), true)

0 commit comments

Comments
 (0)