Bill Seurer [Wed, 23 Sep 2015 20:44:24 +0000 (15:44 -0500)]
[ppc] Updated ELF ABI v2 test cases to include returning structures from functions
Marek Habersack [Wed, 23 Sep 2015 14:24:53 +0000 (16:24 +0200)]
[test] Fix dependency on compiler behavior for a couple of tests
A couple of tests for System.Reflection.MethodBody assumed the code generated
by the compiler will be the same as the one generated by Mono's MCS. However,
when the code is built by CSC in release mode (version that comes with VS2015
was tested) the optimizations remove locals required by the old version of the
tests. Also, CSC orders the locals differently to MCS and that breaks one of
the tests which relied on the declaration order.
Another difference is that CSC and MCS type a certain local variable differently.
The variable being a byte* in source code is output in IL as such by MCS, but CSC
outputs an int8& - a by-ref type.
The tests are built by VS but they are executed by Mono on Android and so the
differences come up as errors.
This commit fixes both issues by working around the differences.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=33370 when it is included in XA
João Matos [Wed, 23 Sep 2015 13:47:50 +0000 (14:47 +0100)]
Merge pull request #2082 from akoeplinger/fix-automake
[unit-tests] Fix "parallel-tests" AUTOMAKE_OPTIONS not recognized by old automake
Marek Safar [Wed, 23 Sep 2015 08:45:28 +0000 (10:45 +0200)]
Merge pull request #2079 from kasthack/system-web-eh-import
[System.Web] Reference source import
Zoltan Varga [Tue, 22 Sep 2015 21:29:54 +0000 (17:29 -0400)]
Revert "[llvm] Allow phi instructions where some incoming nodes are not defined because they are defined by dead code."
This reverts commit
1a4e073bafdcd9b79ab9f6217730b083d0c52302.
Revert this, it can lead to phi instructions with no nodes.
Zoltan Varga [Tue, 22 Sep 2015 21:08:11 +0000 (17:08 -0400)]
[llvm] Allow phi instructions where some incoming nodes are not defined because they are defined by dead code.
kasthack [Tue, 22 Sep 2015 19:56:26 +0000 (22:56 +0300)]
[System.Web] Public event handlers from reference source
Rodrigo Kumpera [Tue, 22 Sep 2015 19:37:07 +0000 (15:37 -0400)]
[utils] Fix amd64 version of MONO_CONTEXT_GET_CURRENT.
Registers must be saved in MonoContext in the same order as mono_sigctx_to_monoctx.
This caused crashes on linux when unified suspend was enabled.
Ludovic Henry [Thu, 10 Sep 2015 13:03:03 +0000 (14:03 +0100)]
[coop-gc] Make Thread.Sleep interruptable signalless
kasthack [Tue, 22 Sep 2015 19:16:36 +0000 (22:16 +0300)]
[System.Web] HttpApplicationStateWrapper, HttpBrowserCapabilitiesWrapper, HttpCachePolicyWrapper and HttpSessionStateWrapper from reference source
Zoltan Varga [Tue, 22 Sep 2015 18:06:38 +0000 (14:06 -0400)]
Zoltan Varga [Tue, 22 Sep 2015 18:02:17 +0000 (14:02 -0400)]
[jit] Fix the linking of bblocks for switch statements, previously we were linking the bblock containing the range check with the target bblocks as well, causing problems when using llvm. Fixes #34147.
Marek Safar [Tue, 22 Sep 2015 17:32:05 +0000 (19:32 +0200)]
Merge pull request #2076 from akoeplinger/fix-bootstrap
[System] Remove C#6 expression bodied property to fix bootstrapping with older mcs
Marek Safar [Tue, 22 Sep 2015 17:31:15 +0000 (19:31 +0200)]
Merge pull request #2075 from kasthack/system-web-import-enums
[System.Web] Public enums from reference source
Alexander Köplinger [Tue, 22 Sep 2015 17:26:57 +0000 (19:26 +0200)]
[System] Remove C#6 expression bodied property to fix bootstrapping with older mcs
kasthack [Tue, 22 Sep 2015 15:46:35 +0000 (18:46 +0300)]
[System.Web] Public enums from reference source
Ludovic Henry [Tue, 15 Sep 2015 09:46:31 +0000 (10:46 +0100)]
[socket-io] Cleanup of the code to ease switching to signalless interrupts
Also fixes a bunch of missing MONO_(PREPARE|FINISH)_BLOCKING, or remove returns between MONO_(PREPARE|FINISH)_BLOCKING
Ludovic Henry [Fri, 14 Aug 2015 18:42:54 +0000 (15:42 -0300)]
[runtime] Fix color formatting on sublime text
Ludovic Henry [Fri, 14 Aug 2015 18:30:04 +0000 (15:30 -0300)]
[thread] Remove parameter as we always pass the current one
Ludovic Henry [Thu, 13 Aug 2015 20:08:59 +0000 (17:08 -0300)]
[thread] Remove duplicate and unused function declaration
Alexander Köplinger [Mon, 21 Sep 2015 23:28:00 +0000 (01:28 +0200)]
[unit-tests] Fix "parallel-tests" AUTOMAKE_OPTIONS not recognized by old automake
automake 1.13 introduced the flag as default, in
5ad2890c I explicitly set it via AUTOMAKE_OPTIONS
to ensure Jenkins (which is on automake 1.11 on some builders) has the same behavior.
Turns out that the flag isn't recognized by automake versions below 1.11 and so the build fails there.
To fix the problem, remove AUTOMAKE_OPTIONS from the Makefile.am in unit-tests and introduce some clever
code in configure.ac instead to set the flag only on the automake versions that need it.
David Karlaš [Tue, 22 Sep 2015 09:20:39 +0000 (11:20 +0200)]
Merge pull request #2071 from DavidKarlas/bug25480
Bug 25480 - OutputPath property is not set for this project
David Karlaš [Mon, 21 Sep 2015 18:30:22 +0000 (20:30 +0200)]
[XBuild] Ignoring paths of .csproj, .targets and .sln file paths so in case of missmatch between values in <ProjectReference> or .sln and actual file system continue matching project file path and project
David Karlaš [Mon, 21 Sep 2015 18:28:43 +0000 (20:28 +0200)]
[XBuild] Bug 25480 - OutputPath property is not set for this project
This error was generated when iOS(or any other kind of project, that is referencing other project in solution via <ProjectReference>) wanted to get OutputPath of PCL(or any other referenced project) but it failed in case of IDE because wrong conditions(see .targets files changes). Reason this bug was never discovered before is because PCL project was already loaded before with correct configuration/platform so not having AssignProjectConfiguration target executed had no effect. Reason it appeared in this case(Bug 25480) was that .sln and .csproj<ProjectReference> had folder path defined as XamlSamples but actual file system had xamlsamples(notice different chars casing). So projects.TryGet(filePath, out project) failed, hence project had to be reloaded, and then bug from .targets files showed up...
A bit more details about fix: The AssignProjectConfiguration target assigns configurations to the various @(ProjectReference), and is used from targets like ResolveProjectReferences, which are enabled only while building solution files ( $(BuildingSolutionFile) ) or when invoked from the IDE ( $(BuildingInsideVisualStudio) ). But the AssignProjectConfiguration target ignores the IDE case, which breaks usage of ResolveProjectReferences from the same. Fix up to run for both the cases.
Alexander Köplinger [Mon, 21 Sep 2015 12:19:05 +0000 (14:19 +0200)]
Revert "System.Web.UI.WebControls.SendMailErrorEvent(Args|Handler) from referencesource"
This reverts commit
7f5413a819d56db28202de94fec836fef0bddd96.
It caused a test failure in MonoTests.System.Web.UI.WebControls.PasswordRecoveryTest.GetPasswordTest
Marek Safar [Mon, 21 Sep 2015 09:07:20 +0000 (11:07 +0200)]
Bump referencesource
Marek Safar [Mon, 21 Sep 2015 07:58:47 +0000 (09:58 +0200)]
[corlib] Match es-es NumberGroupSeparator with es. Fixes #34047
Marek Safar [Mon, 21 Sep 2015 07:07:46 +0000 (09:07 +0200)]
Merge branch 'pr/2065'
Marek Safar [Mon, 21 Sep 2015 07:04:34 +0000 (09:04 +0200)]
[System.Net.Http] Set host header directly only
Marek Safar [Mon, 21 Sep 2015 06:28:44 +0000 (08:28 +0200)]
Merge pull request #2068 from kasthack/System.Web-import
System.Web reference source imports
Zoltan Varga [Mon, 21 Sep 2015 04:51:23 +0000 (00:51 -0400)]
Merge pull request #2067 from akoeplinger/unit-tests-nunit
[unit-tests] Emit NUnit xml report of test result
Zoltan Varga [Mon, 21 Sep 2015 04:41:53 +0000 (00:41 -0400)]
[aot] Remove unused 'autoreg' option.
Zoltan Varga [Mon, 21 Sep 2015 04:38:50 +0000 (00:38 -0400)]
[aot] Remove support for direct object file emission in aot mode, the implementation is not complete.
Zoltan Varga [Sun, 20 Sep 2015 18:56:37 +0000 (14:56 -0400)]
Add an 'rgctx' field to MonoDelegate, not yet used.
kasthack [Sun, 20 Sep 2015 06:53:17 +0000 (09:53 +0300)]
System.Web.Configuration.(AdapterDictionary,AuthenticationMode,MachineKeyValidation,ProcessModelComAuthenticationLevel,ProcessModelComImpersonationLevel,SystemWebCachingSectionGroup,WebApplicationLevel,XhtmlConformanceMode) from reference source
Added AsyncPreloadModeFlags + some internal classes used by MS's implementation
kasthack [Sun, 20 Sep 2015 05:36:48 +0000 (08:36 +0300)]
System.Web.UI.WebControls.WebParts.IWebPartTable+TableCallback from referencesource
kasthack [Sun, 20 Sep 2015 05:34:21 +0000 (08:34 +0300)]
System.Web.UI.WebControls.WebParts.IWebActionable from referencesource
kasthack [Sun, 20 Sep 2015 05:32:56 +0000 (08:32 +0300)]
System.Web.Configuration.CustomErrorsRedirectMode from referencesource
kasthack [Sun, 20 Sep 2015 05:31:45 +0000 (08:31 +0300)]
System.Web.UI.WebParts.WebPartEvent(Args|Handler) from referencesource
kasthack [Sun, 20 Sep 2015 05:30:05 +0000 (08:30 +0300)]
System.Web.Configuration.PagesEnableSessionState referencesource
kasthack [Sun, 20 Sep 2015 05:28:34 +0000 (08:28 +0300)]
System.Web.UI.WebParts.PartChromeState from referencesource
kasthack [Sun, 20 Sep 2015 05:26:12 +0000 (08:26 +0300)]
System.Web.UI.WebControls.CreateUserErrorEvent(Args|Handler) from referencesource
kasthack [Sun, 20 Sep 2015 05:24:31 +0000 (08:24 +0300)]
+System.Web.Configuration.TicketCompatibilityMode
kasthack [Sun, 20 Sep 2015 05:23:27 +0000 (08:23 +0300)]
System.Web.UI.WebControls.SendMailErrorEvent(Args|Handler) from referencesource
kasthack [Sun, 20 Sep 2015 05:21:32 +0000 (08:21 +0300)]
System.Web.Configuration.ProcessModelLogLevel from referencesource
kasthack [Sun, 20 Sep 2015 05:19:40 +0000 (08:19 +0300)]
+System.Web.Configuration.ProfileGuidedOptimizationsFlags.cs
kasthack [Sun, 20 Sep 2015 05:18:08 +0000 (08:18 +0300)]
System.Web.UI.WebControls.AuthenticateEvent(Args|Handler) from referencesource
kasthack [Sun, 20 Sep 2015 05:16:12 +0000 (08:16 +0300)]
+System.Web.UI.ValidateRequestMode
kasthack [Sun, 20 Sep 2015 05:14:52 +0000 (08:14 +0300)]
System.Web.Configuration.CustomErrorsMode from referencesource
kasthack [Sun, 20 Sep 2015 05:13:31 +0000 (08:13 +0300)]
System.Web.UI.WebControls.IPersistedSelector from referencesource
kasthack [Sun, 20 Sep 2015 05:11:52 +0000 (08:11 +0300)]
System.Web.Configuration.TraceDisplayMode from referencesource
kasthack [Sun, 20 Sep 2015 05:10:32 +0000 (08:10 +0300)]
System.Web.Configuration.AuthorizationRuleAction from referencesource
kasthack [Sun, 20 Sep 2015 05:08:50 +0000 (08:08 +0300)]
System.Web.UI.WebControls.LoginCancelEvent(Handler|Args) from referencesource
kasthack [Sun, 20 Sep 2015 05:06:34 +0000 (08:06 +0300)]
+UnobtrusiveValidationMode.cs
kasthack [Sun, 20 Sep 2015 05:05:09 +0000 (08:05 +0300)]
System.Web.UI.WebControls.WebParts.(IWebPartField|IWebPartFieldCallback) from referencesource
kasthack [Sun, 20 Sep 2015 05:00:14 +0000 (08:00 +0300)]
System.Web.UI.WebControls.WebParts.(IWebPartRow|IWebPartRowCallback) from referencesource
kasthack [Sun, 20 Sep 2015 04:55:49 +0000 (07:55 +0300)]
System.Web.TraceContextEvent(Args|Handler) from referencesource
kasthack [Sun, 20 Sep 2015 04:51:59 +0000 (07:51 +0300)]
System.Web.Routing.IRouteConstraint from referencesource
kasthack [Sun, 20 Sep 2015 04:45:49 +0000 (07:45 +0300)]
+System.Web.ModelBinding.(ModelError,ModelErrorCollection)
kasthack [Sun, 20 Sep 2015 04:40:54 +0000 (07:40 +0300)]
System.Web.UI.IThemeResolutionService from referencesource
kasthack [Sun, 20 Sep 2015 04:37:08 +0000 (07:37 +0300)]
System.Web.UI.WebControls.CallingDataMethodsEvent(Handler|Args) from referencesource
kasthack [Sun, 20 Sep 2015 04:33:12 +0000 (07:33 +0300)]
System.Web.Routing.IRouteHandler from reference source
kasthack [Sun, 20 Sep 2015 04:31:44 +0000 (07:31 +0300)]
System.Web.UI.WebControls.IDataBoundItemControl from reference source
kasthack [Sun, 20 Sep 2015 04:29:43 +0000 (07:29 +0300)]
System.Web.Routing.RouteDirection from reference source
kasthack [Sun, 20 Sep 2015 04:26:39 +0000 (07:26 +0300)]
System.Web.UI.WebControls.IFieldControl from reference source
kasthack [Sun, 20 Sep 2015 04:22:14 +0000 (07:22 +0300)]
System.Web.Caching.ResponseElement from reference source
kasthack [Sun, 20 Sep 2015 04:12:30 +0000 (07:12 +0300)]
System.Web.SessionState.SessionStateBehavior from reference source
kasthack [Sun, 20 Sep 2015 03:50:25 +0000 (06:50 +0300)]
System.Web.Compilation.(ImplicitResourceKey,IImplicitResourceProvider) from reference source
kasthack [Sun, 20 Sep 2015 03:38:52 +0000 (06:38 +0300)]
System.Web.Compilation.IAssemblyPostProcess from reference source
Alexander Köplinger [Sun, 20 Sep 2015 00:59:19 +0000 (02:59 +0200)]
[System] Fix SocketTest.SendAsyncFile test to use dynamic port
The previous hardcoded port 8001 caused "address already in use" errors on Jenkins.
Alexander Köplinger [Fri, 18 Sep 2015 17:37:10 +0000 (19:37 +0200)]
[unit-tests] Emit NUnit xml report of test result
Overrides check-local to output an NUnit report of the test results.
It currently creates a single pass/fail test case as this is the easiest solution,
but the test log is included in the report which should be enough to diagnose errors.
Parallelism is disabled here since we need to ensure check-local happens after check
so we can parse test-suite.log. The tests are quite fast so it doesn't hurt much.
We need AUTOMAKE_OPTIONS=parallel-tests so the test-suite.log gets created on automake 1.11.
Zoltan Varga [Sat, 19 Sep 2015 16:48:57 +0000 (12:48 -0400)]
Merge pull request #2029 from madewokherd/winformstests
Fix MonoTests.System.Windows.Forms.TrackBarBaseTest on Windows.
Alexander Köplinger [Sat, 19 Sep 2015 01:44:51 +0000 (03:44 +0200)]
Merge pull request #2064 from akoeplinger/profiler-nunit
[profiler] Emit NUnit xml report of test result in ptestrunner.pl
Rodrigo Kumpera [Fri, 18 Sep 2015 20:51:12 +0000 (16:51 -0400)]
[threading] Apparentlty zero is a valid tls key on some systems.
Marek Habersack [Mon, 14 Sep 2015 11:13:46 +0000 (13:13 +0200)]
[threadpool] Prevent high CPU usage in certain conditions
Threadpool uses poll(2) to watch the file descriptors for activity but
it can sometimes miss that an fd went into error. When that happens the
poll call is interrupted with EAGAIN since the erroneous fd's events have
already been read and there's nothing left in the queue for it. That, in turn,
causes mono to run the loop so quickly that it uses 100% of the CPU. It happens,
for instance, with Xamarin Studio which can utilize two CPU cores to the full while
idling on the opening screen.
This commit makes sure to remove the descriptors with errors from the poll set and
thus preventing the syscall from being interrupted and returning EAGAIN.
Zoltan Varga [Fri, 18 Sep 2015 16:56:29 +0000 (12:56 -0400)]
[jit] Remove some obsolete code from mini_type_is_hfa ().
Radek Doulik [Fri, 18 Sep 2015 11:08:36 +0000 (13:08 +0200)]
[linker-analyzer] enable build of linker-analyzer tool
Radek Doulik [Wed, 16 Sep 2015 21:03:43 +0000 (23:03 +0200)]
[linker] add linker dependencies dumping
Radek Doulik [Wed, 16 Sep 2015 12:59:34 +0000 (14:59 +0200)]
[linker-analyzer] intitial commit of the tool
Adam Burgess [Fri, 18 Sep 2015 05:35:49 +0000 (05:35 +0000)]
[System.Net.Http] Fix custom Host header not being set on requests. Fixes #34044
Atsushi Eno [Fri, 18 Sep 2015 02:12:32 +0000 (10:12 +0800)]
Merge pull request #1899 from saper/resgencond
[resgen] Implement conditional resources (#if/#ifdef)
Zoltan Varga [Thu, 17 Sep 2015 21:50:39 +0000 (17:50 -0400)]
Revert "[jit] Emit the results of the jit regressions tests in nunit format only when running under jenkins."
This reverts commit
1ef694ae5272dd08f972e74598ec758cb911be89.
Revert this, JENKINS_URL is not an automake variable.
Alexander Köplinger [Thu, 17 Sep 2015 21:46:28 +0000 (23:46 +0200)]
[profiler] Emit NUnit xml report of test result in ptestrunner.pl
Currently only emits a single pass/fail testcase as capturing the individual errors
and test counts would be much more invasive.
The bulk of the logic is copied from mono/mini/emitnunit.pl.
Ludovic Henry [Mon, 14 Sep 2015 14:32:21 +0000 (15:32 +0100)]
[bcl] Fix System.Net.HttpWebRequestTest.GetRequestStream hang
This hang would manifest when running the System test suite, with a thread waiting on a `recv'. This syscall would never be interrupted because the socket it would listen on would never close, as there would still be references to its SafeSocketHandle, so that it would never release the native handle.
The issue came from the fact that, when closing the SocketResponder (via the Dispose and the using), the listening thread would never be aborted/stopped, and it would consequently never be collected, thus never releasing the current socket on which _requestHandler is called, thus never aborting the above `recv' syscall.
The issue would arise with the cooperative GC as well as the premptive one.
Marcos Henrich [Thu, 17 Sep 2015 14:47:31 +0000 (15:47 +0100)]
Merge pull request #2047 from esdrubal/socketreuse
[System] Fix TCP socket reuse.
Ludovic Henry [Wed, 16 Sep 2015 13:11:56 +0000 (14:11 +0100)]
[delegate] Fix NRE on GetHashCode
Marcos Henrich [Wed, 16 Sep 2015 15:21:29 +0000 (16:21 +0100)]
[System] Updated SocketTest.TcpDoubleBind.
Multiple threads listening to the same address and port are not possible
before linux 3.9 kernel, where the socket option SO_REUSEPORT was
introduced.
This commit makes TcpDoubleBind sensible to this OS capability.
Ludovic Henry [Thu, 17 Sep 2015 09:35:08 +0000 (10:35 +0100)]
[math] Fix corlib/System.MathTest.TestPow test #48 on Linux 32bits
Zoltan Varga [Wed, 16 Sep 2015 17:26:09 +0000 (13:26 -0400)]
[amd64] More gsharedvt/cleanup work.
Zoltan Varga [Wed, 16 Sep 2015 16:50:34 +0000 (12:50 -0400)]
Revert "[amd64] More gsharedvt/cleanup work."
This reverts commit
c09ca0fd7ef86f9cd6d591def2fa6a60bc272fa1.
Revert this as it breaks the build.
Ludovic Henry [Wed, 16 Sep 2015 16:17:24 +0000 (17:17 +0100)]
[math] Fix corlib/System.MathTest.TestPow #47 on Linux 32bits
Ludovic Henry [Mon, 14 Sep 2015 17:25:40 +0000 (18:25 +0100)]
[SafeHandle] Cleanup of the code
This is to avoid code duplication and multiline conditions assignement
Marcos Henrich [Wed, 16 Sep 2015 06:05:08 +0000 (07:05 +0100)]
Merge pull request #2056 from esdrubal/urilocal
[System] Fixes TimeZoneInfo.ConvertTimeFromUtc.
Zoltan Varga [Wed, 16 Sep 2015 01:27:06 +0000 (21:27 -0400)]
[amd64] More gsharedvt/cleanup work.
Zoltan Varga [Tue, 15 Sep 2015 23:27:21 +0000 (19:27 -0400)]
[sdb] Fix the aborting of multiple invocations.
Zoltan Varga [Tue, 15 Sep 2015 20:48:48 +0000 (16:48 -0400)]
[sdb] Add a test for aborting invokes.
Zoltan Varga [Tue, 15 Sep 2015 19:38:11 +0000 (15:38 -0400)]
[runtime] Fix a potential buffer overflow in mono_network_get_data (). Fixes #33851.
Zoltan Varga [Tue, 15 Sep 2015 19:04:41 +0000 (15:04 -0400)]
[sdb] Avoid aborting the runtime with a breakpoint signal if Debugger.Break () is called, add a MONO_DEBUG=native-debugger-break option to enable it. Fixes #33952.
Marcos Henrich [Tue, 15 Sep 2015 16:19:43 +0000 (17:19 +0100)]
[corlib] Added fixture ConvertTimeTests_LocalUtc.
ConvertTimeTests_LocalUtc runs ConvertTimeTests fixture with
TimeZoneInfo.Local set to TimeZoneInfo.Utc.
Removed redundant test ConvertFromToUtc_LocalAsUtc.
Marcos Henrich [Tue, 15 Sep 2015 14:09:17 +0000 (15:09 +0100)]
[System] Fixes TimeZoneInfo.ConvertTimeFromUtc.
Fixes TimeZoneInfo.ConvertTimeFromUtc and related tests when
TimeZoneInfo.Local is equal to TimeZoneInfo.Utc.
In .NET if we set TimeZoneInfo.Local to TimeZoneInfo.Utc by using
reflection.
```
var cachedDataField = typeof (TimeZoneInfo).GetField ("s_cachedData",
BindingFlags.Static | BindingFlags.GetField | BindingFlags.NonPublic);
var localField = cachedDataField.FieldType.GetField ("m_localTimeZone",
BindingFlags.Instance | BindingFlags.GetField | BindingFlags.NonPublic);
var localFieldObj = cachedDataField.GetValue (null);
localField.SetValue (localFieldObj, DateTimeKind.Utc);
```
We can observe that `TimeZoneInfo.ConvertTimeFromUtc (DateTime.UtcNow,
TimeZoneInfo.Local).Kind` is DateTimeKind.Utc.
By looking at reference source [code](http://referencesource.microsoft.com/#mscorlib/system/timezoneinfo.cs,211)
we can also confirm that while getting a time zone corresponding kind,
Utc is prioritized over Local.
This commit reverts changes introduced by
60d5b39e46c7c34ed0029bf0818e3ec0d073d3ef that were prioritizing Local
over Utc and changes tests to expect Utc kinds instead of Local when
TimeZoneInfo.Local is equal to TimeZoneInfo.Utc.