Skip to content

Commit 1eab92a

Browse files
author
Bo Cupp
committed
Fix OSX build with RECYCLER_VISITED_HOST ifdef check
1 parent f0f06d9 commit 1eab92a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Common/Memory/HeapBlock.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ template <bool doSpecialMark, typename Fn>
157157
bool
158158
HeapBlock::UpdateAttributesOfMarkedObjects(MarkContext * markContext, void * objectAddress, size_t objectSize, unsigned char attributes, Fn fn)
159159
{
160+
#ifdef RECYCLER_VISITED_HOST
160161
Assert(GetHeapBlockType() != HeapBlock::HeapBlockType::SmallRecyclerVisitedHostBlockType && GetHeapBlockType() != HeapBlock::HeapBlockType::MediumRecyclerVisitedHostBlockType);
162+
#endif
161163

162164
bool noOOMDuringMark = true;
163165

0 commit comments

Comments
 (0)