Zoltan Varga [Thu, 30 May 2013 08:59:05 +0000 (10:59 +0200)]
Pass more defines in config.h instead of on the command line. Pass libgc defines to libgc only.
Zoltan Varga [Thu, 30 May 2013 05:58:27 +0000 (07:58 +0200)]
Disable locking around archive accesses in libtool on darwin, it doesn't seem to be necessary and it slows down parallel builds.
Zoltan Varga [Thu, 30 May 2013 05:57:04 +0000 (07:57 +0200)]
Enable dolt on ios builds.
Zoltan Varga [Thu, 30 May 2013 03:15:18 +0000 (05:15 +0200)]
Remove the #ifdef HAVE_SGEN_GC dependency from main.c by using a separate main-sgen.c file for sgen.
Zoltan Varga [Thu, 30 May 2013 03:13:43 +0000 (05:13 +0200)]
Fix a warning.
Zoltan Varga [Thu, 30 May 2013 03:13:33 +0000 (05:13 +0200)]
Avoid putting a duplicate -arch i386 into CPPFLAGS, it prevents ccache from working.
Zoltan Varga [Wed, 29 May 2013 08:12:37 +0000 (10:12 +0200)]
Use gsharedvt for some generic instances in full-aot mode to avoid code blowup.
Zoltan Varga [Thu, 30 May 2013 00:44:00 +0000 (02:44 +0200)]
Move the adding of unbox trampolines to mini_add_method_trampoline ().
Sebastien Pouliot [Wed, 29 May 2013 20:52:50 +0000 (16:52 -0400)]
[ios] Allow some level of configuration when CryptoConfig is used (as a last resort fallback)
Sebastien Pouliot [Wed, 29 May 2013 18:54:53 +0000 (14:54 -0400)]
Remove MOBILE defines inside X509Chain tests
Jonathan Pryor [Wed, 29 May 2013 15:53:22 +0000 (11:53 -0400)]
[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.
Zoltan Varga [Wed, 29 May 2013 14:26:56 +0000 (16:26 +0200)]
Use a different function for emitting write barriers for gsharedvt types which can handle reference types too. Fixes #12429.
Zoltan Varga [Wed, 29 May 2013 14:26:02 +0000 (16:26 +0200)]
Avoid calling alloc wrappers directly, sgen does some initialization when the wrapper method is created.
Jonathan Pryor [Wed, 29 May 2013 10:45:12 +0000 (06:45 -0400)]
[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.)
Marek Safar [Wed, 29 May 2013 09:04:17 +0000 (11:04 +0200)]
Enable fixed tests
Marek Safar [Wed, 29 May 2013 09:02:00 +0000 (11:02 +0200)]
Run YieldAwaitable tests on default synchronization context. Fixes #12446
Zoltan Varga [Wed, 29 May 2013 08:51:12 +0000 (10:51 +0200)]
Revert "Use gsharedvt for some generic instances in full-aot mode to avoid code blowup."
This reverts commit
9f36e10b1b87e53335d3dbcea1e570b4d16ea0f4.
Revert this as it breaks some mt tests.
Zoltan Varga [Wed, 29 May 2013 08:12:37 +0000 (10:12 +0200)]
Use gsharedvt for some generic instances in full-aot mode to avoid code blowup.
Zoltan Varga [Wed, 29 May 2013 07:53:42 +0000 (09:53 +0200)]
Add support for constrained calls to Object.Equals to gsharedvt.
Zoltan Varga [Wed, 29 May 2013 04:41:11 +0000 (06:41 +0200)]
Disable some YieldAwaitable tests on MT.
Sebastien Pouliot [Wed, 29 May 2013 01:09:06 +0000 (21:09 -0400)]
Change code to more linker friendly ways to create MD5 and X509Chain and allow, for iOS, the creation of X509Chain without requiring CryptoConfig
Sebastien Pouliot [Wed, 29 May 2013 00:11:46 +0000 (20:11 -0400)]
Refactor the Mono.Security code to use more linker friendly ways to create hash algorithms
Rodrigo Kumpera [Wed, 29 May 2013 00:03:52 +0000 (20:03 -0400)]
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.
Sebastien Pouliot [Tue, 28 May 2013 23:35:12 +0000 (19:35 -0400)]
[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
Marek Safar [Tue, 28 May 2013 18:34:32 +0000 (20:34 +0200)]
Update failing mobile test
Rodrigo Kumpera [Tue, 28 May 2013 18:00:09 +0000 (14:00 -0400)]
Fix 2.0 corlib test suite.
Rodrigo Kumpera [Tue, 28 May 2013 17:37:53 +0000 (13:37 -0400)]
Older versions of iOS don't have pthread_mutexattr_setpolicy_np so dynamically look up the function and fallback on failure. Fixes #12394
Zoltan Varga [Tue, 28 May 2013 16:15:07 +0000 (18:15 +0200)]
Fix support for dynamic methods in collect_method_images (). Fixes #12412.
Marek Safar [Tue, 28 May 2013 09:11:59 +0000 (11:11 +0200)]
Keep cancellation token for all running requests. Fixes #12349
Marek Safar [Tue, 28 May 2013 09:10:44 +0000 (11:10 +0200)]
Updated CryptoConvert.cs path
Marek Safar [Tue, 28 May 2013 09:08:07 +0000 (11:08 +0200)]
Resolve unreachable block with correct flow settings. Fixes #12361
Zoltan Varga [Tue, 28 May 2013 02:23:33 +0000 (04:23 +0200)]
Fix a reading of invalid memory error introduced by
3f3092b4776a554abcf13f698a488adf749bba57.
Marek Habersack [Mon, 27 May 2013 20:36:05 +0000 (13:36 -0700)]
Merge pull request #647 from knocte/aspnet_lru
[WebConfigurationManager] Fix memleak by using a LruCache (BXC#5598)
Andres G. Aragoneses [Mon, 27 May 2013 20:27:33 +0000 (21:27 +0100)]
[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.
Martin Baulig [Mon, 27 May 2013 18:03:31 +0000 (20:03 +0200)]
Bump ikvm to
f66ae58 to recognize PCL Facade Assemblies.
Martin Baulig [Mon, 27 May 2013 15:41:13 +0000 (17:41 +0200)]
[xbuild]: Remove duplicates from 'TargetFrameworkDirectory'.
Martin Baulig [Sat, 25 May 2013 15:44:28 +0000 (17:44 +0200)]
[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.
Marek Safar [Sat, 25 May 2013 08:21:56 +0000 (10:21 +0200)]
Add more argument checks to RegisterWaitForSingleObject
Marek Safar [Sat, 25 May 2013 06:57:57 +0000 (23:57 -0700)]
Merge pull request #648 from DavidKarlas/defaultDependcyObject
DependencyObject default value
Atsushi Eno [Fri, 24 May 2013 23:02:46 +0000 (08:02 +0900)]
forgot to add new source to .sources.
Martin Baulig [Fri, 24 May 2013 22:41:20 +0000 (00:41 +0200)]
[xbuild]: Fix conditions for <ItemGroup> inside <Target>.
Atsushi Eno [Fri, 24 May 2013 22:09:05 +0000 (07:09 +0900)]
Use IKVM.Reflection to fully avoid reflection+mscorlib issues.
Zoltan Varga [Fri, 24 May 2013 21:41:39 +0000 (23:41 +0200)]
Merge some Nacl/ARM changes from https://github.com/igotti-google/mono/commit/
65d8d68e8c81cf6adb1076de7a9425c84cab86a3.
Martin Baulig [Fri, 24 May 2013 21:20:31 +0000 (23:20 +0200)]
[PCL]: Add missing type-forwarder for System.String to System.Runtime.
Rodrigo Kumpera [Fri, 24 May 2013 19:47:37 +0000 (15:47 -0400)]
[sdb] Fix race condition on test program that would cause a hang when running on wrench.
Atsushi Eno [Fri, 24 May 2013 19:31:19 +0000 (04:31 +0900)]
the previous change was #fail, the string constants were regarded as preprocessor directives.
Atsushi Eno [Fri, 24 May 2013 19:28:19 +0000 (04:28 +0900)]
add include-less build for XamAndroid.
Miguel de Icaza [Fri, 24 May 2013 19:20:50 +0000 (15:20 -0400)]
Put back the tests, we were trying to track down the regressions
Miguel de Icaza [Wed, 8 May 2013 18:00:54 +0000 (14:00 -0400)]
Document --break with generic methods
David Karlaš [Fri, 24 May 2013 18:53:17 +0000 (20:53 +0200)]
DependencyProperty of DependencyObject was trowing KeyNotFound exception instead of default value
Martin Baulig [Fri, 24 May 2013 18:16:04 +0000 (20:16 +0200)]
[System.Drawing]: Disable more broken tests.
Sebastien Pouliot [Fri, 24 May 2013 14:30:45 +0000 (10:30 -0400)]
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)
Atsushi Eno [Fri, 24 May 2013 02:54:40 +0000 (11:54 +0900)]
Add some missing MSBuild project model evaluation members.
Atsushi Eno [Fri, 24 May 2013 02:24:26 +0000 (11:24 +0900)]
Add missing MSBuild Framework interface.
Martin Baulig [Fri, 24 May 2013 00:28:24 +0000 (02:28 +0200)]
[System.Drawing]: Disable broken tests.
Martin Baulig [Thu, 23 May 2013 23:59:10 +0000 (01:59 +0200)]
Add Microsoft.Portable.CSharp.targets to the .spec file.
Martin Baulig [Tue, 21 May 2013 16:39:54 +0000 (18:39 +0200)]
[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.
Martin Baulig [Tue, 21 May 2013 16:38:57 +0000 (18:38 +0200)]
[xbuild]: Provide a real Microsoft.Portable.CSharp.targets
Martin Baulig [Tue, 14 May 2013 23:50:07 +0000 (01:50 +0200)]
[xbuild]: Fix reference assembly path.
Sebastien Pouliot [Thu, 23 May 2013 19:18:52 +0000 (15:18 -0400)]
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
Martin Baulig [Thu, 23 May 2013 19:16:59 +0000 (21:16 +0200)]
Ooops, variance is not available in 3.5.
Martin Baulig [Thu, 23 May 2013 19:04:32 +0000 (21:04 +0200)]
[make]: Build Facade assemblies in mcs/class/lib/$(PROFILE)/Facades.
Martin Baulig [Thu, 23 May 2013 17:02:43 +0000 (19:02 +0200)]
[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>
Martin Baulig [Thu, 23 May 2013 17:10:53 +0000 (19:10 +0200)]
[xbuild]: Fix 'make test'.
Rodrigo Kumpera [Thu, 23 May 2013 15:24:15 +0000 (11:24 -0400)]
Add the hostname into the exception message when doing dns lookups.
Marek Safar [Thu, 23 May 2013 09:11:25 +0000 (11:11 +0200)]
Implement Task::AsyncWaitHandle. Fixes #12342
Zoltan Varga [Wed, 22 May 2013 19:10:52 +0000 (21:10 +0200)]
Avoid the class name check in is_async_state_machine_class (), csc seems to generate a different name. Fixes #12329.
Duncan Mak [Wed, 22 May 2013 17:58:06 +0000 (13:58 -0400)]
Update to 3.0.12
Martin Baulig [Wed, 22 May 2013 17:36:02 +0000 (19:36 +0200)]
[xbuild]: Rename @(_ResolvedDependencyFiles) -> @(ReferenceDependencyPaths)
Martin Baulig [Wed, 22 May 2013 17:30:22 +0000 (19:30 +0200)]
[xbuild]: Add empty "BuildOnlySettings" target.
Alex Rønne Petersen [Wed, 22 May 2013 04:49:03 +0000 (07:49 +0300)]
Fix the check in
bf9c7dcc5ec5fddb673d97079d5443b919785b33.
The C preprocessor sucks.
Miguel de Icaza [Wed, 22 May 2013 02:36:02 +0000 (19:36 -0700)]
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
Miguel de Icaza [Wed, 22 May 2013 02:24:36 +0000 (19:24 -0700)]
Merge pull request #644 from knocte/connstrings
[System.Configuration] Remove a misleading MonoTODO in ConnectionStrings
Zoltan Varga [Tue, 21 May 2013 21:09:06 +0000 (23:09 +0200)]
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).
Sebastien Pouliot [Tue, 21 May 2013 20:33:33 +0000 (16:33 -0400)]
Add support for certificates using RIPEMD160 and add test for them and SHA256/512. Fix bug #11703
Martin Baulig [Sat, 6 Apr 2013 13:04:54 +0000 (15:04 +0200)]
Look for facade assemblies in $(mono_libdir)/4.5/Facades/
Sebastien Pouliot [Tue, 21 May 2013 18:51:51 +0000 (14:51 -0400)]
Additional crypto support needs to be in mscorlib.dll (not System.dll) to be usable for X509Certificate and PKCS#1
Martin Baulig [Tue, 14 May 2013 22:55:37 +0000 (00:55 +0200)]
[xbuild]: Generate [TargetFramework] attribute.
Sebastien Pouliot [Tue, 21 May 2013 13:52:59 +0000 (09:52 -0400)]
Point sources to Mono.Security versions of the files= (duplicates were removed)
Sebastien Pouliot [Fri, 17 May 2013 15:28:30 +0000 (11:28 -0400)]
Remove duplicate files (cvs-time artefact)
Marek Safar [Tue, 21 May 2013 07:13:24 +0000 (00:13 -0700)]
Merge pull request #645 from knocte/nitpicks
Fix couple of nitpicks in mono-service and HttpWebRequest-Tests
Jonathan Pryor [Tue, 21 May 2013 00:34:50 +0000 (20:34 -0400)]
[Mono.Posix] Fix INTL.DLL CallingConvention.
INTL.DLL on Windows uses the `__cdecl` calling convention.
Let's not corrupt the stack on Windows...
Andres G. Aragoneses [Mon, 20 May 2013 16:55:09 +0000 (17:55 +0100)]
[Sys.Configuration] Remove unneeded NET_2_0 ifdefs
Andres G. Aragoneses [Mon, 20 May 2013 16:36:24 +0000 (17:36 +0100)]
[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.
Alex Rønne Petersen [Mon, 20 May 2013 13:37:06 +0000 (15:37 +0200)]
Add a sanity check to catch things like `-DARM_FPU_NONE -DARM_FPU_VFP`.
Alex Rønne Petersen [Fri, 17 May 2013 22:10:11 +0000 (00:10 +0200)]
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.
Alex Rønne Petersen [Fri, 17 May 2013 22:03:08 +0000 (00:03 +0200)]
Always define __ARM_EABI__ when compiling for ARM.
We don't actually support any non-AAPCS ABI.
Alex Rønne Petersen [Fri, 17 May 2013 22:01:21 +0000 (00:01 +0200)]
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.
Rodrigo Kumpera [Fri, 17 May 2013 21:51:48 +0000 (17:51 -0400)]
Add a function to convert from a MonoError to a loader error. Use it with callers of mono_class_create_from_typedef.
Rodrigo Kumpera [Fri, 17 May 2013 21:05:42 +0000 (17:05 -0400)]
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.
Rodrigo Kumpera [Fri, 17 May 2013 20:41:43 +0000 (16:41 -0400)]
Add mono_class_set_failure_from_loader_error and use it in a few spots.
Michael Hutchinson [Fri, 17 May 2013 21:02:53 +0000 (17:02 -0400)]
[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
Michael Hutchinson [Fri, 17 May 2013 19:55:56 +0000 (15:55 -0400)]
[monodoc] Return null from GetHelpXml if node not found
Instead of exploding the XML parser by trying to parse null.
Michael Hutchinson [Fri, 17 May 2013 19:54:58 +0000 (15:54 -0400)]
[monodoc] Throw exception on unparseable URL
Instead of logging error with no useful context/content.
Zoltan Varga [Fri, 17 May 2013 20:07:51 +0000 (22:07 +0200)]
Clear entries referencing the domain in reference_queue_clear_for_domain () even if the object is already null. Fixes #4595.
Sebastien Pouliot [Fri, 17 May 2013 15:08:39 +0000 (11:08 -0400)]
Use the source files from ../Mono.Security/ to avoid duplicate (and different files)
Sebastien Pouliot [Fri, 17 May 2013 15:07:29 +0000 (11:07 -0400)]
Merge changes, that were only made in corlib, back into Mono.Security
Sebastien Pouliot [Thu, 16 May 2013 20:14:27 +0000 (16:14 -0400)]
Do not bring (linking-wise) most of ToBase64Transform when Convert.ToBase64String is used
Rodrigo Kumpera [Fri, 17 May 2013 15:03:25 +0000 (11:03 -0400)]
Add regression test for #11362.
Rodrigo Kumpera [Fri, 17 May 2013 14:59:20 +0000 (10:59 -0400)]
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