143 JVM_EXCLUDE_PATTERNS += gc/g1 144 endif 145 146 ifneq ($(call check-jvm-feature, parallelgc), true) 147 JVM_CFLAGS_FEATURES += -DINCLUDE_PARALLELGC=0 148 JVM_EXCLUDE_PATTERNS += gc/parallel 149 endif 150 151 ifneq ($(call check-jvm-feature, serialgc), true) 152 JVM_CFLAGS_FEATURES += -DINCLUDE_SERIALGC=0 153 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 156 endif 157 158 ifneq ($(call check-jvm-feature, jfr), true) 159 JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0 160 JVM_EXCLUDE_PATTERNS += jfr 161 endif 162 163 ################################################################################ 164 165 ifeq ($(call check-jvm-feature, link-time-opt), true) 166 # NOTE: Disable automatic opimization level and let the explicit cflag control 167 # optimization level instead. This activates O3 on slowdebug builds, just 168 # like the old build, but it's probably not right. 169 JVM_OPTIMIZATION := 170 JVM_CFLAGS_FEATURES += -O3 -flto 171 JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing 172 endif 173 174 ifeq ($(call check-jvm-feature, minimal), true) 175 ifeq ($(call check-jvm-feature, link-time-opt), false) 176 JVM_OPTIMIZATION := SIZE 177 OPT_SPEED_SRC := \ 178 allocation.cpp \ 179 assembler.cpp \ 180 assembler_linux_arm.cpp \ 181 barrierSet.cpp \ 182 basicLock.cpp \ | 143 JVM_EXCLUDE_PATTERNS += gc/g1 144 endif 145 146 ifneq ($(call check-jvm-feature, parallelgc), true) 147 JVM_CFLAGS_FEATURES += -DINCLUDE_PARALLELGC=0 148 JVM_EXCLUDE_PATTERNS += gc/parallel 149 endif 150 151 ifneq ($(call check-jvm-feature, serialgc), true) 152 JVM_CFLAGS_FEATURES += -DINCLUDE_SERIALGC=0 153 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 156 endif 157 158 ifneq ($(call check-jvm-feature, jfr), true) 159 JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0 160 JVM_EXCLUDE_PATTERNS += jfr 161 endif 162 163 ifeq ($(call check-jvm-feature, no-speculative-cti), true) 164 JVM_CFLAGS_FEATURES += $(NO_SPECULATIVE_CTI_CFLAGS) -DNO_SPECULATIVE_CTI=0 165 endif 166 167 ################################################################################ 168 169 ifeq ($(call check-jvm-feature, link-time-opt), true) 170 # NOTE: Disable automatic opimization level and let the explicit cflag control 171 # optimization level instead. This activates O3 on slowdebug builds, just 172 # like the old build, but it's probably not right. 173 JVM_OPTIMIZATION := 174 JVM_CFLAGS_FEATURES += -O3 -flto 175 JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing 176 endif 177 178 ifeq ($(call check-jvm-feature, minimal), true) 179 ifeq ($(call check-jvm-feature, link-time-opt), false) 180 JVM_OPTIMIZATION := SIZE 181 OPT_SPEED_SRC := \ 182 allocation.cpp \ 183 assembler.cpp \ 184 assembler_linux_arm.cpp \ 185 barrierSet.cpp \ 186 basicLock.cpp \ |