2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2016-03-29 08:42:22 +02:00
|
|
|
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2010-05-27 19:08:38 -07:00
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-11-23 13:22:55 -08:00
|
|
|
#ifndef SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP
|
|
|
|
#define SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP
|
|
|
|
|
|
|
|
#include "runtime/globals.hpp"
|
2013-01-23 13:02:39 -05:00
|
|
|
#include "utilities/macros.hpp"
|
2016-04-12 09:53:43 +02:00
|
|
|
#include "utilities/macros.hpp"
|
|
|
|
#if INCLUDE_ALL_GCS
|
|
|
|
#include "gc/g1/g1_globals.hpp"
|
|
|
|
#endif
|
|
|
|
#if INCLUDE_JVMCI
|
|
|
|
#include "jvmci/jvmci_globals.hpp"
|
|
|
|
#endif
|
|
|
|
#ifdef COMPILER1
|
|
|
|
#include "c1/c1_globals.hpp"
|
|
|
|
#endif
|
|
|
|
#ifdef COMPILER2
|
|
|
|
#include "opto/c2_globals.hpp"
|
|
|
|
#endif
|
2010-11-23 13:22:55 -08:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
// Construct enum of Flag_<cmdline-arg> constants.
|
|
|
|
|
2014-01-23 14:47:23 +01:00
|
|
|
// Parenthesis left off in the following for the enum decl below.
|
2007-12-01 00:00:00 +00:00
|
|
|
#define FLAG_MEMBER(flag) Flag_##flag
|
|
|
|
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define RUNTIME_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define RUNTIME_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
2008-06-30 17:04:59 -07:00
|
|
|
#define RUNTIME_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_MANAGEABLE_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define RUNTIME_PRODUCT_RW_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define RUNTIME_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define RUNTIME_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define RUNTIME_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
|
2015-10-08 12:49:30 -10:00
|
|
|
#define JVMCI_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define JVMCI_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define JVMCI_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define JVMCI_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define JVMCI_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
2015-10-08 12:49:30 -10:00
|
|
|
#define JVMCI_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define JVMCI_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
#ifdef _LP64
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
#else
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER(type, name, value, doc) /* flag is constant */
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
#endif // _LP64
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C1_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define C1_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define C1_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define C1_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C1_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define C1_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define C1_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
|
|
|
|
#define C2_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define C2_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define C2_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define C2_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C2_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define C2_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define C2_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name),
|
|
|
|
#define C2_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2012-08-27 15:17:17 -07:00
|
|
|
#define ARCH_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define ARCH_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define ARCH_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define ARCH_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
|
|
|
#define ARCH_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name),
|
2012-08-27 15:17:17 -07:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
typedef enum {
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \
|
2016-05-24 16:02:45 +05:30
|
|
|
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER, \
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_EXPERIMENTAL_FLAG_MEMBER, \
|
|
|
|
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_MANAGEABLE_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PRODUCT_RW_FLAG_MEMBER, \
|
|
|
|
RUNTIME_LP64_PRODUCT_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \
|
2016-05-24 16:02:45 +05:30
|
|
|
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER, \
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2013-01-23 13:02:39 -05:00
|
|
|
#if INCLUDE_ALL_GCS
|
2015-06-18 14:39:38 -05:00
|
|
|
G1_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \
|
2016-05-24 16:02:45 +05:30
|
|
|
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER, \
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_EXPERIMENTAL_FLAG_MEMBER, \
|
|
|
|
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
RUNTIME_MANAGEABLE_FLAG_MEMBER, \
|
|
|
|
RUNTIME_PRODUCT_RW_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2013-01-23 13:02:39 -05:00
|
|
|
#endif // INCLUDE_ALL_GCS
|
2015-10-08 12:49:30 -10:00
|
|
|
#if INCLUDE_JVMCI
|
|
|
|
JVMCI_FLAGS(JVMCI_DEVELOP_FLAG_MEMBER, \
|
|
|
|
JVMCI_PD_DEVELOP_FLAG_MEMBER, \
|
|
|
|
JVMCI_PRODUCT_FLAG_MEMBER, \
|
|
|
|
JVMCI_PD_PRODUCT_FLAG_MEMBER, \
|
|
|
|
JVMCI_DIAGNOSTIC_FLAG_MEMBER, \
|
2016-05-24 16:02:45 +05:30
|
|
|
JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER, \
|
2015-10-08 12:49:30 -10:00
|
|
|
JVMCI_EXPERIMENTAL_FLAG_MEMBER, \
|
|
|
|
JVMCI_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2015-10-08 12:49:30 -10:00
|
|
|
#endif // INCLUDE_JVMCI
|
2007-12-01 00:00:00 +00:00
|
|
|
#ifdef COMPILER1
|
2015-06-18 14:39:38 -05:00
|
|
|
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER, \
|
|
|
|
C1_PD_DEVELOP_FLAG_MEMBER, \
|
|
|
|
C1_PRODUCT_FLAG_MEMBER, \
|
|
|
|
C1_PD_PRODUCT_FLAG_MEMBER, \
|
|
|
|
C1_DIAGNOSTIC_FLAG_MEMBER, \
|
2016-05-24 16:02:45 +05:30
|
|
|
C1_PD_DIAGNOSTIC_FLAG_MEMBER, \
|
2015-06-18 14:39:38 -05:00
|
|
|
C1_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2007-12-01 00:00:00 +00:00
|
|
|
#endif
|
|
|
|
#ifdef COMPILER2
|
2015-06-18 14:39:38 -05:00
|
|
|
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER, \
|
|
|
|
C2_PD_DEVELOP_FLAG_MEMBER, \
|
|
|
|
C2_PRODUCT_FLAG_MEMBER, \
|
|
|
|
C2_PD_PRODUCT_FLAG_MEMBER, \
|
|
|
|
C2_DIAGNOSTIC_FLAG_MEMBER, \
|
2016-05-24 16:02:45 +05:30
|
|
|
C2_PD_DIAGNOSTIC_FLAG_MEMBER, \
|
2015-06-18 14:39:38 -05:00
|
|
|
C2_EXPERIMENTAL_FLAG_MEMBER, \
|
|
|
|
C2_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2007-12-01 00:00:00 +00:00
|
|
|
#endif
|
2015-06-18 14:39:38 -05:00
|
|
|
ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER, \
|
|
|
|
ARCH_PRODUCT_FLAG_MEMBER, \
|
|
|
|
ARCH_DIAGNOSTIC_FLAG_MEMBER, \
|
|
|
|
ARCH_EXPERIMENTAL_FLAG_MEMBER, \
|
|
|
|
ARCH_NOTPRODUCT_FLAG_MEMBER, \
|
|
|
|
IGNORE_RANGE, \
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT, \
|
|
|
|
IGNORE_WRITEABLE)
|
2011-12-05 12:50:00 -05:00
|
|
|
COMMANDLINEFLAG_EXT
|
2007-12-01 00:00:00 +00:00
|
|
|
NUM_CommandLineFlag
|
|
|
|
} CommandLineFlag;
|
|
|
|
|
|
|
|
// Construct enum of Flag_<cmdline-arg>_<type> constants.
|
|
|
|
|
|
|
|
#define FLAG_MEMBER_WITH_TYPE(flag,type) Flag_##flag##_##type
|
|
|
|
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2008-06-30 17:04:59 -07:00
|
|
|
#define RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
|
2015-10-08 12:49:30 -10:00
|
|
|
#define JVMCI_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define JVMCI_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define JVMCI_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define JVMCI_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define JVMCI_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2015-10-08 12:49:30 -10:00
|
|
|
#define JVMCI_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define JVMCI_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C1_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C1_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C1_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define C1_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C1_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C1_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C1_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2007-12-01 00:00:00 +00:00
|
|
|
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
#ifdef _LP64
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
#else
|
2013-09-26 12:07:53 -07:00
|
|
|
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) /* flag is constant */
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
#endif // _LP64
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C2_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C2_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2016-05-24 16:02:45 +05:30
|
|
|
#define C2_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2009-11-12 09:24:21 -08:00
|
|
|
#define C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define C2_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C2_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2012-08-27 15:17:17 -07:00
|
|
|
#define ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2013-09-26 12:07:53 -07:00
|
|
|
#define ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define ARCH_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
|
|
|
#define ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type),
|
2012-08-27 15:17:17 -07:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
typedef enum {
|
2008-06-05 15:57:56 -07:00
|
|
|
RUNTIME_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
2007-12-01 00:00:00 +00:00
|
|
|
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2016-05-24 16:02:45 +05:30
|
|
|
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2008-06-30 17:04:59 -07:00
|
|
|
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
|
2007-12-01 00:00:00 +00:00
|
|
|
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE,
|
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
2008-04-13 17:43:42 -04:00
|
|
|
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE,
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2008-06-05 15:57:56 -07:00
|
|
|
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2016-05-24 16:02:45 +05:30
|
|
|
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2013-01-23 13:02:39 -05:00
|
|
|
#if INCLUDE_ALL_GCS
|
2008-06-05 15:57:56 -07:00
|
|
|
G1_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2016-05-24 16:02:45 +05:30
|
|
|
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2008-06-30 17:04:59 -07:00
|
|
|
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
|
2008-06-05 15:57:56 -07:00
|
|
|
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE,
|
2015-06-18 14:39:38 -05:00
|
|
|
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2013-01-23 13:02:39 -05:00
|
|
|
#endif // INCLUDE_ALL_GCS
|
2015-10-08 12:49:30 -10:00
|
|
|
#if INCLUDE_JVMCI
|
|
|
|
JVMCI_FLAGS(JVMCI_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
JVMCI_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
JVMCI_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
JVMCI_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
JVMCI_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2016-05-24 16:02:45 +05:30
|
|
|
JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2015-10-08 12:49:30 -10:00
|
|
|
JVMCI_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
JVMCI_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2015-10-08 12:49:30 -10:00
|
|
|
#endif // INCLUDE_JVMCI
|
2007-12-01 00:00:00 +00:00
|
|
|
#ifdef COMPILER1
|
2008-06-05 15:57:56 -07:00
|
|
|
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C1_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C1_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C1_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
2013-08-21 13:34:45 +02:00
|
|
|
C1_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2016-05-24 16:02:45 +05:30
|
|
|
C1_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2015-06-18 14:39:38 -05:00
|
|
|
C1_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2007-12-01 00:00:00 +00:00
|
|
|
#endif
|
|
|
|
#ifdef COMPILER2
|
2008-06-05 15:57:56 -07:00
|
|
|
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C2_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C2_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C2_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2016-05-24 16:02:45 +05:30
|
|
|
C2_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
2009-11-12 09:24:21 -08:00
|
|
|
C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
|
2015-06-18 14:39:38 -05:00
|
|
|
C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2007-12-01 00:00:00 +00:00
|
|
|
#endif
|
2012-08-27 15:17:17 -07:00
|
|
|
ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
|
2015-06-18 14:39:38 -05:00
|
|
|
ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE,
|
|
|
|
IGNORE_RANGE,
|
2016-05-10 12:10:21 -05:00
|
|
|
IGNORE_CONSTRAINT,
|
|
|
|
IGNORE_WRITEABLE)
|
2011-12-05 12:50:00 -05:00
|
|
|
COMMANDLINEFLAGWITHTYPE_EXT
|
2007-12-01 00:00:00 +00:00
|
|
|
NUM_CommandLineFlagWithType
|
|
|
|
} CommandLineFlagWithType;
|
|
|
|
|
|
|
|
#define FLAG_IS_DEFAULT(name) (CommandLineFlagsEx::is_default(FLAG_MEMBER(name)))
|
2008-03-02 16:10:12 -08:00
|
|
|
#define FLAG_IS_ERGO(name) (CommandLineFlagsEx::is_ergo(FLAG_MEMBER(name)))
|
|
|
|
#define FLAG_IS_CMDLINE(name) (CommandLineFlagsEx::is_cmdline(FLAG_MEMBER(name)))
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
#define FLAG_SET_DEFAULT(name, value) ((name) = (value))
|
|
|
|
|
2013-09-26 12:07:53 -07:00
|
|
|
#define FLAG_SET_CMDLINE(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::COMMAND_LINE))
|
|
|
|
#define FLAG_SET_ERGO(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::ERGONOMIC))
|
2016-03-29 08:42:22 +02:00
|
|
|
#define FLAG_SET_ERGO_IF_DEFAULT(type, name, value) \
|
|
|
|
do { \
|
|
|
|
if (FLAG_IS_DEFAULT(name)) { \
|
|
|
|
FLAG_SET_ERGO(type, name, value); \
|
|
|
|
} \
|
|
|
|
} while (0)
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
// Can't put the following in CommandLineFlags because
|
|
|
|
// of a circular dependency on the enum definition.
|
|
|
|
class CommandLineFlagsEx : CommandLineFlags {
|
|
|
|
public:
|
2015-06-18 14:39:38 -05:00
|
|
|
static Flag::Error boolAtPut(CommandLineFlagWithType flag, bool value, Flag::Flags origin);
|
|
|
|
static Flag::Error intAtPut(CommandLineFlagWithType flag, int value, Flag::Flags origin);
|
|
|
|
static Flag::Error uintAtPut(CommandLineFlagWithType flag, uint value, Flag::Flags origin);
|
|
|
|
static Flag::Error intxAtPut(CommandLineFlagWithType flag, intx value, Flag::Flags origin);
|
|
|
|
static Flag::Error uintxAtPut(CommandLineFlagWithType flag, uintx value, Flag::Flags origin);
|
|
|
|
static Flag::Error uint64_tAtPut(CommandLineFlagWithType flag, uint64_t value, Flag::Flags origin);
|
|
|
|
static Flag::Error size_tAtPut(CommandLineFlagWithType flag, size_t value, Flag::Flags origin);
|
|
|
|
static Flag::Error doubleAtPut(CommandLineFlagWithType flag, double value, Flag::Flags origin);
|
2013-12-23 20:56:18 +04:00
|
|
|
// Contract: Flag will make private copy of the incoming value
|
2015-06-18 14:39:38 -05:00
|
|
|
static Flag::Error ccstrAtPut(CommandLineFlagWithType flag, ccstr value, Flag::Flags origin);
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
static bool is_default(CommandLineFlag flag);
|
2008-03-02 16:10:12 -08:00
|
|
|
static bool is_ergo(CommandLineFlag flag);
|
|
|
|
static bool is_cmdline(CommandLineFlag flag);
|
2007-12-01 00:00:00 +00:00
|
|
|
};
|
2010-11-23 13:22:55 -08:00
|
|
|
|
|
|
|
#endif // SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP
|