diff options
author | Tom Tromey <tromey@redhat.com> | 2001-10-10 22:25:43 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-10-10 22:25:43 +0000 |
commit | eeedeb5a179c0c4a378bc14d5bebfcfc4dfcf354 (patch) | |
tree | 6facc0ca8bcfaba4b6989fa00c24d85c2c5d0aa0 /libjava/include | |
parent | a8fee9482f156705563bc70af58254b3d8a1292d (diff) | |
download | gcc-eeedeb5a179c0c4a378bc14d5bebfcfc4dfcf354.tar.gz |
natFinalizerThread.cc: New file.
* gnu/gcj/runtime/natFinalizerThread.cc: New file.
* java/lang/natRuntime.cc: Include FinalizerThread.h.
(runFinalization): Call finalizerReady.
* nogc.cc (_Jv_GCInitializeFinalizers): New function.
* prims.cc: Include VirtualMachineError.h, FinalizerThread.h.
(_Jv_CreateJavaVM): Start the finalizer thread.
* no-threads.cc: Include InternalError.h.
(_Jv_ThreadStart): Throw InternalError.
(_Jv_ThreadInitData): Don't throw error if this is not the first
thread.
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added
FinalizerThread.java.
(nat_source_files): Added natFinalizerThread.cc.
* include/jvm.h (_Jv_GCInitializeFinalizers): Declare.
* boehm.cc (_Jv_GCInitializeFinalizers): New function.
* gnu/gcj/runtime/FirstThread.java (run): Start finalizer thread.
* gnu/gcj/runtime/FinalizerThread.java: New file.
From-SVN: r46163
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/jvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 259d669c650..b4fceac4482 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -157,6 +157,9 @@ void * _Jv_BuildGCDescr(jclass); memory. */ void *_Jv_MallocUnchecked (jsize size) __attribute__((__malloc__)); +/* Initialize finalizers. The argument is a function to be called + when a finalizer is ready to be run. */ +void _Jv_GCInitializeFinalizers (void (*notifier) (void)); /* Run finalizers for objects ready to be finalized.. */ void _Jv_RunFinalizers (void); /* Run all finalizers. Should be called only before exit. */ |