143 char file_sep = os::file_separator()[0]; |
143 char file_sep = os::file_separator()[0]; |
144 size_t module_len = strlen(module_name); |
144 size_t module_len = strlen(module_name); |
145 |
145 |
146 const char* home = Arguments::get_java_home(); |
146 const char* home = Arguments::get_java_home(); |
147 size_t len = strlen(home) + module_len + 32; |
147 size_t len = strlen(home) + module_len + 32; |
148 char* path = NEW_C_HEAP_ARRAY(char, len, mtInternal); |
148 char* path = NEW_C_HEAP_ARRAY(char, len, mtModule); |
149 jio_snprintf(path, len, "%s%cmodules%c%s", home, file_sep, file_sep, module_name); |
149 jio_snprintf(path, len, "%s%cmodules%c%s", home, file_sep, file_sep, module_name); |
150 struct stat st; |
150 struct stat st; |
151 // See if exploded module path exists |
151 // See if exploded module path exists |
152 if ((os::stat(path, &st) != 0)) { |
152 if ((os::stat(path, &st) != 0)) { |
153 FREE_C_HEAP_ARRAY(char, path); |
153 FREE_C_HEAP_ARRAY(char, path); |