mono.git
8 years agoMerge pull request #1869 from alexanderkyte/appdomain_parallel
Alex Rønne Petersen [Wed, 24 Jun 2015 03:29:36 +0000 (05:29 +0200)]
Merge pull request #1869 from alexanderkyte/appdomain_parallel

[runtime] Fixed use-after-free in context freeing

8 years ago[jit] Properly set the klass of the MonoInst pushed on the IL stack by the refanyval...
Zoltan Varga [Wed, 24 Jun 2015 02:17:05 +0000 (22:17 -0400)]
[jit] Properly set the klass of the MonoInst pushed on the IL stack by the refanyval opcode. Fixes #31231.

8 years ago[corlib] Fix NRE in TaskScheduler.GetTaskSchedulersForDebugger
Ludovic Henry [Tue, 23 Jun 2015 22:52:44 +0000 (19:52 -0300)]
[corlib] Fix NRE in TaskScheduler.GetTaskSchedulersForDebugger

See external/referencesource/mscorlib/system/threading/Tasks/TaskScheduler.cs:582

8 years ago[ilasm] Pair methods using their calling convention, this allows to have static and...
Marek Safar [Tue, 23 Jun 2015 16:44:35 +0000 (18:44 +0200)]
[ilasm] Pair methods using their calling convention, this allows to have static and non-static properties with same name

8 years ago[ilasm] Even more undocumented custom attributes syntax
Marek Safar [Tue, 23 Jun 2015 16:12:53 +0000 (18:12 +0200)]
[ilasm] Even more undocumented custom attributes syntax

8 years ago[linker] Add Mono.Cecil.*.Has* checks when comparing methods/types
Sebastien Pouliot [Tue, 23 Jun 2015 17:03:10 +0000 (13:03 -0400)]
[linker] Add Mono.Cecil.*.Has* checks when comparing methods/types

