Skip to content
Closed
Prev Previous commit
Next Next commit
Fix for right macro
  • Loading branch information
mrsharm authored and github-actions committed Apr 3, 2024
commit 440ae97a087ccf335077d05f9fd5eeb058ee91c5
4 changes: 2 additions & 2 deletions src/coreclr/gc/unix/gcenv.unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ bool ReadMemoryValueFromFile(const char* filename, uint64_t* val)
return result;
}

#define UPDATE_CACHE_SIZE_AND_LEVEL(NEW_CACHE_SIZE, NEW_CACHE_LEVEL) if ((NEW_CACHE_SIZE != UINTMAX_MAX) && (NEW_CACHE_SIZE > cacheSize)) { cacheSize = NEW_CACHE_SIZE; cacheLevel = NEW_CACHE_LEVEL; }
#define UPDATE_CACHE_SIZE_AND_LEVEL(NEW_CACHE_SIZE, NEW_CACHE_LEVEL) if ((NEW_CACHE_SIZE != SIZE_MAX) && (NEW_CACHE_SIZE > cacheSize)) { cacheSize = NEW_CACHE_SIZE; cacheLevel = NEW_CACHE_LEVEL; }

static size_t GetLogicalProcessorCacheSizeFromOS()
{
Expand All @@ -818,7 +818,7 @@ static size_t GetLogicalProcessorCacheSizeFromOS()
#endif

#if defined(TARGET_LINUX) && !defined(HOST_ARM) && !defined(HOST_X86)
if (cacheSize == 0 || cacheSize == UINTMAX_MAX)
if (cacheSize == 0 || cacheSize == SIZE_MAX)
{
//
// Fallback to retrieve cachesize via /sys/.. if sysconf was not available
Expand Down