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

JSR 292: Wrong VM options suggested in the warning message about method handles are disabled

XMLWordPrintable

    • x86
    • windows_xp

      A number of vm/instr/invokevirtual tests failed during JCK-runtime 7 testing with JCK 7 b134 x64 on Windows XP x64 system with the message:

      Java HotSpot(TM) 64-Bit Server VM warning: JSR 292 method handles are disabled in this JVM. Use -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles to enable.
      Failed with runtime exception: java.lang.UnsatisfiedLinkError: sun.dyn.MethodHandleNatives.getConstant(I)I

      I tryed to start the test wiht the suggested VM options but tests failed with the same message.
      I found out that the -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles options don't works since JDK 7 b123. More probably it is related with the fixes for CR 7001363 and CR 7001423 were integrated.

      Don't know should this options work or not. Any way it is wrong style to suggest anything that don't work. Need to either change the warning either make these options valid.

            twisti Christian Thalinger (Inactive)
            afomin Alexander Fomin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: