[lworld] c1_LIRGenerator.cpp(2313): warning C4267: 'argument': conversion from 'size_t' to 'int'

XMLWordPrintable

    • generic
    • windows

      It seems the recent measures to prevent overflows introduced some narrowing conversions that cause a build failure on Windows.

      [2025-11-24T10:18:28,449Z] * For target hotspot_variant-server_libjvm_objs_c1_LIRGenerator.obj:
      [2025-11-24T10:18:28,449Z] c1_LIRGenerator.cpp
      [2025-11-24T10:18:28,449Z] c:\src\hotspot\share\c1\c1_LIRGenerator.cpp(2313): error C2220: the following warning is treated as an error
      [2025-11-24T10:18:28,449Z] c:\src\hotspot\share\c1\c1_LIRGenerator.cpp(2313): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      [2025-11-24T10:18:28,449Z] ... (rest of output omitted)
      [2025-11-24T10:18:28,449Z] * For target hotspot_variant-server_libjvm_objs_static_c1_LIRGenerator.obj:
      [2025-11-24T10:18:28,449Z] c1_LIRGenerator.cpp
      [2025-11-24T10:18:28,449Z] c:\src\hotspot\share\c1\c1_LIRGenerator.cpp(2313): error C2220: the following warning is treated as an error
      [2025-11-24T10:18:28,449Z] c:\src\hotspot\share\c1\c1_LIRGenerator.cpp(2313): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
      [2025-11-24T10:18:28,449Z] ... (rest of output omitted)
      [2025-11-24T10:18:28,449Z]
      [2025-11-24T10:18:28,449Z] === End of repeated output ===

            Assignee:
            Paul Hübner
            Reporter:
            Paul Hübner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: