Skip to content
Merged
Prev Previous commit
Next Next commit
Comment clean
  • Loading branch information
mrsharm authored and github-actions committed Apr 3, 2024
commit cfffc5a4681368139d7ccc1fbe56b4d9c27a3c0b
3 changes: 2 additions & 1 deletion src/coreclr/gc/unix/gcenv.unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ static size_t GetLogicalProcessorCacheSizeFromOS()
{
path_to_size_file[index] = (char)(48 + i);

// Only accept reading cache sizes from size files if they are non-bogus values i.e., non-zero and != SIZE_MAX.
// Only accept reading cache sizes from size files if they are
// non-bogus values i.e., non-zero and != SIZE_MAX.
if (ReadMemoryValueFromFile(path_to_size_file, &size) && ((size != SIZE_MAX) || (size != 0)))
{
path_to_level_file[index] = (char)(48 + i);
Expand Down