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

java/util/Base64/TestEncodingDecodingLength.java failing

    Details

    • Subcomponent:
    • Introduced In Build:
      b06
    • Introduced In Version:
      13
    • Resolved In Build:
      b07
    • Verification:
      Verified

      Description

      The test added by JDK-8210583 always fails:

      java.lang.OutOfMemoryError: Requested array size exceeds VM limit
      at TestEncodingDecodingLength.main(TestEncodingDecodingLength.java:41)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:835)


      40: int size = Integer.MAX_VALUE - 2;
      41: byte[] inputBytes = new byte[size];

      Unclear whether this is platform/configuration specific as a standalone test on linux-x64 can execute the above okay.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nishjain Nishit Jain
                Reporter:
                dholmes David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: