mono.git
9 years agoMerge pull request #1190 from esdrubal/encoder-convert
Marek Safar [Mon, 11 Aug 2014 08:50:03 +0000 (10:50 +0200)]
Merge pull request #1190 from esdrubal/encoder-convert

System.Text.Encoder convert

9 years agoMerge pull request #1201 from crisdut/fix-win-mono-dependencies
Zoltan Varga [Fri, 8 Aug 2014 20:46:36 +0000 (22:46 +0200)]
Merge pull request #1201 from crisdut/fix-win-mono-dependencies

Adding the mutex header file dependency

9 years agoFixed Path.GetFullPath to work correctly when the current path is '/'.
João Matos [Fri, 8 Aug 2014 17:57:14 +0000 (18:57 +0100)]
Fixed Path.GetFullPath to work correctly when the current path is '/'.

Fixes xambug #833.

9 years agoMerge pull request #1196 from tritao/master
João Matos [Fri, 8 Aug 2014 17:42:29 +0000 (18:42 +0100)]
Merge pull request #1196 from tritao/master

System.IO.Compression.FileSystem implementation

9 years agoImplemented System.IO.Compression.FileSystem.
João Matos [Wed, 6 Aug 2014 17:57:54 +0000 (18:57 +0100)]
Implemented System.IO.Compression.FileSystem.

9 years agoadding the mutex header file dependency
Armando C. Dutra [Fri, 8 Aug 2014 07:29:40 +0000 (04:29 -0300)]
adding the mutex header file dependency

9 years ago[jit] Reorganize the locking in mono_jit_compile_method_inner, the domain lock alread...
Zoltan Varga [Fri, 8 Aug 2014 00:17:54 +0000 (02:17 +0200)]
[jit] Reorganize the locking in mono_jit_compile_method_inner, the domain lock already makes the code lookup+insert atomic, no need to do more work inside the jit code hash lock. Also lock jit_code_hash in mono_jit_free_method ().

9 years ago[jit] Avoid taking the loader lock in mono_jit_compile_method_inner (), it shouldn...
Zoltan Varga [Fri, 8 Aug 2014 00:09:06 +0000 (02:09 +0200)]
[jit] Avoid taking the loader lock in mono_jit_compile_method_inner (), it shouldn't be needed any more.

9 years ago[sdb] Avoid asserting when a cattr cannot be loaded. Fixes #21653.
Zoltan Varga [Thu, 7 Aug 2014 22:36:31 +0000 (00:36 +0200)]
[sdb] Avoid asserting when a cattr cannot be loaded. Fixes #21653.

9 years ago[System] Disable failing test
Marek Safar [Thu, 7 Aug 2014 18:01:46 +0000 (20:01 +0200)]
[System] Disable failing test

9 years ago[mcs] null propagating operator and expressions which cannot be null
Marek Safar [Thu, 7 Aug 2014 14:53:55 +0000 (16:53 +0200)]
[mcs] null propagating operator and expressions which cannot be null

9 years ago[runtime] Fix Process.PrivateMemorySize64 etc. on ios. Fixes #21882.
Zoltan Varga [Thu, 7 Aug 2014 12:56:33 +0000 (14:56 +0200)]
[runtime] Fix Process.PrivateMemorySize64 etc. on ios. Fixes #21882.

9 years ago[mcs] null propagating operator and extension methods
Marek Safar [Thu, 7 Aug 2014 12:24:40 +0000 (14:24 +0200)]
[mcs] null propagating operator and extension methods

9 years ago[jit] Fix enum->int casts in gsharedvt code. Fixes #21893.
Zoltan Varga [Thu, 7 Aug 2014 11:56:35 +0000 (13:56 +0200)]
[jit] Fix enum->int casts in gsharedvt code. Fixes #21893.

9 years ago[mcs] null propagating operator with nested receiver
Marek Safar [Thu, 7 Aug 2014 09:03:33 +0000 (11:03 +0200)]
[mcs] null propagating operator with nested receiver

