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

Improve the debug info when the output is truncated

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • 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.

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

              Created:
              Updated:
              Resolved: