RFR: 8263908: Build fails due to initialize_static_field_for_dump defined but not used after JDK-8263771

Ioi Lam iklam at openjdk.java.net
Sun Mar 21 19:53:48 UTC 2021


On Sun, 21 Mar 2021 13:44:19 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all,
> 
> Build failures were observed when cds or g1gc was disabled due to initialize_static_field_for_dump/initialize_static_string_field_for_dump defined but not used.
> 
> This can be reproduced by:
>   - build without cds,  or
>   - build without g1gc, or
>   - build on x86_32
> 
> This is because INCLUDE_CDS_JAVA_HEAP will be false for these cases [1].
> Let's fix it.
> 
> Thanks.
> Best regards,
> Jie
> 
> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/utilities/macros.hpp#L612

Looks good and trivial. Thanks!

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

Marked as reviewed by iklam (Reviewer).

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


More information about the hotspot-runtime-dev mailing list