mono.git
8 years ago[mono-api-html] Fix printing of Obsolete attributes.
Rolf Bjarne Kvinge [Tue, 8 Sep 2015 11:12:38 +0000 (13:12 +0200)]
[mono-api-html] Fix printing of Obsolete attributes.

8 years ago[mono-api-info] Sort nested types.
Rolf Bjarne Kvinge [Tue, 8 Sep 2015 11:53:47 +0000 (13:53 +0200)]
[mono-api-info] Sort nested types.

So that info files can be compared textually to test for api equality.

8 years ago[mono-api-info] Minor perf improvements.
Rolf Bjarne Kvinge [Tue, 8 Sep 2015 09:58:40 +0000 (11:58 +0200)]
[mono-api-info] Minor perf improvements.

8 years ago[mono-api-info] Sort methods using full signature.
Rolf Bjarne Kvinge [Tue, 8 Sep 2015 09:51:59 +0000 (11:51 +0200)]
[mono-api-info] Sort methods using full signature.

So that info files can be compared textually to test for api equality.

8 years agoMerge pull request #2039 from simonhartmann/dns_refresh_timeout
Marek Safar [Tue, 8 Sep 2015 09:48:01 +0000 (11:48 +0200)]
Merge pull request #2039 from simonhartmann/dns_refresh_timeout

[class libs] Implemented DnsRefreshTimeout for ServicePointManager

8 years agoimplemented DnsRefreshTimeout to ServicePointManager and adjusted behavior of Service...
Simon Hartmann [Mon, 7 Sep 2015 14:54:20 +0000 (16:54 +0200)]
implemented DnsRefreshTimeout to ServicePointManager and adjusted behavior of ServicePoint.HostEntry property.

simplified some calls as requested

8 years ago[mcs] Null operator on value type extension argument. Fixes #33754
Marek Safar [Tue, 8 Sep 2015 08:54:29 +0000 (10:54 +0200)]
[mcs] Null operator on value type extension argument. Fixes #33754

8 years agoMerge pull request #2032 from directhex/parallel_automake_is_hard
Marek Safar [Tue, 8 Sep 2015 08:36:58 +0000 (10:36 +0200)]
Merge pull request #2032 from directhex/parallel_automake_is_hard

Parallel automake is hard

8 years ago[mcs] Improve test from e97227a53dc1a598f4e38de0fbd401dbe9ca7ca5
Marek Safar [Tue, 8 Sep 2015 06:07:46 +0000 (08:07 +0200)]
[mcs] Improve test from e97227a53dc1a598f4e38de0fbd401dbe9ca7ca5

8 years ago[mcs] Lift result of binary operation on enum types in more cases. Fixes #33723
Marek Safar [Mon, 7 Sep 2015 18:28:32 +0000 (20:28 +0200)]
[mcs] Lift result of binary operation on enum types in more cases. Fixes #33723

8 years ago[mcs] Fixes a typo
Marek Safar [Mon, 7 Sep 2015 18:28:19 +0000 (20:28 +0200)]
[mcs] Fixes a typo

8 years ago[runtime] Another fix for fast TLS target checking to work with cross-compilation.
João Matos [Mon, 7 Sep 2015 15:03:38 +0000 (16:03 +0100)]
[runtime] Another fix for fast TLS target checking to work with cross-compilation.

8 years ago[mcs] Consider whole hierarchy of inherited type arguments inflated via base type...
Marek Safar [Mon, 7 Sep 2015 14:08:58 +0000 (16:08 +0200)]
[mcs] Consider whole hierarchy of inherited type arguments inflated via base type. Fixes #33669

8 years ago[mono-api-info] Order interfaces.
Rolf Bjarne Kvinge [Mon, 7 Sep 2015 10:56:18 +0000 (12:56 +0200)]
[mono-api-info] Order interfaces.

So that info files can be compared textually to test for api equality.

8 years ago[Facades] Fix default profile parallelization
Jo Shields [Fri, 4 Sep 2015 10:57:19 +0000 (11:57 +0100)]
[Facades] Fix default profile parallelization

PROFILE_SUBDIRS is built serially, then PROFILE_PARALLEL_SUBDIRS in parallel. Since we want the latter for everything, only define the latter.

8 years ago[Facades] Fix profile name error causing non-building
Jo Shields [Fri, 4 Sep 2015 10:55:28 +0000 (11:55 +0100)]
[Facades] Fix profile name error causing non-building

The parallel build infrastructure we're trying to leverage for Facades depends on the profile name when populating the parallel lists - the default profile is now named "net_4_x", so variables with "net_4_5" in them are not considered - causing the whole Facades/ directory to be skipped

8 years ago[corlib] Make test reproducible
Marek Safar [Mon, 7 Sep 2015 07:41:15 +0000 (09:41 +0200)]
[corlib] Make test reproducible

8 years agoMerge pull request #2031 from esdrubal/uriworkaround
Marcos Henrich [Sat, 5 Sep 2015 10:35:35 +0000 (11:35 +0100)]
Merge pull request #2031 from esdrubal/uriworkaround

[System] UriKind.RelativeOrAbsolute workaround.

8 years agoFix a warning.
Zoltan Varga [Sat, 5 Sep 2015 02:04:32 +0000 (22:04 -0400)]
Fix a warning.

8 years agoMerge pull request #2033 from tritao/zip-empty
Zoltan Varga [Sat, 5 Sep 2015 01:57:39 +0000 (21:57 -0400)]
Merge pull request #2033 from tritao/zip-empty

[System.IO.Compression] Fixed handling of empty Zip archives in Update mode

8 years agoMerge pull request #2035 from joelmartinez/mdoc-memberremoval-fix2
Miguel de Icaza [Sat, 5 Sep 2015 01:41:48 +0000 (21:41 -0400)]
Merge pull request #2035 from joelmartinez/mdoc-memberremoval-fix2

[mdoc] Follow up fix for member and type removal.

8 years ago[mdoc] Follow up fix for member and type removal.
Joel Martinez [Fri, 4 Sep 2015 21:27:10 +0000 (17:27 -0400)]
[mdoc] Follow up fix for member and type removal.
In supplement of the changes submitted in 09b97cba2e7c2d9c68830d55ff3d99c5f36eb439, there were
some additional edge cases that were not originally considered, and so this patch resolves these
additional issues. In particular, there was a bug in the `RemoveApiStyle` method that wasn't
checking the value of the `apistyle` attribute before removing it. This caused members to be
stripped of apistyle inadvertently.

There was an issue in the type removal code that caused
too many files to be removed. This patch adds additional checks to make sure that a file isn't
going to be removed if it contains members in the other style that shoulnd't be removed

Finally, there was an issue that arose after the aforementioned changes in the `OrderTypeAttributes`
method. It was somewhat counterintuitive, but it wasn't allowing the reordering of attributes
with the `.Remove` method (throwing an exception). Not entirely sure why this was happening,
but using the `.RemoveNamedItem` method worked around the issue.

8 years ago[aot] Avoid an assert in mono_aot_jit_info_table_find () when the address is right...
Zoltan Varga [Fri, 4 Sep 2015 23:22:07 +0000 (19:22 -0400)]
[aot] Avoid an assert in mono_aot_jit_info_table_find () when the address is right after the end of the method. Fixes #32955.

8 years ago[jit] Fix crashes in the dwarf writer if the backing field of an enum is not named...
Zoltan Varga [Fri, 4 Sep 2015 21:46:19 +0000 (17:46 -0400)]
[jit] Fix crashes in the dwarf writer if the backing field of an enum is not named 'value__'. Fixes #33591.

8 years ago[threading] Fix race condition in the suspend account code.
Rodrigo Kumpera [Fri, 4 Sep 2015 20:39:16 +0000 (16:39 -0400)]
[threading] Fix race condition in the suspend account code.

8 years agoFix another broken test due to OSX oddities.
Rodrigo Kumpera [Fri, 4 Sep 2015 19:35:20 +0000 (15:35 -0400)]
Fix another broken test due to OSX oddities.

8 years ago[runtime] Fixed fast TLS target checking to work with cross-compilation.
triton [Fri, 4 Sep 2015 16:59:53 +0000 (17:59 +0100)]
[runtime] Fixed fast TLS target checking to work with cross-compilation.

8 years agoFix the DefaultThreadCurrentCulture for real.
Rodrigo Kumpera [Fri, 4 Sep 2015 16:42:22 +0000 (12:42 -0400)]
Fix the DefaultThreadCurrentCulture for real.

This test is very fragile as it depends on appdomain global state.
In this case the current thread culture.

The problem with CurrentCulture is it's behavior that once set, it can't
be unset, IOW, revert to follow DefaultThreadCurrentCulture.

This meant that test ordering played a huge deal here and it took a few
tries to learn what was going on.

The way to fix this is to run the test itself from a thread that we
can ensure that won't have CurrentCulture set. This includes TP threads
or new threads.

I opted to use a TP thread as there probably is one available already
when the test runs.

8 years ago[Mono.Posix] Add ToString to struct Linger to help troubleshoot CI failure.
Rodrigo Kumpera [Fri, 4 Sep 2015 15:37:16 +0000 (11:37 -0400)]
[Mono.Posix] Add ToString to struct Linger to help troubleshoot CI failure.

8 years ago[System.IO.Compression] Fixed handling of empty Zip archives in Update mode. Fixes...
triton [Fri, 4 Sep 2015 14:17:17 +0000 (15:17 +0100)]
[System.IO.Compression] Fixed handling of empty Zip archives in Update mode. Fixes bug #32725.

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

8 years ago[System] UriKind.RelativeOrAbsolute workaround.
Marcos Henrich [Fri, 4 Sep 2015 06:02:43 +0000 (07:02 +0100)]
[System] UriKind.RelativeOrAbsolute workaround.

In .NET an URI constructor from "/foo" and UriKind.RelativeOrAbsolute is
relative whereas in mono it is assumed as an absolute file path.

This adds another workaround that changes all Uri constructor calls to
behave like .NET when receiving UriKind.RelativeOrAbsolute.

The environment variable workaround consists in setting
MONO_URI_DOTNETRELATIVEORABSOLUTE=true before starting the application:

Reflection workaround:
```
if (Type.GetType ("Mono.Runtime") != null)
    typeof (Uri).GetField ("useDotNetRelativeOrAbsolute",
        BindingFlags.Static | BindingFlags.GetField | BindingFlags.NonPublic).
        SetValue (null, true);
```

WARNING: The workarounds change the behavior of all Uri constructor calls.
Unexpected problems can occur if an used library relies on
UriKind.RelativeOrAbsolute to parse absolute file paths.

8 years agoMerge pull request #2030 from esdrubal/urispaces
Marek Safar [Fri, 4 Sep 2015 06:11:01 +0000 (08:11 +0200)]
Merge pull request #2030 from esdrubal/urispaces

Fixes Uri.UserInfo with spaces.

8 years agoFixes Uri.UserInfo with spaces.
Marcos Henrich [Fri, 4 Sep 2015 04:36:27 +0000 (05:36 +0100)]
Fixes Uri.UserInfo with spaces.

Fixes #31172.

8 years agoTests Uri.UserInfo with spaces.
Marcos Henrich [Fri, 4 Sep 2015 04:35:12 +0000 (05:35 +0100)]
Tests Uri.UserInfo with spaces.

Covers #31172.

8 years agoMerge pull request #2022 from esdrubal/fixes-GetDaylightChanges
Marcos Henrich [Fri, 4 Sep 2015 03:31:50 +0000 (04:31 +0100)]
Merge pull request #2022 from esdrubal/fixes-GetDaylightChanges

Fixes TimeZoneInfo.GetDaylightChanges #32722.

8 years ago[runtime] Fix the thunks.exe tests when not running with the coop gc.
Zoltan Varga [Fri, 4 Sep 2015 00:41:26 +0000 (20:41 -0400)]
[runtime] Fix the thunks.exe tests when not running with the coop gc.

8 years agoFix NREX in Linux network change notification code
Marek Habersack [Thu, 3 Sep 2015 21:14:46 +0000 (23:14 +0200)]
Fix NREX in Linux network change notification code

Linux code uses a netlink socket to be notified about network interface
changes. The code is a bit racy and for that reson it can happen that
the LinuxNetworkChange.OnDataAvailable handler is called after the
socket is destroyed (from a timer event) and socket stored in an
instance variable is already null. This is a race most probably
introduced by the new threadpool or TPL code as it started to happen in
several places (mostly BCL tests on Android, but it's *not* specific to
Android).
The workaround here serves as a quick band-aid to be able to move on,
but a more thorough review of the socket code will be required.

