natString.cc (rehash): Don't bother with memset; _Jv_AllocBytes returns zero'd memory.
authorTom Tromey <tromey@redhat.com>
Sun, 18 Mar 2001 00:57:13 +0000 (00:57 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 18 Mar 2001 00:57:13 +0000 (00:57 +0000)
commit9de8be0b19b5e0f3ad37e6f56ee241293889f41a
tree31405df7690693b7c1f8fab8a6eb2ffa631fb15d
parent2eb6fbf861e3c0907b9cdb2163783c8f60b8f012
natString.cc (rehash): Don't bother with memset; _Jv_AllocBytes returns zero'd memory.

* java/lang/natString.cc (rehash): Don't bother with memset;
_Jv_AllocBytes returns zero'd memory.  Use _Jv_AllocBytesChecked.
Use UNMASK_PTR.
(UNMASK_PTR): New macro.
(intern): Unmask pointer before returning it.  Register finalizer
for the string.
(unintern): Handle case where
(MASK_PTR): New macro.
(PTR_MAKSED): Likewise.
(_Jv_NewStringUtf8Const): Use UNMASK_PTR.

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