Zoltan Varga [Sun, 13 Jul 2014 17:07:25 +0000 (19:07 +0200)]
[runtime] Avoid using tls in the monitor wrappers if its not available.
Zoltan Varga [Sun, 13 Jul 2014 16:18:32 +0000 (18:18 +0200)]
[runtime] Avoid initializing static variables to NULL, its not needed.
Zoltan Varga [Sun, 13 Jul 2014 15:49:08 +0000 (17:49 +0200)]
[jit] Move the registration of jit icalls into a separate function.
Zoltan Varga [Sun, 13 Jul 2014 15:40:03 +0000 (17:40 +0200)]
Fix the build.
Zoltan Varga [Sun, 13 Jul 2014 15:35:13 +0000 (17:35 +0200)]
[runtime] Remove unused g_thread () functions.
Zoltan Varga [Sun, 13 Jul 2014 15:31:36 +0000 (17:31 +0200)]
[jit] Remove MONO_ARCH_HAVE_IMT define, all platforms support imt now.
Zoltan Varga [Sun, 13 Jul 2014 15:00:31 +0000 (17:00 +0200)]
[jit] Use the win32 check for all tls keys in mini_get_tls_offset ().
Jonathan Pryor [Sun, 13 Jul 2014 13:49:14 +0000 (09:49 -0400)]
Merge pull request #1153 from akoeplinger/fix-doc-message
[monodoc] Clarified message when a backing file isn't found
Jeffrey Stedfast [Sun, 13 Jul 2014 12:29:09 +0000 (08:29 -0400)]
[corlib] minor code cleanup
Zoltan Varga [Sat, 12 Jul 2014 18:05:39 +0000 (20:05 +0200)]
[runtime] Handle generic methods in interfaces in imt thunks correctly. Fixes crashes in the System.ServiceModel tests.
Zoltan Varga [Sat, 12 Jul 2014 12:20:44 +0000 (14:20 +0200)]
Revert a change added by
cd35ca1 by mistake
Zoltan Varga [Fri, 11 Jul 2014 22:31:47 +0000 (00:31 +0200)]
[bcl] Fix a race in a Task test. Fixes #20921.
Zoltan Varga [Fri, 11 Jul 2014 19:21:19 +0000 (21:21 +0200)]
[jit] Fix system aot on amd64.
Zoltan Varga [Fri, 11 Jul 2014 19:20:56 +0000 (21:20 +0200)]
Fix a warning.
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.
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.
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.
Marek Safar [Thu, 10 Jul 2014 16:57:40 +0000 (18:57 +0200)]
[mcs] auto-implemented property initializer
Alexander Köplinger [Wed, 9 Jul 2014 15:11:42 +0000 (17:11 +0200)]
[monodoc] Clarified message when a backing file isn't found
If the backing file doesn't exist, it will be ignored.
The previous message made it sound like this is a serious problem, which confused people as it is the last message that is
printed when building Mono (because of a reference to 'DoesNotExist' in docs/toc.xml) while in reality everything is fine.
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.
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.
Zoltan Varga [Wed, 9 Jul 2014 20:35:52 +0000 (22:35 +0200)]
Fix a warning.
Zoltan Varga [Tue, 8 Jul 2014 20:53:56 +0000 (22:53 +0200)]
[jit] Rewrite the generic trampoline code on x86 to avoid pushes.
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.
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.
Marek Safar [Wed, 9 Jul 2014 16:32:55 +0000 (18:32 +0200)]
[mcs] Extend intermediate value modification checks on generic value types
Marek Safar [Wed, 9 Jul 2014 15:37:28 +0000 (17:37 +0200)]
[corlib] Fix incorrect assert
Marek Safar [Wed, 9 Jul 2014 15:06:55 +0000 (17:06 +0200)]
[corlib] Make CompletionOnDifferentCustomSynchronizationContext test more reliable
Zoltan Varga [Wed, 9 Jul 2014 14:26:26 +0000 (16:26 +0200)]
[bcl] Fix retaining objects in one of the ConditionalWeakTable tests.
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.
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:
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
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
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
Miguel de Icaza [Wed, 9 Jul 2014 13:12:12 +0000 (09:12 -0400)]
Fix enumeration values
Marek Safar [Wed, 9 Jul 2014 13:10:28 +0000 (15:10 +0200)]
Marek Safar [Wed, 9 Jul 2014 13:01:17 +0000 (15:01 +0200)]
[corlib] Fix test to not rely on compiler generated method
Marek Safar [Wed, 9 Jul 2014 09:59:27 +0000 (11:59 +0200)]
[mcs] Undo project changes from
dedb33eadeb87ca80cb86f48e6fa47da882507e3 due to XS stupidity
Marek Safar [Wed, 9 Jul 2014 09:43:09 +0000 (11:43 +0200)]
[mcs] Use closed delegate over static generated methods from anonymous methods
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.
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.
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.
Zoltan Varga [Tue, 8 Jul 2014 16:55:06 +0000 (18:55 +0200)]
[sdb] Fix handling of out ref parameters.
Marek Safar [Tue, 8 Jul 2014 11:45:03 +0000 (13:45 +0200)]
[Facades] Add more comtypes to System.Runtime.InteropServices
Marek Safar [Tue, 8 Jul 2014 11:27:29 +0000 (13:27 +0200)]
[mcs] C# static using
Zoltan Varga [Tue, 8 Jul 2014 12:35:11 +0000 (14:35 +0200)]
[runtime] Remove another 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.
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
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.
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.
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.
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.
Rodrigo Kumpera [Mon, 7 Jul 2014 20:26:07 +0000 (16:26 -0400)]
Move amd64 to use object offsets.
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
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
Alex Rønne Petersen [Mon, 7 Jul 2014 16:02:58 +0000 (18:02 +0200)]
Poking Jenkins again...
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
Alexander Köplinger [Wed, 2 Jul 2014 01:26:07 +0000 (03:26 +0200)]
[mdoc] Ignore generated test files
Alexander Köplinger [Wed, 2 Jul 2014 01:17:05 +0000 (03:17 +0200)]
[System.Drawing] Delete test files after test
Alexander Köplinger [Wed, 2 Jul 2014 01:09:35 +0000 (03:09 +0200)]
[System.IO.Compression] Delete test file after test
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
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 ().
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
Alex Rønne Petersen [Mon, 7 Jul 2014 12:16:37 +0000 (14:16 +0200)]
Add a build status badge to README.md.
Marek Safar [Mon, 7 Jul 2014 08:00:30 +0000 (10:00 +0200)]
[mcs] Flow analysis of moved arguments. Fixes #20983
Alexander Köplinger [Wed, 2 Jul 2014 01:29:49 +0000 (03:29 +0200)]
[mono] Ignore *.trs files in unit-tests
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.
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.
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.
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.
Marek Safar [Fri, 4 Jul 2014 14:25:22 +0000 (16:25 +0200)]
[corlib] Update
6b94215d0b82c0a24786cb33ecce3f89d6c4d879 to work with not null targets too
Marek Safar [Fri, 4 Jul 2014 11:22:53 +0000 (13:22 +0200)]
[mcs] Allow more conversions for CallerLineNumberAttribute
Zoltan Varga [Fri, 4 Jul 2014 13:56:02 +0000 (15:56 +0200)]
[sdb] Add support for out arguments in invokes.
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
Alex Rønne Petersen [Fri, 4 Jul 2014 02:55:16 +0000 (04:55 +0200)]
Empty commit, poking Jenkins...
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.
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.
Marek Safar [Thu, 3 Jul 2014 12:08:13 +0000 (14:08 +0200)]
[mcs] Don't cache lambda expressions in static constructor context
Marek Safar [Thu, 3 Jul 2014 11:42:38 +0000 (13:42 +0200)]
[mcs] Fixes flow analysis of if statement with constant expression
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
Marek Safar [Thu, 3 Jul 2014 09:35:28 +0000 (11:35 +0200)]
[mcs] Methodgroup probing checks are not allowed
Marek Safar [Thu, 3 Jul 2014 08:43:35 +0000 (10:43 +0200)]
[mcs] Methodgroup conversion involving user defined operators
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
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
Zoltan Varga [Thu, 3 Jul 2014 14:49:34 +0000 (16:49 +0200)]
[runtime] Enable aot on 64 bit osx.
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
Alex Rønne Petersen [Thu, 3 Jul 2014 00:46:21 +0000 (02:46 +0200)]
[System] Add more logging to the BeginConnectMultiple test.
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
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.
Rodrigo Kumpera [Wed, 2 Jul 2014 19:34:10 +0000 (15:34 -0400)]
[runtime] Add cross helper extensions.
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
Zoltan Varga [Wed, 2 Jul 2014 17:10:22 +0000 (19:10 +0200)]
[runtime] Fix the win32 build.
Marek Safar [Wed, 2 Jul 2014 13:33:16 +0000 (15:33 +0200)]
[mcs] Constant folding of null strings casted to object
Marek Safar [Wed, 2 Jul 2014 13:32:20 +0000 (15:32 +0200)]
[mcs] Add new test
Marek Safar [Wed, 2 Jul 2014 13:31:06 +0000 (15:31 +0200)]
[mcs] Parsing of nullable type cast inside statement with open parens
Marek Safar [Wed, 2 Jul 2014 10:59:53 +0000 (12:59 +0200)]
[mcs] Switch with user conversion to nullable governing type
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
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.
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.
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.