50 // Must 'allocate' them or guard pages are ignored.
51 return true;
52 #endif
53 }
54
55
56 // On Bsd, 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) {
59 }
60
61
62 // Bang the shadow pages if they need to be touched to be mapped.
63 inline void os::map_stack_shadow_pages(address sp) {
64 }
65
66 inline void os::dll_unload(void *lib) {
67 ::dlclose(lib);
68 }
69
70 inline const int os::default_file_open_flags() { return 0;}
71
72 inline jlong os::lseek(int fd, jlong offset, int whence) {
73 return (jlong) ::lseek(fd, offset, whence);
74 }
75
76 inline int os::fsync(int fd) {
77 return ::fsync(fd);
78 }
79
80 inline int os::ftruncate(int fd, jlong length) {
81 return ::ftruncate(fd, length);
82 }
83
84 // macros for restartable system calls
85
86 #define RESTARTABLE(_cmd, _result) do { \
87 _result = _cmd; \
88 } while(((int)_result == OS_ERR) && (errno == EINTR))
89
90 #define RESTARTABLE_RETURN_INT(_cmd) do { \
91 int _result; \
|
50 // Must 'allocate' them or guard pages are ignored.
51 return true;
52 #endif
53 }
54
55
56 // On Bsd, 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) {
59 }
60
61
62 // Bang the shadow pages if they need to be touched to be mapped.
63 inline void os::map_stack_shadow_pages(address sp) {
64 }
65
66 inline void os::dll_unload(void *lib) {
67 ::dlclose(lib);
68 }
69
70 inline jlong os::lseek(int fd, jlong offset, int whence) {
71 return (jlong) ::lseek(fd, offset, whence);
72 }
73
74 inline int os::fsync(int fd) {
75 return ::fsync(fd);
76 }
77
78 inline int os::ftruncate(int fd, jlong length) {
79 return ::ftruncate(fd, length);
80 }
81
82 // macros for restartable system calls
83
84 #define RESTARTABLE(_cmd, _result) do { \
85 _result = _cmd; \
86 } while(((int)_result == OS_ERR) && (errno == EINTR))
87
88 #define RESTARTABLE_RETURN_INT(_cmd) do { \
89 int _result; \
|