source: trunk/src/gcc/libjava/gnu/gcj/runtime/FinalizerThread.java@ 1519

Last change on this file since 1519 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1// FinalizerThread.java -- Thread in which finalizers are run.
2
3/* Copyright (C) 2001 Free Software Foundation
4
5 This file is part of libgcj.
6
7This software is copyrighted work licensed under the terms of the
8Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9details. */
10
11package gnu.gcj.runtime;
12
13/**
14 * @author Tom Tromey <[email protected]>
15 * @date October 3, 2001
16 */
17public final class FinalizerThread extends Thread
18{
19 // Finalizers must be run in a thread with no Java-visible locks
20 // held. This qualifies because we don't make the lock visible.
21 private static final Object lock = new Object ();
22
23 // This is true if the finalizer thread started successfully. It