hotspot/src/os/aix/vm/globals_aix.hpp
author csahu
Tue, 24 May 2016 16:02:45 +0530
changeset 39117 59fa99a45873
parent 38273 2634194d7555
child 42061 67176803a846
permissions -rw-r--r--
8150900: Implement diagnostic_pd Reviewed-by: twisti, gziemski, kevinw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     1
/*
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
     2
 * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
35594
cc13089c6327 8147937: Adapt SAP copyrights to new company name.
goetz
parents: 34647
diff changeset
     3
 * Copyright (c) 2012, 2015 SAP SE. All rights reserved.
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     5
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     8
 * published by the Free Software Foundation.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
     9
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    14
 * accompanied this code).
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    15
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    19
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    22
 * questions.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    23
 *
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    24
 */
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    25
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    26
#ifndef OS_AIX_VM_GLOBALS_AIX_HPP
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    27
#define OS_AIX_VM_GLOBALS_AIX_HPP
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    28
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    29
//
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    30
// Defines Aix specific flags. They are not available on other platforms.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    31
//
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    32
// (Please keep the switches sorted alphabetically.)
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    33
#define RUNTIME_OS_FLAGS(develop, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    34
                         develop_pd, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    35
                         product, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    36
                         product_pd, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    37
                         diagnostic, \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38273
diff changeset
    38
                         diagnostic_pd, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    39
                         notproduct, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    40
                         range, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    41
                         constraint, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 35594
diff changeset
    42
                         writeable) \
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    43
                                                                                    \
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    44
  /* Whether to allow the VM to run if EXTSHM=ON. EXTSHM is an environment */       \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    45
  /* variable used on AIX to activate certain hacks which allow more shm segments */\
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    46
  /* for 32bit processes. For 64bit processes, it is pointless and may have */      \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    47
  /* harmful side effects (e.g. for some reasonn prevents allocation of 64k pages */\
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    48
  /* via shmctl). */                                                                \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    49
  /* Per default we quit with an error if that variable is found; for certain */    \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    50
  /* customer scenarios, we may want to be able to run despite that variable. */    \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    51
  product(bool, AllowExtshm, false,                                                 \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    52
          "Allow VM to run with EXTSHM=ON.")                                        \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    53
                                                                                    \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    54
  product(intx, AttachListenerTimeout, 1000,                                        \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    55
          "Timeout in ms the attach listener waits for a request")                  \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    56
          range(0, 2147483)                                                         \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    57
                                                                                    \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    58
  /*  Maximum expected size of the data segment. That correlates with the      */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    59
  /*  to the maximum C Heap consumption we expect.                             */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    60
  /*  We need to know this because we need to leave "breathing space" for the  */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    61
  /*  data segment when placing the java heap. If that space is too small, we  */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    62
  /*  reduce our chance of getting a low heap address (needed for compressed   */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    63
  /*  Oops).                                                                   */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    64
  product(uintx, MaxExpectedDataSegmentSize, (SIZE_4G * 2),                         \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    65
          "Maximum expected Data Segment Size.")                                    \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    66
                                                                                    \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    67
  /* Use optimized addresses for the polling page.                             */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    68
  product(bool, OptimizePollingPageLocation, true,                                  \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    69
             "Optimize the location of the polling page used for Safepoints")       \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    70
                                                                                    \
30198
ec621727bd41 8075505: aix: improve handling of native memory
goetz
parents: 22831
diff changeset
    71
  /* Use 64K pages for virtual memory (shmat). */                                   \
ec621727bd41 8075505: aix: improve handling of native memory
goetz
parents: 22831
diff changeset
    72
  product(bool, Use64KPages, true,                                                  \
ec621727bd41 8075505: aix: improve handling of native memory
goetz
parents: 22831
diff changeset
    73
          "Use 64K pages if available.")                                            \
ec621727bd41 8075505: aix: improve handling of native memory
goetz
parents: 22831
diff changeset
    74
                                                                                    \
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    75
  /*  If VM uses 64K paged memory (shmat) for virtual memory: threshold below  */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    76
  /*  which virtual memory allocations are done with 4K memory (mmap). This is */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    77
  /*  mainly for test purposes.                                                */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    78
  develop(uintx, Use64KPagesThreshold, 0,                                           \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    79
          "4K/64K page allocation threshold.")                                      \
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    80
                                                                                    \
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    81
  /* Normally AIX commits memory on touch, but sometimes it is helpful to have */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    82
  /* explicit commit behaviour. This flag, if true, causes the VM to touch     */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    83
  /* memory on os::commit_memory() (which normally is a noop).                 */   \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    84
  product(bool, UseExplicitCommit, false,                                           \
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    85
          "Explicit commit for virtual memory.")                                    \
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    86
                                                                                    \
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    87
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    88
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    89
//
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    90
// Defines Aix-specific default values. The flags are available on all
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    91
// platforms, but they may have different default values on other platforms.
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    92
//
34647
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    93
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    94
// UseLargePages means nothing, for now, on AIX.
fafb32d71489 8143125: [aix] Further Developments for AIX
stuefe
parents: 33222
diff changeset
    95
// Use Use64KPages or Use16MPages instead.
30198
ec621727bd41 8075505: aix: improve handling of native memory
goetz
parents: 22831
diff changeset
    96
define_pd_global(bool, UseLargePages, false);
22831
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    97
define_pd_global(bool, UseLargePagesIndividualAllocation, false);
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    98
define_pd_global(bool, UseOSErrorReporting, false);
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
    99
define_pd_global(bool, UseThreadPriorities, true) ;
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   100
1e2ba1d62103 8023038: PPC64 (part 15): Platform files for AIX/PPC64 support
simonis
parents:
diff changeset
   101
#endif // OS_AIX_VM_GLOBALS_AIX_HPP