make/hotspot/lib/JvmFeatures.gmk
branchihse-nativecompilation-branch
changeset 56723 d927981eeb64
parent 50188 531b4069637e
child 50523 7b7c75d87f9b
child 56578 e8414c8ead61
equal deleted inserted replaced
56198:89aab97c5335 56723:d927981eeb64
    30 # jvm features are selected for this jvm variant.
    30 # jvm features are selected for this jvm variant.
    31 
    31 
    32 ifeq ($(call check-jvm-feature, compiler1), true)
    32 ifeq ($(call check-jvm-feature, compiler1), true)
    33   JVM_CFLAGS_FEATURES += -DCOMPILER1
    33   JVM_CFLAGS_FEATURES += -DCOMPILER1
    34 else
    34 else
    35   JVM_EXCLUDE_PATTERNS += c1_
    35   JVM_EXCLUDE_PATTERNS += c1_ c1/
    36 endif
    36 endif
    37 
    37 
    38 ifeq ($(call check-jvm-feature, compiler2), true)
    38 ifeq ($(call check-jvm-feature, compiler2), true)
    39   JVM_CFLAGS_FEATURES += -DCOMPILER2
    39   JVM_CFLAGS_FEATURES += -DCOMPILER2
    40   JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
    40   JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
    41 else
    41 else
    42   JVM_EXCLUDES += opto libadt
    42   JVM_EXCLUDES += opto libadt
    43   JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
    43   JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
    44   JVM_EXCLUDE_PATTERNS += c2_ runtime_
    44   JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
    45 endif
    45 endif
    46 
    46 
    47 ifeq ($(call check-jvm-feature, zero), true)
    47 ifeq ($(call check-jvm-feature, zero), true)
    48   JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
    48   JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
    49   JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
    49   JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
   116       sharedPathsMiscInfo.cpp \
   116       sharedPathsMiscInfo.cpp \
   117       systemDictionaryShared.cpp \
   117       systemDictionaryShared.cpp \
   118       #
   118       #
   119 endif
   119 endif
   120 
   120 
   121 ifneq ($(call check-jvm-feature, all-gcs), true)
       
   122   JVM_CFLAGS_FEATURES += -DINCLUDE_ALL_GCS=0
       
   123   JVM_EXCLUDE_PATTERNS += \
       
   124       cms/ g1/ parallel/
       
   125   JVM_EXCLUDE_FILES += \
       
   126       concurrentGCThread.cpp \
       
   127       suspendibleThreadSet.cpp \
       
   128       plab.cpp
       
   129   JVM_EXCLUDE_FILES += \
       
   130       g1MemoryPool.cpp \
       
   131       psMemoryPool.cpp
       
   132 endif
       
   133 
       
   134 ifneq ($(call check-jvm-feature, nmt), true)
   121 ifneq ($(call check-jvm-feature, nmt), true)
   135   JVM_CFLAGS_FEATURES += -DINCLUDE_NMT=0
   122   JVM_CFLAGS_FEATURES += -DINCLUDE_NMT=0
   136   JVM_EXCLUDE_FILES += \
   123   JVM_EXCLUDE_FILES += \
   137       memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \
   124       memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \
   138       memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp
   125       memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp
   139 endif
   126 endif
   140 
   127 
   141 ifeq ($(call check-jvm-feature, aot), true)
   128 ifneq ($(call check-jvm-feature, aot), true)
   142   JVM_CFLAGS_FEATURES += -DINCLUDE_AOT
   129   JVM_CFLAGS_FEATURES += -DINCLUDE_AOT=0
   143 else
       
   144   JVM_EXCLUDE_FILES += \
   130   JVM_EXCLUDE_FILES += \
   145       compiledIC_aot_x86_64.cpp compilerRuntime.cpp \
   131       compiledIC_aot_x86_64.cpp compiledIC_aot_aarch64.cpp      \
   146       aotCodeHeap.cpp aotCompiledMethod.cpp aotLoader.cpp compiledIC_aot.cpp
   132       compilerRuntime.cpp aotCodeHeap.cpp aotCompiledMethod.cpp \
   147 endif
   133       aotLoader.cpp compiledIC_aot.cpp
       
   134 endif
       
   135 
       
   136 ifneq ($(call check-jvm-feature, cmsgc), true)
       
   137   JVM_CFLAGS_FEATURES += -DINCLUDE_CMSGC=0
       
   138   JVM_EXCLUDE_PATTERNS += gc/cms
       
   139 endif
       
   140 
       
   141 ifneq ($(call check-jvm-feature, g1gc), true)
       
   142   JVM_CFLAGS_FEATURES += -DINCLUDE_G1GC=0
       
   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 
   148 ################################################################################
   163 ################################################################################
   149 
   164 
   150 ifeq ($(call check-jvm-feature, link-time-opt), true)
   165 ifeq ($(call check-jvm-feature, link-time-opt), true)
   151   # NOTE: Disable automatic opimization level and let the explicit cflag control
   166   # NOTE: Disable automatic opimization level and let the explicit cflag control
   152   # optimization level instead. This activates O3 on slowdebug builds, just
   167   # optimization level instead. This activates O3 on slowdebug builds, just