[Mono-bugs] [Bug 61441][Wis] New - [PATCH] avoid callvirt with ctors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jul 2004 13:42:17 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.


--- shadow/61441	2004-07-12 13:42:17.000000000 -0400
+++ shadow/61441.tmp.27336	2004-07-12 13:42:17.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 61441
+Product: Mono: Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: [PATCH] avoid callvirt with ctors
+We call constructors with the callvirt convention. So, a ctor becomes
+<push args>
+callvirt .ctor
+By using `call' we avoid the nullcheck which reduces code size.
+what is returned from the allocator will never be null -- if we are out of
+memory we throw an exception.