mono.git
9 years agoFreebsd to use Mac NetworkInterface code instead of Linux NetworkInterface code
Ben Woods [Thu, 6 Nov 2014 09:27:36 +0000 (17:27 +0800)]
Freebsd to use Mac NetworkInterface code instead of Linux NetworkInterface code

9 years agoMerge pull request #1307 from esdrubal/servicemodelrss
Miguel de Icaza [Thu, 25 Sep 2014 13:52:23 +0000 (09:52 -0400)]
Merge pull request #1307 from esdrubal/servicemodelrss

Rss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.

9 years agoRss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.
Marcos Henrich [Thu, 25 Sep 2014 12:38:59 +0000 (13:38 +0100)]
Rss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.
Fixes 23262.

9 years agoTest Rss20ItemFormatter.ReadFrom Guid. Covers 23262.
Marcos Henrich [Thu, 25 Sep 2014 12:36:40 +0000 (13:36 +0100)]
Test Rss20ItemFormatter.ReadFrom Guid. Covers 23262.

9 years ago[sgen] Don't get time twice at the same time.
Mark Probst [Tue, 23 Sep 2014 01:08:36 +0000 (18:08 -0700)]
[sgen] Don't get time twice at the same time.

9 years ago[sgen] Add concurrent collector counter for time spent during concurrent phase
Ludovic Henry [Tue, 26 Aug 2014 16:07:09 +0000 (12:07 -0400)]
[sgen] Add concurrent collector counter for time spent during concurrent phase

9 years ago[sgen] Add major concurrent collector stw time to "Major GC time" counter
Ludovic Henry [Tue, 26 Aug 2014 16:06:08 +0000 (12:06 -0400)]
[sgen] Add major concurrent collector stw time to "Major GC time" counter

9 years agoMerge pull request #1304 from slluis/mac-proxy-autoconfig
Miguel de Icaza [Wed, 24 Sep 2014 15:17:33 +0000 (11:17 -0400)]
Merge pull request #1304 from slluis/mac-proxy-autoconfig

[System.Net] Add support for .pac proxy config scripts on mac

9 years ago[System.Net] Add support for .pac proxy config scripts on mac
Lluis Sanchez [Wed, 24 Sep 2014 14:50:15 +0000 (16:50 +0200)]
[System.Net] Add support for .pac proxy config scripts on mac

9 years ago[System] Fix most warnings on the System test suite
Miguel de Icaza [Wed, 24 Sep 2014 14:43:46 +0000 (10:43 -0400)]
[System] Fix most warnings on the System test suite

9 years agoUriParserTest.GetComponents_Ftp2 now uses the variable 'ftp2'.
Marcos Henrich [Wed, 24 Sep 2014 11:15:44 +0000 (12:15 +0100)]
UriParserTest.GetComponents_Ftp2 now uses the variable 'ftp2'.

9 years agoFixed TLS detection to check for TARGET_MACH instead of __APPLE__.
João Matos [Wed, 24 Sep 2014 11:21:00 +0000 (12:21 +0100)]
Fixed TLS detection to check for TARGET_MACH instead of __APPLE__.

In the case of cross-compiling to x86 Linux from OSX we'd hit compilation issues here.

9 years agoAdded support for cross-compiling to x86 Linux/Android.
João Matos [Wed, 24 Sep 2014 11:18:27 +0000 (12:18 +0100)]
Added support for cross-compiling to x86 Linux/Android.

9 years ago[mcs] More tweaks to conditional tokenizer. Fixes #23319
Marek Safar [Wed, 24 Sep 2014 10:25:45 +0000 (12:25 +0200)]
[mcs] More tweaks to conditional tokenizer. Fixes #23319

9 years agoMove llvm_init_inner inside #ifdef ENABLE_LLVM
Jo Shields [Wed, 24 Sep 2014 09:40:03 +0000 (10:40 +0100)]
Move llvm_init_inner inside #ifdef ENABLE_LLVM

This should fix c30a3e46d2f94682b4ec1cac42b7c7ddb0a39059 failing to link properly with ld 2.22 and GCC 4.9.1, on Linux, with non-LLVM builds.

./.libs/libmini.a(libmini_la-mini.o): In function `llvm_init_inner':
mini.c:(.text+0x1182b): undefined reference to `mono_llvm_init'
/usr/bin/ld: .libs/libmonoboehm-2.0.so.1.0.0: hidden symbol `mono_llvm_init' isn't defined
/usr/bin/ld: final link failed: Bad value

9 years ago[xlinq] fix bug #23318 - XComment.ToString() accepts "invalid" values.
Atsushi Eno [Wed, 24 Sep 2014 07:30:32 +0000 (15:30 +0800)]
[xlinq] fix bug #23318 - XComment.ToString() accepts "invalid" values.

Before it passes the value to XmlWriter.WriteComment(), it replaces
invalid values to valid form.

9 years agoMerge pull request #1301 from Unity-Technologies/fix-isuserprotected
Zoltan Varga [Tue, 23 Sep 2014 22:59:15 +0000 (18:59 -0400)]
Merge pull request #1301 from Unity-Technologies/fix-isuserprotected

Fix Win32 call in IsUserProtected. Usage was incorrect and freeing the w...

9 years ago[bcl] Fix the RenameTpThread test, renaming a tp thread should not fail.
Zoltan Varga [Tue, 23 Sep 2014 22:40:34 +0000 (18:40 -0400)]
[bcl] Fix the RenameTpThread test, renaming a tp thread should not fail.

9 years ago[jit] Fix LLVM support on amd64 which got broken by the epilog size changes.
Zoltan Varga [Tue, 23 Sep 2014 22:36:23 +0000 (18:36 -0400)]
[jit] Fix LLVM support on amd64 which got broken by the epilog size changes.

9 years ago[aot] Fix running with a loadable llvm module in aot-cache mode.
Zoltan Varga [Tue, 23 Sep 2014 22:26:01 +0000 (18:26 -0400)]
[aot] Fix running with a loadable llvm module in aot-cache mode.

9 years agoRevert "Uri made from UNIX path and RelativeOrAbsolute is now relative."
Marcos Henrich [Tue, 23 Sep 2014 21:27:12 +0000 (22:27 +0100)]
Revert "Uri made from UNIX path and RelativeOrAbsolute is now relative."

This reverts commit 116f4d2749b4babd6637259799877b30480c9b47.

9 years agoMerge pull request #1302 from mono/revert-1300-unixrelativeorabsolute
Rodrigo Kumpera [Tue, 23 Sep 2014 21:12:10 +0000 (17:12 -0400)]
Merge pull request #1302 from mono/revert-1300-unixrelativeorabsolute

Revert "Uri made from UNIX path and RelativeOrAbsolute is now relative."

9 years agoRevert "Uri made from UNIX path and RelativeOrAbsolute is now relative."
Rodrigo Kumpera [Tue, 23 Sep 2014 21:05:30 +0000 (17:05 -0400)]
Revert "Uri made from UNIX path and RelativeOrAbsolute is now relative."

9 years agoEnvironment.IsRunningOnWindows can be true on MOBILE
Michael Hutchinson [Tue, 23 Sep 2014 18:53:58 +0000 (14:53 -0400)]
Environment.IsRunningOnWindows can be true on MOBILE

9 years ago[System.Data] Add new file to the mobile_* sources build (to fix XI build)
Sebastien Pouliot [Tue, 23 Sep 2014 18:03:18 +0000 (14:03 -0400)]
[System.Data] Add new file to the mobile_* sources build (to fix XI build)

9 years ago[jit] Fix EH on amd64 which got broken by d5a18ba292367e375d215ca2351cf1fa9b0a1d8e.
Zoltan Varga [Tue, 23 Sep 2014 18:15:59 +0000 (14:15 -0400)]
[jit] Fix EH on amd64 which got broken by d5a18ba292367e375d215ca2351cf1fa9b0a1d8e.

9 years agoMerge pull request #1299 from esdrubal/uriuserinfo
Rodrigo Kumpera [Tue, 23 Sep 2014 18:00:13 +0000 (14:00 -0400)]
Merge pull request #1299 from esdrubal/uriuserinfo

UriParseComponents no longer decodes '@' in UserInfo.

9 years agoUri made from UNIX path and RelativeOrAbsolute is now relative.
Marcos Henrich [Tue, 23 Sep 2014 17:01:38 +0000 (18:01 +0100)]
Uri made from UNIX path and RelativeOrAbsolute is now relative.
This was changed because the path might be a relative http path and should take precedence over an absolute UNIX path.

9 years agoFix Win32 call in IsUserProtected. Usage was incorrect and freeing the wrong paramete...
Jonathan Chambers [Tue, 23 Sep 2014 16:41:44 +0000 (12:41 -0400)]
Fix Win32 call in IsUserProtected. Usage was incorrect and freeing the wrong parameter causing a memory corruption.

9 years agoFix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename...
Miguel de Icaza [Tue, 23 Sep 2014 14:55:57 +0000 (10:55 -0400)]
Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename test

9 years agoMerge pull request #1300 from esdrubal/unixrelativeorabsolute
Marek Safar [Tue, 23 Sep 2014 14:11:15 +0000 (05:11 -0900)]
Merge pull request #1300 from esdrubal/unixrelativeorabsolute

Uri made from UNIX path and RelativeOrAbsolute is now relative.

9 years agoUri made from UNIX path and RelativeOrAbsolute is now relative.
Marcos Henrich [Tue, 23 Sep 2014 13:32:59 +0000 (14:32 +0100)]
Uri made from UNIX path and RelativeOrAbsolute is now relative.
Fixes 22954.

9 years agoTest that Uri made from UNIX path and RelativeOrAbsolute is relative.
Marcos Henrich [Tue, 23 Sep 2014 13:27:35 +0000 (14:27 +0100)]
Test that Uri made from UNIX path and RelativeOrAbsolute is relative.

9 years agoMerge pull request #1203 from esdrubal/protect
Marcos Henrich [Tue, 23 Sep 2014 12:58:19 +0000 (13:58 +0100)]
Merge pull request #1203 from esdrubal/protect

KeyPairPresistence now tries to fix folder permissions.

9 years agoUriParseComponents no longer decodes '@' in UserInfo. Fixes 23246.
Marcos Henrich [Tue, 23 Sep 2014 11:33:54 +0000 (12:33 +0100)]
UriParseComponents no longer decodes '@' in UserInfo. Fixes 23246.

9 years agoTest Uri.UserInfo with percentage encoded '@'.
Marcos Henrich [Tue, 23 Sep 2014 11:32:17 +0000 (12:32 +0100)]
Test Uri.UserInfo with percentage encoded '@'.

9 years agoFixed additional Uri.UserInfo char consumed after an escaped char.
Marcos Henrich [Tue, 23 Sep 2014 11:18:12 +0000 (12:18 +0100)]
Fixed additional Uri.UserInfo char consumed after an escaped char.

9 years agoTest Uri.UserInfo with escaped 'a'.
Marcos Henrich [Tue, 23 Sep 2014 11:13:57 +0000 (12:13 +0100)]
Test Uri.UserInfo with escaped 'a'.

9 years ago[aot] Add an 'options' argument to the AOT cache configuration where additional ...
Zoltan Varga [Tue, 23 Sep 2014 01:11:03 +0000 (21:11 -0400)]
[aot] Add an 'options' argument to the AOT cache configuration where additional --aot= options can be passed.

9 years ago[aot] Add more verbose aot cache logging, fix failure detection.
Zoltan Varga [Tue, 23 Sep 2014 00:52:53 +0000 (20:52 -0400)]
[aot] Add more verbose aot cache logging, fix failure detection.

9 years ago[aot] Make --aot=llvm actually work by passing the flag down to the JIT.
Zoltan Varga [Tue, 23 Sep 2014 00:18:33 +0000 (20:18 -0400)]
[aot] Make --aot=llvm actually work by passing the flag down to the JIT.

9 years ago[aot] Fix a regression introduced by 82c15fa592b23cf466b0683cc3f02f30d7ea8828.
Zoltan Varga [Tue, 23 Sep 2014 00:11:22 +0000 (20:11 -0400)]
[aot] Fix a regression introduced by 82c15fa592b23cf466b0683cc3f02f30d7ea8828.

9 years ago[aot] Add an 'llvm' aot option which does the same as --llvm. This allows running...
Zoltan Varga [Tue, 23 Sep 2014 00:03:48 +0000 (20:03 -0400)]
[aot] Add an 'llvm' aot option which does the same as --llvm. This allows running the AOT compiler with LLVM enabled in aot cache mode.

9 years ago[llvm] Fix support for unaligned offsets in the store_membase_imm opcodes. Fixes...
Zoltan Varga [Mon, 22 Sep 2014 22:52:40 +0000 (18:52 -0400)]
[llvm] Fix support for unaligned offsets in the store_membase_imm opcodes. Fixes #23267.

9 years ago[sgen] Use memcpy to copy object
Ludovic Henry [Thu, 18 Sep 2014 20:06:09 +0000 (16:06 -0400)]
[sgen] Use memcpy to copy object

It is faster by around 5-6% on copy heavy gc stress tests.

9 years ago[runtime] Allow renaming of threadpool threads. Fixes #23206.
Zoltan Varga [Mon, 22 Sep 2014 21:07:26 +0000 (17:07 -0400)]
[runtime] Allow renaming of threadpool threads. Fixes #23206.

9 years ago[runtime] Fix the lookup of nested types which have a namespace. Fixes #21653.
Zoltan Varga [Mon, 22 Sep 2014 20:20:12 +0000 (16:20 -0400)]
[runtime] Fix the lookup of nested types which have a namespace. Fixes #21653.

9 years ago[mcs] Populate inherited constraints member cache from types not only base types...
Marek Safar [Mon, 22 Sep 2014 20:11:39 +0000 (22:11 +0200)]
[mcs] Populate inherited constraints member cache from types not only base types. Fixes #23017

9 years agoFixes commit ef94fbfd9c93ea5702e0a855bc01104217c75fa4
Marek Safar [Mon, 22 Sep 2014 20:08:20 +0000 (22:08 +0200)]
Fixes commit ef94fbfd9c93ea5702e0a855bc01104217c75fa4

9 years agoFixup to ef94fbfd9c93ea5702e0a855bc01104217c75fa4
Marius Ungureanu [Mon, 22 Sep 2014 18:16:13 +0000 (21:16 +0300)]
Fixup to ef94fbfd9c93ea5702e0a855bc01104217c75fa4

Thanks @ezavaleta

9 years ago[corlib] Update en-NZ designators. Fixes #22212
Marek Safar [Mon, 22 Sep 2014 15:28:53 +0000 (17:28 +0200)]
[corlib] Update en-NZ designators. Fixes #22212

9 years ago[mcs] declaration expression after ref/out argument
Marek Safar [Mon, 22 Sep 2014 15:26:55 +0000 (17:26 +0200)]
[mcs] declaration expression after ref/out argument

9 years agoMerge pull request #1295 from nealef/master
Miguel de Icaza [Mon, 22 Sep 2014 14:41:58 +0000 (10:41 -0400)]
Merge pull request #1295 from nealef/master

Add SqlCredential support to SqlClient/Tds

9 years agoMerge pull request #1296 from directhex/master
Rodrigo Kumpera [Mon, 22 Sep 2014 14:29:33 +0000 (10:29 -0400)]
Merge pull request #1296 from directhex/master

Add a tool which can sync the Mono cert store from an arbitrary cert bundle

9 years agoAdd a tool which can sync the Mono cert store from an arbitrary cert bundle (i.e...
Jo Shields [Mon, 22 Sep 2014 12:37:36 +0000 (13:37 +0100)]
Add a tool which can sync the Mono cert store from an arbitrary cert bundle (i.e. every trusted CA.pem in one big text file). This is a format used by most Linux distributions, so allows Mono packagers to automatically integrate the Mono cert store with the OS cert store.

9 years ago[runtime] Fix mono_sigctx_to_monoctx () on win32.
Zoltan Varga [Mon, 22 Sep 2014 05:16:00 +0000 (01:16 -0400)]
[runtime] Fix mono_sigctx_to_monoctx () on win32.

9 years ago[runtime] Fix the win32 build.
Zoltan Varga [Mon, 22 Sep 2014 05:01:11 +0000 (01:01 -0400)]
[runtime] Fix the win32 build.

9 years agoFix warnings.
Zoltan Varga [Mon, 22 Sep 2014 04:46:23 +0000 (06:46 +0200)]
Fix warnings.

9 years ago[jit] Fix the handler block trampolines on windows.
Zoltan Varga [Mon, 22 Sep 2014 04:41:52 +0000 (06:41 +0200)]
[jit] Fix the handler block trampolines on windows.

9 years ago[runtime] Enable the fastpath in CEE_MONO_JIT_ATTACH on windows.
Zoltan Varga [Mon, 22 Sep 2014 04:41:23 +0000 (06:41 +0200)]
[runtime] Enable the fastpath in CEE_MONO_JIT_ATTACH on windows.

9 years ago[runtime] Treat the tls key as the tls offset on windows, since they are the same.
Zoltan Varga [Mon, 22 Sep 2014 04:40:26 +0000 (06:40 +0200)]
[runtime] Treat the tls key as the tls offset on windows, since they are the same.

9 years ago[runtime] Enable fp elimination on winx64.
Zoltan Varga [Mon, 22 Sep 2014 03:07:30 +0000 (23:07 -0400)]
[runtime] Enable fp elimination on winx64.

9 years ago[runtime] Disable a few more tests on windows which hang on winx64.
Zoltan Varga [Mon, 22 Sep 2014 02:48:42 +0000 (22:48 -0400)]
[runtime] Disable a few more tests on windows which hang on winx64.

9 years ago[jit] Enable the pushless call code on windows too, get rid of the non-pushless code.
Zoltan Varga [Mon, 22 Sep 2014 02:21:41 +0000 (22:21 -0400)]
[jit] Enable the pushless call code on windows too, get rid of the non-pushless code.

9 years ago[jit] Implement the pushless call code on winx64.
Zoltan Varga [Mon, 22 Sep 2014 02:00:52 +0000 (22:00 -0400)]
[jit] Implement the pushless call code on winx64.

9 years ago[jit] Enable monitor fast paths on win64.
Zoltan Varga [Sun, 21 Sep 2014 23:42:31 +0000 (01:42 +0200)]
[jit] Enable monitor fast paths on win64.

9 years ago[runtime] Fix the windows build.
Zoltan Varga [Sun, 21 Sep 2014 21:42:45 +0000 (17:42 -0400)]
[runtime] Fix the windows build.

9 years ago[runtime] Fix the unregistration of our exception handler on windows. Fixes #23221.
Zoltan Varga [Sun, 21 Sep 2014 18:54:24 +0000 (14:54 -0400)]
[runtime] Fix the unregistration of our exception handler on windows. Fixes #23221.

9 years ago[runtime] Enable the new interrupt code on arm linux.
Zoltan Varga [Sat, 20 Sep 2014 06:43:47 +0000 (02:43 -0400)]
[runtime] Enable the new interrupt code on arm linux.

9 years ago[runtime] Add wrappers around the wapi interrupt functions to mono-threads to reduce...
Zoltan Varga [Fri, 19 Sep 2014 21:51:02 +0000 (17:51 -0400)]
[runtime] Add wrappers around the wapi interrupt functions to mono-threads to reduce the amount of #ifdef WIN32 blocks in threads.c.

9 years agoFix typo (and XI builds)
Sebastien Pouliot [Fri, 19 Sep 2014 20:48:37 +0000 (16:48 -0400)]
Fix typo (and XI builds)

9 years ago[System.Numerics] Fix unit test to succeed on different culture (XI runs tests them...
Sebastien Pouliot [Fri, 19 Sep 2014 20:30:16 +0000 (16:30 -0400)]
[System.Numerics] Fix unit test to succeed on different culture (XI runs tests them on several cultures)

9 years agoAdd SqlCredential support -
Neale Ferguson [Fri, 19 Sep 2014 15:42:55 +0000 (11:42 -0400)]
Add SqlCredential support -
- Tds.cs: Use SecureString objects for passwords; Add method to retrieve string from SecureString
- Tds42.cs: Use SecureString for passwords
- Tds50.cs: Use SecureString for passwords
- Tds70.cs: Use SecureString for passwords
- TdsConnectionParameters.cs: Use SecureString for passwords; Initialize Password parameter as cleared string; Add indicator for when password is set
- SqlConnection.cs: Use SecureString for passwords; Add SqlConnect method that accepts an SqlCredential along with the Connection string; Perform checking of parameters to ensure user/password not specified in connection string if credentials have been specified or using credentials when domain login is specified.
- SqlCredential.cs: Add new class with support for credentials
- System.Data.dll.sources: Add SqlCredential.cs to the build list

9 years ago[sgen] Fix wbarrier use if we define SGEN_HEAVY_BINARY_PROTOCOL, HEAVY_STATISTICS...
Ludovic Henry [Fri, 19 Sep 2014 15:13:24 +0000 (11:13 -0400)]
[sgen] Fix wbarrier use if we define SGEN_HEAVY_BINARY_PROTOCOL, HEAVY_STATISTICS or XDOMAIN_CHECKS_IN_WBARRIER

9 years agoMerge pull request #1245 from StephenMcConnel/bug-22483
Miguel de Icaza [Fri, 19 Sep 2014 14:17:09 +0000 (10:17 -0400)]
Merge pull request #1245 from StephenMcConnel/bug-22483

Fix scrolling in SWF.ListView.EnsureVisible(int index)

9 years agoMerge pull request #1287 from akoeplinger/fix-appconfig-performancecounters
Miguel de Icaza [Fri, 19 Sep 2014 14:15:05 +0000 (10:15 -0400)]
Merge pull request #1287 from akoeplinger/fix-appconfig-performancecounters

[System] Add performanceCounters element to System.Diagnostics app.config configuration section

9 years agoMerge pull request #1290 from directhex/master
Miguel de Icaza [Fri, 19 Sep 2014 14:13:55 +0000 (10:13 -0400)]
Merge pull request #1290 from directhex/master

Put KeyPairPersistence load into a try{}catch{} block.

9 years agoMerge pull request #1273 from joelmartinez/docs-unified-fix
Miguel de Icaza [Fri, 19 Sep 2014 14:11:01 +0000 (10:11 -0400)]
Merge pull request #1273 from joelmartinez/docs-unified-fix

bugfix for mdoc update with --dropns feature

9 years ago[utils] Fix force inlining compilation error with gcc on linux
Ludovic Henry [Fri, 19 Sep 2014 13:45:03 +0000 (09:45 -0400)]
[utils] Fix force inlining compilation error with gcc on linux

[02131]   CC       libmonoruntimesgen_la-sgen-marksweep.lo
[02131] In file included from sgen-major-copy-object.h:35:0,
[02131]                  from sgen-marksweep.c:1128:
[02131] sgen-copy-object.h:38:1: warning: always_inline function might not be inlinable [-Wattributes]
[02131]  par_copy_object_no_checks (char *destination, MonoVTable *vt, void *obj, mword objsize, SgenGrayQueue *queue)
[02131]  ^
[02131] sgen-marksweep.c: In function 'par_copy_object_no_checks':
[02131] sgen-copy-object.h:38:1: error: function 'par_copy_object_no_checks' can never be copied because it saves address of local label in a static variable
[02131] make[3]: *** [libmonoruntimesgen_la-sgen-marksweep.lo] Error 1
[02131] make[3]: Leaving directory `/root/rpmbuild/BUILD/mono-3.10.1/mono/metadata'
[02131] make[2]: *** [all-recursive] Error 1
[02131] make[2]: Leaving directory `/root/rpmbuild/BUILD/mono-3.10.1/mono'
[02131] make[1]: *** [all-recursive] Error 1
[02131] make[1]: Leaving directory `/root/rpmbuild/BUILD/mono-3.10.1'
[02131] make: *** [all] Error 2
[02131] error: Bad exit status from /var/tmp/rpm-tmp.YxcUOE (%build)

9 years ago[mcs] Improve scoring of failed overload resolution. Fixes #22989
Marek Safar [Thu, 18 Sep 2014 22:08:04 +0000 (00:08 +0200)]
[mcs] Improve scoring of failed overload resolution. Fixes #22989

9 years ago[utils] Use MONO_ALWAYS_INLINE + Add MONO_NEVER_INLINE
Ludovic Henry [Thu, 18 Sep 2014 20:39:53 +0000 (16:39 -0400)]
[utils] Use MONO_ALWAYS_INLINE + Add MONO_NEVER_INLINE

9 years agoPut KeyPairPersistence load into a try{}catch{} block.
Jo Shields [Thu, 18 Sep 2014 16:32:06 +0000 (17:32 +0100)]
Put KeyPairPersistence load into a try{}catch{} block.

Kpp.Load() will throw an unhandled exception if _filename (a folder to use as the key store) does not exist and it cannot be created.

This is an entirely valid thing to have happen - cert importing into the machine store (mozroots --import --machine --sync) as root will create a /usr/share/.mono/certs/ folder, but will not create /usr/share/.mono/keypairs - and since the root user owns /usr/share/.mono/, if the user tries to enumerate the certificates in /usr/share/.mono/certs/, they get 0 certificates returned due to the unhandled exception dropping each loaded certificate on the floor.

Closes: Xamarin bug 23015

9 years ago[mcs] Fix output type inference when parameters after first one depend on fixed first...
Marek Safar [Thu, 18 Sep 2014 12:47:19 +0000 (14:47 +0200)]
[mcs] Fix output type inference when parameters after first one depend on fixed first set. Fixes #23024

9 years ago[mcs] Better check for parameterless constructor overload
Marek Safar [Thu, 18 Sep 2014 08:10:04 +0000 (10:10 +0200)]
[mcs] Better check for parameterless constructor overload

9 years ago[sdb] Use new style interrupt on win32 if available.
Zoltan Varga [Thu, 18 Sep 2014 02:49:02 +0000 (22:49 -0400)]
[sdb] Use new style interrupt on win32 if available.

9 years ago[runtime] Use the windows CONTEXT<->MonoContext conversion code to mono-context.c...
Zoltan Varga [Thu, 18 Sep 2014 02:37:18 +0000 (22:37 -0400)]
[runtime] Use the windows CONTEXT<->MonoContext conversion code to mono-context.c, simplify some code.

9 years ago[runtime] Implement the new suspend infrastructure on windows.
Zoltan Varga [Wed, 17 Sep 2014 22:25:00 +0000 (18:25 -0400)]
[runtime] Implement the new suspend infrastructure on windows.

