jmx-dev RFR: 8004179: test/java/lang/management/ThreadMXBean/SynchronizerLockingThread.java doesn't clean up

Alan Bateman Alan.Bateman at oracle.com
Tue Sep 3 04:54:50 PDT 2013


On 03/09/2013 12:26, Jaroslav Bachorik wrote:
> :
> Hm, actually there are 6 other tests using the LockingThread class which
> leaves the threads running. So all those tests should be made running in
> "othervm" mode.
>
> Does increasing the number of tests running in "othervm" mode have any
> negative consequences?
The big advantage of agentvm mode is that it doesn't need to start a new 
VM for each test so you save on the startup. The advantage is very 
apparent with short running tests, barely noticeable with long running 
tests. It's okay to have tests running in othervm mode (reliability 
trumps performance), we just need to be careful not to use it to fix 
every issue, otherwise the overall test execution time will creep up.

-Alan.


More information about the serviceability-dev mailing list