mono.git
13 years agoFix the box+brtrue optimization for LLVM, add a box+brfalse case too.
Zoltan Varga [Thu, 5 Aug 2010 15:02:36 +0000 (17:02 +0200)]
Fix the box+brtrue optimization for LLVM, add a box+brfalse case too.

13 years agoAdd more files to ignore list
Marek Safar [Thu, 5 Aug 2010 14:20:58 +0000 (15:20 +0100)]
Add more files to ignore list

13 years agoResolve ambiguity between optional and params parameter. Fixes #582360, #625353
Marek Safar [Thu, 5 Aug 2010 14:17:15 +0000 (15:17 +0100)]
Resolve ambiguity between optional and params parameter. Fixes #582360, #625353

13 years agoRevert "EncoderFallback support in UTF8Encoding. Fixed bug #565129."
Marek Habersack [Thu, 5 Aug 2010 13:32:58 +0000 (15:32 +0200)]
Revert "EncoderFallback support in UTF8Encoding. Fixed bug #565129."

This reverts commit d961246014394a19ce813de43f9719ae63af4842 because it breaks 2 tests in
System.Web on 2.0 and 4 on 4.0 profile.

13 years ago[asp.net] use auto-generated backing fields for all properties
Marek Habersack [Thu, 5 Aug 2010 13:24:49 +0000 (15:24 +0200)]
[asp.net] use auto-generated backing fields for all properties

13 years ago[asp.net] implemented several missing properties in BoundPropertyEntr
Marek Habersack [Thu, 5 Aug 2010 13:19:37 +0000 (15:19 +0200)]
[asp.net] implemented several missing properties in BoundPropertyEntr

* BoundPropertyEntry.cs: implemented the ControlID, ControlType, ExpressionBuilder, FieldName,
  FormatString, ParsedExpressionData, ReadOnlyProperty and TwoWayBound properties (2.0+)

13 years ago[xbuild] Handle multi-line output from tool.
Ankit Jain [Thu, 5 Aug 2010 12:02:19 +0000 (17:32 +0530)]
[xbuild] Handle multi-line output from tool.

Output received from the process can be multiline, split and process
it.

13 years ago[xbuild] Fix #628525. Fix incremental rebuild.
Ankit Jain [Thu, 5 Aug 2010 11:53:56 +0000 (17:23 +0530)]
[xbuild] Fix #628525. Fix incremental rebuild.

When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.

13 years agoupdate {tests,errors}/known-issues-?mcs
Raja R Harinath [Thu, 5 Aug 2010 11:42:34 +0000 (17:12 +0530)]
update {tests,errors}/known-issues-?mcs

13 years ago[Documentation] Document SGen environment variables.
Mark Probst [Thu, 5 Aug 2010 09:17:20 +0000 (11:17 +0200)]
[Documentation] Document SGen environment variables.

Document the MONO_GC_PARAMS variable in the man page and the "major"
option of this variable in the error message.

13 years agoDisable box+brtrue optimization for LLVM for now.
Zoltan Varga [Wed, 4 Aug 2010 23:24:58 +0000 (01:24 +0200)]
Disable box+brtrue optimization for LLVM for now.

13 years ago[dist] Only run the commit-to-changelog script if there's a repository.
Mark Probst [Wed, 4 Aug 2010 22:13:06 +0000 (00:13 +0200)]
[dist] Only run the commit-to-changelog script if there's a repository.

Since "make dist" should also work from a tarball we must only call
the commit-to-changelog script if there's a git repository present.
If we're already in a disted tree, the script has already run.

13 years ago[scripts] commit-to-changelog fails if git is too old
Mark Probst [Wed, 4 Aug 2010 21:56:13 +0000 (23:56 +0200)]
[scripts] commit-to-changelog fails if git is too old

We need a git that supports the %B format specifier, which seems to be
1.7.2.  Fail if it's not supported.

13 years ago[scripts] commit-to-changelog fails if git fails
Mark Probst [Wed, 4 Aug 2010 21:40:47 +0000 (23:40 +0200)]
[scripts] commit-to-changelog fails if git fails

The commit-to-changelog script now fails if git fails for whatever
reason.  The most important reasons would be that git isn't installed,
and that the script is called without a repository.

13 years agoAdd test for using generic arguments from other methods.
Rodrigo Kumpera [Wed, 4 Aug 2010 21:39:20 +0000 (18:39 -0300)]
Add test for using generic arguments from other methods.

* MethodBuilderTest.cs: Add test for generic arguments
used are parameter of a method builder.

13 years agoHandle arguments with generic parameters from other methods.
Rodrigo Kumpera [Wed, 4 Aug 2010 21:26:25 +0000 (18:26 -0300)]
Handle arguments with generic parameters from other methods.

* reflection.c (reflection_methodbuilder_to_mono_method):
Handle the case where a method parameter is defined using
a generic argument of another method. The resulting signature
must use the generic arguments of the method it belongs and
not from others.
This fixes one issue found while testing IronRuby 1.1.

13 years agoDon't call commit-to-changelog until after mcs is dist'd
Andrew Jorgensen [Wed, 4 Aug 2010 21:07:52 +0000 (15:07 -0600)]
Don't call commit-to-changelog until after mcs is dist'd

13 years agoFix "make dist" for the .po files
Andrew Jorgensen [Wed, 4 Aug 2010 20:39:27 +0000 (14:39 -0600)]
Fix "make dist" for the .po files

* POTFILES.in: mcs lives under mono now, so the ../ gets dropped

13 years agoFix tarball build (sgen-major-*-object.h)
Andrew Jorgensen [Wed, 4 Aug 2010 19:56:13 +0000 (13:56 -0600)]
Fix tarball build (sgen-major-*-object.h)

* Makefile.am (libmonoruntime_la_SOURCES): Add sgen-major-*-object.h

13 years ago[asp.net] implemented BaseTemplateParser.{GetReferencedType,GetUserControlType} methods
Marek Habersack [Wed, 4 Aug 2010 19:47:08 +0000 (21:47 +0200)]
[asp.net] implemented BaseTemplateParser.{GetReferencedType,GetUserControlType} methods

* BuildProvider.cs: factored out build provider type retrieval code to a separate method
* BuildProviderCollection.cs: factored out build provider type retrieval code to a separate method
* BuildManagerDirectoryBuilder.cs: system.web/compilation section is not an application section - it can
  be defined in web.config on any level.

13 years agoMerge branch 'improve_signature_parsing_error_messages'
Rodrigo Kumpera [Wed, 4 Aug 2010 19:31:59 +0000 (16:31 -0300)]
Merge branch 'improve_signature_parsing_error_messages'

13 years agoImprove error message for signature load failure.
Rodrigo Kumpera [Wed, 4 Aug 2010 19:30:45 +0000 (16:30 -0300)]
Improve error message for signature load failure.

* loader.c (mono_method_signature): Print type and
method name in case of signature parsing error.

13 years agoImprove error reporting of bad signatures.
Rodrigo Kumpera [Wed, 4 Aug 2010 19:25:20 +0000 (16:25 -0300)]
Improve error reporting of bad signatures.

* metadata-verify.c (mono_method_signature_checked): Change
signature to take a MonoError* instead of a GList** to make
it easier to the runtime to get error messages out of the
metadata verifier.

* verify-internals.h: Change signature.

* loader.c (mono_method_signature_checked): Pass the current
MonoError to mono_method_signature_checked to get better
error messages.

13 years agoChange type of a given parameter.
Rodrigo Kumpera [Wed, 4 Aug 2010 18:53:28 +0000 (15:53 -0300)]
Change type of a given parameter.

* metadata-verify.c (init_verify_context): Change parameter
from GList** to gboolean so it can be used with functions that
don't receive a GList** argument.

13 years agoFix dist (sgen-protocol.h)
Andrew Jorgensen [Wed, 4 Aug 2010 18:47:32 +0000 (12:47 -0600)]
Fix dist (sgen-protocol.h)

* Makefile.am (libmonoruntime_la_SOURCES): Add sgen-protocol.h

13 years ago[asp.net, 4.0] Added support for RepeatLayout lists to the list controls.
Marek Habersack [Wed, 4 Aug 2010 18:18:47 +0000 (20:18 +0200)]
[asp.net, 4.0] Added support for RepeatLayout lists to the list controls.

13 years ago[Documentation] Embed rationale for change in the source code
Miguel de Icaza [Wed, 4 Aug 2010 18:17:25 +0000 (14:17 -0400)]
[Documentation] Embed rationale for change in the source code

13 years agoFix a crash on appdomain unload stress.
Rodrigo Kumpera [Wed, 4 Aug 2010 17:55:35 +0000 (14:55 -0300)]
Fix a crash on appdomain unload stress.

* mini-exceptions.c (mono_install_handler_block_guard): Guard against a
null MonoJitTlsData. This can happens if the thread receives the
interrupt signal before the JIT has time to initialize its
TLS data for the given thread.

13 years agoRename ThreadLocal unit tests to reflect API name change (was ThreadLazy).
Jérémie Laval [Wed, 4 Aug 2010 17:25:55 +0000 (19:25 +0200)]
Rename ThreadLocal unit tests to reflect API name change (was ThreadLazy).

13 years agoInclude set accessor in ThreadLocal's Value property. Catch possible exception in...
Jérémie Laval [Wed, 4 Aug 2010 17:21:30 +0000 (19:21 +0200)]
Include set accessor in ThreadLocal's Value property. Catch possible exception in the initialization function and re-throw it accordingly. Track circular calling of Value property. Add corresponding unit-tests.

13 years agoMerge branch 'aspnet4'
Marek Habersack [Wed, 4 Aug 2010 16:56:08 +0000 (18:56 +0200)]
Merge branch 'aspnet4'

