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

Bit set computation in MHs.findFirstDupOrDrop/findFirstDrop is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Backports

        Description

        new tests for LFC (JDK-8057719) fail due to:
        Tested LF caching feature with MethodHandles.permuteArguments method.
        java.lang.ArrayIndexOutOfBoundsException: -1
                at java.lang.invoke.MethodHandles.permuteArguments(MethodHandles.java:2119)
                at TestMethods$7.getMH(TestMethods.java:271)
                at TestMethods.getTestCaseMH(TestMethods.java:541)
                at LFSingleThreadCachingTest.doTest(LFSingleThreadCachingTest.java:62)
                at LambdaFormTestCase.runTests(LambdaFormTestCase.java:98)
                at LFSingleThreadCachingTest.main(LFSingleThreadCachingTest.java:76)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
                at java.lang.Thread.run(Thread.java:745)
        FAILED

        test:
        java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java

        options to reproduce:
        -Dseed=9052482610753944656
        -DtestLimit=2000
        -Djava.lang.invoke.MethodHandle.USE_LF_EDITOR=true

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                iignatyev Igor Ignatyev (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: