Skip to content

Commit

Permalink
Fix alpine debug build (#103871)
Browse files Browse the repository at this point in the history
* Fix alpine arm64 debug build

* Fix musl x86 debug build

* Apply suggestions from code review

---------

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
  • Loading branch information
am11 and jkotas authored Jun 26, 2024
1 parent 3ec7632 commit 2efb991
Show file tree
Hide file tree
Showing 57 changed files with 117 additions and 117 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/global-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ extends:
- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/common/global-build-job.yml
buildConfig: release
buildConfig: debug
platforms:
- linux_musl_x64_dev_innerloop
jobParameters:
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/binder/assemblybindercommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ HRESULT AssemblyBinderCommon::BindUsingHostAssemblyResolver(/* in */ INT_PTR pMa
{
HRESULT hr = E_FAIL;

_ASSERTE(pManagedAssemblyLoadContextToBindWithin != NULL);
_ASSERTE(pManagedAssemblyLoadContextToBindWithin != (INT_PTR)NULL);

// RuntimeInvokeHostAssemblyResolver will perform steps 2-4 of CustomAssemblyBinder::BindAssemblyByName.
BINDER_SPACE::Assembly *pLoadedAssembly = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/daccess/daccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6033,7 +6033,7 @@ ClrDataAccess::GetMethodNativeMap(MethodDesc* methodDesc,
CLRDATA_ADDRESS* codeStart,
ULONG32* codeOffset)
{
_ASSERTE((codeOffset == NULL) || (address != NULL));
_ASSERTE((codeOffset == NULL) || (address != (TADDR)NULL));

// Use the DebugInfoStore to get IL->Native maps.
// It doesn't matter whether we're jitted, ngenned etc.
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/daccess/dacdbiimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ DacDbiInterfaceImpl::DacDbiInterfaceImpl(
m_pCachedImporter(NULL),
m_isCachedHijackFunctionValid(FALSE)
{
_ASSERTE(baseAddress != NULL);
_ASSERTE(baseAddress != (CORDB_ADDRESS)NULL);
m_globalBase = CORDB_ADDRESS_TO_TADDR(baseAddress);

_ASSERTE(pMetaDataLookup != NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/di/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5238,7 +5238,7 @@ CordbNativeCode * CordbModule::LookupOrCreateNativeCode(mdMethodDef methodToken,
CORDB_ADDRESS startAddress)
{
INTERNAL_SYNC_API_ENTRY(GetProcess());
_ASSERTE(startAddress != NULL);
_ASSERTE(startAddress != (CORDB_ADDRESS)NULL);
_ASSERTE(methodDesc != VMPTR_MethodDesc::NullPtr());

CordbNativeCode * pNativeCode = NULL;
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/debug/di/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6996,7 +6996,7 @@ HRESULT CordbProcess::RefreshPatchTable(CORDB_ADDRESS address, SIZE_T size, BYTE
if (IsPatchInRequestedRange(address, size, patchAddress))
{
_ASSERTE( buffer != NULL );
_ASSERTE( size != NULL );
_ASSERTE( size != 0 );


//unapply the patch here.
Expand Down Expand Up @@ -10405,8 +10405,8 @@ void CordbRCEventThread::ThreadProc()
unsigned int waitCount;

#ifdef _DEBUG
memset(&rgProcessSet, NULL, MAXIMUM_WAIT_OBJECTS * sizeof(CordbProcess *));
memset(&waitSet, NULL, MAXIMUM_WAIT_OBJECTS * sizeof(HANDLE));
memset(&rgProcessSet, 0, MAXIMUM_WAIT_OBJECTS * sizeof(CordbProcess *));
memset(&waitSet, 0, MAXIMUM_WAIT_OBJECTS * sizeof(HANDLE));
#endif


Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/di/rsthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5903,7 +5903,7 @@ CORDB_ADDRESS CordbNativeFrame::GetLSStackAddress(
// we should definitely have an ambient-sp. If this is null, then the jit
// likely gave us an inconsistent data.
TADDR taAmbient = this->GetAmbientESP();
_ASSERTE(taAmbient != NULL);
_ASSERTE(taAmbient != (TADDR)NULL);

pRemoteValue = PTR_TO_CORDB_ADDRESS(taAmbient + offset);
}
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/debug/di/valuehome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ void FloatRegValueHome::GetEnregisteredValue(MemoryRange valueOutBuffer)
ValueHome(pProcess),
m_remoteValue(remoteValue)
{
_ASSERTE(remoteValue.pAddress != NULL);
_ASSERTE(remoteValue.pAddress != 0);
} // RemoteValueHome::RemoteValueHome

// Gets a value and returns it in dest
Expand Down Expand Up @@ -913,7 +913,7 @@ void HandleValueHome::GetValue(MemoryRange dest)

_ASSERTE(dest.Size() <= sizeof(void *));
_ASSERTE(dest.StartAddress() != NULL);
_ASSERTE(objPtr != NULL);
_ASSERTE(objPtr != (CORDB_ADDRESS)NULL);
m_pProcess->SafeReadBuffer(TargetBuffer(objPtr, sizeof(void *)), (BYTE *)dest.StartAddress());
} // HandleValueHome::GetValue

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/ee/amd64/walker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void NativeWalker::Decode()
//
BYTE sib = *ip;

_ASSERT(sib != NULL);
_ASSERT(sib != 0);

BYTE ss = (sib & 0xC0) >> 6;
BYTE index = (sib & 0x38) >> 3;
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/debug/ee/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ BOOL DebuggerController::AddILPatch(AppDomain * pAppDomain, Module *module,
BOOL offsetIsIL)
{
_ASSERTE(g_patches != NULL);
_ASSERTE(md != NULL);
_ASSERTE(md != 0);
_ASSERTE(module != NULL);

BOOL fOk = FALSE;
Expand Down Expand Up @@ -7098,11 +7098,11 @@ TP_RESULT DebuggerStepper::TriggerPatch(DebuggerControllerPatch *patch,
{
// Find the method that the return is to.
mdNative = g_pEEInterface->GetNativeCodeMethodDesc(dac_cast<PCODE>(traceManagerRetAddr));
_ASSERTE(g_pEEInterface->GetFunctionAddress(mdNative) != NULL);
_ASSERTE(g_pEEInterface->GetFunctionAddress(mdNative) != (PCODE)NULL);
pcodeNative = g_pEEInterface->GetFunctionAddress(mdNative);
}

_ASSERTE(mdNative != NULL && pcodeNative != NULL);
_ASSERTE(mdNative != NULL && pcodeNative != (PCODE)NULL);
SIZE_T offsetRet = dac_cast<TADDR>(traceManagerRetAddr - pcodeNative);
LOG((LF_CORDB, LL_INFO10000,
"DS::TP: Before normally managed code AddPatch"
Expand Down
14 changes: 7 additions & 7 deletions src/coreclr/debug/ee/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2836,7 +2836,7 @@ HRESULT Debugger::GetILToNativeMapping(PCODE pNativeCodeStartAddress, ULONG32 cM
}
CONTRACTL_END;

_ASSERTE(pNativeCodeStartAddress != NULL);
_ASSERTE(pNativeCodeStartAddress != (PCODE)NULL);

#ifdef PROFILING_SUPPORTED
// At this point, we're pulling in the debugger.
Expand Down Expand Up @@ -3004,7 +3004,7 @@ HRESULT Debugger::GetILToNativeMappingIntoArrays(
_ASSERTE(pcMap != NULL);
_ASSERTE(prguiILOffset != NULL);
_ASSERTE(prguiNativeOffset != NULL);
_ASSERTE(pNativeCodeStartAddress != NULL);
_ASSERTE(pNativeCodeStartAddress != (PCODE)NULL);

// Any caller of GetILToNativeMappingIntoArrays had better call
// InitializeLazyDataIfNecessary first!
Expand Down Expand Up @@ -3760,7 +3760,7 @@ HRESULT Debugger::SetIP( bool fCanSetIPOnly, Thread *thread,Module *module,
goto LExit;
}

_ASSERTE(pbDest != NULL);
_ASSERTE(pbDest != 0);

::SetIP(pCtx, pbDest);

Expand Down Expand Up @@ -6572,9 +6572,9 @@ JIT_DEBUG_INFO * Debugger::GetDebuggerLaunchJitInfo(void)
{
LIMITED_METHOD_CONTRACT;

_ASSERTE((s_DebuggerLaunchJitInfo.lpExceptionAddress != NULL) &&
(s_DebuggerLaunchJitInfo.lpExceptionRecord != NULL) &&
(s_DebuggerLaunchJitInfo.lpContextRecord != NULL) &&
_ASSERTE((s_DebuggerLaunchJitInfo.lpExceptionAddress != 0) &&
(s_DebuggerLaunchJitInfo.lpExceptionRecord != 0) &&
(s_DebuggerLaunchJitInfo.lpContextRecord != 0) &&
(((EXCEPTION_RECORD *)(s_DebuggerLaunchJitInfo.lpExceptionRecord))->ExceptionAddress != NULL));

return &s_DebuggerLaunchJitInfo;
Expand Down Expand Up @@ -7820,7 +7820,7 @@ void Debugger::FirstChanceManagedExceptionCatcherFound(Thread *pThread,
// Implements DebugInterface
// Call by EE/exception. Must be on managed thread
_ASSERTE(GetThreadNULLOk() != NULL);
_ASSERTE(pMethodAddr != NULL);
_ASSERTE(pMethodAddr != (TADDR)NULL);

// Quick check.
if (!CORDebuggerAttached())
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/debug/ee/functioninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ void DebuggerJitInfo::LazyInitBounds()
MethodDesc * mdesc = this->m_nativeCodeVersion.GetMethodDesc();
DebugInfoRequest request;

_ASSERTE(this->m_addrOfCode != NULL); // must have address to disambguate the Enc cases.
_ASSERTE(this->m_addrOfCode != (CORDB_ADDRESS)NULL); // must have address to disambguate the Enc cases.
// Caller already resolved generics when they craeted the DJI, so we don't need to repeat.
// Note the MethodDesc may not yet have the jitted info, so we'll also use the starting address we got in the jit complete callback.
request.InitFromStartingAddr(mdesc, (PCODE)this->m_addrOfCode);
Expand Down Expand Up @@ -1643,7 +1643,7 @@ DebuggerJitInfo *DebuggerMethodInfo::CreateInitAndAddJitInfo(NativeCodeVersion n
_ASSERTE(fd != NULL);

// May or may-not be jitted, that's why we passed in the start addr & size explicitly.
_ASSERTE(startAddr != NULL);
_ASSERTE(startAddr != (TADDR)NULL);

*jitInfoWasCreated = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/shared/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CORDB_ADDRESS IsEventDebuggerNotification(
_ASSERTE(pRecord != NULL);

// Must specify a CLR instance.
_ASSERTE(pClrBaseAddress != NULL);
_ASSERTE(pClrBaseAddress != (CORDB_ADDRESS)NULL);

// If it's not even our exception code, then it's not ours.
if (pRecord->ExceptionCode != CLRDBG_NOTIFICATION_EXCEPTION_CODE)
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/amd64/profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void ProfileSetFunctionIDInPlatformSpecificHandle(void * pPlatformSpecificHandle
{
LIMITED_METHOD_CONTRACT;
_ASSERTE(pPlatformSpecificHandle != NULL);
_ASSERTE(functionID != NULL);
_ASSERTE(functionID != 0);

PROFILE_PLATFORM_SPECIFIC_DATA * pData = reinterpret_cast<PROFILE_PLATFORM_SPECIFIC_DATA *>(pPlatformSpecificHandle);
pData->functionId = functionID;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/arm64/virtualcallstubcpu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ struct ResolveHolder
_stub._resolveWorkerTarget = resolveWorkerTarget;

_ASSERTE(resolveWorkerTarget == (PCODE)ResolveWorkerChainLookupAsmStub);
_ASSERTE(patcherTarget == NULL);
_ASSERTE(patcherTarget == (PCODE)NULL);

#undef DATA_OFFSET
#undef PC_REL_OFFSET
Expand Down
10 changes: 5 additions & 5 deletions src/coreclr/vm/assemblynative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ extern "C" void QCALLTYPE AssemblyNative_LoadFromStream(INT_PTR ptrNativeAssembl
BEGIN_QCALL;

// Ensure that the invariants are in place
_ASSERTE(ptrNativeAssemblyBinder != NULL);
_ASSERTE((ptrAssemblyArray != NULL) && (cbAssemblyArrayLength > 0));
_ASSERTE((ptrSymbolArray == NULL) || (cbSymbolArrayLength > 0));
_ASSERTE(ptrNativeAssemblyBinder != (INT_PTR)NULL);
_ASSERTE((ptrAssemblyArray != (INT_PTR)NULL) && (cbAssemblyArrayLength > 0));
_ASSERTE((ptrSymbolArray == (INT_PTR)NULL) || (cbSymbolArrayLength > 0));

PEImageHolder pILImage(PEImage::CreateFromByteArray((BYTE*)ptrAssemblyArray, (COUNT_T)cbAssemblyArrayLength));

Expand Down Expand Up @@ -1252,7 +1252,7 @@ extern "C" INT_PTR QCALLTYPE AssemblyNative_InitializeAssemblyLoadContext(INT_PT
{
// We are initializing the managed instance of Assembly Load Context that would represent the TPA binder.
// First, confirm we do not have an existing managed ALC attached to the TPA binder.
_ASSERTE(pDefaultBinder->GetManagedAssemblyLoadContext() == NULL);
_ASSERTE(pDefaultBinder->GetManagedAssemblyLoadContext() == (INT_PTR)NULL);

// Attach the managed TPA binding context with the native one.
pDefaultBinder->SetManagedAssemblyLoadContext(ptrManagedAssemblyLoadContext);
Expand Down Expand Up @@ -1299,7 +1299,7 @@ extern "C" INT_PTR QCALLTYPE AssemblyNative_GetLoadContextForAssembly(QCall::Ass
{
// Fetch the managed binder reference from the native binder instance
ptrManagedAssemblyLoadContext = pAssemblyBinder->GetManagedAssemblyLoadContext();
_ASSERTE(ptrManagedAssemblyLoadContext != NULL);
_ASSERTE(ptrManagedAssemblyLoadContext != (INT_PTR)NULL);
}

END_QCALL;
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/vm/callcounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ NOINLINE LoaderHeap *CallCountingManager::CallCountingStubAllocator::AllocateHea
bool CallCountingManager::CallCountingStubAllocator::IsStub(TADDR entryPoint)
{
WRAPPER_NO_CONTRACT;
_ASSERTE(entryPoint != NULL);
_ASSERTE(entryPoint != (TADDR)NULL);

return !!m_heapRangeList.IsInRange(entryPoint);
}
Expand Down Expand Up @@ -562,7 +562,7 @@ bool CallCountingManager::SetCodeEntryPoint(
_ASSERTE(
activeCodeVersion ==
methodDesc->GetCodeVersionManager()->GetActiveILCodeVersion(methodDesc).GetActiveNativeCodeVersion(methodDesc));
_ASSERTE(codeEntryPoint != NULL);
_ASSERTE(codeEntryPoint != (PCODE)NULL);
_ASSERTE(codeEntryPoint == activeCodeVersion.GetNativeCode());
_ASSERTE(!wasMethodCalled || createTieringBackgroundWorkerRef != nullptr);
_ASSERTE(createTieringBackgroundWorkerRef == nullptr || !*createTieringBackgroundWorkerRef);
Expand Down Expand Up @@ -1253,7 +1253,7 @@ bool CallCountingManager::IsCallCountingStub(PCODE entryPoint)
CONTRACTL_END;

TADDR entryAddress = PCODEToPINSTR(entryPoint);
_ASSERTE(entryAddress != NULL);
_ASSERTE(entryAddress != (PCODE)NULL);

CodeVersionManager::LockHolder codeVersioningLockHolder;

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/callcounting.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class CallCountingManager
inline const CallCountingStub *CallCountingStub::From(TADDR stubIdentifyingToken)
{
WRAPPER_NO_CONTRACT;
_ASSERTE(stubIdentifyingToken != NULL);
_ASSERTE(stubIdentifyingToken != (TADDR)NULL);

// The stubIdentifyingToken is the pointer to the CallCount
const CallCountingStub *stub = CallCountingManager::GetCallCountingStub((CallCount*)stubIdentifyingToken);
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/vm/ceeload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2675,7 +2675,7 @@ void LookupMapBase::DebugGetRidMapOccupancy(DWORD *pdwOccupied, DWORD *pdwSize)

for (DWORD i = 0; i < dwIterCount; i++)
{
if (pMap->pTable[i] != NULL)
if (pMap->pTable[i] != 0)
(*pdwOccupied)++;
}

Expand Down Expand Up @@ -3557,7 +3557,7 @@ void Module::RunEagerFixupsUnlocked()
}
else
{
_ASSERTE(*fixupCell != NULL);
_ASSERTE(*fixupCell != 0);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/ceeload.inl
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void LookupMap<TYPE>::AddElement(ModuleBase * pModule, DWORD rid, TYPE value, TA
// Once set, the values in LookupMap should be immutable.
TADDR oldFlags;
TYPE oldValue = GetValueAt(pElement, &oldFlags, supportedFlags);
_ASSERTE(oldValue == NULL || (oldValue == value && oldFlags == flags));
_ASSERTE(oldValue == (TYPE)NULL || (oldValue == value && oldFlags == flags));
#endif
// Avoid unnecessary writes - do not overwrite existing value
if (*pElement == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/codeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4256,7 +4256,7 @@ void GetUnmanagedStackWalkInfo(IN ULONG64 ControlPc,

if (dwLow > dwHigh)
{
_ASSERTE(*pFuncEntry == NULL);
_ASSERTE(*pFuncEntry == 0);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/codeman.h
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,7 @@ inline CodeHeader * EEJitManager::GetCodeHeader(const METHODTOKEN& MethodToken)
inline CodeHeader * EEJitManager::GetCodeHeaderFromStartAddress(TADDR methodStartAddress)
{
LIMITED_METHOD_DAC_CONTRACT;
_ASSERTE(methodStartAddress != NULL);
_ASSERTE(methodStartAddress != (TADDR)NULL);
ARM_ONLY(_ASSERTE((methodStartAddress & THUMB_CODE) == 0));
return dac_cast<PTR_CodeHeader>(methodStartAddress - sizeof(CodeHeader));
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/codeversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ HRESULT CodeVersionManager::AddNativeCodeVersion(
// publish that code as part of adding the node which would require callers
// to pay attention to GC suspension and we'd need to report publishing errors
// back to them.
_ASSERTE(pNativeCodeVersionNode->GetNativeCode() == NULL);
_ASSERTE(pNativeCodeVersionNode->GetNativeCode() == (PCODE)NULL);
}
*pNativeCodeVersion = NativeCodeVersion(pNativeCodeVersionNode);
return S_OK;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/comdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ OBJECTREF COMDelegate::ConvertToDelegate(LPVOID pCallback, MethodTable* pMT)
// The IL marshaling stub performs the function of the shuffle thunk - it simply omits 'this' in
// the call to unmanaged code. The stub recovers the unmanaged target from the delegate instance.

_ASSERTE(pMarshalStub != NULL);
_ASSERTE(pMarshalStub != (PCODE)NULL);

//////////////////////////////////////////////////////////////////////////////////////////////////////////
// Wire up the stubs to the new delegate instance.
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/vm/customattribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ static BASEARRAYREF ReadArray(Assembly *pCtorAssembly,
th = th.GetArrayElementTypeHandle();
for (int i = 0; i < size; i++) {
element = GetDataFromBlob(pCtorAssembly, arrayType, th, pBlob, endBlob, pModule, &isObject);
_ASSERTE(isObject || element == NULL);
_ASSERTE(isObject || element == (ARG_SLOT)NULL);
((PTRARRAYREF)(array))->SetAt(i, ArgSlotToObj(element));
}
break;
Expand Down Expand Up @@ -978,7 +978,7 @@ extern "C" void QCALLTYPE CustomAttribute_CreateCustomAttributeInstance(
{
if (argToProtect[i] != NULL)
{
_ASSERTE(args[i] == NULL);
_ASSERTE(args[i] == (ARG_SLOT)NULL);
args[i] = ObjToArgSlot(argToProtect[i]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/dacenumerablehash.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class DacEnumerableHashTable

static bool AcceptableEndSentinel(PTR_VolatileEntry entry, TADDR expectedEndSentinel)
{
_ASSERTE(expectedEndSentinel != NULL);
_ASSERTE(expectedEndSentinel != (TADDR)NULL);
_ASSERTE(entry != NULL);

TADDR endSentinelEntry = dac_cast<TADDR>(entry);
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/debugdebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ void DebugStackTrace::DebugStackTraceElement::InitPass1(
_ASSERTE(pFunc != NULL);

// May have a null IP for ecall frames. If IP is null, then dwNativeOffset should be 0 too.
_ASSERTE ( (ip != NULL) || (dwNativeOffset == 0) );
_ASSERTE ( (ip != (PCODE)NULL) || (dwNativeOffset == 0) );

this->pFunc = pFunc;
this->dwOffset = dwNativeOffset;
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/debuginfostore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ void DebugInfoRequest::InitFromStartingAddr(MethodDesc * pMD, PCODE addrCode)
CONTRACTL_END;

_ASSERTE(pMD != NULL);
_ASSERTE(addrCode != NULL);
_ASSERTE(addrCode != (PCODE)NULL);

this->m_pMD = pMD;
this->m_addrStart = addrCode;
Expand Down
Loading

0 comments on commit 2efb991

Please sign in to comment.