Compare commits

...
Author SHA1 Message Date
Rodrigo Kumpera bcc380d6ba [runtime] Instrument mono_domain_alloc 2014-09-16 18:16:47 -04:00
Rodrigo Kumpera 8516f578ee [runtime] Instrument image and image set mempool allocation. 2014-09-16 16:58:17 -04:00
Rodrigo Kumpera feaa6e19fb [runtime] Implement runtime valloc reporting. 2014-09-08 19:24:31 -04:00
Rodrigo Kumpera e8953e705c Properly name all sgen_alloc_os_memory. 2014-09-08 17:12:58 -04:00
Rodrigo Kumpera 130f08e943 Add reporting to jitinfo. 2014-09-08 17:11:11 -04:00
Rodrigo Kumpera 89558be055 [runtime] Finish metadata reporting. 2014-09-08 16:55:45 -04:00
Rodrigo Kumpera f2c8417122 [runtime] Proposed implementation of the memory profiler.
To get a small taste of it in action run the following program with it:

sing System;
using System.Net;
using System.Runtime.InteropServices;
using System.Linq;

public class Test
{
	[DllImport ("__Internal")]
	public static extern void mono_memprof_dump ();

	static int MethodThatDoesLinq () {
		int[] x = new[] { 1,2,3,4};
		var k = x.Where (_ => _ <= 100).Select (_ => _ + 1);
		int r = 0;
		foreach (var v in k)
			r += v;
		return r;
	}
	public static void Main ()
	{
		mono_memprof_dump ();
		MethodThatDoesLinq ();
		Console.WriteLine ("----------------------");
		mono_memprof_dump ();
	}
}
2014-09-08 02:27:09 -04:00
Zoltan Varga 4b6a2c8f89 Fix a warning. 2014-09-05 20:07:13 -04:00
Zoltan Varga 729bbe4041 [jit] Store the epilog length in MonoArchEHJitInfo instead of encoding it in jinfo->unwind_desc, since the latter can overflow for methods with large epilogs. Fixes #22685. 2014-09-05 18:07:42 -04:00
Zoltan Varga 3795639a4a Fix the linux build. 2014-09-05 17:18:18 -04:00
Zoltan Varga c8c4bd9a78 [runtime] Fix the linux build. 2014-09-05 15:46:19 -04:00
Martin Baulig 24fbaedcd2 [WCF]: Actually fix #22179 to allow concurrent requests.
Pass the 'OperationContext' around in a parameter instead of storing it
in an instance field to make this thread-safe.
2014-09-05 18:59:21 +02:00
Zoltan Varga 385f84f18c [aot] Emit aot logging information to a per-assembly file when using the AOT cache. Cache aot failures. 2014-09-04 23:31:50 -04:00
Zoltan Varga 4f916f178b [aot] Print error messages to the aot logfile as well, avoid exiting the process on failures. 2014-09-04 20:06:53 -04:00
Zoltan Varga 39c87f6f69 [aot] Allow the redirection of output messages from the AOT compiler to a logfile. 2014-09-04 19:11:30 -04:00
Zoltan Varga d84d1a94a0 Fix the build. 2014-09-04 17:38:16 -04:00
Zoltan Varga ad8236ebb8 [runtime] Get rid of the Makefile.am.in->Makefile.am change in metadata/, its not needed. 2014-09-04 17:34:36 -04:00
Marek Safar 2b88d02356 [mcs] recursive pattern with named arguments 2014-09-04 15:12:21 +02:00
Marek Safar 806b95d844 [mcs] recursive pattern matching 2014-09-04 10:37:50 +02:00
Marek Safar e83f4a2ab3 Merge pull request #1254 from vkargov/master
[corlib] Take daylight change info for the current year in TimeZoneTest.cs
2014-09-03 20:30:38 -09:00
Alexis Christoforides 5d80954463 Bump Mono version -> 3.10.1 2014-09-04 00:15:40 -04:00
Zoltan Varga c7b3d5c3ba Revert "[build] Include mono/utils into the extensions module."
This reverts commit b760456501.

Revert this as it is not needed.
2014-09-03 21:20:33 -04:00
Zoltan Varga f746fe8d1b Revert "[build] Deps tracking for mono/utils/Makefile.am when extension module is disabled."
This reverts commit a2e939a8a3.

Revert this as is not needed.
2014-09-03 21:20:11 -04:00
Zoltan Varga d2cee144fe [sgen] Use mono_thread_info_get_stack_bounds () on win32 as well, the stack bottom value returned by it is correct, only the stack top value is unusable, since windows dynamically extends the stack. 2014-09-03 18:15:15 -04:00
Rodrigo Kumpera 43177ef54b [utils] Add android extension point to threading. 2014-09-03 16:58:30 -04:00
Rodrigo Kumpera a2e939a8a3 [build] Deps tracking for mono/utils/Makefile.am when extension module is disabled. 2014-09-03 16:34:18 -04:00
Rodrigo Kumpera b760456501 [build] Include mono/utils into the extensions module. 2014-09-03 16:32:30 -04:00
Rodrigo Kumpera 748fefa1d7 [runtime] Cleanup the horrible ifdef hell that is the stack bounds discovery code.
This split a single chunk of intractable ifdef hell into a beautiful set of per-target
files.

This will allow us to actually figure out what's going on on each target.
2014-09-03 16:30:35 -04:00
Zoltan Varga 4c1155f40a Merge pull request #1252 from alesliehughes/master
Stop warning about winsock2.h being included before windows.h
2014-09-03 14:44:32 -04:00
Vladimir Kargov 59668db7f4 [corlib] In a TimeZone test, UtcOffset is taken for the current year, so take DaylightChanges for the current year as well. 2014-09-03 16:36:35 +04:00
Alistair Leslie-Hughes ec2b629fa9 Stop warning about winsock2.h being included before windows.h
This change is released under the MIT license.
2014-09-03 19:51:11 +10:00
Zoltan Varga f9b27e2e73 Fix a warning. 2014-09-02 21:10:11 -04:00
Zoltan Varga 541639c3bb [runtime] Load the runtime config file before initializing the runtime, so it can pick up the aot-cache configuration information. 2014-09-02 20:25:16 -04:00
Zoltan Varga 883f9399f4 [runtime] Add an 'app' attribute to the 'aotcache' config section to specify which apps should use the AOT cache. 2014-09-02 20:22:05 -04:00
Marek Safar b5fcd926f8 Merge pull request #1251 from esdrubal/utf8encoding
UTF8Encoding Fallback
2014-09-02 06:43:40 -09:00
Marcos Henrich f79c64942e Changed overlong byte to be processed again.
The byte is processed again because it can be the begin of a new multi-byte encoded character.
2014-09-02 23:14:09 +08:00
Marcos Henrich 91fa140dd0 Changed UTF8Encoding to call fallback with whole byte sequences.
Removed unnecessary parameters ref byte [] bufferArg.
This changes are required by UTF8EncodingTest.EncodingFallback that in some cases is expecting multibyte values..
2014-09-02 22:57:26 +08:00
Marcos Henrich 3d332ac26d Added UTF8EncodingTest.EncodingFallback.
EncodingFallback tests for multiple invalid inputs the unknownBytes that are given to the DecoderFallback.
2014-09-02 22:55:52 +08:00
Miguel de Icaza a7b779648b Bring fix for Cecil, includes fix for F#/Fody 2014-09-02 10:49:41 -04:00
Marcos Henrich 60aa49b35b Added class EncodingTester that can be used to test fallbacks.
EncodingTester is a testing helper class with a method TestDecoderFallback that makes DecoderFalback testing  easier.
2014-09-02 22:42:54 +08:00
Marek Habersack 10d4e76525 Do not specify key file when building for mobile, it should be passed on command line 2014-09-02 14:32:12 +02:00
Marcos Henrich 09bb2dc4bd Changed InternalGetCharCount to iterate the bytes as InternalGetChars. 2014-09-02 18:38:20 +08:00
Marek Safar fca9b48556 [mcs] more nonliteral constants pattern matching 2014-09-02 11:55:45 +02:00
Marek Habersack 38b25dc65a This method is internal in the mobile profile 2014-09-02 00:33:44 +02:00
Marek Habersack 14fba61b9d Added System.IO.InternalBufferOverflowException class to the mobile profile 2014-09-01 22:24:36 +02:00
Marek Habersack 58684cf2c4 Merge pull request #1249 from mattleibow/master
[system.data] DataRows with a NULL RowError incorrectly indicated HasError
2014-09-01 21:47:43 +02:00
Zoltan Varga eeb1227133 [runtime] Further reduce the usage of the loader lock in the metadata code by moving code out of locked regions and using the image lock instead. 2014-09-01 14:39:06 -04:00
Matthew Leibowitz a3c1bebc45 [system.data] DataRows with a NULL RowError incorrectly indicated HasError:
- MS.NET allows RowError to be set to NULL, but will convert it to string.Empty
2014-09-01 11:03:03 -07:00
Zoltan Varga bd8782b061 [runtime] Use a separate lock to protect global data structures in classes.c. 2014-09-01 13:05:25 -04:00
Zoltan Varga 03e4fe45d7 Disable a sys.data test which fails on wrench because of an old sqlite version. 2014-09-01 12:51:53 -04:00
Zoltan Varga f6ae9f133d Bump version to 3.10. 2014-09-01 11:47:11 -04:00
Zoltan Varga 00612b8049 [runtime] Factor out the nested types computation code from mono_class_get_nested_types () and reorganize it so most of the work is done outside the loader lock. 2014-09-01 11:40:56 -04:00
Zoltan Varga ea77a1201c [runtime] Use the image locks in many places instead of the loader lock. 2014-09-01 11:40:56 -04:00
Zoltan Varga 98ef62b1d1 [runtime] Remove a missed mono_loader_unlock () from mono_metadata_get_header (). 2014-09-01 11:40:55 -04:00
Zoltan Varga c73f87c669 [runtime] Reorganize mono_method_signature_checked () so most of the work is done outside the loader lock. 2014-09-01 11:40:55 -04:00
Zoltan Varga e043529add [runtime] Reorganize mono_method_get_header () so most of the work is done outside the loader lock. 2014-09-01 11:40:55 -04:00
Zoltan Varga 6730dfbf80 [runtime] Remove locking from the mono_get_method_constrained_... () functions, its not needed. 2014-09-01 11:40:55 -04:00
Zoltan Varga f5a0a351c2 [runtime] Reorganize mono_class_setup_interfaces () so most of the work is done outside the loader lock. 2014-09-01 11:40:54 -04:00
Zoltan Varga ff9b6836d2 [runtime] Move the initialization of class->has_finalize into mono_class_has_finalizer () in most cases. 2014-09-01 11:40:54 -04:00
Zoltan Varga e87e75fe3a [runtime] Reorganize mono_class_setup_methods () so most of the work is done outside the loader lock. 2014-09-01 11:40:54 -04:00
Zoltan Varga a3f28b43f7 [runtime] Reorganize mono_class_has_finalizer () so most of the work is done outside the loader lock. 2014-09-01 11:40:54 -04:00
Zoltan Varga 042114b194 [runtime] Reorganize mono_class_setup_events () so most of the work is done outside the loader lock. 2014-09-01 11:40:53 -04:00
Zoltan Varga 8dac2761fc [runtime] Reorganize mono_class_setup_properties () so most of the work is done outside the loader lock. 2014-09-01 11:40:53 -04:00
Zoltan Varga 7704a952f6 [runtime] Use the image lock in mono_type_from_typespec () instead of the loader lock. Also do most of the work outside the lock. 2014-09-01 11:40:53 -04:00
Rodrigo Kumpera 2c6b6ff553 Merge pull request #1246 from schani/feature-separate-pointer-queue
[sgen] Refactor pointer queue out of pinning code.
2014-09-01 10:13:41 -04:00
Marek Safar 79ea6ce4d0 Put back csharp project removed in 0450000dc4 2014-09-01 14:58:32 +02:00
Marek Safar 20c85188ab [mcs] Fix removing incomplete generic types from eval cache. Fixes #22393 2014-09-01 14:57:23 +02:00
Marek Safar 05feed5de7 [mcs] Parsing of ternary expressions whose then condition is a lambda. Fixes #22523 2014-09-01 13:26:48 +02:00
Marek Safar 11ac4dfb22 [mcs] Remove wrong test 2014-09-01 13:22:21 +02:00
Marek Safar 6e6ad378c0 Fixes c2ac44d3dd 2014-09-01 12:43:32 +02:00
Marek Safar c2ac44d3dd [system.data.linq] Delay reflection hit to actual execution point. Workarounds #22522 2014-09-01 11:22:57 +02:00
Marek Safar bcf33452dd [system.net.http] Update RequestMessage.RequestUri.AbsoluteUri after redirect. Fixes #22383 2014-09-01 10:10:30 +02:00
Zoltan Varga 5646004e39 [runtime] Fix the windows build. 2014-08-31 04:34:18 -04:00
Marek Safar 01bc7c1923 [mcs] Revert to broken native csc definite assignment for structs 2014-08-30 14:04:16 +02:00
Marek Safar c8b482d640 [mcs] nonliteral constants pattern matching 2014-08-30 14:04:16 +02:00
Marek Safar 723dc9ad6f [xbuild] Fix InstalledAssemblyTables signature 2014-08-30 14:04:15 +02:00
Marek Safar 8897b572c7 [mcs] simple constants pattern matching 2014-08-30 14:04:15 +02:00
Zoltan Varga 644ff6b019 [aot] Fix full-aot support when the AOT cache is enabled. 2014-08-29 23:47:33 -04:00
Zoltan Varga 567c08843d [jit] Avoid hardcoding tls offsets into the aot versions of the monitor enter/exit trampolines on amd64. 2014-08-29 23:47:01 -04:00
Zoltan Varga f8db51ecb4 [jit] Avoid uninitialized fields in the MonoDelegateTrampInfo structure. 2014-08-29 19:30:15 -04:00
Zoltan Varga 34df6ae34b [runtime] Fix reading past the end of a string when setting the native thread name. 2014-08-29 19:29:48 -04:00
Zoltan Varga 96b74d362a [runtime] Fix a problem introduced by 522663cdfa. 2014-08-29 17:42:37 -04:00
Zoltan Varga 522663cdfa [runtime] Add an adapter between the MonoPrintCallback and the eglib GPrintFunc types. 2014-08-29 17:03:23 -04:00
Mark Probst 2f126c13e8 [sgen] Refactor pointer queue out of pinning code. 2014-08-29 13:33:34 -07:00
Tom Hindle bb672ad95e Fix mono_marshal_free_ccw (). Fixes #22414. 2014-08-29 16:05:50 -04:00
Zoltan Varga bfc3336224 [bcl] Catch exceptions thrown by SerialPortStream.Dispose () when called from the finalizer. Fixes #15514. 2014-08-29 15:06:25 -04:00
Zoltan Varga abfd4b5732 [sdb] Fix the checking of the handshake message. 2014-08-29 15:04:40 -04:00
Zoltan Varga b8766a812d [runtime] Add functionality for AOTing assemblies on demand when they are first used. Configurable using a new "aotconfig" config element, i.e. <aotcache assemblies="mscorlib System"/>. 2014-08-29 15:02:52 -04:00
Zoltan Varga 8dea307fa4 [runtime] Add Steve Reid's public domain SHA1 code. 2014-08-29 15:01:26 -04:00
Rodrigo Kumpera 62b1e5a653 [eglib] Fix stderr output redirection. 2014-08-29 14:33:27 -04:00
Marek Safar 38c3874627 Merge pull request #1242 from esdrubal/xelement
Fixes XContainer attempt to create a XNode from a null value.
2014-08-29 01:16:24 -09:00
Marcos Henrich acb0cc0d7d Fixes XContainer attempt to create a XNode from a null value.
Fixes #20151.
2014-08-29 17:59:39 +08:00
Marcos Henrich 8308eb87e0 Test XElement constructed from array with null values as object.
Covers #20151.
2014-08-29 17:57:31 +08:00
Marek Safar b2d61a33a6 Merge pull request #1237 from esdrubal/xdocument
Changed XObject OnChanged and OnChanging to use Owner.
2014-08-28 21:05:14 -09:00
Marek Safar ba64d7a8eb Merge pull request #1241 from RyanMelenaNoesis/patch-1
Update X509CertificateValidationMode.cs
2014-08-28 21:03:44 -09:00
Ryan Melena 5b8dad3895 Update X509CertificateValidationMode.cs
Remove explicit enum values for sake of consistency with existing enum.
2014-08-28 20:26:08 -05:00
Alexis Christoforides c109e47433 Merge pull request #1240 from NoesisLabs/master
Correct duplicate X509CertificateValidationMode definition error
2014-08-28 20:21:58 -04:00
Ryan J. Melena b1446b1982 Correct duplicate X509CertificateValidationMode definition error caused by enum changing assemblies between .NET 4.0 and 4.5. 2014-08-28 19:01:48 -05:00
Zoltan Varga 03aee949f1 Merge pull request #1200 from akoeplinger/remove-jvm
[Cleanup] Remove TARGET_JVM
2014-08-28 19:17:43 -04:00
Rodrigo Kumpera 903c5e3aa6 Revert "Merge pull request #1219 from panzone/los_partial_marking"
This reverts commit 397176d701, reversing
changes made to 33c345a945.
2014-08-28 19:12:51 -04:00
Zoltan Varga 7ec9786a3f Merge pull request #1235 from directhex/master
Add g_Ctoc to list of acceptable g_* symbols in mono, for test-eglib-remap
2014-08-28 18:50:47 -04:00
Zoltan Varga fff41afa51 [runtime] Fix a crash in the logging profiler when enumerating elf images. 2014-08-28 16:44:55 -04:00
Rodrigo Kumpera dc75a4a86e Merge pull request #1238 from esdrubal/datetimeoffset
Fixed DateTime compiler errors.
2014-08-28 16:12:47 -04:00
Alexis Christoforides b27c2d690d Merge pull request #1236 from NoesisLabs/master
Support JWT functionality in System.IdentityModel.Tokens.Jwt
2014-08-28 16:08:46 -04:00
Marcos Henrich 4fa7c08306 Fixed DateTime compiler errors. 2014-08-29 03:58:03 +08:00
Marcos Henrich 8854761cc4 Changed XObject OnChanged and OnChanging to use Owner.
When XObject.Owner is not a XElement XObject.Parent returns null and the owner would not be notified of changing and changed events.
Fixes:#18772
2014-08-29 02:12:39 +08:00
Marcos Henrich 74afbbb110 Test XDocument.Changed event. Covers #18772. 2014-08-29 02:00:30 +08:00
Ryan J. Melena b7f40f6682 Add compiler pragmas for conditional .NET 4.5 compilation 2014-08-28 11:57:47 -05:00
Ryan J. Melena 7f0fc12f3a Add file comment headers. This change is released under the MIT license. 2014-08-28 11:57:46 -05:00
Ryan J. Melena ed1e4e2918 Fix VS changes to .csproj file. This change is released under the MIT license. 2014-08-28 11:57:45 -05:00
Ryan J. Melena 725b211d9f Minimal implementation of classes and methods necessary to support the JWT functionality in System.IdentityModel.Tokens.Jwt (https://github.com/MSOpenTech/azure-activedirectory-identitymodel-extensions-for-dotnet). This change is released under the MIT license. 2014-08-28 11:57:44 -05:00
Rodrigo Kumpera 397176d701 Merge pull request #1219 from panzone/los_partial_marking
[Sgen parallel collector] Los partial marking
2014-08-28 12:28:05 -04:00
Jo Shields 4b48ec236a Add g_Ctoc to list of acceptable g_* symbols in mono, for test-eglib-remap.
In theory, this test is used to verify that no unknown glib symbols exist
in eglib. However, it's tripping on g_Ctoc which is not a glib (or eglib)
symbol, instead it comes from the IO layer - and glib symbols never use
uppercase characters anyway
2014-08-28 17:26:31 +01:00
Marek Safar 33c345a945 Merge pull request #1234 from esdrubal/datetimeoffset
DateTime.CoreParseExact.
2014-08-28 07:06:30 -09:00
Marek Safar fee0db958c [xbuild] Allow metadata in skipped task output expressions 2014-08-28 17:44:42 +02:00
Marcos Henrich 5e86fba0b9 Removed unreachable code. 2014-08-28 23:43:10 +08:00
Marcos Henrich cb0d8221e0 Changed DateTimeOffset.ParseExact to use DateTime.CoreParseExact. 2014-08-28 23:39:03 +08:00
Marcos Henrich af977863fe Improved DateTime._DoParse offset logic. 2014-08-28 23:37:29 +08:00
Marcos Henrich 727b045f36 Removed line causing problems when 'K' was followed by something. 2014-08-28 23:35:48 +08:00
Marcos Henrich a95479875e Improved DateTime parsing of years.
Years with 5 or more digits and less than 1000 are now correctly parsed.
2014-08-28 23:31:19 +08:00
Marcos Henrich 8c9f47900c Created DateTime.CoreParseExact so to be used by DateTimeOffset. 2014-08-28 23:27:57 +08:00
Marek Safar 924d6216bf [mcs] Fixes failing error test 2014-08-28 16:35:59 +02:00
Marek Safar 121766abb9 [mcs] type pattern expression 2014-08-28 16:35:59 +02:00
Marcos Henrich 379be33c4e Changed DateTime._DoParser to support DateTimeOffset patterns. 2014-08-28 22:11:15 +08:00
Marek Safar 4b2ddc74cc Merge pull request #1233 from esdrubal/uriparserisbaseof
UriParser.IsBaseOf now explicitly throws ArgumentNullException.
2014-08-28 03:22:48 -09:00
Marcos Henrich 8c6e7faba3 UriParser.IsBaseOf now explicitly throws ArgumentNullException.
A change in Uri.Compare was making IsBaseOf to return false when arguments were null.
NullReferenceException is thrown by .NET, nonetheless the correct behavior is to throw a ArgumentNullException..
2014-08-28 19:46:35 +08:00
Marek Safar ed9291e086 Merge pull request #1232 from akoeplinger/fix-test
[MSBuild] Fixed a test that failed when the GAC wasn't available
2014-08-27 20:44:34 -09:00
Alexander Köplinger b45cd3f489 [MSBuild] Fixed a test that failed when the GAC wasn't available
PR #1229 added a test that relies on the GAC and fails when it isn't available, like when building on a clean machine with monolite.
Skip the test in that case.
2014-08-27 22:28:49 +02:00
Rodrigo Kumpera 88c3f0b7ec [runtime] Incorporate team feedback on the new logging APIs. 2014-08-27 15:47:43 -04:00
Alexander Köplinger 7152730bcd Fix badge URL in README.md, the previous one got cached by GitHub 2014-08-27 20:06:47 +02:00
Marek Safar 9330b9f221 [mcs] Add 6.0 to version error reporting 2014-08-27 17:56:17 +02:00
Marek Safar 5787f73a39 Merge pull request #1231 from esdrubal/gthreshold
Serializer were not generated if generationThreshold was changed.
2014-08-27 06:13:45 -09:00
Marcos Henrich baa495e78b Serializer were not generated if generationThreshold was changed. 2014-08-27 22:20:00 +08:00
Marek Safar 4866102820 Merge pull request #1230 from esdrubal/xslattribute
Process XslLiteralElements with only child attributes as empty ones.
2014-08-27 03:58:41 -09:00
Marcos Henrich af4dcd117d Process XslLiteralElements with only child attributes as empty ones.
Fixes #14751
2014-08-27 20:51:49 +08:00
Marcos Henrich d7f5c71baa Test xls transformation of single child node to an attribute. 2014-08-27 20:20:47 +08:00
Sebastien Pouliot 2332ba9a10 [eglib] Fix logging on iOS (asl_vlog != asl_log)
asl_vlog last parameter is a va_list and giving it a char* leads to crash
which calls our native unhandled exception handler, which also tries to
log what happens making the watchdog unhappy about the food quality

0x000000008badf00d
2014-08-26 21:54:30 -04:00
Alexis Christoforides 813d6610ec Resolve build issues on Windows. 2014-08-26 15:49:19 -04:00
Zoltan Varga 3ccd45f8f3 Fix the build. 2014-08-26 15:01:24 -04:00
Martin Baulig 37d2e36ca9 [WCF]: Fix #22179 - 'finally' protect ClientRuntimeChannel.Begin/EndProcess(). 2014-08-26 20:00:44 +02:00
Marek Safar 7f030179c4 Merge pull request #1229 from andreiagaita/master
[MSBuild] Make sure assembly references with extensions are located correctly
2014-08-26 08:07:09 -09:00
Marek Safar f0afe2f9c4 [mcs] Predefined attibutes can have unresolved parameter types. 2014-08-26 17:13:41 +02:00
Marek Safar c106cdc775 [mcs] Put back future lang version for easier migration path 2014-08-26 13:46:16 +02:00
Marek Safar a8994e23a7 [mcs] Don't report error when predefined InterlockedCompareExchange_T is not available. 2014-08-26 13:39:15 +02:00
Marek Safar f5b09d21a5 [mcs] Hide backing fields in default debugger display 2014-08-26 10:02:38 +02:00
Marek Safar e1d28db6fc [mcs] Replace future with experimental 2014-08-26 10:02:37 +02:00
Marek Safar d87c706981 [mcs] Better error message 2014-08-26 10:02:37 +02:00
Marek Safar 8c6593f8a8 [system] Add AcceptWebSocketAsync signatures 2014-08-26 10:02:37 +02:00
Zoltan Varga ef5549b572 Update the LLVM backend to work with llvm branch mono-2014-08-23-b401e6b9699423409a055dc873e4d3f361a908c0. 2014-08-26 00:33:05 -04:00
T.J. Purtell 5d07b77a67 [runtime] Don't call mono_arch_handle_exception() when chaining
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=18763#c12
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=18763#c14
Context: http://stackoverflow.com/a/1789879/83444

mono_set_crash_chaining() was added in 8ffc4070 in order to better
support Android crash logs.

Crash logging in Android is "weird" (something we didn't know at the
time of 8ffc4070); when a process crashes on Android, ideally:

 1. The Android signal handler is executed,
 2. Bionic will attempt to connect to /system/bin/debuggerd.
 3. debuggerd will try to connect to the crashing process, then
    retrieve "useful" information from the crashing process (stack
    trace, register values, etc.)

The problem with 8ffc4070 was that there is a "window" between steps
(1) and (3) during which the crashing process continues to execute but
debuggerd hasn't attached to the process. It is possible that the
crashing process can thus exit before debuggerd has had a chance to
attach, killing the purpose of the crash logs.

Case in point: consider mono_sigsegv_signal_handler(). In 8ffc4070,
if mono_do_crash_chaining is TRUE, then Mono will execute:

  mono_handle_native_sigsegv (SIGSEGV, ctx);
  mono_chain_signal (SIG_HANDLER_PARAMS);
  mono_arch_handle_exception (ctx, NULL);

Because mono_chain_signal() doesn't block, abort the process, or
otherwise do anything to prevent execution from continuing, execution
will hit mono_arch_handle_exception(), which will exit the process.
If you're unlucky, this will happen before debuggerd has had a chance
to attach to the process.

The obvious fix is to prevent mono_arch_handle_exception() from being
invoked. The question is, *how*? jonp suggested [0] that after
mono_chain_signal() returns then _exit(2) or a busy loop could be
invoked. Unfortunately, _exit(2) makes the process exit explicit, and
~reliably prevents debuggerd from doing anything.

A busy loop doesn't work because it just causes the process to hang
within signal handler context, and debuggerd is never able to log
anything about the crashed process.

It would seem that the signal handler itself must exit without causing
the process to exit so that debuggerd has a chance to do ANYTHING,
otherwise nothing will happen reliably.

Thanks to T.J. Purtell for investigating and providing the patch.

[0]: https://github.com/mono/mono/pull/1206#issuecomment-52357802

--- Original commit message [formatted] ---

re #18763: After the chained handler executes, it may return to allow
the crashed instruction to be restarted or it may have taken
corrective action so the instruction can be resumed successfully.

For example, bionic resets the signal handler for SIGSEGV to default
expecting that the kernel will restart the offending instruction and
cause the kernel to abort the process.  Don't do mono exception
handling after chaining to support these types of signal management.
2014-08-25 23:54:36 -04:00
Jonathan Pryor 9e7713121b [eglib] Fix compilation on PLATFORM_ANDROID.
Compilation of eglib/src/goutput.c was broken in commit 989165e1:

	mono/eglib/src/goutput.c: In function 'monoeg_log_default_handler':
	mono/eglib/src/goutput.c:159:75: error: 'args' undeclared (first use in this function)
	  __android_log_vprint (to_android_priority (log_level), log_domain, "%s", args);
	                                                                           ^
	mono/eglib/src/goutput.c:159:75: note: each undeclared identifier is reported only once for each function it appears in
	mono/eglib/src/goutput.c: In function 'default_stdout_handler':
	mono/eglib/src/goutput.c:168:2: error: incompatible type for argument 4 of '__android_log_vprint'
	  __android_log_vprint (ANDROID_LOG_ERROR, "mono", "%s", message);
	  ^
	mono/eglib/src/goutput.c:139:0:
	$ANDROID_NDK_PATH/platforms/android-4/arch-arm/usr/include/android/log.h:109:5: note: expected 'va_list' but argument is of type 'const gchar *'
	 int __android_log_vprint(int prio, const char *tag,
	     ^
	mono/eglib/src/goutput.c: In function 'default_stderr_handler':
	mono/eglib/src/goutput.c:175:2: error: incompatible type for argument 4 of '__android_log_vprint'
	  __android_log_vprint (ANDROID_LOG_ERROR, "mono", "%s", message);
	  ^

(The cause of the breakage is that __android_log_vprint() takes a
va_args parameter, which is no longer present in 989165e1.)

Use __android_log_write() instead of __android_log_vprint().

Note: __android_log_write() writes a "simple string" to `adb logcat`,
meaning there is no printf(3)-style formatting applied.
2014-08-25 22:58:30 -04:00
Sebastien Pouliot 28d400df31 [corlib] Update ClaimsPrincipalTest to avoid Is[Not]Empty as this is not part of NUnitLite 1.0 (and can't be run on XiOS) 2014-08-25 20:43:31 -04:00
Rodrigo Kumpera debdc1c127 [eglib] Restore previous defaults for some platforms. 2014-08-25 14:51:07 -04:00
Rodrigo Kumpera 97c8674bf4 [msvc] Fix release 64bits builds. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 1996d664b4 [jit] Ensure no threads are running when the JIT is asked to cleanup. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 8c36d76bd2 [utils] Add runtime API for output redirection, logging and aborting. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 0a08dede53 [eglib] g_assertion_message should not abort, g_logv will do it. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 989165e12f [eglib] Add log/print redirection functions to eglib. 2014-08-25 14:42:22 -04:00
Martin Baulig 7d8798c15d [System]: WebClient.OpenWrite() must get the response on close; fixes #10163.
When the stream returned by WebClient.OpenWrite() / OpenWriteAsync() /
OpenWriteTaskAsync(), we need to call GetResponse() and read the full
response.

Unfortunately, there is no async API available for this, so this API should
not be used in async applications.
2014-08-25 18:15:49 +02:00
Martin Baulig d56c28373b [System]: Fix WebClient.UploadValuesTaskAsync(); bug #20359. 2014-08-25 18:15:48 +02:00
Marcos Henrich 5d2f303311 Test DateTimeOffest parsing of partial dates. 2014-08-25 23:51:37 +08:00
Marek Safar 60d9c66011 [msbuild] corcompare public API 2014-08-25 14:00:05 +02:00
Marek Safar 8c5488e79c [corlib] Fix ClaimsIdentity claim value comparison 2014-08-25 13:12:42 +02:00
Marek Safar 336382e2b1 [corlib] corcompare update 2014-08-25 13:12:42 +02:00
Marek Safar 4eb632730e Merge pull request #1224 from esdrubal/codecompiler
Changed mono_path profile replacement to be case insensitive.
2014-08-25 12:56:04 +02:00
Marek Safar 78b1cde8fc Merge pull request #1223 from esdrubal/xmlgenerator
Test SerializationCodeGenerator.
2014-08-25 12:55:33 +02:00
Marek Safar f2b5c86467 Merge pull request #1226 from mattleibow/TransactionScope-InvalidTimoutNotThrowingException
[system.transactions] Throw exception when an invalid TimeSpan is provided
2014-08-23 07:54:03 +02:00
Matthew Leibowitz 5b4172c8cc [system.transactions] Throw exception when an invalid TimeSpan is provided:
- MS.NET throws
 - prevent construction when an invalid (negative) timeout is provided
2014-08-23 00:38:15 +02:00
Alexis Christoforides 96b66b3867 Added mono_string_from_utf32() 2014-08-22 17:11:11 -04:00
Marek Safar 0661867309 [corlib] Improve System.Security.Claims. Fixes #22282 2014-08-22 22:09:11 +02:00
Marek Safar 289331a627 [mcs] Handle partial entry point method 2014-08-22 22:09:11 +02:00
Marek Safar 2712774292 Remove unused mdb icall 2014-08-22 22:09:10 +02:00
Zoltan Varga 0d839a1e09 [runtime] Add a mono_thread_detach_if_exiting () public api function which can be called by embedding code to detach the runtime if the code is running from a pthread dtor. Fixes part of #21164. 2014-08-22 11:37:14 -04:00
Marcos Henrich a6a4d75dda Changed mono_path profile replacement to be case insensitive. 2014-08-22 22:20:53 +08:00
Marcos Henrich 9d2ede6010 Fixed serialization of XmlNode field with attribute XmlAnyElement.
Fixes #3211.
2014-08-22 21:50:40 +08:00
Marcos Henrich 24bfa83876 Added missing XmlTypeMapping.IsAny logic.
This complements commit 05444c7c1c570db730f17b6d15dd66d3728b6.
2014-08-22 21:50:39 +08:00
Marcos Henrich 9f52a988cf Replaced incorrect bool.ToString() by GetLiteral(bool). 2014-08-22 21:50:39 +08:00
Marcos Henrich 1e5ce9cc4f Added GetTypeFullName, fixes wrong nullable valuetype names. 2014-08-22 21:50:38 +08:00
Marcos Henrich 526cbd5ced Changed UsageCount and generationThreshold to zero based. 2014-08-22 21:46:38 +08:00
Marek Safar 93e590439c [xbuild] Resolve output properties for skipped task to match task output when it's not skipped 2014-08-22 09:24:40 +02:00
Marcos Henrich 5df652e7d2 Test SerializationCodeGenerator.
XmlSerializerTests was mostly testing XmlSerializationReaderInterpreter and XmlSerializationWriterInterpreter.
XmlSerializerGeneratorTests forces the usage of SerializationCodeGenerator while running XmlSerializerTests.
2014-08-22 02:56:05 +08:00
Marcos Henrich dd6aca8621 Tests serialization of XmlNode field with attribute XmlAnyElement.
Covers #3211.
2014-08-22 02:42:19 +08:00
Andreia Gaita 5e8e4f3883 [MSBuild] Make sure assembly references with extensions are located correctly 2014-08-21 18:30:47 +01:00
Alex Rønne Petersen 8020aafc3b Update badge URL in README.md. 2014-08-21 18:30:17 +02:00
Alex Rønne Petersen 105c916504 Fix a warning in mono-conc-hashtable. 2014-08-21 18:23:06 +02:00
Alex Rønne Petersen 0d8ddc225a Remove unused/undefined function. 2014-08-21 18:23:06 +02:00
Marek Safar 8376abf928 Merge pull request #1221 from LogosBible/uri-compare
Fix NullReferenceException in Uri.Compare when only one of the Uris is null
2014-08-21 15:51:12 +02:00
Alex Rønne Petersen 0cdfb23e29 Merge pull request #1172 from roji/datarow_null
Fix DataRow error management
2014-08-21 14:59:28 +02:00
Martin Potter d990d904c4 Fix NullReferenceException in Uri.Compare when only one of the Uris is null 2014-08-21 05:52:38 -07:00
Marek Safar f070b646f6 [corlib] Handle String::Format with escaped closing }. Fixes #22114 2014-08-21 10:35:38 +02:00
Zoltan Varga bdeb6123fd [jit] Use mini_type_stack_size () instead of mono_type_size () in the stack slot allocation code, this aligns vtype size to a multiple of the pointer size, preventing problems when vtypes are returned in registers on some platforms like arm64. 2014-08-20 21:39:46 -04:00
Miguel de Icaza e9b93e2788 Merge pull request #1189 from joelmartinez/docs-64bit-squash
MDoc and monodoc.dll changes to support iOS 64Bit API
2014-08-20 16:56:57 -04:00
Zoltan Varga 776efa6920 [jit] Fix the switching of domains in native-to-managed wrappers, previously this only worked in some cases. 2014-08-20 13:55:28 -04:00
Marek Safar e57c1ed37d [mcs] Emit event fields even when compare-and-exchange is not available 2014-08-20 15:54:06 +02:00
Marek Safar 37e33ceb3e [mcs] Easy restrictions on enum base type epxression 2014-08-20 13:16:55 +02:00
Marek Safar ebcc2ee853 [corlib] Task never is CompletedSynchronously 2014-08-20 12:01:42 +02:00
Marek Safar 8aa250524c Fix wrong time test 2014-08-20 09:01:57 +02:00
Jo Shields 7178ce2c40 Switch to using jenkins.mono-project.com for DNS tests
This test requires a simple single mapping for Hostname<->IP with one IP and reverse DNS. Using EC2-hosted sites doesn't work as they don't have valid reverse DNS. Use the Jenkins subdomain, since that fits the criteria.
2014-08-20 07:20:41 +01:00
Marek Safar ca5e18f6a9 [mcs] Clean-up flow analysis for boolean expressions 2014-08-20 08:20:26 +02:00
Marek Safar 09f73f3070 [mcs] Null operator flow analysis 2014-08-20 08:20:26 +02:00
Mark Probst c69e743177 [sgen] Small simplification of sgen_pin_objects_in_section().
We only have one section, which is the nursery, so don't even pass it in.
Furthermore, it's only called locally, so make it static.
2014-08-19 12:17:50 -07:00
Mark Probst f35fa6adf5 [sgen] Simplify pin_objects_from_addresses() and fix potential performance issue.
In the case where more than one pointer pointed to the same empty region within
the nursery we would search through that empty region for each pointer instead of
just once.
2014-08-19 12:17:50 -07:00
Mark Probst 4564b54ded [sgen] Sanitize and fix pin_objects_from_addresses().
Assume we have an object at address 0x1000, with size 0xf0, then
a hole of size 0x10, and the next object starting at 0x1100, of
size 0x20.  In the pin queue we have the addresses 0x10f8 and
0x1100.

When we process the first pin queue entry, 0x10f8, we jump over
the object at 0x1000, to 0x10f0.  Then we skip the hole and end
up at 0x1100.  We set last_obj to that address.  Then we check
against the pin queue entry we're looking for and find that we've
overshot it, so we end our search and go to the next pin queue
entry, 0x1100.  There's an object at that address, but because of
this check we don't pin it:

	if (addr >= last_obj && (char*)addr < (char*)last_obj + last_obj_size) {

addr == 0x1100, last_obj == 0x1100, last_obj_size == 0x20
2014-08-19 12:17:50 -07:00
Mark Probst b4c9630073 [sgen] Make optimizations in new bridge turn-offable at compile-time.
This will help find bugs.
2014-08-19 12:09:34 -07:00
Mark Probst 8a56cba5b7 [sgen] Fix new bridge implementation. 2014-08-19 12:09:34 -07:00
Andrea Francesco Iuorio 24ef95ece8 [Sgen] Implement partial marking for big array of objects
This commit changed the gray stack to support work items. When a big
array of objects is marked, Sgen now create several work items. Every
work item rappresents a pieces of the array that must be scanned.
Since they are different pieces, the workers can now parallel scan
and mark the array, resulting in a better work distribution between
the workers.

I release this change under the MIT license.
2014-08-19 20:38:23 +02:00
Andrea Francesco Iuorio 30a627f9a8 [Sgen] Transport scan macros from sgen-descriptor.h to sgen-scan-object.h
This commit transport the scan macro from sgen-descritor.h to
sgen-scan-object.h. This is useful for modify at compile time
the scan macro according to the scan function.

I release this change under the MIT license.
2014-08-19 20:37:39 +02:00
Marek Safar 5c42807469 Merge pull request #1213 from fengari/system_timers_timer_opt
System.Timers.Timer optimization and small correction
2014-08-19 16:59:50 +02:00
Marek Safar 2c6797db48 [mcs] Add more error checks 2014-08-19 10:34:54 +02:00
fengari b3251b6248 Do not dispose the underlying Timer every time the Enabled is set to false, keep it around for as long as this Timer exists. Throw ObjectDisposedException on Enabled setter. ArgumentException throwing according to docs. Removed 'disposed' field. DueTime for underlying timer changes only if enabled (as per docs). Check for already disposed in Dispose(). Not firing Elapsed if disposed. Unit tests. 2014-08-19 11:21:52 +03:00
Marek Safar 74ad56cdfa [mcs] Complex binary logical expressions flowanalysis 2014-08-19 09:34:39 +02:00
Marek Safar a41a626dab [mcs] More warnings for lifted nullable operators working on value types 2014-08-19 09:26:25 +02:00
Marek Safar 9c46884097 Merge pull request #1216 from AndreyAkinshin/master
Removing excess line with debug Console.WriteLine
2014-08-19 09:00:58 +02:00
Andrey Akinshin 4be0d33040 Removing excess line with debug Console.WriteLine 2014-08-19 11:27:33 +07:00
Zoltan Varga 68e5cc395f [bcl] Add a missing check to TypeBuilder.CreateType (). Fixes #22059. 2014-08-18 21:38:50 -04:00
Zoltan Varga aa3e8cb211 Fix a warning. 2014-08-18 18:24:49 -04:00
Marek Safar 5809028135 Merge pull request #1214 from esdrubal/xmlbase
Xml Serialization of Base class w/o a parameterless constructor.
2014-08-18 16:57:43 +02:00
Marcos Henrich 8fa4a77948 Xml Serialization of Base class w/o a parameterless constructor.
Removed validation code that did not allowed serialization of base classes without a parameterless constructor.
Fixes #6913.
2014-08-18 15:27:53 +01:00
Rodrigo Kumpera b0a2135f5c [utils] Improve error message in case of thread suspend fails. 2014-08-18 09:18:37 -04:00
Marcos Henrich 2c5f30d7bd Added test BaseClassWithoutParameterlessConstructor.
Covers #6913
2014-08-18 14:08:02 +01:00
Marek Safar 24005444c7 Merge pull request #1212 from esdrubal/isany
Fixed XmlSerializer to handle attribute XmlSchemePrivider.IsAny.
2014-08-18 12:45:04 +02:00
Marcos Henrich 38d56909d9 Fixed XmlSerializer to handle attribute XmlSchemePrivider.IsAny.
XmlSerializer no longer outputs a root element with class name when the class has the attribute XmlSchemeProvider and IsAny is true.
Fixes #11916
2014-08-18 11:42:05 +01:00
Marcos Henrich 6c5ea03852 Test XmlSerialization of class with XmlSchemaProvider with IsAny.
Covers #11916.
2014-08-18 11:40:58 +01:00
Rodrigo Kumpera a8a518752e [runtime] Fix malloc backend for mempools. 2014-08-17 02:40:42 -04:00
Zoltan Varga 6986ed5c1c Merge pull request #1210 from Mailaender/mono-core-parallel-build
Fixed parallel build for MCS dir-check
2014-08-16 15:51:29 -04:00
Matthias Mailänder 7e267ff2fe fix parallel build 2014-08-16 16:48:01 +02:00
Zoltan Varga eaa343fcba Merge pull request #1208 from Mailaender/ppc-build-fixes
PowerPC Garbage Collector build fixes
2014-08-16 10:11:15 -04:00
Marek Safar 557ad88e3d [mcs] Extend missing type check to type lookups. Fixes #20933 2014-08-16 14:49:38 +02:00
Marek Safar 2c037b85c6 [mcs] Fix copy and paste error in constraints checker. Fixes #22131 2014-08-16 14:49:37 +02:00
Marek Safar 76efee0a49 Merge pull request #1207 from nlhepler/master
Fix buffer overflow for long paths in jay
2014-08-16 10:27:56 +02:00
Matthias Mailänder 58de3013d1 fix ppc build failures 2014-08-16 08:28:55 +02:00
Lance Hepler 015e847e11 Handle long paths in jay 2014-08-15 16:06:11 -07:00
Zoltan Varga 5ab34b2477 [jit] Fix yet another native types problem. Fixes #22053. 2014-08-15 15:32:00 -04:00
Marek Safar 230b3bfce4 [mcs] Add dictionary initializer 2014-08-15 20:51:18 +02:00
João Matos d34210d900 [System.IO.Compression] Fixed Zip support for empty directories. 2014-08-15 19:13:30 +01:00
Joel Martinez a8d74cc095 [mdoc] Changed 'old' and 'new' to 'classic' and 'unified' per feedback. 2014-08-15 11:19:48 -04:00
Zoltan Varga 31e92f2442 [runtime] Fix the leaking of mach ports introduced by 98bbf8512a. Fixes #22068. 2014-08-15 09:56:47 -04:00
Zoltan Varga 12e4b4fed4 [runtime] Make more wrappers use a WrapperInfo structure. 2014-08-14 22:06:15 -04:00
Zoltan Varga 844ad76318 [runtime] Integrate calls to mono_wrapper_info_set () into mono_mb_create_and_cache () to fix races when a wrapper is placed into a cache without its wrapper info set. 2014-08-14 21:45:31 -04:00
Zoltan Varga 407b8163c8 [jit] Add support for constrained calls with vtype return types in gsharedvt code. Fixes #22109. 2014-08-14 15:54:55 -04:00
Zoltan Varga 8e3b2fa421 [jit] Fix the stack alignment checking code in the x86 trampolines. 2014-08-14 15:54:55 -04:00
Marek Safar 33023bf7de [mcs] Improve commit 409024fcab 2014-08-14 21:01:28 +02:00
Joel Martinez 8b6a9693bd [mdoc] Style updates per pull request feedback 2014-08-14 14:16:29 -04:00
Marek Safar 5aeec74842 [mcs] null propagating operator on delegate invocation 2014-08-14 19:05:27 +02:00
Marek Safar acb5527b57 Warnings cleanup 2014-08-14 19:05:27 +02:00
Marek Safar 409024fcab [mcs] Speed up nullable tokenizer. Fixes #20195 2014-08-14 19:05:27 +02:00
Joel Martinez 1051734504 [mdoc] Moved enumeration back into deferred mode.
This resolved an issue with the ecmadoc importer that assumed execution would be deffered in order to keep reading from the XmlReader
2014-08-14 11:07:43 -04:00
Marek Safar 5f5bed4643 Merge pull request #1188 from arktronic/master
[TimeZoneInfo] Fix DST bug and implement To/FromSerializedString
2014-08-14 14:16:19 +02:00
Marek Safar 62a15c8e13 [mcs] coalescing operator if the lhs of a null is a integer type that is larger than the integer type on the rhs. Fixes #22054 2014-08-14 11:50:54 +02:00
Marek Safar 512c1407b3 Merge pull request #1205 from akoeplinger/fix-tests
[System] Use xamarin.com instead of mono-project.com for DNS tests
2014-08-14 08:54:24 +02:00
Alexander Köplinger a81feba777 [System] Use xamarin.com instead of mono-project.com for DNS tests
The latter is now hosted on a different IP behind a CDN and the IP may change depending on location.
Using xamarin.com instead fixes the tests for now.
2014-08-14 01:21:20 +02:00
Joel Martinez 867299720c [mdoc] Fixed issue with assembly versions being added incorrectly 2014-08-13 17:11:03 -04:00
Ludovic Henry d273a16452 [jit] Disable delegate virtual optimisation while we are fixing it 2014-08-13 16:34:30 -04:00
Mark Probst 37dcfd1819 [sgen] Use a power of two as the cement hash size.
Cementing, specifically the hashing, showed up when profiling GC heavy
code.  This reduces the footprint.
2014-08-13 13:00:05 -07:00
Mark Probst 60a6084e9b [sgen] In the GC pause visualizer histogram, label the axis. 2014-08-13 13:00:04 -07:00
Mark Probst 0e2322f9d8 [gc] Measure Boehm GC time correctly. 2014-08-13 13:00:04 -07:00
Zoltan Varga 2ceb43d380 [runtime] Fix the PLATFORM_GNU check so it works with gnueabi etc. as well. Fixes #21520. 2014-08-13 15:33:40 -04:00
Zoltan Varga e46452652f [runtime] Don't make runtime invoke signatures generic. Fixes #21973. 2014-08-13 15:17:40 -04:00
Marek Safar db3eb16307 Merge pull request #1204 from VQComms/claimsprincipaloverloads
Added HasClaim, FindFirst, FindAll into ClaimsPrincipal
2014-08-13 20:22:22 +02:00
Marek Safar 9c377582d1 [mcs] null operator on address locations 2014-08-13 20:21:10 +02:00
Marek Safar c8c631ae2b [mcs] Check for duplicate destructors. Fixes #21983 2014-08-13 20:21:10 +02:00
Zoltan Varga a4f96bc571 [aot] Fix a small memory leak. 2014-08-13 13:59:19 -04:00
Jonathan Channon db06435616 Added space before parenthesis according to Mono guidelines 2014-08-13 18:11:11 +01:00
Jonathan Channon 05bf78d278 added HasClaim, FindFirst, FindAll System.Security.Claims.ClaimsPrincipal method overloads - This change in released under the MIT license. 2014-08-13 17:57:55 +01:00
Atsushi Eno 0322d96b73 [MS.Build] when building MSBuild task, inherit properties.
This makes difference when the build has started from a solution especially
via command line with /p option. Those command-line-passed properties need
to be inherited to each project, but they weren't.
xbuild worked fine here.
2014-08-13 19:35:18 +09:00
Atsushi Eno 778c3b5a02 [MS.Build] add test regarding item condition and target-generated property. 2014-08-13 19:35:12 +09:00
Marek Safar b8d8f62956 [mcs] nameof operator with unbound type arguments 2014-08-13 07:05:10 +02:00
Zoltan Varga be86c5d406 [arm64] Allow v8..v15 in unwind info on arm64. Fixes part of #21615. 2014-08-12 19:52:47 -04:00
Joel Martinez 49699b8188 [mdoc] Fixed an issue with type-file path resolution.
In certain cases, such as stubbing out namespace-less classes it was failing to produce the right paths.
2014-08-12 17:45:54 -04:00
Joel Martinez 2cb5217d48 [mdoc] Added preserver.cs to build script so make compiles 2014-08-12 17:44:17 -04:00
Zoltan Varga abb5e6f7e1 Merge pull request #1161 from ludovic-henry/pr22-delegate-virtual-trampoline
[delegate virtual] Improve trampoline caching
2014-08-12 13:53:49 -04:00
Ludovic Henry 8022fec251 [delegate-virtual-trampoline] Add virtual functions delegate trampoline support
This optimization is activated in the ldvirtftn + delegate case, and is deactivated in the case where the architecture does not support it (mono_arch_get_delegate_virtual_invoke_impl return NULL)
2014-08-12 13:30:45 -04:00
Ludovic Henry 87b5b1c6ca [delegate-virtual-trampoline] Add virtual parameter to existing JIT time code path 2014-08-12 13:30:45 -04:00
João Matos 025877a34b [System] Restrict GZip/DeflateStream tests to .NET 4.5. 2014-08-12 17:36:26 +01:00
João Matos f39bebefea [System] Implemented .NET 4.5 overloads for GZipStream and DeflateStream.
Fixes xambug #21982.
2014-08-12 16:17:08 +01:00
Paolo Molaro 374b71131e [runtime] Fix logic when allocating code region if the first try at a fixed address fails. 2014-08-12 15:31:18 +02:00
Marek Safar e7dbeee80d Re-enable valid tests 2014-08-12 10:34:33 +02:00
Marek Safar 2f043e033d [System.Net.Http] Handle quoted filename value. Fixes #21960 2014-08-12 10:31:32 +02:00
Marek Safar b184bbea53 [corlib] Remove heavyweight EndsWith from 1bff9d890f 2014-08-12 08:49:29 +02:00
Marek Safar cd48aae3b8 [mcs] nameof operator 2014-08-12 08:16:21 +02:00
Marek Safar 147d410929 [mcs] Any type parameter is allowed for null propagating operator 2014-08-12 08:16:21 +02:00
Marek Safar 7bdcefb038 [mcs] auto-property initializer can be array initializer 2014-08-12 08:16:20 +02:00
Miguel de Icaza 7c9d050961 Merge pull request #1192 from LogosBible/regex-fixes-21803
Regex substring fix
2014-08-11 23:27:48 -04:00
Atsushi Eno 82f411d44a [ms.build] add some cyclic dependency related tests (some are not working). 2014-08-11 21:53:35 +09:00
Atsushi Eno 7ec59c3177 [ms.build] Fix bug #20961 - add KeepDuplicates etc. to 4.0 as internal.
Since NET_4_0 and NET_4_5 share the same ToolsVersion (4.0) there seems no
way to distinguish the appropriate framework .targets file, so I ended up
to add the missing members as internal for 4.0.
2014-08-11 21:53:34 +09:00
Atsushi Eno d09be4600c [ms.build] Do not try to release threads upon finalization. 2014-08-11 21:53:33 +09:00
Marek Safar 11a3daa71d Merge pull request #1190 from esdrubal/encoder-convert
System.Text.Encoder convert
2014-08-11 10:50:03 +02:00
Zoltan Varga 6f3ad3b7a2 Merge pull request #1201 from crisdut/fix-win-mono-dependencies
Adding the mutex header file dependency
2014-08-08 22:46:36 +02:00
João Matos 1bff9d890f Fixed Path.GetFullPath to work correctly when the current path is '/'.
Fixes xambug #833.
2014-08-08 19:03:39 +01:00
João Matos 90ccde72e5 Merge pull request #1196 from tritao/master
System.IO.Compression.FileSystem implementation
2014-08-08 18:42:29 +01:00
João Matos f17d714385 Implemented System.IO.Compression.FileSystem. 2014-08-08 18:40:01 +01:00
Armando C. Dutra 2549d18cb5 adding the mutex header file dependency 2014-08-08 04:29:40 -03:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Zoltan Varga 5c59fee91f [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 (). 2014-08-08 02:17:54 +02:00
Zoltan Varga 1e8a5b2809 [jit] Avoid taking the loader lock in mono_jit_compile_method_inner (), it shouldn't be needed any more. 2014-08-08 02:09:06 +02:00
Zoltan Varga 766e8c3504 [sdb] Avoid asserting when a cattr cannot be loaded. Fixes #21653. 2014-08-08 00:37:04 +02:00
Alexander Köplinger c685b21764 [Cleanup] Removed files that imported Java namespaces
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Alexander Köplinger 4165d879cd [Cleanup] Removed net_1_1_java from Makefiles
It was once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +02:00
Alexander Köplinger 31daf92e72 [Cleanup] Removed net_1_1_java*.sources files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +02:00
Alexander Köplinger a8b2f07578 [Cleanup] Removed .jvm.cs files that are no longer used
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:51 +02:00
Marek Safar 76c34a1574 [System] Disable failing test 2014-08-07 20:01:46 +02:00
Marek Safar f5629c16e0 [mcs] null propagating operator and expressions which cannot be null 2014-08-07 16:54:57 +02:00
Zoltan Varga 98bbf8512a [runtime] Fix Process.PrivateMemorySize64 etc. on ios. Fixes #21882. 2014-08-07 14:56:51 +02:00
Marek Safar c6ae57fa19 [mcs] null propagating operator and extension methods 2014-08-07 14:25:07 +02:00
Zoltan Varga 0f1a427b67 [jit] Fix enum->int casts in gsharedvt code. Fixes #21893. 2014-08-07 13:56:56 +02:00
Marek Safar d3553fefdc [mcs] null propagating operator with nested receiver 2014-08-07 11:04:16 +02:00
Marcos Henrich 631f3685bb 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.
2014-08-07 09:28:44 +01:00
Marek Safar ed065cd04d Merge pull request #1199 from esdrubal/packurihelper
PackUriHelper
2014-08-07 10:25:47 +02:00
Marcos Henrich 9d781928b2 Added argument validations to ComparePackUri an ComparePartUri. 2014-08-07 09:10:53 +01:00
Marcos Henrich d3d078eb51 Changed Check.PartUriIsValid to throw ArgumentException. 2014-08-07 09:09:22 +01:00
Marcos Henrich 33f0c427f7 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.
2014-08-07 09:02:49 +01:00
Marek Safar bdd8f8212f Merge pull request #1198 from chriswebb/master
Fixed issue where XmlReflectionImporter unable to handle XmlEnums with colons
2014-08-07 08:18:30 +02:00
Chris Webb 1a3ec8c3b3 Fixed issue related to fully qualified namespaces being used for XmlEnumAttribute values. 2014-08-07 06:15:55 +00:00
Marek Safar 5398bc14a4 Merge pull request #1197 from akoeplinger/remove-csproj
[Cleanup] Removed a bunch of superfluous .csproj and .sln files
2014-08-07 07:44:36 +02:00
Alexander Köplinger 0450000dc4 [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.
2014-08-06 18:02:30 +02:00
Shay Rojansky 416c5e9df4 Correct code review comments on test 2014-08-06 17:37:51 +03:00
Marek Safar e64af2edbf Merge pull request #1195 from akoeplinger/fix-uri-with-digits
[System] Fix parsing of URI schemes with digits
2014-08-06 15:11:53 +02:00
Alexander Köplinger 636d9c3186 [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
2014-08-06 14:53:01 +02:00
Marek Safar 1f1dc988ad Merge pull request #1168 from esdrubal/iriparsing
IriParsing
2014-08-06 12:47:14 +02:00
Marek Safar e003c4e8f9 Merge pull request #1193 from esdrubal/decimal-round
Decimal.Round trailing zeros
2014-08-06 12:41:39 +02:00
Marek Safar 6b32f6951a Merge pull request #1180 from akoeplinger/no-net40-in-make-check
Don't run net_4_0 tests during "make check"
2014-08-06 12:40:30 +02:00
Marek Safar ba1842208d [mcs] switch statement with constant block at first label. Fixes #21805 2014-08-06 09:52:48 +02:00
Alexis Christoforides adf5717203 Added MonoString<->UTF-32 conversion helper functions. 2014-08-05 19:58:51 -04:00
Zoltan Varga 571df7ac2b Fix the build. 2014-08-06 01:33:48 +02:00
Zoltan Varga abde1a90c6 [runtime] Remove unused critical-sections files. 2014-08-05 23:52:07 +02:00
Zoltan Varga ee230d0620 [runtime] Use the mono_mutex types/functions instead of CriticalSection's. 2014-08-05 23:36:06 +02:00
Zoltan Varga 8fe4231357 [jit] Use the mono_mutex types/functions of CriticalSection's. 2014-08-05 23:21:14 +02:00
Dave Dunkin cd364b4374 Add test for Regex RTL substring matching. 2014-08-05 08:51:38 -07:00
Marcos Henrich 60022096d1 Decimal.Round output no longer keeps trailing zeros. 2014-08-05 14:00:12 +01:00
Marcos Henrich 880f273f56 Test Decimal.ToString after rounding with trailing zeros. 2014-08-05 13:58:07 +01:00
Paolo Molaro ff983a6a9e [profiler] Increase the number of maximum and default frames in backtraces. 2014-08-05 13:15:17 +02:00
Zoltan Varga 2897dba601 [jit] Emit OP_FMOVE instead of OP_MOVE for r4 arguments in hard float mode on arm. 2014-08-05 13:02:58 +02:00
Paolo Molaro d5bce925f0 [runtime] Don't assert when loading a generic methodspec with 0 arity (xambug #19097). 2014-08-05 11:52:35 +02:00
Sasha Kotlyar 76a25717e7 Miscellaneous changes per review 2014-08-04 19:15:10 -04:00
Martin Potter 1af8016a5c Regex fixes for substring parsing. 2014-08-04 14:42:35 -07:00
Dave Dunkin 509863e570 Add test for Regex.Match with anchors on a substring. 2014-08-04 14:42:34 -07:00
Rodrigo Kumpera 8da27c63c3 Merge pull request #1066 from esdrubal/bug19313
Changed DeflateStream to stop reading base_stream sooner. Fixes #19313.
2014-08-04 12:29:43 -04:00
Rodrigo Kumpera 9e91c36e1c Merge pull request #1063 from esdrubal/bug18482
Resets all private key values on RSAManaged.ImportParameters. Fixes #18482.
2014-08-04 12:28:50 -04:00
Marek Safar 3bd87b33c5 [mcs] null propagating operator on index expressions 2014-08-04 17:33:43 +02:00
Zoltan Varga 04ae3b8a2e [runtime] Remove unneccesary locking from some metadata functions. 2014-08-04 17:29:04 +02:00
Marcos Henrich 97e5bfb498 Test Encoder.Convert and UTF8Encoder.Convert behaviors.
Added class ExposedEncoder to test the virtual method Encoder.Convert behavior.
Test UTF8Encoder.Convert override.
2014-08-04 15:26:53 +01:00
Zoltan Varga e98a83ec63 [runtime] Initialize klass->supertypes properly for dynamic classes. 2014-08-03 22:09:51 +02:00
Sasha Kotlyar a66732c039 [TimeZoneInfo] Fix issue with some floating DST transition times creating invalid DateTime values, and implement ToSerializedString and FromSerializedString.
This change is released under the MIT license.
2014-08-03 15:25:43 -04:00
Marek Safar cc90ac0be7 [system.xml] Dispose XmlReader using correct value. Fixes #21771 2014-08-03 19:10:45 +02:00
Marek Safar 76875075df [mcs] decimal constants modulo folding. Fixes #21743 2014-08-03 18:55:53 +02:00
Marek Safar c8796a126d [mcs] null propagating operator cannot work on pointer types 2014-08-03 18:55:53 +02:00
Joel Martinez da44df5a50 [mdoc] Changes to support new-style iOS API:
- the dropns flag now lets you define a namespace that is dropped in a new version of the assembly during update.
- the ntypes flag lets you tell the update command that certain methods are now using native types, and as such will attempt to match with old types in order to preserve documentation.
- the preserve flag will avoid removing members. This is to avoid dropping documentation for members that changed from one version of the framework to another new-style version (ie. iOS).
2014-08-02 19:48:11 -04:00
Joel Martinez be7502c908 [monodoc] Changes to support new-style iOS documentation:
- Fixed bug in creating CREF strings.
- Refactored XML file processing for customization during new style iOS assembly. This was done through the new file source interface, which lets you use dependency injection to customize the process.
- Added the ability to rewrite CREF references when assembling docs that use native types. Also, the ability to handle dropped namespaces.
2014-08-02 19:48:11 -04:00
Marek Habersack 59258ea3f0 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
2014-07-31 19:45:05 -04:00
Mark Probst 2169799f5a [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.
2014-07-31 13:29:42 -07:00
Mark Probst da8f1879ad [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.
2014-07-31 13:29:36 -07:00
Zoltan Varga 597a3e8964 [jit] Avoid making generic calls from gsharedvt methods normally, go through the rgctx infrastructure instead. Fixes #21677. 2014-07-31 21:56:08 +02:00
Marek Safar c6685c1953 [mcs] Update codegen for boolean loads. Fixes #21685 2014-07-31 18:40:19 +02:00
Marek Safar ac9e90a89d [mcs] null coallescing operator can end up working on value types 2014-07-31 16:43:58 +02:00
Zoltan Varga c3a3132005 Merge pull request #1184 from directhex/kfreebsd
Support for GNU/kFreeBSD
2014-07-31 16:40:36 +02:00
Zoltan Varga 90c38a6b9e Merge pull request #1183 from directhex/xinerama
Don't do the soname checking dance for Xinerama.
2014-07-31 16:38:23 +02:00
Marek Safar 30407b77ce [xbuild] Fix handling of reference aliases 2014-07-31 15:21:46 +02:00
Jo Shields 056cc3be24 Define PLATFORM_GNU which covers any OS with GNU userland.
This define covers kFreeBSD, not just Linux. This is required because
the error which 120d194d10 works around is
a GNU problem, not a Linux problem, so causes FTBFS on kFreeBSD.
2014-07-31 12:04:59 +01:00
Jo Shields 0fe5be9fd8 Use host_win32 not platform_win32 in kfreebsd defines 2014-07-31 11:58:47 +01:00
Jo Shields edfbc1d848 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.
2014-07-31 11:45:14 +01:00
Jo Shields 164ead5fb1 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.
2014-07-31 11:45:13 +01:00
Jo Shields 1f513847b2 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
2014-07-31 11:44:51 +01:00
Marek Safar 13f4ba52e0 [mcs] Fixes bootsrap with older mcs 2014-07-31 11:53:09 +02:00
Marek Safar e7bf6d81ea [mcs] Member access null propagating operator 2014-07-31 11:06:52 +02:00
Marek Safar 2915003696 [mcs] Finalizers cannot use expression_block syntax 2014-07-31 11:06:52 +02:00
Marek Habersack 303e42b130 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
2014-07-30 18:22:33 -04:00
Alexis Christoforides cd59827c22 Bump Mono version -> 3.8.1 2014-07-30 14:52:33 -04:00
Alexander Köplinger d16413148e 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"
2014-07-30 18:58:08 +02:00
Zoltan Varga 81867287f8 [xbuild] Disable some tests which fail on wrench. 2014-07-30 17:41:51 +02:00
Ludovic Henry 44214ee4de [PLinq] Avoid cache thrashing of locals array when looping over enumerator 2014-07-30 11:40:30 -04:00
Zoltan Varga 21112244e0 [jit] Fix another native-types problem. Hopefully fixes #21670 and #21636. 2014-07-29 23:59:58 +02:00
Zoltan Varga af066033c6 Merge pull request #1181 from directhex/master
Delete assemblies from external/ when building "make dist" tarballs
2014-07-29 23:42:33 +02:00
Marek Habersack 81c30e4e24 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
2014-07-29 15:30:46 -04:00
Jo Shields debb0c7af2 Delete assemblies from external/ when building "make dist" tarballs 2014-07-29 12:01:58 -04:00
Marek Safar cb34d86717 Merge pull request #1178 from dougrathbone/master
Bug fix caused by Dispose failing because 'Initialize' method throws exception
2014-07-29 13:44:46 +02:00
Zoltan Varga 768bd9bb2c Fix 91b224d004. 2014-07-29 11:56:27 +02:00
Zoltan Varga 91b224d004 [bcl] Disable some tests which are expected to fail in mt. 2014-07-29 11:48:02 +02:00
Marcos Henrich 1c815b18aa Uri.ToString now returns registered parser components when possible. 2014-07-29 07:46:56 +01:00
Marcos Henrich 6d7be6df27 ParseNoExceptions is now using registered parsers when possible. 2014-07-29 07:22:43 +01:00
Marcos Henrich 9f34f2d7f0 TryParseComponent returns when the scheme has a registered parser. 2014-07-29 07:17:21 +01:00
Marcos Henrich 17aeeb761f Removed parameter parser from UriParseComponents.ParseComponents. 2014-07-29 07:14:55 +01:00
Rodrigo Kumpera e8a721a2ff [jit] Use alias information to eliminate explicit null checks. Fixes #21645. 2014-07-29 01:31:10 -03:00
Rodrigo Kumpera b6f9dff71c [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.
2014-07-29 01:17:37 -03:00
Zoltan Varga d0d9b5706b [runtime] Initialize fields in MonoField:GetFieldOffset () if needed. Fixes part of #21604. 2014-07-29 02:47:26 +02:00
Marcos Henrich 095c0f8513 Changed some IriParsing behaviors to be platform behaviors. 2014-07-28 12:37:58 +01:00
Marcos Henrich e7604d6268 Added UriTestAux that tests non default IriParsing. Fixed Tests. 2014-07-28 12:36:28 +01:00
Rodrigo Kumpera 9d8be3d40c [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.
2014-07-27 18:58:11 -03:00
Doug Rathbone bade84a5fc 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. 2014-07-27 12:21:37 -07:00
Marek Safar 91c346a3f6 Merge pull request #1176 from RyanMelenaNoesis/patch-1
Implement missing constructor
2014-07-25 23:27:07 +02:00
RyanMelenaNoesis dbe8dbd370 Implement missing constructor
http://msdn.microsoft.com/en-us/library/hh194482(v=vs.110).aspx
2014-07-25 16:07:55 -05:00
Marcos Henrich efdbd10e61 Refactored ifs into switches. 2014-07-25 14:47:54 +01:00
Marcos Henrich d2ac7759d8 Removed unnecessary parameter modifier ref.
No need of modifier ref because ParserState is not a value type.
2014-07-25 14:05:23 +01:00
Marcos Henrich 6b4da3d6c4 Added missing spaces. 2014-07-25 13:57:09 +01:00
Marcos Henrich 0ad1394bcb Call more appropriate string.TrimStart overload. 2014-07-25 13:54:29 +01:00
Marcos Henrich d9936a0c15 Parse methods are now chained in conjunction. 2014-07-25 13:52:47 +01:00
Marcos Henrich c89e7905c7 Refactored UriHelper.Reduce to use string.Split. 2014-07-25 13:31:57 +01:00
Marcos Henrich 507d10aaa1 Removed redundant code. 2014-07-25 13:29:39 +01:00
Marcos Henrich ab60fa30d3 Splited if to test % first. 2014-07-25 13:28:29 +01:00
Marcos Henrich aa71718828 UriHelper.HexEscapeMultiByte is now using StringBuilder. 2014-07-25 13:20:38 +01:00
Marcos Henrich 9d7d96f594 Class UriHelper is now static. 2014-07-25 13:17:51 +01:00
Marcos Henrich a710d0b8ec Changed string operations to use StringComparison.Ordinal. 2014-07-25 13:14:16 +01:00
Marcos Henrich 351a689463 Removed redundant IriParsing init and changed if to else if. 2014-07-25 11:57:07 +01:00
Marcos Henrich d9ad2fd413 Removed redundant initializations. 2014-07-25 09:41:19 +01:00
Marcos Henrich d7d72f9a81 Control chars with invalid escape are no longer unescaped in 2.0. 2014-07-25 09:08:07 +01:00
Marcos Henrich dd88b4cc18 Results location is now set from defines NET_X_X. 2014-07-25 08:42:47 +01:00
Martin Baulig 288489d637 [http]: Correctly handle partial chunk sizes; fixes #20583. 2014-07-25 00:37:16 +02:00
Marcos Henrich 565432ae1f Removed bad LocalPath testing. 2014-07-24 18:21:51 +01:00
Marcos Henrich fc847d6e69 Test invalid utf8 encodings. 2014-07-24 18:12:09 +01:00
Marcos Henrich 9092b7f27f Added UriPermutationsTest.PercentageEncoding_AbsolutePath. 2014-07-24 18:04:40 +01:00
Marcos Henrich 695fb400b3 Added UriPermutationsTest.PercentageEncoding_Unescape. 2014-07-24 18:02:48 +01:00
Marcos Henrich 3b75fd9dea Updated UriBuilderTest.IPv6_Host with IriParsing behavior. 2014-07-24 17:30:14 +01:00
Marcos Henrich e95021f029 Custom schemes '\' are now replaced with '/' on windows paths. 2014-07-24 17:23:05 +01:00
Marek Habersack 6034d4ad85 Use Android-specific code to get the current system time zone 2014-07-24 18:06:14 +02:00
Marek Safar 056a487386 [System.ComponentModel.Composition] Remove ReadOnlyDictionary. It's not used in 4.5 profile (it implements different interfaces compare to public ReadOnlyDictionary anyway) 2014-07-24 13:51:35 +02:00
Marcos Henrich 1aa8771d3f Changed Uri.Unescape to use UriHelper.FormatAbsolute. 2014-07-24 12:41:06 +01:00
Marcos Henrich d6b7409e73 Invalid escapes are left untouched on .NET 4.0 and higher. 2014-07-24 12:34:11 +01:00
Marcos Henrich de7e103073 Added HexUnescapeMultiByte overload with invalidEscape out param.
Invalid escapes are left untouched on .NET 4.0 and higher.
2014-07-24 12:31:53 +01:00
Marcos Henrich 21e2b4db20 Added missing FormatFlag.NoSlashReplace condition. 2014-07-24 12:27:47 +01:00
Marcos Henrich 4c5add3387 Added FormatFlag.NoReduce. 2014-07-24 12:26:46 +01:00
Marek Safar 9a53dd4e91 [mcs] Implements expression bodied members 2014-07-24 13:08:37 +02:00
Zoltan Varga 120d194d10 [runtime] Disable runtime unit tests on linux, because it cannot be linked due to circular dependencies between libraries. Fixes #21520. 2014-07-23 13:00:36 -04:00
Marek Safar c52d085ef4 [mcs] Better betterness for ambiguous lambda expressions 2014-07-23 15:48:44 +02:00
Zoltan Varga a69cc775ea Merge pull request #1174 from rhapsodyn/patch-1
fix a typo in comment
2014-07-23 12:58:17 +02:00
Marcos Henrich 59ca31f5d2 Uri.Merge ignores on 2.0 base filename when relative has a query. 2014-07-23 11:46:51 +01:00
Marcos Henrich de0ac0589a On .NET 4.0 and higher avoid unescaping of user escaped Uri. 2014-07-23 10:53:23 +01:00
Marcos Henrich 1ae9ae3b08 Format is now setting FormatFlags.HasUriCharactersToNormalize. 2014-07-23 10:48:30 +01:00
Marcos Henrich ff8156b040 Fixed UriHelper.Format to unescape surrogate char only when needed. 2014-07-23 10:40:07 +01:00
Marcos Henrich fffa1dadfa Added FormatFlag.UserEscaped to Uri.LocalPath. 2014-07-23 10:30:16 +01:00
rhapsodyn 8af2417115 fix a typo in comment 2014-07-23 16:17:36 +08:00
Marek Safar 408e394426 [corlib] Allow reading serialized delegate format from pre 2.0 era 2014-07-23 10:15:53 +02:00
Marek Safar cf4f10ef51 Update test binary data 2014-07-23 10:15:16 +02:00
Marek Safar b0246f004f Add extra test for 027ff81512 2014-07-23 09:20:34 +02:00
Marek Safar 027ff81512 [corlib] Fix multicast delegates serialization to handle curried delegates and more than 1 subscriber 2014-07-22 20:33:11 +02:00
Marek Safar 1d6529de70 [mcs] Pickup params modifier from base member for overload verification as well 2014-07-22 18:52:23 +02:00
Marcos Henrich 9bcae25144 Improved Uri.Merge.
Merge is now using UriParseComponents and UriHelper.Reduce.
2014-07-22 16:13:53 +01:00
Marcos Henrich 33f653951c UriHelper.Reduce visibility is now internal. 2014-07-22 16:05:54 +01:00
Marcos Henrich 4e925a2809 Fixed missing "/" after reduce of paths ending with "/..". 2014-07-22 16:01:13 +01:00
Marek Safar 7edcd42a15 [mcs] Use closed delegate over static generated methods from anonymous methods 2014-07-22 14:18:48 +02:00
Marek Safar 6e150f6bf3 [mcs] Effective base class can include inherited types. Fixes #21390 2014-07-22 14:13:15 +02:00
Marek Safar 71bd92e047 [mcs] Handle duplicate resume point registration. Fixes #21387 2014-07-22 13:41:10 +02:00
Marcos Henrich 16db13ed87 Refactored Uri.ParseNoExceptions to use UriParseComponents. 2014-07-22 10:58:30 +01:00
Rolf Bjarne Kvinge 2afbbedd63 Disable a few tests that don't compile without SRE. 2014-07-22 11:54:11 +02:00
Marcos Henrich a4dc63385d Set isUnc to true for file scheme on windows. 2014-07-22 10:36:47 +01:00
Marek Safar 30913d31b0 Fixes broken test 2014-07-22 10:28:38 +02:00
Shay Rojansky 566646719f Test uses SQLite in-memory DB for test
Also spaces to tabs
2014-07-22 05:56:33 +00:00
Marcos Henrich 16cd5535c9 Improved UriParseComponents.
Added Uri.ParseNoException error cases.
Changed to behave as Uri.ParseNoException.
2014-07-21 23:22:01 +01:00
Marcos Henrich e87c78c022 Setting UriElements.isAbsoluteUri, isUnc, isUnixFilePath, scopeId. 2014-07-21 23:16:47 +01:00
Marcos Henrich 4d610d50db Added UriElements.isAbsoluteUri, isUnixFilePath, isUnc, scopeId. 2014-07-21 23:07:19 +01:00
Marcos Henrich e07d36786b Added parameter UriParser to UriParseComponent. 2014-07-21 23:05:15 +01:00
Rodrigo Kumpera 04c3d5dff4 [corlib] Add regression test for #21388. 2014-07-21 18:55:43 -03:00
Rodrigo Kumpera 1994095049 [runtime] When parsing a method header, ensure we pass any available generic context. Fixes #21388.
We need to pass the right generic context to the method parsing so local variables with
generic argument types get the owner properly set.

In addition to that, harden the icall in case the owner is not set.
2014-07-21 18:55:43 -03:00
Rodrigo Kumpera 9b4293c035 [corlib] Fix regression in Delegate::Equal found by gtest-etree-01. 2014-07-21 18:55:42 -03:00
Marcos Henrich 02d383f202 Improved IPv6 parsing.
Parsing was failing when a port was specified after IPv6 address. ie: "http://[::1]:8080"
2014-07-21 21:57:51 +01:00
Zoltan Varga 2d3d1787a3 [jit] Fix the DISABLE_JIT build. 2014-07-21 22:32:17 +02:00
Marcos Henrich beca8d580c UriParseComponents is now parsing Uri port as an int. 2014-07-21 20:32:23 +01:00
Marek Safar fa19bfd400 [corlib] Tweak Dictionary initial capacity to be more conservative. Fixes #21375 2014-07-21 20:35:14 +02:00
Marek Safar 3dfffa82d9 Merge pull request #1173 from Serguzest/upstream
wrong behaviour in ClaimsIdentity's constructor
2014-07-21 20:22:43 +02:00
Serguzest 62569f1a1c wrong behaviour in ClaimsIdentity's constructor
claims must be added regardless of identity parameter
Since constructors are chained in that class,  this wrong behaviour causes chained trouble of claims to be never added
2014-07-21 17:36:43 +00:00
Zoltan Varga fd12271ce3 [arm] Fix native types support in the dyn call code on arm. 2014-07-21 19:14:33 +02:00
Alexis Christoforides d1a36ddbd9 [appdomain] Allocate core AppDomain objects with mono_object_new_pinned().
The objects end up being pinned anyway, but in SGen's case they are placed in the nursery, creating permanent fragmentation.
2014-07-21 11:36:03 -04:00
Marek Safar 2907aa0417 [mcs] Initializers with parameters scope and primary constructors 2014-07-21 17:12:10 +02:00
Marek Safar 735f225345 [bcl] Remove old projects 2014-07-21 14:14:12 +02:00
Jeffrey Stedfast 8297563629 [System.Web] Oops, there really is a .moov file extension 2014-07-21 06:21:50 -04:00
Shay Rojansky c0d6c47c6b Added test for DataRow error 2014-07-21 09:10:08 +00:00
Rodrigo Kumpera 60c498279e [corlib] Add regression test for #21196. 2014-07-20 22:57:56 -03:00
Rodrigo Kumpera 56fb85195f [corlib] Handle closed-over-null delegates created with IL when using InvokeDynamic. Fixes #21196.
The previous fix to handle curried delegates with DynamicInvoke did not correctly handle
those create with IL (in contrast to Delegate.CreateDelegate), as they don't hit any managed code.

The solution is to always require DelegateData to be filled for InvokeDynamic, if not, lazily
calculate it.
2014-07-20 22:57:56 -03:00
Jeffrey Stedfast 0237ddc8e0 [System.Web] Fixed some mime types 2014-07-20 20:54:16 -04:00
Zoltan Varga eb566d04da [runtime] Avoid loading marshal info for types without field marshallers when calling FieldInfo:get_marshal_info (). 2014-07-21 01:27:27 +02:00
Shay Rojansky 4c31accaca Fix DataRow error management
DataRow's RowError is supposed to be String.Empty to indicate
no errors, but is sometimes wrongly set to null, falsely indicating
errors. Fixed to be String.Empty.
2014-07-20 15:48:21 +03:00
Zoltan Varga effa4c07ba [runtime] Add method_is_dynamic () inline function to allow code to be optimized away when DISABLE_REFLECTION_EMIT is defined. 2014-07-19 23:42:23 +02:00
Zoltan Varga 3a786664d7 [runtime] Add image_is_dynamic ()/assembly_is_dynamic () inline functions to allow code to be optimized away when DISABLE_REFLECTION_EMIT is defined. 2014-07-19 22:28:22 +02:00
Marek Safar 6136fa0f0a Revert "[mcs] Initializers with parameters scope and primary constructors"
This reverts commit 221b9c920d.
2014-07-19 22:02:15 +02:00
Marek Safar 221b9c920d [mcs] Initializers with parameters scope and primary constructors 2014-07-19 17:16:13 +02:00
Marek Safar 16a37dba07 [mcs] Less cascading errors 2014-07-19 17:16:12 +02:00
Zoltan Varga f49ca11375 Revert "[runtime] Force inlining of membar functions."
This reverts commit 4935a15fc6.

Revert this as it is causing a huge amount of warnings.
2014-07-19 16:32:14 +02:00
Zoltan Varga 262ef7eb34 [bcl] Increase a timeout to fix a corlib+llvm test failure. 2014-07-17 23:15:49 +02:00
Zoltan Varga 472240a3a2 [runtime] Add a mono_reflection_assembly_get_assembly () public api function to get a MonoAssembly* from a System.Reflection.Assembly object. 2014-07-17 22:27:59 +02:00
Marcos Henrich 37dbbb2172 UriParser now appends '/' to Uri path when delimiter is '://'. 2014-07-17 18:57:33 +01:00
Marcos Henrich add9f6a2d7 Changed property IriParsing visibility to internal. 2014-07-17 18:43:25 +01:00
Joao Matos 896ceb1d9a Fixed MSVC build by explicitly providing "ssize_t". 2014-07-17 18:22:58 +01:00
Marcos Henrich adee464395 Replaced ToLower usage with ToLowerInvariant. 2014-07-17 18:15:30 +01:00
Marcos Henrich 88af5f54e7 Changed character comparison to a disjunction of equalities. 2014-07-17 18:11:56 +01:00
Zoltan Varga dd397d562e Bump required windows version to xp sp2. 2014-07-17 18:38:08 +02:00
Zoltan Varga 58afe69070 Fix the windows build. 2014-07-17 18:37:09 +02:00
Zoltan Varga f4175ebd98 Fix the windows build. 2014-07-17 18:11:32 +02:00
Zoltan Varga f0c469f167 [jit] Fix some build problems when cross compiling. 2014-07-17 17:51:52 +02:00
Marcos Henrich b8e2fad391 Moved s_IriParsing initialization and removed volatile modifier. 2014-07-17 16:17:16 +01:00
Rodrigo Kumpera a06fd81271 [jit] Move runtime_invoke_hash to use the concurrent hashtable. Big wins on TP workloads. 2014-07-17 11:01:48 -04:00
Rodrigo Kumpera 77cc06ffb3 [runtime] Move field_cache to use the concurrent hashtable as it was showing up on profiling. 2014-07-17 11:01:06 -04:00
Rodrigo Kumpera 9eeb7f1de0 [runtime] Add tests for concurrent hashtable. 2014-07-17 11:00:19 -04:00
Rodrigo Kumpera 4157b0d81c [runtime] Add a lock-free read hashtable. 2014-07-17 10:52:36 -04:00
Rodrigo Kumpera 4935a15fc6 [runtime] Force inlining of membar functions. 2014-07-17 10:50:51 -04:00
Marcos Henrich 1664692ddd Added TryParseComponent to UriParseComponent. 2014-07-17 09:21:11 +01:00
Alexis Christoforides d959941265 Revert "Reimplemented much of the kqueue-based file watcher so that watching subdirectories works."
This reverts commit fa9bbe1487.
2014-07-16 17:40:22 -04:00
Alexis Christoforides d0d774479b Revert "Revert some whitespace changes."
This reverts commit dd19aacb90.
2014-07-16 17:40:19 -04:00
Alexis Christoforides a386b772f7 Revert "Add a test for Creation event on FileSystemWatcher."
This reverts commit 66416d2655.
2014-07-16 17:40:11 -04:00
Stephen McConnel f5f2eb11b8 Fix error in tooltip display for ListView.ShowGroups
This fixes Xamarin bug 21346 " SWF.ListView does not handle item
tooltips when Groups are used".
2014-07-16 17:27:21 -04:00
Cody Russell 66416d2655 Add a test for Creation event on FileSystemWatcher. 2014-07-16 17:27:21 -04:00
Cody Russell dd19aacb90 Revert some whitespace changes. 2014-07-16 17:27:21 -04:00
Cody Russell fa9bbe1487 Reimplemented much of the kqueue-based file watcher so that watching subdirectories works.
https://bugzilla.xamarin.com/show_bug.cgi?id=16259
2014-07-16 17:27:20 -04:00
Marcos Henrich 156c7ce52a ParseQuery is now skipped if scheme does not support query. 2014-07-16 14:40:33 +01:00
Marcos Henrich 3e9e2c5fd3 Improved ParseHost of files and IpV6. 2014-07-16 14:32:39 +01:00
Marcos Henrich 6b8a3ac105 Moved scheme delimiter parsing into own method. 2014-07-16 14:12:14 +01:00
Marcos Henrich eb60e33d00 Added Unix and Windows file paths parsing. 2014-07-16 13:53:22 +01:00
Marcos Henrich 42482d540f Added UriKind and String error to UriParseComponent.ParserState.
UriKind was added so Relative Uri can be parsed by UriParseComponent.ParseComponents.
String error was added so a error can be returned when an invalid Uri is provided.
2014-07-16 13:45:04 +01:00
Zoltan Varga d1818f6e35 Merge pull request #1164 from nlhepler/patch-1
Guess base for mono-sgen and -boehm equivalently
2014-07-16 12:48:12 +02:00
Marek Safar f20d61de40 [mcs] Make primary constructor body parsing more error resilient 2014-07-16 10:28:01 +02:00
Marek Safar e56375a2a2 [mcs] Remove backing field from primary constructors 2014-07-16 09:57:18 +02:00
Lance Hepler fe315d71a4 mint and monodiet are no longer built 2014-07-15 20:00:47 -07:00
Lance Hepler 7626a539b1 Guess base for mono-sgen and -boehm equivalently 2014-07-15 18:35:51 -07:00
Zoltan Varga 66ca91f10b [jit] Clean up the libgc configuration code in configure.ac. 2014-07-15 23:15:10 +02:00
Marcos Henrich e9ccb6d1b4 Replaced Uri.LocalPath Unescape uses by UriHelper.FormatAbsolute. 2014-07-15 19:30:00 +01:00
Marcos Henrich f9ab3ac8de Added FormatFlag.NoSlashReplace. 2014-07-15 19:24:48 +01:00
Marcos Henrich d29b9c93f5 Host unicode characters are no longer escaped. 2014-07-15 19:20:39 +01:00
Marcos Henrich 2aac5c54aa IpV6 Host characters are no escaped or unescaped. 2014-07-15 19:08:06 +01:00
Marcos Henrich a0304b0ab9 Scope id is now removed from IpV6 Host. 2014-07-15 18:41:52 +01:00
Marcos Henrich a4089ba0ef Uri.Host is now escaped with UriHelper.FormatAbsolute. 2014-07-15 18:39:06 +01:00
Zoltan Varga 511a8367ad Merge pull request #1162 from DavidKarlas/endInvokeWithResult
[Mono.Debugger.Soft] Added methods EndInvokeMethodWithResult to all mirrors
2014-07-15 15:41:10 +02:00
Marek Safar 6374d49610 [mcs] More work on primary constructors 2014-07-15 10:59:52 +02:00
David Karlaš 10f73cb8b4 [Mono.Debugger.Soft] Added methods EndInvokeMethodWithResult to all mirrors
StructMirror also set overrides fields of structure in case InvokeMethod was called with InvokeOptions.ReturnOutThis option set
2014-07-15 09:42:29 +02:00
Zoltan Varga d795d17c3d Enable sgen on mingw64. 2014-07-15 00:46:24 +02:00
Zoltan Varga 853e9a1ba0 Revert "Enable sgen on mingw64."
This reverts commit 3cd09d1d84.

Revert this as it reverts unrelated changes.
2014-07-15 00:43:20 +02:00
Zoltan Varga d852e58bdc [jit] Remove some unneccesary ifdefs from the amd64 backend. 2014-07-14 22:53:11 +02:00
Zoltan Varga 80e6cdc3ca [jit] Remove more dead code. 2014-07-14 22:53:11 +02:00
Aaron Bockover b62eebc2eb [mcs] eval.cs: remove CWL that snuck in with my last commit 2014-07-14 16:41:16 -04:00
Zoltan Varga 55a8a2c3a9 [jit] Remove some dead code. 2014-07-14 22:31:33 +02:00
Aaron Bockover 61ef51978b [mcs] eval.cs: add ValueModificationHandler delegate to be more clear 2014-07-14 16:25:02 -04:00
Zoltan Varga 49d68ea47c [jit] Fix support for tls entries with offset >= 64 on winx64. 2014-07-14 21:31:26 +02:00
Zoltan Varga 9b5b116083 Fix the build. 2014-07-14 20:43:27 +02:00
Rodrigo Kumpera 9503cfad87 Merge pull request #1150 from ludovic-henry/pr17c-delegate-trampoline
[delegate] Improve trampoline caching
2014-07-14 14:40:38 -04:00
Zoltan Varga 8dfabbb582 [jit] Fix the objdump cmd line used on winx64. 2014-07-14 20:05:32 +02:00
Zoltan Varga 3cd09d1d84 Enable sgen on mingw64. 2014-07-14 20:03:53 +02:00
Zoltan Varga 16a3fcc3cc Fix the mingw64 build. 2014-07-14 20:03:36 +02:00
Zoltan Varga 1a604e7342 [jit] Use the generic lmf push/pop code on winx64. 2014-07-14 20:02:36 +02:00
Zoltan Varga d995399b40 [runtime] Avoid building libgc if its disabled. 2014-07-14 18:29:40 +02:00
Alexis Christoforides cdd3d2b7c7 Merge pull request #1064 from ranma42/fix-config-paths
Improve handling of lib paths for libMonoPosixHelper and libgdiplus. Fixes #18555.
2014-07-14 12:14:40 -04:00
Rodrigo Kumpera 6607fdf579 Merge pull request #1122 from PoppermostProductions/master
Added new mono_domain_set_config function; used to fix ConfigurationErro...
2014-07-14 10:54:50 -04:00
Marek Safar b8ac40d824 [mcs] Handling CreateStandardLiftedOperatorsTable for corlib without nullable type 2014-07-14 14:45:13 +02:00
Marek Safar e78be50cda [mcs] Arguments can be empty when reporting missing params argument. Fixes #21215 2014-07-14 11:22:27 +02:00
Marek Safar 276e8eb4f8 [mcs] Wrap exceptions in async state machine with no resume points 2014-07-14 11:22:27 +02:00
Marcos Henrich 65f103458b Fixed EscapeDataString and EscapeUriString behavior.
The methods have now the same behavior as .NET 4.5, 4.0 and 2.0.
2014-07-14 10:07:50 +01:00
Marcos Henrich 2f1b0a3494 Missing line from previous commit cc4fae8. 2014-07-14 09:32:57 +01:00
Zoltan Varga 85378c45be Revert "[runtime] Fix a win32 build failure, more remains."
This reverts commit 5c90d7cdba.

Revert this as it breaks the build.
2014-07-14 01:33:27 +02:00
Zoltan Varga 216f1b6c71 [jit] Remove an unneccesary line from the win32 tls_get implementation, it was setting SetLastError (). 2014-07-14 00:45:34 +02:00
Zoltan Varga c5ac00e6b7 [bcl] Fix build dependencies for the corlib vts tests. 2014-07-14 00:39:58 +02:00
Zoltan Varga ccb6f5b4de [runtime] Fix the --disable-boehm build on windows. 2014-07-13 22:51:40 +02:00
Zoltan Varga 673700f506 [jit] Enable support for tls offsets >= 64 on win32. 2014-07-13 22:46:21 +02:00
Zoltan Varga c10329d0aa [jit] Disable MONO_ARCH_ENABLE_MONO_LMF_VAR on win32, emit_push_lmf () uses a different method. 2014-07-13 22:44:25 +02:00
Zoltan Varga 1289b87cf8 [jit] Implement support for tls offsets >= 64 on win32. 2014-07-13 22:33:22 +02:00
Zoltan Varga b6994c101f [runtime] Fix some win32 warnings. 2014-07-13 22:31:54 +02:00
Zoltan Varga 80cca0a423 [runtime] Use pthread tls on mingw32, recent versions support __thread, but its emulated. 2014-07-13 22:30:40 +02:00
Zoltan Varga 5c90d7cdba [runtime] Fix a win32 build failure, more remains. 2014-07-13 20:53:53 +02:00
Zoltan Varga b9207a3dae [jit] Avoid conditional members in the MonoJitInfo structure. 2014-07-13 20:51:43 +02:00
Zoltan Varga aa39a2d113 [runtime] Avoid using tls in the monitor wrappers if its not available. 2014-07-13 19:07:25 +02:00
Zoltan Varga 6206280a84 [runtime] Avoid initializing static variables to NULL, its not needed. 2014-07-13 18:18:32 +02:00
Filip Lundgren ab5b39f991 Fixed libmono MSVC compilation 2014-07-13 17:49:33 +02:00
i59 c1a611494a Corrected mono_domain_set_config description. 2014-07-13 17:49:32 +02:00
i59 57f5187ad2 Added new mono_domain_set_config function; used to fix ConfigurationErrorsException in #10468.
This change is released under the MIT license.

https://bugzilla.xamarin.com/show_bug.cgi?id=10468
2014-07-13 17:49:31 +02:00
Zoltan Varga b6a8a10e6e [jit] Move the registration of jit icalls into a separate function. 2014-07-13 17:49:08 +02:00
Zoltan Varga ece3b55369 Fix the build. 2014-07-13 17:40:03 +02:00
Zoltan Varga d07d02078c [runtime] Remove unused g_thread () functions. 2014-07-13 17:35:35 +02:00
Zoltan Varga 281904708f [jit] Remove MONO_ARCH_HAVE_IMT define, all platforms support imt now. 2014-07-13 17:31:36 +02:00
Zoltan Varga b921dc0cef [jit] Use the win32 check for all tls keys in mini_get_tls_offset (). 2014-07-13 17:00:31 +02:00
Jonathan Pryor 70e0756a41 Merge pull request #1153 from akoeplinger/fix-doc-message
[monodoc] Clarified message when a backing file isn't found
2014-07-13 09:49:14 -04:00
Jeffrey Stedfast d3f190cf87 [corlib] minor code cleanup 2014-07-13 08:29:09 -04:00
Zoltan Varga e1b5523c94 [runtime] Handle generic methods in interfaces in imt thunks correctly. Fixes crashes in the System.ServiceModel tests. 2014-07-12 20:05:39 +02:00
Zoltan Varga d0be44220b Revert a change added by cd35ca1 by mistake 2014-07-12 14:20:44 +02:00
Marcos Henrich 856306e21a With IriParsing some escaped chars are changed to upper case. 2014-07-12 09:48:59 +01:00
Marcos Henrich 00b7582bb2 Changed UriHelper.Format to case of percentage encoded characters. 2014-07-12 09:03:00 +01:00
Zoltan Varga cd35ca1fe9 [bcl] Fix a race in a Task test. Fixes #20921. 2014-07-12 00:31:47 +02:00
Zoltan Varga 2103f2394e [jit] Fix system aot on amd64. 2014-07-11 21:21:34 +02:00
Zoltan Varga f9016dc075 Fix a warning. 2014-07-11 21:21:33 +02:00
Marcos Henrich 9ac47f6347 Tests lower case percentage encoding. 2014-07-11 14:58:35 +01:00
Marcos Henrich 3fe13e0b3c UriParser.GetComponentsHelper now sets flag UserEscaped. 2014-07-11 14:38:15 +01:00
Marcos Henrich c0c240bc65 Added uuid to Uri.schemes so its delimiter can be obtained. 2014-07-11 14:34:43 +01:00
Marcos Henrich 34005846d3 Replaced Escape and Reduce usage by FormatAbsolute.
Also removed userEscaped logic because it is verified by FormatAbsolute.
2014-07-11 14:22:19 +01:00
Marcos Henrich e25be38aea Added FormatFlag.UserEscaped. 2014-07-11 12:30:53 +01:00
Alex Rønne Petersen 7008bb6867 Merge pull request #1154 from Zoltu/patch-1
Makes AppendTextUnquoted public.
2014-07-11 05:26:49 +02:00
Zoltan Varga 7892d21b5b [runtime] Only apply the maverick stack size hack added by d6673ca8ec to the main thread since some system threads might really have a small stack size, causing us to overestimate their stack size. This can cause us to mprotect () random memory in mono_setup_altstack (), cause random crashes. Hopefully fixes #10096. 2014-07-10 23:57:32 +02:00
Micah Zoltu 2987746589 Backwards accuracy.
The method is only public in .NET 4+, previously it was protected.  Wrapping the access modifier in a #if NET_4_0 ensures that when building .NET 2, it is protected but when building 4+ it is public.
2014-07-10 11:01:35 -07:00
Marek Safar fab66aa272 [mcs] auto-implemented property initializer 2014-07-10 18:58:08 +02:00
Alexander Köplinger a3d7cfdb20 [monodoc] Clarified message when a backing file isn't found
If the backing file doesn't exist, it will be ignored.
The previous message made it sound like this is a serious problem, which confused people as it is the last message that is
printed when building Mono (because of a reference to 'DoesNotExist' in docs/toc.xml) while in reality everything is fine.
2014-07-10 17:32:10 +02:00
Zoltan Varga 9192bdf57c [sdb] Add a new 'socket-fd' transport, this is the same as the 'dt_socket' transport, but the address is the number of an an already connected socket fd. 2014-07-10 17:21:45 +02:00
Marcos Henrich cc4fae8c12 Fixed tests to pass in .NET 4.5, 4.0 and 2.0. 2014-07-10 15:38:14 +01:00
Marcos Henrich dfe46039b1 Changed cr lf end of lines to lf. 2014-07-10 12:44:06 +01:00
Marcos Henrich b13b5a366e Removed ToString call on OriginalString when source is null.
Uri.Merge is no longer leaving source with a null value.
2014-07-10 09:38:01 +01:00
Marcos Henrich 175a461d55 UriParser is now able to print empty user info. 2014-07-10 09:18:28 +01:00
Marcos Henrich 9d83e94b4d UriHelper.GetScheme is now case insensitive. 2014-07-10 09:09:18 +01:00
Marcos Henrich 27c58c5d70 Changed '#' in a fragment to be escaped in a special case.
When a fragment contains a unescaped or escaped '%', characters '#' are escaped in some cases.
2014-07-10 09:06:44 +01:00
Marcos Henrich bad111fc45 Test special case of '#' escaping in fragment.
When a fragment contains a unescaped or escaped '%' characters '#' are escaped in some cases.
2014-07-10 09:00:01 +01:00
Micah Zoltu 1e655137d3 Makes AppendTextUnquoted public.
The Microsoft version is public, so should this be.
NuGet.MSBuild.Tools.CommandLineBuilderExtensions:AppendTextUnquotedIfNotNullOrEmpty attempts to call this method in NuGet for MSBuild NuGet package.
2014-07-09 21:44:44 -07:00
Zoltan Varga 1693feb77c Fix a warning. 2014-07-09 22:35:52 +02:00
Zoltan Varga 49c6b57089 [jit] Rewrite the generic trampoline code on x86 to avoid pushes. 2014-07-09 22:19:03 +02:00
Miguel de Icaza 9763da775f Fix fallout from WebSocketMessageType change.
The WebSocketMessageType values were being used to send data over the
wire.  This is likely the reason why WebSocketMessageType had values
that were not compatible with .NET.
2014-07-09 15:05:34 -04:00
Ludovic Henry abe94a1faa [delegate-trampoline] Update invoke_impl and method_ptr cache value
With this patch, we see a 3x execution speed improvement in the following micro-benchmark :

using System;

class Foo {
	public int Test () { return 10; }
}

class Program {
	public static int Main (String[] args) {
		long n = 50000000;
		if (args.Length > 0)
			n = Math.Max (n, Int64.Parse (args [0]));

		var a = new Foo ();

		for (long i = 0; i < n; i++) {
			var f = new Func<int> (a.Test);
			if (f () != 10)
				return 1;
		}
		return 0;
	}
}
2014-07-09 14:56:02 -04:00
Ludovic Henry 9e38a4075c [delegate-trampoline] Share DelegateTrampInfo with method-to-ir.c 2014-07-09 14:46:34 -04:00
Zoltan Varga 62ed7761fd [runtime] Enable system aot when using --enable-loadedllvm, hopefully it works now. 2014-07-09 18:55:49 +02:00
Marek Safar 770c223893 [mcs] Extend intermediate value modification checks on generic value types 2014-07-09 18:32:55 +02:00
Marek Safar 5721da66f2 [corlib] Fix incorrect assert 2014-07-09 17:37:28 +02:00
Marek Safar 60def70139 [corlib] Make CompletionOnDifferentCustomSynchronizationContext test more reliable 2014-07-09 17:07:29 +02:00
Zoltan Varga 757ae5f2a9 [bcl] Fix retaining objects in one of the ConditionalWeakTable tests. 2014-07-09 16:26:26 +02:00
Daniel Reiter Horn ceb092eae7 Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/6 by formatting core.xml date according to W3CDTF
This change in released under the MIT license.
2014-07-09 09:24:36 -04:00
Miguel de Icaza 905d434b4e Merge pull request #1132 from mattleibow/bugfix-20925
[system.data] BUGFIX: fixes issue with expression columns and IsNull:
2014-07-09 09:23:45 -04:00
Miguel de Icaza 630116d1b6 Merge pull request #1142 from edbprx/master
ConnectCallback needs to call EndConnect
2014-07-09 09:21:37 -04:00
Miguel de Icaza 3aca7c1500 Merge pull request #1148 from steffen-kiess/json
Fix several issues in System.Json
2014-07-09 09:19:10 -04:00
Miguel de Icaza 430d570aff Merge pull request #1152 from danielrh/hyperlink_package_parse
Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allow absolute urls in relationships
2014-07-09 09:15:00 -04:00
Miguel de Icaza 1796d0df61 Fix enumeration values 2014-07-09 09:12:34 -04:00
Marek Safar 682f82ba3d [mcs] Disable dedb33eade due to runtime bug 2014-07-09 15:10:28 +02:00
Marek Safar 2b45d2ec56 [corlib] Fix test to not rely on compiler generated method 2014-07-09 15:01:17 +02:00
Marek Safar 74263907dc [mcs] Undo project changes from dedb33eade due to XS stupidity 2014-07-09 11:59:27 +02:00
Marek Safar dedb33eade [mcs] Use closed delegate over static generated methods from anonymous methods 2014-07-09 11:44:41 +02:00
Daniel Reiter Horn 722e83c7a1 Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allowing both relative and absolute urls
This change in released under the MIT license.
2014-07-09 00:15:05 -07:00
Rodrigo Kumpera aa217360ce [System.Numerics] Contract the values array when decoding an array with a negative number and a trailer that evals to zero. Fixes #20456. 2014-07-08 20:02:19 -04:00
Rodrigo Kumpera 2fa4d25053 Don't hardcode the temp dir to /tmp, use g_get_tmp_dir instead. Fixes #20894.
Hardcoding a temporary dir doesn't work on sandboxed apps.
2014-07-08 18:27:36 -04:00
Zoltan Varga c21c377162 [sdb] Fix handling of out ref parameters. 2014-07-08 18:55:18 +02:00
Marek Safar b8fe4a7941 [Facades] Add more comtypes to System.Runtime.InteropServices 2014-07-08 14:57:02 +02:00
Marek Safar cd95b8238f [mcs] C# static using 2014-07-08 14:57:02 +02:00
Zoltan Varga fd0aaf0c59 [runtime] Remove another duplicate switch case from configure. 2014-07-08 14:35:11 +02:00
Zoltan Varga 29dd3d4c02 [runtime] Remove a duplicate switch case from configure. 2014-07-08 14:34:45 +02:00
Marcos Henrich be150ba5ea LocalPath expected values are now generated for UNIX and MS-DOS.
Depending on the OS the directory separator may be different.
2014-07-08 13:26:12 +01:00
Marcos Henrich 9cbe36c6d8 Fragment_Escape '#' escaping with and without IriParsing.
With IriParsing '#' in a fragment is not escaped in Uri.Fragment while without IriParsing it is.
2014-07-08 13:19:10 +01:00
Marcos Henrich 8de4ca3e16 QueryEscape '%2f' unescaping with and without IriParsing.
With IriParsing '%2f' in a query is not unescaped by ToString while without IriParsing it is.
2014-07-08 13:15:00 +01:00
Marcos Henrich ca9c20afaa Changed reduce to keep consecutive slashes. 2014-07-08 10:24:31 +01:00
Marcos Henrich 0851d2b3ca Added "" to reduceElements to test consecutive slashes.
Changed some paths to avoid id conflicts.
2014-07-08 10:20:25 +01:00
Marcos Henrich 4c737936bc Updated IPv6 test to use the correct form.
With IriParsing the IPv6 is on the mixed form n:n:n:n:n:n:d.d.d.d
Without IriParsing the address is on the hexa-decimal form n:n:n:n:n:n:n:n
2014-07-08 07:52:51 +01:00
Marek Safar 015419959d Merge pull request #1149 from akoeplinger/fix-httpwebreq-test
[System] Fixed HttpWebRequest test that sometimes failed
2014-07-08 08:39:05 +02:00
Zoltan Varga f8ee303ea9 [runtime] Lock the root domain in mono_jit_info_add_aot_module () to simplify locking. 2014-07-08 01:08:16 +02:00
Rodrigo Kumpera afa4cebee3 [runtime] Explicit thread GC data around instead of relying on TLS storage. Fixes #20360.
Some systems do locking in their TLS implementation (yeah, super smart, I know).

Due to how we implement stop-the-world this can lead to deadlocks.
2014-07-07 18:55:26 -04:00
Zoltan Varga dd2b784606 [bcl] Increase some test timeouts to avoid failures when running with llvm. 2014-07-08 00:46:31 +02:00
Alexander Köplinger 2bacb92d36 [System] Fixed HttpWebRequest test that sometimes failed
The TestTimeoutPropertyWithServerThatDoesntExist test sometimes failed with a 'ConnectFailure' instead of a 'Timeout'.
As per the discussion in PR #1145, the test should actually check that a ConnectFailure is thrown before the timeout is reached.
This proved unreliable with the 10.128.200.100 IP address, as it was up to the networking stack to decide whether the endpoint can be reached,
which can take quite a long time (sometimes >100secs).

Instead, we now use the loopback address with a port where no service listens, which should be equivalent.

Additionally, the assert which checks for the correct exception switched the 'expected' and 'actual' parameter, which resulted in the wrong output, this is fixed as well.
2014-07-07 23:53:50 +02:00
Ludovic Henry ccc677e3d6 [delegate-trampoline] Fallback to slow path in case of failure to create fast path 2014-07-07 17:43:05 -04:00
Rodrigo Kumpera 66cbeeb35a Move amd64 to use object offsets. 2014-07-07 16:47:32 -04:00
Ed Boren 0c55c45450 ConnectCallback needs to call EndConnect
Socket.ConnectAsync uses BeginConnect, and ends here in
ConnectCallback. It needs to call EndConnect so any error can be
propagated up.

See Xamarin bug: https://bugzilla.xamarin.com/show_bug.cgi?id=21017
2014-07-07 13:25:51 -04:00
Steffen Kieß b005523cb1 Fix several issues in System.Json
- Fix detection of extra characters in JSON input
- Fix detection of invalid negative numeric literals
- Disallow leading zeros
- Use "round-trip" format for floating point numbers
- Serialize NaN and Infinity as strings
- Use NumberFormatInfo.InvariantInfo for Convert.To*()
- Use standard number parsing methods in ReadNumericLiteral()
- Add test cases
2014-07-07 19:22:29 +02:00
Marcos Henrich 449040617c ParseHost is now retrieving IPv6 addresses with the correct form.
With IriParsing the IPv6 is on the mixed form n:n:n:n:n:n:d.d.d.d
Without IriParsing the address is on the hexa-decimal form n:n:n:n:n:n:n:n
2014-07-07 18:09:13 +01:00
Marcos Henrich cf21937a2e ParseScheme now retrieves a lower case scheme. 2014-07-07 18:00:29 +01:00
Alex Rønne Petersen 66b9914768 Poking Jenkins again... 2014-07-07 18:02:58 +02:00
Alex Rønne Petersen e616159577 Merge pull request #1147 from akoeplinger/misc-test-cleanup
Cleanup untracked test files
2014-07-07 14:27:03 +02:00
Alexander Köplinger 9739c4d1a2 [mdoc] Ignore generated test files 2014-07-07 14:24:56 +02:00
Alexander Köplinger 9c73576f10 [System.Drawing] Delete test files after test 2014-07-07 14:24:55 +02:00
Alexander Köplinger af75afdcda [System.IO.Compression] Delete test file after test 2014-07-07 14:24:54 +02:00
Alexander Köplinger 2670fd3a1c [MWF] Get rid of unused resx.resx file
The other tests already use GetResXFileWithNode () to create this file, make this consistent and get rid of the checked-in file
2014-07-07 14:24:54 +02:00
Alexander Köplinger 45b783a172 [System.Web] Remove superfluous write to file in test
The written file is never used, all the Asserts happen in RenderPostBackEvent_OnSaveStateComplete ().
2014-07-07 14:24:53 +02:00
Alex Rønne Petersen 9fa6327978 Merge pull request #1124 from UCIS/patch-5
Fixed NullReferenceExcepton in Socket.Connect for non-IP endpoints
2014-07-07 14:18:49 +02:00
Alex Rønne Petersen 701da9c664 Add a build status badge to README.md. 2014-07-07 14:16:37 +02:00
Marek Safar 42d5dc7692 [mcs] Flow analysis of moved arguments. Fixes #20983 2014-07-07 13:31:26 +02:00
Marcos Henrich 1eb4eadd02 Removed schemes news: and custom: from tests.
Those schemes have a wrong behavior in .NET.
new Uri("news:a/a%30").ToString() == "news:a/a%30a/a0"
2014-07-07 11:56:41 +01:00
Marcos Henrich e5048fc268 Updated method UriHelper.SupportsQuery to return false with news. 2014-07-07 11:52:56 +01:00
Marcos Henrich 163fe0450a Fixed path starting with '/' on custom schemes, mailto and news. 2014-07-07 11:46:52 +01:00
Marcos Henrich 6311335d7b Added method UriHelper.IsKnownScheme(string scheme). 2014-07-07 11:45:14 +01:00
Marcos Henrich 3c23b670fa Support for custom scheme parsing.
Custom schemes can have a delimiter "://" with a host and a delimiter ":" without a host.
Added FormatFlag.HasHost and UriScheme.CustomWithHost.
2014-07-07 11:35:51 +01:00
Marcos Henrich 9aab7beda3 Change UriParser to correctly parse scheme separator ":" or "://"
Schemes expect a separator ":" or "://" but unknown schemes can use either one, so the used delimiter is now stored in UriElement.
2014-07-07 11:21:01 +01:00
Marcos Henrich 8695716072 Changed Uri.ToString() to use property Uri.Parser. 2014-07-07 11:09:58 +01:00
Alexander Köplinger 1910095e25 [mono] Ignore *.trs files in unit-tests 2014-07-05 23:35:48 +02:00
Alexander Köplinger 96201fbaa7 Ignore automake 'test-driver' file
This was introduced by automake 1.12 and can be safely ignored.
2014-07-05 23:34:40 +02:00
Zoltan Varga 243fc9e374 [jit] Rename MonoJitInfo.used_regs to 'unwind_info' to better reflect its current purpose. 2014-07-05 21:51:56 +02:00
Zoltan Varga 496579788e Add support for precise unwind info in epilogs on amd64:
* Implement DW_CFA_remember_state/restore_state opcodes.
* Add a DW_CFA_mono_advance_loc opcode to advance to a location stored outside
  of the unwind info. Use this to allow the sharing of unwind info between
  methods.

This is need to prevent crashes during unwinding when the ip of the last frame is in the epilog. This can be reproduced by
running sgen-new-threads-dont-join-stw.exe in a loop.
2014-07-05 16:10:13 +02:00
Zoltan Varga e7c56da507 Update the required bootstrap mono version to 2.10, 2.4 will no longer work. 2014-07-04 18:13:40 +02:00
Marek Safar 85e83288f8 [corlib] Update 6b94215d0b to work with not null targets too 2014-07-04 16:26:45 +02:00
Marek Safar 29520fe1b0 [mcs] Allow more conversions for CallerLineNumberAttribute 2014-07-04 16:26:45 +02:00
Zoltan Varga 9ae041a631 [sdb] Add support for out arguments in invokes. 2014-07-04 15:56:16 +02:00
Marcos Henrich 82a4c17b2b Uri.IriParsing can now be set by using an environment variable.
The Uri static constructor reads the environment variable MONO_URI_IRIPARSIN and sets Uri.IriParsing.
2014-07-04 11:25:48 +01:00
Marek Safar 6b94215d0b [corlib] Fix Delegate::DynamicInvoke for open delegates of instance methods and closed delegates of static methods 2014-07-04 12:24:16 +02:00
Alex Rønne Petersen 8ecdad183b Empty commit, poking Jenkins... 2014-07-04 04:55:16 +02:00
Zoltan Varga 3bbaf9096e [runtime] Use sleep (1) instead of sleep (0) in the native SIGSEGV suspend loop to reduce cpu usage. 2014-07-04 03:08:23 +02:00
Zoltan Varga fce3972b58 [sdb] Add support for returning the changed valuetype receiver after invokes to valuetype methods. 2014-07-03 23:33:10 +02:00
Marcos Henrich 98b6fe5827 Fixed missing # encoding.
With IriParsing disabled if the fragment has a character to be normalized then an # should be encoded.
new Uri("http://a/a?#%30#").ToString() should be "http://a/a?#0%23".
new Uri("http://a/a?#0#").ToString() should be "http://a/a?#0#".
2014-07-03 19:26:18 +01:00
Marcos Henrich c4508573a9 Updated UriHelper.FormatFlags.
Renamed HasCharactersToNormalize to HasUriCharactersToNormalize
Added HasComponentCharactersToNormalize.
2014-07-03 19:24:32 +01:00
Marcos Henrich 2d12b5be53 Fixed bad reduce of "ftp://a\.\". 2014-07-03 18:18:41 +01:00
Marcos Henrich d66a5dafb4 Added backslash to reduceLocations. Simplified componentLocations. 2014-07-03 18:02:55 +01:00
Marcos Henrich 94ca53a315 StringTester.Assert parameter message is now optional.
Additionaly if no message is provided the assert id is used instead.
2014-07-03 17:55:51 +01:00
Marcos Henrich a810e34cdb Updated Uri.Tostring.
Uri.ToString now use GetComponentsHelpers to get and format an absolute Uri and uses FormatRelative to format a relative Uri.
2014-07-03 17:41:14 +01:00
Marcos Henrich 48b81e65ff Added method GetComponentsHelper.
With GetComponentsHelper components with format UriHelper.ToStringUnescape can be retrieve without the ArgumentOutOfRangeException thrown by GetComponents.
2014-07-03 17:39:52 +01:00
Marek Safar d73e2354f3 [mcs] Don't cache lambda expressions in static constructor context 2014-07-03 17:50:41 +02:00
Marek Safar 50a98385b4 [mcs] Fixes flow analysis of if statement with constant expression 2014-07-03 17:50:40 +02:00
Marek Safar 667c78579c [mcs] Overload resolution should not fail when type inference infers inaccessible types but other overload exists 2014-07-03 17:50:40 +02:00
Marek Safar ea4d8490c7 [mcs] Methodgroup probing checks are not allowed 2014-07-03 17:50:40 +02:00
Marek Safar 9b026032a3 [mcs] Methodgroup conversion involving user defined operators 2014-07-03 17:50:40 +02:00
Marek Safar d462fc4443 [mcs] Use same result conversion rules of predefined enum operators for unary and binary expressions 2014-07-03 17:50:39 +02:00
Marek Safar 2139eeab4c [mcs] A value for params parameter with default valus is still empty array 2014-07-03 17:50:39 +02:00
Zoltan Varga 0d166ba085 [runtime] Enable aot on 64 bit osx. 2014-07-03 16:49:51 +02:00
Marcos Henrich 986071016d Updated Fragment, Query, AbsoluteUri.
Fragment and Query are now processed with UriHelper.FormatAbsolute.
AbsoluteUri is using obtained from GetComponents.
2014-07-03 14:43:43 +01:00
Marcos Henrich c55d3dfa29 UriHelper.Format now reduces paths. 2014-07-03 12:55:07 +01:00
Marcos Henrich b3dc98ad27 Improved reduce tests.
Reduce tests now test sequences of 1 to 3 encoded or decoded dots inside paths with or without trailing character and encoded fowardslash and backslash.
2014-07-03 12:46:13 +01:00
Alex Rønne Petersen 4d59f61b23 Revert "[corlib] Re-enable TaskContinuationChainLeak test."
This reverts commit 265060cc22.

The test is still failing:

2) MonoTests.System.Threading.Tasks.TaskTests.TaskContinuationChainLeak :   Expected: False
  But was:  True

at MonoTests.System.Threading.Tasks.TaskTests+TaskContinuationChainLeakTester.Verify () [0x00000] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1991
at MonoTests.System.Threading.Tasks.TaskTests.TaskContinuationChainLeak () [0x00022] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1948
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2014-07-03 05:54:01 +02:00
Alex Rønne Petersen dff4b38a95 [System] Add more logging to the BeginConnectMultiple test. 2014-07-03 02:46:21 +02:00
Alex Rønne Petersen d56373ffc0 [WCF] Disable CloseTest and OpenTest4 in CustomPeerResolverServiceTest.
These tests occasionally time out:

Test Case Failures:
1) MonoTests.System.ServiceModel.PeerResolvers.CustomPeerResolverServiceTest.CloseTest : System.TimeoutException : The operation has timed-out.
at System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd () [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult result) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0

I.e. we're timing out waiting for the async wait handle here: https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs#L495

Since we have no current WCF maintainer and this is deep, deep within
WCF land and causes unstable builds on Jenkins, disable these tests
for now.

Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=21069
2014-07-03 02:31:07 +02:00
Alex Rønne Petersen 26789fb447 [System] Add some debugging code to BeginConnectMultiple test.
The WaitOne () call has a tendency to time out on the Jenkins
VMs. However, reproducing the problem outside of Jenkins has
proven futile.

This makes the WaitOne () call block for as long as needed and
still fails the test if the elapsed time was longer than 30s.
We print the actual elapsed time to the console.

Hopefully this'll help us find out if it's just taking quite a
long time to run or if it's a hang.
2014-07-03 02:20:11 +02:00
Rodrigo Kumpera c0bb6c817c [runtime] Add cross helper extensions. 2014-07-02 16:20:08 -04:00
Marcos Henrich 5119bb867e Improved unescape testing.
With IriParsing the presencee of encoded alpha numeric, non ASCII, '-', '.', '_' and '~' characters trigger the decoding of some other characters.
Tested permutations now include tests with and tests without those characters.
2014-07-02 21:02:07 +01:00
Marcos Henrich aa1130e4fe Added methods FormatAbsolute, FormatRelative, and enum FormatFlags.
Changed Format methods to receive FormatFlags.
Added FormatFlag.HasCharactersToNormalize, which improves character decoding.
The flag is set when Iriparsing is true and the Uri contains an encoded alpha numeric, non ASCII, '-', '.' , '_' and '~'.
When the flag is set some other encoded charcaters need also to be decoded.
2014-07-02 19:17:03 +01:00
Ludovic Henry 49e43b69e5 [sgen] Use gc_stats minor and major collection counts instead of local variable 2014-07-02 13:52:57 -04:00
Zoltan Varga c81847aad0 [runtime] Fix the win32 build. 2014-07-02 19:10:22 +02:00
Marek Safar c1a3af342a [mcs] Constant folding of null strings casted to object 2014-07-02 15:33:16 +02:00
Marek Safar f2c645206b [mcs] Add new test 2014-07-02 15:33:04 +02:00
Marek Safar bde70c6954 [mcs] Parsing of nullable type cast inside statement with open parens 2014-07-02 15:31:06 +02:00
Marek Safar c25e3160cd [mcs] Switch with user conversion to nullable governing type 2014-07-02 13:10:12 +02:00
Marek Safar 36465ac8ca [mcs] Object initializer for events which can be initialized using field expression 2014-07-02 13:10:12 +02:00
Alex Rønne Petersen 68b843055d [ppc] Lower long_rem_imm to long_rem when on ppc64. 2014-07-02 10:50:07 +02:00
Alex Rønne Petersen f9435b5381 mcs/class/Makefile: Remove duplicate System.Web entry.
Second take on 5fbb351375.
2014-07-02 01:48:35 +02:00
Alex Rønne Petersen 1c0a2b274d mcs/class/Makefile: Merge common_dirs into net_2_0_dirs.
They're used in the same places so we may as well simplify.
2014-07-02 01:48:34 +02:00
Alex Rønne Petersen e7ea135959 Revert "Remove duplicate System.Web in mcs/class/Makefile."
This reverts commit 5fbb351375.

This breaks the build because System.Runtime.Remoting needs System.Web.
2014-07-02 01:35:40 +02:00
Rodrigo Kumpera d97ad1baef [runtime] First pass of cross compilation cleanup. Allow offsets and alignment to be externally calculated. 2014-07-01 19:33:57 -04:00
Alex Rønne Petersen 5fbb351375 Remove duplicate System.Web in mcs/class/Makefile.
It was listed both in net_2_0_dirs and common_dirs so
it would get tested twice in some profiles.
2014-07-02 00:37:05 +02:00
Alex Rønne Petersen 74f1bd23d2 Remove duplicate System.ServiceModel in mcs/class/Makefile.
This was causing tests to be run several times in the same profile(s).
2014-07-01 23:30:06 +02:00
Rodrigo Kumpera a5245506a5 [runtime] Fix the android build. 2014-07-01 16:19:19 -04:00
Alex Rønne Petersen 265060cc22 [corlib] Re-enable TaskContinuationChainLeak test.
This is hopefully fixed after a57fb5b.
2014-07-01 21:53:56 +02:00
Alex Rønne Petersen 8ee0cae366 [ppc] Clean up atomic opcodes.
* Support atomic_add_i4 on ppc32 in addition to ppc64.
* Make the atomic_add_* code more in line with the atomic_cas_* code.
2014-07-01 21:53:56 +02:00
Alex Rønne Petersen b784b866da [mini] Simplify the way the JIT emits atomic opcodes.
* MONO_ARCH_HAVE_ATOMIC_* macros have been removed.
* Backends now report whether they support atomic opcodes via
  the mono_arch_opcode_supported () function.
* The default implementation of mono_arch_opcode_supported ()
  has been removed as almost all backends need to define one
  anyway.
* All old atomic_add_* opcodes have been removed. These were no
  longer being used but some backends still had code for them.
* atomic_add_new_* opcodes have been renamed to atomic_add_* as
  they are now the only atomic add opcodes.
* Itanium-specific atomic_add_imm_* opcodes have been moved to
  the __ia64__ section of mini-ops.h.
* Comments have been added to mini-ops.h explaining the precise
  semantics of the atomic opcodes.

The net result of this change is a simpler backend interface at
the cost of a slightly bigger binary.
2014-07-01 21:53:56 +02:00
Alex Rønne Petersen 654f2908d6 Merge pull request #1143 from akoeplinger/fix-gc-descriptor-error
[tests] gc-descriptors: Only copy file in case of VPATH build
2014-07-01 21:40:35 +02:00
Alex Rønne Petersen d1da287383 Merge pull request #1127 from oleg-st/master
Added fix for Bug 20869
2014-07-01 21:36:58 +02:00
Alexander Köplinger 687fd0e45f [tests] gc-descriptors: Only copy file in case of VPATH build
Instead of ignoring the cp error when copying over the same file in non-VPATH builds.
2014-07-01 21:17:53 +02:00
Zoltan Varga a57fb5b645 [runtime] Make WaitForPendingFinalizers () really wait for the finalizers added by a previous GC. Fixes #20503. 2014-07-01 21:10:33 +02:00
Alex Rønne Petersen e773c8681b Merge pull request #1141 from akoeplinger/fix-mono-shlib-cop
[tools] Fixed mono-shlib-cop test
2014-07-01 20:43:40 +02:00
Zoltan Varga cb0e956570 Fix the marshal7.cs test, longs can be aligned to 4 bytes on 32 bit linux, and the runtime no longer aligns structure sizes to 8 bytes. Fixes #20788. 2014-07-01 19:53:26 +02:00
Marcos Henrich 4d3934f7c9 Changed UriPermutationsTest createMode to false. 2014-07-01 14:49:09 +01:00
Alexander Köplinger eb30357e6f [tools] Fixed mono-shlib-cop test
MONO_PATH was missing when running the tests.

Use "libMonoPosixHelper.so" in local directory when checking if DllImport of a development library generates a warning (libglib2.0-dev might not be installed, but libMonoPosixHelper is always built with mono)
2014-07-01 14:55:00 +02:00
Andrea Canciani 39108b009f Improve libgdiplus path handling
Since libgdiplus is not installed together with Mono, it should not be
assumed to be in the same prefix.

The new policy for the --with-libgdiplus configure option is the
following:

 - --with-libgdiplus=/absolute/path/to/libgdiplus.{so,dylib}

   both during build/check and after installation Mono will try to use
   the specified libgdiplus library; the rationale is that when an
   absolute path is given, it can be assumed to be the full path to
   the library that is already installed (possibly in a non-default
   path).

 - default, --with-libgdiplus=no, --with-libgdiplus=installed

   both during build/check and after installation Mono will try to use
   a system-wide libgdiplus library, that is assumed to reside in the
   paths that are automatically searched by the dynamic linker; the
   library is supposed to be already installed in the default path and
   to be useable both during the build and afterwards.

 - --with-libgdiplus=sibling, --with-libgdiplus=yes

   during build/check Mono will try to use the libgdiplus library that
   is assumed to be in the sibling folder (../libgdiplus), but after
   the installation it will try to use a system-wide libgdiplus
   library, that should be in the paths that are automatically
   searched by the dynamic linker; the assumption is that the library
   is not yet installed, but it will go to the default prefix after
   installing it.

 - --with-libgdiplus=../some/relative/path/to/libgdiplus.{so,dylib,la}

   during build/check Mono will try to use the specified libgdiplus
   library, but after the installation it will try to use a
   system-wide libgdiplus library, that should be in the paths that
   are automatically searched by the dynamic linker; the assumption is
   that the library is not yet installed, but it will go to the
   default prefix after installing it.
2014-07-01 14:25:21 +02:00
Andrea Canciani 3408b8e5f1 Use Mono prefix for libMonoPosixHelper
The libMonoPosixHelper is installed together with Mono, hence its path
in the configuration should be relative to the Mono prefix.

It was previously assumed to reside in a system path, so the the
dynamic linker would find it anyway.

This patch is based on the one included in bug #18555 (by Gaëtan
Lehmann <[email protected]>), but it also updates
runtime/Makefile.am to keep runtime/etc/mono/config consistent.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18555
2014-07-01 14:25:12 +02:00
Marek Safar 14c22b76c3 [mcs] Add missing lock expression flow analysis 2014-07-01 14:03:53 +02:00
Marcos Henrich b827f67a4e Added UriPermutationsTest.
Created a new set of tests that create&store or that load&assert uri permutations.
Uris are created with permutations of schemes, components, characters then methods and properties output is asserted against expected values obtained on .NET.
2014-07-01 12:14:31 +01:00
Marek Safar a2b77fd158 [mcs] Emit valid code for exception filter using constrained type parameter 2014-07-01 12:45:28 +02:00
Marek Safar 7dc9d3c84f [mcs] Emit correct token for inherited nested non-generic types from unbound types 2014-07-01 09:45:02 +02:00
Marek Safar 8f961e6560 [mcs] Re-add obsolete reporting for enumerators removed in 6643bc119c 2014-07-01 08:36:05 +02:00
Zoltan Varga 309e3348d3 Allocate the finalizable object in finalizer-exception.cs in another thread to make it less likely that it is retained. Fixes finalizer-exception.exe on 64 bit osx+llvm. 2014-07-01 00:35:29 +02:00
Alex Rønne Petersen f2e0ddfe07 Merge pull request #1140 from kitsilanosoftware/no-gitlink-in-dist
[dist] Do not include .git link files in dist tarball
2014-07-01 00:18:28 +02:00
Damien Diederen 8b29589414 [dist] Do not include .git link files in dist tarball
Recent versions of Git co-host submodule GIT_DIRs in <root-project>/.git/
by default, and write their relative path into <subproject>/.git,
which is a regular file:

    $ ls -l external/cecil/.git
    -rw-r--r-- 1 foo  bar  42 Jun 16 12:50 external/cecil/.git
    $ cat external/cecil/.git
    gitdir: ../../.git/modules/external/cecil

Relax the expression in Makefile.am to also delete these (broken)
"symlinks" when preparing a distribution tarball.
2014-06-30 23:59:22 +02:00
Alex Rønne Petersen 6a71dad5fe Add /reflection-load-dir to mono/tests/.gitignore. 2014-06-30 23:25:49 +02:00
Alex Rønne Petersen f6f5131915 Emit correct memory barriers in the JIT intrinsic for Interlocked.Read (). 2014-06-30 23:25:14 +02:00
Zoltan Varga 83f5d832c3 [amd64] Remove the callee saved registers from MonoLMF, save/restore them normally using the normal register save/restore code. 2014-06-30 23:04:38 +02:00
Alex Rønne Petersen c659ba284a Merge pull request #1138 from akoeplinger/fix-webtest-deadlocks
[System.Web] Tests: Fix deadlock when ThreadAbortException is thrown
2014-06-30 21:12:26 +02:00
Alexander Köplinger f7f627b756 [System.Web] Tests: Fix deadlock when ThreadAbortException is thrown
This reverts commit ed11296c51.

When a ThreadAbortException is thrown during request processing in AsyncRun () the _done.Set () call is not executed.
This then results in a deadlock because _done.WaitOne () doesn't get signaled and waits forever.
One solution would be enclosing the _done.Set () in a finally clause, but even then we'd need to relaunch the AsyncRun () loop to be in a usable state.

A simpler solution is to revert the commit that introduced the AsyncRun () in the first place, as it doesn't seem necessary now (the tests pass just fine without it).

The test that was disabled in 429cdf17cf is reenabled too, as it wasn't the culprit of the problem.
2014-06-30 21:01:30 +02:00
Marek Safar 6643bc119c [mcs] Not applicable GetEnumerator candidates were not rejected early enough 2014-06-30 19:45:46 +02:00
Alex Rønne Petersen dd96dbf5a9 Merge pull request #1133 from kitsilanosoftware/mcs-tests-no-jscript
[mcs tests] class/Microsoft.JScript does not exist anymore
2014-06-30 19:43:14 +02:00
Zoltan Varga 65c9838151 [jit] Move the 'remove any unused lmf' code from mono_arch_find_jit_info () to mini-exceptions.c to reduce code duplication and fix some problems where ctx->sp and lmf->sp was used to determine whenever the LMF was below the end of the stack instead of new_ctx->sp and lmf. 2014-06-30 19:40:10 +02:00
Zoltan Varga bffc57cca8 [amd64] Fix the popping of LMF frames during unwinding. Fixes #20616. 2014-06-30 18:54:25 +02:00
Marek Safar 2820631d68 [mcs] Emit partial type parameters attributes too 2014-06-30 17:25:27 +02:00
Marek Safar 819a50e76e [mcs] Use same rules in dynamic context as in normal instance member hidding. 2014-06-30 17:25:27 +02:00
Marcos Henrich 085fc9b574 Improved UriHelper.Format '%' handling.
When a % was found HexUnescapeMultiByte output was always considered escaped.
Now a % that is not a percentage encoded character will be processed has a not escaped character.
2014-06-29 15:44:20 +01:00
Zoltan Varga faa73b1290 [runtime] Fix the marshalling of ByValTStr types which have a size specified. Fixes #20674. 2014-06-29 15:24:29 +02:00
Marcos Henrich 666987dbcf Changed Uri.SupportsQuery to use UriHelper.SupportsQuery. 2014-06-29 11:26:33 +01:00
Marcos Henrich 048d3a198e Changed ParsePath to only break on '?' if scheme supports queries. 2014-06-29 11:01:36 +01:00
Marcos Henrich addeff3b8f Replaced UriParser.Format with UriHelper.Format.
UriParser.Format was deleted and UriParser.GetComponents is now using UriHelper.Format.
2014-06-29 10:51:09 +01:00
Marcos Henrich 77113c8429 Changed UriElements query and fragment default values to null.
Default values are now null so UriParser.GetComponents can return an empty query or fragment..
2014-06-29 10:31:43 +01:00
Marcos Henrich 6b9726ed2a Created file UriHelper.cs.
UriHelper has the method Format that escapes or unescapes a string's characters depending on the Scheme, UriKind, UriComponent and UriFormat.
2014-06-29 10:06:22 +01:00
Marcos Henrich e5eea6a591 Changed method HexUnescapeMultiByte to internal. 2014-06-29 09:48:48 +01:00
Marcos Henrich b31f2bf454 Added property IriParsing and field s_IriParsing.
The property IriParsing will be used to change between .NET 4.5 and .NET 4.0 default percentage encoding/decoding behavior.
A private field named s_IriParsing same as .NET was also added so it can be changed the same way through reflection in .NET and Mono.
2014-06-29 09:10:00 +01:00
Marcos Henrich 9d624b7d4e Added UriScheme name.
Added UriSchemeTelnet, UriSchemeLdap, UriSchemeUuid.
2014-06-28 19:15:07 +01:00
Ludovic Henry 1fdc7407a0 [sgen-worker] Improve worker data stealing distribution
The idea is simply to make a worker tries to steal work from the workers that are next to him firs, before trying back at the beginning.
This reduce lock contention on the first workers and distribute more evenly work between workers by not starving the first ones.
2014-06-27 16:21:31 -07:00
Alex Rønne Petersen 143e50f97d Fix a format string warning in decode.c. 2014-06-27 23:46:33 +02:00
Alex Rønne Petersen c2ede005a3 Only enable finally_block_ending_in_dead_bb.exe on x86/amd64 (not NaCl and Win32).
We would previously run this everywhere, but it only works on
x86 and amd64 at the moment (similar to finally_guard.exe).
This meant that it would always fail on e.g. ARM and PPC. We
still disable it under NaCl (because it uses Thread.Abort ())
and Win32.
2014-06-27 23:37:27 +02:00
Alex Rønne Petersen 2bf3cf31c1 [Ms.Build] Disable 4 tests in ProjectTest and ProjectCollectionTest under NET_4_0.
Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=20961

These tests fail under this particular profile only with the following:

1) MonoTests.Microsoft.Build.Evaluation.ProjectCollectionTest.GlobalProperties :   #2
  Expected: True
  But was:  False

at MonoTests.Microsoft.Build.Evaluation.ProjectCollectionTest.GlobalProperties () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

2) MonoTests.Microsoft.Build.Evaluation.ProjectTest.BuildCSharpTargetBuild : Microsoft.Build.Exceptions.InvalidProjectFileException : Attribute "KeepDuplicates" is not known on node "_TargetFrameworkDirectories" [type Microsoft.Build.Construction.ProjectItemElement].  at: /home/alexrp/Projects/mono/mcs/class/lib/net_4_5/Microsoft.Common.targets (182,5)
at Microsoft.Build.Construction.ProjectElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectItemElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Create (System.Xml.XmlReader xmlReader, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.ProcessXml () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Initialize () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, ProjectLoadSettings loadSettings) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0
at MonoTests.Microsoft.Build.Evaluation.ProjectTest.BuildCSharpTargetBuild () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

3) MonoTests.Microsoft.Build.Evaluation.ProjectTest.CreateProjectInstance : Microsoft.Build.Exceptions.InvalidProjectFileException : Attribute "KeepDuplicates" is not known on node "_TargetFrameworkDirectories" [type Microsoft.Build.Construction.ProjectItemElement].  at: /home/alexrp/Projects/mono/mcs/class/lib/net_4_5/Microsoft.Common.targets (182,5)
at Microsoft.Build.Construction.ProjectElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectItemElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Create (System.Xml.XmlReader xmlReader, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.ProcessXml () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Initialize () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, ProjectLoadSettings loadSettings) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0
at MonoTests.Microsoft.Build.Evaluation.ProjectTest.CreateProjectInstance () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

4) MonoTests.Microsoft.Build.Evaluation.ProjectTest.LoadCaseInsensitive : Microsoft.Build.Exceptions.InvalidProjectFileException : Attribute "KeepDuplicates" is not known on node "_TargetFrameworkDirectories" [type Microsoft.Build.Construction.ProjectItemElement].  at: /home/alexrp/Projects/mono/mcs/class/lib/net_4_5/Microsoft.Common.targets (182,5)
at Microsoft.Build.Construction.ProjectElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectItemElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Create (System.Xml.XmlReader xmlReader, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.ProcessXml () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Initialize () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, ProjectLoadSettings loadSettings) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0
at MonoTests.Microsoft.Build.Evaluation.ProjectTest.LoadCaseInsensitive () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
2014-06-27 23:37:27 +02:00
Alex Rønne Petersen 3130eae0bc atomic.c: Get rid of the fallback warning.
This is really noisy on platforms like ARM where we
intentionally use the fallback mutex-based code.
2014-06-27 23:37:27 +02:00
Matthew Leibowitz 7f8d148ec2 [system.data] Appended the fix to correct the whitespace Expression and argument checking
- Whitespace Espressions:
 -- if a column expression is a pure whitespace, use an empty string instead
 -- if a column expression is surrounded by whitespace, preserve whitespace
 -- if a column expression is null/empty, use an empty string
 - Get a row's column value:
 -- make sure we throw exceptions if the column we are looking at is null
 -- make sure we throw exceptions if we can't find the column with the provided name
2014-06-27 20:56:37 +02:00
Michael Hutchinson 8afba772b2 [MSBuild] Reload projects after parsing sln file
When building sln files, they are first converted to sln.proj
files, then the project file is built.

The engine unloaded and reloaded the sln.proj file itself, but
not the projects implicitly loaded while parsing the sln file.
This meant that some state was kept around that prevented
AfterTargets from being handled correctly

BXC18761 - AfterTargets and AfterBuild ignored by xbuild
2014-06-27 14:31:44 -04:00
Rodrigo Kumpera 3acca04eaf Revert "Don't touch internal feature macros in eglib"
This reverts commit dd412cfb2e.

We need to know what target was broken by this and verify that this won't break the platitude of libc's around.

This is currently a non-trivial job, so let's just revert this for now.
2014-06-27 14:16:29 -04:00
Michael Hutchinson c8e2f04965 [MSBuild] Suppress useless message
The DotConfigExtensionsPath won't ever exist unless the user
creates it manually, so prevent spewing out dozens of messages
that it's missing.
2014-06-27 14:09:21 -04:00
João Matos 994c2c32fd [System.IO.Compression] Tidy up formatting. 2014-06-27 16:30:32 +01:00
João Matos 53b028a5c2 [System.IO.Compression] Fixed archive entry opening for non-Create mode archives. 2014-06-27 16:04:06 +01:00
Marek Safar e206a4a2d3 Merge pull request #1134 from kitsilanosoftware/mcs-tests-dll-il-distfile
[mcs tests] Add tests/dlls/*.il to DISTFILES
2014-06-27 16:52:45 +02:00
Marek Habersack f1d4d8d1bc Merge pull request #1135 from kitsilanosoftware/rpm-spec-dead-entries
[rpm spec] Mono.Web and OpenSystem.C do not exist anymore
2014-06-27 16:45:43 +02:00
Alex Rønne Petersen abb4701d10 Use mono_strtod () instead of strtod () on ARM.
The former used to miscompile back in 2005, but this no
longer appears to be the case. Further, using strtod ()
is problematic on Linux/ARM systems with many non-US
locales that use a comma as the decimal separator.

In particular, this breaks almost all compilation with
MCS because it can't parse floating point literals.

Based on investigation by Damien Diederen <[email protected]>.
2014-06-27 16:34:18 +02:00
Alex Rønne Petersen abc9511500 Fix a format string warning in decode.c. 2014-06-27 16:34:18 +02:00
Damien Diederen 1d474d3480 [mcs tests] Add tests/dlls/*.il to DISTFILES
Without this,

    cd mcs/tests && make run-test

fails when run from a distribution tarball.
2014-06-27 16:30:35 +02:00
Damien Diederen 4984d2be23 [mcs tests] class/Microsoft.JScript does not exist anymore 2014-06-27 16:30:04 +02:00
Damien Diederen 0332f3b622 [rpm spec] Mono.Web and OpenSystem.C do not exist anymore 2014-06-27 16:29:21 +02:00
Matthew Leibowitz 19908c6b94 [system.data] BUGFIX: fixes issue with expression columns and IsNull:
- bugzilla.xamarin.com issue 20925
 - if an expression column was added ayer there were rows, and then IsNull is called, the result is incorrect (it will always be true)
2014-06-27 13:43:12 +02:00
Marek Safar 7bf00fe94c [System] Fixes a warning 2014-06-27 13:37:50 +02:00
Marek Safar fcb3c36009 [corlib] Array qsort without head allocation. Fixes #20922 2014-06-27 12:44:59 +02:00
Marek Safar 90d6774c0b [mcs] Fix crash in inherited type parameter interface check 2014-06-27 12:44:59 +02:00
Marek Safar 087c85a0a8 [mcs] Workaround MSIL limitation when loading bool elements 2014-06-27 12:44:58 +02:00
Ludovic Henry c988f486f9 [sgen-gray-queue] Fix crashing sgen-domain-unload sgen test
sgen-domain-unload.exe test would crash because of a bug involving queue->alloc_prepare_func => workers_gray_queue_share_redirect => sgen_gray_object_dequeue_section on queue => set queue->first->size depending on queue->cursor. The solution is simply to make sure that the cursor is set on the queue, before allocating a new section, even if it is does not seems necessary in the first place.
2014-06-26 20:32:46 -07:00
Ludovic Henry cc4dc922aa [sgen-gray-queue] Always update queue->cursor when dequeing
Previously, queue->cursor would not be set to NULL if the last element would be dequeued and queue->first would be set to NULL.
2014-06-26 20:31:12 -07:00
Zoltan Varga eedc51cb8f [jit] Remove now unused MONO_ARCH_HAVE_OP_LREM_IMM define. 2014-06-27 03:53:53 +02:00
Alex Rønne Petersen 28d7376a01 Fix a couple of format string warnings in sgen-gc.c. 2014-06-27 03:48:05 +02:00
Zoltan Varga 5e1960cef7 Merge pull request #1131 from schani/feature-portable-fast-lrem-imm
[jit] Portably decompose power-of-two OP_[IL]REM_IMM.
2014-06-27 03:44:22 +02:00
Zoltan Varga 9b0fcf35a8 [sdb] Avoid running tests in the 2.0 profile. 2014-06-27 02:02:16 +02:00
Mark Probst 515350999b [jit] Portably decompose power-of-two OP_[IL]REM_IMM.
Instead of generating a sequence of AMD64 instructions for
power-of-two OP_[IL]REM_IMM, portably decompose them to intermediate
code.

OP_IREM_IMM is decomposed on 32 and 64 bit archs, OP_LREM_IMM only on
64 bit archs.
2014-06-26 15:26:38 -07:00
Alex Rønne Petersen 1dd682eb3c Merge pull request #1130 from akoeplinger/descriptive-tests
[System] Make tests more descriptive on failure
2014-06-26 21:01:19 +02:00
Alexander Köplinger 4d93cac6d7 [System] Make tests more descriptive on failure
By using StringAssert we get a more descriptive error message when the test fails, i.e. the expected vs. the actual string value instead of just true/false.
2014-06-26 20:58:15 +02:00
Mark Probst 3451058c52 Merge pull request #1128 from ludovic-henry/pr19g-sgen-grayqueue
[sgen-gray-queue] Use a cursor based accessing pattern to reduce memory indirection
2014-06-26 11:46:53 -07:00
Alex Rønne Petersen 3d3da63af5 [System] Up the timeout in the BeginConnectMultiple test to 30s.
Most Linux systems have the net.ipv4.tcp_syn_retries sysctl
set to 5 or 6, so we need at least 30 seconds here.
2014-06-26 20:40:06 +02:00
Oleg Stepanischev f7b81bda13 Added fix for Bug 20869 2014-06-26 22:24:34 +04:00
Rolf Bjarne Kvinge 4c756653a6 [Mono.Data.Sqlite] Add support for Scalar and Aggregate functions in Xamarin.iOS. 2014-06-26 19:07:55 +02:00
Marek Safar d151adb4fe [corlib] Update racy test 2014-06-26 17:20:29 +02:00
Marek Safar a58750d9ac [mcs] Emit correct attribute reference when async lambda ends up in nested type. Fixes #20849 2014-06-26 17:20:29 +02:00
Marek Safar 8d282b527e [corlib] Fix typo 2014-06-26 17:20:29 +02:00
Marek Safar 37e584789e [mcs] Fix local exits from try-finally scope with awaited statements 2014-06-26 17:20:29 +02:00
Jonas 'Sortie' Termansen a4f87aef0e Print pid_t's portably in mono/metadata/attach.c
The pid_t type is required by POSIX to be a signed integer type (and that it
isn't wider than long in at least one programming environment). Mono has a
bunch of issues with 64-bit pids at the present, this is a start. Cast the
pid to the largest available signed type before printing it.

This change is released under the MIT/X11 license.
2014-06-26 10:59:10 -04:00
Jonas 'Sortie' Termansen 1e35e62d1c Avoid non-standard BSD types in mono/io-layer/wapi_glob.c
The u_char, u_short and u_int types are non-standard and no system headers
are required to provide them. There are no particular use for them and the
builtin standard types will do just as well.

This change is released under the MIT/X11 license.
2014-06-26 10:58:59 -04:00
Jonas 'Sortie' Termansen a869ac45ab Restore the null garbage collector
I had to use the null garbage collector due to boehm being troublesome. The
code appears unmaintained but I can see a recent git commit enabled support
again. However, I had to do more than that to get it working. I'm really not
sure how semantically correct this is and it needs review from an expert in
how threads and garbage collection interplay in Mono. It seems very odd that
various attributes (such as its short id) about the main thread is
initialized as a side effect of initializing the garbage collection. The
mono_thread_info_attach was needed to prevent a crash.

This change is released under the MIT/X11 license.
2014-06-26 10:53:22 -04:00
Jonas 'Sortie' Termansen 325982b65f Remove Mono_Posix_Syscall_utimes_bad
Welcome to the world of tomorrow! It's been almost a decade since this was
made obsolete in 2005. Nothing uses this function any longer. Additionally
it is completely broken as utimes takes a pointer to an array with two
timevals, but the code passes only a pointer to a single timeval.

This change is released under the MIT/X11 license.
2014-06-26 10:52:53 -04:00
Jonas 'Sortie' Termansen 8305af7c9b Remove test whether thread-local storage works in shared libraries
This test was added in 2004 to work around buggy Linux distributions and is
not needed today. The test caused problems as it also ran on non-Linux
operating systems and assumed dynamic linking was available. This caused it
to mistakenly decide thread-local storage was unavailable on operating
systems with no dynamic linking (but perfectly usable thread-local storage).

This change is released under the MIT/X11 license.
2014-06-26 10:10:51 -04:00
Jonas 'Sortie' Termansen dd412cfb2e Don't touch internal feature macros in eglib
The __USE_GNU macro is an internal macro used by glibc to enable the GNU
extensions. Programs are instead meant to use the _GNU_SOURCE macro before
including any system header.

This change is released under the MIT/X11 license.
2014-06-26 10:09:15 -04:00
Jonas 'Sortie' Termansen 82364ccaaa Use SIGPROF only if it is available
The SIGPROF signal is an XSI option and obsolescent in XSI. POSIX systems
are not required to have it.

This change is released under the MIT/X11 license.
2014-06-26 10:09:08 -04:00
Jonas 'Sortie' Termansen b564bf4919 Use memset instead of bzero
There is no standard bzero function, only the standard memset function, and
Mono does not declare its own bzero function.

This change is released under the MIT/X11 license.
2014-06-26 10:08:59 -04:00
Jonas 'Sortie' Termansen 4ea1407655 Remove MONO_SIZEOF_SUNPATH
The configure script determines the size of the sun_path member in struct
sockaddr_un. However the test is broken during cross-compilation (with a
comment that there is no macro to determine the size of struct members at
configure time) and MONO_SIZEOF_SUNPATH defaults to 0 (leading to buffer
underflows and overflows). There is no reason to determine this at configure
time when a simple traditional sizeof will do the job at compile time.

This change is released under the MIT/X11 license.
2014-06-26 10:08:54 -04:00
Jonas 'Sortie' Termansen 37acf9e69c Use MAP_FAILED instead of (void*)-1
The MAP_FAILED macro is the standard return value of mmap() upon failure and
it is allowed to have other values than (void*)-1.

This change is released under the MIT/X11 license.
2014-06-26 10:00:03 -04:00
Jonas 'Sortie' Termansen ba1b74d003 Avoid unused function warning in mono/profiler/proflog.c
The dump_ubin function is only used by the elf_dl_callback function. It
should be wrapped in the same #if conditional to avoid a warning if the
preprocessor conditional isn't true.

This change is released under the MIT/X11 license.
2014-06-26 09:59:56 -04:00
Jonas 'Sortie' Termansen bdcc267c59 Avoid unused function warning in mono/io-layer/io.c
The get_fstypename function is only used by the GetVolumeInformation
function. It should be wrapped in the same #if conditional to avoid a
warning if the preprocessor conditional isn't true.

This change is released under the MIT/X11 license.
2014-06-26 09:59:48 -04:00
Jonas 'Sortie' Termansen 05fb00fad6 Use S_IWUSR instead of S_IWRITE
The S_IWRITE macro is a non-standard macro provided by some operating
systems for compatibility with BSD. POSIX specifics a standard macro with
identical semantics with the name S_IWUSR.

This change is released under the MIT/X11 license.
2014-06-26 09:59:24 -04:00
Jonas 'Sortie' Termansen e9a8ca77f1 Get struct timespec from <time.h> in mono/io-layer/misc-private.h
POSIX defines struct timespec in time.h and struct timeval in sys/time.h.
Some operating systems have merged these headers, but this isn't required or
encouraged by POSIX.

This change is released under the MIT/X11 license.
2014-06-26 09:59:17 -04:00
Jonas 'Sortie' Termansen 984de6388c Remove unnecessary <sys/syscall.h> inclusion
Only mono/metadata/icall.c and mono/metadata/filewatcher.c include the
mono/metadata/filewatcher.h header and none of them depend on the contents
of the non-standard header <sys/syscall.h>.

This change is released under the MIT/X11 license.
2014-06-26 09:59:06 -04:00
Jonas 'Sortie' Termansen c765c61f57 Only include the <sys/param.h> header if available
The <sys/param.h> header is non-standard and usually not required if it isn't
available.

This change is released under the MIT/X11 license.
2014-06-26 09:57:42 -04:00
Jonas 'Sortie' Termansen 6479266304 Use <poll.h> to get poll rather than <sys/poll.h>
POSIX specifies <poll.h> as the standard header that declares the poll
function. Many systems provide <sys/poll.h> to be compatible with historical
practice. Prefer the <poll.h> header over <sys/poll.h> if it is available.

This change is released under the MIT/X11 license.
2014-06-26 09:57:34 -04:00
Jonas 'Sortie' Termansen 3512f22ee7 Use <sys/select.h> to get select
POSIX mandates that select is declared in <sys/select.h> (and in the header
<sys/time.h> for compatibility). It would be best to include the new header
if it is available. This is already done throughout the source tree, though
not in all instances.

This change is released under the MIT/X11 license.
2014-06-26 09:57:18 -04:00
Ludovic Henry 748ca8163b [sgen-gray-queue] Add heavy statistics for allocation, and enqueue/dequeue fast/slow paths 2014-06-25 17:40:08 -07:00
Ludovic Henry b1be64cb18 [sgen-gray-queue] Remove compilation warning in mini-gc.c : redefinition of typedef 'mword' 2014-06-25 17:40:08 -07:00
Ludovic Henry f2a6fb719d [sgen-binprot,sgen-gray-queue] Add binary_protocol_gray_(en|de)queue and call them on object enqueuing and dequeuing 2014-06-25 17:40:07 -07:00
Ludovic Henry 470dd7b570 [sgen-protocol] Avoid multiple inclusion of sgen-protocol.h 2014-06-25 17:40:06 -07:00
Ludovic Henry 29a63c160b [sgen-gray-queue] Add macros to compute first and last cursor position address on a section 2014-06-25 17:40:05 -07:00
Ludovic Henry f80999e89b [sgen-gray-queue] Transform GRAY_OBJECT_(EN|DE)QUEUE to always inlined functions 2014-06-25 17:40:05 -07:00
Ludovic Henry 73121dcdc9 [sgen-gray-queue] Change from index based to cursor based gray queue access to current element
This patch consist in changing the way we access the current element value in the gray queue. Before, we would save the index of the last element in the queue, then to access to the current value, we would have to make 2 memory access + 1 array offset access. Now we store a pointer to the current element, so we only need 1 memory access, thus reducing the number of memory indirection. We see ~25% speed improvement in major gc collection time on gc-graystack-stress test.
2014-06-25 17:39:54 -07:00
Ludovic Henry 79a9694861 [sgen-gray-queue] Add graystack stress test 2014-06-25 17:08:52 -07:00
Zoltan Varga ddfd29c85c [jit] Add a MONO_ARCH_HAVE_OP_LREM_IMM define instead of using TARGET_AMD64. 2014-06-25 19:34:55 +02:00
Joao Matos 256a379643 Fixed compiler warning introduced in the last commit about redefining typedefs.
Redefinition of typedef 'foo' is a C11 feature [-Wtypedef-redefinition].
2014-06-25 18:26:43 +01:00
Joao Matos 0b4a34433b Fixed Mono includes to be able to be included independently. 2014-06-25 16:57:16 +01:00
Joao Matos 1cf398ae57 Cleaned up C++ keywords in Mono metadata headers. 2014-06-25 16:57:06 +01:00
Marek Safar f3760960d6 [corlib] Enum::TryParse ignores leading whitespaces. Fixes #20870 2014-06-25 17:31:03 +02:00
Marek Safar d27b129837 [mcs] Fix array access of value type compound assignment with awaited argument 2014-06-25 17:31:03 +02:00
Marek Safar 091b1b5770 [xbuild] Add 4.5.1 framework. Fixes #20827 2014-06-25 17:31:02 +02:00
Marek Safar 4b3572d4a6 [mcs] Allow unsafe code in async block when scope does not need variable capturing 2014-06-25 17:31:02 +02:00
Alex Rønne Petersen 429cdf17cf [System.Web] Disable AppResourcesCompilerTest for now.
This is a stopgap measure: This test hangs a *lot* on Jenkins
and it's only being disabled to get stable-ish builds. It's
being actively investigated still.
2014-06-25 13:22:35 +02:00
Marek Safar f6da699cb6 [mcs] Add experimental value changes notifications to evaluator 2014-06-25 08:50:31 +02:00
Marek Safar c72443eea7 [mcs] Handle side effect constants in await context 2014-06-25 08:50:31 +02:00
Zoltan Varga 90513b115a Fix a warning. 2014-06-25 02:13:10 +02:00
Zoltan Varga 5e761c8175 Merge pull request #1126 from schani/feature-fast-lrem-imm
[amd64] Fast OP_LREM_IMM for power of two operands.
2014-06-25 02:03:20 +02:00
Mark Probst 8580919c1b [amd64] Fast OP_LREM_IMM for power of two operands.
This was the reason for one of our bad performance results in the
paper "Clash of the Lambdas" by Biboudis, Palladinos, Smaragdakis:

http://cgi.di.uoa.gr/~biboudis/clashofthelambdas.pdf
2014-06-24 16:04:26 -07:00
Zoltan Varga 39d07051cf [aot] Fix the decoding of MonoJitInfo. Fixes #16439. 2014-06-25 00:49:07 +02:00
Mark Probst d280b9c122 [sgen] Binary protocol freeing whole M&S blocks. 2014-06-24 10:02:18 -07:00
Mark Probst ad32d49ad7 [sgen] Nicer sgen-grep-binprot output.
Indent events that are always printed so that the ones we're grepping
for are more easily recognized.
2014-06-24 10:02:17 -07:00
Jeffrey Stedfast 10fa44a5e6 Merge pull request #995 from yjoly/master
Fix the date time set in file by removing the ':'.
2014-06-24 11:07:35 -04:00
Marek Safar a58aeafe1d [corlib] Fix racy test 2014-06-24 14:20:16 +02:00
Marek Safar bfa0db9efa [System.Net.Http] Fix disposing of DelegatingHandler. Fixes #20818 2014-06-24 14:20:16 +02:00
Marek Safar 4e937922fa [mcs] Emit side effects of reduced probing expression 2014-06-24 14:20:15 +02:00
Marek Safar 675203a9b7 [mcs] Fix emit of array access with awaited indexer expression and result field write. 2014-06-24 14:20:15 +02:00
Marek Safar b3e65f596d [mcs] Fix scope initialization for exception filters using hoisted lambdas with awaited catch clause 2014-06-24 14:20:15 +02:00
Marek Safar 6d032de710 [mcs] Recognize await as simple name in type context 2014-06-24 14:20:15 +02:00
Alex Rønne Petersen 18bf2e6869 Add a section to CONTRIBUTING.md on inactivity. 2014-06-24 11:12:08 +02:00
Ivo Smits 0e2f0a23b6 Fixed NullReferenceExcepton in Socket.Connect for non-IP endpoints
Socket.Connect(EndPoint) throws a NullReferenceException when connecting to non-IP (eg Unix) endpoints in Dgram mode.
2014-06-24 00:21:06 +02:00
Mark Probst 2d3735c6a6 [sgen] Don't crash for describe_ptr() when there's no bridge processor. 2014-06-23 13:18:35 -07:00
Chris Hamons 90162e5201 Fix Mono.Linker.csproj so it can build
Mono.Linker.csproj has drifted from its associated Makefile was was not buildable.
This change applies changes from the last few Makefile changes.
2014-06-23 10:32:39 -05:00
Marek Safar 3c2f52ef67 [corlib] Fix race in unit test 2014-06-23 14:30:02 +02:00
Marek Safar 41a903da83 [mcs] Handle try await nested in multiple finally blocks. 2014-06-23 14:17:05 +02:00
Alex Rønne Petersen 1633666e82 [corlib] Disable TaskContinuationChainLeak test on non-mobile too. 2014-06-23 14:11:40 +02:00
Alex Rønne Petersen 4ae5924002 Merge pull request #1123 from akoeplinger/fix-webreq-test
[System] Use the same port number instead of a random port in HttpWebRequestTest
2014-06-23 04:06:46 +02:00
Zoltan Varga 6a197bad93 Fix a warning. 2014-06-22 21:38:24 +02:00
Alexander Köplinger 7b5f4a511f [System] Use the same port number instead of a random port in HttpWebRequestTest
A random port doesn't add any value and resulted in at least one port conflict on monojenkins:
http://monojenkins.cloudapp.net/job/Mono/243/testReport/MonoTests.System.Net/HttpWebRequestTest/BeginGetRequestStreamCancelIfNotAllBytesWritten/
2014-06-22 20:10:17 +02:00
Alex Rønne Petersen 8c3ec62481 Merge pull request #1121 from inkdev/master
Fix MSVC build
2014-06-22 16:30:53 +02:00
i59 1dba47fa44 libmono.vcxproj: Link to libmonoruntimesgen.lib in the Release_SGen mode
Previously attempted to link to the libmonoruntime library outputted by the boehm configuration
2014-06-22 16:24:46 +02:00
i59 2bb991cc21 Added file-mmap-windows.c to libmonoruntime.vcxproj 2014-06-22 16:23:16 +02:00
i59 d0feb53196 Moved _WIN32_WINNT to winconfig.h; dropped support for WinXP SP1 and below
Win32 compilation was broken due to attempting to use Interlocked* functions introduced with XP SP2.
2014-06-22 16:21:29 +02:00
i59 daa5a50f41 libmonoutils: Removed need for X64 MASM definition
Check for availability of the RAX register, checking if we're running x64
2014-06-22 16:19:52 +02:00
Alex Rønne Petersen afa2f52e54 Merge pull request #1118 from kitsilanosoftware/udp-client-test-check-ipv6
[System.Net] Do not assume IPv6 is enabled in UdpClientTest
2014-06-21 23:45:54 +02:00
Alex Rønne Petersen 470b80cdfd Merge pull request #1119 from akoeplinger/fix-currencymanager
[Managed.Windows.Forms] Revert a revert commit that accidentally changed the wrong code
2014-06-21 23:45:03 +02:00
Zoltan Varga 50426fe3fd [llvm] Update the LLVM backend to llvm ca4e226df2e13a9e87376a880035efa376639c98. 2014-06-21 18:40:05 +02:00
Alexander Köplinger 1d9a3dc83c [Managed.Windows.Forms] Added more asserts to the CurrencyManagerTest2 test
These were useful while investigating 4b50211fb7
2014-06-21 16:51:09 +02:00
Alexander Köplinger 4b50211fb7 [Managed.Windows.Forms] Revert a revert commit that accidentally changed the wrong code
When the commit 8334fe3a56 was reverted in a791cfc164, accidentally the wrong chunk of code was changed.

This commit reverts the changes correctly.
2014-06-21 16:37:34 +02:00
Zoltan Varga 9daad272b1 [llvm] Remove a small source workaround which is no longer needed. 2014-06-21 15:42:21 +02:00
Alex Rønne Petersen f2261b6786 Merge pull request #1117 from akoeplinger/fix-databindingsource
[Managed.Windows.Forms] Verify that DataMember is valid when setting DataSource
2014-06-20 20:48:21 +02:00
Damien Diederen 3d21e9cd2f [System.Net] Do not assume IPv6 is enabled in UdpClientTest
Without this, three of the tests fail on Linux kernels without IPv6
support.

This is a minimal fix, copy'n'pasting a conditional which was used in
other tests.  It might be nicer to factor out the SupportsIPv6 to its
own utility function.
2014-06-20 18:45:35 +02:00
Alexander Köplinger f71a3c2683 [Managed.Windows.Forms] Verify that DataMember is valid when setting DataSource
When DataMember is already set before DataSource we need to verify that it refers to a valid property in the DataSource setter, otherwise we'd get an exception in ResetList ().
This fixes the following failing tests: BindingSourceTest.DataMemberBeforeDataSource and BindingSourceTest.DataSourceAssignToDefaultType.

Commit licensed under MIT/X11.
2014-06-20 16:45:38 +02:00
Alex Rønne Petersen e385d1f039 Fix the build. 2014-06-20 04:17:30 +02:00
Alex Rønne Petersen 7461128a7d Silence a warning in file-mmap-posix.c. 2014-06-20 04:12:11 +02:00
Alex Rønne Petersen e437882c77 Merge pull request #1113 from akoeplinger/fix-cache-test
[System.Runtime.Caching] Fixed test that failed intermittently on slow systems
2014-06-20 03:26:29 +02:00
Alex Rønne Petersen 6d69a0674b [MWF] Disable OneIdlePerThread test.
The code that made this test work was reverted, so this test is
bound to fail randomly.
2014-06-20 03:25:01 +02:00
Alexis Christoforides 5bdff7c7e9 Added test for bug #20672 (fixed in aeab5b5902) 2014-06-19 19:49:33 -04:00
Rodrigo Kumpera 2bf354ca84 [runtime] Rework named mapping to use an unlinked file to provide correct mapping semantics.
Instead of using mono_valloc we create a temp file and unlink it. With this we can have the right
mmap semantics regarding CoW and access rights.

This does simplify the code too by completely removing the mapping kind.
2014-06-19 19:10:39 -04:00
Rodrigo Kumpera 1d2e26c1ee [runtime] Fix error handling with named memory regions. 2014-06-19 19:10:39 -04:00
Rodrigo Kumpera 8cd47821b9 [runtime] Make it possible to create views to magic zero size files such as /dev/zero. Fixes #19460 2014-06-19 19:10:39 -04:00
Rodrigo Kumpera c92dfa2731 [runtime] Define DEFFILEMODE to 0666 if not defined. 2014-06-19 19:10:38 -04:00
Alex Rønne Petersen 17d6f1cbb8 [MWF] Disable DataRemainsOnClipboard_Xamarin4959 test.
It works fine on a regular system but breaks under Xvfb.

http://monojenkins.cloudapp.net/job/Mono/230/testReport/MonoTests.System.Windows.Forms/ClipboardTest/DataRemainsOnClipboard_Xamarin4959/
2014-06-19 23:58:05 +02:00
Miguel de Icaza 8d15c21023 [WCF] Make BasicHttpBinding.AllowCookies work
This patch is from Brendan Zagaeski and fixes bug 11307

The description of the problem was:

In Mono 2.10.12, the BasicHttpBinding property no longer supports
EnableHttpCookieContainer because it is Depreciated. The replacement
is AllowCookies, but this property does not work. Upon inspection of
the source source, we find that the HttpCookieContainerBindingElement
is added in accordance with EnableHttpCookieContainer, but not
AllowCookies.

The conditional compile logic at [1] is no longer needed for
Xamarin.iOS or Xamarin.Android.
2014-06-19 17:45:15 -04:00
Alexander Köplinger 98513c62ec [System.Runtime.Caching] Fixed test that failed intermittently on slow systems
Apparently on slow systems the items with 1sec expiration time are already removed from the cache by the time the #CS3 Assert() is hit, which caused the test to fail.
Increasing the expiration time by +2sec should hopefully fix this.

Commit licensed under MIT/X11.
2014-06-19 21:54:02 +02:00
Alex Rønne Petersen 3e1d41ab5d Also disable generic-xdomain.2.exe in gsharing tests. 2014-06-19 21:52:38 +02:00
Zoltan Varga 15c725c674 [runtime] Free static bound delegate wrappers of dynamic methods. Fixes #19058. 2014-06-19 20:58:24 +02:00
Rodrigo Kumpera c5771113c2 [runtime] Don't perform double accounting of offset for named memory segments. Fixes #20591 2014-06-19 14:32:48 -04:00
Rodrigo Kumpera e41cdd1666 Merge pull request #946 from akoeplinger/fix-mono-parallel
[Mono.Parallel] Removed broken Mono.Threading.Tasks code
2014-06-19 11:46:06 -04:00
Rodrigo Kumpera 21f79f8d6e Merge pull request #1074 from esdrubal/bug18421
Changed TryPeek to handle race condition with Dequeue.
2014-06-19 11:45:17 -04:00
Marek Safar feec628026 [xbuild] Parsing conditions with property references. Fixes #20634 2014-06-19 17:28:52 +02:00
Miguel de Icaza 3ee57747e4 Revert change that introduces a new undocumented environment variable 2014-06-19 09:34:59 -04:00
Marek Safar 357e5fe0ee [xbuild] Implements property functions using constructor syntax. Fixes #12999 2014-06-19 14:59:17 +02:00
Alexis Christoforides aeab5b5902 [System.ComponentModel] BindingList.ListChanged now attempts to provide a PropertyDescriptor when possible.
BindingList subscribes to PropertyChanged events of eligible contained objects. Iff the PropertyName provided is valid,
the list event's ListChangedEventArgs will also contain a PropertyDescriptor.

This is to match MS behavior.
2014-06-18 22:11:43 -04:00
Alex Rønne Petersen f777bc37a4 Merge pull request #1109 from adbre/iss358
Override registry storage with MONO_CURRENTUSER_REGISTRY_PATH
2014-06-19 02:34:53 +02:00
Alex Rønne Petersen 83a34c40c6 [ppc] Bump instruction sizes after 51c454f6b0. 2014-06-18 21:30:30 +02:00
Jonathan Pryor b9afa88209 Merge pull request #1014 from txdv/master
Expose full epoll_ctl functionality.
2014-06-18 15:21:05 -04:00
Alex Rønne Petersen a2fa438af6 Merge pull request #1110 from tpokorra/FixImageListStreamerGeneratingValidResourcesForMSNet
Fixing ImageListStreamer generating winform resource files that work on MS.Net
2014-06-18 21:02:38 +02:00
Iain Lane 2f3d0439a2 Override registry storage with MONO_CURRENTUSER_REGISTRY_PATH
https://bugzilla.xamarin.com/show_bug.cgi?id=358
2014-06-18 21:00:44 +02:00
Alex Rønne Petersen 383d23d87a Merge pull request #1111 from akoeplinger/add-gtk-dllmap
Added dllmap for libgtk-x11 and libgdk-x11
2014-06-18 17:21:03 +02:00
Alexander Köplinger df49c2d640 Added dllmap for libgtk-x11 and libgdk-x11
Commit licensed under MIT/X11.
2014-06-18 17:18:08 +02:00
Andrius Bentkus b8d5a800f8 Expose full epoll_ctl functionality.
Now the user has access to all struct elements in EpollEvent when
using epoll_ctl. This is in particular very intersting when the
user wants to access the ptr field.

The user can use GCHandle.ToIntPtr to give the struct a GCHandle
and then handle the pointer later on when using epoll_wait.
2014-06-18 18:06:44 +03:00
Timotheus Pokorra cfa3d9898a ImageListStreamer generates winform resource files that work on Mono but fail on Microsoft.net
with exception System.InvalidOperationException: Loading of the ImageList did not succeed.
see bug https://bugzilla.xamarin.com/show_bug.cgi?id=3841 for detailed analysis
2014-06-18 16:33:31 +02:00
Alex Rønne Petersen 51c454f6b0 [ppc] Add missing sync instructions to atomic opcodes.
Note that lwarx and stwcx don't produce the necessary
load/store barrier that's needed to conform to the
`Interlocked` API.
2014-06-18 16:08:14 +02:00
Alexander Köplinger db9f761a78 Fixed another 8080 test port
I missed that one in f396d37c54.
2014-06-18 10:01:36 +02:00
Alex Rønne Petersen e761d7d521 Silence a warning in file-mmap-posix.c. 2014-06-18 02:38:52 +02:00
Alex Rønne Petersen 5780ee5fd3 Merge pull request #1108 from akoeplinger/change-test-ports
[System.ServiceModel] Changed test port from 8080 to 30158
2014-06-17 23:05:04 +02:00
Alexander Köplinger f396d37c54 [System.ServiceModel] Changed test port from 8080 to 30158
Port 8080 is widely used and resulted in address conflicts on monojenkins, so we use a different port instead.

Commit licensed under MIT/X11.
2014-06-17 23:00:42 +02:00
Zoltan Varga cc0a7a9516 [aot] Add support for overriding the alignment calculations done by the runtime during AOT. This is needed because the alignment of some types, notable i8/double can be different between the host and the target platform. 2014-06-17 20:43:55 +02:00
Alex Rønne Petersen 9f3e361cfb Disable generic-xdomain.2.exe on CI as it occasionally hangs. 2014-06-17 17:55:29 +02:00
Alex Rønne Petersen fb36574f62 Merge pull request #1106 from akoeplinger/fix-winforms-tests
[Managed.Windows.Forms] Fixed System.Resources tests that relied on DummyAssembly
2014-06-17 17:47:45 +02:00
Alex Rønne Petersen 228f23886d Merge pull request #1107 from akoeplinger/fix-numericupdown
[Managed.Windows.Forms] Fix 'minimum' default value of NumericUpDown
2014-06-17 17:46:56 +02:00
Alexander Köplinger b66e06d51c [Managed.Windows.Forms] Fix 'minimum' default value of NumericUpDown
The 'minimum' default value of NumericUpDown was set to 0.0M, which caused the ToString() to format it as "0.0" instead of "0" as it does on .NET.
A similar change was done for the 'maximum' default value already in f6c8d48a3a.

Commit licensed under MIT/X11.
2014-06-17 17:35:46 +02:00
Marek Safar d14176dd3f [mcs] Implements finally execution for await with try block exit. 2014-06-17 16:45:08 +02:00
Alexander Köplinger 8fb625e06d [Managed.Windows.Forms] Fixed System.Resources tests that relied on DummyAssembly
Several System.Resources tests rely on a DummyAssembly.dll, which was removed in 016b0b5170 (possibly by accident?).
This commit adds the assembly back.

Commit licensed under MIT/X11.
2014-06-17 13:51:20 +02:00
Atsushi Eno eeb5fe56f7 Revert "[msbuild] fix some weird local result variable initialization issue."
This reverts commit 76b08f12ef.
2014-06-17 13:59:01 +09:00
Zoltan Varga 2ddfbf51f6 Merge pull request #1103 from nathanaeljones/patch-1
Fix AddCacheDependency signature to use params
2014-06-16 23:26:28 +02:00
Zoltan Varga 62bef77ea0 [runtime] Add a workaround to file-mmap-posix.c to fix the android build. 2014-06-16 23:10:13 +02:00
Zoltan Varga 161e57021c [aot] Use g_print instead of printf in one place since the former works on android. 2014-06-16 22:25:54 +02:00
Zoltan Varga 3c2c696ad0 [arm] Fix alignment problems when AOTing from osx to arm linux. 2014-06-16 22:25:12 +02:00
Alex Rønne Petersen 959a4de741 Merge pull request #1104 from tpokorra/TarballIncludeMoreDllsInMonoLite
Tarball: include System.Security.dll and System.Configuration.dll in monolite directory
2014-06-16 21:49:08 +02:00
Timotheus Pokorra 3432138155 Tarball: include System.Security.dll and System.Configuration.dll in monolite directory
this is related to commit https://github.com/mono/mono/commit/993f4773638bcb36abf8b9660ee737d6445c5200
2014-06-16 21:11:26 +02:00
Zoltan Varga 8f4cb8ed33 [bcl] Fix the mobile build. 2014-06-16 19:06:41 +02:00
Nathanael Jones 2feb372609 Fix AddCacheDependency signature to use params
The .NET AddCacheDependency method signature is `public void AddCacheDependency(params CacheDependency[] dependencies);` Mono should mirror the signature (even if it isn't implemented) to prevent build errors. Conditional code, of course, will need to be used for an alternative mono path.
2014-06-16 18:43:28 +02:00
Alex Rønne Petersen f56aeff39a Merge pull request #1102 from tpokorra/TarballFixAvoidCDataTextReaderTests
Remove a reference to the file AvoidCDataTextReaderTests.cs so that tarballs can be built again
2014-06-16 16:11:43 +02:00
Timotheus Pokorra c419208296 Remove a reference to the file AvoidCDataTextReaderTests.cs so that tarballs can be built again.
The file was removed in https://github.com/mono/mono/commit/d8d1b0be6baf6f8881871592b040d85be790926c
2014-06-16 16:03:46 +02:00
Alex Rønne Petersen e0747e6952 Merge pull request #1101 from jariq/master
Support both unencrypted PKCS#12 and PKCS#12 encrypted with an empty pas...
2014-06-16 14:54:30 +02:00
Marek Safar 8826a3bb45 [mcs] Run new initializer await checks only in async context. Fixes #20614 2014-06-16 14:13:40 +02:00
Marek Safar 8f53ba7970 Merge pull request #1099 from jsportaro/master
Added fix for Bug 11630
2014-06-16 12:52:45 +02:00
Marek Safar 94f466897f [system.data] Parse numeric expressions using invariant culture. Fixes #20582 2014-06-16 12:07:25 +02:00
Marek Safar e579555a53 [mcs] Reachability analysis should ignore local variables declarations. Fixes #20603 2014-06-16 11:56:57 +02:00
Zoltan Varga b124f29f83 Merge pull request #1100 from BrzVlad/master
[x86] Fix initialization of stackalloc-ed memory in no pushes mode.
2014-06-15 12:34:45 +02:00
Zoltan Varga eed0a5d920 [runtime] Enable support for arm64-darwin in dolt. 2014-06-15 00:41:28 +02:00
Jaroslav Imrich d798c91b01 Support both unencrypted PKCS#12 and PKCS#12 encrypted with an empty password in X509Certificate2 constructor 2014-06-15 00:32:15 +02:00
Brezae Vlad a6df42cfa9 [x86] Align stackalloc-ed memory in no pushes mode. 2014-06-15 00:07:52 +03:00
Zoltan Varga 79e70b4692 [arm] Add an enum for gsharedvt argument marshalling conventions. 2014-06-14 22:40:16 +02:00
Brezae Vlad b152bc9f1c [x86] Fix initialization of stackalloc-ed memory in no pushes mode. 2014-06-14 00:43:12 +03:00
Larry O'Brien d8d1b0be6b Monodoc: Fix for CDATA bug (https://bugzilla.xamarin.com/show_bug.cgi?id=17850). Reverts 3f361e1a26
Removed code that stripped CDATA statements (but not blocks) from input when showing a namespace page:

The function Ecma2Html.WrapStream(TextReader,Dictionary<String,String>) very explicitly returns a new `AvoidCDataTextReader` when the system is showing a namespace. The `AvoidCDataTextReader` strips the CDATA statement, but not it's internal contents. The intent, according to AvoidCDataTextReaderTests, is to allow class summaries of this form:

"<elements><summary>Addressbook APIs.</summary><remarks /><class name=""ABAddressBook"" fullname=""MonoTouch.AddressBook.ABAddressBook"" assembly=""monotouch""><summary><![CDATA[
      Provides access to the system Address Book.]]>
    </summary></class></elements>"

But that form is not desired.

The bug arose because the input to `WrapStream` is very large (it actually includes the entire *description* for each class and member in the namespace!). If any CDATA-block contained entities such as, e.g., < or >, the resulting XML would (obviously) be ill-formed:

"<xml>This should be valid <![CDATA[<T>]]> </xml>"

would throw because the <T> would be attempted to be parsed as XML. Obviously, samples that contain generics or lambda or XAML would cause this problem.

Although an XMLException was thrown, Macdoc swallows the exception in DocTools.GetHTML(). That is why this caused a silent failure on macdoc and was visible on Webdoc.
2014-06-13 11:13:24 -10:00
Rodrigo Kumpera 66aaa61cb7 [System.Core] Add new tests for MemoryMappedFile. 2014-06-13 14:53:34 -04:00
Rodrigo Kumpera c5c1dc716e [runtime] Fix share/private flags when doing file mmap. 2014-06-13 14:35:55 -04:00
Rodrigo Kumpera 59fd337839 [runtime] Rewrite MemoryMappedFile to support named mappings. 2014-06-13 12:17:27 -04:00
Joseph Portaro 159f2dc89d Added fix for Bug 11630 2014-06-13 11:55:37 -04:00
Marek Safar 429c2c7f42 [mcs] Always store hidden catch variable when clause contains await 2014-06-13 17:39:11 +02:00
Marek Safar 9fba495639 [corlib] Set AggregateException message text in all overloads 2014-06-13 17:39:10 +02:00
Marek Safar 66a9644ee8 [mcs] Emit correct value type collection initialization when second initializer uses await 2014-06-13 17:39:10 +02:00
Marek Safar 3f6b2feebd [mcs] Keep stack populated when array initializer contains await 2014-06-13 17:39:10 +02:00
Zoltan Varga 805bcf7e82 [x86] Pop the vtype return addr from the stack in no pushes mode too. 2014-06-13 16:23:35 +02:00
Alex Rønne Petersen bd6089a84a Merge pull request #1098 from tpokorra/TarMissing_vasprintfh
tarball is missing file vasprintf.h
2014-06-13 16:21:20 +02:00
Timotheus Pokorra 5e2cd9c29f since gerror.c requires vasprintf.h, we need to add that file so that it becomes part of the tarball 2014-06-13 16:15:19 +02:00
Zoltan Varga a3f242b793 [x86] Reduce some code duplication in the x86 call opcodes. 2014-06-13 15:55:49 +02:00
Alex Rønne Petersen 93f8df65f9 Disable push-less x86 code for now.
Breaks stuff: https://wrench.mono-project.com/Wrench/ViewLane.aspx?lane_id=10&host_id=8&revision_id=68534
2014-06-13 15:32:42 +02:00
Zoltan Varga a0448cd729 Merge pull request #1097 from BrzVlad/master
[jit] Fix bug when using pushless code and reenable the feature.
2014-06-13 13:15:03 +02:00
Marek Safar 74b24b0e55 [mcs] Handle catch filter with await-ed rethrow and exception filters 2014-06-13 11:22:03 +02:00
Brezae Vlad 9ae8e72ceb [jit] Fix bug when using pushless code and reenable the feature. 2014-06-12 21:48:51 +03:00
Marek Safar a97fb68e66 [mcs] Add support for await in finally clause 2014-06-12 17:46:55 +02:00
Jeffrey Stedfast eab18c98cb [Mono.Debugger.Soft] Handle cases where the instruction list is empty 2014-06-11 18:27:15 -04:00
Zoltan Varga 254c71b060 [jit] Don't emit a write barrier when writing to the delegate->method field, its not needed. 2014-06-11 19:09:13 +02:00
Martin Baulig bad5ef8453 [Http]: Fix a potential race condition in the WebConnectionGroup's connection list.
Remove the "ConnectionState" from the connection list before closing the connection,
this should avoid ServicePoint.SendRequest() ever crashing with a NullReferenceException
due to getting a null return value from WebConnectionGroup.GetConnection().
2014-06-11 19:07:15 +02:00
Marek Safar 7347c5a195 [mcs] Check for missing dependencies of container types. Fixes #20382 2014-06-11 15:13:00 +02:00
Marek Safar 1e4fd01f6d [mcs] Resolve event expression when testing left side expression. Fixes #20493 2014-06-11 14:24:34 +02:00
Marek Safar 39a52aff4c [mcs] Inflate nested pointer containers too. 2014-06-11 12:02:33 +02:00
Marek Safar 83a5fe8f1a [mcs] Flow analysis of binary expressions not using logical operators. Fixes #20515 2014-06-11 10:09:56 +02:00
Alex Rønne Petersen 2ab02d99c4 Merge pull request #890 from xoofx/master
[Mono.Linker] Add support for <Module> with static method and pre-mark t...
2014-06-11 09:22:29 +02:00
Alexandre Mutel 121a4dd894 [Mono.Linker] Add support for using the linker with assemblies referencing WPF 2014-06-11 15:03:57 +09:00
Alexandre Mutel be589710f5 [Mono.Linker] Add support for <Module> with static method and pre-mark them if necessary 2014-06-11 15:03:47 +09:00
Rodrigo Kumpera d2f66f2d9b [sgen] Fix an infinite loop in find_previous_pointer_fragment due to remove CAS'ing the wrong value.
The fragment list has one invariant, the next pointer is tagged if the current fragment is been deleted,
which means the list head can never point to a tagged pointer.

If this invariant is broken, the code in find_previous_pointer_fragment will end up in an infinite loop.

The infinite loop happens in this simplified fragment:

try_again:
	prev = &allocator->alloc_head;
1)	cur = unmask (*prev);
	while (1) {
2)		if (*prev != cur)
			goto try_again;

So assume allocator->alloc_head points to 0x121, which is tagged.

So execution goes like this:

1) cur is set to 0x120
2) *prev (value 0x121) is different than cur (value 0x120) so retry.

The above will loop forever as the fixup code never touches allocator->alloc_head.

Now that we understand the infinite loop, let's see how the remove code can trigger it.

Use use the following notation in the event sequence:

-> a non tagged pointer
-*> a tagged pointer
first CAS: InterlockedCompareExchangePointer ((volatile gpointer*)&frag->next, mask (next, 1), next)
second CAS: InterlockedCompareExchangePointer ((volatile gpointer*)prev_ptr, next, frag)

Assuming the following initial fragment list and two threads removing two separate fragments:

fragment list; -> A -> B -> C

thread 1 removes A
thread 2 removes B

thread 2 succeed the first CAS
-> A -> B -*> C

thread 1 succeed the first CAS
-> A -*> B -*> C

thread 2 fail the second CAS because of thread 1
-> A -*> B -*> C

thread 1 succeed the second CAS
-> B -*> C

thread 2 succeed the second CAS and set prev_ptr to next,
which at this point is a tagged pointer. Leaving the fragment list like this:
-*> C

After the last CAS, we end up with alloc_head with a tagged pointer, which will cause
the infinite loop we previously explained.

The fix is to unmask the value we store in the second CAS, as the objective is to link
two live fragments and not flag the previous fragment for deletion.

The exact same bug exists in mono-linked-list-set and was fixed there.
2014-06-10 17:51:16 -04:00
Martin Baulig 7cb33a4fcc [Http]: Cosmetic, remove some dead code.
The is no reason to ever invoke the callback on the ThreadPool,
it would in fact only cause trouble.

Marek's commit db92449f was correct, I removed the commented out
code and the no longer used method.
2014-06-10 23:11:47 +02:00
Marek Safar aecf3db62b [mcs] Implement rethrow support in awaited catch clause 2014-06-10 22:05:11 +02:00
Martin Baulig 5e33f9eccf [Http]: Fix digest authentication (bug #18799).
We did not correctly parse key-value pairs without quotes in the
challenge.
2014-06-10 21:42:35 +02:00
Martin Baulig d5f7694acc [System.Net.Http]: Always add "Content-Length" in HttpClientHandler.SendAsync().
This has been reported on the forums:
http://forums.xamarin.com/discussion/17770/length-required-error-in-http-post-since-latest-release
2014-06-10 21:42:35 +02:00
Jeffrey Stedfast db0132029e [Mono.Debugger.Soft] Improved ILInterpreter to eval properties that return a primitive constant 2014-06-10 15:16:36 -04:00
Joao Matos 9aa982e166 [windows] Return early in the vectored exception handler if the thread is not managed by the runtime. 2014-06-10 20:15:10 +01:00
Martin Baulig f462bcc944 [Http]: Only recycle ServicePoints from the idle timer (fixes #19823).
Thanks a lot for Martin Potter to find and report the race condition
which was causing the problem.

ServicePointManager.RecycleServicePoints() was a left-over from the
old times when we didn't have an idle-timer based approach.
2014-06-10 19:21:32 +02:00
Jeffrey Stedfast 6759817ac2 [Mono.Debugger.Soft] minor code cleanup 2014-06-10 12:54:48 -04:00
Joao Matos d8e44abb07 Fix mono exception handler crashing on windows.
Here's the scenario that causes the crash:

Exception is fired, which invokes mono's vectored exception handler. It
is not an exception mono recognizes, so falls through to the default:
case in the exception handler. The problem is the return value has been
initialized to EXCEPTION_CONTINUE_EXECUTION. This causes SEH not to
process any other handlers, and just attempt to continue execution at
the point the exception was thrown.

The problem is much of windows internals will catch various exceptions
internally and handle them. So instead of the exception being handled,
we would just crash in the bowels of windows.

The solution is to set mono_win_chained_exception_needs_run to TRUE in
the default case - this is what the various exception handlers do if the
exception is not in JIT'd code. This causes the handler to return
EXCEPTION_CONTINUE_SEARCH, which causes SEH to search for the next
handler, and no crash is produced.

Both x86 and x64 had this bug, so I fixed it in both places.

Fix contributed by Steve Anichini.
2014-06-10 17:05:23 +01:00
Joao Matos dcc7a89be1 Changed mono_win_chained_exception_needs_run to be a JIT TLS variable.
This fixes a potential race condition that might happen if two threads try to handle an exception at the same time.
2014-06-10 17:05:14 +01:00
Atsushi Eno 93e5f42f80 [sys.xaml] fix TypeId and get broken WindowsBase tests pass. 2014-06-10 21:49:05 +09:00
Alex Rønne Petersen 975bf0a379 Attempt to sanitize the vasprintf situation in eglib.
The problem is that on some platforms we call the function
without having provided a prototype for it. This breaks when
building with `-Werror`.

Now we declare it in the private `vasprintf.h` header when
the platform doesn't have a declaration in `stdio.h`. This
should also let us remove the hack in `glib.h` for MSVC.

This may or may not break the build on some platforms; I've
tried on those that I have access to with success. Let me
know if this breaks anything.
2014-06-10 09:40:22 +02:00
Alex Rønne Petersen be483f24da Add build system plumbing for building with -Werror. 2014-06-10 09:35:01 +02:00
Alex Rønne Petersen be195eb1e6 Merge pull request #1094 from LRFalk01/master
Identities not being set in ClaimsPrincipal Ctor
2014-06-10 03:29:10 +02:00
Lucas ad354665a8 Identities not being set in ClaimsPrincipal Ctor
Class' identities member is not set in constructor ClaimsPrincipal
(IEnumerable<ClaimsIdentity> identities)
2014-06-09 21:20:35 -04:00
Alex Rønne Petersen ec0304a599 Remove unnecessary MPH_INTERNAL applied to a function definition.
This should be applied to prototypes, and it already is for
this function (in mph.h).
2014-06-10 03:15:16 +02:00
Alex Rønne Petersen 96e1ee0578 Remove the architecture conditions for using perf in the log profiler.
We now use generic atomics which work on all platforms, so there's
no reason to keep this constraint here. This allows the `perf`-backed
profiler to be used on mips, ppc, s390x, etc.
2014-06-10 01:46:32 +02:00
Alex Rønne Petersen 79d2d4c11d Revert "Disable perf support in the profiler when running on Android (for now)."
This reverts commit 8e35b7d01e.

The fallback implementation (as used on other platforms) appears to hang
the runtime. Having a maybe-working `perf`-backed sample profiler is better
than a not-working sample profiler.
2014-06-10 01:46:32 +02:00
Zoltan Varga ed2daa2a84 Revert "[x86] Reenable the no pushes code."
This reverts commit 5093efd558.

Revert this as it still breaks the build.
2014-06-09 17:37:20 +02:00
Zoltan Varga 6fffdcacef [x86] Fix the build. 2014-06-09 17:11:51 +02:00
Zoltan Varga 5093efd558 [x86] Reenable the no pushes code. 2014-06-09 16:35:39 +02:00
Atsushi Eno b8580c63d3 [sys.xaml] remove extraneous NET_2_1 and use __MOBILE__ to make it build for XA/XiOS. 2014-06-09 12:43:53 +09:00
Zoltan Varga e7bc174077 [jit] Align the stack when using the pushless code on x86. 2014-06-08 23:19:07 +02:00
Alex Rønne Petersen f0368f1014 Merge pull request #1090 from BrianDurham/patch-2
Update X11Display.cs - change "Check you DISPLAY"
2014-06-08 21:05:03 +02:00
Alex Rønne Petersen 3acadefda7 Merge pull request #1089 from BrianDurham/patch-1
Update Graphics.cs - change "Check you DISPLAY"
2014-06-08 21:04:33 +02:00
Alex Rønne Petersen 161005fd4c Merge pull request #1091 from BrianDurham/patch-3
Update XplatUIX11.cs - change "Check you DISPLAY"
2014-06-08 19:51:56 +02:00
Alex Rønne Petersen 65d967946b Merge pull request #1092 from BrianDurham/patch-4
Update XplatUIX11GTK.cs - change "Check you DISPLAY"
2014-06-08 19:51:42 +02:00
Brian Durham f5858f05f1 Update XplatUIX11GTK.cs - change "Check you DISPLAY"
Update XplatUIX11GTK.cs - change "Check you DISPLAY" text to "Check your DISPLAY"
2014-06-08 10:24:35 -05:00
Brian Durham 98d56eb303 Update XplatUIX11.cs - change "Check you DISPLAY"
Update XplatUIX11.cs - change "Check you DISPLAY" to "Check your DISPLAY"
2014-06-08 10:22:06 -05:00
Brian Durham ca7f073b7e Update X11Display.cs - change "Check you DISPLAY"
Change "Check you DISPLAY environment variable" to "Check your DISPLAY environment variable"
2014-06-08 10:18:02 -05:00
Brian Durham 039f01d6b0 Update Graphics.cs - change "Check you DISPLAY"
Update Graphics.cs - change "Check you DISPLAY environment variable" to "Check your DISPLAY environment variable"
2014-06-08 10:14:50 -05:00
Zoltan Varga 8530d2b60e [x86] Disable the no-pushes code for now, it breaks many tests. 2014-06-08 14:28:48 +02:00
Alex Rønne Petersen e6aa46a391 Apply the change in a99ebf9843 to mprof-report too. 2014-06-08 04:09:05 +02:00
Alex Rønne Petersen a99ebf9843 Fix a ton of warnings when building the log profiler with newer zlib versions. 2014-06-08 01:56:39 +02:00
Rodrigo Kumpera 416d4e10f9 Merge pull request #1088 from BrzVlad/pushless
[x86] Arguments to calls are passed via moves, instead of pushes.
2014-06-07 19:10:50 -04:00
Alex Rønne Petersen da1d328913 Silence another array subscript warning in eglib/src/sort.frag.h. 2014-06-07 22:27:22 +02:00
Alex Rønne Petersen 06a33428d2 Fix typo in bf703c4a8f. 2014-06-07 22:20:20 +02:00
Joao Matos f6b7bf735a Fixed the build on MSVC.
Local variables need to be declared at the start of the block.
2014-06-07 18:35:41 +01:00
Alex Rønne Petersen b45527f44b Add missing prototypes to supportw.c. 2014-06-07 18:03:31 +02:00
Alex Rønne Petersen f35c6a0b07 Comment an unused function in minizip. 2014-06-07 18:03:19 +02:00
Alex Rønne Petersen 93e7f8691c Fix z_alloc () signature.
Yes, really. zlib really uses a 32-bit int here...
2014-06-07 18:02:29 +02:00
Alex Rønne Petersen 58ebad8f72 Add missing prototypes to Mono.Posix C sources. 2014-06-07 18:02:14 +02:00
Alex Rønne Petersen 6db015b5e3 Move shared_area_disabled () behind ifdef. 2014-06-07 18:01:10 +02:00
Alex Rønne Petersen a96bd2f959 Wrap deadce_has_run variable in DISABLE_SSA ifdef. 2014-06-07 18:00:41 +02:00
Alex Rønne Petersen 86602698da Add g_assert_not_reached () to mono_gc_pthread_exit ().
On Android, pthread_exit () is not decorated as noreturn.
2014-06-07 17:59:49 +02:00
Alex Rønne Petersen 54de0818bf Silence unused mkstemp result warnings in jay. 2014-06-07 17:59:18 +02:00
Alex Rønne Petersen 27c58875c2 Add missing prototypes in ikvm-native. 2014-06-07 17:58:48 +02:00
Alex Rønne Petersen 1ef4b48014 Mark an unused variable as such in eglib/test/file.c. 2014-06-07 17:58:32 +02:00
Alex Rønne Petersen d6aee5a283 Disable -Warray-bounds in eglib/src/sort.frag.h!insert_list in GCC 4.6.0+. 2014-06-07 17:57:46 +02:00
Alex Rønne Petersen bf703c4a8f Disable -Wreturn-local-addr in libgc/mark_rts.c!GC_approx_sp with GCC 4.8.0+. 2014-06-07 17:56:50 +02:00
Alex Rønne Petersen 69ed93a8fa Compile libgc with -Wno-deprecated-declarations as it uses some obsolete POSIX APIs. 2014-06-07 17:56:06 +02:00
Alex Rønne Petersen 09f85a32d9 Revert unintentional change. 2014-06-07 16:52:50 +02:00
Alex Rønne Petersen 2cecaa4713 Fix the build. We've been missing this include for ages... 2014-06-07 16:38:47 +02:00
Alex Rønne Petersen c94206ef72 Bring the implementation of the 64-bit CAS fallback in line with the 32-bit one. 2014-06-07 16:18:35 +02:00
Alex Rønne Petersen 97e016c966 Mark the spin variable in atomic.c as G_GNUC_UNUSED.
It would require an `#ifdef` forest to get the conditions
under which it is used right.
2014-06-07 16:13:22 +02:00
Alex Rønne Petersen fc869fd398 Merge branch 'master' of github.com:mono/mono 2014-06-07 15:54:32 +02:00
Zoltan Varga eeef746ffc Revert "Fix a warning in atomic.c."
This reverts commit 1fdc8789a7.

This breaks the ios build:

../../../../../mono/mono/utils/atomic.c: In function ‘InterlockedCompareExchange64’:
../../../../../mono/mono/utils/atomic.c:572: error: ‘spin’ undeclared (first use in this function)
../../../../../mono/mono/utils/atomic.c:572: error: (Each undeclared identifier is reported only once
../../../../../mono/mono/utils/atomic.c:572: error: for each function it appears in.)
2014-06-07 15:21:02 +02:00
Zoltan Varga 4149ba44cf [arm] Fix OP_ATOMIC_CAS_I4. 2014-06-07 01:22:12 +02:00
Brezae Vlad bb3ccfb141 [x86] Arguments to calls are passed via moves, instead of pushes.
I release these changes under the MIT license.
2014-06-07 00:25:30 +03:00
Alex Rønne Petersen 8e35b7d01e Disable perf support in the profiler when running on Android (for now).
We need to assess the situation before we enable this everywhere. Apparently
some older devices have trouble with `perf`.
2014-06-06 23:02:33 +02:00
Alex Rønne Petersen 1fdc8789a7 Fix a warning in atomic.c. 2014-06-06 22:58:20 +02:00
Alex Rønne Petersen 8fc059bea3 Remove a #warning in security.c which gets triggered on OS X. 2014-06-06 22:58:07 +02:00
Ludovic Henry a587e4641a [counters] Add counters documentation to man page 2014-06-06 16:00:03 -04:00
Alex Rønne Petersen 11e01299d9 Fix printf formatting warnings in mono-counters.c. 2014-06-06 15:20:52 +02:00
Alex Rønne Petersen 56819afa82 Use G_GNUC_UNUSED instead of commenting out variable declarations.
The previous approach resulted in mixed decls/stmts warnings.
2014-06-06 15:19:20 +02:00
Alex Rønne Petersen 3b3f4bd673 Fix a ton of printf formatting warnings in decode.c. 2014-06-06 15:17:19 +02:00
Alex Rønne Petersen dd82497ce2 Silence some warnings in decode.c. 2014-06-06 14:52:28 +02:00
Alex Rønne Petersen 0b168543d7 Fix volatile pointer casts in proflog.c. 2014-06-06 14:52:09 +02:00
Alex Rønne Petersen bfaa08475e Silence a bunch of unused result warnings in proflog.c. 2014-06-06 14:51:44 +02:00
Alex Rønne Petersen 35a03dcec2 Fix a bunch of warnings caused by unused functions. 2014-06-06 14:41:18 +02:00
Alex Rønne Petersen 1aecffad3f Add suggested parentheses to RHS of ^ operator. 2014-06-06 14:40:56 +02:00
Alex Rønne Petersen 6135b2695e Fix formatting specifiers for some size_t arguments. 2014-06-06 14:40:24 +02:00
Zoltan Varga 0b58028883 [runtime] Avoid joining attached threads. Fixes #19343. 2014-06-06 03:00:41 +02:00
Martin Baulig e6ce33bc7d [Http]: Read version from "HTTP CONNECT" response.
When using "HTTP CONNECT" to create a tunnel to a proxy server,
check the proxy server's response for the HTTP Version and close
the connection if it's HTTP/1.0.
2014-06-05 21:31:31 +02:00
Martin Baulig 5428bdfb71 [Http]: Fix the loop in WebConnection.ReadHeaders().
We need to reset `gotStatus' each time we enter the outer loop or we
would attempt to interpret the status line as a header.
2014-06-05 21:31:31 +02:00
Zoltan Varga f8afadcdf0 Merge pull request #1084 from tritao/msvc-warnings
MSVC warning fixes
2014-06-05 20:57:50 +02:00
Zoltan Varga 4385e25d7a [runtime] Fix support for custom marshallers defined in other assemblies. Fixes #20020. 2014-06-05 20:48:09 +02:00
Joao Matos ea326aa924 Fixed monodis MSVC build.
We need to include "mono/utils/mono-compiler.h" to get the proper isinf/isnan declaration.
2014-06-05 19:46:20 +01:00
Marek Safar 97fb37a95b [mcs] Return type inference of async anonymous methods 2014-06-05 19:36:17 +02:00
Marek Safar 876126e680 [mcs] Check for await expression inside new delegate statement 2014-06-05 19:36:17 +02:00
Zoltan Varga 2aa7af5863 [runtime] Fix a jit assertion on a class which contains an empty struct as a static field. Fixes #20349. 2014-06-05 19:05:50 +02:00
Joao Matos 92f13d1988 Regenerate keyboards.resx resource file.
The existing one is reported as malformed XML by csc.
2014-06-05 16:20:56 +01:00
Joao Matos c353c84db3 Fixed warning in MSVC: 'unreferenced local variable'. 2014-06-05 15:40:37 +01:00
Joao Matos 623e43dcd6 Fixed warning in MSVC: 'different types for formal and actual parameter'. 2014-06-05 15:39:40 +01:00
Joao Matos 13e47bf9cb Fixed warning in MSVC: 'void' function returning a value. 2014-06-05 15:37:46 +01:00
Joao Matos 12926a22ac Fixed warnings in MSVC: 'unreferenced local variable'. 2014-06-05 15:35:39 +01:00
Joao Matos 0338bfae3f Removed an unused variable from the code, fixes a warning in MSVC. 2014-06-05 15:34:00 +01:00
Joao Matos cfea841bb4 Fixed warning in MSVC: 'unreferenced local variable'. 2014-06-05 15:31:28 +01:00
Joao Matos 47324cca65 Fixed warning in MSVC: 'unreferenced local variable'. 2014-06-05 15:29:55 +01:00
Joao Matos f7cc6db9c3 Fixed warning in MSVC: 'different types for formal and actual parameter'. 2014-06-05 15:28:33 +01:00
Joao Matos 8c940e6459 Fixed warning in MSVC: 'getpid' undefined; assuming extern returning int. 2014-06-05 15:27:45 +01:00
Joao Matos 4d4332ce91 Fixed unreferenced local variable warning in MSVC. 2014-06-05 15:25:13 +01:00
Joao Matos c4dfe62e05 Fixed MSVC warning about unreferenced local variable. 2014-06-05 15:21:05 +01:00
Joao Matos 08ac4efcf1 Fixed MSVC warning about different types for formal and actual parameter. 2014-06-05 15:20:06 +01:00
Joao Matos d8164bb3fc Fixed unreferenced variables/label warnings in MSVC. 2014-06-05 15:15:01 +01:00
Joao Matos fd0659abd4 Fixed unsigned/signed mismatch warning. 2014-06-05 15:12:12 +01:00
Joao Matos 770c5536e9 Fixed warning in MSVC by prefixing the macros, MEM_FREE is already defined in winnt.h. 2014-06-05 15:09:01 +01:00
Zoltan Varga 252ea94fce Merge pull request #1083 from christianhuening/NetworkInterfaceFix
- ADDED: Support to read out Interface flags on OS X
2014-06-05 15:05:42 +02:00
Christian Hüning 5e43e5d6db - ADDED: Support to read out Interface flags on OS X
- ADDED: Implemented NetworkInterface property "OperationalStatus" to be UP, in case the IFF_UP flag is set
- ADDED: Implemented NetworkInterface property "SupportsMulticast" to be true, in case the IFF_MULTICAST flag is set

This change is released under the MIT license.
2014-06-05 14:09:11 +02:00
Atsushi Eno 76b08f12ef [msbuild] fix some weird local result variable initialization issue.
I cannot explain why, but this affects building solution that has more than
one projects for MS.Build.dll. <MSBuild/> task returns false for successful
builds without this change.
Most likely codegen or runtime issue, but a bit too high level to drill down.
2014-06-05 13:11:45 +09:00
Atsushi Eno 939fa58ae9 [MS.Build] disable failing test.
It somehow passes on my dev. environment so I cannot reproduce...
2014-06-05 13:11:44 +09:00
Atsushi Eno 5ed465d94b [MS.Build] metadata is also replaced its windows path separators. 2014-06-05 13:11:43 +09:00
Zoltan Varga 9932336e7b [jit] Avoid licm for volatile variables, ssa ignores them so we can't detect whenever they are loop invariant by looking at phi nodes. 2014-06-05 01:56:28 +02:00
Joao Matos a2c3c36768 Fixed unreachable methods in mono-thread-windows to use g_assert_not_reached.
This fixes a couple warnings.
2014-06-04 21:10:03 +01:00
Joao Matos facf8c8ad9 Modified g_assert_not_reached to use g_unreachable. 2014-06-04 21:09:54 +01:00
Joao Matos 7d93575e58 Added g_unreachable to explicitly notify the compiler of unreachable code. 2014-06-04 21:09:45 +01:00
Rodrigo Kumpera 956ec8a589 [sgen] Fix logging due to changes in a lot of size types. 2014-06-04 14:36:07 -04:00
Zoltan Varga 3f977bc61d [runtime] Add another test for passing many small arguments. 2014-06-04 20:33:14 +02:00
Rodrigo Kumpera 9c1bd5b6ee [sgen] Fix clang compilation. 2014-06-04 14:30:29 -04:00
Rodrigo Kumpera c68e59600e [sgen] Fix a few warnings related to lossy conversion of size_t to int on 64bits. 2014-06-04 13:34:50 -04:00
Rodrigo Kumpera 94784f4342 [sgen] Fix nursery size calculation and the managed write barrier to be 64bits clean. 2014-06-04 13:34:49 -04:00
Rodrigo Kumpera 222eea0a55 [sgen] Fix the object size functions to be 64bits clean. 2014-06-04 13:34:48 -04:00
Rodrigo Kumpera 429f9ca6db [sgen] Ensure the cardtable code is 64bits clean. 2014-06-04 13:34:47 -04:00
Rodrigo Kumpera 137d0578d2 [sgen] Use size_t for all heap limits. 2014-06-04 13:34:46 -04:00
Rodrigo Kumpera 4d958ad0a0 [sgen] Fix size warnings in the descriptor code. 2014-06-04 13:34:45 -04:00
Rodrigo Kumpera 6c268d316c [sgen] Silence warnings when big arrays are not in use on 64bits. 2014-06-04 13:34:44 -04:00
Rodrigo Kumpera f50822f39c [sgen] Make degrated_mode a size_t. 2014-06-04 13:34:43 -04:00
Rodrigo Kumpera 238f52088b [sgen] Make los usage of size_t cosnsitent. 2014-06-04 13:34:42 -04:00
Rodrigo Kumpera 828d4c9e60 [sgen] Use size_t consistently in the major collector for object sizes and number of memory blocks. 2014-06-04 13:34:40 -04:00
Rodrigo Kumpera a066f0d94b [sgen] Use size_t consistently in the nursery code. 2014-06-04 13:34:40 -04:00
Rodrigo Kumpera ba95eaba43 [sgen] Move the pinning code to use size_t internally. This makes this code 64bits clean. 2014-06-04 13:34:38 -04:00
Rodrigo Kumpera a5593126ad [sgen] Fix small localized warnings. 2014-06-04 13:34:37 -04:00
Rodrigo Kumpera 955c2e1010 [sgen] Fix win64 issues with longs and inline assembly. 2014-06-04 13:34:36 -04:00
Rodrigo Kumpera 16fe0d24af [runtime] Fix a bunch of warnings in threads.c related to int64 -> int32 lossy casts. 2014-06-04 13:34:35 -04:00
Rodrigo Kumpera c670b35edc [verifier] Silence a size mismatch warning in the verifier. 2014-06-04 13:34:34 -04:00
Rodrigo Kumpera 00643150c5 [runtime] Replace gulong with size_t to fix counter sizes in win64. 2014-06-04 13:34:33 -04:00
Rodrigo Kumpera 1505c43d70 [win64] Windows64 MSVC compiler dropped support for inline assembly. Move that code into a .asm file. 2014-06-04 13:34:32 -04:00
Rodrigo Kumpera d248c1516b [VS] Fix the solutions to work with win64. Update the file list to include some new sgen files. 2014-06-04 13:34:31 -04:00
Rodrigo Kumpera c9ef61d47a [runtime] Fix warnings in mono-threads. 2014-06-04 13:34:30 -04:00
Rodrigo Kumpera d1882a4dc3 [runtime] Replace gulong with size_t so it works on win64. 2014-06-04 13:34:29 -04:00
Rodrigo Kumpera 3fd79bd70e fix win thread size calc. 2014-06-04 13:34:28 -04:00
Marek Safar f7834aa3cf [mcs] Revert unwanted change from 9e5d5e5c90 2014-06-04 19:06:59 +02:00
Marek Safar 22ca1862ee Fixes build 2014-06-04 19:02:40 +02:00
Marek Safar 9e5d5e5c90 [mcs] Better error message for attribute value used for unsupported parameter type 2014-06-04 19:02:40 +02:00
Marek Safar d82542fb00 [mcs] Emit result type conversion for null coalescing operator on nullable type 2014-06-04 19:02:40 +02:00
Neale Ferguson 5348a0daca Correct op_seqpoint length 2014-06-04 10:50:03 -04:00
Neale Ferguson a2920353b6 Fix s390x soft debug 2014-06-04 10:48:43 -04:00
Neale Ferguson 4dfae5ba82 Architectural level set to z10 instruction set 2014-06-04 10:48:43 -04:00
Marek Safar 4f5ddeea8a [mcs] Add more checks to dynamic logical operations when lhs is not of dynamic type 2014-06-04 14:41:24 +02:00
Marek Safar ca13dbf1e1 [mcs] Don't wrap enum constants during folding when result is reduced 2014-06-04 14:41:24 +02:00
Marek Safar eb0edaa05e Merge pull request #1082 from esdrubal/bug19287
Improved JavaScriptSerializer.ConvertToType Nullable handling. Fixes #19287.
2014-06-04 13:02:04 +02:00
marcos henrich e28d8783c5 Improved JavaScriptSerializer.ConvertToType Nullable handling. Fixes #19287. ConvertToType was returning null even when the object was not a string. When the target type is Nullable, ConvertToType returns null if the object is an empty string, if the object is not a string and the target type is obtainable from a string then the object is converted to a string and the string to the target type. 2014-06-04 11:20:05 +01:00
marcos henrich 5e76deaf72 Test JavaScriptSerializer.Deserialize with nullable enums. Covers #19287. 2014-06-04 11:17:35 +01:00
Marek Safar 92e321f26f [mcs] null coalescing operator cannot reduce constants 2014-06-04 11:25:24 +02:00
Marek Safar 63b64977bc [msbuild] Implemented instance members on static property evaluation 2014-06-04 11:25:23 +02:00
Alex Rønne Petersen a0064f9d5a [System] Fix WebClientTest build in net_2_0.
CancellationTokenSource is a 4.0 thing.
2014-06-03 23:33:30 +02:00
Marek Safar 0828b8e574 [System.ServiceModel.Security] Exclude security forwarders from mobile builds 2014-06-03 22:29:51 +02:00
Alex Rønne Petersen 80c4c54dd7 Merge pull request #1079 from esdrubal/webclient_cancel
UploadStringAsync cancel
2014-06-03 20:27:58 +02:00
Zoltan Varga 1feb13fe25 [runtime] Add an EXTRA_DISABLED_TESTS make variable to disable tests on the command line. 2014-06-03 20:19:33 +02:00
Zoltan Varga 5006b465ce [bcl] Disable a test added by 3cf55e6016, it depends on precise gc behaviour. 2014-06-03 19:31:09 +02:00
marcos henrich e2e64fada5 Changed UploadStringAsync to handle UploadString encapsulated exceptions.
UploadString call UploadData that encapsulates all exceptions in a WebException. ThreadInterruptedException were encapsulated into a WebException, so UploadStringAsync now uses e.InnerException is ThreadInterruptedException instead of trying to catch it.
2014-06-03 16:23:22 +01:00
Marek Safar 77d18f7661 [mcs] Update new error codes 2014-06-03 16:53:32 +02:00
Zoltan Varga 5d0df9e2c0 [runtime] Applied patch from Kyle Edwards <[email protected]>. Fix isinf () check with clang. Fixes #20244. 2014-06-03 16:07:51 +02:00
Marek Safar 4e87c47d54 [corlib] Add CreateTypeInfo method 2014-06-03 11:56:47 +02:00
Marek Safar 6884bcd6b7 [mcs] Better error reporting for incorrect async lambdas 2014-06-03 11:32:02 +02:00
Alex Rønne Petersen 856ac29f9b Merge pull request #1080 from chillitom/patch-1
Add missing definitions to ClaimTypes
2014-06-03 00:42:57 +02:00
Tom Rathbone c1a7602394 Add new missing ClaimTypes entries
Added 2008 and 2009 definitions and fixed Email definition
2014-06-02 23:31:44 +01:00
marcos henrich 0b1ea4edc9 Test WebClient asynchronous uploads cancellation.
Tests that UploadStringAsync triggers UploadStringCompleted with Cancelled == true.
Tests that UploadDataAsync triggers UploadDataCompleted with Cancelled == true.
Tests that UploadValuesAsync triggers UploadValuesCompleted with Cancelled == true.
Tests that UploadFileAsync triggers UploadFileCompleted with Cancelled == true.
2014-06-02 19:04:43 +01:00
Zoltan Varga 03e5354c32 [llvm] Fix a native types problem. 2014-06-02 20:02:15 +02:00
Zoltan Varga 227ae7a873 Merge pull request #1070 from tpokorra/FixTarball
Fix tarball for master
2014-06-02 19:51:34 +02:00
Atsushi Eno 9494158a3d [xbuild/msbuild] fix previous ItemGroup definition (should be in <ItemGroup>). 2014-06-03 01:19:14 +09:00
Marek Safar 22dc82012b [mcs] Remove wrong comment 2014-06-02 17:19:51 +02:00
Marek Safar bd13be55c2 [mcs] Add more warnings for caller attributes 2014-06-02 17:13:50 +02:00
Atsushi Eno 1abe0a39b9 [xbuild/msbuild] fix build: fix Exists() argument. 2014-06-02 22:40:19 +09:00
Marek Safar 4681266d9d [mcs] Add support for await in catch clause 2014-06-02 14:53:12 +02:00
Marek Safar ed584e7751 Fixes build 2014-06-02 13:15:22 +02:00
Marek Safar 243f654837 [mcs] Extend possible unintended reference comparison check 2014-06-02 13:05:19 +02:00
Atsushi Eno 992fd970eb [msbuild/xbuild] use ToolLocationHelper.GetPathToStandardLibraries() to get corlib path, for new build engine.
This is enabled only with Microsoft.Build.dll because property function
support is not fully implemented in MS.Build.Engine.dll and simply fails.

Since the targets files are shared between xbuild and msbuild, I added
some well-known property for msbuild and used it in the targets file.
2014-06-02 19:28:21 +09:00
Atsushi Eno 1b41fd7635 [MS.Build] add MS.Build.dll-specific well-known property, to differentiate from MS.Build.Engine. 2014-06-02 19:28:20 +09:00
Atsushi Eno 5265579628 [xbuild] fix 4.0-only test condition. 2014-06-02 19:28:19 +09:00
Atsushi Eno 001edf133e [msbuild] build the projects via MSBuild task with appropriate configuration, not the entire projects in the solution. 2014-06-02 18:01:14 +09:00
Atsushi Eno 8498e0dbcc [MS.Build] ProjectOnErrorInstance should not cause build failure. 2014-06-02 17:59:30 +09:00
Atsushi Eno c29ae4c3e1 [MS.Build] added test for ToolLocationHelper.GetPathToStandardLibraries() to add target item.
It should be used in Microsoft.CSharp.targets to pass the path to mscorlib.dll
but it's not working yet, so I'm making it to work step by step.
2014-06-02 17:59:29 +09:00
Atsushi Eno 756f3740c2 [MS.Build] when evaluated as object, do not add extra quotes.
When the object is passed as argument to property function, it gets extra
" or ' and could result in unexpected value.
2014-06-02 17:59:28 +09:00
Atsushi Eno 867c2e5f31 [xbuild] ToolLocationHelper.GetPathToStandardLibraries() skips "" too.
Test is added too, but since it requires some environment setup, I didn't
enable it so far.
2014-06-02 17:59:27 +09:00
Atsushi Eno eb898301e5 [MS.Build] fix some issues around quoted string handling.
Since the parser didn't really detect those quotation chars unless they are
top of the next tokeniation, it was always starting from wrong position.
2014-06-02 17:59:26 +09:00
Atsushi Eno 5a23a8263c [MS.Build] add function call releated tests. 2014-06-02 17:58:54 +09:00
Atsushi Eno 57370802bc [MS.Build] '\\' is also escaped syntax, so parse it carefully too. 2014-06-02 17:58:53 +09:00
Atsushi Eno c0cb2bee54 [MS.Build] fix function call expression parsing wrt nested refs: $(X('$(Y)','$(Z)'))
Nested references inside quoted strings are not parsed correctly.
To resolve this issue, parse quoted expressions in more complicated way.
2014-06-02 17:58:52 +09:00
Atsushi Eno 331215cfb6 [ms.build] make sure that we don't skip any other kind of child under target element. 2014-06-02 17:58:51 +09:00
Atsushi Eno 95405ddfdf [MS.Build] simplify IBuildEngine.Build() implementation, and build the argument project, not the project that is being built by the BuildManager.
That was wrong recursion.
2014-06-02 17:58:51 +09:00
Atsushi Eno d86c100d20 [MS.Build] make env. properties are read only, and show initial properties in different manner.
Now it's easier to see project properties and other properties.
2014-06-02 17:58:50 +09:00
Atsushi Eno 30414940d2 [MS.Build] revise previous fix; only Items are in reverse order.
The previous change regressed at order of property evaluation. Now this fix
does not regress as well as F# project still builds.
2014-06-02 17:58:49 +09:00
Atsushi Eno f2d143e6c3 [MS.Build] ProjectInstance needs ChildrenReversed to evaluate items.
This behavioral difference between ProjectRootElement, Project and
ProjectInstance was discovered while trying to get F# project working
(where item order significantly matters).
2014-06-02 17:58:48 +09:00
Atsushi Eno ce1d55ff60 [MS.Build] load ImportGroup in root. 2014-06-02 17:58:47 +09:00
Atsushi Eno 0ef2316adb [ms.build] several fixes in BuildEngine4.
- InitialTargets also need to be executed.
- toolsVersion must be filled.
- HostServices object is also passed from the parent build.
2014-06-02 17:58:46 +09:00
Atsushi Eno 029044a956 [ms.build] pass DefaultToolsVersion from ProjectInstance to build request data. 2014-06-02 17:58:46 +09:00
marcos henrich 6a6631d883 Removed DeflateStream.UnmanagedRead Read loop. Fixes #19313.
If the base_stream was a NetworkStream UnmanagedRead loop would call base_stream.Read a second time and block until one byte was available to return. Without the loop UnmanagedRead will only read the base_stream once.
2014-06-02 08:22:33 +01:00
marcos henrich 19f48e7920 Test that DeflateStream.Read does read an empty stream. Covers #19313. 2014-06-02 08:21:08 +01:00
Marek Safar ef7d65f093 Merge pull request #1078 from LRFalk01/master
Null Exception in System.Security.Claims
2014-06-02 08:42:50 +02:00
Lucas 203320edc9 Null Exception in System.Security.Claims
This fixed a runtime exception when trying to get a ClaimsPrincipal from an IIdentity.
Noticed this work working with aspnet Identity in a Web Api 2 controller.
Exception fired when running User.Identity.IsAuthenticated.

Exception detail:
http://falk.pw:7777/tocehuhemo.xml
2014-06-01 18:21:11 -04:00
Alex Rønne Petersen 1eb8ba78f4 Merge pull request #1071 from bl8/cairo-additions
Cairo API additions in Context class
2014-06-01 21:52:18 +02:00
Alex Rønne Petersen 7474d008f1 Merge pull request #1075 from Meai1/patch-1
Update README.md
2014-06-01 21:51:14 +02:00
Alex Rønne Petersen a810af4524 Merge pull request #1077 from sethjackson/null-gc-sgen
Allow building with null-gc and sgen.
2014-06-01 21:50:47 +02:00
Alex Rønne Petersen e5e7fbaa6e Merge pull request #1076 from sethjackson/null-gc-msg
Print the correct GC type if compiling using --with-gc=none.
2014-06-01 21:48:30 +02:00
Seth Jackson 7fee3f491b Allow building with null-gc and sgen.
Previously if --with-gc=none --with-sgen=yes was specified the sgen runtime
would include the null GC and the sgen GC which would confuse the linker.

This change released uner the MIT license.
2014-06-01 11:08:32 -04:00
Seth Jackson 5511ba6d61 Print the correct GC type if compiling using --with-gc=none.
This change released under the MIT license.
2014-06-01 10:46:56 -04:00
Meai1 91d14d4d5a Update README.md 2014-05-31 20:25:33 +02:00
Miguel de Icaza a64dbc3e94 MemoryMappedFile fixes
This patch includes a few fixes:

	* CreateNew will actually create a memory map file, the previous logic
	  in MemoryMapImpl.Open was wrong, and would fail if the file did not
	  exist.   We now cope with this (bug #20052 was caused by this).

 	* Some exceptions were wrong, so this patch updates the
	  exceptions being thrown to be the right ones

	* On Mobile, we inverted the logic to ensure that capacity must be
	  bigger or equal than the file size (which is what the API needs to do),
	  previously it performed the opposite test.

Added tests that match the behavior on .NET for this.
2014-05-31 12:53:11 -04:00
Zoltan Varga 5f55a5c6a5 Merge pull request #1073 from DavidKarlas/logging
[Mono.Debugger.Soft] Using environment variable MONO_SDB_LOG as logfile path
2014-05-31 17:11:10 +02:00
Meai1 3b13098006 Update README.md
Add info on parallel installations which is going to be the case for 99% of people trying to compile and use mono from source.
2014-05-31 12:36:50 +02:00
Zoltan Varga 45362dc90b [sdb] Add a lower level lock and use it in place of the loader lock in some places. 2014-05-31 01:41:45 +02:00
marcos henrich 4449269d8f Changed TryPeek to handle race condition with Dequeue.
Dequeue sets the head.Value to its default. When TryPeek is interrupted in the process of retrieving the value some times Dequeue sets the value to its default. TryPeek now checks the head has not been changed before returning the value.
2014-05-30 20:31:47 +01:00
marcos henrich 02aacdb39e Added stress test to ConcurrentQueue.TryPeek.
The test checks that in some race condition the queue does not return null.
2014-05-30 20:22:21 +01:00
Jérémie Laval 610d1e7aaf Merge pull request #1068 from esdrubal/bug18421
Changed ConcurrentQueue to remove last ref/value. Fixes 18421
2014-05-30 14:50:35 -04:00
David Karlaš 610a5d2c08 [Mono.Debugger.Soft] Using environment variable MONO_SDB_LOG as logfile path 2014-05-30 20:10:54 +02:00
Rolf Bjarne Kvinge 103fd26cbb Merge pull request #1072 from esdrubal/bug19862
FileInfo members that rely on AccessControl are now inside a conditional block !MOBILE
2014-05-30 17:59:52 +02:00
marcos henrich b124b68759 FileInfo members that rely on System.Security.AccessControl are now inside a conditional block !MOBILE 2014-05-30 16:55:52 +01:00
Bertrand Lorentz 014d517bfb Mono.Cairo: Add Context.SetSourceColor(Color) convenience method
The Color property was obsoleted, but the suggested replacement
SetSourceRGBA has 4 double parameters, which can be unconvenient.

Add a SetSourceColor that takes a Cairo.Color parameter, make the Color
property use it, and update the message on the Obsolete attribute.
2014-05-30 17:11:55 +02:00
Bertrand Lorentz acc644b7a5 Mono.Cairo: Add Context.HasCurrentPoint property
The cairo_has_current_point function was added in cairo 1.6.
2014-05-30 17:10:28 +02:00
Bertrand Lorentz 382ed03051 Mono.Cairo: Add Context.InClip method
The cairo_in_clip function was added in cairo 1.10.
2014-05-30 17:05:04 +02:00
Rolf Bjarne Kvinge a9b8a73f68 [System.Xml] Use profile-specific file names for generated files.
Otherwise parallel builds will break randomly.
2014-05-30 16:57:54 +02:00
Marek Safar 090895472a [mcs] Add lang version 2014-05-30 15:13:19 +02:00
Timotheus Pokorra 399ba6758b make sure that the subdirectories of mcs/class/Facades are included in the tarball
to avoid errors like:
MCS     [net_4_5] System.Xml.Serialization.dll
/bin/sh: line 4: cd: System.Collections.Concurrent: No such file or directory
2014-05-30 15:04:39 +02:00
Timotheus Pokorra 993f477363 add files System.Configuration.dll and System.Security.dll to monolite directory in tarball
to avoid: error CS0006: Metadata file `System.Security.dll' could not be found
2014-05-30 15:01:48 +02:00
Marek Safar 8f5e512264 Merge pull request #1069 from esdrubal/bug16990
Changed ConcurrentDictionary.Contains(KeyValuePair) to also compare value. Fixes #16990.
2014-05-30 13:43:02 +02:00
marcos henrich db71dba1b7 Changed ConcurrentDictionary.Contains(KeyValuePair<TKey, TValue>) to also compare value. Fixes #16990. 2014-05-30 11:33:02 +01:00
marcos henrich ff441b11d3 Test ConcurrentDictionary.Contains(KeyValuePair<TKey, TValue>). Covers #16990. 2014-05-30 11:22:01 +01:00
Rodrigo Kumpera 2eaf6e71b3 [boehm] Implement the finalization extension API. 2014-05-29 21:52:29 -04:00
Rodrigo Kumpera a153eed835 [gc] Add finalizer API, implemented only on sgen.
The new finalizer API allows an embedder to be notified during a collector
when an object is queued for finalization.

This is a VERY low level interface, as this is called with the world stopped, so the
code MUST be async safe. If you don't precisely know what that means, don't use it.
2014-05-29 21:52:29 -04:00
Zoltan Varga 42de311ee3 [jit] Applied patch from Vladimir Kargov <[email protected]>. Fix a local register allocation problem involving global registers and x86 register constraints. 2014-05-30 02:57:48 +02:00
Alexis Christoforides 4b4a29f9c1 Bump 'master' branch version. 2014-05-29 18:12:35 -04:00
Sebastien Pouliot 822cbde2e2 [mobile] Add support for Environment.SetEnvironmentVariable in the mobile profile (e.g. iOS) 2014-05-29 15:29:52 -04:00
Zoltan Varga 0461967838 [sdb] Avoid clearning event requests if they reference an assembly which is unloaded. Instead, remove the assembly reference from the event request so it stays active. Fixes #19924. 2014-05-29 21:08:32 +02:00
marcos henrich 7c52a7bf5f Overwrites dequeued ref/value with default. Fixes 18421.
ConcurrentQueue was keeping the last dequeued ref/value.
2014-05-29 17:53:32 +01:00
marcos henrich 3cf55e6016 Test that ConcurrentQueue does not keep old references. Covers 18421. 2014-05-29 17:42:10 +01:00
Marek Safar adcc7740c8 [verifier] Set correctly stack type based on constrained type 2014-05-29 17:54:39 +02:00
Marek Safar fe911348c6 [mcs] If the overriding property is sealed, then the overridden accessors cannot be inaccessible 2014-05-29 14:32:27 +02:00
Marek Safar 8bed2a7525 Fixes build with newer mcs 2014-05-29 14:18:34 +02:00
Marek Safar 6a40d676aa [mcs] Use constrained prefix for enum calls too 2014-05-29 12:52:09 +02:00
Marek Safar c9042f1ed0 [verifier] Fix constrained type unwrap for enum types. Fixes #18371 2014-05-29 12:03:14 +02:00
Marek Safar db2d59eb4d Add System.ServiceModel.Security assembly. Fixes #20108 2014-05-29 09:50:44 +02:00
Zoltan Varga d4014f16df Merge pull request #1067 from esdrubal/bug19862
Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862.
2014-05-29 02:01:34 +02:00
Zoltan Varga 11098d2ba9 [amd64] Simplify mono_arch_handle_altstack_exception () by passing a MonoContext on the stack instead of an os specific sigctx structure which required special handling and broke when _XOPEN_SOURCE was defined. 2014-05-29 01:07:51 +02:00
Jeffrey Stedfast ae8cec1f33 [Mono.Debugger.Soft] minor code cleanup 2014-05-28 14:14:48 -04:00
Jeffrey Stedfast 286e99ace3 Merge pull request #1048 from DavidKarlas/cacheThreadsAndBulkFetch
[Mono.Debugger.Soft] Caching threads and bulk fetching StackFrames
2014-05-28 13:59:27 -04:00
marcos henrich 77b1aacb9d Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862. 2014-05-28 18:24:16 +01:00
David Karlaš 8a4a61c13c Changed API for fetching StackFrames in bulk on multiple threads ThreadMirror.FetchFrames instead of automatically on VirtualMachine.GetThreads 2014-05-28 12:58:38 +02:00
marcos henrich da47aed900 Fixed bug 18482. Reseting all private key values to null is required because a new import may not overwrite existing values. 2014-05-27 12:11:32 +01:00
marcos henrich 1cc3bead45 Added test that covers bug 18482. 2014-05-27 12:06:55 +01:00
David Karlaš 52b168e336 [Mono.Debugger.Soft] Caching VirtualMachine threads, caching frames in ThreadMirror and fetching StackFrames in bulk for all threads 2014-05-21 13:13:44 +02:00
Alexander Köplinger 3f6a2ee3b7 [Mono.Parallel] Removed broken Mono.Threading.Tasks code
The code in MonoTaskExtensions.cs relied on the internal method Execute(Action<Task>) in System.Threading.Tasks.Task which was removed in 0a66e60.
2014-04-28 18:17:22 +02:00
yjoly a4a65eda9a Fix the date time set in file by removing the ':'.
This is the same code than the one under SendCore. The date time should
not have the : (time zone offset) to be able to use the file.
2014-04-15 15:41:40 -04:00
1764 changed files with 39869 additions and 95705 deletions

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ releases
stamp-h
stamp-h1
stamp-h.in
/test-driver
*~
*.swp
*.o
+13
View File
@@ -69,3 +69,16 @@ a maintainer will likely merge it. Otherwise, you can amend your pull
request to fix build breakage and Jenkins will test it again.
[2] http://monojenkins.cloudapp.net
# Inactivity
Occasionally, a pull request sits for several months without any
response from the author. This isn't necessarily an issue, but we may
sometimes decide to close pull requests that have not seen any
progress for a long time. This is in interest of keeping the pull
request list clean so that other pull requests don't get lost in the
clutter.
If we do close your pull request due to inactivity, you're more than
welcome to submit it anew after you address any comments or issues that
were brought up on the original pull request.
+7 -1
View File
@@ -1,5 +1,7 @@
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WERROR_CFLAGS)
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
if CROSS_COMPILING
@@ -48,7 +50,11 @@ GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
rm -rf `find $(top_distdir)/external -path '*\.git' -and -type d`
rm -rf `find $(top_distdir)/external -path '*\.git'`
rm -f `find $(top_distdir)/external -path '*\.exe'`
rm -f `find $(top_distdir)/external -path '*\.dll'`
cp mcs/class/lib/basic/System.Configuration.dll mcs/class/lib/monolite/
cp mcs/class/lib/basic/System.Security.dll mcs/class/lib/monolite/
# Disable this for now because it is very slow and causes wrench to timeout:
# test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
+6
View File
@@ -1,6 +1,8 @@
Mono is a software platform designed to allow developers to easily create cross platform applications.
Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
[![Build Status](http://jenkins.mono-project.com/job/test-mono-mainline/badge/icon/)](http://jenkins.mono-project.com/job/test-mono-mainline/)
1. [Installation](#compilation-and-installation)
2. [Using Mono](#using-mono)
3. [Directory Roadmap](#directory-roadmap)
@@ -34,6 +36,10 @@ a. Build Requirements
* libzlib - This library and the development headers are required for compression
file support in the 2.0 profile.
4. Mono is required to build Mono. Use a system package or monolite (explained further below)
5. If you have a system Mono (not monolite), you will need to read this: http://mono-project.com/Parallel_Mono_Environments#Setting_up_a_Build_Environment
b. Building the Software
------------------------
+2 -2
View File
@@ -22,7 +22,7 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
pic_options='-fPIC'
;;
@@ -158,7 +158,7 @@ modeok=false
tagok=false
for arg in "$[]@"; do
case "$arg" in
--silent) ;;
--silent) ;;
--mode=compile) modeok=true ;;
--tag=CC|--tag=CXX) tagok=true ;;
--quiet) ;;
-1
View File
@@ -123,7 +123,6 @@ if test x$has_ext_mod = xtrue; then
popd
else
cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
cat mono/metadata/Makefile.am.in > mono/metadata/Makefile.am
fi
+122 -116
View File
@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
#AC_PREREQ([2.62])
AC_INIT(mono, [3.4.1],
AC_INIT(mono, [3.10.1],
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
AC_CONFIG_SRCDIR([README.md])
@@ -36,20 +36,15 @@ case $host_os in
*cygwin* ) LN_S='cp -p';;
esac
dnl
dnl libgc checks
dnl
gc_headers=no
gc=included
gc_msg="included Boehm"
use_included_gc=no
#
# libgc defaults
#
libgc_configure_args=
if test -d $srcdir/libgc ; then
gc_default=included
libgc_default=included
else
gc_default=boehm
libgc_default=boehm
fi
# These variables are the CPPFLAGS/CFLAGS passed to libgc's configure
@@ -59,6 +54,9 @@ CFLAGS_FOR_LIBGC=$CFLAGS
CPPFLAGS_FOR_EGLIB=$CPPFLAGS
CFLAGS_FOR_EGLIB=$CFLAGS
# libgc uses some deprecated APIs
CFLAGS_FOR_LIBGC="$CFLAGS -Wno-deprecated-declarations"
#
# These are the flags that need to be stored in the mono.pc file for
# compiling code that will embed Mono
@@ -118,14 +116,15 @@ case "$host" in
fi
HOST_CC="gcc"
# Windows 2000 is required that includes Internet Explorer 5.01
CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
CPPFLAGS="$CPPFLAGS -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
LDFLAGS="$LDFLAGS -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32"
libmono_cflags="-mms-bitfields -mwindows"
libmono_ldflags="-mms-bitfields -mwindows"
libdl=
libgc_threads=win32
gc_default=included
libgc_default=included
with_sigaltstack=no
with_tls=pthread
LN_S=cp
# This forces libgc to use the DllMain based thread registration code on win32
libgc_configure_args="$libgc_configure_args --enable-win32-dllmain=yes"
@@ -143,6 +142,17 @@ case "$host" in
with_sigaltstack=no
use_sigposix=yes
;;
*-*-kfreebsd*-gnu)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_FREEBSD_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -DTHREAD_LOCAL_ALLOC -pthread"
libmono_cflags="-D_REENTRANT -DTHREAD_LOCAL_ALLOC -pthread"
libmono_ldflags="-lpthread -pthread"
libdl="-ldl"
libgc_threads=pthreads
need_link_unlink=yes
with_sigaltstack=no
use_sigposix=yes
;;
*-*-*freebsd*)
host_win32=no
if test "x$PTHREAD_CFLAGS" = "x"; then
@@ -178,7 +188,7 @@ case "$host" in
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
gc_default=boehm
libgc_default=boehm
libgc_threads=pthreads
with_sigaltstack=no
use_sigposix=yes
@@ -253,7 +263,7 @@ case "$host" in
libmono_cflags="-D_REENTRANT"
libdl=
libgc_threads=pthreads
gc_default=boehm
libgc_default=boehm
use_sigposix=yes
ikvm_native=no
AC_DEFINE(DISABLE_SOCKETS,1,[Disable sockets support])
@@ -358,6 +368,7 @@ fi
AC_SUBST(extra_runtime_ldflags)
AM_CONDITIONAL(HOST_WIN32, test x$host_win32 = xyes)
AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes)
AM_CONDITIONAL(PLATFORM_GNU, echo x$target_os | grep -q -- -gnu)
AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes)
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
@@ -481,7 +492,7 @@ AC_CHECK_HEADERS(wchar.h)
AC_CHECK_HEADERS(ieeefp.h)
AC_MSG_CHECKING(for isinf)
AC_TRY_LINK([#include <math.h>], [
int f = isinf (1);
int f = isinf (1.0);
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ISINF, 1, [isinf available])
@@ -646,18 +657,6 @@ if test "x$USE_NLS" = "xyes"; then
fi
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])
case $with_libgdiplus in
no|installed) libgdiplus_loc= ;;
yes|sibling) libgdiplus_loc=`cd ../libgdiplus && pwd`/src/libgdiplus.la ;;
/*) libgdiplus_loc=$with_libgdiplus ;;
*) libgdiplus_loc=`pwd`/$with_libgdiplus ;;
esac
AC_SUBST([libgdiplus_loc])
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
pkg_config_path=
@@ -673,6 +672,12 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
fi
)
AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AC_SUBST([WERROR_CFLAGS])
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
@@ -690,8 +695,6 @@ AC_SUBST(GMODULE_LIBS)
AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Controls the Boehm GC config, default=included],[gc=$with_gc],[gc=$gc_default])
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
AC_ARG_WITH(tls, [ --with-tls=__thread,pthread select Thread Local Storage implementation (defaults to __thread)],[],[with_tls=__thread])
@@ -999,22 +1002,28 @@ AC_TRY_COMPILE([
AC_MSG_RESULT(no)
])
dnl
dnl Boehm GC configuration
dnl
AC_ARG_WITH(libgc, [ --with-gc=boehm,included,none Controls the Boehm GC config, default=included],[libgc=$with_gc],[libgc=$libgc_default])
AC_ARG_ENABLE(boehm, [ --disable-boehm Disable the Boehm GC.], support_boehm=$enableval,support_boehm=${support_boehm:-yes})
AM_CONDITIONAL(SUPPORT_BOEHM, test x$support_boehm = xyes)
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
fi
AC_ARG_ENABLE(boehm, [ --disable-boehm Disable the Boehm GC.], support_boehm=$enableval,support_boehm=${support_boehm:-yes})
AM_CONDITIONAL(SUPPORT_BOEHM, test x$support_boehm = xyes)
dnl
dnl Boehm GC configuration
dnl
gc_headers=no
gc_msg=""
use_included_gc=no
LIBGC_CPPFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
libgc_dir=
case "x$gc" in
case "x$libgc" in
xboehm|xbohem|xyes)
AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
@@ -1047,17 +1056,18 @@ case "x$gc" in
fi
# check whether we need to explicitly allow
# thread registering
AC_CHECK_LIB(gc, GC_allow_register_threads, found_allow_register_threads="yes",,$libdl)
if test "x$found_allow_register_threads" = "xyes"; then
AC_DEFINE(HAVE_GC_ALLOW_REGISTER_THREADS, 1, [GC requires thread registration])
fi
# thread registering
AC_CHECK_LIB(gc, GC_allow_register_threads, found_allow_register_threads="yes",,$libdl)
if test "x$found_allow_register_threads" = "xyes"; then
AC_DEFINE(HAVE_GC_ALLOW_REGISTER_THREADS, 1, [GC requires thread registration])
fi
;;
xincluded)
use_included_gc=yes
libgc_dir=libgc
if test "x$support_boehm" = "xyes"; then
libgc_dir=libgc
fi
LIBGC_CPPFLAGS='-I$(top_srcdir)/libgc/include'
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
@@ -1070,7 +1080,7 @@ case "x$gc" in
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DGC_BUILD -DGC_NOT_DLL"
fi
gc_msg="bundled Boehm GC with typed GC"
gc_msg="Included Boehm GC with typed GC"
if test x$enable_parallel_mark = xyes; then
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
gc_msg="$gc_msg and parallel mark"
@@ -1087,6 +1097,7 @@ case "x$gc" in
AC_MSG_WARN("Compiling mono without GC.")
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
gc_msg="none"
;;
*)
AC_MSG_ERROR([Invalid argument to --with-gc.])
@@ -1106,7 +1117,7 @@ AC_SUBST(libgc_dir)
AC_SUBST(BOEHM_DEFINES)
dnl
dnl End of libgc checks
dnl End of Boehm GC Configuration
dnl
dnl *************************************
@@ -1522,30 +1533,6 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(inet_pton inet_aton)
dnl ***********************************************
dnl *** Checks for size of sockaddr_un.sun_path ***
dnl ***********************************************
# AC_CHECK_SIZEOF can't cope with struct members :-(
AC_MSG_CHECKING(size of sockaddr_un.sun_path)
AC_CACHE_VAL(mono_cv_sizeof_sunpath,
[AC_TRY_RUN([
#include <sys/types.h>
#include <stdio.h>
#include <sys/un.h>
int main(void) {
struct sockaddr_un sock_un;
FILE *f=fopen("conftestval", "w");
if(!f) exit(1);
fprintf(f, "%d\n", sizeof(sock_un.sun_path));
exit(0);
}
], mono_cv_sizeof_sunpath=`cat conftestval`,
mono_cv_sizeof_sunpath=0,
mono_cv_sizeof_sunpath=0)])dnl
AC_MSG_RESULT($mono_cv_sizeof_sunpath)
AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $mono_cv_sizeof_sunpath, [Sizeof sock_un.sun_path])
dnl *****************************
dnl *** Checks for libxnet ***
dnl *****************************
@@ -2162,7 +2149,6 @@ else
AC_MSG_RESULT(no)
])
])
AC_CHECK_FUNCS(GetProcessId)
AC_CHECK_DECLS(InterlockedExchange64, [], [], [[#include <windows.h>]])
AC_CHECK_DECLS(InterlockedCompareExchange64, [], [], [[#include <windows.h>]])
AC_CHECK_DECLS(InterlockedDecrement64, [], [], [[#include <windows.h>]])
@@ -2170,6 +2156,16 @@ else
AC_CHECK_DECLS(InterlockedAdd, [], [], [[#include <windows.h>]])
AC_CHECK_DECLS(InterlockedAdd64, [], [], [[#include <windows.h>]])
AC_CHECK_DECLS(__readfsdword, [], [], [[#include <windows.h>]])
AC_MSG_CHECKING(for GetProcessId)
AC_TRY_COMPILE([#include <windows.h>], [
GetProcessId (0);
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETPROCESSID)
], [
AC_MSG_RESULT(no)
])
fi
dnl socklen_t check
@@ -2509,7 +2505,9 @@ INTL="libc.so.6"
SQLITE="libsqlite.so.0"
SQLITE3="libsqlite3.so.0"
X11="libX11.so"
XINERAMA="libXinerama.so"
GDKX11="libgdk-x11-2.0.so.0"
GTKX11="libgtk-x11-2.0.so.0"
XINERAMA="libXinerama.so.1"
sizeof_register="SIZEOF_VOID_P"
@@ -2579,7 +2577,7 @@ case "$host" in
sgen_supported=true
AOT_SUPPORTED="yes"
;;
darwin*|openbsd*|freebsd*)
openbsd*|freebsd*|kfreebsd-gnu*)
sgen_supported=true
;;
esac
@@ -2597,7 +2595,14 @@ case "$host" in
sgen_supported=true
AOT_SUPPORTED="yes"
;;
darwin*|openbsd*|freebsd*)
darwin*)
sgen_supported=true
AOT_SUPPORTED="yes"
;;
openbsd*|freebsd*|kfreebsd-gnu*)
sgen_supported=true
;;
mingw*)
sgen_supported=true
;;
esac
@@ -2671,8 +2676,6 @@ case "$host" in
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
# libgc's gc_locks.h depends on this
CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC"
sgen_supported=true
;;
arm*-linux*)
@@ -2739,7 +2742,6 @@ if test "x$host" != "x$target"; then
sizeof_register=8
target_byte_order=G_BIG_ENDIAN
;;
powerpc64-xbox360-linux-gnu)
TARGET=POWERPC64
arch_target=powerpc64
@@ -2964,11 +2966,18 @@ case "$host" in
SQLITE="libsqlite.0.dylib"
SQLITE3="libsqlite3.0.dylib"
X11="libX11.dylib"
GDKX11="libgdk-x11-2.0.dylib"
GTKX11="libgtk-x11-2.0.dylib"
;;
*-*-*netbsd*)
LIBC="libc.so.12"
INTL="libintl.so.0"
;;
*-*-kfreebsd*-gnu)
LIBC="libc.so.0.1"
INTL="libc.so.0.1"
X11="libX11.so.6"
;;
*-*-*freebsd*)
LIBC="libc.so"
INTL="libintl.so"
@@ -2995,45 +3004,41 @@ case "$host" in
done
if test "x$X11" = "xlibX11.so"; then
AC_MSG_WARN([Could not find X development libs. Do you have the -devel package installed? Assuming libX11.so.6...]);
AC_MSG_WARN([Could not find libX11.so. Do you have X.org or XFree86 installed? Assuming libX11.so.6...]);
X11=libX11.so.6
fi
AC_MSG_CHECKING(for the soname of libXinerama.so)
for i in $x_libraries $dlsearch_path; do
for r in 1 2 3; do
if test -f $i/libXinerama.so.$r; then
XINERAMA=libXinerama.so.$r
AC_MSG_RESULT($XINERAMA)
fi
done
done
if test "x$XINERAMA" = "xlibXinerama.so"; then
AC_MSG_WARN([Could not find Xinerama development libs. Support for multiple monitors might not work...]);
fi
;;
esac
AC_SUBST(libsuffix)
if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
if test "x$with_tls" = "x__thread"; then
#
# On some linux distributions, TLS works in executables, but linking
# against a shared library containing TLS fails with:
# undefined reference to `__tls_get_addr'
#
rm -f conftest.c conftest.so conftest
echo "static __thread int foo; int main () { foo = 5; return 0; }" > conftest.c
$CC -fPIC --shared -o conftest.so conftest.c > /dev/null 2>&1
$CC -o conftest conftest.so > /dev/null 2>&1
if test ! -f conftest; then
AC_MSG_WARN([Disabling usage of __thread.]);
with_tls=pthread
fi
rm -f conftest.c conftest.so conftest
fi
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])
# default install location
libgdiplus_install_loc=libgdiplus${libsuffix}
case $with_libgdiplus in
no|installed)
libgdiplus_loc=
;;
yes|sibling)
libgdiplus_loc=`cd ../libgdiplus && pwd`/src/libgdiplus.la
;;
/*) # absolute path, assume it is an install location
libgdiplus_loc=$with_libgdiplus
libgdiplus_install_loc=$with_libgdiplus
;;
*)
libgdiplus_loc=`pwd`/$with_libgdiplus
;;
esac
AC_SUBST([libgdiplus_loc])
AC_SUBST([libgdiplus_install_loc])
AC_ARG_ENABLE(icall-symbol-map,[ --enable-icall-symbol-map Generate tables which map icall functions to their C symbols], icall_symbol_map=$enableval, icall_symbol_map=no)
if test "x$icall_symbol_map" = "xyes"; then
@@ -3200,7 +3205,7 @@ if test ${ACCESS_UNALIGNED} = no; then
CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS"
fi
case "x$gc" in
case "x$libgc" in
xincluded)
# Pass CPPFLAGS to libgc configure
# We should use a separate variable for this to avoid passing useless and
@@ -3218,7 +3223,9 @@ case "x$gc" in
# (infinite recursion, undefined parking behavior, etc)
TMP_CPPFLAGS=`echo $TMP_CPPFLAGS | sed -e 's/-finstrument-for-thread-suspension//g'`
ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads=$libgc_threads $libgc_configure_args \"CPPFLAGS_FOR_LIBGC=$TMP_CPPFLAGS\" \"CFLAGS_FOR_LIBGC=$CFLAGS_FOR_LIBGC\""
AC_CONFIG_SUBDIRS(libgc)
if test "x$support_boehm" = "xyes"; then
AC_CONFIG_SUBDIRS(libgc)
fi
;;
esac
@@ -3352,13 +3359,15 @@ AM_CONDITIONAL(CROSS_COMPILE, test "x$host" != "x$target")
AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
AM_CONDITIONAL(INTERP_SUPPORTED, test x$interp_wanted = xtrue)
AM_CONDITIONAL(INCLUDED_LIBGC, test x$gc = xincluded)
AM_CONDITIONAL(INCLUDED_LIBGC, test x$libgc = xincluded)
AC_SUBST(LIBC)
AC_SUBST(INTL)
AC_SUBST(SQLITE)
AC_SUBST(SQLITE3)
AC_SUBST(X11)
AC_SUBST(GDKX11)
AC_SUBST(GTKX11)
AC_SUBST(XINERAMA)
AC_DEFINE_UNQUOTED(ARCHITECTURE,"$arch_target",[The architecture this is running on])
AC_SUBST(arch_target)
@@ -3699,11 +3708,6 @@ fi
enable_system_aot=yes
fi
if test "x$enable_loadedllvm" = "xyes"; then
# This seems to fail on the x86 buildbots
enable_system_aot=no
fi
if test x$host_win32 = xno -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
fi
@@ -3765,6 +3769,8 @@ echo "
mcs source: $mcsdir
Engine:
Host: $host
Target: $target
GC: $gc_msg
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
+7 -5
View File
@@ -10,12 +10,14 @@
<dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
<dllmap dll="oci" target="libclntsh@libsuffix@" os="!windows"/>
<dllmap dll="db2cli" target="libdb2_36@libsuffix@" os="!windows"/>
<dllmap dll="MonoPosixHelper" target="libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="MonoPosixHelper" target="@prefix@/lib/libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="i:msvcrt" target="@LIBC@" os="!windows"/>
<dllmap dll="i:msvcrt.dll" target="@LIBC@" os="!windows"/>
<dllmap dll="sqlite" target="@SQLITE@" os="!windows"/>
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libgdk-x11-2.0" target="@GDKX11@" os="!windows"/>
<dllmap dll="libgtk-x11-2.0" target="@GTKX11@" os="!windows"/>
<dllmap dll="libXinerama" target="@XINERAMA@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
@@ -27,8 +29,8 @@
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdi32" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdi32.dll" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdiplus" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32.dll" target="@libgdiplus_install_loc@" os="!windows"/>
</configuration>
+2
View File
@@ -1,5 +1,7 @@
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WERROR_CFLAGS)
if HOST_WIN32
SUBDIRS = m4 src
else
+2 -2
View File
@@ -22,8 +22,8 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
+7 -1
View File
@@ -179,7 +179,7 @@ if test "x$have_iso_varargs" = "xyes"; then
fi
AC_SUBST(G_HAVE_ISO_VARARGS)
AC_CHECK_HEADERS(getopt.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
AC_SUBST(HAVE_ALLOCA_H)
@@ -235,6 +235,12 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
fi
)
AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AC_SUBST([WERROR_CFLAGS])
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
+3
View File
@@ -1,5 +1,7 @@
noinst_LTLIBRARIES = libeglib.la libeglib-static.la
AM_CFLAGS = $(WERROR_CFLAGS)
win_files = \
eglib-config.hw \
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c \
@@ -30,6 +32,7 @@ libeglib_la_SOURCES = \
garray.c \
gbytearray.c \
gerror.c \
vasprintf.h \
ghashtable.c \
giconv.c \
gmem.c \
+6
View File
@@ -273,3 +273,9 @@
#define g_utf8_get_char_validated monoeg_utf8_get_char_validated
#define g_utf8_prev_char monoeg_utf8_prev_char
#define g_utf8_to_ucs4 monoeg_utf8_to_ucs4
#define g_log_default_handler monoeg_log_default_handler
#define g_log_set_default_handler monoeg_log_set_default_handler
#define g_set_print_handler monoeg_set_print_handler
#define g_set_printerr_handler monoeg_set_printerr_handler
+2
View File
@@ -30,6 +30,8 @@
#include <string.h>
#include <glib.h>
#include "vasprintf.h"
GError *
g_error_new (gpointer domain, gint code, const char *format, ...)
{
+8
View File
@@ -57,6 +57,14 @@ typedef struct {
Slot *slot;
} Iter;
size_t
mono_eg_hashtable_get_memory_size (GHashTable *hashtable)
{
return sizeof (GHashTable) +
hashtable->in_use * sizeof (Slot) +
hashtable->table_size * sizeof (Slot*);
}
static const guint prime_tbl[] = {
11, 19, 37, 73, 109, 163, 251, 367, 557, 823, 1237,
1861, 2777, 4177, 6247, 9371, 14057, 21089, 31627,
+17 -22
View File
@@ -49,12 +49,6 @@
G_BEGIN_DECLS
#ifdef G_OS_WIN32
/* MSC and Cross-compilatin will use this */
int vasprintf (char **strp, const char *fmt, va_list ap);
#endif
/*
* Basic data types
*/
@@ -473,6 +467,8 @@ guint g_spaced_primes_closest (guint x);
#define g_hash_table_insert(h,k,v) g_hash_table_insert_replace ((h),(k),(v),FALSE)
#define g_hash_table_replace(h,k,v) g_hash_table_insert_replace ((h),(k),(v),TRUE)
size_t mono_eg_hashtable_get_memory_size (GHashTable *hashtable);
gboolean g_direct_equal (gconstpointer v1, gconstpointer v2);
guint g_direct_hash (gconstpointer v1);
gboolean g_int_equal (gconstpointer v1, gconstpointer v2);
@@ -609,10 +605,14 @@ void g_assertion_message (const gchar *format, ...) G_GNUC_NORETURN
#define g_message(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, __VA_ARGS__)
#define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
#endif /* ndef HAVE_C99_SUPPORT */
#define g_log_set_handler(a,b,c,d)
#define G_GNUC_INTERNAL
typedef void (*GLogFunc) (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data);
typedef void (*GPrintFunc) (const gchar *string);
void g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data);
GLogFunc g_log_set_default_handler (GLogFunc log_func, gpointer user_data);
GPrintFunc g_set_print_handler (GPrintFunc func);
GPrintFunc g_set_printerr_handler (GPrintFunc func);
/*
* Conversions
*/
@@ -727,8 +727,16 @@ GUnicodeBreakType g_unichar_break_type (gunichar c);
#define G_UNLIKELY(x) (x)
#endif
#if defined(_MSC_VER)
#define eg_unreachable() __assume(0)
#elif defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 5)))
#define eg_unreachable() __builtin_unreachable()
#else
#define eg_unreachable()
#endif
#define g_assert(x) G_STMT_START { if (G_UNLIKELY (!(x))) g_assertion_message ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); eg_unreachable(); } G_STMT_END
/*
* Unicode conversion
@@ -1008,19 +1016,6 @@ glong g_utf8_pointer_to_offset (const gchar *str, const gchar *pos);
#define G_PRIORITY_DEFAULT 0
#define G_PRIORITY_DEFAULT_IDLE 200
/*
* Empty thread functions, not used by eglib
*/
#define g_thread_supported() TRUE
#define g_thread_init(x) G_STMT_START { if (x != NULL) { g_error ("No vtable supported in g_thread_init"); } } G_STMT_END
#define G_LOCK_DEFINE(name) int name;
#define G_LOCK_DEFINE_STATIC(name) static int name;
#define G_LOCK_EXTERN(name)
#define G_LOCK(name)
#define G_TRYLOCK(name)
#define G_UNLOCK(name)
#define GUINT16_SWAP_LE_BE_CONSTANT(x) ((((guint16) x) >> 8) | ((((guint16) x) << 8)))
#define GUINT16_SWAP_LE_BE(x) ((guint16) (((guint16) x) >> 8) | ((((guint16)(x)) & 0xff) << 8))
+167 -92
View File
@@ -31,87 +31,51 @@
#include <stdlib.h>
#include <glib.h>
#include "vasprintf.h"
/* The current fatal levels, error is always fatal */
static GLogLevelFlags fatal = G_LOG_LEVEL_ERROR;
static GLogFunc default_log_func;
static gpointer default_log_func_user_data;
static GPrintFunc stdout_handler, stderr_handler;
#if PLATFORM_ANDROID
#include <android/log.h>
static android_LogPriority
to_android_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ANDROID_LOG_FATAL;
case G_LOG_LEVEL_CRITICAL: return ANDROID_LOG_ERROR;
case G_LOG_LEVEL_WARNING: return ANDROID_LOG_WARN;
case G_LOG_LEVEL_MESSAGE: return ANDROID_LOG_INFO;
case G_LOG_LEVEL_INFO: return ANDROID_LOG_DEBUG;
case G_LOG_LEVEL_DEBUG: return ANDROID_LOG_VERBOSE;
}
return ANDROID_LOG_UNKNOWN;
}
static void
out_vfprintf (FILE *ignore, const gchar *format, va_list args)
{
/* TODO: provide a proper app name */
__android_log_vprint (ANDROID_LOG_ERROR, "mono", format, args);
}
#elif MONOTOUCH && defined(__arm__)
#include <asl.h>
static int
to_asl_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ASL_LEVEL_CRIT;
case G_LOG_LEVEL_CRITICAL: return ASL_LEVEL_ERR;
case G_LOG_LEVEL_WARNING: return ASL_LEVEL_WARNING;
case G_LOG_LEVEL_MESSAGE: return ASL_LEVEL_NOTICE;
case G_LOG_LEVEL_INFO: return ASL_LEVEL_INFO;
case G_LOG_LEVEL_DEBUG: return ASL_LEVEL_DEBUG;
}
return ASL_LEVEL_ERR;
}
static void
out_vfprintf (FILE *ignore, const gchar *format, va_list args)
{
asl_vlog (NULL, NULL, ASL_LEVEL_WARNING, format, args);
}
#else
static void
out_vfprintf (FILE *file, const gchar *format, va_list args)
{
vfprintf (file, format, args);
}
#endif
static void default_stdout_handler (const gchar *string);
static void default_stderr_handler (const gchar *string);
void
g_print (const gchar *format, ...)
{
char *msg;
va_list args;
va_start (args, format);
out_vfprintf (stdout, format, args);
if (vasprintf (&msg, format, args) < 0)
return;
va_end (args);
if (!stdout_handler)
stdout_handler = default_stdout_handler;
stdout_handler (msg);
free (msg);
}
void
g_printerr (const gchar *format, ...)
{
char *msg;
va_list args;
va_start (args, format);
out_vfprintf (stderr, format, args);
if (vasprintf (&msg, format, args) < 0)
return;
va_end (args);
if (!stderr_handler)
stderr_handler = default_stderr_handler;
stderr_handler (msg);
free (msg);
}
GLogLevelFlags
@@ -138,42 +102,16 @@ g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask)
void
g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args)
{
#if PLATFORM_ANDROID
__android_log_vprint (to_android_priority (log_level), log_domain, format, args);
#elif MONOTOUCH && defined(__arm__)
asl_vlog (NULL, NULL, to_asl_priority (log_level), format, args);
#else
char *msg;
if (!default_log_func)
default_log_func = g_log_default_handler;
if (vasprintf (&msg, format, args) < 0)
return;
#ifdef G_OS_WIN32
printf ("%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#else
#if MONOTOUCH
FILE *target = stderr;
#else
FILE *target = stdout;
#endif
fprintf (target, "%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#endif
default_log_func (log_domain, log_level, msg, default_log_func_user_data);
free (msg);
if (log_level & fatal){
fflush (stdout);
fflush (stderr);
}
#endif
if (log_level & fatal){
abort ();
}
}
void
@@ -194,6 +132,143 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
abort ();
}
#if PLATFORM_ANDROID
#include <android/log.h>
static android_LogPriority
to_android_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ANDROID_LOG_FATAL;
case G_LOG_LEVEL_CRITICAL: return ANDROID_LOG_ERROR;
case G_LOG_LEVEL_WARNING: return ANDROID_LOG_WARN;
case G_LOG_LEVEL_MESSAGE: return ANDROID_LOG_INFO;
case G_LOG_LEVEL_INFO: return ANDROID_LOG_DEBUG;
case G_LOG_LEVEL_DEBUG: return ANDROID_LOG_VERBOSE;
}
return ANDROID_LOG_UNKNOWN;
}
void
g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
{
__android_log_write (to_android_priority (log_level), log_domain, message);
if (log_level & fatal)
abort ();
}
static void
default_stdout_handler (const gchar *message)
{
/* TODO: provide a proper app name */
__android_log_write (ANDROID_LOG_ERROR, "mono", message);
}
static void
default_stderr_handler (const gchar *message)
{
/* TODO: provide a proper app name */
__android_log_write (ANDROID_LOG_ERROR, "mono", message);
}
#elif MONOTOUCH
#include <asl.h>
static int
to_asl_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ASL_LEVEL_CRIT;
case G_LOG_LEVEL_CRITICAL: return ASL_LEVEL_ERR;
case G_LOG_LEVEL_WARNING: return ASL_LEVEL_WARNING;
case G_LOG_LEVEL_MESSAGE: return ASL_LEVEL_NOTICE;
case G_LOG_LEVEL_INFO: return ASL_LEVEL_INFO;
case G_LOG_LEVEL_DEBUG: return ASL_LEVEL_DEBUG;
}
return ASL_LEVEL_ERR;
}
void
g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
{
asl_log (NULL, NULL, to_asl_priority (log_level), "%s", message);
if (log_level & fatal)
abort ();
}
static void
default_stdout_handler (const gchar *message)
{
asl_log (NULL, NULL, ASL_LEVEL_WARNING, "%s", message);
}
static void
default_stderr_handler (const gchar *message)
{
asl_log (NULL, NULL, ASL_LEVEL_WARNING, "%s", message);
}
#else
void
g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
{
FILE *target = stdout;
fprintf (target, "%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
message);
if (log_level & fatal) {
fflush (stdout);
fflush (stderr);
abort ();
}
}
static void
default_stdout_handler (const gchar *string)
{
fprintf (stdout, "%s", string);
}
static void
default_stderr_handler (const gchar *string)
{
fprintf (stderr, "%s", string);
}
#endif
GLogFunc
g_log_set_default_handler (GLogFunc log_func, gpointer user_data)
{
GLogFunc old = default_log_func;
default_log_func = log_func;
default_log_func_user_data = user_data;
return old;
}
GPrintFunc
g_set_print_handler (GPrintFunc func)
{
GPrintFunc old = stdout_handler;
stdout_handler = func;
return old;
}
GPrintFunc
g_set_printerr_handler (GPrintFunc func)
{
GPrintFunc old = stderr_handler;
stderr_handler = func;
return old;
}
+4
View File
@@ -41,6 +41,10 @@
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
+2
View File
@@ -32,6 +32,8 @@
#include <ctype.h>
#include <glib.h>
#include "vasprintf.h"
/* This is not a macro, because I dont want to put _GNU_SOURCE in the glib.h header */
gchar *
g_strndup (const gchar *str, gsize n)
+24
View File
@@ -88,12 +88,24 @@ merge_lists (list_node *first, list_node *second, GCompareFunc func)
static inline list_node *
sweep_up (struct sort_info *si, list_node *list, int upto)
{
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
/*
* GCC incorrectly thinks we're writing below si->ranks array bounds.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
int i;
for (i = si->min_rank; i < upto; ++i) {
list = merge_lists (si->ranks [i], list, si->func);
si->ranks [i] = NULL;
}
return list;
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
#pragma GCC diagnostic pop
#endif
}
/*
@@ -124,6 +136,14 @@ sweep_up (struct sort_info *si, list_node *list, int upto)
static inline void
insert_list (struct sort_info *si, list_node* list, int rank)
{
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
/*
* GCC incorrectly thinks we're writing below si->ranks array bounds.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
int i;
if (rank > si->n_ranks) {
@@ -149,6 +169,10 @@ insert_list (struct sort_info *si, list_node* list, int rank)
si->n_ranks = i + 1;
si->min_rank = i;
si->ranks [i] = list;
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
#pragma GCC diagnostic pop
#endif
}
#undef stringify2
+11
View File
@@ -0,0 +1,11 @@
#ifndef __VASPRINTF_H
#define __VASPRINTF_H
#include <stdarg.h>
#include <config.h>
#ifndef HAVE_VASPRINTF
int vasprintf(char **ret, const char *fmt, va_list ap);
#endif
#endif /* __VASPRINTF_H */
+1 -1
View File
@@ -115,7 +115,7 @@ test_file ()
#ifndef G_OS_WIN32 /* FIXME */
gchar *sympath;
gint ignored;
gint ignored G_GNUC_UNUSED;
#endif
res = g_file_test (NULL, 0);
+1 -1
+1 -1
+7 -1
View File
@@ -486,11 +486,15 @@ static void* JNIEnv_vtable[] =
0 // jlong JNICALL GetDirectBufferCapacity(jobject buf);
};
JNIEXPORT void** JNICALL ikvm_GetJNIEnvVTable()
void** ikvm_GetJNIEnvVTable(void);
JNIEXPORT void** JNICALL ikvm_GetJNIEnvVTable(void)
{
return JNIEnv_vtable;
}
void* JNICALL ikvm_MarshalDelegate(void* p);
JNIEXPORT void* JNICALL ikvm_MarshalDelegate(void* p)
{
return p;
@@ -498,6 +502,8 @@ JNIEXPORT void* JNICALL ikvm_MarshalDelegate(void* p)
typedef jint (JNICALL *PJNI_ONLOAD)(JavaVM* vm, void* reserved);
jint JNICALL ikvm_CallOnLoad(PJNI_ONLOAD method, JavaVM* vm, void* reserved);
JNIEXPORT jint JNICALL ikvm_CallOnLoad(PJNI_ONLOAD method, JavaVM* vm, void* reserved)
{
return method(vm, reserved);
+12
View File
@@ -61,16 +61,22 @@
#include <sys/mman.h>
#include "jni.h"
void* JNICALL ikvm_LoadLibrary(char* psz);
JNIEXPORT void* JNICALL ikvm_LoadLibrary(char* psz)
{
return g_module_open(psz, 0);
}
void JNICALL ikvm_FreeLibrary(GModule* handle);
JNIEXPORT void JNICALL ikvm_FreeLibrary(GModule* handle)
{
g_module_close(handle);
}
void* JNICALL ikvm_GetProcAddress(GModule* handle, char* name, jint argc);
JNIEXPORT void* JNICALL ikvm_GetProcAddress(GModule* handle, char* name, jint argc)
{
void *symbol;
@@ -83,16 +89,22 @@
return NULL;
}
void* JNICALL ikvm_mmap(int fd, jboolean writeable, jboolean copy_on_write, jlong position, jint size);
JNIEXPORT void* JNICALL ikvm_mmap(int fd, jboolean writeable, jboolean copy_on_write, jlong position, jint size)
{
return mmap(0, size, writeable ? PROT_WRITE | PROT_READ : PROT_READ, copy_on_write ? MAP_PRIVATE : MAP_SHARED, fd, position);
}
int JNICALL ikvm_munmap(void* address, jint size);
JNIEXPORT int JNICALL ikvm_munmap(void* address, jint size)
{
return munmap(address, size);
}
int JNICALL ikvm_msync(void* address, jint size);
JNIEXPORT int JNICALL ikvm_msync(void* address, jint size)
{
#if defined(__native_client__) && defined(USE_NEWLIB)
+1 -1
View File
@@ -68,7 +68,7 @@ libmonogc_static_la_LDFLAGS = -static
EXTRA_DIST += alpha_mach_dep.S mips_sgi_mach_dep.s sparc_mach_dep.S
AM_CFLAGS = @GC_CFLAGS@
AM_CFLAGS = $(WERROR_CFLAGS) @GC_CFLAGS@
if CPLUSPLUS
extra_checks = test_cpp
+2 -2
View File
@@ -22,8 +22,8 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
+17
View File
@@ -114,6 +114,17 @@ case "$THREADS" in
AC_DEFINE(THREAD_LOCAL_ALLOC)
THREADDLLIBS="-lpthread -lrt"
;;
*-*-kfreebsd*-gnu)
AC_DEFINE(GC_FREEBSD_THREADS)
INCLUDES="$INCLUDES -pthread"
THREADDLLIBS=-pthread
AC_DEFINE(_REENTRANT)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
AC_DEFINE(USE_COMPILER_TLS)
;;
*-*-freebsd*)
AC_DEFINE(GC_FREEBSD_THREADS)
if test "x$PTHREAD_CFLAGS" != "x"; then
@@ -531,6 +542,12 @@ fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AC_SUBST([WERROR_CFLAGS])
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"
else
+2 -2
View File
@@ -26,7 +26,7 @@
* None of this is safe with dlclose and incremental collection.
* But then not much of anything is safe in the presence of dlclose.
*/
#if (defined(__linux__) || defined(__native_client__)) && !defined(_GNU_SOURCE)
#if (defined(__linux__) || defined(__GLIBC__) || defined(__native_client__)) && !defined(_GNU_SOURCE)
/* Can't test LINUX, since this must be define before other includes */
# define _GNU_SOURCE
#endif
@@ -394,7 +394,7 @@ GC_bool GC_register_main_static_data()
/* For glibc 2.2.4+. Unfortunately, it doesn't work for older */
/* versions. Thanks to Jakub Jelinek for most of the code. */
# if (defined(LINUX) || defined(NACL)) /* Are others OK here, too? */ \
# if (defined(LINUX) || defined (__GLIBC__) || defined(NACL)) /* Are others OK here, too? */ \
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+13
View File
@@ -366,6 +366,15 @@ GC_process_togglerefs (void)
GC_toggleref_array_size = w;
}
/* Finalizer proc support */
static void (*GC_object_finalized_proc) (GC_PTR obj);
void
GC_set_finalizer_notify_proc (void (*proc) (GC_PTR obj))
{
GC_object_finalized_proc = proc;
}
static void push_and_mark_object (GC_PTR p)
{
@@ -877,6 +886,10 @@ void GC_finalize()
fo_set_next(prev_fo, next_fo);
}
GC_fo_entries--;
if (GC_object_finalized_proc)
GC_object_finalized_proc (real_ptr);
/* Add to list of objects awaiting finalization. */
fo_set_next(curr_fo, GC_finalize_now);
GC_finalize_now = curr_fo;
+5 -1
View File
@@ -497,7 +497,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_off_page GC_PROTO((size_t lb));
# define GC_RETURN_ADDR (GC_word)__return_address
#endif
#ifdef __linux__
#if defined(__linux__) || defined(__GLIBC__)
# include <features.h>
# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
&& !defined(__ia64__)
@@ -778,6 +778,10 @@ GC_API int GC_unregister_long_link GC_PROTO((GC_PTR * /* link */));
GC_API void GC_toggleref_register_callback GC_PROTO((int (*proccess_toggleref) (GC_PTR obj)));
GC_API void GC_toggleref_add (GC_PTR object, int strong_ref);
/* finalizer callback support */
GC_API void GC_set_finalizer_notify_proc GC_PROTO((void (*object_finalized) (GC_PTR obj)));
/* Returns !=0 if GC_invoke_finalizers has something to do. */
GC_API int GC_should_invoke_finalizers GC_PROTO((void));
+22 -8
View File
@@ -55,7 +55,7 @@
# endif
/* And one for FreeBSD: */
# if defined(__FreeBSD__) && !defined(FREEBSD)
# if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
# define FREEBSD
# endif
@@ -1371,8 +1371,15 @@
# ifndef GC_FREEBSD_THREADS
# define MPROTECT_VDB
# endif
# define SIG_SUSPEND SIGTSTP
# define SIG_THR_RESTART SIGCONT
# ifdef __GLIBC__
# define SIG_SUSPEND (32+6)
# define SIG_THR_RESTART (32+5)
extern int _end[];
# define DATAEND (_end)
# else
# define SIG_SUSPEND SIGTSTP
# define SIG_THR_RESTART SIGCONT
# endif
# define FREEBSD_STACKBOTTOM
# ifdef __ELF__
# define DYNAMIC_LOADING
@@ -2132,8 +2139,15 @@
# ifndef GC_FREEBSD_THREADS
# define MPROTECT_VDB
# endif
# define SIG_SUSPEND SIGTSTP
# define SIG_THR_RESTART SIGCONT
# ifdef __GLIBC__
# define SIG_SUSPEND (32+6)
# define SIG_THR_RESTART (32+5)
extern int _end[];
# define DATAEND (_end)
# else
# define SIG_SUSPEND SIGUSR1
# define SIG_THR_RESTART SIGUSR2
# endif
# define NEED_FIND_LIMIT
# define FREEBSD_STACKBOTTOM
# ifdef __ELF__
@@ -2230,7 +2244,7 @@
# define SUNOS5SIGS
# endif
# if defined(FREEBSD) && (__FreeBSD__ >= 4)
# if defined(FREEBSD) && ((__FreeBSD__ >= 4) || (__FreeBSD_kernel__ >= 4))
# define SUNOS5SIGS
# endif
@@ -2293,7 +2307,7 @@
# define CACHE_LINE_SIZE 32 /* Wild guess */
# endif
# ifdef LINUX
# if defined(LINUX) || defined(__GLIBC__)
# define REGISTER_LIBRARIES_EARLY
/* We sometimes use dl_iterate_phdr, which may acquire an internal */
/* lock. This isn't safe after the world has stopped. So we must */
@@ -2374,7 +2388,7 @@
#if defined(SPARC)
# define CAN_SAVE_CALL_ARGS
#endif
#if (defined(I386) || defined(X86_64)) && defined(LINUX)
#if (defined(I386) || defined(X86_64)) && (defined(LINUX) || defined(__GLIBC__))
/* SAVE_CALL_CHAIN is supported if the code is compiled to save */
/* frame pointers by default, i.e. no -fomit-frame-pointer flag. */
# define CAN_SAVE_CALL_ARGS
+7
View File
@@ -375,8 +375,15 @@ ptr_t GC_approx_sp()
/* doing something wrong. */
# ifdef _MSC_VER
# pragma warning(disable:4172)
# endif
# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wreturn-local-addr"
# endif
return((ptr_t)(&dummy));
# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408)
# pragma GCC diagnostic pop
# endif
# ifdef _MSC_VER
# pragma warning(default:4172)
# endif
+11
View File
@@ -1216,6 +1216,17 @@ is used.
Performs a check to make sure that no references are left to an
unloaded AppDomain.
.TP
\fBclear-at-tlab-creation\fR
Clears the nursery incrementally when the thread local allocation
buffers (TLAB) are created. The default setting clears the whole
nursery at GC time.
.TP
\fBdebug-clear-at-tlab-creation\fR
Clears the nursery incrementally when the thread local allocation
buffers (TLAB) are created, but at GC time fills it with the byte
`0xff`, which should result in a crash more quickly if
`clear-at-tlab-creation` doesn't work properly.
.TP
\fBclear-at-gc\fR
This clears the nursery at GC time instead of doing it when the thread
local allocation buffer (TLAB) is created. The default is to clear
+21
View File
@@ -211,6 +211,15 @@ The following commands are available:
.IP \[bu] 2
\f[I]heapshot\f[]: perform a heapshot as soon as possible
.RE
.IP \[bu] 2
\f[I]counters\f[]: sample counters values every 1 second. This allow
a really lightweight way to have insight in some of the runtime key
metrics. Counters displayed in non verbose mode are : Methods from AOT,
Methods JITted using mono JIT, Methods JITted using LLVM, Total time
spent JITting (sec), User Time, System Time, Total Time, Working Set,
Private Bytes, Virtual Bytes, Page Faults and CPU Load Average (1min,
5min and 15min).
.RE
.SS Analyzing the profile data
.PP
Currently there is a command line program (\f[I]mprof-report\f[])
@@ -284,6 +293,16 @@ where \f[I]MODE\f[] can be:
.IP \[bu] 2
\f[I]bytes\f[]: the total number of bytes used by objects of the
given type
.PP
To change the sort order of counters, use the option:
.PP
\f[B]--counters-sort=MODE\f[]
.PP
where \f[I]MODE\f[] can be:
.IP \[bu] 2
\f[I]time\f[]: sort values by time then category
.IP \[bu] 2
\f[I]category\f[]: sort values by category then time
.SS Selecting what data to report
.PP
The profiler by default collects data about many runtime subsystems
@@ -319,6 +338,8 @@ version
\f[I]thread\f[]: thread information
.IP \[bu] 2
\f[I]heapshot\f[]: live heap usage at heap shots
.IP \[bu] 2
\f[I]counters\f[]: counters samples
.PP
It is possible to limit some of the data displayed to a timeframe
of the program execution with the option:
+1 -2
View File
@@ -24,7 +24,6 @@ centum_tests := \
class/System.XML \
class/Commons.Xml.Relaxng \
class/Cscompmgd \
class/Microsoft.JScript \
class/Mono.Posix \
class/Mono.Security \
class/System.Design \
@@ -83,7 +82,7 @@ all-local $(STD_TARGETS:=-local):
@:
dir-check:
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then make -C ../runtime; fi
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then $(MAKE) -C ../runtime; fi
# fun specialty targets
+1 -1
View File
@@ -65,7 +65,7 @@ do-profile-check: $(depsdir)/.stamp
$(MAKE) -s do-profile-check-monolite ; \
else \
echo "*** The compiler '$(BOOTSTRAP_MCS)' doesn't appear to be usable." 1>&2; \
echo "*** You need Mono version 2.4 or better installed to build MCS" 1>&2 ; \
echo "*** You need Mono version 2.10 or better installed to build MCS" 1>&2 ; \
echo "*** Check mono README for information on how to bootstrap a Mono installation." 1>&2 ; \
exit 1; fi; fi
+3
View File
@@ -17,3 +17,6 @@ FRAMEWORK_VERSION = 4.0
XBUILD_VERSION = 4.0
LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
# Ignore tests on net_4_0 as the 4.0 IL code is never used for running (just for metadata), so it doesn't make sense to execute tests there
NO_TEST = yes
@@ -1,70 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug_Java</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{75D99998-A9C1-4B89-AD47-DA830E461DED}</ProjectGuid>
<ProjectTypeGuids>{F6B19D50-1E2E-4e87-ADFB-10393B439DE0};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Accessibility</AssemblyName>
<JDKName>1.6</JDKName>
<GHProjectType>1</GHProjectType>
<Version>2.0</Version>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AdditionalClassPath>
</AdditionalClassPath>
<RootNamespace>Accessibility</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Java20|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Java20\</OutputPath>
<DefineConstants>TRACE;DEBUG;JAVA;NET_1_1;NET_2_0;TARGET_JVM</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<BaseAddress>285212672</BaseAddress>
<SkipValidation>false</SkipValidation>
<KeepIntermediate>false</KeepIntermediate>
<TargetPlatform>0</TargetPlatform>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Java20|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release_Java20\</OutputPath>
<DefineConstants>TRACE;JAVA;NET_1_1;NET_2_0;TARGET_JVM</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<BaseAddress>285212672</BaseAddress>
<SkipValidation>false</SkipValidation>
<KeepIntermediate>false</KeepIntermediate>
<TargetPlatform>0</TargetPlatform>
</PropertyGroup>
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs.in">
<Link>Consts.cs.in</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.csharp.targets" />
<Import Project="$(VMW_HOME)\bin\Mainsoft.Common.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ProjectExtensions>
<VisualStudio>
<UserProperties REFS-JarPath-system="" REFS-RefInfo-system="repository:vmw:framework:2.0" REFS-JarPath-system-data="" REFS-RefInfo-system-data="repository:vmw:framework:2.0" REFS-JarPath-system-xml="" REFS-RefInfo-system-xml="repository:vmw:framework:2.0" REFS-JarPath-rt="" REFS-RefInfo-rt="repository:jre:sun:1.6.0" />
</VisualStudio>
</ProjectExtensions>
</Project>
@@ -55,10 +55,8 @@ using System.Runtime.InteropServices;
[assembly: Guid ("1ea4dbf0-3c3b-11cf-810c-00aa00389b71")]
[assembly: AllowPartiallyTrustedCallers]
#if !TARGET_JVM
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../msfinal.pub")]
#endif
[assembly: ImportedFromTypeLib ("Accessibility")]
+2 -1
View File
@@ -8,7 +8,7 @@ monotouch_SUBDIRS = System.Collections.Concurrent System.Collections System.Comp
System.Reflection.Extensions System.Reflection.Primitives System.Reflection System.Resources.ResourceManager System.Runtime.Extensions \
System.Runtime.InteropServices System.Runtime.InteropServices.WindowsRuntime System.Runtime.Numerics System.Runtime.Serialization.Json \
System.Runtime.Serialization.Primitives System.Runtime.Serialization.Xml System.Runtime System.Security.Principal System.ServiceModel.Http \
System.ServiceModel.Primitives System.Text.Encoding.Extensions System.Text.Encoding System.Text.RegularExpressions System.Threading.Tasks.Parallel \
System.ServiceModel.Primitives System.ServiceModel.Security System.Text.Encoding.Extensions System.Text.Encoding System.Text.RegularExpressions System.Threading.Tasks.Parallel \
System.Threading.Tasks System.Threading.Timer System.Threading System.Xml.ReaderWriter System.Xml.XDocument System.Xml.XmlSerializer
mobile_static_SUBDIRS = $(monotouch_SUBDIRS)
@@ -45,6 +45,7 @@ include $(MCS_BUILD_DIR)/rules.make
dist-local: dist-default
SUBDIRS = $(net_4_5_SUBDIRS)
doc-update-local:
@echo "not doing docs"
@@ -40,6 +40,8 @@
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.COMException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.ComMemberType))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.ComSourceInterfacesAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.ComTypes.IStream))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.ComTypes.STATSTG))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.CriticalHandle))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.CurrencyWrapper))]
//[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.CustomQueryInterfaceMode))]
@@ -76,4 +78,3 @@
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.UnmanagedType))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.VarEnum))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Runtime.InteropServices.VariantWrapper))]
@@ -1,10 +1,5 @@
//
// MonoTaskScheduler.cs
//
// Author:
// Jérémie "Garuma" Laval <[email protected]>
//
// Copyright (c) 2011 Jérémie "Garuma" Laval
// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@@ -23,20 +18,24 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if NET_4_0
//
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle ("System.ServiceModel.Security.dll")]
[assembly: AssemblyDescription ("System.ServiceModel.Security.dll")]
[assembly: AssemblyDefaultAlias ("System.ServiceModel.Security.dll")]
[assembly: AssemblyCompany ("Xamarin, Inc.")]
[assembly: AssemblyProduct ("Mono Common Language Infrastructure")]
[assembly: AssemblyCopyright ("Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)")]
[assembly: AssemblyVersion ("4.0.0.0")]
[assembly: AssemblyInformationalVersion ("4.0.0.0")]
[assembly: AssemblyFileVersion ("4.0.0.0")]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../../msfinal.pub")]
[assembly: ReferenceAssembly]
namespace Mono.Threading.Tasks
{
public interface IMonoTaskScheduler
{
void MonoParticipateUntil (Task task);
bool MonoParticipateUntil (Task task, ManualResetEventSlim predicateEvt, int millisecondsTimeout);
}
}
#endif
@@ -0,0 +1,22 @@
MCS_BUILD_DIR = ../../../build
thisdir = class/Facades/System.ServiceModel.Security
SUBDIRS =
include $(MCS_BUILD_DIR)/rules.make
LIBRARY_SUBDIR = Facades
LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)/Facades
LIBRARY = System.ServiceModel.Security.dll
KEY_FILE = ../../msfinal.pub
SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699
LIB_MCS_FLAGS = $(SIGN_FLAGS) /r:mscorlib /r:System.ServiceModel
PLATFORM_DEBUG_FLAGS =
NO_TEST = yes
include $(MCS_BUILD_DIR)/library.make
@@ -0,0 +1,3 @@
TypeForwarders.cs
AssemblyInfo.cs
@@ -0,0 +1,41 @@
//
// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Channels.LocalClientSecuritySettings))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Channels.SecurityBindingElement))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Channels.SecurityHeaderLayout))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Channels.TransportSecurityBindingElement))]
#if !MOBILE
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.DnsEndpointIdentity))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.MessageSecurityVersion))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.BasicSecurityProfileVersion))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.SecureConversationVersion))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.SecurityPolicyVersion))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.SecurityVersion))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.Tokens.SecureConversationSecurityTokenParameters))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.Tokens.SecurityTokenParameters))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.Tokens.SupportingTokenParameters))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.Tokens.UserNameSecurityTokenParameters))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.Security.TrustVersion))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.SpnEndpointIdentity))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.ServiceModel.UpnEndpointIdentity))]
#endif
-32
View File
@@ -1,32 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<CodePage>65001</CodePage>
<NoWarn>414</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<Reference Include="I18N">
<HintPath>..\lib\net_2_0\I18N.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="big5.table"/>
<EmbeddedResource Include="gb2312.table"/>
<EmbeddedResource Include="jis.table"/>
<EmbeddedResource Include="ks.table"/>
<EmbeddedResource Include="gb18030.table"/>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
-20
View File
@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<CodePage>65001</CodePage>
<NoWarn>414</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<CodePage>65001</CodePage>
<NoWarn>414</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<Reference Include="I18N">
<HintPath>..\lib\net_2_0\I18N.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
-25
View File
@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<CodePage>65001</CodePage>
<NoWarn>414</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<Reference Include="I18N">
<HintPath>..\lib\net_2_0\I18N.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
-25
View File
@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<CodePage>65001</CodePage>
<NoWarn>414</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<Reference Include="I18N">
<HintPath>..\lib\net_2_0\I18N.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
-25
View File
@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<CodePage>65001</CodePage>
<NoWarn>414</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<Reference Include="I18N">
<HintPath>..\lib\net_2_0\I18N.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
+7 -20
View File
@@ -16,16 +16,7 @@ build_SUBDIRS := \
Mono.Posix \
System.Core
net_1_1_java_SUBDIRS = \
System.Xml \
System.Data \
System.Drawing \
Novell.Directory.Ldap \
System.DirectoryServices \
System.Runtime.Serialization.Formatters.Soap \
System.Runtime.Remoting
common_dirs := \
net_2_0_dirs := \
corlib \
System \
System.XML \
@@ -78,14 +69,11 @@ common_dirs := \
Mono.Cecil \
Mono.Cecil.Mdb \
Mono.Debugger.Soft \
SystemWebTestShim
net_2_0_dirs := \
SystemWebTestShim \
System.Xml.Linq \
System.Runtime.Serialization \
System.Data.DataSetExtensions \
System.Data.Linq \
System.Web \
System.Web.Abstractions \
System.Web.Routing \
System.IdentityModel \
@@ -179,7 +167,6 @@ net_4_0_dirs := \
System.Xaml \
WindowsBase \
System.ServiceModel.Activation \
System.ServiceModel \
System.ServiceModel.Routing \
System.ServiceModel.Discovery \
System.Runtime.Caching \
@@ -241,7 +228,7 @@ xbuild_4_0_dirs := \
$(xbuild_2_0_dirs) \
Microsoft.Build
net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) $(xbuild_2_0_dirs) aot-compiler
net_2_0_SUBDIRS := $(net_2_0_dirs) $(net_2_0_only_dirs) $(xbuild_2_0_dirs) aot-compiler
monodroid_SUBDIRS := $(mobile_dirs) $(monodroid_dirs)
monotouch_SUBDIRS := $(mobile_dirs) $(monotouch_dirs)
monotouch_runtime_SUBDIRS := $(monotouch_runtime_dirs)
@@ -249,13 +236,13 @@ mobile_static_SUBDIRS := $(mobile_dirs)
mobile_SUBDIRS := $(mobile_dirs)
xammac_SUBDIRS := $(mobile_dirs) $(xammac_dirs)
net_3_5_SUBDIRS := $(xbuild_2_0_dirs)
net_4_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs) $(xbuild_4_0_dirs)
net_4_5_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_5_dirs) $(xbuild_4_0_dirs) aot-compiler
net_4_0_SUBDIRS := $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs) $(xbuild_4_0_dirs)
net_4_5_SUBDIRS := $(net_2_0_dirs) $(net_4_0_dirs) $(net_4_5_dirs) $(xbuild_4_0_dirs) aot-compiler
xbuild_12_SUBDIRS := $(xbuild_4_0_dirs)
include ../build/rules.make
SUBDIRS = $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) $(mobile_dirs) $(monotouch_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs) $(net_4_5_dirs)
SUBDIRS = $(net_2_0_dirs) $(net_2_0_only_dirs) $(mobile_dirs) $(monotouch_dirs) $(net_4_0_dirs) $(net_4_0_only_dirs) $(net_4_5_dirs)
DIST_ONLY_SUBDIRS = dlr aot-compiler $(xbuild_4_0_dirs)
@@ -285,7 +272,7 @@ all-local $(STD_TARGETS:=-local):
@:
# Files needed to bootstrap C# compiler
basic_files = basic.exe mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll
basic_files = basic.exe mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll
monolite_files = $(basic_files:%=lib/monolite/%)
lib/monolite:
@@ -0,0 +1,3 @@
DummyAssembly.dll
DummyAssembly.mdb
test_file
+10 -2
View File
@@ -93,11 +93,14 @@ TEST_DISTFILES = \
Test/resources/32x32.ico \
Test/System.Resources/compat_1_1.resx \
Test/System.Resources/compat_2_0.resx \
Test/System.Windows.Forms/bitmaps/a.png
Test/System.Windows.Forms/bitmaps/a.png \
Test/DummyAssembly/AnotherSerializable.cs \
Test/DummyAssembly/Convertable.cs \
Test/DummyAssembly/Properties/AssemblyInfo.cs \
EXTRA_DISTFILES = \
README System.Windows.Forms.dll.resources \
$(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) build-csproj build-csproj2k5 \
$(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) \
$(IMAGES_RESOURCES) \
$(TEST_DISTFILES)
@@ -106,6 +109,11 @@ TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll /r:Accessibility.dll -
-resource:Test/resources/32x32.ico,32x32.ico \
-nowarn:618,612
DummyAssembly.dll:
$(CSCOMPILE) /target:library /out:$@ Test/DummyAssembly/AnotherSerializable.cs Test/DummyAssembly/Convertable.cs Test/DummyAssembly/Properties/AssemblyInfo.cs
test-local: DummyAssembly.dll
include ../../build/library.make
TEST_HARNESS_EXCLUDES = -exclude=Interactive,NotWorking,ValueAdd,CAS,InetAccess
File diff suppressed because it is too large. Load diff
-35
View File
@@ -1,35 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual C# Express 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SWF", "SWF.csproj", "{5E6430B2-6B9F-4E76-802E-20207EF80391}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testbed", "..\testbed\testbed.csproj", "{75D9EBE5-A54C-4FFF-B536-066577092A78}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug 2.0|Any CPU = Debug 2.0|Any CPU
Debug|Any CPU = Debug|Any CPU
Release 2.0|Any CPU = Release 2.0|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug 2.0|Any CPU.ActiveCfg = Debug 2.0|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug 2.0|Any CPU.Build.0 = Debug 2.0|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release 2.0|Any CPU.ActiveCfg = Release 2.0|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release 2.0|Any CPU.Build.0 = Release 2.0|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release|Any CPU.Build.0 = Release|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug 2.0|Any CPU.ActiveCfg = Debug|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug 2.0|Any CPU.Build.0 = Debug|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Debug|Any CPU.Build.0 = Debug|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Release 2.0|Any CPU.ActiveCfg = Release|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Release 2.0|Any CPU.Build.0 = Release|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Release|Any CPU.ActiveCfg = Release|Any CPU
{75D9EBE5-A54C-4FFF-B536-066577092A78}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -1,402 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5E6430B2-6B9F-4E76-802E-20207EF80391}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>System.Windows.Forms_test</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>
</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>.\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1,NET_2_0,__MonoCS__,DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms_test_net_2_0</AssemblyName>
<RootNamespace>
</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug 2.0|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_2_0 __MonoCS__ DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms_test</AssemblyName>
<RootNamespace>
</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 ONLY_1_1 __MonoCS__</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms_test</AssemblyName>
<RootNamespace>
</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 2.0|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_2_0 __MonoCS__</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms_test</AssemblyName>
<RootNamespace>
</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<OutputPath>.\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1,NET_2_0,__MonoCS__,DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<AssemblyName>System.Windows.Forms_test_net_2_0</AssemblyName>
<OutputType>Library</OutputType>
<RootNamespace>
</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\winforms-unittests\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Accessibility">
<Name>Accessibility</Name>
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.Xml</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Test\System.Windows.Forms\ApplicationTest.cs" />
<Compile Include="Test\System.Windows.Forms\AutoCompleteStringCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\ApplicationContextTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingsCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingContextTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingManagerBaseTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingMemberInfoTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingNavigatorTest.cs" />
<Compile Include="Test\System.Windows.Forms\BindingSourceTest.cs" />
<Compile Include="Test\System.Windows.Forms\ButtonBaseTest.cs" />
<Compile Include="Test\System.Windows.Forms\ButtonTest.cs" />
<Compile Include="Test\System.Windows.Forms\CheckBoxEventTest.cs" />
<Compile Include="Test\System.Windows.Forms\CheckBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\CheckedListBoxEventTest.cs" />
<Compile Include="Test\System.Windows.Forms\CheckedListBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\ColumnClickEventArgsTest.cs" />
<Compile Include="Test\System.Windows.Forms\ColumnHeaderTest.cs" />
<Compile Include="Test\System.Windows.Forms\ColumnStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\ComboBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\Common.cs" />
<Compile Include="Test\System.Windows.Forms\CommonDialogsTest.cs" />
<Compile Include="Test\System.Windows.Forms\ContainerControlTest.cs" />
<Compile Include="Test\System.Windows.Forms\ContextMenuTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlBindingsCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlBindingsConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlEventTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlHandleTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlLogger.cs" />
<Compile Include="Test\System.Windows.Forms\ControlLogger2.cs" />
<Compile Include="Test\System.Windows.Forms\ControlTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlPaintTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlPropertyEventsTest.cs" />
<Compile Include="Test\System.Windows.Forms\ControlStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\CursorTest.cs" />
<Compile Include="Test\System.Windows.Forms\CurrencyManagerTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataBindingTests.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridColumnStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridTableStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridTextBoxColumnTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridTextBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewAdvancedBorderStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewBandTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewButtonCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewCellCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewCellStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewCheckBoxCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewClipboardHeaderTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewClipboardTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewColumnCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewColumnHeaderTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewColumnTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewComboBoxCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewCommon.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewDataBindingTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewElementTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewLinkCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewImageCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewRowCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewRowHeaderTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewRowTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewTextBoxCellTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataGridViewTextBoxColumnTest.cs" />
<Compile Include="Test\System.Windows.Forms\DataObjectTest.cs" />
<Compile Include="Test\System.Windows.Forms\DateTimePickerTest.cs" />
<Compile Include="Test\System.Windows.Forms\DefaultLayoutTest.cs" />
<Compile Include="Test\System.Windows.Forms\DragEventArgsTest.cs" />
<Compile Include="Test\System.Windows.Forms\ErrorProviderTest.cs" />
<Compile Include="Test\System.Windows.Forms\FlowPanelTests.cs" />
<Compile Include="Test\System.Windows.Forms\FocusTest.cs" />
<Compile Include="Test\System.Windows.Forms\FolderBrowserDialogTest.cs" />
<Compile Include="Test\System.Windows.Forms\FormEventTest.cs" />
<Compile Include="Test\System.Windows.Forms\FormHandleTest.cs" />
<Compile Include="Test\System.Windows.Forms\FormTest.cs" />
<Compile Include="Test\System.Windows.Forms\EventArgsTest.cs" />
<Compile Include="Test\System.Windows.Forms\EventLogger.cs" />
<Compile Include="Test\System.Windows.Forms\GridColumnStylesCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\GridTableStylesCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\GroupBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\HelpProviderTest.cs" />
<Compile Include="Test\System.Windows.Forms\HScrollPropertiesTest.cs" />
<Compile Include="Test\System.Windows.Forms\ImageKeyConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\ImageListStreamerTest.cs" />
<Compile Include="Test\System.Windows.Forms\ImageListTest.cs" />
<Compile Include="Test\System.Windows.Forms\InputLanguageTest.cs" />
<Compile Include="Test\System.Windows.Forms\KeyEventArgsTest.cs" />
<Compile Include="Test\System.Windows.Forms\KeysConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\LabelTest.cs" />
<Compile Include="Test\System.Windows.Forms\LinkAreaTest.cs" />
<Compile Include="Test\System.Windows.Forms\LinkConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\LinkLabelTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListControlTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListBindingHelperTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListBoxEventTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListViewCollectionsTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListViewEventTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListViewTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListViewGroupTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListViewGroupCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\ListViewItemTest.cs" />
<Compile Include="Test\System.Windows.Forms\MaskedTextBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\MdiFormHandleTest.cs" />
<Compile Include="Test\System.Windows.Forms\MdiFormTest.cs" />
<Compile Include="Test\System.Windows.Forms\MessageTest.cs" />
<Compile Include="Test\System.Windows.Forms\MenuStripTest.cs" />
<Compile Include="Test\System.Windows.Forms\MenuTest.cs" />
<Compile Include="Test\System.Windows.Forms\MenuItemTest.cs" />
<Compile Include="Test\System.Windows.Forms\MonthCalendarTest.cs" />
<Compile Include="Test\System.Windows.Forms\NotifyIconTest.cs" />
<Compile Include="Test\System.Windows.Forms\NumericUpDownTest.cs" />
<Compile Include="Test\System.Windows.Forms\PaddingTest.cs" />
<Compile Include="Test\System.Windows.Forms\PaddingConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\PaintEventArgsTest.cs" />
<Compile Include="Test\System.Windows.Forms\PanelTest.cs" />
<Compile Include="Test\System.Windows.Forms\PictureBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\PrintDialogTest.cs" />
<Compile Include="Test\System.Windows.Forms\ProgressBarTest.cs" />
<Compile Include="Test\System.Windows.Forms\PropertyGridTest.cs" />
<Compile Include="Test\System.Windows.Forms\PropertyManagerTest.cs" />
<Compile Include="Test\System.Windows.Forms\RadioButtonTest.cs" />
<Compile Include="Test\System.Windows.Forms\RowStyleTest.cs" />
<Compile Include="Test\System.Windows.Forms\RichTextBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\SaveFileDialogTest.cs" />
<Compile Include="Test\System.Windows.Forms\ScrollableControlTest.cs" />
<Compile Include="Test\System.Windows.Forms\ScrollBarTest.cs" />
<Compile Include="Test\System.Windows.Forms\SelectionRangeTest.cs" />
<Compile Include="Test\System.Windows.Forms\SendKeysTest.cs" />
<Compile Include="Test\System.Windows.Forms\SplitterTest.cs" />
<Compile Include="Test\System.Windows.Forms\SplitContainerTests.cs" />
<Compile Include="Test\System.Windows.Forms\StatusBarPanelTest.cs" />
<Compile Include="Test\System.Windows.Forms\StatusBarTest.cs" />
<Compile Include="Test\System.Windows.Forms\StatusStripTest.cs" />
<Compile Include="Test\System.Windows.Forms\SystemInformationTest.cs" />
<Compile Include="Test\System.Windows.Forms\TabControlTest.cs" />
<Compile Include="Test\System.Windows.Forms\TableLayoutTest.cs" />
<Compile Include="Test\System.Windows.Forms\TestHelper.cs" />
<Compile Include="Test\System.Windows.Forms\TestImageIndexConverter.cs" />
<Compile Include="Test\System.Windows.Forms\TextBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\TimerTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolBarTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolBarButtonTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripButtonTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripComboBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripContainerTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripContentPanelTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripControlHostTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripDropDownTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripItemCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripItemTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripLabelTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripManagerTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripMenuItemTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripOverflowButtonTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripOverflowTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripPanelTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripProgressBarTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripSeparatorTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripStatusLabelTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolStripTextBoxTest.cs" />
<Compile Include="Test\System.Windows.Forms\ToolTipTest.cs" />
<Compile Include="Test\System.Windows.Forms\TrackBarTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeNodeCollectionTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeNodeTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeViewHitTestInfoTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeViewImageKeyConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeViewImageIndexConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeViewTest.cs" />
<Compile Include="Test\System.Windows.Forms\TreeViewEventsTest.cs" />
<Compile Include="Test\System.Windows.Forms\UpDownTest.cs" />
<Compile Include="Test\System.Windows.Forms\UserControlTest.cs" />
<Compile Include="Test\System.Windows.Forms\VScrollPropertiesTest.cs" />
<Compile Include="Test\System.Windows.Forms.Layout\TableLayoutSettingsTypeConverterTest.cs" />
<Compile Include="Test\System.Windows.Forms.Layout\ArrangedElementCollectionTest.cs" />
<Compile Include="Test\System.Resources\CompatTest.cs" />
<Compile Include="Test\System.Resources\CultureTest.cs" />
<Compile Include="Test\System.Resources\ResXDataNodeTest.cs" />
<Compile Include="Test\System.Resources\ResXFileRefTest.cs" />
<Compile Include="Test\System.Resources\ResXResourceReaderTest.cs" />
<Compile Include="Test\System.Resources\WriterTest.cs" />
<Compile Include="..\..\build\common\Consts.cs">
<Link>Consts.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="Test\System.Windows.Forms\ChangeLog" />
</ItemGroup>
<ItemGroup>
<None Include="Test\System.Resources\ChangeLog" />
</ItemGroup>
<ItemGroup>
<None Include="Test\System.Windows.Forms.Layout\ChangeLog" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
<ProjectGuid>{5E6430B2-6B9F-4E76-802E-20207EF80391}</ProjectGuid>
<RootNamespace>
</RootNamespace>
</PropertyGroup>
</Project>
File diff suppressed because it is too large. Load diff
@@ -1,35 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SWF2k5", "SWF2k5.csproj", "{5E6430B2-6B9F-4E76-802E-20207EF80391}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mono.WebBrowser2K5", "..\Mono.WebBrowser\Mono.WebBrowser2K5.csproj", "{5E6C996A-007F-40CE-B244-006EFCFB77D2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug 1.1|Any CPU = Debug 1.1|Any CPU
Release|Any CPU = Release|Any CPU
Release 1.1|Any CPU = Release 1.1|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug 1.1|Any CPU.ActiveCfg = Debug 1.1|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Debug 1.1|Any CPU.Build.0 = Debug 1.1|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release|Any CPU.Build.0 = Release|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release 1.1|Any CPU.ActiveCfg = Release 1.1|Any CPU
{5E6430B2-6B9F-4E76-802E-20207EF80391}.Release 1.1|Any CPU.Build.0 = Release 1.1|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Debug 1.1|Any CPU.ActiveCfg = Debug 1.1|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Debug 1.1|Any CPU.Build.0 = Debug 1.1|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Release|Any CPU.Build.0 = Release|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Release 1.1|Any CPU.ActiveCfg = Release 1.1|Any CPU
{5E6C996A-007F-40CE-B244-006EFCFB77D2}.Release 1.1|Any CPU.Build.0 = Release 1.1|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -104,7 +104,7 @@ namespace System.Windows.Forms.X11Internal {
{
if (display == IntPtr.Zero) {
throw new ArgumentNullException("Display",
"Could not open display (X-Server required. Check you DISPLAY environment variable)");
"Could not open display (X-Server required. Check your DISPLAY environment variable)");
}
this.display = display;
@@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Default.targets"/>
<PropertyGroup>
<OutputType>Library</OutputType>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<NoConfig>true</NoConfig>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CodePage>65001</CodePage>
<NoWarn>618,612,809</NoWarn>
<UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<DefineConstants>NET_1_1,NET_2_0</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'net_2_0|AnyCPU' ">
<Reference Include="System"/>
<Reference Include="System.Xml"/>
<Reference Include="System.Drawing"/>
<Reference Include="Accessibility"/>
<Reference Include="System.Data"/>
<Reference Include="System.Configuration"/>
<Reference Include="Mono.Posix">
<HintPath>..\lib\net_2_0\Mono.Posix.dll</HintPath>
</Reference>
<Reference Include="Mono.WebBrowser">
<HintPath>..\lib\net_2_0\Mono.WebBrowser.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\..\..\build\msbuild\Mono.Common.targets"/>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="BeforeBuild" DependsOnTargets="SetupProject">
</Target>
</Project>
@@ -207,6 +207,7 @@ namespace System.Windows.Forms {
private void OnParentCurrencyManagerChanged (object sender, EventArgs args)
{
// Essentially handles chained data sources (e.g. chained BindingSource)
ResetDataMemberIfInvalid ();
ResetList ();
}
@@ -349,6 +350,7 @@ namespace System.Windows.Forms {
DisconnectDataSourceEvents (datasource);
datasource = value;
ResetDataMemberIfInvalid ();
ConnectDataSourceEvents (datasource);
ResetList ();
@@ -454,6 +456,19 @@ namespace System.Windows.Forms {
}
}
void ResetDataMemberIfInvalid ()
{
if (datamember == String.Empty)
return;
// if dataMember doesn't refer to a valid property of dataSource, we need to reset it
var property = ListBindingHelper.GetListItemProperties (datasource).Find (datamember, true);
if (property == null) {
datamember = String.Empty;
OnDataMemberChanged (EventArgs.Empty);
}
}
// NOTE: Probably the parsing can be improved
void ProcessSortString (string sort)
{
@@ -390,7 +390,8 @@ namespace System.Windows.Forms {
else if (e.NewIndex <= listposition) {
/* the deleted row was either the current one, or one earlier in the list.
Update the index and emit PositionChanged, CurrentChanged, and ItemChanged. */
ChangeRecordState (listposition+1,
// FIXME: this looks wrong, shouldn't it be (listposition - 1) instead of e.NewIndex ?
ChangeRecordState (e.NewIndex,
false, false, e.NewIndex != listposition, false);
}
else {
@@ -412,7 +413,7 @@ namespace System.Windows.Forms {
}
else {
if (e.NewIndex <= listposition) {
ChangeRecordState (e.NewIndex,
ChangeRecordState (listposition + 1,
false, false, false, false);
OnItemChanged (new ItemChangedEventArgs (-1));
OnListChanged (e);
@@ -150,7 +150,7 @@ namespace System.Windows.Forms {
}
*/
static byte [] header = new byte []{ 77, 83, 70, 116, 73, 76, 3, 0 };
static byte [] header = new byte []{ 77, 83, 70, 116, 73, 76, 1, 1 };
public void GetObjectData (SerializationInfo si, StreamingContext context)
{
MemoryStream stream = new MemoryStream ();
@@ -169,7 +169,7 @@ namespace System.Windows.Forms {
writer.Write ((ushort) (images [0].Width));
writer.Write ((ushort) (images [0].Height));
writer.Write (0xFFFFFFFF); //BackColor.ToArgb ()); //FIXME: should set the right one here.
writer.Write ((ushort) 0x1009);
writer.Write ((ushort) 0x21);
for (int i = 0; i < 4; i++)
writer.Write ((short) -1);
@@ -3833,8 +3833,7 @@ namespace System.Windows.Forms
{
Size item_size = ItemSize;
for (int i = 0; i < items.Count; i++) {
Point item_location = GetItemLocation (i);
Rectangle item_rect = new Rectangle (item_location, item_size);
Rectangle item_rect = items [i].Bounds;
if (item_rect.Contains (x, y))
return items [i];
}
@@ -109,7 +109,7 @@ namespace System.Windows.Forms {
hexadecimal = false;
increment = 1M;
maximum = 100M;
minimum = 0.0M;
minimum = 0M;
thousands_separator = false;
Text = "0";
@@ -552,7 +552,7 @@ namespace System.Windows.Forms {
ErrorHandler = new XErrorHandler(HandleError);
XSetErrorHandler(ErrorHandler);
} else {
throw new ArgumentNullException("Display", "Could not open display (X-Server required. Check you DISPLAY environment variable)");
throw new ArgumentNullException("Display", "Could not open display (X-Server required. Check your DISPLAY environment variable)");
}
}
#endregion // Internal Methods
@@ -708,7 +708,7 @@ namespace System.Windows.Forms {
ErrorHandler = new XErrorHandler (HandleError);
XSetErrorHandler (ErrorHandler);
} else {
throw new ArgumentNullException ("Display", "Could not open display (X-Server required. Check you DISPLAY environment variable)");
throw new ArgumentNullException ("Display", "Could not open display (X-Server required. Check your DISPLAY environment variable)");
}
}
#endregion // Internal Methods
@@ -0,0 +1,88 @@
//
// AnotherSerializable.cs : Serializable Class used to test types from other
// assemblies for resources tests
//
// Author:
// Gary Barnett ([email protected])
//
// Copyright (C) Gary Barnett (2012)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.Serialization;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace DummyAssembly {
[SerializableAttribute]
public class AnotherSerializable : ISerializable {
public string name;
public string value;
public AnotherSerializable ()
{
}
public AnotherSerializable (string name, string value)
{
this.name = name;
this.value = value;
}
public AnotherSerializable (SerializationInfo info, StreamingContext ctxt)
{
name = (string) info.GetValue ("sername", typeof (string));
value = (String) info.GetValue ("servalue", typeof (string));
}
public AnotherSerializable (Stream stream)
{
BinaryFormatter bFormatter = new BinaryFormatter ();
AnotherSerializable deser = (AnotherSerializable) bFormatter.Deserialize (stream);
stream.Close ();
name = deser.name;
value = deser.value;
}
public void GetObjectData (SerializationInfo info, StreamingContext ctxt)
{
info.AddValue ("sername", name);
info.AddValue ("servalue", value);
}
public override string ToString ()
{
return String.Format ("name={0};value={1}", this.name, this.value);
}
public override bool Equals (object obj)
{
AnotherSerializable o = obj as AnotherSerializable;
if (o == null)
return false;
return this.name.Equals (o.name) && this.value.Equals (o.value);
}
}
}
@@ -0,0 +1,119 @@
//
// Convertable.cs : Class with type converter used to test types from other
// assemblies for resources tests
//
// Author:
// Gary Barnett ([email protected])
//
// Copyright (C) Gary Barnett (2012)
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using System.Runtime.Serialization;
using System.ComponentModel;
namespace DummyAssembly {
[SerializableAttribute]
[TypeConverter (typeof (ConvertableConverter))]
public class Convertable {
protected string name;
protected string value;
public Convertable ()
{
}
public Convertable (string name, string value)
{
this.name = name;
this.value = value;
}
public void GetObjectData (SerializationInfo info, StreamingContext ctxt)
{
info.AddValue ("sername", name);
info.AddValue ("servalue", value);
}
public override string ToString ()
{
return String.Format ("{0}\t{1}",name, value);
}
public override bool Equals (object obj)
{
Convertable o = obj as Convertable;
if (o == null)
return false;
return this.name.Equals (o.name) && this.value.Equals (o.value);
}
}
class ConvertableConverter : TypeConverter {
public ConvertableConverter ()
{
}
public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
{
return sourceType == typeof (string);
}
public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
{
return destinationType == typeof (string);
}
public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
{
if (value.GetType() != typeof (string))
throw new Exception ("value not string");
string serialised = (string) value;
string [] parts = serialised.Split ('\t');
if (parts.Length != 2)
throw new Exception ("string in incorrect format");
Convertable convertable = new Convertable (parts [0], parts [1]);
return convertable;
}
public override object ConvertTo (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
{
if (destinationType != typeof (String)) {
return base.ConvertTo (context, culture, value, destinationType);
}
return ((Convertable) value).ToString ();
}
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle ("DummyAssembly")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("DummyAssembly")]
[assembly: AssemblyCopyright ("")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible (false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid ("c80e062b-a918-4aa5-b62c-7455ca2c56d5")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion ("1.0.0.0")]
[assembly: AssemblyFileVersion ("1.0.0.0")]
@@ -144,15 +144,14 @@ namespace MonoTests.System.Resources {
[Test]
public void WriteRead1 ()
{
ResXResourceWriter rw = new ResXResourceWriter ("resx.resx");
serializable ser = new serializable ("aaaaa", "bbbbb");
ResXDataNode dn = new ResXDataNode ("test", ser);
dn.Comment = "comment";
rw.AddResource (dn);
rw.Close ();
string resXFile = GetResXFileWithNode (dn, "resx.resx");
bool found = false;
ResXResourceReader rr = new ResXResourceReader ("resx.resx");
ResXResourceReader rr = new ResXResourceReader (resXFile);
rr.UseResXDataNodes = true;
IDictionaryEnumerator en = rr.GetEnumerator ();
while (en.MoveNext ()) {
@@ -224,7 +223,6 @@ namespace MonoTests.System.Resources {
ResXDataNode node = ((DictionaryEntry) en.Current).Value as ResXDataNode;
rr.Close ();
File.Delete ("resx.resx");
Assert.IsNotNull (node,"#A1");
serializable o = node.GetValue ((AssemblyName []) null) as serializable;
@@ -245,7 +243,6 @@ namespace MonoTests.System.Resources {
ResXDataNode node = ((DictionaryEntry) en.Current).Value as ResXDataNode;
rr.Close ();
File.Delete ("resx.resx");
Assert.IsNotNull (node, "#A1");
object o = node.GetValue ((AssemblyName []) null);
@@ -104,6 +104,7 @@ namespace MonoTests.System.Windows.Forms
}
[Test]
[Category ("NotWorking")] // Doesn't work under Xvfb.
public void DataRemainsOnClipboard_Xamarin4959 ()
{
// Compile an app that puts something on the clipboard
@@ -172,6 +172,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
row.Delete ();
Assert.AreEqual (-1, cm.Position);
// Console.WriteLine (event_log);
Assert.AreEqual (
@@ -221,6 +223,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
row.Delete ();
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -273,6 +277,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
row.Delete ();
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
#if WITH_BINDINGS
@@ -323,6 +329,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
row.Delete ();
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -379,6 +387,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
DataRow newrow = dataSet1.Tables[0].NewRow ();
dataSet1.Tables[0].Rows.Add(newrow);
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -434,6 +444,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
newrow = dataSet1.Tables[0].NewRow ();
dataSet1.Tables[0].Rows.Add(newrow);
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
#if WITH_BINDINGS
@@ -489,6 +501,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
newrow = dataSet1.Tables[0].NewRow ();
dataSet1.Tables[0].Rows.InsertAt(newrow, 0);
Assert.AreEqual (2, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -547,6 +561,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
newrow = dataSet1.Tables[0].NewRow ();
dataSet1.Tables[0].Rows.InsertAt(newrow, 1);
Assert.AreEqual (2, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -596,6 +612,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
dataSet1.Tables[0].Columns.Add();
Assert.AreEqual (-1, cm.Position);
Console.WriteLine (event_log);
#if NET_2_0
@@ -635,6 +653,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
dataSet1.Tables[0].Columns.Remove(dataSet1.Tables[0].Columns[1]);
Assert.AreEqual (-1, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual ("0: MetaDataChanged\n", event_log, "2");
@@ -672,6 +692,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
dataSet1.Tables[0].Columns.Remove(dataSet1.Tables[0].Columns[0]);
Assert.AreEqual (-1, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual ("0: MetaDataChanged\n", event_log, "3");
@@ -717,6 +739,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
dataSet1.Tables[0].Columns[0].ColumnName = "new name";
Assert.AreEqual (-1, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual ("0: MetaDataChanged\n", event_log, "3");
@@ -775,6 +799,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
row[column_name] = "hi";
row.EndEdit ();
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -834,6 +860,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
row[column_name] = "hi";
cm.CancelCurrentEdit ();
Assert.AreEqual (0, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual ("0: ItemChanged (index = 0)\n", event_log, "2");
@@ -875,6 +903,8 @@ namespace MonoTests.System.Windows.Forms.DataBinding
DataRowView row = (DataRowView)cm.Current;
row.Delete ();
Assert.AreEqual (-1, cm.Position);
Console.WriteLine (event_log);
Assert.AreEqual (
@@ -642,6 +642,7 @@ namespace MonoTests.System.Windows.Forms
private static int oipt_t1 = 0;
private static int oipt_t2 = 0;
[Test]
[NUnit.Framework.Category ("NotWorking")]
public void OneIdlePerThread () {
Thread t = Thread.CurrentThread;
oipt_t1 = t.ManagedThreadId;
@@ -1,217 +0,0 @@
#!/bin/bash
#
# I got tired of editing the SWF.csproj
# This script will generate it from our System.Windows.Forms.dll.sources
#
#
tr=tr
OutFile=SWF.csproj
Source=System.Windows.Forms.dll.sources
Resource=System.Windows.Forms.dll.resources
SWFhead()
{
cat << EOT
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{5E6430B2-6B9F-4E76-802E-20207EF80391}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "System.Windows.Forms"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Library"
PreBuildEvent = ""
PostBuildEvent = ""
RootNamespace = ""
RunPostBuildEvent = "OnBuildSuccess"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "true"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "NET_1_1 ONLY_1_1"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
<Config
Name = "Debug 2.0"
AllowUnsafeBlocks = "true"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "NET_2_0"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "true"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "NET_1_1 ONLY_1_1"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
<Config
Name = "Release 2.0"
AllowUnsafeBlocks = "true"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "NET_2_0"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
</Settings>
<References>
<Reference
Name = "Accessibility"
AssemblyName = "Accessibility"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Accessibility.dll"
/>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
/>
<Reference
Name = "System.Drawing"
AssemblyName = "System.Drawing"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.XML"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
/>
</References>
</Build>
<Files>
<Include>
EOT
}
SWFfilelist()
{
cat $Source | while read SRC; do
# Don't do AssemblyInfo, it's got signing requests and such that we don't want
if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
SRC=`echo $SRC | $tr '/' '\\\\'`
cat << EOT
<File
RelPath = "$SRC"
SubType = "Code"
BuildAction = "Compile"
/>
EOT
fi
done
}
SWFresourcelist()
{
cat $Resource | while read SRC; do
SRC=`echo $SRC | $tr '/' '\\\\'`
SRC=`echo $SRC | sed 's/-resource://' | awk -F , '{print " RelPath = \"" $1 "\"\n CustomToolNameSpace = \"" $2 "\""}' | fgrep -v \"\"`
cat << EOT
<File
$SRC
BuildAction = "EmbeddedResource"
/>
EOT
done
}
SWFtail()
{
cat << EOT
<File
RelPath = "Consts.cs"
Link = "common/Consts.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "MonoTODOAttribute.cs"
Link = "common/MonoTODOAttribute.cs"
SubType = "Code"
BuildAction = "Compile"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>
EOT
}
SWFhead > $OutFile
SWFfilelist >> $OutFile
SWFresourcelist >> $OutFile
SWFtail >> $OutFile
@@ -1,247 +0,0 @@
#!/bin/bash
#
# This script will generate SWF.cs.target from our System.Windows.Forms.dll.sources
#
#
exec > SWF2k5.csproj
Source=System.Windows.Forms.dll.sources
Resource=System.Windows.Forms.dll.resources
SWFhead()
{
cat <<EOF
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5E6430B2-6B9F-4E76-802E-20207EF80391}</ProjectGuid>
<Configuration Condition=" '\$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '\$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>
</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 NET_2_0 MWF_ON_MSRUNTIME</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>612,618,3021</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 NET_2_0 MWF_ON_MSRUNTIME</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>612,618,3021</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug 1.1|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 ONLY_1_1 MWF_ON_MSRUNTIME</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>612,618,3021</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release 1.1|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 ONLY_1_1 MWF_ON_MSRUNTIME</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>612,618,3021</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<OutputType>Library</OutputType>
<AssemblyName>System.Windows.Forms</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="Accessibility">
<Name>Accessibility</Name>
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.configuration" />
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.Xml</Name>
</Reference>
<Reference Include="Mono.WebBrowser2K5">
<Name>Mono.WebBrowser2K5</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Mono.WebBrowser\Mono.WebBrowser2K5.csproj">
<Project>{5E6C996A-007F-40CE-B244-006EFCFB77D2}</Project>
<Name>Mono.WebBrowser2K5</Name>
</ProjectReference>
</ItemGroup>
EOF
}
SWFtail()
{
cat <<EOF
<ItemGroup>
<None Include="System.Windows.Forms\ChangeLog" />
</ItemGroup>
<ItemGroup>
<None Include="ChangeLog" />
</ItemGroup>
<Import Project="\$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
EOF
}
SWFfilelist()
{
echo " <ItemGroup>"
cat $Source | while read SRC; do
# Don't do AssemblyInfo, it's got signing requests and such that we don't want
if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
SRC=`echo $SRC | sed 's/..\/..\/build\///'`
SRC=`echo $SRC | tr '/' '\\\\'`
cat <<EOF
<Compile Include="$SRC" />
EOF
fi
done
echo " </ItemGroup>"
}
SWFresourcelist()
{
echo " <ItemGroup>"
cat $Resource | while read SRC; do
CUSTOMTOOLNAMESPACE=""
# strip out that -resource:
SRC=`echo $SRC | sed 's/-resource://'`
CUSTOMTOOLNAMESPACE=`echo $SRC | awk -F, '{print $2}'`
INCLUDE=`echo $SRC | awk -F, '{print $1}'`
if test -f $INCLUDE.prebuilt; then
INCLUDE=$INCLUDE.prebuilt
fi
# strip off the path from the name of the resource and the .prebuilt if there is one
LOGICALNAME=`echo $INCLUDE | sed 's/resources\///;s/.prebuilt//'`
# convert all /'s to \\'s
INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'`
echo " <EmbeddedResource Include=\"$INCLUDE\">"
if test "x$CUSTOMTOOLNAMESPACE" != "x"; then
echo " <LogicalName>$CUSTOMTOOLNAMESPACE</LogicalName>"
else
echo " <LogicalName>$LOGICALNAME</LogicalName>"
fi
echo " </EmbeddedResource>"
done
echo " </ItemGroup>"
}
SWFhead
SWFfilelist
SWFresourcelist
SWFtail
@@ -1,267 +0,0 @@
#!/bin/bash
#
# This script will generate SWF2K5-tests.cs.target from our System.Windows.Forms.dll.sources
#
#
exec > SWF2k5-tests.csproj
Source=System.Windows.Forms_test.dll.sources
Resource=System.Windows.Forms.dll.resources
SWFhead()
{
cat <<EOF
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5E6430B2-6B9F-4E76-802E-20207EF80391}</ProjectGuid>
<Configuration Condition=" '\$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '\$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>System.Windows.Forms_test</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>
</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 ONLY_1_1 __MonoCS__ DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Debug 2.0|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_2_0 __MonoCS__ DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 ONLY_1_1 __MonoCS__</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'Release 2.0|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_2_0 __MonoCS__</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '\$(Configuration)|\$(Platform)' == 'net_2_0|AnyCPU' ">
<OutputPath>.\</OutputPath>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>NET_1_1 NET_2_0 __MonoCS__ DEBUG</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>3</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<AssemblyName>System.Windows.Forms_test_net_2_0</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.2.0.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\winforms-unittests\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Accessibility">
<Name>Accessibility</Name>
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.Xml</Name>
</Reference>
</ItemGroup>
EOF
}
SWFtail()
{
cat <<EOF
<ItemGroup>
<None Include="Test\System.Windows.Forms\ChangeLog" />
</ItemGroup>
<ItemGroup>
<None Include="Test\System.Resources\ChangeLog" />
</ItemGroup>
<ItemGroup>
<None Include="Test\System.Windows.Forms.Layout\ChangeLog" />
</ItemGroup>
<Import Project="\$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>
EOF
}
SWFfilelist()
{
echo " <ItemGroup>"
cat $Source | while read SRC; do
# Don't do AssemblyInfo, it's got signing requests and such that we don't want
if [ "x$SRC" != "xAssembly/AssemblyInfo.cs" ] ; then
SRC=`echo Test/$SRC`
SRC=`echo $SRC | sed 's/Test\/..\/..\/..\/build\///'`
SRC=`echo $SRC | tr '/' '\\\\'`
cat <<EOF
<Compile Include="$SRC" />
EOF
fi
done
echo " </ItemGroup>"
}
SWFresourcelist()
{
echo " <ItemGroup>"
cat $Resource | while read SRC; do
CUSTOMTOOLNAMESPACE=""
# strip out that -resource:
SRC=`echo $SRC | sed 's/-resource://'`
CUSTOMTOOLNAMESPACE=`echo $SRC | awk -F, '{print $2}'`
INCLUDE=`echo $SRC | awk -F, '{print $1}'`
if test -f $INCLUDE.prebuilt; then
INCLUDE=$INCLUDE.prebuilt
fi
# strip off the path from the name of the resource and the .prebuilt if there is one
LOGICALNAME=`echo $INCLUDE | sed 's/resources\///;s/.prebuilt//'`
# convert all /'s to \\'s
INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'`
echo " <EmbeddedResource Include=\"$INCLUDE\">"
echo " <LogicalName>$LOGICALNAME</LogicalName>"
if test "x$CUSTOMTOOLNAMESPACE" != "x"; then
echo " <CustomToolNameSpace>$CUSTOMTOOLNAMESPACE</CustomToolNameSpace>"
fi
echo " </EmbeddedResource>"
done
echo " </ItemGroup>"
}
SWFhead
SWFfilelist
#SWFresourcelist
SWFtail
File diff suppressed because it is too large. Load diff
-30
View File
@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader><resheader name="version"><value>1.3</value></resheader><resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader><resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader><data name="test" mimetype="application/x-microsoft.net.object.binary.base64"><value>AAEAAAD/////AQAAAAAAAAAMAgAAACFTeXN0ZW0uV2luZG93cy5Gb3Jtc190ZXN0X25ldF8yXzAFAQAAACdNb25vVGVzdHMuU3lzdGVtLlJlc291cmNlcy5zZXJpYWxpemFibGUCAAAAB3Nlcm5hbWUIc2VydmFsdWUBAQIAAAAGAwAAAAVhYWFhYQYEAAAABWJiYmJiCw==</value><comment>comment</comment></data></root>
@@ -78,43 +78,38 @@ namespace Microsoft.Build.BuildEngine {
if (propertyName != null)
element.SetAttribute ("PropertyName", propertyName);
}
[MonoTODO]
public bool Execute ()
{
bool result = false;
TaskEngine taskEngine;
LogTaskStarted ();
ITask task = null;
ITask task;
try {
try {
task = InitializeTask ();
} catch (Exception e) {
LogError ("Error initializing task {0}: {1}", taskElement.LocalName, e.Message);
LogMessage (MessageImportance.Low, "Error initializing task {0}: {1}",
taskElement.LocalName, e.ToString ());
return false;
}
try {
taskEngine = new TaskEngine (parentTarget.Project);
taskEngine.Prepare (task, this.taskElement, GetParameters (), this.Type);
result = taskEngine.Execute ();
if (result)
taskEngine.PublishOutput ();
} catch (Exception e) {
task_logger.LogError ("Error executing task {0}: {1}", taskElement.LocalName, e.Message);
task_logger.LogMessage (MessageImportance.Low,
"Error executing task {0}: {1}", taskElement.LocalName, e.ToString ());
result = false;
}
} finally {
LogTaskFinished (result);
task = InitializeTask ();
} catch (Exception e) {
LogError ("Error initializing task {0}: {1}", taskElement.LocalName, e.Message);
LogMessage (MessageImportance.Low, "Error initializing task {0}: {1}",
taskElement.LocalName, e.ToString ());
return false;
}
return result;
try {
taskEngine = new TaskEngine (parentTarget.Project, task, Type);
taskEngine.Prepare (GetParameters ());
var result = taskEngine.Execute ();
if (result)
taskEngine.PublishOutput (taskElement, taskEngine.ValueFromExecution);
LogTaskFinished (result);
return result;
} catch (Exception e) {
task_logger.LogError ("Error executing task {0}: {1}", taskElement.LocalName, e.Message);
task_logger.LogMessage (MessageImportance.Low,
"Error executing task {0}: {1}", taskElement.LocalName, e.ToString ());
return false;
}
}
@@ -140,6 +135,21 @@ namespace Microsoft.Build.BuildEngine {
return taskElement.GetAttribute (attributeName);
}
bool IBuildTask.ResolveOutputItems ()
{
var taskEngine = new TaskEngine (parentTarget.Project, null, Type);
taskEngine.PublishOutput (taskElement, l => {
var pv = GetParameterValue (l.Name);
Expression exp = new Expression ();
exp.Parse (pv, ParseOptions.AllowItemsMetadataAndSplit);
return exp.ConvertTo (parentTarget.Project, l.PropertyType);
});
return true;
}
public void SetParameterValue (string parameterName,
string parameterValue)
@@ -73,6 +73,11 @@ namespace Microsoft.Build.BuildEngine
foreach (XmlAttribute attrib in XmlElement.Attributes)
yield return attrib.Value;
}
public bool ResolveOutputItems ()
{
return true;
}
}
}
@@ -52,7 +52,11 @@ namespace Microsoft.Build.BuildEngine {
{
return GetAttributes ();
}
public bool ResolveOutputItems ()
{
return true;
}
}
}
@@ -182,7 +182,7 @@ namespace Microsoft.Build.BuildEngine {
e = new ConditionFactorExpression (token);
} else if (token.Type == TokenType.Item || token.Type == TokenType.Property
|| token.Type == TokenType.Metadata) {
e = ParseReferenceExpression (token.Value);
e = ParseReferenceExpression (token.Value [0]);
} else if (token.Type == TokenType.Not) {
e = ParseNotExpression ();
} else
@@ -224,21 +224,33 @@ namespace Microsoft.Build.BuildEngine {
}
//@prefix: @ or $
ConditionExpression ParseReferenceExpression (string prefix)
ConditionExpression ParseReferenceExpression (char prefix)
{
StringBuilder sb = new StringBuilder ();
string ref_type = prefix [0] == '$' ? "a property" : "an item list";
int token_pos = tokenizer.Token.Position;
string ref_type = prefix == '$' ? "a property" : "an item list";
IsAtToken (TokenType.LeftParen, String.Format (
"Expected {0} at position {1} in condition \"{2}\". Missing opening parantheses after the '{3}'.",
ref_type, token_pos, conditionStr, prefix));
tokenizer.GetNextToken ();
if (prefix == '$') {
//
// Tjhe scan should consider quoted parenthesis but it breaks on .net as well
// we are bug compatible
//
tokenizer.ScanForClosingParens ();
} else {
tokenizer.GetNextToken ();
}
if (tokenizer.IsEOF ())
throw new ExpressionParseException ("Missing closing parenthesis in condition " + conditionStr);
StringBuilder sb = new StringBuilder ();
sb.AppendFormat ("{0}({1}", prefix, tokenizer.Token.Value);
tokenizer.GetNextToken ();
if (prefix == "@" && tokenizer.Token.Type == TokenType.Transform) {
if (prefix == '@' && tokenizer.Token.Type == TokenType.Transform) {
tokenizer.GetNextToken ();
sb.AppendFormat ("->'{0}'", tokenizer.Token.Value);
@@ -250,9 +262,7 @@ namespace Microsoft.Build.BuildEngine {
}
}
IsAtToken (TokenType.RightParen, String.Format (
"Expected {0} at position {1} in condition \"{2}\". Missing closing parantheses'.",
ref_type, token_pos, conditionStr, prefix));
IsAtToken (TokenType.RightParen, "Missing closing parenthesis in condition " + conditionStr);
tokenizer.GetNextToken ();
sb.Append (")");
@@ -257,6 +257,29 @@ namespace Microsoft.Build.BuildEngine {
} else
throw new ExpressionParseException (String.Format ("Invalid token: {0}", ch));
}
public void ScanForClosingParens (int parensCounter = 1)
{
tokenPosition = position;
int start = position;
int ch;
while ((ch = ReadChar ()) >= 0) {
switch (ch) {
case ')':
if (--parensCounter == 0) {
--position;
token = new Token (inputString.Substring (start, position - start), TokenType.String, tokenPosition);
return;
}
break;
case '(':
++parensCounter;
break;
}
}
token = new Token (null, TokenType.EOF, tokenPosition);
}
public int TokenPosition {
get { return tokenPosition; }
@@ -55,6 +55,14 @@ namespace Microsoft.Build.BuildEngine {
internal class Expression {
enum TokenKind
{
OpenParens,
CloseParens,
Dot,
End
}
ExpressionCollection expressionCollection;
static Regex item_regex;
@@ -232,6 +240,7 @@ namespace Microsoft.Build.BuildEngine {
pos += 2;
int start = pos;
int end = 0;
bool requires_closing_parens = true;
var ch = text [pos];
if ((ch == 'r' || ch == 'R') && text.Substring (pos + 1).StartsWith ("egistry:", StringComparison.OrdinalIgnoreCase)) {
@@ -273,6 +282,7 @@ namespace Microsoft.Build.BuildEngine {
// Simple property reference $(Foo)
//
phase.Add (new PropertyReference (name));
requires_closing_parens = false;
} else {
end = 0;
}
@@ -287,6 +297,14 @@ namespace Microsoft.Build.BuildEngine {
pos = end;
}
if (requires_closing_parens) {
end = text.IndexOf (')', pos);
if (end < 0)
end = 0;
else
pos = end + 1;
}
}
end = text.IndexOf ("$(", pos, StringComparison.Ordinal);
@@ -493,53 +511,71 @@ namespace Microsoft.Build.BuildEngine {
static MemberInvocationReference ParseInvocation (string text, ref int p, Type type, IReference instance)
{
var open_parens = text.IndexOf ('(', p);
string name;
int end;
List<string> args;
TokenKind token;
MemberInvocationReference mir = null;
//
// Is it method or property
//
if (open_parens > 0) {
name = text.Substring (p, open_parens - p);
while (true) {
int prev = p;
token = ScanName (text, ref p);
var name = text.Substring (prev, p - prev).TrimEnd ();
//
// It can be instance method on static property
//
if (name.IndexOf ('.') > 0) {
var names = name.Split ('.');
int i;
for (i = 0; i < names.Length - 1; ++i) {
instance = new MemberInvocationReference (type, names [i]) {
Instance = instance
};
}
switch (token) {
case TokenKind.Dot:
case TokenKind.OpenParens:
break;
case TokenKind.CloseParens:
return new MemberInvocationReference (type, name) {
Instance = instance
};
case TokenKind.End:
if (mir == null || name.Length != 0)
throw new InvalidProjectFileException (string.Format ("Invalid static method invocation syntax '{0}'", text.Substring (p)));
return mir;
default:
throw new NotImplementedException ();
}
instance = mir = new MemberInvocationReference (type, name) {
Instance = instance
};
if (type != null) {
if (!IsMethodAllowed (type, name))
throw new InvalidProjectFileException (string.Format ("The function '{0}' on type '{1}' has not been enabled for execution", name, type.FullName));
type = null;
name = names [i];
}
++open_parens;
args = ParseArguments (text, ref open_parens);
end = text.IndexOf (')', open_parens);
} else {
end = text.IndexOf (')', p);
if (end < 0)
throw new InvalidProjectFileException (string.Format ("Invalid static method invocation syntax '{0}'", text.Substring (p)));
name = text.Substring (p, end - p);
args = null;
if (token == TokenKind.OpenParens) {
++p;
mir.Arguments = ParseArguments (text, ref p);
}
if (p < text.Length && text [p] == '.') {
++p;
continue;
}
return mir;
}
}
static TokenKind ScanName (string text, ref int p)
{
for (; p < text.Length; ++p) {
switch (text [p]) {
case '(':
return TokenKind.OpenParens;
case '.':
return TokenKind.Dot;
case ')':
return TokenKind.CloseParens;
}
}
name = name.TrimEnd ();
if (!IsMethodAllowed (type, name))
throw new InvalidProjectFileException (string.Format ("The function '{0}' on type '{1}' has not been enabled for execution", name, type.FullName));
p = end + 1;
return new MemberInvocationReference (type, name) {
Arguments = args,
Instance = instance
};
return TokenKind.End;
}
ArrayList SplitMetadata (string text)
@@ -38,6 +38,7 @@ namespace Microsoft.Build.BuildEngine {
}
bool Execute ();
bool ResolveOutputItems ();
IEnumerable<string> GetAttributes ();
}
@@ -274,7 +274,11 @@ namespace Microsoft.Build.BuildEngine {
continue;
if (!Directory.Exists (extn_path)) {
project.ParentEngine.LogMessage (MessageImportance.Low, "Extension path '{0}' not found, ignoring.", extn_path);
if (extn_path != DotConfigExtensionsPath)
project.ParentEngine.LogMessage (
MessageImportance.Low,
"Extension path '{0}' not found, ignoring.",
extn_path);
continue;
}
@@ -63,10 +63,16 @@ namespace Microsoft.Build.BuildEngine
{
var flags = BindingFlags.IgnoreCase | BindingFlags.Public;
object target;
string member_name = name;
if (Instance == null) {
target = null;
flags |= BindingFlags.Static;
if (string.Equals (member_name, "new", StringComparison.OrdinalIgnoreCase)) {
member_name = ConstructorInfo.ConstructorName;
flags |= BindingFlags.CreateInstance | BindingFlags.Instance;
} else {
flags |= BindingFlags.Static;
}
} else {
var mir = Instance as MemberInvocationReference;
if (mir != null) {
@@ -91,14 +97,14 @@ namespace Microsoft.Build.BuildEngine
} else {
flags |= BindingFlags.InvokeMethod;
ExpandArguments (project, options);
args = PrepareMethodArguments (flags);
args = PrepareMethodArguments (member_name, flags);
if (args == null)
throw new InvalidProjectFileException (string.Format ("Method '{0}({1})' arguments cannot be evaluated'", name, string.Join (", ", Arguments.ToArray ())));
}
object value;
try {
value = type.InvokeMember (name, flags, null, target, args, CultureInfo.InvariantCulture);
value = type.InvokeMember (member_name, flags, null, target, args, CultureInfo.InvariantCulture);
} catch (MissingFieldException) {
//
// It can be field/constant instead of a property
@@ -106,7 +112,7 @@ namespace Microsoft.Build.BuildEngine
if (args == null && Instance == null) {
flags &= ~BindingFlags.GetProperty;
flags |= BindingFlags.GetField;
value = type.InvokeMember (name, flags, null, null, null, CultureInfo.InvariantCulture);
value = type.InvokeMember (member_name, flags, null, null, null, CultureInfo.InvariantCulture);
} else {
throw;
}
@@ -132,9 +138,9 @@ namespace Microsoft.Build.BuildEngine
}
}
object[] PrepareMethodArguments (BindingFlags flags)
object[] PrepareMethodArguments (string name, BindingFlags flags)
{
var candidates = type.GetMember (name, MemberTypes.Method, flags);
var candidates = type.GetMember (name, MemberTypes.Method | MemberTypes.Constructor, flags);
object[] args = null;
ParameterInfo[] best = null;
foreach (MethodBase candidate in candidates) {
@@ -36,7 +36,6 @@ using System.Xml;
using Microsoft.Build.Framework;
namespace Microsoft.Build.BuildEngine {
internal class TargetBatchingImpl : BatchingImplBase
{
string inputs;
@@ -58,17 +57,6 @@ namespace Microsoft.Build.BuildEngine {
{
executeOnErrors = false;
try {
string reason;
if (!BuildTargetNeeded (out reason)) {
LogTargetStarted (target);
LogTargetSkipped (target, reason);
LogTargetFinished (target, true);
return true;
}
if (!String.IsNullOrEmpty (reason))
target.Engine.LogMessage (MessageImportance.Low, reason);
Init ();
ParseTargetAttributes (target);
@@ -104,24 +92,29 @@ namespace Microsoft.Build.BuildEngine {
executeOnErrors = false;
LogTargetStarted (target);
if (bucket != null)
project.PushBatch (bucket, commonItemsByName);
try {
TaskExecutionMode taskExecutionMode;
string reason;
if (!BuildTargetNeeded (out reason)) {
LogTargetSkipped (target, reason);
return true;
}
taskExecutionMode = TaskExecutionMode.SkipAndSetOutput;
} else {
taskExecutionMode = TaskExecutionMode.Complete;
if (!String.IsNullOrEmpty (reason))
target.Engine.LogMessage (MessageImportance.Low, reason);
if (!String.IsNullOrEmpty (reason))
target.Engine.LogMessage (MessageImportance.Low, reason);
}
for (int i = 0; i < target.BuildTasks.Count; i ++) {
//FIXME: parsing attributes repeatedly
IBuildTask bt = target.BuildTasks [i];
TaskBatchingImpl batchingImpl = new TaskBatchingImpl (project);
bool task_result = batchingImpl.Build (bt, out executeOnErrors);
bool task_result = batchingImpl.Build (bt, taskExecutionMode, out executeOnErrors);
if (task_result)
continue;
@@ -138,6 +131,7 @@ namespace Microsoft.Build.BuildEngine {
} finally {
if (bucket != null)
project.PopBatch ();
LogTargetFinished (target, target_result);
}
@@ -40,7 +40,7 @@ namespace Microsoft.Build.BuildEngine {
{
}
public bool Build (IBuildTask buildTask, out bool executeOnErrors)
public bool Build (IBuildTask buildTask, TaskExecutionMode taskExecutionMode, out bool executeOnErrors)
{
executeOnErrors = false;
try {
@@ -49,15 +49,11 @@ namespace Microsoft.Build.BuildEngine {
// populate list of referenced items and metadata
ParseTaskAttributes (buildTask);
if (consumedMetadataReferences.Count == 0) {
// No batching required
if (ConditionParser.ParseAndEvaluate (buildTask.Condition, project))
return buildTask.Execute ();
else // skipped, it should be logged
return true;
return Execute (buildTask, taskExecutionMode);
}
BatchAndPrepareBuckets ();
return Run (buildTask, out executeOnErrors);
return Run (buildTask, taskExecutionMode, out executeOnErrors);
} finally {
consumedItemsByName = null;
consumedMetadataReferences = null;
@@ -68,7 +64,7 @@ namespace Microsoft.Build.BuildEngine {
}
}
bool Run (IBuildTask buildTask, out bool executeOnErrors)
bool Run (IBuildTask buildTask, TaskExecutionMode taskExecutionMode, out bool executeOnErrors)
{
executeOnErrors = false;
@@ -76,11 +72,9 @@ namespace Microsoft.Build.BuildEngine {
bool retval = true;
if (buckets.Count == 0) {
// batched mode, but no values in the corresponding items!
if (ConditionParser.ParseAndEvaluate (buildTask.Condition, project)) {
retval = buildTask.Execute ();
if (!retval && !buildTask.ContinueOnError)
executeOnErrors = true;
}
retval = Execute (buildTask, taskExecutionMode);
if (!retval && !buildTask.ContinueOnError)
executeOnErrors = true;
return retval;
}
@@ -89,12 +83,10 @@ namespace Microsoft.Build.BuildEngine {
foreach (Dictionary<string, BuildItemGroup> bucket in buckets) {
project.PushBatch (bucket, commonItemsByName);
try {
if (ConditionParser.ParseAndEvaluate (buildTask.Condition, project)) {
retval = buildTask.Execute ();
if (!retval && !buildTask.ContinueOnError) {
executeOnErrors = true;
break;
}
retval = Execute (buildTask, taskExecutionMode);
if (!retval && !buildTask.ContinueOnError) {
executeOnErrors = true;
break;
}
} finally {
project.PopBatch ();
@@ -104,6 +96,22 @@ namespace Microsoft.Build.BuildEngine {
return retval;
}
bool Execute (IBuildTask buildTask, TaskExecutionMode taskExecutionMode)
{
if (ConditionParser.ParseAndEvaluate (buildTask.Condition, project)) {
switch (taskExecutionMode) {
case TaskExecutionMode.Complete:
return buildTask.Execute ();
case TaskExecutionMode.SkipAndSetOutput:
return buildTask.ResolveOutputItems ();
default:
throw new NotImplementedException ();
}
}
return true;
}
// Parse task attributes to get list of referenced metadata and items
// to determine batching
@@ -38,10 +38,9 @@ using Microsoft.Build.Utilities;
namespace Microsoft.Build.BuildEngine {
internal class TaskEngine {
ITask task;
XmlElement taskElement;
Type taskType;
Project parentProject;
ITask task;
static Type requiredAttribute;
static Type outputAttribute;
@@ -52,9 +51,11 @@ namespace Microsoft.Build.BuildEngine {
outputAttribute = typeof (Microsoft.Build.Framework.OutputAttribute);
}
public TaskEngine (Project project)
public TaskEngine (Project project, ITask task, Type taskType)
{
parentProject = project;
this.task = task;
this.taskType = taskType;
}
// Rules (inferred) for property values incase of empty data
@@ -69,17 +70,13 @@ namespace Microsoft.Build.BuildEngine {
// string/
// ITaskItem[] empty/whitespace null No
public void Prepare (ITask task, XmlElement taskElement,
IDictionary <string, string> parameters, Type taskType)
public void Prepare (IDictionary <string, string> parameters)
{
Dictionary <string, object> values;
PropertyInfo currentProperty;
PropertyInfo[] properties;
object value;
this.task = task;
this.taskElement = taskElement;
this.taskType = taskType;
values = new Dictionary <string, object> (StringComparer.OrdinalIgnoreCase);
foreach (KeyValuePair <string, string> de in parameters) {
@@ -131,20 +128,18 @@ namespace Microsoft.Build.BuildEngine {
InitializeParameter (pi, val);
}
}
public bool Execute ()
{
return task.Execute ();
}
public void PublishOutput ()
public void PublishOutput (XmlElement taskElement, Func<PropertyInfo, object> valueProvider)
{
XmlElement xmlElement;
PropertyInfo propertyInfo;
string propertyName;
string taskParameter;
string itemName;
object o;
foreach (XmlNode xmlNode in taskElement.ChildNodes) {
if (!(xmlNode is XmlElement))
@@ -165,16 +160,17 @@ namespace Microsoft.Build.BuildEngine {
taskParameter = xmlElement.GetAttribute ("TaskParameter");
itemName = xmlElement.GetAttribute ("ItemName");
propertyName = xmlElement.GetAttribute ("PropertyName");
propertyInfo = taskType.GetProperty (taskParameter, BindingFlags.Public | BindingFlags.Instance |
BindingFlags.IgnoreCase);
var propertyInfo = taskType.GetProperty (taskParameter, BindingFlags.Public | BindingFlags.Instance | BindingFlags.IgnoreCase);
if (propertyInfo == null)
throw new InvalidProjectFileException (String.Format (
"The parameter '{0}' was not found for the '{1}' task.", taskParameter, taskElement.Name));
throw new InvalidProjectFileException (String.Format ("The parameter '{0}' was not found for the '{1}' task.", taskParameter, taskElement.Name));
if (!propertyInfo.IsDefined (outputAttribute, false))
throw new InvalidProjectFileException ("This is not output property.");
throw new InvalidProjectFileException ("This is not output property.");
o = propertyInfo.GetValue (task, null);
var o = valueProvider (propertyInfo);
if (itemName != String.Empty) {
PublishItemGroup (propertyInfo, o, itemName);
} else {
@@ -260,5 +256,10 @@ namespace Microsoft.Build.BuildEngine {
return true;
}
public object ValueFromExecution (PropertyInfo propertyInfo)
{
return propertyInfo.GetValue (task, null);
}
}
}
@@ -1,7 +1,10 @@
//
// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
// TaskExecutionMode.cs
//
// Authors:
// Marek Safar <[email protected]>
//
// Copyright (C) 2014 Xamarin Inc (http://www.xamarin.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -23,22 +26,11 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.CompilerServices;
namespace System.Web.Util
namespace Microsoft.Build.BuildEngine
{
class ICalls
enum TaskExecutionMode
{
ICalls () {}
static public string GetMachineConfigPath ()
{
return ".";
}
static public string GetMachineInstallDirectory ()
{
return ".";
}
Complete = 0,
SkipAndSetOutput = 1
}
}
}
@@ -1,26 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Build.Engine-net_4_0", "Microsoft.Build.Engine-net_4_0.csproj", "{155AEF28-C81F-405D-9072-9D52780E3E70}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Build.Engine-tests-net_4_0", "Microsoft.Build.Engine-tests-net_4_0.csproj", "{155AEF28-C81F-405D-9072-9D52780E3E71}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{155AEF28-C81F-405D-9072-9D52780E3E70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E70}.Debug|Any CPU.Build.0 = Debug|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E71}.Debug|Any CPU.Build.0 = Debug|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E70}.Release|Any CPU.ActiveCfg = Release|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E71}.Release|Any CPU.ActiveCfg = Release|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E70}.Release|Any CPU.Build.0 = Release|Any CPU
{155AEF28-C81F-405D-9072-9D52780E3E71}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Microsoft.Build.Engine-net_4_0.csproj
EndGlobalSection
EndGlobal
@@ -1,106 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.Build.Engine.Test</RootNamespace>
<AssemblyName>Microsoft.Build.Engine.Test</AssemblyName>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A2F451CD-8701-434A-A562-EF1809E2DB7D}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>.\</OutputPath>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<UseVSHostingProcess>true</UseVSHostingProcess>
<DocumentationFile>
</DocumentationFile>
<RegisterForComInterop>false</RegisterForComInterop>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'DebugMS' ">
<OutputPath>.\</OutputPath>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<UseVSHostingProcess>true</UseVSHostingProcess>
<DocumentationFile>
</DocumentationFile>
<RegisterForComInterop>false</RegisterForComInterop>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<Optimize>True</Optimize>
<DefineConstants>TRACE</DefineConstants>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<UseVSHostingProcess>true</UseVSHostingProcess>
<DocumentationFile>
</DocumentationFile>
<RegisterForComInterop>false</RegisterForComInterop>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities" />
<Reference Include="nunit.core">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\nunit24\NUnitCore\core\bin\Debug2005\nunit.core.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\nunit24\NUnitFramework\framework\bin\Debug2005\nunit.framework.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' == 'DebugMS' ">
<Reference Include="Microsoft.Build.Engine" />
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' != 'DebugMS' ">
<ProjectReference Include="Microsoft.Build.Engine.csproj">
<Project>{49CC9B64-E28A-4818-97F9-301E14B383B9}</Project>
<Name>Microsoft.Build.Engine</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildItemGroupCollectionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildItemGroupTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildItemTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildPropertyTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildPropertyGroupTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildPropertyGroupCollectionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildTaskTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\BuildChooseTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\ConsoleLoggerTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\Consts.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\EngineTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\ImportCollectionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\ImportTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\InternalLoggerExceptionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\InvalidProjectFileExceptionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\ProjectTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\TargetCollectionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\TargetTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\TestNamespaceManager.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\UsingTaskTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\UsingTaskCollectionTest.cs" />
<Compile Include="Test\Microsoft.Build.BuildEngine\UtilitiesTest.cs" />
<Compile Include="Test\various\Build.cs" />
<Compile Include="Test\various\Conditions.cs" />
<Compile Include="Test\various\DefaultTasks.cs" />
<Compile Include="Test\various\EvaluationOrder.cs" />
<Compile Include="Test\various\Items.cs" />
<Compile Include="Test\various\ProjectElement.cs" />
<Compile Include="Test\various\Properties.cs" />
<Compile Include="..\Microsoft.Build.Tasks\Test/Microsoft.Build.Tasks\TestMessageLogger.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
<PropertyGroup>
<PreBuildEvent>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe /r:Microsoft.Build.Framework.dll /r:Microsoft.Build.Utilities.dll /target:library /out:$(ProjectDir)Test\resources\TestTasks.dll $(ProjectDir)Test\resources\TestTasks.cs</PreBuildEvent>
</PropertyGroup>
</Project>
@@ -1,16 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# SharpDevelop 2.0.0.1135
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Build.Engine.Test", "Microsoft.Build.Engine.Test.csproj", "{A2F451CD-8701-434A-A562-EF1809E2DB7D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A2F451CD-8701-434A-A562-EF1809E2DB7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A2F451CD-8701-434A-A562-EF1809E2DB7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A2F451CD-8701-434A-A562-EF1809E2DB7D}.Release|Any CPU.Build.0 = Release|Any CPU
{A2F451CD-8701-434A-A562-EF1809E2DB7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
EndGlobal
@@ -1,115 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.Build.Engine</RootNamespace>
<AssemblyName>Microsoft.Build.Engine</AssemblyName>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{49CC9B64-E28A-4818-97F9-301E14B383B9}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>.\</OutputPath>
<Optimize>False</Optimize>
<DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<UseVSHostingProcess>true</UseVSHostingProcess>
<DocumentationFile>
</DocumentationFile>
<RegisterForComInterop>false</RegisterForComInterop>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<Optimize>True</Optimize>
<DefineConstants>TRACE;NET_2_0</DefineConstants>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<UseVSHostingProcess>true</UseVSHostingProcess>
<DocumentationFile>
</DocumentationFile>
<RegisterForComInterop>false</RegisterForComInterop>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'DebugMS' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\DebugMS\</OutputPath>
<DefineConstants>TRACE;DEBUG;NET_2_0</DefineConstants>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<DebugType>Full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities" />
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' == 'DebugMS' ">
<Compile Include="Assembly\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="..\Microsoft.Build.Framework\Mono.XBuild.Framework/AssemblyLoadInfo.cs" />
<Compile Include="..\Microsoft.Build.Utilities\Mono.XBuild.Utilities/ReservedNameUtils.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BatchingImplBase.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildChoose.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildEngine.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildItem.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildItemGroup.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildItemGroupCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildProperty.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildPropertyGroup.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildPropertyGroupCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildSettings.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildTask.cs" />
<Compile Include="Microsoft.Build.BuildEngine\BuildWhen.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ChangeType.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ColorResetter.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ColorSetter.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionAndExpression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionExpression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionFactorExpresion.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionFunctionExpression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionNotExpression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionOrExpression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionParser.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionRelationalExpression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConditionTokenizer.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ConsoleLogger.cs" />
<Compile Include="Microsoft.Build.BuildEngine\DirectoryScanner.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Engine.cs" />
<Compile Include="Microsoft.Build.BuildEngine\EventSource.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Expression.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ExpressionCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ExpressionParseException.cs" />
<Compile Include="Microsoft.Build.BuildEngine\FileLogger.cs" />
<Compile Include="Microsoft.Build.BuildEngine\GroupingCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Import.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ImportCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ImportedProject.cs" />
<Compile Include="Microsoft.Build.BuildEngine\InternalLoggerException.cs" />
<Compile Include="Microsoft.Build.BuildEngine\InvalidProjectFileException.cs" />
<Compile Include="Microsoft.Build.BuildEngine\IReference.cs" />
<Compile Include="Microsoft.Build.BuildEngine\ItemReference.cs" />
<Compile Include="Microsoft.Build.BuildEngine\MetadataReference.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Project.cs" />
<Compile Include="Microsoft.Build.BuildEngine\PropertyPosition.cs" />
<Compile Include="Microsoft.Build.BuildEngine\PropertyReference.cs" />
<Compile Include="Microsoft.Build.BuildEngine\SolutionParser.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Target.cs" />
<Compile Include="Microsoft.Build.BuildEngine\TargetBatchingImpl.cs" />
<Compile Include="Microsoft.Build.BuildEngine\TargetCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\TaskBatchingImpl.cs" />
<Compile Include="Microsoft.Build.BuildEngine\TaskDatabase.cs" />
<Compile Include="Microsoft.Build.BuildEngine\TaskEngine.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Token.cs" />
<Compile Include="Microsoft.Build.BuildEngine\UsingTask.cs" />
<Compile Include="Microsoft.Build.BuildEngine\UsingTaskCollection.cs" />
<Compile Include="Microsoft.Build.BuildEngine\Utilities.cs" />
<Compile Include="Microsoft.Build.BuildEngine\WriteHandler.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>
@@ -65,6 +65,7 @@ Microsoft.Build.BuildEngine/TargetCollection.cs
Microsoft.Build.BuildEngine/Target.cs
Microsoft.Build.BuildEngine/TaskDatabase.cs
Microsoft.Build.BuildEngine/TaskEngine.cs
Microsoft.Build.BuildEngine/TaskExecutionMode.cs
Microsoft.Build.BuildEngine/Token.cs
Microsoft.Build.BuildEngine/Toolset.cs
Microsoft.Build.BuildEngine/ToolsetCollection.cs
Loaded 100 of 1764 files, more files were not shown because too many files have changed in this diff. Show more