Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
6e2afa57
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
6e2afa57
编写于
3月 18, 2020
作者:
M
mneugschwand
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8235908: omit ThreadPriorityPolicy warning when value is set from image
Reviewed-by: dholmes, clanger, kvn
上级
fabeb31b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
2 deletion
+15
-2
src/hotspot/os/bsd/os_bsd.cpp
src/hotspot/os/bsd/os_bsd.cpp
+1
-1
src/hotspot/os/linux/os_linux.cpp
src/hotspot/os/linux/os_linux.cpp
+1
-1
src/hotspot/share/runtime/flags/jvmFlag.cpp
src/hotspot/share/runtime/flags/jvmFlag.cpp
+10
-0
src/hotspot/share/runtime/flags/jvmFlag.hpp
src/hotspot/share/runtime/flags/jvmFlag.hpp
+1
-0
src/hotspot/share/runtime/globals_extension.hpp
src/hotspot/share/runtime/globals_extension.hpp
+2
-0
未找到文件。
src/hotspot/os/bsd/os_bsd.cpp
浏览文件 @
6e2afa57
...
...
@@ -2484,7 +2484,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."
);
...
...
src/hotspot/os/linux/os_linux.cpp
浏览文件 @
6e2afa57
...
...
@@ -4334,7 +4334,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."
);
...
...
src/hotspot/share/runtime/flags/jvmFlag.cpp
浏览文件 @
6e2afa57
...
...
@@ -294,6 +294,10 @@ bool JVMFlag::is_command_line() {
return
(
_flags
&
ORIG_COMMAND_LINE
)
!=
0
;
}
bool
JVMFlag
::
is_jimage_resource
()
{
return
(
get_origin
()
==
JIMAGE_RESOURCE
);
}
void
JVMFlag
::
set_command_line
()
{
_flags
=
Flags
(
_flags
|
ORIG_COMMAND_LINE
);
}
...
...
@@ -989,6 +993,12 @@ bool JVMFlag::wasSetOnCmdline(const char* name, bool* value) {
return
true
;
}
bool
JVMFlagEx
::
is_jimage_resource
(
JVMFlags
flag
)
{
assert
((
size_t
)
flag
<
JVMFlag
::
numFlags
,
"bad command line flag index"
);
JVMFlag
*
f
=
&
JVMFlag
::
flags
[
flag
];
return
f
->
is_jimage_resource
();
}
void
JVMFlagEx
::
setOnCmdLine
(
JVMFlagsWithType
flag
)
{
JVMFlag
*
faddr
=
address_of_flag
(
flag
);
assert
(
faddr
!=
NULL
,
"Unknown flag"
);
...
...
src/hotspot/share/runtime/flags/jvmFlag.hpp
浏览文件 @
6e2afa57
...
...
@@ -175,6 +175,7 @@ struct JVMFlag {
bool
is_default
();
bool
is_ergonomic
();
bool
is_jimage_resource
();
bool
is_command_line
();
void
set_command_line
();
...
...
src/hotspot/share/runtime/globals_extension.hpp
浏览文件 @
6e2afa57
...
...
@@ -299,6 +299,7 @@ typedef enum {
#define FLAG_IS_DEFAULT(name) (JVMFlagEx::is_default(FLAG_MEMBER(name)))
#define FLAG_IS_ERGO(name) (JVMFlagEx::is_ergo(FLAG_MEMBER(name)))
#define FLAG_IS_CMDLINE(name) (JVMFlagEx::is_cmdline(FLAG_MEMBER(name)))
#define FLAG_IS_JIMAGE_RESOURCE(name) (JVMFlagEx::is_jimage_resource(FLAG_MEMBER(name)))
#define FLAG_SET_DEFAULT(name, value) ((name) = (value))
...
...
@@ -330,6 +331,7 @@ class JVMFlagEx : JVMFlag {
static
bool
is_default
(
JVMFlags
flag
);
static
bool
is_ergo
(
JVMFlags
flag
);
static
bool
is_cmdline
(
JVMFlags
flag
);
static
bool
is_jimage_resource
(
JVMFlags
flag
);
static
void
setOnCmdLine
(
JVMFlagsWithType
flag
);
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录