Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0b5f6bce
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看板
提交
0b5f6bce
编写于
7月 15, 2020
作者:
D
Denghui Dong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "[JFR] Fix build issues caused by object allocation profiling on Windows/Mac"
This reverts commit
ca5fefe8
.
上级
257eab1b
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
3 addition
and
24 deletion
+3
-24
src/share/vm/gc_interface/allocTracer.cpp
src/share/vm/gc_interface/allocTracer.cpp
+0
-1
src/share/vm/gc_interface/allocTracer.hpp
src/share/vm/gc_interface/allocTracer.hpp
+3
-5
src/share/vm/gc_interface/allocTracer.inline.hpp
src/share/vm/gc_interface/allocTracer.inline.hpp
+0
-2
src/share/vm/gc_interface/collectedHeap.hpp
src/share/vm/gc_interface/collectedHeap.hpp
+0
-2
src/share/vm/gc_interface/collectedHeap.inline.hpp
src/share/vm/gc_interface/collectedHeap.inline.hpp
+0
-2
src/share/vm/opto/macro.cpp
src/share/vm/opto/macro.cpp
+0
-4
src/share/vm/opto/macro.hpp
src/share/vm/opto/macro.hpp
+0
-2
src/share/vm/opto/runtime.cpp
src/share/vm/opto/runtime.cpp
+0
-2
src/share/vm/opto/runtime.hpp
src/share/vm/opto/runtime.hpp
+0
-4
未找到文件。
src/share/vm/gc_interface/allocTracer.cpp
浏览文件 @
0b5f6bce
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
*
*
*/
*/
#include "precompiled.hpp"
#include "gc_implementation/shared/gcId.hpp"
#include "gc_implementation/shared/gcId.hpp"
#include "gc_interface/allocTracer.hpp"
#include "gc_interface/allocTracer.hpp"
#include "trace/tracing.hpp"
#include "trace/tracing.hpp"
...
...
src/share/vm/gc_interface/allocTracer.hpp
浏览文件 @
0b5f6bce
...
@@ -30,19 +30,17 @@
...
@@ -30,19 +30,17 @@
#include "utilities/globalDefinitions.hpp"
#include "utilities/globalDefinitions.hpp"
class
AllocTracer
:
AllStatic
{
class
AllocTracer
:
AllStatic
{
private:
static
void
send_opto_array_allocation_event
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_opto_instance_allocation_event
(
KlassHandle
klass
,
oop
obj
,
Thread
*
thread
);
public:
public:
static
void
send_allocation_outside_tlab_event
(
KlassHandle
klass
,
HeapWord
*
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_allocation_outside_tlab_event
(
KlassHandle
klass
,
HeapWord
*
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_allocation_in_new_tlab_event
(
KlassHandle
klass
,
HeapWord
*
obj
,
size_t
tlab_size
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_allocation_in_new_tlab_event
(
KlassHandle
klass
,
HeapWord
*
obj
,
size_t
tlab_size
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_allocation_requiring_gc_event
(
size_t
size
,
const
GCId
&
gcId
);
static
void
send_allocation_requiring_gc_event
(
size_t
size
,
const
GCId
&
gcId
);
#if INCLUDE_TRACE
static
void
opto_slow_allocation_enter
(
bool
is_array
,
Thread
*
thread
);
static
void
opto_slow_allocation_enter
(
bool
is_array
,
Thread
*
thread
);
static
void
opto_slow_allocation_leave
(
bool
is_array
,
Thread
*
thread
);
static
void
opto_slow_allocation_leave
(
bool
is_array
,
Thread
*
thread
);
static
void
send_slow_allocation_event
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_slow_allocation_event
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_opto_fast_allocation_event
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_opto_fast_allocation_event
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
);
private:
static
void
send_opto_array_allocation_event
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
);
static
void
send_opto_instance_allocation_event
(
KlassHandle
klass
,
oop
obj
,
Thread
*
thread
);
#endif
};
};
#endif
/* SHARE_VM_GC_INTERFACE_ALLOCTRACER_HPP */
#endif
/* SHARE_VM_GC_INTERFACE_ALLOCTRACER_HPP */
src/share/vm/gc_interface/allocTracer.inline.hpp
浏览文件 @
0b5f6bce
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#ifndef SHARE_VM_GC_INTERFACE_ALLOCTRACER_INLINE_HPP
#ifndef SHARE_VM_GC_INTERFACE_ALLOCTRACER_INLINE_HPP
#define SHARE_VM_GC_INTERFACE_ALLOCTRACER_INLINE_HPP
#define SHARE_VM_GC_INTERFACE_ALLOCTRACER_INLINE_HPP
#if INCLUDE_TRACE
#include "trace/tracing.hpp"
#include "trace/tracing.hpp"
#include "gc_implementation/shared/gcId.hpp"
#include "gc_implementation/shared/gcId.hpp"
#include "runtime/handles.hpp"
#include "runtime/handles.hpp"
...
@@ -118,5 +117,4 @@ inline void AllocTracer::send_opto_fast_allocation_event(KlassHandle klass, oop
...
@@ -118,5 +117,4 @@ inline void AllocTracer::send_opto_fast_allocation_event(KlassHandle klass, oop
thread
->
trace_data
()
->
incr_alloc_count_until_sample
(
interval
);
thread
->
trace_data
()
->
incr_alloc_count_until_sample
(
interval
);
}
}
#endif // INCLUDE_TRACE
#endif
/* SHARE_VM_GC_INTERFACE_ALLOCTRACER_INLINE_HPP */
#endif
/* SHARE_VM_GC_INTERFACE_ALLOCTRACER_INLINE_HPP */
src/share/vm/gc_interface/collectedHeap.hpp
浏览文件 @
0b5f6bce
...
@@ -324,12 +324,10 @@ class CollectedHeap : public CHeapObj<mtInternal> {
...
@@ -324,12 +324,10 @@ class CollectedHeap : public CHeapObj<mtInternal> {
inline
static
void
check_array_size
(
int
size
,
int
length
,
TRAPS
);
inline
static
void
check_array_size
(
int
size
,
int
length
,
TRAPS
);
public:
public:
#if INCLUDE_TRACE
// Implicit Jfr inline methods.
// Implicit Jfr inline methods.
static
void
trace_slow_allocation
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
)
{
static
void
trace_slow_allocation
(
KlassHandle
klass
,
oop
obj
,
size_t
alloc_size
,
Thread
*
thread
)
{
AllocTracer
::
send_slow_allocation_event
(
klass
,
obj
,
alloc_size
,
thread
);
AllocTracer
::
send_slow_allocation_event
(
klass
,
obj
,
alloc_size
,
thread
);
}
}
#endif
static
void
trace_allocation_outside_tlab
(
KlassHandle
klass
,
HeapWord
*
obj
,
size_t
alloc_size
,
Thread
*
thread
)
{
static
void
trace_allocation_outside_tlab
(
KlassHandle
klass
,
HeapWord
*
obj
,
size_t
alloc_size
,
Thread
*
thread
)
{
AllocTracer
::
send_allocation_outside_tlab_event
(
klass
,
obj
,
alloc_size
,
thread
);
AllocTracer
::
send_allocation_outside_tlab_event
(
klass
,
obj
,
alloc_size
,
thread
);
...
...
src/share/vm/gc_interface/collectedHeap.inline.hpp
浏览文件 @
0b5f6bce
...
@@ -85,10 +85,8 @@ inline void post_allocation_notify(KlassHandle klass, oop obj, int size) {
...
@@ -85,10 +85,8 @@ inline void post_allocation_notify(KlassHandle klass, oop obj, int size) {
}
}
}
}
#if INCLUDE_TRACE
// support for jfr
// support for jfr
CollectedHeap
::
trace_slow_allocation
(
klass
,
obj
,
size
*
HeapWordSize
,
Thread
::
current
());
CollectedHeap
::
trace_slow_allocation
(
klass
,
obj
,
size
*
HeapWordSize
,
Thread
::
current
());
#endif
}
}
void
CollectedHeap
::
post_allocation_setup_obj
(
KlassHandle
klass
,
void
CollectedHeap
::
post_allocation_setup_obj
(
KlassHandle
klass
,
...
...
src/share/vm/opto/macro.cpp
浏览文件 @
0b5f6bce
...
@@ -1442,11 +1442,9 @@ void PhaseMacroExpand::expand_allocate_common(
...
@@ -1442,11 +1442,9 @@ void PhaseMacroExpand::expand_allocate_common(
}
}
}
}
#if INCLUDE_TRACE
if
(
EnableJFR
&&
JfrOptionSet
::
sample_object_allocations
())
{
if
(
EnableJFR
&&
JfrOptionSet
::
sample_object_allocations
())
{
jfr_sample_fast_object_allocation
(
alloc
,
fast_oop
,
fast_oop_ctrl
,
fast_oop_rawmem
);
jfr_sample_fast_object_allocation
(
alloc
,
fast_oop
,
fast_oop_ctrl
,
fast_oop_rawmem
);
}
}
#endif
if
(
C
->
env
()
->
dtrace_extended_probes
())
{
if
(
C
->
env
()
->
dtrace_extended_probes
())
{
// Slow-path call
// Slow-path call
...
@@ -1645,7 +1643,6 @@ static jint bottom_java_frame_bci(JVMState* state) {
...
@@ -1645,7 +1643,6 @@ static jint bottom_java_frame_bci(JVMState* state) {
return
last
->
bci
();
return
last
->
bci
();
}
}
#if INCLUDE_TRACE
//
//
// Pseudo code:
// Pseudo code:
//
//
...
@@ -1742,7 +1739,6 @@ void PhaseMacroExpand::jfr_sample_fast_object_allocation(
...
@@ -1742,7 +1739,6 @@ void PhaseMacroExpand::jfr_sample_fast_object_allocation(
fast_oop_rawmem
=
alloc_sample_enabled_region_phi_mem
;
fast_oop_rawmem
=
alloc_sample_enabled_region_phi_mem
;
}
}
}
}
#endif
// Helper for PhaseMacroExpand::expand_allocate_common.
// Helper for PhaseMacroExpand::expand_allocate_common.
// Initializes the newly-allocated storage.
// Initializes the newly-allocated storage.
...
...
src/share/vm/opto/macro.hpp
浏览文件 @
0b5f6bce
...
@@ -123,11 +123,9 @@ private:
...
@@ -123,11 +123,9 @@ private:
Node
*
old_eden_top
,
Node
*
new_eden_top
,
Node
*
old_eden_top
,
Node
*
new_eden_top
,
Node
*
length
);
Node
*
length
);
#if INCLUDE_TRACE
//JFR tracing
//JFR tracing
void
jfr_sample_fast_object_allocation
(
AllocateNode
*
alloc
,
Node
*
fast_oop
,
void
jfr_sample_fast_object_allocation
(
AllocateNode
*
alloc
,
Node
*
fast_oop
,
Node
*&
fast_oop_ctrl
,
Node
*&
fast_oop_rawmem
);
Node
*&
fast_oop_ctrl
,
Node
*&
fast_oop_rawmem
);
#endif
public:
public:
PhaseMacroExpand
(
PhaseIterGVN
&
igvn
)
:
Phase
(
Macro_Expand
),
_igvn
(
igvn
),
_has_locks
(
false
)
{
PhaseMacroExpand
(
PhaseIterGVN
&
igvn
)
:
Phase
(
Macro_Expand
),
_igvn
(
igvn
),
_has_locks
(
false
)
{
...
...
src/share/vm/opto/runtime.cpp
浏览文件 @
0b5f6bce
...
@@ -1695,7 +1695,6 @@ JRT_END
...
@@ -1695,7 +1695,6 @@ JRT_END
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// JFR support.
// JFR support.
#if INCLUDE_TRACE
const
TypeFunc
*
OptoRuntime
::
jfr_fast_object_alloc_Type
()
{
const
TypeFunc
*
OptoRuntime
::
jfr_fast_object_alloc_Type
()
{
const
Type
**
fields
=
TypeTuple
::
fields
(
3
);
const
Type
**
fields
=
TypeTuple
::
fields
(
3
);
fields
[
TypeFunc
::
Parms
+
0
]
=
TypeRawPtr
::
BOTTOM
;
// newly allocated object
fields
[
TypeFunc
::
Parms
+
0
]
=
TypeRawPtr
::
BOTTOM
;
// newly allocated object
...
@@ -1722,4 +1721,3 @@ void OptoRuntime::jfr_fast_object_alloc_C(oopDesc* obj, jint top_frame_bci, Java
...
@@ -1722,4 +1721,3 @@ void OptoRuntime::jfr_fast_object_alloc_C(oopDesc* obj, jint top_frame_bci, Java
thread
->
trace_data
()
->
clear_cached_top_frame_bci
();
thread
->
trace_data
()
->
clear_cached_top_frame_bci
();
thread
->
set_vm_result
(
obj
);
thread
->
set_vm_result
(
obj
);
}
}
#endif
src/share/vm/opto/runtime.hpp
浏览文件 @
0b5f6bce
...
@@ -179,10 +179,8 @@ public:
...
@@ -179,10 +179,8 @@ public:
static
void
complete_monitor_locking_C
(
oopDesc
*
obj
,
BasicLock
*
lock
,
JavaThread
*
thread
);
static
void
complete_monitor_locking_C
(
oopDesc
*
obj
,
BasicLock
*
lock
,
JavaThread
*
thread
);
static
void
complete_monitor_unlocking_C
(
oopDesc
*
obj
,
BasicLock
*
lock
);
static
void
complete_monitor_unlocking_C
(
oopDesc
*
obj
,
BasicLock
*
lock
);
#if INCLUDE_TRACE
// JFR support
// JFR support
static
void
jfr_fast_object_alloc_C
(
oopDesc
*
obj
,
jint
bci
,
JavaThread
*
thread
);
static
void
jfr_fast_object_alloc_C
(
oopDesc
*
obj
,
jint
bci
,
JavaThread
*
thread
);
#endif
private:
private:
// Implicit exception support
// Implicit exception support
...
@@ -343,10 +341,8 @@ private:
...
@@ -343,10 +341,8 @@ private:
static
const
TypeFunc
*
zap_dead_locals_Type
();
static
const
TypeFunc
*
zap_dead_locals_Type
();
# endif
# endif
#if INCLUDE_TRACE
// JFR support
// JFR support
static
const
TypeFunc
*
jfr_fast_object_alloc_Type
();
static
const
TypeFunc
*
jfr_fast_object_alloc_Type
();
#endif
private:
private:
static
NamedCounter
*
volatile
_named_counters
;
static
NamedCounter
*
volatile
_named_counters
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录