mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8235908: omit ThreadPriorityPolicy warning when value is set from image
Reviewed-by: dholmes, clanger, kvn
This commit is contained in:
parent
44eca823aa
commit
99546049b3
6 changed files with 16 additions and 3 deletions
|
@ -4332,7 +4332,7 @@ int os::java_to_os_priority[CriticalPriority + 1] = {
|
|||
static int prio_init() {
|
||||
if (ThreadPriorityPolicy == 1) {
|
||||
if (geteuid() != 0) {
|
||||
if (!FLAG_IS_DEFAULT(ThreadPriorityPolicy)) {
|
||||
if (!FLAG_IS_DEFAULT(ThreadPriorityPolicy) && !FLAG_IS_JIMAGE_RESOURCE(ThreadPriorityPolicy)) {
|
||||
warning("-XX:ThreadPriorityPolicy=1 may require system level permission, " \
|
||||
"e.g., being the root user. If the necessary permission is not " \
|
||||
"possessed, changes to priority will be silently ignored.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue