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
Marek Safar
a9cf06d9fb
[mcs] Fix betterness logic for default vs params parameters. Fixes #19754
2014-05-28 17:59:47 +02:00
Marek Safar
a74c354454
Tests update
2014-05-28 16:35:01 +02:00
Sebastien Pouliot
1355ca90df
[System] Ensure pinvoke into OXS/iOS CFNetwork framework (for proxy support) are 64bits safe
2014-05-28 10:33:57 -04:00
Marek Safar
fad2723818
[mcs] Flow analysis of binary expressions not using logical operators. Fixes #20086
2014-05-28 16:24:37 +02:00
Sebastien Pouliot
789e27a9bf
[System] Ensure pinvoke into OXS/iOS Security framework are 64bits safe
2014-05-28 09:49:03 -04:00
Sebastien Pouliot
93076a9c75
[corlib][ios] Fix 'write' pinvoke declaration to be 64bits safe
2014-05-28 09:06:44 -04: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
Marek Safar
edbadc8241
[mcs] Emit unmanaged version info from AssemblyFileVersion. Fixes #20057
2014-05-28 11:00:54 +02:00
Zoltan Varga
5ed69a0f8a
[runtime] Call mono_threads_join_threads () to prevent running out of threads when the finalizer threads becomes blocked/backlogged.
2014-05-28 00:09:47 +02:00
Zoltan Varga
5df3fd4797
[llvm] Fix the loadable llvm build.
2014-05-27 22:36:51 +02:00
Rodrigo Kumpera
eea7a21324
[runtime] Add a test for the type loading changes.
2014-05-27 15:42:05 -04:00
Rodrigo Kumpera
639e3b5b21
[runtime] Ensure reflection-based assembly load has a basedir set.
...
When loading assemblies, we must ensure that a basedir is provided otherwise
things like custom attributes and Type.GetType won't be able to load sibling
assemblies when basedir is not the same of the domain.
2014-05-27 15:42:05 -04:00
Miguel de Icaza
d6c6b28516
[build] Address the System.Configuration test problem
...
The compiler seems to ignore reference assemblies with a full path when the
-lib: directive is passed, so things like:
-lib:FOO -r:BAR/bar.dll
Would resolve bar.dll to FOO/bar.dll, instead of BAR/bar.dll.
This is a problem with the test suite as it needs to reference the
final build of System.Configuration from $(the_libdir_base) and not
the intermediate step.
To work around this issue, we introduce "test_remove" variable that is
a piece of text that will be removed from the TEST_COMPILE variable
when this is evaluated.
This means that it gets CSCOMPILE and then it removes the bits that we
are not interested in.
2014-05-27 14:59:33 -04:00
Zoltan Varga
7b09fdb830
[llvm] Fix support for native types.
2014-05-27 20:42:07 +02:00
Mark Probst
164d79525a
[sgen] Remove unnecessary newline from warning.
2014-05-27 10:46:59 -07:00
Mark Probst
aa7447a7c5
[sgen] Fix for ridiculously small nurseries.
2014-05-27 10:46:58 -07:00
Joao Matos
649a692f38
Fixed TLAB_ACCESS_INIT usages in MSVC by moving the macro expansions to the start of each block.
2014-05-27 17:29:45 +01:00
Joao Matos
0f060c8c22
Revert "Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block."
...
This will be fixed in a slightly different way.
This reverts commit aa7ab303ba .
2014-05-27 17:26:33 +01:00
Joao Matos
1342054e41
Replaced "__asm call $+5" pattern to get the IP with a label.
...
This was suggested by Kumpera as a work-around for the lack of support for $ in clang-cl.
2014-05-27 17:26:24 +01:00
Marek Safar
aad8d4924b
[corlib] Disable test
2014-05-27 18:14:27 +02:00
Marek Safar
3e36314d78
[mcs] More of correct error propagation
2014-05-27 18:14:27 +02:00
Rodrigo Kumpera
d8eaf057ce
[System.Configuration] Temporary fix for system.configuration test suite.
2014-05-27 11:04:42 -04:00
Marek Safar
d1d81c9cb5
[system] Fix warnings
2014-05-27 17:04:24 +02:00
Marek Safar
9c07c63053
[mcs] Fix expression tree conversion type for lifted enum equality comparisons. Fixes #19938
2014-05-27 16:15:10 +02:00
Zoltan Varga
5ee706de7d
[arm64] Fix mono_strtod ().
2014-05-27 15:29:17 +02:00
Marek Safar
d79572f85c
[mcs] Report error when named argument for param parameter is given but not all formal parameters are provided. Fixes #19878
2014-05-27 14:39:56 +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
Alex Rønne Petersen
21b8b7da1e
Merge pull request #1062 from sethjackson/sem_timedwait
...
OpenBSD has sem_timedwait().
2014-05-27 12:18:42 +02:00
Marek Safar
fb220ceca1
[mcs] Unify reachable label lookup. Fixes #19887
2014-05-27 10:48:05 +02:00
Marek Safar
1f906df0a4
Merge pull request #1060 from rolfbjarne/logical-name-in-embedded-resources
...
[Microsoft.Build.Tasks] Add support for LogicalName in EmbeddedResources...
2014-05-27 09:32:55 +02:00
Atsushi Eno
d75beb55c5
[ms.build] use appropriate ProjectCollection so that it can build the projects with appropriate settings.
...
Now a solution turns into a project with "BuildingSolutionFile" property
which is assigned by SolutionParser and subsequently gets _ExplicitReference
that is to store path to mscorlib.dll and thence projects build.
2014-05-27 14:11:49 +09:00
Atsushi Eno
1a5c229e9f
[ms.build] follow xbuild to use version 12.0.
2014-05-27 14:11:48 +09:00
Atsushi Eno
fcb70eeacb
[ms.build] Add msbuild.rsp.
2014-05-27 14:11:47 +09:00
Seth Jackson
09456b827b
OpenBSD has sem_timedwait().
...
This change released under the MIT license with permission from the original
author Robert Nagy.
2014-05-26 21:43:35 -04:00
Sebastien Pouliot
dc872d9f5f
[Mono.Security] Add new test files (form previous PR) to the build
2014-05-26 20:02:46 -04:00
Sebastien Pouliot
99b5aad5ee
Merge pull request #1057 from lextm/master
...
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and Subj...
2014-05-26 20:00:43 -04:00
Zoltan Varga
e8082e1bcc
Merge pull request #1061 from sethjackson/L_cuserid
...
L_cuserid was removed from OpenBSD.
2014-05-27 01:50:32 +02:00
Joao Matos
1c3a2b526c
Replaced C99 variable-length array with an alloca to work with MSVC.
2014-05-26 23:43:28 +01:00
Joao Matos
d5061abf1f
Fixed SGEN_HASH_TABLE_INIT usages to work in MSVC.
2014-05-26 23:43:20 +01:00
Joao Matos
aa7ab303ba
Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block.
2014-05-26 23:43:11 +01:00
Sebastien Pouliot
13ff02dc31
[System.ServiceModel.Web] Fix issue with types explicitly implementing IDictionary or IDictionary<,>
...
Issue: The previous code, with new tests [1], failed when the linker was
enabled.
That was caused because the code looks for the Keys and Item properties
getter using reflection. The linker handled that imperfectly (it left
some holes), in part because:
* System.Collections.Generic.IDictionary`2 does not implement
System.Collections.IDictionary; and
* It preserved the explicit methods - not the implicit one that were
used the the reflection-based code;
That later fact is also a bug (without the linker involvment) and solved
by this commit. A unit test was added to show the issue (NRE).
The patch also avoid the use of reflection for IDictionary since we can
simply typecast to get the same result (without the additional cost).
2014-05-26 17:27:26 -04:00
Seth Jackson
c38e27bc7b
L_cuserid was removed from OpenBSD.
...
This change released under the MIT license with permission from the original
author Christian Weisgerber.
2014-05-26 17:21:27 -04:00
Rolf Bjarne Kvinge
6143b52b03
Use string.IsNullOrEmpty instead of .Length.
2014-05-26 18:53:05 +02:00
Marek Safar
122a67e4c8
[mcs] Don't release field address copy before it's used. Fixes #20040
2014-05-26 18:51:11 +02:00
Rolf Bjarne Kvinge
7134ec8abf
[arm64] Fix another crash due to not using the right objc_msgSend signature.
...
Also simplify the code a little bit, there's no need to have separate
code paths for ARM64, since using the correct objc_msgSend signature
works on all architectures.
2014-05-26 18:29:25 +02:00
Rolf Bjarne Kvinge
4f2920cbc1
Fix a couple of compiler warnings.
2014-05-26 18:29:25 +02:00
Rolf Bjarne Kvinge
f7879a61a9
[Microsoft.Build.Tasks] Add support for LogicalName in EmbeddedResources.
2014-05-26 18:22:34 +02:00
Lex Li
0ff2798265
[Mono.Security] Added AuthorityKeyIdentifierExtensionTest and SubjectKeyIdentifierExtensionTest.
2014-05-26 13:24:00 +00:00
Marek Safar
ec28a5d4b7
[mcs] Fix error reporting propagation for loop statements. Fixes #20034
2014-05-26 15:16:10 +02:00
Zoltan Varga
5b860c3cf5
Merge pull request #1059 from ranma42/jenkins-warnings-cleanup
...
Cleanup of some MonoJenkins warnings
2014-05-26 11:49:12 +02:00
Marek Safar
97baa22e86
Merge pull request #1033 from godFather89/master
...
When dynamically compiling script with a class with a nested class defin...
2014-05-26 09:55:40 +02:00
Marek Safar
49e626f420
[mcs] Don't report hiding warnings for compiler generated fields
2014-05-26 09:55:11 +02:00
Marek Safar
e014ce692b
[mcs] Add cref handling of user operator documentation without parameters
2014-05-26 09:55:11 +02:00
Marek Safar
e08d611cfa
[eval] Add test for nested types
2014-05-26 09:55:11 +02:00
Andrea Canciani
a0d84a2661
Fix non-prototype function declarations
...
MonoJenkins repeatedly complains about:
mono-counters.c:xxx:1: warning: function declaration isn't a prototype
[-Wstrict-prototypes]
This is caused by the missing declaration of the function arguments.
This change is released under the MIT license.
2014-05-26 09:22:26 +02:00
Andrea Canciani
9f7554e973
More C90 compatibility fixes
...
This silences the following gcc/clang warnings from MonoJenkins:
sgen-tarjan-bridge.c:395:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1942:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1999:3: warning: ISO C90 forbids mixed declarations and code
decode.c:2409:6: warning: ISO C90 forbids mixed declarations and code
decode.c:2433:6: warning: ISO C90 forbids mixed declarations and code
Moving the declarations to the beginning of the blocks is sufficient
to silence the warnings.
This change is released under the MIT license.
2014-05-26 09:21:52 +02:00
Alex Rønne Petersen
09126b1b21
Rename configure.in -> configure.ac. Based on PR #976 .
2014-05-25 19:04:06 +02:00
Alex Rønne Petersen
d61bf0d21b
Merge pull request #1056 from ranma42/vc-compat-C90
...
Fix the build on Visual C++
2014-05-25 18:49:12 +02:00
Lex Li
74eee04f28
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and SubjectKeyIdentifierExtension.
2014-05-25 12:25:08 +00:00
Andrea Canciani
d6ffe17718
Fix the build on Visual C++
...
Visual C++ does not support intermixed declarations and code and
errors out with:
error C2275: 'guint' : illegal use of this type as an expression
This also silences gcc/clang warnings such as:
mono-counters.c:xxx:3: warning: ISO C90 forbids mixing declarations
and code
In this case this can be fixed easily by skipping the intermediate
variable.
Based on pull request #1043 by J-M <[email protected] >
This change is released under the MIT license.
2014-05-25 10:07:34 +02:00
Marek Safar
f2df46f68e
Merge pull request #1055 from josedonizetti/fix_datacontractserializer_tests
...
validate if attribute is defined before check IsAny
2014-05-25 09:27:34 +02:00
Miguel de Icaza
60fa2525fb
[build] the csproj files can now do a full class libraries build
2014-05-25 00:47:09 -04:00
Miguel de Icaza
b5da7cd80d
[System.Runtime.Remoting] Build if DBEUG Is defined
2014-05-25 00:41:55 -04:00
Miguel de Icaza
a7eace18c1
[build] MSBuild setup: Add support for -keyfile and -delaysign, thanks to Marek Safar for the pointer
2014-05-25 00:33:21 -04:00
Miguel de Icaza
ef0fdb0b2f
[build] Drop AssemblyInfo from the sources in Mono.Cecil.Mdb
2014-05-25 00:32:18 -04:00
Miguel de Icaza
99574754c1
[build] Fix Mono.Cecil.Mdb build with xbuild
2014-05-25 00:07:57 -04:00
josedonizetti
e30d3314e2
validate if attribute is defined before check IsAny
2014-05-24 21:08:09 -04:00
Marek Safar
e1f9b1e084
Revert "[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile"
...
This reverts commit 20872b3abe to fix the build
2014-05-24 08:24:42 +02:00
Miguel de Icaza
20872b3abe
[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile
...
Currently the flag is passed on the command line, but this is
problematic for us since our xbuild implementation does not seem to support
the attribute that generates the /keyfile: argument
2014-05-23 22:40:24 -04:00
Rolf Bjarne Kvinge
8f478d0861
Fix TimeZoneTest to build properly with new-style XI assemblies.
2014-05-24 02:18:39 +02:00
Rolf Bjarne Kvinge
8722bb5e9c
Remove unused namespace from LazyTest.cs
2014-05-24 02:18:39 +02:00
Miguel de Icaza
f7c32488e8
[build] Fix the reference to ecma.pub
2014-05-23 18:03:46 -04:00
Rodrigo Kumpera
36a382c794
[runtime] Don't leak memory if the custom attribute constructor throws.
2014-05-23 17:34:31 -04:00
Rodrigo Kumpera
8565d8dc35
[runtime] Add regression tests for custom attribute loader errors.
2014-05-23 17:34:31 -04:00
Rodrigo Kumpera
25f6affd89
[reflection] Harder the custom attribute code against common type load errors.
...
Replace silent failures with exceptions.
2014-05-23 17:34:31 -04:00
Rodrigo Kumpera
4d56422960
[runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc'd strings.
...
The use case for this function compared to the one that take MonoClass/MonoImage is for lookups
and the failed names are usually freshly alloc'd.
Fix a leak in class.c usage of mono_error_set_type_load_name.
2014-05-23 17:34:30 -04:00
Rodrigo Kumpera
5e905069c4
[reflection] Do proper error handling in more cases.
...
Remove all internal usages of mono_custom_attrs_construct and replace with mono_custom_attrs_construct_by_type
that takes a MonoError.
Introduce mono_custom_attrs_get_attr_checked and replace usage of the old one where it's needed.
2014-05-23 17:34:29 -04:00
Miguel de Icaza
3599b97b57
[build] Fresh new csproj files based on the updated build system.
2014-05-23 17:15:53 -04:00
Miguel de Icaza
e5428041b2
[build] Fix location of the key file
2014-05-23 17:15:53 -04:00
Miguel de Icaza
b9501aa28d
[Managed.Windows.Forms] Disable TRACE code, since it is broken
2014-05-23 17:15:52 -04:00
Miguel de Icaza
965220e1ef
[build] The ecma.pub is one directory above
2014-05-23 17:15:52 -04:00
Miguel de Icaza
56dc31d943
[msvc/scripts] Update order.xml file with Makefile changes, update generator
2014-05-23 17:15:52 -04:00
Miguel de Icaza
ae90d07888
[build] Ensure that staged build directories are set on LOCAL_MCS_FLAGS
...
The LOCAL_MCS_FLAGS are passed to the compiler before the standard
directory for the profile. This is important both for correctness,
and also assists the solution generator, since we can now precisely
determine which intermediate project must be referenced.
2014-05-23 17:15:52 -04:00
Marek Safar
db92449f41
Fix warnings
2014-05-23 21:27:38 +02:00
Marek Safar
1eac449e69
[system] Add SendMailAsync methods
2014-05-23 21:27:38 +02:00
Miguel de Icaza
8eade95cf8
[mscorlib] Since .NET 4.5 some of the System.IdentityModel now is in the core, add this class
2014-05-23 15:11:32 -04:00
Jonathan Pryor
d2b5279484
[Mono.Posix] Support OS X ENOATTR
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=19991
The original Mono.Unix.Native.Errno design used the Linux <errno.h>
constants and values...largely because it was easy.
As it turns out, this is also incomplete. The getxattr(2) defines
ENOATTR as a possible error code. On Linux, ENOATTR is an alias for
ENODATA [0]. On OS X, ENOATTR is _not_ an alias. Furthermore, since
ENOATTR is not a Linux errno value (it's an alias!),
Mono_Posix_ToErrno() couldn't check for the native ENOATTR value, so a
Syscall.GetLastError() call after a failing Syscall.getxattr() would
fail with a System.ArgumentOutOfRangeException:
$ csharp -r:Mono.Posix.dll
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> using Mono.Unix.Native;
csharp> byte[] value;
csharp> Syscall.getxattr(".", "test", out value);
-1
csharp> Syscall.GetLastError();
System.ArgumentOutOfRangeException: Current platform doesn't support this value.
Parameter name: value
93
at Mono.Unix.Native.NativeConvert.ThrowArgumentException (System.Object value) [0x00000] in <filename unknown>:0
at Mono.Unix.Native.NativeConvert.ToErrno (Int32 value) [0x00000] in <filename unknown>:0
at Mono.Unix.Native.Stdlib.GetLastError () [0x00000] in <filename unknown>:0
The fix is to add an Errno.ENOATTR field [1].
The complication is one of what enum value to use: at present, the
Errno values are based on the Linux values. In the case of ENOATTR
(and others), there is no Linux value. Meanwhile, there is the
possibility of additional Linux error values; how do we future proof
ourselves?
This isn't a perfect solution, but it should punt the problem down the
road a bit: Errno is an `int` enum, and thus has large range. To
support the OS X values, we add 1000 to the OS X error value.
/* OS X: <errno.h> */
#define ENOATTR 93 /* Attribute not found */
// C# Errno enum:
public enum Errno : int {
// ...
ENOATTR = 1093,
}
This gives us 0..1000 for POSIX+Linux error codes, 1000..2000 for OS X
specific error codes, and as new platforms require additional support
they can all start at multiples of 1000.
Hopefully no single *nix platform will add more than 1000 error codes...
[0]: http://linux.die.net/man/2/getxattr
[1]: Related part of the fix: add all the OTHER <errno.h> values that
OS X includes but weren't included in the Errno enum.
2014-05-23 13:45:10 -04:00
Sebastien Pouliot
4bc2c11690
Revert "[system] Add new StreamWebSocket.cs file to the mobile profile list of sources"
...
This reverts commit 00ecc7392d .
2014-05-23 13:26:34 -04:00
Atsushi Eno
103f398dcc
[xbuild] fix NET_2_0 build.
2014-05-24 01:28:00 +09:00
Atsushi Eno
8db521d6f3
[xbuild] implement ToolLocationHelper.GetPathToStandardLibraries().
2014-05-24 01:27:59 +09:00
Miguel de Icaza
0a806a14eb
[build] Add new project files based on the new staged build
2014-05-23 11:51:20 -04:00
Miguel de Icaza
44f6d288ad
[build] Use LOCAL_MCS_FLAGS to give preference to the intermediate dir in System builds, and do not use temporary files for corlib builds
2014-05-23 11:35:20 -04:00
Marek Safar
a6dccdaf6d
Revert "Merge pull request #981 from methane/websocket"
...
This reverts commit 62cc262196 , reversing
changes made to c1028cf912 .
2014-05-23 17:24:45 +02:00
Miguel de Icaza
ec3fb70d33
[System] Fix parsing of IPv6 addresses (bug #18574 )
...
From Dick Porter:
The IPv6 address parser misses some syntax errors, and can become confused by
addresses that at first glance look IPv4 compatible. The attach patch contains
the following fixes:
Don't fail to parse an address if we mistakenly thought it was IPv4 compatible
or mapped, just treat it as IPv6.
Fix IPv4-compatible and mapped address formatting in ToString().
Fix parsing of colons - specifically occurrences of ':::'.
Make sure blocks of digits are no longer than 4 characters.
Add some more parsing tests to Mono's NUnit test suite.
Add a NUnit test for bogus IPv6 addresses.
2014-05-23 11:05:09 -04:00
Miguel de Icaza
bed972e170
Update order.xml
2014-05-23 11:05:09 -04:00
Sebastien Pouliot
dead6f36cf
[system] Small optimization for Xamarin.Mac (where we know we're executing on a Mac)
2014-05-23 09:15:26 -04:00
Atsushi Eno
44f97b131b
[msbuild] implement CodeTaskFactory i.e. inline tasks.
2014-05-23 21:19:29 +09:00
Atsushi Eno
28f7a73690
[MS.Build] fix some TaskFactory related bugs uncovered by CodeTaskFactory impl.
...
- ITaskFactory could return null, so check the return value.
- UsingTask descendants could have property references, so use ExpandString.
- TaskBody was not appropriately passed to internal structure.
2014-05-23 21:19:28 +09:00
Atsushi Eno
2e16d9bb6a
[MS.Build] fix default build targets to not return empty list in Project.
...
And since the code is almost the same as existing ProjectInstance one, just
make it identical. (Should be unified, but depends on members, hence TODO.)
2014-05-23 21:19:27 +09:00
Martin Baulig
55ef36a296
Small fix.
2014-05-23 13:15:25 +02:00
Martin Baulig
c30f3763a3
Revert "Fix WebProxy.BypassProxyOnLocal logic."
...
This reverts commit 3f7ad8f457 .
WebProxy.BypassProxyOnLocal is really broken! There seems to be no
way of actually bypassing a proxy on local connections.
2014-05-23 13:13:48 +02:00
Alex Rønne Petersen
08aee65d94
Merge pull request #1052 from sethjackson/master
...
Don't define _XOPEN_SOURCE on OpenBSD.
2014-05-23 12:49:28 +02:00
Marek Safar
f93fa0d582
Fix tests not to hang on failure
2014-05-23 11:15:37 +02:00
Marek Safar
7a415e3919
[mcs] Expand type parameter member change using effective base type
2014-05-23 10:57:48 +02:00
Martin Baulig
3f7ad8f457
Fix WebProxy.BypassProxyOnLocal logic.
2014-05-23 10:22:44 +02:00
Marek Safar
d737b63512
[mcs] Handling of nested effective base classes
2014-05-23 09:27:58 +02:00
Marek Safar
051ffdfbde
Merge pull request #1051 from josedonizetti/bug11916-DataContractSerializer
...
add IsAny=true support for DataContractSerializer
2014-05-23 06:44:42 +02:00
Seth Jackson
256ec5591a
Don't define _XOPEN_SOURCE on OpenBSD. With _XOPEN_SOURCE defined mincore() is not visible.
...
This change is licensed under the MIT license.
2014-05-23 00:06:44 -04:00
Miguel de Icaza
f3237b8eb1
[build/msbuild] Tool resolves assemblies based on exact match, not random-last
2014-05-22 23:04:22 -04:00
Jose Donizetti
1690b16a73
add IsAny=true support for DataContractSerializer
2014-05-22 23:01:16 -04:00
Zoltan Varga
cede1a3a6a
[arm64] Fix the definition of DWARF_PC_REG, it should be x30 (lr).
2014-05-22 23:49:47 +02:00
Rolf Bjarne Kvinge
a4738c64b0
Fix casing in monotouch_Mono.CSharp.dll.sources
2014-05-22 15:18:29 +02:00
Enrico Sada
920c4fbc3c
fix V547 Expression 'ccw->ref_count >= 0' is always true. Unsigned type value is always >= 0.
2014-05-22 09:51:25 +02:00
Enrico Sada
8251d2b335
fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
2014-05-22 09:51:14 +02:00
Enrico Sada
759115c188
fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0.
2014-05-22 09:50:56 +02:00
Enrico Sada
a36b6a47ac
fix V595 The 'method' pointer was utilized before it was verified against nullptr. Check lines: 302, 303.
2014-05-22 09:48:03 +02:00
Enrico Sada
9e566344cf
fix V595 The 'amodule' pointer was utilized before it was verified against nullptr
2014-05-22 09:45:51 +02:00
Atsushi Eno
0be292818e
Merge pull request #924 from marcusva/master
...
- Use the correct absolute path for relative paths within a rooted path
2014-05-22 16:40:17 +09:00
Marek Safar
e00a400b3b
Merge pull request #164 from LogosBible/AppSettingsFileChanges
...
Use the configuration file path directory for AppSettings File directory
2014-05-22 09:13:56 +02:00
Alex Rønne Petersen
abf8af6b78
Merge pull request #1045 from sethjackson/master
...
kinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.
2014-05-22 09:01:02 +02:00
Alex Rønne Petersen
14fc4325f6
Merge pull request #1046 from sethjackson/null-gc
...
Allow building with no GC again.
2014-05-22 08:59:55 +02:00
Marek Safar
c9f4ae33e0
[mcs] Emit better code for null coalescing operator with nullable return type. Fixes #19702
2014-05-22 08:38:42 +02:00
Seth Jackson
2bcf7bdaea
Allow building with no GC again.
...
These changes are released under the MIT license.
2014-05-21 17:02:35 -04:00
Seth Jackson
11973b1b7e
kinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.
...
This change is released under the MIT license with permission from the
original author Robert Nagy.
2014-05-21 16:54:18 -04:00
Alex Rønne Petersen
02d6d971f3
Merge pull request #1049 from ranma42/fix-check-gdi-sibling
...
Fix checking when libgdi is configured as "sibling"
2014-05-21 21:09:00 +02:00
Andrea Canciani
c9304c4262
Fix checking when libgdi is configured as "sibling"
...
When libgdiplus is configured as sibling, it is available in the
libgdiplus_loc path. This path was added to runtime/mono/config, but
it was later overridden by the prefix-based path.
Using the same approach as for libMonoPosixHelper fixed the lookup of
the library (performed, for example, when testing
MonoTests.System.Drawing without installing libgdiplus).
This change is released under the MIT license.
2014-05-21 19:28:20 +02:00
Martin Baulig
f7f1bb819c
[Http]: Cleanup and simplify the ServicePoint's connection group list.
2014-05-21 18:47:41 +02:00
Alex Rønne Petersen
3598b336cf
Merge pull request #1032 from miguelzf/master
...
[Jay] Fix memory corruptions: out-of-bounds and uninitialized value.
2014-05-21 17:59:34 +02:00
Alex Rønne Petersen
da1f37b001
Merge pull request #1044 from ranma42/fix-icc-build
...
Fix building mono with icc
2014-05-21 17:10:31 +02:00
Andrea Canciani
239cad7f18
Fix building mono with icc
...
When compiling mono with icc (ICC) 14.0.0 20130728 the build fails on
CC libmonoruntimesgen_la-sgen-stw.lo
with the following error:
Assembler messages:
Error: suffix or operands invalid for `lea'
Apparently icc (or the assembler) dislikes the rip-based LEA
operation. This can be worked around by manually assembling the
instruction and replacing it with the corresponding byte sequence.
This change is released under the MIT license.
2014-05-21 14:18:56 +02: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
Marek Safar
36f7dd787f
[mcs] Add explicit array conversion involving type parameters. Fixes #18474
2014-05-21 12:50:55 +02:00
Marek Safar
7a550bd91a
[mcs] Undo implicit object prefix for cref interface references
2014-05-21 12:50:55 +02:00
Atsushi Eno
348fa2580e
[MS.Build] fix support for MSBuildExtensionsPath* to try more than one paths.
...
So, it seems that where MSBuildExtensionsPath* is evaluated should be likely
evaluated multiple times, and find actually matching files in one of those.
F# build .targets file expects that.
Since it is almost impossible to assume in which usage scenario it is going
to be evaluated multiple times (those properties can be used anywhere by
simple $(...) syntax), it limits the attempts only for Import() so far.
Old xbuild actually does so too. That way, the particular F# issue is fixed.
2014-05-21 19:03:33 +09:00
Atsushi Eno
b5349f25ff
[MS.Build] Fix metadata item parsing wrong indexing.
2014-05-21 19:03:33 +09:00
Marek Safar
35a8179e1d
[mcs] Explicit type parameter conversion to generic parameter
2014-05-21 10:19:25 +02:00
Rodrigo Kumpera
f304ca8be1
[GC] Make size dependent vars use size_t instead of glong or int.
...
This opens the door for huge nurseries.
2014-05-21 00:03:52 -04:00
Miguel de Icaza
b8799913fa
[vsbuild] Update Makefiles to not generate the VS metadata for the 'basic' profile
2014-05-20 22:31:49 -04:00
Miguel de Icaza
8eb943998c
[build] Kill OpenSystem.C from the Makefile
2014-05-20 22:31:44 -04:00
Miguel de Icaza
a6eaaffb4c
[build] Revert change in Facades parellism patch, since it works great for builds, but not for other recursive targets (ie: update-csproj, maybe others
2014-05-20 22:30:29 -04:00
Miguel de Icaza
783b24aeac
[build] Kill OpenSystem.C, nobody ever used this
2014-05-20 22:17:14 -04:00
Miguel de Icaza
e62f341e57
[build] Fix the build for NET_4_5 (and maybe other profiles) from the pull request 981
2014-05-20 22:04:29 -04:00
Martin Baulig
e49d56e8d1
[Http]: Cleanup chained async operations; bug #19161 .
2014-05-21 02:26:48 +02:00
Sebastien Pouliot
00ecc7392d
[system] Add new StreamWebSocket.cs file to the mobile profile list of sources
2014-05-20 17:29:12 -04:00
Sebastien Pouliot
8f51223150
[facades] Build the facades assemblies defined for the profile being built
2014-05-20 16:57:12 -04:00
Zoltan Varga
f29c547b65
[sdb] Make sure the ids of unloading assemblies is the same in the ASSEMBLY_UNLOAD event as it was in the ASSEMBLY_LOAD event.
2014-05-20 21:28:31 +02:00
Zoltan Varga
75a7c3219c
[runtime] Clean up an #ifdef block.
2014-05-20 20:01:23 +02:00
Marek Safar
62cc262196
Merge pull request #981 from methane/websocket
...
[websocket] Implement HttpListenerContext.AcceptWebSocketAsync()
2014-05-20 19:56:13 +02:00
Marek Safar
c1028cf912
[corlib] Fix public api
2014-05-20 19:35:25 +02:00
Zoltan Varga
628aa55e74
[llvm] Update to the llvm backend to work with llvm a82b09c3a3efbfaf2ce39adc113f9a5458cde398.
2014-05-20 19:09:31 +02:00
Sebastien Pouliot
d6eaeb508a
[System.Core][ios] Fix value for ENAMETOOLONG (typo?) internal constant in System.IO.MemoryMappedFiles.MemoryMappedFile
2014-05-20 11:24:40 -04:00
Marek Safar
b7adbe3140
[corlib] Add Guid hex format parsing with whitespaces. Fixes #19915
2014-05-20 16:37:48 +02:00
Zoltan Varga
dbb6cfa908
[llvm] Detect the cpu architecture and pass it to EngineBuilder, recent llvm versions require this to be able to support sse etc.
2014-05-20 15:00:35 +02:00
Marek Safar
feaba5a270
[mcs] Use correct parent type in partial type base context
2014-05-20 14:05:38 +02:00
Alexis Christoforides
256e54e232
Merge pull request #1040 from ermshiperete/bug-xamarin-19856
...
[MWF] Fix opacity of form (#19856 )
2014-05-20 07:22:56 -04:00
Marek Habersack
0c62f05785
Add a missing assembly name to full type specification.
...
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=19839
2014-05-20 10:13:25 +02:00
Atsushi Eno
957b3a4a5d
[MS.Build] add internal expression debugging helper strings.
2014-05-20 16:20:56 +09:00
Atsushi Eno
79492ddd92
[MS.Build] process Choose/When/Otherwise elements (they were left forgotten).
2014-05-20 16:20:55 +09:00
Atsushi Eno
375c8f755c
[ms.build] remove unused code.
2014-05-20 16:20:54 +09:00
Marek Safar
80f19dc90f
[xbuild] Add ReferenceOutputAssembly filter
2014-05-20 07:12:15 +02:00
Marek Safar
eb35c311f1
Remove 2.0 defines
2014-05-20 07:12:15 +02:00
Miguel de Icaza
28df1505c6
[build] Record extra library builds for our Visual Studio input files
...
Added local targets (csproj-local) to all the assemblies that have
staged builds to dump their build information for the underlying
dependencies.
This information is needed to create the new Visual Studio csproj
files.
This commit also updates the collected build metadata from running:
make update-csproj
make package-inputs
As described in msvc/scripts/README
2014-05-19 22:55:00 -04:00
Joao Matos
de46a3dd58
Added System.IO.Compression implementation based on SharpCompress.
2014-05-19 22:24:41 +01:00
Joao Matos
d4c8e67b63
Added SharpCompress Zip archive implementation.
...
This copy is based on our own fork at mono/sharpcompress.
2014-05-19 22:24:37 +01:00
Rodrigo Kumpera
13a26cd03e
[corlib] Fix the 2.0 testsuite.
2014-05-19 10:19:26 -04:00
Atsushi Eno
84892f7051
[MS.Build] add "OS" _undocumented_ predefined property.
...
It is used by Xamarin.Android to determine which compiler to use (csc or smcs)
and lack of this property simply caused Csc build task failure.
2014-05-19 19:38:52 +09:00
Atsushi Eno
e29bf81fe6
[MS.Build] now ITaskItem impl. in BuildEngine4 behaves consistent with MS.Build.Tasks.
...
To be precise, now the implementation returns ItemSpec for ToString().
WriteLinesIntoFile task writes ITaskItem[] lines into a file, without calling
ItemSpec.
Maybe it is better to fix Tasks.dll but I'm unsure about xbuild compatibility.
This missing ToString() override caused target framework monikor output
to become invalid source file (i.e. it used to write ItemSpec as code(!) but
this ITaskItem impl. in BuildEngine4 just wrote its type name as .ToString()
result).
2014-05-19 17:54:59 +09:00
Marek Safar
c2d39344f3
[System.Net.Http] Parsing productinfo like headers with missing version. Fixes #19881
2014-05-19 10:03:07 +02:00
Marek Safar
9543a375a7
[mcs] Add handling for special case cref types/members
2014-05-19 10:03:07 +02:00
Marek Safar
fcd79ef5c1
[xbuild] Add missing apis
2014-05-19 10:03:07 +02:00
Marek Safar
9036c4c51a
[xbuild] Add string to char[] argument conversion
2014-05-19 10:03:07 +02:00
Miguel de Icaza
dad7d32075
[build] System.Configuration: fix signatures.
...
We must use the secxml library directory to reference System, not
bare.
The bare build does not contain a full signature for some interfaces
(there is a using XmlNode = object in a few interfaces that
System.Configuration depends on).
So System.Configuration must reference the System that has been
compiled with XML support.
2014-05-18 23:11:29 -04:00
Zoltan Varga
c1f711e373
Merge pull request #1042 from xplicit/fixdocs
...
[docs] added mising closing h4 tag
2014-05-18 12:41:53 +02:00
xplicit
cba0492522
[docs] closing h2 tag
2014-05-18 07:43:13 +07:00
xplicit
bb90bc9e4d
added closing h4 tag
2014-05-18 05:23:49 +07:00
Zoltan Varga
2537c96476
[sdb] Avoid waiting for an answer for the START_BUFFERING/STOP_BUFFERING commands.
2014-05-17 23:39:22 +02:00
Zoltan Varga
13e32b3fed
[sdb] Add support for client side packet buffering.
2014-05-17 23:27:46 +02:00
Zoltan Varga
e0d791f7a5
[sdb] Add ability to buffer reply packets in the wire protocol when running on high latency links like usb. Uses a pair of START_BUFFERING/STOP_BUFFERING protocol commands.
2014-05-17 21:45:19 +02:00
Miguel de Icaza
0f5cc494a7
[build/Facades] Parallelize the Facades directory build
...
The parallelization is done by overriding the default "all" target
and instead of using the serial subdirectory processing that goes
over the SUBDIR and xx_SUBDIR rules, we turn the list of
subdirectories into the name of the target, for example:
System.Collections.Concurrent
becomes:
../../class/lib/net_4_5/Facades/System.Collections.Concurrent.dll
Then a pattern is added to handle that rule:
$(target_dir)/%.dll:
This allows the build to be parallized.
2014-05-16 21:48:47 -04:00
Rodrigo Kumpera
1531d4f34d
[System] Throw IOE in more cases when dealing with an invalid Process object. Fixes #19864
2014-05-16 16:30:56 -04:00
Rodrigo Kumpera
17f8e4142f
[corlib] Fix ClaimsIdentity default ctor.
2014-05-16 16:04:22 -04:00
Miguel de Icaza
a3de5976ed
Merge pull request #1041 from mono/staged-cyclic-builds
...
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies. This deals directly with
the following cycle:
System.dll requires:
System.Configuration.dll
Mono.Security.dll
System.Xml.dll
They all require System.dll to be built
System.Xml requires:
System.dll
System.Configuration.dll
System.Security.dll requires:
System.dll
Mono.Security.dll
System.Xml.dll
Principle
=========
The patch works by directing the build infrastructure to place
intermediate build steps on their own directory. For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".
The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.
The third time is the final build, and that one ends in the profile
directory.
The same principle is applied to System.Xml.
Better Dependency Tracking
==========================
To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies. This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.
Bug fixes
=========
We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support. This patch introduces back the changes to build System.Xml
in two steps.
This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).
Details
=======
library.make:
Introduces a new "the_libdir_base" which is the raw directory
where the final output will go. This points to the same location
that libdir_base previously pointed to.
The existing libdir_base is modified to contain an optional
"intermediate" directory, where intermediate builds can be
placed.
2014-05-16 15:48:41 -04:00
Eberhard Beilharz
2614e55bee
[MWF] Fix opacity of form ( #19856 )
2014-05-16 18:50:37 +02:00
Miguel de Icaza
89e0b257d4
Merge pull request #1039 from joelmartinez/master
...
[monodoc] removed erroneous instance of 'FOO' string.
2014-05-16 12:13:53 -04:00
Miguel de Icaza
39ad7e3786
Merge pull request #943 from ermshiperete/bug-novell-325669
...
[MWF] Implement multi-display support on Linux (Fixes #325669 )
2014-05-16 10:54:22 -04:00
Stephen McConnel
809bd8c9b6
[MWF] Fix ComboBox list to not display offscreen ( #15462 )
...
The fix mimics the behavior of Windows/.NET.
2014-05-16 16:21:59 +02:00
Stephen McConnel
c4ce5cce49
[MWF] Fix Screen.FromRectangle ( #8271 )
...
The Screen.FromRectangle method was too simple minded. It did not try to
find the best match for a screen when the system has more than one screen.
The new implementation makes at least some effort to find the closest
screen with the most overlap with the rectangle.
2014-05-16 16:21:58 +02:00
Eberhard Beilharz
e1b7ecdb7b
[MWF] Implement multi-display support on Linux ( Fixes #325669 )
...
The number of displays and sizes can be retrieved with the help of
libXinerama. The implementation was done in a way that is backwards
compatible, so on non-Linux systems or when libXinerama is not
available the behavior will be the same as before.
Also fixed the implementation of FormStartPosition.CenterScreen to
bring up the form centered on the current display (with the current
display being either the screen the top left corner of the owner
form is on, or if there is no owner the screen that has the mouse
pointer). This fixes Novell bug #325669 on Linux
(https://bugzilla.novell.com/show_bug.cgi?id=325669 ).
2014-05-16 16:21:51 +02:00
Joel Martinez
4de2bc52c5
[monodoc] removed erroneous instance of 'FOO' string.
2014-05-16 09:52:14 -04:00
Atsushi Eno
4930f612ae
[MS.Build] for item metadata access expression, remove surrounding ' and ".
...
The test case would explain what is not desired there.
2014-05-16 22:00:05 +09:00
Atsushi Eno
554dc2983e
[MS.Build] more cleanup (remove debugging, kill extra code).
2014-05-16 14:50:59 +09:00
Miguel de Icaza
524f732a6d
Merge pull request #993 from ancailliau/fix-datacontract-json-serialization
...
[Fix] DataContractJsonSerializer fails serializing/deserializing collections
2014-05-15 17:34:53 -04:00
Miguel de Icaza
bf2e5e58df
Merge pull request #925 from ermshiperete/novell-bug-602934
...
[Printing] Fix for Novell bug #602934 : improve values that printer settings return
2014-05-15 17:27:39 -04:00
Miguel de Icaza
4f61b92ce0
Merge pull request #942 from ermshiperete/MessageBoxBugs
...
[MWF] Improvements to MessageBox width
2014-05-15 17:26:13 -04:00
Miguel de Icaza
8a28f5d152
Merge pull request #948 from ermshiperete/bug-xamarin-2394
...
[MWF] Fixes related to Height and MinimumHeight in DataGridView
2014-05-15 17:22:31 -04:00
Miguel de Icaza
96edd46e16
Merge pull request #926 from ermshiperete/novell-bug-674098
...
[MWF] Fix hang if clipboard source application closes down
2014-05-15 17:21:55 -04:00
Mika Aalto
ef4ed1a61f
Removed unneeded NET_2_0 ifdefs
2014-05-15 17:17:44 -04:00
Mika Aalto
ccd93fc95a
Added implementation and unit tests for GetFieldValue, GetStream and GetTextReader methods in DbDataReader class.
...
Used https://github.com/matthid/mono/commit/51e808b3836e9ba32901762ea23941ee60b2746d as reference.
2014-05-15 17:17:44 -04:00
Miguel de Icaza
69cd9d1b14
Merge pull request #954 from ermshiperete/bug-xamarin-8907
...
[MWF] Fix TableLayoutPanel layout bug (#8907 )
2014-05-15 17:13:21 -04:00
Miguel de Icaza
48496cae2b
Merge pull request #952 from ermshiperete/bug-xamarin-2912
...
[MWF] Fix AutoSize behavior of FlowLayoutPanel (#2912 )
2014-05-15 17:12:51 -04:00
Miguel de Icaza
b60bbdc365
Merge pull request #951 from ermshiperete/bug-xamarin-2462
...
[MWF] Fix clipping of last line of dropdown (#2462 )
2014-05-15 17:11:46 -04:00
Miguel de Icaza
adc40c3f99
Merge pull request #950 from ermshiperete/bug-xamarin-2787
...
[MWF] Release capture when clicking LinkLabel (Fixes #2787 )
2014-05-15 17:11:14 -04:00
Miguel de Icaza
6bc565c1f7
Merge pull request #949 from ermshiperete/bug-novell-463149
...
[MWF] Fix text position on buttons (#463149 )
2014-05-15 17:08:54 -04:00
Miguel de Icaza
80b9d3ac18
Merge pull request #1038 from ermshiperete/bug-xamarin-19818
...
[MWF] Don't try to remove non-child control (#19818 )
2014-05-15 16:10:21 -04:00
Miguel de Icaza
e0137c416b
Drop mono.web.pc
2014-05-15 15:54:18 -04:00
Rodrigo Kumpera
a9b07ba04b
[runtime] Fix hazard pointer usage in the suspend sequence.
...
We now have a pair of functions to match mono_thread_info_safe_suspend_sync.
They should be used instead of mono_thread_resume as they do the right thing
WRT to hazard pointers.
2014-05-15 15:52:55 -04:00
Rodrigo Kumpera
2285b4c10f
[runtime] Fix a hazard pointer leakage in mono_thread_info_resume.
...
mono_thread_info_lookup leaves the current value on hazard pointer 1,
so all callers must clean it afterwards. This was not done in all cases
by mono_thread_info_resume.
2014-05-15 15:52:54 -04:00
Rodrigo Kumpera
eaa625e707
[runtime] Pass the MonoThreadInfo explicitly to mono_thread_state_init_from_handle to avoid nested hazzard point usage.
...
This function was called from code that uses hazard pointers, so their values could get overridden.
Besides that, we did not clean up the hazard pointer table afterwards, which is wrong too.
2014-05-15 15:52:54 -04:00
Miguel de Icaza
34b0d2d87f
[Mono.Web] Further steps to kill Mono.web, this time the pkg-config files
2014-05-15 15:45:01 -04:00
Alexis Christoforides
60dc549a32
[io-layer] Added missing handle type in _wapi_handle_struct_size...
2014-05-15 15:27:55 -04:00
Miguel de Icaza
3cd9b7e003
Merge pull request #1034 from joelmartinez/msdoc-import2
...
Second pass of Microsoft Documentation import
2014-05-15 14:48:07 -04:00
Marek Safar
563a83943e
[System.ComponentModel.DataAnnotations] Add UrlAttribute type.
2014-05-15 19:44:20 +02:00
Alexis Christoforides
509ce4486f
[io-layer] Fixed error condition in _wapi_handle_struct_size.
2014-05-15 13:27:22 -04:00
Zoltan Varga
8d9e02de31
[runtime] Fix decoding of jagged arrays in custom attributes. Fixes #19825 .
2014-05-15 19:27:10 +02:00
Marek Safar
c065a43742
Fixes 60d7997e02 commit
2014-05-15 19:25:37 +02:00
Miguel de Icaza
d5c37b6a12
[System.Security.Claims] Add ClaimsPrincipal
2014-05-15 12:54:16 -04:00
Miguel de Icaza
2aed7bc797
[System.Security.Claims] Add basic support for Claims
2014-05-15 12:54:16 -04:00
Marek Safar
9a252dffbc
[xbuild] Property Functions implementation
2014-05-15 17:45:39 +02:00
Eberhard Beilharz
29d8e275d5
[MWF] Don't try to remove non-child control ( #19818 )
...
When removing a control from a controls collection we have to
check that the control is part of the collection. Otherwise
we shouldn't do anything.
2014-05-15 17:28:57 +02:00
Eberhard Beilharz
2b1086994f
[MWF] Add unit test for #19818
2014-05-15 17:21:08 +02:00
Alexis Christoforides
58834ddfd6
[io-layer] Precise memcpy of handle structs.
...
First issue found by AddressSanitizer.
2014-05-15 10:57:11 -04:00
Atsushi Eno
60d7997e02
[MS.Build] cleanup ITaskItem evaluation related old code.
2014-05-15 23:55:20 +09:00
Atsushi Eno
16c9f61199
[MS.Build] now ITaskItems are collected while evaluating expression and metadata is filled later.
...
It is kind of reverting previous implementation of item metadata for expression.
Code cleanup should follow.
2014-05-15 23:55:19 +09:00
Atsushi Eno
89417f1bef
[MS.Build] skip null string entry as input to string.Join().
2014-05-15 23:55:19 +09:00
Atsushi Eno
2091b968fd
[msbuild] ongoing ITaskItem input parameter handling improvements.
...
Right now all the input parameters are computed based on string, and any
metadata items are simply chopped out when it is passed to a Task.
To fix this, we need to replace ExpandString() use with more complicated
evaluator that takes ITaskItem into consideration.
(It is not complete as of now; evaluation method needs to be replaced and
any regressions need to be fixed.)
2014-05-15 23:55:18 +09:00
Atsushi Eno
51034e6056
[MS.Build] more of the same (remove obsolete comment).
2014-05-15 23:55:18 +09:00
Atsushi Eno
ed2f443041
[MS.Build] remove extraneous expression evaluation code.
2014-05-15 23:55:17 +09:00
Atsushi Eno
45c5657c3e
[MS.Build] add another expression expansion test.
2014-05-15 23:55:17 +09:00
Atsushi Eno
35dda9dacd
[MS.Build] output item was dropping metadata after running task.
2014-05-15 23:55:16 +09:00
Ludovic Henry
962b14ae36
[mprof-report] Add counter filter when not in verbose mode
...
This will reduce the amount of printed counters in non verbose mode.
2014-05-15 09:50:16 -04:00
Ludovic Henry
858db2fabc
[mprof-report] Extract the counter key prefix of dump_counters_value
2014-05-15 09:50:15 -04:00
Zoltan Varga
bf4c6fe295
[runtime] Avoid calling mono_thread_current () in sgen_thread_detach (), since it can construct objects. Fixes #19755 .
2014-05-15 14:05:03 +02:00
Miguel de Icaza
effaf02382
Adjust the path for Mono.Security
2014-05-14 23:25:28 -04:00
Miguel de Icaza
4b3977ecef
Last of the cycles is gone
2014-05-14 23:06:19 -04:00
Jonathan Pryor
c4775a55b8
[mdoc] Fix NullReferenceException when importing @name attribute.
...
(Reported by directhex on #mono 2014-05-14 at 14:28 EDT.)
When importing Microsoft XML Documentation, if a //altmember/@name,
//exception/@name, or //permission/@name attribute is encountered then
mdoc will die with a NullReferenceException:
mdoc: System.NullReferenceException: Object reference not set to an instance of an object
at Mono.Documentation.MsxdocDocumentationImporter.ImportDocumentation (Mono.Documentation.DocsNodeInfo info)
at Mono.Documentation.MDocUpdater.MakeDocNode (Mono.Documentation.DocsNodeInfo info)
at Mono.Documentation.MDocUpdater.UpdateMember (Mono.Documentation.DocsNodeInfo info)
at Mono.Documentation.MDocUpdater.MakeMember (System.Xml.XmlDocument doc, Mono.Documentation.DocsNodeInfo info)
at Mono.Documentation.MDocUpdater.DoUpdateType2 (System.String message, System.Xml.XmlDocument basefile, Mono.Cecil.TypeDefinition type, System.String output, Boolean insertSince)
at Mono.Documentation.MDocUpdater.StubType (Mono.Cecil.TypeDefinition type, System.String output)
at Mono.Documentation.MDocUpdater.DoUpdateType (Mono.Cecil.TypeDefinition type, System.String basepath, System.String dest)
at Mono.Documentation.MDocUpdater.DoUpdateAssembly (Mono.Cecil.AssemblyDefinition assembly, System.Xml.XmlElement index_types, System.String source, System.String dest, System.Collections.Generic.HashSet`1 goodfiles)
at Mono.Documentation.MDocUpdater.DoUpdateAssemblies (System.String source, System.String dest)
at Mono.Documentation.MDocUpdater.Run (IEnumerable`1 args)
at Mono.Documentation.MDoc.Run (System.String[] args)
at Mono.Documentation.MDoc.Main (System.String[] args)
The cause of the NullReferenceException is due to inconsistent
checking: we check that _either_ `child.Attributes["cref"]` OR
`child.Attributes["name"]` is not null, and if one of them IS non-null
then we just grab `child.Attributes["cref"].Value`, which will throw a
NullReferenceException if the @name attribute was present but not the
@cref attribute.
The fix is to be consistent: once we grab an XmlAttribute, use the
already looked up XmlAttribute, don't re-look it up.
2014-05-14 16:09:10 -04:00
Zoltan Varga
4d388f07d4
[runtime] Avoid passing commands to lldb using the python api, it doesn't seem to work well in script files. Fixes #19732 .
2014-05-14 21:23:48 +02:00
Michael Hutchinson
cb33b94c85
[xbuild] Fix parsing messages with empty/blank origin
2014-05-14 14:22:01 -04:00
Zoltan Varga
abaceb24f4
[runtime] Fix Process.TotalProcessorTime becoming negative. Fixes #19739 .
2014-05-14 19:17:57 +02:00
Jonathan Pryor
4c45fe93a1
[system.net.http] Set version to 4.0.0.0 on MOBILE
...
For a variety of reasons, we need to bump the assembly version of
System.Net.Http.dll to "4.0.0.0" (from 2.0.5.0) on our MOBILE
profiles, lest much pain and suffering occur, e.g.:
http://motzcod.es/post/78863496592/portable-class-libraries-httpclient-so-happy
> For some reason at compile time the facades don’t kick in
> properly and it tries to use the NuGet version of
> System.Net.Http which has some specific functionality for
> older platforms. ...
> All you need to do is create a new app.config file in your
> Android and iOS project.
The need to create a custom app.config is ugly and something
to be avoided. Setting our System.Net.Http.dll version to
v4.0.0.0 removes the need for the custom app.config.
2014-05-14 13:02:10 -04:00
Jeffrey Stedfast
2ad48abb5d
Merge pull request #1037 from DavidKarlas/fixingParamName
...
Fixing regression from previous commit
2014-05-14 11:14:44 -04:00
David Karlaš
f8d7ff9249
[Mono.Debugger.Soft] Fixing regression from previous commit where type name instead of parameter name was used
2014-05-14 16:56:46 +02:00
Jeffrey Stedfast
a8f3f7754f
Merge pull request #1036 from DavidKarlas/cacheSdbLocking
...
[Mono.Debugger.Soft] Adding thread locking on access to tokensCache dictionary
2014-05-14 06:47:53 -04:00
David Karlaš
98137aad31
[Mono.Debugger.Soft] Adding thread locking on access to tokensCache dictionary
2014-05-14 06:41:43 +02:00
Jeffrey Stedfast
1495baabf4
Merge pull request #1035 from DavidKarlas/cacheSdb
...
[Mono.Debugger.Soft] More caching
2014-05-13 19:39:38 -04:00
Rodrigo Kumpera
701e303006
[runtime] Fix a pair of thread abort races in classic abort code.
...
The two races in question are:
In signal_thread_state_change we need to block the target from
further waiting before we signal it or otherwise it might miss the
broadcast asking it to wakeup.
In mono_thread_request_interruption we need to ensure we self interrupt
before returning from the signal handler.
2014-05-13 19:19:43 -04:00
Rodrigo Kumpera
56130af322
[jit] Unblock more critical signals at startup.
...
Unblock the GC suspend/restart signals and SIGCHLD. Those are required to make the GC
and process watching work.
The SIGCHLD issue was found on mod_mono that fork a process with that signal blocked.
The GC signals are been preemptively unblocked as we can never know what sort of sig mask
we'll start with.
2014-05-13 19:19:38 -04:00
Rodrigo Kumpera
dd77c09cae
[gc] Add mono_gc_get_restart_signal.
2014-05-13 19:19:36 -04:00
Rodrigo Kumpera
faef3b958e
[sgen] Implement mono_gc_get_restart_signal.
2014-05-13 19:19:30 -04:00
Rodrigo Kumpera
0d368edf3f
[boehm] Implement mono_gc_get_restart_signal.
2014-05-13 19:10:57 -04:00
Miguel de Icaza
c60aaa3af6
[System.IO.KeventWatcher] Introduce enums with the KEvent flags and constants
...
This merely introduces a more readable version of some of the constants that
were hardcoded on the source code.
There is a suspect value "20" that was on the original source code, that
stands for VNodeLink and VNodeExtend, but perhaps the original author
meant to say VNodeRename. In any case, it seems like we should catch all
of them (except for Revoke).
2014-05-13 18:11:57 -04:00
Zoltan Varga
a4f595060b
[bcl] Fix Process.PrivateMemorySize64 on osx, we now return task_baic_info.resident_size. Fixes #19738 .
2014-05-13 23:51:58 +02:00
Zoltan Varga
fc9d536e74
Clean up the usage of FILETIME structures, avoid accessing them as gint64 since that would lead to alignment problems. Hopefully fixes #19739 .
2014-05-13 23:40:48 +02:00
David Karlaš
d4c5107882
[Mono.Debugger.Soft] Caching tokens resolving
2014-05-13 20:20:46 +02:00
David Karlaš
f7b5ab5d9f
[Mono.Debugger.Soft] Using cached GetParameters when fetching GetLocals
2014-05-13 20:18:26 +02:00
Ludovic Henry
c162b07256
[mprof-report] Fix crash in case no counters values were sampled because of too short run time
2014-05-13 13:49:07 -04:00
Zoltan Varga
5f54be7af1
[sdb] Avoid stack overflows when a boxed vtype recursively references itself using fields. Fixes #18914 .
2014-05-13 18:32:12 +02:00
Paolo Molaro
aca422f6ac
[profiler] Add managed backtrace support to sampling mode for the signal-based impl.
2014-05-13 17:42:04 +02:00
Ludovic Henry
3fe3529a45
[mprof-report] Fix bug where no counters would be printed if --verbose or --counters-sort=category were not passed
2014-05-13 09:50:06 -04:00
Paolo Molaro
6e81eda0e4
[profiler] Filter more event types in mprof-report based on time (more xambug #11904 ).
2014-05-13 15:18:22 +02:00
Paolo Molaro
fa59a719c0
[profiler] In mprof-report fix handling of the time filter when starting from 0 (xambug #11904 ).
2014-05-13 13:20:50 +02:00
Paolo Molaro
d33d022896
[profiler] Emit statistical samples at 1 second intervals and fix race condition.
2014-05-13 12:59:06 +02:00
Ludovic Henry
f51237aa3e
Merge pull request #1020 from ludovic-henry/pr7-system-counters
...
[counters] Add system counters
2014-05-12 17:19:34 -04:00
Ludovic Henry
3b5527fa00
[counters] Edit according to Kumpera review
2014-05-12 16:37:20 -04:00
Joel Martinez
e9068ebf5b
[docs] documentation import for 'returns' elements.
2014-05-12 14:52:53 -04:00
Joel Martinez
891e93e1fe
[docs] Import of additional member documentation that contain generic parameteres
2014-05-12 14:52:48 -04:00
Joel Martinez
d4fcdb95b4
[docs] namespace documentation import.
2014-05-12 14:52:47 -04:00
Joel Martinez
b7293faf40
[docs] type parameter documentation impport.
2014-05-12 14:52:47 -04:00
Joel Martinez
aef2cb86cb
[docs] Additional parameter documentation import.
2014-05-12 14:52:47 -04:00
Marek Habersack
92f2a76fea
[system.web] remove some more remnants of Mono.Web.dll to fix Xamarin Studio activation
...
The section mapping system wasn't being initialized and used properly since some ifdefs had
been left in the source code. This caused a null reference exception while trying to perform
some HTTP requests and, as the result, broke Xamarin Studio activation.
2014-05-12 19:33:10 +02:00
Zoltan Varga
ca4ebb4f67
[arm] Add support for the new compare instructions used by native types.
2014-05-12 18:20:28 +02:00
Ludovic Henry
0b2833cca0
[decode] Edit according to Paolo review
2014-05-12 11:02:44 -04:00
Ludovic Henry
74e49cef38
[decode] Fix sample difference parsing
2014-05-12 11:02:43 -04:00
Ludovic Henry
8d9661bd1f
[decode] Add command line counters options parsing
2014-05-12 11:02:43 -04:00
Ludovic Henry
6e3fdba3fe
[decode] Add dump_counters
...
Two main way to dump :
- per Time : equivalent to a --stats but every seconds, useful to see the overall evolution of all counters
- per Category : print sample values grouped per category and counters, useful to see the evolution of a specific counter over time
2014-05-12 11:02:43 -04:00
Ludovic Henry
5ff75a022f
[decode] Add parsing for TYPE_SAMPLE_COUNTERS
2014-05-12 11:02:43 -04:00
Ludovic Henry
384e15f7c9
[decode] Add parsing for TYPE_SAMPLE_COUNTERS_DESC
2014-05-12 11:02:42 -04:00
Ludovic Henry
cbd1950ad9
[decode] Add functions to transform mono-counters enum to strings
2014-05-12 11:02:42 -04:00
Ludovic Henry
6552bcff44
[decode] Add functions to manipulate counters, counters_sections and counters_timestamps
...
This variables are respectively :
- the list of all counters
- the list of all counters grouped by sections
- the list of all counters groupes by sample value timestamps and sections
2014-05-12 11:02:42 -04:00
Ludovic Henry
8f60e4edc0
[decode] Add Counter, CounterValue, CounterList, CounterSection and CounterTimestamp structs
...
Counter : contains metadata concerning a counter. There is one in memory per counter index (right now ~100).
CounterValue : represent a sample value of a counter.
CounterList : it is a utility struct that contains a list of counters.
CounterSection : represent all the counters that are in this sections. Used only when we sort counters per category.
CounterTimestamp : represent all the counters that have a sample value at this timestamp. Used only when we sort counters per time.
2014-05-12 11:02:42 -04:00
Ludovic Henry
034494dd99
[decode] Add check for computer endianness on startup
2014-05-12 11:02:41 -04:00
Marek Safar
4fbb65ae05
[http] Convert string output data using BOM header when available. Fixes #19667
2014-05-12 15:24:57 +02:00
Marek Safar
8090e090cb
[system.net.http] Fix encoding of Content-MD5. Based on patch by nberardi. Fixes #19644
2014-05-12 13:26:04 +02:00
godFather89
b2a6ea31bd
When dynamically compiling script with a class with a nested class defined, the collection would be null.
...
Example:
class test
{
class asd
{
}
}
2014-05-12 05:29:51 -04:00
Zoltan Varga
068462ab14
[sdb] Fix a deadlock in the assembly cache invalidation code.
2014-05-12 00:47:00 +02:00
Zoltan Varga
8d56fb591f
[sdb] Avoid placing implicit sequence points at offsets where the IL stack is empty when using symbol file based sequence points. Fixes #13640 .
2014-05-11 23:08:13 +02:00
Zoltan Varga
475f989405
[jit] Add a test for lrem_un.
2014-05-11 21:53:36 +02:00
Zoltan Varga
a60a9fe456
[sdb] Fix the serialization of variables with address mode VTADDR.
2014-05-11 21:14:31 +02:00
Miguel de Icaza
6eb9bbd1d7
[build] Untangle the System.Web build, just like System and System.Core
2014-05-09 21:59:49 -04:00
Miguel de Icaza
140040fd65
[build] Drop most uses of LIBRARY_USE_INTERMEDIATE_FILE, clean debug targets
2014-05-09 21:16:52 -04:00
Zoltan Varga
079c2e126f
[eglib] Remove test-glib code, we don't have to maintain compatibility with glib any more. Fixes #19638 .
2014-05-10 03:07:37 +02:00
Michael Hutchinson
88cf2f1f92
[xbuild] Make tool output parsing more robust
...
It's now also much more compatible with the subtleties of
the MS .NET parser and includes a substantial test suite.
Fixes BXC19542 - Broken F# Error Reports
2014-05-09 19:59:51 -04:00
Zoltan Varga
04c2e60603
[runtime] Remove an assert from inner_start_thread () on win32 which is not needed.
2014-05-10 01:00:16 +02:00
Miguel Ferreira
ea6c2b2267
[Jay] Fix memory corruptions: out-of-bounds and uninitialized value.
2014-05-09 21:33:16 +01:00
Mark Probst
b9db795648
[tests] Fix a trivial consistency issue in a test case.
2014-05-09 13:12:26 -07:00
Marek Safar
fc061e3296
[xbuild] Implement WriteCodeFragment task
2014-05-09 18:53:12 +02:00
Marek Safar
fa5dd111c1
[xbuild] Add ItemDefinitionGroup basic handling
2014-05-09 18:53:12 +02:00
Marek Safar
f0ad5f592c
[xbuild] Evaluate Choose and PropertyGroup elements in order of appearance
2014-05-09 18:53:12 +02:00
Marek Safar
bb4d539b35
[xbuild] Simplify and speedup ConditionFunctionExpression
2014-05-09 18:53:12 +02:00
Miguel de Icaza
9adb22769b
[build] Prevent cyclic targets from being built in parallel
...
Since we are invoking make recursively to satisfy the dependencies
for any of the cyclic components, we need to inform make to not try
to parallelize any work on any of the cyclic dependencies, otherwise
multiple builds will execute building the same binary, and the result
will be truncated outputs.
For example, System's Makefile would launch all the parallel builds for
the dependencies:
$(secxml_libdir)/System.dll \
$(the_libdir_base)System.Xml.dll \
$(the_libdir_base)Mono.Security.dll \
$(bare_libdir)/System.dll
They could be launched in parallel, and in turn the makefiles on those
directories might try simultaneously to invoke recursively a component
that has not been built yet.
So we use .NOTPARALLEL to flag all the cyclic dependencies on a given
directory to instruct make to not run those in parallel.
2014-05-09 11:27:53 -04:00
Miguel de Icaza
366c13fc51
Drop the extra separator
2014-05-09 11:27:53 -04:00
Miguel de Icaza
8cb819d880
Use LOCAL_MCS_FLAGS to prepend the directories
2014-05-09 11:27:53 -04:00
Miguel de Icaza
7dcf097763
[System.Core] Add explicit cycle dependency tracking to System.Core
...
This patch is a continuation of the previous work on System to remove
the multi-stage build configuration in Mono's class libraries and avoid
the overwriting of assemblies in a multi-stage build setup.
2014-05-09 11:27:53 -04:00
Miguel de Icaza
e0e3f3cd4f
[build] Staged setup for building assemblies with cyclic dependencies
...
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies. This deals directly with
the following cycle:
System.dll requires:
System.Configuration.dll
Mono.Security.dll
System.Xml.dll
They all require System.dll to be built
System.Xml requires:
System.dll
System.Configuration.dll
System.Security.dll requires:
System.dll
Mono.Security.dll
System.Xml.dll
Principle
=========
The patch works by directing the build infrastructure to place
intermediate build steps on their own directory. For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".
The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.
The third time is the final build, and that one ends in the profile
directory.
The same principle is applied to System.Xml.
Better Dependency Tracking
==========================
To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies. This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.
Bug fixes
=========
We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support. This patch introduces back the changes to build System.Xml
in two steps.
This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).
Details
=======
library.make:
Introduces a new "the_libdir_base" which is the raw directory
where the final output will go. This points to the same location
that libdir_base previously pointed to.
The existing libdir_base is modified to contain an optional
"intermediate" directory, where intermediate builds can be
placed.
Other cycles
============
The System.Design assembly was listed as having cycles, but while this
cycle exists in theory, in practice we have not implemented any of the
code that brings the cycle in System.Windows.Forms.Design's
ImageListImageEditor and chances are, we wont any time soon.
2014-05-09 11:27:53 -04:00
Marek Habersack
69a1519d25
Remove last traces of Mono.Web
2014-05-09 16:01:45 +02:00
Zoltan Varga
3f8134d3fd
Merge pull request #1028 from DavidKarlas/sdbTypesCaching
...
[Mono.Debugger.Soft] Caching Assemblies and Types
2014-05-09 14:52:28 +02:00
Atsushi Eno
7df6ef4d03
assign project FullPath before creating ProjectInstance so that properties are assigned appropriately.
2014-05-09 21:51:25 +09:00
Atsushi Eno
120920f90f
MSBuildExtensionsPath32/64 should default to MSBuildExtensionsPath value.
2014-05-09 21:51:24 +09:00
Atsushi Eno
d3e5522fa3
fix previous change (huh, I was blind, no such option -f, use -p).
2014-05-09 18:09:06 +09:00
Atsushi Eno
085fc8638a
use mkdir -f to ignore "directory already exists" error.
2014-05-09 18:04:53 +09:00
Zoltan Varga
0bb0e8a6b8
Merge pull request #1029 from ranma42/dont_free_global_codeman-cleanup
...
[runtime] Remove the last bits of mono_dont_free_global_codeman
2014-05-09 03:03:40 +02:00
Sebastien Pouliot
37fd3b5e65
[mono-api-html] Add the [Obsolete] message for API additions and removals
...
Less common case - unless the API difference has a large delta.
Some additional spacing is added to ease readability: if an entry takes two line then it needs a empty line.
2014-05-08 20:18:02 -04:00
Andrea Canciani
07a9e93298
[runtime] Remove the last bits of mono_dont_free_global_codeman
...
All uses of the mono_dont_free_global_codeman variable (including its
definition) have been removed in
4a1ae4694a .
Its declaration should be removed as well to keep the codebase clean.
2014-05-09 01:25:09 +02:00
Zoltan Varga
f9504523d5
[runtime] Wait for the finalizer thread to exit in both code paths where waiting for it succeeded.
2014-05-09 01:00:13 +02:00
Zoltan Varga
07f5a5dc25
Fix make runtest-managed in tests/.
2014-05-09 00:56:35 +02:00
Zoltan Varga
ce77f52e00
Fix make check in tests/
2014-05-09 00:44:09 +02:00
David Karlaš
01876c5c2c
[Mono.Debugger.Soft] Catching AssemblyMirror in AppDomainMirror and TypeMirror in AssemblyMirror
2014-05-09 00:41:37 +02:00
Zoltan Varga
4a1ae4694a
[runtime] Remove the mono_dont_free_global_codeman hack, it shouldn't be needed now that we actually wait for threads to exit.
2014-05-09 00:36:33 +02:00
Zoltan Varga
17f9fa1afe
[jit] Disable the interval based linear scan algorithm in aot+debug mode, since it doesn't respect cfg->disable_reuse_registers, leading to problems during debugging when registers are shared between variables.
2014-05-08 23:03:28 +02:00
Jeffrey Stedfast
3fd97814cd
[Mono.Debugger.Soft] Added TypeMirror.IsNested
2014-05-08 16:38:44 -04:00
Ludovic Henry
9da5058dee
Merge pull request #1024 from ludovic-henry/pr10-proflog-counters
...
[proflog] Add counters support to proflog
2014-05-08 16:26:09 -04:00
Ludovic Henry
c453aa1469
[proflog] Edit according to Paolo review
2014-05-08 16:21:29 -04:00
Alex Rønne Petersen
e20beda857
Update MONO_CPU_ARCH description in man/mono.1.
2014-05-08 20:33:04 +02:00
Marek Habersack
fc4874fac3
Merge Mono.Web back into System.Web and remove the Mono.Web module
2014-05-08 20:30:53 +02:00
Jeffrey Stedfast
9fe7e76b3d
Merge pull request #1026 from DavidKarlas/cacheThreadInfo
...
[Mono.Debugger.Soft] Adding caching of ThreadInfo in ThreadMirror
2014-05-08 14:05:46 -04:00
Sebastien Pouliot
9296b4b2d7
[mono-api-html] Refactor to ensure the RegEx (if used) is applied everywhere
...
* The existing regex was not always used (e.g. new sections);
* It's now possible to use a regex on 'removed' (not just added) elements;
* It's possible to use the same regex for both (or have different ones);
2014-05-08 13:31:27 -04:00
Ludovic Henry
e1397e1776
[counters] Fix operator precedence
2014-05-08 11:29:01 -04:00
Ludovic Henry
d8a2ed3f1b
[counters] Edit dump_counter to use mono_counters_sample and accessors
2014-05-08 11:26:59 -04:00
Zoltan Varga
664ff2167e
[gsharedvt] Add tests for large structs.
2014-05-08 17:10:38 +02:00
Rolf Bjarne Kvinge
62deaefea1
Initialize out parameters to NULL.
...
Fixes a crash in the debugger, where we were freeing random pointers:
(lldb)
frame #2 : 0x000dc981 monotouchtest`method_commands_internal(command=<unavailable>, method=<unavailable>, domain=<unavailable>, p=0x7f52aca4, end=<unavailable>, buf=<unavailable>) + 9009 at debugger-agent.c:8116
8113 g_free (il_offsets);
8114 g_free (line_numbers);
8115 g_free (column_numbers);
-> 8116 g_free (end_line_numbers);
8117 g_free (end_column_numbers);
8118 g_free (source_files);
8119 g_ptr_array_free (source_file_list, TRUE);
2014-05-08 17:01:27 +02:00
David Karlaš
8a536f371f
[Mono.Debugger.Soft] Adding caching of ThreadInfo in ThreadMirror
2014-05-08 10:51:40 +02:00
Marek Safar
fc5f457120
[corlib] Use invariant culture for GetTempFileName generator
2014-05-08 10:26:29 +02:00
Marek Safar
4631b47277
[xbuild] Don't crash when reporting top level unknown elements
2014-05-08 10:26:29 +02:00
Sebastien Pouliot
7fefa95e63
[System.Core] Fix MOBILE-implementation of MemoryMappedFile
...
Internal API was updated only for the non-MOBILE part. Public/shared API requires them in sync.
2014-05-07 19:33:45 -04:00
Ludovic Henry
3cc9e4968e
[counters] Fix -1 array access in case counter is of type string and value is null
2014-05-07 18:40:11 -04:00
Rodrigo Kumpera
c941e03b0a
[counters] Improve the documentation of the counters API.
2014-05-07 17:55:54 -04:00
Rodrigo Kumpera
51e760f771
[counters] Fix the build and do some error handling.
2014-05-07 17:55:20 -04:00
Rodrigo Kumpera
0e3b816a04
Merge pull request #1022 from ludovic-henry/pr9-string-counters
...
[counters] Add support for string values
2014-05-07 17:40:10 -04:00
Ludovic Henry
8accb3121e
[counters] Fix potential overflow in string sampling
2014-05-07 17:34:11 -04:00
Sebastien Pouliot
0cd8e6b022
[mono-api-html] Prettier output when dealing with arrays ([] or [][]), nullable (?) and pointers (*).
2014-05-07 17:25:04 -04:00
Ludovic Henry
8a7181b6c1
[counters] Edit get process pid and /proc/loadavg according to Paolo review
2014-05-07 17:06:20 -04:00
Ludovic Henry
ce7dfe8479
[proflog] Increment LOG_DATA_VERSION
2014-05-07 16:59:34 -04:00
Ludovic Henry
0c7e37856d
[proflog] Add integration of counters_init and counters_sample
...
counters_init is called at the end of runtime initialization, on runtime_initialized hook
counters_sample is called in the helper_thread at least once per second
2014-05-07 16:55:00 -04:00
Ludovic Henry
9ccb2fdeb7
[proflog] Add counters_init and counters_sample functions
2014-05-07 16:54:33 -04:00
Ludovic Henry
739eb1b3cb
[proflog] Add counters enum type and documentation
2014-05-07 16:29:19 -04:00
Ludovic Henry
2c947ab445
[proflog] Add counters option parsing
2014-05-07 16:28:02 -04:00
Ludovic Henry
3a1ebe87ae
[proflog] Add emit_string and emit_double functions
2014-05-07 16:18:40 -04:00
Marek Safar
cad2f3ac42
Merge pull request #1023 from LogosBible/NetworkStreamBeginWriteInnerException
...
Include inner exception when BeginWrite fails due to exception from Sock...
2014-05-07 19:10:27 +02:00
Ludovic Henry
b430745186
[counters] Add support for string values
...
Add new function mono_counters_register_with_size which let the counters API now what is going to be the max size of the string.
The type of the value passed when MONO_COUNTER_STRING is passed must be char* (instead of char** previously). This is to guarantee that, if we want to change the value of the counter, we do not reallocate and free the old value, but we change the value in place. Thus to avoir race condition and access to freed memory.
2014-05-07 13:03:46 -04:00
Tom Philpot
323255c174
Include inner exception when BeginWrite fails due to exception from Socket.BeginSend.
2014-05-07 09:48:31 -07:00
Marek Safar
8d02439588
Undo project change from 073fe7a39c which should not be included
2014-05-07 17:01:37 +02:00
Alex Rønne Petersen
7848571e6f
Fix the check in 4660f44381 for special files.
2014-05-07 16:57:12 +02:00
Marek Safar
073fe7a39c
[mcs] Fix completion for `new {' input
2014-05-07 16:51:08 +02:00
Marek Safar
8ada649a15
[mcs] Don't report interface implementation errors for optional implementations. Fixes #18030
2014-05-07 15:10:37 +02:00
Zoltan Varga
1e4e2bd449
Fix the build.
2014-05-07 14:50:29 +02:00
Marek Safar
4660f44381
[system.core] Fix some MemoryMappedFile argument checks
2014-05-07 14:19:57 +02:00
Zoltan Varga
4044cb7c07
[sdb] Add end lines/end columns to line number information.
2014-05-07 14:02:28 +02:00
Zoltan Varga
97dc571fe2
Add end line/end column information to the mdb file format and pdb2mdb.
2014-05-07 14:02:28 +02:00
Marek Safar
b787868fa8
[corlib] Rethrow user not initialization exception when lazy initialization throws. Fixes #19564
2014-05-07 13:13:08 +02:00
Rodrigo Kumpera
fd27e16386
Fix copyright.
2014-05-06 23:11:25 -04:00
Sebastien Pouliot
6bdf1e274e
[mono-api-html] Allow a lax processing mode of the XML files
...
This is useful when the files needs to be pre-processed (e.g. a major change between the assemblies internals) and where some duplicate entries might be created (e.g. merged types/namespaces).
Note: normally the mono-api* tools should not produce such files (so it's better not used unless required)
2014-05-06 20:20:25 -04:00
Sebastien Pouliot
05876475d1
[mono-api-html] Prettier output using singular and plural forms in sections
2014-05-06 20:20:25 -04:00
Ludovic Henry
da2e4c791d
[counters] Add system counters
...
After discussion with Kumpera, it was decided to load them lazily when calling mono_counters_foreach for the first time. It has to be inside the mono runtime, and not in a profiler because it accesses proclib API which is all MONO_INTERNAL functions.
2014-05-06 20:09:42 -04:00
Rodrigo Kumpera
d8dc2fb2fa
[counters] Fix --stat to not dump counters for all sections.
2014-05-06 17:26:39 -04:00
Miguel de Icaza
41858f8b42
Merge pull request #1018 from ermshiperete/xamarin-19567
...
[MWF] Clear currentCell before disposing (fixes #19567 )
2014-05-06 17:24:51 -04:00
Rodrigo Kumpera
5ae3f41410
[sgen-bridge] Add color duplication pathology.
2014-05-06 15:39:29 -04:00
Rodrigo Kumpera
a89e635840
[sgen] Improve bridge comparison code a bit.
2014-05-06 15:39:29 -04:00
Rodrigo Kumpera
2e088c49d3
[sgen-bridge] Add the tarjan-coloring bridge.
...
The tarjan-coloring bridge is significant departure from the old bridge. It's design is based
on the Tarjan Strongly Connected Component algorithm.
SCC links are calculated as part of the Tarjan dfs on the second scan to calculate the low index and
form the components.
The algorithm does inspect all children after they have been processed, which enables us to do backward
propagation of the reachable SCCs.
In order to avoid the xref mess of the old algorithm, we color each component based on the sum of all
reachable components (colors). This means no matter how many non-bridge objects are in between two bridges,
they will all receive the same color and be represented in the final output as a single node in the SCC
graph.
This allows for a reasonably compact output graph as it will only include colors with no bridges when
a single object has multiple bridges reachable.
Said that, the basic algorithm received a series of optimizations:
1)Flag based merging, great idea from Mark, it bounds color and xref merging to be linear on the number of
colors found.
2)Objects and Colors bucket allocation. Instead of using expansible arrays we use fixed size buckets that
form a linked list. This allow us to use direct pointers instead of indexes. It avoid the expensive expansions.
Another benefit is that it reduces the work by sgen's malloc, which can be really slow.
3)Replace the object hash table with header patching. We tag objects with both pinning and forwarded bits and
store a pointer in the lock word. This eliminates the hashtable, a big source of perf issues. Patching objects
back at the end of bridge processing is much much cheaper than free'ing all the hashtable entries.
4)Color deduplication. It's possible to produce duplicated colors due to mutually unreachable paths that
both points to the same set of bridges. A cache is introduced to reduce it for colors points to 2 or 3 others.
The way we build colors allow us in the future to fix the hub object problem (SetupDoubleFan).
Experimental results with sgen-bridge-pathologies shows this implementation been 2-3x faster than the new one.
2014-05-06 15:39:29 -04:00
Rodrigo Kumpera
f41a9ecabf
[bridge] change the log entry name to make it easier to read logs.
2014-05-06 15:39:28 -04:00
Rodrigo Kumpera
7623a52cdc
[sgen-bridge] Each bridge needs it own internal mem type as their sizes differ.
2014-05-06 15:39:28 -04:00
Miguel de Icaza
4d1a5dd977
Merge pull request #1010 from davidmoore1/bug-19304
...
Prevent call to OwnerLostFocusHandler for disposed object
2014-05-06 14:19:43 -04:00
Marek Safar
686ee099af
[mcs] Include more unicode categories in parsing identifier part character. Fixes #18229
2014-05-06 19:59:36 +02:00
Eberhard Beilharz
3505e01e30
[MWF] Clear currentCell before disposing ( fixes #19567 )
...
If currentCell still has a value when we call Columns.Clear() we
might try to end the editing. Because the columns got disposed
before calling Columns.Clear() we get a crash. This patch fixes
the problem by setting currentCell to null.
2014-05-06 19:09:29 +02:00
Eberhard Beilharz
414ce39e1d
[MWF] Unit test for DataGridView bug ( #19567 )
2014-05-06 19:06:50 +02:00
Rodrigo Kumpera
46cccd7feb
Merge pull request #992 from ludovic-henry/ludovic-counters-pr1
...
[counters] Add sample and accessors to mono counters API
2014-05-06 12:34:42 -04:00
Marek Safar
549c4df9c5
[mcs] Emit null constant value for default parameters of generic types to indicate not missing value. Fixes #19033
2014-05-06 17:56:50 +02:00
Marek Safar
7e389f425d
[mcs] Report error for invalid unary nullable predefined operators
2014-05-06 17:19:15 +02:00
Marek Safar
1ef93c5318
[mcs] Do type parameter conversion involving type parameters using dependency rules. Fixes #18473
2014-05-06 16:52:24 +02:00
Marek Safar
48742484f7
Merge pull request #1017 from akoeplinger/fix-monocc
...
[Mono.CodeContracts] Always build debug file for the test assembly
2014-05-06 15:39:23 +02:00
Alexander Köplinger
520091343a
[Mono.CodeContracts] Always build debug file for the test assembly
...
The tests require that the debug file is available, however in the net_4_0 profile this file isn't generated by default.
We now ensure the debug file is always generated for the test assembly.
2014-05-06 15:37:16 +02:00
Sebastien Pouliot
c15721382c
[mono-api-html] Prettier output of ref and out (instead of &)
2014-05-06 08:55:50 -04:00
Sebastien Pouliot
d3b101db33
[mono-api-html] Make the [Obsolete] a bit prettier when no text message is available
2014-05-06 08:54:56 -04:00
Zoltan Varga
934b12770a
[sdb] Add a new TypeMirror.NewInstance () method which can create valuetypes without a ctor.
2014-05-05 23:39:46 +02:00
Jeffrey Stedfast
c049f307f1
[Mono.Debugger.Soft] Modified TypeMirror.NewInstance() to check that the method is a .ctor
2014-05-05 17:20:07 -04:00
Sebastien Pouliot
d9aaa0985f
[mono-api-html] Report [Obsolete] members in a separate section (not as both removed and added with an [Obsolete]). That makes it easier to read long API diff reports
2014-05-05 16:17:54 -04:00
Ludovic Henry
d70ae3f463
[counters] Disable register filter on valid_mask
...
This was previously used to not store counters that were not going to be dumped, but because we can now sample them, we have to make sure that they are stored, even if we do not plan to dump or sample them.
2014-05-05 14:10:48 -04:00
Marek Safar
0137058a18
[dlr] Emit correct code for convert of nullable types. Fixes #19500
2014-05-05 19:16:11 +02:00
Ludovic Henry
8da4b9b1b4
[counters] Fix type issue on mini counters
...
Used MONO_COUNTER_WORD for gint32 variable, crashed on 64bits platform.
2014-05-05 12:23:20 -04:00
Ludovic Henry
fe6bc0068b
[counters] Use macro to copy counter in sampling, and use sizeof directly instead of mono_counter_get_size
...
The use of sizeof will enable compilers optimization on memcpy.
2014-05-05 12:20:59 -04:00
Marek Safar
dba4ec7936
[mcs] Emit all method like members in same order as they appear in source code. Fixes #19509
2014-05-05 17:53:26 +02:00
Tom Philpot
dbee33d41c
Add tests for AppSettingsSection.
2014-05-05 08:18:02 -07:00
Ludovic Henry
84fb018c7e
[counters] Sample should fail if buffer size is too small
2014-05-05 10:47:23 -04:00
Ludovic Henry
5b538b8c30
[counters] Add sample and accessors functions
2014-05-05 10:47:23 -04:00
Marek Safar
34241c020f
[mcs] Convert extended underlying enum constants to their underlying type. Fixes #18866
2014-05-05 14:57:57 +02:00
Miguel de Icaza
d518bd927a
[corlib] Remove stale comments
2014-05-04 17:34:12 -04:00
Miguel de Icaza
3d04a49a2c
System: Fix the previous bulid
2014-05-04 17:33:51 -04:00
Miguel de Icaza
705da187cf
[System] Fix build warnings
2014-05-04 17:15:18 -04:00
Zoltan Varga
47db8f756f
[jit] Register the Mono_UnhandledException_internal icall when TARGET_ANDROID is set.
2014-05-03 21:50:52 +02:00
Zoltan Varga
9c4f0a3bea
[runtime] Fix some automake conditionals in scripts/, they should be in the beginning of the line.
2014-05-03 19:29:42 +02:00
Zoltan Varga
b55efe4e71
[runtime] Fix a warning which happens because we store the thread tid as a guint64.
2014-05-03 18:47:35 +02:00
Tom Philpot
8553af0d71
Use the configuration file path directory as the working directory for the file attribute of the appSettings section instead of the current working directory.
2014-05-03 06:42:00 -07:00
Mark Probst
ad626249b9
[sgen-bridge] Don't forward a node to itself.
2014-05-02 14:02:57 -07:00
Mark Probst
9f7bc87b6b
[sgen-bridge] Compare xrefs between bridge implementations, too.
2014-05-02 14:02:57 -07:00
Mark Probst
0aba200f1f
[sgen-bridge] Compare SCCs between bridge implementations.
2014-05-02 14:02:57 -07:00
Mark Probst
c6a3beb160
[sgen-bridge] Allow second bridge implementation to run alongside the active one.
2014-05-02 14:02:57 -07:00
Mark Probst
ee61a6e168
[sgen-bridge] Small refactoring.
2014-05-02 14:02:56 -07:00
Mark Probst
a852c7a94b
[sgen-bridge] Move bridge debug option handling to sgen-bridge.c.
2014-05-02 14:02:56 -07:00
Mark Probst
68b306dcb2
[sgen-bridge] Set bridge_processing_in_progress in sgen-bridge.c.
2014-05-02 14:02:56 -07:00
Mark Probst
a8a03927be
[sgen-bridge] Also separate old bridge into pre- and post-callback.
2014-05-02 14:02:56 -07:00
Mark Probst
a697fec8db
[sgen-bridge] Move processing of API data structures to sgen-bridge.c, for sgen-new-bridge.c.
2014-05-02 14:02:55 -07:00
Mark Probst
eeaba286c3
[sgen-bridge] Separate before- and after-callback in new bridge.
2014-05-02 14:02:55 -07:00
Mark Probst
a92f9ab4c1
[sgen-bridge] Special-case ptr array for 1 entry without allocating.
2014-05-02 14:02:55 -07:00
Mark Probst
c236dcd475
[sgen-bridge] Use bit field for is_visited and finishing_time.
2014-05-02 14:02:54 -07:00
Mark Probst
e3dfcd2918
[sgen-bridge] Make finishing_time a 32 bit unsigned int.
2014-05-02 14:02:54 -07:00
Mark Probst
362674f49b
[sgen-bridge] Fix forwarding.
...
We can't forward to HashEntry's because they are volatile - the
hash table will resize, and the entries move. We need to point to
the objects, and then look them up via the hash. Also, we have
to forward chains of forwards.
2014-05-02 14:02:54 -07:00
Mark Probst
e225acdd52
[sgen-bridge] Remove redundant object pointer in hash table entry.
2014-05-02 14:02:54 -07:00
Mark Probst
c8fb0ce1e5
[sgen-bridge] Separate DFS1 and DFS2 fields in HashEntry.
2014-05-02 14:02:53 -07:00
Mark Probst
996405bee5
[sgen-bridge] Add a new bridge (non-)pathology.
2014-05-02 14:02:53 -07:00
Mark Probst
9714ba95a9
[sgen-bridge] object_is_live() should be called object_needs_expansion().
2014-05-02 14:02:53 -07:00
Mark Probst
69a6d8f3f3
[sgen-bridge] Debugging option to dump whole bridge object graph.
2014-05-02 14:02:53 -07:00
Mark Probst
5238cc8fc7
[sgen-bridge] Remove single-reference non-bridge objects from graph.
2014-05-02 14:02:52 -07:00
Mark Probst
0c7470aefc
[sgen-bridge] Added test case with bridge performance pathologies.
...
This is not meant as part of the test suite, but as a reference for
where the bridge has performance issues.
2014-05-02 14:02:52 -07:00
Mark Probst
83eee1ecd7
[sgen-bridge] Copy-on-write for DynArrays.
...
This eliminates a pathological case for the old algorithm, where a
large array of SCCs is copied from one node to the next without
modification.
2014-05-02 14:02:52 -07:00
Mark Probst
56a2887d69
[sgen-bridge] Remove dead DynArray merging code.
2014-05-02 14:02:52 -07:00
Mark Probst
1cbc22a12b
[sgen] Heavy hash table statistics.
2014-05-02 14:02:51 -07:00
Mark Probst
ca8c0f110b
[sgen-bridge] Make merging in old xrefs algorithm much more efficient.
...
Instead of merging the two lists by keeping them sorted, use the flag on
the SCCs the indicate whether an SCC has already been merged in, and
just append it if not. This makes it as fast as the new algorithm on one
test case where it was pathologically slow, while not exhibiting another
pathology that the new algorithm has.
2014-05-02 14:02:51 -07:00
Mark Probst
da71185b3a
[sgen-bridge] New xrefs graph optimization for nodes with incoming order 1.
2014-05-02 14:02:51 -07:00
Mark Probst
1cedf05d43
[sgen-bridge] Don't merge xrefs in DFS2. Speeds up some cases by orders of magnitude.
2014-05-02 14:02:51 -07:00
Neale Ferguson
0b078d3e36
Support the datetime2 parameter type
2014-05-02 16:39:24 -04:00
Jeffrey Stedfast
d8ab5a6b6b
[Mono.Debugger.Soft] Fixed the ILInterpreter to catch ArgumentExceptions from ObjectMirror.GetValue()
2014-05-02 12:52:09 -04:00
Jeffrey Stedfast
0acac62678
[Mono.Debugger.Soft] Make the ObjectMirror.GetValues() exception a bit more useful
2014-05-02 12:51:24 -04:00
Marek Safar
31da1c8b2f
[mcs] Don't apply reference type is optimization for dynamic expressions. Fixes #19423
2014-05-02 18:02:29 +02:00
Rodrigo Kumpera
6baafcebca
Merge pull request #1013 from ranma42/fix-19380
...
Fix 19380
2014-05-02 11:45:53 -04:00
Marek Safar
688dc29cf1
[mcs] Inflate anonymymous method with correct type arguments when async this requires hoisting in parent type. Fixes #19176
2014-05-02 15:32:10 +02:00
Marek Safar
1e17a61f72
[mcs] Fix using type relationship check for type parameters. Fixes #18639
2014-05-02 10:12:59 +02:00
Andrea Canciani
29f0d0fa91
Document MONO_PATH behaviour for relative paths
...
Tha previous behaviour of MONO_PATH for relative paths (that implied
using the paths as relative to the current directory when loading
assemblies) was not yet documented and led to some failures when
executing tests.
In order to fix the failures, a new behaviour has been introduced:
relative paths are resolved at launch time, so that the folders which
are examined when loading assemblies do not depend on the current path
of the program.
This patchset is released under the MIT license.
2014-05-01 21:42:09 +02:00
Andrea Canciani
75ae368e7e
Canonicalize folders when setting up assemblies_path
...
When MONO_PATH contains relative folders, they are meant as relative
from where the application is launched, not from the current directory
of each assembly load.
Fixes #19380 .
2014-05-01 21:41:44 +02:00
Alex Rønne Petersen
bdd4d5bec5
Put the "degraded allocation" warning behind a log level.
...
We generally shouldn't print stuff to stdout/stderr unless we're
about to fatally crash or something.
2014-05-01 17:25:07 +02:00
Andrea Canciani
53899e397a
Fix minor memleak
...
Instead of just dropping empty strings from the assemblies_path array,
they should be freed to avoid leaking them.
2014-05-01 13:00:47 +02:00
Marek Safar
e1d0655aa3
Disable failing test on partical day only
2014-04-30 17:56:19 +02:00
Rodrigo Kumpera
de7bffa0be
Revert "wip". This idiot here pushed a working branch.
...
This reverts commit 1bcf96fae0 .
2014-04-30 11:37:23 -04:00
Rodrigo Kumpera
196bc4bfcc
Revert "might be working" Stupid me pushed a working branch. Glad it had no swearing.
...
This reverts commit a9d74622fd .
2014-04-30 11:36:58 -04:00
Rodrigo Kumpera
92aeb68b3b
[runtime] Fix use before null-check crasher. Found by PVS Studio.
2014-04-30 11:33:43 -04:00
Rodrigo Kumpera
a9d74622fd
might be working
2014-04-30 11:26:29 -04:00
Rodrigo Kumpera
1bcf96fae0
wip
2014-04-30 11:26:28 -04:00
Marek Safar
93f44693ce
[mcs] Better fix for 0d11522afe to consider full member accesibility
2014-04-30 16:16:02 +02:00
Miguel de Icaza
2bd0a1fb21
Updated HTML reference test output
2014-04-30 10:07:20 -04:00
Marek Safar
b2b76edc29
[mcs] Caching of type argument types should not happen under error conditions. Fixes #18282
2014-04-30 15:32:09 +02:00
Marek Safar
c8ec5331fc
Merge pull request #966 from ermshiperete/bug-xamarin-18511
...
[mcs] Fix recursive resolving of crefs (#18511 )
2014-04-30 12:06:54 +02:00
Marek Safar
f1790decb8
[linq] Use hashtable lookup instead of linear scan for groupby keys. Fixes #18673
2014-04-30 11:55:17 +02:00
Marek Safar
47f76bb61e
Merge pull request #1011 from Fabian-Koenig/master
...
[DbDataReader] Implement GetFieldValue<T> function to make mono working with EntityFramework 6.x
2014-04-30 08:23:39 +02:00
Alex Rønne Petersen
dc16bfe2fe
Backport some changes from nunit/nunitv2 that hopefully fix some test agent hangs.
2014-04-30 00:02:52 +02:00
Alex Rønne Petersen
9954763927
Add .gitignore file in mono/arch/arm64.
2014-04-30 00:02:52 +02:00
Alex Rønne Petersen
a860232c6e
Add a check target to mcs/errors/Makefile.
2014-04-30 00:02:52 +02:00
Fabian König
bc69c64bea
[DbDataReader] Implement GetFieldValue<T> function to make mono working with EntityFramework 6.x
2014-04-29 23:35:12 +02:00
Miguel de Icaza
626b3929bd
Small touchups to the UI, remove some extra space, use a bold, large font for the text
2014-04-29 17:31:26 -04:00
Michael Hutchinson
8989a87902
Merge pull request #1008 from lambdalice/master
...
[xbuild] Add GetAssemblyIdentity task to Microsoft.Common.tasks
2014-04-29 17:14:43 -04:00
Marek Safar
0d11522afe
[mcs] Private member can still have base members when in nested types. Fixes #19378
2014-04-29 19:52:47 +02:00
Paolo Molaro
d4a3cc50d3
Adjust the test check to look for the correct heapshot number in the profile data.
2014-04-29 18:48:57 +02:00
Marek Safar
491da5c899
[mcs] Make unused event warning reporting consistent to csc. Fixes #19095
2014-04-29 18:44:54 +02:00
Paolo Molaro
1dbd5e22fa
Fix regression in thread name reporting in the profiler.
...
metadata/threads.c: fix regression from the 695b17f8d5 change and
avoid useless memory allocation. Report thread name to the profiler at
thread startup if it was set before that.
profiler/decode.c: fix typo.
profiler/proflog.c: ensure we get a consistent first buffer header at runtime
initialization.
2014-04-29 17:25:16 +02:00
Paolo Molaro
aa181455bb
Make assembly resolve events more compatible with the MS runtime.
...
We now try and trigger assembly resolve events for referenced assemblies
in a way that is more compatible with the MS runtime behaviour. If that still
fails we continue falling back and looking in the same directory as the referencing
image as before to keep compatibility with code that relies on the previous mono
behaviour.
The assemblyresolve_event3.cs test that used to fail on the MS runtime has been fixed
so it works now with both engines.
2014-04-29 15:00:46 +02:00
Marek Safar
9845ce1ea5
[mcs] Add parent storey reference only when this is not captured directly. Fixes #19077
2014-04-29 13:24:35 +02:00
David Moore
a32e725b0c
Prevent call to OwnerLostFocusHandler for disposed object
...
bugzilla.xamarin.com bug reference: Bug 19304
ComboBox reverts to original selection when it loses focus.
The LostFocus handler for the internal ComboTextBox class
was being called after it had been disposed. The dispose
was correctly called when the ComboBoxStyle changed from
it's initial default value to DropDownList. However, when
the ComboBox control lost focus later on, the LostFocus event handler
was called, which resulted in the Text value for the ComboBox
being overwritten by the value in the disposed object.
Could not see how to write a unit test within the ComboBoxTest.cs
that would simulate losing focus so only providing fix.
Change-Id: I9ca4cc75da5711a7d7c1dd166d5f52d580f44df1
2014-04-29 01:52:36 -04:00
Alexis Christoforides
ea464418b5
Merge pull request #920
2014-04-28 18:51:41 -04:00
Miguel de Icaza
1b936ba7e3
Merge pull request #1009 from joelmartinez/msdoc-import
...
[docs] monodoc style update for blockquote attribution.
2014-04-28 17:55:02 -04:00
Joel Martinez
9d463c4b29
[docs] monodoc style update for blockquote attribution.
...
Handles the case for method lists, which are contained in blockquotes.
2014-04-28 17:27:32 -04:00
Alexis Christoforides
2d9b230c73
Merge pull request #971
...
+ trivial adjustments on test timers to prevent intermittent failures.
2014-04-28 17:13:42 -04:00
Alexis Christoforides
4c2a8ed3dd
Extended test time for timer-sensitive tests.
2014-04-28 16:52:25 -04:00
Rodrigo Kumpera
d5d49b2d59
Drop Events and Items units in favor of Count as they represent pretty much the same thing.
2014-04-28 16:35:22 -04:00
Rodrigo Kumpera
71642b547b
[counters] Only dump monotonic counters as variable ones are meaningless during shutdown.
2014-04-28 16:35:22 -04:00
Rodrigo Kumpera
0f66803aaf
[counters] Restore the previous behavior of mono_counters_dump, add variance filtering and reorg the bitfield.
...
The previous behavior when using mono_counters_dump was to pass -1 as the section and get all
counters dumped. This commit restore this behavior.
In addition to that, we want to enable callers to filter by variance as non monotonic counters are not useful
to be dumped at shutdown. To do so you just OR the variance with the sections you want. So what the runtime wants is:
mono_counters_dump (MONO_COUNTER_SECTION_MASK | MONO_COUNTER_MONOTONIC, stdout);
Dump all counters that are monotonic. Perfect.
Finally, to make the above neat, a reorg of the type bitfield was needed. Variance is now using a bit per kind.
Variance and unit where shrunk to 4 bits each, to open space for more sections.
2014-04-28 16:35:21 -04:00
Rodrigo Kumpera
607c882c43
[counters] Document mono_counters_foreach.
2014-04-28 16:35:21 -04:00
Rodrigo Kumpera
2c31356e6c
[counters] Install mono-counters.h since it's part of the public API.
2014-04-28 16:35:21 -04:00
Rodrigo Kumpera
a31f1b33a9
[mono-counters] Bring MONO_COUNTER_TIME_INTERVAL back.
2014-04-28 16:35:21 -04:00
Rodrigo Kumpera
401c2f1828
Revert "[counters] Simplify things a bit by removing unsigned counter types."
...
This reverts commit 2fa83d9a8c .
2014-04-28 16:35:20 -04:00
Miguel de Icaza
f34f996a11
genproj: add support for Alias in project references
2014-04-28 15:16:07 -04:00
Miguel de Icaza
f57daf91e1
[genproj] For Path.GetFullPath to work, we must use convert Windows paths to Unix paths
2014-04-28 15:16:07 -04:00
Alexis Christoforides
2d2d90eeb2
Merge pull request #961 from ermshiperete/bug-xamarin-18118
...
[System.XML] XSL bugfixes for #18118 #18114 #18113
2014-04-28 14:16:46 -04: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
Alex Rønne Petersen
7b48e454d7
Emit profiler enter/leave instrumentation calls as icalls.
...
This is more portable than using the mono_arch_instrument_* functions and
thus isn't prone to nasty arch-specific bugs. In particular, the old way
of instrumenting function prologues/epilogues resulted in a somewhat elusive
stack corruption bug on Android (ARM). Eventually, we should get rid of these
functions entirely and only use icalls, with JIT opcodes for special cases
(such as saving arguments for --trace).
This new way of doing things also makes profiler instrumentation AOT-safe,
since we're now going through the proper channels to emit references to the
runtime functions (mono_profiler_method_enter/leave) and to embed MonoMethod
pointers.
Since we're using icalls without wrappers to do this, there should be no
visible performance impact from this commit.
2014-04-28 16:52:58 +02:00
Eberhard Beilharz
7e69ca21ce
[MWF] Fix AutoSize behavior of FlowLayoutPanel ( #2912 )
...
A FlowLayoutPanel that has AutoSize set needs to resize if the
contained controls wrap.
2014-04-28 16:22:10 +02:00
Eberhard Beilharz
96b68424a4
[MWF] Add unit tests for AutoSize behavior of FlowLayoutPanel
2014-04-28 16:20:17 +02:00
Alice
a5e7519b33
[xbuild] Add GetAssemblyIdentity task to Microsoft.Common.tasks
2014-04-28 22:45:50 +09:00
Marek Safar
038456fe38
Merge pull request #1005 from ranma42/race-free-parallel-build
...
Use mktemp instead of $RANDOM to generate unique names
2014-04-28 09:21:50 +02:00
Miguel de Icaza
e84755ae4c
Merge pull request #1006 from joelmartinez/msdoc-import
...
Import of Microsoft BCL Documentation
2014-04-27 23:08:02 -04:00
Joel Martinez
a341c136e6
[docs] Minor update to monodoc html template.
...
Handles the case where a bullet list has only a paragraph rather than a term
2014-04-27 22:37:25 -04:00
Joel Martinez
6999270099
[docs] Import of Microsoft BCL Documentation.
...
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00
Joel Martinez
7c67e309d8
[docs] Schema additions, and monodoc template updates.
...
- Expanded monodoc-ecma schema to support the 'preserve-mono' attribute, and the attribution tag.
- Added preserve-mono to several pieces of documentation that we would like to preserve across future automated documentation imports: CipherSuitesCallback, ServicePointManager, CultureInfo, Environment+SpecialFolder.xml
- XSL template changes for monodoc HTML generation to support <attribution>
2014-04-27 21:32:54 -04:00
Zoltan Varga
f244461065
[arm] Fix some native types issues.
2014-04-26 12:44:32 +02:00
Marek Habersack
34fb07d05f
Include support for SSL/TLS right in System when building for the MONODROID profile
...
This patch builds upon commit 96a8500795 which placed parts of Mono.Security
responsible for dealing with SSL/TLS certificates for the purpose of certificate verification. The code enables
validation of the certifcates even if the user does not provide their own validation callback. The changes as related to
the original commit are few, basically consisting of enabling the same code used by MonoTouch in the MonoDroid context with
the only actual code change being the certificate validation bit mentioned above.
Since the change involves adding a subset of Mono.Security files to the monodroid version of System.dll, it is
also necessary to remove Mono.Android's dependence on Mono.Security.dll. The reason is that the code in AndroidPlatform
which looks up TLS support methods in Mono.Android.dll would use a type (X509CertificateCollection) that is now part of
System.dll but is *also* in Mono.Security.dll referenced by Mono.Android.dll and therefore the lookup would fail since
we'd have two distinct types from the reflection point of view.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18962
2014-04-25 21:39:53 +02:00
Rodrigo Kumpera
f964245f21
[sgen-bridge] Fix the bridge with forwarded objects.
2014-04-25 14:49:16 -04:00
Marek Safar
b3c6f228b3
[corlib] Fix extra await context switch when custom SynchronizationContext does not change. Fixes #17878
2014-04-25 18:03:43 +02:00
Rolf Bjarne Kvinge
19f49f93f9
Revert "Revert "Merge branch 'master' of https://github.com/mono/mono ""
...
This reverts commit 8f09dad435 .
8f09dad435 is reverting a merge commit,
which will not do what you think it does. It will revert much more,
so revert the revert to get back the unintentionally reverted commits.
It looks like the next commit (1a15d4ec54 )
is doing the original intention (reverting 164f9cbec4 ),
so this revert will leave the tree in a good state, with no pending
reverts.
2014-04-25 16:57:01 +02:00
Rolf Bjarne Kvinge
f37e86ff58
[mono-api-html] Print string fields with no (or null) value without an NRE.
2014-04-25 16:01:39 +02:00
Alex Rønne Petersen
436328d91d
Merge pull request #916 from akoeplinger/fix-gac-test
...
[MSBuild] Fixed a test that failed when the GAC wasn't available
2014-04-25 12:29:43 +02:00
Rodrigo Kumpera
242cc0df76
[sgen-bridge] Implement type based dfs1 filtering.
...
Some types are statically known to never lead to a bridge. Objects like
string or int[]. By filtering them out very early in dfs1 we save memory by
not inserting them into the hashtable and reduce work done by all further steps.
2014-04-24 19:09:31 -04:00
Rodrigo Kumpera
ee99d7e569
[sgen-bridge] Fix counters. They were not zeroed after each collection.
2014-04-24 19:09:31 -04:00
Rodrigo Kumpera
57829a6492
[sgen-bridge] Use an extra vtable bit to flag opaque objects.
2014-04-24 19:09:30 -04:00
Rodrigo Kumpera
d7b60ebe61
[runtime] Fix bitfield comments.
2014-04-24 19:09:30 -04:00
Joao Matos
26ec7f63a0
Revert "Added our own slightly modified copy of Ionic.Zip library."
...
This is currently breaking the build for Mono Droid.
This reverts commit bb3f24e999 .
2014-04-24 14:49:00 +01:00
Joao Matos
dc79b5bff7
Revert "Added System.IO.Compression implementation."
...
This is currently breaking the build for Mono Droid.
This reverts commit b175675ad9 .
2014-04-24 14:48:57 +01:00
Rolf Bjarne Kvinge
924c113d86
[System.Xml] Use profile-specific file names for generated files.
...
Otherwise parallel builds will break randomly.
2014-04-24 13:21:47 +02:00
Alex Rønne Petersen
fea1cd4278
Merge pull request #1002 from ranma42/make-check-no-install
...
Fix 'make check' when mono is not installed
2014-04-24 12:08:02 +02:00
Marek Safar
994661d0b9
Merge pull request #1003 from robertpi/Bug12211
...
Allow .NET 4.0 + users to use the ConnectSocket property
2014-04-24 11:28:31 +02:00
Robert Pickering
fb2f5e0a2f
Allow .NET 4.0 + users to use the ConnectSocket property
2014-04-24 07:34:27 +02:00
Atsushi Eno
3e6f644393
Fix bug #9541 by Bart Verthé - do not reset document schema when reading an element.
2014-04-24 12:26:01 +09:00
Rodrigo Kumpera
ff938b5960
[sgen-bridge] Add the new bridge to the testing matrix.
2014-04-23 20:10:23 -04:00
Rodrigo Kumpera
7767167ecc
[sgen-bridge] New bridge implementation - currently is just a copy of the old one.
...
The bridge implementation can be picked by having bridge-implementation=old|new in
MONO_GC_PARAMS.
This commit just prepared the ground to land experimental improvements to the bridge
while retaining an working implementation by default.
2014-04-23 20:10:22 -04:00
Rodrigo Kumpera
83341e8416
[sgen-bridge] Move the bridge implementation behind a pointer table.
...
This change is in preparation to introduce two implementations of the bridge.
The current implementation is now know as old.
2014-04-23 20:10:16 -04:00
Mark Probst
aed957b65e
[sgen] Fix time logging. We inflated durations by a factor of 10.
...
SGEN_TV_GETTIME reports via mono_100ns_ticks(), but we treated the
values as if they were in us.
2014-04-23 16:19:54 -07:00
Joao Matos
b175675ad9
Added System.IO.Compression implementation.
2014-04-23 22:12:06 +01:00
Joao Matos
bb3f24e999
Added our own slightly modified copy of Ionic.Zip library.
...
The changes are documented in the Xamarin.txt file.
2014-04-23 22:11:55 +01:00
Andrea Canciani
e3592a0091
Fix 'make check' when mono is not installed
...
When the xbuild_12 profile is verified, the corlib from the net_4_5
profile should be in the MONO_PATH, otherwise the verification will
fail with:
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `.../mono/4.5/mscorlib.dll' directory.
2014-04-23 22:53:14 +02:00
Alexis Christoforides
1a15d4ec54
Revert "Mono version is now pulled in to configure.in from MONO_VERSION"
...
This reverts commit 164f9cbec4 .
2014-04-23 14:57:38 -04:00
Alexis Christoforides
8f09dad435
Revert "Merge branch 'master' of https://github.com/mono/mono "
...
This reverts commit 9dd632fb9e , reversing
changes made to 164f9cbec4 .
2014-04-23 14:56:39 -04:00
Alexis Christoforides
9dd632fb9e
Merge branch 'master' of https://github.com/mono/mono
2014-04-23 14:44:48 -04:00
Alexis Christoforides
164f9cbec4
Mono version is now pulled in to configure.in from MONO_VERSION
...
This makes it easier to grab&use the version elsewhere in the future (e.g. in packaging)
2014-04-23 14:42:45 -04:00
Zoltan Varga
62342d9f56
[jit] Add some comments to register_icall ().
2014-04-23 17:31:54 +02:00
Marek Habersack
73f09870a1
Update test description to include full bug report url
2014-04-23 17:24:37 +02:00
Marek Habersack
3df23604a4
Correctly apply DST offset if the date being converted falls after Jan 1st and is within the last year's DST zone
...
The adjustment rule must take into account that DST can start in the previous year and extend to some initial period
of the DateTime's year. This patch makes the code take that into account and correctly applies the DST offset to the
date being converted to some target timezone.
Fixes xambug https://bugzilla.xamarin.com/show_bug.cgi?id=17155
2014-04-23 17:15:18 +02:00
Rodrigo Kumpera
9143696db6
Revert "Disable bug-18026.exe when running tests in the CI environment"
...
This reverts commit 5699e87d5b .
We don't disable tests that reveal regressions. This is one of such cases.
2014-04-23 09:45:36 -04:00
Andrea Canciani
9b78ea6412
Use mktemp instead of $RANDOM to generate unique names
...
Using $RANDOM is not safe because collisions can occur. An example of
such a failure is available here:
https://s3.amazonaws.com/archive.travis-ci.org/jobs/23572639/log.txt
Using mktemp avoids this issue and removes the dependency on bash.
2014-04-23 15:11:12 +02:00
Marek Habersack
44c0689534
A couple of fixes for TimeZoneInfo.ConvertTime.
...
* ConvertTime (DateTime, TimeZoneInfo) now correctly takes the date kind from the DateTime parameter
and uses it to select the source time zone according to this criteria:
if DateTime kind is Utc, use TimeZoneInfo.Utc as source, in all other cases use TimeZoneInfo.Local
* Move argument checks in ConvertTime (DateTime, TimeZoneInfo, TimeZoneInfo) so that there's no risk of a NREX
should sourceTimeZone be null.
Added relevant tests for all of the above changes.
2014-04-23 14:53:01 +02:00
Rodrigo Kumpera
b3920c6fda
[sgen] Add a bunch of clear-at-gc variants to the test matrix.
2014-04-23 08:50:23 -04:00
Rolf Bjarne Kvinge
810306d84b
[Mono.CSharp] Fix compilation for the monotouch profile with new exception filter support in mcs.
...
Otherwise this happens:
MCS [monotouch] Mono.CSharp.dll
../../mcs/codegen.cs(294,7): error CS1061: Type `System.Reflection.Emit.ILGenerator' does not contain
a definition for `BeginExceptFilterBlock' and no extension method `BeginExceptFilterBlock' of
type `System.Reflection.Emit.ILGenerator' could be found. Are you missing an assembly reference?
2014-04-23 12:25:28 +02:00
Zoltan Varga
cad503aafd
Merge pull request #1000 from ranma42/disable-18026-on-wrench
...
Disable bug-18026.exe when running tests in the CI environment
2014-04-23 09:44:11 +02:00
Andrea Canciani
5699e87d5b
Disable bug-18026.exe when running tests in the CI environment
...
The test performed in bug-18026.exe can sometimes fail if the hazard
table gets full. Disabling it in CI testing avoids unwanted noise.
See https://bugzilla.xamarin.com/show_bug.cgi?id=19235
2014-04-23 08:56:38 +02:00
Zoltan Varga
2facf4db1f
[sdb] Add support for DebuggerNonUserCodeAttribute.
2014-04-22 23:16:53 +02:00
Zoltan Varga
66aa6bb316
[arm64] Add AOT support.
2014-04-22 19:35:00 +02:00
Zoltan Varga
924fb2a51a
[arm64] Add JIT support.
2014-04-22 19:34:26 +02:00
Zoltan Varga
6b94388f8e
[arm64] Add sgen support.
2014-04-22 19:34:25 +02:00
Zoltan Varga
80ec6b529b
[arm64] Add context/mach support.
2014-04-22 19:34:25 +02:00
Zoltan Varga
a4c4a5120a
[arm64] Add basic port infrastructure.
2014-04-22 19:34:25 +02:00
Marek Safar
09366779f0
[system] Don't terminate response reading on bad cookie value. Fixes #18868
2014-04-22 14:31:19 +02:00
Alexis Christoforides
8b1ca21e8f
Merge pull request #994 from drummerhu/patch-1
...
xml type parameters have no size specifier
2014-04-22 00:00:49 -04:00
Zoltan Varga
70a2afb818
[jit] Fix a bug introduced by 683527c694.
2014-04-21 21:15:35 +02:00
Rodrigo Kumpera
2fa83d9a8c
[counters] Simplify things a bit by removing unsigned counter types.
2014-04-21 12:24:06 -04:00
Rodrigo Kumpera
356e0f2bea
[counters] Add mono_counters_foreach API.
2014-04-21 12:24:06 -04:00
Rodrigo Kumpera
3d24680ebe
[counter] Kill counter type MONO_COUNTER_TIME_INTERVAL in favor of using a proper unit type.
...
This makes it more explicit and will further simplify the agent.
2014-04-21 12:23:43 -04:00
Rodrigo Kumpera
44b1144ed1
[counters] Introduce variance and units.
2014-04-21 12:23:42 -04:00
Rodrigo Kumpera
8e4d85b584
[counters] Introduce two new counters categories, runtime and system.
...
The runtime category is for high level counters on runtime operations.
Things like number of threads, threadpool status, total memory consumption
and so on.
The system category is for synthetic counters that report system values
such as RSS, user time and load.
2014-04-21 12:23:37 -04:00
Zoltan Varga
683527c694
[jit] Get rid of mono_arch_nullify_plt_entry (), it works the same way on all platforms.
2014-04-19 20:07:42 +02:00
Alex Rønne Petersen
86c7d75bce
Update CONTRIBUTING.md with info about pull request testing.
2014-04-19 08:04:35 +02:00
Miguel de Icaza
29a2d0db57
[genproj] Steps towards making pre-build scripts cross platform; Lots more build now
2014-04-18 23:18:38 -04:00
Miguel de Icaza
d79280674b
Refreshed the CSProj files to use the new output build directory
2014-04-18 18:15:35 -04:00
Miguel de Icaza
caa7615328
[genproj] Set the output directory to the Mono one, not an intermediary one
2014-04-18 18:15:35 -04:00
Miguel de Icaza
c6c7c5af9c
Update order.xml
2014-04-18 18:15:35 -04:00
Alexis Christoforides
49ac34bc80
Fixed xamarin #18898 # / novell #595899
...
DataRowView indexer should not break on "completed" added rows (any rows other than the IsNew one)
2014-04-18 18:08:16 -04:00
Alex Rønne Petersen
5e2f1f3301
Fix my last commit to match our libgc's declaration style.
2014-04-18 19:51:34 +02:00
Alex Rønne Petersen
fb7c7e39b5
Hopefully fix a build error in libgc on some compilers.
...
../../libgc/alloc.c: In function ‘GC_stopped_mark’:
../../libgc/alloc.c:501:9: error: implicit declaration of function ‘GC_cond_register_dynamic_libraries’ [-Werror=implicit-function-declaration]
GC_cond_register_dynamic_libraries();
2014-04-18 19:34:49 +02:00
Miguel de Icaza
f07d6c58bc
[genproj] Some hygiene changes to genproj, to be able to even digest this
2014-04-18 10:57:01 -04:00
Rodrigo Kumpera
816dde7892
[sgen-bridge] Introduce accounting mode to bridge processing.
...
This accounting mode logs the "cost" of each bridge-object during bridge processing.
This should give a very good first clue on how expensive each object is.
2014-04-17 19:26:41 -04:00
Alex Rønne Petersen
1669d0456b
Really, seriously, for real fix mono/tests/Makefile.am when run with CI=1/V=1.
2014-04-18 01:07:51 +02:00
Martin Baulig
f647afb02f
[Http]: Correctly handle request bodies when resending with authentication.
...
My previous changes modified the way how we're handing the request body when
resending a request due to a 30x redirection.
Authentication is a "special" form of redirection because we sometimes need
to resend a request with additional authentication headers. Unfortunately,
I forgot this, causing a regression which is now fixed.
This has been reported as bugs #19119 and #19068 .
2014-04-17 22:27:19 +02:00
Jeffrey Stedfast
0096790ae5
[Mono.Debugger.Soft] Throw a NotSupportedException if we encounter an unsupported IL opcode
2014-04-17 16:05:39 -04:00
Marek Safar
394eb0d670
[corlib] Defer TypeInfo instantiation logic in DefinedTypes. Fixes #19082
2014-04-17 20:00:34 +02:00
Zoltan Varga
f287d3c95b
[jit] Fix an unreachable code part in mini_emit_memset (). Fixes #19083 . Thanks to Bill Seurer for spotting it.
2014-04-17 17:49:36 +02:00
Alex Rønne Petersen
1d30486054
Shell expansion rules suck. Fix a7712d9093.
2014-04-17 16:32:38 +02:00
Miguel de Icaza
b45701b799
Add System.Xml.Linq to the dotnet.pkg
2014-04-17 10:14:57 -04:00
Alex Rønne Petersen
4ea81c1845
Fix a couple of warnings in sgen-cardtable.c.
2014-04-17 14:51:54 +02:00
Alex Rønne Petersen
357afd3e25
Remove .travis.yml.
...
Travis simply doesn't give us anywhere near enough execution time
to run runtime tests + BCL tests.
2014-04-17 14:39:54 +02:00
Alex Rønne Petersen
a2e4404751
Ignore testlist files in mono/tests.
2014-04-17 14:39:54 +02:00
Alex Rønne Petersen
a7712d9093
Clean up mono/tests/Makefile.am.
...
This removes a lot of duplicated logic and special-casing for Wrench. There
are now only 3 important top-level targets:
* `check`: Run all stable (~fast) tests.
* `check-full`: Run all stable, unstable, and slow tests.
* `check-parallel`: Compile tests in parallel, then run `check-full`.
By default, `no-dump` is passed to the test runner. To pass `dump-output` and
get `stdout`/`stderr` dumped to console when a failure occurs, set `V` as in:
$ make check V=1
Or:
$ make check-full V=1
If you're running tests in a CI environment, it may be desirable to disable
tests that are known to be unstable. To do so, run:
$ make check CI=1
Or:
$ make check-full CI=1
2014-04-17 14:39:54 +02:00
Marek Safar
b36b99fc06
[mcs] Fix tie breaking rules when both candidates have used default parameters
2014-04-17 13:13:31 +02:00
Zoltan Varga
0da13fe72f
[aot] Add a separate mutex to each AOT module to reduce contention.
2014-04-17 12:48:04 +02:00
Zoltan Varga
8caa3960e9
[jit] Use compile-time conditionals in a few places.
2014-04-17 12:33:01 +02:00
Zoltan Varga
4797f0b912
[llvm] Fix the decomposition of some long opcodes on 32 bit machines.
2014-04-17 12:29:08 +02:00
Zoltan Varga
ee785d7c42
Fix the build.
2014-04-17 11:43:51 +02:00
Zoltan Varga
ae34bffe53
[llvm] Remove unused LLVM_MONO_BRANCH define.
2014-04-17 07:15:00 +02:00
Zoltan Varga
4bcbce9b02
Disable the self-assign warning when using clang.
2014-04-17 07:10:29 +02:00
Zoltan Varga
cef112d74d
[llvm] Update the LLVM backend to the LLVM mono-2014-04-17-cc117f4ad24a7ae6743ab6f08b8f5e8fc65d2d7f branch.
2014-04-17 07:06:38 +02:00
Zoltan Varga
0b197c8234
[llvm] Add a LLVM_API_VERSION define which is incremented in llvm every time there is a public api break. This allows the llvm backend to compile with different versions of LLVM.
2014-04-17 07:06:37 +02:00
Mark Probst
c08bca90ee
[sgen] Counter for time we spend starting and stopping the world.
2014-04-16 14:18:17 -07:00
Mark Probst
cdce271a81
[sgen] Fix M&S object iteration.
...
When we want to iterate without sweeping, then on blocks that
have not been swept, we can only iterate over objects that are
marked.
2014-04-16 14:18:16 -07:00
Mark Probst
6a67811198
[sgen] Fix CLEAR_AT_GC.
...
We end up with faux arrays when we’re allocating new objects, but
the nursery must be zeroed. We just zero the first few words when the
TLAB is created to get rid of the array header.
An alternative would be to erase the headers once the nursery
collection is over, which is cleaner and would only zero what we know
must be zeroed, i.e. it would catch errors in cases where we now
overwrite non-zero garbage in the nursery. That’s an unlikely case,
though, and we don’t use this debug feature often anyway.
2014-04-16 14:18:16 -07:00
Mark Probst
86b1ca3abc
[sgen] Fix remset consistency check in presence of cementing.
2014-04-16 14:18:16 -07:00
Mark Probst
713a6d2186
[sgen] Make binary protocol grep work without search addresses.
2014-04-16 14:18:15 -07:00
Mark Probst
35f397edc8
[sgen] Count cards for binary protocol.
2014-04-16 14:18:15 -07:00
Mark Probst
9f6ab33462
[sgen] Don't scan cards in no-reference LOS objects.
2014-04-16 14:18:14 -07:00
Mark Probst
83b51581f8
[sgen] Make missing remset debugging easier.
2014-04-16 14:18:14 -07:00
Mark Probst
659c69a0ba
[sgen] Small refactoring of sgen_card_table_update_mod_union().
2014-04-16 14:18:14 -07:00
Mark Probst
2308ee2ab9
[sgen] Make mod-union consistency check work again.
2014-04-16 14:18:13 -07:00
Mark Probst
97f8411a7d
[sgen] Tool for visualizing GC pauses from binary protocols.
2014-04-16 14:18:13 -07:00
Mark Probst
3ba6b6919f
[sgen] Binary protocol entries for world stop/restart with timestamps.
2014-04-16 14:18:13 -07:00
Mark Probst
9b36e8ec43
[sgen] Enable binary protocol by default, make the heavy stuff optional.
2014-04-16 14:18:12 -07:00
Marek Safar
329a10976a
[mcs] Fix parsing member access expression with await simple name
2014-04-16 21:19:47 +02:00
Marek Safar
7fddc01287
[mcs] Relax struct definitive assignment rules for private fields
2014-04-16 20:05:16 +02:00
Alex Rønne Petersen
80b154781e
Since make distcheck has been fixed, use it in .travis.yml again.
2014-04-16 18:39:16 +02:00
Alex Rønne Petersen
0ac40d8c71
Flush po/... files.
2014-04-16 18:19:46 +02:00
Miguel de Icaza
e3150746f3
Runtime documentation will now build with srcdir != builddir
...
This removes an old and broken patch that did not allow for
clean builds of Mono. The old patch was so bad, that instead
of fixing the actual source of the problem (the ability to build
the runtime documentation when the source directory was not the
same as the build directory), a hack was added to circumvent
`make distcheck''s security system and changed the permissions
at build time for the source directory to become read/write.
This fixes the problem
2014-04-16 12:09:20 -04:00
Miguel de Icaza
8f790e107f
Update the configuration file for project builds
2014-04-16 12:09:20 -04:00
Miguel de Icaza
816c9eb193
Remove empty space from assembly name
2014-04-16 12:09:19 -04:00
Zoltan Varga
10f6606d5b
[jit] Fix the lookup of the AOT version of Interlocked.Exchange<T> in full-aot mode. Fixes #19070 .
2014-04-16 18:05:46 +02:00
Rodrigo Kumpera
d2108392db
[win64] Fix stack probing and disable omit_fp. Fixes iltests.
...
Stack probing on windows must be done a page a time so we must always force it to happen on windows.
Disable omit_fp on win64 for now as it makes the tail call tests fail.
2014-04-16 11:37:27 -04:00
Zoltan Varga
37f78e42a8
[llvm] Fix the loadable llvm build.
2014-04-16 17:19:47 +02:00
Marek Safar
dac82c328c
[mcs] Emit exception filters with empty stack
2014-04-16 16:53:48 +02:00
Marek Habersack
5564dad150
Fall back to calling Java.Util.TimeZone.Default.ID if the persist.sys.timezone system
...
property is not present on the system or its value is an empty string. This ensures that
we obtain valid timezone info on systems which do not define the above property.
Part of fix for https://bugzilla.xamarin.com/show_bug.cgi?id=4902
2014-04-16 16:23:16 +02:00
Antoine Cailliau
b2b269b1e8
[Fix] DataContractJsonSerializer fails serializing/deserializing collections
2014-04-16 15:10:17 +02:00
Alex Rønne Petersen
c7c6506ce3
Avoid make distcheck in .travis.yml for now.
2014-04-16 14:57:02 +02:00
Alex Rønne Petersen
f2e208a3a1
Only build master for now.
2014-04-16 13:34:32 +02:00
Alex Rønne Petersen
228aed9001
Add initial .travis.yml.
2014-04-16 13:07:49 +02:00
Alex Rønne Petersen
a7c60da137
Make all Python scripts Python 3-friendly.
2014-04-16 12:54:41 +02:00
Marek Safar
8148b9c576
Update tests
2014-04-16 11:40:07 +02:00
Marek Safar
4ef97a07f3
Update error message
2014-04-16 11:40:07 +02:00
Marek Safar
8db075c049
[mcs] Initial implemntation of exception filters
2014-04-16 11:40:07 +02:00
Marek Safar
b7399f6c0d
[mcs] Primary constructors
2014-04-16 11:40:07 +02:00
Marek Safar
2865d4bda1
Merge pull request #996 from DavidS/fixes/string-format-nre
...
[System] handle arguments whose ToString returns null in String.Format
2014-04-16 10:10:44 +02:00
David Schmitt
3f9dd10eed
[System] handle arguments whose ToString returns null in String.Format
...
When an argument to String.Format has no formatter, its ToString method
is called. This change takes care that the FormatHelper can handle
arguments whose ToString() method returns null.
2014-04-16 09:26:23 +02:00
Zoltan Varga
945faf65d1
[jit] Rewrite lookup_method () to reduce contention by not taking the loader lock while doing hashtable lookups.
2014-04-16 08:54:46 +02:00
Zoltan Varga
dd72864f56
[runtime] Add some low level locks to image sets to reduce contention and the usage of the loader lock.
2014-04-16 06:47:58 +02:00
Rodrigo Kumpera
b8ab042da7
[runtime] Don't g_string_append an empty string when running regression tests.
2014-04-15 17:55:23 -04:00
Rodrigo Kumpera
f15f527aff
[windows] Win64 requires 16 bytes alignment too.
2014-04-15 17:55:21 -04:00
Rodrigo Kumpera
deeaba4549
[VS] Change the tools version back to v110 so it works with VS 2012.
2014-04-15 17:55:20 -04:00
Rodrigo Kumpera
d30aa865a5
[windows] Remove sdb symbol from mono.def. Fix the build.
2014-04-15 17:55:18 -04:00
Marek Safar
da35cb932b
Add ICscHostObject4 skeleton
2014-04-15 23:31:48 +02:00
Miguel de Icaza
718ab59105
Merge pull request #987 from StephenMcConnel/bug-18874
...
Adjust scrollbar display after layout if autosized children
2014-04-15 16:29:06 -04:00
Alexis Christoforides
2a949443bc
Added contribution guideline links in README
...
New section has links to guideline wiki page, and the page's Important Rules section that all contributors should be aware of.
2014-04-15 16:10:29 -04: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
drummerhu
b4786dbd7e
xml type parameters have no size specifier
...
generate "@p1 xml" instead of "@p1 xml(123)"
2014-04-15 21:09:11 +02:00
Zoltan Varga
7e33fc7450
[llvm] Fix a few problems with longs on 32 bit platforms. Fixes #18925 .
2014-04-15 08:54:05 +02:00
Alex Rønne Petersen
6a7791058f
Ignore scripts/ikdasm.
2014-04-14 22:53:36 +02:00
Rodrigo Kumpera
f62347fe66
[llvm] Fix llvm loading.
2014-04-14 15:53:53 -04:00
Alex Rønne Petersen
759257d32d
Fix handling of the volatile. prefix instruction.
...
* Respect the `volatile.` prefix on all instructions specified in
Ecma 335, Partition III, 2.6.
* Emit release barriers _before_ the instructions they affect.
* Skip certain optimizations when the `volatile.` prefix is used,
since we can't easily emit barriers correctly in those
optimization paths.
* Use `ins_flag` to check for `MONO_INST_VOLATILE` as it doesn't
depend on an instruction having been emitted. This would kind of
not work when we need to emit barriers before other instructions.
* Set `ins_flag` to zero in all cases where it's consumed.
2014-04-14 19:03:50 +02:00
Alex Rønne Petersen
7c6c3f9b39
Remove pointless #elif branch in mono-membar.h.
2014-04-14 19:03:50 +02:00
Alex Rønne Petersen
bc31c79675
Clean up the log profiler's use of atomics.
2014-04-14 19:03:50 +02:00
Alexis Christoforides
7b9fc5514c
Merge pull request #986 from ninjarobot/patch-1
...
Update io.c to support NFS mounts when parsing drives.
2014-04-14 11:28:53 -04:00
ninjarobot
a177760688
Update io.c
...
Support for NFS mounts when parsing drives. Previously ignored since they don't start with '/'.
This change is released under the MIT license.
2014-04-14 11:02:02 -04:00
Rodrigo Kumpera
ba175a7bc5
Merge pull request #990 from BrandonLWhite/bw/cqleak
...
[runtime] Fixed leak of MonoListItems in MonoCQ
2014-04-14 09:12:10 -04:00
INADA Naoki
f69cdd00ba
Remove checking Origin header.
...
RFC requires Origin header for browser client.
Non browser client may be omit Origin header.
2014-04-13 16:03:22 +09:00
Sebastien Pouliot
81bdc35dd4
[xammac] Remove the Makefile hack as the extensions instructions will be applied (only) when a PROFILE_*.sources is present (and add that xammac_corlib.dll.sources file)
2014-04-12 12:41:26 -04:00
Alex Rønne Petersen
ac60ecf03f
Merge pull request #656 from LogosBible/collection_lock
...
Take shared file lock before collecting file share_info.
2014-04-12 15:40:23 +02:00
Brandon
e4cdce00aa
[runtime] Fixed leak of MonoListItems in MonoCQ
...
I release this change under the MIT license.
2014-04-12 08:25:11 -05:00
Alex Rønne Petersen
90d6059c54
Merge pull request #273 from joncham/bug-getpid
...
Use getpid instead of GetCurrentProcessId as the latter calls into io-la...
2014-04-12 10:29:38 +02:00
Alex Rønne Petersen
e8f2c7111d
Merge pull request #991 from ranma42/fix-jay-sh-bashism
...
Use bash when using $RANDOM bashism
2014-04-12 09:30:07 +02:00
Andrea Canciani
0c6920546b
Use bash when using $RANDOM bashism
...
$RANDOM is only supported by bash, not by sh.
2014-04-12 09:03:56 +02:00
INADA Naoki
c54a3f5d9d
Fix indent of author.
2014-04-12 14:55:53 +09:00
INADA Naoki
32462f8089
Fix handling fragment and opcode.
2014-04-12 14:53:46 +09:00
Zoltan Varga
ea490c5486
[runtime] Improve the hashing of MONO_TYPE_VAR/MONO_TYPE_MVAR. Hopefully fixes #18880 .
2014-04-12 04:56:14 +02:00
Zoltan Varga
506cd5e9f0
Merge pull request #988 from ranma42/fix-lls-test
...
Fix assertion in test-mono-linked-list-set
2014-04-12 02:31:19 +02:00
Zoltan Varga
83e085556d
Merge pull request #989 from rolfbjarne/bundle-tracing-improvements
...
Improve tracing output for loaded assemblies from bundles.
2014-04-12 02:28:59 +02:00
Rolf Bjarne Kvinge
cc7162510a
Report bundle tracing using the filename, not the full path.
2014-04-12 00:56:33 +02:00
Rolf Bjarne Kvinge
fb069fc1bc
Improve tracing output for loaded assemblies from bundles.
2014-04-12 00:46:30 +02:00
Rodrigo Kumpera
a2dd3db49b
Use mono_dl_open_runtime_lib as an additional fallback for loading the profiler. Fixes profiler loading on OSX.
2014-04-11 18:16:10 -04:00
Rodrigo Kumpera
920b500407
Use mono_dl_open_runtime_lib instead of hand crafted load commands.
2014-04-11 18:16:09 -04:00
Rodrigo Kumpera
30532e6174
New function mono_dl_open_runtime_lib that loads runtime libraries.
...
This extracts the code used to load LLVM.
2014-04-11 18:16:09 -04:00
Sebastien Pouliot
f39b3d794a
[Mono.Security] Add .sources file for xammac (same as monotouch)
2014-04-11 18:11:30 -04:00
Sebastien Pouliot
911b80fc86
[xammac] Ajust corlib and System.Core builds to allow to use of CommonCrypto in Xamarin.Mac
2014-04-11 16:08:44 -04:00
Sebastien Pouliot
8df01216de
[Mono.Security] Send all the certificates (except the root) from an SSL/TLS 'Server certificate' message (7.4.2 in RFC2246). Fix contributed by [email protected] [ #16974 ]
2014-04-11 15:55:47 -04:00
Alexis Christoforides
5e4093ab13
Merge pull request #845 from meyerrj/master
...
Support for video/mp4, video/ogg, video/webm
2014-04-11 15:16:16 -04:00
INADA Naoki
e4f842adf5
Use do ... while (true)
2014-04-12 03:23:31 +09:00
INADA Naoki
8f3f12726a
Support receiving frame larger than buffer.
2014-04-12 03:21:01 +09:00
INADA Naoki
e63e21edc2
Support CloseStatus
2014-04-12 03:06:36 +09:00
INADA Naoki
298e70c307
Fix some bugs.
2014-04-12 02:49:08 +09:00
Miguel de Icaza
53a08ebc1d
Style on the README file, make it more readable for command line users
2014-04-11 12:04:10 -04:00
INADA Naoki
4239b4cb2e
Reimplement StreamWebSocket.
2014-04-11 23:15:24 +09:00
Alex Rønne Petersen
3652241132
ARM: Fix epilogue instrumentation to handle MONO_TYPE_{GENERICINST,R4,R8} correctly.
2014-04-11 10:22:28 +02:00
Alex Rønne Petersen
2d797acdd8
Revert "ARM: Fix epilogue instrumentation to handle MONO_TYPE_{GENERICINST,R4,R8} correctly."
...
This reverts commit 1afa622ba4 .
I had a more recent version of this commit locally...
2014-04-11 10:22:08 +02:00
Alex Rønne Petersen
1afa622ba4
ARM: Fix epilogue instrumentation to handle MONO_TYPE_{GENERICINST,R4,R8} correctly.
2014-04-10 23:24:16 +02:00
Alexis Christoforides
73ba8a9535
[System.Net] Fixed intermittent test failures from undisposed UdpClients
2014-04-10 15:56:48 -04:00
Alexis Christoforides
5df45ecd4e
[Security] Added check for failed chmod on "keypairs" directory creation
...
This is to help detect issues where the directory is later found to be not locked down.
2014-04-10 15:00:10 -04:00
Marek Safar
f59d306ad2
[system.net.http] Improve 50879b35cf to close all connections not only the last one
2014-04-10 13:02:34 +02:00
Marek Safar
7be9829aa9
[mcs] Typo in error message
2014-04-10 11:17:22 +02:00
Marek Safar
f860fe0aaf
[mcs] Reference assemblies with same identity cannot have different version number
2014-04-10 10:54:33 +02:00
Andrea Canciani
78a64f7331
Fix assertion in test-mono-linked-list-set
...
When running 'make check', test-mono-linked-list-set fails with:
* Assertion at hazard-pointer.c:353, condition `small_id == i' not met
This happens since 71ad74dc11 , because
that commit changes the behaviour of mono_thread_smr_init() so that
invoking it should not be invoked more than once.
2014-04-09 23:10:25 +02:00
Stephen McConnel
cfd4b71552
Adjust scrollbar display after layout if autosized children
...
ScrollableControl.OnLayout sets the scroll bar display before doing the
actual layout. If any children are autosized, they may change size as
a result of the layout, and that may change whether or not the scrollbar
is needed. (This addresses Xamarin bug 18874.)
2014-04-09 15:42:28 -05:00
Rodrigo Kumpera
217e071a40
Revert "[runtime] Improve the hashing of MONO_TYPE_VAR/MONO_TYPE_MVAR. Hopefully fixes #18880."
...
This reverts commit 078dc0321d .
It's breaking for everyone.
2014-04-09 15:41:53 -04:00
Marek Safar
633db36bd3
[System.Core] Don't auto increment when trimming hashset. Fixes #18687
2014-04-09 21:19:11 +02:00
Marek Safar
50879b35cf
[system.net.http] Close service-point slot on explicit dispose. Fixes #18848
2014-04-09 20:35:23 +02:00
Alexis Christoforides
f34a97d2e7
Merge pull request #985 from joelmartinez/master
...
[docs] Fixed XML syntax issue with CipherSuitesCallback, and ServicePointManager xml files.
2014-04-09 14:26:45 -04:00
Marek Safar
abbb766d3a
[interpreter] Disable fast call invocation using methodinfo delegates due to aot limitation. Fixes #18688
2014-04-09 17:57:49 +02:00
Zoltan Varga
078dc0321d
[runtime] Improve the hashing of MONO_TYPE_VAR/MONO_TYPE_MVAR. Hopefully fixes #18880 .
2014-04-08 21:53:39 -04:00
Zoltan Varga
8ecdcaa526
Revert "[llvm] Fix the build."
...
This reverts commit 8990ab3363 .
Revert this as it only works with an llvm version which doesn't compile on lion.
2014-04-08 21:53:39 -04:00
Alexis Christoforides
94b523275e
[XML] Added unit test for multiple XMLElement attributes on arrays & ArrayLists
2014-04-08 18:05:46 -04:00
Alan McGovern
159c0b02cd
[Microsoft.Build.Tasks] 'Copy' task now returns failure when errors are logged
...
If we try to copy a file which does not exist, we log the error (as we have
always done) but now we return failure from the Copy task if any errors were
logged.
This means we will correctly fail the build later on instead of having a
successful build which did not complete correctly.
2014-04-08 12:22:49 -04:00
Marek Safar
fd4a8931d4
Merge pull request #984 from echampet/trim-column
...
Fix CreateErrorFromString: match.Result("${column}") may contain a '+', ...
2014-04-08 16:31:27 +02:00
Etienne CHAMPETIER
919e7caf88
Fix CreateErrorFromString: match.Result("${column}") may contain a '+', trim it
...
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-04-08 16:27:49 +02:00
Marek Safar
a10df86558
[corlib] Better checks for release of parent task
2014-04-08 15:31:53 +02:00
BrandonLWhite
5e5f3a19fd
Fixed memory leak in Task when child tasks are continually created.
...
This resolves bug # 18398 and other OOM scenarios in long running applications that make use of FromAsync, ContinueWith, etc. to "rearm" asynchronous operations.
2014-04-08 15:31:52 +02:00
Alex Rønne Petersen
cde40faf26
Merge pull request #983 from xen2/master
...
Fix MSVC compilation (mini-native-types.c was considered as header) and updated VTune project to use 2013 version.
2014-04-08 14:56:37 +02:00
Joel Martinez
c9dd31f779
[docs] Fixed XML syntax issue with CipherSuitsCallback, and ServicePointManager xml files.
2014-04-08 08:05:17 -04:00
Marek Safar
404466030e
[System.Core] Exclude legacy visitor in new profiles
2014-04-08 12:44:07 +02:00
Martin Baulig
f986a59333
[Http]: Disable redirect with body and no buffering.
2014-04-08 08:24:40 +02:00
Martin Baulig
461855eddd
[Http]: Clear the 'SendChunked' flag when redirecting.
2014-04-08 08:24:21 +02:00
Martin Baulig
9f7e64c187
[Http]: Remove chunked/etc headers when redirecting a request as GET.
2014-04-08 08:23:54 +02:00
Virgile Bello
dda7f2c520
VTune profiler: update to VTune Amplifier 2013.
2014-04-08 11:45:08 +09:00
Virgile Bello
8910bd2715
MSVC: In libmono.vcxproj, mini-native-types.c was included as header instead of source file.
2014-04-08 11:44:41 +09:00
Marek Safar
9b61bc6fcd
[corlib] Add SortVersion. Fixes #18770
2014-04-07 19:22:17 +02:00
Marek Safar
c52a372c78
[corlib] Set test failure when test hangs
2014-04-07 19:22:17 +02:00
Alexis Christoforides
6f677fd8c3
Merge pull request #955 from ermshiperete/bug-xamarin-10537
...
[MWF] Fix crash from null control in ContainerControl (#10537 )
2014-04-07 11:55:47 -04:00
INADA Naoki
7a8efe928c
[websocket] Don't use string +=
2014-04-07 14:40:43 +09:00
INADA Naoki
0efffb11d8
[websocket] Use string.Equals instead of String.Compare
2014-04-07 14:26:20 +09:00
INADA Naoki
69b3e44b11
[websocket] Better hijacking.
2014-04-07 11:08:18 +09:00
INADA Naoki
69ff10cc32
[websocket] Cleaner closing.
2014-04-07 10:53:43 +09:00
INADA Naoki
7e221721de
[websocket] Implement HttpListenerContext.AcceptWebSocketAsync().
2014-04-07 10:36:03 +09:00
Zoltan Varga
3d469b99ac
[runtime] Refactor mono_marshal_get_delegate_invoke_internal ().
2014-04-05 21:33:24 -04:00
Zoltan Varga
a2e69cea69
[bcl] Simplify the check added in 0ab4372189.
2014-04-05 13:27:47 -04:00
Zoltan Varga
0ab4372189
[bcl] Add an explicit null check to one of the unsafe string cctors instead of relaying on the implicit null check in memcpy () to easy debugging.
2014-04-04 20:37:34 -04:00
Alexis Christoforides
01bc03ffde
Merge pull request #941 from upsilon/fix-layoutsettings-setter
...
Fix setter of TableLayoutPanel.LayoutSettings throws unwanted exception (Novell bug #497562 )
2014-04-04 20:17:27 -04:00
Michael Hutchinson
5cbb6452af
[xbuild] Fix building with 2.0 toolset, take 2
...
BXC18794 - Error executing task Csc with 2.0 toolset since Mono 3.4.0
2014-04-04 16:37:00 -04:00
Zoltan Varga
7fafa50a31
Fix building the monotouch_runtime profile.
2014-04-04 15:50:54 -04:00
Zoltan Varga
45345e6790
Revert "[xbuild] Fix building with 2.0 toolset"
...
This reverts commit 2086958399 .
Revert this as it breaks the build:
MCS [net_2_0] Microsoft.Build.Engine.dll
Microsoft.Build.BuildEngine/Engine.cs(114,81): error CS0117: Microsoft.Build.Utilities.TargetDotNetFrameworkVersion' does not contain a definition forVersion30'
/root/my-mono-fork/mcs/class/Microsoft.Build.Engine/./../../class/lib/net_2_0/Microsoft.Build.Utilities.dll (Location of the symbol related to previous error)
Microsoft.Build.BuildEngine/Engine.cs(116,81): error CS0117: Microsoft.Build.Utilities.TargetDotNetFrameworkVersion' does not contain a definition forVersion35'
/root/my-mono-fork/mcs/class/Microsoft.Build.Engine/./../../class/lib/net_2_0/Microsoft.Build.Utilities.dll (Location of the symbol related to previous error)
Compilation failed: 2 error(s), 0 warnings
2014-04-04 14:58:34 -04:00
Zoltan Varga
8990ab3363
[llvm] Fix the build.
2014-04-04 14:35:54 -04:00
Zoltan Varga
edce99bf2e
[jit] Fix a regression caused by 837773af14.
2014-04-03 23:03:42 -04:00
Zoltan Varga
32860abf66
[jit] Make generic ctor calls made out of gsharedvt methods indirect, since they cannot be patched. Fixes #18634 .
2014-04-03 16:43:07 -04:00
Zoltan Varga
754317f328
[runtime] Disable some warnings.
2014-04-03 16:42:12 -04:00
Zoltan Varga
2629d9775a
[jit] Fix some of the check for support of atomic intrinsics on arm.
2014-04-03 16:10:52 -04:00
Michael Hutchinson
2086958399
[xbuild] Fix building with 2.0 toolset
...
BXC18794 - Error executing task Csc with 2.0 toolset since Mono 3.4.0
2014-04-03 15:38:11 -04:00
Rodrigo Kumpera
8ffc4070a9
Add new public API function mono_set_crash_chaining.
...
mono_set_crash_chaining tells mono to chain crash signals instead of just
running the next one.
This allows us to get the crash info from both mono and the native system.
2014-04-03 12:04:59 -04:00
Jonathan Pryor
199edbc851
[System] Add [MonoTODO] on DefaultTraceListener.AssertUiEnabled.
...
See the mono-list thread for fun/gory details:
http://lists.ximian.com/pipermail/mono-list/2014-March/050732.html
2014-04-03 11:54:25 -04:00
Marek Safar
b79ebc6d2a
Merge pull request #978 from echampet/ikdasm-spec
...
Fix spec file for ikdasm
2014-04-02 12:25:34 -06:00
Etienne CHAMPETIER
769582078f
Fix spec file for ikdasm
...
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-04-02 18:57:29 +02:00
Michael Hutchinson
c4667496bf
[xbuild] Include PCL common targets in tarball
...
BXC18690 - Microsoft.Portable.Common.targets is missing in mono 3.4.0 tarball
2014-04-01 17:32:32 -04:00
Zoltan Varga
64372c1928
[arm] Remove some unused code.
2014-04-01 15:32:38 -04:00
Zoltan Varga
837773af14
[jit] Implement support for atomic intrinsics on arm.
2014-04-01 18:39:05 +00:00
Zoltan Varga
695b17f8d5
[runtime] Fix a crash if the thread name is set before the thread is started.
2014-04-01 18:32:33 +00:00
Marek Safar
56cf1b8c2e
[corlib] Fixes CancellationTokenSource dispose race
2014-04-01 11:10:50 -07:00
Marek Safar
897e95954e
[corlib] Update test with failure info
2014-03-31 16:37:24 -07:00
Marek Safar
2f710f7ac8
[corlib] Make invariant NumberFormatter thread static too as it has internal static state. Fixes #18599
2014-03-31 11:12:44 -07:00
Marek Safar
c72270afd6
[corlib] Filter out any right-to-left sign characters. Fixes #18522
2014-03-31 10:09:29 -07:00
Rolf Bjarne Kvinge
c3b8b74340
Fix monotouch's repl support to build Mono.CSharp (and its dependencies) as well.
2014-03-31 16:58:32 +02:00
Zoltan Varga
db75057d43
Merge pull request #973 from methane/fix-build-on-mac
...
Add mono_threads_core_set_name() on Mac.
2014-03-31 04:17:24 -04:00
INADA Naoki
4bdf2a2d37
Add mono_threads_core_set_name() on Mac.
2014-03-31 16:19:04 +09:00
Alex Rønne Petersen
148b100061
Fix a wrong check in 254954dc09.
2014-03-30 07:31:31 +02:00
Zoltan Varga
97ad698ab4
[aot] Add ReadOnlyCollection to the list of types supported by gsharedvt.
2014-03-29 23:17:08 -04:00
Zoltan Varga
5e0579782e
[runtime] Add support for setting the native thread name on linux.
2014-03-30 00:45:37 +01:00
Miguel de Icaza
776002ee28
Remove profanity
2014-03-28 20:56:02 -04:00
Zoltan Varga
02b95e9552
Fix ikdasm submodule repository path.
2014-03-28 11:06:58 -04:00
Alex Rønne Petersen
9191b70c44
Merge pull request #972 from madewokherd/win32service
...
System.ServiceProcess: Implement ServiceBase.Run for Win32 services.
2014-03-28 07:59:58 +01:00
Vincent Povirk
223e9566a5
System.ServiceProcess: Implement ServiceBase.Run for Win32 services.
...
This commit licensed as MIT/X11.
2014-03-27 17:55:40 -05:00
Zoltan Varga
369ce3a4fa
[aot] Add a 'log-instances=filename' aot option to dump a list of method instances generated to a file for statistical purposes.
2014-03-27 16:02:07 -04:00
Craig Minihan
3c759e3969
[Fix] Bugzilla #18213 - System.Runtime.Caching.MemoryCache doesn't honor SlidingExpiration
2014-03-26 17:32:01 -07:00
Zoltan Varga
2c092e3b65
[aot] Refactor the code a bit.
2014-03-26 18:00:05 -04:00
Zoltan Varga
e145e2fead
[aot] Add more stats to the AOT compiler output.
2014-03-26 17:56:31 -04:00
Zoltan Varga
e09c9f7a08
Distribute the ikdasm managed disassembler written by Jeroen Frijters.
2014-03-25 14:35:44 -04:00
Zoltan Varga
9999740d3a
Bump external/ikdasm to master.
2014-03-25 14:26:50 -04:00
Zoltan Varga
47f30b288f
Add the mono/ikdasm repository as a submodule.
2014-03-25 14:07:30 -04:00
Zoltan Varga
80d1a36c85
Revert "[llvm] Fix the build."
...
This reverts commit d9139d3f77 .
Revert this as it doesn't work with the currently used mono llvm version.
2014-03-25 12:02:06 -04:00
Rodrigo Kumpera
2ea66a5906
Fix the build.
2014-03-25 10:34:43 -04:00
Zoltan Varga
5c054e5130
[runtime] Fix mono_sem_timedwait.
2014-03-25 10:24:39 -04:00
Zoltan Varga
a2668b3d15
[runtime] Reduce timeouts in a test to speed it up.
2014-03-25 10:24:39 -04:00
Rodrigo Kumpera
5ed85e7aad
Merge pull request #970 from Therzok/fixTypo
...
[BigInteger] Fix some tests typos.
2014-03-25 09:58:25 -04:00
Rolf Bjarne Kvinge
b1babf0ff5
[System.Xml.Linq] Fix XNamespace.GetName locking to not be racy. Fixes #18564 .
2014-03-25 08:50:46 -04:00
Marius Ungureanu
b9e053aee5
[Mono.Posix] Remove profanity from tests.
2014-03-25 13:29:50 +02:00
Marius Ungureanu
2f4416a462
[BigInteger] Fix some tests typos.
2014-03-25 13:12:40 +02:00
Zoltan Varga
4f15ef462d
[sdb] Implement a SetIP () method in ThreadMirror which can be used to implement the 'Set Next Statement' functionality in the VS debugger.
2014-03-24 22:14:08 -04:00
Zoltan Varga
9d156dab71
Fix a warning.
2014-03-24 16:32:07 -04:00
Zoltan Varga
d9139d3f77
[llvm] Fix the build.
2014-03-24 09:13:46 -04:00
Marek Safar
7000b8ab4e
Merge pull request #969 from eburgos/fix-wrong-cs0177-squashed
...
[mcs] Fix wrong case for error CS0177 (squashed)
2014-03-23 20:54:56 +01:00
Eduardo Burgos
f953af2044
Adding fix for case of error CS0177
2014-03-23 13:48:44 -04:00
Zoltan Varga
6ee36b8a71
[jit] Fix rethrowing of exceptions in thumb mode. Fixes #18448 .
2014-03-21 20:41:40 -04:00
Zoltan Varga
5d32ecb619
[jit] Add a few more constraints to the UnsafeMov intrinsic.
2014-03-21 20:37:15 -04:00
Zoltan Varga
9ccbd6a096
[runtime] Fix a regression caused by a7d26d4822.
2014-03-21 18:15:55 -04:00
Zoltan Varga
6f7a395e92
[runtime] Fix a warning.
2014-03-21 16:35:56 -04:00
Zoltan Varga
db32a4e29e
[jit] Disallow mixing structs/non-structs in the UnsafeMov intrinsic, the JIT can't handle it.
2014-03-21 15:42:09 -04:00
Zoltan Varga
4d066f415d
[aot] Reorganize emit_and_reloc_code () a bit.
2014-03-21 15:42:09 -04:00
Eberhard Beilharz
ecc5430d31
[mcs] Fix recursive resolving of crefs ( #18511 )
2014-03-21 18:23:59 +01:00
Eberhard Beilharz
88031ccb8d
[mcs] Adding unit test for #18511
2014-03-21 18:23:58 +01:00
Marek Safar
f9a509be0f
Merge pull request #965 from PiotrZierhoffer/patch-1
...
Fix typo in exception message
2014-03-21 16:05:02 +01:00
Piotr Zierhoffer
e7dce0eeba
Fix typo in exception message
2014-03-21 16:00:45 +01:00
Zoltan Varga
3c0c5f8624
[runtime] Add a 'debug-domain-unload' MONO_DEBUG option to make the DEBUG_DOMAIN_UNLOAD define runtime configurable.
2014-03-20 21:09:31 -04:00
Marek Safar
9c5490d8c8
[System] CookieParser optimization tweaks
2014-03-20 22:20:59 +01:00
Zoltan Varga
8affdfa6fa
[sdb] Add an Evaluate method to MethodMirror which can evaluate simple methods like property accessors on the client side without invoking methods in the debuggee.
2014-03-20 15:40:57 -04:00
Marek Safar
29d1e82bef
[System.Net.Http] Incomplete byte ranges parsing. Fixes #18494
2014-03-20 18:57:01 +01:00
Zoltan Varga
a7d26d4822
[jit] Add a 'check-pinvoke-callconv' MONO_DEBUG option to check for cdecl/stdcall mismatches.
2014-03-19 21:03:58 -04:00
Zoltan Varga
ccdcf9cfdb
[sdb] Implement support for fields in MethodBodyMirror.
2014-03-19 19:16:58 -04:00
Marek Safar
6169424b4c
[corlib] Optimize EqualityComparer for common value types. Fixes #18400
2014-03-19 23:11:00 +01:00
Rodrigo Kumpera
6d405d4fd9
[jit] New Array.UnsafeMov intrinsic for overcomming our JIT lack of store-forwarding and type-aware opts.
2014-03-19 15:40:53 -04:00
Marek Safar
6363006285
[mcs] Better heuristics for error parsing of interrogation point.
2014-03-19 17:25:39 +01:00
Zoltan Varga
fdae26513f
Fix the cross-compiler build.
2014-03-18 19:58:35 -04:00
Marek Safar
652615f0a2
[mcs] Flow analysis of nested binary expressions inside anonymous methods was missing on left/right reset. Fixes #18417
2014-03-18 18:38:59 +01:00
Marek Safar
5bc6a95a39
[pcl] Update facades
2014-03-18 18:38:25 +01:00
Marek Safar
3163ab4f67
[mcs] Emit field initializer with expression tree in all user constructors. Fixes #18308
2014-03-18 16:44:41 +01:00
Marek Safar
6352c16dd5
Merge pull request #963 from kebby/master
...
Fix Process.CancelErrorRead
2014-03-18 13:45:38 +01:00
Tammo 'kb' Hinrichs
e8eefe67ac
Merge branch 'master' of https://github.com/kebby/mono
2014-03-18 12:46:10 +01:00
Tammo 'kb' Hinrichs
dce6eeaece
Fix Process.CancelErrorRead
...
Fixed CancelErrorRead throwing an InvalidOperationException because it checked the wrong output stream (probably a cut&paste mistake).
2014-03-18 12:45:11 +01:00
Tammo 'kb' Hinrichs
318127993d
Fix error message in Process.CancelErrorRead
2014-03-18 12:15:14 +01:00
Tammo 'kb' Hinrichs
de520ab9fa
Fix Process.CancelErrorRead
...
Fixed CancelErrorRead throwing an InvalidOperationException because it checked the wrong output stream (probably a cut&paste mistake).
2014-03-18 12:08:48 +01:00
Sebastien Pouliot
13b942c073
[System.ServiceModel.Web] Fix JsonQueryStringConverter.ConvertValueToString to work when running on any culture [ #18437 ]
2014-03-17 21:46:33 -04:00
Jérémie Laval
95f9ffacad
Merge pull request #932 from exony-craigminihan/bugzilla#18182
...
[Fix] Bugzilla #18182 - ConcurrentQueue<T>.TryPeek() is not thread safe
2014-03-17 13:38:05 -04:00
Damien Daspit
f01a48e5b4
[System.XML] Fix handling of space in XSL value-of elements ( #18113 )
2014-03-17 16:22:50 +01:00
Damien Daspit
bc802fe9ff
[System.XML] Add unit test for XSL value-of bug ( #18113 )
2014-03-17 16:22:34 +01:00
Damien Daspit
ef1b6fb63c
[System.XML] Fix XSL node-set bug ( #18114 )
...
XSL node-set function now behaves more like MS version.
2014-03-17 16:12:02 +01:00
Damien Daspit
bdde4c4147
[System.XML] Add unit test for XSL note-set bug ( #18114 )
2014-03-17 16:04:12 +01:00
Marek Safar
276e18d2c7
[system] Update mobile sources list
2014-03-17 15:48:21 +01:00
Marek Safar
30305335b8
Merge pull request #956 from ermshiperete/bug-xamarin-14987
...
[corlib] Fix localized resource loading bug (#14987 )
2014-03-17 15:42:08 +01:00
Marek Safar
16c05cafdf
[mcs] Allow to set any metadata version
2014-03-17 15:38:45 +01:00
Damien Daspit
edf75ac255
[System.XML] Fix handling of global variables in XSLs ( #18118 )
2014-03-17 15:19:39 +01:00
Damien Daspit
c1d5e5ca14
[System.XML] Add unit test for #18118
2014-03-17 15:16:04 +01:00
Marek Safar
ef3f17e5a5
Merge pull request #959 from NN---/patch-4
...
Do not crash if path is specified
2014-03-17 08:56:19 +01:00
Rodrigo Kumpera
e777f9d045
Merge pull request #937 from exony-craigminihan/bugzilla#18235
...
[Fix] Bugzilla #18235 - System.Runtime.Caching.MemoryCache doesn't order...
2014-03-16 22:02:42 -04:00
NN
f6bfc46060
Do not crash if path is specified
...
AssemblyBuilder is not a good class for doing that but simply taking only the file name covers most cases.
The best solution is to rewrite this tool using Mono.Cecil.
FYI AL.exe from .NET is not written in managed because of the SRE limitation
2014-03-16 23:08:53 +02:00
Zoltan Varga
cfd789102b
[runtime] Fix the msvc build.
2014-03-16 13:29:46 -04:00
Craig Minihan
c3a89bffeb
[Fix] Bugzilla #18182 - ConcurrentQueue<T>.TryPeek() is not thread safe
...
- removed IsEmpty test from TryPeek() since not needed now
2014-03-15 14:05:01 -07:00
Craig Minihan
8218c4afa1
[Fix] Bugzilla #18235 - System.Runtime.Caching.MemoryCache doesn't order expirable items correctly
...
- BubbleUp() in MemoryCacheEntryPriorityQueue was not ordering correctly on item insert
- Added a test case
2014-03-15 13:57:50 -07:00
Craig Minihan
704456aa48
[Fix] Bugzilla #18182 - ConcurrentQueue<T>.TryPeek() is not thread safe
...
- in the previous version the IsEmpty could be false, but by time we get
to head.Next.Value we get an exception since Value is now null
- passes existing test cases, although these are not definitive since
they don't show threading issue
- would need to adapt System.Threading.Tasks.ParallelTestHelper to allow
TryPeek() to be called during Enqueue/Dequeue operations to truly
test this change out
2014-03-15 13:50:51 -07:00
Mark Probst
71ad74dc11
[sgen] Restore hazard pointers in suspend signal handler. Fixes #15695 .
2014-03-14 15:29:28 -07:00
Zoltan Varga
b17ae00fa3
[runtime] Fix make install when boehm is disabled.
2014-03-14 17:44:00 -04:00
Rodrigo Kumpera
e593b75bce
Bump mono version.
2014-03-14 14:57:57 -04:00
Stephen McConnel
25ab7f7e36
[corlib] Fix localized resource loading bug ( #14987 )
...
We shouldn't share non-existent resources between resource
managers since different resources can have different localizations.
2014-03-14 17:24:46 +01:00
Stephen McConnel
18d7638422
[MWF] Fix crash from null control in ContainerControl ( #10537 )
2014-03-14 12:06:53 +01:00
Stephen McConnel
9b21123d56
[MWF] Fix TableLayoutPanel layout bug ( #8907 )
...
This fixes the TableLayoutPanel implementation to check for control names
as well as the the controls themselves in looking up the row and column
values.
2014-03-14 11:59:22 +01:00
Marek Safar
578585e0e8
Merge pull request #953 from rcook/p-rcook-correct-spelling
...
Correct spelling DEFAULT_ACCESS_MODIFER -> DEFAULT_ACCESS_MODIFIER
2014-03-14 08:56:16 +01:00
Miguel de Icaza
0a13aae80e
System/PCL: Implement HttpWebRequest.SupportsCookieContainer, WebRequest.CreateHttp; Fixes #18378
2014-03-13 22:53:49 -04:00
Miguel de Icaza
9566a1fd9e
WebResponse.cs: Implement SupportsHeaders property
2014-03-13 22:36:53 -04:00
Rodrigo Kumpera
ecf3c6499a
[boehm] Fix memory management for toggleref.
...
Replace GC_free with GC_INTERNAL_FREE. The former might take the GC lock
and deadlock us.
Replace GC_INTERNAL_MALLOC with GC_INTERNAL_MALLOC_IGNORE_OFF_PAGE as
we don't need the rest of the GC messing around with the toggleref array.
2014-03-13 18:47:26 -04:00
Rodrigo Kumpera
5dc84a1dcf
[thread] Only register a dead letter if the current NSThread is non-null.
...
This breaks all embedder that don't link with CoreFoundation. In mono's case, monodis.
2014-03-13 18:19:33 -04:00
Richard Cook
a8fc26651c
Correct spelling DEFAULT_ACCESS_MODIFER -> DEFAULT_ACCESS_MODIFIER
2014-03-13 15:19:26 -07:00
Rodrigo Kumpera
f6e4b69727
Fix a race condition in the test suite.
2014-03-13 18:19:22 -04:00
Rodrigo Kumpera
d8f724157b
[sgen] Fix the merging code.
...
The right behavior is that the loop move values up to the original size
and them the store after the loop store past it.
Let's see the last 2 iterations:
//i == size - 1 (value = array[size - 2], tmp = array [size - 1])
dyn_array_int_set (array, size, value); //ok
value = tmp; //ok
tmp = dyn_array_int_get (array, i + 1); //tmp has an unknown value, as the last element was never stored to.
//i == size (value = array[size - 1], tmp = array [size])
dyn_array_int_set (array, size, value); //This sets the last element to the right value
value = tmp; //value is undefined, as tmp has
tmp = dyn_array_int_get (array, i + 1); //this is an out-of-bounds read as we're reading 2 elements past the end.
The after the loop store (tmp = array [size + 1]):
dyn_array_int_set (array, size + 1, tmp); //This sets the last element to an unknown value.
With the fix on the last iteration is - 1. The post store will use value, which has
the right value (array [size - 1]).
2014-03-13 18:19:22 -04:00
Zoltan Varga
89d46b1b36
[jit] Add a MONO_IS_CROSS_COMPILE define.
2014-03-13 14:28:19 -04:00
Zoltan Varga
1aa0b78cc4
[runtime] Update configure after changes to llvm-config in the newest llvm versions.
2014-03-13 13:55:46 -04:00
Aaron Bockover
caadde86d9
[bxc#18361] mdbrebase: use File.Move instead of FileInfo.MoveTo
2014-03-13 13:12:51 -04:00
Eberhard Beilharz
41ee671083
[MWF] Fix clipping of last line of dropdown ( #2462 )
...
The height we calculate is the inner height, so we need to add the top
and bottom borders when setting the height of the listbox. The width
however is the outer width so we need to subtract the left and right
borders when setting the client width.
2014-03-13 16:53:27 +01:00
Eberhard Beilharz
8584903ca6
[MWF] Release capture when clicking LinkLabel ( Fixes #2787 )
...
When clicking on a LinkLabel we need to release the mouse capture
otherwise the UI might lock up.
This fixes Xamarin bug #2787 .
2014-03-13 12:47:13 +01:00
Eberhard Beilharz
85d54839fe
[MWF] Fix text position on buttons ( #463149 )
...
Vertically centered text on buttons didn't show up centered. The
referenced bug reports it on Windows. Matters were worse on Linux.
This patch tries to fix the problem on both Windows and Linux. On Linux
the positioning is improved although probably still not perfect.
This fixes Novell bug #463149
(https://bugzilla.novell.com/show_bug.cgi?id=463149 ).
2014-03-13 11:40:55 +01:00
Marek Safar
060c0c67c0
[mcs] Ignore import failures for private types used in private structs
2014-03-13 10:33:15 +01:00
Alex Rønne Petersen
f74f34db43
Add some pointless zero initializations to shut GCC at -O3 up.
2014-03-13 02:06:30 +01:00
Alex Rønne Petersen
0b97ca8686
Convert asserts in sgen-hash-table.c to SGEN_ASSERT ().
2014-03-12 22:59:47 +01:00
Alex Rønne Petersen
0e962a1782
Add an assert to sgen-hash-table.c!rehash_if_necessary () to make GCC at -O3 shut up.
2014-03-12 22:50:30 +01:00
Alex Rønne Petersen
3a45747932
Silence a gcc warning.
2014-03-12 22:05:58 +01:00
Alex Rønne Petersen
a9e3264504
Add/update some .gitignore files so that a clean build + make check results in a clean repo.
2014-03-12 21:49:12 +01:00
Alex Rønne Petersen
8310ce510c
Remove now-unused dyn_array_ptr_set () function.
2014-03-12 21:11:49 +01:00
Alex Rønne Petersen
cfd5e7753b
Add -fwrapv to gcc/clang flags.
...
We rely on signed overflow in many places (in particular for *detecting*
signed overflow), so we need to tell GCC and Clang to not perform any
optimizations that rely on it being undefined.
2014-03-12 21:11:09 +01:00
Rodrigo Kumpera
ae165c5eb8
[sgen] Wrap DynArray into strongly types variants making the code cleaner and safer.
...
This paves the way for having different number of objects inline.
2014-03-12 14:31:05 -04:00
Rodrigo Kumpera
dca87415f3
[sgen] Cleanup argument list of dfs1, src is a constant.
2014-03-12 14:31:04 -04:00
Rodrigo Kumpera
507d9bcd77
[sgen] Remove the elem_size field from DynArray - explicitly pass it instead.
...
This reduces the size of DynArray from 4 to 3 words. Small perf gain.
2014-03-12 14:31:04 -04:00
Rodrigo Kumpera
d7612d7ed2
[sgen] Add an optimized variant of qsort using macros. This is 4x faster on sgen-bridge.
...
The macro produces a custom version of qsort that doesn't use memcpy or a function pointer.
2014-03-12 14:31:04 -04:00
Marek Safar
b7ba13f9af
[mcs] Private fields of structs can have type of another private not imported type
2014-03-12 18:28:02 +01:00
Marek Safar
a492928ef8
[pcl] Complete System.Runtime.InteropServices facade
2014-03-12 18:28:02 +01:00
Eberhard Beilharz
e11d2f4816
[MWF] Don't allow Height become less than MinimumHeight
...
In RowHeightInfoNeededEventArgs we need to check that the new
Height value isn't larger than the current MinimumHeight.
2014-03-12 16:45:44 +01:00
Eberhard Beilharz
5a9e3af896
[MWF] Add unit tests for DataGridViewRowHeightInfoNeededEventArgs
2014-03-12 16:45:44 +01:00
Eberhard Beilharz
4a2aff77aa
[MWF] Fix crash when setting Row.Height ( Fixes #2394 )
...
When setting both Row.Height and MinimumHeight we need to set the
MinimumHeight first otherwise we will get a crash if the new Height
value is less than the old MinimumHeight value.
2014-03-12 16:45:43 +01:00
Eberhard Beilharz
e5335d8a7f
[MWF] Unit test for Row.Height/MinimumHeight bug ( #2394 )
...
This change adds unit tests that demonstrate the bug #2394
where setting Row.Height below MinumumHeight in a DataGridView
doesn't work as expected. The unit tests also document the
behavior of .NET which isn't documented in MSDN.
2014-03-12 16:45:43 +01:00
Eberhard Beilharz
1c98779dab
[MWF] Adjust DataGridViewRow.Height according to MinimumHeight
...
When the MinimumHeight gets changed to a value less than Height
we set height to the new minimum height (and fire the
DataGridView.RowMinimumHeightChanged event). This matches the
behavior on .NET.
When the user tries to set Height to a value less than MinimumHeight
we silently set the height to the minimum height (instead of
throwing an exception). This matches also the behavior on .NET.
2014-03-12 16:42:44 +01:00
Eberhard Beilharz
5d1887a377
[MWF] Refactor DataGridViewRow.MinimumHeight tests
...
- fix the tests (tests made partially wrong assumptions which didn't
match the behavior of .NET).
- split MinimumHeight test in multiple smaller tests that test only
one thing.
- add a few more tests for MinimumHeight and Row.
2014-03-12 16:42:44 +01:00
Zoltan Varga
ddd6681635
[jit] Fix the passing of vtypes on arm in vararg calls. Fixes MonoTests.System.Reflection.Emit.MethodBuilderTest.CanCallVarargMethods in corlib.
2014-03-11 19:11:51 -04:00
Marek Safar
323f0816f4
Add missing types and methods
2014-03-11 23:22:16 +01:00
Miguel de Icaza
6d0ffb3df8
Further doc updates, and schema fixing
2014-03-11 12:32:34 -04:00
Sebastien Pouliot
5bda991de3
[System] Document the new API for SSL/TLS cipher suites control added in ServicePointManager
2014-03-11 11:25:31 -04:00
Rodrigo Kumpera
a678a101ee
Merge pull request #938 from exony-craigminihan/bugzilla#18245
...
[Fix] Bugzilla #18245 - System.Runtime.MemoryCache.GetValues() throws Lo...
2014-03-11 10:28:54 -04:00
Marek Safar
e14d3d04a4
[interpreter] Fix a typo
2014-03-11 14:29:56 +01:00
Marek Safar
2fd90f98a4
[interpreter] Implement simple quote expression. Fixes #18248
2014-03-11 14:29:55 +01:00
Alex Rønne Petersen
07b4f05070
Add support/ to the build when cross-compiling.
2014-03-11 10:11:36 +01:00
Zoltan Varga
d65d91435a
Fix a warning.
2014-03-10 21:06:45 -04:00
Zoltan Varga
bd546d2926
[runtime] Fix the build with newer clang versions.
2014-03-10 20:59:20 -04:00
Mark Probst
a10dcb6eb2
[runtime] Simplify unit-tests Makefile.
2014-03-10 15:59:07 -07:00
Mark Probst
d180972ddf
[runtime] Move unit tests to separate directory.
2014-03-10 15:59:07 -07:00
Mark Probst
539b2b929e
[runtime] Unit test for lock-free linked list set.
2014-03-10 15:59:07 -07:00
Michael Hutchinson
2e939dd1b8
[MSBuild] BXC18246 - GetAssemblyIdentity is not implemented
2014-03-10 17:26:11 -04:00
Zoltan Varga
e2a27f3326
[llvm] Update the LLVM backend to llvm 714a9d742af9ce911a3a46aa6e55041099a04be1.
2014-03-10 17:17:17 -04:00
Rodrigo Kumpera
83f77a71f9
Merge pull request #945 from joelmartinez/master
...
Documentation Update - 4.5 Profile
2014-03-10 16:52:02 -04:00
Joel Martinez
8ca91971eb
docupdate: System.Numerics documentation update
2014-03-10 15:14:03 -04:00
Joel Martinez
4122e47891
docupdate: Microsoft.CSharp documentation update
2014-03-10 15:14:03 -04:00
Joel Martinez
7e0cfc10a5
docupdate: System.ComponentModel.DataAnnotations documentation update
2014-03-10 15:14:02 -04:00
Joel Martinez
3a0e33c369
docupdate: System.ComponentModel.Composition documentation update
2014-03-10 15:14:02 -04:00
Joel Martinez
7e5a64f35c
docupdate: System.Core documentation update
2014-03-10 15:14:02 -04:00
Joel Martinez
307bd4fa43
docupdate: System.IO.Compression documentation update
2014-03-10 15:14:01 -04:00
Joel Martinez
2b564279c7
docupdate: System.Json documentation update
2014-03-10 15:14:01 -04:00
Joel Martinez
93f2e9f1f4
docupdate: System.Runtime.Serialization documentation update
2014-03-10 15:14:01 -04:00
Joel Martinez
46bf898791
docupdate: System.Security documentation update
2014-03-10 15:14:01 -04:00
Joel Martinez
68cf38bad0
docupdate: System.ServiceModel documentation update
2014-03-10 15:14:00 -04:00
Joel Martinez
25ca8ae5df
docupdate: System.Xml.Linq documentation update
2014-03-10 15:14:00 -04:00
Joel Martinez
7bdbca8e92
docupdate: System.Xml documentation update
2014-03-10 15:13:59 -04:00
Joel Martinez
6537401395
docupdate: Mono.Options documentation update
2014-03-10 15:13:59 -04:00
Joel Martinez
b17e448d93
docupdate: updated corlib documentation to the 4.5 profile
2014-03-10 15:13:59 -04:00
Joel Martinez
b6baded277
Updated mdoc to remove <AssemblyVersions> tag
2014-03-10 15:13:57 -04:00
Joel Martinez
ec03cbdc01
Fixed some reference issues with mdoc.csproj: mono.cecil assembly reference, and some resource files were incorrect
2014-03-10 15:13:56 -04:00
Joel Martinez
eebbfbef2b
docupdate: updated System.dll documentation
2014-03-10 15:13:56 -04:00
Joel Martinez
df40b02d52
Updated makefile for Facades to avoid updating docs in that folder.
2014-03-10 15:13:55 -04:00
Zoltan Varga
6b6aee8c65
[jit] Add support for --debug=casts to one cast codepath, factor out common code. Fixes #18280 .
2014-03-10 15:10:33 -04:00
Zoltan Varga
98619c109a
[jit] Add an optimization to use the optimized delegate invoke trampolines in some special cases, since the corresponding delegate invoke wrappers cannot be AOTed. Fixes part of #17423 .
2014-03-10 14:54:35 -04:00
Zoltan Varga
f81868477f
[jit] Change the sgen vector allocator il code so it can be AOTed.
2014-03-10 14:45:55 -04:00
Stephen McConnel
17cf11f433
[MWF] Better account for icon width in MessageBox
...
This fixes Xamarin bug #16374 .
2014-03-10 16:47:25 +01:00
Stephen McConnel
4c88b53785
[MWF] Fix MessageBox to wrap texts reasonably
...
Wrap text in MessageBox window so that the message box has a reasonable
width. This fixes Xamarin bug #15504 .
2014-03-10 16:45:16 +01:00
Eberhard Beilharz
61f9fca85e
[MWF] Fix size of text area on message box ( Fixes #2090 )
...
Previously some characters might have been concatenated on a message
box that displayed an icon because the size of the text area was
calculated wrong. This fixes bug #2090
(https://bugzilla.xamarin.com/show_bug.cgi?id=2090 ).
2014-03-10 16:45:10 +01:00
Marek Safar
3d23503a90
[interpreter] Size reduction
2014-03-10 16:14:56 +01:00
Marek Safar
6b959efb22
[corlib] Update en-au pm/am designators
2014-03-10 11:33:44 +01:00
Kimura Youichi
cc21d974b5
Fix setter of TableLayoutPanel.LayoutSettings throws unwanted exception (Novell bug #497562 )
2014-03-10 05:26:46 +09:00
Kimura Youichi
44bedb30d7
Add unit test for Novell bug #497562
2014-03-10 05:26:35 +09:00
Marek Safar
81573de69d
[corlib] Add .net compatible separators for es culture
2014-03-08 23:05:53 +01:00
Marek Safar
0d4949b842
Merge pull request #940 from alistair/ilist_xml_serialization
...
ilist xml serialization
2014-03-08 23:01:13 +01:00
Zoltan Varga
34fa78a5d8
[bcl] Work around quadratic behavior in NunitLite's AreEquivalent () methods.
2014-03-08 16:11:36 -05:00
Alistair Bush
eaa5a184ca
Add test to ensure using concrete List as readonly property still serializes
...
This change is released under the MIT license.
2014-03-09 01:12:06 +13:00
Alistair Bush
f3296a1559
When a read only property and the type is an interface we can't serialize the type.
...
This change is released under the MIT license.
2014-03-09 01:05:24 +13:00
Rodrigo Kumpera
8a0c516a7c
[corlib] Fix the mobile profile.
2014-03-07 18:00:17 -05:00
Rodrigo Kumpera
c40af3e9a0
[io-layer] Bionic doesn't have clock_nanosleep.
2014-03-07 18:00:17 -05:00
Zoltan Varga
beb190172d
[runtime] Make different kinds of delegate invokes use a different name.
2014-03-07 14:23:26 -05:00
Marek Safar
200682ac78
Update CLDR to version 2.4. Fixes #17615
2014-03-07 17:56:33 +01:00
Marek Safar
802bc45cae
[corlib] Fix culture name constants in CreateSpecificCultureFromNeutral to be all lower case
2014-03-07 17:56:33 +01:00
Rodrigo Kumpera
7ca713e156
[sgen] Change the bridge interface to include richer type information on classes.
...
There is an additional axis to bridge processing than just if a type is a bridge or not.
It can be processing transparent or opaque.
We didn't make this distinction before and treated all types as transparent.
Opaque types means that bridge processing should stop at them. An opaque bridge, in
addition to that, means it should be reported in.
This change paves the way for bridge graph pruning.
2014-03-07 10:37:20 -05:00
Craig Minihan
d4ea35a94a
[Fix] Bugzilla #18245 - System.Runtime.MemoryCache.GetValues() throws LockRecursionException with expired items
...
- GetValues() calls MemoryCacheContainer.GetEntry() which now gets an EnterUpgradeableReadLock needed by ExpireIfNeeded()
- Added a test case
2014-03-07 04:40:23 -08:00
Michael Hutchinson
e01250c2c7
Merge pull request #915 from knocte/master
...
xbuild: include a Microsoft.Portable.Common.targets file (for F#)
2014-03-06 16:57:18 -05:00
Marek Safar
ea324fa5ea
[system.net.htt[] Pass CancellationToken in GetAsync. Fixes #13281
2014-03-06 22:54:39 +01:00
Marek Safar
4b4ddb66b3
[corlib] Improve flow of ExecutionContext (few tests taken from https://github.com/mono/mono/pull/864 ). Fixes #18121 and similar.
2014-03-06 19:54:06 +01:00
Rodrigo Kumpera
0da40ef41b
Merge pull request #936 from adahn/master
...
[runtime] Fixed flags for VirtualAlloc in mono_valloc (Windows)
2014-03-06 11:18:31 -05:00
Marek Safar
bc1d754ec1
Merge pull request #866 from linquize/content-type-encoding
...
(master) If HTTP charset header is empty, do not append content encoding to Content-Type header
2014-03-06 17:07:27 +01:00
Adam Rzepka
5dc8b1cdff
[runtime] Fixed flags for VirtualAlloc in mono_valloc (Windows)
2014-03-06 15:46:54 +01:00
Rodrigo Kumpera
00853025ec
Merge pull request #934 from exony-craigminihan/bugzilla#17897-B
...
[Fix] Bugzilla #17897 - MemoryCacheEntryPriorityQueue throws out of boun...
2014-03-06 08:40:47 -05:00
Craig Minihan
58e399bb9b
[Fix] Bugzilla #17897 - MemoryCacheEntryPriorityQueue throws out of bounds after shrink
...
- when MemoryCacheEntryPriorityQueue grows the timed items after a shrink
the value of the member variable heapSize is wrong allowing an out-of-
bounds exception which would normally be prevented by bounds tests
- A test case was added for the out-of-bounds exception
2014-03-06 02:46:49 -08:00
Zoltan Varga
865389c630
Disable the test-messages test on win32, its not needed.
2014-03-05 21:23:09 -05:00
Zoltan Varga
8d65a236c9
[runtime] Fix loaded llvm support.
2014-03-05 21:13:45 -05:00
Zoltan Varga
cfabe7be1c
[runtime] Disable MONO_XEN_OPT on windows.
2014-03-05 21:12:36 -05:00
Zoltan Varga
7070b4ab46
[jit] Implement the push/pop LMF code in IR on windows too.
2014-03-05 21:11:49 -05:00
Zoltan Varga
b5523227a5
Really fix the build.
2014-03-05 19:15:40 -05:00
Zoltan Varga
03212f394f
[runtime] Move some counters to the mono-counters infrastructure, to break dependencies between utils/ and metadata/.
2014-03-05 17:30:08 -05:00
Marek Safar
4a9ea4c37a
[corlib] Parse datetime string using culture calendar. Fixes #18052
2014-03-05 23:26:16 +01:00
Zoltan Varga
5b258ea848
[runtime] Fix a memory leak.
2014-03-05 17:01:48 -05:00
Zoltan Varga
c5f8c79486
[runtime] Fix a memory leak.
2014-03-05 16:41:56 -05:00
Zoltan Varga
ac8ecaaea4
[runtime] Fix a memory leak.
2014-03-05 16:40:50 -05:00
Zoltan Varga
0c40a9856a
[runtime] Implement wapi_process_get_path () on non osx platforms by falling back to get_process_name_from_proc ().
2014-03-05 15:49:49 -05:00
Zoltan Varga
0bbaa58f20
[sdb] Add some debug output to help track down #18100 .
2014-03-05 14:41:15 -05:00
Zoltan Varga
0bdbf3f2ba
Fix the build.
2014-03-05 14:33:09 -05:00
Marek Safar
0c35602a17
[corlib] Implement CultureInfo.ClearCachedData. Fixes #18162
2014-03-05 19:45:28 +01:00
Zoltan Varga
ed16d69d4b
[mdoc] Fix the tests.
2014-03-05 13:12:38 -05:00
Marek Safar
66aa46557b
Merge pull request #931 from exony-craigminihan/bugzilla#18097
...
Correctly set Count after call to ConcurrentStack.PushRange()
2014-03-05 15:19:27 +01:00
Craig Minihan
7bc35e0a01
Correctly set Count after call to ConcurrentStack.PushRange()
2014-03-05 04:33:54 -08:00
Marek Safar
153692f609
Merge pull request #930 from theraot/master
...
New cast to double and float for BigInteger
2014-03-05 08:22:02 +01:00
Alex Rønne Petersen
7843622f2c
Add a MONO_CONSERVATIVE_HWCAP environment variable.
...
Also a bit of cleanup in the hwcap code.
2014-03-05 07:44:23 +01:00
Alex Rønne Petersen
fcbf89d2ad
Add a MONO_DEBUG=suspend-on-exception option.
2014-03-05 07:44:15 +01:00
Zoltan Varga
243899a5bd
[runtime] Launch managed exe's using the current runtime executable if possible. Fixes #17820 .
2014-03-04 22:05:33 -05:00
Zoltan Varga
490ca4b751
Revert parts of 6769a30f4, it disabled the hand-specialized sort methods in the non-aot case instead of the aot case.
2014-03-04 18:41:42 -05:00
theraot
df50c16760
[Fix] BigInteger: reimplemented cast to single (float)
...
- The new implementation casts to double and then to float.
2014-03-04 16:19:19 -05:00
theraot
f2dd91de16
[Fix] BigInteger: improved cast to double
...
- Added overloads for PopulationCount and LeadingZeroCount that take ulong.
- Added helper method BuildDouble that constructs a double by sign, mantissa
and exponent. This method truncates the mantissa, thus may differ in
rounding to Math.Pow.
- The new implementation avoids Math.Pow by using BuildDouble.
- Passing all recently added tests.
2014-03-04 13:59:11 -05:00
theraot
7d23576855
BigInteger: more test cases for cast to double
2014-03-04 13:43:58 -05:00
Marek Safar
2f909cf433
[interpreter] Size reduction
2014-03-04 19:40:25 +01:00
Marek Safar
6f96d2d973
[mcs] Emit correct code for lifted nullable bool logical operators where left operand is not pre cached.
2014-03-04 18:34:31 +01:00
theraot
f277bca903
BigInteger: added tests for double conversion
2014-03-04 11:28:34 -05:00
theraot
1868150cbe
[Performance] BigInteger: cast to double and float
...
- The new implementation converts directly to double or float.
2014-03-04 11:14:01 -05:00
theraot
697c793e47
BigIngeter: new LeadingZeroCount helper method
...
- The new helper method LeadingZeroCount returns the number of bits
that are set to 0 at the start of an uint.
2014-03-04 11:12:41 -05:00
Sebastien Pouliot
56d406876f
[System.ServiceModel.Web] Fix regression when converting strings using some (like German) cultures [ #18131 ] and add unit test
2014-03-04 09:00:36 -05:00
Marek Safar
9cbe9c372b
[corlib] Seal InternalThread
2014-03-04 10:17:30 +01:00
Zoltan Varga
1e811b2c65
[runtime] Fix the cross-compiler build.
2014-03-04 00:05:42 -05:00
Zoltan Varga
9c1971cf9d
[runtime] Fix a memory leak.
2014-03-03 22:26:16 -05:00
Zoltan Varga
d1c6d5a164
[llvm] Create separate MonoLLVMModule and an LLVM execution engine for each appdomain so they can be freed when the appdomain is unloaded. Part of the fix for #18083 .
2014-03-03 20:32:35 -05:00
Zoltan Varga
9968d23b8c
Fix the build.
2014-03-03 16:22:02 -05:00
Zoltan Varga
b28b84f05e
[llvm] Remove some debug spew.
2014-03-03 15:04:52 -05:00
Zoltan Varga
9ed2e8e22e
[llvm] Make the 'llvm_types' hashtable per-domain to fix memory leaks.
2014-03-03 14:54:00 -05:00
Zoltan Varga
b1b7ef35b1
[jit] Add support for the new DUMMY_ opcodes to the arm backend.
2014-03-03 14:53:28 -05:00
Zoltan Varga
2e34a838d3
[llvm] Fix more memory leaks.
2014-03-03 14:49:11 -05:00
Zoltan Varga
1aa63665e6
[llvm] Fix a memory leak.
2014-03-03 12:58:22 -05:00
Zoltan Varga
d8a94636ac
[llvm] Fix a memory leak.
2014-03-03 12:50:47 -05:00
Marek Safar
db84f82ecb
[mcs] Mark switch statement block scope statements as reachable. Fixes #18092
2014-03-03 18:10:08 +01:00
Martin Baulig
93fe81b22e
This is a .NET 4.5 test.
2014-03-03 17:35:38 +01:00
Zoltan Varga
ff9d20e5b1
[jit] Add LLVM support for the new OP_DUMMY_ opcodes.
2014-03-02 17:16:16 -05:00
Zoltan Varga
cf2aa3162e
[jit] Avoid forcing initlocals to TRUE when the 'unsafe' optimization flag is set. Fixes #18068 .
2014-03-02 17:06:24 -05:00
Jeffrey Stedfast
250756b5f5
Merge pull request #929 from edbprx/master
...
Data corruption using SslStream (Xamarin bug 15293)
2014-03-01 20:53:37 -05:00
Zoltan Varga
eef1f283a6
[jit] Allow inlining of calls to method with the AggressiveInlining attribute in aot mode.
2014-02-28 20:06:13 -05:00
Zoltan Varga
2d77b39444
[jit] Fix an uninitialized memory problem in the soft-float code.
2014-02-28 19:52:39 -05:00
Zoltan Varga
ea38ea330c
[jit] Implement proper tail call support on arm. Fixes #17654 .
2014-02-28 19:01:16 -05:00
Ed Boren
ee17eca298
Data corruption using SslStream (Xamarin bug 15293)
...
When reading and writing data at the same time over an
System.Net.Security.SslStream, an exception will be thrown often.
Usually the exception is: Mono.Security.Protocol.Tls.TlsException “Bad
record MAC”
The issue is that the single TlsCipherSuite instance used for both
reading and writing does not synchronize access to the “header” member.
If the contents get corrupted the MAC calculation returned by
ComputServerRecordMAC or ComputeClientRecordMAC is incorrect.
See https://bugzilla.xamarin.com/show_bug.cgi?id=15293 . Reproduced in
OS X, iOS and Windows.
2014-02-28 17:08:15 -05:00
Alex Rønne Petersen
510eae664c
Fix a warning introduced by the boehm toggleref code.
2014-02-28 22:43:03 +01:00
Alex Rønne Petersen
830c5172c4
Merge pull request #927 from ermshiperete/novell-bug-708856
...
[MWF] Fix finding of X11 shared library on Ubuntu (#708856 )
2014-02-28 22:29:51 +01:00
Alex Rønne Petersen
af7ed330ae
Properly fix the iowait_ticks / strtoull () warning in mono-proclib.
2014-02-28 22:18:58 +01:00
Zoltan Varga
476c90fe96
[llvm] Fix --enable-loadedllvm on osx/amd64.
2014-02-28 13:36:59 -05:00
Eberhard Beilharz
5a79253d67
[MWF] Fix finding of X11 shared library on Ubuntu ( #708856 )
...
When libX11-dev is not installed on an end-user's machine MWF apps
will crash in XCreateFontSet. This change uses dynamic search path
when building instead of hard coded directories when
searching for libX11.so.*. This fixes bug 708856
(https://bugzilla.novell.com/show_bug.cgi?id=708856 ).
2014-02-28 18:04:40 +01:00
Zoltan Varga
342418201c
[runtime] Fix memory leaks and usage of freed memory in ves_icall_System_Net_Dns_GetHostByName_internal. Fixes #18063 .
2014-02-28 11:31:49 -05:00
Tom Hindle
4813a70a29
[MWF] Fix hang if clipboard source application closes down ( fixes #674098 )
...
This change adds a timeout to the Clipboard.Enumerating loop, making a
hang less likely. This fixes Novell bug #674098
(https://bugzilla.novell.com/show_bug.cgi?id=674098 ).
2014-02-28 17:31:22 +01:00
Martin Baulig
51984e1631
Fix this again.
2014-02-28 17:27:16 +01:00
Eberhard Beilharz
049a349dae
[Printing] Improve reported printer settings ( Fixes #602934 )
...
Report the actual values of the printer driver in printer settings
instead of using hard coded default values. This fixes Novell bug
#602934 (https://bugzilla.novell.com/show_bug.cgi?id=602934 ).
2014-02-28 16:45:46 +01:00
Eberhard Beilharz
4ee69bbd30
[Printing] Add unit test for Novell bug #602934
...
This unit test demonstrates the problem reported as #602934
(https://bugzilla.novell.com/show_bug.cgi?id=602934 ).
2014-02-28 16:36:26 +01:00
Marek Safar
9c4c295524
[corlib] Method signature fixes
2014-02-28 13:30:16 +01:00
Zoltan Varga
fe3b21ae71
[corlib] Disable an OOM test which shouldn't fail on 64 bit machines.
2014-02-27 19:14:22 -05:00
Mark Probst
ba9e1a26a8
[sgen] Fix cardtable for huge (>4gb) objects on 64bit.
...
We use an overlapping card table on 64 bits, meaning that the address
space wraps around our card table (every 4gb). We had assumed in a few
places that an object could wrap around the end of the card table at most
once, but with objects larger than 4gb that is not the case.
Fixes the corlib test suite crash on OSX/64bit
(in SortedListTest.TestCapacity4).
2014-02-27 14:41:52 -08:00
Marcus von Appen
1870f70369
- Use the correct absolute path for relative paths within a rooted path
2014-02-27 20:48:26 +01:00
Martin Baulig
154272d7a6
NUnitLite does not know Assert.IsInstanceOfType().
2014-02-27 20:39:22 +01:00
Zoltan Varga
10b3d70111
[runtime] Fix an assertion which is hit if thread_cleanup () is called for a thread after it has been finalized during shutdown.
2014-02-27 14:33:33 -05:00
Marek Safar
dff86fe824
[corlib] Add missing api
2014-02-27 20:22:12 +01:00
Zoltan Varga
e98625a6e3
[runtime] Switch the order of LLVM_LIBS and LLVM_LDFLAGS on the linker command line. Hopefully fixes #17931 .
2014-02-27 13:32:50 -05:00
Zoltan Varga
42edc1dddb
Revert "[runtime] Add support for jagged array ctors which create an array of arrays. Fixes #17944."
...
This reverts commit 2136f8f0bc .
Revert this as it breaks make check PROFILE=net_2_0 in corlib.
2014-02-27 12:36:37 -05:00
Eberhard Beilharz
0dd29f1e7f
[Sys.Data] Fix Novell Bug #519648
...
Don't throw an exception when passing "new object[] {null}" to
DataRowCollection.Find. This makes the behaviour more compatible
with .NET. This fixes bug #519648
(https://bugzilla.novell.com/show_bug.cgi?id=519648 ).
2014-02-27 17:35:54 +01:00
Eberhard Beilharz
6505533785
[Sys.Data] Add unit tests for Novell bug #519648
...
These unit tests demonstrate the difference to .NET
(https://bugzilla.novell.com/show_bug.cgi?id=519648 ).
2014-02-27 17:33:06 +01:00
Marek Safar
2009c2284e
Merge pull request #922 from ermshiperete/novell-bug-599689
...
Fix Novell bug 599689
2014-02-27 16:41:04 +01:00
Marek Safar
1642d39e9f
Merge pull request #921 from ermshiperete/novell-bug-594490
...
Allow qualified names in XmlAttribute serialization
2014-02-27 16:40:11 +01:00
Eberhard Beilharz
aa6842b2fc
[Sys.Xml] Fix Novell bug #599689
...
This change fixes #599689
(https://bugzilla.novell.com/show_bug.cgi?id=599689 ) by making the
output of XmlSchemaException.ToString() match the output under .NET.
2014-02-27 16:33:08 +01:00
Martin Baulig
5011900cc3
Fix the mobile build.
...
On the mobile profile, System.Xml.Linq is signed with the winfx key, not
with the ecma one, so we need a different [assembly: InternalsVisibleTo].
2014-02-27 16:30:29 +01:00
Eberhard Beilharz
86164dac13
[Sys.Xml] Add unit test for Novell bug #599689
...
The unit test demonstrates a difference between Mono and .NET
(https://bugzilla.novell.com/show_bug.cgi?id=599689 ).
2014-02-27 16:28:08 +01:00
Neil Mayhew
43ccb972b4
[Sys.Xml] Allow qualified names in XmlAttribute serialization
...
This fixes Mono bug #594490
(https://bugzilla.novell.com/show_bug.cgi?id=594490 ).
2014-02-27 16:01:50 +01:00
Eberhard Beilharz
c0ef1fcb02
[Sys.Xml] Add unit test for Novell bug #594490
...
The unit test demonstrates the problem of serializing the
xml:lang attribute.
2014-02-27 15:57:57 +01:00
Miguel de Icaza
89684c509a
Merge pull request #912 from Treer/patch-1
...
[FIX] mono-xmltool can't write to a file when prettyprinting, and corrupts the input file.
2014-02-26 23:09:19 -05:00
Rodrigo Kumpera
5611946a30
[boehm] Integrate toggleref support into the runtime.
2014-02-26 18:07:28 -05:00
Rodrigo Kumpera
ae15e93b92
[boehm] Add toggleref support for boehm. This is line by line port of the sgen code, so keep them in sync.
2014-02-26 18:07:28 -05:00
Zoltan Varga
2136f8f0bc
[runtime] Add support for jagged array ctors which create an array of arrays. Fixes #17944 .
2014-02-26 16:16:45 -05:00
Zoltan Varga
cba20cd722
[jit] Move a debug message to a larger verbosity level.
2014-02-26 16:16:44 -05:00
Zoltan Varga
243cecfaf2
[runtime] Fix the --enable-loadedllvm build on linux.
2014-02-26 21:39:33 +01:00
Zoltan Varga
9ad06a3bf6
[bcl] Allow Marshal.SizeOf () to work on pointer types. Fixes #17587 .
2014-02-26 15:14:39 -05:00
Zoltan Varga
3953bef4aa
[runtime] Add a FIXME.
2014-02-26 14:53:47 -05:00
Mark Probst
484d5d0408
[runtime] Fix a thread join race condition. Fixes #18026 .
2014-02-26 11:07:19 -08:00
Zoltan Varga
b87d9f4a32
[runtime] Fix an assert if a thread cannot be created. Fixes #18000 .
2014-02-26 13:41:58 -05:00
Rodrigo Kumpera
8bbaaa0c57
[sgen] Ensure togglerefs are only cleared after we proccess finalizers and CWT.
...
Clearing TRs before finalizers and CWT means user driver resurrection would fail
badly.
2014-02-26 12:24:35 -05:00
Zoltan Varga
2c64ed7866
[bcl] Fix System tests.
2014-02-26 12:00:48 -05:00
Martin Baulig
8f2d3ea31d
HttpWebRequest: Only add "Content-Length" if we have a body; fixes #17736 .
2014-02-26 15:49:25 +01:00
Marek Safar
e511e29095
[System] Add NetworkCredential 4.0 construtors. Fixes #18005
2014-02-26 10:54:29 +01:00
Marek Safar
32317ae405
[dlr] Add interpreter increment emit
2014-02-26 10:44:51 +01:00
Michael Hutchinson
0246bd1729
[gacutil] Create correct relative package symlinks
...
BXC17951 - broken softlinks in mono/xbuild/12.0/bin
2014-02-25 19:32:25 -05:00
Zoltan Varga
6124460628
[runtime] Remove the usage of pthread_cleanup_push/pop functions from io-layer code.
2014-02-25 19:03:51 -05:00
Zoltan Varga
7f0b4dc545
Merge pull request #914 from eiz/master
...
Fix memory leak.
2014-02-25 17:55:09 -05:00
Alexander Köplinger
f9c6ed950e
[MSBuild] Fixed a test that failed when the GAC wasn't available
...
The test tried to resolve an assembly from the GAC, which doesn't work on a
clean machine without an existing Mono installation.
We now check if the GAC directory is missing and ignore the test in that case.
2014-02-25 21:21:10 +01:00
Martin Baulig
c4941b96b6
Oops, fix the build.
2014-02-25 19:11:05 +01:00
Martin Baulig
2d573ae1ce
[Sys.Xml]: Allow XElement to be deserialized; fixes #12571 .
2014-02-25 18:59:29 +01:00
Martin Baulig
42c568fb11
[System]: Split WebClient.UploadData() data into chunks and fire the event.
...
This is mostly cosmetic and won't help unless you're sending a very large
buffer due to the kernel's internal buffering. Unfortunately, there is no
way of getting a notification when the data has actually been sent over the
wire - socket.Write() returns after the kernel has accepted the data.
2014-02-25 18:59:20 +01:00
Martin Baulig
faaa8a7c94
Async-ify the remaining WebConnectionStream pieces.
2014-02-25 18:57:30 +01:00
Zoltan Varga
190bd17354
[runtime] Fix the arm build.
2014-02-25 11:54:38 -05:00
Alex Rønne Petersen
f759f1eef1
Merge pull request #913 from Daniel15/fix-catchall-routing-master
...
Fix routing of CatchAll tokens (Bug #17960 ) - on master
2014-02-25 17:52:21 +01:00
Paolo Molaro
57ade9dfca
Added new API mono_runtime_set_main_args() and fixed CommandLine for embedders.
...
The new API allows to set the program arguments from embedders that don't call
mono_jit_exec() and related functions that set them automatically. This change
also fixes the NullRef exception that would happen if the arguments are not set.
2014-02-25 17:43:08 +01:00
Miguel de Icaza
a871be7826
Add documentation for CFNetworkHandler
2014-02-25 11:43:01 -05:00
Zoltan Varga
2027961a5c
Fix the build.
2014-02-25 11:38:46 -05:00
Miguel de Icaza
92beedb3a0
Add System.Net.Http documentation
2014-02-25 11:29:27 -05:00
Andrés G. Aragoneses
76d4e2ad1e
xbuild: include a Microsoft.Portable.Common.targets file (for F#)
...
F# PCL projects expect this file to exist in:
$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.Common.targets
So in order to avoid pristine F# PCL projects (created from VS) fail
the build that file has to exist, and import the Core targets like
its CSharp counterpart (Microsoft.Portable.CSharp.targets) does.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=17906
2014-02-25 13:10:29 +01:00
Mackenzie Straight
f657c5c5f4
Fix memory leak.
...
Introduced in b322a6e410 . variance_used
was not being set before use, resulting in leaked trampolines when
calling methods on variant interfaces.
2014-02-25 04:05:04 -05:00
Miguel de Icaza
d28e7b7955
[System.Runtime.Serialization] Fix from Brendan Zagaeski for bug #17663
2014-02-24 21:16:29 -05:00
Miguel de Icaza
a195d21e04
[runtime] some inline api docs
2014-02-24 21:14:05 -05:00
Rodrigo Kumpera
ba5aecb347
[sgen] Ensure minor_collection_allowance is always initialized. This avoid a spurious GC on startup.
2014-02-24 18:35:06 -05:00
Rodrigo Kumpera
fba337b499
[sgen] Add regression test for toggleref transient marking bug.
2014-02-24 18:35:06 -05:00
Rodrigo Kumpera
362b3cc059
[sgen] Split mark/clean phase of sgen-toggle processing to account for transitive liveness.
...
Given two TG objects A and B. A is strong, B is weak, A points to B. B should remain registered
for TG processing since it's reachable thru A.
This means we have to split processing in multiple steps. Phase one marks all strong refs that should
happen before finalizer processing and phase two that happens after finalizers that cleanup those
that turned unreachable.
2014-02-24 18:35:05 -05:00
Rodrigo Kumpera
93f3bdf944
[sgen] We must do bridge processing with all sgen locks taken.
2014-02-24 18:35:05 -05:00
Rodrigo Kumpera
a30838160e
[sgen] Add internal test helper for sgen-toggleref.
2014-02-24 18:35:05 -05:00
Zoltan Varga
3114a6561a
[runtime] Fix reading invalid memory during some checks for remoting types.
2014-02-24 17:25:39 -05:00
Zoltan Varga
ce43afaee2
[runtime] Fix a memory leak.
2014-02-24 17:25:39 -05:00
Marek Safar
706426c3a2
[mcs] Don't report internal error for unresolved catch type. Fixes #17975
2014-02-24 23:08:16 +01:00
Zoltan Varga
a1ee26a7c8
[runtime] Fix the order of how we fix types during appdomain unload. Fixes #17977 .
2014-02-24 16:30:52 -05:00
Marek Safar
7632747636
[corlib] Simplify ambiguous chinese legacy name check
2014-02-24 21:59:10 +01:00
Zoltan Varga
a1f8b20f20
[runtime] Export mini_type_is_vtype on linux as it is needed by the loaded llvm module.
2014-02-24 21:20:40 +01:00
Zoltan Varga
e040f62eff
[aot] Add support for encoding method addresses using call instructions on x86/amd64 as well, not enabled.
2014-02-24 14:41:34 -05:00
Zoltan Varga
98a57b7e67
[jit] Fix mono_arch_get_call_target () on x86/amd64.
2014-02-24 14:41:33 -05:00
Daniel Lo Nigro
627e902c8d
Fix routing of CatchAll tokens
2014-02-24 10:11:47 -08:00
Rodrigo Kumpera
9e8ecbc553
Fix the version string.
2014-02-24 11:53:45 -05:00
Marek Safar
adb82c8bb0
[mcs] Simplify array element initializer load
2014-02-24 16:01:22 +01:00
Marek Safar
9cf471386b
[mcs] Release array stack variable once all elements are initialized. Fixes #17942
2014-02-24 16:01:21 +01:00
Treer
18201dd3e9
xmltool.cs fix for writing output to files
...
A bug in argument handling meant that "mono-xmltool --prettyprint source.xml dest.xml" fails to write dest.xml and erases the contents of source.xml
2014-02-24 21:01:18 +11:00
Marek Safar
28243cc0e4
Merge pull request #910 from akoeplinger/cleanup-test-ignores
...
[Test] Cleaned up how a bunch of tests were ignored
2014-02-24 08:46:23 +01:00
Alexander Köplinger
b0032294da
[Test] Cleaned up how a bunch of tests were ignored
...
Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
2014-02-23 19:44:21 +01:00
Atsushi Eno
06502ec1e9
[msbuild] for EmbeddedResource naming, take AutoGen property into consideration.
2014-02-23 23:36:02 +09:00
Miguel de Icaza
c86473c2ba
Work around DNS problem on the build hosts
2014-02-21 18:09:36 -05:00
Rodrigo Kumpera
ed2d8f0b60
Merge pull request #908 from madewokherd/mingw-build
...
Avoid a POSIX include on Windows.
2014-02-21 17:48:19 -05:00
Vincent Povirk
5d89c7ccad
Avoid a POSIX include on Windows.
...
This commit licensed as MIT/X11.
2014-02-21 16:41:13 -06:00
Zoltan Varga
7f8a9abb17
[jit] Add more comments about why the 'dse' llvm optimization is disabled.
2014-02-21 16:21:45 -05:00
Zoltan Varga
c198a393b4
Fix bootstrap with older mono versions.
2014-02-21 13:57:15 -05:00
Sebastien Pouliot
bc0900537c
[System] Enable WebSockets on the mobile profile. Update related unit tests to run on mobile (and fix one to build with NUnitlite)
2014-02-21 13:41:57 -05:00
Mark Probst
1a662679aa
[runtime] Fix build on Linux.
2014-02-21 10:22:26 -08:00
Zoltan Varga
47a274c3d5
[runtime] More io-layer threading cleanups.
2014-02-25 17:38:53 -05:00
Zoltan Varga
c58749d1e8
[runtime] Get rid of the _wapi_thread_signal_self () function.
2014-02-25 17:21:51 -05:00
Zoltan Varga
b6732f5a98
[runtime] Get rid of the unused _wapi_thread_dispatch_apc_queue () function.
2014-02-25 17:13:24 -05:00
Zoltan Varga
55fe4ac0a4
[runtime] Get rid of OpenThread (), move its functionality to mono-threads.c.
2014-02-25 17:09:32 -05:00
Zoltan Varga
2fed14d6ef
[runtime] Allocate code chunks next to each other if possible to prevent vm fragmentation when they are freed during domain unloading. Fixes #17987 .
2014-02-25 17:05:26 -05:00
Zoltan Varga
269879d6cd
[runtime] Align sizes before aligning them to pagesize in the code manager to avoid allocating blocks which are larger than they should be.
2014-02-25 17:00:23 -05:00
Zoltan Varga
d962b11e1b
Fix a warning.
2014-02-25 16:21:20 -05:00
Zoltan Varga
4e012c326d
[runtime] Fix SleepEx () on linux to clock_nanosleep () to work around time drifting caused by interrupts.
2014-02-25 16:20:01 -05:00
Marek Safar
c83e56292d
[System.Runtime.Caching] Fix ambiguous method call
2014-02-21 09:27:30 +01:00
Zoltan Varga
5065dab960
[runtime] Simplify the io-layer threading code a bit more.
2014-02-20 19:31:50 -05:00
Miguel de Icaza
22a4103091
[style] comment style updated
2014-02-20 19:12:08 -05:00
Rodrigo Kumpera
51d57122ef
Add missing file I forget. Fix the build.
2014-02-20 18:24:38 -05:00
Rodrigo Kumpera
2d97048024
[runtime] Add an additional to detect thread death on Mach that happens even further in the cleanup process.
2014-02-20 18:11:01 -05:00
Zoltan Varga
426c784f50
[runtime] Disable DEBUG_DOMAIN_UNLOAD which was enabled by mistake. Fixes #17805 .
2014-02-20 17:51:45 -05:00
Zoltan Varga
e7c8bb12a5
[runtime] Get rid of the wapi_thread_interrupt_self () and the has_apc flag, it doesn't seem to be needed.
2014-02-20 17:07:20 -05:00
Marek Safar
2f076e3b2d
Merge pull request #907 from enricosada/era_names
...
fix DateTimeFormatInfo era names
2014-02-20 21:28:09 +01:00
Zoltan Varga
6ecbeb2c2f
Fix a warning.
2014-02-20 15:17:03 -05:00
Rodrigo Kumpera
cff7efdb32
[runtime] Use the system limit when enforcing a new thread stack size. Fixes #17908 .
2014-02-20 15:04:18 -05:00
Marek Safar
eb04c47aa1
[mcs] Cleanup tie-breaking rules of better function member. Fixes #17755
2014-02-20 20:34:46 +01:00
Zoltan Varga
6d95657a21
[corlib] Remove the stack size limit check from CheckStackSize (), it should be possible to create larger stacks than the default. Fixes #17908 .
2014-02-20 12:12:31 -05:00
Zoltan Varga
859f0ac73a
[jit] Precompute a bit more information for delegate trampolines to speed them up.
2014-02-20 11:02:06 -05:00
Atsushi Eno
4139e7e658
When comparing string expressions, A, "A" and 'A' should be regarded as equivalent.
2014-02-20 18:23:03 +09:00
Atsushi Eno
c57e14c21c
Fix item expression parsing, indexes were wrong to parse after "->" .
2014-02-20 18:23:02 +09:00
Atsushi Eno
295ea83b32
ITaskItem.GetMetadata() implementations should not return null, but return "".
2014-02-20 18:23:02 +09:00
Atsushi Eno
25310c5561
Now our MS.Build.dll behaves like MS.Build.Engine.dll, replace \ with / at expansion time for everything.
...
Some MSBuild targets premises \ to work just like a path separator, and they
cannot be logically distinguished from any possible "normal" use of '\'.
(Except for escaped strings, which is why this change replaces \ with / after
expanding strings.)
I have added another override for NormalizeFilePath() and rather renamed old
one that works as file lookup, but there is no obvious difference in use.
They may be unified later to bring less confusion.
2014-02-20 18:23:01 +09:00
Atsushi Eno
ce374a5817
Task load failures should not result in build errors, should be just warnings.
2014-02-20 18:22:41 +09:00
Atsushi Eno
8140531d91
Fix ElementLocation.File to NOT contain file URI, and then load task assembly from correct paths.
2014-02-20 18:22:40 +09:00
Atsushi Eno
03fc8b7fd9
UsingTasks are not collected expectedly when imports are involved.
2014-02-20 18:22:40 +09:00
Atsushi Eno
d7702ec671
do not try to load assembly with empty string specification. Add tests for import/usingTask ordering.
...
One of the tests fail because we actually fail to pick up imported UsingTasks.
2014-02-20 18:22:23 +09:00
Atsushi Eno
b3087090a6
Make sure to override existing ProjectPropertyInstance values when new decl. arrives.
2014-02-20 18:22:22 +09:00
Atsushi Eno
459b986b1c
There is no local scope for properties and items that can be defined in a Target.
2014-02-20 18:22:22 +09:00
Atsushi Eno
92a1a5a008
remove some MonoTODOs.
2014-02-20 18:22:21 +09:00
Atsushi Eno
c9122d4cba
In a Project, Target can be overriden by another one with the identical name.
2014-02-20 18:22:21 +09:00
Jonathan Pryor
5597172dec
[runtime] Add a "mobile" runtime version.
...
Xamarin.Android has historically used the "v2.0.50727" runtime
version -- which works -- but has the side effect that Mono constantly
generates runtime "warnings" akin to:
The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0
The reason for this is that all of the Xamarin.Android assemblies have
the version number v2.0.5.0, while the "v2.0.50727" runtime version
expects assemblies to have version number v2.0.0.0; they differ.
Result: Mono warns (appropriately), and I do my best to ignore the
~meaningless warning message. (For years and years and years...)
It's time we fixed this.
Introduce a "mobile" runtime version which specifies the
Xamarin.Android v2.0.5.0 assembly versions. Xamarin.Android 4.14+ will
then specify the "mobile" runtime version, "fixing" the assembly remap
messages.
2014-02-19 22:22:14 -05:00
Enrico Sada
fe489824b2
fix DateTimeFormatInfo era names
...
Calendar.Eras values start from 1 (1 = oldest)
As parameter of GetEraName or GetAbbreviatedEraName, era 0 mean current
era
2014-02-20 03:40:23 +01:00
Alex Rønne Petersen
5ff25684da
Merge pull request #906 from kelly-linden/master
...
Add msvc/mono.props to EXTRA_DIST so make dist will find it.
2014-02-20 01:26:57 +01:00
Kelly
eb0344c34f
Add msvc/mono.props to EXTRA_DIST so make dist will find it.
2014-02-19 16:23:24 -08:00
Zoltan Varga
04a08edc14
Fix a warning.
2014-02-19 16:14:20 -05:00
Zoltan Varga
6295df5208
[jit] Optimize mono_merge_basic_blocks () for large methods.
2014-02-19 15:26:45 -05:00
Zoltan Varga
e44f11191a
[jit] Fix a crash when using -v -v -v -v with dynamic methods.
2014-02-19 15:26:45 -05:00
Aaron Bockover
494b4d6395
mono-api-html: ignore members using regex, add detailed help
2014-02-19 14:22:44 -05:00
Aaron Bockover
1f01ada267
mono-api-html: support ignoring added members
...
Use Mono.Options as well.
2014-02-19 14:22:44 -05:00
Rodrigo Kumpera
676ef96431
[bcl] Fix test suites.
2014-02-19 14:19:35 -05:00
Rodrigo Kumpera
8f4609ffe3
Bump version.
2014-02-19 14:13:01 -05:00
Zoltan Varga
08eb1124d8
[jit] Fix the stack cleanup during EH on x86 when LLVM is enabled.
2014-02-19 13:16:30 -05:00
Marek Safar
5fd43ffcb3
Add failing Uri test
2014-02-19 18:03:51 +01:00
Marek Safar
da666f3aa0
[System] Kill some Uri static fields
2014-02-19 18:03:51 +01:00
Rodrigo Kumpera
8c33ccc896
Merge pull request #903 from simonhartmann/master
...
Bug 17838 - IDictionary item property implemention for ConcurrentDiction...
2014-02-19 11:59:49 -05:00
Simon Hartmann
11b5312c83
Bug 17838 - IDictionary item property implemention for ConcurrentDictionary/SortedList_T throws exception on non-existing key
...
Avoid double lookup for Dictionary IDictionary.get_Item property impl
2014-02-19 16:40:57 +01:00
Sebastien Pouliot
669d6a4561
[SSL/TLS] Fix typo to build when INSIDE_SYSTEM is defined
2014-02-19 09:54:30 -05:00
Marek Safar
651fc6a289
[System.Net.Http] Return ContentLength of the buffer when content is loaded into a buffer in request handler. Fixes #17861
2014-02-19 15:30:42 +01:00
Marek Safar
f2f4e366b4
Merge pull request #905 from AxlPr/master
...
Fixed time out on HTTP redirects
2014-02-19 15:09:00 +01:00
Sebastien Pouliot
ee2a498b05
[SSL/TLS] Update tlstest tool to build with 4.5 and to use/filter the client cipher suites
2014-02-19 08:51:52 -05:00
Sebastien Pouliot
43fcd744d0
[SSL/TLS] Expose Client/Server callbacks that can be used to select/reorder SSL/TLS cipher suites used (for client or server) and add unit tests for them [ #16327 ]
2014-02-19 08:51:51 -05:00
Sebastien Pouliot
0af984a39b
[SSL/TLS] Add support to select and/or re-order ciphers suites [ #16327 ]
2014-02-19 08:51:51 -05:00
Sebastien Pouliot
ec565240cf
[System] Add new NET_4_5 values for SslProtocols enum
2014-02-19 08:51:51 -05:00
AxlPr
b3ae7c6d11
Fixed time outs on http redirects
...
Fixed bug introduced by change 6ab86f50fd
where http request times out when it encounters a redirect.
2014-02-19 13:27:22 +00:00
Martin Baulig
da6c88b49b
[System] WebConnection and WebConnectionStream code cleanups.
...
* Merged WebConnection.EndWrite() and EndWrite2().
* WebConnectionStream.BeginWrite(): Use the same async-write
callback for both chunked and non-chunked; remove the single-use
small WriteRequestAsync() and inline it here to make the code
more readable.
* WebConnectionStream.WriteRequestAsyncCB(): Now called for all
async writes, call WebConnection.EndWrite() here.
The code is now more readable and easier to understand. This is
the first part of a series of cleanups, which should eventually
lead towards full async and 100-continue.
2014-02-19 11:08:18 +01:00
Alex Rønne Petersen
0570fc0be4
Fix some warnings on !MONO_ARCH_AOT_SUPPORTED targets.
2014-02-19 03:43:27 +01:00
Alex Rønne Petersen
ab73ddab6f
Fix another mips32 warning.
2014-02-19 03:34:48 +01:00
Alex Rønne Petersen
07e74e129d
Fix some warnings on mips32.
2014-02-19 03:19:08 +01:00
Michael Hutchinson
d562f82d8f
[xbuild] Exists should be false for empty values
...
BXC17802 - xbuild evaluates Exist wrongly when the item group does not exist
2014-02-18 18:25:39 -05:00
Alex Rønne Petersen
254954dc09
ARM: Emit shorter floating point load/store sequences when possible.
2014-02-18 23:22:55 +01:00
Alex Rønne Petersen
f485233168
ARM: Handle large offsets in emit_float_args ().
2014-02-18 23:22:53 +01:00
Alex Rønne Petersen
b0467a0c17
ARM: Back up VFP scratch registers before using them on hard float.
...
This is because d0-d7 are argument registers and d8-d15 are
preserved registers - we can't use any of them as scratch
registers without restoring their previous values.
2014-02-18 23:22:51 +01:00
Michael Hutchinson
dadacb5421
[xbuild] Really don't local-copy mscorlib
2014-02-18 16:59:37 -05:00
Rodrigo Kumpera
3df3899e4b
[runtime] Fix the linux build.
2014-02-18 16:36:20 -05:00
Marek Safar
c4289c7764
[corlib] Change AggregateException get base exception to not rely on base GetBaseException
2014-02-18 22:33:01 +01:00
Marek Safar
268a8fbbaf
[corlib] Remove unreliable test check
2014-02-18 21:41:16 +01:00
Michael Hutchinson
4f025a381c
[xbuild] Clean up some API to match .NET
...
Some .NET 4 API had leaked into .NET 2 builds.
2014-02-18 12:04:23 -05:00
Michael Hutchinson
ec7288ea3c
[xbuild] Fix accidental local-copy of mscorlib
...
s
2014-02-18 12:04:21 -05:00
Michael Hutchinson
0396f3b1c3
[xbuild] Fix PCL 4.5 targets
2014-02-18 12:04:19 -05:00
Sebastien Pouliot
07d043e37c
[Test] Fix previous test change as the test is dependent on line numbers
2014-02-18 10:49:25 -05:00
Sebastien Pouliot
1088183741
[Test] Avoid StackFrameTest.* failures when debugging symbols are not available (e.g. release configuration on iOS or Android)
2014-02-18 08:44:29 -05:00
Sebastien Pouliot
d34c9297d1
[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL stripped) application on iOS
2014-02-18 08:44:28 -05:00
Sebastien Pouliot
2a81c70eaa
[Test] Change FileTtest.MoveTest to use the temporary directory so it can be executed, without an access denied, on most environment (e.g. an iOS device)
2014-02-18 08:44:28 -05:00
Marek Safar
a0173a7e76
Merge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException
...
Add [Category ("NotWorking")] to failing test.
2014-02-18 11:42:47 +01:00
Blewzman
a416234759
Add [Category ("NotWorking")] to failing test.
2014-02-18 10:22:54 +01:00
Alex Rønne Petersen
4d2de5c6ab
Merge pull request #898 from UCIS/patch-3
...
Prevent exception in finalization of Form class
2014-02-18 03:41:27 +01:00
Alex Rønne Petersen
1a83c6ed5b
Merge pull request #899 from UCIS/patch-4
...
Fix error in ToolStripItem finalization
2014-02-18 03:41:02 +01:00
Zoltan Varga
3f72288f57
[llvm] Disable the 'dse' optimization pass as it is buggy and causes #17616 . Fixes #17616 .
2014-02-17 18:34:26 -05:00
Rodrigo Kumpera
a2c41c347f
[runtime] Add two variants of mono_gc_bzero and mono_gc_memmove. They better convey the behavior we need.
...
After reviewing all usage of mono_gc_bzero and mono_gc_memmove, I found that there are two usage patterns
we care for:
1)Aligned pointer, any size, have managed pointers.
This happens when directly dealing with managed objects like when cloning of boxing.
On this case, all pointers MUST be aligned.
2)Maybe aligned pointer, any size, might have managed pointers.
This happens for functions dealing with structs, specially around boxing and unboxing them.
Our data layout code ensures that structs with managed layout are aligned to at least a word.
This means that if the pointer is unaligned, no managed pointer can exists in the memory range
been processed.
Given those two scenarios, lets introduce two variants that enforce those constrains.
_aligned:
Pointers must be aligned, ensures atomicity of word copies;
_atomic:
If pointers are aligned, works like _aligned, otherwise it inherits the behavior of the
system memmove&memset.
The above split ensures we won't have to deal with any RISC unaligned load nonsense.
It also adds some sanity checks to code that must respect alignment.
We still need fast code for mono_gc_memmove_aligned and mono_gc_bzero_aligned.
We still need to verify if a version of memcpy version is needed. Maybe the extra
branch is not such a perf penalty.
2014-02-17 17:03:56 -05:00
Marek Safar
5ad1099341
Merge pull request #900 from Blewzman/FixAggregateExceptionGetBaseException
...
Add unit test for AggregateException.GetBaseException that works on .net but is broken on Mono.
2014-02-17 17:56:55 +01:00
Blewzman
a163bb7197
Add unit test for AggregateException.GetBaseException that works on .net but is broken on Mono.
2014-02-17 17:07:26 +01:00
Marek Safar
3646f687fe
[mcs] Add NamespaceExpression to avoid problems with error location for misused namespaces. Fixes #17803
2014-02-17 16:37:30 +01:00
Rolf Bjarne Kvinge
fff8231165
Properly preserve VPF registers in iOS. Fixes #17793 .
2014-02-17 15:52:24 +01:00
Marek Safar
3f08ba83cc
[mcs] Add nested types handling to check whether types unify for some type parameter substitutions. Fixes #17647
2014-02-17 11:15:34 +01:00
Marek Safar
657b95a863
Merge pull request #891 from DavidKarlas/listenerprefix
...
HttpListener now listens on default ports if not specified instead of random
2014-02-17 11:12:04 +01:00
Marek Safar
eeeab3446f
[corlib] Throw CultureNotFoundException using invariant culture. Fixes #17690
2014-02-16 18:11:46 +01:00
David Karlaš
eaed50c0a2
HttpListener now listens on default ports if not specified instead of random
2014-02-16 04:58:32 -08:00
Zoltan Varga
50685c9733
Revert "[jit] Implement OP_CARD_TABLE_WBARRIER on ios."
...
This reverts commit b3f36681c7 .
Revert this as it breaks mt.
2014-02-14 19:06:42 +01:00
Zoltan Varga
9c8a0eb7a1
Revert "[jit] Fix a regression introduced by b3f36681c72a6900cd5e9df9b593d555b351669f."
...
This reverts commit d50c836721 .
Revert this as d50c836721 breaks mt.
2014-02-14 19:06:42 +01:00
Marek Safar
4447979d51
Fixes commit a63d0009af
2014-02-14 17:40:09 +01:00
Marek Safar
a63d0009af
[corlib] Unicode numbers are not considers valid in number parsing. Fixes #17628
2014-02-14 17:36:26 +01:00
Marek Safar
f6eb2fc9ff
[corlib] Fix warnings
2014-02-14 16:25:29 +01:00
Marek Safar
1abe31f994
[corlib] Improve TimeSpan custom formatting. Fixes #17699
2014-02-14 11:55:52 +01:00
Joao Matos
eefbe2d246
Fixed incomplete decompression bug in System.IO.Compression.DeflateStream.
...
Call zlib's inflate() even if no data was read from the stream, there might still be some data left to process.
Originally reported by Eric Roller, as Xamarin bugzilla #17183 .
https://bugzilla.xamarin.com/show_bug.cgi?id=17183
Reviewed by Rodrigo Kumpera.
2014-02-13 16:52:55 -05:00
Marek Safar
27feeb5a9a
[corlib] Reset List enumerator current field. Fixes #17760
2014-02-13 22:26:13 +01:00
Marek Safar
ceb62fdbe8
Fix typo
2014-02-13 22:13:30 +01:00
Marek Safar
8d40cb5b9c
[system] Fix valid sorted set operations which could cause underlying tree modification
2014-02-13 19:59:56 +01:00
Marek Safar
831db4e0db
[mcs] Imported methods need to have SpecialName flag to be valid C# operators
2014-02-13 19:59:56 +01:00
Marek Safar
049477004e
Tests update
2014-02-13 19:59:56 +01:00
Martin Baulig
5e03c107bc
Put back and fix the SSL async patch.
...
Revert "Revert "Merge pull request #829 from symform/httpwebreq-async-ssl""
This reverts commit 56d9a057eb , which was a
revert of 35899c07ff , thus putting 35889 back.
2014-02-13 18:48:16 +01:00
Marek Safar
1451cd9bce
[mcs] Lift any non-nullable operand under runtime binder for lifted binary operation
2014-02-13 17:21:20 +01:00
Rodrigo Kumpera
da2fe7195c
Merge pull request #897 from echampet/scanbuild
...
Scanbuild
2014-02-13 11:02:09 -05:00
Martin Baulig
4b5f5f96c8
[System]: Reset NTLM auth state when redirecting; distinguish host and proxy.
2014-02-13 15:48:44 +01:00
Martin Baulig
c6a70a9586
Rewrite and fix the web stack's connection reuse and idle logic.
...
* ServicePoint now uses an idle timer to close idle connections.
* WebConnectionGroup has been mostly rewritten to use a linked
list of open connections and their idle times.
This fixes both the problem that we were leaking sockets and
that we were not reusing existing connections.
* ServicePoint now correctly keeps track of the number of open
connections.
* ServicePointManager now uses the correct default idle time
of 100 seconds (previously 15 minutes).
* WebConnection uses the new WebConnectionGroup's busy logic
to correctly flag connections as busy / reusable.
2014-02-13 14:17:14 +01:00
Martin Baulig
861d495951
Fix WebConnectionStream.CheckComplete() logic for chunked encoding.
2014-02-13 13:22:19 +01:00
Rodrigo Kumpera
a89b144a7d
[corlib] Fix the 4.5 test suite.
2014-02-12 19:12:03 -05:00
Rodrigo Kumpera
21223d89c1
[runtime] Initialize param_count under DISABLE_JIT
2014-02-12 19:00:30 -05:00
Rodrigo Kumpera
b4eaff51c0
[runtime] Don't abort on null module scope, there's nothing special to do there. Fixes #5835 .
...
The defacto behavior of a null module scope is to resolve in the current image.
2014-02-12 18:53:10 -05:00
Rodrigo Kumpera
4072c020e1
[corlib] Remove obj_address debug helper, if anyone needs this, it can be done with overlapping fields.
2014-02-12 18:53:10 -05:00
Rodrigo Kumpera
51d2b75664
[corlib] Fix 4.0 test suite compilation.
2014-02-12 18:53:10 -05:00
Miguel de Icaza
3071b20dc5
Add test for Bug #15572 from pull request #820
2014-02-12 16:06:32 -05:00
Miguel de Icaza
1d1f618de4
Add tests for bug #15574 , pull request 819
2014-02-12 15:39:24 -05:00
Miguel de Icaza
dc186cf9ef
Add tests for bug #15574 , pull request 819
2014-02-12 15:39:24 -05:00
Miguel de Icaza
c39718bbb3
Merge pull request #820 from brendanzagaeski/master
...
Bug 15572. Lookup KnownTypeCollection element types in MSSimpleNamespace
2014-02-12 15:31:12 -05:00
Miguel de Icaza
424595ea70
Merge pull request #819 from brendanzagaeski/patch-1
...
Bug 15574. XML deserialization recursion: add array type to known_types?
2014-02-12 15:30:30 -05:00
Miguel de Icaza
e2812813f9
Merge pull request #796 from alesliehughes/master
...
Support for DispIdAttribute in GetIdsOfNames
2014-02-12 15:29:39 -05:00
Miguel de Icaza
b57fcaa28b
Merge pull request #778 from cmorris98/master
...
SqlBulkCopy Implementation
2014-02-12 15:25:59 -05:00
Miguel de Icaza
2cf74970a1
Merge pull request #835 from HorstKakuschke/master
...
Fixes Xamarin Bug 16742: XmlConvert.ToDateTime(string, XmlDateTimeSeria...
2014-02-12 15:24:11 -05:00
Michael Hutchinson
e753ca24e8
[xbuild] Fix dependency in C# targets
...
There was a typo in DependsOnTargets attribute of the
_AddCorlibReference target definition. It didn't break any
behaviour, since the target it depended on was always built
earlier in the build anyway, so it was really a sanity check.
However, it broke the tests for the new (unused) engine,
Microsoft.Build.dll, which checks for unexpected attributes.
2014-02-12 14:19:30 -05:00
Zoltan Varga
01ade94f36
Revert "[jit] Align the stack in mono_arch_restore_context () on x86 since it might be unaligned if it was captured asynchronously."
...
This reverts commit 7798b94706 .
Revert this as it breaks debugging on android/x86 (#17410 ).
2014-02-12 20:11:35 +01:00
Miguel de Icaza
040ba8b7e8
[mscorlib] Path: fix GetFullPath (/../bin/bash) to return /bin/bash, not bin/bash, fixes 17083
2014-02-12 13:19:31 -05:00
Miguel de Icaza
a2339679bc
[HttpListener] Only bind to the specified hosts (and support '*' as Any), fixes #17204 , #10818
2014-02-12 12:08:10 -05:00
Michael Hutchinson
c1974786ca
[xbuild] Fix 2.0 tests to handle mcs sdk argument
2014-02-12 12:04:59 -05:00
Miguel de Icaza
52e252bd1d
[Uri] Fix the ParserUser feature of UriParseComponents
...
The current implementation was wrong, did not bother with pct-encoding
(despite being listed in the comments) and did not use the actual set
of characters listed on the spec, instead of using a white-list, it
had its own incorrect black-list.
2014-02-12 11:08:12 -05:00
Miguel de Icaza
847e71fdfe
#17636 : Allow Int32.Parse with/AllowExponents to take negative exponents. This is a change in behavior from 2009, when we fixed this: Novell#542464, now we match .NET 4.5
2014-02-12 09:32:23 -05:00
Miguel de Icaza
f3fc0bb865
[DataAnnotation.Validator] Add support for nullable types, patch from [email protected] , fixes #17318
2014-02-11 22:02:25 -05:00
Miguel de Icaza
f2565054d5
WebRequest: Provide stub ImpersonationLevel
...
The old implementation threw an exception requesting that the method be implemented
in a derived class, but the method is not virtual, so it could have never been
implemented.
Since Mono does not support this, at least we keep the token around and avoid
throwing.
2014-02-11 21:53:44 -05:00
Ivo Smits
67a30ef5de
Fix error in ToolStripItem finalization
...
The Dispose function in ToolStripItem should not remove itself from its owner during finalization. Finalization implies that the owner has also been garbage collected, and accessing it may result in undesirable behaviour. More specifically, the call to owner.Items.Remove ultimately may boil down to a call to GDI+ throwing an Exception like the following:
Program.UnhandledException: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
at System.Drawing.Graphics.GdipMeasureString (IntPtr graphics, System.String text, System.Drawing.Font font, System.Drawing.RectangleF& layoutRect, IntPtr stringFormat) [0x00000] in <filename unknown>:0
at System.Drawing.Graphics.MeasureString (System.String text, System.Drawing.Font font, Int32 width, System.Drawing.StringFormat format) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:MeasureString (string,System.Drawing.Font,int,System.Drawing.StringFormat)
at System.Windows.Forms.TextRenderer.MeasureTextInternal (IDeviceContext dc, System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags, Boolean useMeasureString) [0x00000] in <filename unknown>:0
at System.Windows.Forms.TextRenderer.MeasureText (System.String text, System.Drawing.Font font, Size proposedSize, TextFormatFlags flags) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ToolStripItem.CalculateAutoSize () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ToolStripItem.set_InternalOwner (System.Windows.Forms.ToolStrip value) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:set_InternalOwner (System.Windows.Forms.ToolStrip)
at System.Windows.Forms.ToolStripItemCollection.Remove (System.Windows.Forms.ToolStripItem value) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ToolStripItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ToolStripDropDownItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ToolStripMenuItem.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.ComponentModel.Component.Finalize () [0x00000] in <filename unknown>:0
2014-02-11 23:55:54 +01:00
Michael Hutchinson
693176c27f
[xbuild] Fix Tooltask.ToolPath behaviour to match .NET
2014-02-11 16:46:28 -05:00
Michael Hutchinson
df528313ab
[xbuild] Make ToolLocationHelper work better for 2.0/3.5
...
Mono keeps unversioned tools in the 4.5 directory, so look there
for 2.0. Additionally, most 3.5 tools are in the 2.0 directory.
2014-02-11 16:44:09 -05:00
Michael Hutchinson
a55c58844e
[xbuild] Fix typo that broke 2.0/3.5 targets
2014-02-11 16:41:08 -05:00
Michael Hutchinson
c705849b59
[xbuild] Fix mscorlib resolution for custom frameworks
...
Now that mcs supports multi-targeting, we can use the MSBuild 4.0+
system of finding mscorlib.dll in the target framework folders and
passing it to the compiler, along with the /nostdlib argument.
Like MSBuild, the old NoStdLib property can be set to true to disable
passing mscorlib.dll to the compiler, and the new NoCompilerStandardLib
property can be set to false to disable passing /nostdlib to the compiler.
This makes custom target frameworks work correctly without having to
override CscExe with a wrapper script.
2014-02-11 14:30:53 -05:00
Marek Safar
85fbadafd0
[mcs] Don't report any not applicable operator errors during constant folding.
2014-02-11 19:09:17 +01:00
Martin Baulig
f70d569806
[NTLM]: Add new 'NtmlSettings' class to hold the 'DefaultAuthLevel' property.
...
When the NTLM sources are compiled into System.dll, then we need to store the
configuration variables there and peek/poke it in Mono.Security.
2014-02-11 18:51:33 +01:00
Marek Safar
1a33c018d1
[system] Updates to WebUtility decoders and encoders
2014-02-11 16:50:14 +01:00
Marek Safar
9ba1566be6
[system.xml] Add more invalid argument checks
2014-02-11 16:50:13 +01:00
Etienne CHAMPETIER
4d0e014a76
int a[0], malloc(0), memcpy(a,b,0), memcmp(c,d,0) doesn't make much sense
...
This remove a scan-build warning
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-02-11 13:42:47 +01:00
Etienne CHAMPETIER
df0030ccdd
fix typo in mono_counters_cleanup leading to a double free
...
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-02-11 12:49:57 +01:00
Zoltan Varga
620efd4c33
[arm] Use d0/d1 as fp scratch regs on non-hard float platforms. Hopefully fixes #17597 .
2014-02-10 23:47:00 +01:00
Marek Safar
a6e236b2d6
[system.xml] Support more primitive types in XmlReader::ReadContentAs
2014-02-10 23:10:58 +01:00
Mark Probst
e3fa93de35
[runtime] Remove overly pessimistic test.
...
The test asserts that we can't allocate int arrays with 2G elements.
With SGen on 64 bits, however, we can, which is a feature, not
a bug.
2014-02-10 13:35:45 -08:00
Mark Probst
38637f5314
[sgen] new T[-1] must throw OverflowException, not OOM.
...
Fixes failure in mini/arrays.cs.
2014-02-10 13:33:10 -08:00
Mark Probst
d77573cead
[sgen] Hint OOM exception branch as not taken.
2014-02-10 12:45:11 -08:00
Mark Probst
a3ab067241
[sgen] Fix overflow occurring with large object allocations. Fixes #17590 .
2014-02-10 11:17:47 -08:00
Marek Safar
c1539ef07f
[corlib] Mark awaited task exception observed when GetResult does the wait
2014-02-10 20:08:29 +01:00
Marek Safar
56d9a057eb
Revert "Merge pull request #829 from symform/httpwebreq-async-ssl"
...
This reverts commit 35899c07ff , reversing
changes made to 80166fd02f .
2014-02-10 18:48:03 +01:00
Marek Safar
b54c72e680
Merge pull request #892 from initram/master
...
Implemented Parse() and TryParse() for System.Numerics.BigInteger and DaysInYearBeforeMinSupportedYear for Calendars
2014-02-10 08:21:31 +01:00
Marek Safar
ff3351ef61
Merge pull request #895 from ranma42/fix-tuple-hash-codegen
...
[corlib] Fix implementation of Tuple hash generator
2014-02-10 08:19:18 +01:00
Andrea Canciani
5b7d557523
[corlib] Fix implementation of Tuple hash generator
...
The Tuples.cs code generator dies with:
Unhandled Exception:
System.NotImplementedException: The requested feature is not implemented.
at TupleGen.computeHash (Int32 destVar, Int32 start, Int32 count) [0x00000] in <filename unknown>:0
at TupleGen.WriteHash (Int32 destVar, Int32 start, Int32 count) [0x00000] in <filename unknown>:0
at TupleGen.Main () [0x00000] in <filename unknown>:0
This is caused by the incorrect definition of WriteHash(), which
instead of recursively calling itself is calling computeHash().
Thanks to Marek Safar for reporting the issue in
https://github.com/fsharp/fsharp/issues/188#issuecomment-34351850
2014-02-09 20:40:44 +01:00
Martin Midtgaard
3c7dd7421c
Implemented DaysInYearBeforeMinSupportedYear for all Calendars that should have it in .Net 4.5
2014-02-08 17:44:20 +01:00
Martin Midtgaard
787bb65a0e
Cleanup and better comment.
2014-02-08 16:34:16 +01:00
Martin Midtgaard
c2034c8718
Merge remote-tracking branch 'upstream/master'
2014-02-08 16:16:02 +01:00
Zoltan Varga
d50c836721
[jit] Fix a regression introduced by b3f36681c7.
2014-02-08 11:29:35 +01:00
Marek Safar
6bc362b1db
[numerics] Fix type in Cosh
2014-02-07 23:45:48 +01:00
Sebastien Pouliot
35899c07ff
Merge pull request #829 from symform/httpwebreq-async-ssl
...
Convert blocking operations in HttpWebRequest and SslClientStream to non-blocking
2014-02-07 16:48:05 -05:00
Marek Safar
80166fd02f
[corlib] Make primitive types smaller than int compare result compatible
2014-02-07 20:19:16 +01:00
Marek Safar
bdc78fd98d
[corlib] Fixes formatting of nested tuples
2014-02-07 20:17:14 +01:00
Marek Safar
f43d02d563
[corlib] Default comparer uses IComparable interface only
2014-02-07 20:07:45 +01:00
Martin Midtgaard
3fb128ac0d
Merge branch 'BigIntegerParse'
2014-02-07 11:23:37 +01:00
Martin Midtgaard
61a2e43f49
Implemented overloaded versions of Parse and TryParse functions for BigInteger.
...
Implementation is heavily inspired by Int32.
Added unit tests for the new functions.
2014-02-07 11:21:49 +01:00
Marek Safar
16a24ef559
Fixes build
2014-02-06 22:36:50 +01:00
Marek Safar
025cb7a5d7
[corlib] Update fixed test
2014-02-06 22:30:49 +01:00
Marek Safar
84021289bc
Merge pull request #889 from slluis/serializer-fix
...
Fix serialization issue
2014-02-06 22:28:59 +01:00
Lluis Sanchez
4a8e55bf69
Fix serialization issue
...
Fixes BXC 5667 - SerializationException: The object with ID 1 could
not be resolved
2014-02-06 22:01:14 +01:00
Rodrigo Kumpera
4db7fe7112
[System] Fix process creation when UseShellExecute is set to false.
...
This fixes the behavior of process spawning when UseShellExecute is
set to true.
The right behavior is to return no process only when we used the system
launcher. So, spawning /bin/cat should behave in the same way independent
of how UseShellExecute is set.
2014-02-06 15:52:43 -05:00
Rodrigo Kumpera
a6bc3bf4e1
Revert "[runtime] Don't pass SEE_MASK_NOCLOSEPROCESS to ShellExecuteEx as we don't care for the launched process. Part 1/3 of Bug #16119."
...
This reverts commit 6c06d10995 .
2014-02-06 15:52:43 -05:00
Rodrigo Kumpera
f351a6cc82
[corlib] Harden CustomAttributeData::GetHashCode
2014-02-06 15:52:43 -05:00
Zoltan Varga
f88602911f
[runtime] Put back ensure_synch_cs_set () which was removed in a157ac79e8 to work around some shutdown crashes.
2014-02-06 20:08:17 +01:00
Marek Safar
4b5125c707
[mcs] Tests update
2014-02-06 18:08:40 +01:00
Marek Safar
d28989fddd
[runtime] Filter out events with same name
2014-02-06 18:08:38 +01:00
Marek Safar
8d56b51656
Fixes build
2014-02-06 18:08:38 +01:00
Marek Safar
268771b856
[corlib] Cleanup type ToString formatting.
2014-02-06 18:08:37 +01:00
Marek Safar
21aae7666a
[corlib] Fix some AssemblyName tests
2014-02-06 18:08:37 +01:00
Marek Safar
1383b1834d
[corlib] Better recovery when tasks run on broken scheduler
2014-02-06 18:08:37 +01:00
Marek Safar
d6c71e400b
[corlib] Cleanup ThreadLocal output formatting.
2014-02-06 18:08:36 +01:00
Zoltan Varga
f3443866ad
[runtime] Fix the computation of AssemblyName.ProcessorArchitecture () to be compatible with MS.NET. Fixes #17632 .
2014-02-06 11:58:31 +01:00
Andrés G. Aragoneses
0522c8b92a
Add types from the method header even for gshared methods.
2014-02-06 11:34:29 +01:00
Zoltan Varga
d73dcf705f
Revert "[aot] Applied patch from "Andrés G. Aragoneses" <[email protected] >: Add types from the method header even for gshared methods."
...
This reverts commit 9231594314 .
2014-02-06 11:34:28 +01:00
Atsushi Eno
21cb4135ea
fix bug #16744 - null values on nullable value types were not handled in deserializer.
2014-02-06 17:11:30 +09:00
Rolf Bjarne Kvinge
1e10c63073
[Mono.Data.Sqlite] Add SqliteFunction tests.
2014-02-05 20:16:42 -05:00
Rolf Bjarne Kvinge
22cf2b620c
[Mono.Data.Sqlite] Add support for custom collation functions in MonoTouch.
2014-02-05 19:55:26 -05:00
Zoltan Varga
9231594314
[aot] Applied patch from "Andrés G. Aragoneses" <[email protected] >: Add types from the method header even for gshared methods.
2014-02-06 00:52:13 +01:00
Zoltan Varga
9d34aac9c3
Revert "[aot] Add types from the method header even for gshared methods."
...
This reverts commit 70d7512ac8 .
2014-02-06 00:51:31 +01:00
Zoltan Varga
70d7512ac8
[aot] Add types from the method header even for gshared methods.
2014-02-06 00:33:08 +01:00
Zoltan Varga
5a59eef22b
[runtime] Fix the windows build.
2014-02-06 00:16:43 +01:00
Ivo Smits
3ed3a2ddf2
Prevent exception in finalization of Form class
...
If initialization of the Form class or one of its base classes fails, possibly because X11 is not available and the constructor of the parent Control class throws an exception, the owned_forms member is not initialized. This results in a NullReferenceException during initialization, if the error that occurs during construction is handled.
Stack traces:
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
at AutoCRCheck.frmOptions..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) AutoCRCheck.frmOptions:.ctor ()
at AutoCRCheck.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0
at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
at AutoCRCheck.frmOptions..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) AutoCRCheck.frmOptions:.ctor ()
at AutoCRCheck.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
---------------------------------------------------------
Handling the previous exception results in the following exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Windows.Forms.Form.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at AutoCRCheck.frmOptions.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.ComponentModel.Component.Finalize () [0x00000] in <filename unknown>:0
2014-02-05 20:37:30 +01:00
Zoltan Varga
f97bc9e491
[arm] Increase the length of the endfinally instruction. Fixes #17589 .
2014-02-05 17:37:14 +01:00
Marek Safar
5a20d0438a
[corlib] Path.Combine with variable arguments length where one is empty should give same result as other Combine overloads
2014-02-05 16:56:03 +01:00
Marek Safar
22e1ab3666
[corlib] Convert with incorrect provider type should still return value when possible
2014-02-05 16:56:02 +01:00
Marek Safar
9bc33d4aae
[corlib] Use shared version of utf8 encoding in stream reader
2014-02-05 16:56:02 +01:00
Marek Safar
6c99c56018
[corlib] Add nullable tests
2014-02-05 16:56:01 +01:00
Zoltan Varga
b3f36681c7
[jit] Implement OP_CARD_TABLE_WBARRIER on ios.
2014-02-05 16:40:31 +01:00
Rodrigo Kumpera
a9054cd8c5
Flush changes in corlib expected results.
2014-02-05 10:06:18 -05:00
Marek Safar
9c787bbc85
[corlib] Add more argument checks to ConcurrentStack
2014-02-05 14:09:11 +01:00
Marek Safar
c964e24d02
[system] More SortedDictionary argument checks
2014-02-05 13:16:40 +01:00
Marek Safar
d90906cbaa
[system] Fix calls on empty linked list
2014-02-05 12:07:17 +01:00
Michael Hutchinson
1dd3e5b460
[xbuild] Fix ResolveAssemblyReference verbosity
...
Always log search logger messages with low importance.
Missing non-primary references are a low priority message,
not a warning.
2014-02-05 00:04:05 -05:00
Marek Safar
88ad199d5c
[corlib] Implement parsing of complex double strings.
2014-02-04 17:39:35 +01:00
Marek Safar
d3b817cbb8
[corlib] Initialize null stream reader
2014-02-04 13:14:33 +01:00
Marek Safar
27836846a5
[corlib] Add overflow checks to string padding
2014-02-04 12:44:44 +01:00
Zoltan Varga
7604aae1b1
[jit] Avoid running class cctors during AOT when using the AggressiveInlining attribute. Fixes #17558 .
2014-02-04 09:52:42 +01:00
Zoltan Varga
86e5a5d90b
[runtime] Fix a warning.
2014-02-04 07:05:47 +01:00
Rodrigo Kumpera
6083678eff
[corlib] The hashcode of an empty struct must be constant. Fixes #17577
2014-02-03 18:08:53 -05:00
Rodrigo Kumpera
35148629ee
[corlib] Add overflow checks to functions that alloc memory and uses raw pointers.
2014-02-03 17:37:30 -05:00
Zoltan Varga
0c27914928
[runtime] Applied patch from Frank Fuchs <[email protected] >. Add win64 support to mono_threads_core_get_stack_bounds ().
2014-02-03 22:15:30 +01:00
Zoltan Varga
83139b20e2
[runtime] Applied patch from Frank Fuchs <[email protected] >. Fix the windows build.
2014-02-03 22:12:11 +01:00
Marek Safar
b90fc130ff
[corlib] Allow to use custom comparer when sorting null values.
2014-02-03 20:27:58 +01:00
Marek Safar
e679803c89
[corlib] Clean up array binary search argument checks
2014-02-03 18:36:24 +01:00
Marek Safar
27b2190c88
[corlib] Throw correct exception when array::copy elements don't match
2014-02-03 16:13:49 +01:00
Marek Safar
908676bca9
Merge pull request #886 from dmpot/master
...
[WindowsBase]: 6 fixes to Dispatcher
2014-02-03 00:40:56 -08:00
Dmitry Potapov
e9a6400785
Dispatcher should process a higher-priority task
...
When a higher-priority tasked appeared in the dispatcher queue, the
dispatcher stopped processing of the current queue but moved to a low
priority queue instead of processing the most high priority queue.
2014-02-03 02:07:44 +04:00
Dmitry Potapov
0dc598dfe6
InvalidOperationException in Dispatcher.RunFrame
...
When a Dispatcher exits due to 'frame.Continue' being false, it does not
clear queue_bits. As result, the next run of the Dispatcher could try to
dequeue a non-existing dispatcher operation.
2014-02-03 01:57:20 +04:00
Dmitry Potapov
3479f368e8
Dispatcher should stop if Continue is false
...
If the dispatcher encounters that frame.Continue is false, it should return
immediately and do not try to execute anything. The unit test may be seen as
rather artificial, but the problem may happen in more realistic situations
when frames are unwound.
2014-02-03 01:48:32 +04:00
Dmitry Potapov
ed448193fb
Dispatcher: Run() can be used more than once
...
When Run() was invoked a second time, main_execution_frame had the Continue
flag set to false. So it did not work correctly.
2014-02-03 01:41:42 +04:00
Zoltan Varga
6472ba5272
[runtime] Simplify the io-layer threading code a bit more.
2014-02-02 22:36:28 +01:00
Dmitry Potapov
0a339c31a3
Dispatcher.PushFrame: clean references before return
...
The dispatcher did not clean references before returning, therefore
the second call to Dispatcher.Run() failed.
2014-02-02 23:55:12 +04:00
Dmitry Potapov
38a1e8d3bd
Fix src and dest indexes in DispatcherOperation ctor
...
The source and the destination indexes are confused. The source index, which
is the second parameter, should be 0 and the destination index, which is the
fourth parameter, should be 1.
2014-02-02 22:40:55 +04:00
Zoltan Varga
17fcfee696
[runtime] Move more thread attach code to mono-threads from io-layer.
2014-02-02 16:44:40 +01:00
Marek Safar
549fddc4b4
Merge pull request #884 from akoeplinger/fix-ipv6-teredo
...
[System] Fixed an error in the implementation of System.Net.IPAddress.IsIPv6Teredo
2014-02-02 05:17:22 -08:00
Zoltan Varga
089012eefb
[runtime] Simplify _wapi_set_termination_details ().
2014-02-02 06:11:31 +01:00
Alexander Köplinger
daf2340d47
[System] Fixed an error in the implementation of System.Net.IPAddress.IsIPv6Teredo
...
The property was introduced with PR #870 but it missed to convert network byte order to host byte order, so the comparison
wasn't working correctly and the corresponding unit test failed. @marek-safar erroneously "fixed" the test in 27e07c7 .
This is the corrected implementation and the original test now works as intended.
2014-02-01 22:02:27 +01:00
Zoltan Varga
6c36ba39f9
[runtime] Rename mono_thread_info_dettach () to mono_thread_info_detach ().
2014-02-01 19:31:07 +01:00
Zoltan Varga
4fe10052f3
[runtime] Rename the MONO_GSHARING define to ENABLE_GSHAREDVT for consistency.
2014-02-01 13:56:19 +01:00
Zoltan Varga
f6f319715b
[runtime] Implement GetCurrentThreadId () using mono-threads.
2014-02-01 13:50:47 +01:00
Zoltan Varga
4b4409213a
[runtime] Move thread attaching to mono-threads from the io-layer.
2014-02-01 13:44:54 +01:00
Zoltan Varga
97bd727bc0
[runtime] Remove code duplication from the wapi_interrupt_.. functions.
2014-01-31 18:58:25 +01:00
Marek Safar
e30d5edecc
[corlib] Fixes our of range index access from a5fc91fc42
2014-01-31 17:42:06 +01:00
Marek Safar
7d200b7624
More tests
2014-01-31 15:44:12 +01:00
Marek Safar
a5fc91fc42
[corlib] Decimal parsing with banker's rounding with non-zero digits beyond the thousandths digit. Fixes #17536
2014-01-31 15:32:21 +01:00
Zoltan Varga
d64b215b8a
[runtime] Remove some references to gc_wrapper.h which are no longer needed.
2014-01-31 14:29:51 +01:00
Zoltan Varga
6427caaea8
[runtime] Move the thread exit code to mono-threads from io-layer.
2014-01-31 14:18:26 +01:00
Marek Safar
83dd786b66
[mcs] Improve daa862f17f commit
2014-01-31 14:04:49 +01:00
Marek Safar
9ba287cc13
[mcs] Explicit user conversion from nullable types does not have to lift the result. Fixes #17469
2014-01-31 13:30:49 +01:00
Marek Safar
daa862f17f
[mcs] Report less internal errors. Fixes #17472
2014-01-31 11:44:04 +01:00
Marek Safar
f5a0d45808
[mcs] Fixes warning
2014-01-31 11:25:25 +01:00
Marek Safar
587b934b22
[mcs] Release array initializer stack field at the end of initialization. Fixes #17494
2014-01-31 10:19:36 +01:00
Zoltan Varga
7f5859ea2d
[runtime] Fix a shutdown leak.
2014-01-31 08:58:16 +01:00
Zoltan Varga
2468027212
[runtime] Use mono_thread_join () to wait for the finalizer thread to exit.
2014-01-31 06:43:32 +01:00
Zoltan Varga
19362c66ee
[llvm] Disable llvm instead of asserting in some cases. Fixes #17527 .
2014-01-31 06:17:41 +01:00
Zoltan Varga
c0a34485ae
[runtime] Use a separate lock for the joinable_threads () hash table.
2014-01-31 04:12:54 +01:00
Michael Hutchinson
dbc5c2b43f
Merge pull request #880 from awinters-fvs/xbuild/make-dist-fix
...
Fix 'make dist' broken since 35287878
2014-01-30 13:13:59 -08:00
Rodrigo Kumpera
a86c932c77
[corlib] WeakReference<T>::TryGetTarget should return true only for non null targets.
2014-01-30 16:11:39 -05:00
Zoltan Varga
6de1a802b2
Fix warnings.
2014-01-30 19:08:22 +01:00
Zoltan Varga
7eb1f72f17
[runtime] Change the way the runtime waits for threads to finish. Instead of detaching them at thread startup and waiting for them using WaitForMultipleObject(), add threads to a hash table before they exit mono code and use the finalizer thread to call pthread_join () on them. This will hopefully fix the problems where a thread tried to access data which the runtime at shutdown/appdomain unload.
2014-01-30 10:28:42 +01:00
Alex Rønne Petersen
c5bddd396d
Merge pull request #882 from jgagnon/master
...
Fixes a socket leak in class TcpListener
2014-01-29 19:51:18 -08:00
Rodrigo Kumpera
e614bd0216
[jit]Add a missing call to mini_native_type_replace_type in mini_get_basic_type_from_generic.
2014-01-29 14:17:19 -05:00
Zoltan Varga
80ef831207
[aot] Add a more helpfull error message when a method cannot be loaded.
2014-01-29 16:47:19 +01:00
Zoltan Varga
44fcdaf505
[sgen] Fix a regression caused by 07fc727b86. Fixes the windows build.
2014-01-29 16:24:28 +01:00
Michael Hutchinson
a8392fb5e8
[xbuild] Rework escaping in TaskItem to be compatible with MSBuild
...
The escaping/unescaping behaviour of TaskItem:ITaskItem was undocumented
originally in MSBuild, so our implementation did not perform any. This
caused issues with Tasks getting metadata and paths that were escaped,
trying to use them as-is, and failing horribly.
Fortunately the ITaskItem2 interface in .NET 4 provides complementary
accessors with documentation that indicates that it stores values
escaped internally, and the old accessors unescape the values.
This commit implements ITaskItem2, fixes the escaping behavior of the
old accessors, and removes some superluous uses of IDictionary.Contains.
2014-01-28 18:25:57 -05:00
Michael Hutchinson
9d344c33ad
[xbuild] Remove unnecessary/inconsistent path conversion hack
...
Directory separators are automatically converted from Windows->Native
when parsing MSBuild files, but any paths provided in code must already
be native.
2014-01-28 18:24:38 -05:00
Alan McGovern
216608a183
[Microsoft.Build.Utilities] Properly escape/unescape ItemSpec
...
With tests.
2014-01-28 16:18:57 -05:00
Alan McGovern
d5611e8dc6
[Microsoft.Build.Utilities] Fix the escaping/unescaping of ItemSpec
...
This should hopefully fix compilation of projects using files with
names like '[email protected] ' in various places like embedded resources
or content items which must be copied to the output directory.
With tests.
2014-01-28 15:40:25 -05:00
Marek Safar
f25566d57b
[mcs] Better check for invalid attribute targets. Fixes #17447
2014-01-28 10:16:58 +01:00
Zoltan Varga
f060b99989
[llvm] Load rgctx/imt arguments using a volatile load on arm to prevent LLVM from moving the setting of the argument elsewhere. This is needed because these arguments are passed in a caller save register, but our code treats it as callee save in a lot of places. Fixes #17435 .
2014-01-28 06:30:19 +01:00
Zoltan Varga
393325a1b8
Revert "[jit] Precompute a bit more information for delegate trampolines to speed them up."
...
This reverts commit e3de4cb92e .
Revert this as it seems to break mt.
2014-01-28 06:30:19 +01:00
Michael Hutchinson
28163fd254
[xbuild] Define VisualStudioVersion, since F# projects can depend on it
2014-01-27 17:00:08 -05:00
Rodrigo Kumpera
6b43686f98
Properly compare assembly versions when performing binding. Fixes #17368 .
...
The right way to compare assembly versions is by translating the major/minor
pair into a single number and compare that.
Since each element can only be one byte long, we multiply major by 256
before adding to minor.
This solves the problem where version 100.0.0.0 was not after 3.5.0.0.
2014-01-27 16:28:01 -05:00
Jonathan Gagnon
b699b14b06
Fixes a socket leak in class TcpListener
...
Fixes a socket leak in TcpListener.AcceptTcpClient and
TcpListener.EndAcceptTcpClient.
2014-01-27 09:18:10 -05:00
Marek Safar
9ec6141610
New test
2014-01-27 11:35:41 +01:00
Marek Safar
bff1c7a08c
[mcs] Remove used method
2014-01-27 11:21:34 +01:00
Marek Safar
a360e899ae
[mcs] Don't crash when default parameter constant member access cannot be resolved. Fixes #17354
2014-01-27 11:19:54 +01:00
Marek Safar
f2eab9919d
[dlr] Handle more expressions in interpreter
2014-01-26 11:35:09 +01:00
Marek Safar
280f85db70
[mcs] Do underlying float constant operation on double values. Fixes #15463
2014-01-26 11:35:08 +01:00
Marek Safar
acccf24cca
[mcs] Check for nested type arguments of cached method group. Fixes #17403
2014-01-26 11:35:08 +01:00
Linquize
506c11ae62
Add unit test for Content-Type header with and without charset set
2014-01-26 18:31:00 +08:00
Zoltan Varga
e3de4cb92e
[jit] Precompute a bit more information for delegate trampolines to speed them up.
2014-01-26 07:32:08 +01:00
Zoltan Varga
b5f3d5c835
[jit] Store the spvar offsets for the finally clauses in MonoJitExceptionInfo to avoid disassembly in mono_arch_install_handler_block_guard ().
2014-01-25 07:39:36 +01:00
Zoltan Varga
0198a3afaa
[jit] Change to signature of mono_arch_create_handler_block_trampoline () to be consistent with the signature of the other trampoline creation functions.
2014-01-25 07:27:40 +01:00
Ashley Winters
49238f289e
Update mono-core.spec.in with xbuild reorganization
2014-01-24 14:30:22 -08:00
Zoltan Varga
a33190d8e8
[jit] Add a mono_jinfo_get_unwind_info () helper function.
2014-01-24 20:44:28 +01:00
Sebastien Pouliot
5048ce7bd9
Allow a TLS1.1+ client (like recent Google Chrome, 1.2) to fallback to TLS1.0 when using System.dll (or Mono.Security.dll) server side SSL/TLS [ #6843 ][ #11736 ]
2014-01-24 08:47:10 -05:00
Atsushi Eno
6c9fb62368
Fix build (and cosmetic code formatting).
2014-01-24 17:34:27 +09:00
Atsushi Eno
4dabbbc56d
remove private msbuild hacking project files.
2014-01-24 16:42:54 +09:00
Atsushi Eno
3f88e7c517
Merge branch 'msbuilddll2'
2014-01-24 16:41:00 +09:00
Atsushi Eno
001dc741f1
Log target build error.
2014-01-24 16:25:29 +09:00
Zoltan Varga
7fa4b9ab15
[jit] Fix/simplify the x86 handler guard trampoline code. Part of the fix for #16807 .
2014-01-24 08:23:41 +01:00
Atsushi Eno
b47eaa6c88
Make sure to fail build when exception is thrown while building a target.
2014-01-24 16:02:08 +09:00
Zoltan Varga
60ba4e74da
Revert "finally_guard has been promoted to the stable set of tests."
...
This reverts commit 31d902a285 .
finally_guard still fails when using LLVM.
2014-01-24 07:49:55 +01:00
Zoltan Varga
6c9a1d91c8
[jit] Fix a regression caused by 28374f3161. Fixes #17392 .
2014-01-24 07:45:55 +01:00
Zoltan Varga
6154dc7731
[jit] Hopefully fix the loaded LLVM build.
2014-01-24 04:47:23 +01:00
Atsushi Eno
2556ac769e
add comment on MSB4057.
2014-01-24 10:41:08 +09:00
Ashley Winters
75e0f8d7e5
Include xbuild_4_0_dirs in dist; fixes 425fdc03
...
In commit 425fdc03fa :
[xbuild] Build & install MSBuild 12.0 assemblies
The net_3_5_only_dirs containing the Build classes were moved to
various xbuild_X_dirs variables, but an undefined $(xbuild_dirs)
variable was appended to DIST_ONLY_SUBDIRS.
This patch adds $(xbuild_4_0_dirs) instead.
2014-01-23 17:14:21 -08:00
Ashley Winters
48d027c872
Fix 'make dist' broken since 35287878
...
In commit 35287878b9 :
[xbuild] Reorganize xbuild targets/frameworks/bin data
Several files were shuffled around, but the EXTRA_DISTFILES was
not fully updated with the new file paths.
This patch is required to build a 3.2.7 tarball.
2014-01-23 17:14:18 -08:00
Sebastien Pouliot
0da4887478
[System] Exclude LinuxNetworkChange from MONOTOUCH build (since it won't work as the p/invoke are not present)
2014-01-23 16:57:11 -05:00
Atsushi Eno
3354229821
update .csproj.
2014-01-23 23:46:46 +09:00
Atsushi Eno
e975cdcd71
Add BuildRequestDataTest and fixed some .NET compatibility in tests.
2014-01-23 23:46:09 +09:00
Atsushi Eno
0f2a28f154
Check null buildTargets at BuildRequestData. But not in ProjectInstance.
2014-01-23 23:45:23 +09:00
Alex Rønne Petersen
62a953fddf
Merge pull request #735 from wtfrank/bitblt
...
dllmap for BitBlt in gdi32.dll
2014-01-23 03:59:37 -08:00
Atsushi Eno
77394d2b6b
Path existence and lookup is now based on insensitive search.
2014-01-23 19:14:35 +09:00
Atsushi Eno
5afd546fdd
comment out error check on Inputs/Outputs mismatch.
2014-01-23 17:03:18 +09:00
Atsushi Eno
845b1b7e5c
implement OnError on target.
2014-01-23 17:02:15 +09:00
Atsushi Eno
30e1ab9a21
Exists() needs to normalize Windows path first.
2014-01-23 17:00:32 +09:00
Zoltan Varga
e28ad88aea
[jit] Add a mono_get_jit_tls () helper function.
2014-01-23 04:46:55 +01:00
Atsushi Eno
9d81eb03de
exclude extraneous stuff from msbuild dir.
2014-01-23 11:56:25 +09:00
Atsushi Eno
ff13feb917
DefaultTargets must be first picked up from imports' attributes, then first of Targets.
2014-01-23 11:31:07 +09:00
Atsushi Eno
b8b67850a3
property name comparison should be done in case insensitive manner.
2014-01-23 11:30:43 +09:00
tritao
f574fff5ef
Follow up on return intrinsics tightening the preprocessor checks and using the declared version of the intrinsic instead of declaring it ourselves.
...
Addressing a post-commit review by @alexrp.
2014-01-23 00:34:45 +00:00
Rodrigo Kumpera
3ebef4abdf
[runtime] Handle native size of structs with explicit layout and min alignment smaller than default packing. Fixes #4510
...
The calculating the native size of structs with explicit layout we need to take into consideration the minimum alignment
needed and the packing asked.
If no packing is supplied, we should respect the minimum alignment. If packing is supplied we should use the minimum required.
2014-01-22 16:51:50 -05:00
João Matos
5e0c599e4a
Merge pull request #878 from tritao/master
...
MSVC build improvements
2014-01-22 10:46:45 -08:00
Marek Safar
95d5c30a29
New tests
2014-01-22 17:54:14 +01:00
Marek Safar
ee5bf38ad0
[dlr] Implement few missing interpreter instructions
2014-01-22 17:54:14 +01:00
Marek Safar
a2febcf2de
[dlr] Fix UInt64 add/div
2014-01-22 17:54:13 +01:00
Zoltan Varga
738f9c3c38
[jit] Fix the freeing of AOT jump target lists. Fixes #17201 .
2014-01-22 01:11:23 +01:00
Zoltan Varga
216ccda87a
[amd64] Make seq_points clobber callee save registers. Fixes #17310 .
2014-01-22 00:58:39 +01:00
Marek Safar
c9cb2f4c4a
[mkbundle] Make duplicate assembly name error tracking less painful
2014-01-21 23:11:43 +01:00
Marek Safar
4956113701
[mkbundle] Remove no longer needed System.Reflection hack
2014-01-21 20:39:28 +01:00
Marek Safar
c6bd624372
[mcs] Check for initially unassigned struct instance variables of unassigned structs.
2014-01-21 16:33:01 +01:00
Rolf Bjarne Kvinge
5fe24cd406
[System] Include IndentedTextWriter in the mobile profile.
...
Fixes a build problem for Xamarin.iOS and besides there doesn't seem
to be any reason for it to not be included.
2014-01-21 10:41:27 +01:00
Zoltan Varga
93540ce41d
[runtime] Fix the DISABLE_JIT build.
2014-01-21 04:27:06 +01:00
Zoltan Varga
26ac16318d
[gsharedvt] Fix memory leaks. Fixes #16787 .
2014-01-21 03:51:33 +01:00
tritao
0737176a13
Explicitly define strtoull for MSVC releases previous to 2013.
2014-01-20 18:50:44 +00:00
tritao
eca6062b12
Fixed SGen qsort code to compile with MSVC.
...
MSVC does not understand C99, so we emulate it with some explicit allocas.
2014-01-20 18:49:37 +00:00
tritao
110bfc8bbe
Fixed return address intrinsics in MSVC.
...
Patch previously contributed Vincent Povirk, slightly updated due to some review feedback by Alex Petersen.
2014-01-20 18:47:11 +00:00
tritao
a7cc9fedd8
Fixed missing Interlocked intrinsics in MSVC x86.
...
Patch previously contributed by Vincent Povirk.
2014-01-20 18:44:39 +00:00
Alex Rønne Petersen
3c3b8ae818
Move a variable into the #ifdef path it's used in. Fixes a warning.
2014-01-20 18:15:33 +01:00
Alex Rønne Petersen
fbde76e4c5
Remove unused emit_line_number_info_begin () function. Fixes a warning.
2014-01-20 18:15:13 +01:00
Alex Rønne Petersen
4e2c39751e
Remove unused dummy_apc () function on non-WIN32. Fixes a warning.
2014-01-20 16:15:15 +01:00
Miguel de Icaza
165a35c18c
Revert "Exclude more console code from NET_2_1"
...
Since we no longer care about Moonlight, this patch is no longer needed,
and enables some cute functionality on the iOS REPL.
This reverts commit ec445c82f7 .
2014-01-20 09:22:17 -05:00
Marek Safar
7db9ee7b47
Merge pull request #876 from knocte/master
...
Fix very sticky typo in numerous places
2014-01-19 23:41:11 -08:00
Andrés G. Aragoneses
0eb40ad2da
Fix very sticky typo in numerous places
2014-01-19 17:51:24 +01:00
Zoltan Varga
05821ed6e9
[runtime] Rename QueueUserAPC () to wapi_thread_interrupt_self () and simplify it.
2014-01-19 05:40:54 +01:00
Rodrigo Kumpera
31d902a285
finally_guard has been promoted to the stable set of tests.
2014-01-17 18:15:01 -05:00
Rodrigo Kumpera
b7d2b9a000
The shutdown check is racy, we should check if the queue has been cleaned up instead.
2014-01-17 18:13:57 -05:00
Rodrigo Kumpera
7d688f1c02
[runtime] Properly unlink a node in the tls slot freelist. Fixes #17290 .
...
The existing search code would not update the previous pointer so we would be
always unlinking all nodes in the freelist in front of the one picked.
2014-01-17 17:54:42 -05:00
Rodrigo Kumpera
c9230c1fdb
[runtime] Don't raise a ExecutionEngineException is shadown copying fails to find the file. Fixes #17251 .
...
Patch by Jan Lamecki. Released under MIT X11 license as per https://bugzilla.xamarin.com/show_bug.cgi?id=17251
2014-01-17 16:07:41 -05:00
Marek Safar
4de39e0eac
[corlib] BinaryStream sting reading from custom stream uses correct count. Fixes #15143
2014-01-17 21:59:40 +01:00
Richard Meyer
4ee22819a5
Added additional common internet media types
...
Many of the changes come from: http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types
dtd as application/xml-dtd
http://tools.ietf.org/html/rfc3023#section-3.5
vcf and vcard as text/vcard http://tools.ietf.org/html/rfc6350#section-10.1
dart as application/dart
https://www.dartlang.org/articles/embedding-in-html/
xps as application/vnd.ms-xpsdocument
oxps as application/oxps
http://www.ecma-international.org/publications/standards/Ecma-388.htm
flac as audio/x-flac
http://en.wikipedia.org/wiki/FLAC
spx as audio/ogg
http://tools.ietf.org/html/rfc5334#section-10.3
opus as audio/ogg
http://tools.ietf.org/html/draft-terriberry-oggopus-01
X3D Mime Types:
http://www.web3d.org/x3d/learn/mimetypes/
http://www.iana.org/assignments/media-types/model/x3d-vrml
appcache for text/cache-manifest
http://en.wikipedia.org/wiki/Cache_manifest_in_HTML5
2014-01-17 14:26:50 -06:00
Marek Safar
661af380c3
[corlib] Fixes race in disposing CancellationTokenSource. Fixes #17256
2014-01-17 21:04:08 +01:00
Marek Safar
14db2127d4
[mcs] Less cascading errors
2014-01-17 21:04:08 +01:00
Marek Safar
eee540621a
Merge pull request #868 from mariokmk/master
...
Using the fully qualified assembly name in dependencies
2014-01-17 12:00:02 -08:00
Richard Meyer
9fc58a5bec
Added application/json and application/xhtml+xml
...
application/json:
http://www.ietf.org/rfc/rfc4627.txt
This could improve support for libraries like jQuery that request raw .json files
application/xhtml+xml:
http://www.rfc-editor.org/rfc/rfc3236.txt
2014-01-17 11:51:23 -06:00
Richard Meyer
9d5ecce947
Some corrections and additions
...
Changed "aac" to "audio/aac"
http://en.wikipedia.org/wiki/Advanced_Audio_Coding
Added "m4a" for "audio/mp4" and "m4v" for "video/mp4"
Commented out "mp4a" since the official extension is "m4a"
http://tools.ietf.org/rfc/rfc4337.txt
http://en.wikipedia.org/wiki/MPEG-4_Part_14
Added "3pg" for "video/3gpp"
http://tools.ietf.org/html/rfc3839#section-3.2
Added "3g2" for "video/3gpp2"
http://tools.ietf.org/html/rfc4393#section-3.2
Added "ogx" for "application/ogg"
http://tools.ietf.org/html/rfc5334#section-10.1
2014-01-17 11:14:14 -06:00
Rodrigo Kumpera
058e285738
[metadata] Fix a potential crasher.
2014-01-17 12:06:50 -05:00
Rodrigo Kumpera
65e808bb55
[runtime] Fix a few warnings in io-layer and utils.
2014-01-17 12:06:49 -05:00
Rodrigo Kumpera
eb460afc7b
[utils] The fallback mmap should fail if it cannot read the full contents of a file.
2014-01-17 12:06:49 -05:00
Rodrigo Kumpera
20149a0ecc
[eglib] Fix a possible memory leak.
2014-01-17 12:06:49 -05:00
Zoltan Varga
87bbf05c11
[runtime] Use mono_thread_info_tls_get () in sgen as well.
2014-01-17 18:03:02 +01:00
Atsushi Eno
c9021a5d28
[mkbundle] fix template for compressed version. stderr is in stdio.h.
2014-01-17 23:18:27 +09:00
Marek Safar
47071c959e
[mcs] Initial lambda checked scope comes from parent block.
2014-01-17 11:33:35 +01:00
Alex Rønne Petersen
3a86569d27
Merge pull request #856 from madewokherd/textcontrol
...
Avoid adjusting selection twice in TextControl.
2014-01-17 00:24:50 -08:00
Alex Rønne Petersen
6fd9c8ec2c
Merge pull request #861 from RobertZenz/patch-1
...
Noted that the fullname attribute is not the same as Type.FullName.
2014-01-17 00:23:09 -08:00
Alex Rønne Petersen
6d2ab18976
Merge pull request #875 from justincc/master
...
Change Mono manpage to correct effect of MONO_THREADS_PER_CPU env var
2014-01-17 00:20:44 -08:00
Zoltan Varga
ed1476e621
Fix boehm after eb1a7c1591.
2014-01-17 07:50:05 +01:00
Zoltan Varga
8a3bfc92ac
[runtime] Remove some unused includes.
2014-01-17 07:27:48 +01:00
Zoltan Varga
3c2898ebb0
[runtime] Simplify mono_thread_state_init_from_handle () on darwin a bit.
2014-01-17 07:26:40 +01:00
Zoltan Varga
eb1a7c1591
[runtime] Store the values of some TLS variables into an array in MonoThreadInfo, and use it in mono_thread_state_init_from_handle () on darwin to avoid the usage of platform specific hacks to obtain their values.
2014-01-17 04:59:23 +01:00
Zoltan Varga
7be7431b9f
[runtime] Add a mono_thread_info_yield () function.
2014-01-17 03:29:33 +01:00
Zoltan Varga
07fc727b86
[runtime] Use mono_thread_info_get_stack_bounds () in sgen instead of duplicating code.
2014-01-17 03:13:10 +01:00
Zoltan Varga
679092e662
[runtime] Move mono_thread_get_stack_bounds () to utils/mono-threads.
2014-01-17 03:06:22 +01:00
Zoltan Varga
28374f3161
[aot] Add the rgctx trampolines required by array helper wrappers in the normal place instead of in mono_aot_get_method () so they won't interfere with gsharedvt. Fixes #17284 .
2014-01-17 02:15:22 +01:00
Zoltan Varga
81182d1406
Disable a gsharedvt test which depends on async functionality which no longer works.
2014-01-17 02:15:22 +01:00
Aaron Bockover
e22bb79ae6
driver.c: Revert "Update message"
...
This reverts commit 85841d0bbd .
Some scripts unfortunately depend on the verbage "Mono JIT compiler"
in the "mono --version" message. While this was never a blessed
or supported way of getting the version (use pkg-config) of Mono,
nonetheless this breaks some important stuff. We can use the better
message in the (somewhat distant) future.
2014-01-16 18:02:08 -05:00
Justin Clark-Casey
a41ab301e8
Change Mono manpage to correct effect of MONO_THREADS_PER_CPU env var
...
1. MONO_THREADS_PER_CPU affects ThreadPool min threads rather than max threads
2. Effect is MONO_THREADS_PER_CPU * cpu_cores, there is no +20
3. Default is 1, not 10
2014-01-16 20:02:53 +00:00
Aaron Bockover
a66f333246
profiles: define xammac (Xamarin.Mac) profile
...
Based on the Mobile profile and modeled after
the MonoDroid profile.
2014-01-16 14:16:59 -05:00
Aaron Bockover
975d419550
build: use MOBILE_DYNAMIC instead of MONODROID
...
Some conditional compilation shouldn't really
be bound to MONODROID, instead add a new define
that can be reused, MOBILE_DYNAMIC.
2014-01-16 14:13:10 -05:00
Aaron Bockover
354e22bc89
configure.in: remove --with-mobile
...
It doesn't actually do anything. Was quite
misleading.
2014-01-16 14:09:55 -05:00
Zoltan Varga
401d832ca7
[jit] Handle native types in mini_type_get_underlying_type () as well.
2014-01-16 15:32:03 +01:00
Zoltan Varga
cac0aaa9ce
Fix the --enable-native-types build.
2014-01-16 04:03:52 +01:00
Zoltan Varga
8af5af5763
Fix the build.
2014-01-16 03:37:21 +01:00
Rodrigo Kumpera
f5a80b8456
[runtime] Make gsharing and explicit configure extension.
2014-01-15 20:29:03 -05:00
Rodrigo Kumpera
01e18a7fcd
[runtime]Add native type extension.
2014-01-15 20:26:56 -05:00
Marek Safar
eca138a47f
New test file
2014-01-15 23:03:52 +01:00
Alan McGovern
6d7e812d70
[Microsoft.Build.Engine] Fix the escaping/unescaping of FullPath metadata
...
It is incorrect to escape the FullPath metadata for a build item when
we invoke GetEvaluatedMetadata. If we do this we end up completely breaking
every file with a special character in it as things like this would always
fail as we'd pass an escaped path to the filesystem:
File.Exists (item.GetEvaluatedMetadata ("FullPath"))
The iOS designer encountered this issue when we added retina images
called "[email protected] " to our solution.
With tests.
2014-01-15 15:33:16 -05:00
Marek Safar
89fcde4fd1
[mcs] Add additional l-value checks on member access properties as well. Fixes #9571
2014-01-15 20:45:58 +01:00
Marek Safar
c30144b4b0
[mcs] Import extension methods dynamic generic arguments correctly.
2014-01-15 20:10:15 +01:00
Zoltan Varga
3a4464fcda
[jit] Use the jit lock instead of the loader lock in mono_tramp_info_register ().
2014-01-15 18:50:47 +01:00
Zoltan Varga
791387fd05
[runtime] Get rid of SuspendThread()/ResumeThread(), integrate its functionality into mono-thread-info.c.
2014-01-15 18:34:34 +01:00
Zoltan Varga
f18648d642
[jit] Fix dwarf line number info generation, make AOT use it again instead of the .loc/.file directives of GAS, since CLANG only supports those with assembly, not with .byte directives. Fixes part of #15202 .
2014-01-15 04:22:45 +01:00
Marek Safar
8f1a0ccce6
[corlib] Improve 85aaf9b074 change
2014-01-14 19:23:23 +01:00
Miguel de Icaza
7d80c22054
Add support for stdout returns
2014-01-14 12:52:18 -05:00
Zoltan Varga
285f815fc5
[runtime] Fix a regression caused by a0afa38296.
2014-01-14 18:23:21 +01:00
Rolf Bjarne Kvinge
f093f00839
The monotouch_runtime profile needs the DISABLE_COM flag too.
2014-01-14 18:19:06 +01:00
Zoltan Varga
1da09a9d20
[runtime] Fix regressions caused by 9e5b23eee3.
2014-01-14 17:52:50 +01:00
Zoltan Varga
9ee744d388
Revert "[runtime] Get rid of ResumeThread(), use mono_thread_info_resume () instead."
...
This reverts commit e0cff63013 .
Revert this as its racy.
2014-01-14 17:52:50 +01:00
Sebastien Pouliot
835ac90fc0
Add missing (new) file for System.Net.Http.dll (monotouch build)
2014-01-14 11:51:25 -05:00
Rolf Bjarne Kvinge
6d75a5f34a
The monotouch_runtime profile needs the DISABLE_REMOTING flag.
...
Since the corresponding mono runtime being used has also disabled remoting.
2014-01-14 17:31:22 +01:00
Marek Safar
4b1b421832
[mcs] Disable container definition check on platforms which don't support it
2014-01-14 17:30:50 +01:00
Marek Safar
09496c2a83
[linker] Add missing descriptors
2014-01-14 17:30:49 +01:00
Zoltan Varga
8ab9b5a4ee
[runtime] Fix the windows build.
2014-01-14 16:50:56 +01:00
Sebastien Pouliot
24a220f373
The mobile profile can support IBindingRuntimePreferences on WebHttpBinding. Fix one S.SM.W unit test failure for XI
2014-01-14 10:12:11 -05:00
Sebastien Pouliot
b7c10a7c1d
There's no need for those special NET_2_1 cases (not using NameValueCollection like MS) anymore and it fixes 7 S.SM.W unit tests failures for XI (e.g. case sensitiveness)
2014-01-14 10:11:21 -05:00
Sebastien Pouliot
439b2917d9
There's no need for those special NET_2_1 cases (excluding System.Char) anymore and it fixes 6 S.SM.W unit tests failures for XI.
2014-01-14 10:10:35 -05:00
Sebastien Pouliot
f83814bfbb
[test] Disable a test for XI (only) as it does not support dynamic proxy code generation
2014-01-14 10:09:46 -05:00
Zoltan Varga
26f6ace91f
Fix a warning.
2014-01-14 14:52:01 +01:00
Zoltan Varga
7982af4290
Revert "Fix a warning."
...
This reverts commit c5104c091a .
2014-01-14 14:52:01 +01:00
Marek Safar
27e07c76d8
Fixes failing test
2014-01-14 14:45:38 +01:00
Marek Safar
f74fa4a0ac
[build] Add Microsoft.CSharp to monotouch profile
2014-01-14 14:25:46 +01:00
Marek Safar
c5eab2d5dc
[System] Use generic equality comparer in Find/FindLast methods. Fixes #5245
2014-01-14 14:25:45 +01:00
Zoltan Varga
fefea60aa0
[arm] Fix an assert caused by large offsets. Fixes #17208 .
2014-01-14 04:37:43 +01:00
Zoltan Varga
e0cff63013
[runtime] Get rid of ResumeThread(), use mono_thread_info_resume () instead.
2014-01-14 03:47:26 +01:00
Zoltan Varga
c5104c091a
Fix a warning.
2014-01-14 02:51:54 +01:00
Zoltan Varga
9e5b23eee3
[runtime] Centralize low-level thread creation in utils/mono-threads.c. Get rid of the CreateThread () function in io-layer.
2014-01-14 02:49:16 +01:00
Michael Hutchinson
c25957f1a4
[xbuild] Add 4.0 client profile
...
BXC1426 - xbuild should include the ".NET 4.0 client" framework profile
2014-01-13 14:58:47 -05:00
Michael Hutchinson
07dfe00301
[xbuild] 4.0 test targets go in 4.5 profile
2014-01-13 14:58:46 -05:00
Zoltan Varga
dab4dc951c
[jit] Call mini_replace_type () in one place.
2014-01-13 19:03:00 +01:00
Zoltan Varga
fc23a8e268
[runtime] Fix an assert caused by a157ac79e8.
2014-01-13 18:27:49 +01:00
Zoltan Varga
74bc71da95
[sdb] Fix setting of byref variables in registers. Fixes #17185 .
2014-01-13 17:14:19 +01:00
Rodrigo Kumpera
c1128bb7b0
[io-layer] Add essay on my choices for is_file_writable.
2014-01-13 10:52:49 -05:00
Marek Safar
5359f9feaf
Merge pull request #844 from scottmcarthur/master
...
Check for null item in BindingList<T>.InsertItem
2014-01-13 06:24:13 -08:00
Marek Safar
a41fe9781b
Tests update
2014-01-13 15:13:40 +01:00
Marek Safar
2d0272d9c2
[System.Net.Http] Add parsing of multi-value strings. Fixes #17132
2014-01-13 14:48:12 +01:00
Zoltan Varga
0b1316bccb
Fix the build.
2014-01-13 14:03:25 +01:00
Zoltan Varga
00141cd3d1
[runtime] Fix the --disable-boehm build.
2014-01-13 13:59:43 +01:00
Zoltan Varga
8aee5e61e8
Merge pull request #872 from Unity-Technologies/upstreaming/customize-suspend-policy2
...
allow users to specify a suspension policy when enabling an event
2014-01-13 04:35:19 -08:00
Lucas Meijer
a650855da8
allow users to specify a suspension policy when enabling an event
2014-01-13 08:52:17 +01:00
Marek Safar
269c7e48dc
Merge pull request #871 from tumtumtum/master
...
Fix for transactions hanging and timing out if PreparingEnlistment.Done() is called
2014-01-12 23:19:36 -08:00
Rodrigo Kumpera
e613a00e46
[io-layer] Properly check write permission of a file. Fixes #3501 .
...
The existing check only verified if owner had write privileges.
Which returns the wrong value when the file is not owned by the user.
And doesn't work when the file is globally writeable or the user
belongs to the user of the file.
We check flags for when euid/egid matches file's. Otherwise we fallback
to access(2), which sucks, but it's the only thing close to working
that exists on unix and has a reasonably portable behavior.
2014-01-13 00:59:43 -05:00
Zoltan Varga
a0afa38296
Move the mono_thread_create () function into utils/mono-threads.h/c, change/simplify its signature a bit.
2014-01-13 04:04:58 +01:00
Zoltan Varga
b71c0d6afc
Clean up the thread startup code by moving common code into a new create_thread () function.
2014-01-13 02:14:47 +01:00
Thong Nguyen
99d7cb1610
Quickfix for transactions timing out and not committing when PreparingEnlistment.Done is called instead of PreparingEnlistment.Prepared
2014-01-12 22:00:57 +00:00
Zoltan Varga
0aa1d4fe15
Add LOCK_THREAD/UNLOCK_THREAD macros, get rid of ensure_synch_cs_set ().
2014-01-12 14:22:03 +01:00
Zoltan Varga
a157ac79e8
Clean up the setup of thread->synch_cs. Initialize it when the MonoInternalThread object is created, and delete it in the finalizer.
2014-01-12 14:22:02 +01:00
Marek Safar
111e40018a
Merge pull request #870 from wayoutmind/master
...
[system] Add IsIPv6Teredo to System.Net.IpAddress
2014-01-12 00:34:55 -08:00
Michael Hutchinson
de413aa54e
[xbuild] Properly disable tests on 4.0 framework profile
2014-01-12 01:12:43 -05:00
Michael Hutchinson
a2829d26b1
[xbuild] Tests need older MSBuild targets
2014-01-12 01:12:42 -05:00
Rodrigo Kumpera
300bacd521
Merge pull request #869 from alistair/copyfile
...
Don't raise an exception if we can't find the src assembly on a shadow copy appdomain
2014-01-11 21:09:15 -08:00
Fredrick Galoso
d27abb23af
[system] Add IsIPv6Teredo to System.Net.IpAddress
...
Adds support for checking for an IPv6 Teredo address, introduced in
.NET Framework 4.
2014-01-11 21:23:50 -06:00
Alistair Bush
2d7b174c93
Don't raise an exception if we can't find the src assembly.
...
These changes are released under the MIT license.
2014-01-12 00:35:37 +13:00
Aaron Bockover
bc6da57cc1
mono-api-info: avoid NumberOverflow
...
GetFlaggedEnumValue converts values to Int64 which
can cause a NumberOverflow exception when the value
is too large to fit (e.g. a large UInt64). Special
case UInt64 values for now (duplicates the logic,
which sucks).
2014-01-10 14:13:02 -05:00
Miguel de Icaza
319f562ca7
[csharp] do not try to read 0 characters for a string
2014-01-10 12:37:09 -05:00
Miguel de Icaza
2a728c2a86
[csharp] Make the stream reader iterate until all data has been read
2014-01-10 11:36:21 -05:00
Miguel de Icaza
f85bf44466
Add new --client/--server[=server[:port] support for the shell
2014-01-10 11:36:20 -05:00
Miguel de Icaza
bf60e93ea2
update copyright
2014-01-10 11:36:20 -05:00
Marek Safar
62dda0260a
[corlib] Update en-GB first day of week. Fixes #17151
2014-01-10 16:47:47 +01:00
Marek Safar
c92e96e850
[mcs] Check type of index used in pointer array aritmetic. Fixes #17145
2014-01-10 15:57:27 +01:00
Zoltan Varga
427d242009
[runtime] Fix large file support on android, it doesn't support -D_FILE_OFFSET_BITS=64, so call lseek64 directly. Fixes #17128 .
2014-01-09 19:16:40 -05:00
Marek Safar
75bc8d1e1d
[corlib] Hunting down rare Task.WaitAll race
2014-01-10 14:38:35 +01:00
Atsushi Eno
c67aed9a47
fix build.
2014-01-10 20:42:25 +09:00
Marek Safar
c4222e06ff
[mdoc] Update expected result xml templates
2014-01-10 11:36:06 +01:00
Atsushi Eno
bf909bcbd0
fix bug #11335 .
2014-01-10 19:04:58 +09:00
Atsushi Eno
2fd8da4920
Fix bug #11336 .
2014-01-10 19:03:33 +09:00
Marek Safar
9939588f48
[System.Core] Update MonoTouch System.Linq.Expression to be 4.5 compatible
2014-01-10 10:46:45 +01:00
Marek Safar
e7c6b18e4e
[mcs] Add missing object to dynamic conversion for imported types
2014-01-10 10:46:45 +01:00
Michael Hutchinson
e6ffa41b0e
[xbuild] Do not allow running tests or installing exe w/4.0 profile
...
It's not a usable MSBuild 4.0 toolset, that's in the 4.5 profile directory.
2014-01-10 01:11:33 -05:00
Michael Hutchinson
21a85cdd21
[xbuild] The 4.0 toolset is in the 4.5 directory
2014-01-10 01:11:32 -05:00
Michael Hutchinson
35287878b9
[xbuild] Reorganize xbuild targets/frameworks/bin data
...
They had been squashed into one single source directory
despite being installed into very different locations.
Made it easier to follow what's what by separating them
into:
* data: targets and data files for xbuild bin directory
* targets: misc pcl/web targets for extension directory
* frameworks: framework definitions
2014-01-10 01:11:31 -05:00
Rodrigo Kumpera
11edb27437
Revert "[runtime] Make mono_class_is_assignable_from lazy resolve its arguments." This broke WCF.
...
This reverts commit decc91e8da .
2014-01-09 16:47:31 -05:00
Rodrigo Kumpera
b8bb36eb2f
[runtime] Change MonoImage::field_cache lock from the loader lock to the image lock.
2014-01-09 16:47:12 -05:00
Marek Safar
b3f05d8b00
[System.Core] Add dynamic interpreter
2014-01-09 20:40:09 +01:00
Marek Safar
57b915d78f
[dlr] Better FEATURE_REFEMIT checks
2014-01-09 20:40:09 +01:00
Rodrigo Kumpera
4b0111dac9
[corlib] Add an exhaustive regression test for file sharing and File.Move.
2014-01-08 20:47:01 -05:00
Rodrigo Kumpera
e66015a55e
[io-layer] Correctly implement permission checking for File.Move. Fixes #17009 .
...
The old check was simply for open sharing status, which is incorrect. The right
thing to do is to check for FileShare.Delete and not FileAccess.
2014-01-08 20:47:00 -05:00
Marek Safar
1b41e096fe
[mcs] Suport recursive references of non-FX assemblies
2014-01-08 20:49:39 +01:00
Mario Kosmiskas
a01e1ca877
Using the fully qualified assembly name in dependencies
...
Some assemblies fail to load without specifying the full name,
namely bundling an app that uses GTK
2014-01-08 11:32:28 -08:00
Zoltan Varga
22b3e7f2b1
[jit] Use the mono_restore_context () helper function in one place.
2014-01-08 16:58:33 +01:00
Zoltan Varga
7798b94706
[jit] Align the stack in mono_arch_restore_context () on x86 since it might be unaligned if it was captured asynchronously.
2014-01-08 16:56:03 +01:00
Zoltan Varga
b5af5b72ca
[jit] Fix some checks in the arm dyn call code. Fixes #17101 .
2014-01-08 04:33:59 +01:00
Michael Hutchinson
91ed5dfbfc
[xbuild] Suppress new window for child processes
...
BXC14584 - Console windows pop up during build with mono runtime
2014-01-07 22:23:13 -05:00
Michael Hutchinson
6bb2ab2f06
[xbuild] Add pkgconfig file for xbuild 12
2014-01-07 22:22:32 -05:00
Michael Hutchinson
84b473c086
[xbuild] Fix the xbuild 12 tests
2014-01-07 18:39:34 -05:00
Michael Hutchinson
15fedf3b08
[xbuild] Add binding redirects so old tasks work w/ new xbuild
2014-01-07 18:39:33 -05:00
Michael Hutchinson
794e185592
[xbuild] Remove Silverlight targets, they don't work w/o framework
2014-01-07 18:39:32 -05:00
Michael Hutchinson
b22bf8cbbf
[xbuild] Set correct DefaultToolsVersion for xbuild 12
2014-01-07 18:39:32 -05:00
Michael Hutchinson
76d9d6a458
[xbuild] Fix 12.0 toolset location and public API
2014-01-07 18:39:31 -05:00
Michael Hutchinson
92ac9868a3
[xbuild] Fix 12.0 tasks
2014-01-07 18:39:30 -05:00
Michael Hutchinson
6926accf40
[xbuild] MSBuild 12 toolset should be available for XBUILD_12
2014-01-07 18:39:30 -05:00
Michael Hutchinson
47cb8c24c8
[xbuild] Update printed version/copyright
2014-01-07 18:39:29 -05:00
Michael Hutchinson
5e70ba51a0
[xbuild] Make xbuild script point to xbuild 12
2014-01-07 18:39:29 -05:00
Michael Hutchinson
3313d9ee10
[xbuild] Install data files for xbuild 12
2014-01-07 18:39:28 -05:00
Michael Hutchinson
425fdc03fa
[xbuild] Build & install MSBuild 12.0 assemblies
2014-01-07 18:39:27 -05:00
Rodrigo Kumpera
c8a343cf30
[runtime] ves_icall_type_is_assignable_from should not init its arguments as this is done properly by its callees.
2014-01-07 17:47:02 -05:00
Rodrigo Kumpera
decc91e8da
[runtime] Make mono_class_is_assignable_from lazy resolve its arguments.
...
Drop the requirement to call mono_class_init in mono_class_is_assignable_from.
The solution is not ideal as it relies on mono_class_implement_interface_slow which
is significantly slower than the regular checks and is less tested / complete.
The right approach here would be to promote setup_offsets to have proper laziness and
not be hidden behind vtable initialization. Until this happen we can't drop the
usage of the slow variant here.
2014-01-07 17:41:26 -05:00
Rodrigo Kumpera
bc6387b7dd
[runtime] Make mono_class_is_assignable_from_slow handle arrays.
2014-01-07 17:32:13 -05:00
Zoltan Varga
208c3ed412
[jit] Fix the loading of arguments received on the stack on arm.
2014-01-07 18:47:54 +01:00
Atsushi Eno
9dbcf29891
Merge branch 'msbuilddll2' of https://github.com/atsushieno/mono into msbuilddll2
...
Conflicts:
mcs/tools/msbuild/ErrorUtilities.cs
mcs/tools/msbuild/Main.cs
mcs/tools/msbuild/Parameters.cs
mcs/tools/msbuild/SolutionParser.cs
2014-01-08 01:13:11 +09:00
Atsushi Eno
67c6be79ab
several fixes to load get buildable Project and run working builds.
2014-01-08 00:48:38 +09:00
Atsushi Eno
4640310ab0
BuildEngine4 must not be reused as IBuildEngine when building another project by <MSBuild> task. Set current directory.
2014-01-08 00:48:28 +09:00
Atsushi Eno
9a1fa0225e
Unlike MS.Build.Engine, sln files cannot be supported in MS.Build.dll, so deal with them in this tool.
2014-01-08 00:48:21 +09:00
Atsushi Eno
0c9f224f1e
skip Condition and ContinueOnError as task parameters. Do not use null toolsVersion as is in IBuildEngine2 implementation.
...
Conflicts:
mcs/class/Microsoft.Build/Microsoft.Build.Internal/BuildEngine4.cs
2014-01-08 00:48:10 +09:00
Atsushi Eno
17183a6fbf
Merge branch 'master' into msbuilddll2
...
Conflicts:
mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ConsoleLogger.cs
mcs/class/Microsoft.Build/Microsoft.Build.Evaluation/Project.cs
mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectInstance.cs
mcs/class/Microsoft.Build/Microsoft.Build.Execution/ProjectTargetInstance.cs
2014-01-08 00:20:29 +09:00
Zoltan Varga
50b0ab321a
[aot] Disable aot for methods with tail calls in non full-aot mode, instead of compiling them without tail calls.
2014-01-07 16:17:57 +01:00
Zoltan Varga
5fbf9f1d11
[jit] Pass flags to mini_method_compile () as an enum.
2014-01-07 16:14:36 +01:00
Atsushi Eno
9676535077
Use ProjectInstance's DefaultTargets which also covers imports.
2014-01-08 00:09:35 +09:00
Atsushi Eno
f20299d09a
Add test for DefaultTargets handling with imports.
2014-01-08 00:09:34 +09:00
Atsushi Eno
6e33f6f724
rename some use of "xbuild" to "msbuild". Give loggers to ProejctInstance.Build() as expected.
2014-01-08 00:09:34 +09:00
Atsushi Eno
c304f080a7
Add logger related tests (to sort out those Loggers properties relationship)
2014-01-08 00:09:33 +09:00
Atsushi Eno
96fe7c8372
update .sln too.
2014-01-08 00:09:33 +09:00
Atsushi Eno
c915716227
Update .csproj (to add MSBuild.csproj).
2014-01-08 00:09:32 +09:00
Atsushi Eno
3bcf27afc1
Add experimental "MSBuild.exe" implementation which is based on Microsoft.Build.dll.
...
Conflicts:
mcs/tools/msbuild/Main.cs
mcs/tools/msbuild/SolutionParser.cs
2014-01-08 00:09:30 +09:00
Martin Baulig
d8a1b2b353
[PCL]: Add ReadOnlyDictionary type-forwarder for XI. Fixes #16951 .
2014-01-07 16:07:17 +01:00
Zoltan Varga
a449c18d7a
[jit] Disable tail calls in AOT mode so methods using tail calls can be AOT-ed.
2014-01-07 15:46:27 +01:00
Zoltan Varga
0ac4a74e51
[aot] Don't pass -W option to the clang assembler, it causes a warning.
2014-01-07 15:46:27 +01:00
Atsushi Eno
00c52b4cdd
Revert "Remove private sln/csproj files."
...
I need these projects while I'm hacking MSBuild.
This reverts commit f188c158d4 .
2014-01-07 22:47:47 +09:00
Atsushi Eno
fde7b35e03
Fix mobile builds.
2014-01-07 22:33:06 +09:00
Atsushi Eno
7034ffa8b0
Fix mobile builds.
2014-01-07 22:32:26 +09:00
Atsushi Eno
ebbc1b57b5
several fixes to load get buildable Project and run working builds.
2014-01-07 22:04:42 +09:00
Atsushi Eno
ffb97e6fb8
BuildEngine4 must not be reused as IBuildEngine when building another project by <MSBuild> task. Set current directory.
2014-01-07 22:04:42 +09:00
Atsushi Eno
b827e1f37c
Unlike MS.Build.Engine, sln files cannot be supported in MS.Build.dll, so deal with them in this tool.
...
Conflicts:
mcs/tools/msbuild/Main.cs
mcs/tools/msbuild/SolutionParser.cs
2014-01-07 22:03:51 +09:00
Atsushi Eno
d1e7c3be8b
skip Condition and ContinueOnError as task parameters. Do not use null toolsVersion as is in IBuildEngine2 implementation.
2014-01-07 22:02:03 +09:00
Atsushi Eno
39a76b7d38
Evaluate Condition each Import within ImportGroup.
2014-01-07 22:02:02 +09:00
Zoltan Varga
2e1dc1864c
[jit] Allocate MonoJumpInfo structures using alloc0.
2014-01-07 13:32:40 +01:00
Zoltan Varga
81295dd502
[runtime] Update copyright date in --version.
2014-01-07 11:54:52 +01:00
Alex Rønne Petersen
d8feb5e9ad
Allow creating MemoryMappedFiles with an in-memory and on-disk capacity of zero on Unix.
...
This is necessary to map special files such as /dev/mem.
2014-01-06 21:41:48 +01:00
Zoltan Varga
eae1c9cb84
Merge pull request #865 from madewokherd/icallinit
...
Initialize icalls before exceptions.
2014-01-06 11:02:34 -08:00
Vincent Povirk
149e786af4
Initialize icalls before exceptions.
...
This commit licensed as MIT/X11.
2014-01-06 12:48:51 -06:00
Marek Safar
e83bf13866
[corlib] Mark all promise-style task exceptions observed. Fixes #17015
2014-01-06 17:52:19 +01:00
Atsushi Eno
31a2e167f5
[rx][iOS] Do not try to generate doc comments with build properties, they don't work so far.
2014-01-07 00:55:14 +09:00
Marek Safar
e619ed7765
[mcs] Emit Debuggable attribute. Fixes #16924
2014-01-06 15:24:33 +01:00
Marek Safar
76d899d494
[System.Web] Clean up assembly level attributes.
2014-01-06 12:05:42 +01:00
Marek Safar
2ce91c2481
[mcs] Method group caching needs to consider type arguments as well. Fixes #17059
2014-01-06 11:10:09 +01:00
Marek Safar
605b949141
New test
2014-01-06 11:10:08 +01:00
Zoltan Varga
3dba964da7
[jit] Save/restore all-callee saved registers in methods using some atomic opcodes on x86, since the opcode implementations use these registers, and the push/pop code used by these opcodes is not async safe, since the unwind code doesn't know about it. Fixes part of #16808 .
2014-01-06 01:20:12 +01:00
Zoltan Varga
9921b0306f
[runtime] Fix yet another metadata problem with dynamically created types. Fixes #14977 .
2014-01-05 16:47:03 +01:00
Zoltan Varga
c0278865da
[jit] Fix the handling of OP_ISUB_IMM in abcrem.
2014-01-05 11:59:06 +01:00
Zoltan Varga
7efa9e3134
Merge pull request #852 from ranma42/abc-64bits
...
Improve ABCREM
2014-01-05 02:57:37 -08:00
Zoltan Varga
a4eddbe982
[sdb] Add async variants to the InvokeMethod methods.
2014-01-05 11:32:35 +01:00
Linquize
3cc0e3fe3d
If HTTP charset header is empty, do not append content encoding to Content-Type header
2014-01-05 16:56:05 +08:00
Zoltan Varga
01f587ef97
[jit] Emit calls to class init trampolines for fields accesses inside inline methods in AOT mode. Fixes #16461 .
2014-01-05 02:03:30 +01:00
Zoltan Varga
41c521df6f
[runtime] Avoid RuntimeHelpers.EnsureSufficientExecutionStack () failing on windows. Works around #16776 .
2014-01-05 00:58:47 +01:00
Zoltan Varga
a4070ceb60
[runtime] Call mono_class_setup_methods () before accessing klass->method.count. Fixes #16883 .
2014-01-05 00:50:59 +01:00
Robert 'Bobby' Zenz
ea33947ba3
Noted that the fullname attribute is not the same as Type.FullName.
...
Because of Cecil the fullname attribute does expect the fullname attribute to be in the format of ECMA-335. This is in certain cases not the same as the name reported by Type.FullName.
See jbevain/cecil#150 for some details on this.
2014-01-04 19:10:23 +01:00
Marek Safar
65f5704a2c
[corlib] Update datetime patters. Fixes #17044
2014-01-04 15:33:24 +01:00
Marek Safar
46d83567ac
[mcs] Type arguments resolve failure needs to be reported after probing mode
2014-01-04 15:33:12 +01:00
Marek Safar
48537ccc00
[mcs] Better check for value type base call. Fixes #16806
2014-01-04 15:33:11 +01:00
Marek Safar
a62c32736f
[mcs] Await flow analysis uses resolved expression. Fixes #16840
2014-01-04 15:33:11 +01:00
Zoltan Varga
0ed2afe61d
[gsharedvt] Avoid using the variable size code paths for non-variable size types with some array opcodes. Fixes #17023 .
2014-01-04 13:18:58 +01:00
Marek Safar
1913a6900b
Merge pull request #858 from madewokherd/datavis
...
System.Windows.Forms.DataVisualization fixes
2014-01-04 02:05:03 -08:00
Marek Safar
996a249ff2
Merge pull request #859 from antoniusriha/groupDescription
...
Implement GroupDescription based on moonlight implementation
2014-01-04 00:51:42 -08:00
Zoltan Varga
fefb5f9b7b
[jit] Avoid nullifying class init trampolines for recursive calls to class initializers. Fixes #16489
2014-01-04 01:15:21 +01:00
Rodrigo Kumpera
79a3a432a7
[sdb] The sdb library depends on Process.Start returning a Process object, so force UseShellExecute to false.
...
This fixes a massive breakage on wrench.
2014-01-03 15:27:19 -05:00
Antonius Riha
57c18def14
Implement GroupDescription based on moonlight implementation
2014-01-03 21:15:32 +01:00
Vincent Povirk
21bc38b80d
Avoid infinite loop in property getter.
...
This commit licensed as MIT/X11.
2014-01-03 12:46:00 -06:00
Vincent Povirk
3d387843cd
Change System.Windows.Forms.DataVisualization PKT to match Windows.
...
This commit licensed as MIT/X11.
2014-01-03 12:45:52 -06:00
Zoltan Varga
0a558a7af6
Remove usage of mini_replace_type () from mono_jit_runtime_invoke (), runtime invokes care about the precise types of parameters. Fixes #16830 .
2014-01-03 14:49:08 +01:00
Zoltan Varga
0a1f1fe87c
[aot] Sanitize utf8 characters in symbol names. Fixes #16851 .
2014-01-03 13:17:49 +01:00
Michael Hutchinson
b3b28212f6
Merge pull request #822 from carlosmn/asp-pc
...
Use full path for aspnetwebstack pkg-config file
2014-01-02 17:19:57 -08:00
Michael Hutchinson
79e63ca4a9
Merge pull request #849 from antoniusriha/pcCacheBug
...
Fix for PkgConfig cache orphaned entries bug (xam bug #11133 )
2014-01-02 16:58:37 -08:00
Rodrigo Kumpera
8bc8d64457
Merge pull request #838 from desdesdes/master
...
Implementation of System.Reflection.ParameterInfo.HasDefaultValue
2014-01-02 15:49:51 -08:00
Bart Vries
3d1779302e
Implementation of System.Reflection.ParameterInfo.HasDefaultValue
2014-01-03 00:15:52 +01:00
Vincent Povirk
539862aded
Avoid adjusting selection twice in TextControl.
...
This commit licensed as MIT/X11.
2014-01-02 16:28:49 -06:00
Antonius Riha
726fe38c48
Remove obsolete pc infos from pc cache on Update()
...
The pc info file cache (~/.config/xbuild/pkgconfig-cache-2.xml) stored data
for files which don't exist anymore on the system which causes
https://bugzilla.xamarin.com/show_bug.cgi?id=11133 .
This patch removes obsolete entries from the cache when
PcFileCache.Update() is called.
2014-01-02 21:14:54 +01:00
Antonius Riha
3fcb8f8a6c
Remove redundant pc info store.
...
* PcFileCache.filesByFolders held copies of the package infos in
PcFileCache.infos grouped by the resp. pkg config directories the pc files
resided in.
* Rewrite GetPackages:
- Returns a snapshot-in-time IEnumerable<PackageInfo> ordered by pkg config
folder.
- Noramilzes paths of pkgConfigDirs parameter
* Remove now superfluous method PcFileCache.Add(,,)
2014-01-02 21:14:53 +01:00
Antonius Riha
37c3ac78f5
Add a test for PcFileCache.GetPackages()
2014-01-02 21:14:53 +01:00
Antonius Riha
bbd2412985
Setup PcFileCache stubs and ctor tests
2014-01-02 21:14:53 +01:00
Antonius Riha
9ac4fc1b52
Move internals from Microsoft.Build.Tasks to new dll Mono.XBuild.Tasks
...
All internal members (such as PcFileCache) have been made public to make them unit-testable.
* mcs/class/Makefile: Add Mono.XBuild.Tasks as build target
* mcs/class/Microsoft.Build.Tasks/Makefile: Add Mono.XBuild.Tasks.dll as build
reference of Microsoft.Build.Tasks.dll
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks-net_2_0.csproj:
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks-net_3_5.csproj:
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks-net_4_0.csproj:
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks-net_4_5.csproj: Remove
source files, which have been moved to Mono.XBuild.Tasks.dll and add a
project reference to Mono.XBuild.Tasks.dll
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks.dll.sources: Remove
files that have been moved to Mono.XBuild.Tasks.dll from
Microsoft.Build.Tasks.dll
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/PcFileCache.cs:
* mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/LibraryPcFileCache.cs:
This file was moved to Mono.XBuild.Tasks.dll
* mcs/class/Mono.XBuild.Tasks/Assembly/AssemblyInfo.cs: Moved from
Microsoft.Build.Tasks.dll. Signing key is mono.pub.
* mcs/class/Mono.XBuild.Tasks/Mono.XBuild.Tasks/PcFileCache.cs:
* mcs/class/Mono.XBuild.Tasks/Mono.XBuild.Tasks/LibraryPcFileCache.cs:
Moved from Microsoft.Build.Tasks.dll. All internal members have been made
public.
* mcs/class/Mono.XBuild.Tasks/Test/Mono.XBuild.Tasks/PcFileCacheTest.cs: Create
test file stub.
2014-01-02 21:14:53 +01:00
Marek Safar
4248ffaf1c
[mcs] Don't wrap reference type values in explicit nullable conversion. Fixes #16900
2014-01-02 18:53:09 +01:00
Marek Safar
a9eb08036e
Merge pull request #855 from echampet/spec
...
Fix a small typo in mono-core.spec.in breaking the build
2014-01-02 09:37:47 -08:00
Marek Safar
c9f9f94d36
Merge pull request #854 from antoniusriha/sortDescription
...
Make SortDescriptionCollection returned by SortDescriptionCollection.Empty read-only
2014-01-02 08:47:42 -08:00
Marek Safar
9a36b4fd76
[eval] Consider base type members in tab completion
2014-01-02 17:40:10 +01:00
Antonius Riha
3e28c643b0
Make empty SortDescriptionCollection read-only.
...
This is in accordance with the behavior of SortDescriptionCollection in .NET.
2014-01-02 17:31:36 +01:00
Antonius Riha
9e20dc9fa8
Add tests for empty, non-modifiable SortDesriptionCollection
2014-01-02 17:31:22 +01:00
Etienne CHAMPETIER
3109cc5fb4
Fix a small typo in mono-core.spec.in breaking the build
...
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-01-02 17:02:26 +01:00
Marek Safar
2ccb89fd97
[mcs] Restore async modifiers context after nested enums declaration. Fixes #16997
2014-01-02 14:18:42 +01:00
Marek Safar
99aa6cf9b2
[corlib] Promise style tasks cannot be started manually. Fixes #16857
2014-01-02 14:13:00 +01:00
Andrea Canciani
6c0fa0d567
Improve ABCREM on 64-bits architectures
...
Array indexes can be 32-bits integers even on 64-bits
architectures. This causes most loops to fail Array Bounds Checking
REMoval because the index is sign-extended before the check (see
mini_emit_ldelema_1_ins).
Sign-extending an I4 to I8 preserves its value, hence it is possible
to propagate the relation between the variables.
2014-01-01 18:55:23 +01:00
Marek Safar
92887027be
[system] Make ICommand 4.5 profile only
2014-01-01 15:30:06 +01:00
Marek Safar
dce005f81f
[corlib] Thread.GetNamedDataSlot allocates slot on failure. Fixes #16788
2014-01-01 15:28:40 +01:00
Marek Safar
12e28957fc
Merge pull request #851 from ranma42/fix_16992v2
...
Fix bug #16992
2014-01-01 02:01:09 -08:00
Andrea Canciani
6395563467
Use LIFO policy for CancellationTokenSource
...
The .NET implementation of CancellationTokenSource invokes the
callbacks in the opposite order from that of the registration.
In order to mixamize compatibility, use the same order.
Fixes ReEntrantRegistrationTest, Cancel_Order, Cancel_ExceptionOrder
(in CancellationTokenSourceTest) and
https://bugzilla.xamarin.com/show_bug.cgi?id=16992
2013-12-31 22:01:46 +01:00
Andrea Canciani
0ac0c15211
Add testcases for callback and exception ordering
...
Translated from the F# testcases available here
https://github.com/fsharp/fsharp/blob/19507b98bc6a7995e9c19c40f044fdfeb578ef77/src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Control/Cancellation.fs#L100
2013-12-31 22:01:27 +01:00
Andrea Canciani
33178ca69c
Fix CancellationTokenSourceTest.ReEntrantRegistrationTest
...
This test run on .NET would result in both "unregister" and "register"
set to a "true" value. In order to ensure that the "unregister = true"
fragment is not executed, its disposal needs to be registered after,
because on .NET the CancellationTokenSource has a LIFO behavior.
This change simplifies the code and makes the expected behavior
consistent with that of .NET.
2013-12-31 22:00:34 +01:00
Rodrigo Kumpera
87e820dfe0
Merge pull request #847 from ranma42/fsharp-tuple-hashing
...
F#-compatible tuple hashing
2013-12-26 10:05:41 -08:00
Andrea Canciani
648782fa2e
Make tuple hash function consistent with the F# implementation
...
The F# compiler optimizes the hashing of tuples when it can inline
it. This is consistent with the hashing algorithm used in .NET, but it
is not with the one used in Mono, as pointed out in
https://github.com/fsharp/fsharp/issues/188
This patch modifies Tuples.cs so that the hashing algorithm is the
same as that used in F#, i.e. the XOR variant of DJB2, using a
balanced tree parenthesization.
2013-12-26 17:50:03 +01:00
Andrea Canciani
de70cc72ff
Fix Tuples.cs code generator
...
The code generator in Tuple.cs did not build because of missing
escaping of a string.
2013-12-26 17:45:46 +01:00
Marek Safar
20d948f98e
Merge pull request #846 from abatishchev/patch-1
...
String.Join() calls List(IEnum) instead of looping
2013-12-24 00:21:46 -08:00
Alexander M. Batishchev
e5618d9e15
String.Join() calls List(IEnum) instead of looping
...
String.Join() instead of looping over IEnumerable<T> calls the constructor of List<T> accepting IEnumerable<T>.
According to https://github.com/mono/mono/blob/master/mcs/class/corlib/System.Collections.Generic/List.cs#L67 it should be more efficient.
Because JoinUnchecked() accepts string[] the option #2 is to call ToArray() extension method instead.
https://github.com/mono/mono/blob/master/mcs/class/System.Core/System.Linq/Enumerable.cs#L2886
2013-12-23 19:57:03 -08:00
Rolf Bjarne Kvinge
3c928782dd
Don't call CFNetworkCopyProxiesForAutoConfigurationScript from more than one thread. Fixes #7923 , comment 21.
2013-12-24 00:51:01 +01:00
Richard Meyer
e90b9743fc
Updated various mime types, sources in description
...
http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/05/08/office-2007-open-xml-mime-types.aspx
http://support.microsoft.com/?id=936496
http://www.rfc-editor.org/rfc/rfc4329.txt
Also added svg image/svg+xml
2013-12-23 16:01:53 -06:00
Richard Meyer
0ff662fa25
Support for audio/ogg and audio/mp4
...
.ogg, .oga audio/ogg
.mp4a, .aac audio/mp4
http://tools.ietf.org/html/rfc4337
2013-12-23 15:11:46 -06:00
meyerrj
c9434cdb79
Support for video/mp4, video/ogg, video/webm
...
Added support for the three leading HTML5 Video mime types
.mp4 video/mp4
.ogv video/ogg
.webm video/webm
When Internet Explorer 10 or 11 receives application/octet-stream as the mime type for HTML5 video, it will not play the video. This resolves the issue in an Apache/mod_mono environment.
2013-12-23 04:01:06 -06:00
scottmcarthur
7a5ab1d8c9
Test for bug 16902
...
Check insert of null item, in a BindingList<T> where T implements INotifyPropertyChanged does not cause NullReferenceException.
2013-12-22 18:08:16 +00:00
scottmcarthur
6150625424
Check for null item in BindingList<T>.InsertItem
...
Prevents `NullReferenceException` when inserting `null` object into `BindingList<T>` where `T` implements `INotifyPropertyChanged`
2013-12-21 17:28:35 +00:00
Alex Rønne Petersen
d7ce227abe
Handle 12.00 in XBuild's SolutionParser.
...
This doesn't fix support for VS 2013 projects, but it's a start...
2013-12-21 09:57:45 +01:00
Sebastien Pouliot
69d82906cb
Do not assume the first certificate of a PKCS12 file is the one matching the key (even if it's the most common way). ref: desk #54722
2013-12-18 14:21:23 -05:00
Sebastien Pouliot
4ec15d9627
Switch to File.ReadAllBytes since we do not have to support pre-2.0 code
2013-12-18 14:21:23 -05:00
Sebastien Pouliot
2c58476bbb
Replace custom Load with File.ReadAllBytes
2013-12-18 14:21:22 -05:00
Marek Safar
12dc6607ee
Merge pull request #841 from knocte/master
...
[System] Change S.N.S.NetworkStream's param name on ctor
2013-12-18 01:00:31 -08:00
Andrés G. Aragoneses
bd964bab4b
[System] Change S.N.S.NetworkStream's param name on ctor
...
Changed to the name that is used in MS.NET:
http://msdn.microsoft.com/en-us/library/te7e60bx%28v=vs.110%29.aspx
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=16832
2013-12-17 23:09:22 +01:00
Horst Kakuschke
88af4836ad
Cleaned up the using statements in DateTime tests
2013-12-17 15:42:25 +01:00
Horst Kakuschke
280fe42c65
Additional tests for Xamarin Bug 16742 + style enhancements
2013-12-17 13:53:25 +01:00
Alex Rønne Petersen
bed99adf75
Merge pull request #839 from glinos/master
...
Implemented System.Threading.Monitor.IsEntered
2013-12-16 22:04:01 -08:00
Harry Glinos
245e3c11fa
Implemented System.Threading.Monitor.IsEntered
2013-12-16 23:23:02 -06:00
Rodrigo Kumpera
5066972814
[System] When starting a process with UseShellExecute=true, don't return a process. Fixes #16119
2013-12-16 17:13:06 -05:00
Rodrigo Kumpera
ee07f97545
[io-layer] On OSX don't pass -W to open as we don't care for it waiting.
2013-12-16 16:55:16 -05:00
Rodrigo Kumpera
6c06d10995
[runtime] Don't pass SEE_MASK_NOCLOSEPROCESS to ShellExecuteEx as we don't care for the launched process. Part 1/3 of Bug #16119 .
...
The System.Diagnostics.Process API always return a null process when starting with UseShellExecute=true.
This means we should not track the launched process and not gather information regarding it.
2013-12-16 16:50:40 -05:00
Rodrigo Kumpera
a17ce06e42
[runtime] A thread without a domain set cannot be running managed code. Fixes #16794 .
2013-12-16 14:14:42 -05:00
Atsushi Eno
d4afca2276
Updated Rx to 2.2 release.
2013-12-17 03:30:39 +09:00
Martin Baulig
2c4d09109c
[runtime]: Cosmetic, fix log level on diagnostic PCL remapping messages.
2013-12-16 18:10:48 +01:00
Miguel de Icaza
8bfc95c49a
Updated documentation
2013-12-16 13:03:18 -02:00
Marek Safar
edbcca9467
[doc] Document CurrentCultureInfo
2013-12-16 13:58:43 +01:00
Zoltan Varga
3312a1af0c
[aot] Give the compilation unit entries in the DWARF debug info different names, the osx tools seem to need this ( #15202 ).
2013-12-16 01:24:53 +01:00
Zoltan Varga
32861b70dd
[aot] Add runtime wrappers for methods of generic classes and generic methods. Fixes #16747 .
2013-12-15 03:02:34 +01:00
Zoltan Varga
5b6c4ceb68
[gsharedvt] Add a wrapper to the mono_gsharedvt_constrained_call () icall, since it calls mono_runtime_invoke () which can throw exceptions. Fixes #16439 .
2013-12-14 22:15:08 +01:00
Zoltan Varga
1dcee202f4
[jit] Remove an extra newline from a mono_trace () call.
2013-12-14 08:10:32 +01:00
Zoltan Varga
07dd8f8568
[jit] Fix TLS+AOT support in the monitor enter/exit trampolines.
2013-12-14 08:08:01 +01:00
Zoltan Varga
b1693a8109
[jit] Cache gsharedvt types in get_gsharedvt_type ().
2013-12-14 07:05:22 +01:00
Zoltan Varga
9e5f1db551
[jit] Fix memory leaks in get_gsharedvt_type (). Fixes #16787 .
2013-12-14 06:52:11 +01:00
Zoltan Varga
cc46700633
Disable the bin writer on osx, it only works with xdebug, but the AOT compiler tries to use it as well.
2013-12-14 06:51:21 +01:00
Marek Safar
01b7a50189
[corlib] Don't inline await continuations when the context does not allow it. Fixes #16548
2013-12-13 17:09:24 +01:00
Rodrigo Kumpera
7ea732a51c
Merge pull request #832 from xplicit/webperf1
...
Header names should be compared binary but not linguistic.
2013-12-13 07:24:06 -08:00
Zoltan Varga
f6e4c12036
Revert "[gsharedvt] Avoid using gsharedvt trampolines for calls with a non-variable signature."
...
This reverts commit 38b6a9dffd .
Revert this as it causes failures in tests.
2013-12-12 23:58:25 +01:00
Zoltan Varga
d04f68bf2b
Merge pull request #837 from madewokherd/update-def
...
Update msvc .def files
2013-12-12 14:35:24 -08:00
Rodrigo Kumpera
2c0ed72458
[jit]Replace usage of mini_type_get_underlying_type with first arg null with new function mini_replace_type.
2013-12-12 17:04:17 -05:00
Rodrigo Kumpera
a7029a72ba
[jit] Properly wire the MGSC in the amd64 backend.
2013-12-12 17:04:17 -05:00
Zoltan Varga
d24e0ade72
Merge pull request #806 from AxlPr/master
...
Fixed g_win32_getlocale
2013-12-12 13:51:14 -08:00
Vincent Povirk
4162ac8716
Update msvc .def files.
...
This commit licensed as MIT/X11.
2013-12-12 15:50:38 -06:00
Vincent Povirk
a4821b47a6
Exclude some functions that aren't on win32.
...
This commit licensed as MIT/X11.
2013-12-12 15:50:29 -06:00
Zoltan Varga
b09b63db8b
Merge pull request #836 from madewokherd/buildfixes
...
various build fixes
2013-12-12 13:49:54 -08:00
Vincent Povirk
3d590a378a
Update create-windef.pl to account for sgen/boehm compiles.
...
This commit licensed as MIT/X11.
2013-12-12 15:23:24 -06:00
Miguel de Icaza
758246c2aa
Update 2012 changes to sgen license
2013-12-12 12:31:57 -05:00
Marek Safar
e586b796b1
[corlib] Mark ConcurrentDictionary serializable. Fixes #16730
2013-12-12 11:32:36 +01:00
Marek Safar
74e946bd85
Merge pull request #834 from OttoG/master
...
Stub implementation of EndGetRequestStream overload in HttpWebRequest.cs
2013-12-11 23:44:27 -08:00
Vincent Povirk
71c0296e69
Add HAVE_DECL_INTERLOCKED* symbols to winconfig.h.
...
This commit licensed as MIT/X11.
2013-12-11 17:23:26 -06:00
Vincent Povirk
e6db4097a8
Update file listinigs in msvc projects.
2013-12-11 17:23:01 -06:00
Vincent Povirk
acb851f494
Include config.h in mono-tls.c.
...
This commit licensed as MIT/X11.
2013-12-11 17:22:23 -06:00
Vincent Povirk
bceebec90c
Check for InterlockedDecrement64 in configure.
...
We already have code looking for the corresponding symbol.
This commit licensed as MIT/X11.
2013-12-11 17:21:26 -06:00
Rodrigo Kumpera
09e65ba543
[bcl] When finalizing a Process object, don't touch the streams as they are finalized on their own. Fixes #10883 .
2013-12-11 17:15:12 -05:00
OttoG
e4a09c8613
Changed compiler directive according to documentation
...
EndGetRequestStream with TransportContext parameter was introduced in .NET 3.5. Also added "using" statement for System.Net (namespace for TransportContext).
2013-12-11 22:03:18 +01:00
Horst Kakuschke
2ff1bf33aa
Fixes Xamarin Bug 16742: XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode) throws index out of bounds exception
...
Fix for bug + added tests for method
XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode)
2013-12-11 20:14:17 +01:00
Marek Safar
cd7f8a4ae8
[system] Make TransportContext 3.5 api
2013-12-11 20:03:18 +01:00
Marek Safar
f7f54fa01a
[mcs] Clone labeled statements cache in probing mode. Fixes #16376
2013-12-11 20:03:17 +01:00
Zoltan Varga
42f7b0bdd7
Make a test work in the presence of llvm optimizations.
2013-12-11 19:20:14 +01:00
Zoltan Varga
1d654c8828
[jit] Fix a problem in the liveness pass, where the variable which was only used in the first instruction of the first bblock was incorrectly marked as dead.
2013-12-11 19:19:53 +01:00
Rodrigo Kumpera
7888d9f224
[jit]Reenable int/long/double -> float rounding tests.
2013-12-11 11:15:25 -05:00
Rodrigo Kumpera
cbf44a1e55
[jit]Emit explicit float rounding on amd64. Fixes #15987
2013-12-11 11:15:25 -05:00
Rodrigo Kumpera
88e7ef4729
[arch]Add cvtsi2ss to amd64 codegen.
2013-12-11 11:15:24 -05:00
OttoG
a9079357c6
Stub implementation of EndGetRequestStream overload in HttpWebRequest.cs
...
I am not sure if a "do-nothing" implementation like this is acceptable in the Mono code base, but it does solve the problem described in https://bugzilla.xamarin.com/show_bug.cgi?id=12875 (successfully executing simple requests using the Google API .NET client library).
2013-12-11 12:35:57 +01:00
Sebastien Pouliot
e4dcfc71ff
[tests] Fix some corlib unit tests to run successfully on iOS
2013-12-10 21:48:09 -05:00
Martin Baulig
d0d5f5a0d8
[corlib]: Add stubs for the remaining `System.Runtime.InteropServices.WindowsRuntime' APIs.
2013-12-11 02:13:18 +01:00
Martin Baulig
1908e1dce6
[PCL]: Add new 'System.Runtime.InteropServices.WindowsRuntime' Facade Assembly.
...
FIXME: This is only a stub, the only type currently present is
`System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken',
which is only a stub.
2013-12-11 00:59:19 +01:00
Martin Baulig
7d238658ed
[corlib]: Add 'System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken' stub.
2013-12-11 00:52:32 +01:00
Martin Baulig
37af8b7fe7
[PCL]: Add "System.Dynamic.Runtime.dll" Facade Assembly to MonoTouch.
...
Added the type-forwarder for `ConditionalWeakTable<T,V>', put all the
others inside a `!FULL_AOT_RUNTIME' conditional, then enabled this in
the MonoTouch build.
2013-12-11 00:44:37 +01:00
Rodrigo Kumpera
6b2137e66e
[jit] Use mini_type_get_underlying in a few missing places in the jit.
2013-12-10 15:20:21 -05:00
Rodrigo Kumpera
73591211e3
[jit] Use mini_type_get_underlying in a few missing places in the jit.
2013-12-10 15:20:21 -05:00
Rodrigo Kumpera
c3bcbb87c8
[jit] Use mini_type_get_underlying type in a few missing places in the x86 port.
2013-12-10 15:20:20 -05:00
Rodrigo Kumpera
dbce960c82
[jit] Use mini_type_get_underlying type in a few missing places int the amd64 port.
2013-12-10 15:20:20 -05:00
Zoltan Varga
1786712331
[jit] Disable the optimized lmf push/pop code even if the arch specific code enables if it is not supported.
2013-12-10 18:33:53 +01:00
Mark Probst
85ef4bad2a
[sgen] Explain a FIXME.
2013-12-10 18:19:02 +01:00
Mark Probst
08e9f6ec2e
[sgen] Our bzero()/memmove() must store “volatile”, lest LLVM screw us.
2013-12-10 18:18:35 +01:00
Mark Probst
2effcc1b53
[sgen] Reverse the free-list after sweeping to be in address-order.
2013-12-10 15:13:41 +01:00
Mark Probst
de75a12c63
[sgen] Only enqueue LOS objects if they contain references.
2013-12-10 15:13:41 +01:00
Marek Safar
39fa8bb4c2
[mcs] Update populated member cache of dynamic containers manually for additional entries. Fixes #16659
2013-12-10 11:12:23 +01:00
xplicit
583e8e07f6
Header names should be compared binary but not linguistic.
...
Moreover according to RFC2616 header names are subset of ASCII chars [0-127],
so culture-aware comparison is useless and eats too many processor time
(according to my benchmarks get an item from Hashtable with OrdinalIgnoreCase
comparers more than 20x times faster compared to Hashtable with InvariantCultureIgnoreCase
comparer)
2013-12-10 12:02:09 +07:00
Zoltan Varga
c1908d7e47
[jit] Implement the delegate ctor optimization in AOT mode too.
2013-12-10 03:36:01 +01:00
Alex Rønne Petersen
a07c846bc9
Merge pull request #831 from madewokherd/win64-warnings
...
fix various warnings in win64 exception code
2013-12-09 15:02:27 -08:00
Vincent Povirk
493d786a89
Fix MonoW32ExceptionHandler type on win64.
...
This commit licensed as MIT/X11.
2013-12-09 15:56:08 -06:00
Vincent Povirk
524362a752
Move a variable declaration to the start of a block.
...
This commit licensed as MIT/X11.
2013-12-09 15:56:02 -06:00
Vincent Povirk
9ee5928c57
Mark some functions as static.
...
This commit licensed as MIT/X11.
2013-12-09 15:55:57 -06:00
Vincent Povirk
c79a76411a
Adjust type of mono_win_vectored_exception_handle to match its use.
...
This commit licensed as MIT/X11.
2013-12-09 15:55:39 -06:00
Zoltan Varga
e652c6d7f2
[corlib] Disable a test which causes a wapi_unref_full () warning.
2013-12-09 19:56:47 +01:00
Marek Safar
c2385c5ebf
[corlib] Update current LogicalCallContext from empty context
2013-12-09 19:12:34 +01:00
Marek Safar
90ff06c7c3
[mcs] Show correct #line location for files in other than current location referenced as relative files. Fixes #16576
2013-12-09 14:37:47 +01:00
Marek Safar
6ab86f50fd
[system] Redirect of put requests was converted to get. Fixes #16670
2013-12-09 14:18:15 +01:00
Atsushi Eno
3217cdc7f9
Merge pull request #830 from akoeplinger/fix-net40-build
...
Fix NET_4_0 tests build by correcting accessibility of properties/classes...
2013-12-08 19:32:21 -08:00
Marek Safar
e94da6da6c
[corlib] Ignore awaited default synchronization context.
2013-12-08 21:24:32 +01:00
Alexander Köplinger
f9c02685a0
Fix NET_4_0 tests build by correcting accessibility of properties/classes
...
that should be public according to MSDN, but were internal:
http://msdn.microsoft.com/en-us/library/microsoft.build.evaluation.project.targets(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/microsoft.build.execution.projectinstance.targets(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/microsoft.build.execution.projecttargetinstance(v=vs.100).aspx
2013-12-08 19:55:53 +01:00
Marek Safar
b05fdd2562
[corlib] Not continue on awaited source context should also ignore user task schedulers
2013-12-08 10:42:13 +01:00
Marek Safar
de61f61d53
[corlib] Keep original cancellation exception from awaited task
2013-12-08 10:42:12 +01:00
Marek Safar
6a84e4ed21
Add new test
2013-12-08 10:42:12 +01:00
Marek Safar
6cce4a3937
Merge pull request #817 from desdesdes/master
...
[Bug 14664] LogicalSet/GetData implementation in CallContext
2013-12-08 01:39:27 -08:00
Marek Safar
127ff387ba
[corlib] Block configurable task awaiter until task completes.
2013-12-07 19:51:36 +01:00
Marek Safar
85aaf9b074
[corlib] Better handling of awaiter continuation on finished task
2013-12-07 19:51:36 +01:00
Marek Safar
395cf8f623
[corlib] Add check for launching cancelled task to all overloads
2013-12-07 19:51:35 +01:00
Rodrigo Kumpera
971eba81ac
[sgen]Fix a deadlock when the GC try to free a JI during world restart. Fixes #15759
...
This is deadlock prone as the GC lock is a leaf lock while the domain
lock required to free a JI is not.
There are plenty of places where we alloc memory while holding the
domain lock, so we cannot do it the other way.
2013-12-06 15:23:02 -05:00
Zoltan Varga
26b81f1358
[bcl] Invoke assembly resolve hooks even if the assembly name has a parse error. Fixes #16487 .
2013-12-06 19:40:05 +01:00
Marek Safar
6cc37a6607
[corlib] Optimize one string Join<T> overload. Fixes #16647
2013-12-06 19:32:46 +01:00
Bassam Tabbara
90f9595967
Convert blocking operations in HttpWebRequest and SslClientStream to non-blocking operations. This fixes #15451 .
...
More details:
* HttpWebRequest now writes the HTTP request headers asynchronously. This will avoid blocking a thread pool thread until the headers are written.
* SslClientStream was doing the TLS negotiations in a blocking manner. Converted the negotiation method to an async state machine where all operations are done asynchronously.
* The test case identified in #15451 now completes quickly with less than 15 threads created, vs. 100s of threads used before this fix.
Future work if needed:
* I did not convert SslServerStream but the same pattern could be used here.
* SendAlert is still blocking. I thought it was not worth converting it to non-blocking.
2013-12-06 09:32:22 -08:00
Francis Fisher
f698a81dbf
gdi32.dll redirection apply to non-windows only
2013-12-06 16:14:15 +00:00
Francis Fisher
baadfab798
dllmap for BitBlt in gdi32.dll
2013-12-06 16:13:46 +00:00
Rodrigo Kumpera
b535b6a553
[bcl] Handle BigInt -> long conversions that should overflow but dont. Fixes #16526
2013-12-06 11:13:29 -05:00
Rodrigo Kumpera
ac7a23e3a8
Merge pull request #828 from mateusz-holenko/master
...
Fix build.
2013-12-06 07:38:52 -08:00
Marek Safar
13899a5658
[System.Net.Http] Don't throw on invalid input in TryGetValues. Fixes #16634
2013-12-06 16:35:34 +01:00
Marek Safar
a485cff9de
[mcs] Don't stop type inference when a unique construction of the generic interface cannot be found. Fixes #16567
2013-12-06 16:35:33 +01:00
Mateusz Hołenko
b6e27528e8
Fix build.
2013-12-06 16:18:44 +01:00
Zoltan Varga
537bffffa6
[aot] Avoid emitting two debug_line sections when using the GAS .file and .loc directives.
2013-12-06 15:20:22 +01:00
Marek Safar
bb44c68952
[mcs] Add better type conversion to unary mutators. Fixes #16578
2013-12-06 14:33:31 +01:00
Marek Safar
c8d91bc505
Bump mscorlib version for monolite to work correctly
2013-12-06 09:50:21 +01:00
Marek Safar
164119d8c5
Partially revert 3019283237
2013-12-06 09:40:26 +01:00
Marek Safar
c9311087d9
Improve test failure check
2013-12-06 09:39:30 +01:00
Zoltan Varga
3019283237
Fix the arm build with xcode 5.1.
2013-12-06 03:50:45 +01:00
Atsushi Eno
f9b37c6939
Fix build.
2013-12-06 10:11:23 +09:00
Sebastien Pouliot
2ef208b1a6
[Test] Fix build of System.Core unit tests
2013-12-05 17:52:53 -05:00
Jonathan Pryor
a699e7444e
[Mono.Options] Improve error message for badly bundled args.
...
mono(1) supports a "joined" verbose flag, `mono -v-v-v-v`, which
Mono.Options doesn't support. Attempting to use it, however, resulted
in a "weird" error message:
$ csharp -r:Mono.Options.dll
csharp> using Mono.Options;
csharp> var p = new OptionSet { { "v", v => {} } };
csharp> p.Parse (new[]{"-v-v-v"});
Mono.Options.OptionException: Cannot bundle unregistered option '--'.
...
This looks very weird to users because they never used a "--" option,
and if they had then `--` would have disabled further option
processing (as documented and implemented in OptionSet.Parse()).
Confusion all around.
Improve the error message so that it instead generates:
Mono.Options.OptionException: Cannot use unregistered option '-' in bundle '-v-v-v'.
That way the user gets the full context of where this "unregistered
option" came from.
2013-12-05 15:43:35 -05:00
Miguel de Icaza
37e3c51b13
Comment style; Wrap at 100
2013-12-05 14:43:53 -05:00
Miguel de Icaza
01c5c73599
Comment style
2013-12-05 14:42:48 -05:00
Sebastien Pouliot
c1193a68d2
[Test] Ignore a test case if executed on the main thread
2013-12-05 14:35:34 -05:00
Rodrigo Kumpera
f60bd66244
[lock-tracer]Update the decoder to handle the current runtime and OSX.
2013-12-05 14:11:58 -05:00
Rodrigo Kumpera
3ffae9f5df
[lock-tracer]Workaround ASLR on OSX by recording offsets to the main binary base address.
2013-12-05 14:11:58 -05:00
Rodrigo Kumpera
8998e08d7d
[runtime]Fix deregister_reflection_info_roots_from_list to avoid full type resolution during unload.
2013-12-05 14:11:58 -05:00
Rodrigo Kumpera
e90df12b26
[runtime]Add the marshal lock to the lock tracer.
2013-12-05 14:11:58 -05:00
Rodrigo Kumpera
f274be9b81
[runtime]Replace the loader lock with the marshal lock in mono_marshal_load_type_info.
...
In order to make this possible, we now construct the marshal information without holding
any locks and then double-check on publication.
2013-12-05 14:11:57 -05:00
Rodrigo Kumpera
7b2e5477d0
[runtime] Don't hold the loader lock when calling mono_mb_create_method.
...
mono_mb_create_method no longer requires the loader lock. All use sites
replace the loader lock with simpler locks.
Those new locks cannot be held while we're building the methods themselves
as that piece of code does type resolution - thus taking the loader lock.
2013-12-05 14:11:57 -05:00
Rodrigo Kumpera
b15194d70b
[runtime] The assembly bindings are now protected by a separate lock instead of the loader lock.
2013-12-05 14:11:57 -05:00
Rodrigo Kumpera
0e4ad400c1
[runtime] Change deregister_reflection_info_roots to not take the loader lock.
...
We should not need the loader lock here as this only deals with dynamic images
that belong to the current domain that is been shutdown.
To ensure this is the case, added an assert to mono_image_append_class_to_reflection_info_set.
2013-12-05 14:11:57 -05:00
Rodrigo Kumpera
df30abe4e6
[runtime] Cleanup usage of reflection_info_unregister_classes. Move it under the image lock and use image memory.
2013-12-05 14:11:56 -05:00
Rodrigo Kumpera
ffee0d25c8
[runtime] mono_metadata_clean_for_image no longer needs to return a free list of classes.
2013-12-05 14:11:56 -05:00
Rodrigo Kumpera
d3d6158ecb
[runtime] Protect mono_create_icall_signature with the corlib image lock.
2013-12-05 14:11:55 -05:00
Rodrigo Kumpera
6f916be5c8
[runtime] Protect MonoImage::generic_def_objects with the image lock and not the loader lock.
2013-12-05 14:11:55 -05:00
Rodrigo Kumpera
720c9f42c7
[runtime] Introduce the icall lock to be used when looking up icall related information.
2013-12-05 14:11:55 -05:00
Rodrigo Kumpera
d9d9ea796a
[runtime] Ensure mono_class_setup_supertypes is atomic and drop the loader lock around it.
2013-12-05 14:11:54 -05:00
Marek Safar
ad13ff15b3
Merge pull request #827 from Blewzman/master
...
Support IReadOnlyList in System.Linq.Enumerable.ElementAt and ElementAtOrDefault
2013-12-05 11:09:11 -08:00
Marek Safar
8f089b2bdd
[mcs] Convert dotted paths to full path
2013-12-05 20:04:38 +01:00
Blewzman
f17a1808cc
Small coding style fixes.
2013-12-05 19:49:04 +01:00
Blewzman
3eae2c2407
Support IReadOnlyList in System.Linq.Enumerable.ElementAt and ElementAtOrDefault - with additional unit tests.
2013-12-05 19:35:35 +01:00
Marek Safar
6886a6e916
[sle] Implement DynamicExpressionVisitor.
2013-12-05 13:05:23 +01:00
Marek Safar
7efbb345ce
Bump ikvm-reflection
2013-12-05 11:59:52 +01:00
Atsushi Eno
62712bc64b
In ConsoleLogger, add workaround for bogus use of EventSource senders in MS.Build.Engine.
...
See comments for details.
2013-12-05 18:08:29 +09:00
Marek Safar
3b664f331f
[corlib] Implement task awaiters running on custom task scheduler. Fixes #16587
2013-12-05 09:51:56 +01:00
Alex Rønne Petersen
e42840fdd9
Fix monograph to build under various --disable-boehm/--disable-libraries configurations.
2013-12-05 00:28:18 +01:00
Zoltan Varga
e62565f1e4
Fix the pp64 build.
2013-12-05 00:13:05 +01:00
Zoltan Varga
6be4932222
Fix the windows build.
2013-12-04 23:07:40 +01:00
Alex Rønne Petersen
e20c2ecc68
Also use __builtin_extract_return_addr in these files.
2013-12-04 20:54:50 +01:00
Alex Rønne Petersen
6a4a396ba0
Apply __builtin_extract_return_addr to the result of __builtin_return_address.
2013-12-04 20:48:44 +01:00
Alex Rønne Petersen
41400cb378
Fix some warnings in mini-arm.c.
2013-12-04 20:42:16 +01:00
Martin Baulig
c64997288f
[xbuild]: Fix the tests.
...
'TestMessageLogger.Count' should not be used in tests to check for the
number of logged messages because it would also includes diagnostic messages.
Extra diagnostic messages should not be considered an error condition; in
fact, we have too few diagnostic messages, not too many.
Use 'TestMessageLogger.NormalMessageCount' and 'TestMessageLogger.WarningMessageCount'
instead.
2013-12-04 20:38:10 +01:00
Alex Rønne Petersen
4917c94318
Fix some pointer/integer size issues in unwind.c on 32-bit systems.
2013-12-04 17:31:47 +01:00
Alex Rønne Petersen
41b80b909b
Add a dummy assignment to shut GCC up.
2013-12-04 17:26:08 +01:00
Alex Rønne Petersen
e2367fc957
Fix some warnings caused by always_inline functions not being marked inline.
2013-12-04 16:58:14 +01:00
Marek Safar
97bb0ff149
[corlib] Better conversion betwen system locale and CultureInfo. Fixes #15875
2013-12-04 16:47:08 +01:00
Alex Rønne Petersen
99fda9e5ed
Fix some warnings in mini-amd64.c.
2013-12-04 15:27:54 +01:00
Alex Rønne Petersen
04ce9f30b0
Fix a couple of warnings in mini-exceptions.c.
2013-12-04 15:19:31 +01:00
Alex Rønne Petersen
9794a36a67
Fix more PPC warnings.
2013-12-04 15:19:18 +01:00
Alex Rønne Petersen
81d70cc5ce
Fix a warning on PPC.
2013-12-04 15:08:46 +01:00
Zoltan Varga
d2485bf370
Merge pull request #824 from hanswolff/patch-1
...
Fixed missing pointer conversion tests in sizes.c
2013-12-04 04:18:44 -08:00
Alex Rønne Petersen
5ed3db3596
Unbreak libgc.
2013-12-04 12:56:58 +01:00
Marek Safar
ef3f3753b8
[corlib] CreateSpecificCulture without exception retry
2013-12-04 12:18:10 +01:00
Alex Rønne Petersen
69997b9b28
Remove some more mdb bits.
2013-12-04 11:37:52 +01:00
Marek Safar
0a9cbdd968
[corlib] Update CurrentRegion to work with DefaultThreadCurrentCulture
2013-12-04 10:46:51 +01:00
Mark Probst
6f4e1151e0
[sgen] Link unit test programs with all libs.
...
Should fix the build for monodroid.
2013-12-04 10:32:47 +01:00
Hans Wolff
a2f850e178
Fixed missing pointer conversion tests in sizes.c
...
Unsigned pointer conversion was not tested at all (looks like a copy & paste mistake)
2013-12-04 10:09:11 +01:00
Martin Baulig
0d0f4ae035
[xbuild]: Check a <Target>'s "Returns" first, then fall-back to "Outputs".
...
This fixes a problem with the "Microsoft.Bcl.Build" NuGet package, which
overrides the "GetTargetPath" target in a custom .targets file and uses
"Returns" instead of "Outputs".
2013-12-04 01:58:06 +01:00
Martin Baulig
305ce0e382
[xbuild]: Provide diagnostic logging of all executed targets.
2013-12-03 23:35:28 +01:00
Martin Baulig
1cf4b6f02e
[xbuild]: Allow expressions inside a dynamic <ItemGroup>'s metadata.
...
Fixes #14661 .
2013-12-03 21:05:07 +01:00
Zoltan Varga
6d7dd9e9fc
Fix the build.
2013-12-03 20:06:27 +01:00
Alex Rønne Petersen
8b74167481
[sdb] Support a setpgid=y/n option to --debugger-agent.
2013-12-03 19:41:10 +01:00
Mark Probst
c9ff997797
[sgen] Never invoke libc’s memmove() or bzero().
...
Those two functions are not guaranteed to do word-atomic copying or
zeroing under any circumstances. memmove() on OSX, for instance,
has an SSE optimized variant that, if source and destination are 8-byte,
but not 16-byte aligned, will copy the first 8 bytes byte-wise, which can
crash SGen.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=16449 .
2013-12-03 19:27:41 +01:00
Marek Safar
afbd51e876
[mcs] Report nice error instead of crash for cyclic type forwarders. Fixes #16385
2013-12-03 19:21:39 +01:00
Marek Safar
ffba0b7378
[mcs] Report all failure errors in lambda conversions. Fixes #16513
2013-12-03 19:21:39 +01:00
Marek Safar
83f166c110
[corlib] Replace manual array resize with Resize call
2013-12-03 19:21:37 +01:00
Atsushi Eno
b90937ef14
Fix android-specific build (use of unassigned variable).
2013-12-04 01:37:38 +09:00
Alex Rønne Petersen
73e4f1d4a6
Sanitize the kqueue check in configure.in.
2013-12-03 13:37:54 +01:00
Mark Probst
cd0631b0ef
[sgen] Fix build on Linux.
2013-12-03 02:24:04 -08:00
Alex Rønne Petersen
b9bcafb382
Merge branch 'armhf' of github.com:alexrp/mono
2013-12-03 10:04:58 +01:00
Atsushi Eno
f188c158d4
Remove private sln/csproj files.
2013-12-03 16:55:47 +09:00
Atsushi Eno
b3d6490a35
update .csproj.
2013-12-03 16:53:30 +09:00
Atsushi Eno
06b0f3d28a
Add missing exception types.
2013-12-03 16:53:30 +09:00
Atsushi Eno
4914ab0b6a
ProjectCollection.DefaultToolsVersion is settable.
2013-12-03 16:53:29 +09:00
Atsushi Eno
cac790f7ca
Some parser error message got source string for Condition evaluation.
2013-12-03 16:53:28 +09:00
Atsushi Eno
cafdbf84dc
Target items related fixes - give diagnostic outputs for initial items. Evaluate item condition.
2013-12-03 16:53:28 +09:00
Atsushi Eno
c89d31260f
Fix some default properties: OutputType has default to Exe. AssemblyName defaults to the project file name, not RootNamespace.
2013-12-03 16:53:27 +09:00
Atsushi Eno
37dd28603a
Enable parallel build test, with successful command, now that ConsoleLogger is now parallel ready.
2013-12-03 16:53:27 +09:00
Atsushi Eno
79aead48aa
ConsoleLogger is now parallel build ready.
2013-12-03 16:53:26 +09:00
Atsushi Eno
f044685b16
Fixed Task output item string result creator and fixed test expectation.
...
Item output task parameters don't show up on TargetResult Items. Instead
those items can be retrieved via ProjectInstance after builds.
2013-12-03 16:53:26 +09:00
Atsushi Eno
33ddd9e511
Empty items could still slipped in when converting string to array.
...
ResolveAssemblyReferences was hit with empty SearchPaths because of this.
2013-12-03 16:53:25 +09:00
Atsushi Eno
717c7f504c
Make sure to raise matching TaskFinished event.
2013-12-03 16:53:25 +09:00
Atsushi Eno
ed990229fa
While converting string to array, trim each element before converting.
...
ResolveAssemblyReferences should work now.
2013-12-03 16:53:24 +09:00
Atsushi Eno
a86c3161a4
implement "skip target due to previous success" feature.
2013-12-03 16:53:24 +09:00
Atsushi Eno
8b991126cd
Improve item evaluation whitespace handling.
2013-12-03 16:53:23 +09:00
Atsushi Eno
f85c526832
disable parallel build test because it is ConsoleLogger which does not work fine.
2013-12-03 16:53:23 +09:00
Atsushi Eno
f428a45eda
ProjectTaskOutputPropertyInstance was not appropriately created.
2013-12-03 16:53:22 +09:00
Atsushi Eno
60b27cd208
Make sure to use BuildNodeManager in any build run, and corrected error handling to somewhat better state.
...
Also, now EndBuild() won't finish until all callbacks are done.
2013-12-03 16:53:22 +09:00
Atsushi Eno
58ce380ecb
LoadProject() should add the loaded project to the collection.
2013-12-03 16:53:21 +09:00
Atsushi Eno
9cdcf9f7ce
Any errors inside BuildEngine build could be logged by loggers.
...
Some exceptions _outside_ that can be still on stderr, but they are
much less now.
2013-12-03 16:53:21 +09:00
Atsushi Eno
3ae629a509
Give Project FullPath a unique name for each test so that error outputs could be attributed.
2013-12-03 16:53:20 +09:00
Atsushi Eno
d744f4e374
Make sure to fire TargetFinished event in any result (namely, internal error).
...
That possible mismatch caused invalid Stack operation in ConsoleLogger.
2013-12-03 16:52:58 +09:00
Atsushi Eno
19c8247277
couple of minor refactoring and warnings cleanup.
...
BuildSubmission.IsCompleted is valid now.
Renamed some argument in BuildEngine4.
Removed ProjectTargetInstance field by moving them to arguments in BuildEngine4.
2013-12-03 16:52:57 +09:00
Atsushi Eno
87da3f6382
do not try to evaluate and set non-required and empty Task parameter for ITask instance.
2013-12-03 16:52:57 +09:00
Atsushi Eno
cbe898bb70
fix test file name.
2013-12-03 16:52:56 +09:00
Atsushi Eno
6f58bb39c6
Handle target Inputs and Outputs so that extra targets can be skipped. Add some value convert (for task property) tests.
2013-12-03 16:52:55 +09:00
Atsushi Eno
2abc6438a0
For Condition, "yes", "no", "on" and "off" are also treated as valid boolean...
2013-12-03 16:52:54 +09:00
Atsushi Eno
1ef9aa3355
For ItemType-less metadata expression, apply all items in the project.
2013-12-03 16:52:53 +09:00
Atsushi Eno
a27353ead3
Evaluate Target Condition too.
2013-12-03 16:52:53 +09:00
Atsushi Eno
46a949f958
Make use of XBUILD_FRAMEWORK_FOLDERS_PATH in GetReferenceAssemblyPaths task and make it testable importing common targets.
2013-12-03 16:52:52 +09:00
Atsushi Eno
733566f8e8
implement MetadataAccessExpression evaluate methods.
2013-12-03 16:52:51 +09:00
Atsushi Eno
14db3ee236
ProjectInstance never had valid ToolsVersion because ProjectRootElement holds "", not null(!) for default value.
2013-12-03 16:52:50 +09:00
Atsushi Eno
96e448b624
Fix ProjectInstance.ToolsVersion, never returned valid value.
2013-12-03 16:52:49 +09:00
Atsushi Eno
6761e5d3c8
Check Condition on task parameter before trying to apply it.
2013-12-03 16:52:49 +09:00
Atsushi Eno
e72e4e9863
Well-Known metadata support is now in ProjectItemInstance too, sharing code with ProjectItem.
2013-12-03 16:52:48 +09:00
Atsushi Eno
dd418612a7
Split lengthy DoBuildTarget() function into understandable units.
2013-12-03 16:52:47 +09:00
Atsushi Eno
ebe1e4799d
Project.GetItems() and ProjectInstance.GetItems() are now shared code.
...
They will involve more complication and I don't want to have duplicates.
2013-12-03 16:52:46 +09:00
Atsushi Eno
59a117b2e9
add some workaround for "PLATFORM" property that should not be filled by environment.
...
Add some tests to evaluate IntermediateOutputPath.
2013-12-03 16:52:45 +09:00
Atsushi Eno
16f67cab87
implement UnloadProject().
2013-12-03 16:52:45 +09:00
Atsushi Eno
4a46f0a37a
STRING_LITERAL could contain expandable expressions, so evaluate them too.
...
We cannot simply "expand strings first then evaluate condition as boolean"
because there are things like "$(A)=='true'" which is expanded as "=='true'".
2013-12-03 16:52:44 +09:00
Atsushi Eno
5b1d772403
remove redundant "throw NIE".
2013-12-03 16:52:44 +09:00
Atsushi Eno
eaedaf632a
implement ExpressionParserManual.EvaluateMetadataExpression().
2013-12-03 16:52:43 +09:00
Atsushi Eno
14205a135c
Forgot to rename namespace in .jay.
2013-12-03 16:52:42 +09:00
Atsushi Eno
87bf489e87
For expression stuff, change namespace to MS.Build.Internal.Expressionns.
...
Too annoying to track build engine traces.
2013-12-03 16:52:42 +09:00
Atsushi Eno
30bc1486dd
Add more diagnostic logging in BuildEngine4.
2013-12-03 16:52:41 +09:00
Atsushi Eno
992fb0aeda
update .csproj.
2013-12-03 16:52:41 +09:00
Atsushi Eno
a93c8bf8e6
Add and use BuildAbortedException.
2013-12-03 16:52:40 +09:00
Atsushi Eno
bbc7218256
implement ProjectInstance.GetItems() which is now actually used.
2013-12-03 16:52:40 +09:00
Atsushi Eno
25dd0d206a
Filter out empty strings in split item array.
2013-12-03 16:52:39 +09:00
Atsushi Eno
18b80adf2b
Task parameters has to be expanded before being applied to ITask instance.
2013-12-03 16:52:38 +09:00
Atsushi Eno
e1b6ef6039
several BuildEngine4 fixes.
...
- DependsOnTargets has to be Trim()med before search.
- Metadata implementation is required in the TaskItem.
2013-12-03 16:52:38 +09:00
Atsushi Eno
cd94d959fe
Fix namespace.
2013-12-03 16:52:37 +09:00
Atsushi Eno
8958a54d81
use ConcurrentQueue in BuildNodeManager.
2013-12-03 16:52:37 +09:00
Atsushi Eno
6f65e552de
fix class visibility.
2013-12-03 16:52:36 +09:00
Atsushi Eno
4cbaff75a5
dump possible build node exceptions that would have been silently ignored.
2013-12-03 16:52:36 +09:00
Atsushi Eno
cf6fa9eb19
Evaluate and include property and item on <Target> element before running tasks.
...
BuildEngine4.BuildTarget() became too lengthy, so split it.
2013-12-03 16:52:35 +09:00
Atsushi Eno
777ec86a1a
Fix ContinueOnError evaluation (was almost always true). Add more logging.
2013-12-03 16:52:35 +09:00
Atsushi Eno
5fec8ad019
handle Target/@DependsOnTargets. To make it possible, some code reorganization.
2013-12-03 16:52:34 +09:00
Atsushi Eno
6c5640122a
make locations internal in NET_4_0.
2013-12-03 16:52:34 +09:00
Atsushi Eno
3f3748e9ca
No need to fill UsingTaskElement content here. Load() takes care of it.
2013-12-03 16:52:33 +09:00
Atsushi Eno
8d2ad3c460
Fix bogus expression tokenizer that failed at parenthesized expressions with And/Or.
2013-12-03 16:52:33 +09:00
Atsushi Eno
8d28a5e143
MaxNodeCount is documented as 1 by default. (not in use so far anyways...)
2013-12-03 16:51:55 +09:00
Atsushi Eno
7bd9052eb7
Show better error location in InvalidProjectFileException.
2013-12-03 16:51:54 +09:00
Atsushi Eno
7f41201372
slightly changed Csc task test project structure so that it could at least launch compiler.
2013-12-03 16:51:53 +09:00
Atsushi Eno
c16c3dfb2e
Fix load error with related to new attributes since 4.0.
2013-12-03 16:51:52 +09:00
Atsushi Eno
ed859d6303
Fix possible NRE on null Location.
2013-12-03 16:51:52 +09:00
Atsushi Eno
96dad50549
implement ProjectIntance.AddItem().
2013-12-03 16:51:51 +09:00
Atsushi Eno
aa3e42ef74
Use ContinueOnError property on BuildEngine itself.
2013-12-03 16:51:51 +09:00
Atsushi Eno
a806c1e8ba
Set Task properties before running it, and get output task parameters when done.
2013-12-03 16:51:50 +09:00
Atsushi Eno
1fe034409b
Several fixes to get ProjectUsingTaskElement could be loaded and task database gets correct match.
...
Now tasks could be loaded, ready to execute.
2013-12-03 16:51:50 +09:00
Atsushi Eno
4df2a71e86
workaround threading by Task isse. Also fix regression on "no target found" case (should fail).
...
(Task causes NotImplementedException under the hood).
2013-12-03 16:51:49 +09:00
Atsushi Eno
3412c85d2a
update .csproj.
2013-12-03 16:51:48 +09:00
Atsushi Eno
62ab57ae8a
ongoing task database implementation.
...
This somehow causes thread freeze, I had to disable some tests.
2013-12-03 16:51:48 +09:00
Atsushi Eno
5b42283cad
ITaskFactory2 is public.
2013-12-03 16:51:47 +09:00
Atsushi Eno
c3c1b455b4
update .csproj.
2013-12-03 16:51:46 +09:00
Atsushi Eno
87eb7b68a9
add missing OutOfProcNode class (though it seems unused).
2013-12-03 16:51:46 +09:00
Atsushi Eno
86d65aadba
update .csproj.
2013-12-03 16:51:45 +09:00
Atsushi Eno
af6757b7c1
delete old file.
2013-12-03 16:51:44 +09:00
Atsushi Eno
90f95ad9b2
implement basic node management skeleton (which does not really manage nodes, just to hold node retriever).
2013-12-03 16:51:43 +09:00
Atsushi Eno
721fffe2ad
Ongoing build engine implementation and some fixes in build submission handling.
...
BuildSubmission could be posted multiple times so that multiple projects can
be built within one BuildManager. Now node manager should be implemented too...
2013-12-03 16:51:43 +09:00
Atsushi Eno
612c8bc88a
Fix API: remove non-existent property in .NET (copy-paste bad).
2013-12-03 16:51:42 +09:00
Atsushi Eno
fc029e1327
update .csproj.
2013-12-03 16:51:41 +09:00
Atsushi Eno
580fa5a9db
Add missing ITaskFactory/2 and co. Add BuildEventArgs.set_Context().
2013-12-03 16:51:40 +09:00
Atsushi Eno
687bd6fa31
update csproj.
2013-12-03 16:51:39 +09:00
Atsushi Eno
e13cfb0bb5
Add IBuildEngine implementation, required to expose some features to tasks.
2013-12-03 16:51:39 +09:00
Atsushi Eno
bb0c8641cb
add test for BuildManager.PendBuildRequest(). Looks like it's mostly for internal use...
2013-12-03 16:51:38 +09:00
Atsushi Eno
5930c3fa8d
fix NET_2_0 build: INodeLogger is only in 4.0.
2013-12-03 16:51:37 +09:00
Atsushi Eno
3f0e9ea33d
slightly reorganized external sources dirs.
2013-12-03 16:51:36 +09:00
Atsushi Eno
0c2f47f1cc
add missing copyright headers.
2013-12-03 16:51:36 +09:00
Atsushi Eno
8e71ae89fe
implement HostServices, not sure if we're going to use it though.
2013-12-03 16:51:35 +09:00
Atsushi Eno
33ab64e9b3
add missing license headers.
2013-12-03 16:51:35 +09:00
Atsushi Eno
6df1bb8344
slightly reduce NIE code path.
2013-12-03 16:51:34 +09:00
Atsushi Eno
91c57db0fd
update csproj.
2013-12-03 16:51:34 +09:00
Atsushi Eno
5795a5d1ce
Add test for BuildSubmission (which is mostly for build operation so far).
2013-12-03 16:51:33 +09:00
Atsushi Eno
9c8b90b3ce
Implement more precise DefaultTargets handling.
2013-12-03 16:51:33 +09:00
Atsushi Eno
43042abc79
Several fixes on manual expression parser with related to function args and property accesses.
2013-12-03 16:51:32 +09:00
Atsushi Eno
85c24d7ef2
fix some string evaluator tests. Some of them even fails in prop values.
2013-12-03 16:51:32 +09:00
Atsushi Eno
5524846de1
slightly improve property access error message.
2013-12-03 16:51:31 +09:00
Atsushi Eno
716dbf8d4e
Apply windows path loader fix to ProjectInstance too.
2013-12-03 16:51:31 +09:00
Atsushi Eno
b752051d18
Resolve property value by EvaluatedValue where appropriate.
2013-12-03 16:51:30 +09:00
Atsushi Eno
ee9d2692f9
Sequence of comparison expressions (A==B==C) is invalid. Avoid ANE on property evaluation.
2013-12-03 16:51:30 +09:00
Atsushi Eno
0355d025e2
Fix binary expression evaluation. They can be combined.
2013-12-03 16:50:51 +09:00
Atsushi Eno
ce97b1a68b
implement prebuilt Condition evaluation function support.
2013-12-03 16:50:50 +09:00
Atsushi Eno
ea85db2436
Fix location of windows path compatibility change.
2013-12-03 16:50:49 +09:00
Atsushi Eno
520616ae21
Fix 4.5 toolpath.
2013-12-03 16:50:48 +09:00
Atsushi Eno
a8a49c37b3
fix import path for ProjectInstance too.
2013-12-03 16:50:48 +09:00
Atsushi Eno
f2bf63cd62
update csproj.
2013-12-03 16:50:47 +09:00
Atsushi Eno
d0f9b5427d
Add missing built-in properties. Resolve properties on import paths. Resolve \ with / on import paths.
2013-12-03 16:50:46 +09:00
Atsushi Eno
7ecb09c1dd
Project needs to build just fine for empty projects.
2013-12-03 16:50:45 +09:00
Atsushi Eno
1c19fc890f
some BuildSubmission and BuildResult implementation, as well as tiny bit of build operation.
2013-12-03 16:50:44 +09:00
Atsushi Eno
8fd57e40ae
sorted out BuildManager build logic up to BuildSubmission.Execute().
2013-12-03 16:50:43 +09:00
Atsushi Eno
05c976aefe
Reuse logger types in Microsoft.Build.dll.
2013-12-03 16:50:43 +09:00
Atsushi Eno
3f9eacfecd
update csproj.
2013-12-03 16:50:42 +09:00
Atsushi Eno
b35862adb6
sorted out logger stuff. Imported many of existing loggers from MS.Build.Engine. Stubbed some.
2013-12-03 16:50:41 +09:00
Atsushi Eno
ae34234c86
update .sources too.
2013-12-03 16:50:40 +09:00
Atsushi Eno
0a140fcec1
update csproj.
2013-12-03 16:50:39 +09:00
Atsushi Eno
4e5ba453e1
add missing logging types which are required for Microsoft.Build.dll.
2013-12-03 16:50:39 +09:00
Atsushi Eno
593e1c8cc3
update csproj.
2013-12-03 16:50:38 +09:00
Atsushi Eno
609a5659a2
Add missing ProjectPropertyGroupTaskIntance and descendant, and implement more of this namespace.
2013-12-03 16:50:38 +09:00
Atsushi Eno
9faf9ca526
Added some comments on loaders in the two project object models.
2013-12-03 16:50:37 +09:00
Atsushi Eno
9c4c85f376
implemented more ProjectInstance family. Enabled some tests back.
2013-12-03 16:50:37 +09:00
Atsushi Eno
0e54cf20ac
implemented a lot of ProjectTargetInstance and its descendants. Fixed a lot of Location stuff to fix NET_4_0 build.
2013-12-03 16:50:36 +09:00
Atsushi Eno
f101e9abe2
implement basic project loader for ProjectInstance.
2013-12-03 16:50:36 +09:00
Atsushi Eno
d75b5e5e94
refactoring some internals to make code sharable between Project and ProjectInstance.
2013-12-03 16:50:35 +09:00
Atsushi Eno
27c08dce64
update .csproj.
2013-12-03 16:50:34 +09:00
Atsushi Eno
7961c3db2e
implement ProjectMetadataInstance and add some MS.Build.Execution tests.
2013-12-03 16:50:34 +09:00
Atsushi Eno
803607d04f
add another GetLoadedProject() test, this time with ProjectInstance.
2013-12-03 16:50:33 +09:00
Atsushi Eno
1c8ee6ae17
implement GetLoadedProject(), ProjectAdded and adjust relevant methods.
2013-12-03 16:50:33 +09:00
Atsushi Eno
bdda009028
Added workaround for DirectoryScanner bug that finds multiple files. Then implemented RecursiveDir metadata.
2013-12-03 16:50:32 +09:00
Atsushi Eno
c3e5e8c861
update .csproj.
2013-12-03 16:50:32 +09:00
Atsushi Eno
40ec8b64dd
make TaskItem available (as internal) in Microsft.Build.dll.
2013-12-03 16:50:31 +09:00
Atsushi Eno
7569cc8a93
implement item wildcard support, except for "**" which looks buggy at DirectoryScanner.
2013-12-03 16:50:31 +09:00
Atsushi Eno
215b84c1b8
implement IsImported.
2013-12-03 16:50:30 +09:00
Atsushi Eno
92c1b87789
implemented well-known item metadata.
2013-12-03 16:50:29 +09:00
Atsushi Eno
956395ecd2
Fix API for ProjectItemElement.Condition. Add test for item definition Condition.
2013-12-03 16:50:29 +09:00
Atsushi Eno
099e027422
GetMetadataValue() returns "" if metadata is not found.
2013-12-03 16:50:28 +09:00
Atsushi Eno
86d1bc5fee
Fix MSBuildThisFile reserved property value (empty by default).
2013-12-03 16:50:28 +09:00
Atsushi Eno
92810da48d
got imports working. Imported ProjectRootElement needed XmlReader to load it.
2013-12-03 16:50:27 +09:00
Atsushi Eno
6a57658654
For expression, string equality comparison is done in case-insensitive manner.
2013-12-03 16:50:27 +09:00
Atsushi Eno
ead100a78e
fix couple of regressions caused by lazy evaluation of properties.
2013-12-03 16:50:26 +09:00
Atsushi Eno
fab2d35312
update .csproj.
2013-12-03 16:50:26 +09:00
Atsushi Eno
198f0082e5
partal import implementation.
2013-12-03 16:50:08 +09:00
Atsushi Eno
d3ab7f2f4f
missing Project attribute causes load error at ProjectRootElement level.
2013-12-03 16:50:07 +09:00
Atsushi Eno
61927bbc50
Allow empty function args and fix "sigle-argument is ignored" issue.
2013-12-03 16:50:06 +09:00
Atsushi Eno
9104907d9a
Fix fullname (dotted name) parsing in boolean expression parser.
2013-12-03 16:50:05 +09:00
Atsushi Eno
0f6863df4e
Now we can directly evaluate boolean expression with jay-based parser.
2013-12-03 16:50:04 +09:00
Atsushi Eno
26830c94ef
fix NRE.
2013-12-03 16:50:03 +09:00
Atsushi Eno
9e4d891e11
fix NRE.
2013-12-03 16:50:02 +09:00
Atsushi Eno
68356ed43c
implemented (hacky) method resolution for overloads and varargs.
2013-12-03 16:50:01 +09:00
Atsushi Eno
29bef8b989
support property function calls in tokenizer.
2013-12-03 16:50:00 +09:00
Atsushi Eno
f795db2981
support type's static property access.
2013-12-03 16:50:00 +09:00
Atsushi Eno
e4c1837c6c
fix whitespace skipping. Do not accept sequential binary operations.
2013-12-03 16:49:59 +09:00
Atsushi Eno
9d8d2572af
prevent invalid sequential property reference such as $(X)$(Y), by explicitly adding surrounding APOS to the expanded value.
2013-12-03 16:49:59 +09:00
Atsushi Eno
a8b56ab70f
couple of tokenization fixes with more tests.
2013-12-03 16:49:58 +09:00
Atsushi Eno
0b566b28ee
made several fixes in jay-based expression parser and use it for boolean evaluation.
...
For item/propery reference expansion, use manual parser.
2013-12-03 16:49:58 +09:00
Atsushi Eno
4338a63f9b
fix test for GetPropertyValueEscaped(). (expects WTF behavior)
2013-12-03 16:49:57 +09:00
Atsushi Eno
aab6d6e7bc
evaluate condition on PropertyGroup too.
2013-12-03 16:49:57 +09:00
Atsushi Eno
c9a584e7a7
evaluate Condition on property to add Properties list.
...
Now we got a couple of errors because of malfunctional expression evaluator...
2013-12-03 16:49:56 +09:00
Atsushi Eno
15970da3a7
property reference is valid in Condition too.
2013-12-03 16:49:56 +09:00
Atsushi Eno
b218dd0fe2
implement well-known and reserved properties.
2013-12-03 16:49:55 +09:00
Atsushi Eno
7357be85f7
Item references can be evaluated as boolean and hence can be a valid Condition expression.
2013-12-03 16:49:55 +09:00
Atsushi Eno
c8f38da2d8
fix tests that incorrectly allowed empty/missing Include attribute.
2013-12-03 16:49:54 +09:00
Atsushi Eno
e6fcc65278
implement string literal boolean evaluation.
2013-12-03 16:49:54 +09:00
Atsushi Eno
672f575afa
forgot to commit exception change.
2013-12-03 16:49:53 +09:00
Atsushi Eno
3deb8d0a85
fix IndexOutOfRangeException for parsing "$" "@" or "%" (one char for each).
2013-12-03 16:49:52 +09:00
Atsushi Eno
f12f734432
implement IsDirty() (incomplete of course), MarkDirty() and DisableMarkDirty. Fix tests.
2013-12-03 16:49:52 +09:00
Atsushi Eno
7d4e2ff71b
update csproj.
2013-12-03 16:49:51 +09:00
Atsushi Eno
5e26a81f7c
Raise error when project item has empty Include attribute or lacks it.
2013-12-03 16:49:50 +09:00
Atsushi Eno
455eaa7af3
ProjectItems are created after splitting Include paths by ';'.
...
So there could be more than one ProjectItem for the same ProjectItemElement.
2013-12-03 16:49:49 +09:00
Atsushi Eno
1fb98239a1
update csproj.
2013-12-03 16:49:49 +09:00
Atsushi Eno
228a5f4099
delete generated code.
2013-12-03 16:49:48 +09:00
Atsushi Eno
e61d88d238
Altered expression parser to hand-written one (which was kind of anticipated) for torelant parsing.
2013-12-03 16:49:47 +09:00
Atsushi Eno
f7d05af3ea
Add full-scratch expression parser implementation.
2013-12-03 16:49:46 +09:00
Atsushi Eno
8735d655c9
implemented couple of Project members, while changing some members to throw NIE.
2013-12-03 16:49:45 +09:00
Atsushi Eno
79c7800f9a
update .csproj.
2013-12-03 16:49:45 +09:00
Atsushi Eno
f1d08b2a5d
implement ProjectItem and co.
2013-12-03 16:49:44 +09:00
Atsushi Eno
0667fbd6c3
ProjectItemDefinition.ItemType was not initialized (also not tested.)
2013-12-03 16:49:44 +09:00
Atsushi Eno
13e60b8816
update .csproj.
2013-12-03 16:49:43 +09:00
Atsushi Eno
ffa341ffdc
implement ProjectItemDefinition and co.
2013-12-03 16:49:43 +09:00
Atsushi Eno
19647da75d
implement Project.RemoveProperty() and ProjectProperty.Predecessor (i.e. property overrides).
2013-12-03 16:49:42 +09:00
Atsushi Eno
0a86f8456f
implement several ProjectProperty types.
2013-12-03 16:49:42 +09:00
Atsushi Eno
6ccce5d459
fix csproj too.
2013-12-03 16:49:35 +09:00
Atsushi Eno
c59f6e852b
fix wrong type nest for added event handler and args.
2013-12-03 16:49:34 +09:00
Atsushi Eno
a983f2bde4
update .csproj.
2013-12-03 16:49:33 +09:00
Atsushi Eno
b04389411b
Added missing ProjectCollection events and co.
2013-12-03 16:49:32 +09:00
Atsushi Eno
0157410a00
update .csproj.
2013-12-03 16:49:31 +09:00
Atsushi Eno
5f6841b609
implement basic ProjectProperty members.
2013-12-03 16:49:30 +09:00
Atsushi Eno
a7a11fc7ea
Add more tests and fixes in Construction loaders.
2013-12-03 16:49:30 +09:00
Atsushi Eno
59e67847fa
update csproj.
2013-12-03 16:49:29 +09:00
Atsushi Eno
03b31eca2b
implement toolset and build related members.
2013-12-03 16:49:28 +09:00
Atsushi Eno
4669f9ab6c
forgot to add ProjectCollectionTest.cs.
2013-12-03 16:49:26 +09:00
Atsushi Eno
e07081d760
update .csproj.
2013-12-03 16:49:25 +09:00
Atsushi Eno
8fdb340ce3
Add more project loader tests.
2013-12-03 16:49:24 +09:00
Atsushi Eno
ee54380121
Fix regarding GetProjectInstanceForBuild(), and added some tests regarding Escape().
2013-12-03 16:49:23 +09:00
Atsushi Eno
758e14c4e2
update csproj.
2013-12-03 16:49:23 +09:00
Atsushi Eno
3bf0ffb55d
implement Project.Build() and ProjectInstance.Build() (they lead to NIE yet)
...
..., but still sorts out relationship between those types and methods.
2013-12-03 16:49:21 +09:00
Atsushi Eno
950ca86f45
fill ElementLocation items at loading. Fix Subtool-related build fix for 4.0.
2013-12-03 16:49:20 +09:00
Atsushi Eno
47aaaff471
update .csproj.
2013-12-03 16:49:19 +09:00
Atsushi Eno
fe66ba6f41
Add BuildEventContextTest and slightly made Equals() clear on how it works.
2013-12-03 16:49:19 +09:00
Atsushi Eno
b28c703044
update test csproj.
2013-12-03 16:49:18 +09:00
Atsushi Eno
2628dbd1f8
Fix ProjectRootElement.DirectoryPath. Add unit test for ProjectRootElement.
2013-12-03 16:49:16 +09:00
Atsushi Eno
66e97df577
update MS.Build csproj to the latest status.
2013-12-03 16:49:15 +09:00
Atsushi Eno
221184f747
Fix net_4_0 build.
2013-12-03 16:49:15 +09:00
Atsushi Eno
0f28c05d99
add BuildEventContext to .csproj.
2013-12-03 16:49:14 +09:00
Atsushi Eno
412bfd34c0
Add BuildEventContext.
2013-12-03 16:49:14 +09:00
Atsushi Eno
8e31fa7597
update MS.Build test csproj.
2013-12-03 16:49:13 +09:00
Atsushi Eno
e2a79db75f
Add ToolsetTest and fix Toolset construction.
2013-12-03 16:49:13 +09:00
Atsushi Eno
2e8f7fc585
Fix MS.Build.Tasks.csproj build too.
2013-12-03 16:49:12 +09:00
Atsushi Eno
84bbf45c67
fix test csproj build.
2013-12-03 16:49:12 +09:00
Atsushi Eno
1b1ede900b
update MS.Build.csproj.
2013-12-03 16:49:11 +09:00
Atsushi Eno
698edb13ff
implement ProjectCollection.Toolsets.
2013-12-03 16:49:10 +09:00
Atsushi Eno
8cf480afbc
Add ToolLocationHelper and co. to MS.Build.dll (as internal).
2013-12-03 16:49:10 +09:00
Atsushi Eno
5f9868a372
ToolLocationHelper is now used in MS.Build.dll too (as internal).
2013-12-03 16:49:09 +09:00
Atsushi Eno
89293d29d9
Add IBuildEngine3 and IBuildEngine4 to csproj.
2013-12-03 16:49:09 +09:00
Atsushi Eno
a782e6178c
Add IBuildEngine3 and IBuildEngine4.
2013-12-03 16:49:08 +09:00
Atsushi Eno
e012992e25
Add missing tests in csproj.
2013-12-03 16:49:07 +09:00
Atsushi Eno
aafe0a4e2e
MS.Build.dll: Add more missing members and implementation for some members.
2013-12-03 16:49:07 +09:00
Atsushi Eno
b6a3785bc9
implement some MS.Build members as well as adding missing members.
2013-12-03 16:49:06 +09:00
Atsushi Eno
4a9e3cdf9c
Add missing ProjectInstance family.
2013-12-03 16:49:06 +09:00
Atsushi Eno
6c2776884f
implement various not-implemented types in Microsoft.Build.dll.
2013-12-03 16:49:05 +09:00
Atsushi Eno
acad24f57f
Add hacking MSBuild solution for MSBuild libraries.
2013-12-03 16:49:05 +09:00
Atsushi Eno
40fb52be0f
update .sln too.
2013-12-03 16:48:02 +09:00
Marek Safar
51927cb419
Merge pull request #823 from DavidKarlas/master
...
Update PointConverter exception message from RectConverter to PointConverter
2013-12-02 23:47:00 -08:00
Atsushi Eno
46c451adc0
Update .csproj (to add MSBuild.csproj).
2013-12-03 16:46:57 +09:00
David Karlaš
018df75d54
Update PointConverter.cs
2013-12-03 06:48:03 +01:00
Zoltan Varga
45d5758db9
Hopefully the --enable-loadedllvm build on linux.
2013-12-03 04:01:51 +01:00
Martin Baulig
93d55a3daf
[xbuild]: Implement task batching for properties; fixes #16403 .
2013-12-02 22:56:58 +01:00
Atsushi Eno
623ba9bff2
Add experimental "MSBuild.exe" implementation which is based on Microsoft.Build.dll.
2013-12-03 05:05:43 +09:00
Atsushi Eno
bb96a90b69
update .csproj.
2013-12-03 04:55:17 +09:00
Atsushi Eno
0466344052
Add missing exception types.
2013-12-03 04:55:03 +09:00
Atsushi Eno
fcd1a0278a
ProjectCollection.DefaultToolsVersion is settable.
2013-12-03 04:54:31 +09:00
Alex Rønne Petersen
e70dec1e27
Fix comment style.
2013-12-02 19:33:27 +01:00
Alex Rønne Petersen
a6bb88d2e5
Avoid clobbering IP when passing single-precision args on ARM hard float.
2013-12-02 19:27:39 +01:00
Alex Rønne Petersen
59e4edb1f6
Maintain max_len when emitting calls on ARM hard float.
...
It has to be adjusted dynamically as with OP_SWITCH since
we emit extra instructions in the various call opcodes when
the argument list contains single-precision floats.
Also, allocate extra storage space when needed (we would
potentially overflow previously).
2013-12-02 19:27:39 +01:00
Alex Rønne Petersen
64732bae27
Use d14 and d15 as scratch VFP registers.
...
Using d0 and d1 is problematic because they're argument registers
and so can end up being clobbered by instructions inserted in the
middle of a call sequence.
d14 and d15 on the other hand are OK because they don't have any
particular meaning in the ABI, and we don't even use them in the
register allocator at the moment anyway.
2013-12-02 19:27:39 +01:00
Alex Rønne Petersen
49f5625797
Correct the VFP check in exceptions-arm.c.
...
This should be a runtime decision, and also should be in
effect when using the hard float ABI (ARM_FPU_VFP_HARD).
2013-12-02 19:27:39 +01:00
Alex Rønne Petersen
1cdf7fafbd
Implement support for single-precision args on ARM hard float.
...
This is done with a gross hack that maintains a list of args
in the MonoCallInst and emits them as late as possible. This
is not pretty, but we have to work around the register
allocator. See the code comments for details.
2013-12-02 19:27:39 +01:00
Alex Rønne Petersen
f978a34abd
Make sure FPRs aren't used for implicit arguments on ARM hard float.
2013-12-02 19:27:38 +01:00
Alex Rønne Petersen
4f8e1a7ff8
Add register assignment for double-precision args on ARM hard float.
2013-12-02 19:27:38 +01:00
Alex Rønne Petersen
3fb9ed6ee3
Implement add_float () for hard float on ARM.
2013-12-02 19:27:38 +01:00
Alex Rønne Petersen
87931e22c5
Print detected ARM version in configure.
2013-12-02 19:27:38 +01:00
Alex Rønne Petersen
369c838eb1
Implement return value passing for ARM hard float.
...
This is currently only for float32/float64 values. They are passed
in the d0 register. The code is a bit complicated because we only
speak float64 in the JIT, so float32 values have to be converted
to/from float64.
2013-12-02 19:27:38 +01:00
Alex Rønne Petersen
76c7f42e11
Handle the MONO_ARM_FPU_VFP_HARD case in mono_arch_emit_setret ().
2013-12-02 19:27:38 +01:00
Alex Rønne Petersen
6d4cd2f03a
Add VFP register saving to trampolines.
2013-12-02 19:27:37 +01:00
Alex Rønne Petersen
fb478ba04c
Add a helper function to the ARM back end to determine hard float mode.
2013-12-02 19:27:37 +01:00
Alex Rønne Petersen
5082618f54
Adjust various FP register values for hard float in mini-arm.h.
2013-12-02 19:27:37 +01:00
Alex Rønne Petersen
f5004f9b83
Add detection of VFP v3 variants to mono-hwcap-arm.
2013-12-02 19:27:37 +01:00
Alex Rønne Petersen
fb6e4eb972
Add an IS_HARD_FLOAT macro to the ARM back end.
...
Also define correct values for IS_SOFT_FLOAT and IS_VFP for
the hardware floating point (ARM_FPU_VFP_HARD) case.
2013-12-02 19:27:37 +01:00
Alex Rønne Petersen
ddf82bffe2
Remove the #error for the ARM_FPU_VFP_HARD case.
2013-12-02 19:27:37 +01:00
Marek Safar
521a61ae5d
[linq] Enumerable.Join and GroupJoin needs to ignore null keys. Fixes #16530
2013-12-02 19:03:37 +01:00
Marek Safar
611ce3a9ed
[corlib] DebuggerTypeProxyAttribute.ProxyName needs to return an assembly qualified type name. Fixes #16527
2013-12-02 17:54:22 +01:00
Mark Probst
42c2a5207d
[sgen] Integrate sgen_qsort() unit test in Makefile.
2013-12-02 16:20:47 +01:00
Atsushi Eno
6754431cc8
Some parser error message got source string for Condition evaluation.
2013-12-02 19:05:12 +09:00
Atsushi Eno
c8552029dd
Target items related fixes - give diagnostic outputs for initial items. Evaluate item condition.
2013-12-02 19:04:20 +09:00
Zoltan Varga
8304e4407b
Fix dwarf section names in the mach image writer.
2013-12-02 02:01:45 +01:00
Zoltan Varga
9003740b64
Fix a warning.
2013-12-01 14:30:01 +01:00
Zoltan Varga
858e4ee61e
[amd64] Fix the tail call code after 4c0376d037.
2013-12-01 14:10:11 +01:00
Zoltan Varga
073752949f
[jit] Implement double->uintptr conversions on 64 bit platforms. Fixes #16529 .
2013-12-01 13:03:06 +01:00
Zoltan Varga
a1024016a0
[sdb] Fix step-over with recursive functions. Fixes #5700 .
2013-11-30 21:05:19 +01:00
Zoltan Varga
e21dc7cec8
[bcl] Fix a culture test on linux.
2013-11-30 12:08:27 +01:00
Zoltan Varga
24a429c116
Fix a warning.
2013-11-30 05:45:59 -05:00
Zoltan Varga
14095c336b
[x86] Simplify emit_push_lmf()/emit_pop_lmf () by removing cases which are handled by the IR based code.
2013-11-30 05:43:57 -05:00
Carlos Martín Nieto
e2b0132a16
Use full path for aspnetwebstack pkg-config file
...
Referencing the assemblies by DLL name isn't enough for MonoDevelop to
pick them up for listing. Use the full path so they show up the
references list.
2013-11-30 04:03:34 +01:00
Marek Safar
ae3f5aa141
[corlib] Consider all unicode separators in ToTitleCase. Fixes #16365
2013-11-29 20:40:07 +01:00
Marek Safar
8006bd5011
[corlib] Set initialized List<T> capacity to match input enumeration. Fixes #16318
2013-11-29 20:40:07 +01:00
Zoltan Varga
e020c3bc2c
[jit] Add beginnings of a mach image writer for use with xdebug.
2013-11-29 18:45:23 +01:00
Atsushi Eno
19e8e3dc0e
Fix some default properties: OutputType has default to Exe. AssemblyName defaults to the project file name, not RootNamespace.
2013-11-30 00:44:57 +09:00
Marek Safar
3d59213ac4
[mcs] Better cloning debugging
2013-11-29 16:17:32 +01:00
Marek Safar
34700deb47
Fixes build
2013-11-29 16:14:31 +01:00
Atsushi Eno
5a9ca18776
Enable parallel build test, with successful command, now that ConsoleLogger is now parallel ready.
2013-11-29 23:41:09 +09:00
Atsushi Eno
63d1004b97
ConsoleLogger is now parallel build ready.
2013-11-29 23:40:46 +09:00
Marek Safar
31cab6a76d
Fixes build
2013-11-29 13:51:02 +01:00
Marek Safar
985b7ba6f9
[mcs] Better error message for lambda expressions used as statements
2013-11-29 13:48:33 +01:00
Atsushi Eno
2c6cc958f8
Fixed Task output item string result creator and fixed test expectation.
...
Item output task parameters don't show up on TargetResult Items. Instead
those items can be retrieved via ProjectInstance after builds.
2013-11-29 20:02:09 +09:00
Marek Safar
564e390eb5
[mcs] Report ambiguity in attribute types in expanded mode. Fixes #16342
2013-11-29 11:45:55 +01:00
Atsushi Eno
d2220188fe
Empty items could still slipped in when converting string to array.
...
ResolveAssemblyReferences was hit with empty SearchPaths because of this.
2013-11-29 18:55:54 +09:00
Atsushi Eno
eea81f1b32
Make sure to raise matching TaskFinished event.
2013-11-29 18:24:22 +09:00
Atsushi Eno
60b6ddc82b
While converting string to array, trim each element before converting.
...
ResolveAssemblyReferences should work now.
2013-11-29 18:24:21 +09:00
Atsushi Eno
83df434707
implement "skip target due to previous success" feature.
2013-11-29 18:24:20 +09:00
Atsushi Eno
6a9c76131c
Improve item evaluation whitespace handling.
2013-11-29 18:24:19 +09:00
Atsushi Eno
9d95a1b592
disable parallel build test because it is ConsoleLogger which does not work fine.
2013-11-29 18:24:18 +09:00
Atsushi Eno
2cd4d9d956
ProjectTaskOutputPropertyInstance was not appropriately created.
2013-11-29 18:24:17 +09:00
Atsushi Eno
639a7e9a4b
Make sure to use BuildNodeManager in any build run, and corrected error handling to somewhat better state.
...
Also, now EndBuild() won't finish until all callbacks are done.
2013-11-29 18:24:16 +09:00
Atsushi Eno
b3311e865e
LoadProject() should add the loaded project to the collection.
2013-11-29 18:24:15 +09:00
Atsushi Eno
6c8dfee821
Any errors inside BuildEngine build could be logged by loggers.
...
Some exceptions _outside_ that can be still on stderr, but they are
much less now.
2013-11-29 18:24:14 +09:00
Atsushi Eno
94a5d5b2de
Give Project FullPath a unique name for each test so that error outputs could be attributed.
2013-11-29 18:24:13 +09:00
Atsushi Eno
c8a5add1d8
Make sure to fire TargetFinished event in any result (namely, internal error).
...
That possible mismatch caused invalid Stack operation in ConsoleLogger.
2013-11-29 18:24:13 +09:00
Atsushi Eno
956bdf55f7
couple of minor refactoring and warnings cleanup.
...
BuildSubmission.IsCompleted is valid now.
Renamed some argument in BuildEngine4.
Removed ProjectTargetInstance field by moving them to arguments in BuildEngine4.
2013-11-29 18:24:12 +09:00
Atsushi Eno
7730a23131
do not try to evaluate and set non-required and empty Task parameter for ITask instance.
2013-11-29 18:24:11 +09:00
Atsushi Eno
a1a9af7198
fix test file name.
2013-11-29 18:24:10 +09:00
Atsushi Eno
adae939ef6
Handle target Inputs and Outputs so that extra targets can be skipped. Add some value convert (for task property) tests.
2013-11-29 18:24:09 +09:00
Atsushi Eno
eedce4342a
For Condition, "yes", "no", "on" and "off" are also treated as valid boolean...
2013-11-29 18:24:09 +09:00
Atsushi Eno
383ac87fdb
For ItemType-less metadata expression, apply all items in the project.
2013-11-29 18:24:08 +09:00
Atsushi Eno
700d1ac945
Evaluate Target Condition too.
2013-11-29 18:24:07 +09:00
Atsushi Eno
180564d655
Make use of XBUILD_FRAMEWORK_FOLDERS_PATH in GetReferenceAssemblyPaths task and make it testable importing common targets.
2013-11-29 18:23:43 +09:00
Atsushi Eno
a37b1c848b
implement MetadataAccessExpression evaluate methods.
2013-11-29 18:23:42 +09:00
Atsushi Eno
335ec4dbae
ProjectInstance never had valid ToolsVersion because ProjectRootElement holds "", not null(!) for default value.
2013-11-29 18:23:41 +09:00
Atsushi Eno
59bd373236
Fix ProjectInstance.ToolsVersion, never returned valid value.
2013-11-29 18:23:40 +09:00
Atsushi Eno
e3fe185333
Check Condition on task parameter before trying to apply it.
2013-11-29 18:23:39 +09:00
Atsushi Eno
2fad4ce3bb
Well-Known metadata support is now in ProjectItemInstance too, sharing code with ProjectItem.
2013-11-29 18:23:38 +09:00
Atsushi Eno
0151a69ee3
Split lengthy DoBuildTarget() function into understandable units.
2013-11-29 18:23:37 +09:00
Atsushi Eno
d6baf62ee3
Project.GetItems() and ProjectInstance.GetItems() are now shared code.
...
They will involve more complication and I don't want to have duplicates.
2013-11-29 18:23:36 +09:00
Atsushi Eno
492dcbd4f7
add some workaround for "PLATFORM" property that should not be filled by environment.
...
Add some tests to evaluate IntermediateOutputPath.
2013-11-29 18:23:36 +09:00
Atsushi Eno
7227dd419b
implement UnloadProject().
2013-11-29 18:23:35 +09:00
Atsushi Eno
2c10d72eff
STRING_LITERAL could contain expandable expressions, so evaluate them too.
...
We cannot simply "expand strings first then evaluate condition as boolean"
because there are things like "$(A)=='true'" which is expanded as "=='true'".
2013-11-29 18:23:34 +09:00
Atsushi Eno
de51bfe66e
remove redundant "throw NIE".
2013-11-29 18:23:33 +09:00
Atsushi Eno
c066736954
implement ExpressionParserManual.EvaluateMetadataExpression().
2013-11-29 18:23:32 +09:00
Atsushi Eno
98079828b1
Forgot to rename namespace in .jay.
2013-11-29 18:23:31 +09:00
Atsushi Eno
c594d61da9
For expression stuff, change namespace to MS.Build.Internal.Expressionns.
...
Too annoying to track build engine traces.
2013-11-29 18:23:30 +09:00
Atsushi Eno
2019930748
Add more diagnostic logging in BuildEngine4.
2013-11-29 18:23:29 +09:00
Atsushi Eno
710735e0fa
update .csproj.
2013-11-29 18:23:28 +09:00
Atsushi Eno
32b70c6379
Add and use BuildAbortedException.
2013-11-29 18:23:27 +09:00
Atsushi Eno
c256216287
implement ProjectInstance.GetItems() which is now actually used.
2013-11-29 18:23:26 +09:00
Atsushi Eno
9739f7d204
Filter out empty strings in split item array.
2013-11-29 18:23:25 +09:00
Atsushi Eno
6069a3d16d
Task parameters has to be expanded before being applied to ITask instance.
2013-11-29 18:23:24 +09:00
Atsushi Eno
b40071b2d4
several BuildEngine4 fixes.
...
- DependsOnTargets has to be Trim()med before search.
- Metadata implementation is required in the TaskItem.
2013-11-29 18:23:23 +09:00
Atsushi Eno
ce33ad2b0f
Fix namespace.
2013-11-29 18:23:22 +09:00
Atsushi Eno
d20c5365e4
use ConcurrentQueue in BuildNodeManager.
2013-11-29 18:23:21 +09:00
Atsushi Eno
6fac6fe343
fix class visibility.
2013-11-29 18:23:20 +09:00
Atsushi Eno
8a1c344309
dump possible build node exceptions that would have been silently ignored.
2013-11-29 18:23:19 +09:00
Atsushi Eno
83b70b28c6
Evaluate and include property and item on <Target> element before running tasks.
...
BuildEngine4.BuildTarget() became too lengthy, so split it.
2013-11-29 18:23:18 +09:00
Atsushi Eno
b986c4936c
Fix ContinueOnError evaluation (was almost always true). Add more logging.
2013-11-29 18:23:17 +09:00
Atsushi Eno
7b0cc4fe01
handle Target/@DependsOnTargets. To make it possible, some code reorganization.
2013-11-29 18:23:16 +09:00
Atsushi Eno
c8de1afe58
make locations internal in NET_4_0.
2013-11-29 18:23:15 +09:00
Atsushi Eno
8d1c9a3b32
No need to fill UsingTaskElement content here. Load() takes care of it.
2013-11-29 18:23:14 +09:00
Atsushi Eno
b39c93b3a3
Fix bogus expression tokenizer that failed at parenthesized expressions with And/Or.
2013-11-29 18:23:13 +09:00
Atsushi Eno
bb250ee469
MaxNodeCount is documented as 1 by default. (not in use so far anyways...)
2013-11-29 18:23:12 +09:00
Atsushi Eno
5fb2f0646a
Show better error location in InvalidProjectFileException.
2013-11-29 18:23:12 +09:00
Atsushi Eno
a94d52aecc
slightly changed Csc task test project structure so that it could at least launch compiler.
2013-11-29 18:23:11 +09:00
Atsushi Eno
fe8d96084e
Fix load error with related to new attributes since 4.0.
2013-11-29 18:23:10 +09:00
Atsushi Eno
3377cb384c
Fix possible NRE on null Location.
2013-11-29 18:23:09 +09:00
Atsushi Eno
5d31178c39
implement ProjectIntance.AddItem().
2013-11-29 18:23:08 +09:00
Atsushi Eno
6769d12a51
Use ContinueOnError property on BuildEngine itself.
2013-11-29 18:23:07 +09:00
Atsushi Eno
81a7b71b32
Set Task properties before running it, and get output task parameters when done.
2013-11-29 18:23:06 +09:00
Atsushi Eno
01a080ca19
Several fixes to get ProjectUsingTaskElement could be loaded and task database gets correct match.
...
Now tasks could be loaded, ready to execute.
2013-11-29 18:23:05 +09:00
Atsushi Eno
0d895877b1
workaround threading by Task isse. Also fix regression on "no target found" case (should fail).
...
(Task causes NotImplementedException under the hood).
2013-11-29 18:23:04 +09:00
Atsushi Eno
8d6ecbf257
update .csproj.
2013-11-29 18:23:03 +09:00
Atsushi Eno
4149f6d5d6
ongoing task database implementation.
...
This somehow causes thread freeze, I had to disable some tests.
2013-11-29 18:23:02 +09:00
Atsushi Eno
f0c157933f
ITaskFactory2 is public.
2013-11-29 18:23:02 +09:00
Atsushi Eno
1a8d1b356c
update .csproj.
2013-11-29 18:23:01 +09:00
Atsushi Eno
4a163333cc
add missing OutOfProcNode class (though it seems unused).
2013-11-29 18:23:00 +09:00
Atsushi Eno
ada1007296
update .csproj.
2013-11-29 18:23:00 +09:00
Atsushi Eno
ced599348c
delete old file.
2013-11-29 18:22:14 +09:00
Atsushi Eno
532f1b16b1
implement basic node management skeleton (which does not really manage nodes, just to hold node retriever).
2013-11-29 18:22:13 +09:00
Atsushi Eno
c1ba5d85f2
Ongoing build engine implementation and some fixes in build submission handling.
...
BuildSubmission could be posted multiple times so that multiple projects can
be built within one BuildManager. Now node manager should be implemented too...
2013-11-29 18:22:12 +09:00
Atsushi Eno
ff2726545d
Fix API: remove non-existent property in .NET (copy-paste bad).
2013-11-29 18:22:11 +09:00
Atsushi Eno
86eddfa308
update .csproj.
2013-11-29 18:22:10 +09:00
Atsushi Eno
5aeda36257
Add missing ITaskFactory/2 and co. Add BuildEventArgs.set_Context().
2013-11-29 18:22:09 +09:00
Atsushi Eno
5040de10b2
update csproj.
2013-11-29 18:22:08 +09:00
Atsushi Eno
e75f0d726b
Add IBuildEngine implementation, required to expose some features to tasks.
2013-11-29 18:22:07 +09:00
Atsushi Eno
c6c76b3a70
add test for BuildManager.PendBuildRequest(). Looks like it's mostly for internal use...
2013-11-29 18:22:06 +09:00
Atsushi Eno
91aaf0f60b
fix NET_2_0 build: INodeLogger is only in 4.0.
2013-11-29 18:22:05 +09:00
Atsushi Eno
8d481f11d1
slightly reorganized external sources dirs.
2013-11-29 18:22:04 +09:00
Atsushi Eno
1d7a853df4
add missing copyright headers.
2013-11-29 18:22:03 +09:00
Atsushi Eno
ca691c74f0
implement HostServices, not sure if we're going to use it though.
2013-11-29 18:22:02 +09:00
Atsushi Eno
6b8f1d0eee
add missing license headers.
2013-11-29 18:22:01 +09:00
Atsushi Eno
220d96cba7
slightly reduce NIE code path.
2013-11-29 18:22:00 +09:00
Atsushi Eno
282915ba7e
update csproj.
2013-11-29 18:22:00 +09:00
Atsushi Eno
741650f7c2
Add test for BuildSubmission (which is mostly for build operation so far).
2013-11-29 18:21:58 +09:00
Atsushi Eno
339871f523
Implement more precise DefaultTargets handling.
2013-11-29 18:21:57 +09:00
Atsushi Eno
a1160ebc79
Several fixes on manual expression parser with related to function args and property accesses.
2013-11-29 18:21:56 +09:00
Atsushi Eno
c942af4f9f
fix some string evaluator tests. Some of them even fails in prop values.
2013-11-29 18:21:56 +09:00
Atsushi Eno
006a7bd303
slightly improve property access error message.
2013-11-29 18:21:55 +09:00
Atsushi Eno
caf1e274b2
Apply windows path loader fix to ProjectInstance too.
2013-11-29 18:21:54 +09:00
Atsushi Eno
6626dfe95a
Resolve property value by EvaluatedValue where appropriate.
2013-11-29 18:21:53 +09:00
Atsushi Eno
bc3ab82b2b
Sequence of comparison expressions (A==B==C) is invalid. Avoid ANE on property evaluation.
2013-11-29 18:21:52 +09:00
Atsushi Eno
2efdcb618d
Fix binary expression evaluation. They can be combined.
2013-11-29 18:21:51 +09:00
Atsushi Eno
c5d68b1922
implement prebuilt Condition evaluation function support.
2013-11-29 18:21:50 +09:00
Atsushi Eno
a666fc9886
Fix location of windows path compatibility change.
2013-11-29 18:21:49 +09:00
Atsushi Eno
1280072e42
Fix 4.5 toolpath.
2013-11-29 18:21:48 +09:00
Atsushi Eno
0e8be129d9
fix import path for ProjectInstance too.
2013-11-29 18:21:47 +09:00
Atsushi Eno
5671aa742a
update csproj.
2013-11-29 18:21:46 +09:00
Atsushi Eno
4986fc1d50
Add missing built-in properties. Resolve properties on import paths. Resolve \ with / on import paths.
2013-11-29 18:21:45 +09:00
Atsushi Eno
c3e86429b4
Project needs to build just fine for empty projects.
2013-11-29 18:21:44 +09:00
Atsushi Eno
9bd1c8dcc1
some BuildSubmission and BuildResult implementation, as well as tiny bit of build operation.
2013-11-29 18:21:43 +09:00
Atsushi Eno
dfcb502de9
sorted out BuildManager build logic up to BuildSubmission.Execute().
2013-11-29 18:21:42 +09:00
Atsushi Eno
6d54b6e218
Reuse logger types in Microsoft.Build.dll.
2013-11-29 18:21:41 +09:00
Atsushi Eno
7c53a29fbe
update csproj.
2013-11-29 18:21:40 +09:00
Atsushi Eno
7dd532d3ca
sorted out logger stuff. Imported many of existing loggers from MS.Build.Engine. Stubbed some.
2013-11-29 18:21:39 +09:00
Atsushi Eno
a4aae3e863
update .sources too.
2013-11-29 18:21:39 +09:00
Atsushi Eno
cf31055124
update csproj.
2013-11-29 18:21:38 +09:00
Atsushi Eno
926c4f9bf4
add missing logging types which are required for Microsoft.Build.dll.
2013-11-29 18:21:37 +09:00
Atsushi Eno
0b80dfee1e
update csproj.
2013-11-29 18:21:36 +09:00
Atsushi Eno
5eb01842ba
Add missing ProjectPropertyGroupTaskIntance and descendant, and implement more of this namespace.
2013-11-29 18:21:35 +09:00
Atsushi Eno
e7f42549e9
Added some comments on loaders in the two project object models.
2013-11-29 18:21:34 +09:00
Atsushi Eno
886aed3450
implemented more ProjectInstance family. Enabled some tests back.
2013-11-29 18:21:33 +09:00
Atsushi Eno
38b7328cb2
implemented a lot of ProjectTargetInstance and its descendants. Fixed a lot of Location stuff to fix NET_4_0 build.
2013-11-29 18:21:32 +09:00
Atsushi Eno
191815a093
implement basic project loader for ProjectInstance.
2013-11-29 18:21:32 +09:00
Atsushi Eno
b00ebb0e3c
refactoring some internals to make code sharable between Project and ProjectInstance.
2013-11-29 18:21:31 +09:00
Atsushi Eno
c62b93e4e2
update .csproj.
2013-11-29 18:21:31 +09:00
Atsushi Eno
ce24491e7a
implement ProjectMetadataInstance and add some MS.Build.Execution tests.
2013-11-29 18:21:16 +09:00
Atsushi Eno
36771fce36
add another GetLoadedProject() test, this time with ProjectInstance.
2013-11-29 18:21:15 +09:00
Atsushi Eno
bf7320eaf4
implement GetLoadedProject(), ProjectAdded and adjust relevant methods.
2013-11-29 18:21:14 +09:00
Atsushi Eno
fbbca213a6
Added workaround for DirectoryScanner bug that finds multiple files. Then implemented RecursiveDir metadata.
2013-11-29 18:21:13 +09:00
Atsushi Eno
f92a803094
update .csproj.
2013-11-29 18:21:13 +09:00
Atsushi Eno
74ce017542
make TaskItem available (as internal) in Microsft.Build.dll.
2013-11-29 18:21:12 +09:00
Atsushi Eno
6425733f3d
implement item wildcard support, except for "**" which looks buggy at DirectoryScanner.
2013-11-29 18:21:11 +09:00
Atsushi Eno
f86010a6d9
implement IsImported.
2013-11-29 18:21:10 +09:00
Atsushi Eno
b11b278ebd
implemented well-known item metadata.
2013-11-29 18:21:09 +09:00
Atsushi Eno
6956ad5939
Fix API for ProjectItemElement.Condition. Add test for item definition Condition.
2013-11-29 18:21:08 +09:00
Atsushi Eno
631ccfc234
GetMetadataValue() returns "" if metadata is not found.
2013-11-29 18:21:07 +09:00
Atsushi Eno
251ee38cb5
Fix MSBuildThisFile reserved property value (empty by default).
2013-11-29 18:21:06 +09:00
Atsushi Eno
07e6b5cf6f
got imports working. Imported ProjectRootElement needed XmlReader to load it.
2013-11-29 18:21:05 +09:00
Atsushi Eno
386284c675
For expression, string equality comparison is done in case-insensitive manner.
2013-11-29 18:21:04 +09:00
Atsushi Eno
e91fa0a69d
fix couple of regressions caused by lazy evaluation of properties.
2013-11-29 18:21:03 +09:00
Atsushi Eno
e57cbc1a2f
update .csproj.
2013-11-29 18:21:02 +09:00
Atsushi Eno
eb71da804f
partal import implementation.
2013-11-29 18:21:01 +09:00
Atsushi Eno
a645b4d25a
missing Project attribute causes load error at ProjectRootElement level.
2013-11-29 18:21:00 +09:00
Atsushi Eno
ce1337ab37
Allow empty function args and fix "sigle-argument is ignored" issue.
2013-11-29 18:20:59 +09:00
Atsushi Eno
966a31ce5a
Fix fullname (dotted name) parsing in boolean expression parser.
2013-11-29 18:20:58 +09:00
Atsushi Eno
eba5645adb
Now we can directly evaluate boolean expression with jay-based parser.
2013-11-29 18:20:57 +09:00
Atsushi Eno
c96143ed69
fix NRE.
2013-11-29 18:20:56 +09:00
Atsushi Eno
38950e5ba9
fix NRE.
2013-11-29 18:20:55 +09:00
Atsushi Eno
5c83336164
implemented (hacky) method resolution for overloads and varargs.
2013-11-29 18:20:54 +09:00
Atsushi Eno
d1bd7c431d
support property function calls in tokenizer.
2013-11-29 18:20:53 +09:00
Atsushi Eno
55e01f6eaf
support type's static property access.
2013-11-29 18:20:53 +09:00
Atsushi Eno
d24ec0ee9c
fix whitespace skipping. Do not accept sequential binary operations.
2013-11-29 18:20:52 +09:00
Atsushi Eno
222b644a94
prevent invalid sequential property reference such as $(X)$(Y), by explicitly adding surrounding APOS to the expanded value.
2013-11-29 18:20:51 +09:00
Atsushi Eno
52fcb37ef5
couple of tokenization fixes with more tests.
2013-11-29 18:20:51 +09:00
Atsushi Eno
2296908450
made several fixes in jay-based expression parser and use it for boolean evaluation.
...
For item/propery reference expansion, use manual parser.
2013-11-29 18:20:50 +09:00
Atsushi Eno
ba15463a18
fix test for GetPropertyValueEscaped(). (expects WTF behavior)
2013-11-29 18:20:49 +09:00
Atsushi Eno
6c1ade2208
evaluate condition on PropertyGroup too.
2013-11-29 18:20:49 +09:00
Atsushi Eno
f49a313031
evaluate Condition on property to add Properties list.
...
Now we got a couple of errors because of malfunctional expression evaluator...
2013-11-29 18:20:48 +09:00
Atsushi Eno
e44316aac8
property reference is valid in Condition too.
2013-11-29 18:20:47 +09:00
Atsushi Eno
e401791fd2
implement well-known and reserved properties.
2013-11-29 18:20:47 +09:00
Atsushi Eno
daf32712af
Item references can be evaluated as boolean and hence can be a valid Condition expression.
2013-11-29 18:20:46 +09:00
Atsushi Eno
31e660b0f4
fix tests that incorrectly allowed empty/missing Include attribute.
2013-11-29 18:20:45 +09:00
Atsushi Eno
7892970584
implement string literal boolean evaluation.
2013-11-29 18:20:44 +09:00
Atsushi Eno
e71071b1da
forgot to commit exception change.
2013-11-29 18:20:43 +09:00
Atsushi Eno
36203fda98
fix IndexOutOfRangeException for parsing "$" "@" or "%" (one char for each).
2013-11-29 18:20:43 +09:00
Atsushi Eno
1169b64aa3
implement IsDirty() (incomplete of course), MarkDirty() and DisableMarkDirty. Fix tests.
2013-11-29 18:20:42 +09:00
Atsushi Eno
fc8246b03a
update csproj.
2013-11-29 18:20:41 +09:00
Atsushi Eno
1da050daf0
Raise error when project item has empty Include attribute or lacks it.
2013-11-29 18:20:40 +09:00
Atsushi Eno
c0fcd506d6
ProjectItems are created after splitting Include paths by ';'.
...
So there could be more than one ProjectItem for the same ProjectItemElement.
2013-11-29 18:20:39 +09:00
Atsushi Eno
a5f96125d0
update csproj.
2013-11-29 18:20:38 +09:00
Atsushi Eno
691b1e9799
delete generated code.
2013-11-29 18:20:37 +09:00
Atsushi Eno
5002b25ec3
Altered expression parser to hand-written one (which was kind of anticipated) for torelant parsing.
2013-11-29 18:20:37 +09:00
Atsushi Eno
7b9d44886e
Add full-scratch expression parser implementation.
2013-11-29 18:20:36 +09:00
Atsushi Eno
34d86a8497
implemented couple of Project members, while changing some members to throw NIE.
2013-11-29 18:20:05 +09:00
Atsushi Eno
cda2e72d37
update .csproj.
2013-11-29 18:20:04 +09:00
Atsushi Eno
47ccaa7d18
implement ProjectItem and co.
2013-11-29 18:20:03 +09:00
Atsushi Eno
85ed86a799
ProjectItemDefinition.ItemType was not initialized (also not tested.)
2013-11-29 18:20:02 +09:00
Atsushi Eno
1a3cd4eac3
update .csproj.
2013-11-29 18:20:02 +09:00
Atsushi Eno
819b18a732
implement ProjectItemDefinition and co.
2013-11-29 18:20:01 +09:00
Atsushi Eno
edc982f914
implement Project.RemoveProperty() and ProjectProperty.Predecessor (i.e. property overrides).
2013-11-29 18:20:01 +09:00
Atsushi Eno
5cce2ee718
implement several ProjectProperty types.
2013-11-29 18:20:00 +09:00
Atsushi Eno
48bd97af64
fix csproj too.
2013-11-29 18:20:00 +09:00
Atsushi Eno
d39128ce21
fix wrong type nest for added event handler and args.
2013-11-29 18:19:59 +09:00
Atsushi Eno
b4aaae8931
update .csproj.
2013-11-29 18:19:58 +09:00
Atsushi Eno
dedde5fb02
Added missing ProjectCollection events and co.
2013-11-29 18:19:58 +09:00
Atsushi Eno
bc0f489f06
update .csproj.
2013-11-29 18:19:57 +09:00
Atsushi Eno
21441a9b48
implement basic ProjectProperty members.
2013-11-29 18:19:57 +09:00
Atsushi Eno
be330e18ff
Add more tests and fixes in Construction loaders.
2013-11-29 18:19:56 +09:00
Atsushi Eno
659eb9638a
update csproj.
2013-11-29 18:19:55 +09:00
Atsushi Eno
97ea0acfec
implement toolset and build related members.
2013-11-29 18:19:55 +09:00
Atsushi Eno
618d699a42
forgot to add ProjectCollectionTest.cs.
2013-11-29 18:19:54 +09:00
Atsushi Eno
4c7461c7af
update .csproj.
2013-11-29 18:19:54 +09:00
Atsushi Eno
b053b3c022
Add more project loader tests.
2013-11-29 18:19:53 +09:00
Atsushi Eno
400cf174f2
Fix regarding GetProjectInstanceForBuild(), and added some tests regarding Escape().
2013-11-29 18:19:52 +09:00
Atsushi Eno
3da51cf17a
update csproj.
2013-11-29 18:19:52 +09:00
Atsushi Eno
6e8d703fd0
implement Project.Build() and ProjectInstance.Build() (they lead to NIE yet)
...
..., but still sorts out relationship between those types and methods.
2013-11-29 18:19:51 +09:00
Atsushi Eno
0656e72353
fill ElementLocation items at loading. Fix Subtool-related build fix for 4.0.
2013-11-29 18:19:51 +09:00
Atsushi Eno
5cc3b0a007
update .csproj.
2013-11-29 18:19:50 +09:00
Atsushi Eno
c6652332bc
Add BuildEventContextTest and slightly made Equals() clear on how it works.
2013-11-29 18:19:50 +09:00
Atsushi Eno
6e44a54461
update test csproj.
2013-11-29 18:19:49 +09:00
Atsushi Eno
6c983b97f1
Fix ProjectRootElement.DirectoryPath. Add unit test for ProjectRootElement.
2013-11-29 18:19:48 +09:00
Atsushi Eno
60309a490e
update MS.Build csproj to the latest status.
2013-11-29 18:19:48 +09:00
Atsushi Eno
e33a6e056b
Fix net_4_0 build.
2013-11-29 18:19:47 +09:00
Atsushi Eno
7631feae4b
add BuildEventContext to .csproj.
2013-11-29 18:19:47 +09:00
Atsushi Eno
5d2f218ebb
Add BuildEventContext.
2013-11-29 18:19:46 +09:00
Atsushi Eno
cbd796fab3
update MS.Build test csproj.
2013-11-29 18:19:46 +09:00
Atsushi Eno
49fe80ab14
Add ToolsetTest and fix Toolset construction.
2013-11-29 18:19:45 +09:00
Atsushi Eno
c7e31cf15b
Fix MS.Build.Tasks.csproj build too.
2013-11-29 18:19:45 +09:00
Atsushi Eno
9d1b389da5
fix test csproj build.
2013-11-29 18:19:44 +09:00
Atsushi Eno
52728856ba
update MS.Build.csproj.
2013-11-29 18:19:43 +09:00
Atsushi Eno
a2ccbe1a15
implement ProjectCollection.Toolsets.
2013-11-29 18:19:43 +09:00
Atsushi Eno
ad6f38d35e
Add ToolLocationHelper and co. to MS.Build.dll (as internal).
2013-11-29 18:19:42 +09:00
Atsushi Eno
f52d76b755
ToolLocationHelper is now used in MS.Build.dll too (as internal).
2013-11-29 18:19:42 +09:00
Atsushi Eno
7523eda306
Add IBuildEngine3 and IBuildEngine4 to csproj.
2013-11-29 18:19:41 +09:00
Atsushi Eno
f392cecddf
Add IBuildEngine3 and IBuildEngine4.
2013-11-29 18:19:41 +09:00
Atsushi Eno
5cc3fe2d12
Add missing tests in csproj.
2013-11-29 18:19:40 +09:00
Atsushi Eno
1b3593d6c2
MS.Build.dll: Add more missing members and implementation for some members.
2013-11-29 18:19:40 +09:00
Atsushi Eno
eead7876af
implement some MS.Build members as well as adding missing members.
2013-11-29 18:19:39 +09:00
Atsushi Eno
cb16086cf3
Add missing ProjectInstance family.
2013-11-29 18:19:38 +09:00
Atsushi Eno
2fa725aeca
implement various not-implemented types in Microsoft.Build.dll.
2013-11-29 18:19:38 +09:00
Atsushi Eno
63bc28d10a
Add hacking MSBuild solution for MSBuild libraries.
2013-11-29 18:19:37 +09:00
Marek Safar
53cb3abb08
[mcs] Implements definite assignment of expressions
2013-11-29 09:12:28 +01:00
Marek Safar
f12192b425
Fixes build
2013-11-29 09:12:28 +01:00
Zoltan Varga
22650957a3
[jit] Get rid of the mono_arch_get_domain_intrinsic () function, use the generic mono_get_domain_intrinsic () function instead.
2013-11-28 20:39:58 +01:00
Zoltan Varga
5a23148944
[x86] Emit the push/pop LMF code as IR on linux.
2013-11-28 03:11:44 -05:00
Zoltan Varga
de62cc7d9b
[x86] Emit the push/pop LMF code as IR on osx.
2013-11-28 20:08:46 +01:00
Zoltan Varga
38b6a9dffd
[gsharedvt] Avoid using gsharedvt trampolines for calls with a non-variable signature.
2013-11-28 19:31:04 +01:00
Zoltan Varga
0b7712cdbc
[amd64] Translate TLS offsets on osx/amd64 too.
2013-11-28 19:07:34 +01:00
Zoltan Varga
f35e533000
[x86] Revert some changes which seem to cause regressions when compiling fsharp.
2013-11-28 18:34:24 +01:00
Mark Probst
1eef047d0d
[sgen] Wait for workers before the finishing nursery collection.
...
Fixes the sgen-bridge.exe crash on concurrent M&S.
2013-11-28 13:51:35 +01:00
Mark Probst
c8ed716a10
[sgen] Missed a binary protocol event for mark.
2013-11-28 13:51:35 +01:00
Mark Probst
0c7553a3de
[sgen] Binary protocol records worker thread vs non-worker thread events.
2013-11-28 13:51:34 +01:00
Zoltan Varga
3da6eab45e
[x86] Remove some dead code.
2013-11-28 13:34:56 +01:00
Zoltan Varga
88ffd6150f
[jit] Translate TLS offsets on osx/x86 in mono_resolve_patch_target () to make OP_TLS_GET_REG/OP_TLS_SET_REG faster.
2013-11-28 13:18:37 +01:00
Zoltan Varga
2d2d96f2d7
[jit] Avoid emitting two AOT_CONST instructions for managed TLS access.
2013-11-28 13:10:50 +01:00
Zoltan Varga
516b33cff4
[x86] Implement OP_TLS_SET/OP_TLS_SET_REG opcodes.
2013-11-28 13:00:59 +01:00
Zoltan Varga
f7914fec6d
[x86] Disable fast tls access in the push/pop LMF code in AOT mode, the TLS offsets are not constant and we cannot load them from the GOT since the GOT address is not computed yet.
2013-11-28 11:58:03 +01:00
Zoltan Varga
23ddd68e86
[x86] Remove some dead code.
2013-11-28 11:51:14 +01:00
Alistair Leslie-Hughes
3c6517b67e
Support for DispIdAttribute in GetIdsOfNames
...
License: This patch is under the MIT/X11 license.
2013-11-28 14:08:14 +11:00
Zoltan Varga
aa389dc8c9
[x86] Fix the epilog tls access on linux too.
2013-11-27 20:59:19 -05:00
Zoltan Varga
9f593ceb06
[runtime] Fix the windows build.
2013-11-28 10:56:22 +01:00
Zoltan Varga
8355e54373
[x86] Fix tls access in epilogs in AOT code.
2013-11-28 10:46:22 +01:00
Zoltan Varga
2cd074ed31
Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms.
2013-11-27 23:29:10 +01:00
Zoltan Varga
2b2806ddf4
Revert "Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms."
...
This reverts commit 4f562893b7 .
Revert this as it breaks many tests.
2013-11-27 22:13:58 +01:00
Zoltan Varga
0ba0e0cc67
[runtime] Really fix the windows build.
2013-11-27 20:46:59 +01:00
Zoltan Varga
4f562893b7
Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms.
2013-11-27 20:44:58 +01:00
Zoltan Varga
267e4f693a
[runtime] Fix the windows build.
2013-11-27 19:38:36 +01:00
Craig Morris
e5a83e6857
SqlBulkCopy Implementation
...
This are the code changes to get the SqlBulkCopy procedure working on
mono.
2013-11-27 11:11:11 -07:00
Marek Safar
4855d214c4
[corlib] Better exception message for unexpected task result
2013-11-27 18:55:42 +01:00
Alex Rønne Petersen
7897869121
Merge pull request #812 from ColdPie1/master
...
Fix getting current system locale
2013-11-27 09:44:14 -08:00
Rodrigo Kumpera
3c3e109e59
Merge pull request #815 from tmds/master
...
socket-io: interface index handling
2013-11-27 05:44:36 -08:00
Marek Safar
56ccb68415
[mcs] Emit this initializer for structs. Fixes #16430
2013-11-27 14:12:46 +01:00
Rolf Bjarne Kvinge
7249051374
Ignore generated files.
2013-11-27 11:27:24 +01:00
Zoltan Varga
5b65cb80ac
[runtime] Avoid busy waiting when using the MONO_DEBUG=suspend-on-sigsegv option.
2013-11-27 10:11:27 +01:00
brendanzagaeski
d0c24d73e5
Bug 15572. Lookup KnownTypeCollection element types in MSSimpleNamespace
...
This patch prevents the problem in https://bugzilla.xamarin.com/show_bug.cgi?id=15572 . This change allows the DataContractSerializer to deserialize DataMembers that use an array KnownType, at least for the test case in the bug report.
2013-11-26 23:09:00 -05:00
brendanzagaeski
df9535c5a4
Bug 15574. XML deserialization recursion: add array type to known_types?
...
One way to prevent https://bugzilla.xamarin.com/show_bug.cgi?id=15574 is to add the problematic array type to the `known_types`.
On the other hand, this might not be the intended use of `known_types`. In that case, perhaps a better fix would be to guard against recursion in the `foreach` loop:
if (t != type)
RegisterTypeAsKnown (t);
2013-11-26 22:47:48 -05:00
Alex Rønne Petersen
742171f317
Unbreak the amd64 build.
2013-11-27 03:45:00 +01:00
Alex Rønne Petersen
1a05494a15
Remove mdb stuff from configure.in.
2013-11-27 03:23:41 +01:00
Master T
962a30b605
SocketTest: added tests for multicast index handling for MulticastOption class and MulticastInterface socket option
...
This commit is under the MIT license.
2013-11-27 00:18:46 +01:00
Rodrigo Kumpera
958c1e23f4
[runtime] Remove the old debugger interface.
2013-11-26 14:25:19 -05:00
Rodrigo Kumpera
7d747d08f8
[jit] Remove mono_debug_add_icall_wrapper as it doesn't do anything.
2013-11-26 14:25:18 -05:00
Rodrigo Kumpera
556fd28f0c
[runtime]Hide public fields and kill MONO_DEBUG_FORMAT_DEBUGGER.
2013-11-26 14:25:17 -05:00
Rodrigo Kumpera
8c42423030
[jit]Remove the last uses of MONO_DEBUGGER_SUPPORTED.
2013-11-26 14:25:16 -05:00
Rodrigo Kumpera
e8b614d5bc
[runtime] Mark all symbols in mono-debug-debugger as private as we don't install that header.
2013-11-26 14:25:05 -05:00
Rodrigo Kumpera
308fad9335
[runtime] Remove mono_debug_using_mono_debugger. This would only return true under mdb.
2013-11-26 14:25:04 -05:00
Rodrigo Kumpera
fea01b0982
[jit] Kill the debug-mini.h header.
2013-11-26 14:25:03 -05:00
Rodrigo Kumpera
d5ce87ee9a
[jit] Remove some unused definitions.
2013-11-26 14:25:03 -05:00
Rodrigo Kumpera
b7ba901ae9
[jit] Remove the rest of the API exposed by debug-mini.h.
2013-11-26 14:25:02 -05:00
Rodrigo Kumpera
254ffd0190
[jit] Remove mono_debugger_handle_exception, which was only used by mdb.
2013-11-26 14:25:01 -05:00
Rodrigo Kumpera
671814f8b3
[jit] Remove the exception handling code of the old debugger.
2013-11-26 14:24:21 -05:00
Rodrigo Kumpera
f6d49c21dd
[jit] Kill more of mdb.
2013-11-26 14:24:20 -05:00
Rodrigo Kumpera
549d7a45e7
[jit] Kill debug-debugger.c
2013-11-26 14:24:19 -05:00
Rodrigo Kumpera
3c29ad660a
[jit] Remove the mdb debug-info files.
2013-11-26 14:24:14 -05:00
Marek Safar
e062a637a3
[mcs] Don't merge unreachable if blocks
2013-11-26 19:02:57 +01:00
Alex Rønne Petersen
e554e95f15
Merge pull request #818 from hanswolff/patch-1
...
fixed some warnings in mono-proclib.c
2013-11-26 07:37:34 -08:00
Marek Safar
a6cb9fd714
[mcs] Fix flow analysis of infinite for statement with breaks
2013-11-26 15:16:37 +01:00
Marek Safar
e0f8c2c2f8
[mcs] Run struct field assignment check on every exit point.
2013-11-26 14:25:01 +01:00
Marek Safar
099ffcb094
[mcs] Reachability analysis of constant switch
2013-11-26 13:08:31 +01:00
Hans Wolff
5fdcb5fc69
fixed some warnings in mono-proclib.c
...
mono-proclib.c: In function ‘get_cpu_times’:
mono-proclib.c:600:24: warning: ‘sirq_ticks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*sirq = (sirq_ticks) * 10000000 / hz;
^
mono-proclib.c:598:22: warning: ‘irq_ticks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*irq = (irq_ticks) * 10000000 / hz;
^
mono-proclib.c:602:24: warning: ‘idle_ticks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*idle = (idle_ticks) * 10000000 / hz;
^
mono-proclib.c:596:29: warning: ‘system_ticks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*systemt = (system_ticks) * 10000000 / hz;
^
mono-proclib.c:594:23: warning: ‘nice_ticks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*user = (user_ticks + nice_ticks) * 10000000 / hz;
^
mono-proclib.c:594:23: warning: ‘user_ticks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2013-11-26 11:38:24 +00:00
Marek Safar
66403410b0
[mcs] Excluded methods should not take a part in flow analysis
2013-11-25 17:51:34 +01:00
Bart Vries
e3c37d1042
LogicalSet/GetData implementation in CallContext
2013-11-25 16:59:59 +01:00
Marek Safar
1d5cefe7ad
[mcs] Arguments flow analysis needs to ignore out modifier.
2013-11-25 16:02:58 +01:00
Marek Safar
8c6864df1c
[mcs] Optimize DefiniteAssignmentBitSet
2013-11-25 16:02:58 +01:00
Mark Probst
8a4e1ca74e
[sgen] Implement our own qsort() so as not do deadlock.
...
qsort() may call malloc(), which can lead to a deadlock when the
world is stopped.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=16432 .
2013-11-25 15:42:08 +01:00
Mark Probst
10ee80de68
[sgen] Improve describe_ptr().
...
Don’t try to print the vtable if the major allocator knows it’s invalid.
Print bridge information.
2013-11-25 15:22:45 +01:00
Zoltan Varga
4c0376d037
[amd64] Unify the register saving/restoring code for the fp/no-fp cases.
2013-11-25 10:33:46 +01:00
Master T
27024b966c
socket-io.c: merge #ifdef HAVE_STRUCT_IP_MREQN of network interface index and address
...
This commit and the related commits 11b2e351d8 and af9fc5f16f ) are under the MIT license.
2013-11-25 08:56:49 +01:00
Zoltan Varga
0ad5599acb
[amd64] Simplify the push/pop LMF code a bit more.
2013-11-24 20:56:32 +01:00
Zoltan Varga
f06efbe8b1
Fix a warning.
2013-11-24 20:41:42 +01:00
Zoltan Varga
b710d972a8
Fix a warning.
2013-11-24 13:35:00 -05:00
Zoltan Varga
07c19b537b
[amd64] Use the IR based push/pop LMF code on all platforms except windows.
2013-11-24 13:33:48 -05:00
Marek Safar
d92b0d6d9f
[mcs] Dynamically calculate size of flow-analysis bitset. Fixes #4210
2013-11-24 14:14:54 +01:00
Master T
af9fc5f16f
socket-io: pass MulticastOption InterfaceIndex into ip_mreqn imr_ifindex
2013-11-24 10:27:06 +01:00
Master T
11b2e351d8
socket-io: make it possible to specify an interface index as a MulticastInterface SocketOption on linux.
...
On windows, a value to IP_MULTICAST_IF with a most significant byte of zero is interpreted as an interface index instead of an ip address.
This makes it possible to set the interface index from .NET as follows:
socket.SetSocketOption(SocketOptionLevel.IP,
SocketOptionName.MulticastInterface, IPAddress.HostToNetworkOrder(ifindex));
For this to work on other platforms, we need to detect this case and handle it with an ip_mreqn struct.
2013-11-24 10:23:36 +01:00
Jeffrey Stedfast
2c7864ae98
[Mono.Data.Sqlite] Fixed for Windows .NET 4.0
...
Thanks to Joe for the patch.
Fixes bug #2148
2013-11-23 15:56:42 -05:00
Zoltan Varga
c54015435a
[sgen] Add minimal mingw64 support.
2013-11-23 20:02:50 +01:00
Zoltan Varga
c6a041ed80
Disable a corlib test which hangs on windows.
2013-11-23 20:02:49 +01:00
Alex Rønne Petersen
926638469e
Fix the encoding of x86_imul_reg_mem_imm.
2013-11-23 18:26:55 +01:00
Jérémie Laval
2211e3a5d0
Merge pull request #811 from criteo/16334-ConcurrentBag
...
[Bug 16334] Fix ConcurrentBag.TryTake and TryPeek
2013-11-22 13:35:42 -08:00
Maxime Brugidou
07be9a1f9c
Add Unit tests
2013-11-22 15:33:26 +01:00
Marek Safar
86d6b6f7ca
[mcs] Flow analysis of conditional expression
2013-11-21 21:06:54 +01:00
Marek Safar
c5d1278525
Update failing tests
2013-11-21 21:06:53 +01:00
Zoltan Varga
1a8004315c
[jit] Implement the optimized variant of the push/pop LMF code on amd64.
2013-11-21 18:55:24 +01:00
Zoltan Varga
4dc607fc8c
[jit] Fix the optimized variant of push/pop LMF code.
2013-11-21 18:55:24 +01:00
Marek Safar
1ff37128b7
Add more tests
2013-11-21 15:06:15 +01:00
Marek Safar
31e9bb50b3
[mcs] Better error message for expected return expression in async Task<T> block
2013-11-21 14:59:32 +01:00
Marek Safar
d12330eda7
[mcs] Reachability and flow analysis rewrite to work on resolved statements and expressions
2013-11-21 14:43:08 +01:00
Zoltan Varga
cc4049bcf2
[jit] Emit the push/pop LMF code as IR on amd64.
2013-11-21 11:47:50 +01:00
Zoltan Varga
e1e914a0cb
[jit] Avoid pushing the lmf in inlined methods. Allow the variable holding the lmf address to be allocated to a global register.
2013-11-21 11:47:50 +01:00
Miguel de Icaza
658753c9c8
Merge pull request #780 from miniBill/master
...
Fix off-by-one error in ArraySegment
2013-11-20 10:00:03 -08:00
Miguel de Icaza
748a705230
Merge pull request #814 from ranma42/fix-monop
...
[monop] Fix handling of private and filter-obsolete flags when rendering...
2013-11-20 09:34:34 -08:00
Miguel de Icaza
05007a63c5
Merge pull request #802 from alistair/universaltime_at_boundary_end
...
TimeZone.GetUtcOffset daylight savings improvements
2013-11-20 09:34:07 -08:00
Andrea Canciani
a726ea2b13
[monop] Fix handling of private and filter-obsolete flags when rendering all types
...
They were simply swapped.
2013-11-20 17:42:49 +01:00
Alex Rønne Petersen
9a587b5266
Merge pull request #807 from akoeplinger/fix-fonttest
...
Fixed a test failure that occurs when the specified font is not installed
2013-11-19 21:03:07 -08:00
Alex Rønne Petersen
114b545a2c
Merge pull request #810 from criteo/16267-SemaphoreSlim
...
[Bug 16267] SemaphoreSlim.Wait fix when no timeout
2013-11-19 21:02:33 -08:00
Alex Rønne Petersen
261cdf42e5
Merge pull request #813 from ColdPie1/mingw64fix
...
Check for __readfsdword at configure-time
2013-11-19 20:58:11 -08:00
Rodrigo Kumpera
04fd2a832c
Bump mono to 3.2.7.
2013-11-19 16:35:03 -05:00
Andrew Eikum
4f76360417
Check for __readfsdword at configure-time
...
Recent versions of mingw-w64 have moved this definition to a header
included by this file, so checking simply for GCC would cause a multiple
definition error. We should instead check for this function's
availability at configure-time.
These changes are released under MIT/X11 license.
2013-11-19 14:16:38 -06:00
Andrew Eikum
b727b34091
Replace underscores with hyphens when reading system locale
...
The locale descriptions in
<mono/metadata/culture-info-tables.h:culture_name_entries> use 'xx-yy'
format, where most current systems use 'xx_YY', including Mono itself in
<eglib/src/gmisc-win32.c:g_win32_getlocale>. In normalizing the system
locale for comparison, we should switch any underscores for dashes.
Mono used to do this, but commit
be532638f5 removed this behavior, which
causes System.Globalization.CultureInfo.CurrentCultureInfo to always
point to the invariant culture on systems with LANG similar to xx_YY.
These changes are released under MIT/X11 license.
2013-11-19 13:38:19 -06:00
Miguel de Icaza
7b737a2715
Update for coverity
2013-11-19 13:54:44 -05:00
Miguel de Icaza
6cfd02c68d
List maintainer, for scan.coverity.com
2013-11-19 13:53:59 -05:00
Zoltan Varga
54d1751b24
[sdb] Move the setup of the sdb invoke LMF structure to an arch-specific function mono_arch_init_lmf_ext ().
2013-11-19 17:14:42 +01:00
Zoltan Varga
0701d9d07f
[amd64] Instead of saving callee saved registers in the LMF in trampoline frames, save a pointer to the register array inside the trampoline frame.
2013-11-19 17:14:42 +01:00
Rodrigo Kumpera
90e5ec63d5
[bcl]CultureInfo.DefaultThreadCurrentUICulture has now been implemented. Remove [MonoTODO]
2013-11-19 10:51:15 -05:00
Zoltan Varga
b4f562d82c
[amd64] Remove the unused 'method' field from MonoLMF.
2013-11-19 15:24:46 +01:00
Sebastien Pouliot
f4dfcba64c
[linker] Allow overriding MarkCustomAttribute and expose the MarkDefaultConstructor feature to subclasses
2013-11-19 08:41:57 -05:00
Maxime Brugidou
233396aa13
ConcurrentBag staging could become empty
...
after all items have been removed from a bag, the staging dictionary
is cleaned up but never filled again.
2013-11-19 13:55:03 +01:00
Zoltan Varga
18299f080f
[llvm] Fix the handling of moves in the LICM optimization.
2013-11-19 13:16:10 +01:00
Zoltan Varga
e4bf54392a
[llvm] Decompose OP_STOREV_MEMBASE opcodes earlier since they might need write barriers.
2013-11-19 12:55:45 +01:00
Zoltan Varga
3a9ccd0683
[llvm] Implement support for OP_TLS_GET_REG on osx/amd64.
2013-11-19 12:05:04 +01:00
Zoltan Varga
12153dd3e6
[llvm] Pass the type token index to throw_corlib_exception on amd64 too.
2013-11-19 11:44:53 +01:00
Maxime Brugidou
d970f3744e
[Bug 16334] Fix ConcurrentBag.TryTake and TryPeek
...
Should return false if no result in all cases
see https://bugzilla.xamarin.com/show_bug.cgi?id=16334
2013-11-19 11:09:35 +01:00
Zoltan Varga
77e28973ac
[llvm] Make the rgctx arg a pointer type as well.
2013-11-19 05:42:23 +01:00
Zoltan Varga
f200c99c33
[llvm] Make some types more precise to decrease the number of int<->ptr conversions generated.
2013-11-19 05:28:56 +01:00
Rodrigo Kumpera
349cb638ff
[bcl] Implement CultureInfo.DefaultThreadCurrentUICulture.
2013-11-18 18:13:03 -05:00
Rodrigo Kumpera
703eb84911
[bcl]Add test for CultureInfo.DefaultThreadCurrentCulture
2013-11-18 18:13:03 -05:00
Rodrigo Kumpera
5b8f9ad666
[bcl] Implement CultureInfo.DefaultThreadCurrentCulture.
...
The way DefaultThreadCurrentCulture is to be implemented is that its current value
will always be used by a thread that didn't set a value for its culture.
This means we can't cache DefaultThreadCurrentCulture value as it's allowed to
change and threads must always show the latest value.
2013-11-18 18:13:02 -05:00
Rodrigo Kumpera
b1b2a0a8fb
[bcl]Memoize the default culture so it can be reused across threads.
2013-11-18 18:13:02 -05:00
Rodrigo Kumpera
e499793125
[bcl]Set the culture of the thread local NumberFormatter everytime.
...
the problem of changing the culture when a new value is set in the current thread
is that is doesn't work well with CultureInfo.DefaultThreadCurrentCulture.
2013-11-18 18:13:02 -05:00
Jonathan Pryor
57091eda02
[System] Add more of System.ComponentModel to MOBILE profile.
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=16071
Improve compatibility of the MOBILE profile with Desktop .NET:
Add (nearly) everything from System.ComponentModel (and nested
namespaces) _except_ for things that depend on Licensing.
This includes System.ComponentModel.Design.HelpKeywordAttribute
(requested in Bug #16071 ), many many other attributes, more
exceptions, more EventArgs subclasses, etc.
2013-11-18 16:03:49 -05:00
Rodrigo Kumpera
055eeccb76
[bcl] Add regression test for bxc #16096 .
2013-11-18 14:26:40 -05:00
Rodrigo Kumpera
5d6ca293ec
[runtime] Avoid caching member_ref tokens of dynamic images. Fixes #16096
...
SRE encodes references to self-instantiated generic types in a different way
that regular code.
This is required as there's no clear way to differentiate between an open type
and a self-instantiated type when using System.Type.
Given that restriction, code that deals with loading such methods must take
special case and not cache then as the context under generic sharing will not
be used - so it would be seen as cacheable.
When using regular instantiation the same method lookup will require the context
to be used but will hit the cache before.
This is another problem of passing the instantiation context around. It messes
up with way too much stuff.
2013-11-18 14:26:39 -05:00
Zoltan Varga
0f197300e9
[llvm] Disable the LLVM verifier, it does module wide checks leading to quadratic behavior.
2013-11-18 10:09:14 +01:00
Zoltan Varga
cb23a4fd2f
[llvm] Collect used methods only in AOT mode.
2013-11-18 10:05:23 +01:00
Zoltan Varga
f8e9706a45
[llvm] Add some micro optimizations to the LLVM/AOT code.
2013-11-18 07:52:32 +01:00
Zoltan Varga
5106e3a56d
[llvm] Use a pointer type as the type of 'this' instead of an int.
2013-11-18 06:08:29 +01:00
Zoltan Varga
31d9292013
Fix the previous commit.
2013-11-18 05:32:05 +01:00
Zoltan Varga
07d6cfef02
Bump expected LLVM version in configure.
2013-11-18 05:31:03 +01:00
Zoltan Varga
62dda65498
Upgrade the LLVM backend to LLVM e656caccc7dfb5c51c208906f0e176f0973f030f.
2013-11-18 05:20:55 +01:00
Zoltan Varga
a2be8ab682
Don't register the LLVM SSE intrinsics on arm.
2013-11-18 05:19:46 +01:00
Zoltan Varga
c11973240b
[jit] Handle the caller saved D8..D15 register during unwinding on ARM.
2013-11-18 05:19:39 +01:00
Zoltan Varga
d6d4d305df
[jit] Avoid clearing MONO_INST_FAULT flags when using explicit null checks, LLVM can move the non-faulting loads before the null checks.
2013-11-18 05:19:34 +01:00
Zoltan Varga
270fc62074
[runtime] Fix unaligned access in volatile icalls.
2013-11-16 13:05:55 +01:00
Marek Safar
521e757bfe
Bump ikvm-reflection
2013-11-16 10:44:28 +01:00
Marek Safar
384adcd6f3
Add new test
2013-11-16 09:49:47 +01:00
Marek Safar
4571ac894d
[ilasm] Correctly set empty export attributes
2013-11-16 09:49:46 +01:00
Zoltan Varga
60145c3028
Fix corlib tests.
2013-11-16 05:21:57 +01:00
Marek Safar
cd13a48d06
[mcs] Import only forwarder kind of exported types.
2013-11-15 20:13:08 +01:00
Maxime Brugidou
f346baaf96
[Bug 16267] SemaphoreSlim.Wait fix when no timeout
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=16267
2013-11-15 18:10:16 +01:00
Alex Rønne Petersen
a0cd023d06
Fix the nop opcode on some MIPS-based Loongson CPUs.
...
After much trouble building Mono in Debian/MIPS, @directhex
narrowed it down to this issue:
https://sourceware.org/ml/binutils/2009-11/msg00387.html
So since some of the 2E and 2F versions of the Loongson CPUs
break with a regular `sll zero, zero, 0` we need to issue an
`or at, at, 0`. This makes sure we don't randomly deadlock or
blow up when the CPU is under heavy load.
Yes, really.
2013-11-15 15:08:06 +01:00
Marek Safar
891d594b3f
Merge pull request #809 from criteo/16186-SqlCommand
...
[Bug 16186] SqlCommand.BeginExecuteInternal fix
2013-11-15 04:57:53 -08:00
Maxime Brugidou
a02d0c2e9a
[Bug 16186] SqlCommand.BeginExecuteInternal fix
...
If you use a stored procedure or a prepared statement, with
CommantType.StoredProcedure the ar variable is not set as the result of
onnection.Tds.BeginExecuteProcedure().
2013-11-15 13:14:08 +01:00
Zoltan Varga
689adf38b5
Mark a few corlib tests as LLVMNotWorking.
2013-11-15 09:23:19 +01:00
Zoltan Varga
d115725ade
[jit] Make the exceptions.cs test suite runnable in mobile.
2013-11-15 01:41:33 +01:00
Zoltan Varga
c3b5906efd
[sdb] Add an ExitCode property to VMDeathEvent. Fixes #16113 .
2013-11-15 00:59:16 +01:00
Jeffrey Stedfast
75d1cf2f19
[Mono.Debugger.Soft] Added FlagsAttrbite where appropriate
2013-11-14 15:05:01 -05:00
Zoltan Varga
32e5575768
[aot] Increase a buffer size to avoid an assert. Fixes #16239 .
2013-11-14 21:01:59 +01:00
Rodrigo Kumpera
18aa5e3bf0
Add some tests for #15124 .
2013-11-14 12:28:53 -05:00
Rodrigo Kumpera
bd741f0aac
[runtime]Type parsing of generics should not rely on the presence of a backtick. Fixes #15124 .
...
We previously depended on the presence of a backtick in a generic type name to try to
parse a generics argument list. This is not what the spec says and F# breaks this expectation.
The right way to handle this is to probe for array syntax.
2013-11-14 12:28:52 -05:00
Rodrigo Kumpera
4a656ad29e
[runtime]When setting a loader error, clear the previous one to avoid the leak.
2013-11-14 12:28:52 -05:00
Marek Safar
a734827992
[mcs] Assignment to value type readonly generated variables needs to check all member access expressions. Fixes #15832
2013-11-14 18:16:57 +01:00
Marek Safar
58d4cd39c7
[mcs] Missing type forwarded types should not cause type collision. Fixes #16196
2013-11-14 16:26:58 +01:00
Marek Safar
c0567c50b8
[ilasm] Fixes forwarded types namespace encoding
2013-11-14 16:26:58 +01:00
Marek Safar
5659b9a9ea
Merge pull request #808 from knocte/master
...
[System.Configuration/Test] Try to track down failure in buildbot
2013-11-14 04:41:06 -08:00
Andrés G. Aragoneses
d4ed8a8e9e
[System.Configuration/Test] Try to track down failure in buildbot
...
This TestConnectionStringRetrieval unit test (committed by me some months
ago) succeeds for me in a clean checkout, but I don't understand why it
fails in the buildbot, so let's place some sanity check in it.
2013-11-14 13:08:07 +01:00
Zoltan Varga
0927129c35
[jit] Fix the DISABLE_JIT build.
2013-11-14 04:50:13 +01:00
Sebastien Pouliot
8332e5db56
[linker] Do not import something that is not marked when sweeping type references (otherwise we might re-intoduce dependencies we're not including or need) [ #16213 ]
2013-11-13 21:42:18 -05:00
Zoltan Varga
4fc5a4ce34
[llvm] Fix type mismatches in the implementation of the atomic opcodes.
2013-11-13 22:39:38 +01:00
Rodrigo Kumpera
d51c9f1a4f
[runtime]Don't expand variant generic interfaces on arrays.
...
We don't need to expand variant interfaces in 4.5 as they work
just fine.
This saves us from loading a lot of extra metadata and inflating
spurious classes.
2013-11-13 15:54:27 -05:00
Jonathan Pryor
73f1946128
[mdoc] Flush expected output.
...
Commit 0a2c38df changed Delegate.Remove() so that it uses
Locale.GetText(), which thus introduces additional exceptions which
can be possibly thrown from Delegate.Remove().
This is similar to the situation in corlib/3d3fe6af (added
Locale.GetText() use) and mdoc/574dbc8e (updated unit tests).
2013-11-13 15:25:28 -05:00
Marek Safar
cd21aebc7a
Always show error message when type resolver produces ambiguous type. Fixes #16115
2013-11-13 20:38:18 +01:00
Marek Safar
46ccd3b4a8
[mcs] tests update
2013-11-13 14:13:38 +01:00
Rolf Bjarne Kvinge
dc1dc9ca74
Merge pull request #801 from Ninds/master
...
Setting ReceiveBufferSize & SendBufferSize on Socket (Bug 16021 & Bug 12754)
2013-11-13 00:51:37 -08:00
Marek Safar
7692600c86
Disable failing test
2013-11-13 09:46:56 +01:00
Marek Safar
5d20cad529
[sle] Enable char equality comparison. Fixes #15582
2013-11-12 20:45:13 +01:00
Rodrigo Kumpera
aea002c504
Fix the build.
2013-11-12 14:18:31 -05:00
Marek Safar
1da5ac516c
Update currency separators. Fixes #15425
2013-11-12 20:12:34 +01:00
Marek Safar
ff631b91cc
Extract CurrencyDecimalDigits using currency and not territory info. Fixes #15895
2013-11-12 20:12:34 +01:00
Marek Safar
ebe4dd413e
Add more tests
2013-11-12 20:12:33 +01:00
Rodrigo Kumpera
06ba83bfb7
[jit] Use unsigned comparisons with the IMT thunks as they can live in high memory addresses.
2013-11-12 14:01:26 -05:00
Rodrigo Kumpera
ef3524b267
[jit] Improve arm IMT debugging.
2013-11-12 14:01:25 -05:00
Rodrigo Kumpera
0a2c38df5e
[corlib] Improve the exception message in Delegate::Remove.
2013-11-12 14:01:25 -05:00
Sebastien Pouliot
cff65d2ae5
[linker] Do not remove resources from mscorlib unless it's action is set to Link
2013-11-12 13:56:15 -05:00
Alexander Köplinger
6923ba9c02
Fixed a test failure that occurs when the specified font is not installed.
...
On systems where 'Liberation Sans' is not installed out-of-the-box
(e.g. Ubuntu Server, OpenSuse Server) it falls back to 'DejaVu Sans',
which makes the GetHashCode_NameDiffers_HashesNotEqual() test fail as
the two font names are now equal. Instead we use 'Arial' and 'Courier New'
which resolve to different fonts on most systems.
Changes licensed under MIT/X11.
2013-11-12 19:07:25 +01:00
AxlPr
2e579c47fb
Fixed g_win32_getlocale
...
Implemented g_win32_getlocale function to return correct locale.
2013-11-12 09:31:11 +00:00
Marek Safar
a2850fc7da
Merge pull request #799 from kebby/master
...
Task.WhenAllCore<T> now handles empty argument list correctly. Fixes #15956
2013-11-12 00:38:48 -08:00
Marek Safar
507c434d1e
Merge pull request #805 from supershitauto/master
...
2013-11-12 Ryan Williams <[email protected] >
2013-11-12 00:11:18 -08:00
supershitauto
82eaaec7db
2013-11-12 Ryan Williams <[email protected] >
...
Renamed member variables to be compatible with Microsoft for serialization.
Slight change to Equals method for consistency.
2013-11-12 16:13:39 +11:00
Zoltan Varga
31009c93ca
[aot] Fix a typo causing crashes when using async jit info.
2013-11-11 19:22:06 +01:00
Marek Safar
d5f0a573ce
Merge pull request #804 from xplicit/attrfix
...
Fixed StackOverflow exception in Attribute.GetHashCode()
2013-11-11 06:22:35 -08:00
xplicit
850dd01678
fixed stackoverflow exception in Attribute.GetHashCode()
...
MS implementation of Attribute.GetHashCode does not depend on TypeId property, so you can return any value in TypeId and hashcode in MS.NET will be the same.
2013-11-11 20:44:59 +07:00
Narinder CLAIRE
bbd4ee4181
Socket ReceiveBufferSize & SendBufferSize set to random values.
...
Fixes :
https://bugzilla.xamarin.com/show_bug.cgi?id=16021
https://bugzilla.xamarin.com/show_bug.cgi?id=12754
Resolves:
http://lists.ximian.com/pipermail/mono-list/2013-June/050008.html
A reference to the variable bufsize, local to the else-if block was being passed to the function setsockopt hence
the properties ReceiveBufferSize & SendBufferSize were being set to garbage on the Socket class. This could and did have a SERIOUS performance hit on socket communication. It is not inconceivable that people would try to increase the
buffer sizes and inadvertently shrink them considerably with a consequence of drastically degrade performance.
Narinder Claire
narinder.claire <> gmail.com
Signed-off-by: Narinder CLAIRE <[email protected] >
2013-11-11 10:48:56 +00:00
Zoltan Varga
f0094a00b5
[aot] Remove -mattr=-avx flag to llc on amd64+osx, its no longer needed.
2013-11-11 08:56:07 +01:00
Zoltan Varga
cc395b92a3
[aot] Clean up the linker invocation code a bit.
2013-11-11 08:37:27 +01:00
Zoltan Varga
3c4f1df5a7
[aot] Use temp.bc/temp.opt.bc instead of temp.s.bc/temp.s.opt.bc as llvm temporary file names.
2013-11-11 08:23:33 +01:00
Zoltan Varga
8b870df629
[llvm] Add the strip-dead-prototypes pass to remove unused intrinsics definitions from the .bc file.
2013-11-11 08:09:24 +01:00
Zoltan Varga
994466e0e6
[aot] Use clang as the assembler on osx.
2013-11-11 06:54:34 +01:00
Zoltan Varga
2eb34b1a69
[aot] Avoid emitting a 'methods' symbol using .set methods, clang's integrated assembler doesn't seem to support it.
2013-11-11 06:35:58 +01:00
Zoltan Varga
81f7293aac
[llvm] Use i64*/i32* as the LLVM type of objrefs instead of i64/i32, the basicaa LLVM pass cannot see through the inttoptr casts we were emitting before loads.
2013-11-11 06:05:29 +01:00
Zoltan Varga
4e8e3cb466
[llvm] Update list of optimizations passed to 'opt'.
2013-11-11 05:37:08 +01:00
Zoltan Varga
f9582d2945
[llvm] Rename the MONO_INST_CONSTANT_LOAD flag to MONO_INST_INVARIANT_LOAD for consistency with LLVM.
2013-11-11 02:37:06 +01:00
Miguel de Icaza
18b72517b8
Do not justify the text
2013-11-10 20:24:54 -05:00
Zoltan Varga
cff88593e0
[llvm] Mark the load generated by OP_AOTCONST as invariant.
2013-11-11 02:01:18 +01:00
Zoltan Varga
3e14c8db3d
[jit] Add a simple loop invariant loop motion pass for use with LLVM, which moves loop invariant instructions out of loop headers into the preceeding bblock.
2013-11-10 21:11:06 +01:00
Alistair Bush
5c3c64d368
TimeZone.GetUtcOffset should use Standard UTC offsets for the period when daylight savings ends.
2013-11-10 09:36:11 +00:00
Marek Safar
25a3e0e4b8
Merge pull request #803 from Wolpertinger/patch-1
...
System.CompomentModel.Component.cs: Make disposedEvent key static
2013-11-10 00:10:43 -08:00
Alex Willmy
c749da6d02
System.CompomentModel.Component.cs: Make disposedEvent key static
...
There is no need for an instance of Component to create its own lookup key for the Disposed event. Use a shared static key instead.
2013-11-09 17:49:12 +01:00
Alex Rønne Petersen
a571d29499
Improve my previous change a bit.
...
Checking the `disposing` argument is cleaner.
2013-11-09 02:52:20 +01:00
Alex Rønne Petersen
2d18195d17
Fix an NRE in System.Timers.Timer.Dispose ().
...
This would happen because _lock is nullified by the GC during
finalization. Dispose () calls Close () which sets the Enabled
property to false, which then attempts to lock on _lock.
2013-11-09 02:18:23 +01:00
Zoltan Varga
55e766632f
[jit] Remove references to unused llvm.invariant.start/end intrinsics.
2013-11-08 23:52:29 +01:00
Zoltan Varga
f8701513e9
[jit] Make ABCREM really remove bounds checks, not just when running with -v -v -v -v.
2013-11-08 18:27:01 +01:00
Rolf Bjarne Kvinge
009689da63
[Mono.Tuner] Make ISubStep.Initialize public virtual instead of private, so that consumers can override.
...
Previously derived classes could implement ISubStep.Initialize, but after
da82237da0 this (correctly) not allowed anymore.
2013-11-08 14:50:46 +01:00
Atsushi Eno
d6225bca64
fix package build.
2013-11-08 17:09:53 +09:00
Atsushi Eno
8bccb2fb73
Merge pull request #800 from alistair/south_timezone_fix
...
Southern Hemisphere timezone fix
2013-11-07 21:02:24 -08:00
Zoltan Varga
b68ef214e1
[jit] Remove a few LLVM_MONO_BRANCH defines, we don't support non-mono versions of LLVM any more.
2013-11-08 05:24:30 +01:00
Zoltan Varga
09a0c58b7a
[jit] Fix sgen support in LLVM. Use the new LLVM 'invariant.load' metadata instead of our 'mono.noalias' metadata.
2013-11-08 05:12:41 +01:00
Zoltan Varga
623b9d0dcf
[jit] Implement support for OP_TLS_GET on amd64+llvm.
2013-11-08 04:40:25 +01:00
Zoltan Varga
3cb85f36f5
[runtime] Remove some debug spew.
2013-11-08 02:44:19 +01:00
Zoltan Varga
21d5d266e9
[runtime] Only do the stack manipulation added by 79e0856ffd on linux, since it seems to crash on osx.
2013-11-08 02:40:06 +01:00
Sebastien Pouliot
8cf7650d3d
[monolinker] Add additional preserve instruction for IReadOnlyCollection on System.Array
2013-11-07 14:42:46 -05:00
Zoltan Varga
79e0856ffd
[runtime] Preserve the call chain in mono_arch_setup_async_callback () on amd64 to prevent crashes in the libgcc unwinder ( #15969 ).
2013-11-07 04:56:57 +01:00
Tammo 'kb' Hinrichs
a3bf4b4356
Added tests for Task.WhenAll w/ empty list
2013-11-06 15:55:32 +01:00
Tammo 'kb' Hinrichs
9fce6c603c
Return empty result array when calling Task.WhenAllCore<T> with empty argument list. Fixes #15956
2013-11-06 13:21:47 +01:00
Sebastien Pouliot
613906e04b
Further reduce the chance of an NRE in WebConnection, ref: 55f400b644
2013-11-05 16:52:19 -05:00
Leonardo Taglialegne
6c3e614cc5
Fix off-by-one error in ArraySegment
2013-11-05 20:49:21 +01:00
Zoltan Varga
fe80190fc4
[runtime] Fix the osx mavericks stack size calculation in sgen too.
2013-11-05 20:18:14 +01:00
Zoltan Varga
d6673ca8ec
[runtime] Fix stack size detection on osx mavericks. Fixes #15890 .
2013-11-05 19:53:22 +01:00
Sebastien Pouliot
33663b2db8
[linker] Allow accessing more MarkStep.Mark* methods from subclasses
2013-11-05 11:44:57 -05:00
Paolo Molaro
cc7b7992ff
Reduce contention and unnecessary checks at each lookup, part of xambug #14644 .
2013-11-05 17:37:08 +01:00
Rodrigo Kumpera
cf8c83129d
[runtime]Split thread unregistration in two steps, one with no locks, one with locks taken. Fixes #15916 .
...
In order allow for arbitrary code in the profiler callback we must invoke it without
holding any runtime leaf lock - this happens quite frequently with sdb as it tries to
suspend the world on those callbacks.
So thread shutdown is now split in two phases, first one that does the no-locks part
where the thread remains suspendable afterwards and then onewith locks taken where we
do the final cleanup and final shutdown.
2013-11-05 09:59:27 -05:00
Zoltan Varga
1832b006ba
[runtime] Handle unaligned access in all interlocked icalls. Fixes #15925 .
2013-11-05 15:44:24 +01:00
Zoltan Varga
f2c5766230
[runtime] Fix warnings.
2013-11-05 15:44:24 +01:00
Rodrigo Kumpera
c2dfadefc2
Fix the mobile_static build.
2013-11-04 17:02:43 -05:00
Rodrigo Kumpera
0261d6fcea
[jit] Cleanup a bit how we handle small structs.
2013-11-04 15:48:01 -05:00
Rodrigo Kumpera
86add8950f
[jit]Add amd64 support for the new compare instructions.
2013-11-04 15:36:58 -05:00
Rodrigo Kumpera
b44597cb49
[jit]Add x86 support for the new compare instructions.
2013-11-04 15:36:54 -05:00
Rodrigo Kumpera
f047afaccb
[jit] Add some missing compare instructions which will make it easier to optimize inlined boolean expressions.
2013-11-04 15:36:50 -05:00
Rodrigo Kumpera
1ba345570f
[build]Enable passing arguments to the extension module.
...
The build argument --enable-extension-module now takes a comma separated list
of arguments that are passed down. Passing no arguments triggers the old behavior.
2013-11-04 11:04:53 -05:00
Zoltan Varga
9eda1b444b
[jit] Reduce the number of #ifdefs in the JIT code by a little.
2013-11-03 22:26:16 +01:00
Zoltan Varga
cbb0c783e6
Fix corlib tests with hard coded line numbers.
2013-11-03 22:22:07 +01:00
Zoltan Varga
c508278e9c
[jit] Get rid of the intermediate OP_..CALLVIRT opcodes, use the _MEMBASE opcodes instead.
2013-11-03 21:54:57 +01:00
Zoltan Varga
c574de067d
[jit] Add support for generating the push/pop the LMF from the LMF stack as IR instead of hand-written assembly code in the backends. Not yet used.
2013-11-03 14:38:44 +01:00
Zoltan Varga
abc18e4340
Mark some corlib tests with the LLVMNotWorking category.
2013-11-03 14:19:09 +01:00
Alistair Bush
813fe8057d
Fix compile warning and break from for loop once complete
2013-11-03 22:29:15 +13:00
Alistair Bush
883a0e0e7d
Attempt to implement GetTimeZoneData to support all hemispheres
2013-11-03 22:28:36 +13:00
Alistair Bush
23dfdd23d8
Add unit test for NZST
2013-11-03 21:56:38 +13:00
Zoltan Varga
fc169c3839
[jit] Disable the optimization added by 63eb94e451 when using LLVM, the handler bblock has no in edges, which seems to cause problems when using LLVM.
2013-11-03 01:35:50 +01:00
Zoltan Varga
762d5fb72b
[jit] Add a comment.
2013-11-02 23:53:47 +01:00
Zoltan Varga
45ce641f28
[jit] Remove OP_JMP implementation from the x86 backend, its not used there.
2013-11-02 23:45:08 +01:00
Zoltan Varga
90e0dbcc17
[jit] Clean up the tail call code a bit.
2013-11-02 22:14:18 +01:00
Zoltan Varga
56fa47629f
[sdb] Implement support for DebuggerStepThrough attribute. Fixes #15139 .
2013-11-02 20:42:59 +01:00
Marek Safar
54ecc9c6a1
Merge pull request #798 from akoeplinger/fix-test
...
Fixed an issue in corlib Makefile
2013-11-02 01:20:02 -07:00
Atsushi Eno
40d5064d04
hack SettingValueElement.Unmerge().
2013-11-02 16:54:09 +09:00
Zoltan Varga
36cf982222
[jit] Fix fbd9fd7167, a wrong version was commited.
2013-11-02 03:26:33 +01:00
Rodrigo Kumpera
0cf6982962
[fullaot] Don't use the complicated generics-heavy cache under full-aot.
2013-11-01 17:51:16 -04:00
Jonathan Pryor
55f400b644
[System] Avoid an NRE when Close() and Write() are concurrent.
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15857
Scenario (for which I couldn't easily create a testcase, but can
sketch out): Imagine using HttpClient...in a multithreaded manner:
// shared:
static CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource ();
// Thread 1
var request = new HttpRequestMessage(HttpMethod.Post, "https://www.google.com/ ") {
Content = new StringContent (new string('x', 1024)),
};
using (request)
using (HttpClient httpClient = new HttpClient())
using (HttpResponseMessage response = await httpClient.SendAsync(request,
_cancellationTokenSource.Token)) {
string responseContent = await response.Content.ReadAsStringAsync();
Console.WriteLine ("Read {0} chars", responseContent.Length);
}
// Thread 2
_cancellationTokenSource.Cancel ();
This isn't entirely farfetched; in the case of #15857 , Thread 2 was
the Main thread (due to the user clicking a button), while Thread 1
was the ThreadPool (because of async/await).
The _occasional_ result: a TargetInvocationException exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper delegate-invoke) <Module>:invoke_bool__this___HttpsClientStream (Mono.Security.Protocol.Tls.HttpsClientStream)
at System.Reflection.MonoProperty.GetterAdapterFrame[HttpsClientStream,Boolean] (System.Reflection.Getter`2 getter, System.Object obj)
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index)
--- End of inner exception stack trace ---
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index)
at System.Net.WebConnection.Write (System.Net.HttpWebRequest request, System.Byte[] buffer, Int32 offset, Int32 size, System.String& err_msg)
at System.Net.WebConnectionStream.WriteHeaders ()
at System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer)
at System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult ()
at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext ()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Net.Http.HttpResponseMessage].GetResult ()
at HttpClientAsyncCancellationRepro.Activity1+<AccessGoogleButton_Click>c__async0.MoveNext ()
Huh?
The reason why is because HttpClientHandler.SendAsync() registers a
Cancel handler with the CancellationTokenSource, and the registered
handler calls HttpWebRequest.Abort() (which eventually calls
WebConnection.Close()). This causes WebConnection.nstream to _change_
while WebConnection.Write() is executing, causing
WebConnection.nstream to go from non-null to null, which
WebConnection.Write() does not expect:
# WebConnection.CreateStream; from 5 Threadpool worker
# WebConnection.Write; from 5 Threadpool worker
# WebConnection.Close; from 1 at at System.Environment.get_StackTrace()
at System.Net.WebConnection.Close(Boolean sendNext)
at System.Net.WebConnection.Abort(System.Object sender, System.EventArgs args)
at System.Net.WebConnection+AbortHelper.Abort(System.Object sender, System.EventArgs args)
at System.Net.HttpWebRequest.Abort()
at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.<>m__0(System.Object l)
at System.Threading.CancellationToken+<Register>c__AnonStorey0.<>m__0()
at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException)
at System.Threading.CancellationTokenSource.Cancel()
at System.Threading.CancellationTokenSource.SafeLinkedCancel()
at System.Threading.CancellationTokenSource.Cancel(Boolean throwOnFirstException)
at System.Threading.CancellationTokenSource.Cancel()
at HttpClientAsyncCancellationRepro.Activity1.CancelButton_Click(System.Object sender, System.EventArgs e)
at Android.Views.View+IOnClickListenerImplementor.OnClick(Android.Views.View v)
at Android.Views.View+IOnClickListenerInvoker.n_OnClick_Landroid_view_View_(IntPtr jnienv, IntPtr native__this, IntPtr native_v)
at System.Object.e7b5b870-ea0f-434f-bc31-984f665a44ad(IntPtr , IntPtr , IntPtr )
# WebConnection.Write: checking piTrustFailure; from 5 Threadpool worker
(Yay extra logging. Notice that WebConnection creates a stream from
the ThreadPool, starts WebConnection.Write(), then before it can se
piTrustFailure the instance is Close()d, which nulls out nstream.)
Since WebConnection.Write() attempts to access the (now null)
WebConnection.nstream field, it results in a NullReferenceException,
which is wrapped into a TargetInvocationException by
System.Reflection.
The fix? As usual, "don't do that."
In this case, WebConnection.Write() has already captured
WebConnection.nstream into the local variable `s` (which thus can't be
changed by another thread). Instead of using WebConnection.nstream,
reuse the `s` local variable, which cannot be null, thus avoiding the
NullReferenceException.
(This solution could fail if HttpsClientStream ever throws e.g.
ObjectDisposedException from HttpsClientStream.TrustFailure, but at
present HttpsClientStream.TrustFailure never throws, so this is fine.)
2013-11-01 16:56:53 -04:00
Miguel de Icaza
06693aa3bb
Comment style
2013-11-01 16:49:35 -04:00
Rodrigo Kumpera
63eb94e451
[jit] Avoid linking the try block with the EH block as this produces spurious BBs during inlining.
...
The inliner could not handle optimally when we inline code inside the try block as it would be linked
with the catch block.
Since the source block would have more than one exit, the inliner would conservatively not link them together,
which hinders further local optimizations.
2013-11-01 15:27:12 -04:00
Alexander Köplinger
9550e4ce08
Fixed an issue in corlib Makefile that would make a resource test case fail which relies on satellite assemblies.
...
The satellite assembly generated by the Makefile was suffixed with '.Resources.dll', but the assembly loader looks for '.resources.dll', thus the satellite assembly wasn't found.
2013-11-01 20:08:06 +01:00
Rodrigo Kumpera
11b2e3e60f
[jit]Extract emit_init_local and use it with the ldloca optimization to handle any kind of types.
2013-11-01 15:05:55 -04:00
Zoltan Varga
53c777d22b
[jit] Fix a gsharedvt crash on x86.
2013-11-01 18:12:50 +01:00
Zoltan Varga
f3b4e40281
Revert "[sgen] Use mono_class_has_parent () instead of mono_class_has_parent_fast () in one place."
...
This reverts commit 2594b36363 .
Revert this as its wrong.
2013-11-01 17:16:18 +01:00
Zoltan Varga
2fc3754d21
Fix warnings.
2013-11-01 16:20:09 +01:00
Zoltan Varga
2594b36363
[sgen] Use mono_class_has_parent () instead of mono_class_has_parent_fast () in one place.
2013-11-01 11:19:38 -04:00
Zoltan Varga
7f61dee23f
[jit] Implement support for OP_TLS_GET_REG on amd64 linux.
2013-11-01 11:19:38 -04:00
Rodrigo Kumpera
be58704339
Fix the linker script for OSX. libtool screwed up the first attempt.
2013-11-01 10:56:55 -04:00
Zoltan Varga
19be2cd66a
Merge pull request #797 from ranma42/fix-log-message
...
[runtime] Fix AOT log message
2013-11-01 06:47:40 -07:00
Zoltan Varga
daccd00b00
Fix the amd64 build. Fix a warning.
2013-11-01 14:40:54 +01:00
Zoltan Varga
e4a37a7663
[sdb] Fix an assertion if a single step breakpoint is hit in a thread other than the thread the single stepping is done on. Fixes #14950 .
2013-11-01 14:16:15 +01:00
Zoltan Varga
fbd9fd7167
[jit] Fix the processing of LLVM compiled method frames on x86. Fixes running corlib tests with LLVM.
2013-11-01 13:14:48 +01:00
Zoltan Varga
644359eb5d
[sdb] Fix tests.
2013-11-01 13:14:47 +01:00
Andrea Canciani
1bcb295fed
[runtime] Fix AOT log message
...
In 72ca429d6c the message format was
refactored and an additional '%s' format specifier was left over.
2013-11-01 11:38:51 +01:00
Alex Rønne Petersen
7ab1185624
Fix indentation.
...
Oddly, we don't use tabs here...
2013-11-01 09:53:38 +01:00
Rodrigo Kumpera
382210f927
[jit] Pair of fixes from last merge.
2013-10-31 19:44:40 -04:00
Rodrigo Kumpera
98d59927c6
[jit] The AggressiveInlining hint now triggers class initialization so more stuff gets force-inlined.
2013-10-31 19:34:04 -04:00
Rodrigo Kumpera
a85d5e0285
[jit] Clean up emit_init_rvar and reduce code duplication.
2013-10-31 19:30:09 -04:00
Rodrigo Kumpera
d994c2ea19
[jit] Clean up usage of signature variables.
2013-10-31 18:41:18 -04:00
Rodrigo Kumpera
363b1864e8
[jit]Add an alias analysis pass to the JIT.
...
The alias analysis pass is capable of simplifying indirection against
local or temporary variables. It will replace a memory load or store
with direct access to the variable.
It does a local pass looking for addresses and replacing memory
ops with direct ops.
If any conversion happens, it does a DCE pass to try to kill those
LDADDR and then recalculate the indirect flag.
Finally, if the number of indirect variables is reduced, it does a
global to local vreg pass and another DCE pass to kill most spurious
copying.
Performance numbers on 32bits OSX:
Code size:
mcs: -11.366 (0.6%)
corlib: -15.397 (0.6%)
Execution time increased by less than 0.2% which is about the same
value of the test variance.
Numbers are not impressive since we don't perform store forwarding
or constant load elimination. Proper handling of value type aggregates
and longs would move us much further.
2013-10-31 17:37:13 -04:00
Rodrigo Kumpera
33e4ab9bde
[jit] Add counters for alias analysis.
2013-10-31 17:37:07 -04:00
Rodrigo Kumpera
8c92a0da08
[jit] Introduce has_indirection flag in MonoCompile to signal that LDADDR was generated.
...
To reduce the cost of alias analysis we detect which methods can potentially profit from
the optimization.
The current detection logic is very simple, every time LDADDR is generated, we set
has_indirection to TRUE.
2013-10-31 17:37:06 -04:00
Rodrigo Kumpera
cdd96589ad
[jit]Replace all usages of MONO_INST_INDIRECT to force regalloc with MONO_INST_VOLATILE.
...
The indirect flag should only be used to signal that the address of the given variable
has been taken. This means that it should be possible to recompute that flag from the IR.
The usage of the volatile flag remains not ideal as it conflates two separate issues
and will in the future hinder efforts to implement address based alias analysis.
2013-10-31 17:37:06 -04:00
Rodrigo Kumpera
e30fed93a6
[jit] Add new optimization flag for alias analysis.
2013-10-31 17:37:06 -04:00
Jeffrey Stedfast
bbd3769cde
[Mono.Debugger.Soft] Test the inherited Type attributes
2013-10-31 15:58:04 -04:00
Jeffrey Stedfast
b79cd5abd3
[Mono.Debugger.Soft] Fixed unit test for getting custom type attributes
2013-10-31 15:02:42 -04:00
Rodrigo Kumpera
d57d8ccd12
Revert "Implementation of Properties and Methods in MethodSignatureGenerator.cs"
...
This reverts commit 46cd052a3a .
This breaks the build.
2013-10-31 14:59:19 -04:00
Zoltan Varga
4e9f9fcf6e
[runtime] Fix the ARM build.
2013-10-31 18:05:24 +01:00
Martin Baulig
edbc59e9db
[linker]: Fix my previous commit.
...
We need to resolve all the TypeReferences before we update their scopes.
After setting the scope to null, calling Resolve() on a nested child would
crash.
2013-10-31 10:34:20 -04:00
Marek Safar
96a201f7fe
Merge pull request #794 from aakashapoorv/patch-1
...
Implementation of Properties and Methods in MethodSignatureGenerator.cs
2013-10-30 23:58:27 -07:00
aakashapoorv
46cd052a3a
Implementation of Properties and Methods in MethodSignatureGenerator.cs
...
Implemented following properties:-
CodeProvider
ContainerParameterType
DataSetClassName
IsGetMethod
PagingMethod
ParameterGenerationOption
ParameterOption
TableClassName
and following methods:-
GenerateMethod
GenerateMethodSignature
GenerateUpdatingMethods
SetDesignTableContent
SetMethodSourceContent
2013-10-31 11:00:22 +08:00
Zoltan Varga
724f6285a3
Dist README.md.
2013-10-31 02:31:41 +01:00
Zoltan Varga
72ca429d6c
[runtime] Make an AOT log message smaller.
2013-10-31 02:31:41 +01:00
Jeffrey Stedfast
e7db8e896a
[Mono.Debugger.Soft] Implemented inheritance for TypeMirror.GetCustomAttributes()
...
Fixes bug #15320
2013-10-30 15:36:24 -04:00
Miguel de Icaza
599a21d6ae
Merge pull request #795 from mono/readme2
...
[README] Minor update to content and use markdown formatting.
2013-10-30 11:45:21 -07:00
Therzok
da6191eaeb
[README] Minor update to content and use markdown formatting.
2013-10-30 20:42:27 +02:00
Miguel de Icaza
93468652f7
Rename README to README.md
2013-10-30 14:36:34 -04:00
Neale Ferguson
0c07e4a0b8
Add mono_arch_get_nullified_class_init_trampoline
2013-10-30 14:35:36 -04:00
Zoltan Varga
212e36fc3a
Fix MONO_PATH for run-test-vts in corlib.
2013-10-30 14:31:00 +01:00
Zoltan Varga
cbacd4801f
[runtime] Fix a warning.
2013-10-30 13:04:05 +01:00
Zoltan Varga
992e3d6ace
[runtime] Fix an assertion in mono_arch_context_get_int_reg () on amd64. Fixes #15786 .
2013-10-30 13:03:47 +01:00
Zoltan Varga
d8e44958d4
Dist the subdirs of class/Facades.
2013-10-30 11:31:26 +01:00
Rodrigo Kumpera
75165860c4
Fix skip_scan to handle proper load errors.
2013-10-29 15:25:20 -04:00
Marek Safar
01abc8bb07
Fixes build
2013-10-29 20:07:07 +01:00
Marek Safar
ef722ff122
When parsing documentation cref text turn on error probing for tokenizer as well. Fixes #15511
2013-10-29 19:04:27 +01:00
Zoltan Varga
93c6b94bb0
[aot] Small AOT changes. Save some constants into the AOT image instead of duplicating them in aot-runtime.c. Emit some padding so multiple symbols do not point to the same address.
2013-10-29 17:23:33 +01:00
Zoltan Varga
4c1198f3b8
[runtime] Add mno-signal-handler.h to dist.
2013-10-29 17:05:26 +01:00
Marek Safar
da82237da0
Better error message when member does not implement interface. Fixes #15369
2013-10-29 15:04:44 +01:00
Marek Safar
dd1826124a
Variables from diffent parameter block still need to be captures even if async block has no await. Fixes #15719
2013-10-29 11:51:39 +01:00
Sebastien Pouliot
5b56dc2ce2
The stripper does not care if some variables can't be referenced (they'll be removed) and new cecil has a similar fix [ #15727 ]
2013-10-28 09:56:11 -04:00
Marek Safar
9209bf5634
Better error message when type inference resolves valid types but parameter types still don't match
2013-10-28 13:08:58 +01:00
Marek Safar
b5bc9d75d5
Update lower/upper type inference fixing to match the latest C# standard. Fixes #15505
2013-10-27 21:37:34 +01:00
Marek Safar
ee09ac3bcf
Enum subtraction quirk needs to work with numeric constants only. Fixes #15520
2013-10-27 08:40:51 +01:00
Alex Rønne Petersen
0a17e9070d
Silence some noisy warnings in mono/tests/.
2013-10-27 01:23:41 +02:00
Alex Rønne Petersen
05f4546a96
Add a .gitignore file to support/minizip/ to ignore *.la *.lo files.
2013-10-27 01:15:45 +02:00
Alex Rønne Petersen
6c3edfc5eb
Ignore .dirstamp files.
2013-10-27 01:15:00 +02:00
Alex Rønne Petersen
b37ba14801
Don't assert in Interlocked.Add () icalls on 64-bit systems.
...
The checks here were wrong in the first place; they should have
checked for MONO_ARCH_HAVE_ATOMIC_ADD rather than SIZEOF_VOID_P.
But regardless, these methods need to work when invoked via
reflection, which they wouldn't previously.
2013-10-27 00:52:09 +02:00
Alex Rønne Petersen
4b6494f0c6
Define WIN32_LEAN_AND_MEAN before including windows.h.
2013-10-26 21:39:39 +02:00
Marek Safar
e00cbf2c42
Merge pull request #790 from akoeplinger/fixtests
...
Fixed a test issue where net45 methods were used in net40 profile
2013-10-26 00:11:19 -07:00
Alex Rønne Petersen
d7e3f8f1bb
Remove dead s390(x) code from mono-membar.h.
2013-10-26 05:08:19 +02:00
Alex Rønne Petersen
00bdbda27f
Enable GCC atomics on sparc32/64.
2013-10-26 05:08:16 +02:00
Alex Rønne Petersen
481abfa4f3
Correct VFP detection in mono-hwcap-arm.
...
This is supposed to be the value 64, not 100.
2013-10-25 23:31:54 +02:00
Rodrigo Kumpera
6a2975513a
[runtime]Add a wrapper around signal handlers to ease porting work.
2013-10-25 15:49:10 -04:00
Alexander Köplinger
40eaa78a8d
Fixed a test issue where net45 methods were used in net40 profile
2013-10-25 19:52:36 +02:00
Alex Rønne Petersen
c4a9aa1f8c
Add LLDB support to mono_gdb_render_native_backtraces () on POSIX.
2013-10-25 18:20:44 +02:00
Rodrigo Kumpera
12cdbfceb7
[runtime] Improve the docs on reference queues a bit.
2013-10-25 11:41:08 -04:00
Rodrigo Kumpera
248c37dfa9
[runtime] Promote the reference queue API to the public.
2013-10-25 11:40:51 -04:00
Martin Baulig
c8b403250f
[linker]: Also reference all type-references for LinkAction.Link and Save.
2013-10-25 15:15:46 +02:00
Marek Safar
707d914007
Tests update
2013-10-25 12:25:49 +02:00
Marek Safar
fcad876ef1
When looking for base implementation of generic MVAR methods use non-inflated parameter types. Fixes #15523
2013-10-25 11:59:53 +02:00
Marek Safar
f4aa1c4149
Add new tests
2013-10-25 10:42:57 +02:00
Zoltan Varga
913a2d5fbd
[runtime] Fix the windows build.
2013-10-24 22:47:45 +02:00
Zoltan Varga
6a9c585384
[runtime] Fix the sparc build.
2013-10-24 19:37:11 +02:00
Alex Rønne Petersen
0ab2677994
Prefix internal variables with mono_.
2013-10-24 17:28:51 +02:00
Rolf Bjarne Kvinge
8ff7f5748c
Add OrderedDictionary to the mobile profile.
...
Requested in support case #49635 .
2013-10-24 16:07:53 +02:00
Rolf Bjarne Kvinge
64c326af71
Move mono_get_optimizations_for_method to mini.c, since driver.c is only included in binaries, not libraries.
2013-10-24 16:07:43 +02:00
Zoltan Varga
bc4e870d2b
Add a --with-llvm=<llvm prefix> argument to configure to make the location of llvm-config explicit, instead of reading it from the PATH, which might be different on a reconfigure.
2013-10-24 01:58:34 +02:00
Rodrigo Kumpera
90690f5036
[runtime]Properly calculate the bitmap of valuetype [ThreadStatic] variables.
...
We must account that a valuetype field offset is relative to a boxed instance
and TLS memory stores a valuetype unboxed.
2013-10-23 18:09:40 -04:00
Alex Rønne Petersen
04a90dcbb0
Fix mono_gc_wbarrier_generic_store_atomic semantics.
...
It should ensure that stores are fully atomic with barriers.
2013-10-24 00:06:23 +02:00
Alex Rønne Petersen
3f6b4e4fea
Fix the semantics for System.Threading.Volatile methods.
...
This is a bit tricky. The System.Threading.Thread.Volatile* methods
don't actually guarantee atomicity; all they guarantee is that the
runtime will insert acquire barriers for loads and release barriers
for stores. The methods in the System.Threading.Volatile class,
however, require both barriers *and* atomicity.
So, we need an entirely separate set of icalls for the Volatile
class in order to get the right semantics there.
These APIs are insane.
2013-10-24 00:06:23 +02:00
Alex Rønne Petersen
41d1358f09
Add Interlocked{Read,Write}{8,16,Pointer} functions.
2013-10-24 00:06:23 +02:00
Alex Rønne Petersen
9bcda222de
Merge pull request #787 from directhex/master
...
Don't redeclare desc in mini_create_ftnptr on ppc64
2013-10-23 15:01:46 -07:00
Jo Shields
1a1c17d59c
Don't redeclare desc in mini_create_ftnptr on ppc64
2013-10-23 22:58:41 +01:00
Sebastien Pouliot
c0cbbb15d9
Merge pull request #786 from xplicit/master
...
fix DivideByZeroException in Random.Next()
2013-10-23 14:42:48 -07:00
Rolf Bjarne Kvinge
caff055609
Provide more public API to inspect MonoTypes, MonoClasses and MonoMethodSignatures.
2013-10-23 23:25:46 +02:00
xplicit
edbcf074ce
fix DivideByZeroException in Random.Next()
2013-10-24 04:09:30 +07:00
Zoltan Varga
0943037e68
[runtime] Fix a warning.
2013-10-23 21:18:45 +02:00
Zoltan Varga
c6994ed5fd
[runtime] Fix the windows build.
2013-10-23 21:18:36 +02:00
Alex Rønne Petersen
bc55637bd1
Add more missing atomic functions for MinGW.
2013-10-23 19:47:19 +02:00
Alex Rønne Petersen
93edc5e860
Add separate icall for System.Threading.VolatileRead (object&).
...
Previously, the icall that was used for the IntPtr overload was
used for this overload as well. Having a separate icall is less
error-prone for future modification as the two types are no longer
conflated.
2013-10-23 19:47:19 +02:00
Zoltan Varga
50d4232bbe
[runtime] Fix the DISABLE_JIT build on ARM.
2013-10-23 17:46:18 +02:00
Alex Rønne Petersen
80f7e1f15b
Add InterlockedExchange64 () based on GCC intrinsics for MinGW.
...
As with InterlockedCompareExchange64, MinGW appears to lack this
one from its Windows headers.
2013-10-23 15:06:09 +02:00
Sebastien Pouliot
f9bbb7c58b
Disable ClientWebSocketTest.cs (for mobile) until the type itself is added to the mobile profile (i.e. added to mobile_System.dll.sources). Fix building/running System.dll unit tests
2013-10-23 08:22:25 -04:00
Marek Safar
ab93080478
Merge pull request #784 from alesliehughes/master
...
Support for ManagementQuery and ObjectQuery classes
2013-10-23 00:17:22 -07:00
Alistair Leslie-Hughes
b1d551265a
Implement ObjectQuery
2013-10-23 08:13:34 +11:00
Alistair Leslie-Hughes
13d44dbcbe
Implement ManagementQuery QueryString
2013-10-23 08:13:33 +11:00
Alistair Leslie-Hughes
596921b77d
Implement ManagementQuery QueryLanguage
2013-10-23 08:13:32 +11:00
Alex Rønne Petersen
3be7b103d8
Use THREAD_INFO_TYPE consistently in mono-threads.h.
2013-10-22 23:09:14 +02:00
Zoltan Varga
ea4d594639
[runtime] Add a missing TLS key for LMF addr.
2013-10-22 19:44:02 +02:00
Rodrigo Kumpera
3153dec190
Fix this test to work on 2.0.
2013-10-22 13:12:05 -04:00
Zoltan Varga
6be13313df
[runtime] Fix the interlocked increment/decrement/add functions.
2013-10-22 15:11:44 +02:00
Zoltan Varga
0d40321933
[runtime] Centralize the processing of MonoTrampInfo structures into the mono_tramp_info_register () function, to reduce code duplication.
2013-10-22 14:35:46 +02:00
Zoltan Varga
d48b2f6a29
[runtime] Use mono_restore_context () to reduce code duplication in the back ends.
2013-10-22 14:12:38 +02:00
Zoltan Varga
9be988fc33
[runtime] Use mini_exception_id_by_name () on ARM.
2013-10-22 14:05:43 +02:00
Zoltan Varga
3ee03145ff
[runtime] Use mini_get_nullified_class_init_trampoline () to reduce code duplication in the back ends.
2013-10-22 14:04:50 +02:00
Zoltan Varga
f62ffb9b89
[runtime] Add a mini_get_nullified_class_init_trampoline () helper function.
2013-10-22 07:33:41 -04:00
Zoltan Varga
e6f000945f
[runtime] Fix gsharedvt support in mono_helper_compile_generic_method ().
2013-10-22 07:32:27 -04:00
Zoltan Varga
3b5d644f27
[runtime] Add a mono_restore_context () helper function.
2013-10-22 07:28:56 -04:00
Zoltan Varga
7226a70c87
[runtime] Avoid crashing in mini_jit_info_table_find () if the current thread is not set.
2013-10-22 07:27:35 -04:00
Zoltan Varga
dde6bb81f5
[jit] Add a mini_exception_id_by_name () helper function.
2013-10-22 07:26:01 -04:00
Zoltan Varga
7994b74bc4
[jit] Add a MONO_TRAMPOLINE_TYPE_HAS_ARG macro which determines whenever a given trampoline type receives its argument directly in a register.
2013-10-22 07:22:59 -04:00
Zoltan Varga
71a7f55907
[jit] Add a 'relocation' field to MonoJumpInfo which contains an architecture specific relocation constant so mono_arm_patch_code () doesn't have to decompile the patch site to determine the type of patching to do.
2013-10-22 07:21:37 -04:00
Zoltan Varga
60c5ef5e2b
[jit] Add a 'call_info' field to MonoCallInst so the OP_CALL_... opcodes have access to the calling convention information computed in mono_arch_emit_call ().
2013-10-22 07:18:28 -04:00
Zoltan Varga
16d53c2dd7
runtime] Print unwind information in the JIT debug output.
2013-10-22 07:16:02 -04:00
Zoltan Varga
e833cd7669
[jit] Add a MONO_ARCH_EMULATE_LONG_MUL_OVF_OPTS define for architectures which have mul but not mul.ovf opcodes.
2013-10-22 07:14:39 -04:00
Zoltan Varga
5557499b1a
[runtime] Make --regression work when a domain is not yet setup during porting.
2013-10-22 06:51:14 -04:00
Zoltan Varga
47fcf8de8c
[sdb] Fix support of vtypes passed by ref.
2013-10-22 06:48:47 -04:00
Zoltan Varga
e6fcd7e886
[runtime] Avoid running tests using AC_TRY_RUN () when cross-compiling.
2013-10-22 06:45:43 -04:00
Zoltan Varga
fb4dd485c9
[runtime] Use a cache in mono_create_rgctx_lazy_fetch_trampoline () in the full-aot case as well.
2013-10-22 06:42:37 -04:00
Zoltan Varga
4e6c494b30
[sdb] Add an IncludeSubclasses property to ExceptionEventRequest, to control whenever to include subclasses of the exception type. Fixes #15541
2013-10-22 08:38:07 +02:00
Sebastien Pouliot
64eff753bd
Merge pull request #730 from LogosBible/locale-changes
...
Improving the retrieval of the user's locale on Apple systems.
2013-10-21 14:19:26 -07:00
Sebastien Pouliot
ba6de2d5cc
Fix condition (for MOBILE) that excluded System.Xml.Schema/Extensions.cs. Removed the condition since every profile we now support includes this [ #15552 ]
2013-10-21 17:15:53 -04:00
Jeffrey Stedfast
e028273cff
Fixed a some compiler warnings
2013-10-21 17:15:02 -04:00
Alex Rønne Petersen
c17e2527d1
Add comment explaining the TARGET_OSX oddity in atomic.c.
2013-10-21 23:10:44 +02:00
Alex Rønne Petersen
e6b5336bb9
Add a couple of casts to scan_thread_data () to shut GCC up.
...
This would result in the following warnings on e.g. PowerPC:
sgen-gc.c: In function 'scan_thread_data':
sgen-gc.c:4045:6: warning: passing argument 1 of 'conservatively_pin_objects_from' from incompatible pointer type [enabled by default]
sgen-gc.c:1467:1: note: expected 'void **' but argument is of type 'void * (*)[32]'
sgen-gc.c:4045:6: warning: passing argument 2 of 'conservatively_pin_objects_from' from incompatible pointer type [enabled by default]
sgen-gc.c:1467:1: note: expected 'void **' but argument is of type 'void * (*)[32]'
2013-10-21 23:10:15 +02:00
Rodrigo Kumpera
cd474dc552
Bump mono to 3.2.5
2013-10-21 15:25:46 -04:00
Rodrigo Kumpera
0a4a52cb96
[mkbundle] New mkbundle options for better handling integration with native libs.
...
New --skip-scan flag allow us to handle resource assemblies as opaque data.
New --static-ctor flag allows us to better interop with weird C libraries requirements.
2013-10-21 15:22:47 -04:00
Miguel de Icaza
2a4a459021
Merge pull request #717 from mono/client_websockets_impl
...
Add implementation of ClientWebSocket
2013-10-21 11:28:04 -07:00
Alex Rønne Petersen
0b3c3126ea
Merge pull request #268 from pcc/menudeactivate
...
Cause MenuDeactivate event to be delivered when appropriate
2013-10-21 11:21:06 -07:00
Alex Rønne Petersen
e946a6cdeb
Merge pull request #260 from pcc/topmost
...
X11: improve handling of WS_EX_TOPMOST
2013-10-21 11:19:47 -07:00
Michael Hutchinson
b86af48486
Merge pull request #565 from rneatherway/master
...
This is a possible fix for finding xml documentation files
2013-10-21 11:09:23 -07:00
Alex Rønne Petersen
457a8453f7
Merge pull request #587 from madewokherd/gdipdllmap
...
Ignore the gdiplus dllmap on Windows.
2013-10-21 10:00:26 -07:00
Alex Rønne Petersen
67d6c8f685
Remove commented-out irix path from configure.in.
2013-10-21 18:17:10 +02:00
Alex Rønne Petersen
e4d2cc49a0
Add mono_gc_wbarrier_generic_store_atomic () function.
...
This is used in place of mono_gc_wbarrier_generic_store () when
we need the store to be atomic with release semantics.
2013-10-21 18:08:16 +02:00
Alex Rønne Petersen
55d338134d
Add an extension point in atomic.c.
2013-10-21 18:08:15 +02:00
Alex Rønne Petersen
1b9ca03c22
Use slow 64-bit cmpxchg for 32-bit ARM, MIPS, and PowerPC.
...
GCC doesn't provide a 64-bit __sync_val_compare_and_swap intrinsic
for these architectures.
2013-10-21 18:08:05 +02:00
Alex Rønne Petersen
53398c4641
Correct our implementation of Thread.VolatileRead ()/VolatileWrite ().
...
We have various issues:
* All of the functions assumed that doing volatile loads/stores was
enough, when load-acquire, store-release semantics were actually
needed. This may have worked before purely by chance. We now use
proper memory barriers so that we don't have to hope for the
compiler and CPU to do the right thing.
* Removes the hack for 64-bit quantities on 32-bit systems. This is
no longer needed now that we use explicit memory barriers in
these functions. Also, these functions are not supposed to do
atomic reads/writes in the first place - they're purely about the
memory barrier semantics.
* The VolatileWrite (object&, object) overload was not using the
volatile qualifier at all, thus not getting volatile semantics
as per: http://gcc.gnu.org/onlinedocs/gcc/Volatiles.html
2013-10-21 17:59:30 +02:00
Alex Rønne Petersen
421e1beea5
Use InterlockedAdd64 () for Interlocked.Add (long&, long).
2013-10-21 17:59:29 +02:00
Alex Rønne Petersen
89a99c2634
Use InterlockedAdd () for Interlocked.Add (int&, int).
2013-10-21 17:59:29 +02:00
Alex Rønne Petersen
d785b33891
Use InterlockedExchange64 () for Interlocked.Exchange (double&, double).
2013-10-21 17:59:28 +02:00
Alex Rønne Petersen
b9db6c2071
Use InterlockedExchange64 () for Interlocked.Exchange (long&, long).
2013-10-21 17:59:28 +02:00
Alex Rønne Petersen
15f9be5d03
Use InterlockedDecrement64 () for Interlocked.Decrement (long&).
2013-10-21 17:59:28 +02:00
Alex Rønne Petersen
bb62cced7e
Use InterlockedIncrement64 () for Interlocked.Increment (long&).
2013-10-21 17:59:27 +02:00
Alex Rønne Petersen
ab90040305
Use InterlockedRead64 () for Interlocked.Read (long&).
2013-10-21 17:59:27 +02:00
Alex Rønne Petersen
e02b11b708
Use __sync_sub_and_fetch () for atomic decrements for clarity.
2013-10-21 17:59:26 +02:00
Alex Rønne Petersen
e48f61dc84
Move definition of NEED_64BIT_CMPXCHG_FALLBACK to top of atomic.c.
2013-10-21 17:59:26 +02:00
Alex Rønne Petersen
a92cfede81
Add interlocked read/write functions to atomic.c/.h.
...
These are guaranteed to have sequential consistency regardless
of the bitness of the machine they run on.
2013-10-21 17:59:25 +02:00
Alex Rønne Petersen
ec96b2dc22
Add implementations of various interlocked functions to atomic.c/.h.
...
Mainly 64-bit variants, but also InterlockedAdd ().
2013-10-21 17:59:21 +02:00
Alex Rønne Petersen
e601897f3f
Use mono_memory_barrier () for Thread.MemoryBarrier ().
...
This gets rid of the rather hacky lock-based barrier.
2013-10-21 15:57:25 +02:00
Alex Rønne Petersen
7fae16348a
Kill the Cygwin hack in mono-membar.h.
...
We only support GCC 4.x in Cygwin now.
2013-10-21 15:57:25 +02:00
Alex Rønne Petersen
6d2008b013
Remove MONO_ARCH_SAVE_REGS from threading icalls.
2013-10-21 15:57:25 +02:00
Alex Rønne Petersen
a3632c6274
Use GCC atomics on s390x.
2013-10-21 15:57:25 +02:00
Alex Rønne Petersen
bf0b8a1d1a
Remove unneeded ARM code from atomic.c.
2013-10-21 15:57:24 +02:00
Alex Rønne Petersen
a33ce0c39f
Use host preprocessor identifiers in atomic.c, not target.
...
Here we care about the system we run on, not the kind of
system that Mono is built to compile for.
2013-10-21 15:57:24 +02:00
Alex Rønne Petersen
fd6f60245f
Simplify the ifdeffery in atomic.c/.h a bit.
2013-10-21 15:57:24 +02:00
Alex Rønne Petersen
9dd59c1f13
Remove unneeded NetBSD code path from atomic.h.
2013-10-21 15:57:24 +02:00
Marek Safar
17d4130d1b
Merge pull request #783 from alistair/timezoneinfo_fix_for__convert_utc_to_local
...
Bug 15373: Return Local DateTime instead of Unspecified for >net_4_0
2013-10-19 08:34:26 -07:00
Alistair Bush
98f1c8c584
Return Local DateTime instead of Unspecified for >net_4_0
2013-10-19 23:41:17 +13:00
Mark Probst
a57f9ce8a0
[runtime] JIT debugging option to optimize only single methods.
...
The --single-method option run regression tests from an assembly, like
--regression. Instead of going through a list of optimizations,
however, it takes one optimization combination, runs all tests with
all optimizations turned off, while gathering a list of which methods
were jitted. Then, for each jitted method, it runs all tests again,
with the optimizations applied to only that one method, stopping as
soon as a test fails. Example:
mono --single-method=branch,peephole basic-float.exe
2013-10-18 16:19:00 -07:00
Zoltan Varga
b17461cb8a
Disable a corlib test assertion which is no longer true.
2013-10-18 22:24:04 +02:00
Rodrigo Kumpera
9acd6e303d
Merge pull request #768 from madewokherd/gcnotdll
...
Define GC_NOT_DLL for included boehm on win32.
2013-10-18 11:09:11 -07:00
Zoltan Varga
930e8fe970
[sgen] Set the TLS key offsets in one place in create_allocator ().
2013-10-18 19:28:39 +02:00
Zoltan Varga
6633bf1697
[aot] Add the JIT icall wrappers later, so it can pick up the JIT icalls registered by the managed allocators.
2013-10-18 19:25:09 +02:00
Zoltan Varga
8ff186652f
[runtime] Fix the build.
2013-10-18 18:32:28 +02:00
Zoltan Varga
cb2e262116
[runtime] Really fix the build.
2013-10-18 18:14:25 +02:00
Zoltan Varga
88bbc34b27
[runtime] Fix the build.
2013-10-18 18:10:30 +02:00
Zoltan Varga
c94acdd085
[runtime] Add a missing file.
2013-10-18 18:01:44 +02:00
Zoltan Varga
2735588c0c
[runtime] Clean up the usage of the CEE_MONO_TLS opcode in wrappers. Instead of passing it the tls offset, pass one of the TLS_KEY_ constants defined in mono-tls.h, and resolve the offset in the JIT. This allows these wrappers to work with AOT.
2013-10-18 17:54:20 +02:00
Zoltan Varga
dc0bf73e84
Merge pull request #781 from directhex/master
...
SPARC build fixes
2013-10-18 02:22:32 -07:00
Jo Shields
842b67d546
Define REG_SP on SPARC in sgen-archdep.h, if needed.
...
This definition is stolen from exceptions-sparc.c
2013-10-18 09:36:00 +01:00
Jonathan Lima
49017bc699
Fix MSVC build.
2013-10-18 10:19:33 +02:00
Jo Shields
dd149e75e6
Add missing ; characters to mono-hwcap-sparc.c. Fixes build failure.
2013-10-18 09:07:52 +01:00
Atsushi Eno
6dae772d49
Merge pull request #762 from echampet/wsdl
...
[FIX] Bug 267: wsdl fails with "Argument is out of range."
2013-10-18 00:52:08 -07:00
Atsushi Eno
87f80d1139
Merge pull request #766 from remobjects/resx-delete-on-clean
...
When generating resources, it intends to add the .resources file to the ...
2013-10-18 00:49:51 -07:00
Atsushi Eno
0075f39215
Merge pull request #767 from ovatsus/Bug14922
...
Fix for #14922
2013-10-18 00:48:26 -07:00
Zoltan Varga
6934f160db
Fill out AssemblyName.ProcessorArchitecture for assemblies. Fixes #15347 .
2013-10-17 11:53:17 +02:00
Marek Safar
4387da1524
Better check for open generic types in probing expression. Fixes #15422
2013-10-16 20:21:18 +02:00
Marek Safar
b055fa22df
Fixes too early optimization of binary &&/& bool constants. Fixes part of #15392
2013-10-16 19:17:25 +02:00
Martin Baulig
346b2ee260
Dummy test commit.
2013-10-16 11:24:57 +02:00
Mark Probst
5db0301dc8
[sgen] Don't crash on nurseries of 512M or larger.
2013-10-15 16:47:18 -07:00
Martin Baulig
65aefd9749
[PCL]: Update the PCL Facade Assemblies.
2013-10-15 20:31:03 +02:00
Zoltan Varga
b322a6e410
[aot] Only use an AOT shortcut in the trampoline code if its safe to do so. Fixes #15345 .
2013-10-15 17:01:24 +02:00
Martin Baulig
f0fe1fbd79
Makefile magic ...
2013-10-15 14:49:49 +02:00
Marek Safar
3a7e67b4c5
Fixes CodeDom regression introduced by 66d4b82a87
2013-10-14 19:17:52 +02:00
Marek Safar
394591e203
Merge pull request #779 from LogosBible/UTF8Encoding
...
Fixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.
2013-10-14 00:32:13 -07:00
Martin Potter
1b318701b9
Fixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.
...
The previous implementation of GetMaxByteCount has two bugs: it incorrectly took into account the byte order mark and it was taking the max of a byte count (3) and a character count (EncoderFallback.MaxCharCount). This could result in returning the max number of bytes required to convert a string that was less than the number bytes used when converting the string.
GetMaxCharCount did not previously take into account DecoderFallback.MaxCharCount or the fact that there may still be part of a surrogate pair left on the buffer from a previous call to convert.
I removed the #if NET_2_0 conditionals and NotWorking category since these methods now return results consistent with Microsoft's implementation. I also added two simple tests for custom EncoderFallback and DecoderFallback cases.
This commit is licensed under MIT/X11.
2013-10-13 14:37:45 -07:00
Jeffrey Stedfast
779127e0a5
Merge pull request #774 from DavidS/patch-1
...
Minor fix to avoid ArgumentOutOfRangeException
2013-10-12 15:07:27 -07:00
Zoltan Varga
0cbc4ad6c0
[runtime] Run the tests in mono/tests in sorted order.
2013-10-12 15:17:59 +02:00
Zoltan Varga
d4741184d3
[xdebug] Avoid using a MonoDebugMethodJitInfo structure after it has been freed. Fixes #15090 .
2013-10-12 02:49:10 +02:00
Sebastien Pouliot
cb19547a83
[mono-api-html] Several indexer properties (Item) can have the name (with different parameters)
2013-10-11 16:44:59 -04:00
Sebastien Pouliot
24169a083e
[mono-api-html] Output nested type correctly (was missing the declaring type name)
2013-10-11 11:05:17 -04:00
Marek Safar
d2b121244a
The first definite assignment cleanup
2013-10-11 15:35:28 +02:00
Mark Probst
ace1e095ce
[regalloc2] Handle sreg3.
2013-10-10 16:55:01 -07:00
Mark Probst
ce6ec03e5d
[regalloc2] Lazily allocate intervals.
2013-10-10 16:55:01 -07:00
Rodrigo Kumpera
cb04c5a12d
Merge pull request #777 from nealef/master
...
Remove debug message
2013-10-10 11:44:45 -07:00
Neale Ferguson
d6a8d9880e
Remove debug message
2013-10-10 14:37:43 -04:00
Rodrigo Kumpera
796c64439b
Merge pull request #776 from nealef/master
...
Fix memory leaks in Oracle Client. The largest leaks come from the curso...
2013-10-10 11:26:54 -07:00
Neale Ferguson
0b26afc182
Fix memory leaks in Oracle Client. The largest leaks come from the cursors being created but never freed in OracleParameter.cs. The size of the memory used by these cursors varies from tens to thousands of bytes depending on the statement being executed. Several hours of transactions can lead to OOM errors. The other fixes are relatively minor but they do clean up other unmanaged memory not being returned.
2013-10-10 13:17:17 -04:00
Aaron Bockover
d075623275
bxc#13642: MacNetworkChange: implement using managed code
...
The previous version used SCNetworkReachability
in C inside libMonoPosixHelper. This was less
than ideal and made it more problematic for
supporting iOS as it doesn't actually link
MPH in.
Rewrite using P/Invokes directly into the
SCNetworkReachability APIs for Mac OS X and
iOS.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=13642
for iOS and Mac OS X.
2013-10-10 12:35:47 -04:00
Marek Safar
a55758d136
Compound assignment of optimized binary constant needs to decompose it first. Fixes #15315
2013-10-10 16:09:31 +02:00
Marek Safar
87d6328f2f
Better debugger visualization for .net 1.1 style custom collections
2013-10-10 16:09:31 +02:00
Sebastien Pouliot
8113f9b237
[mono-api-html] Output C# 'char' instead of 'System.Char'
2013-10-10 08:12:13 -04:00
Sebastien Pouliot
93399696e0
[mono-api-html] Do not produce (near-)empty files when no (public) changes are detected
2013-10-10 08:12:13 -04:00
Marek Safar
66d4b82a87
Ensure that CodeDom generated temporary directory is always created. Fixes #12202
2013-10-10 11:54:20 +02:00
Sebastien Pouliot
a812e9a24b
[mono-api-html] Show 'static' fields as such
2013-10-09 20:59:21 -04:00
Sebastien Pouliot
4407f88ea6
Process/compare/output method's generic parameters [ #15311 ]
2013-10-09 20:31:13 -04:00
Marek Safar
6e5cd4b5cf
Anonymous type are shared across module hence need module counters.
2013-10-09 20:01:44 +02:00
Rodrigo Kumpera
6b71c73790
Fix net_2_0 test.
2013-10-09 12:58:44 -04:00
Jonathan Pryor
4490185a8d
Merge pull request #775 from directhex/fix-gendarme-doc-generation
...
[monodoc] Ensure we don't try to use <Parameters/> when it might be null. Fixes Gendarme doc generation.
2013-10-09 08:07:05 -07:00
Jo Shields
0e08c1f9c2
[monodoc] Support fields that match operator naming convention
2013-10-09 16:02:35 +02:00
Jo Shields
94eb62fdb9
[monodoc] Add a test for ba222d4eb9
2013-10-09 15:57:47 +02:00
Jo Shields
ba222d4eb9
[monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendarme doc generation.
2013-10-09 15:31:23 +02:00
Gustavo Guerra
6c8c17c932
Adjust defines to check for 4_0 instead of 3_0
2013-10-09 13:38:35 +01:00
Marek Safar
0e040e2244
anonymous: move counters to TypeContainer
...
With the anonymous counters on ModuleContainer,
anonymous method and type names will be generated
in a way that depends on the order of the sources
passed to mcs. This can cause undesirable API
and IL differences.
Moving the counters to TypeContainer instead
avoids this issue.
2013-10-09 14:27:19 +02:00
Marek Safar
e0b711beaf
Enum IConvertible can convert to same enum or System.Enum. Fixes #15289
2013-10-09 14:04:47 +02:00
Marek Safar
d6f05668d4
Cleanup redundant code
2013-10-09 13:52:10 +02:00
Marek Safar
5d96c0de63
Simplify work item registration for internal work items
2013-10-09 12:51:16 +02:00
Marek Safar
e591a1d63c
Remove redundant initialization
2013-10-09 11:39:14 +02:00
Marek Safar
f410e545e2
Allow to queue multicast delegates in thread-pool
2013-10-09 11:26:34 +02:00
Marek Safar
e5bd8bc98b
Release continuation ancestor before running. Fixes #15036
2013-10-09 10:43:41 +02:00
David Schmitt
bb3d1b7ca3
Minor fix to avoid ArgumentOutOfRangeException
...
When the file is empty, data[0] would throw and swallow the original exception.
2013-10-09 10:36:37 +02:00
Marek Safar
f33bd8ad7f
Adds async type inference of void return type. Fixes #15238
2013-10-08 19:30:32 +02:00
Marek Safar
cf2ac2171b
Make Task.Delay more reliable. Fixes #14585
2013-10-08 10:16:19 +02:00
Jeffrey Stedfast
c82aea5fb2
[System.ComponentModel.DataAnnotations] Implemented EmailAddressAttribute.IsValid()
2013-10-07 17:51:17 -04:00
Atsushi Eno
8d401cb39d
Element() and Elements() could also reduce use of extraneous iterators.
2013-10-08 01:57:17 +09:00
Jonathan Pryor
a601831f63
Fallback to $LANG if $LC_ALL isn't set.
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15214
This is a regression introduced in be532638 .
Xamarin.Android assumes that the $LANG environment variable can be
used to control System.Globalization.CultureInfo.CurrentCulture,
setting LANG based on the current Java locale.
This was broken in be532638 because $LANG was no longer being checked
to determine the default locale, as $LC_ALL was not set.
Fix the fallback logic so that $LANG is checked when $LC_ALL is not.
2013-10-07 12:31:06 -04:00
Atsushi Eno
5d25022423
reduce memory use on Attribute() caused by Attributes().
2013-10-08 01:25:51 +09:00
Marek Safar
43a0a9d47f
Inline more is instance checks
2013-10-07 17:04:13 +02:00
Marek Safar
3fbd4b873c
Cache only resolved types not expression to report correct error location. Fixes #15035
2013-10-07 15:04:09 +02:00
Atsushi Eno
2a52ec9e36
in XLinq XObject there is no need to instantiate XObjectEventArgs every time.
2013-10-07 21:32:10 +09:00
Zoltan Varga
f4ada63ae8
Merge pull request #771 from madewokherd/rvamap
...
For module handles, only check that rva's are within the image size.
2013-10-05 21:12:58 -07:00
Sebastien Pouliot
dd197f0c5f
Ignore some asserts since the validation were removed
2013-10-04 17:08:48 -04:00
Miguel de Icaza
096c647c80
FixBuild
2013-10-04 17:07:14 -04:00
Marek Safar
009d937c1d
Better check for instance equality of generic types. Fixes #15100
2013-10-04 16:42:57 -04:00
Marek Safar
7585958bfd
Fix some code issue warnings
2013-10-04 16:42:57 -04:00
Zoltan Varga
fd7cec894d
[sgen] Use gcc bitcount intrinsics where appropriate.
2013-10-04 15:54:17 -04:00
Miguel de Icaza
8f604d71f1
This regex was wrong in the first place, and second, it uses CC code from Stackoverflow
2013-10-04 15:47:22 -04:00
Miguel de Icaza
9d13d1aeb0
Remove CodeProject licensed code
2013-10-04 15:43:47 -04:00
Miguel de Icaza
58cf2e272a
Add actual source
2013-10-04 15:42:49 -04:00
Miguel de Icaza
a52849e336
Fix inacurrate reference
2013-10-04 15:39:09 -04:00
Vincent Povirk
7a4f59d121
For module handles, only check that rva's are within the image size.
...
This commit licensed as MIT/X11.
2013-10-04 13:33:56 -05:00
Rodrigo Kumpera
48266c8b04
Merge pull request #770 from abock/master
...
mdbrebase: fix prefix replacement, add regex & filename modes
2013-10-04 09:55:00 -07:00
Aaron Bockover
b8be8f0e63
mdbrebase: fix prefix replacement, add regex & filename modes
...
Existing prefix replacement was incorrect as
it tested for a prefix but performed a multi
search and replace instead of just a prefix
replace. Fix that.
Add -r|--regex mode to indicate that path
replacement should be performed with regular
expressions.
Add -f|--filename mode to indicate that
replacements should be performed only on
a file name and not the full absolute path.
Add -v|--verbose mode to print the replacements
that are performed.
2013-10-04 10:26:24 -04:00
Gustavo Guerra
0fd61547a1
[xBuild] Don't set any VisualStudioVersion
2013-10-04 10:49:00 +01:00
Sebastien Pouliot
8e037f7cef
[mdoc] Fix output of GenericParameter (Cecil now overrides DeclaringType since 60ce19429e9cfaa770d72c2f395fdcdf11eb0f7b) not to include namespace (and match previous, correct, output)
2013-10-03 21:59:41 -04:00
Jonathan Pryor
eda41be355
Support deserializing relative Uris. Fixes #15169 .
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15169
2013-10-03 11:06:21 -04:00
Marek Safar
a769cce0b7
Fixes regression caused by 3912066fe1 change
2013-10-03 09:07:45 -04:00
Rodrigo Kumpera
d7cc362ebd
Merge pull request #769 from schani/fix-exception-throw-signal
...
[x86] Fix bug when getting a signal while throwing exception.
2013-10-02 14:45:09 -07:00
Marek Safar
7e01f047fa
Emit better debugger attribute for stepping over state machine initialization
2013-10-02 17:29:59 -04:00
Sebastien Pouliot
7885214216
Use more detailled assert messages in some, randomly failing, Timer unit tests (to help track #14305 )
2013-10-02 16:28:12 -04:00
Zoltan Varga
3e745070db
[runtime] Save MonoTrampInfo structures in a list so mono_print_method_from_ip () would work on trampolines.
2013-10-02 13:20:43 -04:00
Gustavo Guerra
b8a031d583
[xBuild] Add missing VisualStudioVersion propety which was introduced in VS2012
2013-10-02 16:12:29 +01:00
Mark Probst
3f587a4ec5
[x86] Fix bug when getting a signal while throwing exception.
2013-10-02 10:58:53 -04:00
Mark Probst
8828fafe29
[AMD64] Fix bug when getting a signal while throwing exception.
...
This is a very rarely occurring bug that's also still present on x86
and possibly other architectures, as well.
2013-10-02 10:06:50 -04:00
Atsushi Eno
2f7631188b
revive XSLT standalone tests (which was broken because of dependency on too old nunit and build profiles).
2013-10-02 23:04:44 +09:00
Zoltan Varga
6622e98ec6
[runtime] Fix a runtime test which got broken by the newly added methods to the Marshal class.
2013-10-02 09:24:32 -04:00
Gustavo Guerra
92eda1e2a6
[xBuild] Fix use of properties in project references when those properties use MSBuildExtensionPath after expanded
2013-10-01 21:45:54 +01:00
Robin Neatherway
80dea22861
[xBuild] Fix compilation for Mono 2.0
2013-10-01 21:45:13 +01:00
Martin Baulig
714efcf7d1
[System]: Fix System.IO.Compression.CompressionLevel enum.
2013-10-01 12:48:57 -04:00
Sebastien Pouliot
f7882be852
Relax name check when deserializing a WindowsIdentity instance as the name can be empty (e.g. iOS7 simulator will hide the user name) [ #12789 ]
2013-09-30 20:39:14 -04:00
Sebastien Pouliot
f5c5728ba6
[mono-api-html] Better handling of generic types (so they can be simplified and displayed correctly, e.g. for arrays)
2013-09-30 17:32:57 -04:00
Sebastien Pouliot
2ce488024f
[mono-api-html] Fix ending quote for non-string fields
2013-09-30 17:32:56 -04:00
Marek Safar
3912066fe1
Anonymous method with this access inside an iterator needs to initialize captured this field from iterator's copy. Fixes #14926
2013-09-29 17:58:19 -04:00
Gustavo Guerra
f7a787b140
[xBuild] Fix Import elements with the combination of wildcards and absolute paths
...
Used in the .targets files shipped with VS2013
2013-09-29 21:28:56 +01:00
Gustavo Guerra
29bb48cdc7
[xBuild] Support for ImportGroup element
...
Used in the .targets files shipped with VS2013
2013-09-29 21:26:00 +01:00
Gustavo Guerra
ad8b4d7a4b
[xBuild] Suport >= in string conditions
...
e.g: '$(MSBuildAssemblyVersion)' == '' and ('$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' >= '12.0'), used in the .targets files shipped with VS2013
2013-09-29 21:22:47 +01:00
Gustavo Guerra
fed01f9b44
[xBuild] Support use of properties defined in Choose elements in project references
...
This is used by the .fsproj files generated by VS2013 which use a Choose element to set the location of the F# targets file to import
2013-09-29 21:21:34 +01:00
Gustavo Guerra
b9a4200cae
[xBuild] Support ToolsVersion 12
...
From VS2013, MSBuild is now decouple from the .NET Framework and is a separate redistributable. This means it has a new location and version numbering scheme. There are also some addition MSBuild properties because of this
2013-09-29 21:13:58 +01:00
Sebastien Pouliot
6336e516d3
Fix potential NRE and give better output for fields and some types
2013-09-28 13:07:17 -04:00
Atsushi Eno
99bcb28944
Add ConsoleLoggerTest and fixed implementation to match .NET implementation.
2013-09-28 20:58:52 +09:00
Atsushi Eno
d8b8cab32a
implement some "new in 4.0" build event args types.
2013-09-28 20:57:50 +09:00
Rodrigo Kumpera
44545f6cc2
Revert "Allow workitems to startup faster and reduce polling thread interval in the threadpool."
...
This commit is causing unbound growth in the number of threads for a series of workloads.
It's leading a sgen test to crash with 800 tp threads around, which doesn't make sense on a
4 cores system with default TP configuration.
This reverts commit 3c347d5d3a .
2013-09-27 19:51:54 -04:00
Rolf Bjarne Kvinge
28a6623aa9
[Mono.Tuner] Remove unused field.
2013-09-27 15:03:42 +02:00
Atsushi Eno
3579ae4ec7
Add some "new in 4.0" API regarding build event args.
2013-09-27 20:02:14 +09:00
Zoltan Varga
9c2e07499e
[sdb] Fix decoding of nested structs. Fixes #14942 .
2013-09-27 12:35:22 +02:00
Atsushi Eno
5b867d6fb7
Fix build.
...
I forgot to save buffer, build, then save, then committed :(
2013-09-27 19:12:54 +09:00
Sebastien Pouliot
ff7b7254bc
Drop the System.Enum and System.ValueType for enum and struct.
2013-09-26 16:17:15 -04:00
Sebastien Pouliot
c90d23bed5
Add a new tool to produce HTML diff of assemblies similar to what Xamarin.iOS has been producing
2013-09-26 15:42:29 -04:00
Vincent Povirk
bd421b40ee
Define GC_NOT_DLL for included boehm on win32.
...
This commit licensed as MIT/X11.
2013-09-26 14:06:06 -05:00
Atsushi Eno
630cace193
implement some primary members of ConsoleLogger (and FileLogger).
2013-09-27 01:54:41 +09:00
Jeffrey Stedfast
450407d1c8
[MacProxy] Initialize err to IntPtr.Zero before calling CFNetworkCopyProxiesForAutoConfigurationScript
2013-09-26 12:27:12 -04:00
Zoltan Varga
ef53ac8727
[sdb] Fix a race in the sdb tests exposed by the recent threadpool changes.
2013-09-26 13:02:30 +02:00
Mark Probst
b4320bf02f
[sgen] A better fix for the POSIX stop-world deadlock.
2013-09-25 18:40:21 -07:00
R. Brian Lindahl
e1a1624504
When generating resources, it intends to add the .resources file to the FilesWritten list. However, it sets the ItemSpec on the wrong item, and a 'Clean' ends up deleting the .resx file.
2013-09-25 08:40:43 -07:00
Zoltan Varga
91ae2ef9aa
Implement net 4.5.1 generic wrapper methods in Marshal.
2013-09-25 13:04:02 +02:00
Atsushi Eno
20716c55e7
Fix bug #14951 - there was another escape sequence 1B 24 40 to indicate "old" JIS.
2013-09-25 18:37:30 +09:00
Marek Safar
269db1075c
Bump ikvm-reflect
2013-09-25 11:27:06 +02:00
Marek Safar
a4a84a1325
Report less cascading errors
2013-09-25 11:20:09 +02:00
Marek Safar
dd108ce0ac
Don't crash when reporting invalid named argument name. Fixes #14962
2013-09-25 10:53:49 +02:00
Zoltan Varga
4a38ae76cb
Fix the build.
2013-09-25 01:35:19 +02:00
Mark Probst
a4f089aadb
Add a section to the README on how to submit bug reports.
2013-09-24 15:17:14 -07:00
Jonathan Pryor
4672f532ea
[System] Fix the CSharpCodeCompiler error parsing regex.
...
Use the same regex as xbuild uses for error parsing; see 7a2d2c24 .
2013-09-24 17:14:55 -04:00
Jonathan Pryor
7a2d2c247c
[MSBuild] Fix the ${level} and ${number} capture.
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=14767
Some people, when confronted with a problem, think
“I know, I'll use regular expressions.” Now they have two problems.
- http://regex.info/blog/2006-09-15/247
ToolTask uses a regular expression to extract various bits of
information from the warning/error message. Unfortunately it was
inadequate, and didn't correctly match on some errors.
The error message in this case is:
class1.cs(16,4): error CS0152: The label `case 1:' already occurs in this switch statement.
The problem was that while the previous regular expression would
succeed in matching the above string, it was horribly inaccurate in
what it captured:
${file} = "error CS0152"
${line} = "16"
${column} = "4"
${level} = "The"
${number} = "label `case 1"
${message}= "' already occurs in this switch statement."
Did I mention hilariously wrong?
There were two problems with the previous pattern:
1. It allowed filename+(line,column) to be _repeated_, which is
clearly insane. Filename/etc. shouldn't be repeated.
2. ${number} captured ".*\d", i.e. anything ending with a number, so
when the message had a number embedded within it, it was captured.
For good measure, use RegexOptions.IgnorePatternWhitespace so that
we don't have a horrendously long regex pattern to compare for diffs
the next time this needs fixing, and add NUnit tests.
2013-09-24 16:29:31 -04:00
Mark Probst
8c57ebccfd
[sgen] Fix a thread startup deadlock on POSIX.
...
If the GC stops the world and a thread is in the process of starting
up, but has not yet registered (it's not in the thread_list), it is
possible that the thread does register while the world is stopped.
When restarting the GC will then try to restart said thread, but since
it never got the suspend signal, it cannot answer the restart signal,
so a deadlock results.
This is triggered by `tests/sgen-bridge.cs`, about once every 10 runs.
We solve this by using a negative value in the `signal` field in the
thread info to indicate threads that have never been suspended.
2013-09-24 11:27:29 -07:00
Marek Safar
0d06d873f8
Better checks for inaccessible member used via dynamic proxy. Fixes #14762
2013-09-24 19:17:06 +02:00
Marek Safar
b70d5e1b96
Reenable accidentally disabled test
2013-09-24 16:04:07 +02:00
Marek Safar
40fb1399c9
Fixes compilation error on Mavericks
2013-09-24 16:00:58 +02:00
Marek Safar
f9ba0a1b8f
Initialize cookie container for default requests. Fixes #14783
2013-09-24 16:00:57 +02:00
Marek Safar
1c89349477
Optmizes one string comparison.
...
Remove useless GC.SuppressFinalize
2013-09-24 16:00:57 +02:00
Paolo Molaro
3c347d5d3a
Allow workitems to startup faster and reduce polling thread interval in the threadpool.
...
Deals with xambug #14644 and similar issues.
2013-09-24 15:30:51 +02:00
Sebastien Pouliot
6cf0c51ae3
Update cecil sources to latest
2013-09-24 08:56:51 -04:00
Sebastien Pouliot
97a9e58789
[linker] Resolve every type references if we're to save an assembly that is not linked (so the scope won't point to assemblies that were removed)
2013-09-24 08:56:51 -04:00
Marek Safar
5eb58e2e4e
Check modifying members of readonly value-type field. Fixes #14802
2013-09-24 10:22:07 +02:00
Zoltan Varga
a3f67badc0
Fix the windows build.
2013-09-24 06:11:50 +02:00
Rodrigo Kumpera
3734c725a4
Fix the windows build.
2013-09-23 19:14:05 -04:00
Rodrigo Kumpera
98d23141f9
Add test case for xref behavior for the sgen bridge.
2013-09-23 19:13:20 -04:00
Rodrigo Kumpera
86df16b7bc
Make sure we properly account for transitive liveness when processing bridge objects. Fixes #13858
...
We depend on the latent liveness state of objects at the time we collect bridged objects. To
preserve this we must perform the dfs1 step right after collecting them and before we drain the
gray stack or all objects pointed by candidate bridge objects will be marked as alive.
2013-09-23 19:13:20 -04:00
Miguel de Icaza
89f10a3ba5
Wrap the code in MONO_BEGIN/END_DECLS
2013-09-23 13:03:12 -04:00
Miguel de Icaza
85841d0bbd
Update message
2013-09-23 13:03:12 -04:00
Marek Safar
b52c963187
Pass cancellation token to CopyAsync read block
2013-09-22 19:23:17 +02:00
Marek Safar
17a018fef8
Implements content loading cancellation. Fixes #13200
2013-09-22 19:15:08 +02:00
Marek Safar
61ab67065d
Test update
2013-09-22 17:43:41 +02:00
Marek Safar
b8e3beb7d3
Bump ikvm-reflection
2013-09-22 17:42:47 +02:00
Zoltan Varga
3a84cf0612
[runtime] Ignore --llvm when LLVM is not enabled in configure.
2013-09-21 14:56:58 +02:00
Vincent Povirk
be23ac1a4e
Add test for native thiscall methods.
...
Licensed under MIT/X11.
2013-09-21 05:13:10 +02:00
Vincent Povirk
437f115dcd
Add support for thiscall pinvokes on x86.
...
Licensed under MIT/X11.
2013-09-21 05:12:26 +02:00
Zoltan Varga
e0fb186df2
[aot] Pass correct architecture to llc on x86-64.
2013-09-21 05:03:48 +02:00
Zoltan Varga
767a1311ee
Make the test-aot test less verbose.
2013-09-21 02:45:09 +02:00
Zoltan Varga
6244e939b8
Merge pull request #765 from knocte/runtime_fixage
...
[sgen] Improve fix for BXC#14834 to avoid redundant code
2013-09-20 15:51:35 -07:00
Andrés G. Aragoneses
f55996d3b4
[sgen] Improve fix for BXC#14834 to avoid redundant code
...
Improve https://github.com/mono/mono/commit/d2cc22580898df5d4a15e0f99ab513e1570a6082
by making OBJ_BITMAP_FOREACH be less redundant thanks to new macro
GNUC_BUILTIN_CTZ
2013-09-20 22:15:42 +02:00
Marek Safar
ee5939881d
Fixed TaskFactory::ContinueWhenAny with func result. Fixes #14839
2013-09-20 19:41:15 +02:00
Zoltan Varga
d2cc225808
[sgen] Use __builtin_ctzl () in OBJ_BITMAP_FOREACH_PTR () on 64 bit platforms. Fixes #14834 .
2013-09-20 19:06:44 +02:00
Mark Probst
0a695738d8
Fix the build.
2013-09-20 09:34:44 -07:00
Marek Safar
8e78bec72e
AggregateException::GetBaseException uses only 1-based inner exceptions. Fixes #14824
2013-09-20 18:01:08 +02:00
Marek Safar
8914882238
Merge pull request #760 from mayerwin/patch-2
...
Fix: bug https://bugzilla.xamarin.com/show_bug.cgi?id=14811 (to be reviewed)
2013-09-20 08:39:51 -07:00
Martin Baulig
90f23bfccf
[xbuild]: Actually add the $(TargetFrameworkMonikerAssemblyAttributesPath) to @(Compile).
2013-09-20 16:56:17 +02:00
APS
e4620ee888
[FIX] Bug 267: wsdl fails with "Argument is out of range."
...
This fix bug 267
https://bugzilla.xamarin.com/show_bug.cgi?id=267
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2013-09-20 14:24:59 +02:00
Marek Habersack
bdc4eb0085
Merge pull request #758 from echampet/capabilities
...
Fix crashes with browser capabilities
2013-09-20 05:21:52 -07:00
Etienne CHAMPETIER
ce65812cb2
[System.Web] Re-enable AppBrowsersTest.cs tests for net_2_0
...
For now mcs/class/System.Web/Test/mainsoft/NunitWebResources/adapters.browser
depends on System.Web_test_net_2_0.dll
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2013-09-20 14:19:41 +02:00
Etienne CHAMPETIER
ae17ceeecc
[Install] Add Compat.browser files for net_4_0 and net_4_5
...
Without that referencing browser 'Default' (parentID="Default")
in a .browser file make the app throw exceptions here
mcs/class/System.Web/System.Web.Configuration_2.0/nBrowser/Build.cs#L206
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2013-09-20 14:19:40 +02:00
Frederic Mestayer
03e31732d3
[System.Web] Do not crash on duplicate keys in browser capabilities
...
Correct https://bugzilla.xamarin.com/show_bug.cgi?id=14720 and
probably https://bugzilla.xamarin.com/show_bug.cgi?id=13014
Signed-off-by: Etienne CHAMPETIER <[email protected] >
Signed-off-by: Frederic Mestayer <[email protected] >
2013-09-20 14:19:40 +02:00
Rolf Bjarne Kvinge
db195e8e90
[System.Net] Fix CFNetworkCopyProxiesForAutoConfigurationScript signature. Fixes #7923 .
2013-09-20 10:33:49 +02:00
Rolf Bjarne Kvinge
e638c4d7ca
[System.Net.Http] Add a way to add extra build arguments.
...
This is used by monotouch to add a reference to monotouch.dll.
Also add a profile-specific sources file for monotouch so the
extensions module can add even more files.
2013-09-20 01:05:57 +02:00
Rodrigo Kumpera
db047c0473
Merge pull request #763 from madewokherd/mingwbuild
...
Fix the mingw-w64 build
2013-09-19 15:05:15 -07:00
Vincent Povirk
c5635f8fa6
Fix undeclared variables in exceptions-amd64.c on win64.
...
This commit is licensed under MIT/X11.
2013-09-19 16:17:41 -05:00
Vincent Povirk
b97629ec79
Test for InterlockedCompareExchange64 in the configure script.
...
mingw.org doesn't have this function but mingw-w64 does.
This commit is licensed under MIT/X11.
2013-09-19 16:17:18 -05:00
Zoltan Varga
267253b355
Disable the LLVM version check for now, it doesn't work if llvm was not compiled in a git repo.
2013-09-19 22:33:16 +02:00
Zoltan Varga
8ea61a7b5e
Check the version of LLVM at configure time to make sure it has a matching version.
2013-09-19 22:05:00 +02:00
Rodrigo Kumpera
84432a62a1
Add test-aot target.
2013-09-19 16:03:23 -04:00
Rodrigo Kumpera
7d3c65c1b5
[runtime]Fix typo in detection of the need of 64bits atomic intrinsics.
2013-09-19 16:03:23 -04:00
Sebastien Pouliot
28882bd094
Change Random implementation to JKISS which is faster and has a longer period. Also match .NET 2.0 behaviour wrt calls to protected Sample. Add unit tests (and removed the commented ones). Ref: http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf
2013-09-19 15:28:40 -04:00
Zoltan Varga
9ae3d769cb
[runtime] Improve error checking for temporary file creation in the AOT compiler.
2013-09-19 21:23:24 +02:00
Rolf Bjarne Kvinge
2f60b53c8b
Revert "Add System.Net.Http.dll to the monotouch build."
...
This reverts commit 9df6eebc34 .
Not quite ready for this yet, more changes are needed.
2013-09-19 19:47:29 +02:00
Rolf Bjarne Kvinge
9df6eebc34
Add System.Net.Http.dll to the monotouch build.
2013-09-19 19:23:32 +02:00
Rodrigo Kumpera
b445f447a0
[llvm] On OSX we need to search in /Libraries in addition to /lib.
2013-09-19 12:56:18 -04:00
Zoltan Varga
6bbf88d8cc
[runtime] Fix a bug in the local register allocator when an fp vreg wasn't clobbered by a call if its href happened to be equal to the hreg of the call instruction. Fixes #12510 .
2013-09-19 02:03:29 +02:00
Rodrigo Kumpera
920332a133
Fix the Makefile addition of a new test.
2013-09-18 16:21:49 -04:00
Rodrigo Kumpera
35e90b1af7
[runtime]Do an alignment check before using the atomic op.
2013-09-18 16:20:19 -04:00
Zoltan Varga
e3bf9e84ff
Fix the DISABLE_JIT build.
2013-09-18 22:09:37 +02:00
Rodrigo Kumpera
8288f81dfd
Add a sgen test for threads joining/leaving at random places.
2013-09-17 19:25:27 -04:00
Rodrigo Kumpera
9dc8efe26e
[sgen] Kill SgenThreadInfo::thread_is_dying in favor of the thread-info state information.
2013-09-17 19:23:50 -04:00
Rodrigo Kumpera
5942afee6f
[runtime]Properly set mono-thread state as when starting/running/shutting down/dead.
2013-09-17 19:23:49 -04:00
Rodrigo Kumpera
d6581bdf14
[sgen]Remove doing_handshake field since the race condition it fixes is now handled by mono-threads.
2013-09-17 19:23:49 -04:00
Rodrigo Kumpera
a85ae5f10e
[io-layer] Fix a warning.
2013-09-17 19:23:48 -04:00
Rodrigo Kumpera
ce5327414f
[runtime] Small optimizations and cleanup in ves_icall_System_Array_FastCopy.
2013-09-17 19:23:48 -04:00
Rodrigo Kumpera
8403a9ad43
[runtime]Add more fast variants of the mono_array functions as those shown up in profiling.
2013-09-17 19:23:48 -04:00
Rodrigo Kumpera
13a8893171
[sgen] Force inlining of some perf-critical functions.
2013-09-17 19:23:48 -04:00
Rodrigo Kumpera
9cae0d7361
[sgen]We no longer need joined_stw as new threads can't join once the suspend lock has been acquired.
...
Since no new thread can join until the collection is over, FOREACH_THREAD won't miss any thread.
2013-09-17 19:23:47 -04:00
Rodrigo Kumpera
a1d20a2d53
[runtime]Provide a consistent view of registered threads during suspend operations.
...
We previously failed to provide a consistent view of the registered threads set. This
would should up in the following ways:
-New threads would join in between two FOREACH_THREAD passes. The recently joined threads
lead to broken invariants that one loop carried to the other.
-Existing threads would leave during a FOREACH_THREAD. The now defunct threads lead
to code waiting them to ack back and deadlock in the process.
-It was possible to witness an in-progress cleanup. This would show up by
mono_thread_info_current returning null when it should not.
To amend this we provide a a consistent view of all registered threads once the global
suspend lock is acquired. This is done by acquiring that lock when registering/unregistering.
This allows us to remove some of the work-around in the sgen thread registration
code and avoid taking the GC lock.
2013-09-17 19:23:47 -04:00
Mark Probst
d836e9f05b
[sgen] Don't stack overflow when there are too many binary protocol buffers.
...
Binary protocol buffers are linearly linked from newest to oldest, but need to be
written out from oldest to newest. This was sloppily implemented with a recursive
call, which caused a stack overflow when there were too many buffers. We now
allocate an array and store pointers to all the buffers in it, then iterate over it in
reverse.
2013-09-17 16:07:16 -07:00
mayerwin
5a25913631
Fix: bug https://bugzilla.xamarin.com/show_bug.cgi?id=14811 (to be reviewed)
2013-09-18 01:14:04 +08:00
Atsushi Eno
6176e0b179
Merge pull request #756 from akoeplinger/fix-xmlreader
...
Fixing inconsistency in XmlSchemaValidatingReader between Mono and MS.NET
2013-09-17 10:09:28 -07:00
Martin Potter
c5918aef82
Improving the retrieval of the user's locale on Apple systems.
...
The previous behavior used the entire local identifier string that includes optional settings such as variant and calendar format. This returns locales like en_US_POSIX@calendar=buddhist which result in the user's culture being the invariant culture.
This change builds the locale from the language, country code and optional script code so that the locale returned is in the expected format.
This commit is licensed under MIT/X11.
2013-09-17 07:26:27 -07:00
Rodrigo Kumpera
ab184afd66
Merge pull request #754 from blackfusion/master
...
[Scripts] Fix a Shebang in mono-test-install for freeBSD
2013-09-17 06:25:00 -07:00
Zoltan Varga
1a2668ce95
[runtime] Fix a regression introduced by 5503991372. Use __builtin_popcountl () on 64 bit machines.
2013-09-17 13:41:28 +02:00
Zoltan Varga
7c9b28a127
Disable a profiler test which fails on osx.
2013-09-16 23:26:24 +02:00
Zoltan Varga
248b6160be
Fix the profiler tests.
2013-09-16 23:09:56 +02:00
Zoltan Varga
9aec810235
Revert "Set tls->context.valid to FALSE if a thread is suspended in native code. Fixes #1540."
...
This reverts commit 5ddbe31ee5 .
Revert this as its incorrect, and causes a regression (#14058 ).
2013-09-16 20:46:04 +02:00
Larry O'Brien
9454174ee5
[mdoc] Switched from swallowing error to guarded execution
...
Improves a60ff0fd1e
Tests for file existence and outputs diagnostic rather than treating it as a local recoverable exception.
Leaving the question of general mdoc error-reporting for another day.
2013-09-16 07:19:00 -10:00
Zoltan Varga
a88eb036a6
[runtime] Avoid constructing vtables in a few places during AOT.
2013-09-16 15:02:06 +02:00
Zoltan Varga
a580cab5d6
[runtime] Avoid calling mono_resolve_patch_target () while AOTing, its not needed.
2013-09-16 01:44:02 +02:00
Zoltan Varga
3627b977d7
[runtime] Add support for constrained gsharedvt calls to normal virtual methods.
2013-09-16 01:23:15 +02:00
Zoltan Varga
f160a59231
[runtime] Avoid looking up pinvoke addresses when AOT compiling.
2013-09-16 01:23:14 +02:00
Larry O'Brien
a60ff0fd1e
Bugzilla 14672 (mdoc namespace-level summary and remarks elements weren't being included)
...
commit 6ec0ddc7e5c4d5640da7420600898c10578a7974
Author: Larry O'Brien <[email protected] >
Date: Sun Sep 15 11:03:32 2013 -1000
Coding style
commit f034514fca8298a8ed2a167f3ab288f32bc7c74f
Author: Larry O'Brien <[email protected] >
Date: Sun Sep 15 10:28:47 2013 -1000
Bugzilla 14672
Added namespace file ("ns-{namespace}.xml") summary and remarks into the nsSummaries, which results in displaying the data prior to the namespace type-list when the user searches at the namespace level.
Appears to only be necessary for native viewer (Web viewer for some reason "knows" about the summaries).
2013-09-15 11:12:27 -10:00
Zoltan Varga
bb2bc9ae42
[runtime] Fix a few more places which accessed jinfo->method directly.
2013-09-15 03:21:44 +02:00
Zoltan Varga
454a4c5de7
Fix a problem introduced by c6989ab9f9. Avoid foreach on _items since that includes empty entries too.
2013-09-15 02:42:28 +02:00
Zoltan Varga
52072b80a5
[sdb] Simplify tests.
2013-09-15 01:51:25 +02:00
Zoltan Varga
25ec53d1f1
Update AOT after changes to SeqPoint in 488888ce61.
2013-09-15 01:39:05 +02:00
Zoltan Varga
488888ce61
[sdb] Add an implicit seq point after every nonvoid call and make step over skip them. Fixes #10782 .
2013-09-15 01:36:38 +02:00
Zoltan Varga
eb3e8946a8
Fix the ENABLE_JIT_MAP build. Fixes #14752 .
2013-09-14 21:10:02 +02:00
Zoltan Varga
9a6510ece6
[runtime] Make mono_install_handler_block_guard () async-safe. Fixes #14073 .
2013-09-13 21:37:00 +02:00
Zoltan Varga
2451de6cb3
[runtime] Make the stack walking code async safe when run in an async context.
2013-09-13 21:36:59 +02:00
Zoltan Varga
1597b525b9
[runtime] Make mono_aot_find_jit_info () async-safe by allocating memory from the lock-free domain mempool, avoiding loading metadata, and caching jit info entries in a lock-free array.
2013-09-13 21:36:59 +02:00
Zoltan Varga
2b7f5921f1
[runtime] Add a 'is_async_context' property to MonoThreadInfo, allowing functions to detect whenever they are in async context without having to pass an 'async' parameter around.
2013-09-13 21:36:59 +02:00
Zoltan Varga
3ac10d3382
[runtime] Add a lock-free mempool allocator to MonoDomain.
2013-09-13 21:36:58 +02:00
Marek Safar
5c8befbe27
Move dynamic handling out of Binary::DoResolve to reduce stack size
2013-09-13 18:55:47 +02:00
Marek Safar
22fd61d3b5
Add new test
2013-09-13 18:55:46 +02:00
Zoltan Varga
197b08dbe9
Fix a warning.
2013-09-13 18:46:34 +02:00
Zoltan Varga
dace44d806
[runtime] Make the address->aot module lookup in mono_jit_info_table_find () async-safe by storing the mapping in another MonoJitInfoTable.
2013-09-13 18:46:34 +02:00
Zoltan Varga
f48233a1e1
Extract the jit info table code into separate functions so we it can be used in more places.
2013-09-13 18:46:34 +02:00
Zoltan Varga
5bc25b90fb
[runtime] Avoid direct access to MonoJitInfo.method, use an accessor function instead.
2013-09-13 18:46:33 +02:00
Mark Probst
1bdd4a6662
[sgen] Fix a toggleref array resize bug.
2013-09-13 09:21:32 -07:00
Atsushi Eno
f0478f1f51
UTF8Encoding.GetMaxByteCount() was returning too big number.
...
The thing is, unlike the standards describe in codepoints, .NET String
characters beyond BMP are represented as surrogate pairs and they can be
converted all in 3 bytes.
The implementation didn't take care of encoder fallbacks, or byte order
marks either, so take them into considertion too.
2013-09-14 00:56:48 +09:00
Marek Safar
43bd9a8c6d
Don't crash when unreachable code contains unreachable constant switch. Fixes #14587
2013-09-13 16:53:51 +02:00
Zoltan Varga
803cf83566
Fix parallel compression in mkbundle, not enabled yet.
2013-09-13 15:12:30 +02:00
Marek Safar
c6989ab9f9
Unify Array/List FindIndex/FindLastIndex handling and argument checking. Fixes #14632
2013-09-13 14:51:08 +02:00
Sebastien Pouliot
1b4d970000
Move undef HAVE_SIOCGIFCONF later so it's not defined again by other includes
2013-09-12 19:48:33 -04:00
Miguel de Icaza
be532638f5
Simplify locale fetching, we have very simple needs
2013-09-12 17:21:39 -04:00
Miguel de Icaza
06dc8911a0
Add workaround for DNS garbage return
2013-09-12 16:54:18 -04:00
Rodrigo Kumpera
e03314480d
[bcl] Fix BlockingCollection.TakeFromAny to handle when no items are available on the first collection. Fixes #6095 .
2013-09-12 16:42:53 -04:00
Marek Safar
040b028811
Bump ikvm. Fixes the build
2013-09-12 17:00:16 +02:00
Sebastien Pouliot
eeff03c59c
Reduce/remove the probability of having test failures wrt UdpClient.Available
2013-09-11 21:00:04 -04:00
Marek Safar
cb52f180bd
Bump ikvm
2013-09-11 23:17:20 +02:00
Zoltan Varga
5503991372
Use __builtin_popcount () in mono_bitset_count ().
2013-09-11 22:51:59 +02:00
Miguel de Icaza
be272cb3e8
Remove comment, refer to the spec instead
2013-09-11 16:26:47 -04:00
Miguel de Icaza
47b5f3a52c
Remove text from article
2013-09-11 15:47:10 -04:00
Martin Baulig
8d3b4b7ae5
Bump ikvm again to only pick-up my single commit.
...
I created a new 'mono-master' branch in ivkm-fork, which is based
at the previous ikvm commit, then cherry-picked my single commit.
Apparently, there are API changes in IVKM which prevent it from
being applied cleanly.
2013-09-11 21:13:10 +02:00
Miguel de Icaza
0c25f98893
Rewrite the header file, based on the internal mono-hash.c contents
2013-09-11 15:06:18 -04:00
Miguel de Icaza
17669cd166
More inline docs
2013-09-11 15:06:18 -04:00
Martin Baulig
018c4af398
Bump ikvm to pick up ce0e014ed68d052989b162f0e74524cac2199647.
2013-09-11 20:52:31 +02:00
Martin Baulig
40a8a891f7
Add comment that this must be kept in sync with ikvm.
2013-09-11 20:52:30 +02:00
Marek Safar
fb3ad60837
Revert "Bump ikvm"
...
This reverts commit 89166a0ea7 .
2013-09-11 18:31:19 +02:00
Marek Safar
89166a0ea7
Bump ikvm
2013-09-11 18:26:16 +02:00
Martin Baulig
55065d0d02
[System.Core]: Minor API fix in the Non-DLR version of System.Linq.Expressions.
2013-09-11 15:42:19 +02:00
Martin Baulig
446857eaa3
Use ecma.pub for System.Xml.Serialization.
2013-09-11 15:39:21 +02:00
Martin Baulig
1ae48f124c
Use msfinal.pub for System.Net in .NET 4.0/4.5.
2013-09-11 15:37:06 +02:00
Alexander Köplinger
3dfeae598a
Fixed inconsistency in XmlSchemaValidatingReader between Mono and MS.NET
2013-09-11 12:38:19 +02:00
Rodrigo Kumpera
1f0eebb35f
Fix the OSX and Windows build.
2013-09-10 19:43:09 -04:00
Rodrigo Kumpera
b3d80013a0
Improve the build system.
2013-09-10 18:43:22 -04:00
Marek Safar
4529532aa7
Bump ikvm
2013-09-10 15:50:01 +02:00
Marek Safar
7db34940fe
Don't set sealed flag for imported static types
2013-09-10 15:44:18 +02:00
Marek Safar
78a8c012d4
Don't emit inflated type parameter constraints which can collide with special constraint types.
2013-09-10 14:56:27 +02:00
Marek Safar
8bd66dbbeb
Add System.ServiceModel.Activation assembly. Fixes #14544
2013-09-10 10:14:50 +02:00
Rodrigo Kumpera
6531ed7dd7
[verifier]Check generic constraints for duplicates. Fixes #1782 .
2013-09-09 14:49:27 -04:00
Marek Safar
c71c7fd196
Merge pull request #755 from ondrejmyska/master
...
Suggestion fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=6327
2013-09-09 10:15:23 -07:00
Rodrigo Kumpera
0ef4bd5dc9
[runtime] Fix a loader leak in the aot compiler.
2013-09-09 12:08:41 -04:00
Rodrigo Kumpera
a578665b8a
[runtime] Make suspend work during thread cleanup. Fixes #14555
...
SDB does suspend/resume during thread cleanup. It used to work until I introduced
critical regions. This won't work anymore as we need to lookup the thread info object
and during cleanup it will be gone.
The fix is to introduce mono_thread_info_current_slow which is a variant of
mono_thread_info_current that does search the thread list if the TLS key
is gone.
2013-09-09 11:25:49 -04:00
Ondrej Myska
50b53c5e1c
Suggestion fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=6327
2013-09-09 17:19:34 +02:00
Zoltan Varga
a918a64771
[runtime] Fix a nullref when casting a null object to a complex type when using --debug=casts. Fixes #14552/#14493.
2013-09-09 17:15:39 +02:00
Marek Safar
253b7cfc3f
Set empty string to TraceListeners for empty assert message. Fixes #14505
2013-09-09 09:42:53 +02:00
Marek Safar
84d93ab24f
Cleanup TraceImpl
2013-09-09 09:36:03 +02:00
Marek Safar
f33ed3fd4f
Fixes parallel enumerable index counter. Fixes #14515
2013-09-09 09:12:41 +02:00
Raphael Boissel
eaa39bd1c7
[Scripts] Fix a Shebang in mono-test-install for freeBSD
2013-09-08 22:40:30 +02:00
Zoltan Varga
0318cfae1a
[runtime] Force the usage of --host=i686-pc-mingw32 when running configure on windows.
2013-09-08 11:08:22 +02:00
Marek Safar
3dec818807
Don't print empty detailed assert message
2013-09-08 10:59:28 +02:00
Zoltan Varga
94856d264c
[runtime] Fix the mingw build by defining InterlockedCompareExchange64 () which is missing from mingw's winbase.h.
2013-09-08 10:52:42 +02:00
Zoltan Varga
31db4c7cb4
[sdb] Add support for invoking interface methods. Fixes #14503 .
2013-09-07 06:31:07 +02:00
Martin Baulig
f59fa062fb
[System]: WebRequest.GetSystemProxy(): Return custom proxy for monodroid.
...
On ICS and newer, we can use Java.Net.ProxySelector, which supports
per-access point proxy settings. Fixes #12640 .
2013-09-07 00:06:00 +02:00
Rodrigo Kumpera
715be9e991
Add another extension point to the runtime.
2013-09-06 17:22:25 -04:00
Mark Probst
0b296662ae
[runtime] Thread teardown race condition. Fixes #13813 .
2013-09-06 10:46:31 -07:00
Marek Safar
0372e3cd93
Implements parsing of multi value User-Agent string. Fixes #8719
2013-09-06 13:41:20 +02:00
Zoltan Varga
81d7fec759
Fix the test added by e682eceec3.
2013-09-06 06:43:12 +02:00
Zoltan Varga
7ca581cd34
[runtime] Add more logging to a test which fails on wrench.
2013-09-06 03:29:41 +02:00
Zoltan Varga
a5839c9c20
[runtime] Make a marshalling test more robust.
2013-09-06 02:22:58 +02:00
Zoltan Varga
e682eceec3
Avoid the managed->copy for ref vtypes with an [In] attribute in native-to-managed wrappers. Fixes #14069 .
2013-09-05 18:13:43 +02:00
Zoltan Varga
6f5f478329
Avoid printing an error message in UnixRegistryApi which can happen during normal usage when a root process has created a registry under the mono installation prefix. Fixes #14366 .
2013-09-05 17:43:48 +02:00
Rodrigo Kumpera
7ac5749d3e
[runtime]Fix the OSX build due to crappy compilers.
2013-09-05 11:17:38 -04:00
ProUkorNew
98246b0552
Remove repeated include
2013-09-05 17:07:19 +02:00
Zoltan Varga
38ee810a9e
Clear out the ref fields from MonoDomain before calling mono_gc_clear_domain (), since they will be invalidated by that call, and a GC could try to mark the invalid objects. Fixes #14339 .
2013-09-05 16:21:36 +02:00
Marek Safar
894114cdf6
Merge pull request #751 from akoeplinger/AssemblyNameReferenceMatchesDefinition
...
Implemented AssemblyName.ReferenceMatchesDefinition ()
2013-09-05 06:13:31 -07:00
Marek Habersack
41f7b18368
Merge pull request #752 from echampet/bug-10001-2
...
[FIX][v2] Do not use chunked encoding with CGI/FastCGI
2013-09-05 04:51:28 -07:00
Alexander Köplinger
4f37c78e6a
Implemented AssemblyName.ReferenceMatchesDefinition ()
2013-09-05 03:58:40 -07:00
Zoltan Varga
9778d252c9
Revert "Fix the windows build."
...
This reverts commit 71e0c38272 .
Revert this as its no longer needed.
2013-09-05 07:50:58 +02:00
Miguel de Icaza
e4f8a6c339
Improve inline docs
2013-09-05 00:14:32 -04:00
Zoltan Varga
71e0c38272
Fix the windows build.
2013-09-05 03:44:06 +02:00
Rodrigo Kumpera
99a8261acc
Fix the windows build.
2013-09-04 20:21:40 -04:00
Miguel de Icaza
3d613f0c68
Add inline api docs
2013-09-04 17:30:21 -04:00
Rodrigo Kumpera
a3b80aeccb
[bcl]Replace more long fields with int to make them CAS friendly on 32 bits systems.
2013-09-04 14:59:13 -04:00
Rodrigo Kumpera
0acb81dc64
[bcl] Replace more long fields with int to make them CAS friendly on 32 bits systems.
2013-09-04 14:47:27 -04:00
Rodrigo Kumpera
fa2419c9cf
Perform alignment checks for CAS on 32bits systems. Fixes #14426 .
2013-09-04 13:38:52 -04:00
Zoltan Varga
b71ab29b8c
[runtime] Remove a needless ifdef.
2013-09-04 18:53:08 +02:00
Stefan
da51407be5
[FIX][v2] Do not use chunked encoding with CGI/FastCGI
...
it's forbiden by http://tools.ietf.org/html/rfc3875#section-6.3.4
This correct bug 10001, https://bugzilla.xamarin.com/show_bug.cgi?id=10001
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2013-09-04 18:29:54 +02:00
Zoltan Varga
119df901c2
Disable a corlib test which fails on some test runners.
2013-09-04 17:32:01 +02:00
Zoltan Varga
7a7a1ff947
Optimize MonoCustomAttrs.GetCustomAttributes(): add fastpaths for common cases, add a cache for looking up AttributeUsageAttributes, clean up intendation.
2013-09-04 17:31:19 +02:00
Zoltan Varga
431248dd0a
Revert "[runtime] Handle MONO_PATCH_INFO_OBJC_SELECTOR_REF in mono_patch_info_hash ()."
...
This reverts commit 924e2b28ce .
Revert this, its not needed.
2013-09-04 17:20:47 +02:00
Zoltan Varga
924e2b28ce
[runtime] Handle MONO_PATCH_INFO_OBJC_SELECTOR_REF in mono_patch_info_hash ().
2013-09-04 17:19:19 +02:00
Marek Safar
71b463fef1
Don't resolve extension method expression when in probing mode it may fail to resolve. Fixes #14384
2013-09-04 17:06:36 +02:00
Marek Safar
8d0de999d8
Less cascading errors
2013-09-04 17:06:36 +02:00
Miguel de Icaza
c9db2bb7db
mono_patch_info_hash: handle the MONO_PATCH_INFO_OBJC_SELECTOR_REF case
2013-09-04 10:53:48 -04:00
Zoltan Varga
ec46c85cc4
Implement an intrinsics for Selector.GetHandle ().
2013-09-04 04:34:36 +02:00
Sebastien Pouliot
11df177e10
[linker] Allow some useful methods to be reused elsewhere
2013-09-03 21:23:39 -04:00
Zoltan Varga
e2128ca26e
Fix the mt build.
2013-09-04 02:48:10 +02:00
Zoltan Varga
6168d7a278
Rename a test target to hopefully fix the linux wrench build.
2013-09-04 02:36:01 +02:00
Zoltan Varga
7ba82952d6
Use $(MAKE) instead of make in one place.
2013-09-04 02:14:32 +02:00
Rodrigo Kumpera
4f41e84fde
[bcl]Switch BlockingCollection to do CAS over ints and not longs.
...
The reasoning behind doing CAS on longs was to avoid overflowing
which is not a problem because 2-completement math does the trick.
This is much more reliable than using longs on 32 bits.
2013-09-03 17:03:59 -04:00
Rodrigo Kumpera
0923ad6b26
[bcl]Switch BlockingCollection to use SequentialLayot to make sure its longs are 8 bytes aligned everywhere.
2013-09-03 16:29:32 -04:00
Rodrigo Kumpera
7e2c7665a5
Fix Thread.VolatileRead(long&) on 32bits.
2013-09-03 16:29:32 -04:00
Rodrigo Kumpera
5d903d6762
[runtime]Use InterlockedCompareExchange64 instead of local hack.
2013-09-03 16:29:32 -04:00
Rodrigo Kumpera
32615d361b
[runtime]Implement InterlockedCompareExchange64 on 64bits target, x86 and arm.
...
The current state of ARM compilers don't allow us to use compiler intrinsics as
they ICE on us, so we suck it up and use a naked function.
2013-09-03 16:29:31 -04:00
Marek Habersack
0101c86471
Revert "Merge pull request #744 from echampet/bug-10001"
...
This reverts commit 5178f29c4b , reversing
changes made to fb653dc0ea .
2013-09-03 21:16:26 +02:00
Marek Habersack
a970e70152
Revert "Fix typo in commit b6d634dd."
...
This reverts commit d5dbf35c80 .
2013-09-03 21:16:05 +02:00
Duncan Mak
3a91222d39
Change the version number to 3.2.3
2013-09-03 13:04:39 -04:00
Zoltan Varga
67b5d1d51f
Add 'AM_PROG_CC_C_O' to configure to hopefully fix the build on older systems.
2013-09-03 18:31:46 +02:00
Marek Safar
1ea250fbd6
Merge pull request #749 from head-thrash/master
...
Fixes build when running `make -k check`
2013-09-03 08:21:09 -07:00
head-thrash
5f014934ae
Fixes build when running make -k check:
...
* Fixes Broken Test in BuildEngine for 4.0 and 3.5
* Fixes build for Mono.Debugger.Soft not in 4_5 profile
* Fixes build for NET_4_0 profile (CustomAttributes and HasDefaultValue)
2013-09-03 18:52:29 +04:00
Martin Baulig
c5e7004e98
Fix mobile build of my commit 1ae87e9.
2013-09-03 15:15:43 +02:00
Zoltan Varga
6cd4ddc089
Only print the 'Assuming PLATFORM messages when running make with V=1.
2013-09-03 10:36:21 +02:00
Zoltan Varga
43679b54e6
Fix warnings.
2013-09-03 10:36:21 +02:00
Alex Rønne Petersen
67db6fd702
Merge pull request #748 from spicypixel/hotfix/mini-codegen-disable-jit
...
Fix build break compiling with DISABLE_JIT
2013-09-02 23:40:59 -07:00
Aaron Oneal
c25510b2b9
Fix build break compiling with DISABLE_JIT
...
When building with DISABLE_JIT, mono_inst_name which is normally defined in helpers.c is not. But, mini-codegen.c tries to use it anyway. This fix updates mini-codegen.c to not rely on this logging feature.
2013-09-02 22:45:35 -07:00
Martin Baulig
d5dbf35c80
Fix typo in commit b6d634dd.
2013-09-02 21:56:52 +02:00
Marek Safar
4f64de335d
Merge pull request #747 from spicypixel/hotfix/object-disable-com
...
Fix build break when COM is disabled
2013-09-02 12:53:43 -07:00
Martin Baulig
1ae87e9ee9
[WCF]: Add stubs for some missing .NET 4.0/4.5 APIs.
2013-09-02 21:52:13 +02:00
Martin Baulig
4db812ca7e
Add missing .NET 4.5 APIs
...
* System.Text.RegularExpressions.Regex.InfiniteMatchTimeout
* System.Net.HttpStatusCode.UpgradeRequired
* Add System.Reflection.TypeAttributes.WindowsRuntime
* System.Runtime.GCLatencyMode.SustainedLowLatency
* System.UriComponents.NormalizedHost
2013-09-02 21:52:13 +02:00
Aaron Oneal
edf74c2289
Fix build break when COM is disabled
...
This removes a typo that was introduced which caused COM dependencies to be referenced.
2013-09-02 10:53:06 -07:00
Marek Habersack
5178f29c4b
Merge pull request #744 from echampet/bug-10001
...
Do not use chunked encoding with CGI/FastCGI
2013-09-02 08:39:57 -07:00
Stefan
b6d634dd24
[FIX] Do not use chunked encoding with CGI/FastCGI
...
it's forbiden by http://tools.ietf.org/html/rfc3875#section-6.3.4
This correct bug 10001, https://bugzilla.xamarin.com/show_bug.cgi?id=10001
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2013-09-02 17:30:14 +02:00
Marek Safar
fb653dc0ea
Better check for hoisted this location when emitting nested lambda expressions inside async containers. Fixes #14351
2013-09-01 14:49:01 +02:00
Zoltan Varga
36dc978682
Precompile the test assemblies in tests/ in parallel to speed up wrench test runs.
2013-08-30 22:00:59 +02:00
Zoltan Varga
9d714e77f4
Fix make check in tests/.
2013-08-30 22:00:59 +02:00
Zoltan Varga
2e5994b2ae
Use AC_PROG_MKDIR_P instead of AM_PROG_MKDIR_P in m4/ since the latter is obsoleted by automake.
2013-08-30 22:00:59 +02:00
Zoltan Varga
63eeec0c81
Pass 'subdir-objects' to AM_INIT_AUTOMAKE() to quiet an automake warning.
2013-08-30 22:00:58 +02:00
Marek Safar
0e31ea67b7
More thorough check for managed type parameters. Fixes #14347
2013-08-30 17:48:59 +02:00
Marek Safar
17e5901d34
Probing of generic parameter for value type generic parameter needs to check both operands. Fixes #14289
2013-08-30 11:40:28 +02:00
Zoltan Varga
3dafb861ab
Remove moon support from the build system.
2013-08-30 05:36:07 +02:00
Zoltan Varga
ce263fe530
Disable the running of sgen tests on windows on wrench, they fail consistently.
2013-08-30 05:28:22 +02:00
Zoltan Varga
cbe03c20e3
Check the cfg exception at the start of mono_method_to_ir (), to catch failures caused by mono_compile_create_var_for_vreg ().
2013-08-30 04:08:59 +02:00
Zoltan Varga
c981bb9922
Fix warnings.
2013-08-30 04:08:04 +02:00
Zoltan Varga
82128fa503
Fix an LLVM assertion on structs with unaligned size. Fixes #14217 .
2013-08-30 00:49:56 +02:00
Rodrigo Kumpera
9849c0a8fc
Merge pull request #746 from madewokherd/sgenbuild
...
Fix non-sgen builds.
2013-08-29 14:46:17 -07:00
Vincent Povirk
226ebc4bef
Fix non-sgen builds.
...
This commit licenced as MIT/X11.
2013-08-29 16:27:31 -05:00
Lluis Sanchez
9b5bc71e76
Fixed bug #14295 - Project.Load incorrectly resets the FullFileName property
2013-08-29 10:59:13 +02:00
Rodrigo Kumpera
18baa67f72
Fix some warning.
2013-08-28 16:14:53 -04:00
Rodrigo Kumpera
a9b4ca9b36
[runtime]Don't assume MonoType extends directly from System.Type
2013-08-28 16:12:31 -04:00
Marek Safar
fc522a49ed
Fixes parameter name
2013-08-28 17:55:53 +02:00
Marek Safar
2f639b3c78
Use IReflectType interface instead of TypeDelegator for introspection type extensions. Fixes #14168
2013-08-28 17:55:53 +02:00
Marek Safar
af31330de4
Make setProperties private
2013-08-28 10:18:26 +02:00
Marek Safar
abe95222de
Merge pull request #743 from gvillanueva/master
...
Rewrote Font.GetHashCode() to improve uniqueness
2013-08-28 01:15:59 -07:00
gvillanueva
234c346b81
Rewrote Font.GetHashCode() to improve uniqueness.
...
Added test cases to prevent reintroduction of collision scenarios observed in Font.GetHashCode().
2013-08-27 22:22:09 -07:00
Rodrigo Kumpera
be400d4fc8
Naming cleanup.
2013-08-27 14:29:41 -04:00
Miguel de Icaza
b08d9c20a1
Console.iOS: Reset sb.Length in all cases, even for poor man's print
2013-08-27 12:01:50 -04:00
Marek Safar
982f710571
Invalid syntax during attribute target parsing can crash parser. Fixes #14245
2013-08-27 10:20:56 +02:00
Miguel de Icaza
fd12f0b05e
Console.iOS: add fallback for the case where monotouch_log is not linked in
2013-08-26 23:22:35 -04:00
Michael Hutchinson
b2cc26aa81
Merge pull request #742 from remobjects/import-project-userfile
...
Import ".user" as if it was part of the project, this lets users overrid...
2013-08-26 12:19:28 -07:00
Carlo Kok
60fd58a157
Import ".user" as if it was part of the project, this lets users override the options without checking changes to the main project file.
2013-08-26 17:53:46 +02:00
Marek Habersack
4ec59639b7
Merge pull request #726 from pruiz/xamarin-bug-13708
...
Fixed xamarin bug #13708 : ASP.NET routing constraints should be treated as 'convertible to string' in order to be compat with MS.NET
2013-08-26 05:20:46 -07:00
Marek Safar
8e5e7ea505
Merge pull request #741 from marcominetti/master
...
Clean verbose (debug) logs in mcs for MakeExpression function call
2013-08-26 04:08:55 -07:00
marcominetti
94e8ad6ef0
cleaned console logs in MakeExpression function
...
Cleaned verbose logs leftovers (probably debug ones) that are currently printed on every compiling that involves dynamic objects...
2013-08-26 12:47:16 +02:00
marcominetti
cf0b31248a
cleaned console logs in MakeExpression function
...
Cleaned verbose logs leftovers (probably debug ones) that are currently printed on every compiling that involves dynamic objects...
2013-08-26 12:46:34 +02:00
Marek Safar
16013bc247
Merge pull request #740 from pruiz/dataannotations-enhancements
...
Some enhancements and additions to DataAnnotations, incluiding implementation of a few missing pieces of Sys.ComponentModel.DataAnnotations v4.5, like:
2013-08-26 02:59:07 -07:00
Pablo Ruiz Garcia
71d6896925
Reverted string.Format(CultureInfo.CurrentCulture, ..) change.
2013-08-26 11:42:02 +02:00
Marek Safar
8c2c29d41c
Add test for #12745
2013-08-26 11:13:03 +02:00
Pablo Ruiz Garcia
46e571eaf1
Set correct author on test files.
2013-08-25 17:28:59 +02:00
Pablo Ruiz Garcia
eb25dfce5c
Some enhancements and additions to DataAnnotations, incluiding implemented of a few missing pieces of Sys.ComponentModel.DataAnnotations v4.5, like:
...
- CompareAttribute
- CreditCardAttribute
- EmailAddressAttribute
- FileExtensionsAttribute
- PhoneAttribute
- Implemented IsValid() methods of Min/MaxLengthAttribute.
- Fixed all existing Validation attributes so they take into account current's locale when composing ErrorMessage.
2013-08-25 03:42:30 +02:00
Sebastien Pouliot
0d864b08c0
SRE.ParameterBuilder cannot be exposed in FULL_AOT_RUNTIME
2013-08-24 11:33:42 -04:00
Rodrigo Kumpera
3b846d3d4c
We have g_getenv for portability reasons, so let's use it.
2013-08-23 18:23:27 -04:00
Zoltan Varga
722ace9131
Fix yet another DISABLE_JIT bug in wrapper generation. Fixes #14194 .
2013-08-23 23:17:41 +02:00
Marek Safar
20d08fd8da
Annonymous method storey inside async storey has to capture this directly when the storey does not have any parents. Fixes #14126
2013-08-23 13:27:21 +02:00
Rodrigo Kumpera
29c42bf0dc
Add tests for the new 4.0 behavior in ParameterInfo.
2013-08-22 16:00:15 -04:00
Rodrigo Kumpera
3673d051fb
[corlib]Implement .net 4.0 ParameterInfo.
2013-08-22 16:00:14 -04:00
Marek Safar
cfa7bad1d7
Fixes negative symbol definition for few locales to be simple -. Fixes #14185
2013-08-22 19:12:47 +02:00
Zoltan Varga
33bd2503de
Disable two delegate tests on mobile.
2013-08-22 18:57:06 +02:00
Marek Safar
95a6979c3b
Enable fixed failing test
2013-08-22 17:50:22 +02:00
Neale Ferguson
9bcd33f029
Enable INLINE support for s390x
2013-08-22 08:17:24 -04:00
Sebastien Pouliot
b46b038f33
Fix test case not to assume it can write in the current directory
2013-08-21 19:54:09 -04:00
Mark Probst
7770413fac
[sgen] Disable cementing for parallel mark&sweep.
...
Cementing isn't parallel-ready yet.
2013-08-21 16:24:03 -07:00
Sebastien Pouliot
f2e7f36368
Use the invarient culture calendar if the requested one is not available. Partial fix for #13977
2013-08-21 14:15:39 -04:00
Atsushi Eno
41290d39db
Fix bug #14143 - xsl:import in included stylesheet caused compilation error.
...
Simply ignoring xsl:import causes regression in
XslTransformTests.ImportIncorrectlyLocated so no-go. The actual error for
that case is now reported better (not just "unrecognized element").
2013-08-22 02:15:24 +09:00
Rodrigo Kumpera
a700784767
[runtime] Don't allow execution of dynamic assemblies without run access. Fixes #7126
2013-08-21 12:08:11 -04:00
Rodrigo Kumpera
de2efdbd0f
[corlib]Fix 2.0 test suite breakage.
2013-08-21 10:52:08 -04:00
Rodrigo Kumpera
d71ca46641
[verifier]Remove duplicate check.
2013-08-21 10:22:31 -04:00
Atsushi Eno
2d6335f6a7
revert default serialization: ignore non-public members. Also need to exclude backing field in non-default serialization.
2013-08-21 15:44:27 +09:00
Rodrigo Kumpera
bfff327c10
[runtime]Add some error checking to custom attr parsing and plug a memory leak. Fixes #13435 .
2013-08-20 19:10:45 -04:00
Zoltan Varga
8cb8add995
Make the dmcs/gmcs scripts identical to the mcs script with an extra -sdk: argument, to avoid PATH problems, and to allow the windows installer to generate .bat files for them. Hopefully fixes #8813 .
2013-08-21 00:57:28 +02:00
Rodrigo Kumpera
e0c4e5bf88
[runtime] Handle custom attributes with nested array of enums. Fixes #13767
...
When decoding a custom attribute value, an array value in an object
position can have type of an enum.
2013-08-20 18:34:08 -04:00
Zoltan Varga
0152cee92d
Use i686-pc-mingw32-gcc as the mkbundle compiler on windows.
2013-08-21 00:24:26 +02:00
Zoltan Varga
7685ca6271
Merge pull request #737 from Mixaill/master
...
Remove deprecated -mno-cygwin flag.
2013-08-20 15:20:14 -07:00
Rodrigo Kumpera
ac146cb037
[verify]Relax the restriction on global methods visibility. Fixes #13890 .
2013-08-20 15:49:24 -04:00
Rodrigo Kumpera
c187e5ea14
[verifier]Since 4.5 arrays now implement IReadOnlyList<T> and IReadOnlyCollection<T>. Verify this properly. Fixes #13879 .
2013-08-20 14:47:55 -04:00
Zoltan Varga
ba8d128834
Add support for more return types for constrained gsharedvt calls. Fixes #13030 .
2013-08-20 19:50:29 +02:00
Zoltan Varga
c686f20fbe
Enable support for constrained gsharedvt calls to Object.GetType ().
2013-08-20 19:09:31 +02:00
Zoltan Varga
74fc821cf6
Fix a regression introduced by d84a165c8e. Unbox casts were failing for enums. Fixes #14026 .
2013-08-20 16:08:32 +02:00
Paolo Molaro
e50f95626b
Merge pull request #739 from mono/upstream-master
...
Ported perf code to work on arm and adjusted to changes in the kernel th...
2013-08-20 06:10:07 -07:00
Paolo Molaro
25961ac5cf
Ported perf code to work on arm and adjusted to changes in the kernel that broke mmap().
...
The kernel doesn't allow anymore to setup a perf fd with any cpu and the inherit flag
(to take into account threads created later on), so now we setup a fd/mmap area for each
cpu in the system.
2013-08-20 14:50:47 +02:00
Zoltan Varga
f36257e03b
[aot] Add support for constrained gsharedvt calls which return a reference value. Fixes #13030 .
2013-08-20 01:30:10 +02:00
Marek Safar
cabe0f95ed
Merge pull request #738 from strawd/bug14077
...
Fix for #14077 . HashSet no longer grows in capacity on deserialize
2013-08-19 13:05:16 -07:00
David Straw
a257338394
Fix for #14077 . HashSet no longer grows in capacity on deserialize
...
Not all necessary members were being initialized during deserialization
2013-08-19 13:48:17 -06:00
Rodrigo Kumpera
2bec46815c
[runtime]Fix mono-config.h to use the mono API public types and not the glib ones.
2013-08-19 15:40:05 -04:00
Alex Rønne Petersen
4a61680549
Add an #else -> #error path to mono-membar.h.
2013-08-19 21:30:40 +02:00
Jeffrey Stedfast
7694b5dbae
Only disable __thread with clang on Mac OS X
2013-08-19 11:30:31 -04:00
Marek Safar
1269b409b3
Add argument modifiers to generated base proxy when needed. Fixes #13892
2013-08-19 13:22:13 +02:00
Marek Safar
cbca01b433
Add dispose checks to ReaderWriterLockSlim and fix race in currentThreadState initialization
2013-08-19 10:22:23 +02:00
Marek Safar
1fe24728bd
Optimize common path
2013-08-19 10:22:22 +02:00
Atsushi Eno
88dadaaf10
Revert "Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().""
...
This reverts commit 0ef5f49c1f .
2013-08-19 12:13:38 +09:00
Michael Pavlyshko
52a67a6219
Remove deprecated -mno-cygwin flag.
2013-08-18 21:12:14 +03:00
Atsushi Eno
0ef5f49c1f
Revert "Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor()."
...
This reverts commit b43211d101 .
2013-08-18 15:34:37 +09:00
Atsushi Eno
b43211d101
Fix bug #7829 - do NOT reject ConstructorInfo in DynamicILInfo.GetTokenFor().
...
It is only one of probably many reasons that prevents Jurassic JavaScript engine.
2013-08-18 15:31:40 +09:00
Marek Safar
6508d62869
Grow underlying buffer only when necessary. Fixes #13552
2013-08-17 16:31:45 +02:00
Marek Safar
70b14ec733
Report error for name collision between property and generic method with same name. Fixes #14053
2013-08-17 11:14:33 +02:00
Marek Safar
e9f871dfe4
Merge pull request #736 from wtfrank/charting
...
add missing ZTestResult properties
2013-08-17 01:39:41 -07:00
Francis Fisher
ada7e135c9
add missing ZTestResult properties
2013-08-17 08:36:49 +01:00
Marek Safar
f81e067e01
Fixes GZipStream dispose order. Fixes #14032
2013-08-16 23:16:23 +02:00
Zoltan Varga
cad5315ebf
Convert nan/infinity to uint 0 to match MS.NET. Fixes #13927 .
2013-08-16 19:48:55 +02:00
Rodrigo Kumpera
e86837b7d2
Merge pull request #725 from knocte/threadpool_init
...
[ThreadPool] Allow heavier initialization when using --server flag
2013-08-16 06:21:31 -07:00
Marek Safar
a208b628e9
Implements lifted nullable comparison with null
2013-08-16 15:18:49 +02:00
Marek Safar
1044b36c14
Rewrites RuntimeReflectionExtensions to actually do something. Fixes #13626
2013-08-16 11:14:50 +02:00
Marek Safar
f9391f934a
Disable test failing due to runtime bug
2013-08-16 10:13:29 +02:00
Zoltan Varga
a8cbb84a2c
Simplify the caching of delegate-invoke wrappers with a bound first argument, caching can be done using just the signature.
2013-08-16 03:10:52 +02:00
Zoltan Varga
8d291a2e77
Merge pull request #734 from joncham/domain-debug-leaks
...
Fix domain related leaks of debug information
2013-08-15 17:53:33 -07:00
Marek Safar
0c8d56025e
Remove some unused parameters
2013-08-15 18:06:36 +02:00
Marek Safar
b05f24e810
Type parameter inflated interfaces needs to be marked too. Fixes #13996
2013-08-15 16:59:10 +02:00
Atsushi Eno
349c84032e
Fix regression from 2cc36e3, missing BaseURI caused external schema resolution failure.
2013-08-15 22:09:49 +09:00
Marek Safar
17a8120548
Correct parsing of invalid 00000000-0000-0000-0000-000000000000 guid format. Fixes #13970
2013-08-15 12:18:36 +02:00
Marek Safar
4060edb4fa
Small optimization of GuidParser
2013-08-15 11:41:05 +02:00
Marek Safar
0e9c53b052
Workaround for legacy nunit
2013-08-15 11:17:02 +02:00
Marek Safar
9d94a06e6a
Inflate explicit delegate parameters using type inference context too. Fixes second part of #13969
2013-08-15 11:03:15 +02:00
Atsushi Eno
37e7f2fb50
Fix build (giconv.c)
2013-08-15 13:18:16 +09:00
Jeffrey Stedfast
a81cd6dae8
[eglib] Fixed g_utf8_to_utf16_general() to handle invalid utf8
2013-08-14 19:41:38 -04:00
Rodrigo Kumpera
384f1d8af5
Add tests for the recently fixed issues with block guards.
2013-08-14 19:23:34 -04:00
Rodrigo Kumpera
a385a2bac2
[runtime]Generate the proper exit code for block guard trampolines.
...
Finally blocks use a non-standard calling convention which means we need to take it
into account in the return address hijacking trampoline.
A finally block is called with ESP % 16 == 4. Once inside the finally block, ESP returns
to be % 16 == 0 due to the call instruction pushing the return address.
The problem comes when we want to hijack the return address. Our trampolines expect a
normal calling convention with ESP properly aligned, so we use a small thunk of code that
does that before jumping into the trampoline itself. This is required as we'll enter native.
The problem lies on the exit path as the trampoline jump to an arbitrary place instead back
to the above thunk. This leaves the stack with the thunk adjustment in, which will cause
the resulting code to misalign the stack even further.
The solution, though a big ugly, is to change the exit path of the trampoline fix the stack
to be "properly" misaligned.
2013-08-14 19:05:33 -04:00
Rodrigo Kumpera
58e8550d5c
[runtime]Properly compute the end address of a finally block when it ends in a dead basic-block.
...
We compute the end address of a finally block by using cil_offset_to_bb, which can point to dead
basic blocks if those were killed by CFG simplification.
2013-08-14 19:05:26 -04:00
Rodrigo Kumpera
93b0f40d43
[runtime] Make sure mono_create_handler_block_trampoline is async signal safe.
...
We call mono_create_handler_block_trampoline when installing the block guard,
so this function must be async safe at that stage in the runtime.
Since it is eagerly called during startup, we should be fine with just
memory barriers.
2013-08-14 19:05:19 -04:00
Zoltan Varga
516c4d85f5
Add a WrapperInfo for delegate-invoke wrappers to make it possible to distinguish between normal wrappers and ones with a bound first argument.
2013-08-14 22:59:32 +02:00
Marek Safar
c7a91f9309
Add test for #13969
2013-08-14 21:54:49 +02:00
Marek Safar
2b39b6a926
Fix recursive check for non dependent return types during type inference. Fixes #13969
2013-08-14 21:53:30 +02:00
Mark Probst
00f152cfc4
Fixed a few bugs that were found by Visual Studio's static code analysis.
2013-08-14 11:22:59 -07:00
Mark Probst
6a14275371
[sgen] Fix another posix handshake issue.
2013-08-14 11:04:28 -07:00
Jonathan Chambers
effa6dcf44
Free domain specific sequence point information.
...
Conflicts:
mono/mini/mini.c
2013-08-14 13:10:23 -04:00
Jonathan Chambers
5047a9c314
Free returned offsets and line numbers from mono_debug_symfile_get_line_numbers.
2013-08-14 13:07:38 -04:00
Marek Safar
4f021d81ca
Merge pull request #733 from amoiseev-softheme/bugfix/monofix
...
Applying fixes to Https from Windows team to mono
2013-08-14 06:46:41 -07:00
Marek Safar
64dcc45998
Don't crash when reporting invalid case label value. Fixes #13952
2013-08-14 15:32:21 +02:00
Alexey Moiseev
26099534a0
Applying fixes to Https from Windows team to mono
2013-08-14 16:28:19 +03:00
Marek Safar
2940861c80
Merge pull request #732 from wtfrank/charting
...
placement of MonoTODO
2013-08-14 00:48:17 -07:00
Francis Fisher
6930f1a8ee
placement of MonoTODO
2013-08-14 00:14:23 +01:00
Zoltan Varga
a31b580fdc
[sgen] Add a workaround for #13951 . Register the jit info for GC critical methods as soon as they are loaded, and avoid lookups in the AOT images when calling mono_jit_info_table_find () during STW.
2013-08-14 00:15:16 +02:00
Zoltan Varga
fd80c70838
Fix a warning.
2013-08-14 00:15:16 +02:00
Marek Safar
18068d5b4f
Merge pull request #729 from wtfrank/charting-submit
...
Continued implementation of Charting namespace
2013-08-13 12:42:18 -07:00
Jeffrey Stedfast
2f19eee32f
Fixed configure.in to fail the __thread check with clang
2013-08-13 15:34:12 -04:00
Miguel de Icaza
cca57fa576
Add System.DirectoryServices.Protocols to the rpm build to fix the bots
2013-08-13 15:00:18 -04:00
Jeffrey Stedfast
9fd216db06
Fixed some compiler warnings in libgc
2013-08-13 13:12:59 -04:00
Jeffrey Stedfast
b609cbb543
Replaced call to sscanf() with calls to strtoull(). Better. Faster. Stronger.
2013-08-13 12:46:50 -04:00
Jonathan Pryor
bd130f3a2c
[mscorlib] Support OID names in RSACryptoServiceProvider.SignData()
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13953
MSDN documents that RSACryptoServiceProvider.SignData()'s provider
paramter may contain an OID name:
http://msdn.microsoft.com/en-us/library/y2wf1b6k.aspx
> The halg parameter can accept a String, a HashAlgorithm, or a Type.
> The string value can be one of the following:
> * The object identifier (OID) friendly name of the hash algorithm to use,
> either a name registered in the crypto config file or one in the
> Crypto API OID table.
> * The OID value. The OID must be one recognized by the Crypto API.
> For example, you could use SignData(new byte[5], "1.3.14.3.2.26") or
> SignData(new byte[5], "sha1"), or SignData(new byte[5], "SHA1").
Add support for this OID names as the provider.
2013-08-13 12:09:56 -04:00
Jeffrey Stedfast
91bf902e2e
Improved fix for g_iconv() compiler warnings
2013-08-13 11:59:52 -04:00
Jeffrey Stedfast
82219acd3c
Fixed eglib compiler warnings about g_string_truncate() and g_iconv()
2013-08-13 11:44:58 -04:00
Jeffrey Stedfast
94f12d815e
Fixed some compiler warnings
2013-08-13 11:24:21 -04:00
Rolf Bjarne Kvinge
2448e73caa
Revert "Fix a test to work on mobile after the async release."
...
This reverts commit b22667cd23 .
It was a build bug in monotouch, not a buggy test.
2013-08-13 13:21:22 +02:00
Zoltan Varga
92d3a7b0b6
Fix 5d37fac7c8 yet again.
2013-08-13 12:29:45 +02:00
Zoltan Varga
fad3d7f588
[msvc] Implement MONO_CONTEXT_GET_CURRENT () on the msvc build.
2013-08-13 03:34:06 +02:00
Zoltan Varga
c0365e5748
Fix warnings.
2013-08-13 03:34:06 +02:00
Zoltan Varga
c98df65bfa
[msvc] Avoid linking against libgc in the sgen configurations.
2013-08-13 03:34:05 +02:00
Rolf Bjarne Kvinge
af8e11988d
Only build mscorlib in the monotouch_runtime profile.
2013-08-13 00:34:58 +02:00
Zoltan Varga
398c7fc21f
[sgen] Disable freeing of OS memory on win32, it causes asserts because VirtualFree () fails.
2013-08-12 23:23:57 +02:00
Jonathan Pryor
0e7dc370e3
[System.Core/Android] Android's libc.so doesn't export getpagesize()
...
Partially fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=12739
Android's libc.so doesn't export getpagesize(3), resulting in an
EntryPointNotFoundException:
System.EntryPointNotFoundException: getpagesize
at (wrapper managed-to-native) System.IO.MemoryMappedFiles.MemoryMapImpl.getpagesize ()
at System.IO.MemoryMappedFiles.MemoryMapImpl.Map (int,long,long&,System.IO.MemoryMappedFiles.MemoryMappedFileAccess,intptr&,int&)
at System.IO.MemoryMappedFiles.MemoryMappedViewAccessor.Create (long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
at System.IO.MemoryMappedFiles.MemoryMappedViewAccessor..ctor (int,long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateViewAccessor (long,long,System.IO.MemoryMappedFiles.MemoryMappedFileAccess)
Android does provide getpagesize(3); it's just an inline function.
The full fix will require two parts:
1. Update MemoryMapImpl to P/Invoke
libmonodroid.so!monodroid_getpagesize()
2. Add a libmonodroid.so!monodroid_getpagesize() export.
This commit implements (1).
2013-08-12 16:59:14 -04:00
Sebastien Pouliot
2ab52ceae2
[linker] Add AssemblyAction.Save to enable the linker to re-write an assembly without actually linking it. Useful to remove references to PCL assemblies that are not really used (e.g. when only type forwarders are needed) [ #13488 ]
2013-08-12 15:31:33 -04:00
Sebastien Pouliot
27e36aef37
[linker] Small string optimizations to avoid culture aware code paths
2013-08-12 15:31:33 -04:00
Zoltan Varga
f447c860f5
[aot] Align the static linking symbol.
2013-08-12 21:10:13 +02:00
Francis Fisher
c529dc59df
fix properties per mono guidelines
2013-08-12 19:48:20 +01:00
Zoltan Varga
56a02b9285
Merge pull request #708 from spicypixel/hotfix/mono-object-to-string
...
Add support for value types to mono_object_to_string
2013-08-12 11:17:07 -07:00
Jonathan Lima
d0715eeb4b
Fixed SGen build for MSVC
...
From:
https://github.com/mono/mono/pull/724
2013-08-12 19:57:02 +02:00
Jonathan Lima
0585e7cb9a
Fixed incorrect pointer arithmetic on SGen for MSVC.
...
From:
https://github.com/mono/mono/pull/724
2013-08-12 19:53:21 +02:00
Jonathan Lima
9883ab8b8a
Fixed MSVC build, ported to Visual Studio 2012.
...
From:
https://github.com/mono/mono/pull/724
2013-08-12 19:48:05 +02:00
Jonathan Lima
d5b8fd8e6d
Improved exception handling with vectored exception handling.
...
Now a native debugger can be used with soft debugger running without triggering any exception. Code provided by Jonathan Chambers:
* https://github.com/Unity-Technologies/mono/commit/e9f9f7170914c5caaff3e95e09f6f58ecced2a10
* https://github.com/Unity-Technologies/mono/commit/4c2e1db60ccb38e792545d595d85b12ff309a919
* https://github.com/Unity-Technologies/mono/commit/bd7e534aa7da49b89787b8c1b40e165a34c0e960
* https://github.com/Unity-Technologies/mono/commit/b885251a83969d243deabc56bb3d1495d4a971dc
From:
https://github.com/mono/mono/pull/724
2013-08-12 19:46:06 +02:00
Jeffrey Stedfast
51b648a118
Fixed build breakage from my previous commit
2013-08-12 12:12:47 -04:00
Jeffrey Stedfast
b1d7375726
Fixed System.Text.Decoder.GetChars(byte*,int,char*,int,bool) to copy output into the char* buffer.
2013-08-12 08:22:49 -04:00
Zoltan Varga
b5188e8b4e
Get rid of the annoying 'PLATFORM is not defined.' message on every build.
2013-08-12 01:26:54 +02:00
Zoltan Varga
7839312e84
Avoid infinite logfiles if the test-process-exit test fails to terminate.
2013-08-12 01:14:13 +02:00
Zoltan Varga
529b920b35
Fix skipping of disabled runtime tests on windows.
2013-08-12 00:48:38 +02:00
Zoltan Varga
06dea0679d
Clean up the win32 lmf code by using a separate variable to hold the jit_tls tls offset. Fix warnings.
2013-08-11 23:19:18 +02:00
Zoltan Varga
21e5a22980
Enable MONO_ARCH_HAS_MONO_CONTEXT on mingw.
2013-08-11 22:46:00 +02:00
Francis Fisher
f436736f30
fix up some properties per mono coding guidelines
2013-08-11 18:12:58 +01:00
Francis Fisher
699ef5e948
Boilerplate implementation of Charting
...
Implemented enough of
System.Windows.Forms.DataVisualization.Charting to get two pieces of
software to compile: the charting examples from MSDN and the windows OSS
EVEMon.
This patch contains the majority of properties defined, and many methods
stubbed - I have avoided implementing any functionality in this patch.
All this work is under the MIT Licence.
2013-08-11 15:07:55 +01:00
Rolf Bjarne Kvinge
fa0f423dc5
Fix profile values for monotouch_runtime.
2013-08-10 00:35:10 +02:00
Mark Probst
2c45af25e2
Fix #13604 - STW handshake/thread shutdown race condition.
2013-08-09 13:24:18 -07:00
Atsushi Eno
b62bb260ec
Fix bug #4344 - xsl:stylesheet always ignored xsl template contents.
2013-08-09 19:47:20 +09:00
Marek Safar
2f334102cd
Add more implicit generic array interfaces. Fixes #8934
2013-08-09 11:56:13 +02:00
Marek Safar
ded10b24e9
Update reference file
2013-08-09 11:56:13 +02:00
Atsushi Eno
d21b0aa3d9
Fixed bug #4141 - XmlSchemaImporter needs to consider attributeGroupRef in some case.
2013-08-09 17:22:38 +09:00
Zoltan Varga
fde407c873
Fix 5d37fac7c8 again.
2013-08-09 10:13:22 +02:00
Atsushi Eno
53a68c9e20
Fixed bug #4668 - C# compiler doesn't like decimal in custom attribute values, so use string.
2013-08-09 17:03:40 +09:00
Atsushi Eno
ccab57808d
Fix bug #8637 - omit xml declaration for ToString().
2013-08-09 15:57:35 +09:00
Zoltan Varga
4c0a69874e
Remove the usage of gcc-3 on mingw, the gcc-3 package no longer exists on cygwin. Mono can be built by configuring with --host=i686-pc-mingw32. Building without this will not work, since the libtool wrapper executables created by libtool will be unusable, i.e. they exit before the real runtime process exits.
2013-08-09 01:59:46 +02:00
Zoltan Varga
ebfd12313e
Fix mingw compilation problems.
2013-08-09 01:59:45 +02:00
Zoltan Varga
77f1fafb58
Fix monodis compilation on mingw which is missing some fp classification functions.
2013-08-09 01:59:45 +02:00
Zoltan Varga
04f533820d
Make the gc descriptor tests fail consistently if python is not found.
2013-08-09 01:59:44 +02:00
Jonathan Pryor
d1fcb53e15
[mdoc-validate] Allow <format/> to have ANY content.
...
The intent of the <format/> element is to assist encapsulating
arbitrary HTML content within an mdoc(5) container. This frequently
requires having more than _one_ element within the <format/> block.
(WTF was I thinking forgetting the maxOccurs attribute?!)
2013-08-08 16:35:51 -04:00
Atsushi Eno
c65fe47d44
generate mobile csproj files too.
2013-08-08 22:45:07 +09:00
Atsushi Eno
468cb8d277
Build Ix assemblies from rx sources.
2013-08-08 22:07:29 +09:00
Atsushi Eno
2cc36e3331
Fix bug #13716 - use XmlSchemaSettings.XmlResolver to resolve schemas.
2013-08-08 21:38:47 +09:00
Marek Safar
5c55eea17e
Basic optional parameters support in binder. Fixes #13817
2013-08-08 13:31:08 +02:00
Marek Safar
09139111a5
Merge pull request #728 from alesliehughes/master
...
Enable System.DirectoryServices.Protocols assembly
2013-08-08 02:58:22 -07:00
Alistair Leslie-Hughes
1eb75507a6
Enable System.DirectoryServices.Protocols assembly
2013-08-08 19:20:32 +10:00
Marek Safar
f2524362fc
Always release DeflateStream unmanaged resources. Fixes #13742
2013-08-08 10:29:05 +02:00
Atsushi Eno
b5a856e716
Fix bug #11298 - in XElement.Replace*(), create snapshot of content first before removal (unlike it is documented!)
2013-08-08 16:02:03 +09:00
Zoltan Varga
0487904629
[aot] Avoid passing partially shared instances to the JIT. Fixes #13191 .
2013-08-08 00:08:51 +02:00
Zoltan Varga
9c65ad34a9
Fix 5d37fac7c8.
2013-08-07 22:51:51 +02:00
Zoltan Varga
5d37fac7c8
[aot] Error out if -O=gsharedvt is used on a platform/configuration where it is not supported.
2013-08-07 21:28:55 +02:00
Marek Safar
56f98e18dd
Add block scope for foreach variables with statement only
2013-08-07 20:58:35 +02:00
Marek Safar
0c22492321
Remove NIE from SetWaitNotificationRequired. Fixes #13742
2013-08-07 20:02:03 +02:00
Marek Safar
6a4c57e05b
Handle partial class case when nested type of partial container dependends on parent base type from another partial container. Fixes #13731
2013-08-07 19:00:57 +02:00
Atsushi Eno
3e2f5ef8fc
Fix bug #10194 - SetElementValue(nonExistentElementName, null) caused NRE.
2013-08-08 01:36:35 +09:00
Atsushi Eno
874d3b1389
Fix bug #12035 - xsi:nil='true' was ignored in some scenario.
...
"some scenario" I mean:
- There is a sequence with more than one elements in xsd,
- The second element is nillable and its type has content elements, and
- The corresponding XML element specifies xsi:nil='true'
Then it resulted in a validation error as if it were missing the required
content.
2013-08-08 01:00:10 +09:00
Marek Safar
155df94118
Inflate default parameter expression without type checks. Fixes #13793
2013-08-07 15:18:04 +02:00
Rolf Bjarne Kvinge
b22667cd23
Fix a test to work on mobile after the async release.
2013-08-07 14:59:12 +02:00
Marek Safar
3448cab291
Update named params parameter converted result expression. Fixes #13786
2013-08-07 12:49:48 +02:00
Atsushi Eno
72d14cca36
Fix bug #12469 - add more conversion methods to XmlAtomicValue.
...
Since XmlAtomicValue is pretty much hidden in the implementation, there is
almost no way to verify how it should work. So the changes are all based on
assumption. Yet I added a test based on bug #12469 .
There is still problem on processing *invalid* inputs. They have to be
rejected, but they pass.
2013-08-07 18:54:03 +09:00
Marek Safar
b213facf8e
Merge pull request #727 from alesliehughes/master
...
ActiveDirectory Class and enums
2013-08-06 23:35:12 -07:00
Rodrigo Kumpera
b0406462f6
[build]Bring some sanity to the monotouch profiles.
...
monotouch is now the static profile and it does define FULL_AOT_RUNTIME globally.
2013-08-06 19:00:03 -04:00
Rodrigo Kumpera
f9adf72b40
Add support for exclude files in extension modules.
2013-08-06 19:00:03 -04:00
Alistair Leslie-Hughes
72855152a6
Add class DirectoryServicesCOMException
2013-08-07 08:52:08 +10:00
Alistair Leslie-Hughes
3942cbcf71
Add class DirectoryVirtualListView
2013-08-07 08:18:31 +10:00
Alex Rønne Petersen
060669d19a
Fix an unlikely case in cmd_to_string () where cmds would be accessed uninitialized.
2013-08-06 21:27:03 +02:00
Alex Rønne Petersen
b0b4fdb5ee
Fix another strtod warning with #if 0.
2013-08-06 21:23:03 +02:00
Alex Rønne Petersen
afef0a0f59
Add two unnecessary zero initializations to shut GCC up.
...
The conditions are too complex for GCC to realize that these variables
are actually initialized when they're used.
2013-08-06 21:23:03 +02:00
Alex Rønne Petersen
dcd27aa93f
Kill another mixed-decls-and-code warning.
2013-08-06 21:23:02 +02:00
Marek Safar
1496eac3f4
Create correct flow branching for single non-default switch section. Fixes #13736
2013-08-06 21:07:16 +02:00
Alex Rønne Petersen
19d7806b73
Fix some warnings in strtod by #if 0'ing some unused functions.
2013-08-06 20:53:00 +02:00
Alex Rønne Petersen
5db03c67c1
Fix a warning in dlmalloc by #if 0'ing an unused function.
2013-08-06 20:53:00 +02:00
Alex Rønne Petersen
a0bba405d1
Fix a mixed-decls-and-code warning.
2013-08-06 20:53:00 +02:00
Jonathan Pryor
82a197e41c
[System.Core/Android] Support Android v4.3's timezone DB format
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13686
Android v4.3 changed the timezone DB format described in 8a263984 and
replaced it with a single file containing version, index, data, and a
"zoneTab" (which is parsed but unused).
Port/rewrite the Java libcore.util.ZoneInfoDB type into
System.AndroidTzData so that this new file format is supported.
(Another day, another file format...)
2013-08-06 14:27:20 -04:00
Alistair Leslie-Hughes
b4f1c73e83
Add class DirectoryVirtualListViewContext
2013-08-06 19:22:05 +10:00
Alistair Leslie-Hughes
261ec28e7c
Add class DirectorySynchronization
2013-08-06 19:22:04 +10:00
Alistair Leslie-Hughes
c5c858d823
Add enum ExtendedDN
2013-08-06 19:22:02 +10:00
Alistair Leslie-Hughes
aa5da06469
Add class ExtendedRightAccessRule
2013-08-06 19:22:01 +10:00
Alistair Leslie-Hughes
6129ec4d09
Add enum DirectorySynchronizationOptions
2013-08-06 19:22:00 +10:00
Alistair Leslie-Hughes
20d02fae27
Add class ForestTrustCollisionException
2013-08-06 19:21:59 +10:00
Alistair Leslie-Hughes
67a116c863
Add class ForestTrustRelationshipCollisionCollection
2013-08-06 19:21:56 +10:00
Alistair Leslie-Hughes
aa5657b7fa
Add class ForestTrustRelationshipCollision
2013-08-06 19:21:54 +10:00
Alistair Leslie-Hughes
f04968359d
Add class ListChildrenAccessRule
2013-08-06 19:21:54 +10:00
Alistair Leslie-Hughes
c234f6e2dc
Add enum ForestTrustCollisionType
2013-08-06 19:21:51 +10:00
Alistair Leslie-Hughes
903d21bac7
Add class ActiveDirectoryServerDownException
2013-08-06 19:21:48 +10:00
Alistair Leslie-Hughes
8263101015
Add class DirectoryEntryConfiguration
2013-08-06 19:21:47 +10:00
Alistair Leslie-Hughes
559570da6d
Add enum PasswordEncodingMethod
2013-08-06 19:21:47 +10:00
Alistair Leslie-Hughes
571444246f
Add enum DomainCollisionOptions
2013-08-06 19:21:46 +10:00
Alistair Leslie-Hughes
7f50298027
Add class PropertyAccessRule
2013-08-06 19:21:45 +10:00
Alistair Leslie-Hughes
1a2de021ca
Add class PropertySetAccessRule
2013-08-06 19:21:44 +10:00
Alistair Leslie-Hughes
a9201c5b00
Add enm PropertyAccess
2013-08-06 19:21:42 +10:00
Alistair Leslie-Hughes
a6331506cb
Add class ReadOnlySiteLinkBridgeCollection
2013-08-06 19:21:42 +10:00
Alistair Leslie-Hughes
5682a6430e
Add class ActiveDirectorySiteLinkBridge, ActiveDirectorySiteLinkCollection
2013-08-06 19:21:41 +10:00
Alistair Leslie-Hughes
cf17ecb829
Add enum ReplicationSecurityLevel
2013-08-06 19:21:41 +10:00
Alistair Leslie-Hughes
e12b9a2c61
Add enum SecurityMasks
2013-08-06 19:21:40 +10:00
Alistair Leslie-Hughes
ae40175ca0
Add enum TopLevelNameCollisionOptions
2013-08-06 19:21:39 +10:00
Andrés G. Aragoneses
26d0b81c26
[ThreadPool] Allow heavier initialization when using --server flag
...
Create on demand up to min_threads to avoid startup penalty, avoiding
throttling of threadpool worker thread creation (for now, using
a --server flag) at initialization.
When throttling happens, operations such as parallel https requests were
slowed down significantly due to all of the threads created in order
to complete the SSL operations.
Based on @kamalaboulhosn's patch (https://github.com/mono/mono/pull/640/files )
2013-08-06 10:32:54 +02:00
Zoltan Varga
ab92538d5a
[llvm] Disable LLVM for async methods to work around #13734 .
2013-08-06 09:28:57 +02:00
Zoltan Varga
6cca13b657
[llvm] Avoid adding methods which failed llvm compilation to 'mono.function_indexes'.
2013-08-06 09:28:32 +02:00
Zoltan Varga
1188277099
[sdb] Improve logging a bit.
2013-08-06 09:26:46 +02:00
Atsushi Eno
439046726f
implement character validation methods in XmlConvert. Fix bug #11910 .
2013-08-06 14:38:14 +09:00
Rodrigo Kumpera
70d411b525
Fix thinko in last commit. It's DISABLE_COM and not DISABLE_REMOTING.
2013-08-05 17:25:56 -04:00
Rodrigo Kumpera
1f6effb1e1
[sgen]GC fight club rules. NEVER poke the managed heap if you are not supposed to.
2013-08-05 17:24:57 -04:00
Rodrigo Kumpera
37ac7d16dc
[sgen]Add some comments on the usage of all STW related fields.
2013-08-05 17:04:14 -04:00
Rodrigo Kumpera
300f015223
monotouch requires DISABLE_COM too.
2013-08-05 14:24:48 -04:00
Rodrigo Kumpera
809b7ed950
Fix log messge.
2013-08-05 11:41:24 -04:00
Pablo Ruiz Garcia
6128710873
Fixed xamarin bug #13708 : routing constraints should be trated as 'convertible to string' in order to be compat with MS.NET
2013-08-05 15:20:31 +02:00
Marek Safar
fb24aa7b1a
Don't show internal error when default paramater expression cannot be converted to paramter type. Fixes #13682
2013-08-05 12:17:18 +02:00
Marek Safar
7cda2dd37c
Merge pull request #723 from alesliehughes/master
...
Revert "Add class DnsPermission"
2013-08-05 02:07:57 -07:00
Atsushi Eno
8a10b06610
Fix bug #13485 : retrieve private fields and properties in serialization.
2013-08-05 15:36:24 +09:00
Micael Dias
5a9472a254
Fix cross compilation to windows. "Windows.h" should be "windows.h". Fixes #13729 .
2013-08-05 08:10:32 +02:00
Zoltan Varga
568e0bc803
Add support for constrained gsharedvt calls to IComparable<T>.CompareTo ()/IEquatable<T>.Equals (). Fixes #13704 .
2013-08-04 09:18:49 +02:00
Zoltan Varga
e7a9566734
Put runtime-invoke wrappers of valuetype methods into a separate cache, they have a different signature.
2013-08-04 09:17:43 +02:00
Alex Rønne Petersen
23548657e1
Fix the non-MSVC build.
2013-08-02 22:39:15 +02:00
Neale Ferguson
41a154d096
Variable has_ld was renamed
2013-08-02 15:20:47 -04:00
Rodrigo Kumpera
cbbd711017
Merge pull request #681 from tritao/dll-api
...
Added public API visibility macros
2013-08-02 10:55:19 -07:00
Alistair Leslie-Hughes
9a1ddb9f0c
Revert "Add class DnsPermission"
...
This reverts commit c3d818e1ba .
The class is already part of the System assembly. I mistook the
namespace as the Assembly name.
2013-08-02 19:02:35 +10:00
Alex Rønne Petersen
09219a1459
Merge pull request #722 from JulianHamilton/master
...
Faster index lookup in RemoveInternal
2013-08-01 22:59:28 -07:00
JulianHamilton
d4e750970c
Faster index lookup in RemoveInternal
2013-08-02 09:53:17 +09:30
Alex Rønne Petersen
849fb05887
configure: Fix arch selection for s390x.
2013-08-01 23:45:16 +02:00
Miguel de Icaza
6944d48c68
FullAOT fallback: Slightly better random
2013-08-01 09:50:20 -04:00
Zoltan Varga
0721c1fb28
[sdb] Improve some sdb logging messages.
2013-08-01 06:53:52 +02:00
Zoltan Varga
d84a165c8e
Fix enum->int unbox casts in gsharedvt code. Fixes desk #42463 .
2013-08-01 02:17:33 +02:00
Mark Probst
57224013a8
[sgen] Honor --disable-major.
2013-07-31 10:32:00 -07:00
Marek Safar
1e93b054ec
Add better diagnostics for invalid properties
2013-07-31 18:00:38 +02:00
Marek Safar
316061e2dc
Revert "Add null constant argument type check"
...
This reverts commit 01697c1f78 .
2013-07-31 18:00:38 +02:00
Miguel de Icaza
8a019b64fe
Not currently referenced
2013-07-31 09:42:13 -04:00
Marek Safar
01697c1f78
Add null constant argument type check
2013-07-31 13:48:00 +02:00
Marek Safar
8ffb6b1981
Workaround limitation of ancient nunit
2013-07-31 10:55:27 +02:00
Zoltan Varga
b6da6da507
Fix some cases of --debug=casts, add tests.
2013-07-31 04:36:50 +02:00
Zoltan Varga
c4ced34e1c
Avoid tail calls which breaks the test in finalizer-exception.cs.
2013-07-31 04:07:39 +02:00
Zoltan Varga
b181fa6d91
Fix a warning.
2013-07-31 03:54:17 +02:00
Zoltan Varga
2a4e1e127b
Quote path arguments to opt/llc. Fixes #13603 .
2013-07-31 00:26:57 +02:00
Miguel de Icaza
b6d1b4492f
Class libraries: introduce mobile_static profile, for MonoTouch-like static builds, but not limited to iOS (WinStore, Kumpera did the work).
2013-07-30 16:51:38 -04:00
Marek Safar
81e3a33c79
Write only import section from global namespaces before global attribute sections. Fixes #13523
2013-07-30 20:18:48 +02:00
Alex Rønne Petersen
ff9f71c44e
Fall back to /proc/cpuinfo when sys/auxv.h is not available.
...
Diagnosed and suggested by Chris Araman <[email protected] >.
2013-07-30 17:56:41 +02:00
Paolo Molaro
4ed1d92610
Merge pull request #703 from ysw/master
...
Fixed: send/recv race in tpool-epoll and tpool-kqueue implementations
2013-07-30 08:51:04 -07:00
Marek Safar
77d2f31ac1
Merge pull request #665 from andreas-auerswald/master
...
Serilaization TimeZoneInfo class
2013-07-30 06:56:54 -07:00
Marek Safar
adbe98f12d
Add more system assemblies remapping. Fixes #11294
2013-07-30 15:51:30 +02:00
Marek Safar
694d67d582
No type forwarders for 2.0 System.Net
2013-07-30 15:51:29 +02:00
Marek Safar
d90decc417
Fixed binary serialization
2013-07-30 15:51:29 +02:00
Marek Safar
fa8dc3c5e5
Merge pull request #719 from alesliehughes/master
...
Last of System.DirectoryServices.ActiveDirectory classes
2013-07-30 03:44:51 -07:00
Marek Safar
ebff81b3d5
Fix ObservableCollection binary serialization (based on 828a6a4f45)
2013-07-30 11:14:43 +02:00
Alistair Leslie-Hughes
df60ae8379
Added the following classes
...
ActiveDirectorySite
ActiveDirectorySiteCollection
ActiveDirectorySiteLink
ActiveDirectorySubnet
ActiveDirectorySubnetCollection
Domain
DomainCollection
DomainController
DomainControllerCollection
Forest
GlobalCatalog
GlobalCatalogCollection
ReadOnlySiteCollection
ReadOnlySiteLinkCollection
I couldn't split them up into single commits without breaking the build.
2013-07-30 17:58:54 +10:00
Alistair Leslie-Hughes
5c3ea0d668
Add class ActiveDirectorySchema
2013-07-30 17:58:53 +10:00
Alistair Leslie-Hughes
0b839ce9ea
Add class ActiveDirectorySchemaClass, ActiveDirectorySchemaClassCollection, ReadOnlyActiveDirectorySchemaClassCollection
2013-07-30 17:58:52 +10:00
Alistair Leslie-Hughes
dd53968422
Add class ActiveDirectorySchemaPropertyCollection, ReadOnlyActiveDirectorySchemaPropertyCollection
2013-07-30 17:58:49 +10:00
Alistair Leslie-Hughes
73caba4f68
Add class ActiveDirectorySchemaProperty
2013-07-30 17:58:48 +10:00
Alistair Leslie-Hughes
eea85080a6
Add ForestTrustRelationshipInformation
2013-07-30 17:58:47 +10:00
Alistair Leslie-Hughes
77986a10be
Add class ForestTrustDomainInfoCollection
2013-07-30 17:58:44 +10:00
Alistair Leslie-Hughes
d673f23cad
Add class ForestTrustDomainInformation
2013-07-30 17:58:42 +10:00
Alistair Leslie-Hughes
e99ecebd51
Add class ApplicationPartitionCollection
2013-07-30 17:58:41 +10:00
Alistair Leslie-Hughes
76e680de20
Add class ApplicationPartition
2013-07-30 17:58:39 +10:00
Alistair Leslie-Hughes
277758cdab
Add class ReadOnlyDirectoryServerCollection
2013-07-30 17:58:37 +10:00
Alistair Leslie-Hughes
0b7e53aa89
Add class DirectoryServerCollection
2013-07-30 17:58:35 +10:00
Alistair Leslie-Hughes
d1711cf941
Add class DirectoryServer, ReplicationConnection, ReplicationConnectionCollection
2013-07-30 17:58:34 +10:00
Alistair Leslie-Hughes
0c1a0270bc
Add class ReplicationNeighborCollection
2013-07-30 17:58:32 +10:00
Alistair Leslie-Hughes
9aa6a601e4
Add class ReplicationOperationInformation
2013-07-30 17:58:30 +10:00
Alistair Leslie-Hughes
15eed77288
Add class ReplicationOperationCollection
2013-07-30 17:58:27 +10:00
Alistair Leslie-Hughes
e1107c0b30
Add class ReplicationOperation
2013-07-30 17:58:26 +10:00
Alistair Leslie-Hughes
c83b58b942
Add class DirectoryContext
2013-07-30 17:58:23 +10:00
Alistair Leslie-Hughes
b5e4d2de43
Add class ReplicationCursorCollection
2013-07-30 17:58:22 +10:00
Alistair Leslie-Hughes
c6914fe1b1
Add class ReplicationCursor
2013-07-30 17:58:21 +10:00
Alistair Leslie-Hughes
65b50fc464
Add class ReplicationFailureCollection
2013-07-30 17:58:18 +10:00
Alistair Leslie-Hughes
ce3e843793
Add class ReplicationFailure
2013-07-30 17:58:16 +10:00
Alistair Leslie-Hughes
7101724538
Add class TrustRelationshipInformationCollection
2013-07-30 17:58:15 +10:00
Alistair Leslie-Hughes
4d74cc9c57
Add class TrustRelationshipInformation
2013-07-30 17:58:14 +10:00
Alistair Leslie-Hughes
9543cd8c27
Add class TopLevelNameCollection
2013-07-30 17:58:11 +10:00
Alistair Leslie-Hughes
01536c4acf
Add class TopLevelName
2013-07-30 17:58:09 +10:00
Alistair Leslie-Hughes
9fdd8bc9b2
Add delegate SyncUpdateCallback
2013-07-30 17:58:06 +10:00
Alistair Leslie-Hughes
727520fbdd
Add class SyncFromAllServersOperationException
2013-07-30 17:58:04 +10:00
Alistair Leslie-Hughes
c65b7e486f
Add class SyncFromAllServersErrorInformation
2013-07-30 17:58:01 +10:00
Alistair Leslie-Hughes
48b37187ef
Add class ActiveDirectorySecurity
2013-07-30 17:57:58 +10:00
Alistair Leslie-Hughes
8165563a4c
Add class ActiveDirectoryAuditRule
2013-07-30 17:57:57 +10:00
Alistair Leslie-Hughes
c676050454
Add ActiveDirectoryAccessRule
2013-07-30 17:57:57 +10:00
Alistair Leslie-Hughes
0da8d969d3
Add enum ActiveDirectoryRights
2013-07-30 17:57:56 +10:00
Alistair Leslie-Hughes
6a9e457af2
Add enum ActiveDirectorySecurityInheritance
2013-07-30 17:57:56 +10:00
Marek Safar
d0cfdc22b4
Add test for bug #13509
2013-07-30 09:52:36 +02:00
Zoltan Varga
a7debabcd4
Fix a Mono.Posix test to avoid failing if readlinkat() is not available.
2013-07-30 01:28:19 +02:00
Rodrigo Kumpera
000d442b50
Use a relative symlink.
2013-07-29 14:38:27 -04:00
Marek Safar
02820da410
Correctly import nested non-generic types inside generic containers used within same generic container. Fixes #13549
2013-07-29 18:08:00 +02:00
Marek Safar
90e4ae45ea
Clone arguments array before modifying.
2013-07-29 16:28:18 +02:00
Marek Safar
12aa2ee3ca
Correctly parse pragma headers. Fixes #13501
2013-07-29 14:36:11 +02:00
Zoltan Varga
cd49ed4b02
Revert the 'Emit push/pop LMF code as IR' changes, they seem to break make test-sgen on wrench.
2013-07-29 14:27:11 +02:00
Marek Safar
01ee50f7d6
Merge pull request #718 from alesliehughes/master
...
More System.DirectoryServices.ActiveDirectory classes + other.
2013-07-29 04:25:40 -07:00
Alistair Leslie-Hughes
e906cecb4c
Add class ActiveDirectorySchedule
2013-07-29 20:57:18 +10:00
Alistair Leslie-Hughes
e8f477f90a
Add class ActiveDirectoryRoleCollection
2013-07-29 20:56:41 +10:00
Alistair Leslie-Hughes
0a93160fdc
Add class ActiveDirectoryReplicationMetadata
2013-07-29 20:56:04 +10:00
Alistair Leslie-Hughes
e338775ecd
Add class ActiveDirectoryPartition
2013-07-29 20:55:27 +10:00
Alistair Leslie-Hughes
52300170c7
Add class ActiveDirectoryOperationException
2013-07-29 20:54:43 +10:00
Alistair Leslie-Hughes
c732e37828
Add enum TopLevelNameStatus
2013-07-29 20:54:08 +10:00
Alistair Leslie-Hughes
a157487ca7
Add enum PropertyTypes
2013-07-29 20:54:02 +10:00
Alistair Leslie-Hughes
8b9d426608
Add enum ForestTrustDomainStatus
2013-07-29 20:53:55 +10:00
Alistair Leslie-Hughes
62cd47529d
Add enum ActiveDirectorySyntax
2013-07-29 20:53:42 +10:00
Alistair Leslie-Hughes
374c94876a
Add enum ActiveDirectorySiteOptions
2013-07-29 20:53:15 +10:00
Alistair Leslie-Hughes
c3d818e1ba
Add class DnsPermission
2013-07-29 20:53:03 +10:00
Alistair Leslie-Hughes
2864dd1bad
Add missed file TrustType.cs
2013-07-29 20:52:13 +10:00
Alistair Leslie-Hughes
ea8e3bfa07
Add enum SchemaClassType
2013-07-29 20:51:49 +10:00
Alistair Leslie-Hughes
ad32f65e9b
Add missed file AttributeMetadataCollection.cs
2013-07-29 20:51:39 +10:00
Jérémie Laval
036ed3cc63
[System] Implement a first pass of ClientWebSocket.
2013-07-29 00:47:12 -04:00
Jérémie Laval
96935b19e1
[System] Add crude (for now) socket stealing of an HttpWebRequest.
...
HttpWebRequest is a very tricky piece of code when it comes to its socket, this patch is more like a hack to get something working out of it but it's definitely not the best option.
2013-07-29 00:47:11 -04:00
Jérémie Laval
ee7a497ed4
[System] Don't overwrite custom Connection header on HttpWebRequest
2013-07-29 00:47:11 -04:00
Alex Rønne Petersen
a1e5ba803f
Fix a missing return statement in 16d2bcaa37.
2013-07-29 05:09:03 +02:00
Zoltan Varga
77c1ea1999
Fix overflow checking in newarray with 64 bit array lengths. Fixes part of #13544 .
2013-07-29 03:08:12 +02:00
Jonathan Pryor
eb13855b98
Merge pull request #701 from steffen-kiess/fix-11778
...
Fix Syscall.readlink() for non-ascii targets
2013-07-28 07:17:38 -07:00
Marek Safar
0a3b65804b
Merge pull request #716 from alesliehughes/master
...
More System.DirectoryServices.ActiveDirectory classes
2013-07-28 04:24:53 -07:00
Alistair Leslie-Hughes
40546e633d
Add class AttributeMetadataCollection
2013-07-28 19:22:00 +10:00
Alistair Leslie-Hughes
0d6d70b299
Add class AttributeMetadata
2013-07-28 19:20:55 +10:00
Steffen Kieß
9b824c31c8
Fix Syscall.readlink() for non-ascii targets
...
Syscall.readlink() currently returns an integer indicating the number of
bytes in the link. As buf contains chars, this value is useless if the
target contains non-ascii characters.
This commit creates a new overload which uses a byte array instead of a
StringBuilder and rewrites the old overload to return the number of chars
instead.
Fixes #11778 and #9611
2013-07-28 11:11:38 +02:00
Alistair Leslie-Hughes
98dec22c8f
Add class ReadOnlyStringCollection
2013-07-28 18:39:04 +10:00
Zoltan Varga
7c89014866
[sdb] Fix round tripping of vtypes with boxed fields. Fixes #12354 .
2013-07-28 09:40:32 +02:00
Alistair Leslie-Hughes
9036063250
Add enum TrustDirection.cs
2013-07-28 17:09:03 +10:00
Alistair Leslie-Hughes
c1f4854661
Add class ReplicationNeighbor
2013-07-28 17:00:23 +10:00
Alistair Leslie-Hughes
ff3f2aca0e
Add enum LocatorOptions
2013-07-28 16:51:34 +10:00
Alistair Leslie-Hughes
14ac833855
Add enum ForestMode
2013-07-28 16:37:25 +10:00
Alistair Leslie-Hughes
2cde7a3eca
Add enum DomainMode.cs
2013-07-28 16:21:13 +10:00
Alistair Leslie-Hughes
fa60f1033b
Add enum ActiveDirectoryRole
2013-07-28 16:10:17 +10:00
Zoltan Varga
76890ae042
Add error handling to calls of mono_reflection_create_custom_attr_data_args (). Fixes part of #13435 .
2013-07-28 02:52:51 +02:00
Zoltan Varga
e2478f0c75
Remove #ifdefs from MonoTrampolineType, to prevent cross-compilation problems where the cross compiler and the target runtime have different defines. Also do a sanity check at aot load time.
2013-07-27 23:55:29 +02:00
Zoltan Varga
02964f35a8
Fix an assert in constrained_gsharedvt_call_setup (), mono_class_interface_offset () returns a -1 on failure, not 0.
2013-07-27 23:55:28 +02:00
Marek Safar
dbf1626dc0
Don't hide internal error exception when reported cannot show it.
2013-07-27 08:58:11 +02:00
Marek Safar
69d356081a
Add clone for error expression. Fixes #13443
2013-07-26 23:44:40 +02:00
Marek Safar
b96c455ef9
Less cascading errors
2013-07-26 23:23:50 +02:00
Marek Safar
439ef67c99
Merge pull request #714 from IDisposable/patch-2
...
Consistent use of ch to avoid array indexing more than once.
2013-07-26 14:15:39 -07:00
Zoltan Varga
f7e2304843
Add more extensive logging to sdb.
2013-07-26 23:04:51 +02:00
Marc Brooks
a667b8846d
Consistent use of ch to avoid array indexing more than once.
...
Replace the couple places where the string character array was being indexed twice in the same block instead of the character being cached locally. Cleanup formatting of the switch statements to follow conventions.
MIT licence
2013-07-26 14:06:33 -05:00
Alex Rønne Petersen
78db50f208
Revert the use of mono_binary_search () in support/supportw.c.
...
This code can't depend on mono/utils and doesn't need the 'fixed'
implementation of bsearch () anyway since keys are never null.
2013-07-26 20:16:24 +02:00
Marek Safar
7a307b7068
Remove CultureInfo.CurrentCulture dependency from ordinal based string::EndsWith. Fixes #13509
2013-07-26 19:48:50 +02:00
Marek Safar
567f714b26
Lift result of enum substraction when operation is lifted due to non-nullable enum type. Fixes #13454
2013-07-26 16:30:39 +02:00
Marek Safar
6ff60ff56e
Comment update
2013-07-26 16:30:38 +02:00
Alex Rønne Petersen
bd54b2b72d
Add a mono_binary_search () function.
...
This is a replacement for bsearch () because some platforms
have bogus asserts in their implementations.
2013-07-26 16:24:50 +02:00
Alex Rønne Petersen
912074c481
Fix a C# compiler error in the runtime test suite.
2013-07-26 16:23:51 +02:00
Alex Rønne Petersen
41d5852ba0
Fix a warning in appdomain.c introduced by 76e8c8ba0f.
2013-07-26 16:23:41 +02:00
Alex Rønne Petersen
79dfbe5192
Mark inline assembly in mono-hwcap-s390x.c volatile.
2013-07-26 14:26:59 +02:00
Alex Rønne Petersen
84c483ae45
Fix up memory barriers on Windows.
...
1. The _ReadWriteBarrier intrinsic and friends do not actually issue
a CPU fence; they are purely for inhibiting the compiler in moving
loads and stores across the call. So when compiling with MSVC, we
also need to call MemoryBarrier from Windows.h to issue a fence.
Note that _ReadWriteBarrier is *not* implied by MemoryBarrier; both
are *really* needed.
2. On Cygwin, we only support GCC 3.x, so resort to inline assembly to
issue memory barriers. I would have liked to avoid this, but since
GCC 3.x doesn't provide __sync_synchronize and we aren't likely to
upgrade to 4.x anytime soon, this is the workaround for now.
2013-07-26 14:26:55 +02:00
Marek Safar
6b55ac5530
Check promoted value type binary equality operations against null too. Fixes #13497
2013-07-26 13:51:23 +02:00
Marek Safar
4085776a67
Ignore space separators in nowarn arguments. Fixes #13476
2013-07-26 10:30:48 +02:00
Marek Safar
d199de6270
Use local variable in commit 482f6c7b55
2013-07-26 09:49:56 +02:00
Marek Safar
482f6c7b55
Show more info for missing indirect assembly references
2013-07-26 09:44:53 +02:00
Zoltan Varga
a3c12804f0
Update msvc project files with newly added sgen files.
2013-07-26 03:55:58 +02:00
Zoltan Varga
a54d96b37e
Add full-aot support for runtime invokes to array Get/Set methods.
2013-07-26 02:01:47 +02:00
Zoltan Varga
180fb9b3f9
Avoid an assert on android where seq points are not generated for wrappers.
2013-07-26 00:36:21 +02:00
Jeffrey Stedfast
ff41b501ea
Revert "Revert "[xbuild]: Provide a real Microsoft.Portable.CSharp.targets""
...
This reverts commit a4800b96b2 .
2013-07-25 16:19:26 -04:00
Jeffrey Stedfast
a4800b96b2
Revert "[xbuild]: Provide a real Microsoft.Portable.CSharp.targets"
...
This reverts commit 03011419a4 .
2013-07-25 14:42:34 -04:00
Jonathan Pryor
365da8343a
[System] Fix DnsTest.GetHostByName() test.
...
Test Case Failures:
1) MonoTests.System.Net.DnsTest.GetHostByName : Should raise a SocketException (assuming that 'www.unlikely.novell.com' does not exist)
at MonoTests.System.Net.DnsTest.GetHostByName () [0x00089] in /Users/jon/Development/mono-HEAD/mono/mcs/class/System/Test/System.Net/DnsTest.cs:212
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 /Users/jon/Development/mono-HEAD/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
As it happens, 'www.unlikely.novell.com' DOES exist:
$ ping www.unlikely.novell.com
PING www.unlikely.novell.com (199.101.28.20): 56 data bytes
64 bytes from 199.101.28.20: icmp_seq=0 ttl=57 time=29.399 ms
Apparently it's due to the "www." prefix; remove "www." and the site
isn't found, as expected:
$ ping unlikely.novell.com
ping: cannot resolve unlikely.novell.com: Unknown host
Update DnsTest.noneExistingSite so that the DnsTest.GetHostByName()
test passes.
2013-07-25 11:38:09 -04:00
Jonathan Pryor
f9d78260db
[System] Support FTP download where PWD starts with '\'.
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13343
There are some Industrial Automation Hardware devices which return a
'\'-prefixed path to the FTP PWD command, which would break:
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.Parse (UriKind kind, System.String uriString)
at System.Uri.ParseUri (UriKind kind)
at System.Uri..ctor (System.String uriString, Boolean dontEscape)
at System.Uri..ctor (System.String uriString) [0x0000
at System.Net.FtpWebRequest.GetRemoteFolderPath (System.Uri uri)
at System.Net.FtpWebRequest.CWDAndSetFileName (System.Uri uri)
at System.Net.FtpWebRequest.ProcessMethod ()
at System.Net.FtpWebRequest.ProcessRequest ()
There was an error connecting to the FTP Server.
The problem was this statement:
Uri initial = new Uri ("ftp://dummy-host" + initial_path);
Since the FTP server was returning "\" to the PWD command,
`initial_path` was "\", and the above was equivalent to:
Uri initial = new Uri (@"ftp://dummy-host\");
This results in the UriFormatException.
The solution is to not assume that `initial_path` will start with '/',
and instead use UriBuilder.
2013-07-25 11:38:09 -04:00
Marek Safar
b69d833414
Add *CachePolicy to mobile profile. Fixes #13466
2013-07-25 17:23:26 +02:00
Marek Safar
0497877695
Fixed string null constant conversion to object constant
2013-07-25 17:23:25 +02:00
Marek Safar
1022c50752
Merge pull request #713 from alesliehughes/master
...
Add Some System.DirectoryServices.ActiveDirectory enums.
2013-07-25 03:55:53 -07:00
Zoltan Varga
75ffa3d011
Merge pull request #711 from spicypixel/hotfix/appdomain-leak
...
Fix string leak when loading assemblies.
2013-07-25 03:33:56 -07:00
Zoltan Varga
e5942fbc7b
Merge pull request #712 from spicypixel/hotfix/trampoline-name-leak
...
Fix generic trampoline string leak.
2013-07-25 03:31:16 -07:00
Zoltan Varga
f0a95b71e3
Make some sdb tests more robust so they work again after the latest line number changes.
2013-07-25 07:31:54 +02:00
Aaron Oneal
37502a86d5
Fix additional string leaks when creating tramp_info.
...
A recent change modified mono_tramp_info_create to duplicate the name string passed to it, but all of the references that were previously duping the name before calling were not updated at the same time. This resulted in several memory leaks. This fix removes the now extra string duplications.
2013-07-24 16:17:26 -07:00
Aaron Oneal
ad639e3e99
Fix additional string leaks when creating tramp_info.
...
A recent change modified mono_tramp_info_create to duplicate the name string passed to it, but all of the references that were previously duping the name before calling were not updated at the same time. This resulted in several memory leaks. This fix removes the now extra string duplications.
2013-07-24 16:13:04 -07:00
Aaron Oneal
c931c463c2
Fix generic trampoline string leak.
...
Generic trampolines were leaking strings because:
1. The mono_arch_create_generic_trampoline function uses mono_get_generic_trampoline_name which does strdup.
2. That string was passed into mono_tramp_info_create which did strdup again.
The fix is to free the string after passing it to mono_tramp_info_create.
2013-07-24 15:47:46 -07:00
Aaron Oneal
76e8c8ba0f
Fix string leak when loading assemblies.
...
The mono_portability_find_file method allocates a new string but the private_file_needs_copying method was not freeing it which resulted in a leaked string when loading assemblies.
2013-07-24 14:13:47 -07:00
Zoltan Varga
2c6dc87269
Continue single stepping if the same line reached in all cases. Factor out some code code. Fixes #13065 .
2013-07-24 22:46:31 +02:00
Aaron Oneal
17d1c098bf
Add support for value types to mono_object_to_string
...
The current mono_object_to_string implementation does not support value types. This patch adds support by unboxing value types prior to calling mono_runtime_invoke.
2013-07-24 11:45:10 -07:00
Sebastien Pouliot
7f8fa9a8a5
Allow running System.ServiceModel.Web unit tests on the MOBILE profiles (using the same .sources file)
2013-07-24 08:58:44 -04:00
Alistair Leslie-Hughes
883998ce2d
Add enum SyncFromAllServersOptions
2013-07-24 20:20:07 +10:00
Alistair Leslie-Hughes
44690a038a
Add enum SyncFromAllServersEvent
2013-07-24 20:19:11 +10:00
Alistair Leslie-Hughes
e085ba9991
Add enum SyncFromAllServersErrorCategory
2013-07-24 20:17:56 +10:00
Alistair Leslie-Hughes
fdc96789c4
Add enum ReplicationSpan
2013-07-24 20:15:50 +10:00
Alistair Leslie-Hughes
8ba2023998
Add enum ReplicationOperationType
2013-07-24 20:14:51 +10:00
Alistair Leslie-Hughes
7f7a747893
Add enum NotificationStatus
2013-07-24 20:14:01 +10:00
Alistair Leslie-Hughes
5d357d8bde
Add enum MinuteOfHour
2013-07-24 20:11:20 +10:00
Alistair Leslie-Hughes
20f022d489
Add enum HourOfDay
2013-07-24 20:08:19 +10:00
Alistair Leslie-Hughes
da42adba1d
Add enum DirectoryContextType
2013-07-24 20:05:56 +10:00
Alistair Leslie-Hughes
96cf763430
Add enum ActiveDirectoryTransportType.
2013-07-24 20:04:20 +10:00
Marek Safar
bb8f31f1a8
Merge pull request #709 from alesliehughes/master
...
Correct TrySetApartmentstate tests
2013-07-23 23:42:19 -07:00
Alistair Leslie-Hughes
ccbc9e3a8f
Correct TrySetApartmentstate tests
...
License: This patch is under the MIT/X11 license.
2013-07-24 14:27:56 +10:00
Zoltan Varga
c537883799
Unify the different gsharedvt constrained call jit icalls into one.
2013-07-24 04:13:49 +02:00
Zoltan Varga
bc2ace8f20
Avoid calling valuetype methods with a signature which uses an explicit this argument, the JIT passes the implicit argument differently than an explicit one, leading to problems when the method returns another valuetype.
2013-07-24 00:07:29 +02:00
Zoltan Varga
d62166b91a
Revert "Generate the push/pop LMF code as IR on x86."
...
This reverts commit 5c85e41f84 .
Revert this as it breaks a lot of tests.
2013-07-23 18:08:16 +02:00
Alex Rønne Petersen
0ffa570a3a
Merge pull request #697 from linquize/atom-bug
...
Atom bug
2013-07-23 07:10:49 -07:00
Alex Rønne Petersen
2ee134a8ea
Fix the mono-hwcap module to work in the MONO_CROSS_COMPILE case.
...
The Mini back ends still use the hwcap variables in this case, so we
can't exclude the files they are defined in. Instead, ifdef out the
actual hwcap logic in the MONO_CROSS_COMPILE case.
2013-07-23 15:58:46 +02:00
Sebastien Pouliot
160c8d3015
Do not include tests for AssociatedMetadataTypeTypeDescriptionProvider in MOBILE since the type is not available
2013-07-23 09:03:45 -04:00
Marek Safar
94e78fd162
Fix default content buffer max size
2013-07-23 14:28:45 +02:00
Zoltan Varga
a31c107f59
Avoid linking the LLVM runtime codegen libs into a cross-compiler runtime.
2013-07-23 05:30:51 +02:00
Linquize
ee48fc81a9
Atom10FeedFormatter should generate subtitle tag for Description property
2013-07-23 08:12:35 +08:00
Marek Safar
53b3d6532a
Merge some nrefactory changes
2013-07-22 16:05:06 +02:00
Marek Safar
b269b884fa
Don't crash when metadata contains private top level type.
2013-07-22 13:44:11 +02:00
Marek Safar
03c3fbe77a
Adds async handling to binary:emitbranchable. Fixes #13362
2013-07-22 08:22:41 +02:00
Marek Safar
6a2d71f889
Fixes duplicate error message
2013-07-22 08:22:41 +02:00
Marek Safar
9114f339f9
Add field target for automatic properties
2013-07-22 08:22:40 +02:00
Zoltan Varga
5c85e41f84
Generate the push/pop LMF code as IR on x86.
2013-07-22 03:49:25 +02:00
Zoltan Varga
ba79efb593
Fix a problem in emit_pop_lmf (), it no longer needs to change the current bblock.
2013-07-22 03:45:06 +02:00
Zoltan Varga
fbdc2a7639
Get rid of the MONO_ARCH_ENABLE_LMF_IR define added by 0938c69a52, use flags in MonoCompile instead.
2013-07-22 03:06:35 +02:00
Rodrigo Kumpera
23ac11d001
Handle property with default values. Fix part of #13336 .
2013-07-21 18:22:57 -04:00
Rodrigo Kumpera
89d5527369
Merge pull request #600 from tr8dr/master
...
Fix for bug 9250 (critical bug for embedded mono)
2013-07-21 12:21:29 -07:00
Cameron Taggart
4579fb3d43
fixes ctaggart/mono#2 cpuid() now compiles in VS 2012
2013-07-21 20:20:50 +02:00
Alex Rønne Petersen
8a9d70fabc
Fix a "mixed decls and code" warning.
2013-07-21 19:56:06 +02:00
i59
2719711a51
Added mono-mutex.h & c to libmonoutils.vcxproj
...
Signed-off-by: Alex Rønne Petersen <[email protected] >
2013-07-21 12:46:00 +02:00
i59
5385752588
mono-mutex.c: Don't include sys/time.h on Windows;
...
Signed-off-by: Alex Rønne Petersen <[email protected] >
2013-07-21 12:45:33 +02:00
Alex Rønne Petersen
33ffb757d2
Merge pull request #707 from LHCGreg/12752-windows_nul_isredirected
...
Improve detecting if a handle is a console on Windows.
2013-07-20 23:06:41 -07:00
Alex Rønne Petersen
16d2bcaa37
libgc: Use GCC atomics on ARM.
...
This is to ensure that if the runtime is compiled for e.g.
ARM v4 or v5, it will use the correct atomics on v6 and v7.
2013-07-21 08:00:58 +02:00
Zoltan Varga
9691284796
Rework the x86 lmf code to use stores instead of pushes, and to be more consistent with the code on other platforms.
2013-07-20 17:32:11 +02:00
Zoltan Varga
0938c69a52
Generate the push/pop LMF code as IR on architectures which support it. Currently only used on amd64.
2013-07-20 16:05:48 +02:00
Marek Safar
5e1c9a8ffe
Fix indexer member formating
2013-07-20 11:15:06 +02:00
Marek Safar
b166ec8b48
Fixes failing tests
2013-07-20 09:18:58 +02:00
Marek Safar
354027fe22
Schedule internal delay task on default scheduler only. Fixes #13318
2013-07-20 09:18:58 +02:00
Marek Safar
929bdf2f1d
Lazy initialization of type parameters expanded interfaces. Fixes #13324
2013-07-20 09:18:57 +02:00
Zoltan Varga
f8bf28804c
Another attempt at fixing mono_atomic_load_acquire() on MSVC. Fixes #13340 .
2013-07-20 06:05:49 +02:00
Alex Rønne Petersen
4e54e9e05f
Enable GCC atomics on mips.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen
920d873ff3
Enable GCC atomics on arm.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen
93acdb1fcc
Enable GCC atomics on ppc and ppc64.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen
579148e2d6
Enable GCC atomics on x86 and amd64.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen
778fc600e0
Use GCC atomics when USE_GCC_ATOMIC_OPS is defined.
...
We still prefer Windows.h functions when compiling for Windows, and
MSVC intrinsics for memory barriers when compiling with MSVC.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen
ca747a3a1c
PowerPC build fix in mono-hwcap-ppc.
2013-07-20 03:03:55 +02:00
Alex Rønne Petersen
80b8412a11
configure: Remove obsolete FIXME comment.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen
27c3736aac
Add a MONO_VERBOSE_HWCAP environment variable.
...
This causes detected hardware features to be printed to stdout.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen
a256df77aa
Remove now-unneeded mono_aot_only guard around mono_hwcap_init ().
...
We no longer use the code manager in any of the hwcap implementations,
so we don't need to disable the hwcap infrastructure in full-aot mode.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen
24c84e6f31
Remove the JIT-ed CPUID hack from mono-hwcap-x86.
...
A proper workaround for the 32-bit PIC issue exists: Using xchg to
unclobber EBX which is used by the compiler. This means we can just
use inline assembly to issue the instruction, eliminating the hack
where we JIT-compiled a function to do the CPUID.
This patch also makes it so that we use MSVC's __cpuid intrinsic
on both 32-bit and 64-bit x86 since it's available on both.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen
08d4170b8c
Check for sys/auxv.h and only use it if available.
2013-07-20 03:03:54 +02:00
Alex Rønne Petersen
bfefbf3460
Make all Mini back ends use mono-hwcap for CPU feature detection.
...
Also some related cleanup as a result of this.
2013-07-20 03:03:54 +02:00
Zoltan Varga
5e9f57b92f
Remove the async hacks from the gsharedvt code, gsharedvt can now handle async methods, and the infrastructure methods they use.
2013-07-19 20:53:16 +02:00
Zoltan Varga
cfb36e518a
Share byref arguments in runtime invoke signatures with int&. Remove the restrictions on sharing runtime invoke wrappers of valuetype instance methods, its not longer needed.
2013-07-19 20:52:12 +02:00
Zoltan Varga
50faec743e
Properly null terminate strings in mono_dwarf_escape_path (). Fixes #13050 .
2013-07-19 17:55:24 +02:00
Sebastien Pouliot
0b09bfc495
Disable TestDisposeOnCallback for MONOTOUCH, the test does not really work as the state is null (and throws in a separate thread)
2013-07-19 09:38:58 -04:00
Zoltan Varga
0de54a335a
Avoid calling mono_domain_free () in a cross-compiler, it causes a GC, and the unwind infrastructure is not properly set up when cross-compiling.
2013-07-18 19:52:31 +02:00
Mark Probst
be1042379a
Simplify emit_write_barrier().
...
We have two ways of passing in the value - by MonoInst* and by register.
Remove the second and always pass a MonoInst*.
2013-07-18 10:38:24 -07:00
Marek Safar
bb6cd4b722
Add nested partial types inside nested partial types to AST. Fixes #13316
2013-07-18 14:42:12 +02:00
Marek Safar
37bad99b16
Nested partial type inside generic class can have base type defined later than current type inflation happens. Fixes #13289
2013-07-18 10:55:38 +02:00
Marek Safar
b92bac52bf
Don't try to match lifted equality operators on same reference types
2013-07-18 10:55:37 +02:00
Zoltan Varga
ff23e80e3e
Fix an overflow if MONO_ZERO_LEN_ARRAY is not 0. Fixes #13233 .
2013-07-18 05:36:58 +02:00
Alex Rønne Petersen
e19fa7926a
Add a mono_hwcap_init () call to parse_optimizations ().
...
This is necessary because we need hardware features to be
detected by the time we call mono_arch_cpu_optimizations ().
2013-07-18 04:17:22 +02:00
Alex Rønne Petersen
a3272f7b44
Make mono_hwcap_init () only perform initialization if not already done.
...
This moves arch-specific initialization to mono_hwcap_arch_init ().
2013-07-18 04:17:22 +02:00
Mark Probst
bfd1c73b7d
Weaken a race condition in object initialization.
...
It's still there in a different form, but it's not easy to fix.
2013-07-17 16:26:56 -07:00
Mark Probst
6cd895de20
[sgen] Binary protocol improvements.
...
Protocol domain unloads, and allow greping for vtable.
2013-07-17 16:26:56 -07:00
Zoltan Varga
645991d363
Add support for constrained calls with one ref parameter to gsharedvt, enought to support AsyncMethodBuilder methods.
2013-07-17 23:54:16 +02:00
Zoltan Varga
d1df1729ba
Fix a warning.
2013-07-17 23:10:41 +02:00
Zoltan Varga
32be89f0f2
Add support for a simple form of constrained calls to gsharedvt, enough to support AsyncMethodBuilder.Start ().
2013-07-17 23:07:42 +02:00
Zoltan Varga
d64dc48f1f
Fix a warning.
2013-07-17 23:07:41 +02:00
Rodrigo Kumpera
beb9cee5b5
Merge pull request #706 from elijahtaylor/fixdyncode
...
Fix nacl_dyncode include
2013-07-17 11:09:18 -07:00
Marek Safar
442ccb9676
Merge pull request #705 from alesliehughes/master
...
Allow TrySetApartmentState to set the same state multiple times.
2013-07-16 23:18:55 -07:00
Alistair Leslie-Hughes
070c3abecf
Allow TrySetApartmentState to set the same state multiple times.
...
License: This patch is under the MIT/X11 license.
2013-07-17 15:22:54 +10:00
Alex Rønne Petersen
8f9a0185b3
mono-hwcap: Add ARM version detection for iOS.
2013-07-17 04:59:23 +02:00
Zoltan Varga
9999ea4a68
Avoid printing an extra newline when printing fp results while tracing.
2013-07-16 23:45:42 +02:00
Mark Probst
aef4b77ea7
Fix race conditions in finalizer/weak link staging.
2013-07-16 14:41:40 -07:00
Elijah Taylor
614f3f9049
Fix nacl_dyncode include
2013-07-16 14:14:31 -07:00
Zoltan Varga
fc1145ae84
Fix MONO_GC_DEBUG=collect-before-allocs. mono_gc_alloc_obj_nolock () was not called for the majority of allocations.
2013-07-16 18:54:14 +02:00
Zoltan Varga
e90505c29f
Fix the dependencies of the corlib test suite so the test suite is not rebuilt every time.
2013-07-16 16:17:01 +02:00
Zoltan Varga
1eff479c71
Fix a crash in thread_suspend_func () if the thread has no tls set.
2013-07-16 16:17:01 +02:00
Marek Safar
b65deac489
Remove redundant status capturing
2013-07-16 10:13:27 +02:00
Marek Safar
20aaf27c90
Fixes scheduling of non-inlined sychronous continuations.
2013-07-16 10:00:15 +02:00
Zoltan Varga
453654552e
Avoid an assert in mono_save_seq_point_info () if no seq points are generated for a method, as in wrappers in android. Hopefully fixes #12995 .
2013-07-15 22:15:06 +02:00
Zoltan Varga
b652b273af
Make wrappers whose signature is static static.
2013-07-15 20:54:09 +02:00
Zoltan Varga
61923824ce
Fix synchronized_generic_cache.
2013-07-15 20:34:39 +02:00
Sebastien Pouliot
1c7fc8195f
Escape the .file path name generated in the asembly code. clang does not mind, but gcc does
2013-07-15 20:24:05 +02:00
Zoltan Varga
9d719ab6d0
Put the unbox_trampolines table into the .text segment instead of .rodata on mt since it contains code.
2013-07-15 20:09:53 +02:00
Rodrigo Kumpera
b7bed40197
[runtime] Add a fallback on the TLS probing code that does a range scan in the pthread structure.
2013-07-15 12:36:16 -04:00
Rodrigo Kumpera
56e1d8fca6
Bump master version to 3.3.0.
2013-07-15 12:36:13 -04:00
Alex Rønne Petersen
846d80f19e
Avoid using dmb/dsb/dib instructions on ARM v6.
...
This only worked by accident before the HAVE_ARMV<N>
changes because __ARM_ARCH_6__ is never defined by
any compiler.
2013-07-15 16:48:59 +02:00
Zoltan Varga
8f99af4eec
Remove test-sgen from make check in tests/, it takes too much time.
2013-07-15 16:36:53 +02:00
Zoltan Varga
b511f6d141
Fix gshared synchronized wrappers for static methods.
2013-07-15 16:36:25 +02:00
Marek Safar
9694eb7dbd
Implement webrequest cancellation. Fixes #13200
2013-07-15 14:12:25 +02:00
Yuriy Solodkyyy
946e182bd9
There was a long discussion on a mailing list about the async-socket problem
...
in mono. We have previously submitted a patch fixing the problem, however it
was later reverted back as causing deadlocks in some cases.
This patch is very close to the original one, but it takes into account how
tpool-thread operates and avoids deadlocks in this code. (Unfortunately, it
probably makes the code a little less readable, but it works).
So, this patch aims to fix several races in the mono code. These problems are
not relevant for a lot of applications as they can appear only if both read
and write operations are active on the socket. (I.e. RPC style communications
do not trigger the problem).
So, there are two major problems with existing mono code:
a) threadpool.c :: socket_io_add
LeaveCriticalSection (&data->io_lock);
data->modify (data->event_data, fd, state->operation, ievt, is_new);
the problem is that data modify receives ievt and is_new arguments which
may be already outdated due to the concurrent operation on the same socket
(read vs. write).
(If you look at the other part of the operation in
tpool_epoll.c :: tp_epoll_wait updates the epoll settigs under the lock.)
b) The epoll implementation uses the following code to change the epoll
settings in the data->modify handler.
if (epoll_ctl (data->epollfd, epoll_op, fd, &evt) == -1) {
int err = errno;
if (epoll_op == EPOLL_CTL_ADD && err == EEXIST) {
epoll_op = EPOLL_CTL_MOD;
if (epoll_ctl (data->epollfd, epoll_op, fd, &evt) == -1) {
g_message ("epoll_ctl(MOD): %d %s", err, g_strerror (err));
}
}
}
Here we have the same problem. If concurrent operation updates epoll between
first epoll_ctl and the second epoll_ctl the second will override concurrent
update.
These problems result in missing callbacks on async socket send or receive
completion
The original idea was as simple as just move the data->modify under the lock.
(NOTE: both internal associated list and epoll are updated under the lock in
case of data->wait (see tp_epoll_wait).
As i already noted it causes a problem for tpool_poll.c implementation as it
uses different approach than epoll/kqueue.
This patch still invokes data->modify under the lock, but allow implementation
to release lock at the point where it is appropriate for the given
implementation.
The tpool-poll.c releases lock immediately and thus its behavior remains
unchanged (and it still has a problem of missing send/receive callbacks)
The tpool-epoll/kqueue implementations update their internal structures and
corresponding OS level structures under the locks (as _wait does). This change
makes them reliable in simultaneous socket read/write scenarios.
The following code demonstrates the problem. See readme inside.
https://github.com/ysw/mono-socket-problem/tree/master/SocketTest
NOTE: you need at least 4 coresto reliably reproduce the problem.
It is quite hard to reproduce on OSX, but it is easy reproducible in LINUX.
This commit is licensed under MIT/X11.
2013-07-15 00:16:23 +03:00
Alex Rønne Petersen
bf6a13bcb4
Merge pull request #700 from jack-pappas/patch-1
...
Call 'awk' instead of 'gawk' for cross-platform compatibility.
2013-07-14 13:56:16 -07:00
Atsushi Eno
132a16ca07
Revert "Merge pull request #622 from killabytenow/master"
...
This reverts commit 392bae3c45 , reversing
changes made to 61cd9ee8b6 .
2013-07-13 23:56:59 +09:00
Jack Pappas
5e497f0de4
Call 'awk' instead of 'gawk' for cross-platform compatibility.
...
Call `awk` instead of `gawk` for cross-platform compatibility. Linux systems normally have a symbolic link from `awk` to `gawk`, so there should be no difference in the functionality on those systems.
2013-07-13 07:56:24 -04:00
Alex Rønne Petersen
fab9077c17
configure: Also consider __ARM_ARCH_7S__ when checking for ARM v7.
...
This is defined by Apple's iOS gcc with -arch armv7s.
2013-07-12 20:39:02 +02:00
Jeffrey Stedfast
fb2546951c
Prevent potential integer overflows in SortedList's binary search midpoint calculation
2013-07-12 14:05:55 -04:00
Marek Safar
238785a3e3
Don't eat exception from timer handler (this is system timer not SWF timer)
2013-07-12 17:44:53 +02:00
Marek Safar
479cfc6980
Prefer user operators over predefined operators for binary enum operations too. Fixes #13202
2013-07-12 16:23:01 +02:00
Marek Safar
035214bee1
Allow async for explicitly implemented interface methods. Fixes #13197
2013-07-12 15:13:42 +02:00
Martin Baulig
5b8a026a06
.spec file, again.
2013-07-12 10:43:53 +02:00
Atsushi Eno
392bae3c45
Merge pull request #622 from killabytenow/master
...
UTF8 encoding/decoding improvements
2013-07-11 22:17:05 -07:00
Alex Rønne Petersen
61cd9ee8b6
Replace more __ARM_ARCH_... checks with HAVE_ARMV<N>.
2013-07-12 00:03:02 +02:00
Gerardo García Peña
2e6266606a
Reverted changes of commit 6ad7f75a37
2013-07-11 23:52:35 +02:00
Gerardo García Peña
22892bc401
Better and more homogeneous error handling.
2013-07-11 23:49:47 +02:00
Alex Rønne Petersen
f99f84a429
Add ARM version detection to configure and use the resulting macros.
...
This defines ARM_VERSION_{5,6,7}. Several of these can be
defined at once. For example ARM_VERSION_5 and ARM_VERSION_6
will both be defined if the target is an ARM v6 CPU.
Previously, we defined HAVE_ARMV6 based on running a program.
This obviously didn't work for cross-compilation. This new
approach does, and detects more cases (v5, v6, v7) than the
previous check (v6).
2013-07-11 22:11:29 +02:00
Alex Rønne Petersen
718ceb8601
Add a mono-hwcap module to utils.
...
This is an attempt to unify all the ad-hoc CPU feature
detection we do all over the codebase (mostly in Mini
back ends). It will also be used to detect and use SMP
instructions on older ARM devices (we need this info in
utils/, not just in mini/).
Each architecture has a mono-hwcap-$TARGET.h header if
it has specified one. So for example, if you want to
find out if a VFP unit is available on ARM, you would
include mono-hwcap-arm.h and read mono_hwcap_arm_has_vfp.
Remember to guard inclusions of these files with a check
along the lines of:
#ifdef TARGET_ARM
#include "mono/utils/mono-hwcap-arm.h"
/* ... */
#endif
Architectures that don't specify a file simply get an
empty implementation with no feature variables. This
empty implementation is also used if Mono itself is
compiled as a cross compiler.
Initialization of the mono-hwcap module is done in the
mini_init () function in mini/mini.c, very early in the
startup process. So in general, calling it is not needed.
2013-07-11 20:12:01 +02:00
Alex Rønne Petersen
de60d57559
Fix the tests makefile.
2013-07-11 19:56:06 +02:00
Gerardo García Peña
54f3f6ae21
If 'flush' flag is enabled when calling decoding/encoding function, flush buffer when input run out (satisfies test 'SufficientByteArray').
2013-07-11 18:54:11 +02:00
Alex Rønne Petersen
5de235b376
Fix (hopefully) the last architecture casing inconsistency.
2013-07-11 18:43:22 +02:00
Alex Rønne Petersen
233e828938
Remove an m68k check from configure.
2013-07-11 18:43:21 +02:00
Alex Rønne Petersen
4ce97be553
Fix an s390x check broken by faff4654c8.
2013-07-11 18:43:21 +02:00
Alex Rønne Petersen
fa69e58cc6
Add missing TARGET_* defines for SPARC and Itanium.
2013-07-11 18:43:20 +02:00
Martin Baulig
cee5749a81
Oops, remove extra %endif in .spec file.
2013-07-10 18:09:14 +02:00
Martin Baulig
1f337115cd
[PCL]: Add System.Linq.Expressions type-forwarders.
2013-07-10 17:00:14 +02:00
Martin Baulig
83ed15e19d
Add libmonoboehm package to the spec file.
2013-07-10 16:46:53 +02:00
Marek Safar
24f08876a8
Ignore only local Makefile
2013-07-10 16:26:26 +02:00
Gerardo García Peña
9d55be425d
An #if has been negated (bugfix)
2013-07-10 11:26:26 +02:00
Alex Rønne Petersen
9645cd9249
Add atomic.c/.h to libmonoutils.vcxproj.
2013-07-10 06:56:52 +02:00
Alex Rønne Petersen
faff4654c8
configure: Set TARGET=S390X instead of S390x for consistency.
2013-07-10 06:56:51 +02:00
Alex Rønne Petersen
938d3fa4cb
Merge pull request #695 from jack-pappas/patch-4
...
Fix preprocessor/compiler warning due to unbalanced apostophe (') character
2013-07-09 21:27:40 -07:00
Jack Pappas
208d5648fe
Fix preprocessor/compiler warning due to unbalanced apostophe (') character
...
Reworded the warning message to be displayed when the fall-through case is taken by the preprocessor in `mono_thread_get_stack_bounds()`.
2013-07-09 21:44:19 -04:00
Sebastien Pouliot
de00f9d473
Ensure the new FileStream unit tests does not throw in the non-main thread (which nunit-console won't report but other tools, like Touch.Unit, will)
2013-07-09 20:17:37 -04:00
Rodrigo Kumpera
29cb82c254
Use a non rooted symlink and make it point to the right mono.
2013-07-09 18:28:58 -04:00
Rodrigo Kumpera
2e6f26e1a8
[runtime]Revert the fast tls check as we always need it on mach. Add another iOS 7 offset.
2013-07-09 18:22:01 -04:00
Martin Baulig
5fd4d99fe8
Bump libmonosgen version in the .spec file.
2013-07-10 00:05:28 +02:00
Martin Baulig
66fb7ce67e
[build]: Use a relative symlink from mono to mono-sgen.
2013-07-09 22:48:19 +02:00
Rodrigo Kumpera
2172220087
Merge pull request #694 from madewokherd/pthreadinclude
...
Don't include pthread.h when it's not needed.
2013-07-09 13:19:54 -07:00
Alex Rønne Petersen
35aec39910
Fix a #define style issue in mini.c.
...
Introduced in d401698972 .
2013-07-09 22:17:12 +02:00
Alex Rønne Petersen
251c170d3f
Only require mono_arch_is_soft_float () to be defined when needed.
...
Now, only ports that define MONO_ARCH_SOFT_FLOAT_FALLBACK have to
provide this function. For ports that don't define this, a default
function is provided that returns FALSE.
2013-07-09 22:17:12 +02:00
Alex Rønne Petersen
f0ae724eaf
Add an MSVC branch to MONO_ALWAYS_INLINE.
2013-07-09 22:17:12 +02:00
Rodrigo Kumpera
1a552aefd4
[runtime] On mach-arm don't probe for tls offsets if the runtime was not built with support for fast tls.
2013-07-09 15:49:51 -04:00
Alex Rønne Petersen
d401698972
Change the way we do soft float to a fallback mechanism.
...
MONO_ARCH_SOFT_FLOAT previously meant that a back end was using
soft float unconditionally. It's now MONO_ARCH_SOFT_FLOAT_FALLBACK
and actually indicates whether the back end has a soft float
fallback compiled in - not necessarily that it's used.
A new port function has been added:
gboolean mono_arch_is_soft_float (void) MONO_INTERNAL;
This function is what actually tells Mini whether the back end is
going to use soft float. If MONO_ARCH_SOFT_FLOAT_FALLBACK is not
defined, it must return FALSE. Otherwise, it should return TRUE or
FALSE depending on whether the back end determines that the hardware
supports floating point. Once mono_arch_init () has been called,
the value returned from this function must be constant for the rest
of the VM's lifetime.
For example, on ARM, we now try to detect VFP via /proc/self/auxv
or /proc/cpuinfo and, if found, return FALSE from the function. This
only applies to Linux and Android as iOS always has VFP.
It's important to note that if the runtime is built with the 'softfp'
or 'hard' ABIs, the soft float fallback is not compiled in, as the
runtime is assumed to only be executed on VFP-capable systems.
Finally, the ARM feature detection code has been moved from the
mono_arch_cpu_optimizations () function to mono_arch_init () so that
FPU detection/initialization is done in one place.
2013-07-09 19:27:57 +02:00
Rodrigo Kumpera
4bed597229
[build] Add dep tracking between Makefile.am.in and Makefile.am when the extension module is disabled.
2013-07-09 13:22:01 -04:00
Rodrigo Kumpera
66ce1e4960
[runtime]On install, symlink mono to the right binary.
2013-07-09 13:22:00 -04:00
Martin Baulig
77dc2ebb66
Fix the spec file; we don't create any .mdb's for the PCL Facades anymore.
2013-07-09 18:37:34 +02:00
Vincent Povirk
6f54e4a2fc
Don't include pthread.h when it's not needed.
...
Fixes mingw-w64 build.
This commit is licensed under MIT/X11.
2013-07-09 11:30:06 -05:00
Alex Rønne Petersen
ec3513c3fd
Merge pull request #692 from jack-pappas/patch-2
...
Use the NI_MAXHOST constant to initialize the size of the hostname buffer.
2013-07-09 08:49:58 -07:00
Alex Rønne Petersen
0e67acba31
MIPS: Set USE_MUL to 0 by default (for now).
...
Setting it to 1 breaks on Loongson CPUs which are the most common
desktop MIPS CPUs supported by e.g. Debian.
This change can be reverted when more investigation is done to find
out why exactly this breaks.
Thanks to Jo Shields (@directhex) for lots of testing and debugging
and spotting this define that turned out to be the culprit.
2013-07-09 16:48:15 +02:00
Gerardo García Peña
04ffec1684
Added new test for checking EncoderFallbackException exception behaviour.
2013-07-09 16:22:37 +02:00
Marek Safar
c7e874a982
Merge pull request #693 from jack-pappas/patch-3
...
Print diagnostic messages for platform detection
2013-07-09 05:42:18 -07:00
Jack Pappas
24ac85a90f
Print diagnostic messages for platform detection
...
Print some diagnostic messages when running 'make' on this file, so it's clear when a platform has not been explicitly specified and we're going to compile with a platform value which has been automatically selected.
2013-07-09 08:35:26 -04:00
Jack Pappas
cf1f9138eb
Use the NI_MAXHOST constant to initialize the size of the hostname buffer.
...
The NI_MAXHOST constant should be used when creating the hostname buffer to avoid potential buffer overflows.
2013-07-09 08:12:41 -04:00
Marek Safar
871a24a580
Update test name
2013-07-09 11:14:56 +02:00
Marek Safar
4ce0e7e848
Equality structural comparer needs to do recursive comparisons. Fixes #13110
2013-07-09 11:12:33 +02:00
Marek Safar
d7fe5b8a89
Update failing test
2013-07-09 10:47:29 +02:00
Marek Safar
2ab53f953f
Update member access completion after e40775d0dc
2013-07-09 10:44:15 +02:00
Rodrigo Kumpera
5dd394c77c
[runtime] Don't return success on invalid parameters, raise an exception instead.
2013-07-08 19:47:45 -04:00
Zoltan Varga
fb9400fd06
Place the method_addresses symbol into the .text segment on mt, not rodata, since it is actually code.
2013-07-09 00:26:49 +02:00
Rodrigo Kumpera
7ff2a90ad5
Bump mono to 3.1.1
2013-07-08 18:15:01 -04:00
Gerardo García Peña
ef205e5df2
Added new test for checking DecoderFallbackException exception behaviour.
2013-07-08 23:31:06 +02:00
Marek Safar
0ec1a19ac7
Update after newline update
2013-07-08 23:11:50 +02:00
Zoltan Varga
fc7ceab083
Remove the constraint checks from get_shared_inst (), it is no longer needed since we replace gsharedvt arguments with a vtype now. Fixes #12727 .
2013-07-08 22:30:16 +02:00
Zoltan Varga
a872ebb614
Make the synchronized wrappers static if the original method was static. Fixes shared-generic-synchronized.2.exe.
2013-07-08 18:24:51 +02:00
Marek Safar
71739e6420
Updated gitignore
2013-07-08 18:13:21 +02:00
Zoltan Varga
9e8e9a6d36
Add a test for #12110 .
2013-07-08 17:13:52 +02:00
Marek Safar
75f4e90d4b
Revert "Revert "Revert "Merge"""
...
This reverts commit 5705602f1b .
2013-07-08 17:01:47 +02:00
Marek Safar
5705602f1b
Revert "Revert "Merge""
...
This reverts commit ed1838b4e7 .
2013-07-08 17:00:36 +02:00
Marek Safar
ed1838b4e7
Revert "Merge"
...
This reverts commit cbe746f29f .
2013-07-08 16:58:33 +02:00
Marek Safar
cbe746f29f
Merge
2013-07-08 16:49:13 +02:00
Andreas Auerswald
a4edd897b5
Add TimeZoneInfo Serialization
...
Add serialization for the TimeZoneInfo, TimeZoneInfo.AdjustmentRule and TimeZoneInfo.TransitionTime class. It is compatible with the serialization in .Net for cross serialization/deserialization from Mono to .Net and vice versa.
The code in this commit is released under the terms of the MIT/X11 license.
2013-07-08 10:39:51 +02:00
Marek Safar
d51dc95fb9
Add test
2013-07-08 09:17:18 +02:00
Marek Safar
6c54381300
Merge pull request #686 from LHCGreg/12971-IsRedirectedAfterSet
...
Fix behavior of Console.Is*Redirected.
2013-07-07 23:58:15 -07:00
Zoltan Varga
f3cc3bf544
Remove some gcc-ism from mono_atomic_load_acquire/release, so it can be compiled by msvc.
2013-07-07 03:47:36 +02:00
Marek Safar
924c7c5514
Merge pull request #690 from akoeplinger/httpruntime-net45
...
Added handling of 'targetFramework' attribute to HttpRuntime
2013-07-06 08:44:45 -07:00
Alexander Köplinger
9ccd495f33
Added handling of 'targetFramework' attribute (new in .NET 4.5) to HttpRuntime and HttpRuntimeSection
2013-07-06 16:53:22 +02:00
Marek Safar
5c4b348e80
Fixes build
2013-07-06 12:13:18 +02:00
Marek Safar
a5ba6ad54d
Merge pull request #687 from miniBill/master
...
Add IISVersion property to HttpRuntime
2013-07-06 00:16:29 -07:00
Leonardo Taglialegne
b9cbade24a
Add IISVersion property to HttpRuntime
2013-07-06 09:02:20 +02:00
Greg Najda
94660dd77f
Improve detecting if a handle is a console on Windows.
...
Use GetConsoleMode. If it succeeds (returns non-zero) then the handle is a
console. If it fails (returns zero) then the handle is not a console.
The old check, (GetFileType (handle) == FILE_TYPE_CHAR) assumes that a handle
of type FILE_TYPE_CHAR is a console. This falsely reports a handle directed to
NUL as a console.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=12752
2013-07-06 01:10:13 -04:00
Marek Safar
be2e73c7e8
Correctly reset buffer for nested asynchronous file stream writes. Fixes #12777
2013-07-05 18:47:22 +02:00
Marek Safar
2d868f3690
Emit additional sequence points for call entry when needed. Fixes #10782 and similars
2013-07-05 14:15:01 +02:00
Marek Safar
e40775d0dc
Check expression type of resolved expressions too
2013-07-05 14:15:00 +02:00
Greg Najda
b5e9e3a965
Fix behavior of Console.Is*Redirected.
...
Setting Console.Out to a custom stream should not affect the value
of Console.IsOutputRedirected. This is how Microsoft's implementation
behaves.
2013-07-04 21:06:13 -04:00
Zoltan Varga
e779592fb6
Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes.
2013-07-05 01:02:10 +02:00
Zoltan Varga
18a3253788
Avoid passing class pointers to some marshal icalls since its not aot compatible. Fixes #12595 .
2013-07-04 23:42:07 +02:00
Marek Safar
ca1529df5b
Interface members are hidden by class members if a type parameter has an effective base other than object
2013-07-04 14:52:25 +02:00
Alex Rønne Petersen
5a161c7d2d
Merge pull request #684 from jack-pappas/patch-7
...
Clean up preprocessor ifdefs in mono_thread_get_stack_bounds and fix the way thread stack information is retrieved on BSD
2013-07-03 18:03:55 -07:00
Zoltan Varga
9bb552dcc0
Disable a failing System.Core test for mt ( #12987 ).
2013-07-04 01:23:33 +02:00
tritao
4beada2892
Added MONO_API macro to annotate and control visibility of public (exported) APIs.
...
This is especially useful for Windows since this way there is no need to maintain a separate .def file with exports which is usually out-of-sync with the latest revisions. This could also be used to control visibility with GCC/Clang so there would be no need for MONO_INTERNAL (could be removed while changing the default visibility to hidden).
2013-07-04 00:16:31 +01:00
Jack Pappas
d63cedf256
Clean up preprocessor ifdefs in mono_thread_get_stack_bounds and fix the way thread stack information is retrieved on BSD
...
Cleaned up the heavily-nested preprocessor ifdefs. The code within the function was extremely difficult to understand because of the nested preprocessor directives, which has led to a number of avoidable configuration-related bugs. I've de-nested the ifdefs into a mostly-flat style, where we check for each platform just once and the entirety of the code for that platform falls under that single check. This improves the readability of the code and should fix the configuration-related issues on some platforms.
This code also fixes an issue where thread-stack information wasn't retrieved correctly on BSD-based systems; now the platform is detected correctly and the `pthread_attr_get_np` function used to retrieve the information.
This subsumes pull-request #553 , which couldn't be merged with the current master branch due to several changes which were made to the `mono_thread_get_stack_bounds` function since that pull request was submitted. This commit also keeps the OpenBSD-related code for auditing purposes, though it may be removed later if testing shows the "generic" BSD handler works for OpenBSD.
2013-07-03 18:51:53 -04:00
Martin Baulig
ffe8719327
[xbuild] / [PCL]: Report an error for unsupported / missing PCL Profiles.
...
We previously only reported a warning, then failed later with tons of
"The predefined type `System.Object' is not defined or imported", which
was very confusing to the user.
We now distinguish between missing Reference Assemblies (ie. none of
them are installed) and the requested profile not being available, reporting
a meaningful error message.
2013-07-03 21:32:14 +02:00
Zoltan Varga
432633827b
Update the Mono LLVM EH Frame reading code to match llvm 5f3329c6d97bb765dc54592367087d9ce8cd0040.
2013-07-03 19:45:26 +02:00
Marek Safar
5d36460657
Update ast visitor
2013-07-03 18:38:18 +02:00
Marek Safar
e147105e52
Loading of nested type of missing type needs to create another missing type. Fixes #12989
2013-07-03 17:39:50 +02:00
Alex Rønne Petersen
2c5cf355d8
Rename the POSIX MonoThreadInfo::suspend_semaphore field to begin_suspend_semaphore.
...
Unbreaks the Linux build.
2013-07-03 16:21:35 +02:00
Rodrigo Kumpera
45d70b772a
Revert "Remove a duplicate field in mono-threads.h breaking the build on some systems."
...
This reverts commit 3600480ced .
This the wrong fix.
2013-07-03 09:33:52 -04:00
Marek Safar
0f05bb55f4
Add await support in to evaluator and REPL
2013-07-03 14:57:41 +02:00
Marek Safar
b84ad279fb
Better exception for unmarked labels
2013-07-03 14:57:40 +02:00
Alex Rønne Petersen
3600480ced
Remove a duplicate field in mono-threads.h breaking the build on some systems.
2013-07-03 14:49:13 +02:00
Zoltan Varga
2bc6e4b228
Fix the implementation of sext.i4/zext.i4 for LLVM. Fixes test_0_regress_11058 () on amd64.
2013-07-03 03:44:44 +02:00
Rodrigo Kumpera
51c7b8892d
Add regression tests for the last 3 fixes.
2013-07-02 18:50:36 -04:00
Rodrigo Kumpera
e2ac2a9e45
[runtime]Replace suspend safe locks with semaphores as darwin's implementation is not reliable.
...
* mono-threads.c: On OSX, suspend safe locks are subject to a race condition
where the lock is unlocked but a thread is blocked waiting for it.
Semaphores are significantly slower as they always transition to the kernel, but given
the two affected locks are taken very sporadically, there's nothing to worry here.
2013-07-02 18:42:26 -04:00
Rodrigo Kumpera
576dfed659
Introduce MonoThreadInfo::inside_critical_region to avoid suspending threads that are
...
dealing with suspended threads. One cannot reliably suspend a thread in the middle
of inspecting another one without the risk of deadlocking.
It usually goes like this:
thread 2:
suspend thread 3, thread 3 is in the middle of some critical code.
thread 1:
suspend thread 2 while probing for state of 3;
try to suspend thread 3, fail to resume since it's on critical code.
2013-07-02 18:42:26 -04:00
Rodrigo Kumpera
2fa83f0a8c
Suspend the world when cleaning up a domain as it's unsafe to walk the nursery with the world running.
2013-07-02 18:42:26 -04:00
Martin Baulig
1c4db5e0dd
Don't create any .mdb's for the PCL Facade Assemblies.
2013-07-02 23:11:16 +02:00
Zoltan Varga
01cfd32f25
Revert "Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727."
...
This reverts commit afb16275b0 .
Revert this as it breaks tests in mini/.
2013-07-02 21:58:17 +02:00
Martin Baulig
219a648fbb
Revert "Add configure check for -Wno-tautological-compare when using clang."
...
This reverts commit 6015a30c7a .
2013-07-02 21:12:51 +02:00
Zoltan Varga
afb16275b0
Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727 .
2013-07-02 20:49:35 +02:00
Martin Baulig
6015a30c7a
Add configure check for -Wno-tautological-compare when using clang.
2013-07-02 20:23:57 +02:00
Zoltan Varga
40ef8803ed
Put read-only data into a separate section on ios to work around #13005 .
2013-07-02 19:07:57 +02:00
Robin Neatherway
c26a40eef7
Fix Bug 4811, xbuild should find xml documentation
2013-07-02 17:26:15 +01:00
Martin Baulig
21dacdc57e
Merge pull request #664 from symform/xbuild-AssignProjectConfiguration
...
Renamed target AssignProjectConfigurations to AssignProjectConfiguration...
2013-07-02 07:49:31 -07:00
Sebastien Pouliot
abe99070fa
Fix type lookup when SSL/TLS is not embedded into System.dll
2013-07-02 08:23:17 -04:00
Marek Safar
b888cf5f04
Update csproj files
2013-07-02 13:45:15 +02:00
Alex Rønne Petersen
11ab0e0864
Merge pull request #649 from DavidS/feature/implement-additional-reference-path
...
xbuild: use the AdditionalReferencePath items to locate assemblies
2013-07-02 03:47:22 -07:00
Alex Rønne Petersen
90c31329db
Merge pull request #678 from jack-pappas/patch-5
...
Allow clang to compile sgen
2013-07-02 03:40:55 -07:00
Alex Rønne Petersen
c9afd924fd
Merge pull request #572 from jack-pappas/sockets-ipproto
...
Use IPPROTO_TCP instead of SOL_TCP for cross-platform compatibility.
2013-07-02 03:29:11 -07:00
Alex Rønne Petersen
e998301332
Merge pull request #679 from jack-pappas/patch-6
...
Enable sigaltstack and dtrace on FreeBSD
2013-07-02 02:18:47 -07:00
Marek Safar
6769392581
Do system.object type scan after all references are loaded. Fixes #12991
2013-07-02 10:33:43 +02:00
Jack Pappas
fe8d35a89f
Enable sigaltstack and dtrace on FreeBSD
...
Enable the use of sigaltstack and DTrace on FreeBSD. Note that while DTrace is enabled here (with `has_dtrace=yes`), the DTrace hooks will only be compiled into Mono when the FreeBSD kernel has been compiled with DTrace support.
2013-07-01 22:07:03 -04:00
Jack Pappas
b8b46cb622
Allow clang to compile sgen
...
Clang has supported both the `__thread` and `tls_model` attributes (needed to compile the sgen GC) since Clang/LLVM 3.2.
When compiling Mono with clang, the check which sets `with_tls=pthread` causes `mono-sgen` to be compiled anyway, although with some improper configuration which causes it to crash immediately when run.
I also removed the check for clang which was causing the `HAVE_TLS_MODEL_ATTR` symbol not to be defined, as Clang has in fact supported `tls_model` for some time now.
I cloned the Mono repository today, applied these changes, and compiled Mono using the LLVM/Clang 3.4 nightly builds on both the 32- and 64-bit versions of Ubuntu 12.04 LTS. In both cases, Mono compiled without any problems at all. Running `make check` on both boxes yielded no errors, except that the `finalizer-exception.exe` test hung on the x64 build; it's unclear whether or not this is a bug which manifests itself when Mono is built with clang, or if it's just a general bug in Mono. Either way, it doesn't seem to affect anything else.
If there are any issues compiling Mono with clang on other platforms, these "global" checks for clang should still be removed, and new platform-specific checks added where necessary.
2013-07-01 21:58:45 -04:00
Zoltan Varga
f35b71e663
Update the LLVM backend to match https://github.com/mono/llvm/commit/7e2ee51f8cad6ddeebdc66d8288cb21685422d42 .
2013-07-02 02:28:07 +02:00
Zoltan Varga
a5101bb67e
Fix a warning.
2013-07-02 02:10:53 +02:00
Zoltan Varga
6f2edb3799
Fix the unwind info for r7 on arm in managed-to-native wrappers.
2013-07-02 00:59:05 +02:00
Sebastien Pouliot
96a8500795
Allow the MONOTOUCH targetr to build its SSL/TLS support right inside System.dll and remove code duplication and non-required code paths.
2013-07-01 16:21:04 -04:00
Marek Safar
31f18d244e
Use directly captured this instead of parent reference for nested state machine inside another state machine without anonymous storey. Fixes #12762
2013-07-01 16:51:21 +02:00
Zoltan Varga
df5eff3dee
Fix the DISABLE_EXECUTABLES build.
2013-07-01 14:16:21 +02:00
Marek Safar
a4cac48864
Fix removing of hoisted variable moved to another storey
2013-07-01 12:11:13 +02:00
Marek Safar
f2bf4f79c0
Tweak tokenizer get_char.
2013-06-30 18:45:10 +02:00
Zoltan Varga
48a31b46ad
Fix more thumb+clang problems.
2013-06-29 20:48:07 +02:00
Michael Hutchinson
879bc0a945
[Mono.Cairo] Don't log warnings during VM shutdown
...
Else it can explode pretty badly if the Console streams are
finalized before the Cairo objects.
2013-06-29 05:29:11 -04:00
Marek Safar
18b8e63b6f
Call correct ApplyToExtraTarget base override. Fixes #12949
2013-06-29 10:40:24 +02:00
Zoltan Varga
92addb6494
Emit the thumb plt trampolines as binary since clang has trouble encoding the assembly.
2013-06-29 02:30:32 +02:00
Rodrigo Kumpera
8e9e2d5d72
Remove debug spew from switch_gc.
2013-06-28 19:48:03 -04:00
Michael Hutchinson
3f9310e59b
Merge pull request #642 from Ventero/CleanCopyLocal
...
[xbuild] Actually delete common files (CopyLocal) during Clean.
2013-06-28 16:22:13 -07:00
Michael Hutchinson
41565a96e1
[Mono.Debugger.Soft] More specific exception when not suspended
2013-06-28 18:20:54 -04:00
Marek Safar
a3bbc43141
Fix generated generated code for implicit nullable conversions involving numeric binary promotion
2013-06-28 18:50:12 +02:00
Marek Safar
0f25b95bae
Handle unicode line separators when parsing C# files
2013-06-28 18:50:11 +02:00
Rodrigo Kumpera
83c7a43cd0
Fix the build if -j4 is used.
2013-06-28 11:01:50 -04:00
Rodrigo Kumpera
6bc074be2e
Cleanup automake warnings.
2013-06-28 11:01:10 -04:00
Rodrigo Kumpera
efb46d7321
Another go fighting autohell.
2013-06-28 08:54:14 -04:00
Marek Safar
3b921ff630
Merge pull request #676 from TalAloni/master
...
Fix for bug 12892 - Path.GetFullPath() may return incorrect relative path under Windows
2013-06-28 02:21:47 -07:00
TalAloni
155a4799fc
Fix for bug 12892 - Path.GetFullPath() may return incorrect relative path under Windows
2013-06-28 11:25:54 +03:00
Marek Safar
66eae5262c
Recover more from invalid throw statement. Fixes #12889
2013-06-28 10:15:53 +02:00
Marek Safar
ecd8c2af65
Better error candidate selection for anonymous methods
2013-06-28 09:30:36 +02:00
Zoltan Varga
7b4289dd3a
Add a missing case to mono_patch_info_hash ().
2013-06-28 02:24:52 +02:00
Rodrigo Kumpera
76078ce3a3
Fix the build.
2013-06-27 16:40:40 -04:00
Rodrigo Kumpera
518a6dfcf8
[build]Fix make dist and use a symlink for mono.
2013-06-27 13:00:15 -04:00
Zoltan Varga
ae4ba11d66
Remove a pass from the llvm opt pipeline which is not a function pass.
2013-06-27 16:43:03 +02:00
Marek Safar
7e7134d3c6
Block task awaiter until task completes. Fixes #12745
2013-06-27 16:02:07 +02:00
Zoltan Varga
85ebad8a08
Enable dolt on x64/osx.
2013-06-27 15:36:01 +02:00
Zoltan Varga
6e3ea0c529
Disable some warnings when using clang.
2013-06-27 15:36:01 +02:00
Zoltan Varga
111f7c9be6
Fix returning uninitialized memory in get_pid_status_item ().
2013-06-27 15:36:01 +02:00
Marek Safar
48c60315dd
Merge pull request #671 from Blewzman/master
...
Fix SemaphoreSlim
2013-06-27 05:03:19 -07:00
Blewzman
21ca1f54bd
Fix SemaphoreSlim Constructor.
...
Fix https://bugzilla.xamarin.com/show_bug.cgi?id=11598 .
2013-06-27 13:33:50 +02:00
Marek Safar
d0a14ebbcb
Fix NRE on invalid second attribute target
2013-06-27 11:58:43 +02:00
Marek Safar
8cceb0ca63
Fix source file name comments
2013-06-27 11:58:43 +02:00
Martin Baulig
cd1f964bf7
Fix commit c31a58b656.
2013-06-27 06:13:50 +02:00
Rodrigo Kumpera
9213adbbf6
Add regression test for #12898 .
2013-06-26 20:26:39 -04:00
Rodrigo Kumpera
03f3947739
[verifier] Verify if the catch type is valid under the method context. Fixes BXC #12898 .
2013-06-26 20:26:39 -04:00
Sebastien Pouliot
85cb07992d
Do not throw, optionally, when facing an unknown OID. Fix mozroot facing an sha384ECDSA signed certificate)
2013-06-26 19:56:14 -04:00
Rodrigo Kumpera
8b787777c4
[sgen] Fix string size calculation in the string alloc wrapper.
...
It turns out copying the size calculation code from boehm's string wrapper
was a bad idea as it does it incorrectly. The whole runtime calculates it as
"sizeof (MonoString) + (len + 1) * 2" and not offsetof (MonoString, chars) + (len + 1) * 2".
This difference is 4 bytes on 64bits OSX and causes the world to crash.
It might be that we're over allocating here, but we must follow what everything else
expects us to do.
2013-06-26 18:46:39 -04:00
Rodrigo Kumpera
dd384a40f2
[sgen] Fix NALLOC_DEBUG.
2013-06-26 18:46:36 -04:00
Rodrigo Kumpera
ef805b5947
Fix build due to boehm->sgen changes.
2013-06-26 16:10:36 -04:00
Rodrigo Kumpera
41aaf1cb99
Mono now defaults to sgen. We now ship a libmonoboehm for those that need it.
2013-06-26 15:27:24 -04:00
Rodrigo Kumpera
e0f26cc241
Fix the build.
2013-06-26 14:59:45 -04:00
Zoltan Varga
c6c3102d4e
Don't make mono_tramp_info_create () assume ownership of its 'name' argument to avoid crashes if the caller passes in a static string.
2013-06-26 19:22:05 +02:00
Zoltan Varga
891a9dec7d
Upgrade llvm backend to match https://github.com/mono/llvm/commit/411ba3e5b299e841a9418d7fa18c48a2543248d2 .
2013-06-26 19:11:47 +02:00
Zoltan Varga
defe72b830
Fix the LLVM JIT.
2013-06-26 19:05:40 +02:00
Zoltan Varga
35a7005b75
Add some comments to the gsharedvt constrained call code.
2013-06-26 17:41:15 +02:00
Rodrigo Kumpera
e1b4682594
Merge pull request #670 from LogosBible/nostrndup
...
Don't try to detect strndup on OS X; it is only available on 10.7+.
2013-06-26 08:00:10 -07:00
Martin Potter
33748f55b1
Don't try to detect strndup on OS X; it is only available on 10.7+.
2013-06-26 07:09:57 -07:00
Marek Safar
0704f1f6db
Mutate generic catch block type when needed. Fixes #12799
2013-06-26 15:32:25 +02:00
Marek Safar
fcb255425a
Fix order of capturing of this inside switch statement. Fixes #12544
2013-06-26 14:43:34 +02:00
Marek Safar
53baacbe84
Update test
2013-06-26 14:43:34 +02:00
Martin Baulig
c31a58b656
[System]: Make WebClient report an error when the download aborted prematurely.
...
On iOS, Stream.Read() returns 0 if you put the device to sleep while the
download is still running. We now work around that by checking whether the
file has been fully downloaded. Note that this only works if the server
included a Content-Length header.
Fixes #3924 .
2013-06-26 13:31:05 +02:00
Marek Safar
f60cfb9d97
Fixes commit 99204b75da
2013-06-26 11:00:22 +02:00
Rodrigo Kumpera
157cb97206
Merge pull request #654 from alesliehughes/master
...
Implement two functions for supporting IDispatch.
2013-06-25 18:33:53 -07:00
Alistair Leslie-Hughes
3918b28d44
Implement cominterop_ccw_get_ids_of_names
...
License: This patch is under the MIT/X11 license.
2013-06-26 10:57:31 +10:00
Alistair Leslie-Hughes
817ff9c777
Implement cominterop_ccw_get_type_info_count
...
License: This patch is under the MIT/X11 license.
2013-06-26 10:57:06 +10:00
Zoltan Varga
1a8d9f1076
Implement proper osx aot tls support for amd64 too.
2013-06-26 01:55:25 +02:00
Martin Baulig
e181a1a44d
[System]: Partially fix #12393 .
2013-06-26 01:35:28 +02:00
Duncan Mak
76aedd7c63
Bump version number to 3.1.0
2013-06-25 18:04:53 -04:00
Marek Safar
d7f3e3d81a
Update verification data
2013-06-25 22:58:11 +02:00
Marek Safar
99204b75da
Fix MethodImplOptions argument checks. Fixes #12638
2013-06-25 22:58:10 +02:00
Marek Safar
7d372985f5
Better crash reporting
2013-06-25 22:58:10 +02:00
Jonathan Pryor
ac11abe18d
[System.Core/Android] Use correct comparison for timezone ids.
...
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=7953
The names within zoneinfo.idx are sorted ordinally, which is not the
default string comparison that Array.BinarySearch() uses.
Consequently, many timezones would not be found even though they were
present, including "Pacific/Auckland".
Use the correct string comparison so that names can be found.
2013-06-25 15:51:55 -04:00
Marek Safar
e1a6e61389
Merge pull request #669 from LogosBible/Uri_TryCreate
...
Escape path for absolute Uris created using Uri.TryCreate(string, UriKind, out Uri)
2013-06-25 12:35:06 -07:00
Rodrigo Kumpera
68ddd1d28d
[corlib] Fix MethodInfo::ToString () to properly format generic structs. Fixes BXC #12856
2013-06-25 14:22:48 -04:00
Rodrigo Kumpera
70869745d3
[aot]Clean the loader error after calling mini_method_compile to avoid poisoning further calls.
2013-06-25 12:00:20 -04:00
Zoltan Varga
1093d862a6
Add a workaround for an AOT crash in mt.
2013-06-25 17:53:57 +02:00
Grayson Hansard
ee352cde75
Escape path for absolute Uris created using Uri.TryCreate(string, UriKind, out bool)
2013-06-25 08:04:14 -07:00
Zoltan Varga
7eba091197
Make the AOT compiler stats output a bit more compact.
2013-06-25 16:52:58 +02:00
Marek Safar
09ca788b4b
Rewrite lifted binary operators to match C# spec more closely. Fixes #12608 and about 10 other issues.
2013-06-25 12:38:05 +02:00
Marek Safar
4c93595171
Fix wrong MediaType comparison
2013-06-25 12:38:04 +02:00
Martin Baulig
4429891208
[System]: Stub out System.Net.WebSockets.ClientWebSocket.
2013-06-25 00:18:43 +02:00
Zoltan Varga
d0771cfe0d
Use --relocation-model=pic for llvm on ios.
2013-06-24 23:09:40 +02:00
Zoltan Varga
c84a47aace
Fix the build.
2013-06-24 23:08:40 +02:00
Zoltan Varga
36c84f5378
Store AOT method indexes in the Mono EH frame instead of method addresses, since the former needs no relocations.
2013-06-24 22:33:18 +02:00
Martin Baulig
76ed5526bd
[System]: Add System.Uri test for bug #12631 .
2013-06-24 19:00:48 +02:00
Martin Baulig
3813ebc551
Implement System.Net.Http.WebRequestHandler.
2013-06-24 18:30:40 +02:00
Zoltan Varga
1b5ef4d3df
Add a GSHAREDVT_REG_IREG return marshalling convention on ARM.
2013-06-23 23:08:01 +02:00
Zoltan Varga
ef14a62348
Emit dummy dwarf line number info for methods without line numbers, like wrappers.
2013-06-22 23:42:39 +02:00
Zoltan Varga
ac8695db9f
When unloading domains, free dynamic assemblies first, since they have no ref counting, so they can depend on static assemblies which are already freed. Fixes #12786 .
2013-06-22 14:49:21 +02:00
Zoltan Varga
2590f7355b
Fix register allocation for hw remainder opcodes on armv7s. Fixes #12741 .
2013-06-22 13:58:39 +02:00
Rodrigo Kumpera
e3866aa092
When compiling gshared code, always use the cached isinst/castclass as it's faster than the cached one.
2013-06-21 20:31:13 -04:00
Rodrigo Kumpera
8ab46155bf
Enable managed allocation under gsharing.
...
We do that by using the NORMAL allocator instead of the SMALL allocator
as sizes might overflow at runtime.
The other change was to fix the GC api to take a MonoClass instead of a
MonoVTable.
2013-06-21 20:31:13 -04:00
Rodrigo Kumpera
611eb97a99
Implement the string allocator for sgen.
2013-06-21 20:31:12 -04:00
Rodrigo Kumpera
9f9ba76d77
[corlib]String.IndexOf is culture aware, while String.Contains is not.
2013-06-21 20:31:12 -04:00
Zoltan Varga
40facc7a01
Fix some bugs in 39471e0c67.
2013-06-22 02:04:41 +02:00
Zoltan Varga
979192a39b
Emit dwarf line number info using .file/.loc assembler directives on osx. Fixes #12731 .
2013-06-22 01:55:55 +02:00
Sebastien Pouliot
c03e4b4667
Add [Serializable] to X509Certificate2 (added in .NET 4.0) [ #12457 ]
2013-06-21 11:56:06 -04:00
Zoltan Varga
39471e0c67
Change the prolog of managed-to-native wrappers so they conform to the ios unwind abi too.
2013-06-21 17:42:03 +02:00
Zoltan Varga
dfc957a89c
Change the linkage of 'mono_aot_personality' to Internal, otherwise older llvm generates code which cannot be assembled by clang.
2013-06-21 17:42:02 +02:00
Miguel de Icaza
3792aca2ea
[compiler docs]: Update to reflect way to debug the parser
2013-06-21 09:52:20 -04:00
Martin Baulig
db06719d2a
[System]: Make ServicePointManager hash on the proxy as well as uri and use_connect.
...
This fixes #12640 .
2013-06-21 14:25:51 +02:00
Rodrigo Kumpera
3a489de4b8
Remove COM types from mono_defaults and lazily fetch them at runtime.
...
Added some macros to generate functions to lazily fetch corlib types.
2013-06-20 19:32:47 -04:00
Rodrigo Kumpera
5d123cfa38
Try to make lldb backtracing more reliable.
2013-06-20 16:43:39 -04:00
Michael Hutchinson
f61993fb98
[Cairo] Destroy should suppress finalizer
2013-06-20 16:33:39 -04:00
Sebastien Pouliot
313cb0f6be
Do not assume AddressList[0] has the address the test wants, that's not always the case, and not what UdpClient should be testing
2013-06-20 15:46:55 -04:00
Michael Hutchinson
8f3522361b
[man] document MONO_CAIRO_DEBUG_DISPOSE
2013-06-20 14:06:30 -04:00
Miguel de Icaza
60834f6475
Merge pull request #666 from mhutch/cairo-fix-3.0
...
Mono.Cairo improvements
2013-06-20 10:56:48 -07:00
Sebastien Pouliot
1065fe4e2b
[ios] Ignore the WindowsIdentityTest.SerializeRoundTrip test on iOS (see #12789 )
2013-06-20 09:32:35 -04:00
Mark Probst
9f19f605d3
[sgen] Fix a Clang warning.
2013-06-19 17:02:44 -07:00
Rodrigo Kumpera
731080c76b
[sdb] Add a test case for returning the right error when a m2n frame has no information.
2013-06-19 19:42:30 -04:00
Michael Hutchinson
86b07679f7
[Mono.Cairo] Use getter methods for returning IDisposables
...
This makes it a bit clearer that the caller is responsible for
disposing IDisposable objects returned from any method.
2013-06-19 18:37:36 -04:00
Michael Hutchinson
7085bed36e
[Mono.Cairo] Clean up Region's Dispose/ctor
2013-06-19 18:37:25 -04:00
Michael Hutchinson
0bb971d513
Make debug more robust
2013-06-19 18:37:14 -04:00
Mike Kestner
9ce4c0db33
Mono.Cairo: Add Region class for cairo_region_* API added in cairo 1.10
...
The Region type is needed for new API introduced by GDK 3.0.
This requires cairo 1.10 or above.
2013-06-19 18:37:03 -04:00
Bertrand Lorentz
16f4114159
Mono.Cairo: Re-order a few native methods and update API index URL
2013-06-19 18:36:54 -04:00
Bertrand Lorentz
befd617058
Mono.Cairo: Fix names of native functions used in PSSurface
...
It seems cairo_ps_surface_begin_* functions never existed, they were
always named cairo_ps_surface_dsc_begin_*.
Conflicts:
mcs/class/Mono.Cairo/Mono.Cairo/PSSurface.cs
2013-06-19 18:36:44 -04:00
Cameron White
461fd11d95
Mono.Cairo: Fix rectangles returned by StrokeExtents and FillExtents
...
The third and fourth parameters of the Rectangle constructor are width
and height, but cairo_stroke_extents and cairo_fill_extents give right
and bottom coordinates.
Signed-off-by: Bertrand Lorentz <[email protected] >
Conflicts:
mcs/class/Mono.Cairo/Mono.Cairo/Context.cs
2013-06-19 18:36:34 -04:00
Michael Hutchinson
d5b2ccb50f
[Mono.Cairo] Put some classes in separate files
2013-06-19 18:36:22 -04:00
Michael Hutchinson
7fb3dc1e9f
Introduce Mono.Cairo to the concept of reference ownership
...
Also:
* improving naming consistency
* obsolete old/broken stuff
* clean up tabs/space mix
NOTE: this removes the wrapper caches for Pattern and Surface as
there was no reliable way to clear them.
Conflicts:
mcs/class/Mono.Cairo/Mono.Cairo/Context.cs
2013-06-19 18:36:11 -04:00
Michael Hutchinson
0d1b8bed31
[Mono.Cairo] Add mechanism to debug missing Dispose calls
...
by setting a new MONO_CAIRO_DEBUG_DISPOSE env var
2013-06-19 18:36:00 -04:00
Michael Hutchinson
abc2892889
[Mono.Cairo] Clean up dispose implementations
2013-06-19 18:35:47 -04:00
Rodrigo Kumpera
eba22c4e18
[sdb] When a frame is missing it's context, report absent information instead of invalid frame.
...
* debugger-agent.c (frame_commands): When a thread is suspended in native code its top frame
will be missing a context, so it's not possible to inspect it. Instead of reporting an invalid
frame, it makes more sense to report unavailable data as this is the right clue for clients.
2013-06-19 18:05:28 -04:00
Rolf Bjarne Kvinge
cf87ac832f
Fix 64bit long alignment on Apple platforms when using Clang.
...
__alignof__ doesn't work properly with Clang (it returns 8 instead of 4)
in this case.
2013-06-19 00:19:02 +02:00
Zoltan Varga
b39c8299da
Fix the build.
2013-06-18 01:20:10 +02:00
Zoltan Varga
0b258fe3a2
Fetch TLS offsets from GOT slots when using AOT instead of embedding them in code, since the offsets can be different at runtime. Reorganize the OP_TLS_GET emission code.
2013-06-17 23:55:49 +02:00
Martin Baulig
691a961db7
Fix the .spec file.
2013-06-17 22:32:22 +02:00
Zoltan Varga
ef5f374520
Unify the tail call handling code with the normal call handling code a bit.
2013-06-15 22:50:39 +02:00
Rodrigo Kumpera
d6c5db881b
Mark MonoCMethod (runtime subclass of ConstructorInfo) as serializable. Fixes #12611
2013-06-14 19:04:55 -04:00
Rodrigo Kumpera
eff2914eaf
Add lldb support to our thread dump capabilities.
2013-06-14 16:49:07 -04:00
Jonathan Pryor
8c7397406e
[Mono.Posix] Fix time_t conversions.
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=12686
Mono.Unix.UnixFileSystemInfo.LastWriteTime & co. were hilariously
wrong. Just...hilariously wrong.
$ ls -l bxc12686.exe
-rwxr-xr-x 1 jon staff 4096 Jun 14 15:43 bxc12686.exe
$ csharp -r:Mono.Posix
csharp> new Mono.Unix.UnixFileInfo("bxc12686.exe").LastWriteTime;
6/14/2013 7:43:12 PM
Note: I'm currently in EDT (US Eastern Daylight Time). LastWriteTime
is supposed to be in the local time; it's 4 hours off (which also
happens to be the EDT UTF offset: -4:00).
The fundamental problem was that NativeConvert.FromTimeT() was written
for pre-.NET 2.0 environments, which precluded use (or knowledge of!)
DateTimeKind. Now that .NET 1.1 is no longer supported, and 2.0 is on
the its deathbead (bring on 4.5!), we can be smarter and let DateTime
sanely handle the conversion logic for us.
After the fix:
$ csharp -r:Mono.Posix
csharp> new Mono.Unix.UnixFileInfo("bxc12686.exe").LastWriteTime;
6/14/2013 3:43:12 PM
2013-06-14 16:18:47 -04:00
Zoltan Varga
0418ecd930
Small llvm+gsharedvt changes.
2013-06-14 20:48:06 +02:00
Bassam Tabbara
f8a1598eb1
Renamed target AssignProjectConfigurations to AssignProjectConfiguration (without the s) to better match .NET and other target files that call this target directly by name
2013-06-14 09:12:26 -07:00
Rodrigo Kumpera
a9083067da
Add TLS offset probing to mach-arm in the same way it's done on x86.
2013-06-13 18:50:02 -04:00
Rodrigo Kumpera
f8b3c4142f
Kill some unused code that is a leftover from when TPL had a managed scheduler.
2013-06-13 18:50:01 -04:00
Rodrigo Kumpera
19bb19f699
Add TLS offset probing to mach-amd64 in the same way it's done on x86.
2013-06-13 18:49:56 -04:00
Rodrigo Kumpera
1fd343ac44
Introduce mono_runtime_init_tls to centralize all of the late runtime TLS initialization.
...
TLS initialization must be done as early as possible since runtime initialization
might be intermingled with 3rd party code running that sometimes create additional
slots. Those extra TLS slots do interfere with AOT compilation that might see a
different set of offsets when compiling than when running.
The current piece of problem is AOT image loading. If the AOT image is not found,
the dynamic linker in 10.9 will create a TLS slot to hold error data. AOT image
loading is triggered in between the creation of the runtime TLS slots.
Since AOT image loading never happens during compilation, the dynamic linker
would never create the slot and things would otherwise remain working.
The solution is to move all TLS initialization to before any assembly is loaded
and, transitively, AOT image loading.
2013-06-13 17:05:06 -04:00
Rodrigo Kumpera
bd8cc934ed
Force the runtime on OSX to use a 8Mb stack.
...
This change doesn't affect any of the cats that default to 8Mb.
We need a significantly big main stack because mcs is implemented
in a recursive fashion and, right now, parts of the corlib test suite
require in excess of 1Mb of stack space to compile.
2013-06-13 17:03:18 -04:00
Zoltan Varga
4bd4f91206
Make the MONO_DISABLE_SHARED_AREA env variable actually work. Fixes #12655 .
2013-06-13 17:01:46 +02:00
Zoltan Varga
0ea69f7fcc
Fix more warnings/unitialized memory errors.
2013-06-13 17:01:46 +02:00
Atsushi Eno
643e27947b
slightly change missing monolite error message.
...
context: https://twitter.com/k1iguchi/status/345084575019577345
2013-06-13 17:58:34 +09:00
Marek Safar
4abd716296
Merge pull request #662 from cdrnet/fix-biginteger-gcd
...
[System.Numerics] BigInteger.GCD(0,x) must return abs(x) instead of x
2013-06-12 23:10:31 -07:00
Zoltan Varga
162140f81f
Fix a memory overwrite in the gsharedvt jit code.
2013-06-13 00:29:44 +02:00
Christoph Ruegg
c9cc1d15cd
[System.Numerics] BigInteger.GCD(0,x) must return abs(x) instead of x
...
According to the docs and matching the behavior in .Net, BigInteger's
GreatestCommonDivisor must return the absolute value of the non-zero
parameter if one of the parameters is zero.
Contains a fix and extended unit tests to cover the case.
2013-06-13 00:06:41 +02:00
Rodrigo Kumpera
616f6d2178
Make test more robust against conservative stack scanning.
2013-06-12 16:16:49 -04:00
Rodrigo Kumpera
93430d8ffe
Fix an unitialized variable bug.
2013-06-12 15:55:15 -04:00
Rodrigo Kumpera
a228ea49e8
Fix configure.in detection of -Wunused-but-set-variable support under clang.
2013-06-12 15:42:50 -04:00
Rodrigo Kumpera
3be3dc5d16
Perform TLS offset detection during startup.
...
* mono-suppport-x86.c (mono_mach_init): Probe TLS slots using an
unlikely canary. Right now only two offsets are known.
* mono-threads.c (mono_threads_init): Initialize mach from here
as remote TLS reads are required for mono-threads to work.
2013-06-12 15:42:50 -04:00
Rodrigo Kumpera
5a48d055e2
Move unload_data to the heap and it can outlive the initiator.
...
The unload thread stores TRUE to the done field when unloading
ends so the initiator can break out of the wait loop in case its
thread doesn't belong to the domain been unloaded but was still
aborted.
This means that the initiator could be gone when the unload
thread stores into the done field. This is now a random write
to the thread stack, which has a high chance of causing crashes.
The solution is to move the unload_data to the heap and refcount
it so we can release it safely.
2013-06-12 15:42:49 -04:00
Zoltan Varga
a2dbbdcb58
Use the same code for aot alignment checks in aot-compiler.c and aot-runtime.c.
2013-06-12 20:28:16 +02:00
Gonzalo Paniagua Javier
9b2e52a86a
Merge pull request #631 from kebby/master
...
Fix race condition in System.Net.WebConnectionStream
2013-06-12 11:14:20 -07:00
Tammo 'kb' Hinrichs
170fc3aaf7
Reverted whitespace changes
2013-06-12 19:52:14 +02:00
Zoltan Varga
650d09e319
Revert "Add beginnings of a managed IL disassembler which uses Mono.Cecil. Not yet part of the build."
...
This reverts commit 535e76a058 .
Revert this as we will be using something else.
2013-06-12 18:33:33 +02:00
Zoltan Varga
042b86c024
Add support for nullables to box/unbox in gsharedvt code.
2013-06-12 17:31:41 +02:00
Martin Baulig
c016756546
Bump ikvm to 10b8312c8024111780ee382688cd4c8754b1f1ac.
2013-06-12 04:17:37 +02:00
Martin Baulig
27872586c0
Add System.Net to runtime remapping list.
2013-06-12 04:05:35 +02:00
Zoltan Varga
84be0c5e8b
Fix the arm build.
2013-06-11 23:33:49 +02:00
Zoltan Varga
d902cd4d21
Allow Nullable.Box/Unbox to be compiled as gsharedvt methods.
2013-06-11 23:32:51 +02:00
Rodrigo Kumpera
043b9d2025
Fix new BigInteger().GetHashCode() to not throw.
2013-06-11 15:55:48 -04:00
Rodrigo Kumpera
c9b90f8f5b
Fix delegate combine when left side has already been invoked.
2013-06-11 15:08:59 -04:00
Rodrigo Kumpera
f9dac2ef19
Better handle default value BigInteger. Fixes #11945
2013-06-11 15:08:59 -04:00
Martin Baulig
f4a11f47a3
[PCL]: System.Windows and System.Xml.Serialization are no Facade Assemblies.
2013-06-11 20:58:54 +02:00
Zoltan Varga
8dd12eab7f
Allow the gsharedvt info/local vars to be register allocated.
2013-06-11 12:01:47 +02:00
Zoltan Varga
42a5695cc8
Optimize generated gsharedvt code: Load information from the gsharedvt_info variable instead of using an rgctx fetch trampoline, use optimized memcpy/bzero methods.
2013-06-11 11:27:06 +02:00
Rodrigo Kumpera
8480455584
Handle shifts by multiple of 32 correctly. Fixes #10887 .
2013-06-10 18:31:46 -04:00
Zoltan Varga
31bf37d6d4
Add specialized memcpy/bzero methods to String which are called from gsharedvt code.
2013-06-10 23:10:34 +02:00
Zoltan Varga
23171bc457
Eliminate the use of localloc in gsharedvt methods which have no gsharedvt locals.
2013-06-10 16:09:50 +02:00
Alex Rønne Petersen
f605c6478e
Fix a couple of warnings in appdomain.c and threads.c.
2013-06-10 12:47:40 +02:00
Zoltan Varga
249c70882f
Fix a typo in e5c45f1161.
2013-06-10 11:20:22 +02:00
Zoltan Varga
c6c4b895ba
Disable gc-altstack.exe on wrench until it is fixed ( #12610 ).
2013-06-09 23:38:36 +02:00
Zoltan Varga
adcaf49915
Rework the gsharedvt code to add support for vtypes with arbitrary size.
2013-06-09 23:17:12 +02:00
Marek Safar
2c02ea78df
Merge pull request #658 from cdrnet/fix-bad-formatstring-forwarding
...
Complex.ToString must not pass format string to string.Format
2013-06-09 07:28:32 -07:00
Christoph Ruegg
9f43b4c822
Complex.ToString must not pass format string to string.Format
...
Type: System.Numerics.Complex
IFormattable format strings and string.Format formats are different
and incompatible. For example, `x.ToString("G")` and `x.ToString(null)`
must be equivalent to `x.ToString()`, but they behave very differently
with string.Format, where the former just returns "G" and the latter
throws an ArgumentNullException.
Changes System.Numerics.Complex.ToString to pass the format string to
double.ToString instead of string.Format.
Adds UnitTests for the changes in new ComplexTest.cs file
2013-06-09 16:19:43 +02:00
Marek Safar
e4a5774ba8
Merge pull request #657 from jbevain-forks/thread-safe-cs-code-generator
...
Prevent multiple threads to populate the keyword table
2013-06-07 14:58:09 -07:00
Jb Evain
53e77d3628
Prevent multiple threads to populate the keyword table
2013-06-07 23:51:47 +02:00
Marek Safar
896975c58e
Resolve switch cases without look aheah look-up. Fixes #12583
2013-06-07 18:40:37 +02:00
Sebastien Pouliot
50ab3fadd1
[ios] Remove code path using UseMachineKeyStore since it's not available (and bring extra code inside applications)
2013-06-07 11:10:59 -04:00
Rodrigo Kumpera
7d5f81f04d
Fix the desktop test suite.
2013-06-07 10:42:28 -04:00
Tom Philpot
aeed8baa68
Take shared file lock before collecting file share_info.
2013-06-06 22:08:38 -07:00
Martin Baulig
43dff8bd0a
[System.ComponentModel.Composition]: Disable RefEmit classes on MonoTouch.
2013-06-07 03:39:55 +02:00
Rodrigo Kumpera
e37d1d6103
Add regression test for wrench bug where an appdomain unload would race with shutdown and deadlock.
2013-06-06 19:04:49 -04:00
Rodrigo Kumpera
41a6f4267b
Fix race condition between a domain unload and a runtime shutdown.
...
When a regular runtime shutdown and a domain unload starts mostly in parallel
it might happen that the unload initiator will deadlock waiting on the unload thread
for two reasons:
The unload thread will block when attaching as the runtime believe it's better
to not finish it as it's going down. To fix this we now use mono_thread_attach_full
and force it to be attached.
The unload initiator might deadlock on the wait loop if the shutdown initiator aborts
it instead of the unload thread. This happens if the unload was done from outside of
the domain been teared down.
The fix here is to add a variable that the initiation test on every loop, which is the
right thing to do when using wait loops on handles. This might degrade into a busy
loop when the above race condition happens. It's rare enough that it's not worth
fixing it now.
2013-06-06 19:00:06 -04:00
Rodrigo Kumpera
523648de78
Add mono_thread_attach_full function that can forces a thread to be attached during shutdown.
...
A thread must be forcibly attached during shutdown if the runtime needs it to run and needs it
to be functional.
2013-06-06 19:00:06 -04:00
Rodrigo Kumpera
1ab5169f9c
Make threadpool_clear_queue resistant to concurrent runtime shutdown.
...
If threadpool_clear_queue is called while the runtime is been shutdown
it might crash since the queue will have been cleaned.
So now we guard against null queues and bail out from appending
the existing jobs if shutdown was initiated.
2013-06-06 19:00:06 -04:00
Rodrigo Kumpera
9b24f8c58b
Run more runtime tests on wrench.
2013-06-06 19:00:06 -04:00
Zoltan Varga
b31bb33f5f
Rename the JIT test classes so they can be run on MT too.
2013-06-06 21:51:36 +02:00
Marek Habersack
07d97ab605
Merge pull request #655 from zgramana/master
...
Adds MemoryCacheEntryPriorityQueue heap index checks
2013-06-06 09:32:29 -07:00
Zachary Gramana
f8d1e1c791
[Caching] Adds some checks for overflow and valid bounds on heap indexes.
2013-06-06 11:41:04 -04:00
Zoltan Varga
2424b67a3b
Fix a regression introduced by 6285a057a2: Use the proper value to calculate whenever to do a near call on amd64. Fixes #12541 .
2013-06-06 17:23:42 +02:00
Jérémie Laval
04618c1810
[monodoc] Cache assembly loaded with MonoImpInfo. Patch by Aaron Oneal.
2013-06-06 10:51:37 -04:00
Jérémie Laval
9c4ee21732
[monodoc] Use CLEAN_FILES rather than overriding clean-local
2013-06-06 10:51:10 -04:00
Jérémie Laval
05ea21e6e2
[monodoc] Remove .config file when cleaning
2013-06-06 10:39:28 -04:00
Marek Safar
fed54ce181
Check class level type parameters used in explicit delegate parameters conversion. Fixes #12568
2013-06-06 14:30:51 +02:00
Marek Safar
a4fdd2cf6e
Correct encoding transformation flags for type arguments arrays without dynamic element. Fixes #12572
2013-06-06 11:54:20 +02:00
Marek Safar
8d89242edb
Keep hoisted this when lambda parent is async lambda. Fixes #12549
2013-06-06 10:51:55 +02:00
Jérémie Laval
58131c2ee0
[mdoc] Pass the right HelpSource as a hint to the renderer to avoid generating system-provided doc.
2013-06-05 19:55:04 -04:00
Rodrigo Kumpera
26da5bd22a
Rework the shutdown sequence so two initiations don't race each other.
...
This fixes a race condition where two threads could perform runtime shutdown
at the same time and either crash or hang. Now each initiation checks if they
won and take the proper action in such case.
A recurring problem was with the debugger, that would hang on shutdown if the
main thread started shutdown earlier. In this case the agent thread would
call into mono_threads_set_shutting_down, which in turn would do an ExitThread
since shutdown was in progress.
The agent thread would exit without signaling that it did complete, causing
the main thread to block waiting for it to do so.
* runtime.c (mono_runtime_shutdown): Rename it to mono_runtime_try_shutdown
and move threadpool cleanup to here. Some cleanup of the rest of the sequence
still left to do.
* icall.c (Environment.Exit): If we fail to start shutdown, just exit
the thread as someone else will finish the job. We can't suspend because if
this is called by regular shutdown we would be resumed and return to user code.
An alternative would be to detach and then suspend. Not sure on the merits.
* threads.c (mono_thread_manage): If we fail to start shutdown, suspend
as this is what the winner initiator wants us to do as it must be for
forced exit.
* debugger-agent.c (vm_commands): If we fail to start shutdown, return
from the function and let the agent thread finish and clean up.
* debugger-agent.c (debugger_thread): VM_EXIT commands now can return
if shutdown was externaly initiated and in such case we should break
the main loop and let the agent thread finish.
2013-06-05 19:43:32 -04:00
Rodrigo Kumpera
56c238dd85
Move mono_runtime_set_shutting_down and mono_runtime_is_shutting_down to runtime.c
2013-06-05 19:43:32 -04:00
Rodrigo Kumpera
70720724e1
Don't set shutting_down here as it is now done much earlier in the shutdown sequence.
2013-06-05 19:43:31 -04:00
Rodrigo Kumpera
47a4a0b343
Kill unused func mono_threads_is_shutting_down.
2013-06-05 19:43:31 -04:00
Rodrigo Kumpera
17ea95e5e3
Detach the current thread as soon as possible when mono_gc_pthread_exit is called.
...
* sgen-gc.c (mono_gc_pthread_exit): Given the current thread is doomed, explicitly
detach before calling pthread_exit and thus reducing the chance of TLS cleanup issues.
2013-06-05 19:43:31 -04:00
Jérémie Laval
b857932b57
[monodoc] Ditto for fetching type node parents of subnodes.
2013-06-05 19:41:07 -04:00
Jérémie Laval
ff817916b8
[monodoc] Fix ecma traversal with unattached tree.
...
Previously the code expected to stop at upper level node using the fact that their element starts with `root:/'. This element is attributed by RootNode when loading a complete tree. However tool like mdoc also loads tree unattached which doesn't create a standard `root:/` top-level root node hence causing the issue.
2013-06-05 19:04:04 -04:00
Martin Baulig
a84dee6d10
Build System.Net on mobile (type-forwarders for PCL).
2013-06-05 23:09:08 +02:00
Sebastien Pouliot
a60aa8fb41
Exclude the new System.IO.Directory unit test for iOS (no Mono.Unix)
2013-06-05 15:00:33 -04:00
Sebastien Pouliot
7e6673ce04
Add monotouch_corlib.dll.sources (to simply include corlib.dll.sources) since library.make change it's processing with its presence
2013-06-05 13:44:55 -04:00
Rodrigo Kumpera
c21b959408
Fix 2.0 build.
2013-06-05 12:44:34 -04:00
Jonathan Pryor
322d5bd38f
[System.Core] Add AesCryptoServiceProvider to the MONODROID profile.
...
Context: System.Security.Cryptography/AesCryptoServiceProvider.cs
Add System.Security.Cryptography.AesCryptoServiceProvider to the
MONODROID profile.
This is needed so that Aes.Create() can work.
2013-06-04 19:40:16 -04:00
Rodrigo Kumpera
d6fd0cde05
Make sure the behavior between GetFiles and EnumerateFiles are the same regarding symlinks. Fixes BXC #12461
...
* Directory.cs: Only ignore symlinks when traversing subdirectories. This is the only case that it can result
in loops.
2013-06-04 18:49:34 -04:00
Rodrigo Kumpera
e16eacc268
Fix a loader leak in mono_class_create_from_typedef.
2013-06-04 17:41:57 -04:00
Sebastien Pouliot
f39dc2adcd
[ios] Remove the need to use reflection to call the StartWWAN method (by moving it into libmonotouch)
2013-06-04 14:42:44 -04:00
Martin Baulig
25dbd0829e
[PCL]: Set Facade Assemblies' version number to "4.0.0.0".
2013-06-04 18:14:53 +02:00
Sebastien Pouliot
f9ebdc5615
Re-enable a test for the MOBILE profile (by ensuring the required method is not removed by the linker)
2013-06-04 10:58:40 -04:00
Zoltan Varga
013a38cfba
Implement MethodMirror.MakeGenericMethod ().
2013-06-04 08:01:32 +02:00
Jonathan Pryor
b1f4d6dfcc
[corlib] Don't throw UnauthorizedAccessException from Path.GetTempFileName
...
The problem is sporadic mdoc test failures on Wrench/OS X:
Updating: Mono.DocTest.Widget/NestedClass/Double/Triple/Quadruple
mdoc: System.UnauthorizedAccessException: Access to the path '/var/folders/_g/y9v720_90l914yylrk7m903c0000gn/T/tmp20f71445.tmp' is denied.
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions)
at System.IO.Path.GetTempFileName () [0x00000] in <filename unknown>:0
at Mono.Documentation.MdocFile.UpdateFile (System.String file, System.Action`1 creator) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDocUpdater.WriteFile (System.String filename, FileMode mode, System.Action`1 action) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDocUpdater.DoUpdateType2 (System.String message, System.Xml.XmlDocument basefile, Mono.Cecil.TypeDefinition type, System.String output, Boolean insertSince) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDocUpdater.DoUpdateType (Mono.Cecil.TypeDefinition type, System.String basepath, System.String dest) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDocUpdater.DoUpdateAssembly (Mono.Cecil.AssemblyDefinition assembly, System.Xml.XmlElement index_types, System.String source, System.String dest, System.Collections.Generic.HashSet`1 goodfiles) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDocUpdater.DoUpdateAssemblies (System.String source, System.String dest) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDocUpdater.Run (IEnumerable`1 args) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDoc.Run (System.String[] args) [0x00000] in <filename unknown>:0
at Mono.Documentation.MDoc.Main (System.String[] args) [0x00000] in <filename unknown>:0
I'm not sure why we're getting UnauthorizedAccessException exceptions,
nor do I particularly care; Path.GetTempFileName() should not be
throwing UnauthorizedAccessException; only IOException is documented:
http://msdn.microsoft.com/en-us/library/system.io.path.gettempfilename.aspx
Update behavior to skip files that generate
UnauthorizedAccessException, and if we swallow short.MaxValue
exceptions wrap the UnauthorizedAccessException in an IOException so
that we conform to documented exceptional behavior.
2013-06-03 16:57:31 -04:00
Marek Safar
c3bd60f842
Merge pull request #653 from LogosBible/TimeSpan-TryParseExact
...
TimeSpan.TryParseExact should not try to parse null input.
2013-06-03 09:12:47 -07:00
Martin Potter
822184746f
TimeSpan.TryParseExact should not try to parse null input.
...
TimeSpan.TryParseExact would previously throw a NullReferenceException constructing the Parser when it accesses the Length property of the input string. Microsoft's implementation returns false when null is passed as the input string to parse.
2013-06-03 07:32:10 -07:00
Zoltan Varga
1479e24be5
Disable partial sharing for now, it breaks some tests on mt.
2013-06-03 15:56:43 +02:00
Atsushi Eno
c72d1b7f0b
a few more nunit test modernization.
2013-06-03 17:00:21 +09:00
Atsushi Eno
5aaa3ce00b
convert some unit tests to modern style. (not really modern, just killing Assertion!)
2013-06-03 16:51:22 +09:00
Alex Rønne Petersen
c01342d8d1
Use /proc/self/auxv for ARM feature detection when possible.
...
This is generally preferable because it works in QEMU chroots and
the information is significantly easier to process.
We still need to keep the /proc/cpuinfo code around, however, as
Android does not always allow access to /proc/self/auxv...
This patch also enhances the MONO_CPU_ARCH environment variable
to support the various new features we support.
2013-06-03 07:34:43 +02:00
Zoltan Varga
db9c0bacde
Use MonoBoolean instead of gboolean as an icall return type.
2013-06-03 07:33:18 +02:00
Alex Rønne Petersen
f6f485f61c
Ignore all cpu-*.h files in mono/mini.
2013-06-02 19:39:24 +02:00
Marek Safar
3fa714d922
Merge pull request #651 from JoostK/patch-1
...
Shortcut open paren recognition for switch statements
2013-06-02 09:53:20 -07:00
Zoltan Varga
968bd783b6
Fix constrained gsharedvt calls on enums.
2013-06-02 11:49:59 +02:00
Zoltan Varga
4bb1ab7dec
[sdb] Clear ss_invoke_addr when stopping single stepping so runtime invokes don't stop single stepping. Fixes #12509 .
2013-06-02 06:36:29 +02:00
Zoltan Varga
7a2bc28ed9
Get rid of the NESTED_LIBGC_FLAGS configure variable, use the already existing CPPFLAGS_FOR_LIBGC instead.
2013-06-01 09:18:51 +02:00
Zoltan Varga
5535c13577
Pass some defines in config.h instead of on the command line.
2013-06-01 09:14:29 +02:00
Zoltan Varga
8170bf67b1
[sdb] Keep the exception object alive during debugger suspensions. Fixes #12494 .
2013-06-01 07:05:05 +02:00
Joost Koehoorn
9287b2354e
Shortcut open parent recognition for switch
2013-06-01 03:48:15 +02:00
Sebastien Pouliot
fa6625a8e7
Fix random unit test failures on the bots [ #12493 ]
2013-05-31 15:44:39 -04:00
Jeffrey Stedfast
f55bb35832
[Mono.Debugger.Soft] Updated closed/disconnected state when connection is force-closed
2013-05-31 14:27:30 -04:00
Atsushi Eno
6d153cd581
[mkbundle] do not require dos2unix (and sh) on Windows. Skip it if it does not exist.
2013-05-31 18:08:20 +09:00
Rolf Bjarne Kvinge
ad85fd1fb5
Make all symbols visible for MonoTouch.
...
MonoTouch may use a shared libmono with AOT-compiled assemblies,
and the AOT-compiled assemblies need to access internal symbols
from libmono. The monotouch runtime also uses a few internal
API.
So the easiest way to fix both these cases is to make everything
public for MonoTouch. The libmono used will always be in sync
with the AOT-compiled code, so ABI-breakage is not a concern.
2013-05-30 23:48:49 +02:00
Rolf Bjarne Kvinge
142b670dae
[System] Don't use System.Reflection.Emit if we're in a FullAOT runtime.
2013-05-30 23:48:48 +02:00
Rodrigo Kumpera
9015a7f609
Improve the reliability and error reporting of the TPL Dataflow test suite.
2013-05-30 15:43:25 -04:00
Zoltan Varga
dbbb5ff89b
Revert "Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only."
...
This reverts commit cff0ecb816 .
Revert this as boehm-gc.c depends on the libgc defines.
2013-05-30 18:11:47 +02:00
Zoltan Varga
cff0ecb816
Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only.
2013-05-30 10:59:05 +02:00
Zoltan Varga
ff166ea8dd
Disable locking around archive accesses in libtool on darwin, it doesn't seem to be necessary and it slows down parallel builds.
2013-05-30 07:58:27 +02:00
Zoltan Varga
8a7e0c825e
Enable dolt on ios builds.
2013-05-30 07:57:04 +02:00
Zoltan Varga
655afb183b
Remove the #ifdef HAVE_SGEN_GC dependency from main.c by using a separate main-sgen.c file for sgen.
2013-05-30 05:15:18 +02:00
Zoltan Varga
dbc3713dcd
Fix a warning.
2013-05-30 05:13:43 +02:00
Zoltan Varga
c43c9f5b26
Avoid putting a duplicate -arch i386 into CPPFLAGS, it prevents ccache from working.
2013-05-30 05:13:33 +02:00
Zoltan Varga
edd0b3a153
Use gsharedvt for some generic instances in full-aot mode to avoid code blowup.
2013-05-30 03:34:56 +02:00
Zoltan Varga
fa885472fa
Move the adding of unbox trampolines to mini_add_method_trampoline ().
2013-05-30 02:48:52 +02:00
Sebastien Pouliot
8bb86180f6
[ios] Allow some level of configuration when CryptoConfig is used (as a last resort fallback)
2013-05-29 16:52:50 -04:00
Sebastien Pouliot
3be80a930d
Remove MOBILE defines inside X509Chain tests
2013-05-29 14:55:08 -04:00
Jonathan Pryor
574dbc8ec4
[mdoc] Fix unit tests.
...
3d3fe6af (among other commits...) "broke" the `mdoc` unit tests, as it
did two things:
1. It added a new codepath calling string.Format(), thus introducing
a new set of exceptions.
2. Due to an `mdoc` bug, (1) resulted in a stack overflow on OS X.
(1) demonstrates that the mdoc unit tests might be too brittle.
(2) was fixed in 04bf9ad .
The problem with 04bf9ad , though, is that it resulted in a gigantic
~212MB diff, because while the recursion was "fixed", we could still
process the same method multiple times, resulting in _lots_ of
duplication, e.g. System.String.get_Chars() would be repeated hundreds
of times for a given exception.
Improve the source reporting mechanism so that instead of a
List<MemberReference> we use a HashSet<MemberReference>, listing each
source location _once_ instead of repeating them.
The _formatting_ of the <exception/> element is also changed so that
each source location is on its own line, making it easier to read and
review the locations.
2013-05-29 12:03:52 -04:00
Zoltan Varga
4e7ae2dd80
Use a different function for emitting write barriers for gsharedvt types which can handle reference types too. Fixes #12429 .
2013-05-29 16:26:56 +02:00
Zoltan Varga
4ffdf1cd94
Avoid calling alloc wrappers directly, sgen does some initialization when the wrapper method is created.
2013-05-29 16:26:02 +02:00
Jonathan Pryor
9f216160f8
[mdoc] Fix export-msxdoc regression, updated expected output.
...
Commit 44b2b4a8 completely broke `mdoc export-msxdoc` because
EcmaDoc.GetCref() was removed. Expected:
<member name="C:Mono.DocTest.DocAttribute(System.String)">
Actual:
<member name="Mono.DocTest.DocAttribute..ctor">
i.e. useless.
The fix: bring back GetCref(), this time within monodocs2slashdoc.cs.
Commit 0ad6ffde changed the HTML-generating stylesheet and moved some
@id attributes around, thus breaking the mdoc unit tests (expected
output likewise changed). Fix the monodoc XSLTs so that we don't emit
id="" attributes (id's with no value).
Update mdoc's expected output so that tests pass[*].
[*]: tests will NOT actually pass, as 04bf9add -- attempted fix for
an OS X stackoverflow caused by 3d3fe6af -- results in a gigantic
216MB diff because String.get_Chars() is repeated over and over and
over... The updated expected output in this commit is the "ideal"
update needed after locally reverting 3d3fe6af and 04bf9add.)
2013-05-29 06:52:53 -04:00
Marek Safar
773aaf7ac7
Enable fixed tests
2013-05-29 11:04:17 +02:00
Marek Safar
02a3f41adf
Run YieldAwaitable tests on default synchronization context. Fixes #12446
2013-05-29 11:02:53 +02:00
Zoltan Varga
dcfebb9e96
Revert "Use gsharedvt for some generic instances in full-aot mode to avoid code blowup."
...
This reverts commit 9f36e10b1b .
Revert this as it breaks some mt tests.
2013-05-29 10:51:12 +02:00
Zoltan Varga
9f36e10b1b
Use gsharedvt for some generic instances in full-aot mode to avoid code blowup.
2013-05-29 10:12:37 +02:00
Zoltan Varga
33746303e9
Add support for constrained calls to Object.Equals to gsharedvt.
2013-05-29 09:53:42 +02:00
Zoltan Varga
8da1402c8b
Disable some YieldAwaitable tests on MT.
2013-05-29 06:41:23 +02:00
Sebastien Pouliot
4bc0c9dfe8
Change code to more linker friendly ways to create MD5 and X509Chain and allow, for iOS, the creation of X509Chain without requiring CryptoConfig
2013-05-28 21:09:06 -04:00
Sebastien Pouliot
48961ea967
Refactor the Mono.Security code to use more linker friendly ways to create hash algorithms
2013-05-28 20:12:15 -04:00
Rodrigo Kumpera
04bf9add68
Avoid direct recursion when computing the exceptions of a method.
...
* exceptions.cs: When Filling the exceptions of a method make sure
to not recurse on the methods itself as this can lead to a stackoverflow.
2013-05-28 20:05:37 -04:00
Sebastien Pouliot
5c9cedd328
[ios] Add, as a last resort, the creation of the hash based on it's type name. Needed for some API (which provides it) and the associated unit tests
2013-05-28 19:35:27 -04:00
Marek Safar
ec5a3f09b3
Update failing mobile test
2013-05-28 20:34:53 +02:00
Rodrigo Kumpera
7745e11b76
Fix 2.0 corlib test suite.
2013-05-28 14:00:09 -04:00
Rodrigo Kumpera
10bcb9cf69
Older versions of iOS don't have pthread_mutexattr_setpolicy_np so dynamically look up the function and fallback on failure. Fixes #12394
2013-05-28 13:40:29 -04:00
Zoltan Varga
8f1ba93ba3
Fix support for dynamic methods in collect_method_images (). Fixes #12412 .
2013-05-28 18:15:19 +02:00
Marek Safar
8cabf341f7
Keep cancellation token for all running requests. Fixes #12349
2013-05-28 11:13:24 +02:00
Marek Safar
50bf3e8d59
Updated CryptoConvert.cs path
2013-05-28 11:13:24 +02:00
Marek Safar
06390644e6
Resolve unreachable block with correct flow settings. Fixes #12361
2013-05-28 11:13:23 +02:00
Zoltan Varga
437c3af12e
Fix a reading of invalid memory error introduced by 3f3092b477.
2013-05-28 04:23:33 +02:00
Marek Habersack
ada85c64ad
Merge pull request #647 from knocte/aspnet_lru
...
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
2013-05-27 13:36:05 -07:00
Andres G. Aragoneses
7fe883d9c5
[System.Web] Improve locking logic for WebConfigManager's sectionCache
...
As suggested by Marek Habersack, instead of catching
SynchronizationLockException in the case that the lock wasn't
acquired, we now have a boolean that indicates if it was
acquired or not, so we can act on it on the finally{} block.
2013-05-27 21:27:33 +01:00
Martin Baulig
7cf71acde0
Bump ikvm to f66ae58 to recognize PCL Facade Assemblies.
2013-05-27 20:03:31 +02:00
Martin Baulig
aa3f9d85bb
[xbuild]: Remove duplicates from 'TargetFrameworkDirectory'.
2013-05-27 17:41:13 +02:00
Martin Baulig
eda8f9416a
[WebConnection]: Fix incorrect end-of-stream with null callback.
...
This fixes #12355/#12395/#5904.
When EndRead() is called with a null "inner" IAsyncResult, then
we should not consider this as an end-of-stream condition.
This happens sometimes when using SSL and chunked encoding.
2013-05-27 15:52:13 +02:00
David Schmitt
12464b5706
xbuild: use the AdditionalReferencePath items to locate assemblies
...
This is a little underdocumented feature of MSBuild. Items with the name
"AdditionalReferencePath" get searched for referenced assemblies. This helps
with some scenarios, e.g. when the assembly has to be references from a central
location.
2013-05-27 12:51:30 +02:00
Marek Safar
c48573e1c5
Add more argument checks to RegisterWaitForSingleObject
2013-05-25 10:23:12 +02:00
Marek Safar
a53f8f558e
Merge pull request #648 from DavidKarlas/defaultDependcyObject
...
DependencyObject default value
2013-05-24 23:57:57 -07:00
Atsushi Eno
54d8ffe881
forgot to add new source to .sources.
2013-05-25 08:02:46 +09:00
Martin Baulig
5f23d60b1d
[xbuild]: Fix conditions for <ItemGroup> inside <Target>.
2013-05-25 00:42:48 +02:00
Atsushi Eno
9aff2b49e8
Use IKVM.Reflection to fully avoid reflection+mscorlib issues.
2013-05-25 07:09:05 +09:00
Zoltan Varga
bab31bcb58
Merge some Nacl/ARM changes from https://github.com/igotti-google/mono/commit/65d8d68e8c81cf6adb1076de7a9425c84cab86a3 .
2013-05-24 23:41:50 +02:00
Martin Baulig
a6d12819a7
[PCL]: Add missing type-forwarder for System.String to System.Runtime.
2013-05-24 23:21:10 +02:00
Rodrigo Kumpera
9151d0e236
[sdb] Fix race condition on test program that would cause a hang when running on wrench.
2013-05-24 15:48:09 -04:00
Atsushi Eno
33da4c0957
the previous change was #fail, the string constants were regarded as preprocessor directives.
2013-05-25 04:31:19 +09:00
Atsushi Eno
1d775b6bd7
add include-less build for XamAndroid.
2013-05-25 04:28:19 +09:00
Miguel de Icaza
c1c9dbb538
Put back the tests, we were trying to track down the regressions
2013-05-24 15:20:50 -04:00
Miguel de Icaza
f918d5bd4e
Document --break with generic methods
2013-05-24 15:18:57 -04:00
David Karlaš
91d3a70571
DependencyProperty of DependencyObject was trowing KeyNotFound exception instead of default value
2013-05-24 20:53:17 +02:00
Martin Baulig
7d92f4652d
[System.Drawing]: Disable more broken tests.
2013-05-24 20:16:29 +02:00
Sebastien Pouliot
01c8c99e7b
Refactor the [D|R]SACryptoServiceProvider constructors so it's possible for the linker to remove the dependency on the XML parser when CspParameters are not used (saves 42KB)
2013-05-24 10:31:41 -04:00
Atsushi Eno
2e22b9b666
Add some missing MSBuild project model evaluation members.
2013-05-24 11:54:40 +09:00
Atsushi Eno
bf17a43b31
Add missing MSBuild Framework interface.
2013-05-24 11:24:26 +09:00
Martin Baulig
d97c1a2236
[System.Drawing]: Disable broken tests.
2013-05-24 02:28:24 +02:00
Martin Baulig
5acf92937c
Add Microsoft.Portable.CSharp.targets to the .spec file.
2013-05-24 01:59:10 +02:00
Martin Baulig
4d0df722e9
[xbuild]: Implicitly expand PCL2 facade assemblies.
...
* GetReferenceAssemblyPaths: return the reference assemblies for the
requested PCL profile.
* ResolveAssemblyReference: always include System.Runtime as a
dependency; the .targets check for this to determine whether
we're a PCL2 library.
2013-05-23 21:32:24 +02:00
Martin Baulig
03011419a4
[xbuild]: Provide a real Microsoft.Portable.CSharp.targets
2013-05-23 21:32:24 +02:00
Martin Baulig
2f9542fb1c
[xbuild]: Fix reference assembly path.
2013-05-23 21:32:23 +02:00
Sebastien Pouliot
5a00ed32ae
Share a bit more code wrt OID/hash so X.509 CRL can use any of them (like the certificates) and make the code a little bit more linker friendly
2013-05-23 15:19:29 -04:00
Martin Baulig
98cdb70bb6
Ooops, variance is not available in 3.5.
2013-05-23 21:16:59 +02:00
Martin Baulig
885e69fc3c
[make]: Build Facade assemblies in mcs/class/lib/$(PROFILE)/Facades.
2013-05-23 21:04:32 +02:00
Martin Baulig
934a44f286
[xbuild]: Fix task batching for <ItemGroup> inside <Target>.
...
This fixes
<Target Name="Simple">
<ItemGroup>
<Foo Include="A;B" />
<All Include="%(Foo.Identity)" />
</ItemGroup>
<Message Text="ALL: @(All)" />
</Target>
2013-05-23 21:03:26 +02:00
Martin Baulig
091929ac27
[xbuild]: Fix 'make test'.
2013-05-23 21:02:37 +02:00
Rodrigo Kumpera
d4018a0b34
Add the hostname into the exception message when doing dns lookups.
2013-05-23 11:24:15 -04:00
Gerardo García Peña
72ed65fdd8
Added counter mode in InternalGetChars.
...
Added methods InternalGetCharsCount and InternalGetCharsEncode for improving readability.
Accept zero-length input buffer in 'InternalGetBytesDecode/Count' for processing void char buffers.
Removed a redundant 'unsafe' keyword.
2013-05-23 17:12:02 +02:00
Gerardo García Peña
bf9b74f05a
bugfix: accept zero-length input buffer in 'InternalGetChars' for building void strings.
2013-05-23 15:57:38 +02:00
Gerardo García Peña
c22ce0e053
Reverted all changes in 'System.Text/Encoding.cs' and disabled the emitIdentifier feature in the new 'System.Text/UTF8Encoding.cs'.
2013-05-23 15:43:27 +02:00
Gerardo García Peña
34aa103a3c
Added counter mode in InternalGetBytes.
...
Added methods InternalGetBytesCount and InternalGetBytesEncode for improving readability.
2013-05-23 15:39:12 +02:00
Gerardo García Peña
ade6a99d9e
By default return an 'UTF8Unmarked' object. Removed unused 'utf8EncodingWithMarkers' attribute.
2013-05-23 12:53:15 +02:00
Marek Safar
8b7cf63dd3
Implement Task::AsyncWaitHandle. Fixes #12342
2013-05-23 11:11:25 +02:00
Gerardo García Peña
6ad7f75a37
in test SufficientByteArray() when !NET_2_0 unexpected exceptions should be forwarded.
2013-05-23 08:43:13 +02:00
Zoltan Varga
b07771c53a
Avoid the class name check in is_async_state_machine_class (), csc seems to generate a different name. Fixes #12329 .
2013-05-22 21:11:02 +02:00
Duncan Mak
21e670b850
Update to 3.0.12
2013-05-22 13:58:06 -04:00
Martin Baulig
42688558b1
[xbuild]: Rename @(_ResolvedDependencyFiles) -> @(ReferenceDependencyPaths)
2013-05-22 19:52:21 +02:00
Martin Baulig
98e84304c5
[xbuild]: Add empty "BuildOnlySettings" target.
2013-05-22 19:51:00 +02:00
Gerardo García Peña
ce246f6a5b
- improved flush handling in encoder/decoder for fixing regression bug #565129
...
- fixed some checks to satisfy test 'ConvertZeroCharacters'.
2013-05-22 18:53:13 +02:00
Alex Rønne Petersen
6df55cf92a
Fix the check in bf9c7dcc5e.
...
The C preprocessor sucks.
2013-05-22 07:49:03 +03:00
Miguel de Icaza
aaf6c21139
Merge pull request #629 from pruiz/syswebrouting-fixes2
...
[Sys.Web.Routing] Refactor of Route's GetVirtualPath implementation based on System.Web.Http.Routing code in order to fix a few incompatibilities between our implementation and the one at ms.net
2013-05-21 19:36:02 -07:00
Miguel de Icaza
4958a276a6
Merge pull request #644 from knocte/connstrings
...
[System.Configuration] Remove a misleading MonoTODO in ConnectionStrings
2013-05-21 19:24:36 -07:00
Zoltan Varga
f8e4a2b276
Enable partial sharing only in full-aot mode, it slows done generics heavy code like fsharp too much (see the fsharp test in the GC benchmark module).
2013-05-21 23:09:15 +02:00
Sebastien Pouliot
b9ca2e5f41
Add support for certificates using RIPEMD160 and add test for them and SHA256/512. Fix bug #11703
2013-05-21 16:33:43 -04:00
Martin Baulig
1fb5b0481b
Look for facade assemblies in $(mono_libdir)/4.5/Facades/
2013-05-21 21:26:41 +02:00
Sebastien Pouliot
067f089518
Additional crypto support needs to be in mscorlib.dll (not System.dll) to be usable for X509Certificate and PKCS#1
2013-05-21 14:59:08 -04:00
Martin Baulig
f596da9f38
[xbuild]: Generate [TargetFramework] attribute.
2013-05-21 18:33:30 +02:00
Sebastien Pouliot
4d08e81840
Point sources to Mono.Security versions of the files= (duplicates were removed)
2013-05-21 09:53:07 -04:00
Sebastien Pouliot
b6f454e349
Remove duplicate files (cvs-time artefact)
2013-05-21 09:53:06 -04:00
Gerardo García Peña
062dfd03eb
Accept a null input/output buffer in InternalGetBytes()/InternalGetChars() if its length is zero.
...
Throw ArgumentException in GetBytes()/GetChars() if no enough output buffer space.
2013-05-21 15:51:18 +02:00
Gerardo García Peña
d624211706
MS.NET implementation returns 1000 not 625.
2013-05-21 13:43:23 +02:00
Gerardo García Peña
b87ca2196c
bugfixed returned charsUsed counter
2013-05-21 13:41:13 +02:00
Gerardo García Peña
05643bef22
MS.NET implementation returns 1000 not 625.
2013-05-21 12:26:49 +02:00
Marek Safar
46286930e7
Merge pull request #645 from knocte/nitpicks
...
Fix couple of nitpicks in mono-service and HttpWebRequest-Tests
2013-05-21 00:13:24 -07:00
Jonathan Pryor
377f6a6ce8
[Mono.Posix] Fix INTL.DLL CallingConvention.
...
INTL.DLL on Windows uses the `__cdecl` calling convention.
Let's not corrupt the stack on Windows...
2013-05-20 20:35:47 -04:00
Andres G. Aragoneses
7c6681afd0
[Sys.Configuration] Remove unneeded NET_2_0 ifdefs
2013-05-20 17:55:09 +01:00
Andres G. Aragoneses
b0801115fc
[Sys.Configuration] Remove a misleading MonoTODO in ConnectionStrings
...
The ConnectionStrings property of System.Configuration.ConfigurationManager
works perfectly, so this MonoTODO is not needed.
A unit test is also added to demonstrate that it's fully working and to
prevent it failing in the future.
2013-05-20 17:36:24 +01:00
Alex Rønne Petersen
bf9c7dcc5e
Add a sanity check to catch things like -DARM_FPU_NONE -DARM_FPU_VFP.
2013-05-20 15:37:06 +02:00
Ventero
b04a0e6460
[xbuild] Actually delete common files (CopyLocal) during Clean.
...
The common files that should be deleted during Clean (see 4c37deb )
weren't actually written to the CleanFile, as they were stored in
FileWrites after it was already used to create CombinedFileWrites.
2013-05-19 16:54:59 +02:00
Alex Rønne Petersen
67142699ca
Generalize the ARM pattern match in configure.
...
The previous one would only work if the 'vendor'
part of the target triple equals "unknown" which
is a bit of an arbitrary limitation.
2013-05-18 00:10:11 +02:00
Alex Rønne Petersen
f956a83b65
Always define __ARM_EABI__ when compiling for ARM.
...
We don't actually support any non-AAPCS ABI.
2013-05-18 00:04:34 +02:00
Alex Rønne Petersen
0b372c8338
Do not define HAVE_ARMV6 unconditionally when cross-compiling for ARM.
...
This is simply an invalid assumption and certainly not a sane default.
Reverts part of 8f7a7a74 .
2013-05-18 00:04:34 +02:00
Rodrigo Kumpera
078245b883
Add a function to convert from a MonoError to a loader error. Use it with callers of mono_class_create_from_typedef.
2013-05-17 17:54:06 -04:00
Rodrigo Kumpera
6fbb5f96a4
Move mono_class_create_from_typedef to use MonoError.
...
* class.c (mono_class_create_from_typedef): Do error handling using MonoError
instead of the loader error for this one.
2013-05-17 17:54:05 -04:00
Rodrigo Kumpera
8258beb448
Add mono_class_set_failure_from_loader_error and use it in a few spots.
2013-05-17 17:54:05 -04:00
Michael Hutchinson
b813bb46d5
[Mono.Data.Sqlite] Stop DataAdapter.Fill exploding when using Sqlite built w/o column metadata support
...
Fixes Bug 327 - Mono.Data.Sqlite doesn't work without SQLITE_ENABLE_COLUMN_METADATA
Essentially, if sqlite3_column_origin_name is not found, omit the metadata, instead of
exploding. This is the fallback that's already used on MonoTouch.
A better fix would be load the column metadata from other sources, as proposed in
https://bugzilla.xamarin.com/show_bug.cgi?id=2128
2013-05-17 17:16:23 -04:00
Michael Hutchinson
f38e6bb39e
[monodoc] Return null from GetHelpXml if node not found
...
Instead of exploding the XML parser by trying to parse null.
2013-05-17 17:16:23 -04:00
Michael Hutchinson
30705ec34e
[monodoc] Throw exception on unparseable URL
...
Instead of logging error with no useful context/content.
2013-05-17 17:16:22 -04:00
Zoltan Varga
cce72fe840
Clear entries referencing the domain in reference_queue_clear_for_domain () even if the object is already null. Fixes #4595 .
2013-05-17 22:08:12 +02:00
Sebastien Pouliot
11b973e9bc
Use the source files from ../Mono.Security/ to avoid duplicate (and different files)
2013-05-17 11:10:13 -04:00
Sebastien Pouliot
977c27c262
Merge changes, that were only made in corlib, back into Mono.Security
2013-05-17 11:10:13 -04:00
Sebastien Pouliot
b176adcc0e
Do not bring (linking-wise) most of ToBase64Transform when Convert.ToBase64String is used
2013-05-17 11:10:13 -04:00
Rodrigo Kumpera
e5c45f1161
Add regression test for #11362 .
2013-05-17 11:03:40 -04:00
Rodrigo Kumpera
e6d5285516
Fail with an exception when loading the value of field of a broken class. Fixes #11362
...
* object.c (mono_field_get_value_object): If the field belongs to a class with a broken
vtable, lets raise an exception instead of printing a message and returning NULL.
Fixes #11362
2013-05-17 11:03:39 -04:00
Andres G. Aragoneses
84202a68bb
[HttpWebRequest] Assertion message nitpicks in new timeout tests
...
The timeout tests I added recently* had a missing assertion message and
one with a couple of typos.
* https://github.com/mono/mono/commit/96be7828510a1fb14dab07eed1e93dc1a3a7dd84
2013-05-17 00:48:10 +01:00
Andres G. Aragoneses
e1c7d996f0
[mono-service] log service name when reporting ExitCode != 0
...
This nitpick was forgotten in this commit:
https://github.com/mono/mono/commit/4b3e9b3874334a55a9de3534f298ddbe891d94bd
2013-05-17 00:27:55 +01:00
Alex Rønne Petersen
872be6349b
Remap printf to g_print in the Mini code on Android.
2013-05-17 00:01:50 +02:00
Alex Rønne Petersen
16b1af4dc3
Revert "Replace (f)printf with g_print(err) in method-to-ir.c, mini-arm.c, mini.c"
...
This reverts commit 26ffc615bf .
2013-05-16 23:59:09 +02:00
Alex Rønne Petersen
26ffc615bf
Replace (f)printf with g_print(err) in method-to-ir.c, mini-arm.c, mini.c
2013-05-16 22:52:58 +02:00
Sebastien Pouliot
93fb13c44a
Fix copy-paste typo (encryptionAlgorithm vs decryptionAlgorithm) in my last CipherSuite.cs change
2013-05-16 16:06:55 -04:00
Radek Doulik
50dacc2e31
revert my 2 last commits
...
Revert "add System.Net.Http.Formatting to monodroid build"
Revert "added System.Configuration and System.Security to monodroid build to fix it"
This reverts commit 85cb9e3176 and
commit 6566273367 .
2013-05-16 17:29:26 +02:00
Sebastien Pouliot
0bf408eec0
Prefer using AES over Rijndael in newer profiles. SSL/TLS does not need the extra block size and some platforms (e.g. iOS) have a much better implementation for AES
2013-05-16 08:56:43 -04:00
Alex Rønne Petersen
457c9722a4
Merge pull request #637 from LogosBible/enetdown
...
Handle ENETDOWN error if defined.
2013-05-16 04:57:08 -07:00
Alex Rønne Petersen
70dfbbf95a
Merge pull request #638 from directhex/master
...
Ensure $(DESTDIR)$(mono_libdir)/mono/3.5 exists before installing to it
2013-05-16 04:56:43 -07:00
Jo Shields
4f9e5ec31c
Ensure $(DESTDIR)$(mono_libdir)/mono/3.5 exists before installing to it
...
Prior to 38348361da , the mono/X.X folders
were created when "gacutil /i foo.dll /package X.X" was called. However,
The above commit caused a call to $(INSTALL_DATA) to be executed *before*
gacutil, which caused a copy of Microsoft.Common.targets to be installed
as a file named mono/3.5 instead of into the mono/3.5 folder, on fresh
installs (not a problem installing into an existing prefix).
This commit forces creation of the folder which could potentially not
have been created yet by gacutil.
2013-05-16 12:55:07 +01:00
Jo Shields
38e2f40925
Correct list of EXTRA_DISTFILES
...
EXTRA_DISTFILES is used for tarball generation, it should be a list of files which actually exist
2013-05-16 12:06:38 +01:00
Radek Doulik
6566273367
added System.Configuration and System.Security to monodroid build to fix it
2013-05-16 12:17:48 +02:00
Rodrigo Kumpera
abc9ea35c2
If the TP monitor thread is signaled, bound the number of spins when sleeping. Workaround for #8186 .
2013-05-15 22:32:32 -04:00
Sebastien Pouliot
4526c6c27b
For HMAC avoid using the hash names to create instances (since it bring CryptoConfig) when under FULL_AOT_RUNTIME. Also simplify the 'legacy' support for 384/512
2013-05-15 16:37:27 -04:00
Sebastien Pouliot
473fbfd3e1
Do not require an exception to detect if SHA1 is used.
2013-05-15 16:32:19 -04:00
Sebastien Pouliot
240c354baa
Avoid calling TripleDES.Create(string), which calls CryptoConfig, when possible (e.g. from the default .ctor) since it makes linked applications smaller
2013-05-15 16:32:18 -04:00
Radek Doulik
85cb9e3176
add System.Net.Http.Formatting to monodroid build
...
- changed the Create method with FileOptions to not depend on FileSecurity
to avoid dragging System.Security assembly in monodroid build as well
2013-05-15 22:26:32 +02:00
Rodrigo Kumpera
235eefff05
Make sure we release memory for the runtime generated backtraces.
2013-05-15 16:22:04 -04:00
Rodrigo Kumpera
751fc004b9
Make sure we can properly suspend the main thread on Android. Fixes #12112 .
...
* sgen-os-posix.c (sgen_thread_handshake): Never never never never never
use pthread_kill on Android as it doesn't work with the main thread.
This resulted in all sorts of fringe crashes in #12112 .
2013-05-15 16:22:04 -04:00
Zoltan Varga
c8101826e3
Enable partial generic sharing by default.
2013-05-15 20:11:34 +02:00
Zoltan Varga
ff4639b8f0
Disable the gsharedvt optimizatiom in AOT if it is not supported by the platform.
2013-05-15 19:01:08 +02:00
Zoltan Varga
8e63a86ff9
Shorten some gshared function names.
2013-05-15 18:28:24 +02:00
Zoltan Varga
c810c9db87
Add partial sharing support to AOT.
2013-05-15 18:26:32 +02:00
Tom Philpot
694af2390a
Handle ENETDOWN error if defined.
2013-05-15 09:19:41 -07:00
Zoltan Varga
591c688c15
Disable a corlib test which can fail on some systems.
2013-05-15 02:46:24 +02:00
Zoltan Varga
fe6a522c0c
Clean up the partial generic sharing code a bit.
2013-05-15 02:11:56 +02:00
Martin Baulig
0c736cf74e
[xbuild]: Define TargetingClr2Framework.
2013-05-15 00:51:23 +02:00
Martin Baulig
38348361da
[xbuild]: Fix 4.0/4.5 repo layout.
...
4.0/Microsoft.Common.* was not installed anywhere, so it could safely
be deleted, and 4.5/M.C.* was previously being installed into
$(prefix)/lib/mono/4.0. It's now in 4.0/M.C.* to match xbuild's
tool version.
This patch does not affect how things are installed, it simply cleans
up the source layout.
2013-05-15 00:24:31 +02:00
Sebastien Pouliot
aaea1f82e4
Simply logic a bit when SslClientStream is only used from inside System.dll
2013-05-14 15:16:43 -04:00
Sebastien Pouliot
56c12942cd
Space/tabs unification
2013-05-14 15:16:43 -04:00
Rodrigo Kumpera
171c218f75
Use the native unwinder when Exception::ToString throws.
...
* exception.c: Add mono_exception_get_managed_backtrace so the code that
deals with unhandled exceptions can produce some stacktrace in case
Exception::ToString itself produces another exception.
This can happen under multiple situations, be it OOM, heap corruption or
bugs in ToString ().
2013-05-14 14:21:53 -04:00
Zoltan Varga
f12bb0f8f3
Improve the size of the arm SEQ_POINT implementation a bit.
2013-05-14 19:43:47 +02:00
Andres G. Aragoneses
7d75358e6c
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
...
System.Web.ConfigurationManager had a cache which didn't have any max limit,
therefore when using Restful URIs in ASP.NET (like having some variable
parameter in the virtual path, i.e. /user/{userId}/tracks, where {userId}
is a variable Integer) this was very likely to cause a leak which would
end up causing troubles, like an InvalidCastException thrown by
HttpApplication::PreStart()
(Read operations in the cache now cause a write operation on the cache
object, so all sectionCache lock-read usages are converted to lock-write.)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=5598
2013-05-14 17:47:40 +01:00
Zoltan Varga
6797928cbe
Enable hw division/remainder on mt in non-thumb mode as well.
2013-05-14 18:27:32 +02:00
Andres G. Aragoneses
e0b603fcce
[man] update Mono version from "2.11" to "3.0"
2013-05-14 17:06:39 +01:00
Alex Rønne Petersen
0c3b528747
Add a missing IS_VFP check for OP_FCLT in the ARM back end.
2013-05-14 13:06:26 +02:00
Alex Rønne Petersen
a84f79b541
Remove an unused variable in verify.c.
2013-05-14 13:06:19 +02:00
Alex Rønne Petersen
766bf95e66
Kill support for the ancient FPA format on ARM.
2013-05-14 13:05:33 +02:00
Zoltan Varga
a97e686783
Enable hw division on armv7s in ARM mode too.
2013-05-14 02:37:17 +02:00
Zoltan Varga
46c9e877c1
Fix the build.
2013-05-14 00:25:11 +02:00
Zoltan Varga
4b4e8ed3b9
Fix thumb support in 36b9052157.
2013-05-13 22:06:19 +02:00
Zoltan Varga
36b9052157
Rework the way AOT method addresses are obtained on ios. Instead of emitting direct method addresses, emit a table of branches to the methods. This is position-independent, and it is easier for the linker to handle. Hopefully fixes #12143 .
2013-05-13 20:35:19 +02:00
Rodrigo Kumpera
fec0e98bd3
Add regression test for bug #10392 .
2013-05-13 12:34:11 -04:00
Rodrigo Kumpera
7b0b8011b1
Don't try to merge interfaces between to non-interface types. Fixes #10392 .
...
MCS used to emit code that would merge two stacks only by one of the interfaces
that two concrete types have.
This is not the behavior on either the SPEC or the MS implementation. It's not
a great one as the selected interface is non-deterministic, while the a parent is.
2013-05-13 12:34:11 -04:00
Sebastien Pouliot
5805a2c597
Allow compiling SSL/TLS and NTLM support directly into System.dll to avoid a dependency (on Mono.Security assembly) and avoid code duplication (with mscorlib.dll)
2013-05-13 11:10:12 -04:00
Sebastien Pouliot
9df16e5e7b
Reduce the number of intermediate calls to allow the linker to remove mode code
2013-05-13 11:10:12 -04:00
Sebastien Pouliot
d8bdd1f209
Do not bring Win32 or Linux specific code for iOS NetworkInterface
2013-05-13 11:10:11 -04:00
Zoltan Varga
35421ffb43
Make the checks done to detect unhandled exceptions in async invokes more precise so they don't trigger for other calls to mono_runtime_invoke (). Fixes #3338 .
2013-05-13 16:28:32 +02:00
Zoltan Varga
f932ab6ac7
Update .gitignore.
2013-05-13 04:29:20 +02:00
Zoltan Varga
06afd312a2
Bump the AOT file format version because of ad141a8b7b.
2013-05-11 15:33:12 +02:00
Sebastien Pouliot
0ed2c07f1c
Use FULL_AOT_RUNTIME instead of MONOTOUCH since we only want this code when running on iOS (simulator or devices) and *not* when running tools (e.g. btouch #12179 ) that needs to use the mscorlib.dll shipped with Xamarin.iOS.
2013-05-09 20:15:46 -04:00
Zoltan Varga
5c7014772d
Add stubs for a remoting icall instead of removing it.
2013-05-09 23:38:48 +02:00
Jérémie Laval
226cb96174
[monodoc] Add missing legacy GetTitle method
2013-05-09 16:56:46 -04:00
Jérémie Laval
468d8b9e7e
[monodoc] Add forgotten test file
2013-05-09 16:56:46 -04:00
Zoltan Varga
ad141a8b7b
Avoid using a different layout for the MonoAotFileInfo structure on mt.
2013-05-09 22:05:12 +02:00
Neale Ferguson
fc0560fb47
gcconfig.h - Add weak attribute to avoid __data_start undefined messages on dlopen
...
mini-s390x.c - Add profiling support to prolog/epilog instrumentation
2013-05-09 15:42:58 -04:00
Zoltan Varga
1dcbbaaedd
Disable parallel compression in mkbundle again, it still doesn't seem to work, the resulting executable reports 'Error 2 decompressing data'.
2013-05-09 18:58:35 +02:00
Jérémie Laval
f926625030
[monodoc] Disable usage of HtmlAgilityPack in tests since the concerned ones are disabled. Hopefully make them run again on the bots.
2013-05-09 12:33:35 -04:00
Zoltan Varga
658f6fd2d4
Fix a typo.
2013-05-09 18:19:10 +02:00
Jérémie Laval
245dee3799
[monodoc] Correctly insert mixed mode XML in namespace summaries rather than wrapping them in CDATA sections
2013-05-09 12:14:00 -04:00
Jérémie Laval
3f361e1a26
[monodoc] Add workaround to process CDATA backed summaries/remarks in namespaces
2013-05-09 12:13:11 -04:00
Marek Safar
ad8e0f742e
StreamWriter async methods cannot call base TextWriter async methods. Fixes #11979
2013-05-09 17:42:28 +02:00
Marek Safar
7bc0d12c4a
Rename AddBasesForPart to SetBaseTypes
2013-05-09 14:52:37 +02:00
Marek Safar
32cc8a558e
Abstract methods can override virtual methods. Fixes #12138
2013-05-09 14:52:36 +02:00
Marek Safar
ff876e0389
Fix TraceSource constructor. Fixes #12001
2013-05-09 14:52:36 +02:00
Marek Safar
52ba2fff6f
Nested dotted namespace can access its parent dotted namespace directly. Fixes #12165
2013-05-09 14:52:35 +02:00
Atsushi Eno
78d65dbced
[Rx] some more csproj generator fixes; debug and release are different. Remove extraneous xmlns.
2013-05-09 21:03:44 +09:00
Atsushi Eno
ea4a11da91
[Rx] update mobile project generator to hopefully generate the latest csproj files.
2013-05-09 18:13:28 +09:00
Marek Safar
5ad94bd33e
Fix copyright author
2013-05-09 10:33:13 +02:00
Marek Safar
cfbd05ca34
Populate more win32 version info values. Fixes #8578
2013-05-09 10:09:32 +02:00
Marek Safar
9cc8fdfc5b
Define internal attribute in case we missed the global initialization.
2013-05-09 10:09:32 +02:00
Marek Safar
873866b4db
Rename parameter name
2013-05-09 10:09:32 +02:00
Marek Safar
726fb74ac0
Remove extra null key check
2013-05-09 10:09:31 +02:00
Tammo 'kb' Hinrichs
907b13aa04
Fix race condition in WebConnectionStream
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=1553
2013-05-08 16:34:17 +02:00
Zoltan Varga
420ba5e998
Fix support for ldtoken in AOTed non-shared generic instance methods. Fixes #12126 .
2013-05-08 14:20:36 +02:00
Zoltan Varga
f76a2f7b0b
Fix support for ldfld/stfld wrappers in gshared code. Fixes #12086 .
2013-05-08 13:06:04 +02:00
Neale Ferguson
89cbc62dee
Remove unneeded call - lazy support
2013-05-07 18:06:42 -04:00
Pablo Ruiz Garcia
106c059d9f
Fixed @grendello's comments regarding styling and a few other gotchas by my side.
2013-05-07 17:49:26 +02:00
Zoltan Varga
59c840be5a
Add a missing wbarrier to the gsharedvt code.
2013-05-06 17:35:10 +02:00
Zoltan Varga
3f3092b477
Add support for separating the class and method names by :: in mono_method_desc_new (). Fixes #12113 .
2013-05-06 17:06:18 +02:00
Pablo Ruiz Garcia
6c70b38e17
Refactor of Route's GetVirtualPath implementation based on System.Web.Http.Routing code in order to fix a few incompatibilities between our implementation and the one at ms.net
2013-05-06 00:31:44 +02:00
Alex Rønne Petersen
89c3c44dbc
configure.in: Remove all explicit ARM_FPU_* definitions.
...
We now properly detect this via the toolchain, so these
explicit definitions are now pointless.
2013-05-04 06:58:32 +02:00
Zoltan Varga
3ac08cbb1b
Disable a System.Core test which fails on mt because of linking.
2013-05-04 04:19:23 +02:00
Sebastien Pouliot
1d4118c51f
Fix build for mobile (ios and android) wrt recent pull request on System.Data
2013-05-03 14:41:02 -04:00
Sebastien Pouliot
73a0051ead
Hardcode the use of CFNetwork.GetDefaultProxy for iOS so WebProxy is not required (and can be removed by the linker)
2013-05-03 14:04:09 -04:00
Zoltan Varga
f96c0fa9ac
Implement division/remainder in hardware when using armv7s+llvm+thumb.
2013-05-03 19:50:16 +02:00
Martin Baulig
612fdf492f
Add facade assemblies to the rpm spec file.
2013-05-03 18:36:56 +02:00
Marek Safar
dac3465e80
Merge pull request #628 from pdonald/master
...
Implemented async methods in System.Data.Common
2013-05-03 07:47:06 -07:00
root
11471bc5a6
Implemented async methods in System.Data.Common
2013-05-03 11:56:05 +00:00
Martin Baulig
40fd7050e3
Hmm, 'dist-local: dist-default', maybe ...
2013-05-02 20:56:29 +02:00
Martin Baulig
1d0ea4510d
Fix 'make dist'.
2013-05-02 20:37:39 +02:00
Martin Baulig
1ee4d7f23c
Fix linux build (/r:System.Xml, not System.XML).
2013-05-02 20:20:47 +02:00
Martin Baulig
e52dd7a130
Add PCL Facade assemblies.
2013-05-02 17:34:48 +02:00
Aaron Bockover
d4630d000b
mac-reachability.c: update for C89isms
...
In response to Rodrigo's comments on PR 629.
2013-05-02 11:03:27 -04:00
Aaron Bockover
1ddafd7997
mac-reachability.c: enable for TARGET_IOS
2013-05-01 18:10:06 -04:00
Miguel de Icaza
d9f6f07701
Merge pull request #627 from abock/master
...
Support Mac OS X for System.Net.NetworkInformation.NetworkChange
2013-05-01 14:59:41 -07:00
Aaron Bockover
ed5d39b1d7
NetworkChange: Support Mac OS X (bcx#12038)
...
Refactor System.Net.NetworkingInformation in order
to support multiple "providers"; previously only
Linux was ever supported for this API.
This patch provides basic support for Mac OS X
via the SystemConfiguration framework's
SCNetworkReachability API.
bxc#12038
2013-05-01 17:49:44 -04:00
Bojan Rajkovic
db8f33718a
Revert "Merge pull request #618 from knocte/aspnet_lru"
...
This reverts commit 675328ef16 , reversing
changes made to edc181c514 .
2013-05-01 17:05:12 -04:00
Sebastien Pouliot
059406396d
[ios] throw an TimeZoneNotFoundException if the timezone name is unknown
2013-05-01 16:19:44 -04:00
Sebastien Pouliot
28fa0cebd8
Fix compilation of Variant for iOS: Marshal.GetObjectForIUnknown, like a lot of COM specific methods, is not available for iOS
2013-05-01 14:48:13 -04:00
Sebastien Pouliot
14b607cf6e
Remove reflection usage to access NSTimeZone for iOS
2013-05-01 14:31:05 -04:00
Atsushi Eno
5c228f3dd0
remove wrong EOLs after Libs: in reactive.pc.in. Third attempt to fix bug #10002 .
2013-05-01 13:21:45 +09:00
Alex Rønne Petersen
724739a15f
Merge pull request #624 from jbevain-forks/mimemapping
...
Add new net_4_5 class System.Web.MimeMapping
2013-04-30 16:18:26 -07:00
Zoltan Varga
c8db8dd5ec
Fix support for reference types in unbox.any in gsharedvt code.
2013-05-01 00:51:36 +02:00
Jb Evain
aed919ea18
Add new net_4_5 class System.Web.MimeMapping
2013-05-01 00:34:09 +02:00
Alex Rønne Petersen
852051425d
Merge pull request #623 from madewokherd/byrefvariants
...
Implement reading byref variants.
2013-04-30 12:32:58 -07:00
Vincent Povirk
865a59b0cd
Implement reading byref variants.
...
This commit is licensed under MIT/X11.
2013-04-30 10:40:51 -05:00
Sebastien Pouliot
7cd961939c
Avoid potential NRE is the UserCAStore could not be created. ref: desk #33432
2013-04-29 17:44:39 -04:00
Jonathan Pryor
5543285e68
Add System.Diagnostics.Switch/etc. to the MOBILE profile.
...
Followup to:
http://forums.xamarin.com/discussion/comment/11823/#Comment_11823
These are Switches with a labotomy: the MOBILE profile does not
support System.Configuration.dll, so there is no support for
.exe.config files or
System.Diagnostics.DiagnosticsConfigurationHandler.
Consequently these Switches are largely a compatibility/portability
aid: they DO NOT have the full functionality that the desktop
profile affords. Specifically, there is no way to provide an XML
config file that contains the Switch values to use. If you need to set
the Switch values, this MUST be done manually, e.g. through a Switch
constructor's `defaultSwitchValue` parameter or through a property,
e.g. for SourceSwitch:
http://msdn.microsoft.com/en-us/library/w65awck1.aspx
http://msdn.microsoft.com/en-us/library/system.diagnostics.sourceswitch.level.aspx
2013-04-29 14:38:53 -04:00
Marek Safar
2b36c5edd9
Run repl in unsafe mode by default
2013-04-29 18:02:58 +02:00
Marek Safar
2c20b020af
Allow parsing compiler arguments with user specified defaults
2013-04-29 18:00:09 +02:00
Marek Safar
9fda7494ff
Make LocatedToken top level type
2013-04-29 17:38:59 +02:00
Marek Safar
0772c59897
Make reusing few expressions easier
2013-04-29 17:31:19 +02:00
Marek Safar
22dc235289
Don't throw when trying to parse leading sign number only. Fixes #12008
2013-04-29 16:51:34 +02:00
Marek Safar
e139ef1302
Don't try to inflate nested types of missing type. Fixes #11996
2013-04-29 15:02:01 +02:00
Gerardo García Peña
34222916bf
Merge branch 'master' of https://github.com/mono/mono
2013-04-29 13:02:18 +02:00
Marek Safar
3fe85ac027
Revert "Merge pull request #615 from nealef/master"
...
This reverts commit ce6acbe4db , reversing
changes made to 7f0328f12a .
2013-04-29 11:25:17 +02:00
Marek Safar
80bf01e52f
Add anonymous type evaluator test
2013-04-29 11:18:41 +02:00
Gerardo García Peña
4c7bcaaca3
some minor code style changes
2013-04-29 08:30:55 +02:00
Gerardo García Peña
c9e3b37bb8
Disable BOM preamble in UTF8 by default (following best practices).
2013-04-29 08:09:23 +02:00
Rodrigo Kumpera
da030feef9
[verifier] Add regression test for the case where the function being used in a delegate returns a variant interface.
2013-04-28 21:34:26 -04:00
Rodrigo Kumpera
289414ca32
[verifier]Handle variance correcty when checking delegate parameters.
...
* verify.c (verifier_class_is_assignable_from): If the target
is a variant interface, check if the candidate is one too that
is a direct match.
2013-04-28 21:34:08 -04:00
Rodrigo Kumpera
55edf4cd8e
[verifier] Add regression test for stack merge of boxed valuetypes.
2013-04-27 18:50:05 -04:00
Rodrigo Kumpera
83fe128c8c
[verifier] Properly merge stacks when both ends have the same boxed valuetype.
...
Fixes System.Data.Services.Client.dll failure on wrench.
2013-04-27 18:48:58 -04:00
Rodrigo Kumpera
9b1e0ae3d5
[verifier]Add test case for #11263 .
2013-04-27 16:27:01 -04:00
Rodrigo Kumpera
faa92da186
[verifier]A type constraint must be visible to the generic type definition. Fixes #11263 .
2013-04-27 16:25:07 -04:00
Rodrigo Kumpera
1bfabe5860
[verifier]Fill in the assembly name so checks for InternalsVisibleTo don't crash.
2013-04-27 16:24:10 -04:00
Rodrigo Kumpera
99aad5797e
Add mono_class_can_access_class so the verifier can check if one type can access another.
2013-04-27 16:23:58 -04:00
Sebastien Pouliot
2a0e2e6d68
Avoid using reflection to redirect Console.Write* to NSLog
2013-04-27 11:03:34 -04:00
Sebastien Pouliot
b46553c20a
Avoid using reflection to initialize RegionInfo from iOS current NSLocale
2013-04-27 11:03:34 -04:00
Zoltan Varga
56d72721dc
Ignore requests to set breakpoints at il offsets belonging to dead code. Fixes #11880 .
2013-04-27 16:18:17 +02:00
Zoltan Varga
b0a35629e0
Fix a warning.
2013-04-27 16:18:17 +02:00
Jonathan Pryor
f417a1f0cd
Add System.Diagnostics.Trace to the MOBILE profile.
...
Requested here:
http://forums.xamarin.com/discussion/3300/rationale-behind-removal-of-system-diagnostics-trace-in-xa-and-xi
2013-04-27 09:32:21 -04:00
Rodrigo Kumpera
0542f8af71
Revert "The build bots run on Snow Leopard that doesn't have pthread_spis.h. Let's revert this for now until the bots are switched to lion."
...
This reverts commit 6fb1b1fa55 .
All our bots are now running on Lion or Mountain Lion so we can now happily enjoy this fix.
2013-04-26 19:41:40 -04:00
Marek Safar
d68fd48e88
Merge pull request #621 from andreazevedo/master
...
Using existing contants
2013-04-26 15:21:27 -07:00
andreazevedo
898d9d6ccf
Using existing constant instead of number literal
2013-04-26 18:49:24 -03:00
Miguel de Icaza
ce6acbe4db
Merge pull request #615 from nealef/master
...
Fix incompatibility with .NET's serialization of ObservableCollection
2013-04-26 09:55:22 -07:00
Miguel de Icaza
7f0328f12a
Merge pull request #620 from knocte/monoservice_playground
...
Little improvements to mono-service land.
2013-04-26 09:48:29 -07:00
Miguel de Icaza
675328ef16
Merge pull request #618 from knocte/aspnet_lru
...
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
2013-04-26 09:47:07 -07:00
Andres G. Aragoneses
126d079b84
[System.Web] Use STDERR instead of STDOUT in LRUcache
...
As suggested by Marek Habersack
2013-04-26 17:03:54 +01:00
Andres G. Aragoneses
e072c0ec34
[System.Web] Move MONO_ASPNET_WEBCONFIG_CACHESIZE parsing out of LRUcache
2013-04-26 16:58:50 +01:00
Zoltan Varga
edc181c514
Avoid creating any new threadpool threads while the runtime is suspended by sdb, since they cannot do any work, causing the code in monitor_thread () to spawn new ones indefinitely. Fixes #6452/11940.
2013-04-26 01:34:53 +02:00
Rodrigo Kumpera
3ac548855b
When attaching a foreigh thread, make sure we initialize MOnoInternalThread::thread_info.
2013-04-25 18:38:22 -04:00
Duncan Mak
51cd39b462
Bump version number to 3.0.11
2013-04-25 18:19:32 -04:00
Mark Probst
a2e6cb9d61
[profiler] Fix sampling timestamp output.
2013-04-25 14:32:24 -07:00
Neale Ferguson
efa707b468
Correct call parameter processing for GENERICINST types
2013-04-25 17:19:28 -04:00
Neale Ferguson
3cbc51a820
Add lazy rgctx support to s390x
2013-04-25 17:19:28 -04:00
Rodrigo Kumpera
5491848f2e
Document the new function and fix a typo on other.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera
255af30e1d
Add MonoThreadInfo::runtime_thread so we can know if this thread is managed by the runtime or not.
...
* mono-threads.h: Add new field to MonoThreadInfo.
* threads.c: New API function mono_thread_is_foreign that allows one to query if a given thread
is foreign or not.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera
830f402047
On windows, Register/unregister runtime-managed threads from our wrapper.
...
* driver.c: Don't auto attach all threads, this is the same behavior of
posix and mach. We still auto-detach so we can catch foreign threads that
forgot to do it.
* mono-threads-windows.c: Detach the thread after the thread fun has run to
completion, this ensures we cleanup runtime-managed threads in a saner fashion.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera
42970c1299
Unregister runtime-managed threads before OS cleanup kicks in.
...
* mono-threads.c:
* mono-threads-posix.c: Explicitly detach a thread from the wrapper
instead of relying on the TLS destructor. This gives a good environment
most of the time for other parts of the runtime to work with.
2013-04-25 15:56:45 -04:00
Rodrigo Kumpera
65aa1e5048
Don't emit thread event twice when explicitly detaching a thread.
2013-04-25 15:56:44 -04:00
Sebastien Pouliot
fabfdd075e
[linker] Move the special marking of serializable types in a virtual method
2013-04-25 15:24:56 -04:00
Sebastien Pouliot
bdf97e53b7
Use field for GetObjectData and this (instead of base) for .ctor in SecurityException to help linker remove more code
2013-04-25 15:23:56 -04:00
Marek Safar
690ad3ce8a
Better error message
2013-04-25 17:11:31 +02:00
Andres G. Aragoneses
3654ed4da0
[System.ServiceProcess.ServiceController] Remove NET_2_0 ifdefs
...
Also dropping ONLY_1_1.
2013-04-25 14:23:41 +01:00
Andres G. Aragoneses
4b3e9b3874
[mono-service] Report to syslog if ExitCode ended up != 0 after Stop()
...
In the previous commit, ExitCode was implemented, so we can query it now.
This is useful because many Windows Services nowadays use this variable
to notify about a problem at stop time.
2013-04-25 14:22:23 +01:00
Andres G. Aragoneses
0ca3f6ddff
[System.ServiceProcess.ServiceBase]: Implement Stop() and ExitCode
...
Stop() wasn't calling OnStop, so a unit test was added, its basic
functionality was implemented, and MonoTODO is removed.
ExitCode now also stops throwing NIE. A unit test is added to confirm
that ServiceBase class doesn't modify it across runs. This property will
be useful for my next commit in mono-service.cs.
2013-04-25 14:20:33 +01:00
Gerardo García Peña
b07a494bb6
Merge remote-tracking branch 'upstream/master'
2013-04-25 08:40:45 +02:00
Gerardo García Peña
a93fa79df7
Rewrite of core coder & decoder functions to fix several bugs and limitations, and improve error handling.
2013-04-25 07:58:49 +02:00
Martin Baulig
32bdc7a90c
Trying to fix the opensuse build.
2013-04-25 05:55:21 +02:00
Andres G. Aragoneses
d198187591
[WebConfigurationManager] Reset LRUcache eviction count in Clear()
2013-04-25 00:10:50 +01:00
Andres G. Aragoneses
d94839c493
[WebConfigurationManager] Make the max LRUcache size configurable
...
Using the env var MONO_ASPNET_WEBCONFIG_CACHESIZE, as discussed in BXC#5598
2013-04-25 00:01:08 +01:00
Martin Baulig
1cdeca43bb
[monodoc]: Use shell script for jay to support parallel builds.
2013-04-25 00:35:56 +02:00
Zoltan Varga
e65c8b1ca0
Fix gsharedvt support for gsharedvt methods on shared classes. Fixes #11933 .
2013-04-24 17:01:33 +02:00
Andres G. Aragoneses
6d32796668
[man] Update mono version 2.11->3.0
2013-04-24 15:04:26 +01:00
Andres G. Aragoneses
4f9bdfab16
[System.Web] Coding style nits in LruCache
2013-04-24 12:35:26 +01:00
Alex Rønne Petersen
c018aea7e9
Merge pull request #610 from metanest/tests_gc_descriptors_vpath_build_2013Mar_spike
...
modify for VPATH builds
2013-04-24 02:18:10 -07:00
Marek Safar
77b1b54d32
Don't check public token on missing references. Fixes #11796
2013-04-24 10:29:47 +02:00
Marek Safar
71a77b33c2
Task.Yield needs to continue on synchronization context if there is any. Fixes #11908
2013-04-24 10:29:46 +02:00
Marek Safar
b013a778a2
Remove double verification checks
2013-04-24 10:29:46 +02:00
Marek Safar
262c9e227c
Don't catch aggregate exception handle predicate exceptions. Fixes #11867
2013-04-24 10:29:45 +02:00
Marek Safar
1fd6e9a4ff
Fix quoted values parsing for custom tostring formats. Fixes #11739
2013-04-24 10:29:45 +02:00
Rodrigo Kumpera
e2f8c21767
Another try in fixing the windows build.
2013-04-23 17:43:28 -04:00
Rodrigo Kumpera
ef3f9a6e80
Fix the build.
2013-04-23 17:29:16 -04:00
Rodrigo Kumpera
9c0b418df9
[sgen] Fix bridge interop missing some xrefs due to improve registration.
...
* sgen-bridge.c: Split the registration and dfs1 steps so we avoid issues
where an earlier entry that points to a later one would not have a xref
created between them.
First we insert all bridges into the hash table and then we do dfs1.
It must be done in 2 steps since the bridge arrays doesn't come in reverse topological order,
which means that we can have entry N pointing to entry N + 1.
If we dfs1 entry N before N + 1 is registered we'll not consider N + 1 for this bridge
pass and not create the required xref between the two.
2013-04-23 17:08:08 -04:00
Atsushi Eno
44f3d6379a
quick nullref fix for part of bugfix #11916 .
2013-04-24 05:46:48 +09:00
Zoltan Varga
bf14c4630a
Clean the domain tls var on all code paths in thread_cleanup ().
2013-04-23 20:29:29 +02:00
Rodrigo Kumpera
176a3cd8f7
Fix windows build.
2013-04-23 12:30:53 -04:00
Andres G. Aragoneses
96bbdc60bf
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
...
System.Web.ConfigurationManager had a cache which didn't have any max limit,
therefore when using Restful URIs in ASP.NET (like having some variable
parameter in the virtual path, i.e. /user/{userId}/tracks, where {userId}
is a variable Integer) this was very likely to cause a leak which would
end up causing troubles, like an InvalidCastException thrown by
HttpApplication::PreStart()
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=5598
2013-04-23 16:36:42 +01:00
Zoltan Varga
11661568de
Disable an sdb test which is not deterministic.
2013-04-23 13:41:19 +02:00
Marek Safar
6f2a8c52e2
Update failing test
2013-04-23 10:28:50 +02:00
Rodrigo Kumpera
6fb1b1fa55
The build bots run on Snow Leopard that doesn't have pthread_spis.h. Let's revert this for now until the bots are switched to lion.
2013-04-22 18:18:43 -04:00
Rolf Bjarne Kvinge
c5bb3a92a8
Rework MulticastDelegate.Equals to use a loop instead of recursion.
...
This should aid in tracking down bugs such as #11871 (or possibly even
fixing them) - if the problem still exists the process will run into
an infinite loop, which is a lot easier to debug (at least on iOS, and
likely other platforms too) than a stackoverflow.
2013-04-22 23:58:31 +02:00
Rodrigo Kumpera
c00c3f1482
Introduce a new kind of mutex, the suspension safe one.
...
* mono-mutex.c: Add mono_mutex_init_suspend_safe so special targets
like OSX that have broken implementations of suspend for pthread mutex
will hang less.
A suspension safe mutex means one that can handle this scenario:
mutex M
thread 1:
1)lock M
2)suspend thread 2
3)unlock M
4)lock M
thread 2:
5)lock M
Say (1) happens before (5) and (5) happens before (2).
This means that thread 2 was suspended by the kernel because
it's waiting on mutext M.
Thread 1 then proceed to suspend thread 2 and unlock/lock the
mutex.
If the kernel implements mutexes with FIFO wait lists, this means
that thread 1 will be blocked waiting for thread 2 acquire the lock.
Since thread 2 is suspended, we have a deadlock.
A suspend safe mutex is an unfair lock but will schedule any runable
thread that is waiting for a the lock.
This problem was witnessed on OSX in mono/tests/thread-exit.cs.
2013-04-22 17:20:02 -04:00
Rodrigo Kumpera
b30bdb8e57
Remove some dead defines from mono-mutex.h
2013-04-22 17:20:02 -04:00
Rodrigo Kumpera
c9bd28d0f9
Remove static initializers as they are not portable under windows.
2013-04-22 17:20:01 -04:00
Rodrigo Kumpera
12dfc34fc3
Remove the now unused mono_mutexattr family of functions.
2013-04-22 17:20:01 -04:00
Rodrigo Kumpera
375cbf369c
Cleanup the interface of mono_mutex_init.
...
* mono-mutex.h: mono_mutex_init no longer takes a mutexattr,
it's always non-recursive and returns zero on success.
* mono-mutex.h: Add mono_mutex_init_recursive for those that need
one. This makes the API much much nicer for win32 consumers. Caching
the mutexattr on posix is really a waste of time. Mutexes are heavyweight
objects such that their creating will never be on the fast path.
2013-04-22 17:20:01 -04:00
Rodrigo Kumpera
437f07777f
Remove support for for pthread implementations that lack recursive mutexes.
...
* configure.in: Don't define USE_MONO_MUTEX. No sane posix system from this
millennium lacks recursive mutexes. Given that, let's just fail mono on them
and drop a bunch of dead code.
2013-04-22 17:20:01 -04:00
Rodrigo Kumpera
9d79602cca
Move mono-mutex.c from io-layer to utils. Killing the io-layer, softly.
2013-04-22 17:20:00 -04:00
Zoltan Varga
a57d7282c8
Revert "Fix the win64 build."
...
This reverts commit 2975c3c9b5 .
Revert this as it seems to break the windows build.
2013-04-22 21:47:04 +02:00
Zoltan Varga
0d2cac122c
Remove 32-bit s390 support from configure.in as well.
2013-04-22 18:05:36 +02:00
Alex Rønne Petersen
f87a4f127d
Support a MONO_ARCH_HAVE_TLS_INIT variable.
...
Setting this on an architecture makes Mini call
mono_arch_tls_init () on thread attach.
This is primarily useful for architectures that have not
had their LMF code ported to the new infrastructure due to
a general lack of maintenance or hardware to do it on.
2013-04-22 18:01:54 +02:00
Zoltan Varga
c6a6afcaa1
Remove obsolete 32 bit s390 backend.
2013-04-22 17:54:48 +02:00
Atsushi Eno
af4eafc963
now we (can) build Rx assemblies for mobile by *.sln in our mono/rx.git, so remove them from Makefile.
2013-04-23 00:50:53 +09:00
Marek Safar
6dc50c6d61
Always restore extension methods candidates after each run
2013-04-22 16:32:11 +02:00
Alex Rønne Petersen
64256c0d6a
[configure] Use the preprocessor to determine the target FPU on ARM.
...
This is needed for a number of reasons:
1. Runtime detection of the target FPU is very hostile towards
cross-compiling. We'd previously only pick up an FPU if we're
compiling directly on the target device.
2. The runtime detection logic would attempt to use FP instructions
regardless of whether the toolchain is actually configured for
it. That means we could end up detecting an and using an FPU
when the entire system is actually soft float, i.e. P/Invoke
blows up.
3. The previous detection logic is never what distro packagers
want because one build server could just happen to have an FPU
even though the package is being built for soft float (armel).
4. We previously invoked 'gcc' explicitly, which is of course wrong
when a non-GCC compiler is being used, or the compiler has a
completely different executable name.
We now check preprocessor definitions to detect the FPU in use. This
works with cross-compilation, respects the toolchain's configuration,
and works when non-GCC compilers are being used. It also means distro
packagers can eliminate some downstream patches they previously used
to sanitize the FPU detection logic.
2013-04-22 16:02:17 +02:00
Marek Safar
0e5dd1f51a
Merge pull request #617 from knocte/httpwebrequest_playground
...
[HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian#74177)
2013-04-22 01:23:44 -07:00
Zoltan Varga
839539518c
Add a freelist around the code chunk allocator to avoid mmap failures when a lot of appdomains are created and destroyed. Hopefully fixes #3311 .
2013-04-21 21:36:17 +02:00
Andres G. Aragoneses
96be782851
[HttpWebRequest] Add timeout tests that cover BNC#317553 (ximian #74177 )
...
The pull-request that was merged [1] intending to fix BXC#1183 [2] was
later reverted [3] because it broke a scenario that wasn't covered by tests.
This commits creates a couple of tests that cover this scenario (which was
implemented back in 2005 [4]) so that we are sure that any further proposed
fixes for bug 1183 [2] don't cause any regression in this area.
[1] https://github.com/mono/mono/commit/8c2167d52cb9acf9582647ebb5f99c92d9127fbd
[2] https://bugzilla.xamarin.com/show_bug.cgi?id=11833
[3] https://github.com/mono/mono/commit/14f0405443693ec2586e73e4b3746134046210d5
[4] https://bugzilla.novell.com/show_bug.cgi?id=317553
2013-04-20 14:29:37 +01:00
Zoltan Varga
f3842235be
Fix the map of bool and char in runtime invoke signatures. Fixes #11862 .
2013-04-19 20:37:00 +02:00
Zoltan Varga
d5cc160ab2
Fix previous commit.
2013-04-19 18:54:24 +02:00
Zoltan Varga
0256a8f672
Fix a warning.
2013-04-19 18:52:41 +02:00
Zoltan Varga
a88fe76a03
Fix the msvc build.
2013-04-19 10:23:11 +02:00
Alex Rønne Petersen
3f3ef7225c
Merge pull request #555 from jack-pappas/sigaltstack-patch
...
Fix sigaltstack on BSD
2013-04-19 01:16:18 -07:00
Zoltan Varga
d0818307a1
Make the mkbundle output more dense to speed up assembly.
2013-04-18 22:27:17 +02:00
Zoltan Varga
f1374e49d6
Parallelize the compression in mkbundle.
2013-04-18 22:26:44 +02:00
Zoltan Varga
1c94cd3849
Avoid sharing signed/unsigned types in runtime invoke wrappers since they are need to be loaded differently, leading to problems if the argument is register allocated in the called method. Fixes #11750 .
2013-04-18 21:40:49 +02:00
Steffen Kieß
f7b355721a
Fix a crash in Mono.Posix.Syscall.getpwuid_r () on some systems when a uid is not found. Fixes #11770 .
2013-04-18 20:35:30 +02:00
Zoltan Varga
78d9c2ce12
Disable an sdb test which is not deterministic.
2013-04-18 20:26:51 +02:00
Neale
191db41b36
Reverse previous changes
2013-04-18 11:31:47 -04:00
Neale
828a6a4f45
Fix incompatibility with .NET's serialization of ObservableCollection - part of bug 11294
2013-04-18 11:25:03 -04:00
Neale
425521a868
Merge branch 'master' of https://github.com/mono/mono
2013-04-18 11:24:04 -04:00
Neale
61b6b3f0b6
Reverse patches that should have gone to my fork rather than to head
2013-04-18 11:23:35 -04:00
Alex Rønne Petersen
fdf5de3b26
Merge pull request #614 from directhex/master
...
Remove duplicated definition of mini_gc_enable_gc_maps_for_aot
2013-04-18 03:23:55 -07:00
Jo Shields
998373afb6
Remove duplicated definition of mini_gc_enable_gc_maps_for_aot - fixed build on PowerPC, Itanium, SPARC
2013-04-18 10:28:17 +01:00
Neale
66c4520fa2
Correct marshalling of size variables used in CharSetToUnicode (and vice-versa). They were specified as integers but for these calls they are, in C parlance, size_t so use SysUInt instead.
2013-04-16 22:48:58 -04:00
Neale
777336db71
Part of fix of 11294 - matching names to .NET and turning off serialization attributes for variables not required in serialization
2013-04-16 22:42:30 -04:00
Neale
3b6058791c
Merge branch 'master' of https://github.com/mono/mono
2013-04-16 22:32:39 -04:00
Neale
f19a364025
When .NET serializes it will use the TypeForwardedFrom information when
...
writing Assembly information but Mono does not. This means that
serialized objects created on one platform are not able to be
deserialized on the other, thus preventing interoperability between .NET
and mono applications. Fixes the ObservableCollection part of bugzilla
11294.
2013-04-16 22:27:47 -04:00
Zoltan Varga
2975c3c9b5
Fix the win64 build.
2013-04-15 22:24:22 +02:00
Zoltan Varga
eff4cb5af8
Clear the domain on thread exit after the profile thread end hook, since it might need it to be set.
2013-04-13 22:07:37 +02:00
Gerardo García Peña
1eb5cd8654
removed index check because (1) it cannot be checked in this context and (2) it
...
only explains when a bad sequence started in the current or past buffer (in
this case it would take a negative value).
2013-04-12 00:12:29 +02:00
Gerardo García Peña
026a80eea2
removed index check because (1) it cannot be checked in this context and (2) it
...
only explains when a bad sequence started in the current or past buffer (in
this case it would take a negative value).
2013-04-12 00:06:16 +02:00
Zoltan Varga
add2135688
Fix a test.
2013-04-11 17:25:33 +02:00
Zoltan Varga
a7ba26f942
Disable some System.Data tests which are expected to fail in the mobile profile.
2013-04-11 16:56:18 +02:00
Zoltan Varga
c94730c32f
Disable some System tests which are expected to fail in the mobile profile.
2013-04-11 16:37:02 +02:00
Marek Safar
0d3f3eb27f
Fix cascading errors for invalid out arguments
2013-04-11 12:03:58 +02:00
Marek Safar
9275b2d11b
Check interface implementation using all base types members. Fixes #11694
2013-04-11 12:03:57 +02:00
Duncan Mak
205724650b
Bump version to 3.0.10
2013-04-10 13:22:34 -04:00
Marek Safar
a8eadf8b75
Don't emit symbol file entry for partial method declarations. Fixes #11704
2013-04-10 18:45:11 +02:00
Marek Safar
a67b91692b
Remove System.Net.Http from MT mobile build
2013-04-10 09:49:51 +02:00
Marek Safar
8f36e5c16e
Fix duplicate metadata override entry.
2013-04-10 09:49:02 +02:00
Marek Safar
237740ca53
Add missing prepare phase to eval
2013-04-10 09:49:02 +02:00
Zoltan Varga
7a7fb32f01
Revert "Parallelize the compression in mkbundle."
...
This reverts commit d168c95182 .
Revert this as it breaks mtouch.
2013-04-10 09:28:53 +02:00
Rodrigo Kumpera
75e4bbbb30
Revert "Remove System.Net.Http from MT mobile build"
...
This reverts commit a00ab04a64 .
2013-04-09 19:20:44 -04:00
Zoltan Varga
bf74036b44
Move some boehm specific code in gc.c to boehm-gc.c.
2013-04-10 00:46:19 +02:00
Zoltan Varga
3b7a9534bb
Don't abort the process using g_abort () when a breakpoint cannot be inserted.
2013-04-09 22:36:35 +02:00
Zoltan Varga
5bae54197a
Clear the domain TLS variable earlier in start_wrapper_internal () so async signal handlers don't run concurrently with thread cleanup. Hopefully fixes #11102 .
2013-04-09 17:34:11 +02:00
Zoltan Varga
9db419c35c
Don't leave the thread suspended in mono_threads_core_suspend () if thread_state_init_from_handle () fails.
2013-04-09 17:30:44 +02:00
Zoltan Varga
d0fd942ab9
Fix alignment of unbox trampolines when using LLVM+thumb on ARM. Fixes #11594 .
2013-04-09 14:26:09 +02:00
Marek Safar
a00ab04a64
Remove System.Net.Http from MT mobile build
2013-04-09 14:14:10 +02:00
Marek Safar
aa6cbe44bf
Try to recover expressions aftern named argument
2013-04-09 14:14:10 +02:00
Alex Rønne Petersen
566e77925d
Support disabling of the security subsystem (CAS/CoreCLR).
...
This could still use some future work. For example, we could get
rid of lots of security code in the class libs. There are also some
functions in the runtime that don't get removed because we don't
use the stub macro approach for all public security functions.
Based on Sebastien's patch.
2013-04-09 11:14:45 +02:00
Zoltan Varga
88bd84a855
Hopefully fix the windows build.
2013-04-09 09:26:18 +02:00
Duncan Mak
8f776d77c2
Bump version number to 3.0.9
2013-04-08 17:14:32 -04:00
Rodrigo Kumpera
87b9278607
Fix llvm loading when calling through a symlink.
...
mini-llvm.h: When trying to load mono from ./.libs or ../lib we did not
resolve the current binary for symlinks. This failed on OSX since
everyone calls /usr/bin/mono while libmono-llvm was on
/Library/Frameworks/Mono.framework/Versions/Current/lib.
This make mono --llvm work on release mono.
2013-04-08 15:32:20 -04:00
Rodrigo Kumpera
60f89d99fb
Guard against another possible crash that has been seen on wrench.
2013-04-08 15:32:19 -04:00
Marek Safar
60979ce4a4
Merge pull request #601 from knocte/sock_improvements
...
[System.Net.Sockets] Specify 'timeout' in the exception msg of the Receive(buf) overload
2013-04-08 03:00:28 -07:00
Andres G. Aragoneses
3e401381fe
[io-layer] add URLs for some ximian bug numbers in sockets.cs
...
Not everybody knows that a ximian bug 123 can be accessed this way:
https://bugzilla.novell.com/show_bug.cgi?id=MONO123
2013-04-08 10:43:38 +01:00
Andres G. Aragoneses
67f528d7bb
[Socket] Improve exception message when timing out in Socket.cs
...
This uses now the same exception message as MS.NET.
2013-04-08 10:42:42 +01:00
Andres G. Aragoneses
2ee016a7a6
[Socket] Refactor Socket to make Receive(_) call Receive(_,_)
...
After previous commit, two Receive() overloads are basically the same, so
we can remove some duplicated code here by making one call the other one.
2013-04-08 10:41:56 +01:00
Andres G. Aragoneses
55c7e30b1e
[Socket] Specify 'timeout' in the exception msg of Receive(buf)
...
In the same way the overload Receive (buf, flags) already does, mention
"time out" in the exception message when the socketError is WOULDBLOCK and
the socket is not non-blocking (otherwise it would throw with the reason
"Operation on non-blocking socket would block", which doesn't make sense
for a socket that is not non-blocking).
2013-04-08 10:41:18 +01:00
Elijah Taylor
ab39b74267
NaCl ARM work, first pass
2013-04-07 09:47:16 +02:00
Elijah Taylor
1e726ce7a3
NaCl runtime fixes
...
- fix compile/runtime issues caused by upstream changes
- add NaCl glibc support
- various changes to support running tests in NaCl glibc
from 'make check'
2013-04-07 09:45:45 +02:00
Marek Safar
28c53a39a4
Implement partial generic methods
2013-04-07 09:39:53 +02:00
Zoltan Varga
66acbc75aa
Implement the calculation of stack bounds on windows. Fixes #11624 .
2013-04-06 10:05:28 +02:00
Zoltan Varga
d13a010ac0
Fix the windows build.
2013-04-06 10:04:27 +02:00
Zoltan Varga
1f53c672a5
Fix support for custom attribute classes in CustomAttributeDataMirror which indirectly inherit from Attribute. Fixes #11564 .
2013-04-05 18:32:55 +02:00
Martin Baulig
a3c14d7686
[xbuild]: Support <PropertyGroup/ItemGroup> inside <Target>.
2013-04-05 13:07:02 +02:00
Marek Safar
3b058f0680
Redirect more duplicate security types to Mono.Security
2013-04-05 11:15:25 +02:00
Atsushi Eno
2edeeb60e7
rx: Add -d:HAS_AWAIT options to 4.5 and 2.1 builds.
2013-04-05 00:02:29 +09:00
Jeffrey Stedfast
0bf20c9542
[Mono.Debugger.Soft] Make CommandException public
2013-04-03 17:23:54 -04:00
Mark Probst
caf5fc0152
Merge remote-tracking branch 'origin/fix-los-cardtable-overlap'
2013-04-03 12:29:05 -07:00
Mark Probst
7cb476758c
[sgen] Use unified cardtable-update code in M&S, too.
...
The bug where objects crossed the cardtable overlap boundary cannot
happen with M&S because blocks are naturally aligned. It can't hurt
to use the same code for updating them, too, though.
2013-04-03 12:25:58 -07:00
Mark Probst
b347b88255
[sgen] Fix 64-bit bug occurring when LOS object crosses cardtable overlap boundary.
2013-04-03 12:01:51 -07:00
Marek Safar
8e1f3725a5
Fix arguments location
2013-04-03 18:59:47 +02:00
Gerardo García Peña
e62924259a
Implemented method 'IsUnknownSurrogate()'.
2013-04-03 17:26:14 +02:00
Gerardo García Peña
8f6a053b80
Refactorized Convert(char[], int, ...) to use the pointer version.
2013-04-03 17:24:35 +02:00
Gerardo García Peña
a0a12c128d
Refactorized convert(byte[], int, ...), now uses the pointer version.
2013-04-03 17:21:58 +02:00
Marek Safar
f02f3e5249
Add new test
2013-04-03 13:21:11 +02:00
Marek Safar
1a922652b4
Fix reported warning location
2013-04-03 13:21:10 +02:00
Marek Safar
cb7a435f96
Error reporting improvements
2013-04-03 13:21:10 +02:00
Marek Safar
0ef6ca75c0
Report missing type definition dependency only once per type.
2013-04-03 13:21:09 +02:00
Alex Rønne Petersen
cfcd953716
Fix another cast warning in sgen-debug.c.
2013-04-02 22:51:13 +02:00
Alex Rønne Petersen
10db9da681
Fix an #if in System.Delegate.IsTransparentProxy () to use DISABLE_REMOTING.
2013-04-02 22:43:49 +02:00
Alex Rønne Petersen
1eed6ec431
#ifndef some variables out to silence warnings in builds with COM/remoting disabled.
2013-04-02 22:36:13 +02:00
Alex Rønne Petersen
7023da15d3
Remove an unneeded inner #ifndef DISABLE_COM.
2013-04-02 22:36:13 +02:00
Alex Rønne Petersen
6e1636eebe
Only define get_local_interface_id () on Apple platforms.
2013-04-02 22:36:12 +02:00
Alex Rønne Petersen
15b57de655
Explicitly ignore some return values with a G_GNUC_UNUSED variable.
2013-04-02 22:36:12 +02:00
Alex Rønne Petersen
b8b46cb346
Fix the tramp_names table when remoting is disabled.
2013-04-02 22:36:12 +02:00
Alex Rønne Petersen
0b1f35561b
Silence a couple of unused variable warnings with G_GNUC_UNUSED.
2013-04-02 22:36:12 +02:00
Alex Rønne Petersen
949a0bf462
Fix some warnings caused by casts.
2013-04-02 22:36:12 +02:00
Alex Rønne Petersen
7b302355df
Unbreak the build when Boehm is enabled and remoting is disabled.
2013-04-02 22:36:12 +02:00
Mark Probst
03f7df287a
Merge remote-tracking branch 'origin/fix-concurrent-wbarrier'
2013-04-02 12:32:52 -07:00
Mark Probst
6732f0e127
[sgen] Fix binary protocol concurrent crashes.
2013-04-02 12:31:33 -07:00
Mark Probst
5868efd369
[sgen] Mark major->major references in unmanaged wbarrier, too.
2013-04-02 10:39:38 -07:00
Mark Probst
9d9ffd1a44
[sgen] Update mod-union with regular, not shadow cardtable.
2013-04-02 10:39:37 -07:00
Mark Probst
49a81d8774
[sgen] Mod-union consistency check MONO_GC_DEBUG option.
2013-04-02 10:39:37 -07:00
Mark Probst
2f707e5d52
[sgen] Cmdline option to print all entries in sgen-grep-binprot.
2013-04-02 10:39:36 -07:00
Mark Probst
359f977e79
[sgen] Binary protocol entry for user-forced GCs.
2013-04-02 10:39:30 -07:00
Miguel de Icaza
dbb4fd4700
Merge pull request #606 from sesef/master
...
Fix .NET incompatibility in UpDownBase
2013-04-01 18:28:03 -07:00
Jeffrey Stedfast
57cbcf93a5
[Mono.Debugger.Soft] fixed the build
2013-04-01 16:34:01 -04:00
Jeffrey Stedfast
b06106a311
[Mono.Debugger.Soft] Throw AbsentInformationException, not ArgumentException which makes no sense
2013-04-01 16:31:23 -04:00
Zoltan Varga
c29511f2e6
Don't disable sharing for open generic async methods, since the JIT can't compile these without sharing.
2013-03-31 13:42:08 +02:00
Marek Safar
10ef8870ef
Set async block flag also for partial methods
2013-03-30 10:44:49 +01:00
Marek Safar
dbdab197a7
Make table name comparison dataset locale specific. Fixes #7899
2013-03-29 18:36:55 +01:00
Zoltan Varga
1f739060e5
Hopefully fix the windows build.
2013-03-29 06:56:19 +01:00
Zoltan Varga
2bae3cf88d
Hopefully fix the windows build.
2013-03-29 04:24:16 +01:00
Sebastien Pouliot
8cb68371fd
Have the linker skip mixed-mode assemblies since it won't be able to save them later
2013-03-28 17:07:15 -04:00
Zoltan Varga
a268679986
Remove some debug printfs.
2013-03-28 10:48:03 +01:00
Zoltan Varga
7485205bb3
Fix the build.
2013-03-28 10:46:58 +01:00
Zoltan Varga
e70d60d39d
Fix the build.
2013-03-28 06:24:09 +01:00
Jonathan Pryor
7a30dcccb9
Fix build break.
...
5329fab3 requires <sys/uio.h>, which wasn't being included.
2013-03-27 23:29:50 -04:00
Zoltan Varga
7547f6f2f1
Move atomic.h/atomic.h to utils/.
2013-03-28 04:08:13 +01:00
Zoltan Varga
2a2f1cf5b1
Add implementations of atomic functions using gcc atomic ops. Not yet used.
2013-03-28 03:44:57 +01:00
Jonathan Pryor
772fa304a2
[mkbundle] Remove Mono.Posix, ICSharpCode.SharpZipLib deps
...
I want to make execution of mkbundle possible under .NET, and as such
I want to remove unnecessary dependencies.
Mono.Posix is only used for UnixMarshal heap methods; there's NO need
to use these when Marshal can be used.
That leaves DeflaterOutputStream, and it's possible to configure zlib
to accept deflate streams, allowing us to use GZipStream:
http://stackoverflow.com/a/1838702/83444
Update template_z.c accordingly so that the compressed data works.
Two side results of this:
1. Increased compression; my (really stupid) test app went from a
compression ration of 31.39% to 32%
2. This MAY make things WORSE when running on .NET < 4.5. This is
fixed in .NET 4.5:
http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx
Starting with the .NET Framework 4.5, the DeflateStream class
uses the zlib library. As a result, it provides a better
compression algorithm and, in most cases, a smaller compressed
file than it provides in earlier versions of the .NET
Framework.
2013-03-27 18:12:07 -04:00
Jonathan Pryor
6fc3d4f268
Merge pull request #609 from steffen-kiess/stat-st_atim
...
Add nanosecond resolution times to struct Stat
2013-03-27 06:38:11 -07:00
Steffen Kieß
28e16142fa
Add nanosecond resolution times to struct Stat
2013-03-27 13:45:50 +01:00
KISHIMOTO, Makoto
2945762bc0
modify for VPATH builds
2013-03-27 16:45:18 +09:00
Zoltan Varga
3a29f718c5
Fix sdb asserts when seq-points are not found for a method because its assembly was AOTed without the 'soft-debug' option. Fixes #11435 .
2013-03-27 02:00:44 +01:00
Jonathan Pryor
f3b1d7e5eb
Merge pull request #221 from steffen-kiess/master
...
Add various methods and flags to Syscall
2013-03-26 14:42:30 -07:00
Steffen Kieß
5329fab38b
Add various methods and flags to Syscall
...
* Add OpenFlags.O_CLOEXEC and OpenFlags.O_PATH
* Add AtFlags for AT_* values
* Add fdopendir, mkdtemp, futimens
* Add readv, writev, preadv, pwritev
* Add *at methods: openat, renameat, fchmodat, fstatat, utimensat,
mkdirat, mknodat, mkfifoat, faccessat, fchownat, linkat, readlinkat,
symlinkat, unlinkat
* Add constants AT_FDCWD, UTIME_NOW, UTIME_OMIT
2013-03-26 21:26:09 +01:00
Zoltan Varga
f85afc4d55
Export a few more symbols for LLVM.
2013-03-26 20:15:20 +01:00
Miguel de Icaza
ad1327fad5
[corlib] Marshal: fine-tune the pointer Read/Write operations.
...
This patch reworks the Marshal's Read and Write pointer operations
to avoid performing a modulo operation to choose the fast path, as
in some platforms the modulo operation is implemented as a C subroutine.
Instead we use bit operations which always run in constant time.
It also avoids the IntPtr.XXX method calls, factors out "unsafe", only
ever performs one IntPtr->pointer conversion, and makes the source
code uniform.
2013-03-26 15:05:02 -04:00
Zoltan Varga
cbdf471ff5
Remove a redundant null check.
2013-03-26 20:01:41 +01:00
Zoltan Varga
9cdddca7ec
Return null when null was passed to Marshal.PtrToStructure () instead of throwing an exception. Fixes #11417 .
2013-03-26 19:59:09 +01:00
Steffen Kieß
6ceccd8cd2
Set errno to 0 before calling readdir in Syscall.readdir().
...
This will allow the caller to distinguish between errors and end-of-directory.
2013-03-26 19:53:00 +01:00
Marek Safar
888e9acdbb
Update number separators for mexican and similar locales. Fixes #8084
2013-03-26 19:18:55 +01:00
Marek Safar
0b62a137ab
Set invariant DateTimeFormatInfo for all invariant format specifiers. Fixes #11364
2013-03-26 19:18:55 +01:00
Marek Safar
bbc5b610d0
Populate AbbreviatedMonthNames values. Fixes #11361
2013-03-26 19:18:54 +01:00
Atsushi Eno
3f19e47979
update cecil rev.
...
We cannot fully update cecil to the latest master which seems to break
some existing code, so use specific branch so far.
2013-03-27 01:56:13 +09:00
Paolo Molaro
477124f771
Export a few functions needed by llvm.
2013-03-26 16:35:28 +01:00
Marek Safar
76da0ed16c
Fix quoting of some date time patters. Fixes #11363
2013-03-26 11:35:55 +01:00
Marek Safar
2002e45778
Add zh-CHT parent lcid handling. Fixes #11375
2013-03-26 11:07:31 +01:00
Alex Rønne Petersen
778c86d341
Merge pull request #608 from metanest/bin_bash_spike
...
#!/bin/bash -> #!/usr/bin/env bash
2013-03-26 00:46:16 -07:00
KISHIMOTO, Makoto
1e896532e7
#!/bin/bash -> #!/usr/bin/env bash
2013-03-26 12:56:22 +09:00
Zoltan Varga
aa8abd1f58
Don't emulate idiv.un/irem.un on ARM in cases where it can be optimized away.
2013-03-26 04:31:07 +01:00
Zoltan Varga
bd4c5c3651
Fix a typo in bc149a3814.
2013-03-26 01:32:33 +01:00
Marek Safar
947a45caec
Add configure await
2013-03-25 16:01:53 +01:00
Marek Safar
7a345a73f5
Merge pull request #607 from maksimenko/master
...
use await GetRequestStreamAsync on System.Net.Http.HttpClientHandler SendAsync to avoid blocking
2013-03-25 07:44:13 -07:00
Rodrigo Kumpera
4b294019c6
Change mono_gc_get_managed_array_allocator to receive a MonoClass instead of a vtable, rank pair.
...
* method-to-ir.c: Given mono_gc_get_managed_array_allocator now takes a class and not an vtable,
we can now use it for shared code allocating arrays.
2013-03-25 10:42:01 -04:00
Rodrigo Kumpera
4189fe3f95
Fast path Array::Resize with small arrays.
2013-03-25 10:42:01 -04:00
Marek Safar
694f00b66f
Don't capture any variables when block yield only breaks
2013-03-25 15:11:50 +01:00
Marek Safar
f94c224b85
Don't create interator parameters copies for unmodified parameters
2013-03-25 14:22:16 +01:00
Marek Safar
f0af91e211
Apply 9dc360146f to all where methods
2013-03-25 14:16:35 +01:00
Marek Safar
b26a3411e5
Don't copy hoisted iterator parameters when not needed
2013-03-25 11:05:42 +01:00
Zoltan Varga
ec5503773f
Fix the hashing of MonoJumpInfo structures, previously many had the same hash code.
2013-03-25 02:54:39 +01:00
Zoltan Varga
b354c6268d
Add a mono_print_ji () helper function to print a MonoJumpInfo structure.
2013-03-25 02:54:39 +01:00
Miguel de Icaza
77e58567c1
Add a test for the WebUtility.HtmlEncode bits
2013-03-24 19:18:51 -04:00
Zoltan Varga
f90a274d80
Move the 'Created object count' stat to the GC section when using --stats.
2013-03-24 23:28:18 +01:00
Zoltan Varga
b831ead5a9
Avoid using an rgctx when making delegate invokes from shared code, the delegate trampoline code already handles this.
2013-03-24 22:55:08 +01:00
Marek Safar
9dc360146f
Add optimized where iterator for arrays
2013-03-24 15:03:22 +01:00
Marek Safar
7bcf833b78
Optimize entity conversion
2013-03-24 11:34:51 +01:00
Marek Safar
dfaeb0c361
Try to recover incomplete ternary expression. Fixes #5195
2013-03-24 11:34:50 +01:00
Marek Safar
cd14fdd614
Better error message for not matching overload when expanded params conversion fails.
2013-03-24 11:34:50 +01:00
Zoltan Varga
0681cc0f83
Fix the build.
2013-03-24 09:39:46 +01:00
Zoltan Varga
4c9075429a
Avoid AOTing PtrToStructure/StructureToPtr() wrappers for the compiler generated '-...' structs.
2013-03-24 08:46:00 +01:00
Zoltan Varga
adc5d247ef
Use (uint) casts in the Marshal.Read/WriteXXX () methods to speed up the alignment checks.
2013-03-24 03:33:24 +01:00
Zoltan Varga
6dbaf9b671
Put back a cattr removed by mistake by 70141dc9f5.
2013-03-24 02:46:16 +01:00
Zoltan Varga
70141dc9f5
Implement the Marshal.Read/WriteXXX methods using unsafe code instead of icalls.
2013-03-24 02:43:27 +01:00
Victor H. Maksimenko
1a6f502f56
use the GetRequestStreamAsync method to avoid blocking on HttpClientHandler SendAsync
2013-03-23 15:59:48 -04:30
Jérémie Laval
605e4d6313
[monodoc] Remove previous horrible generic backtick notation hack and properly handle them in node search.
2013-03-23 15:11:49 +00:00
Jérémie Laval
ab79cb82bc
[monodoc] Add a simple stack-based generic argument count method.
2013-03-23 15:05:46 +00:00
Jérémie Laval
3e05c18093
[IDesigner] Add cref reachability checker unit test though disabled for now.
...
Mono documentation has a lot of syntax error in its crefs so it's not good material for a reliable unit test until we can do better on that front.
2013-03-23 15:02:19 +00:00
Jérémie Laval
ba43a5ae56
[monodoc] Add utility property Generic*IsNumeric to distinguish between types using full generic notation (e.g. Foo<T1, T2>) or just backtick notation (e.g. Foo`2)
2013-03-23 15:01:03 +00:00
Jérémie Laval
75faf4d897
[monodoc] Add reachability unit test for ASP.NET style URLs
2013-03-23 14:58:01 +00:00
Jérémie Laval
e2b584c2af
[monodoc] Parse correctly '{' and '}' as '<' and '>' (generic params) in ECMA url.
...
These characters are used in place of normal bracket in some part of the xsl generation code, mostly to prevent ASP.NET default code injection policy to kick in.
2013-03-23 13:59:34 +00:00
Sesef
ad381fc414
tabs
2013-03-23 11:52:12 +01:00
Sesef
2515e22514
Fix NET incompatibility
2013-03-23 11:43:33 +01:00
Sebastien Pouliot
71d027fb55
Open test files in read-only mode (so it will work on devices where permissions won't allow read/write)
2013-03-22 17:20:41 -04:00
Marek Safar
e816267243
Maintain more tokens locations.
2013-03-22 16:30:33 +01:00
Marek Safar
0873dd811f
Don't report error for incomplete member type
2013-03-22 15:49:27 +01:00
Marek Safar
19e7a81b9b
Try to recover incomplete initializers. Fixes #4964
2013-03-22 15:28:03 +01:00
Marek Safar
2ae9fc18eb
Avoid extra space when reporting error for compiler modifiers
2013-03-22 13:36:14 +01:00
Marek Safar
19c8282257
Maintain more locations values
2013-03-22 10:06:10 +01:00
Marek Safar
8209756fd0
Try to recover incomplete member declaration which looks like field. Fixes #7521
2013-03-22 10:06:10 +01:00
Marek Safar
12f8dd310a
Merge pull request #605 from AerisG222/system.web.http.webhost
...
system.web.http.webhost
2013-03-22 00:43:08 -07:00
Atsushi Eno
32455dbbe9
remove extra printf.
2013-03-22 16:23:45 +09:00
Zoltan Varga
05b20fe484
Fix the checks in is_async_method ().
2013-03-22 04:19:29 +01:00
Martin Baulig
d64187a447
[WCF]: Disable WsdlExporterTest.ExportMessageContract().
2013-03-22 04:08:10 +01:00
Martin Baulig
97d52b2237
[WCF]: Implement cookie support in .NET 4.0.
2013-03-22 04:08:10 +01:00
Mike Morano
13c77a1629
making the build system aware of system.web.http.webhost that is a component of the aspnetwebstack
2013-03-21 21:31:55 -04:00
Zoltan Varga
dc721e3c8a
Fix deadlock in CreateProcess () if fork () fails. Fixes #11315 .
2013-03-22 02:22:09 +01:00
Martin Baulig
d2d903f1d2
[WCF]: 2nd part of bug #5827 , set CheckCharacters = false in TextMessageEncoder.
2013-03-22 01:57:37 +01:00
Zoltan Varga
e711081984
Fix an LLVM crash when a method ending with a throw is inlined into a catch clause. Fixes #11297 .
2013-03-22 01:27:10 +01:00
Martin Baulig
91f11b20d7
Bug #5829 : DataContractSerializer should not check for invalid characters.
2013-03-22 01:00:56 +01:00
Martin Baulig
bf6d00c9b9
[System.ServiceModel.Web]: Fix 'make dist'.
2013-03-22 00:14:52 +01:00
Marek Safar
04403c39d2
Try to recover from invalid attribute. Fixes #8590
2013-03-21 19:02:01 +01:00
Rodrigo Kumpera
9c15b24100
Fix the System.Runtime.Serialization test suite to compile.
2013-03-21 13:18:16 -04:00
Marek Safar
9dd1781f8b
Try to recover from incomplete group section. Fixes #10228
2013-03-21 10:28:16 +01:00
Elijah Taylor
26bc82731d
Test for divide by zero for NaCl in software
2013-03-21 05:16:57 +01:00
Elijah Taylor
b2de5b898d
Add explicit laddcc/lsubcc IR opcodes
...
This allows ladd/lsub to decompose into CC instructions
that correctly maintain the width of the operands. This
was a problem on NaCl amd64 specifically which has 32-bit
longs and ints, but 8 byte registers.
2013-03-21 05:16:57 +01:00
Elijah Taylor
9ae0e35f95
NaCl x86 codegen fixes
2013-03-21 05:16:56 +01:00
Elijah Taylor
bc149a3814
NaCl amd64 codegen fixes
...
- mostly more code fixes to deal with a 64-bit ILP32 machine
2013-03-21 05:16:56 +01:00
Elijah Taylor
b46a770869
NaCl GC improvements
...
- inline managed code implementation
(add x86 test mem imm8 codegen macro for this as well)
- clean up libgc NaCl code
- centralize mono_nacl_gc into mini.c
2013-03-21 05:16:56 +01:00
Elijah Taylor
99f40ae5bb
Add NaCl build scripts
2013-03-21 05:16:55 +01:00
Zoltan Varga
391e857c5b
Disable the async test in generics.cs as it doesn't work with --regression.
2013-03-21 05:16:41 +01:00
Zoltan Varga
48b90276c2
Fix full-aot support for generic async methods by treating them as non-sharable. Fixes #11096 .
2013-03-21 03:30:59 +01:00
Rodrigo Kumpera
02b64abba2
Fix multiple issues with System.Data.DataRow::SetParentRow. Fixes #7900 .
...
* DataRow.cs: There is a total of issues been addressed here:
1) SetParentRow (null) would crash instead of setting all relation
columns to DBNull.
2)SetParentRow (parentRow, relation) did not check if both row and relation
belong to the same table.
3)SetParentRow(parentRow) when the child table has multiple relations to different
tables, we should only process those that belong to the table of parentRow.
2013-03-20 17:49:59 -04:00
Marek Safar
2e6a2a4454
define/undefine position errros are not reported when excluded from compiletion. Fixes #11292
2013-03-20 19:27:43 +01:00
Marek Safar
85639aee6d
Use 4.0 path when configured with disabled 4.5 profile. Fixes #11233
2013-03-20 11:33:38 +01:00
Marek Safar
a562752c01
Advance column on escaped string characters. Fixes #8097
2013-03-20 11:03:47 +01:00
Marek Safar
3868900a87
Copy type parameter constraint interfaces before its base type is expanded.
2013-03-20 09:11:13 +01:00
Marek Safar
d5c315e803
Fix wrong assembly name hint
2013-03-20 09:11:12 +01:00
Zoltan Varga
2498a51c51
Fix an infinite loop in decode_llvm_mono_eh_frame () when the last method in an AOT image is processed on ios. Fixes #11212 .
2013-03-20 04:53:56 +01:00
Marek Habersack
c802ea53a3
Added CreateNLSocket stub for non-linux platforms
2013-03-20 01:38:07 +01:00
Sebastien Pouliot
325ed45145
Do not assume the unit tests can write in the application directory (e.g. iOS devices).
2013-03-19 15:04:49 -04:00
Sebastien Pouliot
be0ecab083
Disable CAS permission tests for MOBILE profile
2013-03-19 15:04:09 -04:00
Sebastien Pouliot
32c4b50508
Ensure the linker does not remove some types needed (thru reflection) for some test cases to work
2013-03-19 14:07:17 -04:00
Marek Safar
db4800320e
Fix expansion of imported generic interfaces implementing imported types. Fixes #11241
2013-03-19 18:28:54 +01:00
Mark Probst
176363d37b
Merge branch 'feature-free-32'
2013-03-19 10:09:55 -07:00
Mark Probst
3575b3a6c2
[sgen] Statistics for 32 bit freeing.
2013-03-19 10:09:41 -07:00
Mark Probst
bed6bbf8f4
[sgen] While iterating over empty block array, compact it.
2013-03-19 10:09:41 -07:00
Mark Probst
29c9126e13
[sgen] Try allocating M&S blocks in smaller contingents in case of failure.
...
This might happen when the address space fragments. If it happens due to
OOM, we're probably lost anyway.
2013-03-19 10:09:40 -07:00
Mark Probst
4ce22525e0
[sgen] Free contiguous blocks on 32 bit archs.
2013-03-19 10:09:40 -07:00
Marek Safar
6a51733812
Fix parsing decimal values used with integral numbers. Fixes #9090
2013-03-19 12:27:06 +01:00
alexrp
b1d30c53c5
Use /bin/bash instead of /bin/sh in autogen.sh.
2013-03-19 05:17:54 +01:00
Sebastien Pouliot
b43764a214
Do not assume the unit tests can write in the application directory (e.g. iOS devices)
2013-03-18 21:30:47 -04:00
Sebastien Pouliot
105f2bd164
Disable CAS permission tests for MOBILE profile
2013-03-18 21:30:29 -04:00
Sebastien Pouliot
c3b782f4ec
Do not assume the unit tests can write in the application directory (e.g. iOS devices). Use the temporary directory and open files in read-only
2013-03-18 17:38:28 -04:00
Zoltan Varga
d168c95182
Parallelize the compression in mkbundle.
2013-03-18 19:54:38 +01:00
Sebastien Pouliot
2c945ffb26
Return null for AppDomain.Evidence so API accepting this type won't fail (as the type is linked away) when using AppDomain.CurrentDomain.Evidence as an argument. Fix more than 20 System.Xml unit tests on iOS devices
2013-03-18 14:08:53 -04:00
Marek Safar
f52f10ef4f
Add localized infinity symbols. Fixes #9052
2013-03-18 14:57:57 +01:00
Marek Safar
eeac621f70
Use curl instead of wget
2013-03-18 14:57:25 +01:00
Marek Safar
a583280e64
Fully resolve extension method argument. Fixes #11213
2013-03-18 10:57:04 +01:00
Marek Safar
46fc054c3f
Remove internal continuations from unfinished tasks used in WhenAny, Fixes #11008
2013-03-18 09:33:06 +01:00
Jonathan Shore
e6b8be8cba
minor fix for bug 9520:
...
- socket configuration attempts to determine if system supports ipv6
- checks app configuration, but configuration throws exception if called from embedded context
- solution is to put a try/catch guard and fall to an alternative test for ipv6
2013-03-16 11:34:59 -04:00
Martin Baulig
efda0d4c62
Revert "Fixes make dist"
...
This reverts commit 87e95b46ed .
This puts DataContractJsonSerializerSettings.cs back into
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json.
Let's please not have a single file from this namespace in another
directory, either move the entire System.Runtime.Serialization.Json
stuff into System.Runtime.Serialization or leave it here.
2013-03-15 18:14:44 -04:00
Rodrigo Kumpera
9f438cd066
Properly bzero unaligned small blocks. Fixes #11184 .
2013-03-15 16:30:15 -04:00
Marek Safar
23e7149069
Cache implicitly created static delegates
2013-03-15 18:37:59 +01:00
Atsushi Eno
1190937dc1
part of fix bug #10160 - give innerException for some rethrown exception.
2013-03-16 01:19:16 +09:00
Zoltan Varga
9baa7b89b4
Avoid an assert in sdb for compiler generated byref locals. Fixes #11115 .
2013-03-15 16:43:41 +01:00
Marek Safar
267f405394
Add new tests
2013-03-15 15:28:50 +01:00
Marek Safar
78fe562f82
Update locations
2013-03-15 15:28:50 +01:00
Marek Safar
663861741f
Implement optimization where lambdas can be replaced by direct method-group they are wrapping. Fixes #10663
2013-03-15 15:28:49 +01:00
Marek Safar
f2f0ea3f3b
Fix column info for symbol file expressions
2013-03-15 15:28:49 +01:00
Jeremie Laval
f40da03909
[monodoc] Handle summaries for transient root nodes better. Add unit-tests.
2013-03-15 11:19:03 +00:00
Mark Probst
0d5756714a
[sgen] Remove some dead #defines.
2013-03-14 14:46:30 -07:00
Marek Safar
d61cc11225
Add new assemblies
2013-03-14 19:09:53 +01:00
Martin Baulig
f6fcd8bcd9
Temporarily revert "Add PCL type-forwarders."
...
This reverts commit 62559a75df .
2013-03-14 13:37:57 -04:00
Martin Baulig
62559a75df
Add PCL type-forwarders.
2013-03-14 12:58:36 -04:00
Marek Safar
715d5a5450
Remove redundant lambda wrapper
2013-03-14 17:43:16 +01:00
Marek Safar
87e95b46ed
Fixes make dist
2013-03-14 17:42:45 +01:00
Mark Probst
0d3d43f1dd
[sgen] Don't call sgen_scan_togglerefs() twice.
...
In the case where they are called twice, the first call must already have
processed the whole heap.
2013-03-13 16:04:20 -07:00
Mark Probst
792f319464
[sgen] Remove superfluous arguments to finish_gray_stack().
2013-03-13 16:02:01 -07:00
Martin Baulig
8ea5b572f9
Add type-forwarders for existing assemblies.
2013-03-13 18:07:44 -04:00
Martin Baulig
1abdc24adc
Merge pull request #599 from knocte/ntlm_fixes
...
[Mono.Data.Tds] Stop using Obsoleted NTLM APIs (partial fix for BXC#11122)
2013-03-13 14:35:32 -07:00
Mark Probst
5d4ff596a7
[semaphore] Fix mono_sem_wait() for Darwin, clean up mono_sem_post().
...
semaphore_wait() never returns -1, but returns KERN_ABORTED if the
call needs to be repeated. This caused a semaphore wait to sometimes
return in the SGen workers code when it shouldn't, which caused a
mysterious assertion failure.
2013-03-13 13:40:30 -07:00
Martin Baulig
eefc9d8998
Implement MonoType.IsConstructedGenericType.
2013-03-13 15:51:34 -04:00
Martin Baulig
d6eac67800
Implement IntrospectionExtensions.GetTypeInfo().
2013-03-13 15:38:18 -04:00
Andres G. Aragoneses
05600e8114
[Mono.Data.Tds] Stop using Obsoleted NTLM APIs (partial fix for BXC#11122)
...
New NTLM APIs have been pushed recently[1], which made Mono.Data.Tds break
with IOE: Refusing to use legacy-mode LM/NTLM authentication unless
explicitly enabled using DefaultAuthLevel.
This doesn't fix the bug completely, but at least reverts the situation
to the same exception being thrown before the NTLM changes took place.
[1] https://github.com/mono/mono/commit/45745e5123267e8530b87b8dada9a89c6269b383
2013-03-13 19:00:50 +00:00
Miguel de Icaza
e0e560630a
Progress<T> (ActioN<T>) constructor now also initializes the context
2013-03-13 14:48:39 -04:00
Martin Baulig
8c2389d8d0
Put back MethodInfo.CreateDelegate() and fix DynamicMethod.
2013-03-13 14:19:05 -04:00
Zoltan Varga
9efd73982c
Don't set the visibility of the type_info_ symbols in the LLVM backend. Fixes #11076 .
2013-03-13 18:02:50 +01:00
Zoltan Varga
73bef43451
Revert part of 9ec4d6984f since it breaks DynamicMethods.
2013-03-13 17:44:44 +01:00
Marek Safar
4dc3ba8eba
Try to fix statement expression location. Fixes #10306
2013-03-13 16:50:28 +01:00
Jérémie Laval
112da01bdc
[monodoc] Handle global `root:' url
2013-03-13 14:25:46 +00:00
Marek Safar
046b7a22c8
Resolve switch block without fake sections blocks. Fixes #10781
2013-03-13 12:08:13 +01:00
Martin Baulig
988f522b36
Put back unsupported EventWaitHandle and Mutex constructors.
2013-03-12 22:13:39 -04:00
Martin Baulig
2c8d10572e
Oops, fix the mobile build.
2013-03-12 21:42:27 -04:00
Mark Probst
d27cd5f56f
[sgen] Gather a histogram of layouts of scanned objects.
...
With this information we can implement more efficient GC descriptors.
2013-03-12 18:33:26 -07:00
Martin Baulig
54f7c82d2b
DataContractSerializer changes for .NET 4.5.
...
* Move System.Runtime.Serialization.Json from System.ServiceModel.Web.dll
into System.Runtime.Serialization.dll on the mobile profile.
* Add DataContractJsonSerializerSettings and DataContractSerializerSettings..
2013-03-12 21:15:56 -04:00
Martin Baulig
d54fac4349
Minor .NET 4.5 API fixes.
2013-03-12 21:15:56 -04:00
Martin Baulig
67cdf2848c
Add System.WeakReference<T>.
2013-03-12 21:15:56 -04:00
Martin Baulig
b53cdf8749
System.Threading.SemaphoreSlim.WaitAsync().
2013-03-12 21:15:56 -04:00
Martin Baulig
03bb7b498a
System.Threading.{Semaphore|EventWaitHandle|Mutex}.TryOpenExisiting().
2013-03-12 21:15:55 -04:00
Martin Baulig
9cdbbbd234
Update aspnetwebstack to e77b12e.
...
This is just the single commit:
https://github.com/mono/aspnetwebstack/commit/e77b12e6cc5ed260a98447f609e887337e44e299
2013-03-12 21:14:41 -04:00
Zoltan Varga
7906336bdc
Fix some DISABLE_JIT problems.
2013-03-13 01:52:34 +01:00
Jonathan Pryor
35390cd03a
[mdoc] Build with -platform:x86
...
Works around: http://connect.microsoft.com/VisualStudio/feedback/details/635365
The problem is that 64-bit .NET has a bug:
RuntimeHelpers.InitializeArray() throws ArgumentException for certain
array creation constructs that mcs likes to emit. Cecil uses
RuntimeHelpers.InitializeArray() to get the data, which throws, and
everyone becomes very sad:
Running mdoc "update" "--debug" ...
mdoc: System.TypeInitializationException: The type initializer for 'Mono.Cecil.Metadata.TableHeap' threw an exception. ---> System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(Array array, RuntimeFieldHandle fldHandle)
at Mono.Cecil.Metadata.TableHeap..cctor()
--- End of inner exception stack trace ---
at Mono.Cecil.Metadata.TableHeap..ctor(Section section, UInt32 start, UInt32 size)
at Mono.Cecil.PE.ImageReader.ReadMetadataStream(Section section)
at Mono.Cecil.PE.ImageReader.ReadMetadata()
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Mono.Cecil.AssemblyDefinition.ReadAssembly(String fileName, ReaderParameters parameters)
at Mono.Documentation.MDocUpdater.LoadAssembly(String name)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Mono.Documentation.MDocUpdater.Run(IEnumerable`1 args)
at Mono.Documentation.MDoc.Run(String[] args)
at Mono.Documentation.MDoc.Main(String[] args)
The "fix" is to not use the 64-bit runtime, and instead explicitly
require the 32-bit runtime by using -platform:x86.
2013-03-12 20:07:40 -04:00
Zoltan Varga
26068dd156
Enable ContextTest on mt.
2013-03-12 23:30:51 +01:00
Rodrigo Kumpera
54ab0bf56c
Wrap MonoVTable::remote into a pair of accessors to make it easy to have code linked out.
2013-03-12 18:22:08 -04:00
Rodrigo Kumpera
143d99ea98
Wrap MonoClass::is_com_object into a pair of accessors to make it easy to have code linked out.
2013-03-12 18:22:07 -04:00
Martin Baulig
9ec4d6984f
Implement new .NET 4.5 Reflection APIs.
2013-03-12 18:07:53 -04:00
Martin Baulig
9f1535ea23
Add System.ComponentModel.Composition.4.5 to the mobile build.
2013-03-12 18:07:53 -04:00
Martin Baulig
804acc091c
Fix System.ComponentModel.DataErrorsChangedEventArgs API.
2013-03-12 18:07:53 -04:00
Martin Baulig
f86e2a1025
Add System.ComponentModel.DataAnnotations to the mobile build.
2013-03-12 18:07:52 -04:00
Rodrigo Kumpera
3dcc728b8c
Small cleanup on runtime shutdown to move more code to the same spot and reduce duplication.
2013-03-12 17:43:57 -04:00
Rodrigo Kumpera
4df4b7a47a
Merge pull request #505 from roji/shutdown_flow
...
Fixed threadpool+ProcessExit problem in shutdown flow
2013-03-12 14:25:47 -07:00
Martin Baulig
dfc1434f41
Add stubs for some new .NET 4.0/4.5 WCF APIs.
2013-03-12 17:23:01 -04:00
Martin Baulig
35992e86c7
System.Runtime.Serialization.DateTimeFormat
2013-03-12 17:23:00 -04:00
Martin Baulig
b38fcbcf2a
BigInteger.Parse/TryParse() overloads for .NET 4.0.
2013-03-12 17:23:00 -04:00
Martin Baulig
55b8eda927
System.Progress
2013-03-12 17:23:00 -04:00
Martin Baulig
dc4eae8d17
Add System.Text.RegularExpressions.Regex timeout APIs.
2013-03-12 17:23:00 -04:00
Martin Baulig
3fee2dd792
Trivial API additions.
2013-03-12 17:22:59 -04:00
Martin Baulig
7a5d090d7d
Missing WebUtility methods.
2013-03-12 17:22:59 -04:00
Martin Baulig
3016218856
HttpWebRequest/Response API fixes for .NET 4.5.
2013-03-12 17:22:59 -04:00
Martin Baulig
171c946ecd
Add System.IO.Compression.FileSystem stubs.
2013-03-12 17:22:59 -04:00
Martin Baulig
77df2f0865
Misc .NET 4.5 / PCL APIs.
2013-03-12 17:22:58 -04:00
Michael Hutchinson
9aee5e22ba
[xbuild] It's safe to pass /debug:pdbonly to mcs now
2013-03-12 16:43:07 -04:00
Zoltan Varga
392632ff30
Implement OP_LCONV_TO_I4 using OP_SEXT_I4 instead of OP_LSHR_IMM(0). Fixes #11058 .
2013-03-12 21:32:09 +01:00
Sebastien Pouliot
68ebec2787
Remove MonoTouch specific code that is now handled without reflection
2013-03-12 16:04:43 -04:00
Marek Safar
42d7bdbea4
Remove dependency on generated file
2013-03-12 15:43:13 +01:00
Jeremie Laval
2785b65688
[monodoc] Parse and display mastersummary.xml on root:/ ECMA urls
2013-03-12 13:42:40 +00:00
Jeremie Laval
e9a5cb19b1
[monodoc] Cleanups
2013-03-12 13:42:12 +00:00
Mark Probst
06b2ab0a7c
[tests] In GC descriptor tests script, optionally generate huge nested if.
2013-03-11 16:51:01 -07:00
Rodrigo Kumpera
8a6a647e00
Optimize mono_gc_bzero and mono_gc_memmove to closely match native performance.
...
* gc.c (mono_gc_memmove): Doing naive word copy turned out to be several times
slower than optimized memmove.Doing optimized memmove is a hellbent problem
because each target (x86, amd64, arm, etc) have multiple implementations based
on which CPU you're currently running on.
Given we're not ready to suck in ten thousand lines of assembly for the benefit
of a few targets a better solution is needed.
The problem we face is due to implementations that don't perform word stores
on the word aligned parts of the destination. This does break things for us
as the CLI environment disallows word tearing for normal operations.
The solution is then to work around the silliness of the known implementations
that basically handle any sorts of misalignment badly. To do so we ensure that
we only call memmove with a word aligned destination and a word multiple size.
This should be enough for OSX, Android, linux and iOS on x86, amd64 and ARM.
2013-03-11 18:45:55 -04:00
Zoltan Varga
dde2c39880
Re-enable some tests on mt which seem to work now.
2013-03-11 22:16:46 +01:00
Zoltan Varga
db4e50a08d
Export inst_is_gsharedvt_sharable () so it is usable by other parts of the JIT.
2013-03-11 21:07:34 +01:00
Duncan Mak
35d3a47008
Bump version to 3.0.8
2013-03-11 14:56:25 -04:00
Zoltan Varga
1a441364a6
Add a 'dwarfdebug' AOT option to emit DWARF debug info even if the 'nodebug' AOT option is used.
2013-03-11 15:29:33 +01:00
Miguel de Icaza
9e3e69451a
Merge pull request #597 from kamalaboulhosn/master
...
Translate errno for EHOSTDOWN to WSAEHOSTDOWN
2013-03-11 07:18:40 -07:00
Kamal Aboul-Hosn
d046ae0b30
Added translation for EHOSTDOWN errno
2013-03-09 18:10:39 -05:00
Zoltan Varga
6fc1c8daee
Disable some tests failing on mt due to #10539/#10552.
2013-03-09 01:13:24 +01:00
Marek Safar
c198db637b
Correctly type fixed buffer wrapper type. Fixes #10803
2013-03-08 23:46:27 +01:00
Marek Safar
92a6488c89
Clone shared members list before operators merging. Fixes #10967
2013-03-08 23:46:26 +01:00
Miguel de Icaza
e133d105a8
Merge pull request #469 from symform/symform-better-drive-type-check
...
When detecting drive type it is possible that a path might be mounted mo...
2013-03-08 17:09:36 -05:00
Miguel de Icaza
be4686b9d9
Merge pull request #594 from Adeath56/patch-1
...
System.Web.dll : NullReferenceException on GetItemInternal() after a Session.Abandon()
2013-03-08 16:37:28 -05:00
Miguel de Icaza
e7758ec891
Merge pull request #595 from UCIS/master
...
Fixed handling of modifier keys in KeyEventArgs constructor (bug #6707 )
2013-03-08 13:25:47 -08:00
Marek Safar
7c704df8ae
Move rarely used NamedDataSlot to its own type to cut few dependencies
2013-03-08 17:40:03 +01:00
Marek Safar
a10f7b72ac
Fix failing test
2013-03-08 15:56:58 +01:00
Marek Safar
23918afbec
Fix constant folding fox null string constants. Fixes #10821
2013-03-08 15:47:44 +01:00
Marek Safar
64f2ea441a
Use faster string comparers
2013-03-08 15:47:44 +01:00
Marek Safar
e7006d8e39
Use faster invariant conversion
2013-03-08 15:47:44 +01:00
Marek Safar
6643562a1e
Use generics list
2013-03-08 15:47:43 +01:00
Marek Safar
292b757ede
Use faster string checks
2013-03-08 15:47:43 +01:00
Marek Safar
dbbd71c5e5
Remove Collection dependency from ReadOnlyCollection
2013-03-08 15:47:43 +01:00
Jb Evain
37fe2b7e43
Add generated Makefile.am to gitignore
2013-03-08 15:25:19 +01:00
Jb Evain
3e7d7a37f4
Add mdbrebase generated script to gitignore
2013-03-08 15:25:19 +01:00
Sebastien Pouliot
54099c8732
TypeFromCLSID is not available when build with FULL_AOT_RUNTIME (e..g iOS)
2013-03-08 09:17:57 -05:00
Sebastien Pouliot
5422c5a9d3
Adjust OptionalCalendars test so it will work when the linker is enabled
2013-03-08 09:16:33 -05:00
Zoltan Varga
0889f6af72
Avoid loading AOT modules for ref-only assemblies.
2013-03-08 03:02:58 +01:00
Zoltan Varga
514fcd7920
Fix the mobile build.
2013-03-08 02:36:04 +01:00
Zoltan Varga
c1466ee2ff
Fix the mobile mscorlib build.
2013-03-08 02:33:29 +01:00
Zoltan Varga
565e78a45c
Avoid a crash if the Volatile class is linked away.
2013-03-08 02:33:28 +01:00
Zoltan Varga
d33e025bde
Add full-aot support for Volatile.Read<T>/Write<T> ().
2013-03-08 02:33:28 +01:00
Zoltan Varga
a1aa0ca2cb
Fix the encoding of runtime-invoke wrappers in AOT. Add support for gsharedvt delegate begin/end-invoke wrappers to full AOT.
2013-03-08 02:33:27 +01:00
Zoltan Varga
7c47e18e66
Remove an inexistent icall added by mistake by 0ff40ae70a.
2013-03-08 02:33:27 +01:00
Rodrigo Kumpera
690b080504
Make the build .gitignore rule absolute. It didn't like mcs/build/.
2013-03-07 18:06:26 -05:00
Rodrigo Kumpera
861811b3fb
Move some MOBILE bits under DISABLE_REMOTING as a remoting enabled runtime will need them for
...
basic functionality.
2013-03-07 17:46:04 -05:00
Rodrigo Kumpera
e46ddbb3fc
Monotouch has builds with -DISABLE_REMOTING.
2013-03-07 17:44:28 -05:00
Rodrigo Kumpera
46b4beca67
Add a bunch of dummy fields to Assembly under MOBILE to match the native layout.
2013-03-07 16:09:35 -05:00
Rodrigo Kumpera
ce100e6f5a
Replace a useless g_assert with a g_error that actually gives us some information.
2013-03-07 16:09:35 -05:00
Rodrigo Kumpera
c3fd562d4e
Make sure to unlock InternalThread::synch_cs when we fail to suspend the thread during shutdown.
...
This should fix both crashes seen during Environment.Exit by xbuild and possibly deadlocks.
2013-03-07 16:09:34 -05:00
Rodrigo Kumpera
7b4a395f24
Make sure all functions in the hot path of eg_utf8_to_utf16_general are inlined.
...
This gives a 33% performance boost on a micro benchmark just triggering a call
to mono_string_new.
2013-03-07 16:09:34 -05:00
Marek Safar
2082ed2247
Fixes mobile build
2013-03-07 18:30:58 +01:00
Marek Safar
a4915d561e
Update mobile tests
2013-03-07 16:34:24 +01:00
Marek Safar
93e31cbc63
Ignore SynchronizationAttribute on MT
2013-03-07 16:34:23 +01:00
Marek Safar
02482bef43
Fix binary serialization on mobile
2013-03-07 16:34:23 +01:00
Zoltan Varga
96cf539ade
Fix a typo introduced by c808ced1e2.
2013-03-07 16:26:30 +01:00
Zoltan Varga
dea604078b
Make begin-invoke/end-invoke wrappers for generic delegates like Func/Action generic, similarly to 8eae1a7d72.
2013-03-07 16:26:30 +01:00
Marek Safar
4f0f577826
Remove confusing trailing dot
2013-03-07 09:31:48 +01:00
Marek Safar
686160f09d
Actually iterate returned array
2013-03-07 09:31:48 +01:00
Marek Safar
6d132a7c23
Remove generated file dependency to make fresh checkout tests work out of box
2013-03-07 09:31:47 +01:00
Marek Safar
c461f2fafa
Merge pull request #596 from madewokherd/typefromclsid
...
corlib: Implement System.Type.GetTypeFromCLSID.
2013-03-06 23:44:40 -08:00
Jonathan Pryor
2d37d81770
[xbuild] Replace string.ToLower() comparison with OrdinalIgnoreCase comparison
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=10946
The scenario is the "turkish-i problem": Have an MSBuild Task Assembly
which calls ITaskItem.GetMetadata("Identity") (like, oh, the
Xamarin.Android build system...). Run in a Turkish locale (tr-TR), and
things fail badly:
Error executing task AndroidComputeResPaths: System.ArgumentException: Invalid reserved metadata name
at Mono.XBuild.Utilities.ReservedNameUtils.GetReservedMetadata (System.String itemSpec, System.String metadataName, IDictionary metadata) [0x00000] in <filename unknown>:0
at Microsoft.Build.Utilities.TaskItem.GetMetadata (System.String metadataName) [0x00000] in <filename unknown>:0
at Xamarin.Android.Tasks.AndroidComputeResPaths.Execute () [0x00000] in <filename unknown>:0
at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] in <filename unknown>:0
at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000] in <filename unknown>:0
Wat? Well, in tr-TR, "Identity".ToLower() is "ıdentity", which
doesn't match match anything in GetReservedMetadata()'s `switch`
statement, so it throws an ArgumentException. *BOOM*.
So, if you need a culture-invariant comparison, USE IT.
Related: We could have just s/ToLower/ToLowerInvariant/g, which would
have fixed the problem, but would still result in lots of string
temporaries that aren't really necessary. Use the appropriate
string.Compare() or string.Equals() methods instead to avoid the
string temporary as well.
2013-03-06 22:42:08 -05:00
Zoltan Varga
0ff40ae70a
Implement Volatile.Read/Write<T> and Interlocked.MemoryBarrier ().
2013-03-07 02:41:46 +01:00
Zoltan Varga
3127206654
Add stubs for some NET 4.5 ThreadLocal ctors/methods.
2013-03-07 02:14:11 +01:00
Zoltan Varga
c808ced1e2
Clean up the code which handles prepending _ to global symbol names on MACH by doing it in aot-compiler.c instead of the image writer.
2013-03-07 02:00:51 +01:00
Mark Probst
18d7a36fdd
[sgen] Just warn, don't abort, on invalid MONO_GC_PARAM or MONO_GC_DEBUG options.
2013-03-06 15:41:35 -08:00
Vincent Povirk
a164fda839
corlib: Implement System.Type.GetTypeFromCLSID.
...
This commit is licensed as MIT/X11.
2013-03-06 16:13:25 -06:00
Jeffrey Stedfast
d9ae8c5b02
[Mono.Debugger.Soft] Made the receiver thread a background thread and gave it a name
2013-03-06 16:00:07 -05:00
Mark Probst
8ae1296fef
[sgen] Allow empty parameters in MONO_GC_PARAMS and MONO_GC_DEBUG.
...
This allows easy appending/prepending, like so:
export MONO_GC_PARAMS="major=marksweep-conc,$MONO_GC_PARAMS"
2013-03-06 11:28:03 -08:00
Zoltan Varga
bdeb52e8f5
Fix some ARM assembly in MONO_CONTEXT_GET_CURRENT ().
2013-03-06 20:20:13 +01:00
Zoltan Varga
2ed4fd9690
Make the JIT icall wrappers for opcode emulation jit icalls call the C icall function directly on MT.
2013-03-06 19:32:00 +01:00
Zoltan Varga
6285a057a2
Modify the way calls to icalls are made from the icall wrappers. Previously, the address to call was encoded in an OP_PCONST, and various pieces of code looked up the value in the jit icall table to see if it was an icall address. With the new approach, the fact that this is an icall address is explicit through the JIT.
2013-03-06 19:32:00 +01:00
Zoltan Varga
6bf5817d5a
Fix AOT on osx+amd64.
2013-03-06 19:32:00 +01:00
Ivo Smits
ceaa9a7fd7
Fixed handling of modifier keys in KeyEventArgs constructor (bug #6707 )
2013-03-06 17:32:54 +01:00
Mark Probst
583e8679de
Merge pull request #593 from Cynede/master
...
Python 3 compatibility in gen-descriptor-tests.py
2013-03-06 08:16:28 -08:00
Marek Safar
0526659302
Disable more security context tests on mobile
2013-03-06 15:50:22 +01:00
Marek Safar
683e97e66e
Use more specific types
2013-03-06 15:49:46 +01:00
Heather
fbc8ec4829
use floor division // instead of / because in python 3 / returns float, // works in python 2 too
2013-03-06 15:19:52 +04:00
Heather
199cc4f8c7
python 3 compatibility in gen-descriptor-tests.py
2013-03-06 15:19:52 +04:00
Marek Safar
8deca1782e
Optimize Activator path used by new() constraint to run less code
2013-03-06 11:18:04 +01:00
Marek Safar
69daa56ade
Fix exception test text
2013-03-06 11:18:04 +01:00
Marek Safar
80d342ff75
Add test from Jb Evain to test biner with user method types
2013-03-06 11:18:04 +01:00
Marek Safar
4687d8e1e9
Activator cannot be used to create default instances of user types
2013-03-06 11:18:03 +01:00
Mark Probst
fbf13e8dab
[sgen] Unify non-concurrent and concurrent M&S.
2013-03-05 14:08:42 -08:00
Mark Probst
8a1eca2e78
[tests] Init Random with defined value in GC descriptor tests.
...
So we can reproduce bugs and compare time/space if we want.
2013-03-05 12:55:42 -08:00
Duncan Mak
333f692e26
Bump version number to 3.0.7.
2013-03-05 13:15:04 -05:00
Zoltan Varga
ddc2a6234f
Change the linkage of the type_info symbols generated by the LLVM backend, since using LLVMPrivateLinkage causes LLVM to generate assembly which is not allowed by clang. Fixes #10811 .
2013-03-05 17:34:58 +01:00
Marek Safar
77c429eeba
Don't mark unused interface methods. Fixes #10866
2013-03-05 17:05:32 +01:00
Marek Safar
768c9e65de
Remove redundant culture info from string concatenations
2013-03-05 17:05:31 +01:00
Atsushi Eno
7890e1e824
[rx] Add missing AssemblyInfos.
2013-03-06 00:56:35 +09:00
Atsushi Eno
cd6dc32e0b
Add Assembly version attributes to hopefully fix bug #10002 .
2013-03-05 23:57:39 +09:00
Marek Safar
7950d8b97d
Update binder primitive conversion to match .net
2013-03-05 15:03:38 +01:00
Marek Safar
4e095429f9
Tweaks to Enum::FormatName to make it faster/smaller
2013-03-05 15:03:38 +01:00
Marek Safar
bc53976c90
Type.FilterAttribute accepts int criteria only
2013-03-05 15:03:38 +01:00
Jeremie Laval
3445a890ea
[monodoc] Make the help source test pass since the current errors are due to known limitations.
2013-03-05 10:54:01 +00:00
Jeremie Laval
b01c154588
[monodoc] Cache intermediary result for legacy Nodes property. Add test.
2013-03-05 10:37:40 +00:00
Jeremie Laval
0dfa3ba87e
[monodoc] Change new API for Nodes to be IList for future-proofing
2013-03-05 10:27:07 +00:00
Marek Safar
f8d9023673
Fixes build
2013-03-05 09:25:50 +01:00
Marek Safar
3234d835a4
Fix wrong usage of ConstructoInfo::Invoke
2013-03-05 09:18:22 +01:00
Martin Baulig
4e88ebd997
Add to EXTRA_DIST.
2013-03-04 19:21:32 -05:00
Duncan Mak
629258db07
Add gc-descriptors to SUBDIRS.
2013-03-04 18:03:41 -05:00
Rodrigo Kumpera
1c359f9d1d
Fix cominterop.
2013-03-04 17:52:01 -05:00
Rodrigo Kumpera
d64a99e420
Fix marshal.c DISABLE_JIT on device.
2013-03-04 16:08:22 -05:00
Miguel de Icaza
a8ab27270a
Merge pull request #577 from UCIS/patch-2
...
Fix serialization of DateTime struct for MS compatibility
2013-03-04 13:01:39 -08:00
Marek Safar
c0c48eb810
Make internal abstract methods virtual to fix MethodBase subclassing.
2013-03-04 21:52:22 +01:00
Martin Baulig
a2c70a3d89
Runtime assembly mapping for PCL.
2013-03-04 14:57:08 -05:00
Zoltan Varga
1cd10c9d51
Dist the Makefile.am.in files. Fixes #10874 .
2013-03-04 20:46:21 +01:00
Mark Probst
3bc4723971
[sgen] Disable parallel M&S in combination with split nursery.
...
It crashes at least sgen-weakref-test.exe, and there's more important stuff to
attend to.
2013-03-04 11:23:16 -08:00
Mark Probst
a43535af4b
Merge branch 'feature-descriptor-tests'
2013-03-04 10:47:49 -08:00
Mark Probst
f78581ec95
[tests] Test valuetype GC descriptors, too.
2013-03-04 10:47:29 -08:00
Mark Probst
a4f864a34c
[tests] Optional big-switch version of GC descriptor test.
...
This takes ages to compile with mcs. See bug #10781 .
2013-03-04 10:47:29 -08:00
Mark Probst
e5c6a4bd25
[tests] Test for GC descriptors - first draft.
...
This runs for a long time and potentially uses lots of memory. It's not integrated
in the test suite and must be run manually.
2013-03-04 10:47:28 -08:00
Martin Baulig
879250e505
Misc PCL-related API fixes.
2013-03-04 12:40:21 -05:00
Mark Probst
3a87e57712
Merge pull request #586 from awinters-fvs/awinters/sgen-los-sizeof-fix
...
[sgen] marksweep-conc 64-bit pointer arithmetic fix for segfault
2013-03-04 08:39:48 -08:00
Rodrigo Kumpera
6963d216c5
Merge pull request #589 from qhalid/master
...
Xamarin Bug 10879: Use of mono-sgen causes mono path detection fallback
2013-03-04 08:32:21 -08:00
Chris Ball
444146bc86
Prevent path fallback for mono-sgen and pedump
...
Test updated to allow "mono-sgen" and "pedump" binaries to "walk" the parent
directory to discover the install location of the mono runtime in the same
manner as the "mono" binary.
2013-03-04 17:16:42 +01:00
Miguel de Icaza
e8be3702fc
Merge pull request #585 from mk8/master
...
Bug 10233 fix proposal for Socket.BeginSendFIle
2013-03-04 08:13:10 -08:00
Miguel de Icaza
3f0709d1e3
Merge pull request #588 from Daniel15/bug-10872
...
Fix bug #10872 (Expires and Last-Modified headers should use two-digit days)
2013-03-04 08:12:23 -08:00
Daniel Lo Nigro
94fda9450f
Use standard RFC1123 ("R") format specifier for Expires and Last-Modified headers. Fixes Xamarin bug #10872
2013-03-04 22:13:10 +11:00
Marek Safar
c36e553fa0
Add missing target checks to ConstructorInfo::Invoke
2013-03-04 11:29:24 +01:00
Marek Safar
998e88ce1a
Use Activator instead of InvokeMember with incomplete target value
2013-03-04 11:27:22 +01:00
Marek Safar
b5fe12cbc3
Remove unused icall
2013-03-04 10:06:25 +01:00
Marek Safar
b26fc714dd
Manually remove code which is disabled but compiler cannot remove automatically.
2013-03-04 09:14:08 +01:00
Marek Safar
65d96594f5
Use local invoke method instead of doing double virtual call dispatch
2013-03-03 22:23:48 +01:00
Marek Safar
57735a0aba
Use faster array cloning
2013-03-03 22:22:21 +01:00
Marek Safar
ea8879d7bf
Maintain only single version of ordinal string comparers
2013-03-02 22:24:26 +01:00
Vincent Povirk
3a44c65b03
Ignore the gdiplus dllmap on Windows.
2013-03-02 13:54:47 -06:00
Marek Safar
a08a39ffe6
Don't clone internally used era values
2013-03-02 18:56:31 +01:00
Marek Safar
6c083808ce
Use faster/smaller versions for some string comparisons
2013-03-02 18:56:31 +01:00
Alex Rønne Petersen
12a0479340
metadata/gc.c: Fix a warning when casting MonoInternalThread->tid.
2013-03-02 10:40:22 +01:00
Torello Querci
8691f6d8d1
Client Socket close added
2013-03-02 08:31:14 +01:00
awinters-fvs
d83533bc78
Subtract sizeof LOSObject instead of LOSObject*
...
On 64-bit mono with marksweep-conc enabled, sgen_los_pin_object()
would mistakenly set the cardtable_mod_union pointer field to 1
due to the incorrect pointer math in sgen_los_header_for_object()
2013-03-01 17:13:14 -08:00
Zoltan Varga
348755d3b1
Fix the generation of stelemref wrappers in full-aot mode. Some wrappers were not generated with the previous approach. Fixes #10826 .
2013-03-02 01:27:46 +01:00
Rodrigo Kumpera
c8b1c2b3a7
Erase the type of more fields so we can link away a few more types.
2013-03-01 18:58:35 -05:00
Rodrigo Kumpera
07a220c61c
Mobile should not have the COM types set.
2013-03-01 18:58:35 -05:00
Zoltan Varga
616f8f6604
Fix the protocol version check in the TypeMirror.IsInitialized property.
2013-03-02 00:55:42 +01:00
Zoltan Varga
703dcd84c6
Add an IsInitialized property to TypeMirror which returns whenever the type initializer has ran.
2013-03-02 00:53:06 +01:00
Sebastien Pouliot
be43ee1da2
Reduce XML processing time (GetAttribute was returning String.Empty, not null)
2013-03-01 16:38:42 -05:00
Zoltan Varga
f25263db7a
Fix the lookup of some ctors in exception.c. Fixes #10774 .
2013-03-01 22:33:17 +01:00
Marek Safar
1d8669c5c5
Clean up test encoding
2013-03-01 22:08:56 +01:00
Marek Safar
c0790868bc
Throw exception instead of creating invalid object when remoting is disabled
2013-03-01 22:06:34 +01:00
Zoltan Varga
d6b05a8304
Remove the unmaintained and incomplete alpha backend.
2013-03-01 20:27:07 +01:00
Marek Safar
28ddbf1429
Build correct version of System.Net for non-mobile profile
2013-03-01 18:55:49 +01:00
Marek Safar
256ac6135d
Default to expression contextual keywords for repl
2013-03-01 18:39:52 +01:00
Rodrigo Kumpera
b078850ed0
Fix cross compilation under DISABLE_REMOTING
2013-03-01 12:25:58 -05:00
Rodrigo Kumpera
8b1a6afc56
Don't check for TransparentProxies on mobile as they don't work.
2013-03-01 11:32:34 -05:00
Rodrigo Kumpera
e2d2459f30
RemotingServices::IsTransparentProxy doesn't work on mobile.
2013-03-01 11:32:12 -05:00
Marek Safar
7a1ad27ff0
Disable failing socket test
2013-03-01 17:13:24 +01:00
Rodrigo Kumpera
c8e286a93b
Bring back ActivationServices::AllocateUninitializedClassInstance as this is used by the serialization machinery and we need it to work on mobile.
2013-03-01 11:11:26 -05:00
Rodrigo Kumpera
b492a88007
Fix again object::GetType ()
2013-03-01 10:55:25 -05:00
Rodrigo Kumpera
abe9dc6206
Revert "Fix object::GetType when remoting is enabled."
...
This reverts commit 93e2d1dc48 .
2013-03-01 10:54:09 -05:00
Rodrigo Kumpera
93e2d1dc48
Fix object::GetType when remoting is enabled.
2013-03-01 10:52:03 -05:00
Marek Safar
a4c61d97f6
Fix ReadOnlyDictionary public api
2013-03-01 16:10:34 +01:00
Marek Safar
dd4cc7ca66
Tests update for mobile profile
2013-03-01 15:31:25 +01:00
Torello Querci
0624fa42f1
Fix for bug 10233 about Socket.BeginSendFile
2013-03-01 14:30:04 +01:00
Marek Safar
59af20df27
Merge pull request #584 from LogosBible/bug10789-resubmit
...
System.Text.Decoder throws ArgumentOutOfRangeException when it should no...
2013-03-01 05:11:23 -08:00
Martin Potter
643d8b8b3a
System.Text.Decoder throws ArgumentOutOfRangeException when it should not. Fixes Bug #10789
...
Similar to previously reported bug #6404 , according to the documentation at http://msdn.microsoft.com/en-us/library/h6w985hz.aspx , System.Text.Encoder throws ArgumentOutOfRangeExceptions when it should not. From the documentation, an ArgumentOutOfRangeException should be thrown when:
charIndex, charCount, byteIndex, or byteCount is less than zero.
-or-
The length of chars - charIndex is less than charCount.
-or-
The length of bytes - byteIndex is less than byteCount.
To reproduce, run the following code:
int charsUsed, bytesUsed;
bool completed;
byte[] bytes = new byte[4096];
char[] chars = new char[4096];
System.Text.Encoding.UTF8.GetDecoder().Convert(bytes, 0, 0, chars, 4096, 0, false, out bytesUsed, out charsUsed, out completed);
Expected:
The code runs, charsUsed equals zero, bytesUsed equals zero and completed is true.
Actual:
Mono throws an ArgumentOutOfRangeException for charIndex.
There are also other behavioral differences between Mono and Microsoft's implementation for the GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) method, such as:
byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes, 0, 0, chars, 10, false);
On Mono, this results in an ArgumentOutOfRangeException for charIndex, where for Microsoft charactersWritten = 0.
Similarly:
byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes, 0, 4096, chars, 10, false);
On Mono, this results in the same ArgumentOutOfRangeException for charIndex, where Microsoft throws and ArgumentException. since "chars does not have enough capacity from charIndex to the end of the array to accommodate the resulting characters."
2013-03-01 05:05:34 -08:00
Marek Safar
d47a9f2655
Merge pull request #583 from TalAloni/master
...
Make x64 compilation work out of the box
2013-03-01 01:18:38 -08:00
TalAloni
1df6dc98e5
Make x64 compilation work out of the box
...
Change the default projects that are compiled for x64
2013-03-01 11:13:38 +02:00
Marek Safar
5aa7859bd6
Merge pull request #581 from TalAloni/master
...
System.IO.Path bugfix
2013-02-28 23:31:03 -08:00
Marek Safar
971be4d9b3
Merge pull request #579 from LogosBible/bug10788
...
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can w...
2013-02-28 23:27:31 -08:00
TalAloni
9a59023366
Added tests to PathTest.cs
2013-03-01 09:04:11 +02:00
Miguel de Icaza
311684d140
When serializing floats and doubles, use the InvariantCulture, so that floats are always stored in Json format, not the locale-specific format; As reported on irc
2013-02-28 23:09:50 -05:00
Zoltan Varga
8575b06a0e
Implement a fast version of mono_get_lmf_addr () on ARM by inlining the call to pthread_getspecific () into the managed to native wrappers.
2013-03-01 05:01:19 +01:00
Zoltan Varga
53d6f3c150
Add some support for calling JIT icalls directly in full-aot mode.
2013-03-01 04:09:03 +01:00
TalAloni
19baf6c162
Update Path.cs
...
Fixed Path.GetDirectoryName() bug when path is in the following form: 'C:filename'
2013-03-01 02:47:07 +02:00
Martin Potter
7ca2aa01d7
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can write past end of char[]. Fixes Bug#10788
...
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) eventually calls into UTF8Encoding.InternalGetChars, which does not perform any bounds checking on the passed in char* until after the first byte > 0x80 is encountered. For instance:
byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes,
0, 4096, chars, 9, false);
will result in no errors and charactersWritten = 4096.
2013-02-28 16:26:02 -08:00
Zoltan Varga
0b96436216
Fix the handling of unresolved pinvoke methods in full-aot mode.
2013-03-01 00:23:10 +01:00
Martin Baulig
6717d6a6e3
Add System.Collections.ObjectModel.ReadOnlyDictionary.
2013-02-28 18:04:12 -05:00
Zoltan Varga
cba753f832
Avoid the str pc,[r0]! instruction in MONO_CONTEXT_GET_CURRENT () which is not allowed by recent gcc versions.
2013-02-28 23:42:44 +01:00
Martin Baulig
670abe568d
Really fix the build :-)
2013-02-28 17:30:46 -05:00
Zoltan Varga
e972e43e83
Fix the build.
2013-02-28 23:28:27 +01:00
Zoltan Varga
dc94b16c6e
Fix MONO_CONTEXT_GET_CURRENT () clobbering a register before using it on ARM.
2013-02-28 23:27:43 +01:00
Duncan Mak
0135862f84
Try to fix the build.
...
Include the MonoTrampoline definition inside the DISABLE_REMOTING block.
2013-02-28 17:20:59 -05:00
Zoltan Varga
d3a017fba7
Emit an explicit null check for some calls made out from gshared code.
2013-02-28 23:19:57 +01:00
Rodrigo Kumpera
8a9fe55822
Merge branch 'mono-disable-remoting'
2013-02-28 15:07:37 -05:00
Zoltan Varga
9c9f9687f5
Remove an unused argument from mini_add_method_trampoline ().
2013-02-28 21:06:24 +01:00
Rodrigo Kumpera
4a59194ee0
The runtime no longer need the remoting types under DISABLE_REMOTING.
2013-02-28 15:00:00 -05:00
Rodrigo Kumpera
b36302a275
Rework castclass and isinst OPs to ignore transparent proxies under DISABLE_REMOTING.
2013-02-28 15:00:00 -05:00
Rodrigo Kumpera
839bed6b85
Disable most remoting code under DISABLE_REMOTING.
...
When remoting is disabled we don't export most of the code needed for it.
This includes JIT suppport, marshalling support (no remoting related wrappers),
transparent proxies won't proxy and, finally, ContextBound/MarshalByRef objects
will no longer be special.
2013-02-28 15:00:00 -05:00
Rodrigo Kumpera
33c4f54a02
Hide marshalbyref and contextbound properties under accessors so we can easily configure them out.
2013-02-28 14:55:18 -05:00
Rodrigo Kumpera
2641b95392
Add configure option to disable remoting.
...
Disabling remoting includes type proxies, x-domain communication and makes COM unusable.
2013-02-28 14:55:18 -05:00
Zoltan Varga
a7599c836b
Fix gsharedvt delegate invokes from gsharedvt code.
2013-02-28 20:54:35 +01:00
Rodrigo Kumpera
0146859e63
Merge pull request #537 from madewokherd/ccwmarshal
...
cominterop: Free IMarshal interface with the CCW.
2013-02-28 11:49:46 -08:00
Atsushi Eno
79d5d39dae
[mkbundle] add explicit --style option to specify output style for as.
2013-03-01 03:40:58 +09:00
Marek Safar
1d453c29e2
Remove ArrayList dependency
2013-02-28 16:59:09 +01:00
Marek Safar
e93bb32168
Use generic comparer
2013-02-28 16:58:40 +01:00
Marek Safar
a336b58fdc
Use faster versions of string comparers
2013-02-28 15:42:55 +01:00
Marek Safar
277f4d7ab3
Remove culture info from simple string concatenation formating
2013-02-28 15:42:55 +01:00
Marek Safar
ad5ed89038
Remove static constructor from HashSet
2013-02-28 15:42:55 +01:00
Zoltan Varga
d669e4e8fc
Add static rgctx trampolines in calls from gshared to gsharedvt code if needed.
2013-02-28 15:01:28 +01:00
Rodrigo Kumpera
f91630e1a2
Ignore activationAttributes and never try to create a proxy under MOBILE.
2013-02-28 08:35:42 -05:00
Marek Safar
e75e3a0a48
Don't build windows code paths on mobile profiles
2013-02-28 10:56:02 +01:00
Marek Safar
13d9a0f334
Fix compiler warnings
2013-02-28 09:19:47 +01:00
Marek Safar
e25fa38a28
Don't add Array::BinarySearch dependency for unreachable code
2013-02-28 09:19:47 +01:00
Marek Safar
788e0e94af
Use faster running on windows check
2013-02-28 09:19:46 +01:00
Marek Safar
1d2e9b0359
Merge pull request #576 from UCIS/patch-1
...
Fix ISerializable implementation in mcs/class/corlib/System/OperatingSystem.cs
2013-02-27 23:48:52 -08:00
Ivo Smits
5d2b57474e
Fix serialization of DateTime struct for MS compatibility
...
Microsoft uses the UInt64 for the serialized dateData field.
Microsoft also uses Convert.ToUInt64 to convert the serialized
value to UInt64, which results in an overflow exception when
deserializing a DateTime serialized by mono.
Suggested change may break compatibility with previous versions
of mono, but should work with the Microsoft implementation.
2013-02-28 02:27:40 +01:00
Ivo Smits
aefeb5f8fa
Update mcs/class/corlib/System/OperatingSystem.cs
...
"The ISerializable interface implies a constructor with the signature constructor (SerializationInfo information, StreamingContext context)."
from http://msdn.microsoft.com/en-us/library/system.runtime.serialization.iserializable.aspx
2013-02-28 02:18:42 +01:00
Sebastien Pouliot
42c8d96762
Refactor to make it possible for the linker to remove, by default, less used Calendar types from applications
2013-02-27 20:11:10 -05:00
Sebastien Pouliot
36ce2f7982
Fix typo in test name (confusing)
2013-02-27 20:11:10 -05:00
Mark Probst
872cff99fd
[sgen] Remove SCAN_OBJECT_ACTION - dead code.
2013-02-27 15:24:07 -08:00
Mark Probst
de4d1effb3
Merge branch 'feature-remove-ssb'
2013-02-27 15:14:15 -08:00
Mark Probst
d0ee020c47
[sgen] Remove unnecessary entries from remembered set function table.
2013-02-27 15:04:56 -08:00
Mark Probst
a3371764a9
[sgen] Remove SSB write barrier.
2013-02-27 15:04:56 -08:00
Mark Probst
00b951e0e1
[tests] Make finalizer-wait.cs less prone to pinning.
2013-02-27 15:03:57 -08:00
Marek Safar
173ddd23a1
Add missing file
2013-02-27 23:21:04 +01:00
Rolf Bjarne Kvinge
2158f57208
Change g_log (and friends) to print to stderr. Fixes #10577 .
...
Stdout is block buffered somewhere (and fflushing 'stdout' doesn't
fix it, only fflushing all streams works), and takes forever to
show up in any output.
2013-02-27 23:06:40 +01:00
Marek Safar
bb05074a9f
Replace some hashtables with dictionaries
2013-02-27 22:58:32 +01:00
Marek Safar
a157be7bcb
Fix Type and Module name filters to match
2013-02-27 22:58:32 +01:00
Marek Safar
cfe97bf3a5
Share more common code
2013-02-27 22:58:31 +01:00
Mark Probst
8708924702
[sgen] Cementing bugfix for concurrent M&S.
...
We have to pin cemented objects at the finishing collection pause, too. If we don't,
we don't scan them, and if they reference major objects that aren't referenced
elsewhere, we don't mark those major objects, and we break.
2013-02-27 13:29:51 -08:00
Mark Probst
b36d7ed735
[sgen] Fix names of descriptor types in describe_ptr().
2013-02-27 13:29:51 -08:00
Mark Probst
246d0e2b96
[sgen] Fix build of sgen-grep-binprot.
2013-02-27 13:29:51 -08:00
Mark Probst
c649666953
[sgen] Binary protocol entries for scanning objects and vtypes.
2013-02-27 13:29:50 -08:00
Zoltan Varga
1406545a9f
Fix the build.
2013-02-27 20:36:47 +01:00
Zoltan Varga
4756cbdd1c
Fix the calculation of TARGET_IOS/OSX in configure. Fixes #10726 .
2013-02-27 19:53:53 +01:00
Marek Safar
20e40c448c
Fix space in makefile
2013-02-27 14:57:15 +01:00
Atsushi Eno
5d13979d85
fix collation/normalization resource builder up to complete build.
...
Then there are some resource value differences that likely needs other
fixes. But since some people seem to have changed some tests "to match
.NET" that actually changed the behavior, it won't recover the working
state. The resource generator generates "almost compatible" resource,
but won't be perfect.
2013-02-27 22:46:27 +09:00
Marek Safar
58ab8540ec
Fixes make dist
2013-02-27 14:20:22 +01:00
Marek Safar
1ff548cb12
Update for mobile profile
2013-02-27 14:08:38 +01:00
Atsushi Eno
76af46a676
Fix monodroid build.
2013-02-27 17:51:56 +09:00
Atsushi Eno
beefa7d320
Fix possible NRE caused by null XmlResolver settings.
2013-02-27 16:50:54 +09:00
Marek Safar
241d34dd7c
Revert wrong ikvm update from 10ebeb32e1
2013-02-27 08:48:31 +01:00
Alan McGovern
8691ffa0c9
GetDisplayName should either be internal or public
2013-02-27 00:39:09 +00:00
Alan McGovern
ef40541b14
Really make GetDisplayName public in MOBILE only
...
The wrong 'public' was ifdef'ed in the last commit
2013-02-27 00:32:54 +00:00
Duncan Mak
5f980f0b8d
Revert "Bump version to 3.0.7."
...
This reverts commit 7874bc4045 .
2013-02-26 18:44:26 -05:00
Duncan Mak
7874bc4045
Bump version to 3.0.7.
2013-02-26 17:36:35 -05:00
Duncan Mak
b46e59ee55
Make GetDisplayName public in MOBILE only.
...
The previous change, which made GetDisplayName always public, broke this
advertised technique for detecting Mono:
http://stackoverflow.com/questions/8413922/programmatically-determining-mono-runtime-version
2013-02-26 17:36:35 -05:00
Duncan Mak
cb454b4817
Remove trailing whitespace.
2013-02-26 17:36:35 -05:00
Rodrigo Kumpera
10ebeb32e1
Fix the hppa removal.
2013-02-26 17:25:50 -05:00
Marek Safar
99b72a868b
Fix failing tests
2013-02-26 23:19:34 +01:00
Marek Safar
c3cdc206bd
Update ikvm
2013-02-26 22:57:36 +01:00
Zoltan Varga
9433fb45d8
Allow 'ios' as the os part of the target triple on ARM.
2013-02-26 22:43:53 +01:00
Marek Safar
d0320c11a4
Build all resource test types
2013-02-26 22:29:32 +01:00
Zoltan Varga
ca029f6f76
Remove the unmaintained and incomplete hppa backend.
2013-02-26 22:08:41 +01:00
Marek Safar
9dd1d2f32a
Fix ambiguous type in test
2013-02-26 21:40:36 +01:00
Marek Safar
b8ceff9bf8
Fix make dist
2013-02-26 21:26:33 +01:00
Zoltan Varga
78808ee784
Revert "Add beginnings of support for calling JIT icalls directly in full-aot mode."
...
This reverts commit 09354d2feb .
Revert this for now as it breaks MT.
2013-02-26 20:21:55 +01:00
Duncan Mak
7f938cc7a1
Bump version to 3.0.6
2013-02-26 13:22:11 -05:00
Marek Safar
aff6d0592c
Mobile tests update
2013-02-26 17:17:22 +01:00
Marek Safar
762b050917
Merge tests from mobile branch
2013-02-26 16:28:36 +01:00
Marek Safar
a3b985b3c0
Don't add compiler generated assembly attributes to satellite assemblies
2013-02-26 16:27:58 +01:00
Marek Safar
caeba062fd
Test clean up
2013-02-26 14:47:39 +01:00
Marek Safar
cc55ffec90
Fixes build
2013-02-26 14:47:07 +01:00
Marek Safar
101a454dfa
Fix mobile test
2013-02-26 10:37:02 +01:00
Marek Safar
93c35ffe14
Fix more compiler warnings
2013-02-26 10:37:02 +01:00
Marek Safar
510f20d376
Fix failing mobile tests
2013-02-26 10:37:01 +01:00
Mark Probst
62c93fdae3
[sgen] Fix small bitmap descriptor bug with large objects.
...
Objects larger than 64k whose references still fit within a small bitmap
would overflow the size bit field within the descriptor.
2013-02-25 16:33:39 -08:00
Zoltan Varga
84ec6ef7a0
Fix the DISABLE_JIT build.
2013-02-25 23:12:38 +01:00
Zoltan Varga
b7ffcc62ae
Fix the DISABLE_JIT build.
2013-02-25 22:59:30 +01:00
Zoltan Varga
09354d2feb
Add beginnings of support for calling JIT icalls directly in full-aot mode.
2013-02-25 22:35:49 +01:00
Marek Safar
4bc748b49d
Fixes failing tests
2013-02-25 22:10:45 +01:00
Marek Safar
7ebf04f546
Remove another duplicate type
2013-02-25 21:53:55 +01:00
Marek Safar
a98054a9f3
Fixes build
2013-02-25 21:53:46 +01:00
Marek Safar
8e4f05388e
Better error message
2013-02-25 21:53:23 +01:00
Marek Safar
5aeeb9cf7b
Fix few warnings
2013-02-25 19:10:09 +01:00
Marek Safar
0647a5d16b
Remove duplicated files from system.dll (saves about 100kb)
2013-02-25 19:10:09 +01:00
Marek Safar
10cdbcbb43
Remove unused variable
2013-02-25 19:10:08 +01:00
Mark Probst
ee035e3eb4
Make Mono.Runtime public on mobile. Make GetDisplayName() public.
2013-02-25 09:50:57 -08:00
Zoltan Varga
2f84b362ab
Merge pull request #571 from igotti-google/jt2
...
Generic jumptables support (needed for ARM NaCl port),
2013-02-25 07:12:30 -08:00
Nikolay Igotti
a8bd364cf9
Moved all jumptables code to mini/ directory.
2013-02-25 17:41:40 +04:00
Marek Safar
feb5080d23
Optimize parameters handling to do much less allocation
2013-02-25 14:11:04 +01:00
Marek Safar
0eb3bdce83
Add static to static like type
2013-02-25 14:11:03 +01:00
Marek Safar
d4fb0b0e4e
Clean up params binder
2013-02-25 14:11:03 +01:00
Marek Safar
02e0ddfe44
Expand params arguments only when not binding directly parameter types. Fixes #10551
2013-02-25 14:11:03 +01:00
Marek Safar
31de3d39ae
Fix loading of documentation XML fragments to use source file and not process path
2013-02-25 14:11:02 +01:00
Marek Safar
2ae71b7729
New test
2013-02-25 14:11:02 +01:00
Marek Safar
f5662fa38f
Add magic token for path replacement
2013-02-25 14:11:02 +01:00
Marek Safar
57ac5830e5
Fix error message to match others
2013-02-25 14:11:01 +01:00
Jérémie Laval
6431a69e79
[System] Add System.Net.WebSockets to the build
2013-02-24 20:48:18 +01:00
Jérémie Laval
3bc8c42183
[System] Add stub for System.Net.WebSockets
2013-02-24 20:34:34 +01:00
Miguel de Icaza
19298dc0a0
Merge pull request #573 from mrieker/master
...
tasklets.c: update used stack size
2013-02-23 18:23:34 -08:00
Stephen McConnel
f6dfc59b82
Fix Xamarin bug 7594.
...
@(DocFileItem) is an output of CoreCompile, not an input. (This bug still
exists in the current sources in the mono git repository.)
2013-02-23 18:35:22 -05:00
Zoltan Varga
24810d5a82
Store the domain where an exception event happened to avoid an assert if single stepping is started from that location.
2013-02-23 21:26:26 +01:00
[email protected]
0c102a1e6f
tasklets.c: update used stack size
...
was allowing case of stack_used_size < num_bytes to
slip by so restore function wasn't restoring all bytes
2013-02-23 14:55:35 -05:00
Zoltan Varga
eed19f9f77
Fix a regression introduced by the gsharedvt changes. Delegate invokes to gshared methods using a non-generic delegate type would crash. Fixes #10513 .
2013-02-23 20:00:02 +01:00
Jack Pappas
fe506dd7c4
Use IPPROTO_TCP instead of SOL_TCP for cross-platform compatibility.
2013-02-23 00:24:14 -05:00
Jack Pappas
2a42e4b294
Remove #ifdefs so ss_flags is always set to zero.
...
Removed the #ifdefs which used a different value for 'ss_flags' on Linux.
According to the POSIX standard, the SS_ONSTACK flag can never be used as input to the 'sigaltstack' function -- it can only be set by the 'sigaltstack' function itself, and tested after the function returns.
2013-02-22 21:06:25 -05:00
Rodrigo Kumpera
be4ae1dbb8
Erasure the type of some fields in AppDomain so the linker can remove their types.
2013-02-22 20:11:17 -05:00
Rodrigo Kumpera
21789cb4c3
The runtime doesn't raise AccessViolationException.
2013-02-22 20:11:17 -05:00
Mark Probst
0a858d2584
Merge branch 'feature-concurrent-evacuation'
2013-02-22 16:35:00 -08:00
Mark Probst
2ad5ce46f4
[gc] Mono.Runtime method for enabling/disabling synchronous collections.
2013-02-22 16:26:54 -08:00
Mark Probst
da6773d659
[sgen] Do non-concurrent GC to evacuate when the need arises.
2013-02-22 16:26:54 -08:00
Mark Probst
0a578ac2e7
[sgen] Evacuation for concurrent mark (during forced collections).
2013-02-22 16:26:53 -08:00
Mark Probst
ba49b2ceeb
[sgen] Make synchronous collections with marksweep-conc more standard.
...
Before, to do a synchronous collection with marksweep-conc we would start a
concurrent collection and then wait for it to finish. To integrate evacuation with
marksweep-conc we need synchronous collections to work like they do with the
non-concurrent collectors.
2013-02-22 16:26:53 -08:00
Mark Probst
13f410f4e5
[sgen] Remove concurrent_cementing argument to sgen_add_to_global_remset().
...
Since it doesn't need to pass it on to sgen_cement_lookup_or_register() it's not
needed anymore.
2013-02-22 16:26:53 -08:00
Mark Probst
9fb356fd6a
[sgen] Remove redundant argument to sgen_cement_lookup_or_register().
...
It can figure out whether a concurrent collection is running on its own.
2013-02-22 16:26:53 -08:00
Mark Probst
4c512cb316
[sgen] Fix a misplaced #ifdef.
...
This disabled some debugging stuff on platforms not
supporting DTrace.
2013-02-22 16:26:53 -08:00
Mark Probst
cb78c782e9
[sgen] Remove obsolete argument to clear_unreachable_ephemerons().
2013-02-22 16:26:52 -08:00
Rodrigo Kumpera
1643364ee8
Disable the native method-builder under DISABLE_JIT.
...
* method-builder.c: Disable all code related to producing IL under DISABLE_JIT.
This has the side effect of crippling wrapper debugging on device, but given this
feature (IL debugging of wrappers) has almost no users, we're ok.
2013-02-22 16:38:12 -05:00
Rodrigo Kumpera
7396c0a75d
Remove 3 types from mono_defaults that were no longer used.
2013-02-22 16:38:12 -05:00
Sebastien Pouliot
3fd5d6bf8c
On OSX and iOS use CommonCrypto/Digest for the runtime requirement on SHA1 and MD5.
2013-02-22 16:30:40 -05:00
Miguel de Icaza
7899d2f452
Merge pull request #554 from deplinenoise/ppc_fixes
...
PPC build fixes
2013-02-22 13:25:21 -08:00
Miguel de Icaza
dd5e72a46f
Merge pull request #556 from jack-pappas/ipproto-patch
...
Added checks for BSD-compliant protocol constants.
2013-02-22 13:22:36 -08:00
Miguel de Icaza
6578e675d6
Merge pull request #557 from jack-pappas/gacutil-patch
...
Fixed gacutil so assemblies with the ".exe" extension can be uninstalled.
2013-02-22 13:22:12 -08:00
Miguel de Icaza
5fbc1cd095
Merge pull request #560 from duboisj/master
...
Allow cross-compilation on Mac OS X host to Windows target.
2013-02-22 13:07:11 -08:00
Miguel de Icaza
dd6251e6f8
Merge pull request #561 from akoeplinger/bufferless-fix
...
System.Web: Fixed bugs in HttpRequest.GetBufferlessInputStream()
2013-02-22 12:44:17 -08:00
Marek Safar
f0ad346fb6
Mobile tests update
2013-02-22 21:41:19 +01:00
Marek Safar
2e9d9f91be
Remove old workaround
2013-02-22 21:41:18 +01:00
Marek Safar
4bf37f4389
Add missing api
2013-02-22 21:41:18 +01:00
Sebastien Pouliot
7576b68413
Use an internal call (to an existing function) so it allow dropping SHA1 (and dependencies) when linking applications. Saves 2kb on (unstripped) mscorlib and 4kb on the final binary (release).
2013-02-22 13:36:01 -05:00
Sebastien Pouliot
2162983f67
Do a lighter check for public keys in the mobile profile. It's faster and also quite smaller, once linked. That saves 67kb on (unstripped) mscorlib and 110kb on the final binary (release).
2013-02-22 13:03:50 -05:00
Marek Safar
3ecc81b720
Merge pull request #569 from knocte/fix_cairo_profile_versions_problem
...
[Cairo] Fix mono-cairo.pc file to not hardcode 2.0 profile
2013-02-22 05:45:06 -08:00
Nikolay Igotti
2027600204
No need for indirection in exception checkers.
2013-02-22 14:24:27 +04:00
Marek Safar
cf650fb3fb
Update 4.5 bcl solution files
2013-02-21 17:25:06 +01:00
Nikolay Igotti
b5ff0f2a63
Fixed max instruction lengths.
2013-02-21 18:22:42 +04:00
Nikolay Igotti
8f7a7a74e6
Generic jumptables support (needed for ARM NaCl port),
...
and ARM port support for that.
Code submitted under MIT/X11 license.
2013-02-21 18:03:30 +04:00
Marek Safar
5af8f50a84
Update to mdbdump to print more mdb details
2013-02-21 14:39:02 +01:00
Marek Safar
6c06b7d204
Optmize some empty array allocations
2013-02-21 14:38:30 +01:00
Marek Safar
c132a3c3b0
Fix BinaryReader.ReadChars() no longer recursively calls BinaryReader.Read(). Patch based on tomspilman pull request #559
2013-02-21 12:42:06 +01:00
Marek Safar
17e055b95f
Merge pull request #568 from devlead/patch-1
...
Added missing properties available in .Net 4.5
2013-02-21 00:46:45 -08:00
Mattias Karlsson
ddc0ddef4a
Misunderstood styling feedback
...
My bad should have looked at the excellent README in /mcs/class/README.
2013-02-21 09:08:39 +01:00
Andres G. Aragoneses
f7f522d26c
[Cairo] Fix mono-cairo.pc file to not hardcode 2.0 profile
...
Fixes BXC#10484.
2013-02-21 00:52:08 +00:00
Mattias Karlsson
6dc257da35
Fixed code style brace same line & remove space before brace
2013-02-21 01:06:02 +01:00
Marek Safar
16dc448b34
Compile more await identifiers. Fixes part of #10314
2013-02-20 21:58:56 +01:00
Marek Safar
b6844cbcf6
Disable failing test until I have mental strength to fight with stupid jay again
2013-02-20 21:57:29 +01:00
Marek Safar
305be6aa18
Fix contextual keywords parsting. Fixes part of #10314
2013-02-20 15:57:40 +01:00
Mattias Karlsson
3145ca96ce
Added missing properties available in .Net 4.5
2013-02-20 14:39:37 +01:00
Marek Safar
5079328f9d
Capture temporary local variables in async context. Fixes #10341
2013-02-20 11:16:23 +01:00
Jeremie Laval
fb38f2fba8
[monodoc] Fix test compilation
2013-02-20 10:07:43 +00:00
Sebastien Pouliot
aeff8ec420
Skip SDK and product assemblies when preserving https
2013-02-19 21:12:41 -05:00
Sebastien Pouliot
7b7efbd2ce
Fix expected value (for System.Security.Cryptography.AesManaged.FeedbackSize) to make test pass
2013-02-19 21:12:41 -05:00
Marek Safar
e34b166d2d
Report correct error message when lambda body contains common error later than at first error hit
2013-02-19 23:07:21 +01:00
Rodrigo Kumpera
e81e2f206d
Fix DISABLE_JIT for unstripped builds.
2013-02-19 16:29:31 -05:00
Marek Safar
4baf6588e7
Emit correct this reference when using async lambdas from another lambda with this reference only
2013-02-19 22:08:18 +01:00
Sebastien Pouliot
26308ff874
Do not initialize (and mark) nested types if they were not already marked. Avoid adding unused nested types in linked assemblies
2013-02-19 15:30:22 -05:00
Mark Probst
e772f6bf46
[sgen] In the MONO_GC_PARAMS usage, show marksweep-conc as well.
2013-02-19 11:00:47 -08:00
Mark Probst
7a3f4e217b
[sgen] Don't mark objects on promotion.
...
This was too conservative and the only reason we needed is because we
had bugs that were partially obscured by this code.
2013-02-19 11:00:47 -08:00
Duncan Mak
2d244d6e9e
Bump version to 3.0.5
2013-02-19 13:30:05 -05:00
Jeffrey Stedfast
802e5cdcba
[Mono.Debugger.Soft] Added ColumnNumber property to StackFrame
2013-02-19 12:19:21 -05:00
Zoltan Varga
8ece8c9b72
Fix non-aot support for gsharedvt.
2013-02-19 18:13:40 +01:00
Zoltan Varga
3108f76b13
Avoid deadce on OP_INEG since it sets the condition codes, and the OP_LNEG decomposition depends on this on x86. Fixes #10320 .
2013-02-19 15:24:24 +01:00
Zoltan Varga
b4fd5d2755
Fix sdb tests.
2013-02-19 14:56:36 +01:00
Zoltan Varga
0d8e4fd1c2
Fix sdb tests hanging, some of them still fail.
2013-02-19 12:48:17 +01:00
Zoltan Varga
b0d089e5c7
Rework the gsharedvt trampoline code to use an ios abi compatible frame.
2013-02-19 12:26:56 +01:00
Marek Safar
8332a60b8a
Better fix for valid il code for conditional expression of two casted interfaces
2013-02-19 11:56:59 +01:00
Rodrigo Kumpera
16bcbac7b2
More DISABLE_JIT work.
2013-02-18 18:09:43 -05:00
Rodrigo Kumpera
6eff5f18ab
Fix the disable check.
2013-02-18 18:09:42 -05:00
Rodrigo Kumpera
6f5426a684
Kill lots of code under DISABLE_JIT and DISABLE_VERIFIER.
2013-02-18 18:09:42 -05:00
Rodrigo Kumpera
bd5933c9bf
Mention the verifier --enable-minimal switch.
2013-02-18 18:09:42 -05:00
Rodrigo Kumpera
94baf5685b
Stub the implementation of MarshalByRef to help the linker kill some remoting code.
2013-02-18 18:09:42 -05:00
Marek Safar
eb949bf826
Emit valid il code for conditional expression of two casted interfaces
2013-02-18 23:29:32 +01:00
Zoltan Varga
f918007ba8
Get rid of mono_aot_wrapper_name (), it is no longer used.
2013-02-18 22:22:10 +01:00
Jeffrey Stedfast
9731ba29ff
[Mono.Debugger.Soft] Mark StepFilter with [Flags]
2013-02-18 16:20:24 -05:00
Marek Safar
b23a6104ce
Build debugger tests with disabled code optimizations
2013-02-18 19:17:42 +01:00
Zoltan Varga
56e2918ad6
Fix the ARM build.
2013-02-18 18:02:14 +01:00
Rodrigo Kumpera
9b9cfb6145
Fix building sgen test suite.
2013-02-18 11:21:30 -05:00
Marek Safar
abea8aca23
Make ExpressionVisitor visible in mobile 3.5 profile
2013-02-18 16:35:35 +01:00
Marek Safar
146a289d36
Fix failing test
2013-02-18 11:48:39 +01:00
Zoltan Varga
31522aa90a
Implement support for unlimited number of gsharedvt arg trampolines.
2013-02-17 19:33:02 +01:00
Zoltan Varga
b340bf5936
Implement a general version of the rgctx fetch trampolines, which receives the slot as an extra argument. This is needed in the full-aot case, as classes with many generic methods can use more than 128 rgctx slots.
2013-02-17 18:38:53 +01:00
Zoltan Varga
f42f378945
Fix the handling of dynamic imt arguments in mono_arch_emit_imt_argument () on ARM by emitting an extra OP_MOVE for them, as with all other arguments.
2013-02-17 18:37:56 +01:00
Marek Safar
8e318f410b
Break direct TPL dependency from stream classes
2013-02-16 13:15:52 +01:00
Zoltan Varga
6476b11f34
Make full-aot uses mixed vt/ref instances when full gsharedvt instances cannot be used because of generic parameter constraints.
2013-02-16 11:38:20 +01:00
Duncan Mak
cebebfda5c
Fix the build.
...
Mono.Documentation/webdoc.cs(199,87): warning CS0618: `Monodoc.Node.Nodes' is obsolete: `Use ChildNodes'
Mono.Documentation/webdoc.cs(199,87): error CS0266: Cannot implicitly convert type `System.Collections.ArrayList' to `System.Collections.Generic.IEnumerable<Monodoc.Node>'. An explicit conversion exists (are you missing a cast?)
Mono.Documentation/webdoc.cs(199,87): error CS1662: Cannot convert `lambda expression' to delegate type `System.Func<Monodoc.Node,System.Collections.Generic.IEnumerable<Monodoc.Node>>' because some of the return types in the block are not implicitly convertible to the delegate return type
Mono.Documentation/webdoc.cs(199,40): error CS1928: Type `Monodoc.Node' does not contain a member `TraverseDepthFirst' and the best extension method overload `Mono.Rocks.ObjectRocks.TraverseDepthFirst<Monodoc.Node,Monodoc.Node>(this Monodoc.Node, System.Func<Monodoc.Node,Monodoc.Node>, System.Func<Monodoc.Node,System.Collections.Generic.IEnumerable<Monodoc.Node>>)' has some invalid arguments
Mono.Rocks/ObjectRocks.cs(72,38): (Location of the symbol related to previous error)
Compilation failed: 3 error(s), 1 warnings
2013-02-15 18:08:46 -05:00
Marek Safar
23a47db274
Enable stricter verifier checks to uncover more codegen bugs
2013-02-15 23:03:47 +01:00
Jérémie Laval
f430e86f7f
[monodoc] Re-add now obsolete ArrayList-based Node property and use ChildNodes as the new generic property name
2013-02-15 21:38:37 +00:00
Duncan Mak
bdbfaee74f
Fix file casing.
2013-02-15 16:35:05 -05:00
Duncan Mak
519f5f4e0d
Fix casing for documentation.cs.
2013-02-15 15:11:47 -05:00
Rodrigo Kumpera
e2457f51a7
Handle a gc moving string_dummy.
2013-02-15 13:50:54 -05:00
Rodrigo Kumpera
0a2b28137b
Boehm doesn't need the pinning root for threads.
...
* threads.c: Boehm doesn't need the pinning for each thread as it doesn't
move objects and those objects are reachable through the thread hashtable.
This fixes a crash on mobile that has a very small number of root slots.
2013-02-15 13:50:54 -05:00
Duncan Mak
d811c08ecb
[ef] Fix casing for coordinatorfactory.cs.
2013-02-15 13:13:32 -05:00
Miguel de Icaza
14f0405443
Revert "[HttpWebRequest] Avoid using the threadpool for synchronous requests"
...
This reverts commit b190db44cb .
The reason is:
"The HttpWebRequests tests are not enough"
"A quick review of the code shows that the code is taking a lock, while
calling a function that retries connections (which in turn takes another
important lock --for the socket--) which might casue a stack overflow
if someone calls SetWriteStream"
"This also will make the opereation sync when calling Begin/End"
"Finally, this is a patch that improves the use of the threadpool, but
the threadpool still will end up exhausted"
Probably best to just increase the number of threads?
2013-02-15 11:11:58 -05:00
Miguel de Icaza
6e54963a8e
Revert "[WebConnection] Use just one delegate to init the connection"
...
This reverts commit 4367f8c04a .
This is needed before I revert b190db44cb
which Gonzalo studied and determine shoudl be removed
2013-02-15 11:11:58 -05:00
Marek Safar
915b61a66d
Mobile tests update
2013-02-15 16:35:41 +01:00
Marek Safar
2dd23de00f
Update after EF bump
2013-02-15 16:28:58 +01:00
Marek Safar
c8d21410d1
Fix casing of few files
2013-02-15 15:55:14 +01:00
Marek Safar
ae3b539087
Add .gitignore
2013-02-15 12:08:21 +01:00
Marek Safar
5f80f22712
Update EntityFramework. Fixes #10296
2013-02-15 12:05:03 +01:00
Marek Safar
2222a8e3f4
Mutate type parameters of hoisted base proxy method in captured context
2013-02-15 12:05:03 +01:00
Marek Safar
9b9a7e2889
Fix more conditional ambiguity parser issues
2013-02-15 12:05:03 +01:00
Marek Safar
895e7f47c3
Add System.ComponentModel.DataAnnotations/MinLengthAttribute.cs
2013-02-15 12:05:02 +01:00
Zoltan Varga
59fdcc8cf7
Add full-aot support for 4 dimensional arrays. Fixes #10275 .
2013-02-15 08:54:52 +01:00
Zoltan Varga
cf0bc265c4
Fix some PPC cross-compilation problems reported in #10076 .
2013-02-15 08:26:51 +01:00
Zoltan Varga
1b343f32a6
Implement gsharedvt support for constrained calls to Object.GetHashCode ().
2013-02-15 01:24:41 +01:00
Rodrigo Kumpera
afd1b3b8c6
Fix a race in the posix suspend code that would lead to a crash.
...
* mono-threads-posix.c: If we get the suspend signal while the thread
is detaching, we end up with a non null thread info but a null jit info.
This leads to thread_state_init_from_sigctx returning false. The
solution on this case is not to crash, but to tell the suspender
that the current suspend attempt failed.
Fixes an intermittent crash on the linux bots.
2013-02-14 18:39:32 -05:00
Mark Probst
ab1fd9bde6
[sgen] Fix GC handle table resize for SGen. Fixes #10127 .
...
SGen doesn't honor mono_gc_disable(), so the code was racy.
2013-02-14 14:40:10 -08:00
Mark Probst
0b06efb775
[gc] Remove mono_gc_disable/enable().
...
We don't use it anymore, and SGen doesn't honor it anyway.
2013-02-14 13:49:11 -08:00
Mark Probst
77b16536ee
[sgen] Binary protocol for disappearing link updates.
2013-02-14 13:49:11 -08:00
Mark Probst
c5f97d9b7a
[sgen] Fix mono_gc_weak_link_get ().
2013-02-14 13:49:10 -08:00
Rodrigo Kumpera
28d3d29fa3
finalizer-wait and critical-finalizer tests are sgen only, don't try under boehm. test now run more tests.
2013-02-14 16:17:04 -05:00
Rodrigo Kumpera
bba04fb4e5
Remove a stale comment.
2013-02-14 14:28:58 -05:00
Rodrigo Kumpera
c85e445332
Enabled a bunch of tests that should now work.
2013-02-14 13:56:31 -05:00
Rodrigo Kumpera
bcaafe3113
Fix a test for compiler context. Compiler Context is dead but that test can still be used.
2013-02-14 12:16:14 -05:00
Rodrigo Kumpera
f3e4eb1181
Fix the test driver regex to detect tests that have two components. Increase timeout of gc tests from 2 to 5 minutes.
2013-02-14 12:09:37 -05:00
Zoltan Varga
a8e69d69f7
Fix mono_patch_info_equal () for MONO_PATCH_INFO_GSHAREDVT_CALL.
2013-02-14 15:46:01 +01:00
Marek Safar
f0f4f4ae51
More mobile tests update
2013-02-14 13:06:49 +01:00
Marek Safar
90e491cd23
Optimize custom attributes check to build less pseudo custom attributes
2013-02-14 13:06:49 +01:00
Rodrigo Kumpera
459e17ea09
Rewrite the sgen test driver to make it easy to add configuration and have digestible output.
2013-02-13 18:04:02 -05:00
Rodrigo Kumpera
94965024ba
Make it so we can pass test and binary names in the same parameter so we can distinguish them when running with multiple configurations.
2013-02-13 18:04:02 -05:00
Rodrigo Kumpera
b25daddc3b
Capturing runtime test output on wrench is an epic bucket of fail. So change the driver to dump it inline when running on wrench.
2013-02-13 18:04:02 -05:00
Atsushi Eno
be167fd166
Fix bug #10271 : our imported resource name was wrong.
2013-02-14 04:07:38 +09:00
Marek Safar
2ac65e29f7
Merge pull request #562 from grumpydev/TypeConverterFix
...
TypeConverter.IsValid fix
2013-02-13 08:28:33 -08:00
Alexander Köplinger
ebbe9b571d
System.Web: Fixed bugs in HttpRequest.GetBufferlessInputStream()
2013-02-13 05:18:11 -08:00
Zoltan Varga
adbc424242
Allow more constrained call cases when using gsharedvt. Allow usage of the ldvirtftn opcode.
2013-02-13 14:03:14 +01:00
Atsushi Eno
19eac76e6e
Fix regression in XmlSchemaValidator (bug #10245 ): collection misoperation due to parameter renaming.
2013-02-13 21:13:27 +09:00
Zoltan Varga
fec98f5f01
Set ainfo->size on ARM for arguments passed on the stack, the gsharedvt code depends on this.
2013-02-13 12:22:54 +01:00
Zoltan Varga
5bd49c7721
Move the creation of gsharedvt wrappers/trampolines to a new helper function mini_get_gsharedvt_wrapper (), and use that everywhere. Add caching to avoid running out of gsharedvt arg trampolines.
2013-02-13 10:42:36 +01:00
Zoltan Varga
5bab9ec53b
Avoid AOT errors if gsharedvt is not enabled.
2013-02-13 08:57:20 +01:00
Zoltan Varga
077d89fc12
Add an --enable-minimal option to disable support for multiple appdomains.
2013-02-13 08:44:45 +01:00
Mark Probst
e764c82a63
[sgen] Fix a GC descriptor bug. Fixes case 23400.
...
This affects arrays of all structs of which the last reference field
is at offset 16*sizeof(mword).
2013-02-12 19:43:50 -08:00
Rodrigo Kumpera
18044f8079
This was removed by accident when chopping MOONLIGHT code out.
2013-02-12 19:08:29 -05:00
Rodrigo Kumpera
1a078f585a
Fix the shared_area logic to have it enabled by default.
2013-02-12 17:28:12 -05:00
Rodrigo Kumpera
98a18b62f8
Add MONO_DISABLE_SHARED_AREA to the man page.
2013-02-12 16:36:42 -05:00
Rodrigo Kumpera
b293b730ee
Make it possible to disable shared_are with the MONO_DISABLE_SHARED_AREA env var.
2013-02-12 16:33:40 -05:00
Rodrigo Kumpera
0c2b19bf01
Fix shared_area fallback implementations to not leak memory.
2013-02-12 16:32:58 -05:00
Rodrigo Kumpera
7d1c207c62
Use the fast shared_area lookup code everywhere. The targets that don't need it don't compile it in.
2013-02-12 16:31:15 -05:00
Marek Safar
d6af35c68f
Fix more mobile tests
2013-02-12 20:02:07 +01:00
Josh DuBois
9fa235bc34
Include <stdint.h> to allow cross-compilation from OS X.
...
Cross-compiling mono on an OS X host for a Windows target using
mingw-w64 fails because of undefined __int64 types in a couple of places.
Including <stdint.h> fixes this and allows the OS X host to cross-compile
a Windows mono.
It probably sounds like an obscure use-case, but the wine-mono
project does just this, so ability to cross-compile for Windows on OS X
is crucial to being able to build wine-mono on a Mac.
2013-02-12 11:59:29 -06:00
Marek Safar
81c5020bea
Possible fix for #10206
2013-02-12 15:01:05 +01:00
Jeremie Laval
d90ef8a022
[monodoc] Add missing HelpSource set in Legacy mode
2013-02-12 13:41:32 +00:00
Marek Safar
c1437f237f
Fix TaskCreationOptions.AttachedToParent to avoid NRE on TaskCreationOptions.DenyChildAttach and deadlock on Wait
2013-02-12 14:25:58 +01:00
Marek Safar
65518ad2ca
RunSynchronously cannot be used with continuation
2013-02-12 14:25:58 +01:00
Marek Safar
cff9f25510
Merge pull request #558 from mkorkalo/master
...
[I18N] Fix ByteEncoding crashes when using EncoderFallback
2013-02-12 04:20:09 -08:00
Jeremie Laval
1791319770
[monodoc] Legacy Tree inheriting Node
2013-02-12 11:49:34 +00:00
Jeremie Laval
82321e2428
[monodoc] Re-add more legacy settings
2013-02-12 11:49:34 +00:00
Zoltan Varga
06cebd93ee
Use direct method addresses in the unbox trampoline table as well on ios.
2013-02-12 12:24:27 +01:00
Marek Safar
8063eb0963
Remove broken profile files
2013-02-12 10:19:10 +01:00
Marek Safar
e53a27a22c
Remove unused file
2013-02-12 09:46:39 +01:00
Zoltan Varga
cefcf37a2a
Fix an assert in the gsharedvt code.
2013-02-12 07:41:15 +01:00
Miguel de Icaza
aee1c0e645
ServicePoint: Use DateTime.UtcNow internally, which avoids looking up the timezone every minute
2013-02-12 00:48:15 -05:00
Miguel de Icaza
6dd912abf7
Remove temporary file
2013-02-12 00:41:29 -05:00
Zoltan Varga
663b53f63d
Fix support for MONO_PATCH_INFO_GSHAREDVT_CALL in mono_patch_info_dup_mp ().
2013-02-12 06:38:17 +01:00
Zoltan Varga
139c0a3307
Add gsharedvt support for unbox.any.
2013-02-12 06:26:00 +01:00
Rodrigo Kumpera
1b92a4148c
Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:42:18 -05:00
Rodrigo Kumpera
f378e23a3f
Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:41:51 -05:00
Rodrigo Kumpera
b8f81467e0
Remove moonlight from the build system.
2013-02-11 17:18:58 -05:00
Rodrigo Kumpera
8752d92528
Kill MOONLIGHT from System.Xml.
2013-02-11 16:03:40 -05:00
Rodrigo Kumpera
054957354b
Kill MOONLIGHT from System.Xaml.
2013-02-11 16:03:39 -05:00
Rodrigo Kumpera
8732e2dfd7
Kill the MOONLIGHT define from System.Xml.Linq.
2013-02-11 16:03:38 -05:00
Rodrigo Kumpera
dba5f60e67
Remove moonlight sources in corlib that were only used by moonlight.
2013-02-11 16:03:37 -05:00
Rodrigo Kumpera
b96d05dac3
Kill the MOONLIGHT define in corlib.
2013-02-11 16:03:28 -05:00
Rodrigo Kumpera
438e0d8b92
Remove TypeConverter_2_1 that was only used by moonlight.
2013-02-11 13:01:11 -05:00
Rodrigo Kumpera
5007c14d62
Kill the MOONLIGHT define in System.
2013-02-11 13:01:11 -05:00
Rodrigo Kumpera
a0d28b2587
Kill the MOONLIGHT define in System.ServiceModel.
2013-02-11 13:01:11 -05:00
Rodrigo Kumpera
de71901cf8
Kill the MOONLIGHT define in System.ServiceModel.Web.
2013-02-11 13:01:10 -05:00
Rodrigo Kumpera
9b9effd98a
Kill the MOONLIGHT define in System.Runtime.Serialization.
2013-02-11 13:01:10 -05:00
Rodrigo Kumpera
486ee8d8f4
Kill the MOONLIGHT define in System.Core.
2013-02-11 13:01:10 -05:00
Rodrigo Kumpera
43c14ca5af
Kill the MOONLIGHT define in Mono.Security.
2013-02-11 13:01:09 -05:00
Rodrigo Kumpera
67a8e58349
Remove silly SL limitation workaround in Mono.CompilerServices.SymbolWriter.dll
2013-02-11 13:01:09 -05:00
Rolf Bjarne Kvinge
aa9f6984b9
Prefix aot symbols with something to prevent them from accidentally become a local symbol (i.e. prefixed with L)
2013-02-11 17:08:19 +01:00
Jack Pappas
a8ef572972
Fixed IsSwitch to check for files ending in '.exe'.
...
Removed checks for all-uppercase extensions in Uninstall.
2013-02-11 10:33:15 -05:00
Zoltan Varga
7fdf9cb82a
Fix the ARM build.
2013-02-11 16:10:47 +01:00
Marek Safar
b494111aed
Fix duplicate warning on obsolete GetEnumerator
2013-02-11 14:57:19 +01:00
Marek Safar
ed9dc87369
Add obsolete attribute
2013-02-11 13:48:01 +01:00
Marek Safar
9e32c5fbd5
Add guard against recursive base class with generic interfaces. Fixes #10196
2013-02-11 13:39:24 +01:00
Marek Safar
6cc18cd797
Implement FilterUIHintAttribute
2013-02-11 13:33:17 +01:00
Mikko Korkalo
eb71faeaef
renamed test
2013-02-11 09:34:11 +02:00
Mikko Korkalo
1c00ba5543
improved encoder tests for I18N.MidEast
2013-02-11 09:28:08 +02:00
Mikko Korkalo
1ed1fcdde6
re-generated codepages with new ucm2cp.c: removed dotnet 1.0 support for cleaner code
2013-02-11 09:26:26 +02:00
Mikko Korkalo
66a26049aa
changed ucm2cp.c to generate less changes, also removed NET < 2.0 support
2013-02-11 09:25:04 +02:00
Jack Pappas
c7cd3864d0
Formatting changes to adhere to existing code style.
2013-02-10 19:53:08 -05:00
Mikko Korkalo
880c341fe4
Tests for MidEast encodings (stub, only turkish and generic handlefallback tests)
2013-02-11 01:48:53 +02:00
Mikko Korkalo
77eb88801e
regenerated encoder classes with a patched ucm2cp.c with proper EncoderFallback support
2013-02-11 01:48:53 +02:00
Mikko Korkalo
ac42aaea2e
ucm2cp.c: generate codepage classes with proper EncoderFallback support
2013-02-11 01:48:53 +02:00
Andreas Fredriksson
8b3f25b841
Fix PPC link error on mono/mini due to missing symbol.
2013-02-10 13:57:18 -08:00
Andreas Fredriksson
ab5e9cd6b9
Prefer __sync_bool_compare_and_swap() over PPC inline asm.
...
Debian's GCC 4.4 in particular does not compile the PPC assembly.
2013-02-10 13:55:52 -08:00
Jack Pappas
037aa53c69
Fixed the way assemblies are located when uninstalling so .exe assemblies can be uninstalled from the GAC.
2013-02-10 16:50:04 -05:00
Miguel de Icaza
ae25155bdf
System.Web: Implenent 4.0 HttpRequest.GetBufferlessInputStream, implemented blind, without access to the real ASP.NET to verify, but should be correct
2013-02-10 15:13:49 -05:00
Jérémie Laval
bbe4ba0426
[monodoc] Rework version number inclusion in .tree files to be backward compatible with previous Mono version.
2013-02-10 19:44:52 +00:00
Steven Robbins
46420e6f50
Fixed formatting
2013-02-10 11:59:56 +00:00
Steven Robbins
7fcbd002a8
Added test for In32 IsValid
2013-02-12 14:59:50 +00:00
Steven Robbins
f05d1c1ab9
Fixed issue with TypeConverter.IsValid always returning true
...
Now returns true if null and true if the type passed in can be
converted to, and the conversion itself didn't throw an exception.
If the type cannot be converted to, or the conversion threw, then
it returns false.
2013-02-12 14:54:38 +00:00
Martin Baulig
c6b3111495
[System.Security]: Fix broken NTLM nunit tests.
2013-02-10 12:38:45 +01:00
Martin Baulig
ff1e088df6
Fix the build.
2013-02-10 12:07:25 +01:00
Jack Pappas
d89924d802
Added checks for BSD-compliant protocol constants.
...
Fixed the checks for a couple of Linux-specific constants so they work correctly (they included the wrong header).
Added a check for the Linux-specific constant IP_PMTUDISC_DO; this'll be used with IP_MTU_DISCOVER in a future patch to make Linux sockets match BSD/OSX/Windows behavior.
2013-02-09 21:40:48 -05:00
Jack Pappas
cc991feac7
Swap the condition -- instead of checking for OS X and assuming anything else uses the Linux behavior, check for Linux and let other platforms use the default POSIX behavior. This allows sigaltstack to be used on BSD variants.
...
This change has been tested (with the standard test suite) on FreeBSD 9.1 (i386, amd64) and Ubuntu 12.04.1 (i386).
2013-02-09 19:38:08 -05:00
Miguel de Icaza
909bedb4a9
Merge pull request #475 from pruiz/xamarin-bug-7408
...
Implemented UrlAuthorizationModule.CheckUrlAccessForPrincipal(...) (fixes xamarin bug #7408 )
2013-02-09 14:24:45 -08:00
Miguel de Icaza
73277ab4af
Merge pull request #524 from pruiz/mvc-allowhtml-fix
...
Fixes xamarin-bug #8965 : AllowHtmlAttribute ignored throwing exception on POST using ASP.NET mvc3
2013-02-09 14:21:58 -08:00
Miguel de Icaza
0f8da45878
Merge pull request #546 from QuickJack/master
...
Fixes a problem in Mono's ASP.NET Menu Control
2013-02-09 12:32:50 -08:00
Miguel de Icaza
06779c6d95
Merge pull request #547 from jack-pappas/patch-1
...
Organized .gitignore and added new patterns.
2013-02-09 12:32:18 -08:00
Miguel de Icaza
8ffeebe537
C# Evaluator, Terse syntax fix.
...
The terse syntax added a semicolon automatically, but that also meant
that things lik:
csharp> for (int i = 0; i < 10; i++)
Would never get a continuation for partial input, since the semicolon
woudl make that a valid block.
Fix that by first trying to add a block at the end, if that works, then
we know we want to continue, otherwise we insert the semicolon.
2013-02-09 15:30:55 -05:00
Marek Safar
21b51635c4
Add missing flags
2013-02-09 13:46:51 +01:00
Marek Safar
ff813f658b
Don't report user operator error during probing user conversions. Fixes #10170 , #10171
2013-02-09 13:46:51 +01:00
Zoltan Varga
eb0d7efc9e
Add helper functions to avoid the if (cfg->generic_sharing_context) context_used= idiom in the JIT code.
2013-02-09 05:36:03 +01:00
Zoltan Varga
eaa0679503
Pass the original call signature too to the code handling MONO_METHOD_MONO_RGCTX_INFO_METHOD_GSHAREDVT_OUT_TRAMPOLINE, it was previously using oti->data for that, but that might not equal the original called method in all cases.
2013-02-09 05:19:55 +01:00
Rodrigo Kumpera
bb01b02d35
Raise an exception for user types under FULL_AOT_RUNTIME instead of crashing.
2013-02-08 15:12:07 -05:00
Marek Safar
1fff2451d1
Add explicit interface GetType implementation to avoid object::GetType become proxy. Fixes #10148
2013-02-08 18:33:36 +01:00
Rodrigo Kumpera
ba1e20cf64
Merge pull request #551 from jack-pappas/sgen-patch
...
Fix thread stack initialization on BSD platforms.
2013-02-08 08:57:49 -08:00
Marek Safar
4f97ce2690
Add test which is now working
2013-02-08 16:15:47 +01:00
Marek Safar
07964f0505
Fix type inference for methodgroup arguments where one of methodgroup delegate parameter is generic type with dependant type parameter.
2013-02-08 16:15:46 +01:00
Marek Safar
8c2167d52c
Merge pull request #550 from knocte/master
...
[HttpWebRequest] Avoid using the threadpool for synchronous requests
2013-02-08 06:50:27 -08:00
Andres G. Aragoneses
4367f8c04a
[WebConnection] Use just one delegate to init the connection
...
As suggested by Marek Safar, using WaitCallback without the threadpool
is just fine, so revert back to using one delegate.
2013-02-08 14:36:50 +00:00
Jack Pappas
7cf0039dad
Fix thread stack initialization on BSD platforms.
2013-02-08 08:16:35 -05:00
Atsushi Eno
acdf48cf71
fix bug #6653 : change xs component validation logic regarding recursion check.
...
Originally this implementation checked recursion based on RELAX NG-inspired
algorithm explained at http://www.thaiopensource.com/relaxng/simplify.html .
This works only for "simple" syntax, which premises that every <element> is
defined under top-level <define> element. XML Schema doesn't follow this
and could result in infinite loop like reported.
The latest REC-xmlschema-1 denotes the explicit rule on illegal recursion
on 3.8.6 (Model Group Correct) as:
2 Circular groups are disallowed. That is, within the {particles} of a group there must not be at any depth a particle whose {term} is the group itself.
... so, I simply replaced the checker with simple Stack.
(oh, and for old Stack I haven't bothered to replace non-generic collection
everywhere. XSD is as dead as System.Collection.)
2013-02-08 20:19:14 +09:00
Marek Safar
ab381541cf
Improved warning reporting for missing await
2013-02-08 11:25:20 +01:00
Marek Safar
e52c1227e4
Merge pull request #544 from svick/missing-awaits
...
Added missing awaits to StreamWriter
2013-02-08 02:22:21 -08:00
Atsushi Eno
740d826912
fix mobile build (from 6b4c3f0).
2013-02-08 17:05:31 +09:00
Atsushi Eno
7b326bd96c
bump rx to official 2.1 release.
2013-02-08 16:53:22 +09:00
Atsushi Eno
42fb6205ac
bump rx repo (mostly for mobiles)
2013-02-08 16:41:54 +09:00
Rodrigo Kumpera
8343dbe179
Add a test case for #10122 .
2013-02-07 19:22:14 -05:00
Rodrigo Kumpera
fc3c31dcc3
When encoding a memberref to a field of a generic instance we must use the type of the GTD. Fixes #10122
...
* reflection.c (mono_image_get_fieldref_token): We must encode the memberref using the GTD type so
we can distinguish between the following two:
class Foo<T> {
T t;
int t;
}
The above two fields for the instance Foo<int> must be encoded as "!0 Foo<int>:t" and "int Foo<int>:t"
respectively. The CLR does both structural and nominal matching on memberref resolution, so we must be
strict.
The previous fix removed tried to work-around a crash in the generic instance case due to the field
type been null. This now happens because field types are lazily loaded and must always be looked up
using mono_field_get_type. The original code code was not and so broken.
2013-02-07 19:22:14 -05:00
Andres G. Aragoneses
b190db44cb
[HttpWebRequest] Avoid using the threadpool for synchronous requests
...
The code path for synchronous requests was the same as the one for
asynchronous ones: the threadpool. It's actually not needed in this
case because the thread is going to wait anyway, so there's no need
to use the threadpool.
This helps in scenarios in which SOA is heavily used:
- The process is hosted under xsp/mono-fastcgi/... which use the threadpool
too.
- If the requests generate other requests to other REST services, the
usage of the threadpool in these cases may interfere with the usage of
the threadpool by xsp/mono-fastcgi/...
- The thread that is serving a request shouldn't request another thread
for a blocking operation, preventing the use of that thread by other
possible incoming requests.
This commit is contributed under the terms of MIT/X11 licence.
(It doesn't cause any breakage in the System test suite.)
2013-02-07 21:25:34 +00:00
Jack Pappas
b84709d9b6
Organized the .gitignore. Added patterns for temporary and user-specific files
...
generated by development tools. Added patterns to ignore binaries when projects
in mcs/ are compiled.
2013-02-07 14:36:42 -05:00
Marek Safar
78318771d5
Update csproj files
2013-02-07 16:34:23 +01:00
Marek Safar
425d8ff709
Fix public token property for mobile
2013-02-07 16:34:22 +01:00
Marek Safar
0cfac7034d
Fix mscorlib public key token constant for mobile profile
2013-02-07 16:34:22 +01:00
Marek Safar
afa79435aa
Update for mobile profile
2013-02-07 16:34:21 +01:00
Marek Safar
96d058749d
Update csproj generator to work on mac
2013-02-07 16:34:21 +01:00
Rolf Bjarne Kvinge
136f537cad
[mkbundle] Reorder parenthesis to malloc the right amount
2013-02-07 16:10:06 +01:00
Marek Safar
6b4c3f0d72
Merge pull request #472 from MelanieT/spmanager_fix
...
Fix ServicePointManager.DefaultConnectionLimit to work as specified.
2013-02-07 07:05:41 -08:00
Martin
684292834c
Update mcs/class/System.Web/System.Web.UI.WebControls/Menu.js
2013-02-07 15:43:29 +01:00
Zoltan Varga
92c3260777
Fix the handling of non-virtual calls made out of gsharedvt methods, we need to add both an out and an in wrapper instead of just an in wrapper.
2013-02-07 06:04:40 +01:00
Zoltan Varga
05a374c1cd
Fix the lookup of aot unbox trampolines for gsharedvt methods.
2013-02-07 06:04:11 +01:00
Zoltan Varga
c4808eff1a
Allow gsharedvt methods to be used in place of gshared methods if the latter is not found in full-aot mode. Add gsharedvt trampolines for delegates invoke wrappers.
2013-02-07 04:46:43 +01:00
Zoltan Varga
dca8d506c3
Add AOT support for generic delegate-invoke wrappers.
2013-02-06 22:03:00 +01:00
Zoltan Varga
8eae1a7d72
Make delegate-invoke wrappers for generic delegates like Func/Action generic, i.e. instead of creating a non-generic wrapper for the inflated Invoke method, create generic wrapper for the generic Invoke method, and inflate it with the type arguments of the delegate type. This works better with full aot.
2013-02-06 22:02:59 +01:00
Jeffrey Stedfast
26de2a8a22
[Microsoft.Portable.CSharp.targets] Fixed to not override the compiler
...
The old hack is no longer needed in Mono 3.0
2013-02-06 15:21:14 -05:00
Rodrigo Kumpera
d51df48da7
Move the mobile profile to the new 4.5 world.
2013-02-06 14:05:45 -05:00
Rodrigo Kumpera
b6413aacdb
Use system resgen to avoid the System.Windows.Forms dependency.
2013-02-06 14:05:45 -05:00
Atsushi Eno
35ae8ff4c3
[mdoc] sometimes doc xmls have no Type element...
2013-02-07 02:23:45 +09:00
Petr Onderka
8ee32e8c0e
Added missing awaits to StreamWriter
2013-02-06 11:19:11 +01:00
Zoltan Varga
37c67e8cc5
Fix the build.
2013-02-06 11:11:20 +01:00
Atsushi Eno
ba26046224
Revert previous revert to old rx.
...
Desktop rx should be up to date. mcs and runtime needs to be fixed for mobile.
2013-02-06 18:44:59 +09:00
Zoltan Varga
1b0f375df0
Add support for the calli opcode in gsharedvt methods, by passing the call address to the gsharedvt trampoline in the rgctx trampoline. Move the dummy definitions of the arch specific gsharedvt functions to mini.c.
2013-02-05 23:46:48 +01:00
Rodrigo Kumpera
c5fbaf7ed3
Lift the input/output match restriction as we now properly loop over just the file list.
2013-02-05 16:25:42 -05:00
Rodrigo Kumpera
fe4bd38cfc
Revert "Lift the input/output match restriction as we now properly loop over just the file list."
...
This reverts commit 2fb94ec744 .
2013-02-05 16:24:58 -05:00
Rodrigo Kumpera
2fb94ec744
Lift the input/output match restriction as we now properly loop over just the file list.
2013-02-05 16:20:48 -05:00
Zoltan Varga
a09e21f46c
Remove some debug spew.
2013-02-05 21:01:17 +01:00
Zoltan Varga
42de90e66e
Revert an accidental change which enabled gsharedvt for calli opcodes.
2013-02-05 20:55:29 +01:00
Zoltan Varga
b2667eaffe
Fix the non-gsharedvt build.
2013-02-05 20:54:15 +01:00
Zoltan Varga
16be172742
Fix the build.
2013-02-05 20:49:05 +01:00
Zoltan Varga
fa15ab7315
Pass signatures instead of methods to mono_arch_get_gsharedvt_call_info ().
2013-02-05 20:28:42 +01:00
Zoltan Varga
471be11342
Emit the IReadOnly helper wrappers as well when using full-aot.
2013-02-05 20:28:41 +01:00
Rodrigo Kumpera
a202966a31
Call jay from the same directory of the source file to avoid broken #line directives.
2013-02-05 12:05:21 -05:00
Marek Safar
8841204439
Implement use of __refvalue as an lvalue. Fixes #10034
2013-02-05 10:31:48 +01:00
Rodrigo Kumpera
905dceaacf
Rewrite mdbrebase to use Mono.CompilerServices.SymbolWriter instead of cecil.
...
* mdbrebase.cs: Cecil did not produce reliable results and was pretty
slow because it needed to parse the actual assemblies. This can now
completely avoid it.
2013-02-04 19:18:06 -05:00
Rodrigo Kumpera
e2e35b4f2c
Expose some Mono.CompilerServices.SymbolWriter internal APIs so it's possible to build a mdb file from another one.
2013-02-04 19:18:06 -05:00
Marek Safar
0e6393ec6c
Looup in currect folder before additional paths to match csc.
2013-02-04 21:12:51 +01:00
Zoltan Varga
8465f13e8a
Add some support for wrappers which are generic instances.
2013-02-04 20:36:46 +01:00
Rodrigo Kumpera
a736dee9e1
Make sure assembly ordering matches MS by always appending. Fixes #10004 .
2013-02-04 13:51:28 -05:00
Rodrigo Kumpera
7c493f1aa9
Merge pull request #543 from knocte/master
...
[System.Reflection.Emit] Store dynamic assemblies after the static ones
2013-02-04 10:41:26 -08:00
Marek Safar
6e49ec8919
Check modifier keys in windows console driver too. Fixes #9091 .
2013-02-04 16:51:53 +01:00
Marek Safar
ae02cc2113
Close open namespace container when error recovery fails. Fixes #9167
2013-02-04 16:51:53 +01:00
Zoltan Varga
1e5565b72a
Reset constrained_call in the gsharedvt code path as well.
2013-02-04 02:29:33 +01:00
Zoltan Varga
6317682290
Fix an assert which can be hit in gsharedvt mode. Fix a warning.
2013-02-04 00:21:51 +01:00
Zoltan Varga
fb68c67d61
Implement gsharedvt support for constrained calls to Object:ToString ().
2013-02-03 21:06:48 +01:00
Andres G. Aragoneses
df4a73d70f
[System.Reflection.Emit] Store dynamic assemblies after the static ones
...
AssemblyBuilder class was adding generated dynamic assemblies at the
beginning of the list of the assemblies of the current domain, instead
of at the end.
This not only is not the behaviour of MS.NET but was inconsistent to
previous calls to the CurrentDomain.GetAssemblies() method, which would
return assemblies in different positions.
If code was relying on the order of these assemblies being returned (i.e.
to find the first type in the loaded assemblies that conforms to certain
requirements), it would result in unexpected behaviour if used along with
frameworks that mock/stub types on the fly, such as RhinoMocks, FakeItEasy
or other Castle.DynamicProxy-based ones.
This fixes BXC#10004:
https://bugzilla.xamarin.com/show_bug.cgi?id=10004
Patch contributed under the terms of MIT/X11 licence.
2013-02-03 19:12:25 +00:00
Mark Probst
56a6ae2bd0
[sgen] Fix hazard pointer free deadlock problem. Fixes #9828 .
...
The hazard pointer code, which assists in lock free algorithms, tries
to free some data it had to keep around (because other threads were
still using it) whenever it is invoked. Obviously, the code that frees
data must never lock, or else the code that uses hazard pointers might
lock, as well.
The JIT info table pointer code uses malloc/free to allocate its memory,
so its free function uses free(), which might lock. Even worse, it takes
the domain lock. (The JIT info table is lock-free for readers, not for writers,
which explains why it uses hazard pointers.)
To solve the problem we separate hazard pointers into those whose free
functions might lock, and those who will not, and we provide the information
on whether we're currently in a context where locking is permissible. If it isn't,
no free function which might lock must be called. To make sure they are
called eventually we try to free a few after restarting the world in SGen, at
which point locking is allowed.
2013-02-02 16:52:40 -08:00
Mark Probst
22d18ea249
Remove a dead function.
2013-02-02 10:54:57 -08:00
Mark Probst
1c1f1f098f
[sgen] Make sure there's never a JIT info table without chunks.
...
It seems possible that a JIT info table could reach a state where it
contains only tombstones, i.e., is empty, at which point adding an
entry to it will cause an overflow, which would allocate a new table
without any chunks in it. This fixes that.
2013-02-02 10:54:57 -08:00
Zoltan Varga
3f188ac733
Emit a separate copy of the gsharedvt trampoline in full-aot mode so the in/out trampolines show up differently in stack traces.
2013-02-02 04:14:34 +01:00
Zoltan Varga
231b94103b
Enable gsharedvt for newobj+valuetypes.
2013-02-01 23:08:23 +01:00
Zoltan Varga
bc107f0e8f
Add a test for #4737 .
2013-02-01 20:02:55 +01:00
Rodrigo Kumpera
76daf8f682
Dep track BCL sources extension files.
2013-02-01 13:54:37 -05:00
Marek Safar
185743cacd
Rewrite of async StreamReader/StreamWritter operations to not fail on subsequent async call. Fixes #9761
2013-02-01 18:29:54 +01:00
Marek Safar
6347323f5f
Recover from invalid lambdas uses as arguments. Fixes #9949
2013-02-01 10:06:37 +01:00
Marek Safar
9bb4c26081
Merge pull request #541 from dlech/master
...
[Fix] System.Security.SecureString.ReadAt(int), includes NUnit test
2013-02-01 00:33:26 -08:00
David Lechner
f26842327d
fix System.Security.SecurString.ReadAt(int), includes NUnit test
2013-01-31 21:12:56 -06:00
Rodrigo Kumpera
710e7cc35a
Add new tool to the spec file.
2013-01-31 19:46:36 -05:00
Rodrigo Kumpera
17b3cd53bf
Add new mdbrebase tool that lets you change the prefix of its source files.
2013-01-31 17:58:06 -05:00
Marek Safar
1c47612b58
Mark ObservableCollection.Reentrant serializable
2013-01-31 15:56:21 +01:00
Marek Safar
db504e5942
Better CS0201 error location. Fixes #9885
2013-01-31 14:28:52 +01:00
Marek Safar
f950c833fb
Delegate dynamic parameters do not involve dynamic dispatch when matched on signature. Fixes #9854
2013-01-31 13:59:19 +01:00
Marek Safar
7ae364c9c3
Emit field initializers when the ctor has dynamic arguments. Fixes #9683
2013-01-31 12:32:06 +01:00
Marek Safar
c7b3142f7a
Object and collection initializers cannot be used to instantiate a delegate.
2013-01-31 12:32:06 +01:00
Zoltan Varga
7c2496cbe6
Emit unbox trampolines for all methods of vtypes in full-aot mode, since they are needed when calling these methods through delegates.
2013-01-30 23:05:18 +01:00
Zoltan Varga
eaaa919f9f
Remove a gsharedvt check which is no longer needed.
2013-01-30 23:01:41 +01:00
Zoltan Varga
d24b7071cc
Remove a check from mono_arch_find_imt_method () which can fail if the caller is the gsharedvt trampoline.
2013-01-30 23:01:41 +01:00
Zoltan Varga
7302d78313
Fix a special case in mono_method_get_vtable_slot () where method->slot can still be uninitialized even after mono_class_setup_vtable ().
2013-01-30 23:01:41 +01:00
Rodrigo Kumpera
b2370b7ed4
Add support for alternate source files to be used on extension-less builds.
2013-01-30 15:17:40 -05:00
Rodrigo Kumpera
e5fba9d04a
Revert "Revert "Fix the Mono.Security.dll monotouch build.""
...
This reverts commit b691ca8371 .
The original fix is required to build the monotouch profile.
2013-01-30 12:27:08 -05:00
Marek Safar
8ae1e29a87
Member lookup on type parameters has different ambiguity rules. Fixes #9776
2013-01-30 17:50:49 +01:00
Marek Safar
82bfae8a22
Better error message for missing using clause in alias scope. Fixes #9813
2013-01-30 15:55:59 +01:00
Marek Safar
845eb4b8ba
Fix duplicate inaccessible error message
2013-01-30 15:55:58 +01:00
Marek Safar
5a76c3e532
Exclude operators from member access lookup
2013-01-30 15:55:58 +01:00
Zoltan Varga
8dca6d7a4d
Pass the caller method address to mono_class_fill_runtime_generic_context () as well.
2013-01-30 02:39:52 +01:00
Zoltan Varga
62695470c2
Compute the MonoGenericSharingContext from the caller of the rgctx fetch trampoline instead of the context, since the latter contains the types used by the instantiation while we need the types used to compile the gsharedvt method. Fix gsharedvt support in CEE_BOX.
2013-01-30 02:07:19 +01:00
Jeffrey Stedfast
6e3e95a49f
[Mono.Debugger.Soft] Flushed out TypeMirror.CSharpName a bit.
2013-01-29 17:04:38 -05:00
Atsushi Eno
d763c6242f
[xsd] compare attribute string values for enums in normalized form. Fixes bug #9835 .
2013-01-30 00:25:35 +09:00
Atsushi Eno
13b3194009
fix rx revision.
2013-01-29 18:47:52 +09:00
Atsushi Eno
b691ca8371
Revert "Fix the Mono.Security.dll monotouch build."
...
This reverts commit 34c53fcc44 .
2013-01-29 18:41:39 +09:00
Atsushi Eno
c1fe3fb643
fix mobile build.
2013-01-29 18:25:09 +09:00
Zoltan Varga
0889c26fee
Remove a gsharedvt limitation when a non-virtual method is called using callvirt.
2013-01-29 06:12:12 +01:00
Miguel de Icaza
505a1e2bae
[mscorlib/mobile] Encoding.Default is always UTF8 in mobile, strip out all the code that brings the encoding system
2013-01-28 20:48:59 -05:00
Miguel de Icaza
a15cfbe9f0
Add Contributing Guidelines
2013-01-28 20:45:03 -05:00
Zoltan Varga
390f1a3841
Emit proper unwind info for the gsharedvt trampoline in full-aot mode. Fix gsharedvt support in mono_aot_plt_resolve (). Add a 'no-instantiations' AOT option to avoid the generation of generic instances, to allow better testing of the gsharedvt code.
2013-01-29 02:01:17 +01:00
Rodrigo Kumpera
565f072a9a
Fix the [monodroid] build.
2013-01-28 18:55:01 -05:00
Rodrigo Kumpera
b33c56dfe0
Improve our native crash experience.
...
* mini-exceptions.c (mono_invoke_unhandled_exception_hook): Print something
even if we fail to produce a backtrace.
* mini-exceptions.c (mono_handle_native_sigsegv): Use exit on android
since abort triggers another segv. Always Print the fatal native error
even on "special" targets that have no backtrace symbols support.
2013-01-28 12:12:24 -05:00
Rodrigo Kumpera
99d71eb6e9
Move mono_runtime_printf_err to use critical level as error results in an abort.
2013-01-28 12:12:23 -05:00
Rodrigo Kumpera
50f1c0025f
Make mono_print_unhandled_exception resilient to nested exceptions.
...
* object.c (mono_print_unhandled_exception): Ensure that nested exceptions are
properly catch not leading to a stack overflow of recursive fail.
2013-01-28 12:12:23 -05:00
Rodrigo Kumpera
5005c6f3fb
Use a non RT signal on Android since its userland is not very keep to it.
...
* threads.c: On Android we now use SIGUNUSED instead of RT2 since bionic
exposes a 32bits sigset_t which cannot accommodate signals in the RT range.
The alternative would be to directly syscall the kernel and use the RT range,
but that would mean patch all functions that deal with sigset_t to use a wrapper.
So, given the effort/result of it on this case. It makes more sense to just
use an unused signal for that.
The linux kernel has 2 syscall APIs for signals, the regular one and the rt
variant. EG, we have sys_sigprocmask and sys_rt_sigprocmask.
The regular one works with 32bits sigset_t while the rt_ variant deals with
64bits (128bits on mips) sigset_t. This is, I believe, largely due to legacy
support for old glibc when they added support for RT signals in a very very
distant past - before the kernel git epoch.
Said that, bionic, for some reason, decided to go with the old one. Android's
kernel has full support for RT signals, which makes the whole thing even more
interesting. I could not figure out why it ended up like that, probably some
historical accident that was never noticed.
Current bionic (Jelly Bean 4.2.1) function that operate on sigset_t don't
perform any bounds check which, when using signal 33, leads to memory corruption.
On our case it leads to stack corruption and random crashes.
2013-01-28 11:27:18 -05:00
Jeremie Laval
0ad6ffdeca
[monodoc] Backport XSL changes that were made after branching
2013-01-28 11:51:25 +00:00
Jeremie Laval
d41cbc4c83
[monodoc] Backport 463b5912ce
2013-01-28 11:51:25 +00:00
Alan McGovern
c439e141dd
[monodoc] Delete some crufty duplicate files
2013-01-28 10:22:14 +00:00
Zoltan Varga
846552f1f8
Implement support for virtual generic calls from gsharedvt methods.
2013-01-28 03:32:56 +01:00
Mark Probst
c67fa57557
[sgen] Fix internal allocator DTrace probes commit.
2013-01-27 23:19:55 +01:00
Mark Probst
0da32f0bcb
[sgen] Finish concurrent collection before clearing a domain.
2013-01-27 11:49:18 +01:00
Marek Safar
a18f41155c
Merge pull request #539 from pnewhook/master
...
replaced link in README to old build system with monkeywrench
2013-01-26 13:41:10 -08:00
pnewhook
6187192337
fixed broken link to automated build in README
2013-01-26 11:51:08 -02:00
Mark Probst
85b33433e4
[sgen] DTrace probes for internal allocations.
2013-01-26 12:53:26 +01:00
Martin Baulig
10fa0cd338
[Mono.Security]: Change NTLM domain policy.
...
There has been a bug report where a Microsoft Server 2008 RC2 does
not accept the domain name that it sent back in the Type2Message's
TargetInfo / Domain Name field.
Therefor, we're now using the domain name from the `NetworkCredential' -
this is also what's initialy being sent to the server in the
`Type1Message`.
2013-01-26 07:12:14 +01:00
Zoltan Varga
b2f5a191b7
Fix a regression introduced by 7ca90f152d.
2013-01-26 05:42:54 +01:00
Rodrigo Kumpera
34c53fcc44
Fix the Mono.Security.dll monotouch build.
2013-01-25 15:42:42 -05:00
Jeremie Laval
332b86bf85
[monodoc] Handle a bit better backtick generic URLs
...
Not ideal but since these guys are rarely used, better to fix the generator producing them.
2013-01-25 17:37:48 +00:00
Jeremie Laval
c7d5104412
[monodoc] Fix test compilation/run
2013-01-25 17:10:37 +00:00
Zoltan Varga
88dc6c2f52
Add some debugging code to sdb to help track down #9783 .
2013-01-25 18:00:04 +01:00
Jeremie Laval
2eb93d0261
[monodoc] Support image with uncompiled sources
2013-01-25 16:27:38 +00:00
Jeremie Laval
8eb50752d2
[monodoc] Remove now useless parser instance
2013-01-25 16:27:38 +00:00
Jeremie Laval
a70c18316e
[monodoc] Slightly alter the new API to pass around a real context dict rather than embedding it in the IDs.
2013-01-25 16:27:37 +00:00
Jeremie Laval
11acc7f19a
[monodoc] Refactor more code from ecma-provider to the common EcmaDoc
2013-01-25 16:27:37 +00:00
Jeremie Laval
3d81d4f248
[monodoc] Create a null cache when using parameterless HelpSource ctor
2013-01-25 16:27:37 +00:00
Jeremie Laval
71c16a49d2
[monodoc] Don't explode when treating invalid XML document
2013-01-25 16:27:36 +00:00
Jeremie Laval
c0eee20f48
[monodoc] Refactor path handling in index/search index routines
2013-01-25 16:27:36 +00:00
Jeremie Laval
3bcb7a7f27
[monodoc] Protect searchable index creation from badly formated ECMA document
2013-01-25 16:27:36 +00:00
Jeremie Laval
c747a9121e
[monodoc] Try get images through a simple storage call by default
2013-01-25 16:27:35 +00:00
Zoltan Varga
d1d46b1203
Avoid generating seq points in native-to-managed wrappers as they can be hit before a thread is attached to the JIT. Fixes #8338 .
2013-01-25 17:22:22 +01:00
Zoltan Varga
d7981e280a
Remove emit_gsharedvt_call (), use mono_emit_calli () instead. Small cleanups to the call handling code in mono_method_to_ir ().
2013-01-25 16:48:07 +01:00
Zoltan Varga
7ca90f152d
Rework the call handling code in mono_method_to_ir () to remove some code duplication.
2013-01-25 14:59:22 +01:00
Zoltan Varga
c063d6afe6
Avoid a newline in a mono_trace () call, it already adds one.
2013-01-25 00:37:21 +01:00
Mark Probst
e31fa7e881
[sgen] Stress test for cementing.
2013-01-24 23:57:08 +01:00
Mark Probst
5991a350cd
[sgen] DTrace probe for cementing objects.
2013-01-24 23:47:06 +01:00
Zoltan Varga
020292a1e1
Fix the calculation of MONO_RGCTX_INFO_VALUE_SIZE for reference types. Enable gsharedvt for the LDFTN opcode.
2013-01-24 16:36:35 +01:00
Zoltan Varga
c00e43f643
Include the -gsharedvt.c files when MONO_EXTENSIONS is defined to make development easier.
2013-01-24 16:36:34 +01:00
Atsushi Eno
f6093bbb3b
Revert "update rx to the latest rx-oss-v1.1 build."
...
This reverts commit 924ab25739 .
Conflicts:
external/rx
mcs/class/build-rx-dll-sources.sh
mcs/class/project_template_android.txt
mcs/class/project_template_ios.txt
2013-01-24 16:41:44 +09:00
Vincent Povirk
d25a61eebd
cominterop: Free IMarshal interface with the CCW.
...
This commit is licensed under MIT/X11.
2013-01-23 14:15:39 -06:00
Mark Probst
05b1cf3399
Merge branch 'feature-perpetual-pinning'
2013-01-23 13:04:56 +01:00
Mark Probst
ebe9f327b6
[sgen] Run SGen tests with marksweep-conc and split nursery.
2013-01-23 13:04:26 +01:00
Mark Probst
bd9a040809
[sgen] Fix an assertion that triggered with simple nursery, marksweep-conc and cementing.
2013-01-23 13:04:26 +01:00
Mark Probst
6c1f4abca4
[sgen] Better explanation for scanning whole nursery with split/concurrent.
2013-01-23 13:04:26 +01:00
Mark Probst
e0843b8358
[sgen] Move cementing parameters to sgen-conf.h.
2013-01-23 13:04:25 +01:00
Mark Probst
abcb1ba5c2
[sgen] Comment on the cement modulo hash.
2013-01-23 13:04:25 +01:00
Mark Probst
d4446a3145
[sgen] Use SGEN_ASSERT for cementing assertions.
2013-01-23 13:04:25 +01:00
Mark Probst
f301261a78
[sgen] Make cementing work with split nursery.
2013-01-23 13:04:24 +01:00
Mark Probst
66bb9affc2
[sgen] Whole heap check can only lookup, not change the cementing hash.
2013-01-23 13:04:24 +01:00
Mark Probst
a20102b48a
[sgen] Shadow cementing table to allow cementing during concurrent major collections.
2013-01-23 13:04:24 +01:00
Mark Probst
9ba2ee8ee9
[sgen] Fix whole heap check for cementing.
2013-01-23 13:04:23 +01:00
Mark Probst
c2d8b165af
[sgen] Option for disabling cementing.
2013-01-23 13:04:23 +01:00
Mark Probst
2042d554ae
[sgen] Binary protocol for global remsets not only for SSB.
2013-01-23 13:04:22 +01:00
Mark Probst
bfdbb54ea7
[sgen] Binary protocol for cementing.
2013-01-23 13:04:22 +01:00
Mark Probst
982cc370d8
[sgen] Cementing
...
For some workloads nursery collections are very slow because we have
pinned objects that are referenced from many major heap objects,
causing us to do excessive remset processing.
Cementing detects those objects and pins them perpetually (until the
next major collection) so we don't have to keep remsets for them.
See
http://schani.wordpress.com/2012/12/18/sgen-write-barrier/
2013-01-23 13:04:22 +01:00
Mark Probst
bebf249a2b
[I18N] Assertions to prevent a buffer overrun.
...
The overrun bug (#9578 ) is still there, but at least now it's not triggered.
2013-01-23 12:46:41 +01:00
Atsushi Eno
5dce6febfa
on Mac, android projects don't deal well with backslash paths unlike iOS projcts...
2013-01-23 19:25:49 +09:00
Atsushi Eno
429645dcae
update rx with ios project file builder workaround for file path/backslash issue.
2013-01-23 19:07:01 +09:00
Atsushi Eno
a94eb3e558
update rx mobile build templates and revision.
2013-01-23 18:27:36 +09:00
Atsushi Eno
21a0545e93
update rx (mobile builds).
2013-01-23 03:30:27 +09:00
Atsushi Eno
5f06c83814
fix monotouch build here to get rx MT build.
2013-01-23 01:23:04 +09:00
Atsushi Eno
3cab9c5a2f
update source generator.
2013-01-23 00:26:38 +09:00
Atsushi Eno
46617b13d2
bump rx.
2013-01-23 00:17:26 +09:00
Atsushi Eno
924ab25739
update rx to the latest rx-oss-v1.1 build.
2013-01-22 19:21:48 +09:00
Martin Baulig
42b6eb5115
[WCF]: .NET 4.0 API fixes.
2013-01-22 00:11:47 +01:00
Jérémie Laval
2f3b9c5641
[build] Don't try to include 4.5 assembly
2013-01-21 21:51:01 +00:00
Martin Baulig
ecff71ad9c
[WCF]: Add configuration support to ServiceContractGenerator.
...
* Implement ServiceContractGenerator.GenerateBinding() and
GenerateServiceEndpoint().
* Fix Namespace logic in ServiceContractGenerator.
* MetadataTests/ImportTests.cs: Add BasicHttp_Config() and
BasicHttp_Config2().
Fix commit message of eb285f121c .
2013-01-21 21:11:14 +01:00
Zoltan Varga
498d9cb822
Fix an assert in mini_emit_stobj () when sgen+gsharedvt are used together.
2013-01-21 21:06:22 +01:00
Martin Baulig
eb285f121c
Merge branch 'master' into baulig
2013-01-21 20:56:20 +01:00
Martin Baulig
25a087aabd
[WCF]: Fix BasicHttpBinding.TextEncoding's default value.
...
Multiple 'BasicHttpBinding' instances should have the same default
value for 'TextEncoding'.
2013-01-21 20:24:29 +01:00
Martin Baulig
96073dd1ad
[WCF]: Implement some missing System.ServiceModel.Configuration APIs.
2013-01-21 20:24:21 +01:00
Martin Baulig
e3ad9bbaec
[WCF]: Minor NetTcpBinding fixes.
2013-01-21 19:27:22 +01:00
Martin Baulig
6805b32a1a
[WCF]: Import ServiceEndpoint.Address for all bindings.
2013-01-21 19:25:40 +01:00
Jeremie Laval
ad039844e8
[build] Fix RPM build (normally)
2013-01-21 18:06:30 +00:00
Zoltan Varga
a00ec2a85f
Fix the build.
2013-01-21 16:58:16 +01:00
Zoltan Varga
9283acc21b
Fix the build.
2013-01-21 15:58:20 +01:00
Zoltan Varga
dc5e9e4d08
Add a hack to allow us to wait for the finalizer thread to exit using pthread_join (). This avoids some shutdown crashes, since WaitForSingleEx () would only wait for the thread's exit event to be signalled, the thread would continue to run. Hopefully fixes #4389 .
2013-01-21 15:36:09 +01:00
Marek Safar
6e9243f1ed
Add accidentally removed string conversion
2013-01-21 09:18:05 +01:00
Zoltan Varga
c4f55dd5cc
Fix the build.
2013-01-20 13:11:30 +01:00
Zoltan Varga
c4ce9fdcaa
Load the -gshared.c files from the mono-extensions module.
2013-01-20 13:02:19 +01:00
Zoltan Varga
f457a01416
Disable the check for inflating types with typedbyref arguments so gsharedvt works again.
2013-01-20 13:02:18 +01:00
Zoltan Varga
e0b0a7ced8
Implement support for interface calls from gsharedvt methods.
2013-01-20 13:02:18 +01:00
Zoltan Varga
824782b608
Fix the DISABLE_JIT build on ARM.
2013-01-20 13:02:17 +01:00
Zoltan Varga
12a9ef6bca
Avoid creating instantiations which violate method constraints.
2013-01-20 13:02:17 +01:00
Zoltan Varga
210153fc5e
Print methods which cannot be gsharedvt compiled when using --aot=print-skipped.
2013-01-20 13:02:17 +01:00
Zoltan Varga
7d369ace4c
Fix some LLVM problems.
2013-01-20 13:02:16 +01:00
Zoltan Varga
b1f3e79d8b
Add gsharedvt tests.
2013-01-20 13:02:16 +01:00
Zoltan Varga
bd60adfe8b
Add AOT support for gsharedvt.
2013-01-20 13:02:16 +01:00
Zoltan Varga
c0cd311a15
Implement ARM backend support for gsharedvt.
2013-01-20 13:02:15 +01:00
Zoltan Varga
137dfdf1fe
Implement x86 backend support for gsharedvt.
2013-01-20 13:02:15 +01:00
Zoltan Varga
4f0280a587
Fix the build.
2013-01-20 13:02:15 +01:00
Zoltan Varga
3ccadbd6ed
Fix the setting of gsharedvt_supported when using the embedding interface.
2013-01-20 13:02:14 +01:00
Zoltan Varga
cb8c39501c
Allow the usage CEE_MONO opcodes in gsharedvt code.
2013-01-20 13:02:14 +01:00
Zoltan Varga
23ffff1d90
Disable LLVM for gsharedvt methods.
2013-01-20 13:02:14 +01:00
Zoltan Varga
d0b97d4bd5
Fix the DISABLE_JIT build.
2013-01-20 13:02:13 +01:00
Zoltan Varga
0af166b025
Add minimal gsharedvt support to the tracing code.
2013-01-20 13:02:13 +01:00
Zoltan Varga
d6969c1a25
Print more detailed information about call instructions in mono_print_ins ().
2013-01-20 13:02:12 +01:00
Zoltan Varga
f57b23eff7
Add gsharedvt support to the JIT and to the trampoline code.
2013-01-20 13:02:12 +01:00
Zoltan Varga
3a4c1eeb38
Add gsharedvt support functions to the generic sharing code.
2013-01-20 13:02:12 +01:00
Zoltan Varga
9d718a2068
Make MonoGenericSharingContext store whenever type arguments are valuetypes or not.
2013-01-20 13:02:11 +01:00
Zoltan Varga
dffd11db94
Add a few new rgctx info types.
2013-01-20 13:02:11 +01:00
Zoltan Varga
34b1c9dbaa
Add two wrappers which are used to transition between normal and gsharedvt code.
2013-01-20 13:02:11 +01:00
Zoltan Varga
3132de21cc
Add new GSHAREDVT optimization flag.
2013-01-20 13:02:10 +01:00
Mark Probst
a06b47e612
[sgen] Make concurrent mark work with the split nursery.
2013-01-19 12:40:13 +01:00
Rodrigo Kumpera
7db1495394
Silence a lot of warnings on linux.
2013-01-18 17:28:41 -05:00
Rodrigo Kumpera
ef55cb377f
[sgen] Fix the fixed-heap + parallel configuration. We did not init vt before checking it.
2013-01-18 17:27:46 -05:00
Marek Safar
d91bdcab02
Add new test
2013-01-18 15:30:53 +01:00
Atsushi Eno
ad59e17ef2
[rx] dummy content in Test directory is required (for "make test")
2013-01-18 22:33:35 +09:00
Atsushi Eno
f7ecc33415
Fix monodroid build (and likely monotouch too).
2013-01-18 21:10:49 +09:00
Atsushi Eno
a9ea7617f4
bump internal rx revision.
2013-01-18 19:43:14 +09:00
Marek Safar
874f3cb07c
Merge pull request #534 from alesliehughes/master
...
Int32Rect operator==,!= and add PropertyValueCollection Property
2013-01-18 01:34:54 -08:00
Alistair Leslie-Hughes
892a17b27c
Add Missing Property PropertyValueCollection.PropertyName
2013-01-18 20:14:33 +11:00
Alistair Leslie-Hughes
b39661fb4c
Implement Int32Rect operator ==, operator !=
2013-01-18 20:14:26 +11:00
Marek Safar
b8e5c27bfe
Merge pull request #530 from jmp75/visualstudio-build
...
First iteration to improve the build process using Visual Studio
2013-01-18 00:31:07 -08:00
Marek Safar
24a7d0058c
Merge pull request #532 from alesliehughes/master
...
AxHost Changes
2013-01-18 00:28:01 -08:00
Alistair Leslie-Hughes
37f035beac
throw NotSupportException when not on windows
2013-01-18 18:33:53 +11:00
Alistair Leslie-Hughes
5f764016d8
Create ActiveX object
2013-01-18 18:33:52 +11:00
Alistair Leslie-Hughes
51601c8bcb
Implement AxHost.InvalidActiveXStateException
2013-01-18 18:33:52 +11:00
Atsushi Eno
eaf26a5c4d
mobile csproj generator needed a lot of fixes to generate buildable projects...
2013-01-18 15:40:25 +09:00
Rodrigo Kumpera
222cec4b25
[sgen]Rework the ephemeron code to not rely on object ranges and make sure it works with split nursery.
...
* sgen-gc.c (sgen_is_object_alive): Extract sgen_major_is_object_alive function.
* sgen-gc.c: Add sgen_is_object_alive_for_current_gen and sgen_is_object_alive_and_on_current_collection
functions that handle old objects during nursery collections as either all live or all dead.
* sgen-gc.c (sgen_object_is_live): Use sgen_is_object_alive_and_on_current_collection which is more
robust, handling to-space nurseries and pinned/evacuated old gen objects. Bridge now works with those.
* sgen-gc.c: Get rid of heap range for the ephemeron functions and use sgen_is_object_alive_for_current_gen
which produces the same result, which is treat all old gen objects as alive during a minor collection.
* sgen-gc.c (clear_unreachable_ephemerons): Don't add remsets for elements on arrays they are not really needed
since we scan all ephemerons on all collections.
2013-01-17 15:56:38 -05:00
Rodrigo Kumpera
decb1b862c
[sgen] Cleanup, remove object ranges for finalization and weak link code, they no longer are needed.
2013-01-17 15:18:09 -05:00
Rodrigo Kumpera
db563fce46
Add test for #9590 .
2013-01-17 14:29:43 -05:00
Rodrigo Kumpera
9d20055a71
A weak link target is zeroed before we unregister it. Avoid a race condition if we suspend in the middle. Fixes #9590
...
* sgen-fin-weak-hash.c: A mutator thread unregistering a weak link does zero it before staging the
request for unregister. This is done without holding any GC lock, which means it can be stopped at any
point in between.
Storing zero breaks because REVEAL_POINTER xors the value resulting in an invalid pointer and code walking
the weak table tries to poke that pointer. Encoding hidden zero (IOW -1) does not work either because we range
check those values and for the major collection we pass (0, ~0) as the valid range.
2013-01-17 14:29:43 -05:00
Atsushi Eno
fa58a07046
[rx] add missing project file generator helper files.
2013-01-18 04:23:41 +09:00
Atsushi Eno
fade2ea19b
update rx import source builder to build csproj files for mobile profiles too.
2013-01-18 03:59:58 +09:00
Marek Safar
bc9310d661
Make Is64BitProcess internal to avoid mobile define
2013-01-17 17:57:11 +01:00
Mark Probst
db374b70a8
[sgen] Remove the copying major collector.
...
This probably isn't even working anymore, and it's not useful anymore.
2013-01-17 00:04:18 +01:00
Jérémie Laval
b69f908447
Revert "Make monodoc 4.5 only it has no 4.0 specific api". It's intentional that monodoc has a 4.0 compiled version too.
...
Some project (namely MonoDevelop) depends on a 4.0 monodoc.dll version.
This reverts commit 3fa0abaca8 .
2013-01-16 22:13:14 +00:00
Rodrigo Kumpera
7f99bbcd26
Remove tracking link hashtables no longer used by boehm.
2013-01-16 16:10:47 -05:00
Rodrigo Kumpera
2815591667
Boehm now supports long links.
...
* gc.c: mono_gc_weak_link_remove must now take a bool to signal if it's
a tracking or non tracking link. This is due to a limitation in how tracking
links are implemented in boehm in that it cannot discover the kind on its own.
* gc.c:
* boehm-gc.c: Remove all tracking link hacks now that boehm has proper support
for it.
2013-01-16 16:10:47 -05:00
Rodrigo Kumpera
5a1eeba27e
Add long links support to Boehm.
...
* gc.h: Added parts of boehm 7.3a long link API.
* finalize.c (GC_finalize): Implemented long link support by adapting
code from boehm 7.3a.
The idea is to have two table of links, one for regular and another
for the long links. Regular links are processed before finalization
and the long ones right after. The bulk of the changes are abstracting
the disappearing link hashtable into a data structure so we can have
two of them.
Boehm code came from github.com/ivmai/bdwgc.git. Authors of the
relevant changes are Zach Saw and Ivan Maidanski.
2013-01-16 16:10:46 -05:00
Marek Safar
3fa0abaca8
Make monodoc 4.5 only it has no 4.0 specific api
2013-01-16 17:21:13 +01:00
Marek Safar
35ad04a4d5
Change is_number parsing to peak instead of putting back to avoid double putback. Fixes #9559
2013-01-16 17:13:15 +01:00
Rodrigo Kumpera
31149787c2
Check if the thread suspend correctly. Fixes shutdown race in mono testsuite.
2013-01-15 19:46:02 -05:00
Zoltan Varga
b8a640bde4
Wait for the finalizer thread to actually exit before shutting down. Fixes #4389 .
2013-01-16 00:31:13 +01:00
Zoltan Varga
56275bc16b
Remove some special case code from mono_image_get_fieldref_token () which no longer seems to be needed. Fixes #9531 .
2013-01-14 22:15:12 +01:00
Jeremie Laval
b3e08eaa1c
[monodoc] Move to /class instead of /tools and re-enable compilation for 4.0 profile.
2013-01-14 18:03:14 +00:00
Zoltan Varga
339ce5ac68
Make pdb2mdb handle the 0xfeefee MS line number convention. Fixes #5249 .
2013-01-14 18:53:49 +01:00
Marek Safar
c3bd798a58
Inflate explicit interface implementation generic method parameters in correct context. Fixes #9443
2013-01-14 17:00:19 +01:00
Zoltan Varga
5a85b0600d
Check source files without path as well when using MOD_KIND_SOURCE_FILE_ONLY modifiers in sdb.
2013-01-14 15:36:22 +01:00
Marek Safar
1ffec2cf0f
Rework how defined interfaces are expanded. Fixes #9429 and few more corner cases.
2013-01-14 11:17:23 +01:00
Marek Safar
616e0f715c
Use Length instead of Count
2013-01-14 11:17:23 +01:00
Marek Safar
c255f2eb0f
Do expansion of generic interfaces members without recursion
2013-01-14 11:17:22 +01:00
Marek Safar
d8fac80b47
Report less cascading errors
2013-01-14 11:17:22 +01:00
Marek Safar
2e6197cb37
Fix stack overflow when reporting circular type errors
2013-01-14 11:17:22 +01:00
Mark Probst
1cda198511
[sgen] Bugfix: Don't lose global remsets with the split nursery.
2013-01-14 01:28:42 +01:00
Jean-Michel Perraud
9c01a8335f
FIX: doubling up on curly braces around GUIDs in the solution files
...
Ongoing work to handle the PrebuiltSystem alias and to figure out what to do where no prior matching assembly name exists
2013-01-13 19:52:33 +11:00
Sebastien Pouliot
0582b8d6b4
Add support for [LinkSafe] attribute
2013-01-12 19:15:26 -05:00
Mark Probst
d505a810d9
[sgen] Flag in minor collector struct for whether it's split or not.
...
We need this flag later to make split nursery work with
concurrent mark.
2013-01-12 16:35:06 +01:00
Mark Probst
29c2497017
[sgen] Only protocol/DTrace pinning when we actually pin.
2013-01-12 16:32:57 +01:00
Zoltan Varga
535e76a058
Add beginnings of a managed IL disassembler which uses Mono.Cecil. Not yet part of the build.
2013-01-12 13:04:05 +01:00
Jean-Michel Perraud
3796c282fe
Add changes to the main Makefile.am, not only Makefile which is not versioned
2013-01-12 12:52:33 +11:00
Martin Baulig
8673afe412
[WCF]: Make HttpTransportSecurity's .ctor public on mobile.
2013-01-12 01:26:18 +01:00
Martin Baulig
52845b784b
[WCF]: .NET 4.0 API fixes.
2013-01-12 00:58:39 +01:00
Martin Baulig
7704c1af72
[WCF]: BasicHttpBinding API changes for .NET 4.5
...
Add missing mobile conditionals that were missing in commit 8e4dc61 .
2013-01-12 00:58:39 +01:00
Rodrigo Kumpera
3a26c32f1b
Avoid overflow in SortedList binary search for huge instances. Fixes #4328 .
2013-01-11 16:42:36 -05:00
Rodrigo Kumpera
089ab9c975
DirectoryInfo should update its internal values when MoveTo is called. Fixes #7653 .
2013-01-11 16:23:37 -05:00
Mark Probst
2403954f9b
[sgen] DTrace probe for when a GC is requested.
2013-01-11 18:11:57 +01:00
Mark Probst
bc73f7a909
[sgen] Don't report that we need a major collection while one is in progress.
...
This caused us to stop the world unnecessarily during concurrent
collections, only to realize that nothing needed to be done.
2013-01-11 18:11:02 +01:00
Rodrigo Kumpera
eb125e2c9a
Correctly handle clock going back in time when caching datetime and timezone information. Fixes #8504 .
...
* DateTime.cs:
* TimeZone.cs: The caching code should take into account the possibility of the clock
going back in time.
2013-01-11 11:24:39 -05:00
Zoltan Varga
a820d72b95
Add beginnings of a tool to dump the contents of .mdb files. Currently, only the line number tables are dumped. Not yet part of the build.
2013-01-11 14:40:39 +01:00
Mark Probst
d363b01e07
[sgen] MONO_GC_DEBUG option for checking mark bit consistency.
2013-01-11 13:32:46 +01:00
Mark Probst
5ec162413f
[sgen] Bugfix: Actually sweep blocks when doing concurrent mark.
2013-01-11 13:32:45 +01:00
Mark Probst
d68c1cddea
[sgen] Add a missing binary protocol call.
2013-01-11 13:32:44 +01:00
Mark Probst
40459e7bce
[sgen] Bugfix: When scanning mod table, follow major->major references.
2013-01-11 13:32:44 +01:00
Mark Probst
e9ebfeb760
[sgen] More information in describe_ptr(), and unify with describe_pointer().
2013-01-11 13:32:43 +01:00
Mark Probst
6d4aac5358
[sgen] Binary protocol entry for card scanning.
2013-01-11 13:32:36 +01:00
Atsushi Eno
0438680b67
[msbuild] Fix import set to expected path when invalid imports are allowed.
...
It was failing to resolve <Import> to correct path because it allowed
invalid imports too early in Import.ForEachExtensionPathTillFound().
It is due to Project.AddSingleImport() that checks if invalid imports
can be ignored by load setting. But simply removing this check results
in regressions in nunit tests that fails to report required invalid imports.
This bug was one of the blockers to build fsharp-droid from xbuild:
https://github.com/fahadsuhaib/fsharp-droid
2013-01-11 20:43:53 +09:00
Zoltan Varga
b81dfbe1cf
Applied patch from Tal Aloni <[email protected] >. Fix building with VS2010.
2013-01-11 11:50:26 +01:00
Zoltan Varga
444a0138ac
Allow array fields with marshal descriptions in can_marshal_struct (), so PtrToStructure/StructureToPtr wrappers are generated for them when using full-aot. Fixes #9408 .
2013-01-11 11:06:50 +01:00
Rodrigo Kumpera
4dc7925783
MOBILE now builds with 4.0 enabled but its version remains 2.0.5.0.
...
* Consts.cs.in: We must check for mobile before 4.0 to make sure
we don't end up with a 4.0.0.0 mobile BCL.
2013-01-10 18:13:15 -05:00
Jean-Michel Perraud
009f6521b3
minor refactor for solution files names generation
2013-01-11 09:55:57 +11:00
Rodrigo Kumpera
56d9663bb2
Merge pull request #517 from getsometoast/master
...
[System.Data.SqlClient] Support for "Connection Lifetime" parameter
2013-01-10 09:28:22 -08:00
Jean-Michel Perraud
81ad8b58bb
Document the Visual Studio csproj and .sln generation, tidy up/fixes. Getting ready for a pull request.
2013-01-10 10:58:15 +11:00
Jean-Michel Perraud
1d63c5debc
Merge remote-tracking branch 'upstream/master'
2013-01-10 10:53:17 +11:00
Rodrigo Kumpera
f197c5c9cd
[corlib] Handle overflow correctly in Timer to avoid spinning. Fixes #8782
...
* Timer.cs: Very long timers can lead to timeout values that are
bigger than Int32.MaxValue, leading to a negative value and us
spinning.
2013-01-09 16:30:38 -05:00
Rodrigo Kumpera
50e8cc4c25
[bcl] Add 4.0 and 4.5 defines to monodroid's bcl.
2013-01-09 15:26:13 -05:00
Rodrigo Kumpera
525bc3e468
[bcl] Build System.Data.Services.Client monodroid profile in the same way we do the monotouch one.
2013-01-09 15:26:13 -05:00
Rodrigo Kumpera
451f968eec
[profiler]Explicitly include <sys/syscall.h> when using perf on linux.
...
* proflog.c: We include it to fix mobile builds as the definition was missing otherwise.
2013-01-09 15:26:13 -05:00
Duncan Mak
9bdc0df449
Bump mono to 3.0.4
2013-01-09 13:17:50 -05:00
Jonathan Pryor
6c5d76dd4c
LockFile() should error with ERROR_INVALID_PARAMETER on overflow
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=9411
What was happening was that this code:
var file = new FileStream (...);
file.Lock (0, long.MaxValue);
was failing on Android (a non-large file platform):
System.IO.IOException: Lock violation on path...
The fact that it errored is correct. The problem is that the error
isn't particularly helpful and is misleading; WHY is there a lock
violation? There isn't a lock violation; the parameters are
invalid.
Why are the parameters invalid? Because `long.MaxValue` was used as
the `length`, which resulted in an `off_t` value of -1 [0] for the
file lock length, which fcntl(2) (rightfully!) errored on.
Update _wapi_lock_file_region()/LockFile() to check for negative
values and set ERROR_INVALID_PARAMETER when invalid values are used.
This will cause an "IOException: Invalid parameter" message, instead
of an "IOException: Lock violation on path" message, which is
considerably more useful.
Related: we noticed that the generation of `offset` and `length` in
LockFile()'s !HAVE_LARGE_FILE_SUPPORT region are incorrect, e.g. this
is broken:
length = length_low;
Assume a `file.Lock(0, 0x100000000L)` invocation. After splitting,
offset_high will be 0x1 and offset_low will be 0x0, so length is 0x0,
which is not semantically correct (it's not at all what the developer
requested!), yet it would result in a successful fcntl(2) call
(because length_high is ignored).
Add an explicit check for length_high and offset_high when
HAVE_LARGE_FILE_SUPPORT isn't set and error out if they're > 0, which
will catch this case.
[0]: fcntl(2) uses off_t for file offset and file lock length,
and off_t is a signed type:
http://www.unix.org/version2/whatsnew/lfs.html#2.2.2.6
> The types blkcnt_t and off_t are defined as extended signed integral types.
2013-01-09 11:59:09 -05:00
Lluis Sanchez
d3fdb925ec
Fix bug 9193 - XmlSerialization not properly deserializing a List
2013-01-09 13:54:47 +01:00
Lluis Sanchez
0c2e8c9455
Add some unit tests for bug 9193
2013-01-09 13:43:56 +01:00
Atsushi Eno
8b53e0c13a
update rx (now includes mobile test solutions that should build).
2013-01-09 21:31:05 +09:00
Zoltan Varga
2cde8a7269
Fix the check for autoheader in eglib/autogen.sh and libgc/autogen.sh too.
2013-01-09 13:16:42 +01:00
Zoltan Varga
7fbe0a0feb
Avoid an assert if seq points are not found for a method in compute_frame_info ().
2013-01-09 13:07:18 +01:00
Zoltan Varga
e63ddd2450
Fix the check for autoheader in autogen.sh.
2013-01-09 11:34:41 +01:00
Zoltan Varga
052ba601f3
Remove automake macros obsoleted by automake 1.13. Fixes #9324 .
2013-01-08 23:29:31 +01:00
per202
7a343244aa
solution and VS project file generation improvements. Get solutions that include assemblies related to a particular profile, and their dependencies. Currently at a stage where most of the System.* for .NET 2.0 compile (although the assemblies end up targeting v4.0 runtime)
2013-01-07 23:15:16 +11:00
per202
06821ecafa
Add a file with ivsual studio settings with (trying to conform to) the Mono coding guildelines
...
Format genproj.cs to the Mono coding guildelines
2013-01-05 17:37:19 +11:00
per202
fc9380df56
Initial work to make the mono csproj files mroe readily compilable in Visual Studio. This is work finally following up on my offer in http://lists.ximian.com/pipermail/mono-devel-list/2012-May/038908.html .
2013-01-04 18:21:54 +11:00
Pablo Ruiz Garcia
43451a70bf
Two small typo fixes.
2012-12-26 14:30:51 +01:00
James Lewis
48426d0d78
Merge pull request #1 from knocte/master
...
Unbreak API and other nitpicks
2012-12-19 09:40:24 -08:00
Andres G. Aragoneses
3932b5c1c9
[Mono.Data.Tds] Add Obsolete constructors to unbreak the API
...
As Miguel points out, this assembly could be used by other people outside
Mono, so let's not break the API and make these constructors pass a 0
default connection lifetime (in this case the connection lives forever as
it used to happen before bringing connection lifetime support).
2012-12-19 11:12:44 +00:00
Andres G. Aragoneses
5b1748a00a
[System.Data.SqlClient] Use DEFAULT_CONNECTIONLIFETIME const in the code
...
We had created the constant for the pull request but we were not actually
using it, oops!
2012-12-19 11:08:47 +00:00
Pablo Ruiz Garcia
cdc71ff394
Fixes xamarin-bug #8965 : AllowHtmlAttribute ignored throwing exception on POST using ASP.NET mvc3
...
Mono's implementation of Microsoft.Web.Infrastructure was incorrectly
applying validation over 'unvalidated collections' cause HttpRequest's
internal collection is being replaced by a new LazyWebROCollection
which internally performs validation inside it's Get() methods.
However, ValidationUtility.GetUnvalidatedCollections(..) should not
perform validation, as this is what MVC (when using AllowHtmlAttribute)
expects.
See: https://bugzilla.xamarin.com/show_bug.cgi?id=8965
License: This patch is under MIT/X11 license.
2012-12-16 08:43:50 +01:00
James Lewis
859d71d005
[System.Data.SqlClient] Support for "Connection Lifetime" parameter
...
Adding support for "Connection Lifetime" parameter in connection strings.
This is especially fundamental in this scenario:
- Pooling is ON because the app is in constant reception of requests.
- Loadbalancer is switched to point to a new database.
- Mono needs to discard the connections that are too old (marked by lifetime)
in order to create new ones, that will connect to the new DB.
It includes a unit test in Mono.Data.Tds testing assembly.
Patch contributed under the terms by the X11/MIT license, by:
James Lewis <[email protected] >
Andres G. Aragoneses <[email protected] >
2012-12-05 12:29:41 +00:00
Shay Rojansky
850f2f4124
Fixes threadpool+ProcessExit problem
...
The threadpool was being shutdown too early, before the ProcessExit event was fired.
This led to bugs such as NLog not shutting down
(http://nlog-project.org/2011/10/30/using-nlog-with-mono.html ).
2012-11-18 22:14:00 +02:00
Shay Rojansky
a2e54923bb
Runtime test to reproduce threadpool+ProcessExit issue
...
Do make test-process-exit to run
2012-11-18 22:13:42 +02:00
Pablo Ruiz Garcia
77798d7ecb
Implemented UrlAuthorizationModule.CheckUrlAccessForPrincipal(...) (fixes xamarin bug #7408 )
2012-10-05 18:49:48 +02:00
Melanie Thielker
9605c20c97
Fix ServicePointManager to accept the DefaultConnectionLimit property being
...
set as per the .NET spec.
2012-09-30 18:46:38 +02:00
Jonathan Chambers
12085044cd
Use getpid instead of GetCurrentProcessId as the latter calls into io-layer which is not initialzed at this point.
2012-04-16 09:48:54 -04:00
Peter Collingbourne
6c620c74f3
X11: improve handling of WS_EX_TOPMOST
...
Currently, WS_EX_TOPMOST is handled by making the window transient-for
the root window. I was unable to find any documentation that indicated
that this would have the desired effect. Instead, use SetTopmost to
set _NET_WM_STATE to _NET_WM_STATE_ABOVE, per EWMH.
Also, use XMapRaised to raise topmost windows to the top of the stack
when mapped, as a last ditch effort to support window managers that
do not respect _NET_WM_STATE, such as xmonad.
This fixes an issue I encountered when running a winforms application
in xmonad, whereby drop down menus would fail to re-open if windows
had been re-arranged after the menu was first opened (in reality,
the menu was hiding behind the form).
2012-04-09 02:22:37 +01:00
Peter Collingbourne
2f04977242
Cause MenuDeactivate event to be delivered when appropriate
...
This is achieved by moving the FireMenuDeactivate call to
MenuStrip.Dismiss and causing it to be called in a couple of places
where it ought to be.
2012-04-02 05:52:21 +01:00