hotspot/src/os/posix/vm/os_posix.hpp
changeset 22826 3ee6886e718d
parent 18943 7d0ef675e808
child 22872 b6902ee5bc8d
equal deleted inserted replaced
22825:387266cb8b98 22826:3ee6886e718d
    32   static void print_rlimit_info(outputStream* st);
    32   static void print_rlimit_info(outputStream* st);
    33   static void print_uname_info(outputStream* st);
    33   static void print_uname_info(outputStream* st);
    34   static void print_libversion_info(outputStream* st);
    34   static void print_libversion_info(outputStream* st);
    35   static void print_load_average(outputStream* st);
    35   static void print_load_average(outputStream* st);
    36 
    36 
       
    37 public:
       
    38 
       
    39   // Returns true if signal is valid.
       
    40   static bool is_valid_signal(int sig);
       
    41 
       
    42   // Helper function, returns a string (e.g. "SIGILL") for a signal.
       
    43   // Returned string is a constant. For unknown signals "UNKNOWN" is returned.
       
    44   static const char* get_signal_name(int sig, char* out, size_t outlen);
       
    45 
       
    46   // Returns one-line short description of a signal set in a user provided buffer.
       
    47   static const char* describe_signal_set_short(const sigset_t* set, char* buffer, size_t size);
       
    48 
       
    49   // Prints a short one-line description of a signal set.
       
    50   static void print_signal_set_short(outputStream* st, const sigset_t* set);
       
    51 
       
    52   // Writes a one-line description of a combination of sigaction.sa_flags
       
    53   // into a user provided buffer. Returns that buffer.
       
    54   static const char* describe_sa_flags(int flags, char* buffer, size_t size);
       
    55 
       
    56   // Prints a one-line description of a combination of sigaction.sa_flags.
       
    57   static void print_sa_flags(outputStream* st, int flags);
       
    58 
       
    59   // A POSIX conform, platform-independend siginfo print routine.
       
    60   static void print_siginfo_brief(outputStream* os, const siginfo_t* si);
    37 
    61 
    38 };
    62 };
    39 
    63 
    40 /*
    64 /*
    41  * Crash protection for the watcher thread. Wrap the callback
    65  * Crash protection for the watcher thread. Wrap the callback
    55 private:
    79 private:
    56   void restore();
    80   void restore();
    57   sigjmp_buf _jmpbuf;
    81   sigjmp_buf _jmpbuf;
    58 };
    82 };
    59 
    83 
    60 #endif
    84 #endif // OS_POSIX_VM_OS_POSIX_HPP