mono.git
10 years agoSqlBulkCopy Implementation
Craig Morris [Fri, 11 Oct 2013 19:54:49 +0000 (12:54 -0700)]
SqlBulkCopy Implementation

This are the code changes to get the SqlBulkCopy procedure working on
mono.

10 years ago[mono-api-html] Output nested type correctly (was missing the declaring type name)
Sebastien Pouliot [Fri, 11 Oct 2013 15:05:02 +0000 (11:05 -0400)]
[mono-api-html] Output nested type correctly (was missing the declaring type name)

10 years agoThe first definite assignment cleanup
Marek Safar [Fri, 11 Oct 2013 13:28:54 +0000 (15:28 +0200)]
The first definite assignment cleanup

10 years ago[regalloc2] Handle sreg3.
Mark Probst [Thu, 10 Oct 2013 23:54:26 +0000 (16:54 -0700)]
[regalloc2] Handle sreg3.

10 years ago[regalloc2] Lazily allocate intervals.
Mark Probst [Thu, 10 Oct 2013 23:47:33 +0000 (16:47 -0700)]
[regalloc2] Lazily allocate intervals.

10 years agoMerge pull request #777 from nealef/master
Rodrigo Kumpera [Thu, 10 Oct 2013 18:44:45 +0000 (11:44 -0700)]
Merge pull request #777 from nealef/master

Remove debug message

10 years agoRemove debug message
Neale Ferguson [Thu, 10 Oct 2013 18:37:43 +0000 (14:37 -0400)]
Remove debug message

10 years agoMerge pull request #776 from nealef/master
Rodrigo Kumpera [Thu, 10 Oct 2013 18:26:54 +0000 (11:26 -0700)]
Merge pull request #776 from nealef/master

Fix memory leaks in Oracle Client. The largest leaks come from the curso...

10 years agoFix memory leaks in Oracle Client. The largest leaks come from the cursors being...
Neale Ferguson [Thu, 10 Oct 2013 17:17:17 +0000 (13:17 -0400)]
Fix memory leaks in Oracle Client. The largest leaks come from the cursors being created but never freed in OracleParameter.cs. The size of the memory used by these cursors varies from tens to thousands of bytes depending on the statement being executed. Several hours of transactions can lead to OOM errors. The other fixes are relatively minor but they do clean up other unmanaged memory not being returned.

10 years agobxc#13642: MacNetworkChange: implement using managed code
Aaron Bockover [Thu, 10 Oct 2013 16:35:02 +0000 (12:35 -0400)]
bxc#13642: MacNetworkChange: implement using managed code

The previous version used SCNetworkReachability
in C inside libMonoPosixHelper. This was less
than ideal and made it more problematic for
supporting iOS as it doesn't actually link
MPH in.

Rewrite using P/Invokes directly into the
SCNetworkReachability APIs for Mac OS X and
iOS.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=13642
for iOS and Mac OS X.

10 years agoCompound assignment of optimized binary constant needs to decompose it first. Fixes...
Marek Safar [Thu, 10 Oct 2013 14:05:59 +0000 (16:05 +0200)]
Compound assignment of optimized binary constant needs to decompose it first. Fixes #15315

10 years agoBetter debugger visualization for .net 1.1 style custom collections
Marek Safar [Thu, 10 Oct 2013 10:10:06 +0000 (12:10 +0200)]
Better debugger visualization for .net 1.1 style custom collections

10 years ago[mono-api-html] Output C# 'char' instead of 'System.Char'
Sebastien Pouliot [Thu, 10 Oct 2013 12:11:50 +0000 (08:11 -0400)]
[mono-api-html] Output C# 'char' instead of 'System.Char'

10 years ago[mono-api-html] Do not produce (near-)empty files when no (public) changes are detected
Sebastien Pouliot [Thu, 10 Oct 2013 12:10:44 +0000 (08:10 -0400)]
[mono-api-html] Do not produce (near-)empty files when no (public) changes are detected

10 years agoEnsure that CodeDom generated temporary directory is always created. Fixes #12202
Marek Safar [Thu, 10 Oct 2013 09:22:03 +0000 (11:22 +0200)]
Ensure that CodeDom generated temporary directory is always created. Fixes #12202

10 years ago[mono-api-html] Show 'static' fields as such
Sebastien Pouliot [Thu, 10 Oct 2013 00:59:21 +0000 (20:59 -0400)]
[mono-api-html] Show 'static' fields as such

10 years agoProcess/compare/output method's generic parameters [#15311]
Sebastien Pouliot [Thu, 10 Oct 2013 00:30:58 +0000 (20:30 -0400)]
Process/compare/output method's generic parameters [#15311]

10 years agoAnonymous type are shared across module hence need module counters.
Marek Safar [Wed, 9 Oct 2013 18:00:33 +0000 (20:00 +0200)]
Anonymous type are shared across module hence need module counters.

10 years agoFix net_2_0 test.
Rodrigo Kumpera [Wed, 9 Oct 2013 16:58:44 +0000 (12:58 -0400)]
Fix net_2_0 test.

10 years agoMerge pull request #775 from directhex/fix-gendarme-doc-generation
Jonathan Pryor [Wed, 9 Oct 2013 15:07:05 +0000 (08:07 -0700)]
Merge pull request #775 from directhex/fix-gendarme-doc-generation

[monodoc] Ensure we don't try to use <Parameters/> when it might be null. Fixes Gendarme doc generation.

10 years ago[monodoc] Support fields that match operator naming convention
Jo Shields [Wed, 9 Oct 2013 14:02:35 +0000 (16:02 +0200)]
[monodoc] Support fields that match operator naming convention

10 years ago[monodoc] Add a test for ba222d4eb939ef097dd2b77b1fea5c3b8a60b310
Jo Shields [Wed, 9 Oct 2013 13:57:47 +0000 (15:57 +0200)]
[monodoc] Add a test for ba222d4eb939ef097dd2b77b1fea5c3b8a60b310

10 years ago[monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendar...
Jo Shields [Wed, 9 Oct 2013 13:31:23 +0000 (15:31 +0200)]
[monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendarme doc generation.

10 years ago anonymous: move counters to TypeContainer
Marek Safar [Wed, 9 Oct 2013 12:27:19 +0000 (14:27 +0200)]
anonymous: move counters to TypeContainer

    With the anonymous counters on ModuleContainer,
    anonymous method and type names will be generated
    in a way that depends on the order of the sources
    passed to mcs. This can cause undesirable API
    and IL differences.

    Moving the counters to TypeContainer instead
    avoids this issue.

10 years agoEnum IConvertible can convert to same enum or System.Enum. Fixes #15289
Marek Safar [Wed, 9 Oct 2013 12:04:47 +0000 (14:04 +0200)]
Enum IConvertible can convert to same enum or System.Enum. Fixes #15289

10 years agoCleanup redundant code
Marek Safar [Wed, 9 Oct 2013 11:52:10 +0000 (13:52 +0200)]
Cleanup redundant code

10 years agoSimplify work item registration for internal work items
Marek Safar [Wed, 9 Oct 2013 10:51:16 +0000 (12:51 +0200)]
Simplify work item registration for internal work items

10 years agoRemove redundant initialization
Marek Safar [Wed, 9 Oct 2013 09:39:14 +0000 (11:39 +0200)]
Remove redundant initialization

10 years agoAllow to queue multicast delegates in thread-pool
Marek Safar [Wed, 9 Oct 2013 09:26:34 +0000 (11:26 +0200)]
Allow to queue multicast delegates in thread-pool

10 years agoRelease continuation ancestor before running. Fixes #15036
Marek Safar [Wed, 9 Oct 2013 08:43:41 +0000 (10:43 +0200)]
Release continuation ancestor before running. Fixes #15036

10 years agoAdds async type inference of void return type. Fixes #15238
Marek Safar [Tue, 8 Oct 2013 17:30:32 +0000 (19:30 +0200)]
Adds async type inference of void return type. Fixes #15238

10 years agoMake Task.Delay more reliable. Fixes #14585
Marek Safar [Tue, 8 Oct 2013 08:15:21 +0000 (10:15 +0200)]
Make Task.Delay more reliable. Fixes #14585

10 years ago[System.ComponentModel.DataAnnotations] Implemented EmailAddressAttribute.IsValid()
Jeffrey Stedfast [Mon, 7 Oct 2013 21:51:17 +0000 (17:51 -0400)]
[System.ComponentModel.DataAnnotations] Implemented EmailAddressAttribute.IsValid()

10 years agoElement() and Elements() could also reduce use of extraneous iterators.
Atsushi Eno [Mon, 7 Oct 2013 16:57:17 +0000 (01:57 +0900)]
Element() and Elements() could also reduce use of extraneous iterators.

10 years agoFallback to $LANG if $LC_ALL isn't set.
Jonathan Pryor [Mon, 7 Oct 2013 16:27:30 +0000 (12:27 -0400)]
Fallback to $LANG if $LC_ALL isn't set.

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15214

This is a regression introduced in be532638.

Xamarin.Android assumes that the $LANG environment variable can be
used to control System.Globalization.CultureInfo.CurrentCulture,
setting LANG based on the current Java locale.

This was broken in be532638 because $LANG was no longer being checked
to determine the default locale, as $LC_ALL was not set.

Fix the fallback logic so that $LANG is checked when $LC_ALL is not.

10 years agoreduce memory use on Attribute() caused by Attributes().
Atsushi Eno [Mon, 7 Oct 2013 16:25:51 +0000 (01:25 +0900)]
reduce memory use on Attribute() caused by Attributes().

10 years agoInline more is instance checks
Marek Safar [Mon, 7 Oct 2013 15:04:13 +0000 (17:04 +0200)]
Inline more is instance checks

10 years agoCache only resolved types not expression to report correct error location. Fixes...
Marek Safar [Mon, 7 Oct 2013 13:04:09 +0000 (15:04 +0200)]
Cache only resolved types not expression to report correct error location. Fixes #15035

10 years agoin XLinq XObject there is no need to instantiate XObjectEventArgs every time.
Atsushi Eno [Mon, 7 Oct 2013 12:32:10 +0000 (21:32 +0900)]
in XLinq XObject there is no need to instantiate XObjectEventArgs every time.

10 years agoMerge pull request #771 from madewokherd/rvamap
Zoltan Varga [Sun, 6 Oct 2013 04:12:58 +0000 (21:12 -0700)]
Merge pull request #771 from madewokherd/rvamap

For module handles, only check that rva's are within the image size.

10 years agoIgnore some asserts since the validation were removed
Sebastien Pouliot [Fri, 4 Oct 2013 21:08:48 +0000 (17:08 -0400)]
Ignore some asserts since the validation were removed

10 years agoFixBuild
Miguel de Icaza [Fri, 4 Oct 2013 20:59:36 +0000 (16:59 -0400)]
FixBuild

10 years agoBetter check for instance equality of generic types. Fixes #15100
Marek Safar [Fri, 4 Oct 2013 20:41:24 +0000 (16:41 -0400)]
Better check for instance equality of generic types. Fixes #15100

10 years agoFix some code issue warnings
Marek Safar [Thu, 3 Oct 2013 16:28:18 +0000 (12:28 -0400)]
Fix some code issue warnings

10 years ago[sgen] Use gcc bitcount intrinsics where appropriate.
Zoltan Varga [Fri, 4 Oct 2013 19:51:51 +0000 (15:51 -0400)]
[sgen] Use gcc bitcount intrinsics where appropriate.

10 years agoThis regex was wrong in the first place, and second, it uses CC code from Stackoverflow
Miguel de Icaza [Fri, 4 Oct 2013 19:47:22 +0000 (15:47 -0400)]
This regex was wrong in the first place, and second, it uses CC code from Stackoverflow

10 years agoRemove CodeProject licensed code
Miguel de Icaza [Fri, 4 Oct 2013 19:43:47 +0000 (15:43 -0400)]
Remove CodeProject licensed code

10 years agoAdd actual source
Miguel de Icaza [Fri, 4 Oct 2013 19:42:49 +0000 (15:42 -0400)]
Add actual source

10 years agoFix inacurrate reference
Miguel de Icaza [Fri, 4 Oct 2013 19:39:03 +0000 (15:39 -0400)]
Fix inacurrate reference

10 years agoFor module handles, only check that rva's are within the image size.
Vincent Povirk [Fri, 4 Oct 2013 18:26:32 +0000 (13:26 -0500)]
For module handles, only check that rva's are within the image size.

This commit licensed as MIT/X11.

10 years agoMerge pull request #770 from abock/master
Rodrigo Kumpera [Fri, 4 Oct 2013 16:55:00 +0000 (09:55 -0700)]
Merge pull request #770 from abock/master

mdbrebase: fix prefix replacement, add regex & filename modes

10 years agomdbrebase: fix prefix replacement, add regex & filename modes
Aaron Bockover [Fri, 4 Oct 2013 14:26:24 +0000 (10:26 -0400)]
mdbrebase: fix prefix replacement, add regex & filename modes

Existing prefix replacement was incorrect as
it tested for a prefix but performed a multi
search and replace instead of just a prefix
replace. Fix that.

Add -r|--regex mode to indicate that path
replacement should be performed with regular
expressions.

Add -f|--filename mode to indicate that
replacements should be performed only on
a file name and not the full absolute path.

Add -v|--verbose mode to print the replacements
that are performed.

10 years ago[mdoc] Fix output of GenericParameter (Cecil now overrides DeclaringType since 60ce19...
Sebastien Pouliot [Fri, 4 Oct 2013 01:59:41 +0000 (21:59 -0400)]
[mdoc] Fix output of GenericParameter (Cecil now overrides DeclaringType since 60ce19429e9cfaa770d72c2f395fdcdf11eb0f7b) not to include namespace (and match previous, correct, output)

10 years agoSupport deserializing relative Uris. Fixes #15169.
Jonathan Pryor [Thu, 3 Oct 2013 15:06:21 +0000 (11:06 -0400)]
Support deserializing relative Uris. Fixes #15169.

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15169

10 years agoFixes regression caused by 3912066fe1134ba665770723a24c8ea9b4f1aea3 change
Marek Safar [Thu, 3 Oct 2013 13:07:13 +0000 (09:07 -0400)]
Fixes regression caused by 3912066fe1134ba665770723a24c8ea9b4f1aea3 change

10 years agoMerge pull request #769 from schani/fix-exception-throw-signal
Rodrigo Kumpera [Wed, 2 Oct 2013 21:45:09 +0000 (14:45 -0700)]
Merge pull request #769 from schani/fix-exception-throw-signal

[x86] Fix bug when getting a signal while throwing exception.

10 years agoEmit better debugger attribute for stepping over state machine initialization
Marek Safar [Wed, 2 Oct 2013 21:29:12 +0000 (17:29 -0400)]
Emit better debugger attribute for stepping over state machine initialization

10 years agoUse more detailled assert messages in some, randomly failing, Timer unit tests (to...
Sebastien Pouliot [Wed, 2 Oct 2013 20:28:04 +0000 (16:28 -0400)]
Use more detailled assert messages in some, randomly failing, Timer unit tests (to help track #14305)

10 years ago[runtime] Save MonoTrampInfo structures in a list so mono_print_method_from_ip (...
Zoltan Varga [Wed, 2 Oct 2013 17:20:43 +0000 (13:20 -0400)]
[runtime] Save MonoTrampInfo structures in a list so mono_print_method_from_ip () would work on trampolines.

10 years ago[x86] Fix bug when getting a signal while throwing exception.
Mark Probst [Wed, 2 Oct 2013 14:58:53 +0000 (10:58 -0400)]
[x86] Fix bug when getting a signal while throwing exception.

10 years ago[AMD64] Fix bug when getting a signal while throwing exception.
Mark Probst [Wed, 2 Oct 2013 14:00:59 +0000 (07:00 -0700)]
[AMD64] Fix bug when getting a signal while throwing exception.

This is a very rarely occurring bug that's also still present on x86
and possibly other architectures, as well.

10 years agorevive XSLT standalone tests (which was broken because of dependency on too old nunit...
Atsushi Eno [Wed, 2 Oct 2013 14:04:44 +0000 (23:04 +0900)]
revive XSLT standalone tests (which was broken because of dependency on too old nunit and build profiles).

10 years ago[runtime] Fix a runtime test which got broken by the newly added methods to the Marsh...
Zoltan Varga [Wed, 2 Oct 2013 13:24:32 +0000 (09:24 -0400)]
[runtime] Fix a runtime test which got broken by the newly added methods to the Marshal class.

10 years ago[System]: Fix System.IO.Compression.CompressionLevel enum.
Martin Baulig [Tue, 1 Oct 2013 16:48:00 +0000 (12:48 -0400)]
[System]: Fix System.IO.Compression.CompressionLevel enum.

10 years agoRelax name check when deserializing a WindowsIdentity instance as the name can be...
Sebastien Pouliot [Tue, 1 Oct 2013 00:39:14 +0000 (20:39 -0400)]
Relax name check when deserializing a WindowsIdentity instance as the name can be empty (e.g. iOS7 simulator will hide the user name) [#12789]

10 years ago[mono-api-html] Better handling of generic types (so they can be simplified and displ...
Sebastien Pouliot [Mon, 30 Sep 2013 21:32:38 +0000 (17:32 -0400)]
[mono-api-html] Better handling of generic types (so they can be simplified and displayed correctly, e.g. for arrays)

10 years ago[mono-api-html] Fix ending quote for non-string fields
Sebastien Pouliot [Mon, 30 Sep 2013 21:31:50 +0000 (17:31 -0400)]
[mono-api-html] Fix ending quote for non-string fields

10 years agoAnonymous method with this access inside an iterator needs to initialize captured...
Marek Safar [Sun, 29 Sep 2013 21:56:23 +0000 (17:56 -0400)]
Anonymous method with this access inside an iterator needs to initialize captured this field from iterator's copy. Fixes #14926

10 years agoFix potential NRE and give better output for fields and some types
Sebastien Pouliot [Sat, 28 Sep 2013 17:06:35 +0000 (13:06 -0400)]
Fix potential NRE and give better output for fields and some types

10 years agoAdd ConsoleLoggerTest and fixed implementation to match .NET implementation.
Atsushi Eno [Sat, 28 Sep 2013 11:58:52 +0000 (20:58 +0900)]
Add ConsoleLoggerTest and fixed implementation to match .NET implementation.

10 years agoimplement some "new in 4.0" build event args types.
Atsushi Eno [Sat, 28 Sep 2013 11:57:50 +0000 (20:57 +0900)]
implement some "new in 4.0" build event args types.

10 years agoRevert "Allow workitems to startup faster and reduce polling thread interval in the...
Rodrigo Kumpera [Fri, 27 Sep 2013 23:51:54 +0000 (19:51 -0400)]
Revert "Allow workitems to startup faster and reduce polling thread interval in the threadpool."

This commit is causing unbound growth in the number of threads for a series of workloads.

It's leading a sgen test to crash with 800 tp threads around, which doesn't make sense on a
4 cores system with default TP configuration.

This reverts commit 3c347d5d3a9c58666ef33c96e28a16c751e59619.

10 years ago[Mono.Tuner] Remove unused field.
Rolf Bjarne Kvinge [Fri, 27 Sep 2013 13:03:23 +0000 (15:03 +0200)]
[Mono.Tuner] Remove unused field.

10 years agoAdd some "new in 4.0" API regarding build event args.
Atsushi Eno [Fri, 27 Sep 2013 11:02:14 +0000 (20:02 +0900)]
Add some "new in 4.0" API regarding build event args.

10 years ago[sdb] Fix decoding of nested structs. Fixes #14942.
Zoltan Varga [Fri, 27 Sep 2013 10:35:12 +0000 (12:35 +0200)]
[sdb] Fix decoding of nested structs. Fixes #14942.

10 years agoFix build.
Atsushi Eno [Fri, 27 Sep 2013 10:12:54 +0000 (19:12 +0900)]
Fix build.

I forgot to save buffer, build, then save, then committed :(

10 years agoDrop the System.Enum and System.ValueType for enum and struct.
Sebastien Pouliot [Thu, 26 Sep 2013 20:17:15 +0000 (16:17 -0400)]
Drop the System.Enum and System.ValueType for enum and struct.

10 years agoAdd a new tool to produce HTML diff of assemblies similar to what Xamarin.iOS has...
Sebastien Pouliot [Thu, 26 Sep 2013 19:41:16 +0000 (15:41 -0400)]
Add a new tool to produce HTML diff of assemblies similar to what Xamarin.iOS has been producing

10 years agoimplement some primary members of ConsoleLogger (and FileLogger).
Atsushi Eno [Thu, 26 Sep 2013 16:54:41 +0000 (01:54 +0900)]
implement some primary members of ConsoleLogger (and FileLogger).

10 years ago[MacProxy] Initialize err to IntPtr.Zero before calling CFNetworkCopyProxiesForAutoCo...
Jeffrey Stedfast [Thu, 26 Sep 2013 16:27:12 +0000 (12:27 -0400)]
[MacProxy] Initialize err to IntPtr.Zero before calling CFNetworkCopyProxiesForAutoConfigurationScript

10 years ago[sdb] Fix a race in the sdb tests exposed by the recent threadpool changes.
Zoltan Varga [Thu, 26 Sep 2013 11:02:30 +0000 (13:02 +0200)]
[sdb] Fix a race in the sdb tests exposed by the recent threadpool changes.

10 years ago[sgen] A better fix for the POSIX stop-world deadlock.
Mark Probst [Thu, 26 Sep 2013 01:38:59 +0000 (18:38 -0700)]
[sgen] A better fix for the POSIX stop-world deadlock.

10 years agoImplement net 4.5.1 generic wrapper methods in Marshal.
Zoltan Varga [Wed, 25 Sep 2013 11:03:51 +0000 (13:03 +0200)]
Implement net 4.5.1 generic wrapper methods in Marshal.

10 years agoFix bug #14951 - there was another escape sequence 1B 24 40 to indicate "old" JIS.
Atsushi Eno [Wed, 25 Sep 2013 09:37:30 +0000 (18:37 +0900)]
Fix bug #14951 - there was another escape sequence 1B 24 40 to indicate "old" JIS.

10 years agoBump ikvm-reflect
Marek Safar [Wed, 25 Sep 2013 09:27:06 +0000 (11:27 +0200)]
Bump ikvm-reflect

10 years agoReport less cascading errors
Marek Safar [Wed, 25 Sep 2013 09:20:09 +0000 (11:20 +0200)]
Report less cascading errors

10 years agoDon't crash when reporting invalid named argument name. Fixes #14962
Marek Safar [Wed, 25 Sep 2013 08:53:03 +0000 (10:53 +0200)]
Don't crash when reporting invalid named argument name. Fixes #14962

10 years agoFix the build.
Zoltan Varga [Tue, 24 Sep 2013 23:35:19 +0000 (01:35 +0200)]
Fix the build.

10 years agoAdd a section to the README on how to submit bug reports.
Mark Probst [Tue, 24 Sep 2013 22:17:14 +0000 (15:17 -0700)]
Add a section to the README on how to submit bug reports.

10 years ago[System] Fix the CSharpCodeCompiler error parsing regex.
Jonathan Pryor [Tue, 24 Sep 2013 21:14:55 +0000 (17:14 -0400)]
[System] Fix the CSharpCodeCompiler error parsing regex.

Use the same regex as xbuild uses for error parsing; see 7a2d2c24.

10 years ago[MSBuild] Fix the ${level} and ${number} capture.
Jonathan Pryor [Tue, 24 Sep 2013 20:16:32 +0000 (16:16 -0400)]
[MSBuild] Fix the ${level} and ${number} capture.

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=14767

Some people, when confronted with a problem, think
“I know, I'll use regular expressions.”   Now they have two problems.
- http://regex.info/blog/2006-09-15/247

ToolTask uses a regular expression to extract various bits of
information from the warning/error message. Unfortunately it was
inadequate, and didn't correctly match on some errors.

The error message in this case is:

class1.cs(16,4): error CS0152: The label `case 1:' already occurs in this switch statement.

The problem was that while the previous regular expression would
succeed in matching the above string, it was horribly inaccurate in
what it captured:

${file}   = "error CS0152"
${line}   = "16"
${column} = "4"
${level}  = "The"
${number} = "label `case 1"
${message}= "' already occurs in this switch statement."

Did I mention hilariously wrong?

There were two problems with the previous pattern:

 1. It allowed filename+(line,column) to be _repeated_, which is
    clearly insane. Filename/etc. shouldn't be repeated.

 2. ${number} captured ".*\d", i.e. anything ending with a number, so
    when the message had a number embedded within it, it was captured.

For good measure, use RegexOptions.IgnorePatternWhitespace so that
we don't have a horrendously long regex pattern to compare for diffs
the next time this needs fixing, and add NUnit tests.

10 years ago[sgen] Fix a thread startup deadlock on POSIX.
Mark Probst [Tue, 24 Sep 2013 17:55:22 +0000 (10:55 -0700)]
[sgen] Fix a thread startup deadlock on POSIX.

If the GC stops the world and a thread is in the process of starting
up, but has not yet registered (it's not in the thread_list), it is
possible that the thread does register while the world is stopped.
When restarting the GC will then try to restart said thread, but since
it never got the suspend signal, it cannot answer the restart signal,
so a deadlock results.

This is triggered by `tests/sgen-bridge.cs`, about once every 10 runs.

We solve this by using a negative value in the `signal` field in the
thread info to indicate threads that have never been suspended.

10 years agoBetter checks for inaccessible member used via dynamic proxy. Fixes #14762
Marek Safar [Tue, 24 Sep 2013 17:17:06 +0000 (19:17 +0200)]
Better checks for inaccessible member used via dynamic proxy. Fixes #14762

10 years agoReenable accidentally disabled test
Marek Safar [Tue, 24 Sep 2013 14:04:07 +0000 (16:04 +0200)]
Reenable accidentally disabled test

10 years agoFixes compilation error on Mavericks
Marek Safar [Tue, 24 Sep 2013 14:00:00 +0000 (16:00 +0200)]
Fixes compilation error on Mavericks

10 years agoInitialize cookie container for default requests. Fixes #14783
Marek Safar [Tue, 24 Sep 2013 13:56:45 +0000 (15:56 +0200)]
Initialize cookie container for default requests. Fixes #14783

10 years agoOptmizes one string comparison.
Marek Safar [Tue, 24 Sep 2013 13:53:25 +0000 (15:53 +0200)]
Optmizes one string comparison.
Remove useless GC.SuppressFinalize

10 years agoAllow workitems to startup faster and reduce polling thread interval in the threadpool.
Paolo Molaro [Tue, 24 Sep 2013 13:25:53 +0000 (15:25 +0200)]
Allow workitems to startup faster and reduce polling thread interval in the threadpool.

Deals with xambug #14644 and similar issues.

10 years agoUpdate cecil sources to latest
Sebastien Pouliot [Tue, 24 Sep 2013 12:13:05 +0000 (08:13 -0400)]
Update cecil sources to latest

10 years ago[linker] Resolve every type references if we're to save an assembly that is not linke...
Sebastien Pouliot [Sat, 21 Sep 2013 02:26:54 +0000 (22:26 -0400)]
[linker] Resolve every type references if we're to save an assembly that is not linked (so the scope won't point to assemblies that were removed)