Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
262bc1e1
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看板
提交
262bc1e1
编写于
11月 14, 2013
作者:
V
vlivanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8028159: C2: compiler stack overflow during inlining of @ForceInline methods
Reviewed-by: roland, kvn
上级
2c557adb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
5 deletion
+9
-5
src/share/vm/c1/c1_globals.hpp
src/share/vm/c1/c1_globals.hpp
+0
-3
src/share/vm/opto/bytecodeInfo.cpp
src/share/vm/opto/bytecodeInfo.cpp
+4
-0
src/share/vm/opto/callGenerator.cpp
src/share/vm/opto/callGenerator.cpp
+2
-2
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+3
-0
未找到文件。
src/share/vm/c1/c1_globals.hpp
浏览文件 @
262bc1e1
...
...
@@ -341,9 +341,6 @@
diagnostic(bool, C1PatchInvokeDynamic, true, \
"Patch invokedynamic appendix not known at compile time") \
\
develop(intx, MaxForceInlineLevel, 100, \
"maximum number of nested @ForceInline calls that are inlined") \
\
// Read default values for c1 globals
...
...
src/share/vm/opto/bytecodeInfo.cpp
浏览文件 @
262bc1e1
...
...
@@ -389,6 +389,10 @@ bool InlineTree::try_to_inline(ciMethod* callee_method, ciMethod* caller_method,
return
false
;
}
if
(
inline_level
()
>
_max_inline_level
)
{
if
(
callee_method
->
force_inline
()
&&
inline_level
()
>
MaxForceInlineLevel
)
{
set_msg
(
"MaxForceInlineLevel"
);
return
false
;
}
if
(
!
callee_method
->
force_inline
()
||
!
IncrementalInline
)
{
set_msg
(
"inlining too deep"
);
return
false
;
...
...
src/share/vm/opto/callGenerator.cpp
浏览文件 @
262bc1e1
...
...
@@ -776,7 +776,7 @@ CallGenerator* CallGenerator::for_method_handle_inline(JVMState* jvms, ciMethod*
guarantee
(
!
target
->
is_method_handle_intrinsic
(),
"should not happen"
);
// XXX remove
const
int
vtable_index
=
Method
::
invalid_vtable_index
;
CallGenerator
*
cg
=
C
->
call_generator
(
target
,
vtable_index
,
false
,
jvms
,
true
,
PROB_ALWAYS
,
NULL
,
true
,
true
);
assert
(
!
cg
->
is_late_inline
()
||
cg
->
is_mh_late_inline
(),
"no late inline here"
);
assert
(
cg
==
NULL
||
!
cg
->
is_late_inline
()
||
cg
->
is_mh_late_inline
(),
"no late inline here"
);
if
(
cg
!=
NULL
&&
cg
->
is_inline
())
return
cg
;
}
...
...
@@ -846,7 +846,7 @@ CallGenerator* CallGenerator::for_method_handle_inline(JVMState* jvms, ciMethod*
}
CallGenerator
*
cg
=
C
->
call_generator
(
target
,
vtable_index
,
call_does_dispatch
,
jvms
,
true
,
PROB_ALWAYS
,
speculative_receiver_type
,
true
,
true
);
assert
(
!
cg
->
is_late_inline
()
||
cg
->
is_mh_late_inline
(),
"no late inline here"
);
assert
(
cg
==
NULL
||
!
cg
->
is_late_inline
()
||
cg
->
is_mh_late_inline
(),
"no late inline here"
);
if
(
cg
!=
NULL
&&
cg
->
is_inline
())
return
cg
;
}
...
...
src/share/vm/runtime/globals.hpp
浏览文件 @
262bc1e1
...
...
@@ -2954,6 +2954,9 @@ class CommandLineFlags {
product(intx, MaxRecursiveInlineLevel, 1, \
"maximum number of nested recursive calls that are inlined") \
\
develop(intx, MaxForceInlineLevel, 100, \
"maximum number of nested @ForceInline calls that are inlined") \
\
product_pd(intx, InlineSmallCode, \
"Only inline already compiled methods if their code size is " \
"less than this") \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录