* It reduce memory allocations by avoiding the creation of empty
  collections (only used to tell us there's a Count of 0);

* It also speed up execution, less object creation/GC time;

* Patch also remove some double-casts (is + as/cast)

8 years agoMerge pull request #1874 from saper/bug_29679
Zoltan Varga [Mon, 22 Jun 2015 19:54:14 +0000 (15:54 -0400)]
Merge pull request #1874 from saper/bug_29679

[msbuild][crash] Enums are classes that can be assigned to value types

8 years ago[sgen] Remove a weird unnecessary cast.
Mark Probst [Fri, 22 May 2015 23:01:00 +0000 (16:01 -0700)]
[sgen] Remove a weird unnecessary cast.

8 years ago[sgen] `GCObject*` instead of `void*`
Mark Probst [Fri, 22 May 2015 22:59:05 +0000 (15:59 -0700)]
[sgen] `GCObject*` instead of `void*`

8 years ago[runtime] GC descriptor typedef.
Mark Probst [Mon, 18 May 2015 18:07:43 +0000 (11:07 -0700)]
[runtime] GC descriptor typedef.

8 years ago[sgen] Typedef for GC descriptors.
Mark Probst [Fri, 15 May 2015 22:32:04 +0000 (15:32 -0700)]
[sgen] Typedef for GC descriptors.

8 years ago[sgen] `GCObject*` instead of `char*` where appropriate.
Mark Probst [Mon, 11 May 2015 16:32:18 +0000 (09:32 -0700)]
[sgen] `GCObject*` instead of `char*` where appropriate.

8 years ago[sgen] Make GCVTable type opaque, not a pointer.
Mark Probst [Sun, 10 May 2015 23:23:24 +0000 (16:23 -0700)]
[sgen] Make GCVTable type opaque, not a pointer.

8 years agoMerge pull request #1887 from debugerr/patch-2
Miguel de Icaza [Mon, 22 Jun 2015 18:50:59 +0000 (14:50 -0400)]
Merge pull request #1887 from debugerr/patch-2

Null reference check before calling delegate

8 years ago[threadpool-ms-io] Rework socket removal job cancellation
Ludovic Henry [Sat, 20 Jun 2015 20:08:38 +0000 (17:08 -0300)]
[threadpool-ms-io] Rework socket removal job cancellation

8 years ago[threadpool-ms-io] Remove dependency on SocketAsyncResult list in the backends
Ludovic Henry [Sat, 20 Jun 2015 16:31:28 +0000 (13:31 -0300)]
[threadpool-ms-io] Remove dependency on SocketAsyncResult list in the backends

This reduce the duplication and complexity of the code in the different backends

8 years ago[threadpool-ms-io] Fix race between socket add and remove
Ludovic Henry [Sat, 20 Jun 2015 16:22:31 +0000 (13:22 -0300)]
[threadpool-ms-io] Fix race between socket add and remove

The following race could occur and lead to a EBADF error with kevent and epoll :
 1. mono_threadpool_ms_io_add is called with fd 1234
 2. mono_threadpool_ms_io_remove_socket is called when closing fd 1234
 3. selector_thread calls update_add with socket 1234, which will call kevent with this already closed socket

The solution is simply to remove all the SocketAsyncResult from states, as well as updates, for the given socket fd

8 years ago[threadpool-ms-io] Rework AsyncReadHandler detection
Ludovic Henry [Fri, 12 Jun 2015 21:41:41 +0000 (18:41 -0300)]
[threadpool-ms-io] Rework AsyncReadHandler detection

8 years ago[threadpool-ms-io] Fix update on epoll
Ludovic Henry [Fri, 19 Jun 2015 22:22:31 +0000 (19:22 -0300)]
[threadpool-ms-io] Fix update on epoll

8 years ago[ilasm] Add another undocumented custom attributes initializer syntax
Marek Safar [Mon, 22 Jun 2015 15:56:16 +0000 (17:56 +0200)]
[ilasm] Add another undocumented custom attributes initializer syntax

8 years agoFix System.Messaging makefile logic issue
Chris Hamons [Mon, 22 Jun 2015 15:22:12 +0000 (10:22 -0500)]
Fix System.Messaging makefile logic issue

- Introduced in b044a27fe0006830b2793e3d34f45407b656b8b2

8 years ago[ilasm] Fix invalid codegen for method overloads with unique modop/modreq type only
Marek Safar [Mon, 22 Jun 2015 12:05:49 +0000 (14:05 +0200)]
[ilasm] Fix invalid codegen for method overloads with unique modop/modreq type only

8 years ago[S.R.Serialization] fix default value comparison.
Atsushi Eno [Mon, 22 Jun 2015 11:12:38 +0000 (20:12 +0900)]
[S.R.Serialization] fix default value comparison.

The fixed code used to invoke null.Equals(other).

The new test (by @alien0ada) shows the failing case.

8 years ago[ilasm] Add emit of custom string attribute using member syntax
Marek Safar [Sun, 21 Jun 2015 11:20:10 +0000 (13:20 +0200)]
[ilasm] Add emit of custom string attribute using member syntax

8 years agoMerge pull request #1889 from alexanderkyte/debugger_locals_failure
Zoltan Varga [Sat, 20 Jun 2015 23:19:59 +0000 (19:19 -0400)]
Merge pull request #1889 from alexanderkyte/debugger_locals_failure

[runtime] Add a missing NOP to the OP_SEQ_POINT arm code

8 years ago[runtime] Add a missing NOP to the OP_SEQ_POINT arm code
Alexander Kyte [Sat, 20 Jun 2015 22:01:25 +0000 (22:01 +0000)]
[runtime] Add a missing NOP to the OP_SEQ_POINT arm code

We were failing MonoTests.DebuggerTests.Locals and
MonoTests.DebuggerTests.SingleStepping because we
stepped forward too far as a side effect of this missing
"padding" NOP.

8 years agoFix the build.
Zoltan Varga [Fri, 19 Jun 2015 20:28:18 +0000 (16:28 -0400)]
Fix the build.

8 years ago[runtime] Make multiple -O= flags cumultative instead of negating the effects of...
Zoltan Varga [Fri, 19 Jun 2015 20:22:22 +0000 (16:22 -0400)]
[runtime] Make multiple -O= flags cumultative instead of negating the effects of the previous ones.

8 years agoMerge pull request #1886 from BrzVlad/fix-arm-thread-state
Zoltan Varga [Fri, 19 Jun 2015 18:15:04 +0000 (14:15 -0400)]
Merge pull request #1886 from BrzVlad/fix-arm-thread-state

[ios] Fix setting of thread state due to invalid argument

8 years ago[mcs] Add support for interpolated quoted strings
Marek Safar [Fri, 19 Jun 2015 16:35:38 +0000 (18:35 +0200)]
[mcs] Add support for interpolated quoted strings

8 years ago[aot] Build the LLVM temporary file paths with the temporary base name.
João Matos [Fri, 19 Jun 2015 14:59:30 +0000 (15:59 +0100)]
[aot] Build the LLVM temporary file paths with the temporary base name.

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

8 years ago[aot] Build the temporary base name with the temporary path when it's present.
João Matos [Fri, 19 Jun 2015 14:58:40 +0000 (15:58 +0100)]
[aot] Build the temporary base name with the temporary path when it's present.

8 years ago[aot] Initialize the temporary path to an empty string.
João Matos [Fri, 19 Jun 2015 14:56:50 +0000 (15:56 +0100)]
[aot] Initialize the temporary path to an empty string.

8 years ago[ilasm] Add project file
Marek Safar [Fri, 19 Jun 2015 09:47:39 +0000 (11:47 +0200)]
[ilasm] Add project file

8 years ago[ilasm] Add support for multiple custom type modifiers attached to single type
Marek Safar [Fri, 19 Jun 2015 09:46:01 +0000 (11:46 +0200)]
[ilasm] Add support for multiple custom type modifiers attached to single type

8 years ago[mcs] Implements virtual read-only auto-property assignment via derived private field
Marek Safar [Fri, 19 Jun 2015 09:43:16 +0000 (11:43 +0200)]
[mcs] Implements virtual read-only auto-property assignment via derived private field

8 years ago[ilasm] Remove unused files
Marek Safar [Thu, 18 Jun 2015 16:37:54 +0000 (18:37 +0200)]
[ilasm] Remove unused files

8 years agoNull reference check before calling delegate
debugerr [Fri, 19 Jun 2015 08:09:00 +0000 (10:09 +0200)]
Null reference check before calling delegate

We see a crash in LinuxNetworkChange.OnAvailabilityChanged when dereferencing the AvailabilityChanged delegate (NullReferenceException). There is a race here: the OnAvailabilityChanged is fired by deferring to the ThreadPool, which allows an unregister to come in between, removing the potential registration before we get called back.

8 years agoCreate xammac_net_4_5 profile for XM 4.5 Unified to remove references to unshippable...
Chris Hamons [Fri, 22 May 2015 19:13:59 +0000 (14:13 -0500)]
Create xammac_net_4_5 profile for XM 4.5 Unified to remove references to unshippable assmblies

8 years ago[ios] Fix setting of thread state due to invalid argument
Vlad Brezae [Thu, 18 Jun 2015 18:27:52 +0000 (11:27 -0700)]
[ios] Fix setting of thread state due to invalid argument

This prevented aborts from working.

8 years ago[System.Core] Test MemoryMappedFile.CreateFromFile
Marcos Henrich [Thu, 18 Jun 2015 17:27:11 +0000 (18:27 +0100)]
[System.Core] Test MemoryMappedFile.CreateFromFile

Test MemoryMappedFile.CreateFromFile with null napName parameter.

Covers #30741 #30825.

8 years ago[system] Implements IPv4Mask property on mac. Fixes #30880
Marek Safar [Thu, 18 Jun 2015 15:19:41 +0000 (17:19 +0200)]
[system] Implements IPv4Mask property on mac. Fixes #30880

8 years agoMerge pull request #1884 from mono/fix-vb
João Matos [Thu, 18 Jun 2015 13:04:52 +0000 (14:04 +0100)]
Merge pull request #1884 from mono/fix-vb

[xbuild] Fix Microsoft.VisualBasic.targets to contain correct VbcToolExe

8 years ago[xbuild] Fix Microsoft.VisualBasic.targets to contain correct VbcToolExe
Alexander Köplinger [Thu, 18 Jun 2015 12:46:34 +0000 (14:46 +0200)]
[xbuild] Fix Microsoft.VisualBasic.targets to contain correct VbcToolExe

Compiling VB projects was broken since a few releases but apparently went unnoticed.
The VbcToolExe path needs to be set to "vbnc.exe" because vbnc2 and vbnc shell scripts
don't work in this case and we only support building against the reference assemblies anyway
now for different targets.

8 years ago[jit] Disable passing the rgctx/vtable in some cases, its doesn't seem to be needed...
Zoltan Varga [Wed, 17 Jun 2015 20:21:18 +0000 (16:21 -0400)]
[jit] Disable passing the rgctx/vtable in some cases, its doesn't seem to be needed. The newobj code doesn't use the same logic, so the same method might end up being called with/without an rgctx, which is an error on LLVM since methods which receive an rgctx have a different signature.

8 years ago[runtime] Mark some linq tests as GSHAREDVT so they are skipped when running the...
Zoltan Varga [Wed, 17 Jun 2015 20:12:44 +0000 (16:12 -0400)]
[runtime] Mark some linq tests as GSHAREDVT so they are skipped when running the fullaot tests on amd64.

8 years ago[amd64] Fix some partial sharing problems.
Zoltan Varga [Wed, 17 Jun 2015 19:58:44 +0000 (15:58 -0400)]
[amd64] Fix some partial sharing problems.

8 years ago[mcs] Add better logging for ikvm crashes during HasObject loading
Marek Safar [Wed, 17 Jun 2015 15:52:51 +0000 (17:52 +0200)]
[mcs] Add better logging for ikvm crashes during HasObject loading

8 years ago[mcs] Handle null propagation operator inside nested member access expression. Fixes...
Marek Safar [Wed, 17 Jun 2015 15:35:22 +0000 (17:35 +0200)]
[mcs] Handle null propagation operator inside nested member access expression. Fixes #31092

8 years agoMerge pull request #1881 from mono/Therzok-patch-1
Marek Safar [Wed, 17 Jun 2015 05:41:43 +0000 (07:41 +0200)]
Merge pull request #1881 from mono/Therzok-patch-1

[mcs] Fix order of parameters for LineNumberEntry

8 years ago[mcs] Fix order of parameters for LineNumberEntry
Marius Ungureanu [Wed, 17 Jun 2015 04:56:08 +0000 (07:56 +0300)]
[mcs] Fix order of parameters for LineNumberEntry

Discovered by coverity in NRefactory.

8 years agoFix a warning.
Zoltan Varga [Wed, 17 Jun 2015 02:45:38 +0000 (22:45 -0400)]
Fix a warning.

8 years ago[runtime] More full-aot+amd64 fixes.
Zoltan Varga [Wed, 17 Jun 2015 00:52:15 +0000 (20:52 -0400)]
[runtime] More full-aot+amd64 fixes.

8 years ago[runtime] Fix full aot on amd64.
Zoltan Varga [Wed, 17 Jun 2015 00:25:12 +0000 (20:25 -0400)]
[runtime] Fix full aot on amd64.

8 years ago[runtime] Fixed use-after-free in context freeing
Alexander Kyte [Wed, 17 Jun 2015 00:07:08 +0000 (20:07 -0400)]
[runtime] Fixed use-after-free in context freeing

We had a use-after-free bug in context freeing that creating and freeing AppDomains in parallel exposed.

We called g_hash_table_remove in a callback to g_hash_table_foreach,
which
resulted in freeing the Slot struct that the g_hash_table_foreach was
holding a local reference to.

When it tried to get the chained 'next' element in the table, if
other threads caused enough memory pressure to reuse that memory
between freeing and getting the 'next' pointer, then we try to
dereference a garbage value and get a SIGSEGV.

8 years ago[WindowsBase] Fixed potential string overflow bug when getting Zip entry file length.
João Matos [Tue, 16 Jun 2015 18:27:28 +0000 (19:27 +0100)]
[WindowsBase] Fixed potential string overflow bug when getting Zip entry file length.

8 years ago[WindowsBase] Fixed string buffer overflow when handling Zip entries.
João Matos [Tue, 16 Jun 2015 18:26:16 +0000 (19:26 +0100)]
[WindowsBase] Fixed string buffer overflow when handling Zip entries.

Fixes NuGet package handling, see https://bugzilla.xamarin.com/show_bug.cgi?id=26205.

8 years agoMerge pull request #1804 from esdrubal/processmodule
Marcos Henrich [Tue, 16 Jun 2015 17:15:29 +0000 (18:15 +0100)]
Merge pull request #1804 from esdrubal/processmodule

Adds managed assemblies to Process.Modules.

8 years ago[mcs] Fix accessibility modifiers on accessors logic
Marek Safar [Tue, 16 Jun 2015 17:08:07 +0000 (19:08 +0200)]
[mcs] Fix accessibility modifiers on accessors logic

8 years agoUpdated csproj files.
Marcos Henrich [Tue, 16 Jun 2015 16:26:58 +0000 (17:26 +0100)]
Updated csproj files.

8 years ago[mcs] Constraints checker needs to accomodate inflated base type contrained not conve...
Marek Safar [Tue, 16 Jun 2015 15:52:47 +0000 (17:52 +0200)]
[mcs] Constraints checker needs to accomodate inflated base type contrained not converted to interfaces. Fixes #30973

8 years ago[mono] Update swedish months and days to be always lower cased for some reason cldr...
Marek Safar [Tue, 16 Jun 2015 15:50:49 +0000 (17:50 +0200)]
[mono] Update swedish months and days to be always lower cased for some reason cldr have them wrong. Fixes #30851

8 years agoDefine HAVE_SYSTEM for Windows.
Rolf Bjarne Kvinge [Tue, 16 Jun 2015 15:52:04 +0000 (17:52 +0200)]
Define HAVE_SYSTEM for Windows.

8 years agoMerge pull request #1878 from rolfbjarne/have-system
João Matos [Tue, 16 Jun 2015 14:54:07 +0000 (15:54 +0100)]
Merge pull request #1878 from rolfbjarne/have-system

Add a conditional for the system function.

8 years agoAdd a conditional for the system function.
Rolf Bjarne Kvinge [Tue, 16 Jun 2015 14:41:34 +0000 (16:41 +0200)]
Add a conditional for the system function.

It's not available in the iOS WatchOS simulator.

8 years ago[runtime] Fixed get_process_module module name.
Marcos Henrich [Tue, 16 Jun 2015 13:43:05 +0000 (14:43 +0100)]
[runtime] Fixed get_process_module module name.

Module name was equal to RefEmit_YouForgotToDefineAModule for some
modules in OS other than OSX.

8 years agoMerge pull request #1877 from BrzVlad/fix-finalizer-exception
Alex Rønne Petersen [Tue, 16 Jun 2015 09:23:14 +0000 (11:23 +0200)]
Merge pull request #1877 from BrzVlad/fix-finalizer-exception

Fix finalizer exception

8 years agoMerge pull request #1875 from directhex/use-variable-port-number-for-servicemodel...
Alex Rønne Petersen [Tue, 16 Jun 2015 09:21:49 +0000 (11:21 +0200)]
Merge pull request #1875 from directhex/use-variable-port-number-for-servicemodel-tests

Use random port numbers for ServiceModel tests.

8 years agoMerge pull request #1876 from esdrubal/mmf-segfault
Marcos Henrich [Tue, 16 Jun 2015 09:14:14 +0000 (10:14 +0100)]
Merge pull request #1876 from esdrubal/mmf-segfault

Fixes MemoryMappedFile related segfault with dnvm

8 years ago[jit] Add jit icalls used by the inline rgctx fetch code.
Zoltan Varga [Tue, 16 Jun 2015 02:50:32 +0000 (22:50 -0400)]
[jit] Add jit icalls used by the inline rgctx fetch code.

8 years ago[jit] Remove the 'caller' argument from the generic sharing code, its no longer neede...
Zoltan Varga [Tue, 16 Jun 2015 02:19:18 +0000 (22:19 -0400)]
[jit] Remove the 'caller' argument from the generic sharing code, its no longer needed, since we no longer compute its generic sharing context.

8 years ago[gsharedvt] Avoid computing the generic sharing context of callers, its not longer...
Zoltan Varga [Tue, 16 Jun 2015 02:11:21 +0000 (22:11 -0400)]
[gsharedvt] Avoid computing the generic sharing context of callers, its not longer needed.

8 years ago[jit] Get rid of MonoGenericSharingContext->var_is_vt/mvar_is_vt, they are not needed...
Zoltan Varga [Tue, 16 Jun 2015 01:57:02 +0000 (21:57 -0400)]
[jit] Get rid of MonoGenericSharingContext->var_is_vt/mvar_is_vt, they are not needed anymore since the same information is now encoded in the gshared_constraint field of MonoGenericParam.

8 years ago[runtime] Disable some fullaot tests on x86, since it has no dyncall code.
Zoltan Varga [Tue, 16 Jun 2015 01:40:55 +0000 (21:40 -0400)]
[runtime] Disable some fullaot tests on x86, since it has no dyncall code.

8 years ago[jit] Use emit_get_gsharedvt_info_klass () in one place.
Zoltan Varga [Mon, 15 Jun 2015 23:21:48 +0000 (19:21 -0400)]
[jit] Use emit_get_gsharedvt_info_klass () in one place.

8 years ago[jit] Add an inline version of the rgctx fetch trampolines, not yet used.
Zoltan Varga [Mon, 15 Jun 2015 22:59:41 +0000 (18:59 -0400)]
[jit] Add an inline version of the rgctx fetch trampolines, not yet used.

8 years ago[jit] Use cfg->cbb to refer to the current bblock, avoid using the 'bblock' variable...
Zoltan Varga [Mon, 15 Jun 2015 22:33:39 +0000 (18:33 -0400)]
[jit] Use cfg->cbb to refer to the current bblock, avoid using the 'bblock' variable defined in method_to_ir () for this purpose, since it needs to be updated after every call which changes cfg->cbb.

8 years ago[runtime] Fix mono_sem_timedwait for the case where we get interrupted.
Vlad Brezae [Mon, 15 Jun 2015 21:25:20 +0000 (14:25 -0700)]
[runtime] Fix mono_sem_timedwait for the case where we get interrupted.

On mach, semaphore_timedwait returns KERN_ABORTED instead of setting the errno variable. The timeout argument is relative so it needs to be updated. We don't need to update the timeout argument on other platforms since it has an absolute value.

8 years ago[runtime] Fix failure to wait on semaphore due to invalid argument
Vlad Brezae [Mon, 15 Jun 2015 19:23:48 +0000 (12:23 -0700)]
[runtime] Fix failure to wait on semaphore due to invalid argument

8 years ago[System.Core] Updated MemoryMappedFileTest
Marcos Henrich [Mon, 15 Jun 2015 21:26:57 +0000 (22:26 +0100)]
[System.Core] Updated MemoryMappedFileTest

Commented out PointerOffset asserts because its value is always 0.
Unlike .NET mono implementation creates MemoryMappedViews with no
PointerOffset.

8 years ago[runtime] Fix another memory leak in the dwarf writer.
Zoltan Varga [Mon, 15 Jun 2015 20:06:04 +0000 (16:06 -0400)]
[runtime] Fix another memory leak in the dwarf writer.

8 years ago[runtime] Fix a memory leak in the dwarf writer.
Zoltan Varga [Mon, 15 Jun 2015 20:04:04 +0000 (16:04 -0400)]
[runtime] Fix a memory leak in the dwarf writer.

8 years ago[jit] Avoid a crash in the dwarf dumper if debug info is not found.
Zoltan Varga [Mon, 15 Jun 2015 19:30:07 +0000 (15:30 -0400)]
[jit] Avoid a crash in the dwarf dumper if debug info is not found.

8 years ago[test] Fix finalizer-exception test
Vlad Brezae [Mon, 15 Jun 2015 19:16:49 +0000 (12:16 -0700)]
[test] Fix finalizer-exception test

Me might be very unlucky and still have the object pinned in random stack memory. Allocate multiple objects so we are sure that at least one of them is finalized.

8 years ago[runtime] mono_mmap_open_handle with null arg.
Marcos Henrich [Mon, 15 Jun 2015 16:16:04 +0000 (17:16 +0100)]
[runtime] mono_mmap_open_handle with null arg.

Fixes segmentation fault when mono_mmap_open_handle is called with a null mapName argument.
MemoryMappedFiles.CreateFromFile calls mono_mmap_open_handle, .NET implementation accepts a null mapName and CoreFX uses CreateFromFile with null mapName.

Fixes #30825 and #30741.

8 years ago[System.Core] Using more reference source files.
Marcos Henrich [Mon, 15 Jun 2015 09:15:41 +0000 (10:15 +0100)]
[System.Core] Using more reference source files.

Changed MemoryMappedFile related code to use reference source
MemoryMappedViewAccessor and MemoryMappedViewStream.

This change was motivated by segmentations faults while dnmv code was
calling a CoreFX class that uses reflection to call MemoryMappedFile
code.

Now that we are using more code from reference sources there should be
no problem.

Fixes #30741 and #30825.

8 years ago[runtime] Fix the arm64 build.
Zoltan Varga [Mon, 15 Jun 2015 13:50:05 +0000 (09:50 -0400)]
[runtime] Fix the arm64 build.

8 years agoUse random port numbers for ServiceModel tests.
Jo Shields [Mon, 15 Jun 2015 09:05:55 +0000 (10:05 +0100)]
Use random port numbers for ServiceModel tests.

This prevents race conditions when running multiple test suites at once on the same computer, as happens on our ARM builders.

8 years agoEnums are classes that can be assigned to value types
Marcin Cieslak [Sun, 14 Jun 2015 23:29:26 +0000 (23:29 +0000)]
Enums are classes that can be assigned to value types

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

8 years agoMerge pull request #1873 from saper/PR_SET_TRACER
Marek Habersack [Sat, 13 Jun 2015 22:41:18 +0000 (00:41 +0200)]
Merge pull request #1873 from saper/PR_SET_TRACER

Use PR_SET_PTRACER only if defined

8 years agoUse PR_SET_PTRACER only if defined
Marcin Cieslak [Sat, 13 Jun 2015 16:25:42 +0000 (16:25 +0000)]
Use PR_SET_PTRACER only if defined

This feature has been introduced in Linux 3.4,
older kernels do have prctl(2) but know
PR_SET_PTRACER not.

8 years agoMerge pull request #1872 from saper/channeldisp_fix
João Matos [Sat, 13 Jun 2015 11:31:38 +0000 (12:31 +0100)]
Merge pull request #1872 from saper/channeldisp_fix

[WIP] Fix tests breaking due to network ports

8 years ago[tests] Use LocalEphemeralEndPoint in HttpWebRequestTest
Marcin Cieslak [Sat, 13 Jun 2015 11:02:42 +0000 (11:02 +0000)]
[tests] Use LocalEphemeralEndPoint in HttpWebRequestTest

8 years ago[tests] fix System.UriFormatException
Marcin Cieslak [Sat, 13 Jun 2015 09:55:25 +0000 (09:55 +0000)]
[tests] fix System.UriFormatException

Follow-up to 05a1144d4d52389790c856a6ab676764925f68f7

8 years ago[runtime] Fix a typo, should be HAVE_PRCTL
Marek Habersack [Sat, 13 Jun 2015 06:31:13 +0000 (08:31 +0200)]
[runtime] Fix a typo, should be HAVE_PRCTL

8 years ago[runtime] Make sure the interfaces returned by Type:GetInterfaces () are in the consi...
Zoltan Varga [Sat, 13 Jun 2015 04:20:20 +0000 (00:20 -0400)]
[runtime] Make sure the interfaces returned by Type:GetInterfaces () are in the consistent order. Fixes #31020.

8 years agoFix a warning.
Zoltan Varga [Sat, 13 Jun 2015 03:49:29 +0000 (23:49 -0400)]
Fix a warning.

8 years ago[runtime] Fix support for MONO_UNWIND_LOOKUP_ACTUAL_METHOD in mono_stack_walk_no_il ().
Zoltan Varga [Sat, 13 Jun 2015 03:48:09 +0000 (23:48 -0400)]
[runtime] Fix support for MONO_UNWIND_LOOKUP_ACTUAL_METHOD in mono_stack_walk_no_il ().

8 years agoMerge pull request #1871 from saper/EADDRINUSE
Zoltan Varga [Fri, 12 Jun 2015 23:12:11 +0000 (19:12 -0400)]
Merge pull request #1871 from saper/EADDRINUSE

[tests] Avoid "Address already in use"

8 years ago[tests] Avoid "Address already in use"
Marcin Cieslak [Fri, 12 Jun 2015 09:27:03 +0000 (09:27 +0000)]
[tests] Avoid "Address already in use"

Few tests using networking seem to fail due to
"Address already in use"
error that may be caused by opening listening
port too fast - because of some tests running
in parallel or because 2MSL TIME_WAIT period.