mono.git
12 years ago[class libraries] drop ONLY_1_1
Miguel de Icaza [Sun, 3 Jun 2012 01:31:37 +0000 (21:31 -0400)]
[class libraries] drop ONLY_1_1

12 years agoAdd .NET 4.5 async methods to XmlReader.
Martin Baulig [Sat, 2 Jun 2012 19:52:11 +0000 (21:52 +0200)]
Add .NET 4.5 async methods to XmlReader.

12 years agoAdd .NET 4.5 async methods to System.Net.NetworkInformation.Ping.
Martin Baulig [Sat, 2 Jun 2012 17:35:24 +0000 (19:35 +0200)]
Add .NET 4.5 async methods to System.Net.NetworkInformation.Ping.

12 years agoCopyright notices
Miguel de Icaza [Sat, 2 Jun 2012 17:20:23 +0000 (13:20 -0400)]
Copyright notices

12 years ago[System] Removal of the NET_2_0 in the source code
Miguel de Icaza [Sat, 2 Jun 2012 17:15:52 +0000 (13:15 -0400)]
[System] Removal of the NET_2_0 in the source code

Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.

12 years agoMerge branch 'master' of github.com:mono/mono
Martin Baulig [Sat, 2 Jun 2012 15:44:58 +0000 (17:44 +0200)]
Merge branch 'master' of github.com:mono/mono

12 years agoAdd .NET 4.5 async upload methods to WebClient.
Martin Baulig [Fri, 1 Jun 2012 21:47:50 +0000 (23:47 +0200)]
Add .NET 4.5 async upload methods to WebClient.

12 years agoMore .NET 4.5 async work in WebClient.
Martin Baulig [Fri, 1 Jun 2012 20:06:37 +0000 (22:06 +0200)]
More .NET 4.5 async work in WebClient.

* System.Net/WebClient.cs: Support cancelation.

* Test/System.Net/WebClientTestAsync.cs: New nunit tests.

12 years agoFix BackColor on ToolStripItem objects (Novell bug 567331)
Steven Boswell II [Sat, 2 Jun 2012 15:34:55 +0000 (17:34 +0200)]
Fix BackColor on ToolStripItem objects (Novell bug 567331)

12 years agoAdd .NET 4.5 async methods to WebClient.
Martin Baulig [Fri, 25 May 2012 19:28:53 +0000 (21:28 +0200)]
Add .NET 4.5 async methods to WebClient.

12 years agoMove common code to a sub method to avoid redundancy, and to make sure that the two...
Thomas Goldstein [Fri, 1 Jun 2012 23:08:08 +0000 (01:08 +0200)]
Move common code to a sub method to avoid redundancy, and to make sure that the two code paths do not diverge later

12 years agoRemoval of NET_1_1 defines and some NET_2_0; Both defines are true these days in...
Miguel de Icaza [Fri, 1 Jun 2012 22:20:12 +0000 (18:20 -0400)]
Removal of NET_1_1 defines and some NET_2_0;   Both defines are true these days in Mono, no versions prior to 2.0 are supported

12 years agoRemoval of NET_1_1 defines and some NET_2_0; Both defines are true these days in...
Miguel de Icaza [Fri, 1 Jun 2012 22:04:16 +0000 (18:04 -0400)]
Removal of NET_1_1 defines and some NET_2_0;   Both defines are true these days in Mono, no versions prior to 2.0 are supported

12 years ago[System.Web.Extensions] Remember to build standalone-runner-support before run-standa...
Duncan Mak [Fri, 1 Jun 2012 21:52:53 +0000 (17:52 -0400)]
[System.Web.Extensions] Remember to build standalone-runner-support before run-standalone-test.

12 years ago[System.Data/Test] Don't hard-code newline in the string, fixes failure in DataTableR...
Duncan Mak [Fri, 1 Jun 2012 20:20:18 +0000 (16:20 -0400)]
[System.Data/Test] Don't hard-code newline in the string, fixes failure in DataTableReadXmlSchemaTest.TestSampleFileImportSimple.

12 years ago[net_1_0] Finally all of NET_1_0 is gone from the source files
Miguel de Icaza [Fri, 1 Jun 2012 20:50:48 +0000 (16:50 -0400)]
[net_1_0] Finally all of NET_1_0 is gone from the source files

12 years agoFix win32.
Rodrigo Kumpera [Fri, 1 Jun 2012 19:09:24 +0000 (16:09 -0300)]
Fix win32.

12 years agoFix the comment so our doctools can pick it up
Miguel de Icaza [Fri, 1 Jun 2012 19:09:20 +0000 (15:09 -0400)]
Fix the comment so our doctools can pick it up

12 years agoFix build by removing duplicate custom attribute extensions
Marek Safar [Fri, 1 Jun 2012 18:07:26 +0000 (19:07 +0100)]
Fix build by removing duplicate custom attribute extensions

12 years agoPromote mono_get_runtime_build_info to the public API.
Rodrigo Kumpera [Fri, 1 Jun 2012 17:25:33 +0000 (14:25 -0300)]
Promote mono_get_runtime_build_info to the public API.

* jit.h: mono_get_runtime_build_info is now public.

12 years ago[corlib] Allow SynchronizationContext.Current to work on MfA
Jonathan Pryor [Fri, 1 Jun 2012 16:48:53 +0000 (12:48 -0400)]
[corlib] Allow SynchronizationContext.Current to work on MfA

For the main (UI) thread, make SynchronizationContext.Current return
the Android.App.Application.SynchronizationContext property.

12 years ago[Mono.Posix] Workaround signal raising behavior.
Jonathan Pryor [Fri, 1 Jun 2012 16:02:49 +0000 (12:02 -0400)]
[Mono.Posix] Workaround signal raising behavior.

The effects of Stdlib.raise() aren't immediate on OS X. The result is
that UnixSignalTest.TestDispose1():

Stdlib.raise (Signum.SIGINT);
Assert.AreEqual (a.Count, 1);

_may_ fail depending on timing.

Insert some Thread.Sleep()s to try to allow the signal to propogate.

12 years agoImplement better pointer spew for the new heap verifier.
Rodrigo Kumpera [Thu, 31 May 2012 22:15:18 +0000 (19:15 -0300)]
Implement better pointer spew for the new heap verifier.

12 years agoPass additional cflags to jay to disable -fno-implicit-function-declaration.
Zoltan Varga [Fri, 1 Jun 2012 15:42:51 +0000 (17:42 +0200)]
Pass additional cflags to jay to disable -fno-implicit-function-declaration.

12 years agoFix previous commit to be 4.5 only
Marek Safar [Fri, 1 Jun 2012 15:36:42 +0000 (16:36 +0100)]
Fix previous commit to be 4.5 only

12 years agoImplement CustomAttributeExtensions
Marek Safar [Fri, 1 Jun 2012 15:35:26 +0000 (16:35 +0100)]
Implement CustomAttributeExtensions

12 years agoAdd state-machine attributes
Marek Safar [Fri, 1 Jun 2012 14:29:40 +0000 (15:29 +0100)]
Add state-machine attributes

12 years agoAdd -Werror-implicit-function-declaration to CFLAGS later to avoid breaking configure...
Zoltan Varga [Fri, 1 Jun 2012 14:16:19 +0000 (16:16 +0200)]
Add -Werror-implicit-function-declaration to CFLAGS later to avoid breaking configure tests.

12 years agoAdd IReadOnlyCollection interface
Marek Safar [Fri, 1 Jun 2012 12:02:06 +0000 (13:02 +0100)]
Add IReadOnlyCollection interface

12 years ago[corlib] Fix DoubleWait unit test
Jeremie Laval [Fri, 1 Jun 2012 12:22:18 +0000 (13:22 +0100)]
[corlib] Fix DoubleWait unit test

12 years agoFix warnings.
Zoltan Varga [Fri, 1 Jun 2012 11:58:33 +0000 (13:58 +0200)]
Fix warnings.

12 years agoMake implicit function declarations a build error. They are not 64 bit safe and cause...
Zoltan Varga [Fri, 1 Jun 2012 11:46:37 +0000 (13:46 +0200)]
Make implicit function declarations a build error. They are not 64 bit safe and cause hard to diagnose problems.

12 years agoFix implicit function declarations on osx.
Zoltan Varga [Fri, 1 Jun 2012 11:40:28 +0000 (13:40 +0200)]
Fix implicit function declarations on osx.

12 years agoBuild is not yet ready for metadata profile only
Marek Safar [Fri, 1 Jun 2012 10:42:33 +0000 (11:42 +0100)]
Build is not yet ready for metadata profile only

12 years agoAdd missing 4.5 test config
Marek Safar [Fri, 1 Jun 2012 09:52:41 +0000 (10:52 +0100)]
Add missing 4.5 test config

12 years agoFix default infinity symbol to match closely .net
Marek Safar [Fri, 1 Jun 2012 09:18:58 +0000 (10:18 +0100)]
Fix default infinity symbol to match closely .net

12 years agoDisable verifier checks on 4.0 profile
Marek Safar [Fri, 1 Jun 2012 08:47:47 +0000 (09:47 +0100)]
Disable verifier checks on 4.0 profile

12 years agoAdd new advanced --metadata-only compiler option to produce assembly for references...
Marek Safar [Fri, 1 Jun 2012 08:41:45 +0000 (09:41 +0100)]
Add new advanced --metadata-only compiler option to produce assembly for references purposes only

12 years agoFixed regressions in Microsoft.Build.BuildEngine
Jeffrey Stedfast [Thu, 31 May 2012 18:03:04 +0000 (14:03 -0400)]
Fixed regressions in Microsoft.Build.BuildEngine

12 years ago[Mono.Posix] Fix Group-lookup Tests
Jonathan Pryor [Thu, 31 May 2012 15:47:37 +0000 (11:47 -0400)]
[Mono.Posix] Fix Group-lookup Tests

Fixes a test failure seen on OS X (and elsewhere), in which
UnixGroupTest.NonReentrantSyscalls() would fail:

#TRC: Exception constructing UnixGroupInfo: NUnit.Framework.AssertionException:
#TNRS: construct by name
Expected: <_appserverusr:*:79:>
But was:  <_appserverusr:*:79:jon>

The difference is in the group members: the expected value contains no
group members, while the actual value does. They both have the same
gorup name and group id; it's just the member list that differs.

The problem is that the _appserverusr group (and others) is returned
_twice_, once containing group members, and once without. (This is
possibly due to NIS; as per the removed comment.) This is readily
observed in a plain C program on OS X:

struct group *g;
setgrent ();
while ((g = getgrent ()) != NULL) {
printf ("local group: gr_name=%s; gr_passwd=%s; gr_gid=%i\n", g->gr_name, g->gr_passwd, g->gr_gid);
}
endgrent ();

Many groups are listed twice, and if you print out g->gr_mem it's
apparent that only the first invocation contains members, the second
does not, and looking up group info by name (getgrnam(3)) contains
group member info (yay!).

The fix here isn't a fix, it's a workaround: we track which groups
we've seen, and if we see a repeated group name we skip it. Thus, the
first time we see the _appserverusr group, we'll do the full
lookup-by-name-and-compare assertions, and the second time we see the
_appserverusr group we skip it entirely.

12 years agoUpdate to the latest IKVM.Reflection
Marek Safar [Thu, 31 May 2012 15:53:53 +0000 (16:53 +0100)]
Update to the latest IKVM.Reflection

12 years agoMerge pull request #310 from slide/master
Marek Safar [Thu, 31 May 2012 15:44:20 +0000 (08:44 -0700)]
Merge pull request #310 from slide/master

Fix unit test for OverwriteReadOnlyFiles

12 years agoFix unit test for OverwriteReadonlyFiles
Alex Earl [Thu, 31 May 2012 14:51:09 +0000 (10:51 -0400)]
Fix unit test for OverwriteReadonlyFiles

12 years agoChange a printf to a log message in sdb.
Zoltan Varga [Thu, 31 May 2012 14:29:23 +0000 (16:29 +0200)]
Change a printf to a log message in sdb.

12 years agoDisable failing LineNumbers() sdb test (#5438).
Zoltan Varga [Thu, 31 May 2012 14:29:02 +0000 (16:29 +0200)]
Disable failing LineNumbers() sdb test (#5438).

12 years ago[System] Try to fix Cookies tests
Jeremie Laval [Thu, 31 May 2012 12:40:22 +0000 (13:40 +0100)]
[System] Try to fix Cookies tests

The first part was to try to repro the ordering behavior of MS which seems to be based on the string length of, first, the domain and, then, the path.
Second part was to fix the .local unit test with Dns.GetHostname as some OS (namely Mac) append a '.local' by default to the hostname.

12 years agoAdd missing test sources file
Marek Safar [Thu, 31 May 2012 12:35:45 +0000 (13:35 +0100)]
Add missing test sources file

12 years agoFix more xml serializer tests
Marek Safar [Thu, 31 May 2012 12:23:13 +0000 (13:23 +0100)]
Fix more xml serializer tests

12 years agoDisable test_0_stack_unwind () test which fails on x86+llvm (#5432).
Zoltan Varga [Thu, 31 May 2012 10:33:35 +0000 (12:33 +0200)]
Disable test_0_stack_unwind () test which fails on x86+llvm (#5432).

12 years agoA fix for failing xml writer tests
Marek Safar [Thu, 31 May 2012 10:24:26 +0000 (11:24 +0100)]
A fix for failing xml writer tests

12 years agoCleanup WindowsBase test failures.
atsushieno [Thu, 31 May 2012 08:31:44 +0000 (17:31 +0900)]
Cleanup WindowsBase test failures.

Some tests are disabled because they need impl. change in WindowsBase.

12 years agoMerge pull request #306 from robwilkens/master
Miguel de Icaza [Thu, 31 May 2012 03:40:12 +0000 (20:40 -0700)]
Merge pull request #306 from robwilkens/master

Bug # 2234 - This fixes bug as reported, but not sure if wise. - Ignores exception under specific condition

12 years agoMake those tests look good on net_4_5.
atsushieno [Thu, 31 May 2012 03:37:14 +0000 (12:37 +0900)]
Make those tests look good on net_4_5.

12 years agoMerge pull request #308 from viniciusjarina/fix242
Miguel de Icaza [Thu, 31 May 2012 03:33:01 +0000 (20:33 -0700)]
Merge pull request #308 from viniciusjarina/fix242

Fix242

12 years ago[System.Configuration] Fix System.Configuration to cope with XmlReaders which might...
Miguel de Icaza [Wed, 30 May 2012 21:55:46 +0000 (17:55 -0400)]
[System.Configuration] Fix System.Configuration to cope with XmlReaders which might not be ConfigXmlTextReaders, fixes test suite

12 years ago[System.Configuration] Disable broken test
Miguel de Icaza [Wed, 30 May 2012 21:46:18 +0000 (17:46 -0400)]
[System.Configuration] Disable broken test

12 years agoFix a race in mono_aot_find_jit_info ().
Zoltan Varga [Wed, 30 May 2012 21:37:27 +0000 (23:37 +0200)]
Fix a race in mono_aot_find_jit_info ().

12 years ago[build] attempt to fix the Microsoft.Build.Engine tests
Miguel de Icaza [Wed, 30 May 2012 21:22:07 +0000 (17:22 -0400)]
[build] attempt to fix the Microsoft.Build.Engine tests

12 years agoAdded unit test for the bug #242
Vinicius Jarina [Wed, 30 May 2012 19:00:01 +0000 (16:00 -0300)]
Added unit test for the bug #242

12 years agoFix issue #242 DataContractSerializer fails to deserialize List<T> properties
Vinicius Jarina [Wed, 30 May 2012 18:38:29 +0000 (15:38 -0300)]
Fix issue #242 DataContractSerializer fails to deserialize List<T> properties

12 years agoCreate a store when importing from a CspBlob so we can export it with the same KeyNum...
Sebastien Pouliot [Wed, 30 May 2012 18:31:59 +0000 (14:31 -0400)]
Create a store when importing from a CspBlob so we can export it with the same KeyNumber (signature vs key exchange). Fix #5299

12 years agoUpdate po files
Marek Safar [Wed, 30 May 2012 18:06:15 +0000 (19:06 +0100)]
Update po files

12 years agoImprove failing test
Marek Safar [Wed, 30 May 2012 18:03:51 +0000 (19:03 +0100)]
Improve failing test

12 years agoFix failing test
Marek Safar [Wed, 30 May 2012 17:28:17 +0000 (18:28 +0100)]
Fix failing test

12 years agoAdd new test
Marek Safar [Wed, 30 May 2012 13:56:22 +0000 (14:56 +0100)]
Add new test

12 years agoMerge pull request #307 from crazyjncsu/master
Marek Safar [Wed, 30 May 2012 13:59:10 +0000 (06:59 -0700)]
Merge pull request #307 from crazyjncsu/master

Bug fix to get rid of reference to Microsoft.VisualBasic.dll when compiling a C# XSL script.

12 years agoRemoved reference for Micrsoft.VisualBasic.dll when compiling C# and JScript XSL...
crazyjncsu [Wed, 30 May 2012 13:34:37 +0000 (09:34 -0400)]
Removed reference for Micrsoft.VisualBasic.dll when compiling C# and JScript XSL scripts

12 years agoFix array binary comparer values ordering. Fixes #5409
Marek Safar [Wed, 30 May 2012 13:30:48 +0000 (14:30 +0100)]
Fix array binary comparer values ordering. Fixes #5409

12 years agoREPL type declaration can be declared in their own namespaces
Marek Safar [Wed, 30 May 2012 11:04:36 +0000 (12:04 +0100)]
REPL type declaration can be declared in their own namespaces

12 years agoFix scheduling of inlined tasks.
Marek Safar [Wed, 30 May 2012 11:02:54 +0000 (12:02 +0100)]
Fix scheduling of inlined tasks.

12 years agoAvoid loading already loaded assemblies in the remote csharp repl.
Zoltan Varga [Tue, 29 May 2012 23:34:01 +0000 (01:34 +0200)]
Avoid loading already loaded assemblies in the remote csharp repl.

12 years agoFix the remote csharp repl code so it at least starts.
Zoltan Varga [Tue, 29 May 2012 22:48:25 +0000 (00:48 +0200)]
Fix the remote csharp repl code so it at least starts.

12 years agoFix major whole-heap verification if the nursery end up partially cleaned.
Rodrigo Kumpera [Tue, 29 May 2012 21:14:10 +0000 (18:14 -0300)]
Fix major whole-heap verification if the nursery end up partially cleaned.

12 years agoThis is a clean up of last commit. One line had spaces where there should
Robert Wilkens [Tue, 29 May 2012 15:53:33 +0000 (11:53 -0400)]
This is a clean up of last commit.  One line had spaces where there should
have been tabs.

12 years agoThis updates the tests with suggestions made by
Robert Wilkens [Tue, 29 May 2012 15:47:16 +0000 (11:47 -0400)]
This updates the tests with suggestions made by
ermshiperete (Eberhard Beilharz).  Re-ran these tests and confirmed they are
o.k.

12 years agoUpdate to .NET 4.5 default exception behavior for unobserved exceptions.
Marek Safar [Tue, 29 May 2012 15:12:42 +0000 (16:12 +0100)]
Update to .NET 4.5 default exception behavior for unobserved exceptions.

12 years agoFix CultureInfo::CreateSpecificCulture
Marek Safar [Tue, 29 May 2012 12:59:09 +0000 (13:59 +0100)]
Fix CultureInfo::CreateSpecificCulture

12 years agoFlush documentation update
Marek Safar [Tue, 29 May 2012 12:58:03 +0000 (13:58 +0100)]
Flush documentation update

12 years agoAdd another Task test
Marek Safar [Tue, 29 May 2012 09:33:21 +0000 (10:33 +0100)]
Add another Task test

12 years agoReplaces some tabs with spaces - earlier copy and paste messed this up, this
Robert Wilkens [Tue, 29 May 2012 11:50:48 +0000 (07:50 -0400)]
Replaces some tabs with spaces - earlier copy and paste messed this up, this
shouldn't affect any code, just its formatting.

12 years agoAdd fields in generic instances too when AOTing. Fixes #5316.
Zoltan Varga [Tue, 29 May 2012 11:27:13 +0000 (13:27 +0200)]
Add fields in generic instances too when AOTing. Fixes #5316.

12 years agoThis addresses bug 2234 - important please verify
Robert Wilkens [Tue, 29 May 2012 02:22:40 +0000 (22:22 -0400)]
This addresses bug 2234 - important please verify

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

It includes unit tests.

The point of this is essentially to replicate a behavior of the
Microsoft .NET Platform where exceptions are eaten in the ComboBox
under certain conditions (In the SelectedIndexChanged handler).

12 years agoAdd new whole heap verifier that can catch a whole lot more problems than previous...
Rodrigo Kumpera [Mon, 28 May 2012 20:13:49 +0000 (17:13 -0300)]
Add new whole heap verifier that can catch a whole lot more problems than previous tools did.

* sgen-gc.c Add verify-before-allocs and verify-before-collections experimental
options to perform heap verification at the many different points in the app.

This does check all pointers in the heap, so it's much much slower than
the previous option.

12 years agoAdd some compiler documentation
Marek Safar [Mon, 28 May 2012 14:00:29 +0000 (15:00 +0100)]
Add some compiler documentation

12 years ago[corlib] A CancellationTokenRegistration instance should always have a working GetHas...
Jeremie Laval [Mon, 28 May 2012 10:04:02 +0000 (11:04 +0100)]
[corlib] A CancellationTokenRegistration instance should always have a working GetHashCode method

Reported by knittl

12 years agoExclude more console code from NET_2_1
Marek Safar [Fri, 25 May 2012 07:30:33 +0000 (08:30 +0100)]
Exclude more console code from NET_2_1

12 years agoDon't report obsole warnings on compiler generated attributes
Marek Safar [Thu, 24 May 2012 18:48:55 +0000 (19:48 +0100)]
Don't report obsole warnings on compiler generated attributes

12 years agoCache regex results when comparing mdoc Nodes during sorting. This avoids the creatio...
Zoltan Varga [Mon, 28 May 2012 10:47:32 +0000 (12:47 +0200)]
Cache regex results when comparing mdoc Nodes during sorting. This avoids the creation of about 300k objects and decreases GC time by 100ms during md startup.

12 years agoAdd more caching to the pinvoke loading code, tidy up the logging a bit.
Zoltan Varga [Sat, 26 May 2012 10:30:25 +0000 (12:30 +0200)]
Add more caching to the pinvoke loading code, tidy up the logging a bit.

12 years agoMerge pull request #304 from crazyjncsu/master
Miguel de Icaza [Sat, 26 May 2012 01:26:47 +0000 (18:26 -0700)]
Merge pull request #304 from crazyjncsu/master

Disabling WCF log activity when logging is disabled by configuration

12 years agoMerge pull request #305 from robwilkens/master
Miguel de Icaza [Sat, 26 May 2012 01:21:41 +0000 (18:21 -0700)]
Merge pull request #305 from robwilkens/master

This fixes bug # 853 in ximarin bugzilla.

12 years agoAdd newer (SL5) types to mobile profile. Fix bug #5337
Sebastien Pouliot [Fri, 25 May 2012 23:55:17 +0000 (19:55 -0400)]
Add newer (SL5) types to mobile profile. Fix bug #5337

12 years agoThis is the associated unit test for the Ximarin Bugzilla #853 bug...
Robert Wilkens [Fri, 25 May 2012 23:27:46 +0000 (19:27 -0400)]
This is the associated unit test for the Ximarin Bugzilla #853 bug...

Confirmed it fails without the bug fix, and passes with it.

Also confirmed again that no other System.Data tests failed that weren't
previously failing.  With this test, there were 9 failures before the patch
is applied, and 8 failures after the patch is applied.  Also tested before
I changed anything and previous to my changes 8 tests in System.Data were
already failing.  This patch previosuly committed in other words does not
introduce any new bugs to the system.data tests.

12 years agoThis is a fix for bug # 853 --
Robert Wilkens [Fri, 25 May 2012 20:33:50 +0000 (16:33 -0400)]
This is a fix for bug # 853 --
see:  https://bugzilla.xamarin.com/show_bug.cgi?id=853

What was happening was ColumnMappings were never being set, so when another
Update function (which this eventually called) went to map the parameters,
it couldn't find any matching column names, so it set all the parameter values
to null.

This code, or very similar code, appeared in:
 public int Update (DataRow [] dataRows)
 public int Update (DataTable dataTable)

But was left out of:
 public int Update (DataSet dataSet, string srcTable)

This code adds the relevant code into the function it was left out of.

Ideally, longer term, this code would be consolidated into a function which
was commonly called by all 3 update functions, but i didn't want to risk
breaking the other two functions which probably already work fine.

12 years agoFixed syntax error in not comparing log_writer with null
crazyjncsu [Fri, 25 May 2012 15:21:05 +0000 (11:21 -0400)]
Fixed syntax error in not comparing log_writer with null

12 years agoPrevented any logging activity when no logging target is specified rather than synchr...
crazyjncsu [Fri, 25 May 2012 15:15:26 +0000 (11:15 -0400)]
Prevented any logging activity when no logging target is specified rather than synchronizing the entire AppDomain just to write to TextWriter.Null

12 years agoSmall improvements to the concurrent queue.
Rodrigo Kumpera [Fri, 25 May 2012 13:50:20 +0000 (10:50 -0300)]
Small improvements to the concurrent queue.

* mono-cq.c (mono_cq_add_node): Add a store store fence
between the two stores as they can be observed OOO.

* mono-cq.c (mono_cq_create): Use precise roots for head
and tail.

12 years agoAvoid having LockRecursionException in both mscorlib and System.Core for the MOBILE...
Sebastien Pouliot [Fri, 25 May 2012 02:12:28 +0000 (22:12 -0400)]
Avoid having LockRecursionException in both mscorlib and System.Core for the MOBILE profile. Fix bug #5311

12 years agoMerge pull request #302 from konrad-kruczynski/fast_double_to_from_int64
Miguel de Icaza [Fri, 25 May 2012 01:56:45 +0000 (18:56 -0700)]
Merge pull request #302 from konrad-kruczynski/fast_double_to_from_int64

Double <-> Int64 conversion is much faster now.

Instead of using GetBytes and converting bytes to long, which involves allocation and deallocation of small temporary array, the simple cpu register load is in fact done now. This results in a much faster operation.

With this sample program:

var stopwatch = Stopwatch.StartNew();
var sum = 0L;
for(var i = 0; i < 100000000; i++)
{
    sum += BitConverter.DoubleToInt64Bits(99.9);
}
stopwatch.Stop();
Console.WriteLine(stopwatch.Elapsed);
my results are:

00:00:00.6614282 with my patch;
00:00:19.8135516 without my patch and Boehm GC;
00:00:10.2296766 without my patch and SGEN GC.
I'm doing a lot of this operations in my serialization framework, so it is quite essential to be fast ;) The performance improvement is due to no-allocation nature of the patch vs the old code, which allocated a temporary array (difference between Boehm and SGEN is explained the same way).

12 years agoMerge pull request #271 from pruiz/xamarin-bug-4108
Miguel de Icaza [Fri, 25 May 2012 00:11:23 +0000 (17:11 -0700)]
Merge pull request #271 from pruiz/xamarin-bug-4108

Fix for Xamarin's bug #4108 (BrowserCaps compatibility problem with MS.NET)