src/os/windows/vm/os_windows.inline.hpp

Print this page




  35 inline const char* os::file_separator()                { return "\\"; }
  36 inline const char* os::line_separator()                { return "\r\n"; }
  37 inline const char* os::path_separator()                { return ";"; }
  38 inline const char* os::dll_file_extension()            { return ".dll"; }
  39 
  40 inline const int os::default_file_open_flags() { return O_BINARY | O_NOINHERIT;}
  41 
  42 // File names are case-insensitive on windows only
  43 inline int os::file_name_strcmp(const char* s, const char* t) {
  44   return _stricmp(s, t);
  45 }
  46 
  47 inline void  os::dll_unload(void *lib) {
  48   ::FreeLibrary((HMODULE)lib);
  49 }
  50 
  51 inline void* os::dll_lookup(void *lib, const char *name) {
  52   return (void*)::GetProcAddress((HMODULE)lib, name);
  53 }
  54 
  55 // Used to improve time-sharing on some systems
  56 inline void os::loop_breaker(int attempts) {}
  57 
  58 inline bool os::obsolete_option(const JavaVMOption *option) {
  59   return false;
  60 }
  61 
  62 inline bool os::uses_stack_guard_pages() {
  63   return os::win32::is_nt();
  64 }
  65 
  66 inline bool os::allocate_stack_guard_pages() {
  67   assert(uses_stack_guard_pages(), "sanity check");
  68   return true;
  69 }
  70 
  71 inline int os::readdir_buf_size(const char *path)
  72 {
  73   /* As Windows doesn't use the directory entry buffer passed to
  74      os::readdir() this can be as short as possible */
  75 
  76   return 1;
  77 }




  35 inline const char* os::file_separator()                { return "\\"; }
  36 inline const char* os::line_separator()                { return "\r\n"; }
  37 inline const char* os::path_separator()                { return ";"; }
  38 inline const char* os::dll_file_extension()            { return ".dll"; }
  39 
  40 inline const int os::default_file_open_flags() { return O_BINARY | O_NOINHERIT;}
  41 
  42 // File names are case-insensitive on windows only
  43 inline int os::file_name_strcmp(const char* s, const char* t) {
  44   return _stricmp(s, t);
  45 }
  46 
  47 inline void  os::dll_unload(void *lib) {
  48   ::FreeLibrary((HMODULE)lib);
  49 }
  50 
  51 inline void* os::dll_lookup(void *lib, const char *name) {
  52   return (void*)::GetProcAddress((HMODULE)lib, name);
  53 }
  54 



  55 inline bool os::obsolete_option(const JavaVMOption *option) {
  56   return false;
  57 }
  58 
  59 inline bool os::uses_stack_guard_pages() {
  60   return os::win32::is_nt();
  61 }
  62 
  63 inline bool os::allocate_stack_guard_pages() {
  64   assert(uses_stack_guard_pages(), "sanity check");
  65   return true;
  66 }
  67 
  68 inline int os::readdir_buf_size(const char *path)
  69 {
  70   /* As Windows doesn't use the directory entry buffer passed to
  71      os::readdir() this can be as short as possible */
  72 
  73   return 1;
  74 }