Skip to content

Commit

Permalink
Merge pull request #2890 from mono/alexischr/remove-managed-alloc-str…
Browse files Browse the repository at this point in the history
…ing-zeroing

[sgen] Remove unnecessary and wrong IL code on string managed allocators
  • Loading branch information
alexischr committed Apr 16, 2016
2 parents 40a4dd7 + 30f0795 commit 2d68253
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mono/metadata/sgen-mono.c
Expand Up @@ -1348,14 +1348,6 @@ create_allocator (int atype, gboolean slowpath)
mono_mb_emit_byte (mb, MONO_CEE_ADD);
mono_mb_emit_ldarg (mb, 1);
mono_mb_emit_byte (mb, MONO_CEE_STIND_I4);
/* s->chars [len] = 0; */
mono_mb_emit_ldloc (mb, p_var);
mono_mb_emit_ldloc (mb, size_var);
mono_mb_emit_icon (mb, 2);
mono_mb_emit_byte (mb, MONO_CEE_SUB);
mono_mb_emit_byte (mb, MONO_CEE_ADD);
mono_mb_emit_icon (mb, 0);
mono_mb_emit_byte (mb, MONO_CEE_STIND_I2);
}

/*
Expand Down

0 comments on commit 2d68253

Please sign in to comment.