Skip to content

Commit

Permalink
Skip ENOSYS filter in numa init (dotnet#110082)
Browse files Browse the repository at this point in the history
* Check for EPERM in numa init

* Apply suggestions from code review
  • Loading branch information
am11 authored and mikelle-rogers committed Dec 4, 2024
1 parent f5e7b06 commit 922eb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/gc/unix/numasupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static int GetNodeNum(const char* path, bool firstOnly)
void NUMASupportInitialize()
{
#ifdef TARGET_LINUX
if (syscall(__NR_get_mempolicy, NULL, NULL, 0, 0, 0) < 0 && errno == ENOSYS)
if (syscall(__NR_get_mempolicy, NULL, NULL, 0, 0, 0) < 0)
return;

int highestNumaNode = GetNodeNum("/sys/devices/system/node", false);
Expand Down

0 comments on commit 922eb28

Please sign in to comment.