mono.git
13 years agoThrow correct exceptions when using generated serializer
Lluis Sanchez [Mon, 13 Dec 2010 12:34:22 +0000 (13:34 +0100)]
Throw correct exceptions when using generated serializer

Invocations to generated serializers are done through
reflection, so exceptions are masked by TargetInvocationException.
The inner exception has to be rethrown so that the client
code gets the correct exception.

13 years agoRe-enable EmbedResourceFile overload used by al.exe
Marek Safar [Mon, 13 Dec 2010 12:10:03 +0000 (12:10 +0000)]
Re-enable EmbedResourceFile overload used by al.exe

13 years ago[asp.net] Fix for bug #658278. Panels render children only when parent is present...
Marek Habersack [Mon, 13 Dec 2010 11:59:28 +0000 (12:59 +0100)]
[asp.net] Fix for bug #658278. Panels render children only when parent is present and ChildrenAsTriggers is enabled

Fix from Avior Computing <jmilillo@aviorcomputing.com>, thanks!

13 years ago[asp.net] .NET 4.0 declares the <system.web.extensions> section in machine.config
Marek Habersack [Mon, 13 Dec 2010 07:59:41 +0000 (08:59 +0100)]
[asp.net] .NET 4.0 declares the <system.web.extensions> section in machine.config

13 years ago[asp.net] Implmeneted the System.Web.Configuration.ScriptingRoleServiceSection type
Marek Habersack [Mon, 13 Dec 2010 07:58:33 +0000 (08:58 +0100)]
[asp.net] Implmeneted the System.Web.Configuration.ScriptingRoleServiceSection type

13 years ago[winforms] Pass 4 of removing NET_2_0 from winforms
Miguel de Icaza [Mon, 13 Dec 2010 04:31:29 +0000 (23:31 -0500)]
[winforms] Pass 4 of removing NET_2_0 from winforms

13 years ago[winforms] Pass 3 of removing NET_2_0 from winforms
Miguel de Icaza [Mon, 13 Dec 2010 04:28:18 +0000 (23:28 -0500)]
[winforms] Pass 3 of removing NET_2_0 from winforms

13 years ago[winforms] Pass 3 of removing NET_2_0 from winforms
Miguel de Icaza [Mon, 13 Dec 2010 04:27:12 +0000 (23:27 -0500)]
[winforms] Pass 3 of removing NET_2_0 from winforms

13 years ago[winforms] Pass 2 of removing NET_2_0 from winforms
Miguel de Icaza [Mon, 13 Dec 2010 04:23:34 +0000 (23:23 -0500)]
[winforms] Pass 2 of removing NET_2_0 from winforms

13 years ago[winforms] Pass 2 of removing NET_2_0 from winforms
Miguel de Icaza [Mon, 13 Dec 2010 04:22:27 +0000 (23:22 -0500)]
[winforms] Pass 2 of removing NET_2_0 from winforms

13 years agoPass 1 of removing NET_2_0 from winforms
Miguel de Icaza [Mon, 13 Dec 2010 03:50:06 +0000 (22:50 -0500)]
Pass 1 of removing NET_2_0 from winforms

13 years agoFix ARM build.
Zoltan Varga [Mon, 13 Dec 2010 04:14:16 +0000 (05:14 +0100)]
Fix ARM build.

13 years agoFix full-aot+llvm support on amd64.
Zoltan Varga [Mon, 13 Dec 2010 02:03:49 +0000 (03:03 +0100)]
Fix full-aot+llvm support on amd64.

13 years agoAdd targets to run aot/full-aot tests with LLVM.
Zoltan Varga [Mon, 13 Dec 2010 02:03:14 +0000 (03:03 +0100)]
Add targets to run aot/full-aot tests with LLVM.

13 years agoAdd a patch each time a plt entry is requested in the llvm backend, so wrappers can...
Zoltan Varga [Mon, 13 Dec 2010 02:02:29 +0000 (03:02 +0100)]
Add a patch each time a plt entry is requested in the llvm backend, so wrappers can be generated in full aot.

13 years agoAdd a Make variable to run the aot tests using --llvm.
Zoltan Varga [Mon, 13 Dec 2010 00:08:17 +0000 (01:08 +0100)]
Add a Make variable to run the aot tests using --llvm.

13 years agoDon't make the mtriple argument mandatory, clean up processing of llc arguments.
Zoltan Varga [Sun, 12 Dec 2010 20:03:17 +0000 (21:03 +0100)]
Don't make the mtriple argument mandatory, clean up processing of llc arguments.

13 years ago[mdoc] Fix code formatting.
Jonathan Pryor [Sun, 12 Dec 2010 03:57:31 +0000 (22:57 -0500)]
[mdoc] Fix code formatting.

The expression in `if(expr)`, if overly-long and spanning mulitple
lines, should be indented beyond the normal indent so that the
expression is more easily distinguished from the `if` body:

if (expr &&
expr2 &&
expr3)
body;

not:

if (expr &&
expr2 &&
expr3)
body;

13 years agoMerge branch 'master' of https://github.com/XTZGZoReX/mono into XTZGZoReX-master
Jonathan Pryor [Sun, 12 Dec 2010 03:53:27 +0000 (22:53 -0500)]
Merge branch 'master' of https://github.com/XTZGZoReX/mono into XTZGZoReX-master

13 years ago[Monodoc] add GetDeclaringType(this CustomAttribute) extension method.
XTZGZoReX [Sun, 12 Dec 2010 03:42:12 +0000 (04:42 +0100)]
[Monodoc] add GetDeclaringType(this CustomAttribute) extension method.

13 years ago[monodoc] don't display methods with ContractInvariantMethodAttribute.
XTZGZoReX [Sun, 12 Dec 2010 01:34:07 +0000 (02:34 +0100)]
[monodoc] don't display methods with ContractInvariantMethodAttribute.

13 years ago[Monodoc] eliminate a few warnings.
XTZGZoReX [Sun, 12 Dec 2010 00:48:04 +0000 (01:48 +0100)]
[Monodoc] eliminate a few warnings.

13 years ago[winforms] Small optimizations, use properties that do not compute values
Thomas Goldstein [Sun, 12 Dec 2010 03:18:21 +0000 (22:18 -0500)]
[winforms] Small optimizations, use properties that do not compute values

13 years agoAdd an 'mtriple' aot option to set the target triple used by the AOT compiler in...
Zoltan Varga [Sat, 11 Dec 2010 21:25:43 +0000 (22:25 +0100)]
Add an 'mtriple' aot option to set the target triple used by the AOT compiler in LLVM mode.

13 years agoAdd a mono_arch_set_target () function to set the target triple which should
Zoltan Varga [Sat, 11 Dec 2010 21:24:07 +0000 (22:24 +0100)]
Add a mono_arch_set_target () function to set the target triple which should
be targeted by the JIT in AOT mode on ARM.

13 years ago[winforms] Style, braces
Miguel de Icaza [Sat, 11 Dec 2010 04:34:22 +0000 (23:34 -0500)]
[winforms] Style, braces

13 years ago[winforms] Use conditional attributes, not ifdefs to insert conditional code
Miguel de Icaza [Sat, 11 Dec 2010 04:32:36 +0000 (23:32 -0500)]
[winforms] Use conditional attributes, not ifdefs to insert conditional code

13 years ago[winforms] Use conditional attributes, not ifdefs to insert conditional code
Miguel de Icaza [Sat, 11 Dec 2010 04:25:26 +0000 (23:25 -0500)]
[winforms] Use conditional attributes, not ifdefs to insert conditional code

13 years agoLine endings
Gonzalo Paniagua Javier [Sat, 11 Dec 2010 04:19:06 +0000 (23:19 -0500)]
Line endings

13 years ago[System.Drawing] Remove unnecessary verbosity
Ralph Leckett [Sat, 11 Dec 2010 04:07:07 +0000 (23:07 -0500)]
[System.Drawing] Remove unnecessary verbosity

13 years ago[System.Drawing] On image load from stream errors, return null, not an exception
Ralph Leckett [Sat, 11 Dec 2010 04:05:55 +0000 (23:05 -0500)]
[System.Drawing] On image load from stream errors, return null, not an exception

13 years ago[winforms] Fix graphics leak
Ralph Leckett [Sat, 11 Dec 2010 04:02:51 +0000 (23:02 -0500)]
[winforms] Fix graphics leak

13 years ago[winforms] Fix graphics leak
Ralph Leckett [Sat, 11 Dec 2010 04:01:54 +0000 (23:01 -0500)]
[winforms] Fix graphics leak

13 years ago[winforms] For what it appeared to be a crasher from the JumboPatch
Ralph Leckett [Sat, 11 Dec 2010 04:01:08 +0000 (23:01 -0500)]
[winforms] For what it appeared to be a crasher from the JumboPatch

13 years ago[winforms] Reorder code a bit
Ralph Leckett [Sat, 11 Dec 2010 03:59:05 +0000 (22:59 -0500)]
[winforms] Reorder code a bit

13 years ago[winforms] Avoid leaking the Graphics
Ralph Leckett [Sat, 11 Dec 2010 03:53:53 +0000 (22:53 -0500)]
[winforms] Avoid leaking the Graphics

13 years ago[winforms] Avoid leaking the Graphics + style
Ralph Leckett [Sat, 11 Dec 2010 03:53:07 +0000 (22:53 -0500)]
[winforms] Avoid leaking the Graphics + style

13 years ago[winforms] Cope with null current regions
Ralph Leckett [Sat, 11 Dec 2010 03:51:01 +0000 (22:51 -0500)]
[winforms] Cope with null current regions

13 years ago[winforms] Cope with small windows
Ralph Leckett [Sat, 11 Dec 2010 03:49:21 +0000 (22:49 -0500)]
[winforms] Cope with small windows

13 years ago[winforms] Style
Ralph Leckett [Sat, 11 Dec 2010 03:45:52 +0000 (22:45 -0500)]
[winforms] Style

13 years ago[winforms] Style
Ralph Leckett [Sat, 11 Dec 2010 03:43:59 +0000 (22:43 -0500)]
[winforms] Style

13 years ago[winforms] Style, reduce full sizes of common types
Ralph Leckett [Sat, 11 Dec 2010 03:43:03 +0000 (22:43 -0500)]
[winforms] Style, reduce full sizes of common types

13 years ago[winforms] Do not leak Graphics in Invalidate + some Style
Ralph Leckett [Sat, 11 Dec 2010 03:41:16 +0000 (22:41 -0500)]
[winforms] Do not leak Graphics in Invalidate + some Style

13 years ago[winforms] style, and NET_2_0 dropped
Miguel de Icaza [Sat, 11 Dec 2010 03:35:52 +0000 (22:35 -0500)]
[winforms] style, and NET_2_0 dropped

13 years ago[winforms] Style
Ralph Leckett [Sat, 11 Dec 2010 03:26:51 +0000 (22:26 -0500)]
[winforms] Style

13 years ago[winforms] Cope with null Hwnd value from Hwnd.ObjectFromHandle
Ralph Leckett [Sat, 11 Dec 2010 03:25:41 +0000 (22:25 -0500)]
[winforms] Cope with null Hwnd value from Hwnd.ObjectFromHandle

13 years ago[winforms] Win32 fixes for window class name
Ralph Leckett [Sat, 11 Dec 2010 03:23:33 +0000 (22:23 -0500)]
[winforms] Win32 fixes for window class name

This is extracted from Ralph Leckett's jumbo-patch to winforms

13 years ago[winforms] quick cleanup patches for a few WinForms classes
Thomas Goldstein [Sat, 11 Dec 2010 03:09:04 +0000 (22:09 -0500)]
[winforms]  quick cleanup patches for a few WinForms classes

13 years ago[winforms] Small optimization
Thomas Goldstein [Sat, 11 Dec 2010 03:05:48 +0000 (22:05 -0500)]
[winforms] Small optimization

13 years ago[winforms] Prepare for Gnome 3, by not depending on libgnomeui
Miguel de Icaza [Sat, 11 Dec 2010 03:00:05 +0000 (22:00 -0500)]
[winforms] Prepare for Gnome 3, by not depending on libgnomeui

13 years agoUse 2.0 instead of 1.0 when probing install dirs.
joncham [Sat, 11 Dec 2010 01:27:11 +0000 (20:27 -0500)]
Use 2.0 instead of 1.0 when probing install dirs.

13 years ago[winforms] Fix ContextMenuStrip vertical position can be wrong.
Tom Hindle [Sat, 11 Dec 2010 00:48:47 +0000 (19:48 -0500)]
[winforms] Fix ContextMenuStrip vertical position can be wrong.

Fixes #658945

This can lead to the top of the context menu being off the screen.
This only happens with context menus with lots of items.

13 years ago[winforms] WM_SETFOCUS is sent before Keyboard Focus is changed.
Tom Hindle [Sat, 11 Dec 2010 00:41:59 +0000 (19:41 -0500)]
[winforms] WM_SETFOCUS is sent before Keyboard Focus is changed.

Switches Keyboard focus so that it occurs before WM_SETFOCUS is sent.

This means that the wrong keyboard im is selected while process winform events
caused by WM_SETFOCUS.

Attaching patch that changes this so that keyboard im is focused before
WM_SETFOCUS is sent.

Fixes: #557277

13 years ago[winforms] Allow WinForm controls to use on-the-spot XIM input methods
Tom Hindle [Sat, 11 Dec 2010 00:39:46 +0000 (19:39 -0500)]
[winforms] Allow WinForm controls to use on-the-spot XIM input methods

Attached Patch allows WinForms controls to get preedit notifications (by
overriding WndProc) when mono is run with  MONO_WINFORMS_XIM_STYLE=on-the-spot
mono

Changelog from attach patch:

2009-11-20    Tom Hindle <tom_hindle@sil.org>
    * XplatUIStructs.cs: Added user messages WM_XIM_PREEDITSTART,
    WM_XIM_PREEDITDONE, WM_XIM_PREEDITDRAW, WM_XIM_PREEDITCARET
    * X11Keyboard.cs: Changed preedit callbacks to emit WM_XIM_* messages
    * X11Structs.cs: Added XIMFeedbackStruct and XIMFeedback enum.

Here is some sample code which make use of this feature:

/// <summary>
/// Proof on concept implementation of a user defined TextBox that does on-the-spot
/// input method editing.
/// There is a number of know flaws - eg. doesn't end preedit when user moves cursor with mouse.
/// Need to run with MONO_WINFORMS_XIM_STYLE=on-the-spot mono
/// </summary>
public class OnTheSpotTextBox : TextBox, XIM.IPreedit
{
    // store text before preedit.
    string backup;

    #region IPreedit implementation
    public int PreeditStart (IntPtr clientData, IntPtr callData)
    {
        Console.WriteLine ("PreeditStart");
        backup = Text;
        return 100;
    }

    public int PreeditDone (IntPtr clientData, IntPtr callData)
    {
        Clear ();
        AppendText (backup);
        return 0;
    }

    public int PreeditDraw (IntPtr clientData, IntPtr callData)
    {
        XIM.PreeditDrawInfo info = new XIM.PreeditDrawInfo (callData);
        Console.WriteLine ("PreeditDraw PreeditDrawInfo {0}", info);
        if (info.ChangeLength > 0) {
            Clear ();
            AppendText (backup);
        }
        if (info.Caret > 0)
            AppendText (info.Text);
        return 0;
    }

    public int PreeditCaret (IntPtr clientData, IntPtr callData)
    {
        XIM.PreeditCaretInfo info = new XIM.PreeditCaretInfo (clientData);
        Console.WriteLine ("PreeditCaret PreeditCaretInfo {0}", info);
        return 0;
    }

    protected override void WndProc (ref Message m)
    {
        switch (m.Msg) {

        case         /*WM_USER*/0x400 + 0x1d00:
            // WM_XIM_PREEDITSTART
            // The WParam value identifies what is occurring.
            PreeditStart (m.WParam, m.LParam);
            break;
        case         /*WM_USER*/0x400 + 0x1d01:
            // WM_XIM_PREEDITDONE
            PreeditDone (m.WParam, m.LParam);
            break;
        case         /*WM_USER*/0x400 + 0x1d02:
            // WM_XIM_PREEDITDRAW
            PreeditDraw (m.WParam, m.LParam);
            break;
        case         /*WM_USER*/0x400 + 0x1d03:
            // WM_XIM_PREEDITCARET
            PreeditCaret (m.WParam, m.LParam);
            break;
        }
        base.WndProc (ref m);
    }

    #endregion

}

