mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-13 15:09:39 +00:00
8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) due to 'SYS_get_mempolicy' was not declared
Reviewed-by: dholmes, mdoerr, mbaesken
This commit is contained in:
parent
338dae4d36
commit
fbaebd4243
@ -2968,10 +2968,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;
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user