Skip to content

Commit 0096d51

Browse files
DamonFoolJohn Jiang
authored and
John Jiang
committed
8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) due to 'SYS_get_mempolicy' was not declared
Backport-of: fbaebd4
1 parent d356b89 commit 0096d51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/os/linux/os_linux.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,10 +3232,12 @@ static bool numa_syscall_check() {
32323232
// Especially in dockers, get_mempolicy is not allowed with the default configuration. So it's necessary
32333233
// to check whether the syscalls are available. Currently, only get_mempolicy is checked since checking
32343234
// others like mbind would cause unexpected side effects.
3235+
#ifdef SYS_get_mempolicy
32353236
int dummy = 0;
32363237
if (syscall(SYS_get_mempolicy, &dummy, NULL, 0, (void*)&dummy, 3) == -1) {
32373238
return false;
32383239
}
3240+
#endif
32393241

32403242
return true;
32413243
}

0 commit comments

Comments
 (0)