13 years ago[winforms] Add modal support to Forms
Tom Hindle [Sat, 11 Dec 2010 00:30:48 +0000 (19:30 -0500)]
[winforms] Add modal support to Forms

This fixes 614850 "Modal dialogs should prevent closing their parent windows."

13 years ago[winforms] DataGridView.cs : Made MoveCurrentCell not attempt access Column index -1.
Tom Hindle [Sat, 11 Dec 2010 00:25:29 +0000 (19:25 -0500)]
[winforms] DataGridView.cs : Made MoveCurrentCell not attempt access Column index -1.

Fixes #516960

13 years ago[winforms,fix] Prevent Clipboard APIs from running any Idle handlers
Tom Hindle [Sat, 11 Dec 2010 00:18:02 +0000 (19:18 -0500)]
[winforms,fix] Prevent Clipboard APIs from running any Idle handlers

Fixes: 641756

This prevents idle methods to be invoked when calling the Clipboard
APIs on X11, which is not the expected behavior.

The description from the bug report is:

Mono X11 Clipboard handling calls UpdateMessageQueue, which has the side affect
of potentially calling Idle handlers.

If any Idle handlers call Clipboard functions, this can cause idle handler
reentry.

See attached test case.

Incidentally removing the reentry check from the idle handler will actually
cause mono to segfault.

I will attach a patch shortly which fixes this by overloading
UpdateMessageQueue to allow Clipboard methods to call a version that doesn't
run idle processing.

13 years ago[winforms, fix] Keep the carret in sync with changes to the text entry value
Thomas Goldstein [Sat, 11 Dec 2010 00:12:23 +0000 (19:12 -0500)]
[winforms, fix] Keep the carret in sync with changes to the text entry value

Patch from Thomas Goldstein for bug #621475

The IndexOutOfRangeException is apparently a caret position bug. As a
workaround, doing textbox.SelectionStart = 0; before resetting the Text avoids
the bug.

Here's a patch to fix the bug. Basically, it applies the same caret updates
whether the Text is null/empty or not.
I hope I can get away with the minor style updates without having to submit
them as a separate patch...

13 years ago[fix, winforms] Fix the ProgressBar speed in Marquee situations
Andy Hume [Sat, 11 Dec 2010 00:02:07 +0000 (19:02 -0500)]
[fix, winforms] Fix the ProgressBar speed in Marquee situations

This issue was identified as:

 Marquee speed is very weird, changing between very very fast and very very
very very fast, and in inverse to the speed setting?

In https://bugzilla.novell.com/show_bug.cgi?id=440220

Also fixes this bug which was the test case isolated:

https://bugzilla.novell.com/show_bug.cgi?id=655797

13 years ago[winforms, datagrid, fix] fixes crasher reported in 416111
Nagappan Alagappan [Fri, 10 Dec 2010 23:05:02 +0000 (18:05 -0500)]
[winforms, datagrid, fix] fixes crasher reported in 416111

13 years agoUpdate docs
Miguel de Icaza [Wed, 6 Oct 2010 19:55:52 +0000 (15:55 -0400)]
Update docs

13 years agoEnsure types are resolved when checking fields under coreclr
Sebastien Pouliot [Fri, 10 Dec 2010 20:08:33 +0000 (15:08 -0500)]
Ensure types are resolved when checking fields under coreclr

* security-core-clr.c: call mono_field_get_type_checked to ensure the
field's type is resolved since coreclr checks can occurs before the
"normal" check done by mono. Fix crashes in DRT#8005

13 years agoFix marshaling of Ansi strings.
Rodrigo Kumpera [Fri, 10 Dec 2010 17:49:08 +0000 (15:49 -0200)]
Fix marshaling of Ansi strings.

* marshal.c (emit_struct_conv): Add _full variant that
takes an extra boolean argument to tell if char is to be
marshaled with one or two bytes.

* marshal.c (emit_marshal_array): Use emit_struct_conv_full
to correctly marshal ansi char arrays.

13 years ago[monodoc] display setter after the getter
Alex [Fri, 10 Dec 2010 15:27:24 +0000 (10:27 -0500)]
[monodoc] display setter after the getter

