Clone
 

alexander yerenkow <yerenkow@gmail.com> in WildFlyCore

According to openJDK sources (both 6 & 7): http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/management/ThreadImpl.java#ThreadImpl.isThreadCpuTimeEnabled()

method (isThreadCpuTimeEnabled) mustn't called if both of isThreadCpuTimeSupported isCurrentThreadCpuTimeSupported returned false.

This commit makes this test safe on platforms which not supported Thread time feature.

was: 60f1feb771b5820b88e00aa8a78feacc32ffcdc7

According to openJDK sources (both 6 & 7): http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/management/ThreadImpl.java#ThreadImpl.isThreadCpuTimeEnabled()

method (isThreadCpuTimeEnabled) mustn't called if both of isThreadCpuTimeSupported isCurrentThreadCpuTimeSupported returned false.

This commit makes this test safe on platforms which not supported Thread time feature.

Third part of commit

was: 5f7c241a667753e768471d6e2eadbcbf74cf6dc2

According to openJDK sources (both 6 & 7): http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/management/ThreadImpl.java#ThreadImpl.isThreadCpuTimeEnabled()

method (isThreadCpuTimeEnabled) mustn't called if both of isThreadCpuTimeSupported isCurrentThreadCpuTimeSupported returned false.

This commit makes this test safe on platforms which not supported Thread time feature.

Second part of commit

was: e3d2e89dc8306fcaa6a7e9ba09bd3b682c28f8e6

According to openJDK sources (both 6 & 7): http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/management/ThreadImpl.java#ThreadImpl.isThreadCpuTimeEnabled()

method (isThreadCpuTimeEnabled) mustn't called if both of isThreadCpuTimeSupported isCurrentThreadCpuTimeSupported returned false.

This commit makes this test safe on platforms which not supported Thread time feature.

was: 31950c3bfc18b64ce56e89179e90ea955032bc1f