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 #ifndef SHARE_VM_RUNTIME_COMMANDLINEFLAGRANGELIST_HPP
26 #define SHARE_VM_RUNTIME_COMMANDLINEFLAGRANGELIST_HPP
27
28 #include "runtime/globals.hpp"
29 #include "utilities/growableArray.hpp"
30
31 /*
32 * Here we have a mechanism for extracting ranges specified in flag macro tables.
33 *
34 * The specified ranges are used to verify that flags have valid values.
35 *
36 * An example of a range is "min <= flag <= max". Both "min" and "max" must be
37 * constant and can not change. If either "min" or "max" can change,
38 * then we need to use constraint instead.
39 */
40
41 class CommandLineError : public AllStatic {
42 public:
43 static void print(bool verbose, const char* msg, ...);
44 };
45
46 class CommandLineFlagRange : public CHeapObj<mtInternal> {
47 private:
|
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 #ifndef SHARE_VM_RUNTIME_COMMANDLINEFLAGRANGELIST_HPP
26 #define SHARE_VM_RUNTIME_COMMANDLINEFLAGRANGELIST_HPP
27
28 #include "memory/metaspaceShared.hpp"
29 #include "runtime/globals.hpp"
30 #include "utilities/growableArray.hpp"
31
32 /*
33 * Here we have a mechanism for extracting ranges specified in flag macro tables.
34 *
35 * The specified ranges are used to verify that flags have valid values.
36 *
37 * An example of a range is "min <= flag <= max". Both "min" and "max" must be
38 * constant and can not change. If either "min" or "max" can change,
39 * then we need to use constraint instead.
40 */
41
42 class CommandLineError : public AllStatic {
43 public:
44 static void print(bool verbose, const char* msg, ...);
45 };
46
47 class CommandLineFlagRange : public CHeapObj<mtInternal> {
48 private:
|