src/hotspot/share/runtime/globals_ext.hpp
author dholmes
Sat, 23 Jun 2018 01:32:41 -0400
changeset 50735 2f2af62dfac7
parent 49902 3661f31c6df4
child 53244 9807daeb47c4
permissions -rw-r--r--
8010319: Implementation of JEP 181: Nest-Based Access Control Reviewed-by: alanb, psandoz, mchung, coleenp, acorn, mcimadamore, forax, jlahoda, sspitsyn, abuckley Contributed-by: alex.buckley@oracle.com, maurizio.mimadamore@oracle.com, mandy.chung@oracle.com, tobias.hartmann@oracle.com, david.holmes@oracle.com, vladimir.x.ivanov@oracle.com, karen.kinnear@oracle.com, vladimir.kozlov@oracle.com, john.r.rose@oracle.com, daniel.smith@oracle.com, serguei.spitsyn@oracle.com, kumardotsrinivasan@gmail.com, boris.ulasevich@bell-sw.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     1
/*
12157
439a7166bf0f 7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages
jmelvin
parents: 11254
diff changeset
     2
 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     4
 *
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     7
 * published by the Free Software Foundation.
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     8
 *
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    13
 * accompanied this code).
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    14
 *
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    18
 *
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    21
 * questions.
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    22
 *
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    23
 */
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    24
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    25
#ifndef SHARE_VM_RUNTIME_GLOBALS_EXT_HPP
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    26
#define SHARE_VM_RUNTIME_GLOBALS_EXT_HPP
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    27
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    28
#include "runtime/flags/jvmFlag.hpp"
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    29
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    30
// globals_extension.hpp extension
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    31
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    32
// Additional JVMFlags enum values
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    33
#define JVMFLAGS_EXT
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    34
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    35
// Additional JVMFlagsWithType enum values
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    36
#define JVMFLAGSWITHTYPE_EXT
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    37
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    38
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    39
// globals.cpp extension
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    40
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    41
// Additional flag definitions
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    42
#define MATERIALIZE_FLAGS_EXT
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    43
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    44
// Additional flag descriptors: see flagTable definition
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    45
#define FLAGTABLE_EXT
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    46
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    47
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    48
// Default method implementations
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    49
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    50
inline bool JVMFlag::is_unlocker_ext() const {
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    51
  return false;
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    52
}
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    53
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    54
inline bool JVMFlag::is_unlocked_ext() const {
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    55
  return true;
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    56
}
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    57
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    58
inline bool JVMFlag::is_writeable_ext() const {
11254
e2dd3c32a7cb 7122880: Extend vendor-specific command interface to include manageable switches
phh
parents: 11183
diff changeset
    59
  return false;
e2dd3c32a7cb 7122880: Extend vendor-specific command interface to include manageable switches
phh
parents: 11183
diff changeset
    60
}
e2dd3c32a7cb 7122880: Extend vendor-specific command interface to include manageable switches
phh
parents: 11183
diff changeset
    61
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    62
inline bool JVMFlag::is_external_ext() const {
11254
e2dd3c32a7cb 7122880: Extend vendor-specific command interface to include manageable switches
phh
parents: 11183
diff changeset
    63
  return false;
e2dd3c32a7cb 7122880: Extend vendor-specific command interface to include manageable switches
phh
parents: 11183
diff changeset
    64
}
e2dd3c32a7cb 7122880: Extend vendor-specific command interface to include manageable switches
phh
parents: 11183
diff changeset
    65
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    66
inline JVMFlag::MsgType JVMFlag::get_locked_message_ext(char* buf, int buflen) const {
12157
439a7166bf0f 7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages
jmelvin
parents: 11254
diff changeset
    67
  assert(buf != NULL, "Buffer cannot be NULL");
439a7166bf0f 7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages
jmelvin
parents: 11254
diff changeset
    68
  buf[0] = '\0';
49902
3661f31c6df4 8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents: 49860
diff changeset
    69
  return JVMFlag::NONE;
12157
439a7166bf0f 7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages
jmelvin
parents: 11254
diff changeset
    70
}
439a7166bf0f 7144328: Improper commandlines for -XX:+-UnlockCommercialFeatures require proper warning/error messages
jmelvin
parents: 11254
diff changeset
    71
11183
a81bb5c041d3 7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
diff changeset
    72
#endif // SHARE_VM_RUNTIME_GLOBALS_EXT_HPP