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 13:50:00 UTC 2021


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

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

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

Changes: https://git.openjdk.java.net/jdk/pull/3108/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3108&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8263908
  Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3108.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3108/head:pull/3108

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


More information about the hotspot-runtime-dev mailing list