114 static julong available_memory(); 115 static julong physical_memory() { return _physical_memory; } 116 static void initialize_system_info(); 117 118 // OS recognitions (PASE/AIX, OS level) call this before calling any 119 // one of Aix::on_pase(), Aix::os_version(). 120 static void initialize_os_info(); 121 122 // Scan environment for important settings which might effect the 123 // VM. Trace out settings. Warn about invalid settings and/or 124 // correct them. 125 // 126 // Must run after os::Aix::initialue_os_info(). 127 static void scan_environment(); 128 129 // Initialize libo4 (on PASE) and libperfstat (on AIX). Call this 130 // before relying on functions from either lib, e.g. Aix::get_meminfo(). 131 static void initialize_libo4(); 132 static void initialize_libperfstat(); 133 134 static bool supports_variable_stack_size(); 135 136 public: 137 static void init_thread_fpu_state(); 138 static pthread_t main_thread(void) { return _main_thread; } 139 // returns kernel thread id (similar to LWP id on Solaris), which can be 140 // used to access /proc 141 static pid_t gettid(); 142 static void set_createThread_lock(Mutex* lk) { _createThread_lock = lk; } 143 static Mutex* createThread_lock(void) { return _createThread_lock; } 144 static void hotspot_sigmask(Thread* thread); 145 146 // Given an address, returns the size of the page backing that address 147 static size_t query_pagesize(void* p); 148 149 // Return `true' if the calling thread is the primordial thread. The 150 // primordial thread is the thread which contains the main function, 151 // *not* necessarily the thread which initialized the VM by calling 152 // JNI_CreateJavaVM. 153 static bool is_primordial_thread(void); 154 155 static int page_size(void) { | 114 static julong available_memory(); 115 static julong physical_memory() { return _physical_memory; } 116 static void initialize_system_info(); 117 118 // OS recognitions (PASE/AIX, OS level) call this before calling any 119 // one of Aix::on_pase(), Aix::os_version(). 120 static void initialize_os_info(); 121 122 // Scan environment for important settings which might effect the 123 // VM. Trace out settings. Warn about invalid settings and/or 124 // correct them. 125 // 126 // Must run after os::Aix::initialue_os_info(). 127 static void scan_environment(); 128 129 // Initialize libo4 (on PASE) and libperfstat (on AIX). Call this 130 // before relying on functions from either lib, e.g. Aix::get_meminfo(). 131 static void initialize_libo4(); 132 static void initialize_libperfstat(); 133 134 public: 135 static void init_thread_fpu_state(); 136 static pthread_t main_thread(void) { return _main_thread; } 137 // returns kernel thread id (similar to LWP id on Solaris), which can be 138 // used to access /proc 139 static pid_t gettid(); 140 static void set_createThread_lock(Mutex* lk) { _createThread_lock = lk; } 141 static Mutex* createThread_lock(void) { return _createThread_lock; } 142 static void hotspot_sigmask(Thread* thread); 143 144 // Given an address, returns the size of the page backing that address 145 static size_t query_pagesize(void* p); 146 147 // Return `true' if the calling thread is the primordial thread. The 148 // primordial thread is the thread which contains the main function, 149 // *not* necessarily the thread which initialized the VM by calling 150 // JNI_CreateJavaVM. 151 static bool is_primordial_thread(void); 152 153 static int page_size(void) { |