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

Improve the debug info when the output is truncated

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      ## Background

      When I was running a jtreg test with
      ------------------------------------
      make test TEST="test/jdk/java/lang/invoke/TestCatchExceptionWithVarargs.java" CONF=fast
      ------------------------------------

      I got some VM warnings which just told me to increase O_BUFLEN in ostream.hpp.
      ------------------------------------
      Running test 'jtreg:test/jdk/java/lang/invoke/TestCatchExceptionWithVarargs.java'
      [2019-09-14 16:07:55,752] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,758] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,763] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,769] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,777] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,785] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,796] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,803] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,808] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      [2019-09-14 16:07:55,815] Agent[1]: stderr: OpenJDK 64-Bit Server VM warning: increase O_BUFLEN in ostream.hpp -- output truncated
      ...
      ------------------------------------

      But the debug info didn't tell us the proper value of O_BUFLEN needed by the output.

        Attachments

          Activity

            People

            • Assignee:
              jiefu Jie Fu
              Reporter:
              jiefu Jie Fu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: