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

No optimistic code generated running some arithmetic operations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      9
    • CPU:
      generic
    • OS:
      generic

      Description

      Running eval(a / b); on global variables a=2 and b=2, there is no optimistic code generation.
      --print-code output:
       
      invokedynamic dyn:getProp|getElem|getMethod:a(Object;)Object; [static 'bootstrap' args=0x5]
      aload 2
      invokedynamic dyn:getProp|getElem|getMethod:b(Object;)Object; [static 'bootstrap' args=0x5]

        Attachments

          Activity

            People

            Assignee:
            mnunez Matherey Nunez (Inactive)
            Reporter:
            mnunez Matherey Nunez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: