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

[8u]Incorrect assignment operator used in guarantee() in genCollectedHeap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc

      Description

      in file genCollectedHeap.cpp, at function

      void GenCollectedHeap::prepare_for_compaction() {
      - guarantee(_n_gens = 2, "Wrong number of generations");
      + guarantee(_n_gens == 2, "Wrong number of generations");
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lzang Lin Zang
              Reporter:
              lzang Lin Zang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: