src/os/bsd/vm/os_bsd.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/os/bsd/vm/os_bsd.cpp Thu Jan 19 13:24:26 2012
--- new/src/os/bsd/vm/os_bsd.cpp Thu Jan 19 13:24:22 2012
*** 3568,3578 ****
--- 3568,3578 ----
// threads. It has always been the case, but could change in the future. For
// this reason, the code should not be used as default (ThreadPriorityPolicy=0).
// It is only used when ThreadPriorityPolicy=1 and requires root privilege.
#if defined(_ALLBSD_SOURCE) && !defined(__APPLE__)
! int os::java_to_os_priority[MaxPriority + 1] = {
! int os::java_to_os_priority[CriticalPriority + 1] = {
19, // 0 Entry should never be used
0, // 1 MinPriority
3, // 2
6, // 3
*** 3583,3597 ****
--- 3583,3599 ----
21, // 7
25, // 8
28, // 9 NearMaxPriority
! 31 // 10 MaxPriority
! 31, // 10 MaxPriority
+
+ 31 // 11 CriticalPriority
};
#elif defined(__APPLE__)
/* Using Mach high-level priority assignments */
! int os::java_to_os_priority[MaxPriority + 1] = {
! int os::java_to_os_priority[CriticalPriority + 1] = {
0, // 0 Entry should never be used (MINPRI_USER)
27, // 1 MinPriority
28, // 2
29, // 3
*** 3602,3615 ****
--- 3604,3619 ----
33, // 7
34, // 8
35, // 9 NearMaxPriority
! 36 // 10 MaxPriority
! 36, // 10 MaxPriority
+
+ 36 // 11 CriticalPriority
};
#else
! int os::java_to_os_priority[MaxPriority + 1] = {
! int os::java_to_os_priority[CriticalPriority + 1] = {
19, // 0 Entry should never be used
4, // 1 MinPriority
3, // 2
2, // 3
*** 3620,3630 ****
--- 3624,3636 ----
-2, // 7
-3, // 8
-4, // 9 NearMaxPriority
! -5 // 10 MaxPriority
! -5, // 10 MaxPriority
+
+ -5 // 11 CriticalPriority
};
#endif
static int prio_init() {
if (ThreadPriorityPolicy == 1) {
src/os/bsd/vm/os_bsd.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File