< prev index next >

make/hotspot/lib/JvmFeatures.gmk

Print this page




  30 # jvm features are selected for this jvm variant.
  31 
  32 ifeq ($(call check-jvm-feature, compiler1), true)
  33   JVM_CFLAGS_FEATURES += -DCOMPILER1
  34 else
  35   JVM_EXCLUDE_PATTERNS += c1_ c1/
  36 endif
  37 
  38 ifeq ($(call check-jvm-feature, compiler2), true)
  39   JVM_CFLAGS_FEATURES += -DCOMPILER2
  40   JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
  41 else
  42   JVM_EXCLUDES += opto libadt
  43   JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
  44   JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
  45 endif
  46 
  47 ifeq ($(call check-jvm-feature, zero), true)
  48   JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
  49   JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
  50   ifeq ($(OPENJDK_TARGET_CPU), sparcv9)
  51     BUILD_LIBJVM_EXTRA_FILES := $(TOPDIR)/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp
  52   endif
  53 endif
  54 
  55 ifeq ($(call check-jvm-feature, minimal), true)
  56   JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
  57   ifeq ($(OPENJDK_TARGET_OS), linux)
  58     # Override the default -g with a more liberal strip policy for the minimal JVM
  59     JVM_STRIPFLAGS := --strip-unneeded
  60   endif
  61 endif
  62 
  63 ifeq ($(call check-jvm-feature, dtrace), true)
  64   JVM_CFLAGS_FEATURES += -DDTRACE_ENABLED
  65 endif
  66 
  67 ifeq ($(call check-jvm-feature, static-build), true)
  68   JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
  69 endif
  70 
  71 ifneq ($(call check-jvm-feature, jvmti), true)
  72   JVM_CFLAGS_FEATURES += -DINCLUDE_JVMTI=0
  73   JVM_EXCLUDE_FILES += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
  74       jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
  75       jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
  76       jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
  77       jvmtiClassFileReconstituter.cpp


 152 ifneq ($(call check-jvm-feature, serialgc), true)
 153   JVM_CFLAGS_FEATURES += -DINCLUDE_SERIALGC=0
 154   JVM_EXCLUDE_PATTERNS += gc/serial
 155   # If serial is disabled, we cannot use serial as OldGC in parallel
 156   JVM_EXCLUDE_FILES += psMarkSweep.cpp psMarkSweepDecorator.cpp
 157 endif
 158 
 159 ifneq ($(call check-jvm-feature, epsilongc), true)
 160   JVM_CFLAGS_FEATURES += -DINCLUDE_EPSILONGC=0
 161   JVM_EXCLUDE_PATTERNS += gc/epsilon
 162 endif
 163 
 164 ifneq ($(call check-jvm-feature, zgc), true)
 165   JVM_CFLAGS_FEATURES += -DINCLUDE_ZGC=0
 166   JVM_EXCLUDE_PATTERNS += gc/z
 167 endif
 168 
 169 ifneq ($(call check-jvm-feature, shenandoahgc), true)
 170   JVM_CFLAGS_FEATURES += -DINCLUDE_SHENANDOAHGC=0
 171   JVM_EXCLUDE_PATTERNS += gc/shenandoah
 172 else
 173   JVM_CFLAGS_FEATURES += -DSUPPORT_BARRIER_ON_PRIMITIVES -DSUPPORT_NOT_TO_SPACE_INVARIANT
 174 endif
 175 
 176 ifneq ($(call check-jvm-feature, jfr), true)
 177   JVM_CFLAGS_FEATURES += -DINCLUDE_JFR=0
 178   JVM_EXCLUDE_PATTERNS += jfr
 179 endif
 180 
 181 ################################################################################
 182 
 183 ifeq ($(call check-jvm-feature, link-time-opt), true)
 184   # NOTE: Disable automatic opimization level and let the explicit cflag control
 185   # optimization level instead. This activates O3 on slowdebug builds, just
 186   # like the old build, but it's probably not right.
 187   JVM_OPTIMIZATION :=
 188   JVM_CFLAGS_FEATURES += -O3 -flto
 189   JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing
 190 endif
 191 
 192 ifeq ($(call check-jvm-feature, minimal), true)
 193   ifeq ($(call check-jvm-feature, link-time-opt), false)




  30 # jvm features are selected for this jvm variant.
  31 
  32 ifeq ($(call check-jvm-feature, compiler1), true)
  33   JVM_CFLAGS_FEATURES += -DCOMPILER1
  34 else
  35   JVM_EXCLUDE_PATTERNS += c1_ c1/
  36 endif
  37 
  38 ifeq ($(call check-jvm-feature, compiler2), true)
  39   JVM_CFLAGS_FEATURES += -DCOMPILER2
  40   JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
  41 else
  42   JVM_EXCLUDES += opto libadt
  43   JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
  44   JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
  45 endif
  46 
  47 ifeq ($(call check-jvm-feature, zero), true)
  48   JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
  49   JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
  50   ifeq ($(call isTargetCpu, sparcv9), true)
  51     BUILD_LIBJVM_EXTRA_FILES := $(TOPDIR)/src/hotspot/cpu/sparc/memset_with_concurrent_readers_sparc.cpp
  52   endif
  53 endif
  54 
  55 ifeq ($(call check-jvm-feature, minimal), true)
  56   JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
  57   ifeq ($(call isTargetOs, linux), true)
  58     # Override the default -g with a more liberal strip policy for the minimal JVM
  59     JVM_STRIPFLAGS := --strip-unneeded
  60   endif
  61 endif
  62 
  63 ifeq ($(call check-jvm-feature, dtrace), true)
  64   JVM_CFLAGS_FEATURES += -DDTRACE_ENABLED
  65 endif
  66 
  67 ifeq ($(call check-jvm-feature, static-build), true)
  68   JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
  69 endif
  70 
  71 ifneq ($(call check-jvm-feature, jvmti), true)
  72   JVM_CFLAGS_FEATURES += -DINCLUDE_JVMTI=0
  73   JVM_EXCLUDE_FILES += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
  74       jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
  75       jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
  76       jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
  77       jvmtiClassFileReconstituter.cpp


 152 ifneq ($(call check-jvm-feature, serialgc), true)
 153   JVM_CFLAGS_FEATURES += -DINCLUDE_SERIALGC=0
 154   JVM_EXCLUDE_PATTERNS += gc/serial
 155   # If serial is disabled, we cannot use serial as OldGC in parallel
 156   JVM_EXCLUDE_FILES += psMarkSweep.cpp psMarkSweepDecorator.cpp
 157 endif
 158 
 159 ifneq ($(call check-jvm-feature, epsilongc), true)
 160   JVM_CFLAGS_FEATURES += -DINCLUDE_EPSILONGC=0
 161   JVM_EXCLUDE_PATTERNS += gc/epsilon
 162 endif
 163 
 164 ifneq ($(call check-jvm-feature, zgc), true)
 165   JVM_CFLAGS_FEATURES += -DINCLUDE_ZGC=0
 166   JVM_EXCLUDE_PATTERNS += gc/z
 167 endif
 168 
 169 ifneq ($(call check-jvm-feature, shenandoahgc), true)
 170   JVM_CFLAGS_FEATURES += -DINCLUDE_SHENANDOAHGC=0
 171   JVM_EXCLUDE_PATTERNS += gc/shenandoah


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


< prev index next >