mono.git
8 years agoMerge pull request #2311 from mlancione/master
Ludovic Henry [Fri, 11 Dec 2015 19:10:14 +0000 (19:10 +0000)]
Merge pull request #2311 from mlancione/master

[System.Windows.Forms] Locking Window Handle List

8 years agoMerge pull request #1916 from ludovic-henry/iolayer-remove-sharedhandle
Rodrigo Kumpera [Fri, 11 Dec 2015 17:25:46 +0000 (12:25 -0500)]
Merge pull request #1916 from ludovic-henry/iolayer-remove-sharedhandle

[io-layer] Remove shared handles cross process support

8 years ago[threadpool] Fix GetAvailableThreads test
Ludovic Henry [Fri, 11 Dec 2015 10:26:51 +0000 (10:26 +0000)]
[threadpool] Fix GetAvailableThreads test

8 years ago[mcs] Extend int to native int when doing pointer arithmetic on it. Fixes #36839
Marek Safar [Fri, 11 Dec 2015 16:53:31 +0000 (17:53 +0100)]
[mcs] Extend int to native int when doing pointer arithmetic on it. Fixes #36839

8 years agoTypo error
mlancione [Fri, 11 Dec 2015 14:21:16 +0000 (09:21 -0500)]
Typo error

Fixing a compiler error.

8 years ago[io-layer] Remove shared handles cross process support
Ludovic Henry [Mon, 6 Jul 2015 20:33:37 +0000 (17:33 -0300)]
[io-layer] Remove shared handles cross process support

8 years agoMerge pull request #2327 from akoeplinger/fix-msvc
João Matos [Thu, 10 Dec 2015 23:04:27 +0000 (23:04 +0000)]
Merge pull request #2327 from akoeplinger/fix-msvc

[msvc] Fix casts that result in an error when building with VS

8 years agoFix endless recursion in XmlCompiledTransform on mobile
Marek Habersack [Thu, 10 Dec 2015 21:01:52 +0000 (22:01 +0100)]
Fix endless recursion in XmlCompiledTransform on mobile

One of the XmlCompiledTransform overloads called itself recursively,
leading to either a stack overflow or segfault

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

8 years ago[msvc] Fix casts that result in an error when building with VS
Alexander Köplinger [Thu, 10 Dec 2015 20:33:30 +0000 (21:33 +0100)]
[msvc] Fix casts that result in an error when building with VS

Those showed up after the recent C++ compliance commit.

8 years ago[System]: Add _HelperAsyncResults.cs from the referencesource.
Martin Baulig [Thu, 10 Dec 2015 20:22:51 +0000 (15:22 -0500)]
[System]: Add _HelperAsyncResults.cs from the referencesource.

(cherry picked from commit 17e92c87759edcee72a06659e8a0790cf72e5190)

8 years ago[jit] Better error message for a gsharing assert.
Rodrigo Kumpera [Thu, 10 Dec 2015 19:37:21 +0000 (14:37 -0500)]
[jit] Better error message for a gsharing assert.

8 years ago[configure] Bump mono version.D
Rodrigo Kumpera [Thu, 10 Dec 2015 19:13:59 +0000 (14:13 -0500)]
[configure] Bump mono version.D

8 years agoFixed Windows MinGW build and avoid leakage of io-layer types.
João Matos [Thu, 10 Dec 2015 18:13:57 +0000 (18:13 +0000)]
Fixed Windows MinGW build and avoid leakage of io-layer types.

8 years ago[corlib]: Cleanup X509Certificate and move the implementation-specific bits into...
Martin Baulig [Thu, 10 Dec 2015 01:49:39 +0000 (20:49 -0500)]
[corlib]: Cleanup X509Certificate and move the implementation-specific bits into a separate class.

(cherry picked from commit b82b0b8402297854bcceccc4329703024c5aad63)

8 years ago[threadpool] Fix System.Web tests failures
Ludovic Henry [Thu, 10 Dec 2015 16:54:13 +0000 (16:54 +0000)]
[threadpool] Fix System.Web tests failures

8 years agoMerge pull request #2310 from lambdageek/dev/bug-36305
Aleksey Kliger (λgeek) [Thu, 10 Dec 2015 16:13:43 +0000 (11:13 -0500)]
Merge pull request #2310 from lambdageek/dev/bug-36305

[reflection] Fix MethodInfo.GetBaseDefinition for open constructed types (close #36305)

8 years agoMore code-style changes
mlancione [Thu, 10 Dec 2015 14:22:58 +0000 (09:22 -0500)]
More code-style changes

Fixed a few other code style requirements.

8 years agoCode-style changes
mlancione [Thu, 10 Dec 2015 13:54:22 +0000 (08:54 -0500)]
Code-style changes

Chaged code to match mono coding style.

8 years agoMerge pull request #2305 from ludovic-henry/fix-threadpool-36414
Ludovic Henry [Thu, 10 Dec 2015 11:18:10 +0000 (11:18 +0000)]
Merge pull request #2305 from ludovic-henry/fix-threadpool-36414

[threadpool] Fix get min and available threads icalls

8 years agoMerge pull request #2296 from xmcclure/webrequest-regex
Martin Baulig [Thu, 10 Dec 2015 03:17:21 +0000 (22:17 -0500)]
Merge pull request #2296 from xmcclure/webrequest-regex

Correctly escape proxy domains in WebRequest (bug #36356)

8 years agoMerge pull request #2312 from ArsenShnurkov/bug36724
Alexander Köplinger [Thu, 10 Dec 2015 00:12:19 +0000 (01:12 +0100)]
Merge pull request #2312 from ArsenShnurkov/bug36724

fix for https://bugzilla.xamarin.com/show_bug.cgi?id=36724

8 years agoFix the x86/ppc build.
Zoltan Varga [Wed, 9 Dec 2015 23:57:09 +0000 (18:57 -0500)]
Fix the x86/ppc build.

8 years ago[corlib]: X509Certificate needs to implement IDisposable.
Martin Baulig [Wed, 9 Dec 2015 23:22:29 +0000 (18:22 -0500)]
[corlib]: X509Certificate needs to implement IDisposable.

8 years agoMerge pull request #2288 from evincarofautumn/c++-compat
João Matos [Wed, 9 Dec 2015 23:29:25 +0000 (23:29 +0000)]
Merge pull request #2288 from evincarofautumn/c++-compat

[runtime] Compile cleanly with -Wc++-compat.

8 years ago[runtime] Compile cleanly with -Wc++-compat.
Jon Purdy [Wed, 18 Nov 2015 19:42:01 +0000 (11:42 -0800)]
[runtime] Compile cleanly with -Wc++-compat.

 * Add explicit casts for void pointers and enums.

 * Rename 'class' to 'klass' and 'this' to 'this_obj'.

 * Avoid other C++ keywords by appending an underscore.

 * Change MonoSeqPointInfo to avoid empty struct size warnings.

8 years ago[sdb] Align the location of the MonoContext structure on the stack in the sdb trampol...
Zoltan Varga [Wed, 9 Dec 2015 21:36:36 +0000 (16:36 -0500)]
[sdb] Align the location of the MonoContext structure on the stack in the sdb trampolines on x86, to prevent a possible crash with memcpy.

8 years ago[threadpool] Fix get min and available threads icalls
Ludovic Henry [Tue, 8 Dec 2015 20:49:27 +0000 (20:49 +0000)]
[threadpool] Fix get min and available threads icalls

Fix bug #36414

8 years ago[reflection] Fix MethodInfo.GetBaseDefinition() for open constructed base types.
Aleksey Kliger [Tue, 8 Dec 2015 22:47:10 +0000 (17:47 -0500)]
[reflection] Fix MethodInfo.GetBaseDefinition() for open constructed base types.

When a generic derived class has an open constructed base type, we have
to apply the type arguments in order to find the correct base definition MethodInfo.

8 years agoMerge pull request #2285 from knocte/filesystemwatcher
Alexis Christoforides [Wed, 9 Dec 2015 19:11:41 +0000 (14:11 -0500)]
Merge pull request #2285 from knocte/filesystemwatcher

[FileSystemWatcher] Kill race condition (fixes BXC#10205)

8 years agoFixing Tab Spaces
mlancione [Wed, 9 Dec 2015 19:09:05 +0000 (14:09 -0500)]
Fixing Tab Spaces

Replaced spaces in previous commit with tabs, to follow format of
mono/master.

8 years ago[mkbundle] Fix execution on OS X and Linux
Alexis Christoforides [Wed, 9 Dec 2015 17:46:45 +0000 (12:46 -0500)]
[mkbundle] Fix execution on OS X and Linux

8 years agofix for https://bugzilla.xamarin.com/show_bug.cgi?id=36724
ArsenShnurkov [Wed, 9 Dec 2015 17:58:00 +0000 (20:58 +0300)]
fix for https://bugzilla.xamarin.com/show_bug.cgi?id=36724

8 years ago[reflection] Test case for 36305.
Aleksey Kliger [Wed, 9 Dec 2015 15:30:38 +0000 (10:30 -0500)]
[reflection] Test case for 36305.

When the base type of a generic type is an open constructed generic
type, GetBaseDefinition() must take the instantiation into account while
traversing the class hierarchy.

8 years agoMerge pull request #2297 from akoeplinger/msvc-autoupdate-config.h
Alexander Köplinger [Tue, 8 Dec 2015 22:54:10 +0000 (23:54 +0100)]
Merge pull request #2297 from akoeplinger/msvc-autoupdate-config.h

[msvc] Automatically update (win-)config.h with the correct version number

8 years agoDisable partial sharing again, it causes problems on ppc/s390x, and crashes in the...
Zoltan Varga [Tue, 8 Dec 2015 22:21:57 +0000 (17:21 -0500)]
Disable partial sharing again, it causes problems on ppc/s390x, and crashes in the roslyn benchmark:

https://performancebot.mono-project.com/builders/debian-armhf_utilite-desktop_auto-sgen/builds/743/steps/roslyn/logs/stdio

8 years ago[llvm] Use a separate calling convention for gsharedvt methods in llvmonly mode,...
Zoltan Varga [Tue, 8 Dec 2015 22:12:13 +0000 (17:12 -0500)]
[llvm] Use a separate calling convention for gsharedvt methods in llvmonly mode, pass/return everything by ref. Not yet used.

8 years agoMerge pull request #2295 from lambdageek/dev/test-conc-hashtable-coop-fix
Rodrigo Kumpera [Tue, 8 Dec 2015 21:29:33 +0000 (16:29 -0500)]
Merge pull request #2295 from lambdageek/dev/test-conc-hashtable-coop-fix

(test-conc-hashtable.c) Make test work with cooperative suspend

8 years agoMerge pull request #2302 from ludovic-henry/fix-delegate-36640
Ludovic Henry [Tue, 8 Dec 2015 20:33:53 +0000 (20:33 +0000)]
Merge pull request #2302 from ludovic-henry/fix-delegate-36640

[delegate] Fix multicast Method property implementation

8 years ago[runtime] remove debug statements introduced by a0e1dae32ceaf5331f5caf70b659de1392bbbc14
Bernhard Urban [Tue, 8 Dec 2015 19:38:21 +0000 (11:38 -0800)]
[runtime] remove debug statements introduced by a0e1dae32ceaf5331f5caf70b659de1392bbbc14

8 years agoMerge pull request #2304 from BillSeurer/master
João Matos [Tue, 8 Dec 2015 19:31:37 +0000 (19:31 +0000)]
Merge pull request #2304 from BillSeurer/master

[ppc] Temporary fix for power to get builds working.

8 years agoMerge pull request #2301 from ludovic-henry/fix-delegate-36646
Ludovic Henry [Tue, 8 Dec 2015 18:54:41 +0000 (18:54 +0000)]
Merge pull request #2301 from ludovic-henry/fix-delegate-36646

[delegate] Fix multicast remove behaviour

8 years ago[ppc] Temporary fix for power to get builds working.
Bill Seurer [Tue, 8 Dec 2015 18:52:01 +0000 (12:52 -0600)]
[ppc] Temporary fix for power to get builds working.

8 years ago[runtime] Initialize a dynamic_images_mutex.
Zoltan Varga [Tue, 8 Dec 2015 17:18:59 +0000 (12:18 -0500)]
[runtime] Initialize a dynamic_images_mutex.

8 years ago[delegate] Fix multicast remove behaviour
Ludovic Henry [Tue, 8 Dec 2015 15:54:16 +0000 (15:54 +0000)]
[delegate] Fix multicast remove behaviour

The .NET delegate removal semantic is a bit unpredictable. For example, the following (d1 + d2 + d3) - (d1 + d3) is going to return the d123 delegate, and not the d2 delegate as we could have guessed. This is because removal will remove the `list' of delegates as a whole, and not the elements in the list.

The previous implementation would then have a different behavior than the one observed on .NET.

Fixes bug #36646

8 years ago[delegate] Fix multicast Method property implementation
Ludovic Henry [Tue, 8 Dec 2015 16:38:32 +0000 (16:38 +0000)]
[delegate] Fix multicast Method property implementation

.NET returns the method for the last delegate of the multicast delegate.

8 years agoMerge pull request #2299 from lewurm/finalizer_thread
Zoltan Varga [Tue, 8 Dec 2015 16:37:49 +0000 (11:37 -0500)]
Merge pull request #2299 from lewurm/finalizer_thread

[runtime] adding additional assert to highlight source of a race

8 years agoMerge pull request #2298 from akoeplinger/gsnprintf
Zoltan Varga [Tue, 8 Dec 2015 05:58:56 +0000 (00:58 -0500)]
Merge pull request #2298 from akoeplinger/gsnprintf

[metadata] Use g_snprintf instead of snprintf to fix MSVC build

8 years ago[runtime] adding additional assert to highlight source of a race
Bernhard Urban [Tue, 8 Dec 2015 02:04:25 +0000 (02:04 +0000)]
[runtime] adding additional assert to highlight source of a race

We've seen that error for quite some time:

> `* Assertion at ../../mono/utils/mono-os-mutex.h:71, condition `res != EINVAL' not met`

It looks like there's a race between `finalizer_thread()` and `mono_gc_cleanup()` around
`reference_queue_mutex`. The source of the problem is, `finalizer_thread` could end up
being alive, although `mono_gc_cleanup()` made some effort to kill it and then destroys
`reference_queue_mutex`, while the finalizer thread is still using it in
`reference_queue_proccess_all()`.

> $ MONO_GC_DEBUG=bridge=Bridge MONO_GC_PARAMS=minor=split MONO_ENV_OPTIONS=--gc=sgen MONO_PATH=/home/lewurm/monoperf/mono/mcs/class/lib/net_4_x ../../mono/mini/mono sgen-bridge-major-fragmentation.exe --optimize=all --debug
> [...]
> [12/08/2015 01:49:31] done
> Shutting down finalizer thread timed out.
> * Assertion at gc.c:867, condition `finalizer_thread_exited' not met
>
> Stacktrace:
>
>
> Native stacktrace:
>
>
> Debug info from gdb:
>
> [New LWP 7623]
> [New LWP 7622]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
> 0x4043b5f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
>   Id   Target Id         Frame
>   3    Thread 0x417ff430 (LWP 7622) "mono" 0x4043b5f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
>   2    Thread 0x42573430 (LWP 7623) "Finalizer" 0x0021482a in finalizers_with_predicate (predicate=0x1fd121 <object_in_domain_predicate>, user_data=0x37a348, out_array=0x42572c70, out_size=64, hash_table=0x338f68 <major_finalizable_hash>) at sgen-fin-weak-hash.c:581
> * 1    Thread 0x406c4250 (LWP 7620) "mono" 0x4043b5f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
>
> Thread 3 (Thread 0x417ff430 (LWP 7622)):
> #0  0x4043b5f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
> #1  0x404371d8 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
> #2  0x00242266 in mono_os_cond_wait (cond=0x346e98 <work_cond>, mutex=0x346e80 <lock>) at ../../mono/utils/mono-os-mutex.h:105
> #3  0x00242c1a in thread_func (thread_data=0x0) at sgen-thread-pool.c:118
> #4  0x40433fbc in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
> #5  0x405a0b3c in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
> Thread 2 (Thread 0x42573430 (LWP 7623)):
> #0  0x0021482a in finalizers_with_predicate (predicate=0x1fd121 <object_in_domain_predicate>, user_data=0x37a348, out_array=0x42572c70, out_size=64, hash_table=0x338f68 <major_finalizable_hash>) at sgen-fin-weak-hash.c:581
> #1  0x00214894 in sgen_gather_finalizers_if (predicate=0x1fd121 <object_in_domain_predicate>, user_data=0x37a348, out_array=0x42572c70, out_size=64) at sgen-fin-weak-hash.c:622
> #2  0x001fd16a in mono_gc_finalizers_for_domain (domain=0x37a348, out_array=0x42572c70, out_size=64) at sgen-mono.c:546
> #3  0x001ca2a4 in finalize_domain_objects (req=0x47ba68) at gc.c:678
> #4  0x001ca3b6 in finalizer_thread (unused=0x0) at gc.c:730
> #5  0x001a1392 in start_wrapper_internal (data=0x3b1100) at threads.c:713
> #6  0x001a1430 in start_wrapper (data=0x3b1100) at threads.c:760
> #7  0x0027097a in inner_start_thread (arg=0xbed58de0) at mono-threads-posix.c:92
> #8  0x40433fbc in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
> #9  0x405a0b3c in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
> Thread 1 (Thread 0x406c4250 (LWP 7620)):
> #0  0x4043b5f4 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0
> #1  0x4043a396 in waitpid () from /lib/arm-linux-gnueabihf/libpthread.so.0
> #2  0x000d1b24 in mono_handle_native_sigsegv (signal=6, ctx=0xbed58a80, info=0xbed58a00) at mini-exceptions.c:2235
> #3  0x00112424 in sigabrt_signal_handler (_dummy=6, _info=0xbed58a00, context=0xbed58a80) at mini-posix.c:218
> #4  <signal handler called>
> #5  0x405248e6 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
> #6  0x405330fe in raise () from /lib/arm-linux-gnueabihf/libc.so.6
> #7  0x40535956 in abort () from /lib/arm-linux-gnueabihf/libc.so.6
> #8  0x00277eaa in monoeg_log_default_handler (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, message=0x47bb28 "* Assertion at gc.c:867, condition `finalizer_thread_exited' not met\n", unused_data=0x0) at goutput.c:233
> #9  0x00277dca in monoeg_g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, format=0x3089b8 "* Assertion at %s:%d, condition `%s' not met\n", args=...) at goutput.c:113
> #10 0x00277e32 in monoeg_assertion_message (format=0x3089b8 "* Assertion at %s:%d, condition `%s' not met\n") at goutput.c:133
> #11 0x001ca786 in mono_gc_cleanup () at gc.c:867
> #12 0x001c1d24 in mono_runtime_cleanup (domain=0x37a348) at appdomain.c:356
> #13 0x0001dec0 in mini_cleanup (domain=0x37a348) at mini-runtime.c:3560
> #14 0x000a672c in mono_main (argc=5, argv=0x358098) at driver.c:2065
> #15 0x00017c4e in mono_main_with_options (argc=5, argv=0x358098) at main.c:20
> #16 0x00017c7e in main (argc=4, argv=0xbed591b4) at main.c:53

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

8 years agoUpdate Makefile.am with monobt script
João Matos [Tue, 8 Dec 2015 00:29:20 +0000 (00:29 +0000)]
Update Makefile.am with monobt script

8 years ago[metadata] Use g_snprintf instead of snprintf to fix MSVC build
Alexander Köplinger [Tue, 8 Dec 2015 00:17:24 +0000 (01:17 +0100)]
[metadata] Use g_snprintf instead of snprintf to fix MSVC build

The latter only works with Visual Studio 2015 and later. We're still using VS2013 on Jenkins

8 years agoDocument HTTP_PROXY and NO_PROXY environment variables.
Andi McClure [Mon, 7 Dec 2015 22:20:39 +0000 (17:20 -0500)]
Document HTTP_PROXY and NO_PROXY environment variables.

8 years agoMerge pull request #2246 from BrzVlad/feature-concurrent-evacuation
Vlad Brezae [Mon, 7 Dec 2015 22:09:17 +0000 (17:09 -0500)]
Merge pull request #2246 from BrzVlad/feature-concurrent-evacuation

Feature evacuation with concurrent sgen

8 years ago[sgen] Fix binary protocol scan process reference entries
Vlad Brezae [Tue, 10 Nov 2015 14:53:35 +0000 (16:53 +0200)]
[sgen] Fix binary protocol scan process reference entries

The obj pointer can actually point inside the object for big arrays

8 years ago[sgen] Binary protocol entry for mod union cardtable markings
Vlad Brezae [Mon, 9 Nov 2015 17:59:27 +0000 (19:59 +0200)]
[sgen] Binary protocol entry for mod union cardtable markings

8 years ago[sgen] Fix mod union cardtable marking race
Vlad Brezae [Mon, 9 Nov 2015 18:13:35 +0000 (20:13 +0200)]
[sgen] Fix mod union cardtable marking race

When the nursery collector is starting and we have a concurrent collection in progress we need to save the global card table entries to the mod union card tables. When doing so we were marking all the mod union cards with either 0 or 1, so we could lose a mark if the concurrent collector tries to mark the same card at the same time, since the concurrent collector now runs concurrent even with nursery collections. We fix this by never marking with 0.

8 years ago[sgen] Remove pointless prototype
Vlad Brezae [Mon, 2 Nov 2015 22:50:14 +0000 (00:50 +0200)]
[sgen] Remove pointless prototype

8 years ago[sgen] Remove allow synchronous flag for concurrent collection
Vlad Brezae [Mon, 2 Nov 2015 20:08:34 +0000 (22:08 +0200)]
[sgen] Remove allow synchronous flag for concurrent collection

When concurrent, we always handle evacuating blocks, without the need of a synchronous major collection.

8 years ago[sgen] Evacuation for the concurrent collector
Vlad Brezae [Wed, 4 Nov 2015 12:50:44 +0000 (14:50 +0200)]
[sgen] Evacuation for the concurrent collector

The concurrent mark no longer follows references into blocks that are evacuated. The cardtable is marked instead and all the objects will be moved during the finishing pause.

8 years ago[msvc] Automatically update (win-)config.h with the correct version number
Alexander Köplinger [Mon, 7 Dec 2015 01:16:54 +0000 (02:16 +0100)]
[msvc] Automatically update (win-)config.h with the correct version number

A small powershell command grabs the version number from configure.ac and uses it during winsetup.bat,
this way we don't have to manually keep them in sync.

8 years ago[msvc] Add 'include' directory to .gitignore
Alexander Köplinger [Wed, 25 Nov 2015 16:43:36 +0000 (17:43 +0100)]
[msvc] Add 'include' directory to .gitignore

Copying of header files to this directory was introduced in 8c455550ab91f88362c01fcbe64208b8772877e8,
but we don't want to actually check it in.

8 years ago[aot] Fix the encoding/decoding of generic parameters after 835cc6eda9fb6edc6e5177444...
Zoltan Varga [Mon, 7 Dec 2015 21:15:18 +0000 (16:15 -0500)]
[aot] Fix the encoding/decoding of generic parameters after 835cc6eda9fb6edc6e51774443dd6cce853dcea2.

8 years agoCorrectly escape proxy domains in WebRequest (bug #36356)
Andi McClure [Mon, 7 Dec 2015 21:01:51 +0000 (16:01 -0500)]
Correctly escape proxy domains in WebRequest (bug #36356)

Our implementation for System.Net.WebRequest takes proxy exclusions
which are in fileglob (*.example.com) format, and passes them to
System.Net.WebProxy as a "bypass list", which expects Regex format.
This means immediate failure if you have an exclusion with a fileglob,
because WebProxy will throw an exception for bad Regex format.

8 years ago[System] Fixes mobile build
Marek Safar [Mon, 7 Dec 2015 19:08:57 +0000 (20:08 +0100)]
[System] Fixes mobile build

8 years ago(test-conc-hashtable.c) Make test work with cooperative suspend.
Aleksey Kliger [Mon, 7 Dec 2015 18:39:20 +0000 (13:39 -0500)]
(test-conc-hashtable.c) Make test work with cooperative suspend.

By initializing `mono_therads_runtime_init()`

8 years agoAdded the monobt LLDB plugin to the repository.
Joao Matos [Mon, 7 Dec 2015 18:19:44 +0000 (18:19 +0000)]
Added the monobt LLDB plugin to the repository.

8 years agoMerge pull request #2294 from akoeplinger/fix-cygwin
Alexander Köplinger [Mon, 7 Dec 2015 18:11:57 +0000 (19:11 +0100)]
Merge pull request #2294 from akoeplinger/fix-cygwin

[utils] Fix cygwin build

8 years agoMerge pull request #2237 from xmcclure/container-owner
Zoltan Varga [Mon, 7 Dec 2015 18:03:06 +0000 (13:03 -0500)]
Merge pull request #2237 from xmcclure/container-owner

    Unambiguous ownership of generic param objects

8 years agoMerge pull request #2247 from ivmai/match-ext-libgc-api
Aleksey Kliger (λgeek) [Mon, 7 Dec 2015 17:23:09 +0000 (12:23 -0500)]
Merge pull request #2247 from ivmai/match-ext-libgc-api

Match ext libgc api

8 years ago[System] Fixes leak in NtlmClient which never released cached WebRequest. Fixes ...
Marek Safar [Mon, 7 Dec 2015 16:59:46 +0000 (17:59 +0100)]
[System] Fixes leak in NtlmClient which never released cached WebRequest. Fixes #36596

8 years ago[utils] Fix cygwin build
Alexander Köplinger [Mon, 7 Dec 2015 16:27:41 +0000 (17:27 +0100)]
[utils] Fix cygwin build

mono_os_sem_wait() used mono_os_sem_timedwait() before it was defined in mono-os-semaphore.h.
Moved the function to fix the cygwin build.

Also added a missing return statement in mono-os-mutex.h that was causing a lot of warnings.

8 years ago[mcs] Process flow analysis for interpolated string inserts. Fixes #36589
Marek Safar [Mon, 7 Dec 2015 14:17:26 +0000 (15:17 +0100)]
[mcs] Process flow analysis for interpolated string inserts. Fixes #36589

8 years agoBump reference sources
Marek Safar [Mon, 7 Dec 2015 08:21:41 +0000 (09:21 +0100)]
Bump reference sources

8 years agoRevert "Merge pull request #2237 from xmcclure/container-owner"
Rodrigo Kumpera [Mon, 7 Dec 2015 03:31:40 +0000 (22:31 -0500)]
Revert "Merge pull request #2237 from xmcclure/container-owner"

This reverts commit 761a84f867fb747fdb49ef0e9338284e70caec32, reversing
changes made to d565a22e167bc5a16c734a8a9a4f63c9320b63b2.

Corlib compilation was broken with the PR in so I'm reverting it until it can be worked out.

8 years agoRevert "[reflection] Fix the build from the last commit."
Rodrigo Kumpera [Mon, 7 Dec 2015 03:29:46 +0000 (22:29 -0500)]
Revert "[reflection] Fix the build from the last commit."

This reverts commit f11e09ab4b6be77669b6544593f3af6b9461f279.

8 years ago[reflection] Fix the build from the last commit.
Rodrigo Kumpera [Mon, 7 Dec 2015 03:19:04 +0000 (22:19 -0500)]
[reflection] Fix the build from the last commit.

8 years agoMerge pull request #2237 from xmcclure/container-owner
Rodrigo Kumpera [Mon, 7 Dec 2015 01:43:37 +0000 (20:43 -0500)]
Merge pull request #2237 from xmcclure/container-owner

Unambiguous ownership of generic param objects

8 years agoMerge pull request #2291 from akoeplinger/msvc-fixes
Zoltan Varga [Mon, 7 Dec 2015 01:41:32 +0000 (20:41 -0500)]
Merge pull request #2291 from akoeplinger/msvc-fixes

[msvc] Fix Windows build breaks caused by a595d489fa64d8e213c74470f23c576296e2d548

8 years ago[msvc] Fix Windows build breaks caused by a595d489fa64d8e213c74470f23c576296e2d548
Alexander Köplinger [Mon, 7 Dec 2015 01:37:32 +0000 (02:37 +0100)]
[msvc] Fix Windows build breaks caused by a595d489fa64d8e213c74470f23c576296e2d548

The .vcproj's and .def's weren't updated and there was a typo in mono-os-mutex.h that caused a build break.

8 years agoMerge pull request #2290 from akoeplinger/msvc-mono-architecture
Zoltan Varga [Mon, 7 Dec 2015 01:11:03 +0000 (20:11 -0500)]
Merge pull request #2290 from akoeplinger/msvc-mono-architecture

[msvc] Fix a few missing renames from ARCHITECTURE -> MONO_ARCHITECTURE

8 years ago[msvc] Fix a few missing renames from ARCHITECTURE -> MONO_ARCHITECTURE
Alexander Köplinger [Mon, 7 Dec 2015 00:08:06 +0000 (01:08 +0100)]
[msvc] Fix a few missing renames from ARCHITECTURE -> MONO_ARCHITECTURE

They were missed in 43403b8221ed0d6e65d4766fc629f178915df4e4.

8 years agoMerge pull request #2276 from lambdageek/dev/bug-36283
Rodrigo Kumpera [Sun, 6 Dec 2015 06:59:50 +0000 (01:59 -0500)]
Merge pull request #2276 from lambdageek/dev/bug-36283

[reflection] Fix Type.GetProperties() for generic class instances

8 years ago[System] Remove arbitrary debugging limit from FileSystemWatcher on OSX, fixes #28693
Miguel de Icaza [Sat, 5 Dec 2015 20:09:00 +0000 (15:09 -0500)]
[System] Remove arbitrary debugging limit from FileSystemWatcher on OSX, fixes #28693

8 years ago[corlib][tests] Disable tests that requires Windows (dllimport) on mobile profile
Sebastien Pouliot [Sat, 5 Dec 2015 16:19:36 +0000 (11:19 -0500)]
[corlib][tests] Disable tests that requires Windows (dllimport) on mobile profile

This enables building the tests w/bitcode enabled on AppleTV (and they
were already excluded from the results anyway).

Part of the fix for
https://bugzilla.xamarin.com/show_bug.cgi?id=36569

8 years agoMerge pull request #2289 from lewurm/arm-sgen-bridge
Rodrigo Kumpera [Sat, 5 Dec 2015 03:51:24 +0000 (22:51 -0500)]
Merge pull request #2289 from lewurm/arm-sgen-bridge

[tests] add timestamps to logging in bridge tests

8 years ago[tests] add timestamps to logging in bridge tests
Bernhard Urban [Sat, 5 Dec 2015 00:09:40 +0000 (00:09 +0000)]
[tests] add timestamps to logging in bridge tests

8 years agoMerge pull request #2286 from migueldeicaza/master
Miguel de Icaza [Sat, 5 Dec 2015 00:06:46 +0000 (19:06 -0500)]
Merge pull request #2286 from migueldeicaza/master

[System.Runtime.Serialization] 36100 fix; Static serializer calls directly into internal APIs to fix C6 regression

8 years ago[llvm] Add beginnings of support for gsharedvt.
Zoltan Varga [Fri, 4 Dec 2015 23:33:16 +0000 (18:33 -0500)]
[llvm] Add beginnings of support for gsharedvt.

8 years ago[jit] Increase the buffer size used by the dyncall data structures to 512, add a...
Zoltan Varga [Fri, 4 Dec 2015 22:44:41 +0000 (17:44 -0500)]
[jit] Increase the buffer size used by the dyncall data structures to 512, add a test for #36566.

8 years agoBump reference source to .net 4.6.1
Marek Safar [Fri, 4 Dec 2015 22:26:01 +0000 (17:26 -0500)]
Bump reference source to .net 4.6.1

8 years ago[System] interopservices from reference source
Marek Safar [Thu, 3 Dec 2015 16:11:20 +0000 (11:11 -0500)]
[System] interopservices from reference source

8 years ago[System] System.Net.Cache from reference source
Marek Safar [Thu, 3 Dec 2015 15:40:21 +0000 (10:40 -0500)]
[System] System.Net.Cache from reference source

8 years ago[System.Runtime.Remoting] Disable a test that hangs on Linux for now
Alexander Köplinger [Fri, 4 Dec 2015 20:43:21 +0000 (15:43 -0500)]
[System.Runtime.Remoting] Disable a test that hangs on Linux for now

I talked with Ludovic about this and we're going to disable the test until we figure out what happens.

8 years agoMerge pull request #2287 from lewurm/armseqpoints
Zoltan Varga [Fri, 4 Dec 2015 20:22:15 +0000 (15:22 -0500)]
Merge pull request #2287 from lewurm/armseqpoints

[arm] add support for single-imm-size debug option

8 years ago[arm] add support for single-imm-size debug option
Bernhard Urban [Fri, 4 Dec 2015 19:24:06 +0000 (14:24 -0500)]
[arm] add support for single-imm-size debug option

8 years ago[System.Runtime.Serialization] Static serializer calls directly into internal APIs...
Miguel de Icaza [Fri, 4 Dec 2015 18:40:13 +0000 (13:40 -0500)]
[System.Runtime.Serialization] Static serializer calls directly into internal APIs to fix C6 regression

With C6 we introduced a regression
https://bugzilla.xamarin.com/show_bug.cgi?id=36100, which is caused by
the new static serialization code that we wrote to reuse Microsoft's
serializer.

The code uses Invoke on a series of MethodInfos, and this obscures the
actual code that will be invoked at runtime to serialize certain
objects, causing the following exception:

Attempting to JIT compile method '(wrapper runtime-invoke) <Module>:runtime_invoke_bool_Nullable`1<Decimal> (object,intptr,intptr,intptr)' while running with --aot-only.

This patch makes the simple code work, but a more thorough review of
the code would allow us to remove many of the slow dynamic codepaths
in the serializer.

We opted for that approach to keep the code as similar as possible to the
original.

But the code basically does this:

* Use the XmlFormatGeneratorStatics property InternalSerializeMethod,
  whose sole purpose is to delay computing the MethodInfo for the
  XmlFormatWriterGenerator's InternalSerialize.

* Use the resulting method in a few places to call the MethodInfo.

The MethodInfo was used because the original code uses Reflection.Emit
to create fast serializers and it needs handles to internal methods,
but our static rewriter does not need it.

We should replace all of those uses, but for now, this patch at least
deals with the 36100 bug.

8 years ago[jit] Use mini_get_underlying_type () in the tracing code to handle more types.
Zoltan Varga [Fri, 4 Dec 2015 18:07:23 +0000 (13:07 -0500)]
[jit] Use mini_get_underlying_type () in the tracing code to handle more types.

8 years ago[test] Bump test timeout again
Alexander Köplinger [Thu, 3 Dec 2015 23:16:13 +0000 (18:16 -0500)]
[test] Bump test timeout again

Discussed this with @lambdageek, we still see some of the tests timeout on Jenkins on the slow armhf/armel workers.
Let's see if bumping the timeouts helps.

8 years ago[System] Fixed mobile build regression after 43b65b6775e1d85a23ce58065b56c542ca4af357.
Joao Matos [Thu, 3 Dec 2015 19:46:39 +0000 (14:46 -0500)]
[System] Fixed mobile build regression after 43b65b6775e1d85a23ce58065b56c542ca4af357.

8 years ago[jit] Enable partial sharing by default.
Zoltan Varga [Thu, 3 Dec 2015 18:52:02 +0000 (13:52 -0500)]
[jit] Enable partial sharing by default.

8 years ago[jit] Fix a verification error when using partial sharing.
Zoltan Varga [Thu, 3 Dec 2015 18:51:42 +0000 (13:51 -0500)]
[jit] Fix a verification error when using partial sharing.