< prev index next >

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

Print this page




  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #ifndef OS_AIX_VM_OS_AIX_INLINE_HPP
  27 #define OS_AIX_VM_OS_AIX_INLINE_HPP
  28 
  29 #include "runtime/os.hpp"
  30 
  31 // System includes
  32 
  33 #include <unistd.h>
  34 #include <sys/socket.h>
  35 #include <sys/poll.h>
  36 #include <sys/ioctl.h>
  37 #include <netdb.h>
  38 
  39 inline void* os::thread_local_storage_at(int index) {
  40   return pthread_getspecific((pthread_key_t)index);
  41 }
  42 
  43 // File names are case-sensitive on windows only.
  44 inline int os::file_name_strcmp(const char* s1, const char* s2) {
  45   return strcmp(s1, s2);
  46 }
  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 }




  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #ifndef OS_AIX_VM_OS_AIX_INLINE_HPP
  27 #define OS_AIX_VM_OS_AIX_INLINE_HPP
  28 
  29 #include "runtime/os.hpp"
  30 
  31 // System includes
  32 
  33 #include <unistd.h>
  34 #include <sys/socket.h>
  35 #include <sys/poll.h>
  36 #include <sys/ioctl.h>
  37 #include <netdb.h>
  38 




  39 // File names are case-sensitive on windows only.
  40 inline int os::file_name_strcmp(const char* s1, const char* s2) {
  41   return strcmp(s1, s2);
  42 }
  43 
  44 inline bool os::obsolete_option(const JavaVMOption *option) {
  45   return false;
  46 }
  47 
  48 inline bool os::uses_stack_guard_pages() {
  49   return true;
  50 }
  51 
  52 // Whether or not calling code should/can commit/uncommit stack pages
  53 // before guarding them. Answer for AIX is definitly no, because memory
  54 // is automatically committed on touch.
  55 inline bool os::allocate_stack_guard_pages() {
  56   assert(uses_stack_guard_pages(), "sanity check");
  57   return false;
  58 }


< prev index next >