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

Bytecodes::result_type() for arraylength returns T_VOID instead of T_INT

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b03

      Backports

        Description

        Mostly this is harmless, because we have workarounds in the code like the following:

            case Bytecodes::_arraylength:
              // The return type of arraylength is wrong in the bytecodes table (T_VOID).
              stack->pop(1);
              stack->push(bci, T_INT);

        however, I did get a crash in compiler/c1/CanonicalizeArrayLength.java when running with -XX:+DeoptimizeALot -XX:+VerifyStack because of this problem.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hseigel Harold Seigel
                Reporter:
                dlong Dean Long
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: