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

Wrong assert in phase_enum_2_phase_string() in referenceProcessorPhaseTimes.cpp

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b22

      Backports

        Description

        in src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp:

        static const char* PhaseNames[ReferenceProcessor::RefPhaseMax] = {

        static const char* phase_enum_2_phase_string(ReferenceProcessor::RefProcPhases phase) {
          assert(phase >= ReferenceProcessor::RefPhase1 && phase <= ReferenceProcessor::RefPhaseMax,
                 "Invalid reference processing phase (%d)", phase);
          return PhaseNames[phase];
        }```

        Note the `<= ReferenceProcessor::RefPhaseMax`. Probably harmless, but parfait complains

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  tschatzl Thomas Schatzl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: