natString.cc (intern): Temporarily disable finalizer registration.

* java/lang/natString.cc (intern): Temporarily disable finalizer
	registration.

From-SVN: r33127
This commit is contained in:
Tom Tromey 2000-04-12 21:17:00 +00:00 committed by Tom Tromey
parent 045a1f9d31
commit cc309dd512
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-04-12 Tom Tromey <tromey@cygnus.com> 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. * java/lang/natString.cc (unintern): Added `obj' argument.
(intern): Register finalizer for string. (intern): Register finalizer for string.
* java/lang/String.java (unintern): Now static; added obj * java/lang/String.java (unintern): Now static; added obj

View File

@ -154,7 +154,7 @@ java::lang::String::intern()
strhash_count++; strhash_count++;
*ptr = this; *ptr = this;
// When string is GC'd, clear the slot in the hash table. // When string is GC'd, clear the slot in the hash table.
_Jv_RegisterFinalizer ((void *) this, unintern); // _Jv_RegisterFinalizer ((void *) this, unintern);
return this; return this;
} }