44 inline bool os::must_commit_stack_guard_pages() {
45 assert(uses_stack_guard_pages(), "sanity check");
46 int r = thr_main() ;
47 guarantee (r == 0 || r == 1, "CR6501650 or CR6493689") ;
48 return r;
49 }
50
51
52 // On Solaris, reservations are made on a page by page basis, nothing to do.
53 inline void os::pd_split_reserved_memory(char *base, size_t size,
54 size_t split, bool realloc) {
55 }
56
57
58 // Bang the shadow pages if they need to be touched to be mapped.
59 inline void os::map_stack_shadow_pages(address sp) {
60 }
61
62 inline void os::dll_unload(void *lib) { ::dlclose(lib); }
63
64 inline const int os::default_file_open_flags() { return 0;}
65
66 //////////////////////////////////////////////////////////////////////////////
67 ////////////////////////////////////////////////////////////////////////////////
68
69 // macros for restartable system calls
70
71 #define RESTARTABLE(_cmd, _result) do { \
72 do { \
73 _result = _cmd; \
74 } while((_result == OS_ERR) && (errno == EINTR)); \
75 } while(false)
76
77 #define RESTARTABLE_RETURN_INT(_cmd) do { \
78 int _result; \
79 RESTARTABLE(_cmd, _result); \
80 return _result; \
81 } while(false)
82
83 inline bool os::numa_has_static_binding() { return false; }
84 inline bool os::numa_has_group_homing() { return true; }
85
|
44 inline bool os::must_commit_stack_guard_pages() {
45 assert(uses_stack_guard_pages(), "sanity check");
46 int r = thr_main() ;
47 guarantee (r == 0 || r == 1, "CR6501650 or CR6493689") ;
48 return r;
49 }
50
51
52 // On Solaris, reservations are made on a page by page basis, nothing to do.
53 inline void os::pd_split_reserved_memory(char *base, size_t size,
54 size_t split, bool realloc) {
55 }
56
57
58 // Bang the shadow pages if they need to be touched to be mapped.
59 inline void os::map_stack_shadow_pages(address sp) {
60 }
61
62 inline void os::dll_unload(void *lib) { ::dlclose(lib); }
63
64 //////////////////////////////////////////////////////////////////////////////
65 ////////////////////////////////////////////////////////////////////////////////
66
67 // macros for restartable system calls
68
69 #define RESTARTABLE(_cmd, _result) do { \
70 do { \
71 _result = _cmd; \
72 } while((_result == OS_ERR) && (errno == EINTR)); \
73 } while(false)
74
75 #define RESTARTABLE_RETURN_INT(_cmd) do { \
76 int _result; \
77 RESTARTABLE(_cmd, _result); \
78 return _result; \
79 } while(false)
80
81 inline bool os::numa_has_static_binding() { return false; }
82 inline bool os::numa_has_group_homing() { return true; }
83
|