Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
5a194d8e
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看板
提交
5a194d8e
编写于
11月 07, 2019
作者:
S
simonis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8206173: MallocSiteTable::initialize() doesn't take function descriptors into account
Reviewed-by: stuefe, zgu
上级
5935076b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
3 deletion
+17
-3
src/share/vm/services/mallocSiteTable.cpp
src/share/vm/services/mallocSiteTable.cpp
+9
-3
src/share/vm/utilities/macros.hpp
src/share/vm/utilities/macros.hpp
+8
-0
未找到文件。
src/share/vm/services/mallocSiteTable.cpp
浏览文件 @
5a194d8e
...
@@ -84,12 +84,18 @@ bool MallocSiteTable::initialize() {
...
@@ -84,12 +84,18 @@ bool MallocSiteTable::initialize() {
// Create pseudo call stack for hashtable entry allocation
// Create pseudo call stack for hashtable entry allocation
address
pc
[
3
];
address
pc
[
3
];
if
(
NMT_TrackingStackDepth
>=
3
)
{
if
(
NMT_TrackingStackDepth
>=
3
)
{
pc
[
2
]
=
(
address
)
MallocSiteTable
::
allocation_at
;
uintx
*
fp
=
(
uintx
*
)
MallocSiteTable
::
allocation_at
;
// On ppc64, 'fp' is a pointer to a function descriptor which is a struct of
// three native pointers where the first pointer is the real function address.
// See: http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html#FUNC-DES
pc
[
2
]
=
(
address
)(
fp
PPC64_ONLY
(
BIG_ENDIAN_ONLY
([
0
])));
}
}
if
(
NMT_TrackingStackDepth
>=
2
)
{
if
(
NMT_TrackingStackDepth
>=
2
)
{
pc
[
1
]
=
(
address
)
MallocSiteTable
::
lookup_or_add
;
uintx
*
fp
=
(
uintx
*
)
MallocSiteTable
::
lookup_or_add
;
pc
[
1
]
=
(
address
)(
fp
PPC64_ONLY
(
BIG_ENDIAN_ONLY
([
0
])));
}
}
pc
[
0
]
=
(
address
)
MallocSiteTable
::
new_entry
;
uintx
*
fp
=
(
uintx
*
)
MallocSiteTable
::
new_entry
;
pc
[
0
]
=
(
address
)(
fp
PPC64_ONLY
(
BIG_ENDIAN_ONLY
([
0
])));
// Instantiate NativeCallStack object, have to use placement new operator. (see comments above)
// Instantiate NativeCallStack object, have to use placement new operator. (see comments above)
NativeCallStack
*
stack
=
::
new
((
void
*
)
_hash_entry_allocation_stack
)
NativeCallStack
*
stack
=
::
new
((
void
*
)
_hash_entry_allocation_stack
)
...
...
src/share/vm/utilities/macros.hpp
浏览文件 @
5a194d8e
...
@@ -416,6 +416,14 @@
...
@@ -416,6 +416,14 @@
#define NOT_EMBEDDED(code) code
#define NOT_EMBEDDED(code) code
#endif
#endif
#ifdef VM_LITTLE_ENDIAN
#define LITTLE_ENDIAN_ONLY(code) code
#define BIG_ENDIAN_ONLY(code)
#else
#define LITTLE_ENDIAN_ONLY(code)
#define BIG_ENDIAN_ONLY(code) code
#endif
#define define_pd_global(type, name, value) const type pd_##name = value;
#define define_pd_global(type, name, value) const type pd_##name = value;
#endif // SHARE_VM_UTILITIES_MACROS_HPP
#endif // SHARE_VM_UTILITIES_MACROS_HPP
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录