9 years ago[sdb] Implement support for win64.
Zoltan Varga [Wed, 17 Sep 2014 19:20:59 +0000 (15:20 -0400)]
[sdb] Implement support for win64.

9 years ago[xbuild] Workaround for issues with CreateItem task where metadata are not generated...
Marek Safar [Wed, 17 Sep 2014 18:20:35 +0000 (20:20 +0200)]
[xbuild] Workaround for issues with CreateItem task where metadata are not generated due to up-to-data inputs. Fixes #23022

9 years agoMerge pull request #1288 from ylatuya/patch-2
Zoltan Varga [Wed, 17 Sep 2014 18:03:43 +0000 (14:03 -0400)]
Merge pull request #1288 from ylatuya/patch-2

[mkbundle] Fix check for dos2unix

9 years ago[runtime] Use statfs(2) on Android.
Jonathan Pryor [Wed, 17 Sep 2014 16:56:44 +0000 (12:56 -0400)]
[runtime] Use statfs(2) on Android.

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

Reverts commit 53ce92470.

Commit 53ce92470 disabled use of statfs(2) on Android, for unspecified
reasons. (My *suspicion* is that the Android version mono was
originally ported to didn't have statfs(2), but I can neither confirm
nor deny that guess.)

Android has supported statfs(2) since API-4 Android v1.6 (in that
statfs(2) is in the header files); what's missing is MNT_RDONLY. What
IS present is MS_RDONLY, which appears to serve the same purpose.

