Marek Safar [Wed, 3 Nov 2010 19:27:22 +0000 (19:27 +0000)]
Inflate also event backing field
Marek Safar [Wed, 3 Nov 2010 18:09:31 +0000 (18:09 +0000)]
Another missing full dynamic type equality check
Marek Habersack [Thu, 4 Nov 2010 13:57:45 +0000 (14:57 +0100)]
[asp.net] Part of fix for bug #649546. Better handling of nested UpdatePanels
Nested update panels don't ever output a script block in RenderChildren, they write to the passed
HtmlTextWriter instead.
Atsushi Eno [Thu, 4 Nov 2010 07:49:44 +0000 (16:49 +0900)]
Move XamlType-generic PositionalParameter stuff from XamlObjectReader-specific source for writer support.
Rodrigo Kumpera [Wed, 3 Nov 2010 23:15:46 +0000 (21:15 -0200)]
Handle incorrectly encoded types.
* metadata.c (do_mono_metadata_parse_type): Fail if
a valuetype is encoded as MONO_TYPE_CLASS and vice-versa.
This can't be done easily in the verifier since it requires
resolving the destination type.
Fixes #650936
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 23:07:23 +0000 (19:07 -0400)]
a5
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 23:05:30 +0000 (19:05 -0400)]
a4
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 23:04:17 +0000 (19:04 -0400)]
a3
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 22:59:34 +0000 (18:59 -0400)]
a2
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 22:48:09 +0000 (18:48 -0400)]
iii
Rodrigo Kumpera [Wed, 3 Nov 2010 22:36:13 +0000 (20:36 -0200)]
Don't allow zero index token in signatures.
* metadata-verify.c (parse_type): Don't allow zero index type
tokens.
* metadata.c (mono_metadata_decode_row): Assert on negative
indexes.
Fixes #560359
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 22:05:33 +0000 (18:05 -0400)]
i
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 21:57:59 +0000 (17:57 -0400)]
Last
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 21:29:52 +0000 (17:29 -0400)]
Test 5
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 20:58:36 +0000 (16:58 -0400)]
Last test
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 20:49:56 +0000 (16:49 -0400)]
Test 3
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 20:45:24 +0000 (16:45 -0400)]
Test 2
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 20:42:11 +0000 (16:42 -0400)]
TEST
Gonzalo Paniagua Javier [Wed, 3 Nov 2010 19:59:20 +0000 (15:59 -0400)]
Avoid locking in WireupAutomaticEvents
Replace a big lock with a ReaderWriterLockSlim.
Jérémie Laval [Wed, 3 Nov 2010 20:27:14 +0000 (20:27 +0000)]
Fixicate net_4_0_bootstrap build.
Jérémie Laval [Wed, 3 Nov 2010 20:13:02 +0000 (20:13 +0000)]
Add tiny bit of doc on ReaderWriterLockSlim.
Martin Baulig [Wed, 3 Nov 2010 19:40:03 +0000 (20:40 +0100)]
Add mono_register_symfile_for_assembly() for bundles.
2010-11-03 Martin Baulig <martin@ximian.com>
* mono-debug.c (mono_register_symfile_for_assembly): New method.
This is used together with mono_register_bundled_assemblies() and
mono_register_config_for_assembly() to support bundles.
Marek Habersack [Wed, 3 Nov 2010 19:13:00 +0000 (20:13 +0100)]
[asp.net] Use faster string comparison in caches in System.Web.Compilation
Rodrigo Kumpera [Wed, 3 Nov 2010 19:35:17 +0000 (17:35 -0200)]
Init the right runtime version.
* pedump.c (verify_image_file): Finish initializing the
runtime here since at this point we can safely query
what version the supplied image requires.
Fixes #650916
Sebastien Pouliot [Wed, 3 Nov 2010 19:10:27 +0000 (15:10 -0400)]
Fix condition so the new feature is available outside NET_2_1
* mcs/class/corlib/Mono.Security.X509/X509Store.cs:
* mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs:
Replace INSIDE_CORLIB by !NET_2_1 so the new feature is
available to mono/full framework but not where CspParameters
(or file system, or key persistance) might not be possible
Zoltan Varga [Wed, 3 Nov 2010 18:16:02 +0000 (19:16 +0100)]
Fix encoding of large strings in the soft debugger api. Fixes #648832.
Jérémie Laval [Wed, 3 Nov 2010 17:33:13 +0000 (17:33 +0000)]
Implement Partitioner.Create int and long overloads. Add corresponding unit tests.
Marek Safar [Wed, 3 Nov 2010 16:50:19 +0000 (16:50 +0000)]
Implement lock statement over generic type parameter
Marek Safar [Wed, 3 Nov 2010 15:53:12 +0000 (15:53 +0000)]
Issue a warning about re-assigned locked local variable
Marek Safar [Wed, 3 Nov 2010 13:10:36 +0000 (13:10 +0000)]
Fixes NRE in pre-4.0 compilation
Marek Safar [Wed, 3 Nov 2010 12:50:39 +0000 (12:50 +0000)]
Reset lock_taken before entering Monitor.Enter
Marek Safar [Wed, 3 Nov 2010 12:19:01 +0000 (12:19 +0000)]
ExclusiveOr is not nullable bitwise boolean operator
Marek Safar [Wed, 3 Nov 2010 11:28:10 +0000 (11:28 +0000)]
A candidate method can use dynamic in expanded form at non-first position
Jérémie Laval [Tue, 2 Nov 2010 15:37:11 +0000 (15:37 +0000)]
Add TaskExtensions class and Unwrap extension methods
Jérémie Laval [Wed, 3 Nov 2010 11:44:03 +0000 (11:44 +0000)]
Refactor Task.Wait and Task.WaitAny methods and add support for scheduler-less waiting.
A scheduler-less waiting is useful for instance in case Tasks are waited upon without having being started (like in some continuation chaining case).
Jérémie Laval [Wed, 3 Nov 2010 11:31:49 +0000 (11:31 +0000)]
Set more state on TaskCompletionSource inner Task<T>
Paolo Molaro [Tue, 2 Nov 2010 17:44:29 +0000 (18:44 +0100)]
Introduced a GC heap walk API.
This API is currently only implemented for the sgen GC.
It can be used to iterate over all the managed objects in the heap
and it allows to also easily track object references.
Marek Safar [Wed, 3 Nov 2010 10:32:44 +0000 (10:32 +0000)]
typeof expression does not need unsafe context for pointer types
Marek Safar [Wed, 3 Nov 2010 09:38:40 +0000 (09:38 +0000)]
Pass checked context to compound member access setters
Zoltan Varga [Wed, 3 Nov 2010 06:31:18 +0000 (07:31 +0100)]
Remove extra whitespace from a Makefile.
Marek Habersack [Wed, 3 Nov 2010 02:26:26 +0000 (03:26 +0100)]
Fix mixed newlines
Marek Habersack [Wed, 3 Nov 2010 02:12:13 +0000 (03:12 +0100)]
[asp.net] Part of fix for bug #649546. A partial rewrite of the web/script resource handler.
* System.Web/System.Web.Handlers/AssemblyResourceLoader.cs: AssemblyResourceLoader/ScriptResourceHandler must
always generate the same URL for every assembly+resource pair, or otherwise the browser would re-fetch
the resource in situations where it is not desired (e.g. during an async request to the server to update
a panel).
The generated URLs are not encrypted using real encryption, just hashed.
In addition, the handler code got modernized a bit.
* System.Web.Extensions/System.Web.UI/ScriptManager.cs: scriptStartupBlock is a 3.5+ thing
* System.Web.Extensions_1.0/Makefile: use the 1.0 Microsoft AJAX library for this compat assembly
* System.Web/System.Web.Util/MachineKeySectionUtils.cs: made GetValidationKey public
Marek Habersack [Wed, 3 Nov 2010 02:08:58 +0000 (03:08 +0100)]
[runtime] System.Web.Extensions must not be remapped to the current framework.
The reason for this is applications which still use Sys.Web.Ext 1.0* (note: 1.0 does NOT
mean the assembly is for the 1.x runtime - it's for 2.0). Remapping would cause 1.0* not
to be loaded, instead a 3.5 or 4.0 assembly would be fetched.
Zoltan Varga [Wed, 3 Nov 2010 01:16:20 +0000 (02:16 +0100)]
Remove obsolete mcs/configure script. Fixes #650806.
Sebastien Pouliot [Tue, 2 Nov 2010 23:22:20 +0000 (19:22 -0400)]
Fix bootstrapping issue wrt moonlight profile
* mcs/class/corlib/Mono.Security.X509/X509Store.cs:
* mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs:
Add if !INSIDE_CORLIB around code that use CspParameters
in order to allow compilation to work when bootstraping
the moonlight profile
Pablo Ruiz Garcia [Wed, 20 Oct 2010 21:36:08 +0000 (23:36 +0200)]
[API] X509 related enhacemnts to allow 1) associating keystore's private keys with their corresponding public certificates found at X509Stores, and 2) importing private keys to X509Stores along with certificates.
mcs/class/corlib/Mono.Security.X509/X509Store.cs:
mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs:
mcs/class/corlib/Mono.Security.X509/X509StoreManager.cs:
mcs/class/Mono.Security/Mono.Security.X509/X509StoreManager.cs:
Modified MSX.X509Store to allow importing privateKeys along certificates (by using RSACryptoServiceProvider and KeyPairPersister).
Fixed X509Store to use certificate's hash as CspParameters.KeyContainerName.
mcs/tools/security/certmgr.cs:
Added a new -importKey action to certmgr, which allows importing a PKCS12 contained key into our KeyPair store.
Added a more (verbose) output to certmgr's -list action.
man/certmgr.1:
Updated certmgr man page ti reflect -importKey addition.
mcs/class/corlib/System.Security.Cryptography/CspParameters.cs:
mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs:
Implemented RSACryptoServiceProvider.CspKeyContainerInfo getter
RSACryptoServiceProvider will not take into account CspParameterFlags.UseExistingKey by throwing a CryptographicException if keyset identified by KeyContainerName does not exists.
Gonzalo Paniagua Javier [Tue, 2 Nov 2010 22:28:02 +0000 (18:28 -0400)]
Revert change in FromBinary
Andrew Jorgensen [Tue, 2 Nov 2010 21:00:59 +0000 (15:00 -0600)]
Map libcups for mac
Fixes bnc#649994
Gonzalo Paniagua Javier [Tue, 2 Nov 2010 18:50:03 +0000 (14:50 -0400)]
Renaming a dangling symlink works now
Ditto.
Fixes bug #650779.
Atsushi Eno [Tue, 2 Nov 2010 17:31:28 +0000 (02:31 +0900)]
Extracted PrefixLookup to another file. Add more XamlTypeName.ToString() tests.
Marek Safar [Tue, 2 Nov 2010 15:20:51 +0000 (15:20 +0000)]
Emit lock statement using Monitor.Enter (object, ref bool) when available
Atsushi Eno [Tue, 2 Nov 2010 13:39:34 +0000 (22:39 +0900)]
Move around some members (to correct/appropriate places) for isolated xaml writer implementation.
Marek Safar [Tue, 2 Nov 2010 13:33:59 +0000 (13:33 +0000)]
Updated to r54115
Marek Safar [Tue, 2 Nov 2010 12:44:16 +0000 (12:44 +0000)]
Implements indirect delegates invocation via dynamic member dispatch
Marek Safar [Mon, 1 Nov 2010 14:46:45 +0000 (14:46 +0000)]
Pass value type dynamic members as by-ref to persist member side effects
Jérémie Laval [Tue, 2 Nov 2010 11:53:32 +0000 (11:53 +0000)]
Use Task helper methods in TaskCompletionSource instead of manual setting, allow continuation flow to happen smoothly and task status to be set accordingly.
Marek Habersack [Tue, 2 Nov 2010 10:30:26 +0000 (11:30 +0100)]
[asp.net] 4.0-only types don't need the NET_4_0 ifdef and should be in net_4_0_System.Web.dll.sources
Zoltan Varga [Mon, 1 Nov 2010 23:33:32 +0000 (00:33 +0100)]
Fix the text of the Signatures size stat.
Zoltan Varga [Mon, 1 Nov 2010 23:32:28 +0000 (00:32 +0100)]
Add a stat for the memory occupied by MonoMethodSignature structures.
Zoltan Varga [Mon, 1 Nov 2010 23:26:58 +0000 (00:26 +0100)]
Add a stat for the the memory occupied by MonoMethod structures.
Zoltan Varga [Mon, 1 Nov 2010 22:53:37 +0000 (23:53 +0100)]
Print double stats with more precision.
Zoltan Varga [Mon, 1 Nov 2010 22:53:10 +0000 (23:53 +0100)]
Include JIT time in --stats output.
Gonzalo Paniagua Javier [Mon, 1 Nov 2010 22:52:58 +0000 (18:52 -0400)]
Avoid killing the thread if socket already null
In some weird cases socket is null when we try to close it.
Marek Safar [Mon, 1 Nov 2010 13:18:53 +0000 (13:18 +0000)]
Convert dynamic assignment in checked context when set
Marek Safar [Mon, 1 Nov 2010 12:41:48 +0000 (12:41 +0000)]
Check for unfixed type arguments before calling overload resolution for inferred return type
Marek Safar [Mon, 1 Nov 2010 11:39:00 +0000 (11:39 +0000)]
Set correct result type for chained folded enum subtraction
Marek Safar [Mon, 1 Nov 2010 09:19:38 +0000 (09:19 +0000)]
Check binary header using right methods.
Zoltan Varga [Mon, 1 Nov 2010 00:16:07 +0000 (01:16 +0100)]
Avoid adding generic classes during non-full AOT, since it leads to a huge code blowup.
Zoltan Varga [Sun, 31 Oct 2010 23:43:56 +0000 (00:43 +0100)]
Don't save xdebug info during AOT compilation.
Zoltan Varga [Sun, 31 Oct 2010 23:43:25 +0000 (00:43 +0100)]
Cache the array of classes in find_typespec_for_class ().
Zoltan Varga [Sun, 31 Oct 2010 23:33:06 +0000 (00:33 +0100)]
Avoid asserts if a forced inline fails. Fix typos. Fixes #650407.
Gonzalo Paniagua Javier [Sun, 31 Oct 2010 21:29:21 +0000 (17:29 -0400)]
Check that the default from is not empty
This should fix a bunch of tests failing since MailAddress parsing was
fixed.
Gonzalo Paniagua Javier [Sun, 31 Oct 2010 21:22:15 +0000 (17:22 -0400)]
More StringComparison.Ordinal
Use StringComparison.Ordinal when calling IndexOf to find the index of
an ASCII string.
Gonzalo Paniagua Javier [Sun, 31 Oct 2010 21:10:38 +0000 (17:10 -0400)]
Use ordinal comparison when looking for "::"
This should fix 650355, but it might just hide the actual problem which
seems to be related to loading CJK encodings data.
Nikolaos Georgiou [Sun, 31 Oct 2010 08:01:24 +0000 (16:01 +0800)]
Changed new method back to private, it was accidentally public.
Nikolaos Georgiou [Sun, 31 Oct 2010 07:55:09 +0000 (15:55 +0800)]
Modified ResXResourceWriter so that the comment of ResXNode is not lost.
Added unit test.
Miguel de Icaza [Sun, 31 Oct 2010 19:59:40 +0000 (15:59 -0400)]
Expose some of our internals to the Mono.Winforms assembly
Miguel de Icaza [Sun, 31 Oct 2010 19:54:41 +0000 (15:54 -0400)]
Fix broken patch
Miguel de Icaza [Sun, 31 Oct 2010 19:50:47 +0000 (15:50 -0400)]
Allow this file to expose its types as public if needed
Zoltan Varga [Sun, 31 Oct 2010 09:26:57 +0000 (10:26 +0100)]
Disable inlining if the assembly has a DebuggableAttribute with the IsJITOptimizerDisabled flag set. Fixes #604486.
Brian Luczkiewicz [Sun, 31 Oct 2010 01:52:09 +0000 (21:52 -0400)]
Enable --aot (but not --aot=full) on osx/x86
Zoltan Varga [Sun, 31 Oct 2010 01:53:16 +0000 (02:53 +0100)]
Fix the amd64 dyn call code after the this passing changes.
Zoltan Varga [Sun, 31 Oct 2010 01:36:50 +0000 (02:36 +0100)]
Call mono_field_get_type () in one place to fix an aot problem.
Zoltan Varga [Sun, 31 Oct 2010 01:36:08 +0000 (02:36 +0100)]
Return information from decode_method_ref () in a MethodRef structure instead of a bunch of arguments.
Zoltan Varga [Sun, 31 Oct 2010 00:57:01 +0000 (02:57 +0200)]
Fix the generation of GenericEqualityComparer () instances in AOT.
Zoltan Varga [Sun, 31 Oct 2010 00:44:33 +0000 (02:44 +0200)]
Rework decoding of method references in the AOT runtime.
* Improve the hashing of methods to include generic arguments
* Get rid of can_method_ref_match_method (), use a 'target' argument
to decode_method_ref () instead.
* Bump corlib file format version.
Geoff Norton [Sat, 30 Oct 2010 22:21:53 +0000 (18:21 -0400)]
Fix the build
Zoltan Varga [Sat, 30 Oct 2010 19:23:45 +0000 (21:23 +0200)]
Fix some copyright messages.
Koushik Dutta [Sat, 30 Oct 2010 11:27:37 +0000 (04:27 -0700)]
Fix Android build. MINI_THREAD_VAR_OFFSET needs to be defined as MONO_THREAD_VAR_OFFSET (which returns -1).
Marek Habersack [Sat, 30 Oct 2010 01:35:29 +0000 (03:35 +0200)]
[asp.net] Fix for bug #650050. HtmlSelect must render non-standard attributes of every ListItem.
Alex Fort [Fri, 29 Oct 2010 15:22:35 +0000 (23:22 +0800)]
Don't use a buffer size of 1 for zero-length buffers
Using a size of 1 for zero length buffers causes (on linux) the last character to be eaten by the buffer until the next flush.
Alex Fort [Tue, 26 Oct 2010 18:52:21 +0000 (02:52 +0800)]
[Fix] Don't enforce a minimum size for zero-length buffers, fixing #645193
InitBuffer was forcing the length of any buffer smaller than 8 to be 8, but for zero-size buffers, this isn't correct.
Zoltan Varga [Fri, 29 Oct 2010 23:04:49 +0000 (01:04 +0200)]
Int32.MinValue/-1 should throw OverflowException, not ArithmeticException. Our tests didn't catch this because the former is a subclass of the latter. Fixes #649889.
Zoltan Varga [Fri, 29 Oct 2010 22:41:42 +0000 (00:41 +0200)]
Update the LLVM backend to latest LLVM SVN.
Geoff Norton [Fri, 29 Oct 2010 19:46:26 +0000 (15:46 -0400)]
[OSX] Reintroduce Cocoa System.Drawing support
The old Cocoa backend for System.Drawing appears to still work. You must
pass in a NSView.Handle while in the DrawRect method, or with lockFocus
called to prepare the NSGraphicsContext.
Marek Safar [Fri, 29 Oct 2010 18:23:47 +0000 (19:23 +0100)]
Fix line endings.
Marek Safar [Fri, 29 Oct 2010 18:17:29 +0000 (19:17 +0100)]
Merge branch 'marek'
Marek Safar [Fri, 29 Oct 2010 18:15:50 +0000 (19:15 +0100)]
Make dynamic array access index expresions in checked context
Rodrigo Kumpera [Fri, 29 Oct 2010 17:51:04 +0000 (15:51 -0200)]
Handle lazy field loading.
* icall.c (ves_icall_MonoField_SetValueInternal): Handle
lazy field loading. Fixes buildbot crash.
Rodrigo Kumpera [Fri, 29 Oct 2010 16:00:25 +0000 (14:00 -0200)]
Make GetGenericTypeDefinitionImpl not init the class.
* icall.c (ves_icall_Type_GetGenericTypeDefinition_impl):
Don't mono_class_init the type. Fixes test-792.