summaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-29 21:13:55 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-29 21:13:55 +0000
commitf224753cb06317eaa457fc339ad9b10159371387 (patch)
tree18171d36bf9de87984585bd1c888f405512a3e54 /libjava/include
parent3c00589d322cfb7ff80c9661342eb48324d35101 (diff)
downloadgcc-f224753cb06317eaa457fc339ad9b10159371387.tar.gz
PR libgcj/10596:
* include/jvm.h (_Jv_FinalizeString, _Jv_RegisterStringFinalizer): Declare. * java/lang/natString.cc (_Jv_FinalizeString): Renamed from unintern. (intern): Updated. (_Jv_NewStringUtf8Const): Likewise. * java/lang/ref/natReference.cc (finalize_referred_to_object): Add special case when finalizing a String. (in_hash): New function. (_Jv_RegisterStringFinalizer): Likewise. (maybe_add_finalize): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71915 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/jvm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index a114e550a15..ed6c61ec50d 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -290,6 +290,12 @@ void _Jv_GCRegisterDisappearingLink (jobject *objp);
implement soft references. */
jboolean _Jv_GCCanReclaimSoftReference (jobject obj);
+/* Register a finalizer for a String object. This is only used by
+ the intern() implementation. */
+void _Jv_RegisterStringFinalizer (jobject str);
+/* This is called to actually finalize a possibly-intern()d String. */
+void _Jv_FinalizeString (jobject str);
+
/* Return approximation of total size of heap. */
long _Jv_GCTotalMemory (void);
/* Return approximation of total free memory. */