src/hotspot/share/runtime/globals.cpp
author egahlin
Tue, 15 May 2018 20:24:34 +0200
changeset 50113 caf115bb98ad
parent 49902 3661f31c6df4
child 50289 0195ee80e530
child 56578 e8414c8ead61
permissions -rw-r--r--
8199712: Flight Recorder Reviewed-by: coleenp, ihse, erikj, dsamersoff, mseledtsov, egahlin, mgronlun Contributed-by: erik.gahlin@oracle.com, markus.gronlund@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
49163
580bb0b85f63 8198554: Add fuzzy matching for log levels and tags when parsing -Xlog
mlarsson
parents: 47765
diff changeset
     2
 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4579
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4579
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4579
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    25
#include "precompiled.hpp"
50113
caf115bb98ad 8199712: Flight Recorder
egahlin
parents: 49902
diff changeset
    26
#include "jfr/jfrEvents.hpp"
47765
b7c7428eaab9 8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot
coleenp
parents: 47687
diff changeset
    27
#include "jvm.h"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    28
#include "memory/allocation.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    29
#include "oops/oop.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    30
#include "runtime/arguments.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    31
#include "runtime/globals.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    32
#include "runtime/globals_extension.hpp"
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    33
#include "runtime/flags/jvmFlagConstraintList.hpp"
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    34
#include "runtime/flags/jvmFlagWriteableList.hpp"
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    35
#include "runtime/flags/jvmFlagRangeList.hpp"
27471
6e56277909f1 8062370: Various minor code improvements
goetz
parents: 27417
diff changeset
    36
#include "runtime/os.hpp"
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    37
#include "runtime/sharedRuntime.hpp"
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37491
diff changeset
    38
#include "utilities/defaultStream.hpp"
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 27883
diff changeset
    39
#include "utilities/macros.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    40
#include "utilities/ostream.hpp"
49163
580bb0b85f63 8198554: Add fuzzy matching for log levels and tags when parsing -Xlog
mlarsson
parents: 47765
diff changeset
    41
#include "utilities/stringUtils.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    42
#ifdef COMPILER1
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    43
#include "c1/c1_globals.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    44
#endif
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32374
diff changeset
    45
#if INCLUDE_JVMCI
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32374
diff changeset
    46
#include "jvmci/jvmci_globals.hpp"
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 32374
diff changeset
    47
#endif
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    48
#ifdef COMPILER2
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    49
#include "opto/c2_globals.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6438
diff changeset
    50
#endif
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
49715
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    52
VM_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    53
         MATERIALIZE_PD_DEVELOPER_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    54
         MATERIALIZE_PRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    55
         MATERIALIZE_PD_PRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    56
         MATERIALIZE_DIAGNOSTIC_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    57
         MATERIALIZE_PD_DIAGNOSTIC_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    58
         MATERIALIZE_EXPERIMENTAL_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    59
         MATERIALIZE_NOTPRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    60
         MATERIALIZE_MANAGEABLE_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    61
         MATERIALIZE_PRODUCT_RW_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    62
         MATERIALIZE_LP64_PRODUCT_FLAG, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    63
         IGNORE_RANGE, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    64
         IGNORE_CONSTRAINT, \
947560700a09 8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents: 49462
diff changeset
    65
         IGNORE_WRITEABLE)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    67
RUNTIME_OS_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    68
                 MATERIALIZE_PD_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    69
                 MATERIALIZE_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    70
                 MATERIALIZE_PD_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    71
                 MATERIALIZE_DIAGNOSTIC_FLAG, \
39117
59fa99a45873 8150900: Implement diagnostic_pd
csahu
parents: 38273
diff changeset
    72
                 MATERIALIZE_PD_DIAGNOSTIC_FLAG, \
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    73
                 MATERIALIZE_NOTPRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    74
                 IGNORE_RANGE, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37491
diff changeset
    75
                 IGNORE_CONSTRAINT, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37491
diff changeset
    76
                 IGNORE_WRITEABLE)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
31371
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    78
ARCH_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    79
           MATERIALIZE_PRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    80
           MATERIALIZE_DIAGNOSTIC_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    81
           MATERIALIZE_EXPERIMENTAL_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    82
           MATERIALIZE_NOTPRODUCT_FLAG, \
311143309e73 8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents: 31236
diff changeset
    83
           IGNORE_RANGE, \
38273
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37491
diff changeset
    84
           IGNORE_CONSTRAINT, \
2634194d7555 8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents: 37491
diff changeset
    85
           IGNORE_WRITEABLE)
13521
97a23be06f4e 6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents: 13195
diff changeset
    86
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents: 11167
diff changeset
    87
MATERIALIZE_FLAGS_EXT