Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
b42bb5de
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看板
提交
b42bb5de
编写于
4月 18, 2011
作者:
T
twisti
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7018355: JSR 292: VM crash in DefNewGeneration::copy_to_survivor_space
Reviewed-by: kvn, jrose
上级
0f11ba0c
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
120 addition
and
131 deletion
+120
-131
src/share/vm/ci/ciMethod.hpp
src/share/vm/ci/ciMethod.hpp
+3
-3
src/share/vm/memory/genOopClosures.hpp
src/share/vm/memory/genOopClosures.hpp
+2
-2
src/share/vm/prims/methodHandleWalk.cpp
src/share/vm/prims/methodHandleWalk.cpp
+2
-4
src/share/vm/prims/methodHandles.cpp
src/share/vm/prims/methodHandles.cpp
+101
-110
src/share/vm/prims/methodHandles.hpp
src/share/vm/prims/methodHandles.hpp
+8
-8
src/share/vm/runtime/sharedRuntime.cpp
src/share/vm/runtime/sharedRuntime.cpp
+4
-4
未找到文件。
src/share/vm/ci/ciMethod.hpp
浏览文件 @
b42bb5de
...
...
@@ -276,9 +276,9 @@ class ciMethod : public ciObject {
void
print_short_name
(
outputStream
*
st
=
tty
);
methodOop
get_method_handle_target
()
{
klassOop
receiver_limit_oop
=
NULL
;
int
flags
=
0
;
return
MethodHandles
::
decode_method
(
get_oop
(),
receiver_limit_oop
,
flags
);
KlassHandle
receiver_limit
;
int
flags
=
0
;
methodHandle
m
=
MethodHandles
::
decode_method
(
get_oop
(),
receiver_limit
,
flags
)
;
return
m
(
);
}
};
...
...
src/share/vm/memory/genOopClosures.hpp
浏览文件 @
b42bb5de
/*
* Copyright (c) 2001, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
1
, 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
...
...
@@ -175,7 +175,7 @@ class VerifyOopClosure: public OopClosure {
protected:
template
<
class
T
>
inline
void
do_oop_work
(
T
*
p
)
{
oop
obj
=
oopDesc
::
load_decode_heap_oop
(
p
);
guarantee
(
obj
->
is_oop_or_null
(),
"invalid oop"
);
guarantee
(
obj
->
is_oop_or_null
(),
err_msg
(
"invalid oop: "
INTPTR_FORMAT
,
obj
)
);
}
public:
virtual
void
do_oop
(
oop
*
p
);
...
...
src/share/vm/prims/methodHandleWalk.cpp
浏览文件 @
b42bb5de
...
...
@@ -82,10 +82,8 @@ void MethodHandleChain::set_method_handle(Handle mh, TRAPS) {
void
MethodHandleChain
::
set_last_method
(
oop
target
,
TRAPS
)
{
_is_last
=
true
;
klassOop
receiver_limit_oop
=
NULL
;
int
flags
=
0
;
methodOop
m
=
MethodHandles
::
decode_method
(
target
,
receiver_limit_oop
,
flags
);
_last_method
=
methodHandle
(
THREAD
,
m
);
KlassHandle
receiver_limit
;
int
flags
=
0
;
_last_method
=
MethodHandles
::
decode_method
(
target
,
receiver_limit
,
flags
);
if
((
flags
&
MethodHandles
::
_dmf_has_receiver
)
==
0
)
_last_invoke
=
Bytecodes
::
_invokestatic
;
else
if
((
flags
&
MethodHandles
::
_dmf_does_dispatch
)
==
0
)
...
...
src/share/vm/prims/methodHandles.cpp
浏览文件 @
b42bb5de
此差异已折叠。
点击以展开。
src/share/vm/prims/methodHandles.hpp
浏览文件 @
b42bb5de
...
...
@@ -265,13 +265,13 @@ class MethodHandles: AllStatic {
static
inline
address
from_interpreted_entry
(
EntryKind
ek
);
// helpers for decode_method.
static
methodOop
decode_methodOop
(
methodOop
m
,
int
&
decode_flags_result
);
static
method
Oop
decode_vmtarget
(
oop
vmtarget
,
int
vmindex
,
oop
mtype
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Oop
decode_MemberName
(
oop
mname
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Oop
decode_MethodHandle
(
oop
mh
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Oop
decode_DirectMethodHandle
(
oop
mh
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Oop
decode_BoundMethodHandle
(
oop
mh
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Oop
decode_AdapterMethodHandle
(
oop
mh
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
methodOop
decode_methodOop
(
methodOop
m
,
int
&
decode_flags_result
);
static
method
Handle
decode_vmtarget
(
oop
vmtarget
,
int
vmindex
,
oop
mtype
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Handle
decode_MemberName
(
oop
mname
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Handle
decode_MethodHandle
(
oop
mh
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Handle
decode_DirectMethodHandle
(
oop
mh
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Handle
decode_BoundMethodHandle
(
oop
mh
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Handle
decode_AdapterMethodHandle
(
oop
mh
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
// Find out how many stack slots an mh pushes or pops.
// The result is *not* reported as a multiple of stack_move_unit();
...
...
@@ -317,7 +317,7 @@ class MethodHandles: AllStatic {
_dmf_adapter_lsb
=
0x20
,
_DMF_ADAPTER_MASK
=
(
_dmf_adapter_lsb
<<
CONV_OP_LIMIT
)
-
_dmf_adapter_lsb
};
static
method
Oop
decode_method
(
oop
x
,
klassOop
&
receiver_limit_result
,
int
&
decode_flags_result
);
static
method
Handle
decode_method
(
oop
x
,
KlassHandle
&
receiver_limit_result
,
int
&
decode_flags_result
);
enum
{
// format of query to getConstant:
GC_JVM_PUSH_LIMIT
=
0
,
...
...
src/share/vm/runtime/sharedRuntime.cpp
浏览文件 @
b42bb5de
...
...
@@ -1721,14 +1721,14 @@ char* SharedRuntime::generate_wrong_method_type_message(JavaThread* thread,
targetArity
=
ArgumentCount
(
target
->
signature
()).
size
();
}
}
klassOop
kignore
;
int
dmf_flags
=
0
;
method
Oop
actual_method
=
MethodHandles
::
decode_method
(
actual
,
kignore
,
dmf_flags
);
KlassHandle
kignore
;
int
dmf_flags
=
0
;
method
Handle
actual_method
=
MethodHandles
::
decode_method
(
actual
,
kignore
,
dmf_flags
);
if
((
dmf_flags
&
~
(
MethodHandles
::
_dmf_has_receiver
|
MethodHandles
::
_dmf_does_dispatch
|
MethodHandles
::
_dmf_from_interface
))
!=
0
)
actual_method
=
NULL
;
// MH does extra binds, drops, etc.
actual_method
=
methodHandle
()
;
// MH does extra binds, drops, etc.
bool
has_receiver
=
((
dmf_flags
&
MethodHandles
::
_dmf_has_receiver
)
!=
0
);
if
(
actual_method
!=
NULL
)
{
if
(
actual_method
.
not_null
()
)
{
mhName
=
actual_method
->
signature
()
->
as_C_string
();
mhArity
=
ArgumentCount
(
actual_method
->
signature
()).
size
();
if
(
!
actual_method
->
is_static
())
mhArity
+=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录