comparison src/share/vm/runtime/os.hpp @ 4755:2b3acb34791f

Merge
author dcubed
date Fri, 06 Jan 2012 16:18:29 -0800
parents 20bfb6d15a94 b16494a69d3d
children de268c8a8075
comparison
equal deleted inserted replaced
4748:2ee4167627a3 4755:2b3acb34791f
97 _page_sizes[0] = default_page_size; 97 _page_sizes[0] = default_page_size;
98 _page_sizes[1] = 0; // sentinel 98 _page_sizes[1] = 0; // sentinel
99 } 99 }
100 100
101 public: 101 public:
102
103 static void init(void); // Called before command line parsing 102 static void init(void); // Called before command line parsing
104 static jint init_2(void); // Called after command line parsing 103 static jint init_2(void); // Called after command line parsing
104 static void init_globals(void) { // Called from init_globals() in init.cpp
105 init_globals_ext();
106 }
105 static void init_3(void); // Called at the end of vm init 107 static void init_3(void); // Called at the end of vm init
106 108
107 // File names are case-insensitive on windows only 109 // File names are case-insensitive on windows only
108 // Override me as needed 110 // Override me as needed
109 static int file_name_strcmp(const char* s1, const char* s2); 111 static int file_name_strcmp(const char* s1, const char* s2);
498 static void print_signal_handlers(outputStream* st, char* buf, size_t buflen); 500 static void print_signal_handlers(outputStream* st, char* buf, size_t buflen);
499 static void print_date_and_time(outputStream* st); 501 static void print_date_and_time(outputStream* st);
500 502
501 static void print_location(outputStream* st, intptr_t x, bool verbose = false); 503 static void print_location(outputStream* st, intptr_t x, bool verbose = false);
502 static size_t lasterror(char *buf, size_t len); 504 static size_t lasterror(char *buf, size_t len);
505 static int get_last_error();
503 506
504 // Determines whether the calling process is being debugged by a user-mode debugger. 507 // Determines whether the calling process is being debugged by a user-mode debugger.
505 static bool is_debugger_attached(); 508 static bool is_debugger_attached();
506 509
507 // wait for a key press if PauseAtExit is set 510 // wait for a key press if PauseAtExit is set
669 672
670 // Read file line by line. If line is longer than bsize, 673 // Read file line by line. If line is longer than bsize,
671 // rest of line is skipped. Returns number of bytes read or -1 on EOF 674 // rest of line is skipped. Returns number of bytes read or -1 on EOF
672 static int get_line_chars(int fd, char *buf, const size_t bsize); 675 static int get_line_chars(int fd, char *buf, const size_t bsize);
673 676
677 // Extensions
678 #include "runtime/os_ext.hpp"
679
680 public:
681
674 // Platform dependent stuff 682 // Platform dependent stuff
675 #ifdef TARGET_OS_FAMILY_linux 683 #ifdef TARGET_OS_FAMILY_linux
676 # include "os_linux.hpp" 684 # include "os_linux.hpp"
677 #endif 685 #endif
678 #ifdef TARGET_OS_FAMILY_solaris 686 #ifdef TARGET_OS_FAMILY_solaris
713 #endif 721 #endif
714 #ifdef TARGET_OS_ARCH_bsd_zero 722 #ifdef TARGET_OS_ARCH_bsd_zero
715 # include "os_bsd_zero.hpp" 723 # include "os_bsd_zero.hpp"
716 #endif 724 #endif
717 725
726 public:
718 // debugging support (mostly used by debug.cpp but also fatal error handler) 727 // debugging support (mostly used by debug.cpp but also fatal error handler)
719 static bool find(address pc, outputStream* st = tty); // OS specific function to make sense out of an address 728 static bool find(address pc, outputStream* st = tty); // OS specific function to make sense out of an address
720 729
721 static bool dont_yield(); // when true, JVM_Yield() is nop 730 static bool dont_yield(); // when true, JVM_Yield() is nop
722 static void print_statistics(); 731 static void print_statistics();