Marek Safar [Mon, 4 Mar 2013 10:29:24 +0000 (11:29 +0100)]
Add missing target checks to ConstructorInfo::Invoke
Marek Safar [Mon, 4 Mar 2013 10:27:22 +0000 (11:27 +0100)]
Use Activator instead of InvokeMember with incomplete target value
Marek Safar [Mon, 4 Mar 2013 09:06:25 +0000 (10:06 +0100)]
Remove unused icall
Marek Safar [Mon, 4 Mar 2013 07:49:15 +0000 (08:49 +0100)]
Manually remove code which is disabled but compiler cannot remove automatically.
Marek Safar [Sun, 3 Mar 2013 21:23:48 +0000 (22:23 +0100)]
Use local invoke method instead of doing double virtual call dispatch
Marek Safar [Sun, 3 Mar 2013 21:22:21 +0000 (22:22 +0100)]
Use faster array cloning
Marek Safar [Sat, 2 Mar 2013 21:24:26 +0000 (22:24 +0100)]
Maintain only single version of ordinal string comparers
Marek Safar [Sat, 2 Mar 2013 17:54:30 +0000 (18:54 +0100)]
Don't clone internally used era values
Marek Safar [Sat, 2 Mar 2013 15:39:17 +0000 (16:39 +0100)]
Use faster/smaller versions for some string comparisons
Alex Rønne Petersen [Sat, 2 Mar 2013 09:40:22 +0000 (10:40 +0100)]
metadata/gc.c: Fix a warning when casting MonoInternalThread->tid.
Zoltan Varga [Sat, 2 Mar 2013 00:27:37 +0000 (01:27 +0100)]
Fix the generation of stelemref wrappers in full-aot mode. Some wrappers were not generated with the previous approach. Fixes #10826.
Rodrigo Kumpera [Fri, 1 Mar 2013 20:40:09 +0000 (15:40 -0500)]
Erase the type of more fields so we can link away a few more types.
Rodrigo Kumpera [Fri, 1 Mar 2013 18:24:18 +0000 (13:24 -0500)]
Mobile should not have the COM types set.
Zoltan Varga [Fri, 1 Mar 2013 23:55:42 +0000 (00:55 +0100)]
Fix the protocol version check in the TypeMirror.IsInitialized property.
Zoltan Varga [Fri, 1 Mar 2013 23:52:54 +0000 (00:52 +0100)]
Add an IsInitialized property to TypeMirror which returns whenever the type initializer has ran.
Sebastien Pouliot [Fri, 1 Mar 2013 21:36:41 +0000 (16:36 -0500)]
Reduce XML processing time (GetAttribute was returning String.Empty, not null)
Zoltan Varga [Fri, 1 Mar 2013 21:33:07 +0000 (22:33 +0100)]
Fix the lookup of some ctors in exception.c. Fixes #10774.
Marek Safar [Fri, 1 Mar 2013 21:08:56 +0000 (22:08 +0100)]
Clean up test encoding
Marek Safar [Fri, 1 Mar 2013 21:05:44 +0000 (22:05 +0100)]
Throw exception instead of creating invalid object when remoting is disabled
Zoltan Varga [Fri, 1 Mar 2013 19:27:07 +0000 (20:27 +0100)]
Remove the unmaintained and incomplete alpha backend.
Marek Safar [Fri, 1 Mar 2013 17:55:49 +0000 (18:55 +0100)]
Build correct version of System.Net for non-mobile profile
Marek Safar [Fri, 1 Mar 2013 17:37:39 +0000 (18:37 +0100)]
Default to expression contextual keywords for repl
Rodrigo Kumpera [Fri, 1 Mar 2013 17:25:58 +0000 (12:25 -0500)]
Fix cross compilation under DISABLE_REMOTING
Rodrigo Kumpera [Fri, 1 Mar 2013 16:32:34 +0000 (11:32 -0500)]
Don't check for TransparentProxies on mobile as they don't work.
Rodrigo Kumpera [Fri, 1 Mar 2013 16:32:12 +0000 (11:32 -0500)]
RemotingServices::IsTransparentProxy doesn't work on mobile.
Marek Safar [Fri, 1 Mar 2013 16:12:58 +0000 (17:12 +0100)]
Disable failing socket test
Rodrigo Kumpera [Fri, 1 Mar 2013 16:11:26 +0000 (11:11 -0500)]
Bring back ActivationServices::AllocateUninitializedClassInstance as this is used by the serialization machinery and we need it to work on mobile.
Rodrigo Kumpera [Fri, 1 Mar 2013 15:55:25 +0000 (10:55 -0500)]
Fix again object::GetType ()
Rodrigo Kumpera [Fri, 1 Mar 2013 15:54:09 +0000 (10:54 -0500)]
Revert "Fix object::GetType when remoting is enabled."
This reverts commit
93e2d1dc48339be472300910e9290939ee253177.
Rodrigo Kumpera [Fri, 1 Mar 2013 15:52:03 +0000 (10:52 -0500)]
Fix object::GetType when remoting is enabled.
Marek Safar [Fri, 1 Mar 2013 15:10:34 +0000 (16:10 +0100)]
Fix ReadOnlyDictionary public api
Marek Safar [Fri, 1 Mar 2013 14:30:59 +0000 (15:30 +0100)]
Tests update for mobile profile
Marek Safar [Fri, 1 Mar 2013 13:11:23 +0000 (05:11 -0800)]
Merge pull request #584 from LogosBible/bug10789-resubmit
System.Text.Decoder throws ArgumentOutOfRangeException when it should no...
Martin Potter [Fri, 1 Mar 2013 13:05:34 +0000 (05:05 -0800)]
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."
Marek Safar [Fri, 1 Mar 2013 09:18:38 +0000 (01:18 -0800)]
Merge pull request #583 from TalAloni/master
Make x64 compilation work out of the box
TalAloni [Fri, 1 Mar 2013 09:13:38 +0000 (11:13 +0200)]
Make x64 compilation work out of the box
Change the default projects that are compiled for x64
Marek Safar [Fri, 1 Mar 2013 07:31:03 +0000 (23:31 -0800)]
Merge pull request #581 from TalAloni/master
System.IO.Path bugfix
Marek Safar [Fri, 1 Mar 2013 07:27:31 +0000 (23:27 -0800)]
Merge pull request #579 from LogosBible/bug10788
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can w...
TalAloni [Fri, 1 Mar 2013 07:04:11 +0000 (09:04 +0200)]
Added tests to PathTest.cs
Miguel de Icaza [Sun, 24 Feb 2013 17:15:26 +0000 (12:15 -0500)]
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
Zoltan Varga [Fri, 1 Mar 2013 04:01:19 +0000 (05:01 +0100)]
Implement a fast version of mono_get_lmf_addr () on ARM by inlining the call to pthread_getspecific () into the managed to native wrappers.
Zoltan Varga [Fri, 1 Mar 2013 03:09:03 +0000 (04:09 +0100)]
Add some support for calling JIT icalls directly in full-aot mode.
TalAloni [Fri, 1 Mar 2013 00:47:07 +0000 (02:47 +0200)]
Update Path.cs
Fixed Path.GetDirectoryName() bug when path is in the following form: 'C:filename'
Martin Potter [Fri, 1 Mar 2013 00:26:02 +0000 (16:26 -0800)]
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.
Zoltan Varga [Thu, 28 Feb 2013 23:22:50 +0000 (00:22 +0100)]
Fix the handling of unresolved pinvoke methods in full-aot mode.
Martin Baulig [Fri, 15 Feb 2013 02:23:00 +0000 (03:23 +0100)]
Add System.Collections.ObjectModel.ReadOnlyDictionary.
Zoltan Varga [Thu, 28 Feb 2013 22:42:29 +0000 (23:42 +0100)]
Avoid the str pc,[r0]! instruction in MONO_CONTEXT_GET_CURRENT () which is not allowed by recent gcc versions.
Martin Baulig [Thu, 28 Feb 2013 22:24:19 +0000 (17:24 -0500)]
Really fix the build :-)
Zoltan Varga [Thu, 28 Feb 2013 22:28:27 +0000 (23:28 +0100)]
Fix the build.
Zoltan Varga [Thu, 28 Feb 2013 22:27:22 +0000 (23:27 +0100)]
Fix MONO_CONTEXT_GET_CURRENT () clobbering a register before using it on ARM.
Duncan Mak [Thu, 28 Feb 2013 22:20:45 +0000 (17:20 -0500)]
Try to fix the build.
Include the MonoTrampoline definition inside the DISABLE_REMOTING block.
Zoltan Varga [Thu, 28 Feb 2013 22:17:20 +0000 (23:17 +0100)]
Emit an explicit null check for some calls made out from gshared code.
Rodrigo Kumpera [Thu, 28 Feb 2013 20:07:37 +0000 (15:07 -0500)]
Merge branch 'mono-disable-remoting'
Zoltan Varga [Thu, 28 Feb 2013 20:06:24 +0000 (21:06 +0100)]
Remove an unused argument from mini_add_method_trampoline ().
Rodrigo Kumpera [Thu, 28 Feb 2013 19:19:00 +0000 (14:19 -0500)]
The runtime no longer need the remoting types under DISABLE_REMOTING.
Rodrigo Kumpera [Thu, 28 Feb 2013 19:18:48 +0000 (14:18 -0500)]
Rework castclass and isinst OPs to ignore transparent proxies under DISABLE_REMOTING.
Rodrigo Kumpera [Wed, 27 Feb 2013 22:30:05 +0000 (17:30 -0500)]
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.
Rodrigo Kumpera [Tue, 26 Feb 2013 00:03:12 +0000 (19:03 -0500)]
Hide marshalbyref and contextbound properties under accessors so we can easily configure them out.
Rodrigo Kumpera [Wed, 27 Feb 2013 19:20:52 +0000 (14:20 -0500)]
Add configure option to disable remoting.
Disabling remoting includes type proxies, x-domain communication and makes COM unusable.
Zoltan Varga [Thu, 28 Feb 2013 19:54:18 +0000 (20:54 +0100)]
Fix gsharedvt delegate invokes from gsharedvt code.
Rodrigo Kumpera [Thu, 28 Feb 2013 19:49:46 +0000 (11:49 -0800)]
Merge pull request #537 from madewokherd/ccwmarshal
cominterop: Free IMarshal interface with the CCW.
Atsushi Eno [Thu, 28 Feb 2013 18:40:58 +0000 (03:40 +0900)]
[mkbundle] add explicit --style option to specify output style for as.
Marek Safar [Thu, 28 Feb 2013 15:59:09 +0000 (16:59 +0100)]
Remove ArrayList dependency
Marek Safar [Thu, 28 Feb 2013 15:58:40 +0000 (16:58 +0100)]
Use generic comparer
Marek Safar [Thu, 28 Feb 2013 14:19:22 +0000 (15:19 +0100)]
Use faster versions of string comparers
Marek Safar [Thu, 28 Feb 2013 14:16:56 +0000 (15:16 +0100)]
Remove culture info from simple string concatenation formating
Marek Safar [Thu, 28 Feb 2013 12:19:36 +0000 (13:19 +0100)]
Remove static constructor from HashSet
Zoltan Varga [Thu, 28 Feb 2013 14:00:54 +0000 (15:00 +0100)]
Add static rgctx trampolines in calls from gshared to gsharedvt code if needed.
Rodrigo Kumpera [Thu, 28 Feb 2013 13:35:42 +0000 (08:35 -0500)]
Ignore activationAttributes and never try to create a proxy under MOBILE.
Marek Safar [Thu, 28 Feb 2013 09:56:02 +0000 (10:56 +0100)]
Don't build windows code paths on mobile profiles
Marek Safar [Thu, 28 Feb 2013 08:19:09 +0000 (09:19 +0100)]
Fix compiler warnings
Marek Safar [Thu, 28 Feb 2013 07:58:44 +0000 (08:58 +0100)]
Don't add Array::BinarySearch dependency for unreachable code
Marek Safar [Wed, 27 Feb 2013 23:31:30 +0000 (00:31 +0100)]
Use faster running on windows check
Marek Safar [Thu, 28 Feb 2013 07:48:52 +0000 (23:48 -0800)]
Merge pull request #576 from UCIS/patch-1
Fix ISerializable implementation in mcs/class/corlib/System/OperatingSystem.cs
Ivo Smits [Thu, 28 Feb 2013 01:18:42 +0000 (02:18 +0100)]
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
Sebastien Pouliot [Thu, 28 Feb 2013 01:01:25 +0000 (20:01 -0500)]
Refactor to make it possible for the linker to remove, by default, less used Calendar types from applications
Sebastien Pouliot [Thu, 28 Feb 2013 00:54:36 +0000 (19:54 -0500)]
Fix typo in test name (confusing)
Mark Probst [Wed, 27 Feb 2013 23:24:07 +0000 (15:24 -0800)]
[sgen] Remove SCAN_OBJECT_ACTION - dead code.
Mark Probst [Wed, 27 Feb 2013 23:14:15 +0000 (15:14 -0800)]
Merge branch 'feature-remove-ssb'
Mark Probst [Wed, 27 Feb 2013 22:22:36 +0000 (14:22 -0800)]
[sgen] Remove unnecessary entries from remembered set function table.
Mark Probst [Tue, 26 Feb 2013 22:00:21 +0000 (14:00 -0800)]
[sgen] Remove SSB write barrier.
Mark Probst [Wed, 27 Feb 2013 23:03:57 +0000 (15:03 -0800)]
[tests] Make finalizer-wait.cs less prone to pinning.
Marek Safar [Wed, 27 Feb 2013 22:20:25 +0000 (23:20 +0100)]
Add missing file
Rolf Bjarne Kvinge [Wed, 27 Feb 2013 21:53:58 +0000 (22:53 +0100)]
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.
Marek Safar [Wed, 27 Feb 2013 21:58:05 +0000 (22:58 +0100)]
Replace some hashtables with dictionaries
Marek Safar [Wed, 27 Feb 2013 21:56:25 +0000 (22:56 +0100)]
Fix Type and Module name filters to match
Marek Safar [Wed, 27 Feb 2013 17:00:13 +0000 (18:00 +0100)]
Share more common code
Mark Probst [Wed, 27 Feb 2013 19:00:51 +0000 (11:00 -0800)]
[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.
Mark Probst [Wed, 27 Feb 2013 18:58:40 +0000 (10:58 -0800)]
[sgen] Fix names of descriptor types in describe_ptr().
Mark Probst [Wed, 27 Feb 2013 18:58:05 +0000 (10:58 -0800)]
[sgen] Fix build of sgen-grep-binprot.
Mark Probst [Wed, 27 Feb 2013 18:57:35 +0000 (10:57 -0800)]
[sgen] Binary protocol entries for scanning objects and vtypes.
Zoltan Varga [Wed, 27 Feb 2013 19:36:47 +0000 (20:36 +0100)]
Fix the build.
Zoltan Varga [Wed, 27 Feb 2013 18:53:53 +0000 (19:53 +0100)]
Fix the calculation of TARGET_IOS/OSX in configure. Fixes #10726.
Marek Safar [Wed, 27 Feb 2013 13:56:40 +0000 (14:56 +0100)]
Fix space in makefile
Atsushi Eno [Wed, 27 Feb 2013 13:46:27 +0000 (22:46 +0900)]
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.
Marek Safar [Wed, 27 Feb 2013 13:20:22 +0000 (14:20 +0100)]
Fixes make dist
Marek Safar [Wed, 27 Feb 2013 13:07:48 +0000 (14:07 +0100)]
Update for mobile profile
Atsushi Eno [Wed, 27 Feb 2013 08:51:56 +0000 (17:51 +0900)]
Fix monodroid build.
Atsushi Eno [Wed, 27 Feb 2013 07:50:54 +0000 (16:50 +0900)]
Fix possible NRE caused by null XmlResolver settings.
Marek Safar [Wed, 27 Feb 2013 07:48:31 +0000 (08:48 +0100)]