summaryrefslogtreecommitdiff
path: root/libjava/boehm.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-02 14:31:47 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-02 14:31:47 +0000
commitb1a749bacce901a0cad8abbbfc0addb482a8adfa (patch)
tree64d840b2a9f59c9bf181680bd6e70172a0dc5e86 /libjava/boehm.cc
parentc32d045231e086867f117700fbe01dbbbce3ea14 (diff)
downloadgcc-b1a749bacce901a0cad8abbbfc0addb482a8adfa.tar.gz
* 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
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r--libjava/boehm.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc
index 27e332b259e..19b58bae908 100644
--- a/libjava/boehm.cc
+++ b/libjava/boehm.cc
@@ -543,6 +543,19 @@ _Jv_AllocTraceOne (jsize size /* includes vtable slot */)
#endif /* JV_HASH_SYNCHRONIZATION */
+void
+_Jv_GCRegisterDisappearingLink (jobject *objp)
+{
+ GC_general_register_disappearing_link ((GC_PTR *) objp, (GC_PTR) *objp);
+}
+
+jboolean
+_Jv_GCCanReclaimSoftReference (jobject obj)
+{
+ // For now, always reclaim soft references. FIXME.
+ return true;
+}
+
#if 0
void
_Jv_InitGC (void)