summaryrefslogtreecommitdiffstats
path: root/libjava
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-12 21:17:00 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-12 21:17:00 +0000
commitfacad895fdfb0b731d1f160c65c7da8cc6dd741e (patch)
tree2dd180b46f0ec59c933af1546e88f2ec3967520f /libjava
parent9ddb9a6b6185dabc4ecb88f0c389d36cc36d948a (diff)
downloadppe42-gcc-facad895fdfb0b731d1f160c65c7da8cc6dd741e.tar.gz
ppe42-gcc-facad895fdfb0b731d1f160c65c7da8cc6dd741e.zip
* java/lang/natString.cc (intern): Temporarily disable finalizer
registration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33127 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog3
-rw-r--r--libjava/java/lang/natString.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 19d074a5707..742ccac5340 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,8 @@
2000-04-12 Tom Tromey <tromey@cygnus.com>
+ * java/lang/natString.cc (intern): Temporarily disable finalizer
+ registration.
+
* java/lang/natString.cc (unintern): Added `obj' argument.
(intern): Register finalizer for string.
* java/lang/String.java (unintern): Now static; added obj
diff --git a/libjava/java/lang/natString.cc b/libjava/java/lang/natString.cc
index 175d8eb5a1b..376a016d6c7 100644
--- a/libjava/java/lang/natString.cc
+++ b/libjava/java/lang/natString.cc
@@ -154,7 +154,7 @@ java::lang::String::intern()
strhash_count++;
*ptr = this;
// When string is GC'd, clear the slot in the hash table.
- _Jv_RegisterFinalizer ((void *) this, unintern);
+ // _Jv_RegisterFinalizer ((void *) this, unintern);
return this;
}
OpenPOWER on IntegriCloud