equal
deleted
inserted
replaced
408 |
408 |
409 |
409 |
410 // Write the FileMapInfo information to the file. |
410 // Write the FileMapInfo information to the file. |
411 |
411 |
412 void FileMapInfo::open_for_write() { |
412 void FileMapInfo::open_for_write() { |
413 _full_path = Arguments::GetSharedArchivePath(); |
413 _full_path = Arguments::GetSharedArchivePath(); |
414 if (log_is_enabled(Info, cds)) { |
414 LogMessage(cds) msg; |
415 ResourceMark rm; |
415 if (msg.is_info()) { |
416 LogMessage(cds) msg; |
416 msg.info("Dumping shared data to file: "); |
417 stringStream info_stream; |
417 msg.info(" %s", _full_path); |
418 info_stream.print_cr("Dumping shared data to file: "); |
|
419 info_stream.print_cr(" %s", _full_path); |
|
420 msg.info("%s", info_stream.as_string()); |
|
421 } |
418 } |
422 |
419 |
423 #ifdef _WINDOWS // On Windows, need WRITE permission to remove the file. |
420 #ifdef _WINDOWS // On Windows, need WRITE permission to remove the file. |
424 chmod(_full_path, _S_IREAD | _S_IWRITE); |
421 chmod(_full_path, _S_IREAD | _S_IWRITE); |
425 #endif |
422 #endif |