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

missing-field-initializer warnings/errors while building vmTestBase

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      JDK-8209611 seems to cause many missing-field-initializer warning-errors like below:

      I am using gcc 4.8.5

      Compiling libvmdeath001.cpp (for libvmdeath001.so)
      In file included from /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/unit/libHeap.cpp:29:0:
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::heap_iteration_callback' [-Werror=missing-field-initializers]
       jvmtiHeapCallbacks g_wrongHeapCallbacks = {};
                                                  ^
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::heap_reference_callback' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::primitive_field_callback' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::array_primitive_value_callback' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::string_primitive_value_callback' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved5' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved6' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved7' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved8' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved9' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved10' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved11' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved12' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved13' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved14' [-Werror=missing-field-initializers]
      /home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44: error: missing initializer for member '_jvmtiHeapCallbacks::reserved15' [-Werror=missing-field-initializers]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rkennke Roman Kennke
              Reporter:
              rkennke Roman Kennke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: