Casting issue creates a warning when building shenandoah

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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)

            Assignee:
            Ken Dobson (Inactive)
            Reporter:
            Ken Dobson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: