| 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 |
|
|---|
| 7 | This software is copyrighted work licensed under the terms of the
|
|---|
| 8 | Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|---|
| 9 | details. */
|
|---|
| 10 |
|
|---|
| 11 | package gnu.gcj.runtime;
|
|---|
| 12 |
|
|---|
| 13 | /**
|
|---|
| 14 | * @author Tom Tromey <[email protected]>
|
|---|
| 15 | * @date October 3, 2001
|
|---|
| 16 | */
|
|---|
| 17 | public 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
|
|---|
|
|---|