aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-10-02 14:31:47 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-10-02 14:31:47 +0000
commit2b3d3db68da14b782f8d69ccebc18af04c61ce15 (patch)
tree64d840b2a9f59c9bf181680bd6e70172a0dc5e86 /libjava/include
parentcacbc3505bac280b8db4f7d08a4a4b44ab69c0be (diff)
downloadgcc-2b3d3db68da14b782f8d69ccebc18af04c61ce15.zip
gcc-2b3d3db68da14b782f8d69ccebc18af04c61ce15.tar.gz
gcc-2b3d3db68da14b782f8d69ccebc18af04c61ce15.tar.bz2
javaprims.h: Rebuilt class list.
* 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. From-SVN: r45958
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/jvm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 957869e..259d669 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);