Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
8f0e81e6
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8f0e81e6
编写于
2月 20, 2019
作者:
Z
zgu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8219370: NMT: Move synchronization primitives from mtInternal to mtSynchronizer
Reviewed-by: dholmes, rehn
上级
633c12a0
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
13 addition
and
11 deletion
+13
-11
src/hotspot/os/posix/os_posix.hpp
src/hotspot/os/posix/os_posix.hpp
+2
-2
src/hotspot/os/solaris/os_solaris.hpp
src/hotspot/os/solaris/os_solaris.hpp
+2
-2
src/hotspot/os/windows/os_windows.hpp
src/hotspot/os/windows/os_windows.hpp
+2
-2
src/hotspot/share/memory/allocation.hpp
src/hotspot/share/memory/allocation.hpp
+1
-0
src/hotspot/share/runtime/monitorChunk.cpp
src/hotspot/share/runtime/monitorChunk.cpp
+2
-2
src/hotspot/share/runtime/monitorChunk.hpp
src/hotspot/share/runtime/monitorChunk.hpp
+1
-1
src/hotspot/share/runtime/mutex.hpp
src/hotspot/share/runtime/mutex.hpp
+1
-1
src/hotspot/share/runtime/semaphore.hpp
src/hotspot/share/runtime/semaphore.hpp
+1
-1
src/hotspot/share/services/nmtCommon.cpp
src/hotspot/share/services/nmtCommon.cpp
+1
-0
未找到文件。
src/hotspot/os/posix/os_posix.hpp
浏览文件 @
8f0e81e6
...
...
@@ -166,7 +166,7 @@ private:
* These event objects are type-stable and immortal - we never delete them.
* Events are associated with a thread for the lifetime of the thread.
*/
class
PlatformEvent
:
public
CHeapObj
<
mt
Internal
>
{
class
PlatformEvent
:
public
CHeapObj
<
mt
Synchronizer
>
{
private:
double
cachePad
[
4
];
// Increase odds that _mutex is sole occupant of cache line
volatile
int
_event
;
// Event count/permit: -1, 0 or 1
...
...
@@ -201,7 +201,7 @@ class PlatformEvent : public CHeapObj<mtInternal> {
// API updates of course). But Parker methods use fastpaths that break that
// level of encapsulation - so combining the two remains a future project.
class
PlatformParker
:
public
CHeapObj
<
mt
Internal
>
{
class
PlatformParker
:
public
CHeapObj
<
mt
Synchronizer
>
{
protected:
enum
{
REL_INDEX
=
0
,
...
...
src/hotspot/os/solaris/os_solaris.hpp
浏览文件 @
8f0e81e6
...
...
@@ -281,7 +281,7 @@ class Solaris {
};
class
PlatformEvent
:
public
CHeapObj
<
mt
Internal
>
{
class
PlatformEvent
:
public
CHeapObj
<
mt
Synchronizer
>
{
private:
double
CachePad
[
4
];
// increase odds that _mutex is sole occupant of cache line
volatile
int
_Event
;
...
...
@@ -317,7 +317,7 @@ class PlatformEvent : public CHeapObj<mtInternal> {
void
unpark
();
};
class
PlatformParker
:
public
CHeapObj
<
mt
Internal
>
{
class
PlatformParker
:
public
CHeapObj
<
mt
Synchronizer
>
{
protected:
mutex_t
_mutex
[
1
];
cond_t
_cond
[
1
];
...
...
src/hotspot/os/windows/os_windows.hpp
浏览文件 @
8f0e81e6
...
...
@@ -160,7 +160,7 @@ private:
static
volatile
intptr_t
_crash_mux
;
};
class
PlatformEvent
:
public
CHeapObj
<
mt
Internal
>
{
class
PlatformEvent
:
public
CHeapObj
<
mt
Synchronizer
>
{
private:
double
CachePad
[
4
]
;
// increase odds that _Event is sole occupant of cache line
volatile
int
_Event
;
...
...
@@ -186,7 +186,7 @@ class PlatformEvent : public CHeapObj<mtInternal> {
class
PlatformParker
:
public
CHeapObj
<
mt
Internal
>
{
class
PlatformParker
:
public
CHeapObj
<
mt
Synchronizer
>
{
protected:
HANDLE
_ParkEvent
;
...
...
src/hotspot/share/memory/allocation.hpp
浏览文件 @
8f0e81e6
...
...
@@ -133,6 +133,7 @@ enum MemoryType {
mtLogging
,
// memory for logging
mtArguments
,
// memory for argument processing
mtModule
,
// memory for module processing
mtSynchronizer
,
// memory for synchronization primitives
mtSafepoint
,
// memory for safepoint support
mtNone
,
// undefined
mt_number_of_types
// number of memory types (mtDontTrack
...
...
src/hotspot/share/runtime/monitorChunk.cpp
浏览文件 @
8f0e81e6
/*
* Copyright (c) 1997, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
9
, 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
...
...
@@ -29,7 +29,7 @@
MonitorChunk
::
MonitorChunk
(
int
number_on_monitors
)
{
_number_of_monitors
=
number_on_monitors
;
_monitors
=
NEW_C_HEAP_ARRAY
(
BasicObjectLock
,
number_on_monitors
,
mt
Internal
);
_monitors
=
NEW_C_HEAP_ARRAY
(
BasicObjectLock
,
number_on_monitors
,
mt
Synchronizer
);
_next
=
NULL
;
}
...
...
src/hotspot/share/runtime/monitorChunk.hpp
浏览文件 @
8f0e81e6
...
...
@@ -30,7 +30,7 @@
// Data structure for holding monitors for one activation during
// deoptimization.
class
MonitorChunk
:
public
CHeapObj
<
mt
Internal
>
{
class
MonitorChunk
:
public
CHeapObj
<
mt
Synchronizer
>
{
private:
int
_number_of_monitors
;
BasicObjectLock
*
_monitors
;
...
...
src/hotspot/share/runtime/mutex.hpp
浏览文件 @
8f0e81e6
...
...
@@ -79,7 +79,7 @@ class ParkEvent ;
// TODO: Check if _name[MONITOR_NAME_LEN] should better get replaced by const char*.
static
const
int
MONITOR_NAME_LEN
=
64
;
class
Monitor
:
public
CHeapObj
<
mt
Internal
>
{
class
Monitor
:
public
CHeapObj
<
mt
Synchronizer
>
{
public:
// A special lock: Is a lock where you are guaranteed not to block while you are
...
...
src/hotspot/share/runtime/semaphore.hpp
浏览文件 @
8f0e81e6
...
...
@@ -40,7 +40,7 @@
class
JavaThread
;
// Implements the limited, platform independent Semaphore API.
class
Semaphore
:
public
CHeapObj
<
mt
Internal
>
{
class
Semaphore
:
public
CHeapObj
<
mt
Synchronizer
>
{
SemaphoreImpl
_impl
;
// Prevent copying and assignment of Semaphore instances.
...
...
src/hotspot/share/services/nmtCommon.cpp
浏览文件 @
8f0e81e6
...
...
@@ -44,6 +44,7 @@ const char* NMTUtil::_memory_type_names[] = {
"Logging"
,
"Arguments"
,
"Module"
,
"Synchronizer"
,
"Safepoint"
,
"Unknown"
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录