System.out versus stdout output order

Roger Riggs Roger.Riggs at
Fri Jul 6 13:44:37 UTC 2018

Hi David,

stdout and system.out are buffered, so you might need to look at when/if 
flush is called.

$.02, Roger

On 7/5/2018 10:02 PM, David Holmes wrote:
> I have a Java test that calls a native method with uses printf (in a 
> second thread which is started and joined by the original method), and 
> then the subsequent Java code uses System.out. What I see in the .jtr 
> file is that the C printf output always comes after the System.out 
> output, even though the code in question had to be executed before it. 
> Is this just some quirk of how jtreg collects process output for logging?
> Thanks,
> David

More information about the jtreg-use mailing list