Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
596ee7cc
R
runtime
项目概览
dotNET Platform
/
runtime
12 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
596ee7cc
编写于
2月 01, 2021
作者:
A
Andrew Au
提交者:
GitHub
2月 01, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move statics to POH (#47651)
上级
b23ccde6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
8 deletion
+8
-8
src/coreclr/gc/gcpriv.h
src/coreclr/gc/gcpriv.h
+1
-1
src/coreclr/vm/appdomain.cpp
src/coreclr/vm/appdomain.cpp
+4
-4
src/coreclr/vm/gchelpers.cpp
src/coreclr/vm/gchelpers.cpp
+2
-2
src/coreclr/vm/gchelpers.h
src/coreclr/vm/gchelpers.h
+1
-1
未找到文件。
src/coreclr/gc/gcpriv.h
浏览文件 @
596ee7cc
...
...
@@ -124,7 +124,7 @@ inline void FATAL_GC_ERROR()
#define CARD_BUNDLE //enable card bundle feature.(requires WRITE_WATCH)
//
#define ALLOW_REFERENCES_IN_POH //Allow POH objects to contain references.
#define ALLOW_REFERENCES_IN_POH //Allow POH objects to contain references.
#ifdef BACKGROUND_GC
#define BGC_SERVO_TUNING
...
...
src/coreclr/vm/appdomain.cpp
浏览文件 @
596ee7cc
...
...
@@ -143,14 +143,14 @@ LargeHeapHandleBucket::LargeHeapHandleBucket(LargeHeapHandleBucket *pNext, DWORD
// Allocate the array in the large object heap.
OVERRIDE_TYPE_LOAD_LEVEL_LIMIT
(
CLASS_LOADED
);
HandleArrayObj
=
(
PTRARRAYREF
)
AllocateObjectArray
(
Size
,
g_pObjectClass
,
TRUE
);
HandleArrayObj
=
(
PTRARRAYREF
)
AllocateObjectArray
(
Size
,
g_pObjectClass
,
/* bAllocateInPinnedHeap = */
TRUE
);
// Retrieve the pointer to the data inside the array. This is legal since the array
// is located in the large object heap and is guaranteed not to move.
m_pArrayDataPtr
=
(
OBJECTREF
*
)
HandleArrayObj
->
GetDataPtr
();
// Store the array in a strong handle to keep it alive.
m_hndHandleArray
=
pDomain
->
Create
Pinni
ngHandle
((
OBJECTREF
)
HandleArrayObj
);
m_hndHandleArray
=
pDomain
->
Create
Stro
ngHandle
((
OBJECTREF
)
HandleArrayObj
);
}
...
...
@@ -166,7 +166,7 @@ LargeHeapHandleBucket::~LargeHeapHandleBucket()
if
(
m_hndHandleArray
)
{
Destroy
Pinni
ngHandle
(
m_hndHandleArray
);
Destroy
Stro
ngHandle
(
m_hndHandleArray
);
m_hndHandleArray
=
NULL
;
}
}
...
...
@@ -517,7 +517,7 @@ ThreadStaticHandleBucket::ThreadStaticHandleBucket(ThreadStaticHandleBucket *pNe
// Allocate the array on the GC heap.
OVERRIDE_TYPE_LOAD_LEVEL_LIMIT
(
CLASS_LOADED
);
HandleArrayObj
=
(
PTRARRAYREF
)
AllocateObjectArray
(
Size
,
g_pObjectClass
,
FALSE
);
HandleArrayObj
=
(
PTRARRAYREF
)
AllocateObjectArray
(
Size
,
g_pObjectClass
);
// Store the array in a strong handle to keep it alive.
m_hndHandleArray
=
pDomain
->
CreateStrongHandle
((
OBJECTREF
)
HandleArrayObj
);
...
...
src/coreclr/vm/gchelpers.cpp
浏览文件 @
596ee7cc
...
...
@@ -803,7 +803,7 @@ OBJECTREF DupArrayForCloning(BASEARRAYREF pRef)
//
// Helper for parts of the EE which are allocating arrays
//
OBJECTREF
AllocateObjectArray
(
DWORD
cElements
,
TypeHandle
elementType
,
BOOL
bAllocateIn
Large
Heap
)
OBJECTREF
AllocateObjectArray
(
DWORD
cElements
,
TypeHandle
elementType
,
BOOL
bAllocateIn
Pinned
Heap
)
{
CONTRACTL
{
THROWS
;
...
...
@@ -823,7 +823,7 @@ OBJECTREF AllocateObjectArray(DWORD cElements, TypeHandle elementType, BOOL bAll
_ASSERTE
(
arrayType
.
GetInternalCorElementType
()
==
ELEMENT_TYPE_SZARRAY
);
#endif //_DEBUG
GC_ALLOC_FLAGS
flags
=
bAllocateIn
LargeHeap
?
GC_ALLOC_LARGE
_OBJECT_HEAP
:
GC_ALLOC_NO_FLAGS
;
GC_ALLOC_FLAGS
flags
=
bAllocateIn
PinnedHeap
?
GC_ALLOC_PINNED
_OBJECT_HEAP
:
GC_ALLOC_NO_FLAGS
;
return
AllocateSzArray
(
arrayType
,
(
INT32
)
cElements
,
flags
);
}
...
...
src/coreclr/vm/gchelpers.h
浏览文件 @
596ee7cc
...
...
@@ -31,7 +31,7 @@ OBJECTREF AllocateArrayEx(TypeHandle arrayType, INT32 *pArgs, DWORD dwNumArgs,
OBJECTREF
AllocatePrimitiveArray
(
CorElementType
type
,
DWORD
cElements
);
// Allocate SD array of object types given an element type
OBJECTREF
AllocateObjectArray
(
DWORD
cElements
,
TypeHandle
ElementType
,
BOOL
bAllocateIn
Large
Heap
=
FALSE
);
OBJECTREF
AllocateObjectArray
(
DWORD
cElements
,
TypeHandle
ElementType
,
BOOL
bAllocateIn
Pinned
Heap
=
FALSE
);
// Allocate a string
STRINGREF
AllocateString
(
DWORD
cchStringLength
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录