RFR: 8263908: Build fails due to initialize_static_field_for_dump defined but not used after JDK-8263771
Jie Fu
jiefu at openjdk.java.net
Sun Mar 21 23:10:46 UTC 2021
On Sun, 21 Mar 2021 19:51:06 GMT, Ioi Lam <iklam 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!
Thanks @iklam and @dholmes-ora for your review.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3108
More information about the hotspot-runtime-dev
mailing list