RFR: 8268014: Build failure on SUSE Linux Enterprise Server 11.4 (s390x) due to 'SYS_get_mempolicy' was not declared [v4]

Florian Weimer fweimer at openjdk.java.net
Wed Jun 2 13:56:37 UTC 2021


On Wed, 2 Jun 2021 13:13:33 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>  `#define SYS_get_mempolicy 236`

This is not the correct number. It is 269 on both s390 and s390x. (236 is `gettid` on s390x.)

The kernel definitions can be a bit difficult to navigate. The glibc sources contain generated lists of system call numbers in the `arch-syscall.h` files (under the `sysdeps/unix/sysv/linux` directory tree), and these numbers are regularly verified on all supported architectures against published kernel sources (using a cross-compiler, so not just some script-based heuristics).

-------------

PR: https://git.openjdk.java.net/jdk/pull/4277


More information about the hotspot-runtime-dev mailing list