src/hotspot/cpu/s390/globals_s390.hpp
author coleenp
Thu, 10 Jan 2019 15:13:51 -0500
changeset 53244 9807daeb47c4
parent 52460 f1bb77833b59
child 54631 3a3e4e473622
permissions -rw-r--r--
8216167: Update include guards to reflect correct directories Summary: Use script and some manual fixup to fix directores names in include guards. Reviewed-by: lfoltan, eosterlund, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42065
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52460
diff changeset
     2
 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
48626
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
     3
 * Copyright (c) 2016, 2018 SAP SE. All rights reserved.
42065
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     5
 *
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     8
 * published by the Free Software Foundation.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
     9
 *
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    14
 * accompanied this code).
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    15
 *
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    19
 *
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    22
 * questions.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    23
 *
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    24
 */
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    25
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52460
diff changeset
    26
#ifndef CPU_S390_GLOBALS_S390_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52460
diff changeset
    27
#define CPU_S390_GLOBALS_S390_HPP
42065
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    28
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    29
#include "utilities/globalDefinitions.hpp"
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    30
#include "utilities/macros.hpp"
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    31
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    32
// Sets the default values for platform dependent flags used by the runtime system.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    33
// (see globals.hpp)
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    34
// Sorted according to sparc.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    35
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    36
// z/Architecture remembers branch targets, so don't share vtables.
47586
07ad034e0c29 8188773: PPC64 and s390: Fix UseMembar and enable ShareVtableStubs
mdoerr
parents: 47216
diff changeset
    37
define_pd_global(bool,  ShareVtableStubs,            true);
42065
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    38
define_pd_global(bool,  NeedsDeoptSuspend,           false); // Only register window machines need this.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    39
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    40
define_pd_global(bool,  ImplicitNullChecks,          true);  // Generate code for implicit null checks.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    41
define_pd_global(bool,  TrapBasedNullChecks,         true);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    42
define_pd_global(bool,  UncommonNullCast,            true);  // Uncommon-trap NULLs passed to check cast.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    43
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    44
define_pd_global(uintx, CodeCacheSegmentSize,        256);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    45
// This shall be at least 32 for proper branch target alignment.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    46
// Ideally, this is 256 (cache line size). This keeps code end data
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    47
// on separate lines. But we reduced it to 64 since 256 increased
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    48
// code size significantly by padding nops between IVC and second UEP.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    49
define_pd_global(intx,  CodeEntryAlignment,          64);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    50
define_pd_global(intx,  OptoLoopAlignment,           2);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    51
define_pd_global(intx,  InlineFrequencyCount,        100);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    52
define_pd_global(intx,  InlineSmallCode,             2000);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    53
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    54
#define DEFAULT_STACK_YELLOW_PAGES   (2)
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    55
#define DEFAULT_STACK_RED_PAGES      (1)
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    56
// Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    57
// stack. To pass stack overflow tests we need 20 shadow pages.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    58
#define DEFAULT_STACK_SHADOW_PAGES   (20 DEBUG_ONLY(+2))
43420
a056d6465ef9 8172049: [s390] Implement "JEP 270: Reserved Stack Areas for Critical Sections".
goetz
parents: 42556
diff changeset
    59
