Lines Matching refs:hooks
48 // The system shutdown hooks are registered with a predefined slot.
49 // The list of shutdown hooks is as follows:
51 // (1) Application hooks
54 private static final Runnable[] hooks = new Runnable[MAX_SYSTEM_HOOKS];
56 // the index of the currently running shutdown hook to the hooks array
81 * hooks.
96 if (hooks[slot] != null)
107 hooks[slot] = hook;
111 /* Run all registered shutdown hooks
121 hook = hooks[i];
152 * run the hooks and then halt. Instead we need to keep track of whether
153 * we're running hooks or finalizers. In the latter case a finalizer could