mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue