4840 jio_snprintf(buf, buflen, "dbx -a %d", os::current_process_id()); 4841 4842 os::fork_and_exec(buf); 4843 yes = false; 4844 } 4845 return yes; 4846 } 4847 4848 static inline time_t get_mtime(const char* filename) { 4849 struct stat st; 4850 int ret = os::stat(filename, &st); 4851 assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno)); 4852 return st.st_mtime; 4853 } 4854 4855 int os::compare_file_modified_times(const char* file1, const char* file2) { 4856 time_t t1 = get_mtime(file1); 4857 time_t t2 = get_mtime(file2); 4858 return t1 - t2; 4859 } | 4840 jio_snprintf(buf, buflen, "dbx -a %d", os::current_process_id()); 4841 4842 os::fork_and_exec(buf); 4843 yes = false; 4844 } 4845 return yes; 4846 } 4847 4848 static inline time_t get_mtime(const char* filename) { 4849 struct stat st; 4850 int ret = os::stat(filename, &st); 4851 assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno)); 4852 return st.st_mtime; 4853 } 4854 4855 int os::compare_file_modified_times(const char* file1, const char* file2) { 4856 time_t t1 = get_mtime(file1); 4857 time_t t2 = get_mtime(file2); 4858 return t1 - t2; 4859 } 4860 4861 int os::create_file_for_heap(const char* dir, size_t size) { 4862 VMError::report_and_die("Allocating object heap with backing file is not supported for AIX"); 4863 return false; 4864 } 4865 4866 bool os::map_memory_to_file(char* base, size_t size, int file_desc) { 4867 VMError::report_and_die("Allocating object heap with backing file is not supported for AIX"); 4868 return false; 4869 } |