From b1a749bacce901a0cad8abbbfc0addb482a8adfa Mon Sep 17 00:00:00 2001 From: tromey Date: Tue, 2 Oct 2001 14:31:47 +0000 Subject: * gcj/javaprims.h: Rebuilt class list. * boehm.cc (_Jv_GCRegisterDisappearingLink): New function. (_Jv_GCCanReclaimSoftReference): New function. * include/jvm.h (_Jv_GCRegisterDisappearingLink): Declare. (_Jv_GCCanReclaimSoftReference): Declare. * java/lang/ref/Reference.java (referent): Now a RawData. (create): Renamed from `created'. Added object argument. (Reference): Don't initialize `referent' here. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added new file. * java/lang/ref/natReference.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45958 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/include/jvm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libjava/include') diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 957869ee581..259d669c650 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -166,6 +166,13 @@ void _Jv_RunGC (void); /* Disable and enable GC. */ void _Jv_DisableGC (void); void _Jv_EnableGC (void); +/* Register a disappearing link. This is a field F which should be + cleared when *F is found to be inaccessible. This is used in the + implementation of java.lang.ref.Reference. */ +void _Jv_GCRegisterDisappearingLink (jobject *objp); +/* Return true if OBJECT should be reclaimed. This is used to + implement soft references. */ +jboolean _Jv_GCCanReclaimSoftReference (jobject obj); /* Return approximation of total size of heap. */ long _Jv_GCTotalMemory (void); -- cgit v1.2.3