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

Type inconsistency in LIRGenerator::atomic_cmpxchg(..)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      x86
    • OS:
      generic

      Description

      In c1_LIRGenerator_x86.cpp, towards the end of LIRGenerator::atomic_cmpxchg(..) there's this cmove:

        __ cmove(lir_cond_equal, LIR_OprFact::intConst(1), LIR_OprFact::intConst(0),
                 result, type);

      which should use T_INT instead of the passed in type.

        Attachments

          Activity

            People

            Assignee:
            rkennke Roman Kennke
            Reporter:
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: