Skip to content

Commit fbaebd4

Browse files
committed
8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) due to 'SYS_get_mempolicy' was not declared
Reviewed-by: dholmes, mdoerr, mbaesken
1 parent 338dae4 commit fbaebd4

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
@@ -2968,10 +2968,12 @@ static bool numa_syscall_check() {
29682968
// Especially in dockers, get_mempolicy is not allowed with the default configuration. So it's necessary
29692969
// to check whether the syscalls are available. Currently, only get_mempolicy is checked since checking
29702970
// others like mbind would cause unexpected side effects.
2971+
#ifdef SYS_get_mempolicy
29712972
int dummy = 0;
29722973
if (syscall(SYS_get_mempolicy, &dummy, NULL, 0, (void*)&dummy, 3) == -1) {
29732974
return false;
29742975
}
2976+
#endif
29752977

29762978
return true;
29772979
}

0 commit comments

Comments
 (0)