mono.git
9 years ago[sgen] Move `do_pin_stats` flag into `sgen-pinning-stats.c`.
Mark Probst [Sun, 14 Dec 2014 00:49:12 +0000 (16:49 -0800)]
[sgen] Move `do_pin_stats` flag into `sgen-pinning-stats.c`.

9 years agoMerge pull request #1748 from rolfbjarne/proclib-fix
Rolf Bjarne Kvinge [Wed, 29 Apr 2015 14:13:49 +0000 (16:13 +0200)]
Merge pull request #1748 from rolfbjarne/proclib-fix

[runtime] Don't call mach_port_deallocate on tasks we don't own.

9 years ago[runtime] Don't call mach_port_deallocate on tasks we don't own.
Rolf Bjarne Kvinge [Tue, 28 Apr 2015 17:03:34 +0000 (19:03 +0200)]
[runtime] Don't call mach_port_deallocate on tasks we don't own.

Fixes random/strange hangs/crashes (many native API starts returning
out-of-memory errors when there is plenty of memory available, other
just hang inexplicably) when profiling.

9 years ago[corlib] Fixes security tests failures
Marek Safar [Wed, 29 Apr 2015 11:40:52 +0000 (13:40 +0200)]
[corlib] Fixes security tests failures

9 years ago[jit] Remove #ifdef MONO_ARCH_VTABLE_REG, it is defined on all architectures.
Zoltan Varga [Wed, 29 Apr 2015 09:16:27 +0000 (05:16 -0400)]
[jit] Remove #ifdef MONO_ARCH_VTABLE_REG, it is defined on all architectures.

9 years ago[build] Fix "make dist"
Alexander Köplinger [Wed, 29 Apr 2015 05:08:05 +0000 (07:08 +0200)]
[build] Fix "make dist"

A few files didn't get added to EXTRA_DIST when the MS threadpool code was introduced.

9 years ago[sgen] Check SP on thread suspend correctly. Fixes #29177.
Mark Probst [Tue, 28 Apr 2015 22:02:49 +0000 (15:02 -0700)]
[sgen] Check SP on thread suspend correctly. Fixes #29177.

9 years agoMerge pull request #1747 from alexrp/gc-internal-api
Alex Rønne Petersen [Tue, 28 Apr 2015 17:38:51 +0000 (19:38 +0200)]
Merge pull request #1747 from alexrp/gc-internal-api

Remove MONO_API from some internal GC APIs

9 years ago[corlib] Add new test
Marek Safar [Tue, 28 Apr 2015 17:33:41 +0000 (19:33 +0200)]
[corlib] Add new test

9 years ago[corlib] More cryptography from reference sources
Marek Safar [Tue, 28 Apr 2015 17:04:42 +0000 (19:04 +0200)]
[corlib] More cryptography from reference sources

9 years agoMerge pull request #1696 from esdrubal/tzrefactor
Marcos Henrich [Tue, 28 Apr 2015 15:36:08 +0000 (16:36 +0100)]
Merge pull request #1696 from esdrubal/tzrefactor

TimeZone Refactoring.

9 years ago[runtime] Move `mono_error_assert_ok` to mono-error-internals.h.
João Matos [Tue, 28 Apr 2015 14:57:52 +0000 (15:57 +0100)]
[runtime] Move `mono_error_assert_ok` to mono-error-internals.h.

I originally introduced it as a public API but after some discussion we decided it's best as a private API.

9 years ago[corlib] More cryptography from reference sources
Marek Safar [Tue, 28 Apr 2015 11:37:57 +0000 (13:37 +0200)]
[corlib] More cryptography from reference sources

9 years agoMerge pull request #1734 from anikilatorbeta/patch-1
Alex Rønne Petersen [Tue, 28 Apr 2015 08:45:40 +0000 (10:45 +0200)]
Merge pull request #1734 from anikilatorbeta/patch-1

Upadate socket and add OSSupportsIPv4 in net 4.0

9 years agoRemove MONO_API from some internal GC APIs.
Alex Rønne Petersen [Tue, 28 Apr 2015 01:26:24 +0000 (03:26 +0200)]
Remove MONO_API from some internal GC APIs.

9 years ago[sgen] Fix a card table bug on 64 bits.
Mark Probst [Tue, 28 Apr 2015 00:31:46 +0000 (17:31 -0700)]
[sgen] Fix a card table bug on 64 bits.

When copying value types (like via Array.Copy) it was possible to
encounter a memory region going over the end of the card table array.
In that case we would overwrite data after the card table and fail
to mark cards at the start of the array.

It's hard to do a test case for this because we allocate the shadow card
table directly after the regular one, so the overwrite is benign.  It would
also require allocating very large arrays (>2Gb) and run very slowly.

9 years agoMerge pull request #1745 from alexrp/warning-police
Alex Rønne Petersen [Tue, 28 Apr 2015 00:18:40 +0000 (02:18 +0200)]
Merge pull request #1745 from alexrp/warning-police

Warning police

9 years agoMerge pull request #1743 from alexrp/profiler-versioning
Rodrigo Kumpera [Mon, 27 Apr 2015 19:25:06 +0000 (15:25 -0400)]
Merge pull request #1743 from alexrp/profiler-versioning

Introduce versioning of the profiler API

9 years ago[system.xml] Fix public api
Marek Safar [Mon, 27 Apr 2015 18:06:46 +0000 (20:06 +0200)]
[system.xml] Fix public api

9 years ago[build] Fix bootstrap from 2.0 only era mono
Marek Safar [Mon, 27 Apr 2015 17:04:20 +0000 (19:04 +0200)]
[build] Fix bootstrap from 2.0 only era mono

9 years ago[build] Remove 2.0 sdk from monolite when we are 4.0 only
Marek Safar [Mon, 27 Apr 2015 16:17:43 +0000 (18:17 +0200)]
[build] Remove 2.0 sdk from monolite when we are 4.0 only

9 years agoIntroduce mono_error_assert_ok for checking and asserting that a MonoError is OK.
João Matos [Mon, 27 Apr 2015 14:24:58 +0000 (15:24 +0100)]
Introduce mono_error_assert_ok for checking and asserting that a MonoError is OK.

We're adding this new API call to replace the `g_assert (mono_error_ok (&error));` code pattern so that when there's an error we can print the error message from the MonoError.

9 years ago[corlib] Implement monomethod Module property
Marek Safar [Mon, 27 Apr 2015 15:24:33 +0000 (17:24 +0200)]
[corlib] Implement monomethod Module property

9 years ago[corlib] Add string CompareOrdinal arguments checks
Marek Safar [Mon, 27 Apr 2015 14:28:16 +0000 (16:28 +0200)]
[corlib] Add string CompareOrdinal arguments checks

9 years ago[utils] Fix a bad format specifier.
Alex Rønne Petersen [Mon, 27 Apr 2015 14:18:51 +0000 (16:18 +0200)]
[utils] Fix a bad format specifier.

9 years ago[mini] Fix some warnings related to co-op suspend code.
Alex Rønne Petersen [Mon, 27 Apr 2015 14:18:26 +0000 (16:18 +0200)]
[mini] Fix some warnings related to co-op suspend code.

9 years ago[runtime] Remove some unused functions.
Alex Rønne Petersen [Mon, 27 Apr 2015 14:18:11 +0000 (16:18 +0200)]
[runtime] Remove some unused functions.

9 years ago[threadpool] Fix some prototypes in the MS thread pool code.
Alex Rønne Petersen [Mon, 27 Apr 2015 14:17:38 +0000 (16:17 +0200)]
[threadpool] Fix some prototypes in the MS thread pool code.

9 years ago[sgen] Add missing return in thread pool's thread_func ().
Alex Rønne Petersen [Mon, 27 Apr 2015 14:17:06 +0000 (16:17 +0200)]
[sgen] Add missing return in thread pool's thread_func ().

9 years agoMerge pull request #1738 from rolfbjarne/dublin-1916-dst
Marcos Henrich [Mon, 27 Apr 2015 11:15:25 +0000 (12:15 +0100)]
Merge pull request #1738 from rolfbjarne/dublin-1916-dst

[corlib] Cope with the reference sources' inability to support sub-minute DST offsets

9 years ago[corlib] Cope with the reference sources' inability to support sub-minute DST offsets.
Rolf Bjarne Kvinge [Fri, 24 Apr 2015 11:16:31 +0000 (13:16 +0200)]
[corlib] Cope with the reference sources' inability to support sub-minute DST offsets.

The reference sources do not support sub-minute DST offsets as the exception below
shows, while Europe/Dublin has a DST offset of 34:39 in 1916.

There is no equivalent TimeZoneInfo for Europe/Dublin in .NET, so the problem
doesn't show up there.

System.ArgumentException: The TimeSpan parameter cannot be specified more precisely than whole minutes.
Parameter name: daylightDelta

  at System.TimeZoneInfo/AdjustmentRule.ValidateAdjustmentRule (System.DateTime,System.DateTime,System.TimeSpan,System.TimeZoneInfo/TransitionTime,System.TimeZoneInfo/TransitionTime) [0x0012c] in /work/mono/master/external/referencesource/mscorlib/system/timezoneinfo.cs:3907
  at System.TimeZoneInfo/AdjustmentRule.CreateAdjustmentRule (System.DateTime,System.DateTime,System.TimeSpan,System.TimeZoneInfo/TransitionTime,System.TimeZoneInfo/TransitionTime) [0x00000] in /work/mono/master/external/referencesource/mscorlib/system/timezoneinfo.cs:3836
  at System.TimeZoneInfo.ParseTZBuffer (string,byte[],int) [0x002ca] in /work/mono/master/mcs/class/corlib/System/TimeZoneInfo.cs:1230
  at System.TimeZoneInfo.BuildFromStream (string,System.IO.Stream) [0x00030] in /work/mono/master/mcs/class/corlib/System/TimeZoneInfo.cs:479
  at System.TimeZoneInfo.FindSystemTimeZoneByFileName (string,string) [0x00018] in /work/mono/master/mcs/class/corlib/System/TimeZoneInfo.cs:463
  at System.TimeZoneInfo.FindSystemTimeZoneById (string) [0x00075] in /work/mono/master/mcs/class/corlib/System/TimeZoneInfo.cs:450
  at MonoTests.System.TimeZoneInfoTest/FindSystemTimeZoneByIdTests.Dublin () [0x00015] in /work/mono/master/mcs/class/corlib/Test/System/TimeZoneInfoTest.cs:812

9 years ago[runtime] Introduce versioning of the profiler API.
Alex Rønne Petersen [Tue, 21 Apr 2015 02:43:46 +0000 (04:43 +0200)]
[runtime] Introduce versioning of the profiler API.

The profiler API needs to evolve with the runtime. By versioning the API we can
at least to some degree let developers know when their modules are out of date
and how to update them.

9 years ago[aot] Refactor some of the architecture specific functions a little.
Zoltan Varga [Sat, 25 Apr 2015 05:10:20 +0000 (01:10 -0400)]
[aot] Refactor some of the architecture specific functions a little.

9 years agoFix a warning.
Zoltan Varga [Thu, 23 Apr 2015 21:58:18 +0000 (17:58 -0400)]
Fix a warning.

9 years ago[configure] Another attempt at fixing windows cross compilers.
Rodrigo Kumpera [Fri, 24 Apr 2015 22:28:27 +0000 (18:28 -0400)]
[configure] Another attempt at fixing windows cross compilers.

9 years ago[mini] Remove now-unused InternalSetChar intrinsic.
Alex Rønne Petersen [Fri, 24 Apr 2015 21:51:01 +0000 (23:51 +0200)]
[mini] Remove now-unused InternalSetChar intrinsic.

9 years ago[mini] Fix intrinsic signature checks to take into account the 'this' parameter.
Alex Rønne Petersen [Fri, 24 Apr 2015 21:50:34 +0000 (23:50 +0200)]
[mini] Fix intrinsic signature checks to take into account the 'this' parameter.

9 years ago[sgen] Document a shutdown sequence bug.
Mark Probst [Fri, 24 Apr 2015 18:21:13 +0000 (11:21 -0700)]
[sgen] Document a shutdown sequence bug.

9 years agoMerge pull request #1736 from atsushieno/import-wcf
Atsushi Eno [Fri, 24 Apr 2015 14:53:38 +0000 (23:53 +0900)]
Merge pull request #1736 from atsushieno/import-wcf

Import System.Runtime.Serialization from referencesource.

