[Mono-bugs] [Bug 81816][Min] Changed - Better InvalidCastException description details

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 3 05:58:40 EDT 2007


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 lupus at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81816

--- shadow/81816	2007-07-02 04:52:56.000000000 -0400
+++ shadow/81816.tmp.3836	2007-07-03 05:58:40.000000000 -0400
@@ -55,6 +55,16 @@
 Maybe it should do that when --debug is used?
 
 ------- Additional Comments From marek.safar at seznam.cz  2007-07-02 04:52 -------
 Why it should bloat out the output? It happens only when an exception
 is thrown and it is very useful detail. I think MS introduced this in
 .NET 2.0 too.
+
+------- Additional Comments From lupus at ximian.com  2007-07-03 05:58 -------
+It bloats the JIT output. For each cast failure condition we'd need to
+save the target type and the source type (specially the latter may be
+costly wrt register allocation and code quality). This will also
+require additional arch-specific trampolines. We're likely talking
+about 10-30 additional bytes of generated code per cast, depending on
+the architecture. Of the additional info it provides, the target type
+is always trivially seen by checking the file/line reported in the
+trace anyway.


More information about the mono-bugs mailing list