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

Casting issue creates a warning when building shenandoah

    XMLWordPrintable

    Details

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

      Description

      Building the jdk with warnings as errors results in this stacktrace

      shenandoahHeapRegion.cpp
      .../jdk/src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp(687): error C2220: warning treated as error - no 'object' file generated
      .../jdk/src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp(687): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data
         ... (rest of output omitted)
      * For target hotspot_variant-server_libjvm_objs_shenandoahJfrSupport.obj:
      shenandoahJfrSupport.cpp
      .../jdk/src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.cpp(60): error C2220: warning treated as error - no 'object' file generated
      .../jdk/src/hotspot/share/gc/shenandoah/shenandoahJfrSupport.cpp(60): warning C4267: 'argument': conversion from 'size_t' to 'unsigned int', possible loss of data
         ... (rest of output omitted)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kdobson Ken Dobson
              Reporter:
              kdobson Ken Dobson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: