RFR: 8283643: [AIX, testbug] MachCodeFramesInErrorFile test fails to find 'Native frames' text [v5]
Tyler Steele
duke at openjdk.java.net
Wed Apr 20 17:47:36 UTC 2022
On Wed, 20 Apr 2022 16:05:13 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
>> OK!
>> This was an odd one; I was getting errors that complained about the length of the message in the exception. It looked like 2^16 was the max number of characters that could be included in a RuntimeException. I haven't found the upper limit documented anywhere, but I would get unexpected failures with it included in the message. The text prints to stdout, so I didn't suffer by removing it.
>
> Maybe just print the last line?
I did a bit more testing to jog my memory (it has been a little while since I made these changes). You were right to be concerned about the removal; the error text is not printed automatically.
To avoid having an exception message be too long, I printed the String to std[out|err] using the usual System.[out|err].println methods.
Good catch :slightly_smiling_face:
-------------
PR: https://git.openjdk.java.net/jdk/pull/8094
More information about the hotspot-dev
mailing list