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

Casting issue creates a warning when building shenandoah

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc

      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)

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

              Created:
              Updated:
              Resolved: