[sgen] Don't reallocate mod_union at each major
[mono.git] / mcs / class / corlib / System / Exception.cs
index 19833f0f854de56217eed88c795e548bb8741922..7b6b4923842067847bc9a421e96aae5ad1db0672 100644 (file)
@@ -69,6 +69,7 @@ namespace System
                IDictionary _data;
                internal StackTrace[] captured_traces;
                IntPtr[] native_trace_ips;
+               object dynamic_methods;
                #endregion
 #pragma warning restore 169, 649
 
@@ -199,7 +200,7 @@ namespace System
                                        /* Not thrown yet */
                                        return null;
 
-                               StackTrace st = new StackTrace (this, 0, true, true);
+                               StackTrace st = new StackTrace (this, 0, true);
                                return stack_trace = st.ToString ();
                        }
                }
@@ -247,7 +248,7 @@ namespace System
 
                        info.AddValue ("ClassName", ClassName);
                        info.AddValue ("Message", _message);
-                       info.AddValue ("InnerException", inner_exception);
+                       info.AddValue ("InnerException", inner_exception, typeof (Exception));
                        info.AddValue ("HelpURL", help_link);
                        info.AddValue ("StackTraceString", StackTrace);
                        info.AddValue ("RemoteStackTraceString", _remoteStackTraceString);
@@ -298,6 +299,7 @@ namespace System
                {
                        captured_traces = (StackTrace[]) exceptionDispatchInfo.BinaryStackTraceArray;
                        trace_ips = null;
+                       stack_trace = null;
                }
 
                //