Switch branches/tags
Commits on Dec 9, 2009
  1. 2009-12-09 Chris Toshok <>

    Chris Toshok committed Dec 9, 2009
    	* Encoding.cs (get_Default): moonlight defaults to UTF8, not
    svn path=/branches/mono-2-6/mcs/; revision=147922
  2. 2009-12-09 Zoltan Varga <>

    vargaz committed Dec 9, 2009
    	* debugger-agent.c (start_runtime_invoke): Fix a crash if this is called
    	on the debugger thread.
    svn path=/branches/mono-2-6/mono/; revision=147913
Commits on Dec 8, 2009
  1. Disable this on 2.6

    Geoff Norton committed Dec 8, 2009
    svn path=/branches/mono-2-6/mono/; revision=147884
  2. 2009-12-08 Geoff Norton <>

    Geoff Norton committed Dec 8, 2009
    	* debugger-agent.c:  Refactor the mono_runtime_invoke guarding against
    	stepping out into native code.  There were issues with nested invokes
    	like .cctors.
    svn path=/branches/mono-2-6/mono/; revision=147883
  3. * sqlmetal.exe.config: Add provider entry for SQL Server.

    Jonathan Pryor committed Dec 8, 2009
    	* sqlmetal.exe.sources: Add additional files.
    svn path=/branches/mono-2-6/mcs/; revision=147881
  4. * src/**/*, examples/**/*: Sync with DbLinq r1293. This adds

    Jonathan Pryor committed Dec 8, 2009
    	  SchemaLoader support for Microsoft SQL Server, allowing sqlmetal to 
    	  generate entity stubs against SQL Server databases.
    	* System.Data.Linq.dll.sources: Add files to the build.
    svn path=/branches/mono-2-6/mcs/; revision=147880
  5. 2009-12-08 Jb Evain <>

    jbevain committed Dec 8, 2009
    	* Enum.cs (IConvertible.ToType): properly convert enum values
    	to strings instead of their numeric values.
    	backport r147482.
    svn path=/branches/mono-2-6/mcs/; revision=147858
  6. 2009-12-08 Sebastien Pouliot <>

    Sebastien Pouliot committed Dec 8, 2009
    	* driver.c: Fail gracefully with --compile-all if mono_method_signature
    	returns NULL (e.g. a bad assembly).
    svn path=/branches/mono-2-6/mono/; revision=147854
  7. 2009-12-08 Marek Safar <>

    marek-safar committed Dec 8, 2009
    	A fix for bug #561149
    	anonymous.cs: Use actual type parameters when checking for generic
    	method host.
    svn path=/branches/mono-2-6/mcs/; revision=147846
  8. 2009-12-08 Chris Toshok <>

    Chris Toshok committed Dec 8, 2009
    	* JsonSerializationReader.cs (DeserializeGenericCollection): in
    	the 2.1 case we still need to convert the List<> to an array.
    svn path=/branches/mono-2-6/mcs/; revision=147834
  9. in System.ServiceModel.Web/System.Runtime.Serialization.Json:

    Chris Toshok committed Dec 8, 2009
    2009-12-07  Chris Toshok  <>
    	* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
    	encoding parameter instead of calling Detect.  The jsonreader's
    	PushbackReader will autodetect.
    	(Detect): remove.  a BufferedStream created from an unseekable
    	stream is itself unseekable, which makes it just as useless.  This
    	breaks netflix's isostore file parsing.
    	* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
    	encoding, for the autodetecting reader case.  for this ctor, pass
    	true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
    svn path=/branches/mono-2-6/mcs/; revision=147830
Commits on Dec 7, 2009
  1. 2009-12-07 Geoff Norton <>

    Geoff Norton committed Dec 7, 2009
    	* debugger-agent.c:  Darwin can colesce signals, so we need to handle
    	the interrupt_count slightly differently.  Native threads were never
    	marked as resumed.
    svn path=/branches/mono-2-6/mono/; revision=147817
  2. In metadata:

    kumpera committed Dec 7, 2009
    2009-12-07  Rodrigo Kumpera  <>
    	* class.c (mono_class_from_typeref): Bounds check idx against the 
    	assemblyref table.
    	Backport of r147797.
    svn path=/branches/mono-2-6/mono/; revision=147798
  3. in class/corlib/System.Collections.Generic/:

    Chris Toshok committed Dec 7, 2009
    2009-12-06  Chris Toshok  <>
    	* KeyValuePair.cs: we need setters for Key and Value so they can
    	be set via reflection from
    in class/System.ServiceModel.Web/System.Runtime.Serialization.Json/:
    2009-12-06  Chris Toshok  <>
    	* JsonSerializationReader.cs (DeserializeGenericCollection): this
    	is jb's (iirc) patch, actually.  Types subclassing from
    	ICollection<T> need to be supported, and since it's an interface
    	the implementation might be explicit.  So instead of groveling
    	around in the actual type, we need to dispatch through the
    	interface's method.
    	* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
    	properties, since KeyValuePair items must be able to write to Key
    	and Value properties.
    	* JsonReader.cs (ReadContent): for builtin values (null, true,
    	false), use TryReadString instead of individual ReadChar's, since
    	they aren't reversible if the string didn't match.  In the default
    	case, if we're LameSilverlightLiseralParser, we need to push back
    	the current character onto the stream -- this is because for
    	netflix's AppConfig.json we were parsing "frameRatePolicy" as
    	"rameRatePolicy" (the 'f' was triggering the "false" parsing).
    	(class PushBackReader): add this class to unify all the pushing
    	back of characters we need to do.  1 character (JsonReader's old
    	"saved_char") isn't enough given that you could have a property
    	named, e.g., "falsifiable", and we'd need 4 characters worth of
    	pushback to recognize that correctly.
    svn path=/branches/mono-2-6/mcs/; revision=147767
Commits on Dec 5, 2009
  1. 2009-12-05 Zoltan Varga <>

    vargaz committed Dec 5, 2009
    	* debugger-agent.c (buffer_add_value): Treat I/U as a valuetype, so the
    	client can distinguish between intptrs and longs.
    svn path=/branches/mono-2-6/mono/; revision=147746
  2. 2009-12-05 Sebastien Pouliot <>

    Sebastien Pouliot committed Dec 5, 2009
    	* System.Net.dll.sources: Remove (almost) everything. This 
    	assembly in 3.5+ does not share anything with what SL2/3 
    	provide (the later being a part of System.dll)
    	[Backport r147727]
    svn path=/branches/mono-2-6/mcs/; revision=147743
  3. 2009-12-05 Zoltan Varga <>

    vargaz committed Dec 5, 2009
    	Applied patch from Laurent Etiemble (
    	* mono/metadata/assembly.c: When opening an assembly image, pass the real
    	names in addition to the runtime generated one.
    	* mono/metadata/image.h: Add a function to take the real name of the assembly
    	* mono/metadata/image.c: If a real name has been passed to load an assembly,
    	use it instead of the runtime generated one.
    	Code is contributed under MIT/X11 license.
    svn path=/branches/mono-2-6/mono/; revision=147741
  4. 2009-12-05 Zoltan Varga <>

    vargaz committed Dec 5, 2009
    	* marshal.c (emit_marshal_vtype): Do the klass == date_time_class checks
    	before the other checks to prevent problems if the DateTime class is blittable.
    	Hopefully fixes #559600.
    svn path=/branches/mono-2-6/mono/; revision=147738
  5. 2009-12-04 Geoff Norton <>

    Geoff Norton committed Dec 5, 2009
    	* debugger-agent.c: When doing a func-eval invoke on a suspended runtime,
    	we need to track the original suspend count so the thread properly
    	wakes up in resume_thread.
    svn path=/branches/mono-2-6/mono/; revision=147734
  6. 2009-12-05 Lluis Sanchez <>

    slluis committed Dec 5, 2009
    	* StructMirror.cs: Fix field indexer for structs with static fields.
    	* VirtualMachineManager.cs: Added an option to LaunchOptions which
    	allows providing a custom method for launching the process. This
    	allows launching mono in a wrapper process.
    svn path=/branches/mono-2-6/mcs/; revision=147728
Commits on Dec 4, 2009
  1. 2009-12-04 Sebastien Pouliot <>

    Sebastien Pouliot committed Dec 4, 2009
    	* CodeModule.cs: Silverlight does not allow AssemblyBuilderAccess.
    	RunAndSave so we reduce it to AssemblyBuilderAccess.Run
    svn path=/branches/mono-2-6/mcs/; revision=147715
  2. In .:

    Sebastien Pouliot committed Dec 4, 2009
    2009-12-04  Sebastien Pouliot  <>
    	* net_2_1_raw_System.Net.dll.sources: Remove HttpStatusCode_2_1.cs
    	[Backport r147704]
    In System.Net:
    2009-12-04  Sebastien Pouliot  <>
    	* HttpStatusCode_2_1.cs: Remove. SL3 provides all status code 
    	since they are used for the client stack
    	* WebClient_2_1.cs: Add Credentials property and change
    	ResponseHeaders property to public
    	* WebRequest_2_1.cs: Add Credentials property
    	[Backport r147704]
    svn path=/branches/mono-2-6/mcs/; revision=147705
  3. 2009-12-04 Sebastien Pouliot <>

    Sebastien Pouliot committed Dec 4, 2009
    	* SocketAsyncEventArgs.cs: Implement ConnectByNameError for 
    	Moonlight 3
    svn path=/branches/mono-2-6/mcs/; revision=147701
  4. 2009-12-04 Sebastien Pouliot <>

    Sebastien Pouliot committed Dec 4, 2009
    	* HttpWebRequest_2_1.cs: Add CookieCollection, need to be 
    	implemented in the client stack
    	* HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
    	to move (a real) implementation into the client stack
    	* WebRequest_2_1.cs: Add Create(string) overload (SL3)
    	[Backport r147670]
    svn path=/branches/mono-2-6/mcs/; revision=147671
  5. 2009-12-04 Zoltan Varga <>

    vargaz committed Dec 4, 2009
    	* mini-trampolines.c (mono_create_static_rgctx_trampoline): Use a cache
    	keyed on the method+addr pair, since addr could be either the method addr or
    	an unbox trampoline in the AOT case. Fixes #560246.
    svn path=/branches/mono-2-6/mono/; revision=147644
  6. [Backport to 2.6]

    jpobst committed Dec 4, 2009
    2009-12-03  Jonathan Pobst  <>
    	* SortOrder.cs: Add enum.
    2009-12-03  Jonathan Pobst  <>
    	* System.Data.dll.sources: Add SortOrder.cs.
    svn path=/branches/mono-2-6/mcs/; revision=147637
Commits on Dec 3, 2009
  1. 2009-12-03 Zoltan Varga <>

    vargaz committed Dec 3, 2009
    	* mini.c (mini_method_compile): Call handle_exception_clauses () in the same
    	place it was called before too.
    svn path=/branches/mono-2-6/mono/; revision=147625
  2. 2009-12-03 Zoltan Varga <>

    vargaz committed Dec 3, 2009
    	* mini.c (mono_jit_runtime_invoke): Avoid the call to mono_class_setup_vtable ()
    	if no security manager is present, to speed up the AOT case. Call
    	mono_class_vtable () full with raise_on_error == TRUE instead.
    svn path=/branches/mono-2-6/mono/; revision=147610
  3. 2009-12-03 Zoltan Varga <>

    vargaz committed Dec 3, 2009
    	* mini.c (mini_method_compile): Call handle_exception_clauses earlier so
    	the local optimization passes can take its result into account. Fixes
    	* exceptions.cs: Add a test.
    svn path=/branches/mono-2-6/mono/; revision=147606
  4. 2009-01-24 Steven Munroe <>

    vargaz committed Dec 3, 2009
    	This patch is contributed under the terms of the MIT/X11 license
            * (load_memindex): Add loadi8_memindex.
    svn path=/branches/mono-2-6/mono/; revision=147600
  5. 2009-12-03 Zoltan Varga <>

    vargaz committed Dec 3, 2009
    	* src/gmisc-unix.c (g_get_user_name): Avoid returning NULL if the env
    	var is not set.
    svn path=/branches/mono-2-6/mono/; revision=147587
  6. 2009-12-03 Zoltan Varga <>

    vargaz committed Dec 3, 2009
    	* StructMirror.cs (this): Ignore static fields.
    svn path=/branches/mono-2-6/mcs/; revision=147579
  7. In .:

    kumpera committed Dec 3, 2009
    2009-12-03  Rodrigo Kumpera  <>
    	* loader.c (find_method_in_class): Ignore methods with broken signatures.
    	Fixes #559906.
    	Backport of r147557.
    svn path=/branches/mono-2-6/mono/; revision=147558
  8. 2009-12-02 Geoff Norton <>

    Geoff Norton committed Dec 3, 2009
    	* VirtualMachineManager.cs: We might get a SocketException (interrupted)
    	here, so lets just handle all Exceptions to our Accept pattern the same
    svn path=/branches/mono-2-6/mcs/; revision=147527
  9. 2009-12-03 Zoltan Varga <>

    vargaz committed Dec 3, 2009
    	* debugger-agent.c: Rework the handling of stack traces of running threads to
    	avoid crashes if compute_frames () tries to walk the stack of running thread.
    	* mini.c (mono_print_method_from_ip): Use mini_jit_info_table_find.
    	* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): Set frame->lmf.
    	* mini.h (StackFrameInfo): Add an 'lmf' field.
    svn path=/branches/mono-2-6/mono/; revision=147519