8 years ago[Mono.Posix] Fix a test to accomodate for OSX's getsockopt implementation.
Rodrigo Kumpera [Thu, 3 Sep 2015 20:50:09 +0000 (16:50 -0400)]
[Mono.Posix] Fix a test to accomodate for OSX's getsockopt implementation.

8 years ago[corlib] Fix a test. It was broken in so many ways, but hidden behind a check that...
Rodrigo Kumpera [Thu, 3 Sep 2015 20:02:40 +0000 (16:02 -0400)]
[corlib] Fix a test. It was broken in so many ways, but hidden behind a check that disabled it everywhere. :(

8 years ago[coop] Add coop support to libtest.
Rodrigo Kumpera [Wed, 2 Sep 2015 22:02:34 +0000 (18:02 -0400)]
[coop] Add coop support to libtest.

8 years ago[mcs] Use auto-property backing field for setting only when setter is not available...
Marek Safar [Thu, 3 Sep 2015 15:35:53 +0000 (17:35 +0200)]
[mcs] Use auto-property backing field for setting only when setter is not available. Fixes #33600

8 years ago[windows] Check for WINVER define before re-defining.
triton [Thu, 3 Sep 2015 14:57:09 +0000 (15:57 +0100)]
[windows] Check for WINVER define before re-defining.

8 years ago[windows] Fixed some warnings when calling mono_cond_init.
triton [Thu, 3 Sep 2015 14:56:21 +0000 (15:56 +0100)]
[windows] Fixed some warnings when calling mono_cond_init.

Conflicts:
mono/metadata/threadpool-ms-io.c

8 years ago[windows] Include missing build headers when defining WIN32_LEAN_AND_MEAN.
triton [Thu, 3 Sep 2015 14:53:32 +0000 (15:53 +0100)]
[windows] Include missing build headers when defining WIN32_LEAN_AND_MEAN.

8 years agoDIST_SUBDIRS is a thing, fixes parallelism broken by previous change
Jo Shields [Thu, 3 Sep 2015 14:12:06 +0000 (15:12 +0100)]
DIST_SUBDIRS is a thing, fixes parallelism broken by previous change

See http://www.gnu.org/software/automake/manual/html_node/SUBDIRS-vs-DIST_005fSUBDIRS.html

8 years agoMerge pull request #2024 from BogdanovKirill/webrequesttest
Marcos Henrich [Thu, 3 Sep 2015 13:02:57 +0000 (14:02 +0100)]
Merge pull request #2024 from BogdanovKirill/webrequesttest

[HttpWebRequestTest] New test to check that after reading 2 GB of data from web server HttpWebRequest still works

8 years agoMerge pull request #2026 from directhex/fix-missing-tarball-facades
João Matos [Thu, 3 Sep 2015 12:33:59 +0000 (13:33 +0100)]
Merge pull request #2026 from directhex/fix-missing-tarball-facades

[Facades] fix exclusion from "make dist"

8 years ago[Facades] fix exclusion from "make dist"
Jo Shields [Thu, 3 Sep 2015 11:47:09 +0000 (12:47 +0100)]
[Facades] fix exclusion from "make dist"

If SUBDIRS is not set, then no files which aren't explicit Makefile targets will get included - which in this case means the only file in Facades/ in tarballs is the Makefile itself.

8 years ago[mcs] Cache fixed array type expression. Fixes #33573
Marek Safar [Thu, 3 Sep 2015 11:05:06 +0000 (13:05 +0200)]
[mcs] Cache fixed array type expression. Fixes #33573

8 years ago[HttpWebRequestTest] New test to check that after reading 2 GB of data from web serve...
BogdanovKirill [Thu, 3 Sep 2015 04:29:11 +0000 (09:29 +0500)]
[HttpWebRequestTest] New test to check that after reading 2 GB of data from web server HttpWebRequest still works

When HttpWebRequest is used to download infinite (ContentLength is not set) response from web server, we must be sure that after reading 2 GB (Int32.MaxValue) of data our internal classes are still working correctly

This change is released under the MIT license.

8 years ago[corlib] Fixes TimeZoneInfo.GetDaylightChanges.
Marcos Henrich [Mon, 31 Aug 2015 09:59:35 +0000 (10:59 +0100)]
[corlib] Fixes TimeZoneInfo.GetDaylightChanges.

Fixes #32722.

8 years ago[corlib] Test GetSystemTimeZones in all timezones.
Marcos Henrich [Thu, 3 Sep 2015 08:51:29 +0000 (09:51 +0100)]
[corlib] Test GetSystemTimeZones in all timezones.

Covers #32722.

8 years ago[mcs] Implements null operator used from both outer and inner expression of the state...
Marek Safar [Thu, 3 Sep 2015 08:56:38 +0000 (10:56 +0200)]
[mcs] Implements null operator used from both outer and inner expression of the statement. Fixes #33341

8 years agoMerge pull request #2017 from ludovic-henry/master
Marcos Henrich [Thu, 3 Sep 2015 08:47:54 +0000 (09:47 +0100)]
Merge pull request #2017 from ludovic-henry/master

[math] Fix Math.Pow (1, Double.MaxValue) != 1 on Linux 32bits

8 years ago[runtime] Remove some dead code.
Zoltan Varga [Wed, 2 Sep 2015 21:47:40 +0000 (17:47 -0400)]
[runtime] Remove some dead code.

8 years ago[sdb] Fix locals info when two c# level locals are allocated to the same IL local.
Zoltan Varga [Wed, 2 Sep 2015 20:40:08 +0000 (16:40 -0400)]
[sdb] Fix locals info when two c# level locals are allocated to the same IL local.

8 years agoMerge pull request #2018 from alexrp/profiler-jit-info-removal
Alex Rønne Petersen [Wed, 2 Sep 2015 20:39:26 +0000 (22:39 +0200)]
Merge pull request #2018 from alexrp/profiler-jit-info-removal

[profiler] Emit dummy code start/size info in cases where we can't retrieve it.

8 years ago[wcf] Fix a regression introduced by 577d50e2e149143b7c3030dbcf3bf03f8d71d06d.
Zoltan Varga [Wed, 2 Sep 2015 19:12:08 +0000 (15:12 -0400)]
[wcf] Fix a regression introduced by 577d50e2e149143b7c3030dbcf3bf03f8d71d06d.

8 years ago[runtime] Fix a regression introduced by f5222fe4f826afae1e8a628ffdba1d355d8e772f...
Zoltan Varga [Wed, 2 Sep 2015 16:58:01 +0000 (12:58 -0400)]
[runtime] Fix a regression introduced by f5222fe4f826afae1e8a628ffdba1d355d8e772f, arguments were not properly passed to threads started from runtime code.

8 years ago[Facades] Fix accidental removal of a line
Miguel de Icaza [Wed, 2 Sep 2015 16:42:49 +0000 (12:42 -0400)]
[Facades] Fix accidental removal of a line

8 years ago[runtime] Make mono_type_is_hfa () return TRUE for structs with more than 4 fields.
Zoltan Varga [Wed, 2 Sep 2015 15:27:08 +0000 (11:27 -0400)]
[runtime] Make mono_type_is_hfa () return TRUE for structs with more than 4 fields.

8 years ago[math] Fix Linux 32bits tests
Ludovic Henry [Tue, 1 Sep 2015 13:37:22 +0000 (15:37 +0200)]
[math] Fix Linux 32bits tests

corlib/System.MathTest.Pow would fail at test #45 because the native pow implementation would return NaN (instead of 1) for pow (-1, Double.MaxValue).

The previous implementation treated this case for exponents bigger than 9007199254740991.0 and smaller than -9007199254740991.0

8 years agoBump reference sources
Marek Safar [Wed, 2 Sep 2015 09:26:39 +0000 (11:26 +0200)]
Bump reference sources

8 years ago[corlib] Construct specific culture using most specific culture name region. Fixes...
Marek Safar [Wed, 2 Sep 2015 08:54:04 +0000 (10:54 +0200)]
[corlib] Construct specific culture using most specific culture name region. Fixes #33400

8 years agoMerge pull request #2010 from buraktamturk/master
Zoltan Varga [Wed, 2 Sep 2015 05:55:30 +0000 (01:55 -0400)]
Merge pull request #2010 from buraktamturk/master

Implement SqlDataReader.GetFieldValue<T> in order to fix EF's UpdateException

8 years agoMerge pull request #2021 from delme-imgtec/patch-1
Zoltan Varga [Wed, 2 Sep 2015 05:40:33 +0000 (01:40 -0400)]
Merge pull request #2021 from delme-imgtec/patch-1

Update SynchronizedCollection.cs

8 years agoRemove an obsolete comment.
Zoltan Varga [Wed, 2 Sep 2015 03:01:06 +0000 (23:01 -0400)]
Remove an obsolete comment.

8 years agoUpdate SynchronizedCollection.cs
delme-imgtec [Wed, 2 Sep 2015 01:55:51 +0000 (13:55 +1200)]
Update SynchronizedCollection.cs

Change is to fix following exception. Which suspect is cause by two threads both call remove at same time.

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[System.ServiceModel.Channels.IDuplexSessionChannel].RemoveAt (Int32 index) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.SynchronizedCollection`1[System.ServiceModel.Channels.IDuplexSessionChannel].RemoveItem (Int32 index) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.SynchronizedCollection`1[System.ServiceModel.Channels.IDuplexSessionChannel].RemoveAt (Int32 index) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.SynchronizedCollection`1[System.ServiceModel.Channels.IDuplexSessionChannel].Remove (IDuplexSessionChannel item) [0x00000] in <filename unknown>:0

8 years agoRevert "[sdb] Disallow nested invokes."
Zoltan Varga [Wed, 2 Sep 2015 01:21:02 +0000 (21:21 -0400)]
Revert "[sdb] Disallow nested invokes."

This reverts commit c4db814a44119462bc9029170790e1c445a93426.

Revert this, its supported functionality.

8 years ago[runtime] Remove MONO_HASH_CONSERVATIVE_GC, its not used anymore.
Zoltan Varga [Wed, 2 Sep 2015 00:41:16 +0000 (20:41 -0400)]
[runtime] Remove MONO_HASH_CONSERVATIVE_GC, its not used anymore.

8 years agoFix a warning.
Zoltan Varga [Wed, 2 Sep 2015 00:33:07 +0000 (20:33 -0400)]
Fix a warning.

8 years ago[runtime] Obtain the thread argument directly from MonoThread, avoid storing it in...
Zoltan Varga [Wed, 2 Sep 2015 00:32:52 +0000 (20:32 -0400)]
[runtime] Obtain the thread argument directly from MonoThread, avoid storing it in a hash table.

8 years ago[coop] Fix the state transition for a pending suspend in reset blocking.
Rodrigo Kumpera [Tue, 1 Sep 2015 23:24:00 +0000 (19:24 -0400)]
[coop] Fix the state transition for a pending suspend in reset blocking.

The problematic scenario is the following: [1]

thread A) [DO_BLOCKING] runnable -> blocking (0)                      -- i.e, do a pinvoke
thread B) [ASYNC_SUSPEND_REQUESTED] blocking -> blocking (+1)         -- thread B tries to suspend thread A
thread A) [ABORT_BLOCKING] blocking -> async_suspend_requested (0)    -- i.e, that pinvoke called into a reverse delegate and needs to go back to runnable state
thread A) [STATE_POLL] async_suspend_requested -> self_suspended (0)  -- thread A self suspend due to the request from B

If polling witness async suspend, it must notify the initiator of a successful suspend.
If the initiator witness a thread in blocking, it bumps the suspend count, assumes it suspended and don't wait for a notification.

This means that thread A would post to the suspend semaphore but thread B (the suspend initiator) will not wait on it.

Given the initiator won't wait in this case, it makes no sense for abort blocking to put the thread in async_suspend_requested.
The solution is to put it on self_suspend_requested, which won't trigger state_poll to notify.

[1] Read it as: thread) [TRANSITION NAME] old state -> new state (suspend count delta) -- explanation

8 years ago[coop] Improve logging and add a pair of suspend related due asserts.
Rodrigo Kumpera [Tue, 1 Sep 2015 23:18:27 +0000 (19:18 -0400)]
[coop] Improve logging and add a pair of suspend related due asserts.

Add asserts to both mono_threads_begin_global_suspend and mono_threads_end_global_suspend to ensure
balanced usage of the suspend semaphore.

The suspend semaphore must end a suspend operation at zero, meaning there must an equal number of
post and wait calls.

This ensure the initiator can't jump the gun when waiting for pending suspends by consuming a
post from a previous suspend/resume op.

8 years ago[coop] Fix debug logging.
Rodrigo Kumpera [Tue, 1 Sep 2015 23:03:49 +0000 (19:03 -0400)]
[coop] Fix debug logging.

8 years ago[profiler] Emit dummy code start/size info in cases where we can't retrieve it.
Alex Rønne Petersen [Tue, 1 Sep 2015 23:34:38 +0000 (01:34 +0200)]
[profiler] Emit dummy code start/size info in cases where we can't retrieve it.

8 years ago[runtime] Remove the usage of the GC aware hash table from the tasklets code.
Zoltan Varga [Tue, 1 Sep 2015 22:37:43 +0000 (18:37 -0400)]
[runtime] Remove the usage of the GC aware hash table from the tasklets code.

8 years ago[sgen] Properly synchronize `allocated_blocks`.
Mark Probst [Tue, 1 Sep 2015 22:02:40 +0000 (15:02 -0700)]
[sgen] Properly synchronize `allocated_blocks`.

We were missing a memory barrier here.  This might fix the current
intermittent crashes on wrench.

8 years agoFix IL_SEQPOINT processing; Add names to trampolines
Neale Ferguson [Tue, 1 Sep 2015 21:35:06 +0000 (17:35 -0400)]
Fix IL_SEQPOINT processing; Add names to trampolines

8 years agoMerge pull request #2015 from alexrp/profiler-roots-v2
Alex Rønne Petersen [Tue, 1 Sep 2015 21:06:22 +0000 (23:06 +0200)]
Merge pull request #2015 from alexrp/profiler-roots-v2

[runtime] Add root type and human-readable description for all GC roots.

8 years ago[runtime] Throw an exception instead of asserting when trying to call remoting method...
Zoltan Varga [Tue, 1 Sep 2015 20:16:54 +0000 (16:16 -0400)]
[runtime] Throw an exception instead of asserting when trying to call remoting methods linked away.

8 years ago[bcl] Disable some tests which rely on fp behavior on mobile. (#33510).
Zoltan Varga [Tue, 1 Sep 2015 19:08:57 +0000 (15:08 -0400)]
[bcl] Disable some tests which rely on fp behavior on mobile. (#33510).

8 years ago[Facades] Fix parallel builds for non-general profiles
Miguel de Icaza [Tue, 1 Sep 2015 19:05:24 +0000 (15:05 -0400)]
[Facades] Fix parallel builds for non-general profiles

Joao reported that the facades build broke with 9022df44211c434c95c5e2d1f4e5f5e3979f3dd0
as it tried to compile monodroid assemblies and this attempt to compile System.IO.Pipes
which in turn needs a type not presented on Android: SafePipeHandle

This should fix that

8 years ago[ppdb] Fix support for Assembly.LoadFrom(). Fixes #33550.
Zoltan Varga [Tue, 1 Sep 2015 19:03:41 +0000 (15:03 -0400)]
[ppdb] Fix support for Assembly.LoadFrom(). Fixes #33550.

8 years agoMerge pull request #2012 from joelmartinez/mdoc-memberremoval-fix
Jonathan Pryor [Tue, 1 Sep 2015 18:57:20 +0000 (14:57 -0400)]
Merge pull request #2012 from joelmartinez/mdoc-memberremoval-fix

[mdoc] Fixes an issue with member deletion.

8 years ago[mdoc] Fixes an issue with member and type deletion.
Joel Martinez [Tue, 25 Aug 2015 19:52:13 +0000 (15:52 -0400)]
[mdoc] Fixes an issue with member and type deletion.

Specifically, when updating classic and unified assemblies, members
that were completely removed from one or both assemblies were not
being removed from the XML. This patch updates mdoc's `DeleteMember`
method to properly handle deletion in all scenarios (normal, classic, unified).

Of course, deletion will still not happen if one of two things is true:

- `--delete` is *not* passed into the `mdoc update` call and the member node
  contains existing documentation.
- `--preserve` *is* passed into the `mdoc update` invocation.

In both of those cases, the member will not be deleted, and a message stating
as such will be written as a warning to the output.

8 years agoMerge pull request #2019 from directhex/powerpc-fixes
Alex Rønne Petersen [Tue, 1 Sep 2015 16:51:20 +0000 (18:51 +0200)]
Merge pull request #2019 from directhex/powerpc-fixes

Add move_f_to_i4 and move_i4_to_f to PowerPC

8 years ago[Facades] Use Zoltan's parallel build infrastructure
Miguel de Icaza [Tue, 1 Sep 2015 16:37:19 +0000 (12:37 -0400)]
[Facades] Use Zoltan's parallel build infrastructure

8 years ago[runtime] Add root type and human-readable description for all GC roots.
Alex Rønne Petersen [Mon, 31 Aug 2015 22:28:35 +0000 (00:28 +0200)]
[runtime] Add root type and human-readable description for all GC roots.

8 years agoReverted too long to run test.
Marcos Henrich [Tue, 1 Sep 2015 10:31:24 +0000 (11:31 +0100)]
Reverted too long to run test.

1abf5baf16a8051091a3c30e11118651c334aa6c added a tests that was making
jenkins to timeout.

8 years ago[threadpool-io] Reduce the value of poll_fds_size on socket removal
Ludovic Henry [Tue, 1 Sep 2015 09:13:59 +0000 (11:13 +0200)]
[threadpool-io] Reduce the value of poll_fds_size on socket removal

8 years agoAdd move_f_to_i4 and move_i4_to_f to PowerPC
Lennart Sorensen [Tue, 1 Sep 2015 10:20:15 +0000 (11:20 +0100)]
Add move_f_to_i4 and move_i4_to_f to PowerPC

8 years ago[mcs] Remove not implemented from ambiguous static type lookup. Fixes #33527
Marek Safar [Tue, 1 Sep 2015 09:09:35 +0000 (11:09 +0200)]
[mcs] Remove not implemented from ambiguous static type lookup. Fixes #33527

8 years agoMerge pull request #2016 from tpokorra/patch-1
Marek Safar [Tue, 1 Sep 2015 07:59:53 +0000 (09:59 +0200)]
Merge pull request #2016 from tpokorra/patch-1

fixing typo appropiate in WebHeaderCollection.cs

8 years agofixing typo appropiate in WebHeaderCollection.cs
Timotheus Pokorra [Tue, 1 Sep 2015 07:56:28 +0000 (09:56 +0200)]
fixing typo appropiate in WebHeaderCollection.cs

as mentioned by FastCode in IRC

8 years agoRevert "[llvm] Disable support for nested clauses again, it still causes test failure...
Zoltan Varga [Mon, 31 Aug 2015 22:48:00 +0000 (18:48 -0400)]
Revert "[llvm] Disable support for nested clauses again, it still causes test failures like #32583."

This reverts commit d48d8e93e033f5850d2f6fdb86b1f6c35be789d7.

Revert this as it breaks the build.

8 years ago[llvm] Disable support for nested clauses again, it still causes test failures like...
Zoltan Varga [Mon, 31 Aug 2015 22:35:53 +0000 (18:35 -0400)]
[llvm] Disable support for nested clauses again, it still causes test failures like #32583.

8 years ago[threadpool-io] Remove sparse-array for poll backend
Ludovic Henry [Mon, 31 Aug 2015 14:35:08 +0000 (16:35 +0200)]
[threadpool-io] Remove sparse-array for poll backend

The sparse-array approach led to better insert/remove performance, by allowing a O(1) access, but led to memory consumption issue. The kernel would, for example, have to parse the whole array, even if it's mostly empty, and that can be an issue for large arrays.

8 years agoRemove incorrect warnings
Marek Safar [Mon, 31 Aug 2015 13:22:30 +0000 (15:22 +0200)]
Remove incorrect warnings

8 years ago[mcs] Don't report error for warnings which are not intended to be compiler warnings...
Marek Safar [Mon, 31 Aug 2015 12:14:51 +0000 (14:14 +0200)]
[mcs] Don't report error for warnings which are not intended to be compiler warnings. Fixes #33487