hotspot/src/share/vm/services/heapDumper.cpp
changeset 33794 41ef3dc95179
parent 33778 790c99403d3c
child 35492 c8c0273e6b91
equal deleted inserted replaced
33790:229ed95d8958 33794:41ef3dc95179
  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 {