Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
ccb8e061
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ccb8e061
编写于
9月 07, 2010
作者:
K
kamg
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
13dc1d18
0bcbccdb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
74 addition
and
50 deletion
+74
-50
src/share/vm/classfile/stackMapTable.cpp
src/share/vm/classfile/stackMapTable.cpp
+2
-1
src/share/vm/runtime/arguments.cpp
src/share/vm/runtime/arguments.cpp
+7
-0
src/share/vm/runtime/globals.cpp
src/share/vm/runtime/globals.cpp
+55
-47
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+8
-2
src/share/vm/utilities/macros.hpp
src/share/vm/utilities/macros.hpp
+2
-0
未找到文件。
src/share/vm/classfile/stackMapTable.cpp
浏览文件 @
ccb8e061
/*
* Copyright (c) 2003, 20
06
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 20
10
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -152,6 +152,7 @@ void StackMapTable::print() const {
int32_t
StackMapReader
::
chop
(
VerificationType
*
locals
,
int32_t
length
,
int32_t
chops
)
{
if
(
locals
==
NULL
)
return
-
1
;
int32_t
pos
=
length
-
1
;
for
(
int32_t
i
=
0
;
i
<
chops
;
i
++
)
{
if
(
locals
[
pos
].
is_category2_2nd
())
{
...
...
src/share/vm/runtime/arguments.cpp
浏览文件 @
ccb8e061
...
...
@@ -2858,6 +2858,13 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
CommandLineFlags
::
printFlags
();
vm_exit
(
0
);
}
#ifndef PRODUCT
if
(
match_option
(
option
,
"-XX:+PrintFlagsWithComments"
,
&
tail
))
{
CommandLineFlags
::
printFlags
(
true
);
vm_exit
(
0
);
}
#endif
}
if
(
IgnoreUnrecognizedVMOptions
)
{
...
...
src/share/vm/runtime/globals.cpp
浏览文件 @
ccb8e061
...
...
@@ -68,30 +68,38 @@ bool Flag::is_external() const {
// Length of format string (e.g. "%.1234s") for printing ccstr below
#define FORMAT_BUFFER_LEN 16
void
Flag
::
print_on
(
outputStream
*
st
)
{
st
->
print
(
"%
5s %-35
s %c= "
,
type
,
name
,
(
origin
!=
DEFAULT
?
':'
:
' '
));
void
Flag
::
print_on
(
outputStream
*
st
,
bool
withComments
)
{
st
->
print
(
"%
9s %-40
s %c= "
,
type
,
name
,
(
origin
!=
DEFAULT
?
':'
:
' '
));
if
(
is_bool
())
st
->
print
(
"%-16s"
,
get_bool
()
?
"true"
:
"false"
);
if
(
is_intx
())
st
->
print
(
"%-16ld"
,
get_intx
());
if
(
is_uintx
())
st
->
print
(
"%-16lu"
,
get_uintx
());
if
(
is_uint64_t
())
st
->
print
(
"%-16lu"
,
get_uint64_t
());
if
(
is_double
())
st
->
print
(
"%-16f"
,
get_double
());
if
(
is_ccstr
())
{
const
char
*
cp
=
get_ccstr
();
if
(
cp
!=
NULL
)
{
const
char
*
eol
;
while
((
eol
=
strchr
(
cp
,
'\n'
))
!=
NULL
)
{
char
format_buffer
[
FORMAT_BUFFER_LEN
];
size_t
llen
=
pointer_delta
(
eol
,
cp
,
sizeof
(
char
));
jio_snprintf
(
format_buffer
,
FORMAT_BUFFER_LEN
,
const
char
*
cp
=
get_ccstr
();
if
(
cp
!=
NULL
)
{
const
char
*
eol
;
while
((
eol
=
strchr
(
cp
,
'\n'
))
!=
NULL
)
{
char
format_buffer
[
FORMAT_BUFFER_LEN
];
size_t
llen
=
pointer_delta
(
eol
,
cp
,
sizeof
(
char
));
jio_snprintf
(
format_buffer
,
FORMAT_BUFFER_LEN
,
"%%."
SIZE_FORMAT
"s"
,
llen
);
st
->
print
(
format_buffer
,
cp
);
st
->
cr
();
cp
=
eol
+
1
;
st
->
print
(
"%5s %-35s += "
,
""
,
name
);
}
st
->
print
(
"%-16s"
,
cp
);
}
st
->
print
(
format_buffer
,
cp
);
st
->
cr
();
cp
=
eol
+
1
;
st
->
print
(
"%5s %-35s += "
,
""
,
name
);
}
st
->
print
(
"%-16s"
,
cp
);
}
else
st
->
print
(
"%-16s"
,
""
);
}
st
->
print
(
"%-20s"
,
kind
);
if
(
withComments
)
{
#ifndef PRODUCT
st
->
print
(
"%s"
,
doc
);
#endif
}
st
->
print
(
" %s"
,
kind
);
st
->
cr
();
}
...
...
@@ -131,67 +139,67 @@ void Flag::print_as_flag(outputStream* st) {
// 4991491 do not "optimize out" the was_set false values: omitting them
// tickles a Microsoft compiler bug causing flagTable to be malformed
#define RUNTIME_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{product}", DEFAULT },
#define RUNTIME_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{pd product}", DEFAULT },
#define RUNTIME_DIAGNOSTIC_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{diagnostic}", DEFAULT },
#define RUNTIME_EXPERIMENTAL_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{experimental}", DEFAULT },
#define RUNTIME_MANAGEABLE_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{manageable}", DEFAULT },
#define RUNTIME_PRODUCT_RW_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{product rw}", DEFAULT },
#define RUNTIME_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{product}", DEFAULT },
#define RUNTIME_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{pd product}", DEFAULT },
#define RUNTIME_DIAGNOSTIC_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{diagnostic}", DEFAULT },
#define RUNTIME_EXPERIMENTAL_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{experimental}", DEFAULT },
#define RUNTIME_MANAGEABLE_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{manageable}", DEFAULT },
#define RUNTIME_PRODUCT_RW_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{product rw}", DEFAULT },
#ifdef PRODUCT
#define RUNTIME_DEVELOP_FLAG_STRUCT(type, name, value, doc)
/* flag is constant */
#define RUNTIME_PD_DEVELOP_FLAG_STRUCT(type, name, doc)
/* flag is constant */
#define RUNTIME_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc)
#else
#define RUNTIME_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "", DEFAULT },
#define RUNTIME_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{pd}", DEFAULT },
#define RUNTIME_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{notproduct}", DEFAULT },
#define RUNTIME_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"", DEFAULT },
#define RUNTIME_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
doc,
"{pd}", DEFAULT },
#define RUNTIME_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{notproduct}", DEFAULT },
#endif
#ifdef _LP64
#define RUNTIME_LP64_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{lp64_product}", DEFAULT },
#define RUNTIME_LP64_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{lp64_product}", DEFAULT },
#else
#define RUNTIME_LP64_PRODUCT_FLAG_STRUCT(type, name, value, doc)
/* flag is constant */
#endif // _LP64
#define C1_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C1 product}", DEFAULT },
#define C1_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{C1 pd product}", DEFAULT },
#define C1_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{C1 product}", DEFAULT },
#define C1_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{C1 pd product}", DEFAULT },
#ifdef PRODUCT
#define C1_DEVELOP_FLAG_STRUCT(type, name, value, doc)
/* flag is constant */
#define C1_PD_DEVELOP_FLAG_STRUCT(type, name, doc)
/* flag is constant */
#define C1_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc)
#else
#define C1_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C1}", DEFAULT },
#define C1_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{C1 pd}", DEFAULT },
#define C1_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C1 notproduct}", DEFAULT },
#define C1_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{C1}", DEFAULT },
#define C1_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
doc,
"{C1 pd}", DEFAULT },
#define C1_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{C1 notproduct}", DEFAULT },
#endif
#define C2_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C2 product}", DEFAULT },
#define C2_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{C2 pd product}", DEFAULT },
#define C2_DIAGNOSTIC_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C2 diagnostic}", DEFAULT },
#define C2_EXPERIMENTAL_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C2 experimental}", DEFAULT },
#define C2_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{C2 product}", DEFAULT },
#define C2_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{C2 pd product}", DEFAULT },
#define C2_DIAGNOSTIC_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{C2 diagnostic}", DEFAULT },
#define C2_EXPERIMENTAL_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{C2 experimental}", DEFAULT },
#ifdef PRODUCT
#define C2_DEVELOP_FLAG_STRUCT(type, name, value, doc)
/* flag is constant */
#define C2_PD_DEVELOP_FLAG_STRUCT(type, name, doc)
/* flag is constant */
#define C2_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc)
#else
#define C2_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C2}", DEFAULT },
#define C2_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{C2 pd}", DEFAULT },
#define C2_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{C2 notproduct}", DEFAULT },
#define C2_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{C2}", DEFAULT },
#define C2_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
doc,
"{C2 pd}", DEFAULT },
#define C2_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{C2 notproduct}", DEFAULT },
#endif
#define SHARK_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{Shark product}", DEFAULT },
#define SHARK_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{Shark pd product}", DEFAULT },
#define SHARK_DIAGNOSTIC_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{Shark diagnostic}", DEFAULT },
#define SHARK_PRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{Shark product}", DEFAULT },
#define SHARK_PD_PRODUCT_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{Shark pd product}", DEFAULT },
#define SHARK_DIAGNOSTIC_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
NOT_PRODUCT_ARG(doc)
"{Shark diagnostic}", DEFAULT },
#ifdef PRODUCT
#define SHARK_DEVELOP_FLAG_STRUCT(type, name, value, doc)
/* flag is constant */
#define SHARK_PD_DEVELOP_FLAG_STRUCT(type, name, doc)
/* flag is constant */
#define SHARK_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc)
#else
#define SHARK_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{Shark}", DEFAULT },
#define SHARK_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name, "{Shark pd}", DEFAULT },
#define SHARK_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name, "{Shark notproduct}", DEFAULT },
#define SHARK_DEVELOP_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{Shark}", DEFAULT },
#define SHARK_PD_DEVELOP_FLAG_STRUCT(type, name, doc) { #type, XSTR(name), &name,
doc,
"{Shark pd}", DEFAULT },
#define SHARK_NOTPRODUCT_FLAG_STRUCT(type, name, value, doc) { #type, XSTR(name), &name,
doc,
"{Shark notproduct}", DEFAULT },
#endif
static
Flag
flagTable
[]
=
{
...
...
@@ -485,7 +493,7 @@ void CommandLineFlags::verify() {
#endif // PRODUCT
void
CommandLineFlags
::
printFlags
()
{
void
CommandLineFlags
::
printFlags
(
bool
withComments
)
{
// Print the flags sorted by name
// note: this method is called before the thread structure is in place
// which means resource allocation cannot be used.
...
...
@@ -505,7 +513,7 @@ void CommandLineFlags::printFlags() {
tty
->
print_cr
(
"[Global flags]"
);
for
(
int
i
=
0
;
i
<
length
;
i
++
)
{
if
(
array
[
i
]
->
is_unlocked
())
{
array
[
i
]
->
print_on
(
tty
);
array
[
i
]
->
print_on
(
tty
,
withComments
);
}
}
FREE_C_HEAP_ARRAY
(
Flag
*
,
array
);
...
...
src/share/vm/runtime/globals.hpp
浏览文件 @
ccb8e061
...
...
@@ -90,6 +90,9 @@ struct Flag {
const
char
*
type
;
const
char
*
name
;
void
*
addr
;
NOT_PRODUCT
(
const
char
*
doc
;)
const
char
*
kind
;
FlagValueOrigin
origin
;
...
...
@@ -131,7 +134,7 @@ struct Flag {
bool
is_writeable
()
const
;
bool
is_external
()
const
;
void
print_on
(
outputStream
*
st
);
void
print_on
(
outputStream
*
st
,
bool
withComments
=
false
);
void
print_as_flag
(
outputStream
*
st
);
};
...
...
@@ -211,7 +214,7 @@ class CommandLineFlags {
static
bool
wasSetOnCmdline
(
const
char
*
name
,
bool
*
value
);
static
void
printSetFlags
();
static
void
printFlags
();
static
void
printFlags
(
bool
withComments
=
false
);
static
void
verify
()
PRODUCT_RETURN
;
};
...
...
@@ -2406,6 +2409,9 @@ class CommandLineFlags {
product(bool, PrintFlagsFinal, false, \
"Print all VM flags after argument and ergonomic processing") \
\
notproduct(bool, PrintFlagsWithComments, false, \
"Print all VM flags with default values and descriptions and exit")\
\
diagnostic(bool, SerializeVMOutput, true, \
"Use a mutex to serialize output to tty and hotspot.log") \
\
...
...
src/share/vm/utilities/macros.hpp
浏览文件 @
ccb8e061
...
...
@@ -76,12 +76,14 @@
#ifdef PRODUCT
#define PRODUCT_ONLY(code) code
#define NOT_PRODUCT(code)
#define NOT_PRODUCT_ARG(arg)
#define PRODUCT_RETURN {}
#define PRODUCT_RETURN0 { return 0; }
#define PRODUCT_RETURN_(code) { code }
#else // PRODUCT
#define PRODUCT_ONLY(code)
#define NOT_PRODUCT(code) code
#define NOT_PRODUCT_ARG(arg) arg,
#define PRODUCT_RETURN
/*next token must be ;*/
#define PRODUCT_RETURN0
/*next token must be ;*/
#define PRODUCT_RETURN_(code)
/*next token must be ;*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录