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

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: