jcstress: Very long exceptions break the VM data streams

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: