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

JSR 292 VM requires -XX:+EnableInvokeDynamic to work with MethodHandles

XMLWordPrintable

    • generic
    • generic

      Either VM or jtreg tests need to be fixed. Starting from hs20 b06 (jdk7 b125), the tests

      java/dyn/InvokeGenericTest.java
      java/dyn/JavaDocExamplesTest.java
      java/dyn/MethodHandlesTest.java

      require -XX:+EnableInvokeDynamic instead of -XX:+EnableMethodHandles:

      reason: User specified action: run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles test.java.dyn.InvokeGenericTest
      elapsed time (seconds): 0.561
      ----------System.out:(1/157)----------
      Java HotSpot(TM) Client VM warning: JSR 292 invokedynamic is disabled in this JVM. Use -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic to enable.
      ----------System.err:(23/1295)----------
      java.lang.InternalError
      at sun.dyn.MethodHandleNatives.init(Native Method)
      at sun.dyn.DirectMethodHandle.<init>(DirectMethodHandle.java:48)
      at sun.dyn.MethodHandleImpl.findMethod(MethodHandleImpl.java:183)
      at java.dyn.MethodHandles$Lookup.findStatic(MethodHandles.java:392)
      at sun.dyn.MethodHandleImpl.<clinit>(MethodHandleImpl.java:1207)
      ...

            Unassigned Unassigned
            kshiroko Kirill Shirokov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: