Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903019

jcstress: Very long exceptions break the VM data streams

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Force a StackOverflowException in a test, and observe:

         VM error stream:
           Exception in thread "main" java.io.UTFDataFormatException: encoded string (java.lan...va:49) too long: 167966 bytes
               at java.base/java.io.DataOutputStream.writeUTF(DataOutputStream.java:368)
               at java.base/java.io.DataOutputStream.writeUTF(DataOutputStream.java:332)
               at org.openjdk.jcstress.infra.collectors.TestResult.write(TestResult.java:95)
               at org.openjdk.jcstress.link.BinaryLinkClient.doneResult(BinaryLinkClient.java:73)
               at org.openjdk.jcstress.ForkedMain.main(ForkedMain.java:93)

      There is a limitation in DataOutputStream that does not allow us to write Strings larger than 64K.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: