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

Type inconsistency in LIRGenerator::atomic_cmpxchg(..)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 11, 12
    • hotspot
    • b15
    • x86
    • generic

      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.

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

              Created:
              Updated:
              Resolved: