Top


定義場所(file name)

jdk/src/share/classes/java/lang/ref/Reference.java

本体部(body)

  {- -------------------------------------------
  (1) 新しい ReferenceHandler クラスのインスタンスを生成し. Thread.start() で実行を開始させる.
      ---------------------------------------- -}

        static {
            ThreadGroup tg = Thread.currentThread().getThreadGroup();
            for (ThreadGroup tgn = tg;
                 tgn != null;
                 tg = tgn, tgn = tg.getParent());
            Thread handler = new ReferenceHandler(tg, "Reference Handler");
            /* If there were a special system-only priority greater than
             * MAX_PRIORITY, it would be used here
             */
            handler.setPriority(Thread.MAX_PRIORITY);
            handler.setDaemon(true);
            handler.start();
        }

This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.