1 /* 2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "jvm.h" 27 #include "memory/allocation.inline.hpp" 28 #include "oops/oop.inline.hpp" 29 #include "runtime/arguments.hpp" 30 #include "runtime/globals.hpp" 31 #include "runtime/globals_extension.hpp" 32 #include "runtime/jvmFlagConstraintList.hpp" 33 #include "runtime/jvmFlagWriteableList.hpp" 34 #include "runtime/jvmFlagRangeList.hpp" 35 #include "runtime/os.hpp" 36 #include "runtime/sharedRuntime.hpp" 37 #include "trace/tracing.hpp" 38 #include "utilities/defaultStream.hpp" 39 #include "utilities/macros.hpp" 40 #include "utilities/ostream.hpp" 41 #include "utilities/stringUtils.hpp" 42 #if INCLUDE_ALL_GCS 43 #include "gc/g1/g1_globals.hpp" 44 #endif // INCLUDE_ALL_GCS 45 #ifdef COMPILER1 46 #include "c1/c1_globals.hpp" 47 #endif 48 #if INCLUDE_JVMCI 49 #include "jvmci/jvmci_globals.hpp" 50 #endif 51 #ifdef COMPILER2 52 #include "opto/c2_globals.hpp" 53 #endif 54 55 RUNTIME_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \ 56 MATERIALIZE_PD_DEVELOPER_FLAG, \ 57 MATERIALIZE_PRODUCT_FLAG, \ 58 MATERIALIZE_PD_PRODUCT_FLAG, \ 59 MATERIALIZE_DIAGNOSTIC_FLAG, \ 60 MATERIALIZE_PD_DIAGNOSTIC_FLAG, \ 61 MATERIALIZE_EXPERIMENTAL_FLAG, \ 62 MATERIALIZE_NOTPRODUCT_FLAG, \ 63 MATERIALIZE_MANAGEABLE_FLAG, \ 64 MATERIALIZE_PRODUCT_RW_FLAG, \ 65 MATERIALIZE_LP64_PRODUCT_FLAG, \ 66 IGNORE_RANGE, \ 67 IGNORE_CONSTRAINT, \ 68 IGNORE_WRITEABLE) 69 70 RUNTIME_OS_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \ 71 MATERIALIZE_PD_DEVELOPER_FLAG, \ 72 MATERIALIZE_PRODUCT_FLAG, \ 73 MATERIALIZE_PD_PRODUCT_FLAG, \ 74 MATERIALIZE_DIAGNOSTIC_FLAG, \ 75 MATERIALIZE_PD_DIAGNOSTIC_FLAG, \ 76 MATERIALIZE_NOTPRODUCT_FLAG, \ 77 IGNORE_RANGE, \ 78 IGNORE_CONSTRAINT, \ 79 IGNORE_WRITEABLE) 80 81 ARCH_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \ 82 MATERIALIZE_PRODUCT_FLAG, \ 83 MATERIALIZE_DIAGNOSTIC_FLAG, \ 84 MATERIALIZE_EXPERIMENTAL_FLAG, \ 85 MATERIALIZE_NOTPRODUCT_FLAG, \ 86 IGNORE_RANGE, \ 87 IGNORE_CONSTRAINT, \ 88 IGNORE_WRITEABLE) 89 90 MATERIALIZE_FLAGS_EXT