* jni.cc (natrehash): Don't bother clearing memory again.
* interpret.cc (do_allocate_static_fields): Ditto.
* java/lang/natString.cc (rehash): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98583
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
+
2005-04-22 Roman Kennke <roman@kennke.org>
* javax/swing/plaf/basic/BasicLookAndFeel.java
_Jv_InterpClass *iclass = (_Jv_InterpClass *) klass->aux_info;
char *static_data = (char *) _Jv_AllocBytes (static_size);
- memset (static_data, 0, static_size);
for (int i = 0; i < klass->field_count; i++)
{
{
strhash_size = 1024;
strhash = (jstring *) _Jv_AllocBytes (strhash_size * sizeof (jstring));
- memset (strhash, 0, strhash_size * sizeof (jstring));
}
else
{
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)
{
nathash =
(JNINativeMethod *) _Jv_AllocBytes (nathash_size
* sizeof (JNINativeMethod));
- memset (nathash, 0, nathash_size * sizeof (JNINativeMethod));
}
else
{
nathash =
(JNINativeMethod *) _Jv_AllocBytes (nathash_size
* sizeof (JNINativeMethod));
- memset (nathash, 0, nathash_size * sizeof (JNINativeMethod));
for (int i = 0; i < savesize; ++i)
{