Only allocate 1 empty string instance per AppDomain (#4047)
authorMike Voorhees <mrvoorhe@users.noreply.github.com>
Wed, 30 Nov 2016 21:40:19 +0000 (16:40 -0500)
committerZoltan Varga <vargaz@gmail.com>
Wed, 30 Nov 2016 21:40:19 +0000 (16:40 -0500)
commitfd36291a489d93dff674fce79e03c83dc239ed64
tree4f167e3d417cbdc5ab41f3879caae7a8cf700c8b
parent5b386e6b28f247a582e6f898c75a177814bfd373
Only allocate 1 empty string instance per AppDomain  (#4047)

* Reuse a single empty string instance

* Undo string empty change to mono_string_new_size_checked and add new embedding api for string empty instead
mono/metadata/appdomain.c
mono/metadata/domain-internals.h
mono/metadata/object.c
mono/metadata/object.h
msvc/mono.def
msvc/monosgen.def