< prev index next >

make/hotspot/lib/JvmFeatures.gmk

Print this page


   1 #
   2 # Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 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, 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, jfr), true)
 169   JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0
 170   JVM_EXCLUDE_PATTERNS += jfr
 171 endif
 172 
 173 ################################################################################
 174 
 175 ifeq ($(call check-jvm-feature, link-time-opt), true)
 176   # NOTE: Disable automatic opimization level and let the explicit cflag control
 177   # optimization level instead. This activates O3 on slowdebug builds, just
 178   # like the old build, but it's probably not right.
 179   JVM_OPTIMIZATION :=
 180   JVM_CFLAGS_FEATURES += -O3 -flto
 181   JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing
 182 endif
 183 
 184 ifeq ($(call check-jvm-feature, minimal), true)
 185   ifeq ($(call check-jvm-feature, link-time-opt), false)


   1 #
   2 # Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 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, 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 else
 172   JVM_CFLAGS_FEATURES += -DSUPPORT_BARRIER_ON_PRIMITIVES -DSUPPORT_NOT_TO_SPACE_INVARIANT
 173 endif
 174 
 175 ifneq ($(call check-jvm-feature, jfr), true)
 176   JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0
 177   JVM_EXCLUDE_PATTERNS += jfr
 178 endif
 179 
 180 ################################################################################
 181 
 182 ifeq ($(call check-jvm-feature, link-time-opt), true)
 183   # NOTE: Disable automatic opimization level and let the explicit cflag control
 184   # optimization level instead. This activates O3 on slowdebug builds, just
 185   # like the old build, but it's probably not right.
 186   JVM_OPTIMIZATION :=
 187   JVM_CFLAGS_FEATURES += -O3 -flto
 188   JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing
 189 endif
 190 
 191 ifeq ($(call check-jvm-feature, minimal), true)
 192   ifeq ($(call check-jvm-feature, link-time-opt), false)


< prev index next >