swoop

JavaDoc Exit

Dec 12th, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1.      /**
  2.      * This method is called by the system to give a Thread
  3.      * a chance to clean up before it actually exits.
  4.      */
  5.     private void exit() {
  6.         if (group != null) {
  7.             group.threadTerminated(this);
  8.             group = null;
  9.         }
  10.         /* Aggressively null out all reference fields: see bug 4006245 */
  11.         target = null;
  12.         /* Speed the release of some of these resources */
  13.         threadLocals = null;
  14.         inheritableThreadLocals = null;
  15.         inheritedAccessControlContext = null;
  16.         blocker = null;
  17.         uncaughtExceptionHandler = null;
  18.     }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment