< prev index next >

src/os/aix/vm/os_aix.inline.hpp

Print this page
rev 9449 : 8143125-Further Developments for AIX


  47 
  48 inline bool os::obsolete_option(const JavaVMOption *option) {
  49   return false;
  50 }
  51 
  52 inline bool os::uses_stack_guard_pages() {
  53   return true;
  54 }
  55 
  56 // Whether or not calling code should/can commit/uncommit stack pages
  57 // before guarding them. Answer for AIX is definitly no, because memory
  58 // is automatically committed on touch.
  59 inline bool os::allocate_stack_guard_pages() {
  60   assert(uses_stack_guard_pages(), "sanity check");
  61   return false;
  62 }
  63 
  64 // On Aix, reservations are made on a page by page basis, nothing to do.
  65 inline void os::pd_split_reserved_memory(char *base, size_t size,
  66                                          size_t split, bool realloc) {


  67 }
  68 
  69 // Bang the shadow pages if they need to be touched to be mapped.
  70 inline void os::bang_stack_shadow_pages() {
  71 }
  72 
  73 inline void os::dll_unload(void *lib) {
  74   ::dlclose(lib);
  75 }
  76 
  77 inline const int os::default_file_open_flags() { return 0;}
  78 
  79 inline DIR* os::opendir(const char* dirname) {
  80   assert(dirname != NULL, "just checking");
  81   return ::opendir(dirname);
  82 }
  83 
  84 inline int os::readdir_buf_size(const char *path) {
  85   // According to aix sys/limits, NAME_MAX must be retrieved at runtime.
  86   const long my_NAME_MAX = pathconf(path, _PC_NAME_MAX);




  47 
  48 inline bool os::obsolete_option(const JavaVMOption *option) {
  49   return false;
  50 }
  51 
  52 inline bool os::uses_stack_guard_pages() {
  53   return true;
  54 }
  55 
  56 // Whether or not calling code should/can commit/uncommit stack pages
  57 // before guarding them. Answer for AIX is definitly no, because memory
  58 // is automatically committed on touch.
  59 inline bool os::allocate_stack_guard_pages() {
  60   assert(uses_stack_guard_pages(), "sanity check");
  61   return false;
  62 }
  63 
  64 // On Aix, reservations are made on a page by page basis, nothing to do.
  65 inline void os::pd_split_reserved_memory(char *base, size_t size,
  66                                          size_t split, bool realloc) {
  67   // TODO: Determine whether Sys V memory is split. If yes, we need to treat
  68   // this the same way Windows treats its VirtualAlloc allocations.
  69 }
  70 
  71 // Bang the shadow pages if they need to be touched to be mapped.
  72 inline void os::bang_stack_shadow_pages() {
  73 }
  74 
  75 inline void os::dll_unload(void *lib) {
  76   ::dlclose(lib);
  77 }
  78 
  79 inline const int os::default_file_open_flags() { return 0;}
  80 
  81 inline DIR* os::opendir(const char* dirname) {
  82   assert(dirname != NULL, "just checking");
  83   return ::opendir(dirname);
  84 }
  85 
  86 inline int os::readdir_buf_size(const char *path) {
  87   // According to aix sys/limits, NAME_MAX must be retrieved at runtime.
  88   const long my_NAME_MAX = pathconf(path, _PC_NAME_MAX);


< prev index next >