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

Jie Fu jiefu at openjdk.java.net
Mon Jun 7 08:27:02 UTC 2021


On Wed, 2 Jun 2021 23:08:55 GMT, Jie Fu <jiefu at openjdk.org> wrote:

>> Hi all,
>> 
>> Please review the patch which fixes the build failure on SUSE Linux Enterprise Server 11.4 (s390x).
>> 
>> @dholmes-ora had reminded me of this bug in [1].
>> But I missed the fact that ZGC is currently only built on x64 and aarch64.
>> And I'm sorry for this breakage.
>> 
>> The sys_call numbers of get_mempolicy for different platforms are just copied from the libnuma source code [2].
>> 
>> Thanks.
>> Best regards,
>> Jie
>> 
>> 
>> [1] https://github.com/openjdk/jdk/pull/4205#discussion_r639708293
>> [2] https://github.com/numactl/numactl/blob/master/syscall.c
>
> Jie Fu has updated the pull request incrementally with one additional commit since the last revision:
> 
>   #ifdef SYS_get_mempolicy in numa_syscall_check

> > > This is not the correct number. It is 269 on both s390 and s390x. (236 is `gettid` on s390x.)
> > 
> > 
> > If this is true, there should be a bug in the libnuma source code [1].
> > All my syscall numbers are copied from libnuma code.
> > Thanks.
> > [1] https://github.com/numactl/numactl/blob/master/syscall.c#L121
> 
> Thanks, I have filed an issue: [numactl/numactl#110](https://github.com/numactl/numactl/issues/110)

Thumbs up.

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

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


More information about the hotspot-runtime-dev mailing list