@Test @Category(Java11.class) public void testCPUCount() { assertTrue(ProcessorInfo.availableProcessors() <= Runtime.getRuntime().availableProcessors()); }
public static int availableProcessors() { if (System.getSecurityManager() != null) { return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.valueOf(org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors()).intValue()); } return org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors(); }
ProcessorInfo { public static int availableProcessors() { if (System.getSecurityManager() != null) { return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.valueOf(org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors()).intValue()); } return org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors(); } }
ProcessorInfo { public static int availableProcessors() { if (System.getSecurityManager() != null) { return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.valueOf(org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors()).intValue()); } return org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors(); } private  ProcessorInfo(); }
ProcessorInfo { public static int availableProcessors() { if (System.getSecurityManager() != null) { return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.valueOf(org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors()).intValue()); } return org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors(); } private  ProcessorInfo(); static int availableProcessors(); static void main(String args[]); }
ProcessorInfo { public static int availableProcessors() { if (System.getSecurityManager() != null) { return AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.valueOf(org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors()).intValue()); } return org.infinispan.commons.jdkspecific.ProcessorInfo.availableProcessors(); } private  ProcessorInfo(); static int availableProcessors(); static void main(String args[]);  }