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

building Minimal VM fails with error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b10
    • Verification:
      Verified

      Description

      On Linux x86, ARM, AARCH64:

      === Output from failing command(s) repeated here ===
      * For target hotspot_variant-minimal_libjvm_objs_weakProcessorPhases.o:
      /home/bellsoft/jdk/src/hotspot/share/gc/shared/weakProcessorPhases.cpp: In static member function ‘static bool WeakProcessorPhases::is_serial(WeakProcessorPhases::Phase)’:
      /home/bellsoft/jdk/src/hotspot/share/gc/shared/weakProcessorPhases.cpp:62:46: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
         return (index(phase) - serial_phase_start) < serial_phase_count;
                                                    ^
      cc1plus: all warnings being treated as errors

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              avoitylov Aleksei Voitylov
              Reporter:
              avoitylov Aleksei Voitylov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: