equal
deleted
inserted
replaced
1971 |
1971 |
1972 bool use_default_filename = true; |
1972 bool use_default_filename = true; |
1973 if (HeapDumpPath == NULL || HeapDumpPath[0] == '\0') { |
1973 if (HeapDumpPath == NULL || HeapDumpPath[0] == '\0') { |
1974 // HeapDumpPath=<file> not specified |
1974 // HeapDumpPath=<file> not specified |
1975 } else { |
1975 } else { |
1976 strncpy(base_path, HeapDumpPath, sizeof(base_path)); |
1976 strcpy(base_path, HeapDumpPath); |
1977 // check if the path is a directory (must exist) |
1977 // check if the path is a directory (must exist) |
1978 DIR* dir = os::opendir(base_path); |
1978 DIR* dir = os::opendir(base_path); |
1979 if (dir == NULL) { |
1979 if (dir == NULL) { |
1980 use_default_filename = false; |
1980 use_default_filename = false; |
1981 } else { |
1981 } else { |