9 years agoAdded classes EncodingEncoder and EncodingDecoder.
Marcos Henrich [Mon, 4 Aug 2014 15:15:12 +0000 (16:15 +0100)]
Added classes EncodingEncoder and EncodingDecoder.
EncodingEncoder and EncodingDecoder override Encoder.Convert.
The Convert overrides allow retrieval of chars/bytes buffers with the same size as .NET.

9 years agoMerge pull request #1199 from esdrubal/packurihelper
Marek Safar [Thu, 7 Aug 2014 08:25:47 +0000 (10:25 +0200)]
Merge pull request #1199 from esdrubal/packurihelper

PackUriHelper

9 years agoAdded argument validations to ComparePackUri an ComparePartUri.
Marcos Henrich [Thu, 7 Aug 2014 08:10:53 +0000 (09:10 +0100)]
Added argument validations to ComparePackUri an ComparePartUri.

9 years agoChanged Check.PartUriIsValid to throw ArgumentException.
Marcos Henrich [Thu, 7 Aug 2014 08:09:22 +0000 (09:09 +0100)]
Changed Check.PartUriIsValid to throw ArgumentException.

9 years agoRemoved [Category("NotWorking")] from PackUriHelperTests.
Marcos Henrich [Thu, 7 Aug 2014 08:02:49 +0000 (09:02 +0100)]
Removed [Category("NotWorking")] from PackUriHelperTests.
CompareInvalidTest is still not working because .NET PackUriHelper.ComparePackUri is doing something that uses Uri and throws an exception whereas Mono is not.

9 years agoMerge pull request #1198 from chriswebb/master
Marek Safar [Thu, 7 Aug 2014 06:18:30 +0000 (08:18 +0200)]
Merge pull request #1198 from chriswebb/master

Fixed issue where XmlReflectionImporter unable to handle XmlEnums with colons

9 years agoFixed issue related to fully qualified namespaces being used for XmlEnumAttribute...
Chris Webb [Wed, 6 Aug 2014 09:00:29 +0000 (09:00 +0000)]
Fixed issue related to fully qualified namespaces being used for XmlEnumAttribute values.

9 years agoMerge pull request #1197 from akoeplinger/remove-csproj
Marek Safar [Thu, 7 Aug 2014 05:44:36 +0000 (07:44 +0200)]
Merge pull request #1197 from akoeplinger/remove-csproj

[Cleanup] Removed a bunch of superfluous .csproj and .sln files

9 years ago[Cleanup] Removed a bunch of superfluous .csproj and .sln files
Alexander Köplinger [Sun, 4 May 2014 18:34:51 +0000 (20:34 +0200)]
[Cleanup] Removed a bunch of superfluous .csproj and .sln files

Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.

9 years agoMerge pull request #1195 from akoeplinger/fix-uri-with-digits
Marek Safar [Wed, 6 Aug 2014 13:11:53 +0000 (15:11 +0200)]
Merge pull request #1195 from akoeplinger/fix-uri-with-digits

[System] Fix parsing of URI schemes with digits

9 years ago[System] Fix parsing of URI schemes with digits
Alexander Köplinger [Wed, 6 Aug 2014 12:52:42 +0000 (14:52 +0200)]
[System] Fix parsing of URI schemes with digits

Initializing an Uri previously throwed an exception when the URI scheme contained a digit (e.g. net.p2p).
The loop was missing a digit check, similar to https://github.com/mono/mono/blob/1f1dc988ad7b165603a1175bf0a92156c4372c43/mcs/class/System/System/Uri.cs#L767

9 years agoMerge pull request #1168 from esdrubal/iriparsing
Marek Safar [Wed, 6 Aug 2014 10:47:14 +0000 (12:47 +0200)]
Merge pull request #1168 from esdrubal/iriparsing

IriParsing

9 years agoMerge pull request #1193 from esdrubal/decimal-round
Marek Safar [Wed, 6 Aug 2014 10:41:39 +0000 (12:41 +0200)]
Merge pull request #1193 from esdrubal/decimal-round

Decimal.Round trailing zeros

9 years agoMerge pull request #1180 from akoeplinger/no-net40-in-make-check
Marek Safar [Wed, 6 Aug 2014 10:40:30 +0000 (12:40 +0200)]
Merge pull request #1180 from akoeplinger/no-net40-in-make-check

Don't run net_4_0 tests during "make check"

9 years ago[mcs] switch statement with constant block at first label. Fixes #21805
Marek Safar [Wed, 6 Aug 2014 07:51:52 +0000 (09:51 +0200)]
[mcs] switch statement with constant block at first label. Fixes #21805

9 years agoAdded MonoString<->UTF-32 conversion helper functions.
Alexis Christoforides [Tue, 5 Aug 2014 23:58:51 +0000 (19:58 -0400)]
Added MonoString<->UTF-32 conversion helper functions.

9 years agoFix the build.
Zoltan Varga [Tue, 5 Aug 2014 23:33:48 +0000 (01:33 +0200)]
Fix the build.

9 years ago[runtime] Remove unused critical-sections files.
Zoltan Varga [Tue, 5 Aug 2014 21:52:07 +0000 (23:52 +0200)]
[runtime] Remove unused critical-sections files.

9 years ago[runtime] Use the mono_mutex types/functions instead of CriticalSection's.
Zoltan Varga [Tue, 5 Aug 2014 21:36:06 +0000 (23:36 +0200)]
[runtime] Use the mono_mutex types/functions instead of CriticalSection's.

9 years ago[jit] Use the mono_mutex types/functions of CriticalSection's.
Zoltan Varga [Tue, 5 Aug 2014 21:21:14 +0000 (23:21 +0200)]
[jit] Use the mono_mutex types/functions of CriticalSection's.

9 years agoDecimal.Round output no longer keeps trailing zeros.
Marcos Henrich [Tue, 5 Aug 2014 13:00:12 +0000 (14:00 +0100)]
Decimal.Round output no longer keeps trailing zeros.

9 years agoTest Decimal.ToString after rounding with trailing zeros.
Marcos Henrich [Tue, 5 Aug 2014 12:58:07 +0000 (13:58 +0100)]
Test Decimal.ToString after rounding with trailing zeros.

9 years ago[profiler] Increase the number of maximum and default frames in backtraces.
Paolo Molaro [Tue, 5 Aug 2014 11:14:11 +0000 (13:14 +0200)]
[profiler] Increase the number of maximum and default frames in backtraces.

9 years ago[jit] Emit OP_FMOVE instead of OP_MOVE for r4 arguments in hard float mode on arm.
Zoltan Varga [Tue, 5 Aug 2014 11:02:45 +0000 (13:02 +0200)]
[jit] Emit OP_FMOVE instead of OP_MOVE for r4 arguments in hard float mode on arm.

9 years ago[runtime] Don't assert when loading a generic methodspec with 0 arity (xambug #19097).
Paolo Molaro [Tue, 5 Aug 2014 09:52:35 +0000 (11:52 +0200)]
[runtime] Don't assert when loading a generic methodspec with 0 arity (xambug #19097).

9 years agoMerge pull request #1066 from esdrubal/bug19313
Rodrigo Kumpera [Mon, 4 Aug 2014 16:29:43 +0000 (12:29 -0400)]
Merge pull request #1066 from esdrubal/bug19313

Changed DeflateStream to stop reading base_stream sooner. Fixes #19313.

9 years agoMerge pull request #1063 from esdrubal/bug18482
Rodrigo Kumpera [Mon, 4 Aug 2014 16:28:50 +0000 (12:28 -0400)]
Merge pull request #1063 from esdrubal/bug18482

Resets all private key values on RSAManaged.ImportParameters. Fixes #18482.

9 years ago[mcs] null propagating operator on index expressions
Marek Safar [Mon, 4 Aug 2014 15:32:15 +0000 (17:32 +0200)]
[mcs] null propagating operator on index expressions

9 years ago[runtime] Remove unneccesary locking from some metadata functions.
Zoltan Varga [Thu, 17 Jul 2014 21:34:21 +0000 (23:34 +0200)]
[runtime] Remove unneccesary locking from some metadata functions.

9 years agoTest Encoder.Convert and UTF8Encoder.Convert behaviors.
Marcos Henrich [Mon, 4 Aug 2014 14:26:53 +0000 (15:26 +0100)]
Test Encoder.Convert and UTF8Encoder.Convert behaviors.
Added class ExposedEncoder to test the virtual method Encoder.Convert behavior.
Test UTF8Encoder.Convert override.

9 years ago[runtime] Initialize klass->supertypes properly for dynamic classes.
Zoltan Varga [Sun, 3 Aug 2014 20:09:26 +0000 (22:09 +0200)]
[runtime] Initialize klass->supertypes properly for dynamic classes.

9 years ago[system.xml] Dispose XmlReader using correct value. Fixes #21771
Marek Safar [Sun, 3 Aug 2014 17:10:45 +0000 (19:10 +0200)]
[system.xml] Dispose XmlReader using correct value. Fixes #21771

9 years ago[mcs] decimal constants modulo folding. Fixes #21743
Marek Safar [Sun, 3 Aug 2014 12:07:03 +0000 (14:07 +0200)]
[mcs] decimal constants modulo folding. Fixes #21743

9 years ago[mcs] null propagating operator cannot work on pointer types
Marek Safar [Fri, 1 Aug 2014 10:10:50 +0000 (12:10 +0200)]
[mcs] null propagating operator cannot work on pointer types

9 years agoTurns out some devices can have network interfaces without names.
Marek Habersack [Thu, 31 Jul 2014 23:43:15 +0000 (19:43 -0400)]
Turns out some devices can have network interfaces without names.

If we encounter such a device we assign it an empty name followed by index number, so that we can
put any number of such devices in the dictionary and report them to the user.

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

9 years ago[sgen] File size limit for binary protocols.
Mark Probst [Tue, 29 Jul 2014 23:31:38 +0000 (16:31 -0700)]
[sgen] File size limit for binary protocols.

We can now pass a file size limit to the `binary-protocol` option.  It will
create numbered binary protocol files, and only keep the last two around.
This is useful for cases where the only way to reproduce a bug is through
a long run that would otherwise create a protocol that's much too big.

9 years ago[sgen] Debug option for `clear-at-tlab-creation` nursery clear policy.
Mark Probst [Tue, 29 Jul 2014 23:29:39 +0000 (16:29 -0700)]
[sgen] Debug option for `clear-at-tlab-creation` nursery clear policy.

With the debug policy, we do clear at TLAB creation, but at GC time, whenever
we would clear with `clear-at-gc`, instead of not clearing, we fill with 0xff.

9 years ago[jit] Avoid making generic calls from gsharedvt methods normally, go through the...
Zoltan Varga [Thu, 31 Jul 2014 19:55:27 +0000 (21:55 +0200)]
[jit] Avoid making generic calls from gsharedvt methods normally, go through the rgctx infrastructure instead. Fixes #21677.

9 years ago[mcs] Update codegen for boolean loads. Fixes #21685
Marek Safar [Thu, 31 Jul 2014 16:40:19 +0000 (18:40 +0200)]
[mcs] Update codegen for boolean loads. Fixes #21685

9 years ago[mcs] null coallescing operator can end up working on value types
Marek Safar [Thu, 31 Jul 2014 14:43:17 +0000 (16:43 +0200)]
[mcs] null coallescing operator can end up working on value types

9 years agoMerge pull request #1184 from directhex/kfreebsd
Zoltan Varga [Thu, 31 Jul 2014 14:40:36 +0000 (16:40 +0200)]
Merge pull request #1184 from directhex/kfreebsd

Support for GNU/kFreeBSD

9 years agoMerge pull request #1183 from directhex/xinerama
Zoltan Varga [Thu, 31 Jul 2014 14:38:23 +0000 (16:38 +0200)]
Merge pull request #1183 from directhex/xinerama

Don't do the soname checking dance for Xinerama.

9 years ago[xbuild] Fix handling of reference aliases
Marek Safar [Thu, 31 Jul 2014 13:21:46 +0000 (15:21 +0200)]
[xbuild] Fix handling of reference aliases

9 years agoDefine PLATFORM_GNU which covers any OS with GNU userland.
Jo Shields [Thu, 31 Jul 2014 11:04:59 +0000 (12:04 +0100)]
Define PLATFORM_GNU which covers any OS with GNU userland.

This define covers kFreeBSD, not just Linux. This is required because
the error which 120d194d10ad351dd95450749cc4a62331331d8a works around is
a GNU problem, not a Linux problem, so causes FTBFS on kFreeBSD.

9 years agoUse host_win32 not platform_win32 in kfreebsd defines
Jo Shields [Thu, 31 Jul 2014 10:58:47 +0000 (11:58 +0100)]
Use host_win32 not platform_win32 in kfreebsd defines

9 years agoDon't do the soname checking dance for Xinerama.
Jo Shields [Thu, 31 Jul 2014 10:40:36 +0000 (11:40 +0100)]
Don't do the soname checking dance for Xinerama.

Xinerama has only ever had a soname of 1.

Checking for 1, 2, and 3 is just weird and pointless. And by not using a
default value, we duplicate the bug which add24aaa1 fixed.

9 years agoFix warning message when libX11.so.* are not found.
Jo Shields [Thu, 31 Jul 2014 10:38:00 +0000 (11:38 +0100)]
Fix warning message when libX11.so.* are not found.

We complain that we can't find "X development files", but the reverse
is true - if we had X development files, we'd find libX11.so (which
we aren't looking for). What we look for (and find) are the runtime files.

9 years agoSupport for GNU/kFreeBSD.
Jo Shields [Thu, 31 Jul 2014 09:26:34 +0000 (10:26 +0100)]
Support for GNU/kFreeBSD.

GNU/kFreeBSD is an experimental OS provided by the Debian project, consisting
of a FreeBSD kernel and GNU userland/libc. For a small number of cases, this
offers advantages over a more common GNU/Linux combination, such as fast
in-kernel support for ZFS storage.

This patch changes various ifdefs, either using __FreeBSD_kernel__ where a
trait from the kernel is what matters, or __GLIBC__ where a trait from the
C library matters.

This patch set has been carried downstream, in one form or another, since
1.2.3.1-1.

https://bugzilla.novell.com/show_bug.cgi?id=321634

9 years ago[mcs] Fixes bootsrap with older mcs
Marek Safar [Thu, 31 Jul 2014 09:53:09 +0000 (11:53 +0200)]
[mcs] Fixes bootsrap with older mcs

9 years ago[mcs] Member access null propagating operator
Marek Safar [Thu, 31 Jul 2014 09:04:50 +0000 (11:04 +0200)]
[mcs] Member access null propagating operator

9 years ago[mcs] Finalizers cannot use expression_block syntax
Marek Safar [Thu, 24 Jul 2014 12:18:11 +0000 (14:18 +0200)]
[mcs] Finalizers cannot use expression_block syntax

9 years agoImplement the Mono side of Android support for NetworkInterface.GetAllNetworkInterfac...
Marek Habersack [Fri, 30 May 2014 14:35:56 +0000 (16:35 +0200)]
Implement the Mono side of Android support for NetworkInterface.GetAllNetworkInterfaces ()

Added code to call Xamarin.Android internal implementation of getifaddrs/freeifaddrs to provide us
with the required information to fulfill the request.

Added a handful of Linux ARP hardware IDs which are considered to be tunnel devices and which may occur
on Android devices.

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

9 years agoBump Mono version -> 3.8.1
Alexis Christoforides [Wed, 30 Jul 2014 18:52:33 +0000 (14:52 -0400)]
Bump Mono version -> 3.8.1

9 years agoDon't run net_4_0 tests during "make check"
Alexander Köplinger [Wed, 30 Jul 2014 16:55:06 +0000 (18:55 +0200)]
Don't run net_4_0 tests during "make check"

As @marek-safar noted in mono@cf4f10e#commitcomment-7128403, the IL code for the 4.0 profile is never used
for running (the assemblies are just built for having metadata), so it makes no sense to execute 4.0 tests during "make check"

