Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263908

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      Reproduce:
       - Build without cds or g1gc; or on x86_32

      Symptom
      ```
      * For target hotspot_variant-server_libjvm_objs_javaClasses.o:
      /home/jdk/src/hotspot/share/classfile/javaClasses.cpp:903:13: error: 'void initialize_static_field_for_dump(fieldDescriptor*, Handle)' defined but not used [-Werror=unused-function]
       static void initialize_static_field_for_dump(fieldDescriptor* fd, Handle mirror) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      * For target hotspot_variant-server_libjvm_objs_javaClasses.o:
      ./src/hotspot/share/classfile/javaClasses.cpp:844:13: error: 'void initialize_static_string_field_for_dump(fieldDescriptor*, Handle)' defined but not used [-Werror=unused-function]
       static void initialize_static_string_field_for_dump(fieldDescriptor* fd, Handle mirror) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: