Skip to content
Browse files
8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) d…
…ue to 'SYS_get_mempolicy' was not declared

Backport-of: fbaebd4
  • Loading branch information
DamonFool authored and John Jiang committed Dec 31, 2021
1 parent d356b89 commit 0096d51b05e2bdf46a508a09576359485efc2cff
Showing 1 changed file with 2 additions and 0 deletions.
@@ -3232,10 +3232,12 @@ static bool numa_syscall_check() {
// Especially in dockers, get_mempolicy is not allowed with the default configuration. So it's necessary
// to check whether the syscalls are available. Currently, only get_mempolicy is checked since checking
// others like mbind would cause unexpected side effects.
#ifdef SYS_get_mempolicy
int dummy = 0;
if (syscall(SYS_get_mempolicy, &dummy, NULL, 0, (void*)&dummy, 3) == -1) {
return false;

return true;

1 comment on commit 0096d51

Copy link

@openjdk-notifier openjdk-notifier bot commented on 0096d51 Dec 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.