mono.git
8 years agoMerge pull request #1832 from Tragetaschen/fix-http-headers
Marek Safar [Tue, 26 May 2015 14:19:55 +0000 (16:19 +0200)]
Merge pull request #1832 from Tragetaschen/fix-http-headers

Fix reading back a HTTP Request's Host header

8 years ago[mcs] Emit correct binary comparison for useless is operator involving user value...
Marek Safar [Tue, 26 May 2015 12:15:06 +0000 (14:15 +0200)]
[mcs] Emit correct binary comparison for useless is operator involving user value type with equality user operators

8 years ago[corlib] A few XI-internal functions have been renamed; use the new names.
Rolf Bjarne Kvinge [Tue, 26 May 2015 11:12:02 +0000 (13:12 +0200)]
[corlib] A few XI-internal functions have been renamed; use the new names.

8 years ago[mdbrebase] Make sure to use a unique temporary filename.
Rolf Bjarne Kvinge [Tue, 26 May 2015 11:15:41 +0000 (13:15 +0200)]
[mdbrebase] Make sure to use a unique temporary filename.

Otherwise parallel invocations might end up stomping on eachother
(these two files are processed in parallel):

    Processing /work/maccore/master/maccore/builds/install/mac/xammac/bcl/mscorlib.dll.mdb
    Processing /work/maccore/master/maccore/builds/install/mac/net_4_5/bcl/mscorlib.dll.mdb

    Unhandled Exception:
    System.IO.FileNotFoundException: /var/folders/g9/k5kx4z211ld_lwlbfxv5rq040000gn/T/mscorlib.dll.mdb does not exist
    File name: '/var/folders/g9/k5kx4z211ld_lwlbfxv5rq040000gn/T/mscorlib.dll.mdb'
      at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00000] in <filename unknown>:0
      at Mono.MdbRebase.MdbRebase.RewriteMdbFile (System.String inputFile) [0x00000] in <filename unknown>:0
      at Mono.MdbRebase.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
    [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: /var/folders/g9/k5kx4z211ld_lwlbfxv5rq040000gn/T/mscorlib.dll.mdb does not exist
    File name: '/var/folders/g9/k5kx4z211ld_lwlbfxv5rq040000gn/T/mscorlib.dll.mdb'
      at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00000] in <filename unknown>:0
      at Mono.MdbRebase.MdbRebase.RewriteMdbFile (System.String inputFile) [0x00000] in <filename unknown>:0
      at Mono.MdbRebase.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0

8 years ago[mdbrebase] Add a quiet mode.
Rolf Bjarne Kvinge [Tue, 26 May 2015 11:13:50 +0000 (13:13 +0200)]
[mdbrebase] Add a quiet mode.

8 years ago[mdbrebase] Indent properly.
Rolf Bjarne Kvinge [Tue, 26 May 2015 11:12:25 +0000 (13:12 +0200)]
[mdbrebase] Indent properly.

8 years ago[llvm] Fix the argument type of specific_trampoline_generic_class_init.
Zoltan Varga [Tue, 26 May 2015 11:58:32 +0000 (07:58 -0400)]
[llvm] Fix the argument type of specific_trampoline_generic_class_init.

8 years ago[corlib] More thread code from reference sources, mostly for argument checks
Marek Safar [Tue, 26 May 2015 10:11:08 +0000 (12:11 +0200)]
[corlib] More thread code from reference sources, mostly for argument checks

8 years ago[xbuild] make sure to load appropriate Microsoft.Build.Tasks*.dll.
Atsushi Eno [Tue, 26 May 2015 07:43:44 +0000 (15:43 +0800)]
[xbuild] make sure to load appropriate Microsoft.Build.Tasks*.dll.

When running MONO_LOG_LEVEL=debug xbuild with previous versions, it showed
that Microsoft.Build.Tasks.v4.0.dll was loaded, while the expected one was
Microsoft.Build.Tasks.v12.0.dll (as current xbuild script loads the one
from xbuild_12 profile). It was because Microsoft.Build.Tasks*.dll was
not referenced by xbuild.exe and thus it was loaded differently.

This hack adds strong reference to some class in Microsoft.Build.Tasks*.dll
of the corresponding version for each profile to resolve that issue.

8 years agoRevert "[runtime] Use condvars instead of events for notifying the finalizer thread."
Zoltan Varga [Tue, 26 May 2015 02:03:34 +0000 (22:03 -0400)]
Revert "[runtime] Use condvars instead of events for notifying the finalizer thread."

This reverts commit 5d36a53b2ecb822435eb7e2c7881b90e230cc62b.

Revert this as it causes hangs on wrench.

8 years ago[arm] Implement support for OP_GENERIC_CLASS_INIT.
Zoltan Varga [Tue, 26 May 2015 00:28:22 +0000 (00:28 +0000)]
[arm] Implement support for OP_GENERIC_CLASS_INIT.

8 years ago[arm] Remove unused codegen files.
Zoltan Varga [Tue, 26 May 2015 00:09:33 +0000 (00:09 +0000)]
[arm] Remove unused codegen files.

8 years ago[metadata] Replace non-portable usleep() with g_usleep() in MS threadpool.
Joao Matos [Mon, 25 May 2015 18:38:15 +0000 (19:38 +0100)]
[metadata] Replace non-portable usleep() with g_usleep() in MS threadpool.

8 years ago[metadata] Fixed MSVC union compilation issues in MS threadpool.
Joao Matos [Mon, 25 May 2015 18:36:32 +0000 (19:36 +0100)]
[metadata] Fixed MSVC union compilation issues in MS threadpool.

8 years ago[windows] Fixed MSVC config.h to define HAVE_COMPLEX_H.
Joao Matos [Mon, 25 May 2015 18:34:20 +0000 (19:34 +0100)]
[windows] Fixed MSVC config.h to define HAVE_COMPLEX_H.

8 years ago[sgen] Fixed compilation of sgen-workers.c under MSVC.
Joao Matos [Mon, 25 May 2015 18:33:26 +0000 (19:33 +0100)]
[sgen] Fixed compilation of sgen-workers.c under MSVC.

8 years ago[metadata] Fixed compilation of gc-stats.c under MSVC.
Joao Matos [Mon, 25 May 2015 18:31:55 +0000 (19:31 +0100)]
[metadata] Fixed compilation of gc-stats.c under MSVC.

8 years ago[windows] Update MSVC DLL export definition files.
Joao Matos [Mon, 25 May 2015 18:30:28 +0000 (19:30 +0100)]
[windows] Update MSVC DLL export definition files.

8 years ago[windows] Prepare VS build properties for proper DLL export/import definitions.
Joao Matos [Mon, 25 May 2015 18:28:21 +0000 (19:28 +0100)]
[windows] Prepare VS build properties for proper DLL export/import definitions.

8 years ago[windows] Updated VS project files.
Joao Matos [Mon, 25 May 2015 18:26:15 +0000 (19:26 +0100)]
[windows] Updated VS project files.

8 years ago[llvm] Fix the IR generated for OP_GENERIC_CLASS_INIT.
Zoltan Varga [Mon, 25 May 2015 15:11:13 +0000 (11:11 -0400)]
[llvm] Fix the IR generated for OP_GENERIC_CLASS_INIT.

8 years ago[arm] Fix the handling of callee saved fp registers during unwinding, previously...
Zoltan Varga [Mon, 25 May 2015 15:00:32 +0000 (11:00 -0400)]
[arm] Fix the handling of callee saved fp registers during unwinding, previously they were saved in an 32 bit array. Fixes #29726.

8 years ago[corlib] Add TimeZoneInfo support to xammac
Marek Safar [Mon, 25 May 2015 14:34:04 +0000 (16:34 +0200)]
[corlib] Add TimeZoneInfo support to xammac

8 years ago[corlib] TimeZoneInfo.GetSystemTimeZones should work as singleton. Fixes #29906
Marek Safar [Mon, 25 May 2015 12:55:29 +0000 (14:55 +0200)]
[corlib] TimeZoneInfo.GetSystemTimeZones should work as singleton. Fixes #29906

8 years ago[corlib] Clean up some of TimeZoneInfo ifdefs
Marek Safar [Mon, 25 May 2015 12:31:13 +0000 (14:31 +0200)]
[corlib] Clean up some of TimeZoneInfo ifdefs

8 years ago[corlib] SafeHandle from reference sources without code duplication.
Marek Safar [Mon, 25 May 2015 09:21:34 +0000 (11:21 +0200)]
[corlib] SafeHandle from reference sources without code duplication.