* aspnet4:
  [asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo

13 years ago[asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo
Marek Habersack [Wed, 4 Aug 2010 07:09:06 +0000 (09:09 +0200)]
[asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo

Also added auto-generated tests for the new layouts and updated the test generator to account
for the new layouts in 4.0.

13 years ago[xbuild] Ignore missing imports when parsing solution file.
Ankit Jain [Wed, 4 Aug 2010 16:24:11 +0000 (21:54 +0530)]
[xbuild] Ignore missing imports when parsing solution file.

When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.

13 years agoAmbiguous enumerator pattern means that we can still try to apply
Marek Safar [Wed, 4 Aug 2010 14:42:33 +0000 (15:42 +0100)]
Ambiguous enumerator pattern means that we can still try to apply
interface matching rules. Fixes #620154

13 years agoUse TypeSpecComparer.Default comparer for dynamic ref/out arguments.
Marek Safar [Wed, 4 Aug 2010 11:56:29 +0000 (12:56 +0100)]
Use TypeSpecComparer.Default comparer for dynamic ref/out arguments.

13 years agoMake sure configuration is not null before using it.
Marek Habersack [Wed, 4 Aug 2010 14:08:05 +0000 (16:08 +0200)]
Make sure configuration is not null before using it.

13 years agomono_custom_attrs_from_param: return null if the method defining the parameter can...
Jb Evain [Wed, 4 Aug 2010 13:44:42 +0000 (15:44 +0200)]
mono_custom_attrs_from_param: return null if the method defining the parameter can not be found in the MethodDef table to avoid false positives

13 years agomono_method_get_index: return zero for constructed array methods as they don't exist...
Jb Evain [Wed, 4 Aug 2010 13:43:10 +0000 (15:43 +0200)]
mono_method_get_index: return zero for constructed array methods as they don't exist in the MethodDef table

13 years agoAdd test ensuring that parameters of constructed array methods define no custom attribute
Jb Evain [Wed, 4 Aug 2010 13:41:38 +0000 (15:41 +0200)]
Add test ensuring that parameters of constructed array methods define no custom attribute

13 years agoMerge branch 'master' of github.com:mono/mono
Marek Safar [Wed, 4 Aug 2010 11:30:43 +0000 (12:30 +0100)]
Merge branch 'master' of github.com:mono/mono

13 years agoAdd special compiler define RUN_ONDOTNET. Fixes #624942
Marek Safar [Wed, 4 Aug 2010 11:27:21 +0000 (12:27 +0100)]
Add special compiler define RUN_ONDOTNET. Fixes #624942

13 years ago[xbuild] Override global properties before project Load.
Ankit Jain [Wed, 4 Aug 2010 11:08:56 +0000 (16:38 +0530)]
[xbuild] Override global properties before project Load.

MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.

 <Import Project="$(SolutionDir)\foo.targets"/>

$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.

    * Microsoft.Build.BuildEngine/Engine.cs:
    Apply global properties before the project load.

    * Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.

13 years agoimplement missing configuration members in Sys.SM.Web.
atsushieno [Wed, 4 Aug 2010 10:21:03 +0000 (19:21 +0900)]
implement missing configuration members in Sys.SM.Web.

13 years agoimplemented some Sys.SM.Discovery types.
atsushieno [Wed, 4 Aug 2010 09:52:09 +0000 (18:52 +0900)]
implemented some Sys.SM.Discovery types.

13 years agoAdd escaping for legacy keyword.
Marek Safar [Wed, 4 Aug 2010 09:28:18 +0000 (10:28 +0100)]
Add escaping for legacy keyword.

13 years agoMember names cannot be the same as their enclosing type. Fixes #627296
Marek Safar [Tue, 3 Aug 2010 21:35:55 +0000 (22:35 +0100)]
Member names cannot be the same as their enclosing type. Fixes #627296

13 years agoDynamicConversion: properly order the arguments to Binder.Convert
Jb Evain [Wed, 4 Aug 2010 07:17:19 +0000 (09:17 +0200)]
DynamicConversion: properly order the arguments to Binder.Convert

13 years agoMicrosoft.CSharp.RuntimeBinder.Binder::Convert: fix parameter ordering to match ...
Jb Evain [Wed, 4 Aug 2010 07:16:35 +0000 (09:16 +0200)]
Microsoft.CSharp.RuntimeBinder.Binder::Convert: fix parameter ordering to match .net 4.0

13 years agoAdd System.ServiceModel.Discovery (now that it builds fine).
atsushieno [Wed, 4 Aug 2010 06:48:25 +0000 (15:48 +0900)]
Add System.ServiceModel.Discovery (now that it builds fine).

13 years agoMerge branch 'master' of github.com:mono/mono into atsushi
atsushieno [Wed, 4 Aug 2010 06:38:40 +0000 (15:38 +0900)]
Merge branch 'master' of github.com:mono/mono into atsushi

13 years agoEncoderFallback support in UTF8Encoding. Fixed bug #565129.
atsushieno [Wed, 4 Aug 2010 06:32:54 +0000 (15:32 +0900)]
EncoderFallback support in UTF8Encoding. Fixed bug #565129.

Patch mostly by JB Evain.

13 years agoImplement envelope sender semantics in SmtpClient
Raja R Harinath [Wed, 4 Aug 2010 04:24:18 +0000 (09:54 +0530)]
Implement envelope sender semantics in SmtpClient

* System.Net.Mail/SmtpClient.cs (SendCore): Compute envelope sender
separately from the 'From: ' header.
* Test/System.Net.Mail/SmtpClientTest.cs (Deliver_Envelope): New.

13 years agoAdd a dummy SmtpServer to talk to our SmtpClient in unit tests
Raja R Harinath [Wed, 4 Aug 2010 02:40:08 +0000 (08:10 +0530)]
Add a dummy SmtpServer to talk to our SmtpClient in unit tests

* SmtpServer.cs: New.
* SmtpClientTest.cs (Deliver): New.  Use it.

13 years agoMerge branch 'selectable-major'
Mark Probst [Wed, 4 Aug 2010 01:56:17 +0000 (03:56 +0200)]
Merge branch 'selectable-major'

13 years ago[sgen] Fix binary protocol.
Mark Probst [Wed, 28 Jul 2010 14:01:54 +0000 (16:01 +0200)]
[sgen] Fix binary protocol.

The major collector refactoring left the binary protocol broken.  Fix
it.

13 years ago[sgen] Fix heavy statistics.
Mark Probst [Wed, 28 Jul 2010 13:45:23 +0000 (15:45 +0200)]
[sgen] Fix heavy statistics.

The major collector refactoring left heavy statistics broken.  A few
heavy statistics counters are defined in sgen-gc.c but used in the
major collectors.  We're now exporting them.  Another possibility
would have been to define them in both major collectors, but since
this is only a debug feature that's not normally compiled in, we don't
care.

13 years ago[sgen] Inline mono_sgen_par_object_get_size().
Mark Probst [Wed, 28 Jul 2010 02:00:36 +0000 (04:00 +0200)]
[sgen] Inline mono_sgen_par_object_get_size().

Define mono_sgen_par_object_get_size() as an inline function in
sgen-gc.h.

13 years ago[sgen] Put all scan and copy functions into the major collectors.
Mark Probst [Wed, 28 Jul 2010 01:38:19 +0000 (03:38 +0200)]
[sgen] Put all scan and copy functions into the major collectors.

Let the major collectors define their own versions of all the scan
and copy functions, too.  We avoid indirect calls and allow more
inlining.

13 years ago[sgen] Put major_scan_object() into the major collectors.
Mark Probst [Tue, 27 Jul 2010 21:20:54 +0000 (23:20 +0200)]
[sgen] Put major_scan_object() into the major collectors.

Make the major collectors define their own versions of
major_scan_object() by including a small header file.  This
avoids indirect calls to major_copy_or_mark_object() and
allows inlining.

13 years ago[sgen] Make major collector configurable via MONO_GC_PARAMS.
Mark Probst [Tue, 27 Jul 2010 16:09:58 +0000 (18:09 +0200)]
[sgen] Make major collector configurable via MONO_GC_PARAMS.

We can now tell SGen which major collector to use by setting
the "major" parameter in MONO_GC_PARAMS to either "copying" or
"marksweep".

13 years ago[sgen] Major collectors in their own compilation units.
Mark Probst [Tue, 27 Jul 2010 10:20:37 +0000 (12:20 +0200)]
[sgen] Major collectors in their own compilation units.

SGen's two major collector, copying and mark&sweep, are now
in their own separate compilation units, communicating with
SGen through an internal API.

13 years agoAvoid creating the namedSlots array in the static cctor, so it is not
Zoltan Varga [Wed, 4 Aug 2010 01:44:53 +0000 (03:44 +0200)]
Avoid creating the namedSlots array in the static cctor, so it is not
constructed at runtime shutdown.

13 years agoIncrease a buf size.
Zoltan Varga [Wed, 4 Aug 2010 01:39:55 +0000 (03:39 +0200)]
Increase a buf size.

2010-08-04  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_extra_methods): Increase a buf size.

13 years agoAvoid returning non MonoMethod's.
Zoltan Varga [Wed, 4 Aug 2010 01:38:09 +0000 (03:38 +0200)]
Avoid returning non MonoMethod's.

* marshal.c (mono_marshal_method_from_wrapper): Avoid returning non MonoMethod's.

13 years ago[ppc] Fix build.
Mark Probst [Tue, 3 Aug 2010 23:21:48 +0000 (01:21 +0200)]
[ppc] Fix build.

calculate_sizes() needs a generic sharing context, so we pass it in.

13 years agoAdd mini-llvm-cpp.h.
Zoltan Varga [Tue, 3 Aug 2010 23:10:12 +0000 (01:10 +0200)]
Add mini-llvm-cpp.h.

* Makefile.am (common_sources): Add mini-llvm-cpp.h.

13 years agoAdd missing BOOTSTRAP_NET_4_0 define check in ManualResetEventSlim (as BlockingCollec...
Jérémie Laval [Tue, 3 Aug 2010 22:48:19 +0000 (00:48 +0200)]
Add missing BOOTSTRAP_NET_4_0 define check in ManualResetEventSlim (as BlockingCollection now depends on that type).

13 years agoFix two minor exception misusages in BlockingCollection.
Jérémie Laval [Tue, 3 Aug 2010 19:49:37 +0000 (21:49 +0200)]
Fix two minor exception misusages in BlockingCollection.

13 years ago[Fix] Add deep-sleep to BlockingCollection using two ManualResetEventSlim for signali...
Jérémie Laval [Tue, 3 Aug 2010 19:43:08 +0000 (21:43 +0200)]
[Fix] Add deep-sleep to BlockingCollection using two ManualResetEventSlim for signaling when waiting in "collection-is-full-while-adding" and "collection-is-empty-while-taking" scenarios. Should definitely fix #624849.

13 years agoSanitize use of CancellationToken in BlockingCollection.
Jérémie Laval [Tue, 3 Aug 2010 19:40:12 +0000 (21:40 +0200)]
Sanitize use of CancellationToken in BlockingCollection.

13 years agoAdd a coherence subtest to SemaphoreSlim unit tests to enforce that only the correct...
Jérémie Laval [Tue, 3 Aug 2010 19:34:47 +0000 (21:34 +0200)]
Add a coherence subtest to SemaphoreSlim unit tests to enforce that only the correct number of thread are allowed to run concurrently.

13 years agoUse SemaphoreSlim underlying kernel-based event to sleep deeper when too much time...
Jérémie Laval [Tue, 3 Aug 2010 19:33:02 +0000 (21:33 +0200)]
Use SemaphoreSlim underlying kernel-based event to sleep deeper when too much time has already been spent spinning.

Same rationale change than ealier ManualResetEventSlim commit.

13 years agoCorrectly uses CancellationToken's ThrowIfCancellationRequested method in SemaphoreSl...
Jérémie Laval [Tue, 3 Aug 2010 19:32:04 +0000 (21:32 +0200)]
Correctly uses CancellationToken's ThrowIfCancellationRequested method in SemaphoreSlim and throw OperationCanceledException instead of returning false.

13 years agoCorrectly set SemaphoreSlim underlying kernel-based event state when it's changing...
Jérémie Laval [Tue, 3 Aug 2010 19:30:39 +0000 (21:30 +0200)]
Correctly set SemaphoreSlim underlying kernel-based event state when it's changing state itself.

13 years agoCorrectly use ManualResetEventSlim's kernel-based counterpart to deep sleep when...
Jérémie Laval [Tue, 3 Aug 2010 19:24:50 +0000 (21:24 +0200)]
Correctly use ManualResetEventSlim's kernel-based counterpart to deep sleep when too much has already been spent spinning.

Instead of using solely SpinWait's SpinOnce method after ManualResetEventSlim's spinCount is reached, it now uses ManualResetEvent's WaitOne method. Various other checks like CancellationToken canceled state are still verified during that time albeit slower.

13 years agoUse directly CancellationToken's ThrowIfCancellationRequested in ManualResetEventSlim
Jérémie Laval [Tue, 3 Aug 2010 19:21:15 +0000 (21:21 +0200)]
Use directly CancellationToken's ThrowIfCancellationRequested in ManualResetEventSlim

13 years agoUse kernel-event in ThreadWorker and Scheduler to sync new arrival of work to do.
Jérémie Laval [Tue, 3 Aug 2010 19:18:00 +0000 (21:18 +0200)]
Use kernel-event in ThreadWorker and Scheduler to sync new arrival of work to do.

Instead of shutting down the thread when there is no more work to do, each ThreadWorker will now block on an EventWaitHandler and be awoken later by Scheduler.

13 years agoRevert stalling changes introduced in SpinWait. Add a guard for ntime overflow.
Jérémie Laval [Tue, 3 Aug 2010 18:06:22 +0000 (20:06 +0200)]
Revert stalling changes introduced in SpinWait. Add a guard for ntime overflow.

The deeper-sleep stalling code path is now delegated to the concerned types rather than being directly inside SpinWait.

13 years agoReport CS0243 before CS0578. Fixes #624650
Marek Safar [Tue, 3 Aug 2010 16:23:29 +0000 (17:23 +0100)]
Report CS0243 before CS0578. Fixes #624650

13 years agoAdd more cases for 4.0 identity comparison. Fixes #624183
Marek Safar [Tue, 3 Aug 2010 16:09:35 +0000 (17:09 +0100)]
Add more cases for 4.0 identity comparison. Fixes #624183

13 years agoAdd the name="..." notation to the field examples too (besides the signature=".....
Andrés G. Aragoneses [Tue, 3 Aug 2010 15:38:39 +0000 (23:38 +0800)]
Add the name="..." notation to the field examples too (besides the signature="..." one).

13 years agoRemoved a few ONLY_1_1 ifdefs
Marek Habersack [Tue, 3 Aug 2010 15:25:10 +0000 (17:25 +0200)]
Removed a few ONLY_1_1 ifdefs

13 years agoTest commit - please ignore
Marek Habersack [Tue, 3 Aug 2010 14:58:43 +0000 (16:58 +0200)]
Test commit - please ignore

13 years agoAdd tests for delegates closed over null
Jb Evain [Tue, 3 Aug 2010 13:12:35 +0000 (15:12 +0200)]
Add tests for delegates closed over null

13 years agoDelegate.CreateDelegate: add support for delegates closed over null for instance...
Jb Evain [Tue, 3 Aug 2010 13:11:43 +0000 (15:11 +0200)]
Delegate.CreateDelegate: add support for delegates closed over null for instance methods

13 years agoRemoved 1.1 code and NET_2_0 ifdefs
Marek Habersack [Tue, 3 Aug 2010 13:28:51 +0000 (15:28 +0200)]
Removed 1.1 code and NET_2_0 ifdefs

13 years agoFixed equality match between object and dynamic for ref/out parameters.
Marek Safar [Tue, 3 Aug 2010 11:49:45 +0000 (12:49 +0100)]
Fixed equality match between object and dynamic for ref/out parameters.

13 years agoUpdated known issues
Marek Safar [Tue, 3 Aug 2010 09:28:36 +0000 (10:28 +0100)]
Updated known issues

13 years agoMerge branch 'master' of github.com:mono/mono
Marek Safar [Tue, 3 Aug 2010 09:29:12 +0000 (10:29 +0100)]
Merge branch 'master' of github.com:mono/mono

13 years agoImplemented as operator over dynamic expression. Fixes #624194
Marek Safar [Tue, 3 Aug 2010 09:25:01 +0000 (10:25 +0100)]
Implemented as operator over dynamic expression. Fixes #624194

13 years ago[xbuild] Add $(TargetFrameworkDirectory) for msbuild compatibility.
Ankit Jain [Tue, 3 Aug 2010 08:49:53 +0000 (14:19 +0530)]
[xbuild] Add $(TargetFrameworkDirectory) for msbuild compatibility.

* xbuild/xbuild/*/Microsoft.Common.targets: Rename item
@(TargetFrameworkDirectories) to @(_TargetFrameworkDirectories)
to *mark* it as private, and use the new $(TargetFrameworkDirectory)
property instead. Reported by mhutch.
* xbuild/xbuild/*/Microsoft.Silverlight.Common.targets: Update
to track the changes.

13 years ago[xbuild]When invoking resgen, set MONO_IOMAP only if its not already set.
Ankit Jain [Tue, 3 Aug 2010 08:15:02 +0000 (13:45 +0530)]
[xbuild]When invoking resgen, set MONO_IOMAP only if its not already set.

Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs: Set
MONO_IOMAP only if its unset, allowing it to be set from command line etc.

13 years agoAdd verifier assistance for coalescing operator. Fixes #619192
Marek Safar [Mon, 2 Aug 2010 22:11:06 +0000 (23:11 +0100)]
Add verifier assistance for coalescing operator. Fixes #619192

13 years agoAdd verifier required boxing of reference type of fields left expression
Marek Safar [Mon, 2 Aug 2010 19:38:10 +0000 (20:38 +0100)]
Add verifier required boxing of reference type of fields left expression

13 years agoGet rid of mono_arch_get_vcall_slot ().
Zoltan Varga [Mon, 2 Aug 2010 21:35:33 +0000 (23:35 +0200)]
Get rid of mono_arch_get_vcall_slot ().

2010-08-02  Zoltan Varga  <vargaz@gmail.com>

* tramp-amd64.c (get_vcall_slot): Move mono_arch_get_vcall_slot () here, since it
is only used by this file.

* tramp-x86.c: Ditto.

* mini-trampolines.c mini-<ARCH>.c: Get rid of mono_arch_get_vcall_slot (), all
architectures should support MONO_ARCH_THIS_AS_FIRST_ARG now.

13 years agoMake RegistryKey.Dispose public.
Carlos Alberto Cortez [Mon, 2 Aug 2010 20:30:36 +0000 (22:30 +0200)]
Make RegistryKey.Dispose public.

* RegistryKey.cs: Dispose is public in 4.0.

13 years agoNew test for 4.0 RegistryKey.Handle property.
Carlos Alberto Cortez [Mon, 2 Aug 2010 20:18:39 +0000 (22:18 +0200)]
New test for 4.0 RegistryKey.Handle property.

* RegistryKeyTest.cs: New test for Handle - activated only for
windows now, as we don't have it implemented in unix.

13 years agoAdd None to RegistryValueKind enumeration.
Carlos Alberto Cortez [Mon, 2 Aug 2010 20:16:56 +0000 (22:16 +0200)]
Add None to RegistryValueKind enumeration.

* RegistryValueKind.cs: Add None as part of the 4.0 update.

13 years agoImplement 4.0 RegistryKey.Handle property.
Carlos Alberto Cortez [Mon, 2 Aug 2010 20:04:38 +0000 (22:04 +0200)]
Implement 4.0 RegistryKey.Handle property.

* RegistryKey.cs: Implement Handle, but only for Windows, since
we don't have any unmanaged api to access the registry - and our
unix impl is fully managed anyway. Also rename our internal
Handle property to InternalHandle.

* Win32RegistryApi.cs:
* UnixRegistryApi.cs:
* IRegistryApi.cs: Add a GetHandle method, and update calls to
RegistryKey.Handle to use InternalHandle instead.

13 years agoImplement 4.0 simple overloads of some RegistryKey methods.
Carlos Alberto Cortez [Mon, 2 Aug 2010 19:14:39 +0000 (21:14 +0200)]
Implement 4.0 simple overloads of some RegistryKey methods.

* RegistryKey.cs: Implement the simple overloads of OpenBaseKey,
OpenRemoteBaseKey, FromHandle that take a RegistryView
parameter, which we ignore, as well as adding View property.