hotspot/make/lib/JvmFeatures.gmk
author duke
Wed, 05 Jul 2017 22:53:30 +0200
changeset 43880 b5015f742ba6
parent 42664 29142a56c193
child 47106 bed18a111b90
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     1
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     2
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     4
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    10
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    15
# accompanied this code).
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    16
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    20
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    23
# questions.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    24
#
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    25
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    26
$(eval $(call IncludeCustomExtension, hotspot, lib/JvmFeatures.gmk))
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    27
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    28
################################################################################
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    29
# Setup CFLAGS and EXCLUDES for the libjvm compilation, depending on which
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    30
# jvm features are selected for this jvm variant.
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    31
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    32
ifeq ($(call check-jvm-feature, compiler1), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    33
  JVM_CFLAGS_FEATURES += -DCOMPILER1
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    34
else
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    35
  JVM_EXCLUDE_PATTERNS += c1_
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    36
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    37
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    38
ifeq ($(call check-jvm-feature, compiler2), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    39
  JVM_CFLAGS_FEATURES += -DCOMPILER2
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    40
  JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    41
else
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    42
  JVM_EXCLUDES += opto libadt
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    43
  JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    44
  JVM_EXCLUDE_PATTERNS += c2_ runtime_
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    45
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    46
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    47
ifeq ($(call check-jvm-feature, zero), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    48
  JVM_CFLAGS_FEATURES += -DZERO -DCC_INTERP -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    49
  JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    50
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    51
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    52
ifeq ($(call check-jvm-feature, shark), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    53
  JVM_CFLAGS_FEATURES += -DSHARK $(LLVM_CFLAGS)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    54
  JVM_LDFLAGS_FEATURES += $(LLVM_LDFLAGS)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    55
  JVM_LIBS_FEATURES += $(LLVM_LIBS)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    56
else
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    57
  JVM_EXCLUDES += shark
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    58
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    59
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    60
ifeq ($(call check-jvm-feature, minimal), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    61
  JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
41674
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 38097
diff changeset
    62
  ifeq ($(OPENJDK_TARGET_OS), linux)
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 38097
diff changeset
    63
    # Override the default -g with a more liberal strip policy for the minimal JVM
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 38097
diff changeset
    64
    JVM_STRIPFLAGS := --strip-unneeded
8ff2f216109b 8164120: The minimal VM should be stripped using --strip-unneeded
erikj
parents: 38097
diff changeset
    65
  endif
37437
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    66
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    67
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    68
ifeq ($(call check-jvm-feature, dtrace), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    69
  JVM_CFLAGS_FEATURES += -DDTRACE_ENABLED
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    70
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    71
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    72
ifeq ($(call check-jvm-feature, static-build), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    73
  JVM_CFLAGS_FEATURES += -DSTATIC_BUILD=1
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    74
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    75
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    76
ifneq ($(call check-jvm-feature, jvmti), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    77
  JVM_CFLAGS_FEATURES += -DINCLUDE_JVMTI=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    78
  JVM_EXCLUDE_FILES += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    79
      jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    80
      jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    81
      jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    82
      jvmtiClassFileReconstituter.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    83
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    84
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    85
ifneq ($(call check-jvm-feature, jvmci), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    86
  JVM_CFLAGS_FEATURES += -DINCLUDE_JVMCI=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    87
  JVM_EXCLUDES += jvmci
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    88
  JVM_EXCLUDE_FILES += jvmciCodeInstaller_$(HOTSPOT_TARGET_CPU_ARCH).cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    89
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    90
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    91
ifneq ($(call check-jvm-feature, fprof), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    92
  JVM_CFLAGS_FEATURES += -DINCLUDE_FPROF=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    93
  JVM_EXCLUDE_FILES += fprofiler.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    94
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    95
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    96
ifneq ($(call check-jvm-feature, vm-structs), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    97
  JVM_CFLAGS_FEATURES += -DINCLUDE_VM_STRUCTS=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    98
  JVM_EXCLUDE_FILES += vmStructs.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
    99
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   100
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   101
ifneq ($(call check-jvm-feature, jni-check), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   102
  JVM_CFLAGS_FEATURES += -DINCLUDE_JNI_CHECK=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   103
  JVM_EXCLUDE_FILES += jniCheck.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   104
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   105
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   106
ifneq ($(call check-jvm-feature, services), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   107
  JVM_CFLAGS_FEATURES += -DINCLUDE_SERVICES=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   108
  JVM_EXCLUDE_FILES += heapDumper.cpp heapInspection.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   109
      attachListener_$(HOTSPOT_TARGET_OS).cpp attachListener.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   110
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   111
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   112
ifneq ($(call check-jvm-feature, management), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   113
  JVM_CFLAGS_FEATURES += -DINCLUDE_MANAGEMENT=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   114
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   115
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   116
ifneq ($(call check-jvm-feature, cds), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   117
  JVM_CFLAGS_FEATURES += -DINCLUDE_CDS=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   118
  JVM_EXCLUDE_FILES += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   119
      classListParser.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   120
      classLoaderExt.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   121
      filemap.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   122
      metaspaceShared.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   123
      metaspaceShared_$(HOTSPOT_TARGET_CPU).cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   124
      metaspaceShared_$(HOTSPOT_TARGET_CPU_ARCH).cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   125
      sharedClassUtil.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   126
      sharedPathsMiscInfo.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   127
      systemDictionaryShared.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   128
      #
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   129
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   130
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   131
ifneq ($(call check-jvm-feature, all-gcs), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   132
  JVM_CFLAGS_FEATURES += -DINCLUDE_ALL_GCS=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   133
  JVM_EXCLUDE_PATTERNS += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   134
      cms/ g1/ parallel/
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   135
  JVM_EXCLUDE_FILES += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   136
      concurrentGCThread.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   137
      plab.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   138
  JVM_EXCLUDE_FILES += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   139
      g1MemoryPool.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   140
      psMemoryPool.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   141
endif
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   142
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   143
ifneq ($(call check-jvm-feature, nmt), true)
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   144
  JVM_CFLAGS_FEATURES += -DINCLUDE_NMT=0
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   145
  JVM_EXCLUDE_FILES += \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   146
      memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   147
      memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp
f824aabc7af8 8152666: The new Hotspot Build System
erikj
parents:
diff changeset
   148
endif
42650
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   149
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   150
ifeq ($(call check-jvm-feature, aot), true)
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   151
  JVM_CFLAGS_FEATURES += -DINCLUDE_AOT
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   152
else
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   153
  JVM_EXCLUDE_FILES += \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   154
      compiledIC_aot_x86_64.cpp compilerRuntime.cpp \
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   155
      aotCodeHeap.cpp aotCompiledMethod.cpp aotLoader.cpp compiledIC_aot.cpp
1f304d0c888b 8171008: Integrate AOT compiler into JDK
kvn
parents: 41674
diff changeset
   156
endif
42664
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   157
################################################################################
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   158
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   159
ifeq ($(call check-jvm-feature, link-time-opt), true)
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   160
  # NOTE: Disable automatic opimization level and let the explicit cflag control
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   161
  # optimization level instead. This activates O3 on slowdebug builds, just
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   162
  # like the old build, but it's probably not right.
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   163
  JVM_OPTIMIZATION :=
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   164
  JVM_CFLAGS_FEATURES += -O3 -flto
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   165
  JVM_LDFLAGS_FEATURES += -O3 -flto -fwhole-program -fno-strict-aliasing
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   166
endif
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   167
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   168
ifeq ($(call check-jvm-feature, minimal), true)
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   169
  ifeq ($(call check-jvm-feature, link-time-opt), false)
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   170
    JVM_OPTIMIZATION := SIZE
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   171
    OPT_SPEED_SRC := \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   172
        allocation.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   173
        assembler.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   174
        assembler_linux_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   175
        barrierSet.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   176
        basicLock.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   177
        biasedLocking.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   178
        bytecode.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   179
        bytecodeInterpreter.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   180
        bytecodeInterpreter_x86.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   181
        c1_Compilation.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   182
        c1_Compiler.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   183
        c1_GraphBuilder.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   184
        c1_LinearScan.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   185
        c1_LIR.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   186
        ciEnv.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   187
        ciObjectFactory.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   188
        codeBlob.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   189
        constantPool.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   190
        constMethod.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   191
        classLoader.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   192
        classLoaderData.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   193
        classFileParser.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   194
        classFileStream.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   195
        cpCache.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   196
        defNewGeneration.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   197
        frame_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   198
        genCollectedHeap.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   199
        generation.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   200
        genMarkSweep.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   201
        growableArray.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   202
        handles.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   203
        hashtable.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   204
        heap.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   205
        icache.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   206
        icache_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   207
        instanceKlass.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   208
        invocationCounter.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   209
        iterator.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   210
        javaCalls.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   211
        javaClasses.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   212
        jniFastGetField_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   213
        jvm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   214
        jvm_linux.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   215
        linkResolver.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   216
        klass.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   217
        klassVtable.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   218
        markSweep.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   219
        memRegion.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   220
        memoryPool.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   221
        method.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   222
        methodHandles.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   223
        methodHandles_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   224
        methodLiveness.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   225
        metablock.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   226
        metaspace.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   227
        mutex.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   228
        mutex_linux.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   229
        mutexLocker.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   230
        nativeLookup.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   231
        objArrayKlass.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   232
        os_linux.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   233
        os_linux_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   234
        placeHolders.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   235
        quickSort.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   236
        resourceArea.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   237
        rewriter.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   238
        sharedRuntime.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   239
        signature.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   240
        space.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   241
        stackMapTable.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   242
        symbolTable.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   243
        systemDictionary.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   244
        symbol.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   245
        synchronizer.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   246
        threadLS_bsd_x86.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   247
        threadLS_linux_arm.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   248
        threadLS_linux_x86.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   249
        timer.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   250
        typeArrayKlass.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   251
        unsafe.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   252
        utf8.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   253
        vmSymbols.cpp \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   254
        #
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   255
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   256
    $(foreach s, $(OPT_SPEED_SRC), \
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   257
        $(eval BUILD_LIBJVM_$s_OPTIMIZATION := HIGHEST_JVM))
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   258
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   259
    BUILD_LIBJVM_systemDictionary.cpp_CXXFLAGS := -fno-optimize-sibling-calls
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   260
  endif
29142a56c193 8168503: JEP 297: Unified arm32/arm64 Port
bobv
parents: 42650
diff changeset
   261
endif