Lines Matching defs:ids
263 static List<Long> asList(long... ids) {
264 final List<Long> list = new ArrayList<>(ids.length);
265 for (long id : ids) {
275 long[] ids = ManagementFactory.getThreadMXBean().findDeadlockedThreads();
277 ids = ids == null ? new long[0] : ids;
278 if (ids.length > 0) {
279 deadlocked.addAll(asList(ids));
281 if (ids.length == 1) {
282 throw new RuntimeException("Found 1 deadlocked thread: "+ids[0]);
283 } else if (ids.length > 0) {
284 ThreadInfo[] infos = ManagementFactory.getThreadMXBean().getThreadInfo(ids, Integer.MAX_VALUE);
285 System.err.println("Found "+ids.length+" deadlocked threads: ");
289 throw new RuntimeException("Found "+ids.length+" deadlocked threads");