Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/arguments.hpp @ 1930:2d26b0046e0d
Merge.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Tue, 30 Nov 2010 14:53:30 +0100 |
parents | 9e5e83ca2259 9de67bf4244d |
children | 06f017f7daa7 |
comparison
equal
deleted
inserted
replaced
1484:6b7001391c97 | 1930:2d26b0046e0d |
---|---|
1 /* | 1 /* |
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 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 | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
14 * | 14 * |
15 * You should have received a copy of the GNU General Public License version | 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, | 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. | 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
18 * | 18 * |
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * CA 95054 USA or visit www.sun.com if you need additional information or | 20 * or visit www.oracle.com if you need additional information or have any |
21 * have any questions. | 21 * questions. |
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 // Arguments parses the command line and recognizes options | 25 // Arguments parses the command line and recognizes options |
26 | 26 |
289 static bool _AlwaysCompileLoopMethods; | 289 static bool _AlwaysCompileLoopMethods; |
290 static bool _UseOnStackReplacement; | 290 static bool _UseOnStackReplacement; |
291 static bool _BackgroundCompilation; | 291 static bool _BackgroundCompilation; |
292 static bool _ClipInlining; | 292 static bool _ClipInlining; |
293 static bool _CIDynamicCompilePriority; | 293 static bool _CIDynamicCompilePriority; |
294 static intx _Tier2CompileThreshold; | 294 |
295 | 295 // Tiered |
296 static void set_tiered_flags(); | |
297 // Check compressed oops compatibility with other flags | |
298 static void check_compressed_oops_compat(); | |
296 // CMS/ParNew garbage collectors | 299 // CMS/ParNew garbage collectors |
297 static void set_parnew_gc_flags(); | 300 static void set_parnew_gc_flags(); |
298 static void set_cms_and_parnew_gc_flags(); | 301 static void set_cms_and_parnew_gc_flags(); |
299 // UseParallel[Old]GC | 302 // UseParallel[Old]GC |
300 static void set_parallel_gc_flags(); | 303 static void set_parallel_gc_flags(); |
339 static bool is_bad_option(const JavaVMOption* option, jboolean ignore) { | 342 static bool is_bad_option(const JavaVMOption* option, jboolean ignore) { |
340 return is_bad_option(option, ignore, NULL); | 343 return is_bad_option(option, ignore, NULL); |
341 } | 344 } |
342 static bool verify_interval(uintx val, uintx min, | 345 static bool verify_interval(uintx val, uintx min, |
343 uintx max, const char* name); | 346 uintx max, const char* name); |
347 static bool verify_min_value(intx val, intx min, const char* name); | |
344 static bool verify_percentage(uintx value, const char* name); | 348 static bool verify_percentage(uintx value, const char* name); |
345 static void describe_range_error(ArgsRange errcode); | 349 static void describe_range_error(ArgsRange errcode); |
346 static ArgsRange check_memory_size(julong size, julong min_size); | 350 static ArgsRange check_memory_size(julong size, julong min_size); |
347 static ArgsRange parse_memory_size(const char* s, julong* long_arg, | 351 static ArgsRange parse_memory_size(const char* s, julong* long_arg, |
348 julong min_size); | 352 julong min_size); |
402 static jint parse(const JavaVMInitArgs* args); | 406 static jint parse(const JavaVMInitArgs* args); |
403 // Check for consistency in the selection of the garbage collector. | 407 // Check for consistency in the selection of the garbage collector. |
404 static bool check_gc_consistency(); | 408 static bool check_gc_consistency(); |
405 // Check consistecy or otherwise of VM argument settings | 409 // Check consistecy or otherwise of VM argument settings |
406 static bool check_vm_args_consistency(); | 410 static bool check_vm_args_consistency(); |
411 // Check stack pages settings | |
412 static bool check_stack_pages(); | |
407 // Used by os_solaris | 413 // Used by os_solaris |
408 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); | 414 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized); |
409 | 415 |
410 // return a char* array containing all options | 416 // return a char* array containing all options |
411 static char** jvm_flags_array() { return _jvm_flags_array; } | 417 static char** jvm_flags_array() { return _jvm_flags_array; } |
483 // Java launcher properties | 489 // Java launcher properties |
484 static void process_sun_java_launcher_properties(JavaVMInitArgs* args); | 490 static void process_sun_java_launcher_properties(JavaVMInitArgs* args); |
485 | 491 |
486 // System properties | 492 // System properties |
487 static void init_system_properties(); | 493 static void init_system_properties(); |
494 | |
495 // Update/Initialize System properties after JDK version number is known | |
496 static void init_version_specific_system_properties(); | |
488 | 497 |
489 // Property List manipulation | 498 // Property List manipulation |
490 static void PropertyList_add(SystemProperty** plist, SystemProperty *element); | 499 static void PropertyList_add(SystemProperty** plist, SystemProperty *element); |
491 static void PropertyList_add(SystemProperty** plist, const char* k, char* v); | 500 static void PropertyList_add(SystemProperty** plist, const char* k, char* v); |
492 static void PropertyList_unique_add(SystemProperty** plist, const char* k, char* v) { | 501 static void PropertyList_unique_add(SystemProperty** plist, const char* k, char* v) { |