158 ifneq ($(call check-jvm-feature, epsilongc), true)
159 JVM_CFLAGS_FEATURES += -DINCLUDE_EPSILONGC=0
160 JVM_EXCLUDE_PATTERNS += gc/epsilon
161 endif
162
163 ifneq ($(call check-jvm-feature, zgc), true)
164 JVM_CFLAGS_FEATURES += -DINCLUDE_ZGC=0
165 JVM_EXCLUDE_PATTERNS += gc/z
166 endif
167
168 ifneq ($(call check-jvm-feature, shenandoahgc), true)
169 JVM_CFLAGS_FEATURES += -DINCLUDE_SHENANDOAHGC=0
170 JVM_EXCLUDE_PATTERNS += gc/shenandoah
171 endif
172
173 ifneq ($(call check-jvm-feature, jfr), true)
174 JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0
175 JVM_EXCLUDE_PATTERNS += jfr
176 endif
177
178 ################################################################################
179
180 ifeq ($(call check-jvm-feature, link-time-opt), true)
181 # NOTE: Disable automatic opimization level and let the explicit cflag control
182 # optimization level instead. This activates O3 on slowdebug builds, just
183 # like the old build, but it's probably not right.
184 JVM_OPTIMIZATION :=
185 JVM_CFLAGS_FEATURES += -O3 -flto
186 JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing
187 endif
188
189 ifeq ($(call check-jvm-feature, minimal), true)
190 ifeq ($(call check-jvm-feature, link-time-opt), false)
191 JVM_OPTIMIZATION := SIZE
192 OPT_SPEED_SRC := \
193 allocation.cpp \
194 assembler.cpp \
195 barrierSet.cpp \
196 basicLock.cpp \
197 biasedLocking.cpp \
|
158 ifneq ($(call check-jvm-feature, epsilongc), true)
159 JVM_CFLAGS_FEATURES += -DINCLUDE_EPSILONGC=0
160 JVM_EXCLUDE_PATTERNS += gc/epsilon
161 endif
162
163 ifneq ($(call check-jvm-feature, zgc), true)
164 JVM_CFLAGS_FEATURES += -DINCLUDE_ZGC=0
165 JVM_EXCLUDE_PATTERNS += gc/z
166 endif
167
168 ifneq ($(call check-jvm-feature, shenandoahgc), true)
169 JVM_CFLAGS_FEATURES += -DINCLUDE_SHENANDOAHGC=0
170 JVM_EXCLUDE_PATTERNS += gc/shenandoah
171 endif
172
173 ifneq ($(call check-jvm-feature, jfr), true)
174 JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0
175 JVM_EXCLUDE_PATTERNS += jfr
176 endif
177
178 ifneq ($(call check-jvm-feature, tsan), true)
179 JVM_CFLAGS_FEATURES += -DINCLUDE_TSAN=0
180 JVM_EXCLUDE_PATTERNS += tsan
181 endif
182
183 ################################################################################
184
185 ifeq ($(call check-jvm-feature, link-time-opt), true)
186 # NOTE: Disable automatic opimization level and let the explicit cflag control
187 # optimization level instead. This activates O3 on slowdebug builds, just
188 # like the old build, but it's probably not right.
189 JVM_OPTIMIZATION :=
190 JVM_CFLAGS_FEATURES += -O3 -flto
191 JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing
192 endif
193
194 ifeq ($(call check-jvm-feature, minimal), true)
195 ifeq ($(call check-jvm-feature, link-time-opt), false)
196 JVM_OPTIMIZATION := SIZE
197 OPT_SPEED_SRC := \
198 allocation.cpp \
199 assembler.cpp \
200 barrierSet.cpp \
201 basicLock.cpp \
202 biasedLocking.cpp \
|