Improve the debug info when the output is truncated

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 14
    • Affects Version/s: 14
    • Component/s: hotspot
    • b15

      ## 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.

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

              Created:
              Updated:
              Resolved: