Skip to content

Commit

Permalink
8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) d…
Browse files Browse the repository at this point in the history
…ue to 'SYS_get_mempolicy' was not declared

Reviewed-by: dholmes, mdoerr, mbaesken
  • Loading branch information
DamonFool committed Jun 3, 2021
1 parent 338dae4 commit fbaebd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotspot/os/linux/os_linux.cpp
Expand Up @@ -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;
}
Expand Down

3 comments on commit fbaebd4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@DamonFool
Copy link
Member Author

Choose a reason for hiding this comment

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

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on fbaebd4 Dec 31, 2021

Choose a reason for hiding this comment

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

@DamonFool the backport was successfully created on the branch DamonFool-backport-fbaebd42 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit fbaebd42 from the openjdk/jdk repository.

The commit being backported was authored by Jie Fu on 3 Jun 2021 and was reviewed by David Holmes, Martin Doerr and Matthias Baesken.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev DamonFool-backport-fbaebd42:DamonFool-backport-fbaebd42
$ git checkout DamonFool-backport-fbaebd42
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev DamonFool-backport-fbaebd42

Please sign in to comment.