< prev index next >

src/hotspot/os/linux/os_linux.inline.hpp

Print this page
rev 56578 : 8232211: Remove dead code from os.hpp|cpp
Reviewed-by: TBD


  42 inline bool os::must_commit_stack_guard_pages() {
  43   assert(uses_stack_guard_pages(), "sanity check");
  44   return true;
  45 }
  46 
  47 
  48 // On Linux, reservations are made on a page by page basis, nothing to do.
  49 inline void os::pd_split_reserved_memory(char *base, size_t size,
  50                                       size_t split, bool realloc) {
  51 }
  52 
  53 
  54 // Bang the shadow pages if they need to be touched to be mapped.
  55 inline void os::map_stack_shadow_pages(address sp) {
  56 }
  57 
  58 inline void os::dll_unload(void *lib) {
  59   ::dlclose(lib);
  60 }
  61 
  62 inline const int os::default_file_open_flags() { return 0;}
  63 
  64 inline jlong os::lseek(int fd, jlong offset, int whence) {
  65   return (jlong) ::lseek64(fd, offset, whence);
  66 }
  67 
  68 inline int os::fsync(int fd) {
  69   return ::fsync(fd);
  70 }
  71 
  72 inline int os::ftruncate(int fd, jlong length) {
  73   return ::ftruncate64(fd, length);
  74 }
  75 
  76 // macros for restartable system calls
  77 
  78 #define RESTARTABLE(_cmd, _result) do { \
  79     _result = _cmd; \
  80   } while(((int)_result == OS_ERR) && (errno == EINTR))
  81 
  82 #define RESTARTABLE_RETURN_INT(_cmd) do { \
  83   int _result; \




  42 inline bool os::must_commit_stack_guard_pages() {
  43   assert(uses_stack_guard_pages(), "sanity check");
  44   return true;
  45 }
  46 
  47 
  48 // On Linux, reservations are made on a page by page basis, nothing to do.
  49 inline void os::pd_split_reserved_memory(char *base, size_t size,
  50                                       size_t split, bool realloc) {
  51 }
  52 
  53 
  54 // Bang the shadow pages if they need to be touched to be mapped.
  55 inline void os::map_stack_shadow_pages(address sp) {
  56 }
  57 
  58 inline void os::dll_unload(void *lib) {
  59   ::dlclose(lib);
  60 }
  61 


  62 inline jlong os::lseek(int fd, jlong offset, int whence) {
  63   return (jlong) ::lseek64(fd, offset, whence);
  64 }
  65 
  66 inline int os::fsync(int fd) {
  67   return ::fsync(fd);
  68 }
  69 
  70 inline int os::ftruncate(int fd, jlong length) {
  71   return ::ftruncate64(fd, length);
  72 }
  73 
  74 // macros for restartable system calls
  75 
  76 #define RESTARTABLE(_cmd, _result) do { \
  77     _result = _cmd; \
  78   } while(((int)_result == OS_ERR) && (errno == EINTR))
  79 
  80 #define RESTARTABLE_RETURN_INT(_cmd) do { \
  81   int _result; \


< prev index next >