-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[clr-ios] Guard code-versioning paths with FEATURE_CODE_VERSIONING
#120812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
6c0cd9e
709eafa
fed5808
a7865dc
332a238
a969f19
4d7a017
eda84ed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4650,6 +4650,7 @@ HRESULT ClrDataAccess::GetClrNotification(CLRDATA_ADDRESS arguments[], int count | |
|
||
HRESULT ClrDataAccess::GetPendingReJITID(CLRDATA_ADDRESS methodDesc, int *pRejitId) | ||
{ | ||
#ifdef FEATURE_CODE_VERSIONING | ||
if (methodDesc == 0 || pRejitId == NULL) | ||
{ | ||
return E_INVALIDARG; | ||
|
@@ -4679,9 +4680,14 @@ HRESULT ClrDataAccess::GetPendingReJITID(CLRDATA_ADDRESS methodDesc, int *pRejit | |
SOSDacLeave(); | ||
|
||
return hr; | ||
#else | ||
return E_NOTIMPL; | ||
#endif // FEATURE_CODE_VERSIONING | ||
} | ||
|
||
HRESULT ClrDataAccess::GetReJITInformation(CLRDATA_ADDRESS methodDesc, int rejitId, struct DacpReJitData2 *pReJitData) | ||
{ | ||
#ifdef FEATURE_CODE_VERSIONING | ||
{ | ||
kotlarmilos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
if (methodDesc == 0 || rejitId < 0 || pReJitData == NULL) | ||
{ | ||
|
@@ -4728,10 +4734,15 @@ HRESULT ClrDataAccess::GetReJITInformation(CLRDATA_ADDRESS methodDesc, int rejit | |
|
||
return hr; | ||
} | ||
kotlarmilos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
#else | ||
return E_NOTIMPL; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this just return |
||
#endif // FEATURE_CODE_VERSIONING | ||
} | ||
|
||
|
||
HRESULT ClrDataAccess::GetProfilerModifiedILInformation(CLRDATA_ADDRESS methodDesc, struct DacpProfilerILData *pILData) | ||
{ | ||
#ifdef FEATURE_CODE_VERSIONING | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This ifdef can be smaller (just |
||
if (methodDesc == 0 || pILData == NULL) | ||
{ | ||
return E_INVALIDARG; | ||
|
@@ -4763,10 +4774,14 @@ HRESULT ClrDataAccess::GetProfilerModifiedILInformation(CLRDATA_ADDRESS methodDe | |
SOSDacLeave(); | ||
|
||
return hr; | ||
#else | ||
return E_NOTIMPL; | ||
#endif // FEATURE_CODE_VERSIONING | ||
} | ||
|
||
HRESULT ClrDataAccess::GetMethodsWithProfilerModifiedIL(CLRDATA_ADDRESS mod, CLRDATA_ADDRESS *methodDescs, int cMethodDescs, int *pcMethodDescs) | ||
{ | ||
#ifdef FEATURE_CODE_VERSIONING | ||
if (mod == 0 || methodDescs == NULL || cMethodDescs == 0 || pcMethodDescs == NULL) | ||
{ | ||
return E_INVALIDARG; | ||
|
@@ -4814,6 +4829,9 @@ HRESULT ClrDataAccess::GetMethodsWithProfilerModifiedIL(CLRDATA_ADDRESS mod, CLR | |
SOSDacLeave(); | ||
|
||
return hr; | ||
#else | ||
return E_NOTIMPL; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can succeed with returning |
||
#endif // FEATURE_CODE_VERSIONING | ||
} | ||
|
||
HRESULT ClrDataAccess::GetNumberGenerations(unsigned int *pGenerations) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return
*pRejitId = -1;
andhr = S_FALSE;
?