< prev index next >

src/hotspot/os/linux/os_linux.hpp

Print this page
rev 56978 : 8234397: add OS uptime information to os::print_os_info output


  86   static bool setup_large_page_type(size_t page_size);
  87   static bool transparent_huge_pages_sanity_check(bool warn, size_t pages_size);
  88   static bool hugetlbfs_sanity_check(bool warn, size_t page_size);
  89 
  90   static char* reserve_memory_special_shm(size_t bytes, size_t alignment, char* req_addr, bool exec);
  91   static char* reserve_memory_special_huge_tlbfs(size_t bytes, size_t alignment, char* req_addr, bool exec);
  92   static char* reserve_memory_special_huge_tlbfs_only(size_t bytes, char* req_addr, bool exec);
  93   static char* reserve_memory_special_huge_tlbfs_mixed(size_t bytes, size_t alignment, char* req_addr, bool exec);
  94 
  95   static bool release_memory_special_impl(char* base, size_t bytes);
  96   static bool release_memory_special_shm(char* base, size_t bytes);
  97   static bool release_memory_special_huge_tlbfs(char* base, size_t bytes);
  98 
  99   static void print_full_memory_info(outputStream* st);
 100   static void print_container_info(outputStream* st);
 101   static void print_steal_info(outputStream* st);
 102   static void print_distro_info(outputStream* st);
 103   static void print_libversion_info(outputStream* st);
 104   static void print_proc_sys_info(outputStream* st);
 105   static void print_ld_preload_file(outputStream* st);

 106 
 107  public:
 108   struct CPUPerfTicks {
 109     uint64_t used;
 110     uint64_t usedKernel;
 111     uint64_t total;
 112     uint64_t steal;
 113     bool     has_steal_ticks;
 114   };
 115 
 116   // which_logical_cpu=-1 returns accumulated ticks for all cpus.
 117   static bool get_tick_information(CPUPerfTicks* pticks, int which_logical_cpu);
 118   static bool _stack_is_executable;
 119   static void *dlopen_helper(const char *name, char *ebuf, int ebuflen);
 120   static void *dll_load_in_vmthread(const char *name, char *ebuf, int ebuflen);
 121 
 122   static void init_thread_fpu_state();
 123   static int  get_fpu_control_word();
 124   static void set_fpu_control_word(int fpu_control);
 125   static pthread_t main_thread(void)                                { return _main_thread; }




  86   static bool setup_large_page_type(size_t page_size);
  87   static bool transparent_huge_pages_sanity_check(bool warn, size_t pages_size);
  88   static bool hugetlbfs_sanity_check(bool warn, size_t page_size);
  89 
  90   static char* reserve_memory_special_shm(size_t bytes, size_t alignment, char* req_addr, bool exec);
  91   static char* reserve_memory_special_huge_tlbfs(size_t bytes, size_t alignment, char* req_addr, bool exec);
  92   static char* reserve_memory_special_huge_tlbfs_only(size_t bytes, char* req_addr, bool exec);
  93   static char* reserve_memory_special_huge_tlbfs_mixed(size_t bytes, size_t alignment, char* req_addr, bool exec);
  94 
  95   static bool release_memory_special_impl(char* base, size_t bytes);
  96   static bool release_memory_special_shm(char* base, size_t bytes);
  97   static bool release_memory_special_huge_tlbfs(char* base, size_t bytes);
  98 
  99   static void print_full_memory_info(outputStream* st);
 100   static void print_container_info(outputStream* st);
 101   static void print_steal_info(outputStream* st);
 102   static void print_distro_info(outputStream* st);
 103   static void print_libversion_info(outputStream* st);
 104   static void print_proc_sys_info(outputStream* st);
 105   static void print_ld_preload_file(outputStream* st);
 106   static void print_uptime_info(outputStream* st);
 107 
 108  public:
 109   struct CPUPerfTicks {
 110     uint64_t used;
 111     uint64_t usedKernel;
 112     uint64_t total;
 113     uint64_t steal;
 114     bool     has_steal_ticks;
 115   };
 116 
 117   // which_logical_cpu=-1 returns accumulated ticks for all cpus.
 118   static bool get_tick_information(CPUPerfTicks* pticks, int which_logical_cpu);
 119   static bool _stack_is_executable;
 120   static void *dlopen_helper(const char *name, char *ebuf, int ebuflen);
 121   static void *dll_load_in_vmthread(const char *name, char *ebuf, int ebuflen);
 122 
 123   static void init_thread_fpu_state();
 124   static int  get_fpu_control_word();
 125   static void set_fpu_control_word(int fpu_control);
 126   static pthread_t main_thread(void)                                { return _main_thread; }


< prev index next >