8 years ago[mcs] Emit value type initializers without local reset before member are assigned...
Marek Safar [Sun, 24 May 2015 14:13:40 +0000 (16:13 +0200)]
[mcs] Emit value type initializers without local reset before member are assigned. Fixes #30349

9 years agoFixed parsing the host header field
Kai Ruhnau [Fri, 22 May 2015 20:42:23 +0000 (22:42 +0200)]
Fixed parsing the host header field

9 years agoAdded a test for accessing HttpRequestHeader.Host
Kai Ruhnau [Fri, 22 May 2015 20:45:47 +0000 (22:45 +0200)]
Added a test for accessing HttpRequestHeader.Host

9 years ago[corlib] Disable more CAS code
Marek Safar [Fri, 22 May 2015 19:04:52 +0000 (21:04 +0200)]
[corlib] Disable more CAS code

9 years ago[mcs] Emit decimal constant attribute sign using csc compatible format. Fixes #30267
Marek Safar [Fri, 22 May 2015 18:10:58 +0000 (20:10 +0200)]
[mcs] Emit decimal constant attribute sign using csc compatible format. Fixes #30267

9 years ago[runtime] Check remoting support in mscorlib before wrappers are emitted.
Marek Safar [Fri, 22 May 2015 15:14:02 +0000 (17:14 +0200)]
[runtime] Check remoting support in mscorlib before wrappers are emitted.

9 years ago[system.xml] Check different results under disabled cas
Marek Safar [Fri, 22 May 2015 15:13:16 +0000 (17:13 +0200)]
[system.xml] Check different results under disabled cas

9 years ago[corlib] ExecutionContext and other contexts from reference sources. Fixes #28793...
Marek Safar [Fri, 22 May 2015 14:41:18 +0000 (16:41 +0200)]
[corlib] ExecutionContext and other contexts from reference sources. Fixes #28793 and similar nested context switches issues.

9 years ago[aot] Fixed the strip invocation to correctly handle paths with spaces.
João Matos [Fri, 22 May 2015 13:58:57 +0000 (14:58 +0100)]
[aot] Fixed the strip invocation to correctly handle paths with spaces.

9 years ago[aot] Added a "temp-path" option to pass a location where to store temporary generati...
João Matos [Fri, 22 May 2015 13:57:58 +0000 (14:57 +0100)]
[aot] Added a "temp-path" option to pass a location where to store temporary generation files.

9 years ago[aot] Document the "llvm-path" option.
João Matos [Fri, 22 May 2015 13:57:00 +0000 (14:57 +0100)]
[aot] Document the "llvm-path" option.

9 years ago[aot] Refactored path cleaning code into a standalone function.
João Matos [Fri, 22 May 2015 13:55:41 +0000 (14:55 +0100)]
[aot] Refactored path cleaning code into a standalone function.

9 years ago[corlib] Restore UTF8 as the default encoding for XI and XM [#29928]
Sebastien Pouliot [Fri, 22 May 2015 13:55:14 +0000 (09:55 -0400)]
[corlib] Restore UTF8 as the default encoding for XI and XM [#29928]

9 years agoMerge pull request #1829 from StephenMcConnel/bug-30325
João Matos [Fri, 22 May 2015 10:24:45 +0000 (11:24 +0100)]
Merge pull request #1829 from StephenMcConnel/bug-30325

Prevent DataGridViewTextBoxCell from using Disposed editor object

9 years ago[corlib] Moved ValueType field into another class.
Marcos Henrich [Fri, 22 May 2015 08:30:48 +0000 (09:30 +0100)]
[corlib] Moved ValueType field into another class.

Adding fields to ValueType can mess with sub class layouts.
Fixes #30060.

9 years agoMerge pull request #1828 from alexanderkyte/jenkins_arm_profiler_crash
Zoltan Varga [Fri, 22 May 2015 01:17:40 +0000 (03:17 +0200)]
Merge pull request #1828 from alexanderkyte/jenkins_arm_profiler_crash

[runtime/profiler] Check that coverage hash tables have been initialized before freeing them.

9 years agoPrevent DataGridViewTextBoxCell from using Disposed editor object
Stephen McConnel [Thu, 21 May 2015 22:48:53 +0000 (17:48 -0500)]
Prevent DataGridViewTextBoxCell from using Disposed editor object

This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=30325.

9 years ago[runtime/profiler] Check that coverage hash tables have been initialized before freei...
Alexander Kyte [Thu, 21 May 2015 20:58:07 +0000 (16:58 -0400)]
[runtime/profiler] Check that coverage hash tables have been initialized before freeing them.

9 years ago[WCF] bonus, NET_2_1 is blocking set_Timeout. It didn't exist in Moonlight.
Atsushi Eno [Thu, 21 May 2015 17:23:27 +0000 (01:23 +0800)]
[WCF] bonus, NET_2_1 is blocking set_Timeout. It didn't exist in Moonlight.

9 years ago[aot] Handle partial sharing in mono_aot_get_unbox_trampoline ().
Zoltan Varga [Thu, 21 May 2015 13:59:13 +0000 (15:59 +0200)]
[aot] Handle partial sharing in mono_aot_get_unbox_trampoline ().

9 years ago[runtime] Handle generic methods in mono_method_get_vtable_slot (). Fixes #30276.
Zoltan Varga [Thu, 21 May 2015 13:58:52 +0000 (15:58 +0200)]
[runtime] Handle generic methods in mono_method_get_vtable_slot (). Fixes #30276.

9 years ago[WCF] fix send timeout. Should fix bug #19697. Should fix bug #19697. Should fix...
Atsushi Eno [Thu, 21 May 2015 08:07:27 +0000 (16:07 +0800)]
[WCF] fix send timeout. Should fix bug #19697. Should fix bug #19697. Should fix bug #19697. Should fix bug #19697.

1. Preserve ChannelFactory so that it can retrieve its ServiceEndpoint's
Binding's Timeout values.
2. Use DefaultCommunicationTimeouts.SendTimeout instead of ReceiveTimeout.
It was either written when I don't understand the API well or might be
different in duplex channel (who cares? nothing supports it now and
we will be switching to referencesource).

It is going to be my final contribution to WCF old codebase. Bye bye forever.

9 years ago[runtime] Fix the calculation of the blittable status of System.ValueType after the...
Zoltan Varga [Thu, 21 May 2015 07:31:26 +0000 (09:31 +0200)]
[runtime] Fix the calculation of the blittable status of System.ValueType after the import of the MS reference source version.

9 years agoMerge pull request #1826 from alexanderkyte/remove_all_processes_callback_test
Alex Rønne Petersen [Thu, 21 May 2015 01:39:02 +0000 (03:39 +0200)]
Merge pull request #1826 from alexanderkyte/remove_all_processes_callback_test

[runtime] Remove a test that leads to excessive heap thrashing and interferes with other tests.

9 years ago[system.xml] Disable cas in mobile profiles only
Marek Safar [Wed, 20 May 2015 19:20:02 +0000 (21:20 +0200)]
[system.xml] Disable cas in mobile profiles only

9 years agoBump reference source
Marek Safar [Wed, 20 May 2015 19:06:43 +0000 (21:06 +0200)]
Bump reference source

9 years ago[system.xml] One more mobile serialization incompatibility
Marek Safar [Wed, 20 May 2015 18:32:23 +0000 (20:32 +0200)]
[system.xml] One more mobile serialization incompatibility

9 years ago[corlib] Remove unused thread field
Marek Safar [Wed, 20 May 2015 14:22:28 +0000 (16:22 +0200)]
[corlib] Remove unused thread field

9 years ago[threads] Remove dead code
Ludovic Henry [Wed, 20 May 2015 13:55:55 +0000 (10:55 -0300)]
[threads] Remove dead code

9 years ago[corlib] Match closer ExecutionContextSwitcher methods
Marek Safar [Wed, 20 May 2015 13:55:31 +0000 (15:55 +0200)]
[corlib] Match closer ExecutionContextSwitcher methods

9 years ago[referencesource] Import System.Threading.ThreadLocal
Ludovic Henry [Wed, 20 May 2015 13:54:13 +0000 (10:54 -0300)]
[referencesource] Import System.Threading.ThreadLocal

9 years ago[referencesource] Import System.Threading.ThreadLocal
Ludovic Henry [Wed, 20 May 2015 13:39:46 +0000 (10:39 -0300)]
[referencesource] Import System.Threading.ThreadLocal

9 years agoMerge pull request #1823 from iainx/anti-dos
Alex Rønne Petersen [Wed, 20 May 2015 13:17:42 +0000 (15:17 +0200)]
Merge pull request #1823 from iainx/anti-dos

[Profiler] Limit files loaded in the coverage profiler to 128k

9 years ago[referencesource] Import System.ValueType
Ludovic Henry [Wed, 20 May 2015 12:57:23 +0000 (09:57 -0300)]
[referencesource] Import System.ValueType

Instead of importing the source from referencesource, the algorithm has been reimplemented in our version. This is because their implementation uses multiple internal calls that do not need to be.

9 years ago[Profiler] Limit files loaded in the coverage profiler to 128k
iain holmes [Wed, 20 May 2015 09:52:23 +0000 (10:52 +0100)]
[Profiler] Limit files loaded in the coverage profiler to 128k

Place an upper limit on files loaded in the coverage profiler to 128k. If the
system suppression file exceeds that (it is currently only 3k), then there's
some problem and the profiler will exit. For other user files passed on the
commandline, we print a warning message and ignore them.

9 years ago[bcl] Mobile profiles fixes
Marek Safar [Wed, 20 May 2015 10:56:10 +0000 (12:56 +0200)]
[bcl] Mobile profiles fixes

9 years ago[runtime] Remove a test that leads to excessive heap thrashing and interferes with...
Alexander Kyte [Wed, 20 May 2015 04:16:44 +0000 (04:16 +0000)]
[runtime] Remove a test that leads to excessive heap thrashing and interferes with other tests.

9 years agoMerge pull request #1822 from mono/work-bug23792
Martin Baulig [Wed, 20 May 2015 02:46:08 +0000 (04:46 +0200)]
Merge pull request #1822 from mono/work-bug23792

[TLS]: Fix #23792.

9 years agoBump referencesource for XI #30205
Sebastien Pouliot [Wed, 20 May 2015 01:51:30 +0000 (21:51 -0400)]
Bump referencesource for XI #30205

9 years ago[TLS]: Fix #23792.
Martin Baulig [Wed, 20 May 2015 01:00:34 +0000 (03:00 +0200)]
[TLS]: Fix #23792.

What happens here is the following:

When using chunked encoding, the ChunkStream sometimes mixes async and sync requests
on the underlying stream.  The async calls work great - just the sync ones create
problems.

In this particular bug, the server returns two ApplicationData records - one big one
and then a smaller one.  The chunk parser requests a sync read of 1024 bytes which
then result in a series of sync reads on the underlying network stream.  The first
two or three network reads don't return enough data to fill the huge ApplicationData
record - the last one then returns so much data that it fills both the remainder of
the first record and the entire second one.

If the caller issued a second sync read, then the implementation would catch this -
but the async code path does not.

9 years agoBump referencesource for fixes required by XI
Sebastien Pouliot [Wed, 20 May 2015 00:10:53 +0000 (20:10 -0400)]
Bump referencesource for fixes required by XI

9 years ago[referencesource] Import System.Runtime.InteropServices.SafeHandle
Ludovic Henry [Tue, 19 May 2015 18:28:58 +0000 (15:28 -0300)]
[referencesource] Import System.Runtime.InteropServices.SafeHandle

Instead of importing the source from referencesource, the algorithm has been reimplemented in our version. This is because their implementation uses multiple internal calls that do not need to be, and they are simple enough to just be reimplemented in managed code.

9 years ago[corlib] Remove unused files
Marek Safar [Tue, 19 May 2015 21:26:48 +0000 (23:26 +0200)]
[corlib] Remove unused files

9 years ago[corlib] LocalDataStoreSlot from reference sources
Marek Safar [Tue, 19 May 2015 20:06:27 +0000 (22:06 +0200)]
[corlib] LocalDataStoreSlot from reference sources

9 years agoMerge pull request #1821 from iainx/replace-getline
João Matos [Tue, 19 May 2015 17:14:29 +0000 (18:14 +0100)]
Merge pull request #1821 from iainx/replace-getline

[Profiler] Replace getline(3)

9 years ago[corlib] CompressedStack in not supported in mobile profile
Marek Safar [Tue, 19 May 2015 17:06:13 +0000 (19:06 +0200)]
[corlib] CompressedStack in not supported in mobile profile

9 years ago[Profiler] Replace getline(3)
iain holmes [Tue, 19 May 2015 16:22:07 +0000 (17:22 +0100)]
[Profiler] Replace getline(3)

getline(3) is not available on Android API < 21, so we use our own custom
functions

9 years ago[aot] Fix full aot support.
Zoltan Varga [Tue, 19 May 2015 14:47:45 +0000 (16:47 +0200)]
[aot] Fix full aot support.

9 years ago[corlib] Small part of thread from reference sources
Marek Safar [Tue, 19 May 2015 09:43:50 +0000 (11:43 +0200)]
[corlib] Small part of thread from reference sources

9 years agoFix delegate and IMT processing - devirtualization and generics test now pass
Neale Ferguson [Tue, 19 May 2015 01:47:59 +0000 (21:47 -0400)]
Fix delegate and IMT processing - devirtualization and generics test now pass

9 years ago[mono-proclib] Compile on non Mach-based Unix systems (see pull request 1819)
Miguel de Icaza [Tue, 19 May 2015 01:38:06 +0000 (21:38 -0400)]
[mono-proclib] Compile on non Mach-based Unix systems (see pull request 1819)

9 years ago[corlib/Tests] Added test for bug #30171
Miguel de Icaza [Mon, 18 May 2015 22:04:05 +0000 (18:04 -0400)]
[corlib/Tests] Added test for bug #30171

9 years ago[arm64] Define MONO_ARCH_HAS_MONO_CONTEXT.
Zoltan Varga [Mon, 18 May 2015 20:30:05 +0000 (22:30 +0200)]
[arm64] Define MONO_ARCH_HAS_MONO_CONTEXT.

9 years ago[runtime] Add a test for 8 delegate arguments.
Zoltan Varga [Mon, 18 May 2015 15:25:41 +0000 (17:25 +0200)]
[runtime] Add a test for 8 delegate arguments.

9 years ago[corlib] Fixed make android TZ testing targets.
Marcos Henrich [Mon, 18 May 2015 14:25:05 +0000 (15:25 +0100)]
[corlib] Fixed make android TZ testing targets.

tzi.exe now builds with new sources.
tzi.exe is now ran and compiled with current mono and mcs which avoids corlib version
problems.

9 years agoMerge pull request #1815 from jbevain/clean-mutex-windows
João Matos [Mon, 18 May 2015 12:18:41 +0000 (13:18 +0100)]
Merge pull request #1815 from jbevain/clean-mutex-windows

[runtime] Cleanup wrappers for windows cond-vars

9 years ago[mcs] Update unicode categories allowed as Unicode escape sequences within identifier...
Marek Safar [Mon, 18 May 2015 12:03:37 +0000 (14:03 +0200)]
[mcs] Update unicode categories allowed as Unicode escape sequences within identifiers. Fixes #24968

9 years agoAdd missing mono-profiler-log.suppression to EXTRA_DIST
Jo Shields [Mon, 18 May 2015 09:46:13 +0000 (10:46 +0100)]
Add missing mono-profiler-log.suppression to EXTRA_DIST

9 years ago[runtime] Cleanup wrappers for windows cond-vars
Jb Evain [Mon, 18 May 2015 09:10:42 +0000 (11:10 +0200)]
[runtime] Cleanup wrappers for windows cond-vars

9 years agoMerge pull request #1626 from iainx/add-coverage-to-log-profiler
Alex Rønne Petersen [Mon, 18 May 2015 07:55:43 +0000 (09:55 +0200)]
Merge pull request #1626 from iainx/add-coverage-to-log-profiler

Add coverage to log profiler

9 years agoMerge pull request #1811 from yann-morin-1998/yem/parallel-install
Marek Safar [Mon, 18 May 2015 06:29:32 +0000 (08:29 +0200)]
Merge pull request #1811 from yann-morin-1998/yem/parallel-install

mcs: fix installation with parallel make

9 years agoMerge pull request #1809 from kumpera/double_loading_fix
Rodrigo Kumpera [Sun, 17 May 2015 17:05:34 +0000 (13:05 -0400)]
Merge pull request #1809 from kumpera/double_loading_fix

[runtime] Avoid allocating interface offsets multiple times. Fixes #28398

9 years agomcs: fix installation with parallel make
Yann E. MORIN [Sat, 16 May 2015 17:34:17 +0000 (19:34 +0200)]
mcs: fix installation with parallel make

In mcs/ the install of xbuild_12 and xbuild_14 will end-up installing
the same files:
    ${NETFRAMEWORK_DIR}/v2.0/RedistList/FrameworkList.xml
    ${NETFRAMEWORK_DIR}/v3.0/RedistList/FrameworkList.xml
    ${NETFRAMEWORK_DIR}/v3.5/RedistList/FrameworkList.xml
    ${NETFRAMEWORK_DIR}/v4.0/Profile/Client/RedistList/FrameworkList.xml
    ${NETFRAMEWORK_DIR}/v4.0/RedistList/FrameworkList.xml
    ${NETFRAMEWORK_DIR}/v4.5.1/RedistList/FrameworkList.xml
    ${NETFRAMEWORK_DIR}/v4.5/RedistList/FrameworkList.xml

This is because there is no atomicity when installing each file, and
xbuild_12 and xbuild_14 may well run in parallel, each trying to install
each of those files; but the 'install' utility will first check if the
target file exists or not, and there is a race in doing so, thus leading
to build failures like so:
    http://autobuild.buildroot.org/results/c32/c3288c5d1fb94474f14a4a889e76135878d403bc/build-end.log
    http://autobuild.buildroot.org/results/3cb/3cb99e5c5672cbaa2a86020129a05dfde47cdb8f/build-end.log
    and many more:
    http://autobuild.buildroot.net/?reason=host-mono-4.0.0
    http://autobuild.buildroot.net/?reason=host-mono-4.0.1

So, ensure ordering of the install of xbuild_12 and xbuild_14 (the
ordering is completely arbitrary, either way gives the same installed
files).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>
9 years ago[runtime] Remove the unused method field from MonoLMF on arm64.
Zoltan Varga [Sun, 17 May 2015 13:05:13 +0000 (15:05 +0200)]
[runtime] Remove the unused method field from MonoLMF on arm64.

9 years ago[runtime] Fix the DISABLE_JIT/DISABLE_REMOTING build.
Zoltan Varga [Sun, 17 May 2015 13:04:53 +0000 (15:04 +0200)]
[runtime] Fix the DISABLE_JIT/DISABLE_REMOTING build.

9 years agoFix the DISABLE_COM build.
Zoltan Varga [Sun, 17 May 2015 12:46:07 +0000 (14:46 +0200)]
Fix the DISABLE_COM build.

9 years ago[jit] Remove some unused code when MONO_ARCH_HAVE_OP_GENERIC_CLASS_INIT is defined.
Zoltan Varga [Sun, 17 May 2015 12:06:11 +0000 (14:06 +0200)]
[jit] Remove some unused code when MONO_ARCH_HAVE_OP_GENERIC_CLASS_INIT is defined.

9 years ago[runtime] Remove a few more DISABLE_ ifdefs.
Zoltan Varga [Sat, 16 May 2015 11:52:01 +0000 (13:52 +0200)]
[runtime] Remove a few more DISABLE_ ifdefs.

9 years ago[runtime] Reduce the number of gc ifdefs in gc.c a bit more.
Zoltan Varga [Sat, 16 May 2015 11:34:30 +0000 (13:34 +0200)]
[runtime] Reduce the number of gc ifdefs in gc.c a bit more.

9 years ago[runtime] Use condvars instead of events for notifying the finalizer thread.
Zoltan Varga [Sat, 16 May 2015 11:23:56 +0000 (13:23 +0200)]
[runtime] Use condvars instead of events for notifying the finalizer thread.

9 years agoRevert "[runtime] Use condvars instead of events for waiting for domain finalization."
Zoltan Varga [Sat, 16 May 2015 09:47:28 +0000 (11:47 +0200)]
Revert "[runtime] Use condvars instead of events for waiting for domain finalization."

This reverts commit f84084dd793a22102ec231db36855bcaeb470e09.

Revert this until issues with interrupts can be sorted out.

9 years agoRevert "[runtime] Use condvars instead of events for notifying the finalizer thread."
Zoltan Varga [Sat, 16 May 2015 09:46:59 +0000 (11:46 +0200)]
Revert "[runtime] Use condvars instead of events for notifying the finalizer thread."

This reverts commit c84508b6f33af3853e676102903edac3ed278fd5.

Revert this until issues with interrupts can be sorted out.

9 years ago[runtime] Use condvars instead of events for notifying the finalizer thread.
Zoltan Varga [Sat, 16 May 2015 09:03:49 +0000 (11:03 +0200)]
[runtime] Use condvars instead of events for notifying the finalizer thread.

9 years ago[runtime] Remove compile time null gc dependencies from gc.c.
Zoltan Varga [Sat, 16 May 2015 08:16:07 +0000 (10:16 +0200)]
[runtime] Remove compile time null gc dependencies from gc.c.