Rodrigo Kumpera [Mon, 15 Sep 2014 16:31:16 +0000 (12:31 -0400)]
Merge pull request #1280 from nealef/master
Maximum large object size should be limited by SSIZE_MAX not SIZE_MAX.
Martin Baulig [Mon, 15 Sep 2014 15:11:21 +0000 (17:11 +0200)]
[WCF]: Copy out/ref parameters on async call; bug #22129.
Marek Safar [Mon, 15 Sep 2014 16:20:02 +0000 (07:20 -0900)]
Merge pull request #1286 from esdrubal/xmlnullablearrayitem
XmlSerializer nullable array items.
Marcos Henrich [Mon, 15 Sep 2014 14:49:46 +0000 (15:49 +0100)]
If not specified assume that array items are nullable. Fixes #19012.
Marcos Henrich [Mon, 15 Sep 2014 15:55:31 +0000 (16:55 +0100)]
Test xml serialization of nullable array items. Covers #19012.
Marek Safar [Mon, 15 Sep 2014 15:37:16 +0000 (17:37 +0200)]
[xbuild] Workaround for null log service (which should never be null)
Marek Safar [Mon, 15 Sep 2014 12:44:30 +0000 (03:44 -0900)]
Merge pull request #1257 from esdrubal/xmloptional
Added optional serialization based on ShouldSerialize{V}.
Marcos Henrich [Mon, 8 Sep 2014 15:21:01 +0000 (23:21 +0800)]
Ignore method ShouldSerialize if it is a generic.
Marcos Henrich [Mon, 8 Sep 2014 15:16:08 +0000 (23:16 +0800)]
Test serialization wen class has method bool ShouldSerialize<T>().
.NET throws an exception but it should have no effect on the serialization.
Marcos Henrich [Fri, 5 Sep 2014 12:58:22 +0000 (20:58 +0800)]
Added optional serialization based on ShouldSerialize{V}.
SerializationCodeGenerator and XmlSerializationWriterInterpreter will no longer serialize an attribute named {V} if its object has a method named ShouldSerialize{V}() that returns false.
{V}Specified now is also checked to be true before serializating the attribute even if it is a property that is not settable.
Fixes #1852.
Marcos Henrich [Fri, 5 Sep 2014 12:47:48 +0000 (20:47 +0800)]
Added test for optional {V}Specified and ShouldSerialize{V}.
{V}Specified is a property or field and ShouldSerialize{V} is a method that can be set to false if we do not want to serialize an attribute with name {V}.
Marcos Henrich [Fri, 5 Sep 2014 12:05:12 +0000 (20:05 +0800)]
Fixed NullReferenceException.
Marek Safar [Mon, 15 Sep 2014 11:37:56 +0000 (13:37 +0200)]
[xbuild] Use ToolPath when building ToolTask execution path. Fixes #22981
Zoltan Varga [Sat, 13 Sep 2014 17:56:18 +0000 (13:56 -0400)]
[runtime] Remove an unused interpreter file.
Marek Safar [Sat, 13 Sep 2014 10:43:16 +0000 (12:43 +0200)]
[mcs] nullable property pattern
Zoltan Varga [Sat, 13 Sep 2014 00:07:05 +0000 (20:07 -0400)]
[runtime] Fix the windows build. Define _WINSOCKAPI_ to fix the compilation problems when windows.h is included before winsock2.h: stackoverflow.com/questions/
1372480/c-redefinition-header-files.
Rodrigo Kumpera [Fri, 12 Sep 2014 18:15:55 +0000 (14:15 -0400)]
[runtime] Improve thread dumping reliability by doing it while holding the fat locks.
We take the loader and the root domain locks before doing a thread dump. This reduces the odds
of us suspending a thread that holds either of them and deadlocking, for example, while decoding
AOT JIs.
Neale Ferguson [Fri, 12 Sep 2014 15:37:52 +0000 (11:37 -0400)]
Maximum large object size should be limited by SSIZE_MAX not SIZE_MAX.
The latter appears to be a hangover from 32-bit systems.
Neale Ferguson [Fri, 12 Sep 2014 15:19:05 +0000 (11:19 -0400)]
Fixes 19752 -
Users have been complaining about strange errors arising when using the OracleClient classes.
I have tracked it down to the OciDefineHandle and OciDefineByPos calls, and OracleParameter
handling of amanged objects by unmanaged code. Currently two of the parameters passed to the
above OCI call are short variables. They are passed as "ref" fields as Oracle uses their
address to put size and indicator data once the data is fetched. However, being defined as
short means that they are eligible for being moved during garbage collection. Thus if that
field is moved between the OciDefineByPos call and the fetch of the data then what Oracle is
pointing to may no longer be variable. I'm thinking it may be better to define these fields as
IntPtr and allocate them and retrieve their values via Marshal.ReadInt16. As for OracleParameter,
it uses a managed object "indicator" that is also used in a similar way. This reference is replaced
by a IntPtr and a get/set method to access the contents.
Marek Safar [Fri, 12 Sep 2014 13:18:53 +0000 (15:18 +0200)]
[mcs] Don't use `1 naming for compiler generated second level and deeper nested types. Fixes #22893
Zoltan Varga [Fri, 12 Sep 2014 00:58:12 +0000 (20:58 -0400)]
Merge pull request #1276 from Therzok/master
Add concurrent hashtable test to gitignore.
Zoltan Varga [Fri, 12 Sep 2014 00:57:48 +0000 (20:57 -0400)]
Merge pull request #1275 from ranma42/fix-lib64
Fix build with lib64 folder for arch-specific libraries
Sebastien Pouliot [Fri, 12 Sep 2014 00:43:21 +0000 (20:43 -0400)]
[System] Fix building unit tests under the mobile profile
Zoltan Varga [Thu, 11 Sep 2014 21:57:00 +0000 (17:57 -0400)]
[jit] Always pass the imt arg to interface calls in gsharedvt methods. Fixes #22624.
Marek Safar [Thu, 11 Sep 2014 17:40:06 +0000 (19:40 +0200)]
[mcs] property pattern
Rolf Bjarne Kvinge [Thu, 11 Sep 2014 16:52:43 +0000 (18:52 +0200)]
Don't throw TimeZoneNotFoundExceptions when iOS gives us invalid data.
iOS 8 GM lists "Asia/Chita" among its time zones, but when requesting
the time zone data for that time zone, no data is returned.
With this change we ignore time zones without any data when fetching
all the timezones on the system.
Marek Safar [Thu, 11 Sep 2014 14:29:27 +0000 (05:29 -0900)]
Merge pull request #1278 from esdrubal/datetimegmt
GMT DateTimeOffset is now properly parsed.
Marcos Henrich [Thu, 11 Sep 2014 14:12:36 +0000 (15:12 +0100)]
GMT DateTimeOffset is now properly parsed. Fixes #22851.
GMT date formats set useutc to true, so now useutc is checked to init DateTimeOffset with a zero offset.
Marcos Henrich [Thu, 11 Sep 2014 14:11:42 +0000 (15:11 +0100)]
Test that offset is zero when date ends with GMT. Covers #22851.
Marek Safar [Thu, 11 Sep 2014 12:17:52 +0000 (03:17 -0900)]
Merge pull request #1277 from esdrubal/calendarsdaysinyear
Improved CalendricalCalculations fixed_from_dmy methods.
Marcos Henrich [Thu, 11 Sep 2014 11:26:47 +0000 (12:26 +0100)]
Improved CalendricalCalculations fixed_from_dmy methods. Fixes #21930.
In some cases fixed_from_dmy is used with the month parameter greater than the number of months of that year.
Year is now incremented until month parameter is valid.
Marcos Henrich [Thu, 11 Sep 2014 11:53:25 +0000 (12:53 +0100)]
Test Calendar.DaysInYear. Covers #21930.
Ungureanu Marius [Thu, 11 Sep 2014 10:39:52 +0000 (13:39 +0300)]
Add concurrent hashtable test to gitignore.
Marek Safar [Thu, 11 Sep 2014 09:20:44 +0000 (11:20 +0200)]
[corlib] Enumerate all subdirectories including the first one. Fixes #22857
Marek Safar [Thu, 11 Sep 2014 08:30:58 +0000 (10:30 +0200)]
[system] Fixes failing test
Andrea Canciani [Wed, 10 Sep 2014 06:36:42 +0000 (08:36 +0200)]
Do not hardcode lib path
The changes from
3408b8e5f194774e529e223173d68a1a8f880ea5 cause
regressions in distros which do not use lib as folder for
arch-specific libraries, like Fedora x86_64.
Instead, reloc_libdir should be used (as in data/mono.pc.in).
This change is released under the MIT/X11 license.
Zoltan Varga [Wed, 10 Sep 2014 23:14:57 +0000 (19:14 -0400)]
[aot] Avoid a stack overflow if profiler enter-leave events are requested in the full-aot mode.
Zoltan Varga [Wed, 10 Sep 2014 23:06:15 +0000 (19:06 -0400)]
[runtime] Fix the RESOLTION_SCOPE->RESOLUTION_SCOPE typo.
Zoltan Varga [Wed, 10 Sep 2014 18:23:57 +0000 (14:23 -0400)]
[runtime] Redirect runtime logging to asl_log only on ios, not when running the cross compiler.
Marek Safar [Wed, 10 Sep 2014 17:19:20 +0000 (08:19 -0900)]
Merge pull request #1271 from akoeplinger/fix-switch-ctor
[System] Fixed Diagnostics.Switch ctor behavior for null parameters
Alexander Köplinger [Wed, 10 Sep 2014 17:09:34 +0000 (19:09 +0200)]
[System] Fixed Diagnostics.Switch ctor behavior for null parameters
Passing null to the displayName or description ctor parameter on MS.NET makes them equal to an empty string.
Fixed the Mono behavior to match .NET.
Marek Safar [Wed, 10 Sep 2014 17:04:22 +0000 (19:04 +0200)]
[system.net.http] Encode ContentDisposition name. Fixes #18422
Marek Safar [Wed, 10 Sep 2014 16:22:35 +0000 (18:22 +0200)]
[mcs] Remove value type constrained type parameter instantiation optimization to handle parameterless struct constructors
Marek Safar [Wed, 10 Sep 2014 17:08:26 +0000 (08:08 -0900)]
Merge pull request #1270 from esdrubal/xmlimplicit
When needed serialized objects are now implicitly converted.
Marcos Henrich [Wed, 10 Sep 2014 16:25:44 +0000 (17:25 +0100)]
When needed serialized objects are now implicitly converted.
Fixes #20403.
Marcos Henrich [Wed, 10 Sep 2014 16:24:38 +0000 (17:24 +0100)]
Changed method ImplicitConvert to internal static.
Marcos Henrich [Wed, 10 Sep 2014 16:13:49 +0000 (17:13 +0100)]
ImplicitConvert was using method with wrong parameter and return type.
Marcos Henrich [Wed, 10 Sep 2014 15:30:03 +0000 (16:30 +0100)]
Test XmlSerialization of element that requires implicit conversion.
Covers #20403.
Martin Baulig [Wed, 10 Sep 2014 15:08:09 +0000 (17:08 +0200)]
[websocket]: Fix ClientWebSocket.ReceiveAsync() with small buffer; bug #22704.
When calling ClientWebSocket.ReceiveAsync() with a buffer that's smaller than
the received chunk, we need to cache the header until next call.
Alexander Köplinger [Wed, 10 Sep 2014 12:26:36 +0000 (14:26 +0200)]
Fix the build
Marek Safar [Wed, 10 Sep 2014 11:01:15 +0000 (02:01 -0900)]
Merge pull request #1269 from Therzok/refactorSwitches
[SourceSwitch] Refactor a piece of code.
Marius Ungureanu [Wed, 10 Sep 2014 10:59:49 +0000 (13:59 +0300)]
Fix build failure caused by #1267.
Marius Ungureanu [Wed, 10 Sep 2014 10:04:10 +0000 (13:04 +0300)]
[SourceSwitch] Refactor a piece of code.
Marek Safar [Wed, 10 Sep 2014 07:47:22 +0000 (09:47 +0200)]
[system.net.http] Handle Content-Disposition in textual form as well.
Marek Safar [Wed, 10 Sep 2014 05:40:10 +0000 (20:40 -0900)]
Merge pull request #1267 from ramtinkermani/master
The ShouldTrace method's conditions are fixed to correctly trace the events based...
ramtin [Tue, 9 Sep 2014 22:07:14 +0000 (15:07 -0700)]
Unit Tests for SourceSwitch. Counting the number of events traced based on the Trace Level
Marek Safar [Tue, 9 Sep 2014 21:38:12 +0000 (23:38 +0200)]
[system.net.http] Tokenize dash only in range values. Fixes #22764
Rodrigo Kumpera [Tue, 9 Sep 2014 20:33:06 +0000 (16:33 -0400)]
[jit] Fix error handling in a few places in the jit.
Rodrigo Kumpera [Tue, 9 Sep 2014 19:54:15 +0000 (15:54 -0400)]
[runtime] Fix error handling in mono_metadata_parse_mh_full.
Rodrigo Kumpera [Tue, 9 Sep 2014 14:26:16 +0000 (10:26 -0400)]
[runtime] Update reflection.c to use mono_class_get_checked.
Rodrigo Kumpera [Tue, 9 Sep 2014 14:22:51 +0000 (10:22 -0400)]
[runtime] Update marshal.c to use mono_class_get_checked.
Rodrigo Kumpera [Tue, 9 Sep 2014 04:35:26 +0000 (00:35 -0400)]
[runtime] Cleanup usage of mono_class_get to object.c
Rodrigo Kumpera [Tue, 9 Sep 2014 04:28:01 +0000 (00:28 -0400)]
[runtime] Cleanup usage of mono_class_get in loader.c
Rodrigo Kumpera [Tue, 9 Sep 2014 03:32:12 +0000 (23:32 -0400)]
[runtime] Make icall use mono_class_get_checked.
Rodrigo Kumpera [Tue, 9 Sep 2014 03:26:01 +0000 (23:26 -0400)]
[utils] Add mono_error_convert_to_exception.
Rodrigo Kumpera [Tue, 9 Sep 2014 03:18:20 +0000 (23:18 -0400)]
Introduce mono_class_from_name_case_checked
Rodrigo Kumpera [Tue, 2 Sep 2014 02:09:30 +0000 (22:09 -0400)]
[runtime] Use MonoError in exception.c
Rodrigo Kumpera [Mon, 1 Sep 2014 09:50:36 +0000 (05:50 -0400)]
[runtime] Change mono_type_get_full to use MonoError properly.
Rodrigo Kumpera [Mon, 1 Sep 2014 09:36:55 +0000 (05:36 -0400)]
[runtime] Introduce MonoError to mono_type_create_from_typespec.
Rodrigo Kumpera [Mon, 1 Sep 2014 04:09:07 +0000 (00:09 -0400)]
[runtime] Plug MonoError into another function.
Rodrigo Kumpera [Fri, 29 Aug 2014 18:11:51 +0000 (14:11 -0400)]
[runtime] Introduce MonoError to mono_class_get_full.
Introduce MonoError into callers of mono_class_get_full.
Make mono_class_get not abort on failure until all callers are fixed.
Rodrigo Kumpera [Fri, 29 Aug 2014 00:41:40 +0000 (20:41 -0400)]
Add mono_class_get_checked to mono_class_create_from_typedef.
Rodrigo Kumpera [Fri, 29 Aug 2014 00:30:17 +0000 (20:30 -0400)]
[runtime] Change mono_type_get_full to use mono_class_get_checked.
Rodrigo Kumpera [Fri, 29 Aug 2014 00:29:33 +0000 (20:29 -0400)]
[runtime] Change do_mono_metadata_parse_type to use mono_class_get_checked
Rodrigo Kumpera [Fri, 29 Aug 2014 00:29:10 +0000 (20:29 -0400)]
[runtime] Introduce mono_class_get_checked.
Rodrigo Kumpera [Tue, 28 Jan 2014 19:57:39 +0000 (14:57 -0500)]
[runtime] Introduce mono_class_from_typeref_checked and replace usage of the old one with it.
This is another step into wiring up MonoError into the typeloading codebase. This is
one more function that needs it.
Rodrigo Kumpera [Tue, 28 Jan 2014 19:56:20 +0000 (14:56 -0500)]
[utils] Add mono_error_set_assembly_load_simple to ease producing an error message for ref only assemblies.
Rodrigo Kumpera [Mon, 27 Jan 2014 23:04:14 +0000 (18:04 -0500)]
[metadata] Replace mono_class_get_full with a saner pair of mono_class_get and mono_class_inflate_generic_class_checked.
Rodrigo Kumpera [Mon, 27 Jan 2014 23:03:47 +0000 (18:03 -0500)]
[runtime] Expose mono_class_inflate_generic_class_checked to the internal API.
Rodrigo Kumpera [Mon, 27 Jan 2014 22:45:13 +0000 (17:45 -0500)]
Add deprecation notice for mono_class_get_full.
ramtin [Tue, 9 Sep 2014 18:50:06 +0000 (11:50 -0700)]
The ShouldTrace conditions are fixed to correctly trace the events based on the Level
Marcos Henrich [Tue, 9 Sep 2014 16:44:00 +0000 (17:44 +0100)]
TimeFormat "zzz" is only valid after a date.
Marek Safar [Tue, 9 Sep 2014 14:29:34 +0000 (05:29 -0900)]
Merge pull request #1266 from esdrubal/datetimenewformat
Added time format with only offset.
Rodrigo Kumpera [Tue, 9 Sep 2014 13:15:01 +0000 (09:15 -0400)]
Merge pull request #1248 from kumpera/kill_the_interpreter
[runtime] Remove the interpreter.
Rodrigo Kumpera [Tue, 9 Sep 2014 13:14:37 +0000 (09:14 -0400)]
[cleanup] Remove more old files.
Marcos Henrich [Tue, 9 Sep 2014 11:49:00 +0000 (12:49 +0100)]
Added time format with only offset. Fixes #22558.
Marcos Henrich [Tue, 9 Sep 2014 11:41:27 +0000 (12:41 +0100)]
Test DateTimeOffset.Parse with format yyyy-dd-MMzzz. Covers #22558.
Jo Shields [Tue, 9 Sep 2014 10:30:52 +0000 (11:30 +0100)]
Fix "make dist" error
ad8236ebb857acf1459d7c87b85df82918dc2313 broke "make dist", by removing Makefile.am.in whilst leaving it in EXTRA_DIST
Ludovic Henry [Tue, 26 Aug 2014 22:32:23 +0000 (18:32 -0400)]
[sgen] Tweak internal class allocator sizes to add highly used on
We observed on multiples benchmarks that most internal allocations are for 8, 16, 296 (32bits), 328 (64bits), 504 (32bits) and 1016 (64bits) bytes of memory. To minimize waste, we added these memory sizes to the default allocator sizes.
Atsushi Eno [Tue, 9 Sep 2014 07:09:27 +0000 (15:09 +0800)]
[aspnet/ajax] fix bug #6512 (by Mikkel Kruse Johnsen) - don't deserialize GET parameters.
Zoltan Varga [Tue, 9 Sep 2014 02:40:43 +0000 (22:40 -0400)]
Merge pull request #1263 from madewokherd/begindecls
Use G_BEGIN_DECLS instead of __BEGIN_DECLS.
Zoltan Varga [Tue, 9 Sep 2014 00:25:49 +0000 (20:25 -0400)]
[aot] Really fix the aot-cache logging. Rework how mscorlib is handled in the aot cache.
Zoltan Varga [Tue, 9 Sep 2014 00:01:11 +0000 (20:01 -0400)]
[aot] Fix a crash in the aot cache code if MONO_LOG_LEVEL is set.
Zoltan Varga [Mon, 8 Sep 2014 22:49:55 +0000 (18:49 -0400)]
Merge pull request #1264 from madewokherd/vasprintf
Avoid use of vasprintf.
Vincent Povirk [Mon, 8 Sep 2014 20:46:12 +0000 (15:46 -0500)]
Avoid use of vasprintf.
This is not available on mingw-w64, and the extra allocation is unnecessary.
This commit licensed as MIT/X11.
Vincent Povirk [Mon, 8 Sep 2014 18:52:32 +0000 (13:52 -0500)]
Use G_BEGIN_DECLS instead of __BEGIN_DECLS.
__BEGIN_DECLS isn't available in mingw-w64.
This commit licensed as MIT/X11.
Marek Safar [Mon, 8 Sep 2014 14:40:33 +0000 (05:40 -0900)]
Merge pull request #1262 from esdrubal/uriserializationinfo
Added support for UriComponents.SerializationInfoString.
Marcos Henrich [Mon, 8 Sep 2014 14:21:02 +0000 (22:21 +0800)]
Added support for UriComponents.SerializationInfoString. Fixes #21571.
Marcos Henrich [Mon, 8 Sep 2014 14:09:52 +0000 (22:09 +0800)]
Test UriComponents.SerializationInfoString. Covers #21571.
Marek Safar [Mon, 8 Sep 2014 12:52:54 +0000 (03:52 -0900)]
Merge pull request #1253 from esdrubal/datetimeiso8601
DateTime.Parse now handles unlimited number of fractional digits.