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

No optimistic code generated running some arithmetic operations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u40
    • core-libs
    • 9
    • generic
    • generic

      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]

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

              Created:
              Updated:
              Resolved: