mono.git
9 years agoUse SortedDictionary in System.Json.JsonObject
Steffen Kieß [Fri, 11 Jul 2014 14:04:42 +0000 (16:04 +0200)]
Use SortedDictionary in System.Json.JsonObject

Currently JsonObject uses a Dictionary and JsonValue does not sort the keys
in SaveInternal(). As iterating over a Dictionary returns the values in
random order, this causes the JSON string to be non-deterministic.
Switching to SortedDictionary makes sure that the same object always will
produce the same JSON string.
The keys are sorted using StringComparer.Ordinal to produce the same order
in all locales.

9 years agoFix handling of strings in System.Json
Steffen Kieß [Fri, 11 Jul 2014 13:46:25 +0000 (15:46 +0200)]
Fix handling of strings in System.Json

- Escape control characters, as required by JSON spec
- Escape invalid surrogate pairs
- Escape characters invalid in JavaScript strings
- Escape "</" for HTML script tags
- Fix serialization of chars
- Remove unused variable in JavaScriptReader.cs
- Add tests

9 years agoMerge pull request #1154 from Zoltu/patch-1
Alex Rønne Petersen [Fri, 11 Jul 2014 03:26:49 +0000 (05:26 +0200)]
Merge pull request #1154 from Zoltu/patch-1

Makes AppendTextUnquoted public.

9 years ago[runtime] Only apply the maverick stack size hack added by d6673ca8ec854f291eb32c0484...
Zoltan Varga [Thu, 10 Jul 2014 21:57:13 +0000 (23:57 +0200)]
[runtime] Only apply the maverick stack size hack added by d6673ca8ec854f291eb32c048446b3868b92de7a to the main thread since some system threads might really have a small stack size, causing us to overestimate their stack size. This can cause us to mprotect () random memory in mono_setup_altstack (), cause random crashes. Hopefully fixes #10096.

9 years agoBackwards accuracy.
Micah Zoltu [Thu, 10 Jul 2014 18:01:35 +0000 (11:01 -0700)]
Backwards accuracy.

The method is only public in .NET 4+, previously it was protected.  Wrapping the access modifier in a #if NET_4_0 ensures that when building .NET 2, it is protected but when building 4+ it is public.

9 years ago[mcs] auto-implemented property initializer
Marek Safar [Thu, 10 Jul 2014 16:57:40 +0000 (18:57 +0200)]
[mcs] auto-implemented property initializer

9 years ago[sdb] Add a new 'socket-fd' transport, this is the same as the 'dt_socket' transport...
Zoltan Varga [Thu, 10 Jul 2014 15:21:45 +0000 (17:21 +0200)]
[sdb] Add a new 'socket-fd' transport, this is the same as the 'dt_socket' transport, but the address is the number of an an already connected socket fd.

9 years agoMakes AppendTextUnquoted public.
Micah Zoltu [Thu, 10 Jul 2014 04:44:44 +0000 (21:44 -0700)]
Makes AppendTextUnquoted public.

The Microsoft version is public, so should this be.
NuGet.MSBuild.Tools.CommandLineBuilderExtensions:AppendTextUnquotedIfNotNullOrEmpty attempts to call this method in NuGet for MSBuild NuGet package.

9 years agoFix a warning.
Zoltan Varga [Wed, 9 Jul 2014 20:35:52 +0000 (22:35 +0200)]
Fix a warning.

9 years ago[jit] Rewrite the generic trampoline code on x86 to avoid pushes.
Zoltan Varga [Tue, 8 Jul 2014 20:53:56 +0000 (22:53 +0200)]
[jit] Rewrite the generic trampoline code on x86 to avoid pushes.

9 years agoFix fallout from WebSocketMessageType change.
Miguel de Icaza [Wed, 9 Jul 2014 19:05:21 +0000 (15:05 -0400)]
Fix fallout from WebSocketMessageType change.

The WebSocketMessageType values were being used to send data over the
wire.  This is likely the reason why WebSocketMessageType had values
that were not compatible with .NET.

9 years ago[runtime] Enable system aot when using --enable-loadedllvm, hopefully it works now.
Zoltan Varga [Wed, 9 Jul 2014 16:55:49 +0000 (18:55 +0200)]
[runtime] Enable system aot when using --enable-loadedllvm, hopefully it works now.

9 years ago[mcs] Extend intermediate value modification checks on generic value types
Marek Safar [Wed, 9 Jul 2014 16:32:55 +0000 (18:32 +0200)]
[mcs] Extend intermediate value modification checks on generic value types

9 years ago[corlib] Fix incorrect assert
Marek Safar [Wed, 9 Jul 2014 15:37:28 +0000 (17:37 +0200)]
[corlib] Fix incorrect assert

9 years ago[corlib] Make CompletionOnDifferentCustomSynchronizationContext test more reliable
Marek Safar [Wed, 9 Jul 2014 15:06:55 +0000 (17:06 +0200)]
[corlib] Make CompletionOnDifferentCustomSynchronizationContext test more reliable

9 years ago[bcl] Fix retaining objects in one of the ConditionalWeakTable tests.
Zoltan Varga [Wed, 9 Jul 2014 14:26:26 +0000 (16:26 +0200)]
[bcl] Fix retaining objects in one of the ConditionalWeakTable tests.

9 years agoFixes https://github.com/OfficeDev/Open-XML-SDK/issues/6 by formatting core.xml date...
Daniel Reiter Horn [Wed, 9 Jul 2014 06:57:40 +0000 (23:57 -0700)]
Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/6 by formatting core.xml date according to W3CDTF
This change in released under the MIT license.

9 years agoMerge pull request #1132 from mattleibow/bugfix-20925
Miguel de Icaza [Wed, 9 Jul 2014 13:23:45 +0000 (09:23 -0400)]
Merge pull request #1132 from mattleibow/bugfix-20925

[system.data] BUGFIX: fixes issue with expression columns and IsNull:

9 years agoMerge pull request #1142 from edbprx/master
Miguel de Icaza [Wed, 9 Jul 2014 13:21:37 +0000 (09:21 -0400)]
Merge pull request #1142 from edbprx/master

ConnectCallback needs to call EndConnect

9 years agoMerge pull request #1148 from steffen-kiess/json
Miguel de Icaza [Wed, 9 Jul 2014 13:19:10 +0000 (09:19 -0400)]
Merge pull request #1148 from steffen-kiess/json

Fix several issues in System.Json

9 years agoMerge pull request #1152 from danielrh/hyperlink_package_parse
Miguel de Icaza [Wed, 9 Jul 2014 13:15:00 +0000 (09:15 -0400)]
Merge pull request #1152 from danielrh/hyperlink_package_parse

Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allow absolute urls in relationships

9 years agoFix enumeration values
Miguel de Icaza [Wed, 9 Jul 2014 13:12:12 +0000 (09:12 -0400)]
Fix enumeration values

9 years ago[mcs] Disable dedb33eadeb87ca80cb86f48e6fa47da882507e3 due to runtime bug
Marek Safar [Wed, 9 Jul 2014 13:10:28 +0000 (15:10 +0200)]
[mcs] Disable dedb33eadeb87ca80cb86f48e6fa47da882507e3 due to runtime bug

9 years ago[corlib] Fix test to not rely on compiler generated method
Marek Safar [Wed, 9 Jul 2014 13:01:17 +0000 (15:01 +0200)]
[corlib] Fix test to not rely on compiler generated method

9 years ago[mcs] Undo project changes from dedb33eadeb87ca80cb86f48e6fa47da882507e3 due to XS...
Marek Safar [Wed, 9 Jul 2014 09:59:27 +0000 (11:59 +0200)]
[mcs] Undo project changes from dedb33eadeb87ca80cb86f48e6fa47da882507e3 due to XS stupidity

9 years ago[mcs] Use closed delegate over static generated methods from anonymous methods
Marek Safar [Wed, 9 Jul 2014 09:43:09 +0000 (11:43 +0200)]
[mcs] Use closed delegate over static generated methods from anonymous methods

9 years agoFixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allowing both relative...
Daniel Reiter Horn [Wed, 9 Jul 2014 06:59:33 +0000 (23:59 -0700)]
Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allowing both relative and absolute urls
This change in released under the MIT license.

9 years ago[System.Numerics] Contract the values array when decoding an array with a negative...
Rodrigo Kumpera [Wed, 9 Jul 2014 00:02:19 +0000 (20:02 -0400)]
[System.Numerics] Contract the values array when decoding an array with a negative number and a trailer that evals to zero. Fixes #20456.

9 years agoDon't hardcode the temp dir to /tmp, use g_get_tmp_dir instead. Fixes #20894.
Rodrigo Kumpera [Tue, 8 Jul 2014 22:26:24 +0000 (18:26 -0400)]
Don't hardcode the temp dir to /tmp, use g_get_tmp_dir instead. Fixes #20894.

Hardcoding a temporary dir doesn't work on sandboxed apps.

9 years ago[sdb] Fix handling of out ref parameters.
Zoltan Varga [Tue, 8 Jul 2014 16:55:06 +0000 (18:55 +0200)]
[sdb] Fix handling of out ref parameters.

9 years ago[Facades] Add more comtypes to System.Runtime.InteropServices
Marek Safar [Tue, 8 Jul 2014 11:45:03 +0000 (13:45 +0200)]
[Facades] Add more comtypes to System.Runtime.InteropServices

9 years ago[mcs] C# static using
Marek Safar [Tue, 8 Jul 2014 11:27:29 +0000 (13:27 +0200)]
[mcs] C# static using

9 years ago[runtime] Remove another duplicate switch case from configure.
Zoltan Varga [Tue, 8 Jul 2014 12:35:11 +0000 (14:35 +0200)]
[runtime] Remove another duplicate switch case from configure.

9 years ago[runtime] Remove a duplicate switch case from configure.
Zoltan Varga [Tue, 8 Jul 2014 12:34:34 +0000 (14:34 +0200)]
[runtime] Remove a duplicate switch case from configure.

9 years agoMerge pull request #1149 from akoeplinger/fix-httpwebreq-test
Marek Safar [Tue, 8 Jul 2014 06:39:05 +0000 (08:39 +0200)]
Merge pull request #1149 from akoeplinger/fix-httpwebreq-test

[System] Fixed HttpWebRequest test that sometimes failed

9 years ago[runtime] Lock the root domain in mono_jit_info_add_aot_module () to simplify locking.
Zoltan Varga [Mon, 7 Jul 2014 23:08:01 +0000 (01:08 +0200)]
[runtime] Lock the root domain in mono_jit_info_add_aot_module () to simplify locking.

9 years ago[runtime] Explicit thread GC data around instead of relying on TLS storage. Fixes...
Rodrigo Kumpera [Mon, 7 Jul 2014 22:44:33 +0000 (18:44 -0400)]
[runtime] Explicit thread GC data around instead of relying on TLS storage. Fixes #20360.

Some systems do locking in their TLS implementation (yeah, super smart, I know).

Due to how we implement stop-the-world this can lead to deadlocks.

9 years ago[bcl] Increase some test timeouts to avoid failures when running with llvm.
Zoltan Varga [Mon, 7 Jul 2014 22:46:31 +0000 (00:46 +0200)]
[bcl] Increase some test timeouts to avoid failures when running with llvm.

9 years ago[System] Fixed HttpWebRequest test that sometimes failed
Alexander Köplinger [Sat, 5 Jul 2014 18:14:54 +0000 (20:14 +0200)]
[System] Fixed HttpWebRequest test that sometimes failed

The TestTimeoutPropertyWithServerThatDoesntExist test sometimes failed with a 'ConnectFailure' instead of a 'Timeout'.
As per the discussion in PR #1145, the test should actually check that a ConnectFailure is thrown before the timeout is reached.
This proved unreliable with the 10.128.200.100 IP address, as it was up to the networking stack to decide whether the endpoint can be reached,
which can take quite a long time (sometimes >100secs).

Instead, we now use the loopback address with a port where no service listens, which should be equivalent.

Additionally, the assert which checks for the correct exception switched the 'expected' and 'actual' parameter, which resulted in the wrong output, this is fixed as well.

9 years agoMove amd64 to use object offsets.
Rodrigo Kumpera [Mon, 7 Jul 2014 20:26:07 +0000 (16:26 -0400)]
Move amd64 to use object offsets.

9 years agoConnectCallback needs to call EndConnect
Ed Boren [Tue, 1 Jul 2014 16:29:49 +0000 (12:29 -0400)]
ConnectCallback needs to call EndConnect

Socket.ConnectAsync uses BeginConnect, and ends here in
ConnectCallback. It needs to call EndConnect so any error can be
propagated up.

See Xamarin bug: https://bugzilla.xamarin.com/show_bug.cgi?id=21017

9 years agoFix several issues in System.Json
Steffen Kieß [Mon, 7 Jul 2014 17:22:29 +0000 (19:22 +0200)]
Fix several issues in System.Json

- Fix detection of extra characters in JSON input
- Fix detection of invalid negative numeric literals
- Disallow leading zeros
- Use "round-trip" format for floating point numbers
- Serialize NaN and Infinity as strings
- Use NumberFormatInfo.InvariantInfo for Convert.To*()
- Use standard number parsing methods in ReadNumericLiteral()
- Add test cases

9 years agoPoking Jenkins again...
Alex Rønne Petersen [Mon, 7 Jul 2014 16:02:58 +0000 (18:02 +0200)]
Poking Jenkins again...

9 years agoMerge pull request #1147 from akoeplinger/misc-test-cleanup
Alex Rønne Petersen [Mon, 7 Jul 2014 12:27:03 +0000 (14:27 +0200)]
Merge pull request #1147 from akoeplinger/misc-test-cleanup

Cleanup untracked test files

9 years ago[mdoc] Ignore generated test files
Alexander Köplinger [Wed, 2 Jul 2014 01:26:07 +0000 (03:26 +0200)]
[mdoc] Ignore generated test files

9 years ago[System.Drawing] Delete test files after test
Alexander Köplinger [Wed, 2 Jul 2014 01:17:05 +0000 (03:17 +0200)]
[System.Drawing] Delete test files after test

9 years ago[System.IO.Compression] Delete test file after test
Alexander Köplinger [Wed, 2 Jul 2014 01:09:35 +0000 (03:09 +0200)]
[System.IO.Compression] Delete test file after test

9 years ago[MWF] Get rid of unused resx.resx file
Alexander Köplinger [Wed, 2 Jul 2014 00:20:55 +0000 (02:20 +0200)]
[MWF] Get rid of unused resx.resx file

The other tests already use GetResXFileWithNode () to create this file, make this consistent and get rid of the checked-in file

9 years ago[System.Web] Remove superfluous write to file in test
Alexander Köplinger [Tue, 1 Jul 2014 16:42:11 +0000 (18:42 +0200)]
[System.Web] Remove superfluous write to file in test

The written file is never used, all the Asserts happen in RenderPostBackEvent_OnSaveStateComplete ().

9 years agoMerge pull request #1124 from UCIS/patch-5
Alex Rønne Petersen [Mon, 7 Jul 2014 12:18:49 +0000 (14:18 +0200)]
Merge pull request #1124 from UCIS/patch-5

Fixed NullReferenceExcepton in Socket.Connect for non-IP endpoints

9 years agoAdd a build status badge to README.md.
Alex Rønne Petersen [Mon, 7 Jul 2014 12:16:37 +0000 (14:16 +0200)]
Add a build status badge to README.md.

9 years ago[mcs] Flow analysis of moved arguments. Fixes #20983
Marek Safar [Mon, 7 Jul 2014 08:00:30 +0000 (10:00 +0200)]
[mcs] Flow analysis of moved arguments. Fixes #20983

9 years ago[mono] Ignore *.trs files in unit-tests
Alexander Köplinger [Wed, 2 Jul 2014 01:29:49 +0000 (03:29 +0200)]
[mono] Ignore *.trs files in unit-tests

9 years agoIgnore automake 'test-driver' file
Alexander Köplinger [Tue, 1 Jul 2014 16:50:44 +0000 (18:50 +0200)]
Ignore automake 'test-driver' file

This was introduced by automake 1.12 and can be safely ignored.

9 years ago[jit] Rename MonoJitInfo.used_regs to 'unwind_info' to better reflect its current...
Zoltan Varga [Sat, 5 Jul 2014 19:51:56 +0000 (21:51 +0200)]
[jit] Rename MonoJitInfo.used_regs to 'unwind_info' to better reflect its current purpose.

9 years agoAdd support for precise unwind info in epilogs on amd64:
Zoltan Varga [Sat, 5 Jul 2014 02:43:03 +0000 (04:43 +0200)]
Add support for precise unwind info in epilogs on amd64:

* Implement DW_CFA_remember_state/restore_state opcodes.
* Add a DW_CFA_mono_advance_loc opcode to advance to a location stored outside
  of the unwind info. Use this to allow the sharing of unwind info between
  methods.

This is need to prevent crashes during unwinding when the ip of the last frame is in the epilog. This can be reproduced by
running sgen-new-threads-dont-join-stw.exe in a loop.

9 years agoUpdate the required bootstrap mono version to 2.10, 2.4 will no longer work.
Zoltan Varga [Fri, 4 Jul 2014 16:13:24 +0000 (18:13 +0200)]
Update the required bootstrap mono version to 2.10, 2.4 will no longer work.

9 years ago[corlib] Update 6b94215d0b82c0a24786cb33ecce3f89d6c4d879 to work with not null target...
Marek Safar [Fri, 4 Jul 2014 14:25:22 +0000 (16:25 +0200)]
[corlib] Update 6b94215d0b82c0a24786cb33ecce3f89d6c4d879 to work with not null targets too

9 years ago[mcs] Allow more conversions for CallerLineNumberAttribute
Marek Safar [Fri, 4 Jul 2014 11:22:53 +0000 (13:22 +0200)]
[mcs] Allow more conversions for CallerLineNumberAttribute

9 years ago[sdb] Add support for out arguments in invokes.
Zoltan Varga [Fri, 4 Jul 2014 13:56:02 +0000 (15:56 +0200)]
[sdb] Add support for out arguments in invokes.

9 years ago[corlib] Fix Delegate::DynamicInvoke for open delegates of instance methods and close...
Marek Safar [Fri, 4 Jul 2014 08:14:56 +0000 (10:14 +0200)]
[corlib] Fix Delegate::DynamicInvoke for open delegates of instance methods and closed delegates of static methods

9 years agoEmpty commit, poking Jenkins...
Alex Rønne Petersen [Fri, 4 Jul 2014 02:55:16 +0000 (04:55 +0200)]
Empty commit, poking Jenkins...

9 years ago[runtime] Use sleep (1) instead of sleep (0) in the native SIGSEGV suspend loop to...
Zoltan Varga [Fri, 4 Jul 2014 01:08:23 +0000 (03:08 +0200)]
[runtime] Use sleep (1) instead of sleep (0) in the native SIGSEGV suspend loop to reduce cpu usage.

9 years ago[sdb] Add support for returning the changed valuetype receiver after invokes to value...
Zoltan Varga [Thu, 3 Jul 2014 21:18:26 +0000 (23:18 +0200)]
[sdb] Add support for returning the changed valuetype receiver after invokes to valuetype methods.

9 years ago[mcs] Don't cache lambda expressions in static constructor context
Marek Safar [Thu, 3 Jul 2014 12:08:13 +0000 (14:08 +0200)]
[mcs] Don't cache lambda expressions in static constructor context

9 years ago[mcs] Fixes flow analysis of if statement with constant expression
Marek Safar [Thu, 3 Jul 2014 11:42:38 +0000 (13:42 +0200)]
[mcs] Fixes flow analysis of if statement with constant expression

9 years ago[mcs] Overload resolution should not fail when type inference infers inaccessible...
Marek Safar [Thu, 3 Jul 2014 10:32:30 +0000 (12:32 +0200)]
[mcs] Overload resolution should not fail when type inference infers inaccessible types but other overload exists

9 years ago[mcs] Methodgroup probing checks are not allowed
Marek Safar [Thu, 3 Jul 2014 09:35:28 +0000 (11:35 +0200)]
[mcs] Methodgroup probing checks are not allowed

9 years ago[mcs] Methodgroup conversion involving user defined operators
Marek Safar [Thu, 3 Jul 2014 08:43:35 +0000 (10:43 +0200)]
[mcs] Methodgroup conversion involving user defined operators

9 years ago[mcs] Use same result conversion rules of predefined enum operators for unary and...
Marek Safar [Wed, 2 Jul 2014 15:56:23 +0000 (17:56 +0200)]
[mcs] Use same result conversion rules of predefined enum operators for unary and binary expressions

9 years ago[mcs] A value for params parameter with default valus is still empty array
Marek Safar [Wed, 2 Jul 2014 15:13:01 +0000 (17:13 +0200)]
[mcs] A value for params parameter with default valus is still empty array

9 years ago[runtime] Enable aot on 64 bit osx.
Zoltan Varga [Thu, 3 Jul 2014 14:49:34 +0000 (16:49 +0200)]
[runtime] Enable aot on 64 bit osx.

9 years agoRevert "[corlib] Re-enable TaskContinuationChainLeak test."
Alex Rønne Petersen [Thu, 3 Jul 2014 03:54:01 +0000 (05:54 +0200)]
Revert "[corlib] Re-enable TaskContinuationChainLeak test."

This reverts commit 265060cc22a863326d68cef3d0c79998bac37fc7.

The test is still failing:

2) MonoTests.System.Threading.Tasks.TaskTests.TaskContinuationChainLeak :   Expected: False
  But was:  True

at MonoTests.System.Threading.Tasks.TaskTests+TaskContinuationChainLeakTester.Verify () [0x00000] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1991
at MonoTests.System.Threading.Tasks.TaskTests.TaskContinuationChainLeak () [0x00022] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1948
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

9 years ago[System] Add more logging to the BeginConnectMultiple test.
Alex Rønne Petersen [Thu, 3 Jul 2014 00:46:21 +0000 (02:46 +0200)]
[System] Add more logging to the BeginConnectMultiple test.

9 years ago[WCF] Disable CloseTest and OpenTest4 in CustomPeerResolverServiceTest.
Alex Rønne Petersen [Thu, 3 Jul 2014 00:31:07 +0000 (02:31 +0200)]
[WCF] Disable CloseTest and OpenTest4 in CustomPeerResolverServiceTest.

These tests occasionally time out:

Test Case Failures:
1) MonoTests.System.ServiceModel.PeerResolvers.CustomPeerResolverServiceTest.CloseTest : System.TimeoutException : The operation has timed-out.
at System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd () [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult result) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0

I.e. we're timing out waiting for the async wait handle here: https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs#L495

Since we have no current WCF maintainer and this is deep, deep within
WCF land and causes unstable builds on Jenkins, disable these tests
for now.

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

9 years ago[System] Add some debugging code to BeginConnectMultiple test.
Alex Rønne Petersen [Thu, 3 Jul 2014 00:18:09 +0000 (02:18 +0200)]
[System] Add some debugging code to BeginConnectMultiple test.

The WaitOne () call has a tendency to time out on the Jenkins
VMs. However, reproducing the problem outside of Jenkins has
proven futile.

This makes the WaitOne () call block for as long as needed and
still fails the test if the elapsed time was longer than 30s.
We print the actual elapsed time to the console.

Hopefully this'll help us find out if it's just taking quite a
long time to run or if it's a hang.

9 years ago[runtime] Add cross helper extensions.
Rodrigo Kumpera [Wed, 2 Jul 2014 19:34:10 +0000 (15:34 -0400)]
[runtime] Add cross helper extensions.

9 years ago[sgen] Use gc_stats minor and major collection counts instead of local variable
Ludovic Henry [Wed, 2 Jul 2014 17:52:57 +0000 (13:52 -0400)]
[sgen] Use gc_stats minor and major collection counts instead of local variable

9 years ago[runtime] Fix the win32 build.
Zoltan Varga [Wed, 2 Jul 2014 17:10:22 +0000 (19:10 +0200)]
[runtime] Fix the win32 build.

9 years ago[mcs] Constant folding of null strings casted to object
Marek Safar [Wed, 2 Jul 2014 13:33:16 +0000 (15:33 +0200)]
[mcs] Constant folding of null strings casted to object

9 years ago[mcs] Add new test
Marek Safar [Wed, 2 Jul 2014 13:32:20 +0000 (15:32 +0200)]
[mcs] Add new test

9 years ago[mcs] Parsing of nullable type cast inside statement with open parens
Marek Safar [Wed, 2 Jul 2014 13:31:06 +0000 (15:31 +0200)]
[mcs] Parsing of nullable type cast inside statement with open parens

9 years ago[mcs] Switch with user conversion to nullable governing type
Marek Safar [Wed, 2 Jul 2014 10:59:53 +0000 (12:59 +0200)]
[mcs] Switch with user conversion to nullable governing type

9 years ago[mcs] Object initializer for events which can be initialized using field expression
Marek Safar [Wed, 2 Jul 2014 10:54:00 +0000 (12:54 +0200)]
[mcs] Object initializer for events which can be initialized using field expression

9 years ago[ppc] Lower long_rem_imm to long_rem when on ppc64.
Alex Rønne Petersen [Wed, 2 Jul 2014 08:50:07 +0000 (10:50 +0200)]
[ppc] Lower long_rem_imm to long_rem when on ppc64.

9 years agomcs/class/Makefile: Remove duplicate System.Web entry.
Alex Rønne Petersen [Tue, 1 Jul 2014 23:19:00 +0000 (01:19 +0200)]
mcs/class/Makefile: Remove duplicate System.Web entry.

Second take on 5fbb351375a38232ff9cb5ca6602f183321e0a47.

9 years agomcs/class/Makefile: Merge common_dirs into net_2_0_dirs.
Alex Rønne Petersen [Tue, 1 Jul 2014 23:18:24 +0000 (01:18 +0200)]
mcs/class/Makefile: Merge common_dirs into net_2_0_dirs.

They're used in the same places so we may as well simplify.

9 years agoRevert "Remove duplicate System.Web in mcs/class/Makefile."
Alex Rønne Petersen [Tue, 1 Jul 2014 23:16:47 +0000 (01:16 +0200)]
Revert "Remove duplicate System.Web in mcs/class/Makefile."

This reverts commit 5fbb351375a38232ff9cb5ca6602f183321e0a47.

This breaks the build because System.Runtime.Remoting needs System.Web.

9 years ago[runtime] First pass of cross compilation cleanup. Allow offsets and alignment to...
Rodrigo Kumpera [Tue, 1 Jul 2014 23:12:28 +0000 (19:12 -0400)]
[runtime] First pass of cross compilation cleanup. Allow offsets and alignment to be externally calculated.

9 years agoRemove duplicate System.Web in mcs/class/Makefile.
Alex Rønne Petersen [Tue, 1 Jul 2014 22:31:46 +0000 (00:31 +0200)]
Remove duplicate System.Web in mcs/class/Makefile.

It was listed both in net_2_0_dirs and common_dirs so
it would get tested twice in some profiles.

9 years agoRemove duplicate System.ServiceModel in mcs/class/Makefile.
Alex Rønne Petersen [Tue, 1 Jul 2014 21:29:33 +0000 (23:29 +0200)]
Remove duplicate System.ServiceModel in mcs/class/Makefile.

This was causing tests to be run several times in the same profile(s).

9 years ago[runtime] Fix the android build.
Rodrigo Kumpera [Tue, 1 Jul 2014 20:18:43 +0000 (16:18 -0400)]
[runtime] Fix the android build.

9 years ago[corlib] Re-enable TaskContinuationChainLeak test.
Alex Rønne Petersen [Tue, 1 Jul 2014 19:22:17 +0000 (21:22 +0200)]
[corlib] Re-enable TaskContinuationChainLeak test.

This is hopefully fixed after a57fb5b.

9 years ago[ppc] Clean up atomic opcodes.
Alex Rønne Petersen [Tue, 1 Jul 2014 01:01:55 +0000 (03:01 +0200)]
[ppc] Clean up atomic opcodes.

* Support atomic_add_i4 on ppc32 in addition to ppc64.
* Make the atomic_add_* code more in line with the atomic_cas_* code.

9 years ago[mini] Simplify the way the JIT emits atomic opcodes.
Alex Rønne Petersen [Tue, 1 Jul 2014 00:41:47 +0000 (02:41 +0200)]
[mini] Simplify the way the JIT emits atomic opcodes.

* MONO_ARCH_HAVE_ATOMIC_* macros have been removed.
* Backends now report whether they support atomic opcodes via
  the mono_arch_opcode_supported () function.
* The default implementation of mono_arch_opcode_supported ()
  has been removed as almost all backends need to define one
  anyway.
* All old atomic_add_* opcodes have been removed. These were no
  longer being used but some backends still had code for them.
* atomic_add_new_* opcodes have been renamed to atomic_add_* as
  they are now the only atomic add opcodes.
* Itanium-specific atomic_add_imm_* opcodes have been moved to
  the __ia64__ section of mini-ops.h.
* Comments have been added to mini-ops.h explaining the precise
  semantics of the atomic opcodes.

The net result of this change is a simpler backend interface at
the cost of a slightly bigger binary.

9 years agoMerge pull request #1143 from akoeplinger/fix-gc-descriptor-error
Alex Rønne Petersen [Tue, 1 Jul 2014 19:40:35 +0000 (21:40 +0200)]
Merge pull request #1143 from akoeplinger/fix-gc-descriptor-error

[tests] gc-descriptors: Only copy file in case of VPATH build

9 years agoMerge pull request #1127 from oleg-st/master
Alex Rønne Petersen [Tue, 1 Jul 2014 19:36:58 +0000 (21:36 +0200)]
Merge pull request #1127 from oleg-st/master

Added fix for Bug 20869

9 years ago[tests] gc-descriptors: Only copy file in case of VPATH build
Alexander Köplinger [Tue, 1 Jul 2014 19:17:53 +0000 (21:17 +0200)]
[tests] gc-descriptors: Only copy file in case of VPATH build

Instead of ignoring the cp error when copying over the same file in non-VPATH builds.

9 years ago[runtime] Make WaitForPendingFinalizers () really wait for the finalizers added by...
Zoltan Varga [Tue, 1 Jul 2014 19:10:19 +0000 (21:10 +0200)]
[runtime] Make WaitForPendingFinalizers () really wait for the finalizers added by a previous GC. Fixes #20503.

9 years agoMerge pull request #1141 from akoeplinger/fix-mono-shlib-cop
Alex Rønne Petersen [Tue, 1 Jul 2014 18:43:40 +0000 (20:43 +0200)]
Merge pull request #1141 from akoeplinger/fix-mono-shlib-cop

[tools] Fixed mono-shlib-cop test