Skip to content

Commit 6835190

Browse files
am11pull[bot]
authored andcommitted
Skip ENOSYS filter in numa init (#110082)
* Check for EPERM in numa init * Apply suggestions from code review
1 parent ce4c11e commit 6835190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/gc/unix/numasupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static int GetNodeNum(const char* path, bool firstOnly)
5454
void NUMASupportInitialize()
5555
{
5656
#ifdef TARGET_LINUX
57-
if (syscall(__NR_get_mempolicy, NULL, NULL, 0, 0, 0) < 0 && errno == ENOSYS)
57+
if (syscall(__NR_get_mempolicy, NULL, NULL, 0, 0, 0) < 0)
5858
return;
5959

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

0 commit comments

Comments
 (0)