Skip to content

Commit

Permalink
Use *_NOCTOR jit helpers version once class is initialized (#75785)
Browse files Browse the repository at this point in the history
* use noctor version once class is initialized

* review feedback
  • Loading branch information
kunalspathak authored Sep 17, 2022
1 parent 054129a commit 66fd34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/vm/jitinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 66fd34e

Please sign in to comment.