427 // print jvm_flags, jvm_args and java_command
428 static void print_on(outputStream* st);
429
430 // convenient methods to obtain / print jvm_flags and jvm_args
431 static const char* jvm_flags() { return build_resource_string(_jvm_flags_array, _num_jvm_flags); }
432 static const char* jvm_args() { return build_resource_string(_jvm_args_array, _num_jvm_args); }
433 static void print_jvm_flags_on(outputStream* st);
434 static void print_jvm_args_on(outputStream* st);
435
436 // -Dkey=value flags
437 static SystemProperty* system_properties() { return _system_properties; }
438 static const char* get_property(const char* key);
439
440 // -Djava.vendor.url.bug
441 static const char* java_vendor_url_bug() { return _java_vendor_url_bug; }
442
443 // -Dsun.java.launcher
444 static const char* sun_java_launcher() { return _sun_java_launcher; }
445 // Was VM created by a Java launcher?
446 static bool created_by_java_launcher();
447 // -Dsun.java.launcher.pid
448 static int sun_java_launcher_pid() { return _sun_java_launcher_pid; }
449
450 // -Xloggc:<file>, if not specified will be NULL
451 static const char* gc_log_filename() { return _gc_log_filename; }
452
453 // -Xprof/-Xaprof
454 static bool has_profile() { return _has_profile; }
455 static bool has_alloc_profile() { return _has_alloc_profile; }
456
457 // -Xms, -Xmx
458 static uintx min_heap_size() { return _min_heap_size; }
459 static void set_min_heap_size(uintx v) { _min_heap_size = v; }
460
461 // -Xrun
462 static AgentLibrary* libraries() { return _libraryList.first(); }
463 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); }
464 static void convert_library_to_agent(AgentLibrary* lib)
465 { _libraryList.remove(lib);
466 _agentList.add(lib); }
|
427 // print jvm_flags, jvm_args and java_command
428 static void print_on(outputStream* st);
429
430 // convenient methods to obtain / print jvm_flags and jvm_args
431 static const char* jvm_flags() { return build_resource_string(_jvm_flags_array, _num_jvm_flags); }
432 static const char* jvm_args() { return build_resource_string(_jvm_args_array, _num_jvm_args); }
433 static void print_jvm_flags_on(outputStream* st);
434 static void print_jvm_args_on(outputStream* st);
435
436 // -Dkey=value flags
437 static SystemProperty* system_properties() { return _system_properties; }
438 static const char* get_property(const char* key);
439
440 // -Djava.vendor.url.bug
441 static const char* java_vendor_url_bug() { return _java_vendor_url_bug; }
442
443 // -Dsun.java.launcher
444 static const char* sun_java_launcher() { return _sun_java_launcher; }
445 // Was VM created by a Java launcher?
446 static bool created_by_java_launcher();
447 // Was VM created by the gamma Java launcher?
448 static bool created_by_gamma_launcher();
449 // -Dsun.java.launcher.pid
450 static int sun_java_launcher_pid() { return _sun_java_launcher_pid; }
451
452 // -Xloggc:<file>, if not specified will be NULL
453 static const char* gc_log_filename() { return _gc_log_filename; }
454
455 // -Xprof/-Xaprof
456 static bool has_profile() { return _has_profile; }
457 static bool has_alloc_profile() { return _has_alloc_profile; }
458
459 // -Xms, -Xmx
460 static uintx min_heap_size() { return _min_heap_size; }
461 static void set_min_heap_size(uintx v) { _min_heap_size = v; }
462
463 // -Xrun
464 static AgentLibrary* libraries() { return _libraryList.first(); }
465 static bool init_libraries_at_startup() { return !_libraryList.is_empty(); }
466 static void convert_library_to_agent(AgentLibrary* lib)
467 { _libraryList.remove(lib);
468 _agentList.add(lib); }
|