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

src/share/vm/runtime/os.hpp

Print this page

        

*** 71,82 **** 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 // ensures that VMThread doesn't starve profiler }; // Typedef for structured exception handling support typedef void (*java_call_t)(JavaValue* value, methodHandle* method, JavaCallArguments* args, Thread* thread); --- 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 // 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 **** 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]; // 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. --- 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[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