Re-enable use of statfs(2) and use MS_RDONLY when building against the
Android NDK.

9 years ago[mkbundle] Fix check for dos2unix
Andoni Morales Alastruey [Wed, 17 Sep 2014 14:17:33 +0000 (16:17 +0200)]
[mkbundle] Fix check for dos2unix

This fixes the command to check for dos2unix and makes mkbundle usable again with mingw.
We need first to redirect the standard input, otherwise the check always fails with an InvalidOperationException and set CreateNoWindow=false to avoid spawning a new window.

9 years ago[xbuild] Fix few crashes when task loading fails
Marek Safar [Wed, 17 Sep 2014 09:19:05 +0000 (11:19 +0200)]
[xbuild] Fix few crashes when task loading fails

9 years ago[jit] Make calls from gshared to gsharedvt sharable methods indirect since otherwise...
Zoltan Varga [Wed, 17 Sep 2014 03:17:39 +0000 (23:17 -0400)]
[jit] Make calls from gshared to gsharedvt sharable methods indirect since otherwise at runtime we might find an instantiation and we cannot patch the call, leading to performance problems. Fixes #23021.

9 years agoFix mobile and mobile_static profiles
Michael Hutchinson [Tue, 16 Sep 2014 20:22:02 +0000 (16:22 -0400)]
Fix mobile and mobile_static profiles