9 years agoInclude the problematic time zone in the exception message when throwing a TimeZoneNo...
Rolf Bjarne Kvinge [Wed, 25 Mar 2015 12:32:30 +0000 (13:32 +0100)]
Include the problematic time zone in the exception message when throwing a TimeZoneNotFoundException.

9 years ago[Sys.Data] fix SqlParameter SystemType lookup after referencesource merge.
Atsushi Eno [Fri, 24 Apr 2015 06:49:44 +0000 (15:49 +0900)]
[Sys.Data] fix SqlParameter SystemType lookup after referencesource merge.

This should fix bug #29078, patch by Neale Ferguson.

9 years ago[S.R.Serialization] fix mobile static build.
Atsushi Eno [Fri, 24 Apr 2015 06:08:24 +0000 (15:08 +0900)]
[S.R.Serialization] fix mobile static build.

9 years agoMerge branch 'master' into import-wcf
Atsushi Eno [Fri, 24 Apr 2015 06:08:18 +0000 (15:08 +0900)]
Merge branch 'master' into import-wcf

9 years agobump referencesource for S.R.Serialization import.
Atsushi Eno [Fri, 24 Apr 2015 06:07:20 +0000 (15:07 +0900)]
bump referencesource for S.R.Serialization import.

9 years ago[S.R.Serialization] fill message strings.
Atsushi Eno [Tue, 21 Apr 2015 06:54:03 +0000 (15:54 +0900)]
[S.R.Serialization] fill message strings.

9 years ago[WCF] disable not working announcement client test.
Atsushi Eno [Tue, 21 Apr 2015 02:23:59 +0000 (11:23 +0900)]
[WCF] disable not working announcement client test.

WS-Discovery never got working, skip cosmetic test to not block porting.

9 years agoAdd System.ServiceModel.Internals and SMDiagnostics to the build.
Atsushi Eno [Mon, 20 Apr 2015 15:00:27 +0000 (00:00 +0900)]
Add System.ServiceModel.Internals and SMDiagnostics to the build.

9 years ago[WCF] similar to Binary writer fixes, do not close Text writer.
Atsushi Eno [Mon, 20 Apr 2015 13:17:22 +0000 (22:17 +0900)]
[WCF] similar to Binary writer fixes, do not close Text writer.

Just like BinaryMessageFormatter needed to use another CreateBinaryWriter()
overload to NOT close the input stream, use CreateTextWriter() overload that
does not close the stream.

9 years ago[WCF] fix JSON deserialization test that didn't match .NET behavior.
Atsushi Eno [Mon, 20 Apr 2015 12:10:05 +0000 (21:10 +0900)]
[WCF] fix JSON deserialization test that didn't match .NET behavior.

JSON array is deserialized as Array, not List<T>.

9 years ago[WCF] fix syndication extension Add() resolution by appropriate accessibility.
Atsushi Eno [Mon, 20 Apr 2015 11:38:39 +0000 (20:38 +0900)]
[WCF] fix syndication extension Add() resolution by appropriate accessibility.

I wonder why, but when switched to referencesource, it turned out that
ResourceCollectionInfo calls SyndicationElementExtensionCollection.Add()
which targets a private overload, but (of course) failed and resolved to
another overload that takes object, and thus resulting in invalid code path.

With this fix the call to Add() resolves to the expected one and does not
regress with referencesource import.

9 years ago[WCF] fixed a couple of DateTime related tests that also failed on .NET IN JST.
Atsushi Eno [Mon, 20 Apr 2015 08:31:07 +0000 (17:31 +0900)]
[WCF] fixed a couple of DateTime related tests that also failed on .NET IN JST.

Those tests were added without considering TimeZone difference. They cause
several kind of errors (SerializationException etc.) in JST (+09:00) or any
timezone that is earlier than UTC.

We likely had some "working" implementation, but was incompatible with .NET.

9 years ago[WCF] mark JsonReader tests that proves referencesource bugs as [Ignore]d.
Atsushi Eno [Mon, 20 Apr 2015 07:43:57 +0000 (16:43 +0900)]
[WCF] mark JsonReader tests that proves referencesource bugs as [Ignore]d.

.NET WCF JSON serializer has been known to be buggy...

9 years ago[WCF] XmlReader from GetReaderAtBodyContents() should not be missing xmlns-es.
Atsushi Eno [Mon, 20 Apr 2015 07:07:42 +0000 (16:07 +0900)]
[WCF] XmlReader from GetReaderAtBodyContents() should not be missing xmlns-es.

The namespace declarations existed when the entire Message is read but not
in the partial body contents. They caused regressions when we use
serialization stack from referencesource.

It is possible that more namespaces may be requied, but we will be importing
System.ServiceModel later on and then the issue will go away.
So far we don't want regression as long as they show up in our NUnit tests.

9 years ago[WCF] exclude extra schema by referencesource XsdDataContractExporter.
Atsushi Eno [Fri, 17 Apr 2015 09:50:22 +0000 (18:50 +0900)]
[WCF] exclude extra schema by referencesource XsdDataContractExporter.

Unlike our own XsdDataContractExporter, referencesource one generates
an extra schema that targets xs:* (XmlSchema.Namespace).
That should not be generated as part of WSDL, so exclude it.

9 years ago[WCF] fix another use of XmlBinaryWriter that closes stream and accesses it later.
Atsushi Eno [Thu, 16 Apr 2015 18:01:13 +0000 (03:01 +0900)]
[WCF] fix another use of XmlBinaryWriter that closes stream and accesses it later.

9 years ago[WCF] referencesource XmlBinaryWriter closes stream by default, so keep it open.
Atsushi Eno [Thu, 16 Apr 2015 17:43:24 +0000 (02:43 +0900)]
[WCF] referencesource XmlBinaryWriter closes stream by default, so keep it open.

Otherwise MemoryStream.Position complains that it is already disposed.

9 years ago[S.R.Serialization] for some use cases we don't expect reflection exception.
Atsushi Eno [Thu, 16 Apr 2015 09:00:19 +0000 (18:00 +0900)]
[S.R.Serialization] for some use cases we don't expect reflection exception.

We do throw TargetInvocationException because we can only use reflection.
So unwrap those exceptions. It is kind of silly though...

9 years ago[S.R.Serialization] change all NotDotNet Json reader tests to [Ignore].
Atsushi Eno [Thu, 16 Apr 2015 07:56:17 +0000 (16:56 +0900)]
[S.R.Serialization] change all NotDotNet Json reader tests to [Ignore].

9 years ago[S.R.Serialization] fix Json reader member duplicate check index.
Atsushi Eno [Thu, 16 Apr 2015 07:29:03 +0000 (16:29 +0900)]
[S.R.Serialization] fix Json reader member duplicate check index.

9 years ago[S.R.Serialization] fix condition on simple dictionary output.
Atsushi Eno [Thu, 16 Apr 2015 06:45:35 +0000 (15:45 +0900)]
[S.R.Serialization] fix condition on simple dictionary output.

9 years ago[S.R.Serialization] add Json reader/writer interpreters.
Atsushi Eno [Thu, 16 Apr 2015 06:35:01 +0000 (15:35 +0900)]
[S.R.Serialization] add Json reader/writer interpreters.

They don't pass all the tests in System.ServiceModel.Web yet.

9 years ago[S.R.Serialization] remove debugging code.
Atsushi Eno [Thu, 16 Apr 2015 06:33:34 +0000 (15:33 +0900)]
[S.R.Serialization] remove debugging code.

9 years ago[S.R.Serialization] fix MTOM writer test to match .NET behavior.
Atsushi Eno [Wed, 15 Apr 2015 05:59:55 +0000 (14:59 +0900)]
[S.R.Serialization] fix MTOM writer test to match .NET behavior.

WriteStartDocument() can be used with document and document does not accept
more than one element, which basically contradicts MTOM writer usage.

For EOL changes, MTOM writer should not alter content EOL chars.

9 years ago[S.R.Serialization] fix XsdDataContractImporter test to match .NET behavior.
Atsushi Eno [Wed, 15 Apr 2015 05:42:32 +0000 (14:42 +0900)]
[S.R.Serialization] fix XsdDataContractImporter test to match .NET behavior.

It is likely that the second contract conflicts with the existing one and
WCF renames it to avoid that.

9 years ago[S.R.Serialization] fix wrong test that doesn't match .NET behavior.
Atsushi Eno [Wed, 15 Apr 2015 05:18:42 +0000 (14:18 +0900)]
[S.R.Serialization] fix wrong test that doesn't match .NET behavior.

There is no BOM output on Windows either.

9 years ago[S.R.Serialization] implement XmlDataContract's interpreter method.
Atsushi Eno [Tue, 14 Apr 2015 13:00:33 +0000 (22:00 +0900)]
[S.R.Serialization] implement XmlDataContract's interpreter method.

9 years ago[S.R.Serialization] additional type check for collection serialization is also needed.
Atsushi Eno [Tue, 14 Apr 2015 11:17:47 +0000 (20:17 +0900)]
[S.R.Serialization] additional type check for collection serialization is also needed.

9 years ago[S.R.Serialization] additional type check for array serialization is needed.
Atsushi Eno [Tue, 14 Apr 2015 09:34:16 +0000 (18:34 +0900)]
[S.R.Serialization] additional type check for array serialization is needed.

9 years ago[S.R.Serialization] do not update memberType when not expected.
Atsushi Eno [Mon, 13 Apr 2015 20:20:41 +0000 (05:20 +0900)]
[S.R.Serialization] do not update memberType when not expected.

The removed code caused unexpected omission of xsi:type by giving "false"
Type information that is from the actual value (when the expected type is
different, xsi:type should be written).

9 years ago[S.R.Serialization] fix nullable serialization to match referencesource codegen.
Atsushi Eno [Mon, 13 Apr 2015 18:20:37 +0000 (03:20 +0900)]
[S.R.Serialization] fix nullable serialization to match referencesource codegen.

The original code is complicated enough that I misinterpreted the logic...

The reulting code should look like this:

DateTime? expr_94 = timeSubmitted;
DateTime dateTime;
bool arg_B5_0;
if (XmlObjectSerializerWriteContext.GetHasValue<DateTime> (expr_94)) {
dateTime = XmlObjectSerializerWriteContext.GetNullableValue<DateTime> (expr_94);
arg_B5_0 = false;
}
else {
dateTime = XmlObjectSerializerWriteContext.GetDefaultValue<DateTime> ();
arg_B5_0 = true;
}

The fixed code should be like this now.

9 years ago[S.R.Serialization] fix deserialization of primitive arrays in reader interpreter.
Atsushi Eno [Wed, 8 Apr 2015 08:54:47 +0000 (17:54 +0900)]
[S.R.Serialization] fix deserialization of primitive arrays in reader interpreter.

Basically the primary cause of the problem was that invoked primitive array
reader methods via reflection had 'out' parameter, which needed special care.

9 years ago[S.R.Serialization] fix member indexing on reading deserialized members.
Atsushi Eno [Tue, 7 Apr 2015 15:32:03 +0000 (00:32 +0900)]
[S.R.Serialization] fix member indexing on reading deserialized members.

9 years ago[S.R.Serialization] fix array element deserialization.
Atsushi Eno [Tue, 7 Apr 2015 15:25:14 +0000 (00:25 +0900)]
[S.R.Serialization] fix array element deserialization.

Array elements were not deserialized correctly and causing null (default)
items put into the array.

9 years ago[S.R.Serialization] fix writer interpreter on enumerating non-dictionary.
Atsushi Eno [Mon, 6 Apr 2015 19:01:24 +0000 (04:01 +0900)]
[S.R.Serialization] fix writer interpreter on enumerating non-dictionary.

Collection serialization was mostly failing, when it was non-dictionary.

Now it should be closer to referencesource dynamic code behavior.

9 years ago[S.R.Serialization] fix reader interpreter: "required" check was broken.
Atsushi Eno [Mon, 6 Apr 2015 18:39:48 +0000 (03:39 +0900)]
[S.R.Serialization] fix reader interpreter: "required" check was broken.

Now it should match referencesource behavior.

9 years ago[S.R.Serialization] Fix TryWritePrimitive() parameter assignment.
Atsushi Eno [Mon, 6 Apr 2015 18:21:37 +0000 (03:21 +0900)]
[S.R.Serialization] Fix TryWritePrimitive() parameter assignment.

It was inconsistent with what referencesource codegen does.

9 years ago[S.R.Serialization] add missing ConvertValue on xml reader interpreter.
Atsushi Eno [Mon, 6 Apr 2015 16:28:57 +0000 (01:28 +0900)]
[S.R.Serialization] add missing ConvertValue on xml reader interpreter.

9 years ago[S.R.Serialization] fix broken test (exposed by referencesource import work).
Atsushi Eno [Mon, 6 Apr 2015 15:35:55 +0000 (00:35 +0900)]
[S.R.Serialization] fix broken test (exposed by referencesource import work).

9 years agobuild System.ServiceModel.Internals everywhere.
Atsushi Eno [Mon, 6 Apr 2015 14:55:51 +0000 (23:55 +0900)]
build System.ServiceModel.Internals everywhere.

9 years ago[S.R.Serialization] implement XmlFormatReaderGenerator interpreter.
Atsushi Eno [Fri, 3 Apr 2015 19:28:47 +0000 (04:28 +0900)]
[S.R.Serialization] implement XmlFormatReaderGenerator interpreter.

Though it's still buggy and shows several nunit test failures yet.

9 years ago[S.R.Serialization] implemented interpreter-based XmlFormatWriterGenerator.
Atsushi Eno [Thu, 2 Apr 2015 19:43:57 +0000 (04:43 +0900)]
[S.R.Serialization] implemented interpreter-based XmlFormatWriterGenerator.

9 years ago[S.R.Serialization] switch to (non-emit) reflection-based implementation stubs.
Atsushi Eno [Wed, 1 Apr 2015 09:08:15 +0000 (18:08 +0900)]
[S.R.Serialization] switch to (non-emit) reflection-based implementation stubs.

The new code is to implement reflection (non-emit) based serialization
so that it works on iOS.

Actually I _totally_ switched to this new implementation because dynamic
method based implementation also doesn't work fine, even on desktop
(due to invocation failure on internal methods, it seems that our dynamic
method needs some bugfixes).

The new methods with NotImplementedException in new classes need to be
implemented.

9 years agoFix mobile build (breakage caused by referencesource switch).
Atsushi Eno [Tue, 31 Mar 2015 08:25:12 +0000 (17:25 +0900)]
Fix mobile build (breakage caused by referencesource switch).

9 years ago[S.R.Serialization] switch to USE_REFEMIT to reduce test failures.
Atsushi Eno [Tue, 31 Mar 2015 07:02:33 +0000 (16:02 +0900)]
[S.R.Serialization] switch to USE_REFEMIT to reduce test failures.

We don't use neither of expression trees nor SRE anyways, but it's easier
to reduce noises in nunit test failures to review the rest.

9 years agoAdd system.runtime.serialization config, makes several tests pass.
Atsushi Eno [Tue, 31 Mar 2015 07:01:48 +0000 (16:01 +0900)]
Add system.runtime.serialization config, makes several tests pass.

9 years ago[S.R.Serialization] switch to referencesources.
Atsushi Eno [Mon, 30 Mar 2015 18:22:28 +0000 (03:22 +0900)]
[S.R.Serialization] switch to referencesources.

It builds on net_4_5 and monodroid so far.

We still need to eliminate dynamic code generation to make it work on iOS.

9 years ago[S.Xml] Add [InternalsVisibleTo(S.R.Serialization)].
Atsushi Eno [Mon, 30 Mar 2015 18:11:17 +0000 (03:11 +0900)]
[S.Xml] Add [InternalsVisibleTo(S.R.Serialization)].

9 years agoMerge pull request #1735 from akoeplinger/mingw-fix
Alex Rønne Petersen [Fri, 24 Apr 2015 02:13:10 +0000 (04:13 +0200)]
Merge pull request #1735 from akoeplinger/mingw-fix

[io-layer] Fix Windows build on mingw

9 years ago[io-layer] Fix Windows build on mingw
Alexander Köplinger [Fri, 24 Apr 2015 01:44:07 +0000 (18:44 -0700)]
[io-layer] Fix Windows build on mingw

When we moved to Vista as the minimum build target, the mingw build broke.
The reason is that mingw's mswsock.h has the following code:

    #if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
    int WSAAPI WSAPoll(WSAPOLLFD, ULONG, INT);
    #endif

Unfortunately, due to a bug mingw 4.0 doesn't define WSAPOLLFD and the compiler
raises an error. See http://sourceforge.net/p/mingw/bugs/1980 for more details.

As a workaround, inline the typedef for WSAPOLLFD from the mentioned bug report.

Also removed an unecessary check for _WIN32_WINNT < 0x0502 from the file.

9 years agoUpadate socket and add OSSupportsIPv4 in net 4.0
anikilatorbeta [Fri, 24 Apr 2015 00:50:11 +0000 (21:50 -0300)]
Upadate socket and add OSSupportsIPv4 in net 4.0

add OSSupportsIPv4 in net 4.0

https://msdn.microsoft.com/en-us/library/system.net.sockets.socket.ossupportsipv4%28v=vs.110%29.aspx

and ObsoleteAttribute https://msdn.microsoft.com/en-us/library/system.net.sockets.socket.supportsipv4%28v=vs.110%29.aspx

9 years ago[jit] Use mini_get_underlying_type () in mini_type_is_vtype () so it works with parti...
Zoltan Varga [Thu, 23 Apr 2015 22:44:29 +0000 (18:44 -0400)]
[jit] Use mini_get_underlying_type () in mini_type_is_vtype () so it works with partial sharing.

9 years ago[threadpool] Remove native call to Socket.(Receive|Send)_internal
Ludovic Henry [Thu, 23 Apr 2015 20:45:28 +0000 (21:45 +0100)]
[threadpool] Remove native call to Socket.(Receive|Send)_internal

This is now done in managed in SocketAsyncWorker.cs since 0c9dcf73c2362974015ffee7b98672510573f014

9 years ago[threadpool-ms] Fix race condition
Ludovic Henry [Thu, 23 Apr 2015 19:47:26 +0000 (20:47 +0100)]
[threadpool-ms] Fix race condition

9 years ago[runtime] Fix the arm build.
Zoltan Varga [Thu, 23 Apr 2015 17:25:32 +0000 (13:25 -0400)]
[runtime] Fix the arm build.

9 years ago[System.Data] Bring back PropertyAttributes, StrongTypingException and TypedDataSetGe...
Rolf Bjarne Kvinge [Thu, 23 Apr 2015 11:02:46 +0000 (13:02 +0200)]
[System.Data] Bring back PropertyAttributes, StrongTypingException and TypedDataSetGeneratorException to the mobile build.

9 years ago[mono-api-html] Use html5-compatible code for colorizing (i.e. css instead of font...
Rolf Bjarne Kvinge [Thu, 23 Apr 2015 10:19:41 +0000 (12:19 +0200)]
[mono-api-html] Use html5-compatible code for colorizing (i.e. css instead of font/s/u).

9 years ago[mono-api-html] Ignore non-important attribute differences and other improvements.
Rolf Bjarne Kvinge [Thu, 23 Apr 2015 09:56:50 +0000 (11:56 +0200)]
[mono-api-html] Ignore non-important attribute differences and other improvements.

* Properly colorize removed types (as red).
* Print 'NotSerialized' field attribute change (as not breaking).
* Ignore 'HasSecurity' and 'PInvokeImpl' method attribute differences.
* Render property indexers (and detect name change in property indexer parameters).
* Improve debug spew to print proper method/field attributes.

9 years agoMerge pull request #1731 from mono/fix-abort-arm-thumb
Zoltan Varga [Thu, 23 Apr 2015 07:05:09 +0000 (03:05 -0400)]
Merge pull request #1731 from mono/fix-abort-arm-thumb

[arm] Fix aborting of threads in managed code

9 years ago[arm] Fix aborting of threads in managed code
Vlad Brezae [Wed, 22 Apr 2015 23:40:45 +0000 (23:40 +0000)]
[arm] Fix aborting of threads in managed code

When installing the async callback in the context we need to update the thumb bit accordingly.

9 years ago[pdb2mdb] fix decimal values reading
Radek Doulik [Wed, 22 Apr 2015 20:03:14 +0000 (22:03 +0200)]
[pdb2mdb] fix decimal values reading

    apply patch from monodroid

    Author: Dean Ellis <dellis1972@googlemail.com>
    Date:   Thu Apr 17 12:34:00 2014 +0100

        [MSBuild] Error MSB3375 when attempting to debug PCL in VS

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

        The code to read the decimal values from
        the pdb did not work in all circumstances.
        This change uses the recommended code for
        reading the bits for a decimal from MSDN

        see http://msdn.microsoft.com/en-us/library/system.decimal.getbits.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-3

        It also includes an ArgumentException
        handler just in case it fails.