src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp
branchJEP-349-branch
changeset 58395 42d3bce9d538
parent 58154 060d9d139109
child 58526 ec9da3c0eaec
equal deleted inserted replaced
58392:be0dc16e920d 58395:42d3bce9d538
   303   char* chunk_path = NEW_RESOURCE_ARRAY_RETURN_NULL(char, chunkname_max_len);
   303   char* chunk_path = NEW_RESOURCE_ARRAY_RETURN_NULL(char, chunkname_max_len);
   304   if (chunk_path == NULL) {
   304   if (chunk_path == NULL) {
   305     return NULL;
   305     return NULL;
   306   }
   306   }
   307   // append the individual substrings
   307   // append the individual substrings
   308   jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path_len, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
   308   jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
   309   return chunk_path;
   309   return chunk_path;
   310 }
   310 }
   311 
   311 
   312 static fio_fd emergency_dump_file_descriptor() {
   312 static fio_fd emergency_dump_file_descriptor() {
   313   ResourceMark rm;
   313   ResourceMark rm;