natString.cc (_Jv_NewStringUtf8Const): Register finalizer.
authorPer Bothner <per@bothner.com>
Tue, 10 Apr 2001 22:46:11 +0000 (15:46 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Tue, 10 Apr 2001 22:46:11 +0000 (15:46 -0700)
commitab9fa4b5d4af4a4908ea881b380c5bb73a1a4386
treedf2e8ca8e14d5dd7808d9be2ae190259468360b9
parent03829ad289cd82c9780720a5ac786576f8a3057e
natString.cc (_Jv_NewStringUtf8Const): Register finalizer.

* java/lang/natString.cc (_Jv_NewStringUtf8Const):  Register finalizer.
Recalculate hash, since Utf8Const's hash is only 16 bits.

* java/lang/natString.cc (_Jv_StringFindSlot, rehash):  Use high-order
bits of hash to calculate step for chaining.

* java/lang/natString.cc (intern, _Jv_NewStringUtf8Const):  Rehash
when 2/3 full, rather than 3/4 full.

From-SVN: r41233
libjava/ChangeLog
libjava/java/lang/natString.cc