annotate src/share/vm/runtime/arguments.hpp @ 10:28372612af5e

6362677: Change parallel GC collector default number of parallel GC threads. Summary: Use the same default number of GC threads as used by ParNewGC and ConcMarkSweepGC (i.e., the 5/8th rule). Reviewed-by: ysr, tonyp
author jmasa
date Fri, 22 Feb 2008 17:17:14 -0800
parents a61af66fc99e
children d1605aabd0a1
rev   line source
duke@0 1 /*
duke@0 2 * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 *
duke@0 5 * This code is free software; you can redistribute it and/or modify it
duke@0 6 * under the terms of the GNU General Public License version 2 only, as
duke@0 7 * published by the Free Software Foundation.
duke@0 8 *
duke@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 * accompanied this code).
duke@0 14 *
duke@0 15 * You should have received a copy of the GNU General Public License version
duke@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 *
duke@0 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 20 * CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 21 * have any questions.
duke@0 22 *
duke@0 23 */
duke@0 24
duke@0 25 // Arguments parses the command line and recognizes options
duke@0 26
duke@0 27 // Invocation API hook typedefs (these should really be defined in jni.hpp)
duke@0 28 extern "C" {
duke@0 29 typedef void (JNICALL *abort_hook_t)(void);
duke@0 30 typedef void (JNICALL *exit_hook_t)(jint code);
duke@0 31 typedef jint (JNICALL *vfprintf_hook_t)(FILE *fp, const char *format, va_list args);
duke@0 32 }
duke@0 33
duke@0 34 // Forward declarations
duke@0 35
duke@0 36 class SysClassPath;
duke@0 37
duke@0 38 // Element describing System and User (-Dkey=value flags) defined property.
duke@0 39
duke@0 40 class SystemProperty: public CHeapObj {
duke@0 41 private:
duke@0 42 char* _key;
duke@0 43 char* _value;
duke@0 44 SystemProperty* _next;
duke@0 45 bool _writeable;
duke@0 46 bool writeable() { return _writeable; }
duke@0 47
duke@0 48 public:
duke@0 49 // Accessors
duke@0 50 const char* key() const { return _key; }
duke@0 51 char* value() const { return _value; }
duke@0 52 SystemProperty* next() const { return _next; }
duke@0 53 void set_next(SystemProperty* next) { _next = next; }
duke@0 54 bool set_value(char *value) {
duke@0 55 if (writeable()) {
duke@0 56 if (_value != NULL) {
duke@0 57 FreeHeap(_value);
duke@0 58 }
duke@0 59 _value = AllocateHeap(strlen(value)+1);
duke@0 60 if (_value != NULL) {
duke@0 61 strcpy(_value, value);
duke@0 62 }
duke@0 63 return true;
duke@0 64 }
duke@0 65 return false;
duke@0 66 }
duke@0 67
duke@0 68 void append_value(const char *value) {
duke@0 69 char *sp;
duke@0 70 size_t len = 0;
duke@0 71 if (value != NULL) {
duke@0 72 len = strlen(value);
duke@0 73 if (_value != NULL) {
duke@0 74 len += strlen(_value);
duke@0 75 }
duke@0 76 sp = AllocateHeap(len+2);
duke@0 77 if (sp != NULL) {
duke@0 78 if (_value != NULL) {
duke@0 79 strcpy(sp, _value);
duke@0 80 strcat(sp, os::path_separator());
duke@0 81 strcat(sp, value);
duke@0 82 FreeHeap(_value);
duke@0 83 } else {
duke@0 84 strcpy(sp, value);
duke@0 85 }
duke@0 86 _value = sp;
duke@0 87 }
duke@0 88 }
duke@0 89 }
duke@0 90
duke@0 91 // Constructor
duke@0 92 SystemProperty(const char* key, const char* value, bool writeable) {
duke@0 93 if (key == NULL) {
duke@0 94 _key = NULL;
duke@0 95 } else {
duke@0 96 _key = AllocateHeap(strlen(key)+1);
duke@0 97 strcpy(_key, key);
duke@0 98 }
duke@0 99 if (value == NULL) {
duke@0 100 _value = NULL;
duke@0 101 } else {
duke@0 102 _value = AllocateHeap(strlen(value)+1);
duke@0 103 strcpy(_value, value);
duke@0 104 }
duke@0 105 _next = NULL;
duke@0 106 _writeable = writeable;
duke@0 107 }
duke@0 108 };
duke@0 109
duke@0 110
duke@0 111 // For use by -agentlib, -agentpath and -Xrun
duke@0 112 class AgentLibrary : public CHeapObj {
duke@0 113 friend class AgentLibraryList;
duke@0 114 private:
duke@0 115 char* _name;
duke@0 116 char* _options;
duke@0 117 void* _os_lib;
duke@0 118 bool _is_absolute_path;
duke@0 119 AgentLibrary* _next;
duke@0 120
duke@0 121 public:
duke@0 122 // Accessors
duke@0 123 const char* name() const { return _name; }
duke@0 124 char* options() const { return _options; }
duke@0 125 bool is_absolute_path() const { return _is_absolute_path; }
duke@0 126 void* os_lib() const { return _os_lib; }
duke@0 127 void set_os_lib(void* os_lib) { _os_lib = os_lib; }
duke@0 128 AgentLibrary* next() const { return _next; }
duke@0 129
duke@0 130 // Constructor
duke@0 131 AgentLibrary(const char* name, const char* options, bool is_absolute_path, void* os_lib) {
duke@0 132 _name = AllocateHeap(strlen(name)+1);
duke@0 133 strcpy(_name, name);
duke@0 134 if (options == NULL) {
duke@0 135 _options = NULL;
duke@0 136 } else {
duke@0 137 _options = AllocateHeap(strlen(options)+1);
duke@0 138 strcpy(_options, options);
duke@0 139 }
duke@0 140 _is_absolute_path = is_absolute_path;
duke@0 141 _os_lib = os_lib;
duke@0 142 _next = NULL;
duke@0 143 }
duke@0 144 };
duke@0 145
duke@0 146 // maintain an order of entry list of AgentLibrary
duke@0 147 class AgentLibraryList VALUE_OBJ_CLASS_SPEC {
duke@0 148 private:
duke@0 149 AgentLibrary* _first;
duke@0 150 AgentLibrary* _last;
duke@0 151 public:
duke@0 152 bool is_empty() const { return _first == NULL; }
duke@0 153 AgentLibrary* first() const { return _first; }
duke@0 154
duke@0 155 // add to the end of the list
duke@0 156 void add(AgentLibrary* lib) {
duke@0 157 if (is_empty()) {
duke@0 158 _first = _last = lib;
duke@0 159 } else {
duke@0 160 _last->_next = lib;
duke@0 161 _last = lib;
duke@0 162 }
duke@0 163 lib->_next = NULL;
duke@0 164 }
duke@0 165
duke@0 166 // search for and remove a library known to be in the list
duke@0 167 void remove(AgentLibrary* lib) {
duke@0 168 AgentLibrary* curr;
duke@0 169 AgentLibrary* prev = NULL;
duke@0 170 for (curr = first(); curr != NULL; prev = curr, curr = curr->next()) {
duke@0 171 if (curr == lib) {
duke@0 172 break;
duke@0 173 }
duke@0 174 }
duke@0 175 assert(curr != NULL, "always should be found");
duke@0 176
duke@0 177 if (curr != NULL) {
duke@0 178 // it was found, by-pass this library
duke@0 179 if (prev == NULL) {
duke@0 180 _first = curr->_next;
duke@0 181 } else {
duke@0 182 prev->_next = curr->_next;
duke@0 183 }
duke@0 184 if (curr == _last) {
duke@0 185 _last = prev;
duke@0 186 }
duke@0 187 curr->_next = NULL;
duke@0 188 }
duke@0 189 }
duke@0 190
duke@0 191 AgentLibraryList() {
duke@0 192 _first = NULL;
duke@0 193 _last = NULL;
duke@0 194 }
duke@0 195 };
duke@0 196
duke@0 197
duke@0 198 class Arguments : AllStatic {
duke@0 199 friend class VMStructs;
duke@0 200 friend class JvmtiExport;
duke@0 201 public:
duke@0 202 // Operation modi
duke@0 203 enum Mode {
duke@0 204 _int, // corresponds to -Xint
duke@0 205 _mixed, // corresponds to -Xmixed
duke@0 206 _comp // corresponds to -Xcomp
duke@0 207 };
duke@0 208
duke@0 209 enum ArgsRange {
duke@0 210 arg_unreadable = -3,
duke@0 211 arg_too_small = -2,
duke@0 212 arg_too_big = -1,
duke@0 213 arg_in_range = 0
duke@0 214 };
duke@0 215
duke@0 216 private:
duke@0 217
duke@0 218 // an array containing all flags specified in the .hotspotrc file
duke@0 219 static char** _jvm_flags_array;
duke@0 220 static int _num_jvm_flags;
duke@0 221 // an array containing all jvm arguments specified in the command line
duke@0 222 static char** _jvm_args_array;
duke@0 223 static int _num_jvm_args;
duke@0 224 // string containing all java command (class/jarfile name and app args)
duke@0 225 static char* _java_command;
duke@0 226
duke@0 227 // Property list
duke@0 228 static SystemProperty* _system_properties;
duke@0 229
duke@0 230 // Quick accessor to System properties in the list:
duke@0 231 static SystemProperty *_java_ext_dirs;
duke@0 232 static SystemProperty *_java_endorsed_dirs;
duke@0 233 static SystemProperty *_sun_boot_library_path;
duke@0 234 static SystemProperty *_java_library_path;
duke@0 235 static SystemProperty *_java_home;
duke@0 236 static SystemProperty *_java_class_path;
duke@0 237 static SystemProperty *_sun_boot_class_path;
duke@0 238
duke@0 239 // Meta-index for knowing what packages are in the boot class path
duke@0 240 static char* _meta_index_path;
duke@0 241 static char* _meta_index_dir;
duke@0 242
duke@0 243 // java.vendor.url.bug, bug reporting URL for fatal errors.
duke@0 244 static const char* _java_vendor_url_bug;
duke@0 245
duke@0 246 // sun.java.launcher, private property to provide information about
duke@0 247 // java/gamma launcher
duke@0 248 static const char* _sun_java_launcher;
duke@0 249
duke@0 250 // sun.java.launcher.pid, private property
duke@0 251 static int _sun_java_launcher_pid;
duke@0 252
duke@0 253 // Option flags
duke@0 254 static bool _has_profile;
duke@0 255 static bool _has_alloc_profile;
duke@0 256 static const char* _gc_log_filename;
duke@0 257 static uintx _initial_heap_size;
duke@0 258 static uintx _min_heap_size;
duke@0 259
duke@0 260 // -Xrun arguments
duke@0 261 static AgentLibraryList _libraryList;
duke@0 262 static void add_init_library(const char* name, char* options)
duke@0 263 { _libraryList.add(new AgentLibrary(name, options, false, NULL)); }
duke@0 264
duke@0 265 // -agentlib and -agentpath arguments
duke@0 266 static AgentLibraryList _agentList;
duke@0 267 static void add_init_agent(const char* name, char* options, bool absolute_path)
duke@0 268 { _agentList.add(new AgentLibrary(name, options, absolute_path, NULL)); }
duke@0 269
duke@0 270 // Late-binding agents not started via arguments
duke@0 271 static void add_loaded_agent(const char* name, char* options, bool absolute_path, void* os_lib)
duke@0 272 { _agentList.add(new AgentLibrary(name, options, absolute_path, os_lib)); }
duke@0 273
duke@0 274 // Operation modi
duke@0 275 static Mode _mode;
duke@0 276 static void set_mode_flags(Mode mode);
duke@0 277 static bool _java_compiler;
duke@0 278 static void set_java_compiler(bool arg) { _java_compiler = arg; }
duke@0 279 static bool java_compiler() { return _java_compiler; }
duke@0 280
duke@0 281 // -Xdebug flag
duke@0 282 static bool _xdebug_mode;
duke@0 283 static void set_xdebug_mode(bool arg) { _xdebug_mode = arg; }
duke@0 284 static bool xdebug_mode() { return _xdebug_mode; }
duke@0 285
duke@0 286 // Used to save default settings
duke@0 287 static bool _AlwaysCompileLoopMethods;
duke@0 288 static bool _UseOnStackReplacement;
duke@0 289 static bool _BackgroundCompilation;
duke@0 290 static bool _ClipInlining;
duke@0 291 static bool _CIDynamicCompilePriority;
duke@0 292 static intx _Tier2CompileThreshold;
duke@0 293
duke@0 294 // CMS/ParNew garbage collectors
duke@0 295 static void set_parnew_gc_flags();
duke@0 296 static void set_cms_and_parnew_gc_flags();
duke@0 297 // UseParallelGC
duke@0 298 static void set_parallel_gc_flags();
duke@0 299 // GC ergonomics
duke@0 300 static void set_ergonomics_flags();
duke@0 301 // Based on automatic selection criteria, should the
duke@0 302 // low pause collector be used.
duke@0 303 static bool should_auto_select_low_pause_collector();
duke@0 304
duke@0 305 // Bytecode rewriting
duke@0 306 static void set_bytecode_flags();
duke@0 307
duke@0 308 // Invocation API hooks
duke@0 309 static abort_hook_t _abort_hook;
duke@0 310 static exit_hook_t _exit_hook;
duke@0 311 static vfprintf_hook_t _vfprintf_hook;
duke@0 312
duke@0 313 // System properties
duke@0 314 static bool add_property(const char* prop);
duke@0 315
duke@0 316 // Aggressive optimization flags.
duke@0 317 static void set_aggressive_opts_flags();
duke@0 318
duke@0 319 // Argument parsing
duke@0 320 static void do_pd_flag_adjustments();
duke@0 321 static bool parse_argument(const char* arg, FlagValueOrigin origin);
duke@0 322 static bool process_argument(const char* arg, jboolean ignore_unrecognized, FlagValueOrigin origin);
duke@0 323 static void process_java_launcher_argument(const char*, void*);
duke@0 324 static void process_java_compiler_argument(char* arg);
duke@0 325 static jint parse_options_environment_variable(const char* name, SysClassPath* scp_p, bool* scp_assembly_required_p);
duke@0 326 static jint parse_java_tool_options_environment_variable(SysClassPath* scp_p, bool* scp_assembly_required_p);
duke@0 327 static jint parse_java_options_environment_variable(SysClassPath* scp_p, bool* scp_assembly_required_p);
duke@0 328 static jint parse_vm_init_args(const JavaVMInitArgs* args);
duke@0 329 static jint parse_each_vm_init_arg(const JavaVMInitArgs* args, SysClassPath* scp_p, bool* scp_assembly_required_p, FlagValueOrigin origin);
duke@0 330 static jint finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_required);
duke@0 331 static bool is_bad_option(const JavaVMOption* option, jboolean ignore,
duke@0 332 const char* option_type);
duke@0 333 static bool is_bad_option(const JavaVMOption* option, jboolean ignore) {
duke@0 334 return is_bad_option(option, ignore, NULL);
duke@0 335 }
duke@0 336 static bool verify_percentage(uintx value, const char* name);
duke@0 337 static void describe_range_error(ArgsRange errcode);
duke@0 338 static ArgsRange check_memory_size(jlong size, jlong min_size);
duke@0 339 static ArgsRange parse_memory_size(const char* s, jlong* long_arg,
duke@0 340 jlong min_size);
duke@0 341
duke@0 342 // methods to build strings from individual args
duke@0 343 static void build_jvm_args(const char* arg);
duke@0 344 static void build_jvm_flags(const char* arg);
duke@0 345 static void add_string(char*** bldarray, int* count, const char* arg);
duke@0 346 static const char* build_resource_string(char** args, int count);
duke@0 347
duke@0 348 static bool methodExists(
duke@0 349 char* className, char* methodName,
duke@0 350 int classesNum, char** classes, bool* allMethods,
duke@0 351 int methodsNum, char** methods, bool* allClasses
duke@0 352 );
duke@0 353
duke@0 354 static void parseOnlyLine(
duke@0 355 const char* line,
duke@0 356 short* classesNum, short* classesMax, char*** classes, bool** allMethods,
duke@0 357 short* methodsNum, short* methodsMax, char*** methods, bool** allClasses
duke@0 358 );
duke@0 359
duke@0 360 // Returns true if the string s is in the list of
duke@0 361 // flags made obsolete in 1.5.0.
duke@0 362 static bool made_obsolete_in_1_5_0(const char* s);
duke@0 363
duke@0 364 static short CompileOnlyClassesNum;
duke@0 365 static short CompileOnlyClassesMax;
duke@0 366 static char** CompileOnlyClasses;
duke@0 367 static bool* CompileOnlyAllMethods;
duke@0 368
duke@0 369 static short CompileOnlyMethodsNum;
duke@0 370 static short CompileOnlyMethodsMax;
duke@0 371 static char** CompileOnlyMethods;
duke@0 372 static bool* CompileOnlyAllClasses;
duke@0 373
duke@0 374 static short InterpretOnlyClassesNum;
duke@0 375 static short InterpretOnlyClassesMax;
duke@0 376 static char** InterpretOnlyClasses;
duke@0 377 static bool* InterpretOnlyAllMethods;
duke@0 378
duke@0 379 static bool CheckCompileOnly;
duke@0 380
duke@0 381 static char* SharedArchivePath;
duke@0 382
duke@0 383 public:
duke@0 384 // Parses the arguments
duke@0 385 static jint parse(const JavaVMInitArgs* args);
jmasa@10 386 // Check for consistency in the selection of the garbage collector.
jmasa@10 387 static bool check_gc_consistency();
duke@0 388 // Check consistecy or otherwise of VM argument settings
duke@0 389 static bool check_vm_args_consistency();
duke@0 390 // Used by os_solaris
duke@0 391 static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);
duke@0 392
duke@0 393 // return a char* array containing all options
duke@0 394 static char** jvm_flags_array() { return _jvm_flags_array; }
duke@0 395 static char** jvm_args_array() { return _jvm_args_array; }
duke@0 396 static int num_jvm_flags() { return _num_jvm_flags; }
duke@0 397 static int num_jvm_args() { return _num_jvm_args; }
duke@0 398 // return the arguments passed to the Java application
duke@0 399 static const char* java_command() { return _java_command; }
duke@0 400
duke@0 401 // print jvm_flags, jvm_args and java_command
duke@0 402 static void print_on(outputStream* st);
duke@0 403
duke@0 404 // convenient methods to obtain / print jvm_flags and jvm_args
duke@0 405 static const char* jvm_flags() { return build_resource_string(_jvm_flags_array, _num_jvm_flags); }
duke@0 406 static const char* jvm_args() { return build_resource_string(_jvm_args_array, _num_jvm_args); }
duke@0 407 static void print_jvm_flags_on(outputStream* st);
duke@0 408 static void print_jvm_args_on(outputStream* st);
duke@0 409
duke@0 410 // -Dkey=value flags
duke@0 411 static SystemProperty* system_properties() { return _system_properties; }
duke@0 412 static const char* get_property(const char* key);
duke@0 413
duke@0 414 // -Djava.vendor.url.bug
duke@0 415 static const char* java_vendor_url_bug() { return _java_vendor_url_bug; }
duke@0 416
duke@0 417 // -Dsun.java.launcher
duke@0 418 static const char* sun_java_launcher() { return _sun_java_launcher; }
duke@0 419 // Was VM created by a Java launcher?
duke@0 420 static bool created_by_java_launcher();
duke@0 421 // -Dsun.java.launcher.pid
duke@0 422 static int sun_java_launcher_pid() { return _sun_java_launcher_pid; }
duke@0 423
duke@0 424 // -Xloggc:<file>, if not specified will be NULL
duke@0 425 static const char* gc_log_filename() { return _gc_log_filename; }
duke@0 426
duke@0 427 // -Xprof/-Xaprof
duke@0 428 static bool has_profile() { return _has_profile; }
duke@0 429 static bool has_alloc_profile() { return _has_alloc_profile; }
duke@0 430
duke@0 431 // -Xms , -Xmx
duke@0 432 static uintx initial_heap_size() { return _initial_heap_size; }
duke@0 433 static void set_initial_heap_size(uintx v) { _initial_heap_size = v; }
duke@0 434 static uintx min_heap_size() { return _min_heap_size; }
duke@0 435 static void set_min_heap_size(uintx v) { _min_heap_size = v; }
duke@0 436
duke@0 437 // -Xrun
duke@0 438 static AgentLibrary* libraries() { return _libraryList.first(); }
duke@0 439 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); }
duke@0 440 static void convert_library_to_agent(AgentLibrary* lib)
duke@0 441 { _libraryList.remove(lib);
duke@0 442 _agentList.add(lib); }
duke@0 443
duke@0 444 // -agentlib -agentpath
duke@0 445 static AgentLibrary* agents() { return _agentList.first(); }
duke@0 446 static bool init_agents_at_startup() { return !_agentList.is_empty(); }
duke@0 447
duke@0 448 // abort, exit, vfprintf hooks
duke@0 449 static abort_hook_t abort_hook() { return _abort_hook; }
duke@0 450 static exit_hook_t exit_hook() { return _exit_hook; }
duke@0 451 static vfprintf_hook_t vfprintf_hook() { return _vfprintf_hook; }
duke@0 452
duke@0 453 static bool GetCheckCompileOnly () { return CheckCompileOnly; }
duke@0 454
duke@0 455 static const char* GetSharedArchivePath() { return SharedArchivePath; }
duke@0 456
duke@0 457 static bool CompileMethod(char* className, char* methodName) {
duke@0 458 return
duke@0 459 methodExists(
duke@0 460 className, methodName,
duke@0 461 CompileOnlyClassesNum, CompileOnlyClasses, CompileOnlyAllMethods,
duke@0 462 CompileOnlyMethodsNum, CompileOnlyMethods, CompileOnlyAllClasses
duke@0 463 );
duke@0 464 }
duke@0 465
duke@0 466 // Java launcher properties
duke@0 467 static void process_sun_java_launcher_properties(JavaVMInitArgs* args);
duke@0 468
duke@0 469 // System properties
duke@0 470 static void init_system_properties();
duke@0 471
duke@0 472 // Proptery List manipulation
duke@0 473 static void PropertyList_add(SystemProperty** plist, SystemProperty *element);
duke@0 474 static void PropertyList_add(SystemProperty** plist, const char* k, char* v);
duke@0 475 static void PropertyList_unique_add(SystemProperty** plist, const char* k, char* v);
duke@0 476 static const char* PropertyList_get_value(SystemProperty* plist, const char* key);
duke@0 477 static int PropertyList_count(SystemProperty* pl);
duke@0 478 static const char* PropertyList_get_key_at(SystemProperty* pl,int index);
duke@0 479 static char* PropertyList_get_value_at(SystemProperty* pl,int index);
duke@0 480
duke@0 481 // Miscellaneous System property value getter and setters.
duke@0 482 static void set_dll_dir(char *value) { _sun_boot_library_path->set_value(value); }
duke@0 483 static void set_java_home(char *value) { _java_home->set_value(value); }
duke@0 484 static void set_library_path(char *value) { _java_library_path->set_value(value); }
duke@0 485 static void set_ext_dirs(char *value) { _java_ext_dirs->set_value(value); }
duke@0 486 static void set_endorsed_dirs(char *value) { _java_endorsed_dirs->set_value(value); }
duke@0 487 static void set_sysclasspath(char *value) { _sun_boot_class_path->set_value(value); }
duke@0 488 static void append_sysclasspath(const char *value) { _sun_boot_class_path->append_value(value); }
duke@0 489 static void set_meta_index_path(char* meta_index_path, char* meta_index_dir) {
duke@0 490 _meta_index_path = meta_index_path;
duke@0 491 _meta_index_dir = meta_index_dir;
duke@0 492 }
duke@0 493
duke@0 494 static char *get_java_home() { return _java_home->value(); }
duke@0 495 static char *get_dll_dir() { return _sun_boot_library_path->value(); }
duke@0 496 static char *get_endorsed_dir() { return _java_endorsed_dirs->value(); }
duke@0 497 static char *get_sysclasspath() { return _sun_boot_class_path->value(); }
duke@0 498 static char* get_meta_index_path() { return _meta_index_path; }
duke@0 499 static char* get_meta_index_dir() { return _meta_index_dir; }
duke@0 500
duke@0 501 // Operation modi
duke@0 502 static Mode mode() { return _mode; }
duke@0 503
duke@0 504 // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
duke@0 505 static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
duke@0 506
duke@0 507 #ifdef KERNEL
duke@0 508 // For java kernel vm, return property string for kernel properties.
duke@0 509 static char *get_kernel_properties();
duke@0 510 #endif // KERNEL
duke@0 511 };