101 AgentLibraryList Arguments::_libraryList; 102 AgentLibraryList Arguments::_agentList; 103 104 abort_hook_t Arguments::_abort_hook = NULL; 105 exit_hook_t Arguments::_exit_hook = NULL; 106 vfprintf_hook_t Arguments::_vfprintf_hook = NULL; 107 108 109 SystemProperty *Arguments::_sun_boot_library_path = NULL; 110 SystemProperty *Arguments::_java_library_path = NULL; 111 SystemProperty *Arguments::_java_home = NULL; 112 SystemProperty *Arguments::_java_class_path = NULL; 113 SystemProperty *Arguments::_jdk_boot_class_path_append = NULL; 114 115 GrowableArray<ModulePatchPath*> *Arguments::_patch_mod_prefix = NULL; 116 PathString *Arguments::_system_boot_class_path = NULL; 117 bool Arguments::_has_jimage = false; 118 119 char* Arguments::_ext_dirs = NULL; 120 121 bool PathString::set_value(const char *value) { 122 if (_value != NULL) { 123 FreeHeap(_value); 124 } 125 _value = AllocateHeap(strlen(value)+1, mtArguments); 126 assert(_value != NULL, "Unable to allocate space for new path value"); 127 if (_value != NULL) { 128 strcpy(_value, value); 129 } else { 130 // not able to allocate 131 return false; 132 } 133 return true; 134 } 135 136 void PathString::append_value(const char *value) { 137 char *sp; 138 size_t len = 0; 139 if (value != NULL) { 140 len = strlen(value); | 101 AgentLibraryList Arguments::_libraryList; 102 AgentLibraryList Arguments::_agentList; 103 104 abort_hook_t Arguments::_abort_hook = NULL; 105 exit_hook_t Arguments::_exit_hook = NULL; 106 vfprintf_hook_t Arguments::_vfprintf_hook = NULL; 107 108 109 SystemProperty *Arguments::_sun_boot_library_path = NULL; 110 SystemProperty *Arguments::_java_library_path = NULL; 111 SystemProperty *Arguments::_java_home = NULL; 112 SystemProperty *Arguments::_java_class_path = NULL; 113 SystemProperty *Arguments::_jdk_boot_class_path_append = NULL; 114 115 GrowableArray<ModulePatchPath*> *Arguments::_patch_mod_prefix = NULL; 116 PathString *Arguments::_system_boot_class_path = NULL; 117 bool Arguments::_has_jimage = false; 118 119 char* Arguments::_ext_dirs = NULL; 120 121 #if INCLUDE_JVMCI 122 bool Arguments::_force_init_jvmci_runtime = false; 123 #endif 124 125 bool PathString::set_value(const char *value) { 126 if (_value != NULL) { 127 FreeHeap(_value); 128 } 129 _value = AllocateHeap(strlen(value)+1, mtArguments); 130 assert(_value != NULL, "Unable to allocate space for new path value"); 131 if (_value != NULL) { 132 strcpy(_value, value); 133 } else { 134 // not able to allocate 135 return false; 136 } 137 return true; 138 } 139 140 void PathString::append_value(const char *value) { 141 char *sp; 142 size_t len = 0; 143 if (value != NULL) { 144 len = strlen(value); |