#define DEFAULT_STACK_RESERVED_PAGES (1)
42065
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    60
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    61
#define MIN_STACK_YELLOW_PAGES     DEFAULT_STACK_YELLOW_PAGES
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    62
#define MIN_STACK_RED_PAGES        DEFAULT_STACK_RED_PAGES
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    63
#define MIN_STACK_SHADOW_PAGES     DEFAULT_STACK_SHADOW_PAGES
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    64
#define MIN_STACK_RESERVED_PAGES   (0)
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    65
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    66
define_pd_global(intx,  StackYellowPages,            DEFAULT_STACK_YELLOW_PAGES);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    67
define_pd_global(intx,  StackRedPages,               DEFAULT_STACK_RED_PAGES);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    68
define_pd_global(intx,  StackShadowPages,            DEFAULT_STACK_SHADOW_PAGES);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    69
define_pd_global(intx,  StackReservedPages,          DEFAULT_STACK_RESERVED_PAGES);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    70
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    71
define_pd_global(bool, RewriteBytecodes,     true);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    72
define_pd_global(bool, RewriteFrequentPairs, true);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    73
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    74
define_pd_global(bool, PreserveFramePointer, false);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    75
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    76
// GC Ergo Flags
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    77
define_pd_global(size_t, CMSYoungGenPerWorker, 16*M);  // Default max size of CMS young gen, per GC worker thread.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    78
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    79
define_pd_global(uintx, TypeProfileLevel, 111);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    80
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    81
define_pd_global(bool, CompactStrings, true);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    82
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    83
// 8146801 (Short Array Allocation): No performance work done here yet.
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    84
define_pd_global(intx, InitArrayShortSize, 1*BytesPerLong);
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    85
48332
651a95f30dfb 8193257: PPC64, s390 implementation for Thread-local handshakes
mdoerr
parents: 47881
diff changeset
    86
define_pd_global(bool, ThreadLocalHandshakes, true);
47881
0ce0ac68ace7 8189941: Implementation JEP 312: Thread-local handshake
rehn
parents: 47821
diff changeset
    87
48626
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    88
#define ARCH_FLAGS(develop,      \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    89
                   product,      \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    90
                   diagnostic,   \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    91
                   experimental, \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    92
                   notproduct,   \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    93
                   range,        \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    94
                   constraint,   \
9f6f48d4f9a1 8194814: [ppc, s390] A row of minor fixes and cleanups
goetz
parents: 48332
diff changeset
    95
                   writeable)    \
42065
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    96
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    97
  /* Reoptimize code-sequences of calls at runtime, e.g. replace an */        \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    98
  /* indirect call by a direct call.                                */        \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
    99
  product(bool, ReoptimizeCallSequences, true,                                \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   100
          "Reoptimize code-sequences of calls at runtime.")                   \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   101
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   102
  product(bool, UseByteReverseInstruction, true,                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   103
          "Use byte reverse instruction.")                                    \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   104
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   105
  product(bool, ExpandLoadingBaseDecode, true, "Expand the assembler "        \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   106
          "instruction required to load the base from DecodeN nodes during "  \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   107
          "matching.")                                                        \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   108
  product(bool, ExpandLoadingBaseDecode_NN, true, "Expand the assembler "     \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   109
          "instruction required to load the base from DecodeN_NN nodes "      \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   110
          "during matching.")                                                 \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   111
  product(bool, ExpandLoadingBaseEncode, true, "Expand the assembler "        \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   112
          "instruction required to load the base from EncodeP nodes during "  \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   113
          "matching.")                                                        \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   114
  product(bool, ExpandLoadingBaseEncode_NN, true, "Expand the assembler "     \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   115
          "instruction required to load the base from EncodeP_NN nodes "      \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   116
          "during matching.")                                                 \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   117
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   118
  /* Seems to pay off with 2 pages already. */                                \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   119
  product(size_t, MVCLEThreshold, +2*(4*K),                                   \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   120
          "Threshold above which page-aligned MVCLE copy/init is used.")      \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   121
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   122
  product(bool, PreferLAoverADD, false,                                       \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   123
          "Use LA/LAY instructions over ADD instructions (z/Architecture).")  \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   124
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   125
  develop(bool, ZapEmptyStackFields, false, "Write 0x0101... to empty stack"  \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   126
          " fields. Use this to ease stack debugging.")                       \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   127
                                                                              \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   128
  product(bool, TraceTraps, false, "Trace all traps the signal handler"       \
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   129
          "handles.")
6032b31e3719 8167673: [s390] The s390 port.
goetz
parents:
diff changeset
   130
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 52460
diff changeset
   131
#endif // CPU_S390_GLOBALS_S390_HPP