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 <poll.h>
36 #include <sys/ioctl.h>
37 #include <netdb.h>
38
39 // File names are case-insensitive on windows only.
40 inline int os::file_name_strncmp(const char* s1, const char* s2, size_t num) {
41 return strncmp(s1, s2, num);
42 }
43
44 inline bool os::uses_stack_guard_pages() {
45 return true;
46 }
47
48 // Whether or not calling code should/can commit/uncommit stack pages
49 // before guarding them. Answer for AIX is definitly no, because memory
50 // is automatically committed on touch.
51 inline bool os::must_commit_stack_guard_pages() {
52 assert(uses_stack_guard_pages(), "sanity check");
53 return false;
54 }
55
56 // On Aix, reservations are made on a page by page basis, nothing to do.
57 inline void os::pd_split_reserved_memory(char *base, size_t size,
58 size_t split, bool realloc) {
|
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 <poll.h>
36 #include <sys/ioctl.h>
37 #include <netdb.h>
38
39 // Use threadsafe version of strtok
40 inline char* os::strtok(char *str, const char *delim, char **saveptr) {
41 return strtok_r(str, delim, saveptr);
42 }
43
44 // File names are case-insensitive on windows only.
45 inline int os::file_name_strncmp(const char* s1, const char* s2, size_t num) {
46 return strncmp(s1, s2, num);
47 }
48
49 inline bool os::uses_stack_guard_pages() {
50 return true;
51 }
52
53 // Whether or not calling code should/can commit/uncommit stack pages
54 // before guarding them. Answer for AIX is definitly no, because memory
55 // is automatically committed on touch.
56 inline bool os::must_commit_stack_guard_pages() {
57 assert(uses_stack_guard_pages(), "sanity check");
58 return false;
59 }
60
61 // On Aix, reservations are made on a page by page basis, nothing to do.
62 inline void os::pd_split_reserved_memory(char *base, size_t size,
63 size_t split, bool realloc) {
|