< prev index next >

src/os/aix/vm/os_aix.cpp

Print this page




4883     jio_snprintf(buf, buflen, "dbx -a %d", os::current_process_id());
4884 
4885     os::fork_and_exec(buf);
4886     yes = false;
4887   }
4888   return yes;
4889 }
4890 
4891 static inline time_t get_mtime(const char* filename) {
4892   struct stat st;
4893   int ret = os::stat(filename, &st);
4894   assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno));
4895   return st.st_mtime;
4896 }
4897 
4898 int os::compare_file_modified_times(const char* file1, const char* file2) {
4899   time_t t1 = get_mtime(file1);
4900   time_t t2 = get_mtime(file2);
4901   return t1 - t2;
4902 }







4883     jio_snprintf(buf, buflen, "dbx -a %d", os::current_process_id());
4884 
4885     os::fork_and_exec(buf);
4886     yes = false;
4887   }
4888   return yes;
4889 }
4890 
4891 static inline time_t get_mtime(const char* filename) {
4892   struct stat st;
4893   int ret = os::stat(filename, &st);
4894   assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno));
4895   return st.st_mtime;
4896 }
4897 
4898 int os::compare_file_modified_times(const char* file1, const char* file2) {
4899   time_t t1 = get_mtime(file1);
4900   time_t t2 = get_mtime(file2);
4901   return t1 - t2;
4902 }
4903 
4904 bool os::map_memory_to_file(char* base, size_t size, const char* backingFileDir) {
4905   VMError::report_and_die("Allocating object heap with backing file is not supported for AIX");
4906   return false;
4907 }
< prev index next >