13 years agoFix handling of gshared methods declared in generic superclasses of nongeneric classe...
Zoltan Varga [Fri, 10 Dec 2010 15:11:26 +0000 (16:11 +0100)]
Fix handling of gshared methods declared in generic superclasses of nongeneric classes in stack traces. Fixes #658645.

13 years agoRevert unwanted makefile change
Marek Safar [Fri, 10 Dec 2010 13:20:45 +0000 (13:20 +0000)]
Revert unwanted makefile change

13 years agoAdd v1 runtime target (broken by design)
Marek Safar [Fri, 10 Dec 2010 13:13:21 +0000 (13:13 +0000)]
Add v1 runtime target (broken by design)

13 years agoResolve entire base initializer block in correct context
Marek Safar [Fri, 10 Dec 2010 10:41:39 +0000 (10:41 +0000)]
Resolve entire base initializer block in correct context

13 years agoRemoved compiler generated attributes
Marek Safar [Fri, 10 Dec 2010 10:40:10 +0000 (10:40 +0000)]
Removed compiler generated attributes

13 years agoBase constructor method calls have to be static
Marek Safar [Fri, 10 Dec 2010 10:39:18 +0000 (10:39 +0000)]
Base constructor method calls have to be static

13 years agoReport missing types (some of them for now)
Marek Safar [Fri, 10 Dec 2010 09:46:10 +0000 (09:46 +0000)]
Report missing types (some of them for now)

13 years agoAdd missing dependency
Marek Safar [Thu, 9 Dec 2010 18:36:19 +0000 (18:36 +0000)]
Add missing dependency

13 years agoTry to handle missing generic type definition
Marek Safar [Thu, 9 Dec 2010 17:41:10 +0000 (17:41 +0000)]
Try to handle missing generic type definition

13 years agoUse the mono calling convention for all LLVM methods, not just ones with rgctx/imt...
Zoltan Varga [Fri, 10 Dec 2010 00:36:58 +0000 (01:36 +0100)]
Use the mono calling convention for all LLVM methods, not just ones with rgctx/imt arguments.

13 years agoGet system.web/httpRuntime only once
Gonzalo Paniagua Javier [Fri, 10 Dec 2010 00:00:51 +0000 (19:00 -0500)]
Get system.web/httpRuntime only once

Get that section only once and keep it in HttpRuntime.

13 years agoAdd a few more undocumented bits to allowed AssemblyFlags
Rodrigo Kumpera [Thu, 9 Dec 2010 19:59:31 +0000 (17:59 -0200)]
Add a few more undocumented bits to allowed AssemblyFlags

Fixes #657516

13 years agoCheck for coded token with zero index for typedef::parent.
Rodrigo Kumpera [Thu, 9 Dec 2010 19:26:36 +0000 (17:26 -0200)]
Check for coded token with zero index for typedef::parent.

* metadata-verify.c (verify_typedef_table): Fail if the token
index is encoded as zero.

Fixes #651682

13 years agoFix semantic of CountdownEvent Reset methods. Fix #658244.
Jérémie Laval [Thu, 9 Dec 2010 17:28:52 +0000 (17:28 +0000)]
Fix semantic of CountdownEvent Reset methods. Fix #658244.

13 years agoImplement CreateSetComparer method in HashSet
Jérémie Laval [Thu, 9 Dec 2010 15:59:40 +0000 (15:59 +0000)]
Implement CreateSetComparer method in HashSet

13 years agoRefactor Add/Take/TryAdd/TryTake methods into a common block in BlockingCollection
Jérémie Laval [Thu, 9 Dec 2010 15:35:51 +0000 (15:35 +0000)]
Refactor Add/Take/TryAdd/TryTake methods into a common block in BlockingCollection

13 years agoFix GetConsumingEnumerable exception handling in BlockingCollection
Jérémie Laval [Thu, 9 Dec 2010 15:34:06 +0000 (15:34 +0000)]
Fix GetConsumingEnumerable exception handling in BlockingCollection

13 years ago[PLinq] Detect when AsParallel is called multiple time in a query and simply reuse...
Jérémie Laval [Thu, 9 Dec 2010 14:39:36 +0000 (14:39 +0000)]
[PLinq] Detect when AsParallel is called multiple time in a query and simply reuse the existing ParallelQuery object

