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

invokedynamic call sites deoptimize instead of executing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs19
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Due to a bug in ciTypeFlow, invokedynamic call sites deoptimize unexpectedly.

        The problem was observed by a customer:

        http://mail.openjdk.java.net/pipermail/mlvm-dev/2010-June/001767.html

        Eric Bodden bodden at st.informatik.tu-darmstadt.de
        Fri Jun 4 01:43:19 PDT 2010

        I did some simple micro-benchmarking with the current implementation
        of invokedynamic. In the attached test class, I call a method
        "greeter" 100,000,000 times using invokedynamic and then using
        reflection. Reflection only takes about 1338ms, while invokedynamic
        takes about 12099. (This was taken on OSX 10.6, with build
        "1.7.0-internal-stephen_2010_05_28_19_48-b00"). By the way
        invokedynamic works, I had expected it to be at least as fast as a
        reflective call.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jrose John Rose
                  Reporter:
                  jrose John Rose
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: