mono.git
9 years ago[corlib] Let XI and XM define their own default encoding [#29928]
Sebastien Pouliot [Wed, 27 May 2015 17:35:38 +0000 (13:35 -0400)]
[corlib] Let XI and XM define their own default encoding [#29928]

605192528de1a9c9c95a97bc5a2de7d3c85b322d used UTF8Unmarked for MONOTOUCH
and XAMMAC. However it's initialized differently (than the old UTF8) and
caused unit test regressions in System and System.Net.Http unit tests

This new logic moves the default encoding creation into the products
themselves.

9 years agoRevert "[corlib] Restore UTF8 as the default encoding for XI and XM [#29928]"
Sebastien Pouliot [Wed, 27 May 2015 17:34:33 +0000 (13:34 -0400)]
Revert "[corlib] Restore UTF8 as the default encoding for XI and XM [#29928]"

This reverts commit 605192528de1a9c9c95a97bc5a2de7d3c85b322d.

Using EncodingHelper.UTF8Unmarked cause regressions in System and
System.Net.Http unit tests

9 years ago[System.IO.Compression] Do not swallow inner exceptions in ZipArchive.
João Matos [Wed, 27 May 2015 16:27:34 +0000 (17:27 +0100)]
[System.IO.Compression] Do not swallow inner exceptions in ZipArchive.

9 years agoAdd support for OP_GENERIC_CLASS_INIT
Neale Ferguson [Wed, 27 May 2015 15:24:37 +0000 (11:24 -0400)]
Add support for OP_GENERIC_CLASS_INIT
Add support for async callback

9 years ago[llvm] Fix rethrowing exceptions on x86.
Zoltan Varga [Wed, 27 May 2015 15:23:29 +0000 (11:23 -0400)]
[llvm] Fix rethrowing exceptions on x86.

9 years ago[corlib] Clone all levels of captures ExceptionDispatchInfos
Marek Safar [Wed, 27 May 2015 15:13:38 +0000 (17:13 +0200)]
[corlib] Clone all levels of captures ExceptionDispatchInfos

9 years agoMerge pull request #1836 from ludovic-henry/referencesource-safehandle-tests
Zoltan Varga [Wed, 27 May 2015 14:15:12 +0000 (10:15 -0400)]
Merge pull request #1836 from ludovic-henry/referencesource-safehandle-tests

[corlib] Fix tests for System.Runtime.InteropServices.SafeHandle

9 years agoMerge pull request #1835 from ludovic-henry/referencesource-threadlocal-tests
Zoltan Varga [Wed, 27 May 2015 13:35:35 +0000 (09:35 -0400)]
Merge pull request #1835 from ludovic-henry/referencesource-threadlocal-tests

[corlib] Add test for ThreadLocal finalization

9 years ago[corlib] Fix tests for System.Runtime.InteropServices.SafeHandle
Ludovic Henry [Tue, 26 May 2015 23:16:28 +0000 (20:16 -0300)]
[corlib] Fix tests for System.Runtime.InteropServices.SafeHandle

These tests would tend to leave non disposed SafeHandle which would later be finalized, then throwing ObjectDisposedException. They would also crash on .NET.

9 years ago[corlib] Add test for ThreadLocal finalization
Ludovic Henry [Tue, 26 May 2015 20:45:54 +0000 (17:45 -0300)]
[corlib] Add test for ThreadLocal finalization

9 years ago[llvm] Fix the loadable llvm build.
Zoltan Varga [Wed, 27 May 2015 12:57:41 +0000 (08:57 -0400)]
[llvm] Fix the loadable llvm build.

9 years ago[corlib] Add more obsolete and not working types to MonoDroid
Marek Safar [Wed, 27 May 2015 09:32:33 +0000 (11:32 +0200)]
[corlib] Add more obsolete and not working types to MonoDroid

9 years ago[system] Fixes incorrect tests
Marek Safar [Wed, 27 May 2015 08:49:24 +0000 (10:49 +0200)]
[system] Fixes incorrect tests

9 years ago[jit] Properly compute the layout of generic instances created by partial sharing...
Zoltan Varga [Wed, 27 May 2015 00:22:52 +0000 (20:22 -0400)]
[jit] Properly compute the layout of generic instances created by partial sharing. Fixes #30204.

9 years ago[x86] Enable support for OP_GENERIC_CLASS_INIT.
Zoltan Varga [Tue, 26 May 2015 21:15:00 +0000 (17:15 -0400)]
[x86] Enable support for OP_GENERIC_CLASS_INIT.

9 years ago[mini] Remove MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE macro.
Alex Rønne Petersen [Sat, 9 May 2015 05:46:55 +0000 (07:46 +0200)]
[mini] Remove MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE macro.

All architectures define this.

9 years ago[configure] Bump version to 4.3.0.
Zoltan Varga [Tue, 26 May 2015 19:52:03 +0000 (15:52 -0400)]
[configure] Bump version to 4.3.0.

9 years ago[sgen] Use mono_class_has_finalizer () instead of klass->has_finalize.
Zoltan Varga [Tue, 26 May 2015 17:53:27 +0000 (13:53 -0400)]
[sgen] Use mono_class_has_finalizer () instead of klass->has_finalize.

9 years ago[corlib] Clean up thread execution context
Marek Safar [Tue, 26 May 2015 15:41:32 +0000 (17:41 +0200)]
[corlib] Clean up thread execution context

9 years ago[jit] Handle not attached threads in mono_thread_state_init_from_sigctx (). Hopefully...
Zoltan Varga [Tue, 26 May 2015 15:14:16 +0000 (11:14 -0400)]
[jit] Handle not attached threads in mono_thread_state_init_from_sigctx (). Hopefully fixes #28187.

9 years ago[System] Disable a test on mobile.
Zoltan Varga [Tue, 26 May 2015 14:48:06 +0000 (10:48 -0400)]
[System] Disable a test on mobile.

9 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

9 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

9 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.

9 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

9 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.

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

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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

9 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

9 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.

9 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.