And bring them to parity with monodroid and monotouch

9 years ago[WCF]: Update to my last fix for bug #22129.
Martin Baulig [Tue, 16 Sep 2014 19:30:34 +0000 (21:30 +0200)]
[WCF]: Update to my last fix for bug #22129.

The problem already starts when creating the OperationDescription; we need
to also look at the End* method here to correctly parse the reply parameters.

Then ClientRuntimeChannel.Process needs to distinguish between sync/async
and copy the out/byref parameters when needed.

9 years ago[runtime] Make stack walks done by the sampling profiler async safe.
Zoltan Varga [Tue, 16 Sep 2014 19:07:35 +0000 (15:07 -0400)]
[runtime] Make stack walks done by the sampling profiler async safe.

9 years ago[mcs] struct parameterless instance constructors
Marek Safar [Tue, 16 Sep 2014 17:19:04 +0000 (19:19 +0200)]
[mcs] struct parameterless instance constructors

9 years ago[runtime] Disable VS warnings C4273 (inconsistent dll linkage), and C4005 (macro...
Zoltan Varga [Tue, 16 Sep 2014 03:30:40 +0000 (23:30 -0400)]
[runtime] Disable VS warnings C4273 (inconsistent dll linkage), and C4005 (macro redefinition). The former occurs becase we mark exported function declarations using MONO_API, but not the definitions. The latter occurs because we define _WINSOCKAPI_.

9 years ago[runtime] Fix the my_g_bit_nth_msf () function for win64.
Zoltan Varga [Tue, 16 Sep 2014 02:10:23 +0000 (22:10 -0400)]
[runtime] Fix the my_g_bit_nth_msf () function for win64.