9 years ago[xbuild] Disable some tests which fail on wrench.
Zoltan Varga [Wed, 30 Jul 2014 15:41:41 +0000 (17:41 +0200)]
[xbuild] Disable some tests which fail on wrench.

9 years ago[PLinq] Avoid cache thrashing of locals array when looping over enumerator
Ludovic Henry [Wed, 30 Jul 2014 15:13:24 +0000 (11:13 -0400)]
[PLinq] Avoid cache thrashing of locals array when looping over enumerator

9 years ago[jit] Fix another native-types problem. Hopefully fixes #21670 and #21636.
Zoltan Varga [Tue, 29 Jul 2014 21:59:45 +0000 (23:59 +0200)]
[jit] Fix another native-types problem. Hopefully fixes #21670 and #21636.

9 years agoMerge pull request #1181 from directhex/master
Zoltan Varga [Tue, 29 Jul 2014 21:42:33 +0000 (23:42 +0200)]
Merge pull request #1181 from directhex/master

Delete assemblies from external/ when building "make dist" tarballs

9 years agoDo not assume the GetCurrentTimeZone method exists in Mono.Android
Marek Habersack [Tue, 29 Jul 2014 19:29:35 +0000 (15:29 -0400)]
Do not assume the GetCurrentTimeZone method exists in Mono.Android

Not checking whether the method exists caused a null reference exception in CreateDelegate.

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

9 years agoDelete assemblies from external/ when building "make dist" tarballs
Jo Shields [Tue, 29 Jul 2014 16:01:58 +0000 (12:01 -0400)]
Delete assemblies from external/ when building "make dist" tarballs

9 years agoMerge pull request #1178 from dougrathbone/master
Marek Safar [Tue, 29 Jul 2014 11:44:46 +0000 (13:44 +0200)]
Merge pull request #1178 from dougrathbone/master

Bug fix caused by Dispose failing because 'Initialize' method throws exception

9 years agoFix 91b224d0042f59c4a00dd387f2a589c6ef35d12f.
Zoltan Varga [Tue, 29 Jul 2014 09:56:27 +0000 (11:56 +0200)]
Fix 91b224d0042f59c4a00dd387f2a589c6ef35d12f.

9 years ago[bcl] Disable some tests which are expected to fail in mt.
Zoltan Varga [Tue, 29 Jul 2014 09:47:50 +0000 (11:47 +0200)]
[bcl] Disable some tests which are expected to fail in mt.

9 years agoUri.ToString now returns registered parser components when possible.
Marcos Henrich [Tue, 29 Jul 2014 06:23:35 +0000 (07:23 +0100)]
Uri.ToString now returns registered parser components when possible.

9 years agoParseNoExceptions is now using registered parsers when possible.
Marcos Henrich [Tue, 29 Jul 2014 06:20:46 +0000 (07:20 +0100)]
ParseNoExceptions is now using registered parsers when possible.

9 years agoTryParseComponent returns when the scheme has a registered parser.
Marcos Henrich [Tue, 29 Jul 2014 06:17:21 +0000 (07:17 +0100)]
TryParseComponent returns when the scheme has a registered parser.

9 years agoRemoved parameter parser from UriParseComponents.ParseComponents.
Marcos Henrich [Mon, 28 Jul 2014 17:49:26 +0000 (18:49 +0100)]
Removed parameter parser from UriParseComponents.ParseComponents.

9 years ago[jit] Use alias information to eliminate explicit null checks. Fixes #21645.
Rodrigo Kumpera [Tue, 29 Jul 2014 04:31:10 +0000 (01:31 -0300)]
[jit] Use alias information to eliminate explicit null checks. Fixes #21645.

9 years ago[jit] Handle second order aliases. Based on patch by Vlad Brezae.
Rodrigo Kumpera [Tue, 29 Jul 2014 04:17:37 +0000 (01:17 -0300)]
[jit] Handle second order aliases. Based on patch by Vlad Brezae.

In some cases, usually when dealing with IntPtr <> void* conversions, 2nd order aliases arises.

To handle them, first we consider the lowered load/stores for alias information, second
we iterate over handle globals/dce while aliases can still be eliminated.

9 years ago[runtime] Initialize fields in MonoField:GetFieldOffset () if needed. Fixes part...
Zoltan Varga [Tue, 29 Jul 2014 00:47:26 +0000 (02:47 +0200)]
[runtime] Initialize fields in MonoField:GetFieldOffset () if needed. Fixes part of #21604.

9 years agoChanged some IriParsing behaviors to be platform behaviors.
Marcos Henrich [Mon, 28 Jul 2014 11:37:58 +0000 (12:37 +0100)]
Changed some IriParsing behaviors to be platform behaviors.

9 years agoAdded UriTestAux that tests non default IriParsing. Fixed Tests.
Marcos Henrich [Mon, 28 Jul 2014 11:36:28 +0000 (12:36 +0100)]
Added UriTestAux that tests non default IriParsing. Fixed Tests.

9 years ago[runtime] Properly handle rethrow outside of catch blocks. Fixes #20412
Rodrigo Kumpera [Sun, 27 Jul 2014 21:58:11 +0000 (18:58 -0300)]
[runtime] Properly handle rethrow outside of catch blocks. Fixes #20412

Fix the verifier to fail a rethrow in a filter block.
Change the JIT to emit an exception instead of asserting.

9 years agoFixing bug caused by Dispose failing because the `Initialize` method threw a `Cryptog...
Doug Rathbone [Sun, 27 Jul 2014 19:21:37 +0000 (12:21 -0700)]
Fixing bug caused by Dispose failing because the `Initialize` method threw a `CryptographicException` before the private variables `m_p, m_G, m_X` could be set.

9 years agoMerge pull request #1176 from RyanMelenaNoesis/patch-1
Marek Safar [Fri, 25 Jul 2014 21:27:07 +0000 (23:27 +0200)]
Merge pull request #1176 from RyanMelenaNoesis/patch-1

Implement missing constructor

9 years agoImplement missing constructor
RyanMelenaNoesis [Fri, 25 Jul 2014 21:07:55 +0000 (16:07 -0500)]
Implement missing constructor

http://msdn.microsoft.com/en-us/library/hh194482(v=vs.110).aspx

9 years agoRefactored ifs into switches.
Marcos Henrich [Fri, 25 Jul 2014 13:47:54 +0000 (14:47 +0100)]
Refactored ifs into switches.

9 years agoRemoved unnecessary parameter modifier ref.
Marcos Henrich [Fri, 25 Jul 2014 13:05:23 +0000 (14:05 +0100)]
Removed unnecessary parameter modifier ref.
No need of modifier ref because ParserState is not a value type.

9 years agoAdded missing spaces.
Marcos Henrich [Fri, 25 Jul 2014 12:57:09 +0000 (13:57 +0100)]
Added missing spaces.

9 years agoCall more appropriate string.TrimStart overload.
Marcos Henrich [Fri, 25 Jul 2014 12:54:29 +0000 (13:54 +0100)]
Call more appropriate string.TrimStart overload.

9 years agoParse methods are now chained in conjunction.
Marcos Henrich [Fri, 25 Jul 2014 12:52:47 +0000 (13:52 +0100)]
Parse methods are now chained in conjunction.

9 years agoRefactored UriHelper.Reduce to use string.Split.
Marcos Henrich [Fri, 25 Jul 2014 12:31:57 +0000 (13:31 +0100)]
Refactored UriHelper.Reduce to use string.Split.

9 years agoRemoved redundant code.
Marcos Henrich [Fri, 25 Jul 2014 12:29:39 +0000 (13:29 +0100)]
Removed redundant code.

9 years agoSplited if to test % first.
Marcos Henrich [Fri, 25 Jul 2014 12:28:29 +0000 (13:28 +0100)]
Splited if to test % first.

9 years agoUriHelper.HexEscapeMultiByte is now using StringBuilder.
Marcos Henrich [Fri, 25 Jul 2014 12:20:38 +0000 (13:20 +0100)]
UriHelper.HexEscapeMultiByte is now using StringBuilder.