[jdk16] RFR: 8259560: Zero m68k: "static assertion failed: align" after JDK-8252049 [v2]

David Holmes dholmes at openjdk.java.net
Tue Jan 12 04:52:01 UTC 2021


On Mon, 11 Jan 2021 16:00:18 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Debian folks report that Zero m68k (and seems only that arch) fails the static assert added by JDK-8252049. It affects at least JDK 16, but would affect more releases once JDK-8252049 is backported.
>> 
>> /<<PKGBUILDDIR>>/src/hotspot/share/oops/methodData.hpp: In constructor 'MethodData::CompilerCounters::CompilerCounters()':
>> /<<PKGBUILDDIR>>/src/hotspot/share/oops/methodData.hpp:1987:55: error: static assertion failed: align
>>  1987 | static_assert(sizeof(_trap_hist) % HeapWordSize == 0, "align");
>>       |
>> 
>> I tried to massage the code so that `oops/methodData.hpp` is not touched when Zero is built (since Zero does not use compilers and related infra), but there are enough transitive dependencies to `oops/methodData.hpp` to make it quite messy. So instead I would just special-case it in place.
>
> Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Added another place where the build fails

I prefer NOT_ZERO macro usage over ifdefs, but don't insist.

Thanks,
David

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

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.java.net/jdk16/pull/102


More information about the hotspot-dev mailing list