Bugzilla – Bug 312170
[mini] Inlining problems
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by gonzalo@ximian.com 2003-04-11 07:53:12 MST ---- Description of Problem: When run under mini with --optimize=inline, this test allocates big chunks of memory until no more left: ------------------ using System; using System.Collections; using System.IO; using System.Runtime.Serialization.Formatters.Binary; class Test { static void Main () { Hashtable table1 = new Hashtable(); Hashtable table2; MemoryStream st = new MemoryStream (); BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize (st, table1); st.Position = 0; table2 = (Hashtable) formatter.Deserialize (st); } } ------------ ---- Additional Comments From dietmar@ximian.com 2003-04-15 08:07:36 MST ---- this works fine here, I cant reproduce it ---- Additional Comments From gonzalo@ximian.com 2003-04-15 08:55:46 MST ---- It works fine now :-? ---- Additional Comments From gonzalo@ximian.com 2003-04-15 08:57:39 MST ---- It still fails for me. This is a PIII 256 MB ram. The stack trace...: Unhandled Exception: System.IO.FileNotFoundException: File '' not found. in (unmanaged) /home/gpanjav/go-mono/install/lib/libmini.so.0(mono_raise_exception+0x20) [0x4009263a] in (unmanaged) /home/gpanjav/go-mono/install/lib/libmini.so.0(ves_icall_System_AppDomain_LoadAssembly+0xf6) [0x400afa2a] in <0x0007b> 08 System.AppDomain:LoadAssembly (System.Reflection.AssemblyName,System.Security.Policy.Evidence) in <0x00017> 00 System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence) in <0x00081> 00 System.AppDomain:Load (string) in <0x0047b> 00 System.Runtime.Serialization.Formatters.Binary.ObjectWriter:GetDataFromSerializationInfo (System.Runtime.Serialization.SerializationInfo,TypeMetadata&,object[]&) in <0x002ff> 00 System.Runtime.Serialization.Formatters.Binary.ObjectWriter:GetObjectData (object,TypeMetadata&,object[]&) in <0x00082> 00 System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObject (System.IO.BinaryWriter,long,object) in <0x00126> 00 System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectInstance (System.IO.BinaryWriter,object) in <0x0003d> 00 System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteQueuedObjects (System.IO.BinaryWriter) in <0x0006f> 00 System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectGraph (System.IO.BinaryWriter,object,System.Runtime.Remoting.Messaging.Header[]) in <0x001ce> 00 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize (System.IO.Stream,object,System.Runtime.Remoting.Messaging.Header[]) in <0x00019> 00 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize (System.IO.Stream,object) in <0x00086> 00 .Test:Main () If you need anything else, please, tell me. ---- Additional Comments From lupus@ximian.com 2003-04-15 13:27:12 MST ---- Fixed in cvs. Unknown operating system unknown. Setting to default OS "Other".