Bug 320697 (MONO77947) - [PATCH] Avoid setting array elements to null in array literals
Summary: [PATCH] Avoid setting array elements to null in array literals
Status: RESOLVED FIXED
Alias: MONO77947
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Marek Safar
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 17:37 UTC by Forgotten User vxPDddArjq
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch (639 bytes, patch)
2006-03-29 17:38 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:53:23 UTC


---- Reported by vargaz@gmail.com 2006-03-29 10:37:55 MST ----

The following patch avoids setting elements of array literals to null, as
in the following example:

string[] arr = new string [] { null, "A", null }

csc does a similar optimizations. This patch reduces the size of mcs.exe
and mscorlib.dll by about 1KB respectively.



---- Additional Comments From vargaz@gmail.com 2006-03-29 10:38:20 MST ----

Created an attachment (id=169503)
patch




---- Additional Comments From marek.safar@seznam.cz 2006-03-29 11:30:04 MST ----

I will review the patch as I am working on similar topic.



---- Additional Comments From marek.safar@seznam.cz 2006-04-04 17:31:33 MST ----

Fixed in SVN.

Thanks for the idea.



---- Additional Comments From mkestner@ximian.com 2007-02-21 12:47:32 MST ----

*** https://bugzilla.novell.com/show_bug.cgi?id=MONO80919 has been marked as a duplicate of this bug. ***

Imported an attachment (id=169503)

Unknown operating system unknown. Setting to default OS "Other".