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.
Marek Safar [Thu, 5 Aug 2010 14:20:58 +0000 (15:20 +0100)]
Add more files to ignore list
Marek Safar [Thu, 5 Aug 2010 14:17:15 +0000 (15:17 +0100)]
Resolve ambiguity between optional and params parameter. Fixes #582360, #625353
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.
Marek Habersack [Thu, 5 Aug 2010 13:24:49 +0000 (15:24 +0200)]
[asp.net] use auto-generated backing fields for all properties
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+)
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.
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.
Raja R Harinath [Thu, 5 Aug 2010 11:42:34 +0000 (17:12 +0530)]
update {tests,errors}/known-issues-?mcs
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.
Zoltan Varga [Wed, 4 Aug 2010 23:24:58 +0000 (01:24 +0200)]
Disable box+brtrue optimization for LLVM for now.
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.
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.
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.
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.
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.
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
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
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
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.
Rodrigo Kumpera [Wed, 4 Aug 2010 19:31:59 +0000 (16:31 -0300)]
Merge branch 'improve_signature_parsing_error_messages'
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.
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.
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.
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
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.
Miguel de Icaza [Wed, 4 Aug 2010 18:17:25 +0000 (14:17 -0400)]
[Documentation] Embed rationale for change in the source code
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.
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).
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.
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
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.
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.
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
Marek Safar [Wed, 4 Aug 2010 11:56:29 +0000 (12:56 +0100)]
Use TypeSpecComparer.Default comparer for dynamic ref/out arguments.
Marek Habersack [Wed, 4 Aug 2010 14:08:05 +0000 (16:08 +0200)]
Make sure configuration is not null before using it.
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
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
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
Marek Safar [Wed, 4 Aug 2010 11:30:43 +0000 (12:30 +0100)]
Merge branch 'master' of github.com:mono/mono
Marek Safar [Wed, 4 Aug 2010 11:27:21 +0000 (12:27 +0100)]
Add special compiler define RUN_ONDOTNET. Fixes #624942
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.
atsushieno [Wed, 4 Aug 2010 10:21:03 +0000 (19:21 +0900)]
implement missing configuration members in Sys.SM.Web.
atsushieno [Wed, 4 Aug 2010 09:52:09 +0000 (18:52 +0900)]
implemented some Sys.SM.Discovery types.
Marek Safar [Wed, 4 Aug 2010 09:28:18 +0000 (10:28 +0100)]
Add escaping for legacy keyword.
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
Jb Evain [Wed, 4 Aug 2010 07:17:19 +0000 (09:17 +0200)]
DynamicConversion: properly order the arguments to Binder.Convert
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
atsushieno [Wed, 4 Aug 2010 06:48:25 +0000 (15:48 +0900)]
Add System.ServiceModel.Discovery (now that it builds fine).
atsushieno [Wed, 4 Aug 2010 06:38:40 +0000 (15:38 +0900)]
Merge branch 'master' of github.com:mono/mono into atsushi
atsushieno [Wed, 4 Aug 2010 06:32:54 +0000 (15:32 +0900)]
EncoderFallback support in UTF8Encoding. Fixed bug #565129.
Patch mostly by JB Evain.
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.
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.
Mark Probst [Wed, 4 Aug 2010 01:56:17 +0000 (03:56 +0200)]
Merge branch 'selectable-major'
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.
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.
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.
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.
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.
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".
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.
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.
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.
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.
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.
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.
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).
Jérémie Laval [Tue, 3 Aug 2010 19:49:37 +0000 (21:49 +0200)]
Fix two minor exception misusages in BlockingCollection.
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.
Jérémie Laval [Tue, 3 Aug 2010 19:40:12 +0000 (21:40 +0200)]
Sanitize use of CancellationToken in BlockingCollection.
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.
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.
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.
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.
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.
Jérémie Laval [Tue, 3 Aug 2010 19:21:15 +0000 (21:21 +0200)]
Use directly CancellationToken's ThrowIfCancellationRequested in ManualResetEventSlim
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.
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.
Marek Safar [Tue, 3 Aug 2010 16:23:29 +0000 (17:23 +0100)]
Report CS0243 before CS0578. Fixes #624650
Marek Safar [Tue, 3 Aug 2010 16:09:35 +0000 (17:09 +0100)]
Add more cases for 4.0 identity comparison. Fixes #624183
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).
Marek Habersack [Tue, 3 Aug 2010 15:25:10 +0000 (17:25 +0200)]
Removed a few ONLY_1_1 ifdefs
Marek Habersack [Tue, 3 Aug 2010 14:58:43 +0000 (16:58 +0200)]
Test commit - please ignore
Jb Evain [Tue, 3 Aug 2010 13:12:35 +0000 (15:12 +0200)]
Add tests for delegates closed over null
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
Marek Habersack [Tue, 3 Aug 2010 13:28:51 +0000 (15:28 +0200)]
Removed 1.1 code and NET_2_0 ifdefs
Marek Safar [Tue, 3 Aug 2010 11:49:45 +0000 (12:49 +0100)]
Fixed equality match between object and dynamic for ref/out parameters.
Marek Safar [Tue, 3 Aug 2010 09:28:36 +0000 (10:28 +0100)]
Updated known issues
Marek Safar [Tue, 3 Aug 2010 09:29:12 +0000 (10:29 +0100)]
Merge branch 'master' of github.com:mono/mono
Marek Safar [Tue, 3 Aug 2010 09:25:01 +0000 (10:25 +0100)]
Implemented as operator over dynamic expression. Fixes #624194
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.
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.
Marek Safar [Mon, 2 Aug 2010 22:11:06 +0000 (23:11 +0100)]
Add verifier assistance for coalescing operator. Fixes #619192
Marek Safar [Mon, 2 Aug 2010 19:38:10 +0000 (20:38 +0100)]
Add verifier required boxing of reference type of fields left expression
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.
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.
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.
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.
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.
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.