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

sun/nio/ch/TestMaxCachedBufferSize.java fails on 32bit system

XMLWordPrintable

      sun/nio/ch/TestMaxCachedBufferSize.java

      This test is newly introduced in JDK-8147468, it fails on 32bit system.

      Example failure log for Windows 32bit:

      #section:main
      ----------messages:(3/145)----------
      command: main TestMaxCachedBufferSize
      reason: User specified action: run main/othervm TestMaxCachedBufferSize
      elapsed time (seconds): 17.013
      ----------System.out:(12/785)----------
      Threads 4 | Iterations 10000 | MaxBufferSize 9223372036854775807

       Worker 3 | 5000 Iters | Small 4950 Large 50 | Direct 6 / 16053K
       Worker 2 | 5000 Iters | Small 4960 Large 40 | Direct 6 / 16053K
       Worker 0 | 5000 Iters | Small 4944 Large 56 | Direct 6 / 16053K
       Worker 1 | 5000 Iters | Small 4955 Large 45 | Direct 6 / 16053K
       Worker 3 | 10000 Iters | Small 9902 Large 98 | Direct 6 / 16104K
       Worker 0 | 10000 Iters | Small 9890 Large 110 | Direct 5 / 12042K
       Worker 1 | 10000 Iters | Small 9905 Large 95 | Direct 5 / 12042K
       Worker 2 | 10000 Iters | Small 9909 Large 91 | Direct 5 / 12042K

      Direct 5 / 12042K
      ----------System.err:(14/936)----------
      java.lang.Error: inconsistent direct buffer total count, expected = 4, found = 5
      at TestMaxCachedBufferSize.checkDirectBuffers(TestMaxCachedBufferSize.java:178)
      at TestMaxCachedBufferSize.main(TestMaxCachedBufferSize.java:248)
      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:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)

      JavaTest Message: Test threw exception: java.lang.Error: inconsistent direct buffer total count, expected = 4, found = 5

            tonyp Tony Printezis
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: