|
25 | 25 | #ifndef SHARE_RUNTIME_ARGUMENTS_HPP |
26 | 26 | #define SHARE_RUNTIME_ARGUMENTS_HPP |
27 | 27 |
|
28 | | -#include "logging/logLevel.hpp" |
29 | | -#include "logging/logTag.hpp" |
| 28 | +#include "jni.h" |
30 | 29 | #include "memory/allocation.hpp" |
31 | 30 | #include "memory/allStatic.hpp" |
32 | | -#include "runtime/globals.hpp" |
| 31 | +#include "runtime/flags/jvmFlag.hpp" |
33 | 32 | #include "runtime/java.hpp" |
34 | | -#include "runtime/os.hpp" |
35 | | -#include "utilities/debug.hpp" |
36 | | -#include "utilities/vmEnums.hpp" |
| 33 | +#include "utilities/globalDefinitions.hpp" |
37 | 34 |
|
38 | 35 | // Arguments parses the command line and recognizes options |
39 | 36 |
|
| 37 | +template <typename E> |
| 38 | +class GrowableArray; |
40 | 39 | class JVMFlag; |
41 | 40 |
|
42 | 41 | // Invocation API hook typedefs (these should really be defined in jni.h) |
@@ -412,12 +411,8 @@ class Arguments : AllStatic { |
412 | 411 |
|
413 | 412 | // convenient methods to get and set jvm_flags_file |
414 | 413 | static const char* get_jvm_flags_file() { return _jvm_flags_file; } |
415 | | - static void set_jvm_flags_file(const char *value) { |
416 | | - if (_jvm_flags_file != nullptr) { |
417 | | - os::free(_jvm_flags_file); |
418 | | - } |
419 | | - _jvm_flags_file = os::strdup_check_oom(value); |
420 | | - } |
| 414 | + static void set_jvm_flags_file(const char *value); |
| 415 | + |
421 | 416 | // convenient methods to obtain / print jvm_flags and jvm_args |
422 | 417 | static const char* jvm_flags() { return build_resource_string(_jvm_flags_array, _num_jvm_flags); } |
423 | 418 | static const char* jvm_args() { return build_resource_string(_jvm_args_array, _num_jvm_args); } |
@@ -479,7 +474,7 @@ class Arguments : AllStatic { |
479 | 474 | static void set_dll_dir(const char *value) { _sun_boot_library_path->set_value(value); } |
480 | 475 | static void set_java_home(const char *value) { _java_home->set_value(value); } |
481 | 476 | static void set_library_path(const char *value) { _java_library_path->set_value(value); } |
482 | | - static void set_ext_dirs(char *value) { _ext_dirs = os::strdup_check_oom(value); } |
| 477 | + static void set_ext_dirs(char *value); |
483 | 478 |
|
484 | 479 | // Set up the underlying pieces of the boot class path |
485 | 480 | static void add_patch_mod_prefix(const char *module_name, const char *path); |
|
0 commit comments