comparison src/share/vm/runtime/os.hpp @ 8151:b8f261ba79c6

Minimize diff to plain HotSpot version.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Mar 2013 21:00:29 +0100
parents 3ac7d10a6572
children b9a918201d47
comparison
equal deleted inserted replaced
8150:b66f831ac5ab 8151:b8f261ba79c6
77 // ensures that VMThread doesn't starve profiler 77 // ensures that VMThread doesn't starve profiler
78 CriticalPriority = 11 // Critical thread priority 78 CriticalPriority = 11 // Critical thread priority
79 }; 79 };
80 80
81 // Typedef for structured exception handling support 81 // Typedef for structured exception handling support
82 typedef void (*java_call_t)(JavaValue* value, methodHandle* method, nmethod* nm, JavaCallArguments* args, Thread* thread); 82 typedef void (*java_call_t)(JavaValue* value, methodHandle* method, JavaCallArguments* args, Thread* thread);
83 83
84 class os: AllStatic { 84 class os: AllStatic {
85 public: 85 public:
86 enum { page_sizes_max = 9 }; // Size of _page_sizes array (8 plus a sentinel) 86 enum { page_sizes_max = 9 }; // Size of _page_sizes array (8 plus a sentinel)
87 87
656 // random number generation 656 // random number generation
657 static long random(); // return 32bit pseudorandom number 657 static long random(); // return 32bit pseudorandom number
658 static void init_random(long initval); // initialize random sequence 658 static void init_random(long initval); // initialize random sequence
659 659
660 // Structured OS Exception support 660 // Structured OS Exception support
661 static void os_exception_wrapper(java_call_t f, JavaValue* value, methodHandle* method, nmethod* nm, JavaCallArguments* args, Thread* thread); 661 static void os_exception_wrapper(java_call_t f, JavaValue* value, methodHandle* method, JavaCallArguments* args, Thread* thread);
662 662
663 // On Windows this will create an actual minidump, on Linux/Solaris it will simply check core dump limits 663 // On Windows this will create an actual minidump, on Linux/Solaris it will simply check core dump limits
664 static void check_or_create_dump(void* exceptionRecord, void* contextRecord, char* buffer, size_t bufferSize); 664 static void check_or_create_dump(void* exceptionRecord, void* contextRecord, char* buffer, size_t bufferSize);
665 665
666 // Get the default path to the core file 666 // Get the default path to the core file