Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
f33c4408
R
runtime
项目概览
dotNET Platform
/
runtime
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
f33c4408
编写于
4月 12, 2021
作者:
Z
Zoltan Varga
提交者:
GitHub
4月 12, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[mono] Remove owns_vtable_slot (), its incorrect, and its not needed any more. (#51127)
Fixes
https://github.com/dotnet/runtime/issues/51109
.
上级
c5d16e0f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
3 addition
and
14 deletion
+3
-14
src/mono/mono/mini/mini-trampolines.c
src/mono/mono/mini/mini-trampolines.c
+3
-14
未找到文件。
src/mono/mono/mini/mini-trampolines.c
浏览文件 @
f33c4408
...
...
@@ -153,13 +153,6 @@ mono_create_static_rgctx_trampoline (MonoMethod *m, gpointer addr)
}
#endif
// FIXME: Is this still needed ?
static
gboolean
owns_vtable_slot
(
gpointer
vtable_slot
)
{
return
mono_mem_manager_mp_contains_addr
(
mono_mem_manager_get_ambient
(),
vtable_slot
);
}
gpointer
mono_create_ftnptr_arg_trampoline
(
gpointer
arg
,
gpointer
addr
)
{
...
...
@@ -514,9 +507,7 @@ common_call_trampoline (host_mgreg_t *regs, guint8 *code, MonoMethod *m, MonoVTa
/*
* We found AOT compiled code for the method, skip the rest.
*/
if
(
owns_vtable_slot
(
vtable_slot
))
*
vtable_slot
=
addr
;
*
vtable_slot
=
addr
;
return
mono_create_ftnptr
(
addr
);
}
...
...
@@ -697,7 +688,7 @@ common_call_trampoline (host_mgreg_t *regs, guint8 *code, MonoMethod *m, MonoVTa
vtable_slot
=
orig_vtable_slot
;
if
(
vtable_slot
)
{
if
(
vtable_slot_to_patch
&&
(
mono_aot_is_got_entry
(
code
,
(
guint8
*
)
vtable_slot_to_patch
)
||
owns_vtable_slot
(
vtable_slot_to_patch
))
)
{
if
(
vtable_slot_to_patch
)
{
g_assert
(
*
vtable_slot_to_patch
);
*
vtable_slot_to_patch
=
mono_get_addr_from_ftnptr
(
addr
);
}
...
...
@@ -830,9 +821,7 @@ mono_vcall_trampoline (host_mgreg_t *regs, guint8 *code, int slot, guint8 *tramp
addr
=
mono_aot_get_method_from_vt_slot
(
vt
,
slot
,
error
);
goto_if_nok
(
error
,
leave
);
if
(
addr
&&
!
m_class_is_valuetype
(
vt
->
klass
))
{
if
(
owns_vtable_slot
(
vtable_slot
))
*
vtable_slot
=
addr
;
*
vtable_slot
=
addr
;
res
=
mono_create_ftnptr
(
addr
);
goto
leave
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录