f.setAccessible(true);
dump = checkThreadPool((ThreadPoolExecutor) f.get(tp), "Internal") || dump;
} catch (Exception e) {
log.error("Failed to get internal thread pool");
}
TimeScheduler timer = tp.getTimer();
try {
Field f = timer.getClass().getDeclaredField("pool");
f.setAccessible(true);
dump = checkThreadPool((ThreadPoolExecutor) f.get(timer), "Timer") || dump;
} catch (Exception e) {
log.error("Failed to get timer thread pool: " + timer.getClass());
}
if (dump) Utils.threadDump();
}