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

No optimistic code generated running some arithmetic operations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u40
    • 8u40
    • core-libs
    • 9
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: