mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
jni.cc (natrehash): Don't bother clearing memory again.
2005-04-22 Anthony Green <green@redhat.com> * jni.cc (natrehash): Don't bother clearing memory again. * interpret.cc (do_allocate_static_fields): Ditto. * java/lang/natString.cc (rehash): Ditto. From-SVN: r98583
This commit is contained in:
committed by
Anthony Green
parent
9f12b095b1
commit
f00fac9d2f
@@ -125,7 +125,6 @@ rehash ()
|
||||
{
|
||||
strhash_size = 1024;
|
||||
strhash = (jstring *) _Jv_AllocBytes (strhash_size * sizeof (jstring));
|
||||
memset (strhash, 0, strhash_size * sizeof (jstring));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -133,7 +132,6 @@ rehash ()
|
||||
jstring* ptr = strhash + i;
|
||||
int nsize = strhash_size * 2;
|
||||
jstring *next = (jstring *) _Jv_AllocBytes (nsize * sizeof (jstring));
|
||||
memset (next, 0, nsize * sizeof (jstring));
|
||||
|
||||
while (--i >= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user