src/share/vm/runtime/os.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/runtime/os.hpp	Thu Jan 19 13:26:21 2012
--- new/src/share/vm/runtime/os.hpp	Thu Jan 19 13:26:17 2012

*** 71,82 **** --- 71,83 ---- enum ThreadPriority { // JLS 20.20.1-3 NoPriority = -1, // Initial non-priority value MinPriority = 1, // Minimum priority NormPriority = 5, // Normal (non-daemon) priority NearMaxPriority = 9, // High priority, used for VMThread ! MaxPriority = 10 // Highest priority, used for WatcherThread ! MaxPriority = 10, // Highest priority, used for WatcherThread // ensures that VMThread doesn't starve profiler + CriticalPriority = 11 // Critical thread priority }; // Typedef for structured exception handling support typedef void (*java_call_t)(JavaValue* value, methodHandle* method, JavaCallArguments* args, Thread* thread);
*** 731,741 **** --- 732,742 ---- static void print_statistics(); // Thread priority helpers (implemented in OS-specific part) static OSReturn set_native_priority(Thread* thread, int native_prio); static OSReturn get_native_priority(const Thread* const thread, int* priority_ptr); ! static int java_to_os_priority[MaxPriority + 1]; ! static int java_to_os_priority[CriticalPriority + 1]; // Hint to the underlying OS that a task switch would not be good. // Void return because it's a hint and can fail. static void hint_no_preempt(); // Used at creation if requested by the diagnostic flag PauseAtStartup.

src/share/vm/runtime/os.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File