Skip to content

Commit f83a9d9

Browse files
authored
Match xplat event source conditions (#56435)
1 parent 4e05e94 commit f83a9d9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/coreclr/clr.featuredefines.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</PropertyGroup>
1515

1616
<PropertyGroup Condition="'$(TargetsUnix)' == 'true'">
17-
<FeatureXplatEventSource Condition="'$(TargetOS)'!='OSX'">true</FeatureXplatEventSource>
17+
<FeatureXplatEventSource Condition="'$(TargetOS)' == 'Linux'">true</FeatureXplatEventSource>
1818

1919
<FeatureArrayStubAsIL>true</FeatureArrayStubAsIL>
2020
<FeatureMulticastStubAsIL>true</FeatureMulticastStubAsIL>

src/coreclr/vm/ecall.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,13 @@ LPVOID ECall::GetQCallImpl(MethodDesc * pMD)
659659
if (id == 0)
660660
{
661661
id = ECall::GetIDForMethod(pMD);
662+
663+
#ifdef _DEBUG
664+
CONSISTENCY_CHECK_MSGF(id != 0,
665+
("%s::%s is not registered in ecall.cpp",
666+
pMD->m_pszDebugClassName, pMD->m_pszDebugMethodName));
667+
#endif
668+
662669
_ASSERTE(id != 0);
663670

664671
// Cache the id

0 commit comments

Comments
 (0)