RFR for JDK-7027502: Test failures in demo/jvmti/hprof testcases, need to be othervm

Alan Bateman Alan.Bateman at oracle.com
Thu Jan 9 12:14:44 UTC 2014

On 09/01/2014 11:27, David Holmes wrote:
> Okay I think I get it now. Both MonitorTest and WaitersTest use the 
> Context class, so if both tests run in the same VM the second test 
> will see the static total_turns_taken and "turn" in the state they 
> were left from the first test - hence the second test will always 
> fail. The bug report suggests making the tests othervm to avoid the 
> problem but instead you have changed from using static state to 
> instance state so that there is no interference. 
I haven't been following this one closely but I thought that jtreg 
created a class loader for each test (irrespective of mode) so I 
wouldn't expect statics to be an issue.


More information about the core-libs-dev mailing list