43 return false;
44 }
45
46 inline bool os::uses_stack_guard_pages() {
47 return true;
48 }
49
50 inline bool os::allocate_stack_guard_pages() {
51 assert(uses_stack_guard_pages(), "sanity check");
52 return true;
53 }
54
55
56 // On Linux, 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::bang_stack_shadow_pages() {
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 DIR* os::opendir(const char* dirname)
73 {
74 assert(dirname != NULL, "just checking");
75 return ::opendir(dirname);
76 }
77
78 inline int os::readdir_buf_size(const char *path)
79 {
80 return NAME_MAX + sizeof(dirent) + 1;
81 }
82
83 inline jlong os::lseek(int fd, jlong offset, int whence) {
|
43 return false;
44 }
45
46 inline bool os::uses_stack_guard_pages() {
47 return true;
48 }
49
50 inline bool os::allocate_stack_guard_pages() {
51 assert(uses_stack_guard_pages(), "sanity check");
52 return true;
53 }
54
55
56 // On Linux, 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() {
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 DIR* os::opendir(const char* dirname)
73 {
74 assert(dirname != NULL, "just checking");
75 return ::opendir(dirname);
76 }
77
78 inline int os::readdir_buf_size(const char *path)
79 {
80 return NAME_MAX + sizeof(dirent) + 1;
81 }
82
83 inline jlong os::lseek(int fd, jlong offset, int whence) {
|