RFR: 8289284: jdk.tracePinnedThreads output confusing when pinned due to native frame [v2]

Alan Bateman alanb at openjdk.org
Wed Jul 13 09:47:52 UTC 2022


On Tue, 12 Jul 2022 07:22:14 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> The change here removes the previous call to flush the `System.out`. I believe that's fine because the `PrintStream` here is backed by a `ByteArrayOutputStream` so the flush isn't necessary.

That's a good observation, it would be more robust for the test to create the PrintStream with "auto flush" or use an explicit flush. It works now because there is sufficient output to trigger flushing. So I'll change this to auto flush - thanks!

-------------

PR: https://git.openjdk.org/jdk/pull/9308


More information about the core-libs-dev mailing list