Skip to content
Merged
Prev Previous commit
Next Next commit
Fixes for the glibc-based build
  • Loading branch information
jkoritzinsky committed Apr 11, 2024
commit 9c2e7cb796711d021f56f9aa4edfe9714749f667
12 changes: 6 additions & 6 deletions src/coreclr/utilcode/loaderheap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void RangeList::InitBlock(RangeListBlock *b)
while (r < rEnd)
r++->id = (TADDR)NULL;

b->next = nullptr;
b->next = NULL;
}

BOOL RangeList::AddRangeWorker(const BYTE *start, const BYTE *end, void *id)
Expand All @@ -92,7 +92,7 @@ BOOL RangeList::AddRangeWorker(const BYTE *start, const BYTE *end, void *id)
}
CONTRACTL_END

_ASSERTE(id != (TADDR)NULL);
_ASSERTE(id != NULL);

RangeListBlock *b = m_firstEmptyBlock;
Range *r = b->ranges + m_firstEmptyRange;
Expand Down Expand Up @@ -123,7 +123,7 @@ BOOL RangeList::AddRangeWorker(const BYTE *start, const BYTE *end, void *id)
// new one.
//

if (b->next == nullptr)
if (b->next == NULL)
{
RangeListBlock *newBlock = new (nothrow) RangeListBlock;

Expand All @@ -136,7 +136,7 @@ BOOL RangeList::AddRangeWorker(const BYTE *start, const BYTE *end, void *id)

InitBlock(newBlock);

newBlock->next = nullptr;
newBlock->next = NULL;
b->next = newBlock;
}

Expand Down Expand Up @@ -204,7 +204,7 @@ void RangeList::RemoveRangesWorker(void *id, const BYTE* start, const BYTE* end)
// If there are no more blocks, we're done.
//

if (b->next == nullptr)
if (b->next == NULL)
{
m_firstEmptyRange = 0;
m_firstEmptyBlock = &m_starterBlock;
Expand Down Expand Up @@ -266,7 +266,7 @@ BOOL RangeList::IsInRangeWorker(TADDR address, TADDR *pID /* = NULL */)
// If there are no more blocks, we're done.
//

if (b->next == nullptr)
if (b->next == NULL)
return FALSE;

//
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,7 @@ class Nullable {
static BOOL UnBox(void* dest, OBJECTREF boxedVal, MethodTable* destMT);
static BOOL UnBoxNoGC(void* dest, OBJECTREF boxedVal, MethodTable* destMT);
static void UnBoxNoCheck(void* dest, OBJECTREF boxedVal, MethodTable* destMT);
static OBJECTREF BoxedNullableNull(TypeHandle nullableType) { return nullptr; }
static OBJECTREF BoxedNullableNull(TypeHandle nullableType) { return NULL; }

// if 'Obj' is a true boxed nullable, return the form we want (either null or a boxed T)
static OBJECTREF NormalizeBox(OBJECTREF obj);
Expand Down