Searched refs:shutdownHooks (Results 1 – 1 of 1) sorted by relevance
90 private List<Thread> shutdownHooks = new ArrayList<Thread>(); field in Runtime264 synchronized (shutdownHooks) { in exit()266 hooks = new Thread[shutdownHooks.size()]; in exit()267 shutdownHooks.toArray(hooks); in exit()570 synchronized (shutdownHooks) { in addShutdownHook()571 if (shutdownHooks.contains(hook)) { in addShutdownHook()575 shutdownHooks.add(hook); in addShutdownHook()599 synchronized (shutdownHooks) { in removeShutdownHook()600 return shutdownHooks.remove(hook); in removeShutdownHook()