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

Print this page
rev 6623 : 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan
   1 /*
   2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2012, 2013 SAP AG. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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/atomic.inline.hpp"
  30 #include "runtime/orderAccess.inline.hpp"
  31 #include "runtime/os.hpp"
  32 
  33 // System includes
  34 
  35 #include <unistd.h>
  36 #include <sys/socket.h>
  37 #include <sys/poll.h>
  38 #include <sys/ioctl.h>
  39 #include <netdb.h>
  40 
  41 // Defined in the system headers included above.
  42 #undef rem_size
  43 
  44 inline void* os::thread_local_storage_at(int index) {
  45   return pthread_getspecific((pthread_key_t)index);
  46 }
  47 
  48 inline const char* os::file_separator() {
  49   return "/";
  50 }
  51 
  52 inline const char* os::line_separator() {
  53   return "\n";
  54 }
  55 
  56 inline const char* os::path_separator() {
  57   return ":";
  58 }
  59 
  60 // File names are case-sensitive on windows only
  61 inline int os::file_name_strcmp(const char* s1, const char* s2) {
  62   return strcmp(s1, s2);
  63 }
  64 
  65 inline bool os::obsolete_option(const JavaVMOption *option) {
  66   return false;
  67 }
  68 
  69 inline bool os::uses_stack_guard_pages() {
  70   return true;
  71 }
  72 
  73 inline bool os::allocate_stack_guard_pages() {
  74   assert(uses_stack_guard_pages(), "sanity check");
  75   return true;
  76 }
  77 
  78 
  79 // On Aix, reservations are made on a page by page basis, nothing to do.


   1 /*
   2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright 2012, 2013 SAP AG. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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 // Defined in the system headers included above.
  40 #undef rem_size
  41 
  42 inline void* os::thread_local_storage_at(int index) {
  43   return pthread_getspecific((pthread_key_t)index);
  44 }
  45 












  46 // File names are case-sensitive on windows only
  47 inline int os::file_name_strcmp(const char* s1, const char* s2) {
  48   return strcmp(s1, s2);
  49 }
  50 
  51 inline bool os::obsolete_option(const JavaVMOption *option) {
  52   return false;
  53 }
  54 
  55 inline bool os::uses_stack_guard_pages() {
  56   return true;
  57 }
  58 
  59 inline bool os::allocate_stack_guard_pages() {
  60   assert(uses_stack_guard_pages(), "sanity check");
  61   return true;
  62 }
  63 
  64 
  65 // On Aix, reservations are made on a page by page basis, nothing to do.