13 years agoNew test
Marek Safar [Thu, 9 Dec 2010 14:57:18 +0000 (14:57 +0000)]
New test

13 years agoRead custom attribute name without resolving attribute type if possible
Marek Safar [Thu, 9 Dec 2010 14:52:56 +0000 (14:52 +0000)]
Read custom attribute name without resolving attribute type if possible

13 years agoRedirect all mscorlib loads into assembly builder when compiling corlib
Marek Safar [Thu, 9 Dec 2010 12:20:16 +0000 (12:20 +0000)]
Redirect all mscorlib loads into assembly builder when compiling corlib

13 years agoFix parameter name
Marek Safar [Wed, 8 Dec 2010 20:02:45 +0000 (20:02 +0000)]
Fix parameter name

13 years agoAdd initial handling of missing assemblies
Marek Safar [Wed, 8 Dec 2010 18:41:23 +0000 (18:41 +0000)]
Add initial handling of missing assemblies

13 years agoAdd internal --runtime option
Marek Safar [Wed, 8 Dec 2010 17:17:22 +0000 (17:17 +0000)]
Add internal --runtime option

13 years agoAdd references loading trace
Marek Safar [Wed, 8 Dec 2010 11:32:17 +0000 (11:32 +0000)]
Add references loading trace

13 years agoRemoved check for generics on 1.1 runtime
Marek Safar [Wed, 8 Dec 2010 11:31:53 +0000 (11:31 +0000)]
Removed check for generics on 1.1 runtime

13 years agoUnify the rgctx/non-rgctx call emission functions in the JIT.
Zoltan Varga [Thu, 9 Dec 2010 14:14:38 +0000 (15:14 +0100)]
Unify the rgctx/non-rgctx call emission functions in the JIT.

13 years agoFix behavior of Partitioner.Create when more than one partition is requested and...
Jérémie Laval [Tue, 7 Dec 2010 17:58:22 +0000 (17:58 +0000)]
Fix behavior of Partitioner.Create when more than one partition is requested and used

13 years agoEnsure we always save the GState, not just when the context is flipped
Geoff Norton [Thu, 9 Dec 2010 05:46:48 +0000 (00:46 -0500)]
Ensure we always save the GState, not just when the context is flipped

13 years agoAvoid leaking our unwind ops when not populating the trampoline info
Geoff Norton [Wed, 8 Dec 2010 22:16:41 +0000 (17:16 -0500)]
Avoid leaking our unwind ops when not populating the trampoline info

13 years agoAvoid leaking the name buffer since we already resolve this below
Geoff Norton [Wed, 8 Dec 2010 21:24:00 +0000 (16:24 -0500)]
Avoid leaking the name buffer since we already resolve this below

13 years agoFix some memleaks under -v
Rodrigo Kumpera [Wed, 8 Dec 2010 21:19:46 +0000 (19:19 -0200)]
Fix some memleaks under -v

* mini.c: A monomac leak detector depends on -v
not leaking memory, so lets fix some of those.

13 years agoFix a memleak when returning SRE cattrs.
Rodrigo Kumpera [Wed, 8 Dec 2010 20:49:52 +0000 (18:49 -0200)]
Fix a memleak when returning SRE cattrs.

* reflection.c (lookup_custom_attr): Since we memdup
the returned cattr, we better mark it as not cached.

13 years agoHandle GTDs used as element or type arguments.
Rodrigo Kumpera [Wed, 8 Dec 2010 12:18:27 +0000 (10:18 -0200)]
Handle GTDs used as element or type arguments.

* verify.c (mono_type_is_valid_type_in_context):
Refuse a GTD if not at a root positision.

Fixes #656913

13 years agoMark runtime invoke wrappers as pinvoke, since they are called from native code.
Zoltan Varga [Wed, 8 Dec 2010 20:36:06 +0000 (21:36 +0100)]
Mark runtime invoke wrappers as pinvoke, since they are called from native code.

13 years agoGet rid of the 'is_pinvoke' argument to get_call_info (), use sig->pinvoke instead.
Zoltan Varga [Wed, 8 Dec 2010 20:35:48 +0000 (21:35 +0100)]
Get rid of the 'is_pinvoke' argument to get_call_info (), use sig->pinvoke instead.