System.out versus stdout output order

David Holmes david.holmes at oracle.com
Fri Jul 6 02:02:12 UTC 2018


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