未验证 提交 66fd34ef 编写于 作者: K Kunal Pathak 提交者: GitHub

Use *_NOCTOR jit helpers version once class is initialized (#75785)

* use noctor version once class is initialized

* review feedback
上级 054129af
......@@ -1302,7 +1302,7 @@ CorInfoHelpFunc CEEInfo::getSharedStaticsHelper(FieldDesc * pField, MethodTable
helper += delta;
}
else
if (!pFieldMT->HasClassConstructor() && !pFieldMT->HasBoxedRegularStatics())
if ((!pFieldMT->HasClassConstructor() && !pFieldMT->HasBoxedRegularStatics()) || pFieldMT->IsClassInited())
{
const int delta = CORINFO_HELP_GETSHARED_GCSTATIC_BASE_NOCTOR - CORINFO_HELP_GETSHARED_GCSTATIC_BASE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册