mono.git
13 years agoMerge branch 'master' of github.com:mono/mono
Jonathan Pobst [Tue, 7 Sep 2010 02:59:48 +0000 (21:59 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoNormalize line endings.
Jonathan Pobst [Tue, 7 Sep 2010 02:59:26 +0000 (21:59 -0500)]
Normalize line endings.

13 years agoFix build.
Rodrigo Kumpera [Mon, 6 Sep 2010 21:15:48 +0000 (18:15 -0300)]
Fix build.

* bug-348522.2.cs: gmcs now complains about a thinko here.

13 years agoFix 64bits builds.
Rodrigo Kumpera [Mon, 6 Sep 2010 21:15:14 +0000 (18:15 -0300)]
Fix 64bits builds.

* sgen-cardtable.h (sgen_card_table_get_card_address): This
needs marking under SGEN_HAVE_OVERLAPPING_CARDS too.

13 years agoCheck for a parent extending a generic instantiation of the child.
Rodrigo Kumpera [Mon, 6 Sep 2010 21:07:24 +0000 (18:07 -0300)]
Check for a parent extending a generic instantiation of the child.

* class.c (mono_class_create_from_typedef): If if any parent
doesn't extend the generic instantiation.

Fixes #604270

13 years ago[mdoc-update] Clean up System.Object craziness in ILAsm generation.
Jonathan Pryor [Mon, 6 Sep 2010 20:12:37 +0000 (16:12 -0400)]
[mdoc-update] Clean up System.Object craziness in ILAsm generation.

The problem: ILAsm has 'object' as a keyword alias for System.Object, and
99.99% of the time should use 'object'...except in 'extends' declarations,
where it remains System.Object and not 'object'.

The solution: Have an ILFullMemberFormatter.WithinExtends "flag" which
controls whether we generate System.Object or object.

The problem: this is flaky as hell, and results 'class A:List<object>'
generating:

.class public auto ansi beforefieldinit MyList
extends System.Collections.Generic.List`1<System.Object>

This is wrong, as it should be List`1<object>, not List`1<System.Object>.
(At least, monodis(1) produces List`1<object>...)

So, instead of the craziness that is WithinExtends, just check check for
System.Object as the base type immediately after the 'extends' generation.  If
it's System.Object, keep it, otherwise call full.GetName() (and remove the
leading "class " that's generated from GetName).

13 years agoAdd regression test for #633248
Rodrigo Kumpera [Mon, 6 Sep 2010 18:41:15 +0000 (15:41 -0300)]
Add regression test for #633248

13 years agoProperly handle stack merges of leave.
Rodrigo Kumpera [Mon, 6 Sep 2010 17:58:08 +0000 (14:58 -0300)]
Properly handle stack merges of leave.

* verify.c (do_leave): Set the target of leave.

* verify.c (mono_method_verify): Merge the resulting empty
stack of a leave instruction with it's target.

Fixes #633248

13 years agoFix NetworkInterface marshaling size on OSX and avoid crash.
Atsushi Eno [Mon, 6 Sep 2010 07:29:26 +0000 (16:29 +0900)]
Fix NetworkInterface marshaling size on OSX and avoid crash.

13 years agoFix the build.
Zoltan Varga [Sun, 5 Sep 2010 18:29:01 +0000 (20:29 +0200)]
Fix the build.

13 years agoNew test for CultureInfoConverter.GetCultureName.
Carlos Alberto Cortez [Sun, 5 Sep 2010 03:50:01 +0000 (05:50 +0200)]
New test for CultureInfoConverter.GetCultureName.

* CultureInfoConverterTest.cs: New test for GetCultureName.

13 years agoImplement CultureInfoConverter.GetCultureName.
Carlos Alberto Cortez [Sun, 5 Sep 2010 03:36:59 +0000 (05:36 +0200)]
Implement CultureInfoConverter.GetCultureName.

* CultureInfoConverter.cs: Implement GetCultureName.

13 years agoRemove the NET_2_0 directives from CultureInfoConverter.cs
Carlos Alberto Cortez [Fri, 3 Sep 2010 04:26:12 +0000 (06:26 +0200)]
Remove the NET_2_0 directives from CultureInfoConverter.cs

* CultureInfoConverter.cs: Remove the NET_2_0 directive.

13 years agoAdd AttributeCollectionTest.cs to System_test.dll.sources.
Carlos Alberto Cortez [Fri, 3 Sep 2010 04:16:50 +0000 (06:16 +0200)]
Add AttributeCollectionTest.cs to System_test.dll.sources.

* System_test.dll.sources: Add AttributeCollectionTest.cs.

13 years agoAdd new AttributeCollectionTest file.
Carlos Alberto Cortez [Fri, 3 Sep 2010 04:16:08 +0000 (06:16 +0200)]
Add new AttributeCollectionTest file.

* AttributeCollectionTest.cs: New test file.

13 years agoAdd 4.0 Attributes property and protected ctor to AttributeCollection.
Carlos Alberto Cortez [Fri, 3 Sep 2010 04:12:46 +0000 (06:12 +0200)]
Add 4.0 Attributes property and protected ctor to AttributeCollection.

* AttributeCollection.cs: Add 4.0 Attributes property as well
as a new parameterless ctor.

13 years agoRemove the NET_2_0 directives from AttributeCollection.cs.
Carlos Alberto Cortez [Fri, 3 Sep 2010 03:42:12 +0000 (05:42 +0200)]
Remove the NET_2_0 directives from AttributeCollection.cs.

* AttributeCollection.cs: Remove the NET_2_0 directives, as well
as the else case for it (we are always NET_2_0 now).

13 years agoMerge branch 'sgen_cardtable_optimization_work'
Rodrigo Kumpera [Sat, 4 Sep 2010 20:33:39 +0000 (17:33 -0300)]
Merge branch 'sgen_cardtable_optimization_work'

13 years agoFix a race condition in barriers using cardtable.
Rodrigo Kumpera [Sat, 4 Sep 2010 20:26:28 +0000 (17:26 -0300)]
Fix a race condition in barriers using cardtable.

* sgen-gc.c: Introduce dummy_use function that forces
the compiler to keep a given value alive until the call
to it.

* sgen-gc.c (mono_gc_wbarrier_set_field): Use dummy_use to
avoid race condition between the store and the barrier.

* sgen-gc.c (mono_gc_wbarrier_set_arrayref): Ditto.

* sgen-gc.c (mono_gc_wbarrier_arrayref_copy): Ditto.

* sgen-gc.c (mono_gc_wbarrier_arrayref_copy): Ditto.

* sgen-gc.c (mono_gc_wbarrier_generic_store): Ditto.

This pattern of usage is the same we do with managed code
write barrier. The race condition is extremely race and
requires the thread to be interrupted in between the store
and the barrier, which is a very tiny narrow window.

13 years agoOptimize cardtable unmanaged array copy.
Rodrigo Kumpera [Sat, 4 Sep 2010 19:31:23 +0000 (16:31 -0300)]
Optimize cardtable unmanaged array copy.

* sgen-gc.c (mono_gc_wbarrier_arrayref_copy): Avoid locking
if using cardtables. Even thou the new code looks slower
than a plain memmove, it has the advantage of not taking
locks, which means it's much more scalable.

Array copy under sgen/cardtables was 1.6x slower than with
boehm. With this patch it reduces to 1.54x. The serial
performance speedup is nice, but it is much more helpfull
in multi-threaded workloads.

13 years agoFix a warning
Rodrigo Kumpera [Fri, 3 Sep 2010 19:17:06 +0000 (16:17 -0300)]
Fix a warning

13 years agoOptimize the cardtable path a bit more.
Rodrigo Kumpera [Fri, 3 Sep 2010 19:14:57 +0000 (16:14 -0300)]
Optimize the cardtable path a bit more.

* sgen-gc.c: Avoid taking locks for single pointer barriers.

13 years agoOptimize major cardtable scanning by about 15%.
Rodrigo Kumpera [Fri, 3 Sep 2010 18:39:28 +0000 (15:39 -0300)]
Optimize major cardtable scanning by about 15%.

* sgen-cardtable.c: Move a bunch of stuff to new header.

* sgen-cardtable.h: New header with functions meant to
be inlined.

* sgen-gc.c: Use new header.

* sgen-marksweep.c (major_scan_card_table): Introduce fast
version of some macros that avoid a few indirections.

13 years agoBetter cardtable stats gathering codebase.
Rodrigo Kumpera [Fri, 3 Sep 2010 18:38:36 +0000 (15:38 -0300)]
Better cardtable stats gathering codebase.

13 years agoAdd notes when to use cardtable and remset.
Rodrigo Kumpera [Fri, 3 Sep 2010 17:27:02 +0000 (14:27 -0300)]
Add notes when to use cardtable and remset.

13 years agoUse los scanning function for big objects on major heap.
Rodrigo Kumpera [Fri, 3 Sep 2010 17:03:49 +0000 (14:03 -0300)]
Use los scanning function for big objects on major heap.

* sgen-cardtable.c (sgen_cardtable_scan_object): The
source of the cardtable can now be supplied, this is needed
since major blocks can't use regular card checking code here.

* sgen-los.c (los_scan_card_table): Adjust to signature
change in sgen_cardtable_scan_object.

* sgen-marksweep.c (major_scan_card_table): If the block
size is larger than a card it makes more sense to loop
around objects and not cards since objects might be scanned
twice since a card can be shared between two of them.

In such case the cards of a block must be copied to a side
buffer since we are no longer looping one by one. This ia
a problem when two objects share a marked card as the first
can cause it to be left cleared and not have the second one
scanned.

Another advantage of this patch is that it enables partial
scanning of larger array in the major heap.

13 years agoMove core of los scanning into cardtable codebase.
Rodrigo Kumpera [Fri, 3 Sep 2010 14:17:42 +0000 (11:17 -0300)]
Move core of los scanning into cardtable codebase.

* sgen-los.c (los_scan_card_table): Move meat of
this function into a separate one.

* sgen-cardtable.c: New function sgen_cardtable_scan_object.

* sgen-gc.h: Add sgen_cardtable_scan_object.

13 years agoMicro optimize cardtable scanning
Rodrigo Kumpera [Fri, 3 Sep 2010 14:10:04 +0000 (11:10 -0300)]
Micro optimize cardtable scanning

* sgen-marksweep.c (major_scan_card_table): Don't load
some fields if the block has no references.

13 years agoAdd stats for cardtable processing time
Rodrigo Kumpera [Thu, 2 Sep 2010 21:59:11 +0000 (18:59 -0300)]
Add stats for cardtable processing time

13 years agoFix return value of items_read
Gonzalo Paniagua Javier [Sat, 4 Sep 2010 18:24:54 +0000 (14:24 -0400)]
Fix return value of items_read

items_read was not being initialized and it was not being set in the
fast common case of g_utf8_to_utf16().

13 years agoFixed GetLogicalDriveString
Gonzalo Paniagua Javier [Sat, 4 Sep 2010 18:02:17 +0000 (14:02 -0400)]
Fixed GetLogicalDriveString

When calling GetLogicalDriveString, icall.c was passing the
length in the wrong units.

GetLogicalDriveString now translates any octal sequence found
into its corresponding byte. Use the UTF16 length
('items_written') instead of the UTF8 input string length
('items_read') when computing the total size.

13 years ago[mdoc-update] Properly map System.IntPtr to 'native int' for ILAsm.
Jonathan Pryor [Sat, 4 Sep 2010 16:57:42 +0000 (12:57 -0400)]
[mdoc-update] Properly map System.IntPtr to 'native int' for ILAsm.

Similarly, System.UIntPtr maps to 'native unsigned int'.

13 years ago[mdoc-update] Add support ILAsm language output.
Jonathan Pryor [Sat, 4 Sep 2010 02:02:58 +0000 (22:02 -0400)]
[mdoc-update] Add support ILAsm language output.

13 years ago[mdoc-update] Add support for multiple languages in type/member signatures.
Jonathan Pryor [Fri, 3 Sep 2010 15:04:29 +0000 (11:04 -0400)]
[mdoc-update] Add support for multiple languages in type/member signatures.

We're planning on adding IL signature support for <TypeSignature/> and
<MemberSignature/>, so having arrays of MemberFormatters instead of having
single instances of them will make supporting IL output easier.

13 years agoUse UTF8 instead of ASCII when reading mount info
Gonzalo Paniagua Javier [Fri, 3 Sep 2010 21:26:16 +0000 (17:26 -0400)]
Use UTF8 instead of ASCII when reading mount info

This allows for mount points with UTF8 characters in them.

13 years agoLinux /proc/mounts might have escaped characters
Gonzalo Paniagua Javier [Fri, 3 Sep 2010 20:01:42 +0000 (16:01 -0400)]
Linux /proc/mounts might have escaped characters

Translate escaped characters in mount paths.

Fixes bug #637078.

13 years agoAllow ordinal entry points in windows.
Gonzalo Paniagua Javier [Fri, 3 Sep 2010 18:58:50 +0000 (14:58 -0400)]
Allow ordinal entry points in windows.

Windows allows entry point names like "#10" which refer to the Nth
function (n > 1 and less than the highest ordinal value in the .def
file).

Fixes bug #636966.

13 years agoFix a crash when the signature of the Main method could not be loaded. Fixes #636794.
Zoltan Varga [Fri, 3 Sep 2010 17:17:41 +0000 (19:17 +0200)]
Fix a crash when the signature of the Main method could not be loaded. Fixes #636794.

13 years agoOngoing Discovery duplex (UDP) implementation (not working yet).
Atsushi Eno [Fri, 3 Sep 2010 09:45:15 +0000 (18:45 +0900)]
Ongoing Discovery duplex (UDP) implementation (not working yet).

13 years agoRemove workaround for moonlight now that System.dll's WebExceptionStatus is properly...
Jb Evain [Fri, 3 Sep 2010 09:30:58 +0000 (11:30 +0200)]
Remove workaround for moonlight now that System.dll's WebExceptionStatus is properly compiled

13 years agoFix the visiblity of WebExceptionStatus for moonlight in the same way as WebException
Jb Evain [Fri, 3 Sep 2010 09:29:32 +0000 (11:29 +0200)]
Fix the visiblity of WebExceptionStatus for moonlight in the same way as WebException

13 years agoFix another non-null RemoteAddress dependency.
Atsushi Eno [Fri, 3 Sep 2010 07:18:59 +0000 (16:18 +0900)]
Fix another non-null RemoteAddress dependency.

13 years agoAdd some argument check. RemoteAddress could be null for callback client runtime...
Atsushi Eno [Fri, 3 Sep 2010 06:14:32 +0000 (15:14 +0900)]
Add some argument check. RemoteAddress could be null for callback client runtime channel.

13 years ago[fix] #512136: Invalidate the selection border in ListBox when scrolling.
Carlos Alberto Cortez [Tue, 31 Aug 2010 08:05:43 +0000 (10:05 +0200)]
[fix] #512136: Invalidate the selection border in ListBox when scrolling.

* ListBox.cs: Invalidate the selection border when horizontally
scrolling - the call to ScrollWindow is not enough, so we need
to update by ourselves the new margin of the selection border by
a quite small offset.
Fixes #512136.

13 years ago[fix] #581287: Use menu color to paint the background of NotifyIcon.
Carlos Alberto Cortez [Tue, 31 Aug 2010 07:31:50 +0000 (09:31 +0200)]
[fix] #581287: Use menu color to paint the background of NotifyIcon.

* NotifyIcon.cs: Use SystemColors.Menu to paint the background
of the control, since at least in gnome the menu and the panel
share the back color (unfortunately we can't just leave the rectangle
transparent, as some window managers use a default white).
Fixes #581287.

13 years ago[fix] #624915: Check the valid range of the value of the vertical scroll in TreeView.
Tom Hindle [Mon, 30 Aug 2010 23:38:06 +0000 (01:38 +0200)]
[fix] #624915: Check the valid range of the  value of the vertical scroll in TreeView.

* TreeView.cs: Create a new method to check that the new valid
for the vertical scroll is in the valid range - this is
specially important when the size of the TreeView can show less
than one element.
Fixes #624915.

13 years agoCosmetic exception type change and suppress test failures.
Atsushi Eno [Fri, 3 Sep 2010 01:12:13 +0000 (10:12 +0900)]
Cosmetic exception type change and suppress test failures.

13 years ago[mdoc-update-ecma-xml] Assembly [CLSCompliant] shouldn't replace Type version.
Jonathan Pryor [Thu, 2 Sep 2010 21:34:19 +0000 (17:34 -0400)]
[mdoc-update-ecma-xml] Assembly [CLSCompliant] shouldn't replace Type version.

If a type has e.g. [CLSCompliant(false)], then the Assembly's
[CLSCompliant(true)] shouldn't replace it.

13 years ago[mdoc-export-ecma-xml] Generate [CLSCompliant] attribute on types.
Jonathan Pryor [Thu, 2 Sep 2010 21:31:13 +0000 (17:31 -0400)]
[mdoc-export-ecma-xml] Generate [CLSCompliant] attribute on types.

If the assembly has [CLSCompliant], then "forward" that to the type.

13 years ago[mdoc-update] Generate an index.xml file when --type is used.
Jonathan Pryor [Thu, 2 Sep 2010 21:16:58 +0000 (17:16 -0400)]
[mdoc-update] Generate an index.xml file when --type is used.

(Yet another "Let's help ECMA!" fix...)

For performance reasons, I want to use this workflow:

mdoc x-msitomsx -o slashdocs msidocs --type=A
mdoc update -o docs -i slashdocs/mscorlib.xml mscorlib.dll --type=A
mdoc update-ecma-xml -o CLILibraryTypes.xml --type=A

That is, have a consistent set of --type=TYPEs that are passed between the
three apps.  I want to do this because otherwise 'mdoc update' takes
12 minutes to process the assemblies I need; with this approach, it takes
12 seconds.

Unfortunately, 'mdoc update-ecma-xml' needs an index.xml so it can obtain
assembly-level custom attributes, and 'mdoc update --type...' wasn't creating
an index.xml file.

Doh!

Fix: IFF docs/index.xml is NOT present, create a docs/index.xml file which
contains ONLY the types & namespaces that were encountered.

If docs/index.xml IS present, it's unchanged.

This fix allows the above workflow to Just Work, while maintaining the other
"I know this type has been updated, let's not process the entire assembly"
workflow that --type allows.

13 years ago[mdoc-update] Add -fignore-missing-types option.
Jonathan Pryor [Thu, 2 Sep 2010 20:34:44 +0000 (16:34 -0400)]
[mdoc-update] Add -fignore-missing-types option.

This prevents an error if you specify a --type=TYPE and TYPE wasn't found
within the assembly you're updating.

I'm adding this so that I can have a single unified types.response file for
all types we're adding for ECMA (which contains types from several assemblies)
without getting an error when running 'mdoc update' against the source
assemblies.

13 years ago[mdoc-update] Add --help text for --exceptions=added.
Jonathan Pryor [Thu, 2 Sep 2010 20:24:01 +0000 (16:24 -0400)]
[mdoc-update] Add --help text for --exceptions=added.

13 years ago[mdoc-x-msitomsx] Ignore <platformNotes/>, <sections/>, etc.
Jonathan Pryor [Thu, 2 Sep 2010 18:46:38 +0000 (14:46 -0400)]
[mdoc-x-msitomsx] Ignore <platformNotes/>, <sections/>, etc.

With this, we convert the mscorlib types that we care about w/o validation
errors.  Hurrah!

13 years ago[mdoc-x-msitomsx] Support legacy and external links.
Jonathan Pryor [Thu, 2 Sep 2010 18:41:13 +0000 (14:41 -0400)]
[mdoc-x-msitomsx] Support legacy and external links.

<externalLink/> is mapped to an HTML <a/> (and thus a
<format type="text/html"/> wrapper), while <legacyLink/> is just italicized.

13 years agoFix <embeddedLabel/>, add <i/> as a valid <para/> child.
Jonathan Pryor [Thu, 2 Sep 2010 18:36:35 +0000 (14:36 -0400)]
Fix <embeddedLabel/>, add <i/> as a valid <para/> child.

<embeddedLabel/> was skipping the content, resulting in <i>:</i>.  Oops.

And since <embeddedLabel/> generates <i/>, validation was failing within
<para/>, so add it.

13 years ago[mdoc-x-msitomsx] Additional <token/> replacement values.
Jonathan Pryor [Thu, 2 Sep 2010 18:34:39 +0000 (14:34 -0400)]
[mdoc-x-msitomsx] Additional <token/> replacement values.

13 years ago[mdoc-x-msitomsx] Support <embeddedLabel/>, additional <token/> values.
Jonathan Pryor [Thu, 2 Sep 2010 18:32:10 +0000 (14:32 -0400)]
[mdoc-x-msitomsx] Support <embeddedLabel/>, additional <token/> values.

13 years ago[mdoc-x-msitomsx] Convert <notesForInheritors/> elements into <block/>s.
Jonathan Pryor [Thu, 2 Sep 2010 18:18:52 +0000 (14:18 -0400)]
[mdoc-x-msitomsx] Convert <notesForInheritors/> elements into <block/>s.

13 years ago[mdoc-x-msitomsx] Improve <example/> generation so it validates.
Jonathan Pryor [Thu, 2 Sep 2010 18:07:56 +0000 (14:07 -0400)]
[mdoc-x-msitomsx] Improve <example/> generation so it validates.

We were getting a <description/> element which should be skipped.

13 years agoPlace ignored elements together for consistency.
Jonathan Pryor [Thu, 2 Sep 2010 18:00:42 +0000 (14:00 -0400)]
Place ignored elements together for consistency.

13 years ago[mdoc-x-msitomsx] Ignore <internalOnly/>.
Jonathan Pryor [Thu, 2 Sep 2010 17:59:25 +0000 (13:59 -0400)]
[mdoc-x-msitomsx] Ignore <internalOnly/>.

13 years ago[mdoc] Generate <threadsafe/> from <threadSafety/>.
Jonathan Pryor [Thu, 2 Sep 2010 17:46:24 +0000 (13:46 -0400)]
[mdoc] Generate <threadsafe/> from <threadSafety/>.

We also need to update monodoc-ecma.xsd so that multiple <para/>s are valid
within <threadsafe/>; otherwise, we report validation errors on the
'mdoc x-msitomsx' output.

13 years ago[mdoc-x-msitomsx] Add support for converting <list/>s.
Jonathan Pryor [Thu, 2 Sep 2010 17:36:46 +0000 (13:36 -0400)]
[mdoc-x-msitomsx] Add support for converting <list/>s.

13 years ago[mdoc-x-msitomsx] Import <notesForImplementers/> and <notesForCallers/>.
Jonathan Pryor [Thu, 2 Sep 2010 17:32:19 +0000 (13:32 -0400)]
[mdoc-x-msitomsx] Import <notesForImplementers/> and <notesForCallers/>.

In the original XML, these are sibling elements to <remarks/>, but they need
to be imported as children of <remarks/> as <block/> is the closest matching
element, and <block/> is a child of <remarks/>.

13 years ago[mdoc-x-msitomsx] Ignore <clsCompliantAlternative/> elements.
Jonathan Pryor [Thu, 2 Sep 2010 17:16:47 +0000 (13:16 -0400)]
[mdoc-x-msitomsx] Ignore <clsCompliantAlternative/> elements.

13 years ago[mdoc-x-msitomsx] Replace <token/> with literal text.
Jonathan Pryor [Thu, 2 Sep 2010 17:15:06 +0000 (13:15 -0400)]
[mdoc-x-msitomsx] Replace <token/> with literal text.

13 years ago[mdoc-x-msitomsx] Mutate <permission/> elements.
Jonathan Pryor [Thu, 2 Sep 2010 17:05:30 +0000 (13:05 -0400)]
[mdoc-x-msitomsx] Mutate <permission/> elements.

13 years ago[mdoc-x-msitomsx] Generate <block/> from <alert/>.
Jonathan Pryor [Thu, 2 Sep 2010 17:01:56 +0000 (13:01 -0400)]
[mdoc-x-msitomsx] Generate <block/> from <alert/>.

13 years ago[mdoc-x-msitomsx] Generate <typeparam/> from <genericParameters/>.
Jonathan Pryor [Thu, 2 Sep 2010 16:26:50 +0000 (12:26 -0400)]
[mdoc-x-msitomsx] Generate <typeparam/> from <genericParameters/>.

13 years agoMake sure that Resources/msitomsx.xsl is distributed.
Jonathan Pryor [Thu, 2 Sep 2010 16:23:47 +0000 (12:23 -0400)]
Make sure that Resources/msitomsx.xsl is distributed.

13 years ago[mdoc-validate] Add support for validating 'csc /doc' XML.
Jonathan Pryor [Thu, 2 Sep 2010 16:18:00 +0000 (12:18 -0400)]
[mdoc-validate] Add support for validating 'csc /doc' XML.

This will help in determining which elements I'm not converting within
'mdoc x-msitomsx'.

13 years ago[mdoc-x-msitomsx] Ignore <changeHistory/>, <relatedTopics/>.
Jonathan Pryor [Thu, 2 Sep 2010 16:02:21 +0000 (12:02 -0400)]
[mdoc-x-msitomsx] Ignore <changeHistory/>, <relatedTopics/>.

13 years ago[mdoc-x-msitomsx] Map <codeInline/> to <c/>, <codeReference/> to <code/>.
Jonathan Pryor [Thu, 2 Sep 2010 15:06:21 +0000 (11:06 -0400)]
[mdoc-x-msitomsx] Map <codeInline/> to <c/>, <codeReference/> to <code/>.

13 years ago[mdoc-x-msitomsx] Generate <seealso/> from <equivalentCodeEntity/>.
Jonathan Pryor [Thu, 2 Sep 2010 14:52:53 +0000 (10:52 -0400)]
[mdoc-x-msitomsx] Generate <seealso/> from <equivalentCodeEntity/>.

13 years ago[mdoc-x-msitomsx] Add <table/> conversion support.
Jonathan Pryor [Thu, 2 Sep 2010 14:46:56 +0000 (10:46 -0400)]
[mdoc-x-msitomsx] Add <table/> conversion support.

13 years ago[mdoc-x-msitomsx] Generate a /doc/assembly/name attribute.
Jonathan Pryor [Thu, 2 Sep 2010 14:16:31 +0000 (10:16 -0400)]
[mdoc-x-msitomsx] Generate a /doc/assembly/name attribute.

This is so our generated XML files more closely match 'csc /doc' format.

13 years ago[mdoc-update] Add --library=VALUE option.
Jonathan Pryor [Thu, 2 Sep 2010 14:10:21 +0000 (10:10 -0400)]
[mdoc-update] Add --library=VALUE option.

This is so that we can share response files between 'mdoc x-msitomsx',
'mdoc update', and 'mdoc update-ecma-xml', thus ensuring that only
the types we care about are imported and processed.

13 years ago[mdoc-x-msitomsx] Flush --help documentation.
Jonathan Pryor [Thu, 2 Sep 2010 13:48:51 +0000 (09:48 -0400)]
[mdoc-x-msitomsx] Flush --help documentation.

13 years ago[mdoc] Add "internal" 'mdoc x-msitomsx' command.
Jonathan Pryor [Thu, 2 Sep 2010 03:12:03 +0000 (23:12 -0400)]
[mdoc] Add "internal" 'mdoc x-msitomsx' command.

The 'mdoc x-msitomsx' command converts a Microsoft internal XML dialect into
Microsoft XML Documentation format (e.g. what 'mdoc export-msxdoc' generates).

The 'mdoc x-msitomsx' command is internal, i.e. 'mdoc help' won't list it,
as this format is completely internal to Microsoft (and likely subject to
change without notice); this command only exists to help facilitate the ECMA
standardization process, converting Microsoft's existing (internal)
documentation into a format usable by the ECMA committee.

13 years ago[mdoc-update] Refactor out Microsoft XML Documentation import.
Jonathan Pryor [Wed, 1 Sep 2010 19:56:14 +0000 (15:56 -0400)]
[mdoc-update] Refactor out Microsoft XML Documentation import.

Another side effect of having the DocumentationImporter abstraction is that
we're no longer limited to importing from either ECMA XML, Microsoft XML, or
both; we can now import from arbitrarily many Microsoft XML sources.

(Arbitrarily many ECMA XML sources likely won't work, at present, since the
ECMA XML file controls type + member enumeration, but I don't think this will
be needed any time soon...)

13 years ago[mdoc-update] Refactor out ECMA XML import into EcmaDocumentationImporter.
Jonathan Pryor [Wed, 1 Sep 2010 18:00:45 +0000 (14:00 -0400)]
[mdoc-update] Refactor out ECMA XML import into EcmaDocumentationImporter.

Victory for less spaghetti code...

13 years agoReturn IPv6 addresses
Gonzalo Paniagua Javier [Thu, 2 Sep 2010 21:21:37 +0000 (17:21 -0400)]
Return IPv6 addresses

We were not returning IPv6 addresses if there was no IPv6 configured
interface. Now we will return those addresses if ipv6 is enabled by
configuration.

Fixes bug #636517.

13 years agoEnsure OnUploadProgressChanged is called on the right thread
Sebastien Pouliot [Thu, 2 Sep 2010 20:16:13 +0000 (16:16 -0400)]
Ensure OnUploadProgressChanged is called on the right thread

* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Use sync_context to
post the call to OnUploadProgressChanged

13 years agoDuring inlining, verify the method before producing locals.
Rodrigo Kumpera [Wed, 1 Sep 2010 20:13:03 +0000 (17:13 -0300)]
During inlining, verify the method before producing locals.

* method-to-ir.c (inline_method): We verify the inlined method
before variables are created for locals since this can assert.
Some check on locals are only done by the IL verifier so it's
not enough to just check if the header decoded fine.

* mini.c (mini_method_verify): Add parameter telling if we
should fail the compile or not.

* mini.c (mono_compile_is_broken): Pass the method explicitly
as it now can be diferent than cfg->method.

* mini.h: Export mono_compile_is_broken instead of
mini_method_verify.

Fixes #560200

13 years agoVerify locals when checking a method header.
Rodrigo Kumpera [Wed, 1 Sep 2010 20:11:29 +0000 (17:11 -0300)]
Verify locals when checking a method header.

* metadata-verify.c (mono_verifier_verify_method_header): If
the header has a locals token, verify the corresponding row
in the standalonesig table.

13 years agoRepeat UDP message sending, and do not process duplicate messages received. Makes...
Atsushi Eno [Thu, 2 Sep 2010 16:48:27 +0000 (01:48 +0900)]
Repeat UDP message sending, and do not process duplicate messages received. Makes UDP transmit robust.

13 years agoDo not set the exception to NotSupportedException for denied headers
Sebastien Pouliot [Thu, 2 Sep 2010 15:11:19 +0000 (11:11 -0400)]
Do not set the exception to NotSupportedException for denied headers

* mcs/class/System.Net/System.Net.Policy/ClientAccessPolicy.cs: Do not
throw a NotSupportedException here since it regress some DRT (like 656).
The (hopefully) correct fix (for DRT3001) will be committed inside moon

13 years ago[Fix] fix regression in Delegate.CreateDelegate
Jb Evain [Thu, 2 Sep 2010 13:59:58 +0000 (15:59 +0200)]
[Fix] fix regression in Delegate.CreateDelegate

2ec0ab59fe4aecf5507a81846a66de1a658bbfd2 caused a regression in
Create.Delegate where the overload which doesn't take a firstArgument
could be used to create closed over null delegates while this
overload doesn't allow it.

13 years agoAdd a test for the regression to Delegate.CreateDelegate triggered by 2ec0ab59fe4aecf...
Jb Evain [Thu, 2 Sep 2010 13:58:20 +0000 (15:58 +0200)]
Add a test for the regression to Delegate.CreateDelegate triggered by 2ec0ab59fe4aecf5507a81846a66de1a658bbfd2

13 years agomoonlight build workaround: smcs somehow rejects to compile this code.
Atsushi Eno [Thu, 2 Sep 2010 12:53:09 +0000 (21:53 +0900)]
moonlight build workaround: smcs somehow rejects to compile this code.

13 years agoAdd some comments about the current state of the precise stack scanning code.
Zoltan Varga [Thu, 2 Sep 2010 12:06:11 +0000 (14:06 +0200)]
Add some comments about the current state of the precise stack scanning code.

13 years ago[Plinq] Force strict parallelism in all PLinq unit tests
Jérémie Laval [Thu, 2 Sep 2010 10:11:50 +0000 (11:11 +0100)]
[Plinq] Force strict parallelism in all PLinq unit tests

13 years ago[PLinq] Check ExecutionMode before executing sequentially
Jérémie Laval [Thu, 2 Sep 2010 10:11:26 +0000 (11:11 +0100)]
[PLinq] Check ExecutionMode before executing sequentially

13 years ago[PLinq] Add automatic sequential processing of query
Jérémie Laval [Thu, 2 Sep 2010 09:35:08 +0000 (10:35 +0100)]
[PLinq] Add automatic sequential processing of query

13 years ago[PLinq] Add the plumbery for checking source data size when possible and setting...
Jérémie Laval [Thu, 2 Sep 2010 09:21:25 +0000 (10:21 +0100)]
[PLinq] Add the plumbery for checking source data size when possible and setting ShouldBeSequential appropriately

13 years ago[PLinq] Sanitize QueryOptions to use property everywhere and add ShouldBeSequential...
Jérémie Laval [Thu, 2 Sep 2010 09:20:08 +0000 (10:20 +0100)]
[PLinq] Sanitize QueryOptions to use property everywhere and add ShouldBeSequential option.

13 years agoRevert "[PLinq] Honor WithDegreeOfParallelism if present"
Jérémie Laval [Wed, 1 Sep 2010 13:47:18 +0000 (14:47 +0100)]
Revert "[PLinq] Honor WithDegreeOfParallelism if present"

This reverts commit 59260b1df7d7ddfeb38cd616b883755d49e150c2.

The degree of parallelism value was actually already registered somewhere else.

13 years agoClose AnnouncementService in the test cases. Assert that relevant ports become available.
Atsushi Eno [Thu, 2 Sep 2010 09:24:51 +0000 (18:24 +0900)]
Close AnnouncementService in the test cases. Assert that relevant ports become available.

13 years agoThrow EndpointNotFoundException when it cannot connect to the remote server.
Atsushi Eno [Thu, 2 Sep 2010 03:04:29 +0000 (12:04 +0900)]
Throw EndpointNotFoundException when it cannot connect to the remote server.

13 years agoEnable system aot by default only on x86/amd64 linux.
Zoltan Varga [Wed, 1 Sep 2010 22:43:20 +0000 (00:43 +0200)]
Enable system aot by default only on x86/amd64 linux.