src/share/vm/runtime/arguments_ext.hpp

Tue, 14 Oct 2014 12:09:33 -0400

author
jiangli
date
Tue, 14 Oct 2014 12:09:33 -0400
changeset 7282
46140919bf90
parent 7122
76af788b6c16
child 7369
b840813adfcc
permissions
-rw-r--r--

8047934: Adding new API for unlocking diagnostic argument.
Summary: New API for unlocking diagnostic argument.
Reviewed-by: dholmes, ccheung, egahlin, iklam, bdelsart

jcoomes@7122 1 /*
jcoomes@7122 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
jcoomes@7122 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jcoomes@7122 4 *
jcoomes@7122 5 * This code is free software; you can redistribute it and/or modify it
jcoomes@7122 6 * under the terms of the GNU General Public License version 2 only, as
jcoomes@7122 7 * published by the Free Software Foundation.
jcoomes@7122 8 *
jcoomes@7122 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jcoomes@7122 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jcoomes@7122 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jcoomes@7122 12 * version 2 for more details (a copy is included in the LICENSE file that
jcoomes@7122 13 * accompanied this code).
jcoomes@7122 14 *
jcoomes@7122 15 * You should have received a copy of the GNU General Public License version
jcoomes@7122 16 * 2 along with this work; if not, write to the Free Software Foundation,
jcoomes@7122 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jcoomes@7122 18 *
jcoomes@7122 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jcoomes@7122 20 * or visit www.oracle.com if you need additional information or have any
jcoomes@7122 21 * questions.
jcoomes@7122 22 *
jcoomes@7122 23 */
jcoomes@7122 24
jcoomes@7122 25 #ifndef SHARE_VM_RUNTIME_ARGUMENTS_EXT_HPP
jcoomes@7122 26 #define SHARE_VM_RUNTIME_ARGUMENTS_EXT_HPP
jcoomes@7122 27
jcoomes@7122 28 #include "memory/allocation.hpp"
jcoomes@7122 29 #include "runtime/arguments.hpp"
jcoomes@7122 30
jcoomes@7122 31 class ArgumentsExt: AllStatic {
jcoomes@7122 32 public:
jcoomes@7122 33 static inline void select_gc_ergonomically();
jcoomes@7122 34 static inline bool check_gc_consistency_user();
jcoomes@7122 35 static inline bool check_gc_consistency_ergo();
jcoomes@7122 36 static inline bool check_vm_args_consistency();
jiangli@7282 37 static void process_options(const JavaVMInitArgs* args) {}
jcoomes@7122 38 };
jcoomes@7122 39
jcoomes@7122 40 void ArgumentsExt::select_gc_ergonomically() {
jcoomes@7122 41 Arguments::select_gc_ergonomically();
jcoomes@7122 42 }
jcoomes@7122 43
jcoomes@7122 44 bool ArgumentsExt::check_gc_consistency_user() {
jcoomes@7122 45 return Arguments::check_gc_consistency_user();
jcoomes@7122 46 }
jcoomes@7122 47
jcoomes@7122 48 bool ArgumentsExt::check_gc_consistency_ergo() {
jcoomes@7122 49 return Arguments::check_gc_consistency_ergo();
jcoomes@7122 50 }
jcoomes@7122 51
jcoomes@7122 52 bool ArgumentsExt::check_vm_args_consistency() {
jcoomes@7122 53 return Arguments::check_vm_args_consistency();
jcoomes@7122 54 }
jcoomes@7122 55
jcoomes@7122 56 #endif // SHARE_VM_RUNTIME_ARGUMENTS_EXT_HPP

mercurial