Gonzalo Paniagua Javier [Mon, 24 Aug 2009 15:26:02 +0000 (15:26 -0000)]
fix packaging
svn path=/trunk/mono/; revision=140515
Marek Safar [Mon, 24 Aug 2009 15:13:20 +0000 (15:13 -0000)]
2009-08-24 Marek Safar <marek.safar@gmail.com>
* *.cs: Only ResolveContext implements IMemberContext.
svn path=/trunk/mcs/; revision=140512
Carlos Alberto Cortez [Mon, 24 Aug 2009 15:02:57 +0000 (15:02 -0000)]
* DataGrid.cs: If we are *not* changing a row
already added to the source, and thus we are adding a new
row instead, try to move to the previous row when Esc is
pressed -if possible-.
Fixes some bits of #322974.
2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=140510
Marek Habersack [Mon, 24 Aug 2009 12:34:56 +0000 (12:34 -0000)]
2009-08-24 Marek Habersack <mhabersack@novell.com>
* TemplateBuildProvider.cs: ExtractDependencies checks if the
input has already been parsed/compiled and, if yes, adds
dependencies from the TemplateParser to the list of the ones
extracted locally. Fixes bug #377915
* GenericBuildProvider.cs: added Parsed property.
svn path=/trunk/mcs/; revision=140502
Atsushi Eno [Mon, 24 Aug 2009 10:13:34 +0000 (10:13 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* PeerDuplexChannel.cs : add PeerFlooder header (see comment).
Process PeerTo header to upgrade Message To header. Now mono
service accepts mono client (somehow not true for .NET client).
svn path=/trunk/mcs/; revision=140489
Atsushi Eno [Mon, 24 Aug 2009 09:54:17 +0000 (09:54 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* TcpDuplexSessionChannel.cs, TcpRequestChannel.cs,
NamedPipeRequestChannel.cs : no need to add ReplyTo headers.
svn path=/trunk/mcs/; revision=140488
Atsushi Eno [Mon, 24 Aug 2009 09:53:28 +0000 (09:53 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.
svn path=/trunk/mcs/; revision=140487
Atsushi Eno [Mon, 24 Aug 2009 09:51:33 +0000 (09:51 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* Constants.cs : p2p constants should rather go here.
* IPeerConnectorContract.cs : use common Constants class.
svn path=/trunk/mcs/; revision=140483
Atsushi Eno [Mon, 24 Aug 2009 08:57:57 +0000 (08:57 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* ClientRuntimeChannel.cs, DuplexClientRuntimeChannel.cs : split out
from former to latter and implemented most part of listener part.
Make sure to open internal channel at base ClientRuntimeChannel.
* ClientProxyGenerator.cs : minimize !NET_2_1 to here.
* System.ServiceModel.dll.sources: added
DuplexClientRuntimeChannel.cs and CallbackInstanceContextProvider.cs.
svn path=/trunk/mcs/; revision=140478
Atsushi Eno [Mon, 24 Aug 2009 08:52:24 +0000 (08:52 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* CallbackInstanceContextProvider.cs : new instance context provider
used by duplex client dispatcher.
svn path=/trunk/mcs/; revision=140477
Atsushi Eno [Mon, 24 Aug 2009 08:50:51 +0000 (08:50 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* SecurityHandler.cs : skip callback duplex blocker.
svn path=/trunk/mcs/; revision=140476
Atsushi Eno [Mon, 24 Aug 2009 08:50:05 +0000 (08:50 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* EndpointDispatcher.cs, ChannelDispatcher.cs : differentiate
service dispatch and callback client dispatch at initialization.
svn path=/trunk/mcs/; revision=140475
Atsushi Eno [Mon, 24 Aug 2009 08:44:15 +0000 (08:44 -0000)]
2009-08-24 Atsushi Enomoto <atsushi@ximian.com>
* TcpDuplexSessionChannel.cs : check channel state before processing
Send and Receive.
svn path=/trunk/mcs/; revision=140474
Carlos Alberto Cortez [Mon, 24 Aug 2009 04:38:25 +0000 (04:38 -0000)]
2009-08-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DataGridTextBoxColumn.cs:
* DataGrid.cs: Moving the cell to the add row (the last one) should
not immediately add a new row - this should happen until the very
first change happens in that textbox.
Fixes part of #322974.
svn path=/trunk/mcs/; revision=140461
Gonzalo Paniagua Javier [Sun, 23 Aug 2009 06:14:52 +0000 (06:14 -0000)]
2009-08-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
* deflate.c:
* gzio.c:
* deflate.h:
* zutil.h:
* crc32.c:
* trees.c:
* zconf.h:
* inffast.c:
* compress.c:
* zlib.h:
* inftrees.c:
* inflate.c:
* inflate.h:
* adler32.c:
* infback.c: updated to 1.2.3.3
svn path=/trunk/mono/; revision=140453
Marek Safar [Fri, 21 Aug 2009 22:46:42 +0000 (22:46 -0000)]
2009-08-21 Marek Safar <marek.safar@gmail.com>
* *.cs: Detached ResolveContext from EmitContext.
svn path=/trunk/mcs/; revision=140445
Marek Safar [Fri, 21 Aug 2009 21:42:23 +0000 (21:42 -0000)]
2009-08-21 Marek Safar <marek.safar@gmail.com>
* *.cs: Detached ResolveContext from EmitContext.
svn path=/trunk/mcs/; revision=140443
Marek Habersack [Fri, 21 Aug 2009 20:55:44 +0000 (20:55 -0000)]
2009-08-21 Marek Habersack <mhabersack@novell.com>
* Menu.cs: separator image is rendered next to the item in
horizontal layout and is preceeded by 3px spacer (unless
itemSpacing is set) to make output match .NET. Fixes bug #474716
svn path=/trunk/mcs/; revision=140438
Zoltan Varga [Fri, 21 Aug 2009 19:59:18 +0000 (19:59 -0000)]
2009-08-21 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_allocate_vars): Use FP as the frame pointer as
was done previously, since using SP causes too many problems.
svn path=/trunk/mono/; revision=140434
Marek Habersack [Fri, 21 Aug 2009 19:52:11 +0000 (19:52 -0000)]
2009-08-21 Marek Habersack <mhabersack@novell.com>
* GenericBuildProvider.cs: added internal property LanguageName
override which calls GetParserLanguage to get language name
instead of using the application default one.
* BuildManagerDirectoryBuilder.cs: removed CodeDOM provider cache,
provider types are retrieved from build providers while assigning
them to groups. Fixes bug #533166
svn path=/trunk/mcs/; revision=140433
Zoltan Varga [Fri, 21 Aug 2009 18:24:36 +0000 (18:24 -0000)]
2009-08-21 Zoltan Varga <vargaz@gmail.com>
* exceptions-arm.c: Fix the handling of sp/fp so unwinding through
frames without a frame pointer works.
svn path=/trunk/mono/; revision=140428
Marek Safar [Fri, 21 Aug 2009 17:45:42 +0000 (17:45 -0000)]
2009-08-21 Marek Safar <marek.safar@gmail.com>
* *.cs: Renamed IResolveContext to IMemberContext.
svn path=/trunk/mcs/; revision=140427
Marek Safar [Fri, 21 Aug 2009 17:33:38 +0000 (17:33 -0000)]
2009-08-21 Marek Safar <marek.safar@gmail.com>
* *.cs: Detached ResolveContext from EmitContext.
svn path=/trunk/mcs/; revision=140426
Mark Probst [Fri, 21 Aug 2009 16:52:46 +0000 (16:52 -0000)]
2009-08-21 Mark Probst <mark.probst@gmail.com>
* mono-hash.c: When creating a hash table, if the keys are managed
objects, assert that we have a hash function. Remove the
rehashing after GC marking.
2009-08-21 Mark Probst <mark.probst@gmail.com>
* threadpool.c (mono_thread_pool_init): Use mono_object_hash() as
the hash function for the ares_htable.
svn path=/trunk/mono/; revision=140423
Marek Safar [Fri, 21 Aug 2009 16:19:41 +0000 (16:19 -0000)]
2009-08-21 Marek Safar <marek.safar@gmail.com>
* codegen.cs: Moved flow-analysis to BlockContext.
svn path=/trunk/mcs/; revision=140421
Marek Safar [Fri, 21 Aug 2009 14:08:12 +0000 (14:08 -0000)]
Updated.
svn path=/trunk/mcs/; revision=140416
Marek Safar [Fri, 21 Aug 2009 14:07:18 +0000 (14:07 -0000)]
2009-08-21 Marek Safar <marek.safar@gmail.com>
* *.cs: Detached BlockContext from EmitContext.
svn path=/trunk/mcs/; revision=140415
Atsushi Eno [Fri, 21 Aug 2009 08:26:28 +0000 (08:26 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : also made reference to host optional.
svn path=/trunk/mcs/; revision=140406
Atsushi Eno [Fri, 21 Aug 2009 08:25:23 +0000 (08:25 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs : isolated loop manager class from parent,
as well as moved some code from parent.
svn path=/trunk/mcs/; revision=140405
Atsushi Eno [Fri, 21 Aug 2009 08:16:40 +0000 (08:16 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBase.cs : some refactoring to reduce weird limitation
to apply behaviors to endpoints. (no need to limit to [0]).
svn path=/trunk/mcs/; revision=140404
Atsushi Eno [Fri, 21 Aug 2009 07:27:43 +0000 (07:27 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBase.cs : some refactoring to isolate dispatcher
builder code from here.
* ServiceMetadataExtension.cs:
some dependent changes to ServiceHostBase.
svn path=/trunk/mcs/; revision=140403
Atsushi Eno [Fri, 21 Aug 2009 07:09:54 +0000 (07:09 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcherCollection.cs : remove extra members.
svn path=/trunk/mcs/; revision=140402
Atsushi Eno [Fri, 21 Aug 2009 06:35:21 +0000 (06:35 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* ChannelDispatcher.cs, EndpointDispatcher.cs :
moved some initialization code from ServiceHostBase, to start
reducing dependencies on ServiceHostBase.
* ServiceHostBase.cs : moved some code to channel/endpoint dispatcher
to reduce their dependencies on this type.
svn path=/trunk/mcs/; revision=140401
Massimiliano Mantione [Fri, 21 Aug 2009 06:06:22 +0000 (06:06 -0000)]
Changed max depth of call chains to 128.
svn path=/trunk/mono/; revision=140400
Massimiliano Mantione [Fri, 21 Aug 2009 06:06:19 +0000 (06:06 -0000)]
Report all wrapper types.
svn path=/trunk/mono/; revision=140399
Massimiliano Mantione [Fri, 21 Aug 2009 06:06:14 +0000 (06:06 -0000)]
While debugging file writes, also print the exact number of bytes written to disk.
svn path=/trunk/mono/; revision=140398
Atsushi Eno [Fri, 21 Aug 2009 03:45:06 +0000 (03:45 -0000)]
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextReader.cs : there still was use of bogus
XmlParserContext.NameTable.
* XmlTextReaderTests.cs : added test for null nametable in parser
context.
svn path=/trunk/mcs/; revision=140397
Marek Habersack [Fri, 21 Aug 2009 00:41:34 +0000 (00:41 -0000)]
2009-08-21 Marek Habersack <mhabersack@novell.com>
* TreeNodeCollection.cs: {Save,Load}ViewState now store/load the
type of the node, if node is a of a custom type. Fixes bug #475997
svn path=/trunk/mcs/; revision=140394
Rodrigo Kumpera [Fri, 21 Aug 2009 00:01:31 +0000 (00:01 -0000)]
2009-08-20 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_assembly_table): Accept 0x10 as a valid
bit for assembly flags. MS is ok with it but there is no spec anywhere
on its mean
svn path=/trunk/mono/; revision=140392
Rodrigo Kumpera [Fri, 21 Aug 2009 00:01:21 +0000 (00:01 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_create_from_typedef): Emit profiler events
in all cases.
svn path=/trunk/mono/; revision=140391
Zoltan Varga [Thu, 20 Aug 2009 23:22:40 +0000 (23:22 -0000)]
2009-08-21 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_get_global_int_regs): Avoid using V5 as a
global register in methods with calls, since the calls can go through
a static rgctx trampoline which doesn't save it.
svn path=/trunk/mono/; revision=140389
Ankit Jain [Thu, 20 Aug 2009 22:28:39 +0000 (22:28 -0000)]
* Makefile.am (man_MANS): Add xbuild.1
* xbuild.1: New.
svn path=/trunk/mono/; revision=140383
Marek Habersack [Thu, 20 Aug 2009 21:07:20 +0000 (21:07 -0000)]
2009-08-20 Marek Habersack <mhabersack@novell.com>
* WebConfigurationManager.cs: GetSection does not use
FindWebConfig to get the virtual path to open configuration for -
doing so would make the configuration system ignore <location>
sections. Fixes bug #482181
svn path=/trunk/mcs/; revision=140375
Marek Habersack [Thu, 20 Aug 2009 21:03:07 +0000 (21:03 -0000)]
Fix for tests I broke yesterday
svn path=/trunk/mcs/; revision=140371
Geoff Norton [Thu, 20 Aug 2009 20:40:59 +0000 (20:40 -0000)]
2009-08-20 Geoff Norton <gnorton@novell.com>
* Socket_2_1.cs: Disable ipv6 on monotouch.
svn path=/trunk/mcs/; revision=140368
Ankit Jain [Thu, 20 Aug 2009 20:04:01 +0000 (20:04 -0000)]
Fix bug #531926
* xbuild/Microsoft.Common.targets: Add $(ConfigurationName)
and $(PlatformName) default values.
Move CoreCompile to a Compile target with corresponding
Before/After hooks and *DependsOn.
Add Pre/PostBuildEvents handling.
svn path=/trunk/mcs/; revision=140367
Ankit Jain [Thu, 20 Aug 2009 20:03:22 +0000 (20:03 -0000)]
* Engine.cs (EndProjectBuild): Use the @succeeded argument
instead of hardcoding 'true'.
* Target.cs (Build): Add an overload to return executeOnErrors
value for the target executed. If building dependencies fails,
and executeOnErrors is true, then execute OnError tasks.
Add the new param to ..
(BuildDependencies): this, ..
(DoBuild): and this.
(GetDependencies): Improve error message and variable name.
(ExecuteOnErrors): Honor OnError tag's Condition also.
* TaskBatchingImpl.cs (Run): Correctly set executeOnErrors param.
svn path=/trunk/mcs/; revision=140366
Marek Habersack [Thu, 20 Aug 2009 19:17:34 +0000 (19:17 -0000)]
Unbreak the 4.0 build
svn path=/trunk/mcs/; revision=140364
Sebastien Pouliot [Thu, 20 Aug 2009 18:26:28 +0000 (18:26 -0000)]
2009-08-20 Sebastien Pouliot <sebastien@ximian.com>
* SslStream.cs : Always use/provide a X509Chain even if this
duplicates some of the old/existing logic of Mono.Security.
This makes it possible to provide a callback using
ServicePointManager.ServerCertificateValidationCallback
svn path=/trunk/mcs/; revision=140359
Sebastien Pouliot [Thu, 20 Aug 2009 18:25:50 +0000 (18:25 -0000)]
2009-08-20 Sebastien Pouliot <sebastien@ximian.com>
* TlsServerCertificate.cs: If no usage information is available then
assume it's ok for SSL since we'll (later) check that the CN contains
a host name (that match the server) and such a certificate wouldn't
be much useful for anything but SSL/TLS. Fix the new stmp.gmail.com
certificate usage failure.
svn path=/trunk/mcs/; revision=140358
Sebastien Pouliot [Thu, 20 Aug 2009 16:01:57 +0000 (16:01 -0000)]
2009-08-20 Sebastien Pouliot <sebastien@ximian.com>
* SmtpClient.cs: Honor ServicePointManager.
ServerCertificateValidationCallback when provided
svn path=/trunk/mcs/; revision=140347
Atsushi Eno [Thu, 20 Aug 2009 14:09:09 +0000 (14:09 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
ongoing works, not working at all yet.
* System.ServiceModel.dll.sources: add more named pipe files.
svn path=/trunk/mcs/; revision=140341
Atsushi Eno [Thu, 20 Aug 2009 14:07:11 +0000 (14:07 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* TcpChannelListener.cs, TcpReplyChannel.cs :
cosmetic cleanup and corrections.
svn path=/trunk/mcs/; revision=140340
Atsushi Eno [Thu, 20 Aug 2009 14:05:29 +0000 (14:05 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* TcpChannelFactory.cs : use expected Via uri.
Remove extra NIE stuff that are implemented in base.
svn path=/trunk/mcs/; revision=140339
Ankit Jain [Thu, 20 Aug 2009 13:03:22 +0000 (13:03 -0000)]
Fix bug #532264.
In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add tools/xbuild/SolutionParser.cs
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #532264
* Project.cs (Load): Add support for loading .sln files.
In tools/xbuild:
Fix bug #532264.
* Main.cs: Dont generate .sln.proj, project.Load can handle
.sln directly now. Show stack trace for exceptions if logger
verbosity is > normal
* SolutionParser.cs (ParseSolution): Add a param for a raise
warning delegate. Use Dictionary.TryGetValue, key might not
be present.
svn path=/trunk/mcs/; revision=140334
Atsushi Eno [Thu, 20 Aug 2009 12:41:20 +0000 (12:41 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* TcpDuplexSessionChannel.cs : remove extra code.
svn path=/trunk/mcs/; revision=140332
Atsushi Eno [Thu, 20 Aug 2009 11:32:57 +0000 (11:32 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* PeerDuplexChannel.cs : ongoing implementation towards get callback
replies on peer connector clients (not working as duplex client
callback is not working yet).
svn path=/trunk/mcs/; revision=140329
Atsushi Eno [Thu, 20 Aug 2009 11:30:51 +0000 (11:30 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* ClientRuntimeChannel.cs : implement async OnBegin/EndOpen like close.
Add FIXME and OnOpen() override on duplex channel.
svn path=/trunk/mcs/; revision=140328
Atsushi Eno [Thu, 20 Aug 2009 10:48:11 +0000 (10:48 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBase.cs : support UnknownMessageReceived (used by
ChannelDispatcher).
* ChannelDispatcher.cs : handle unknown message in host event.
svn path=/trunk/mcs/; revision=140324
Atsushi Eno [Thu, 20 Aug 2009 09:58:31 +0000 (09:58 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* TcpDuplexSessionChannel.cs : in callback client channels,
OperationContext.IncomingMessageHeaders is null.
svn path=/trunk/mcs/; revision=140320
Atsushi Eno [Thu, 20 Aug 2009 09:48:40 +0000 (09:48 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* OperationContext.cs, OperationContextScope.cs :
implement IsUserContext.
* OperationContextTest.cs : new.
* System.ServiceModel_test.dll.sources: add OperationContextTest.cs.
svn path=/trunk/mcs/; revision=140319
Atsushi Eno [Thu, 20 Aug 2009 08:22:37 +0000 (08:22 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* DuplexChannelFactory.cs, ChannelFactory_1.cs: with static factory
methods, they should close the factory when the channel is closed,
but nonstatic CreateChannel() could be called more than once, so
do not always close it.
* ClientRuntimeChannel.cs : take OperationContext.Current into
consideration (it could be created by users).
svn path=/trunk/mcs/; revision=140316
Atsushi Eno [Thu, 20 Aug 2009 08:05:00 +0000 (08:05 -0000)]
2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
* MessageHeaders.cs : duplicate check was sloppy.
* MessageHeadersTest.cs : added a couple od duplicate tests. Fixed
non-working test output.
svn path=/trunk/mcs/; revision=140315
Gonzalo Paniagua Javier [Thu, 20 Aug 2009 05:50:42 +0000 (05:50 -0000)]
2009-08-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
* statement.cs: avoid nullref when the return value of GetEnumerator()
does not contain any MoveNext() method.
svn path=/trunk/mcs/; revision=140314
Ankit Jain [Wed, 19 Aug 2009 22:44:52 +0000 (22:44 -0000)]
* BuildTask.cs (Execute): Use task_logger only after the task
has been initialized. Catch and report task loading errors.
* Target.cs (DoBuild): Dont rethrow the exception, and emit
the stacktrace as a low importance message.
svn path=/trunk/mcs/; revision=140302
Marek Habersack [Wed, 19 Aug 2009 22:33:52 +0000 (22:33 -0000)]
2009-08-18 Marek Habersack <mhabersack@novell.com>
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-20 Marek Habersack <mhabersack@novell.com>
* ControlAdapter.cs: check if Control isn't null before using it.
CreateChildControls () must forward call to the control. Fixes bug
#517172
2009-08-20 Marek Habersack <mhabersack@novell.com>
* ControlAdapterTest.cs: added test for bug #517172
svn path=/trunk/mcs/; revision=140299
Rodrigo Kumpera [Wed, 19 Aug 2009 22:29:57 +0000 (22:29 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* constraints-load.il: New test for errors related to loading
type and method constraints.
svn path=/trunk/mono/; revision=140298
Rodrigo Kumpera [Wed, 19 Aug 2009 22:29:47 +0000 (22:29 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* icall.c (ves_icall_Type_GetMethodsByName): Don't leak loader errors.
Release memory on failure.
svn path=/trunk/mono/; revision=140297
Rodrigo Kumpera [Wed, 19 Aug 2009 22:29:36 +0000 (22:29 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* class-internals.h: Add mono_metadata_load_generic_param_constraints_full
to the internal API.
* metadata.c (get_constraints): Use a single-linked table as we don't
traverse it backward. Fail and return FALSE if only of the contraint types
is not found.
* metadata.c (mono_metadata_load_generic_param_constraints_full): Identical
to mono_metadata_load_generic_param_constraints except for having a return value.
This has to be done since the later is part of the public API.
* class.c (mono_class_create_from_typedef): Properly check the loading of constrains
and fail the type.
* loader.c (mono_get_method_from_token): Properly check the loading of constraints
and fail the method.
svn path=/trunk/mono/; revision=140296
Zoltan Varga [Wed, 19 Aug 2009 21:54:23 +0000 (21:54 -0000)]
2009-08-19 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.
svn path=/trunk/mono/; revision=140295
Zoltan Varga [Wed, 19 Aug 2009 21:54:14 +0000 (21:54 -0000)]
2009-08-19 Zoltan Varga <vargaz@gmail.com>
* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.
svn path=/trunk/mono/; revision=140294
Ankit Jain [Wed, 19 Aug 2009 21:21:54 +0000 (21:21 -0000)]
* xbuild/Microsoft.Common.targets (ResolveReferences*): Add
a *DependsOn property and Before/After hooks. Change output
of ResolvedFiles to @(ReferencePath).
* xbuild/Microsoft.CSharp.targets (Csc): Use @(ReferencePath)
for references.
svn path=/trunk/mcs/; revision=140291
Raja R Harinath [Wed, 19 Aug 2009 20:43:01 +0000 (20:43 -0000)]
Final piece of explicit numeric group support
* parser.cs (gap): New.
(GetMapping): Return it.
(ResolveReferences): Collect explicit numeric groups which may not
match their indices.
(HandleExplicitNumericGroups): New. Process the above list to
assign appropriate indices, and compute the correct value of 'gap'.
svn path=/trunk/mcs/; revision=140290
Raja R Harinath [Wed, 19 Aug 2009 20:42:36 +0000 (20:42 -0000)]
* syntax.cs (CapturingGroup.Index): Rename from Number to clarify semantics.
(CapturingGroup.CompareTo): New.
* parser.cs, syntax.cs: Update to changes.
svn path=/trunk/mcs/; revision=140289
Raja R Harinath [Wed, 19 Aug 2009 20:42:13 +0000 (20:42 -0000)]
Implement some more group number/index distinction
* Regex.cs (gap, Gap): New.
(Init, InitNewRegex): Update it.
(GroupNumberFromName): If the 'name' is beyond the gap, it is an
explicit numeric group -- use the name as the group number.
GetGroupIndex): Use a binary search to map a group number to its
index when we know that they don't match.
(GroupNumbers): Use group number, not group index, for explicit
numeric groups.
* Match.cs (.ctor): Use the newly introduce 'Regex.Gap'.
svn path=/trunk/mcs/; revision=140288
Raja R Harinath [Wed, 19 Aug 2009 20:41:51 +0000 (20:41 -0000)]
Minor code re-organization
* Regex.cs (group_numbers): New.
(GetGroupNumbers): Move array initialization ...
(GroupNumbers): ... to new on-demand initializer.
svn path=/trunk/mcs/; revision=140287
Raja R Harinath [Wed, 19 Aug 2009 20:41:26 +0000 (20:41 -0000)]
Use IDictionaryEnumerator in a loop where both key and value are used
* Regex.cs (group_names): Rename from _groupNumbersToNameMap.
(GetGroupNamesArray): Use an IDictionaryEnumerator to walk the
mapping, since both the key and value are used in the loop.
svn path=/trunk/mcs/; revision=140286
Raja R Harinath [Wed, 19 Aug 2009 20:41:03 +0000 (20:41 -0000)]
Introduce 'gap' concept into all the variants of regex
* arch.cs (IMachineFactory::Gap): New property.
* compiler.cs (InterpreterFactory): Update to changes.
* RxCompiler.cs (RxInterpreterFactory): Likewise.
* JvmReMachineFactory.cs: Likewise.
* parser.cs (GetMapping): Return the 'gap' index. Move creation
of mapping dictionary ...
* Regex.cs (CreateMachineFactory): ... here. Update to changes.
svn path=/trunk/mcs/; revision=140285
Raja R Harinath [Wed, 19 Aug 2009 20:40:39 +0000 (20:40 -0000)]
Distinguish between the internal index of a group and group number.
* Regex.cs (GetGroupIndex): New.
(GroupNameFromNumber): Use it.
* GroupCollection.cs (.ctor): Introduce 'gap' argument. It is the
index of the first group whose group number differs from its index.
(Item.get): Likewise.
svn path=/trunk/mcs/; revision=140284
Marek Habersack [Wed, 19 Aug 2009 18:37:10 +0000 (18:37 -0000)]
2009-08-19 Marek Habersack <mhabersack@novell.com>
* Route.cs: GetRouteData adds contents of its DataTokens
dictionary to the returned RouteData.DataTokens dictionary. Fixes
bug #523330. Patch from Dax@daxxfiles.net, thanks!
svn path=/trunk/mcs/; revision=140273
Rodrigo Kumpera [Wed, 19 Aug 2009 17:32:51 +0000 (17:32 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (is_valid_method_header): Add work-around to deal
with MS broken behavior of emmitting EH section sizes without the
header size added.
svn path=/trunk/mono/; revision=140267
Rodrigo Kumpera [Wed, 19 Aug 2009 17:32:41 +0000 (17:32 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata.c (mono_type_create_from_typespec): Don't allocate image
memory until we're sure that we'll need it. This avoids leaking for
broken types or duplicated instantiation.
svn path=/trunk/mono/; revision=140266
Carlos Alberto Cortez [Wed, 19 Aug 2009 16:58:21 +0000 (16:58 -0000)]
2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* System.Windows.Forms_test.dll.sources: Add a new test file.
svn path=/trunk/mcs/; revision=140263
Carlos Alberto Cortez [Wed, 19 Aug 2009 16:56:18 +0000 (16:56 -0000)]
2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolStripDropDownItemTest.cs: New test file.
svn path=/trunk/mcs/; revision=140262
Marek Safar [Wed, 19 Aug 2009 16:47:46 +0000 (16:47 -0000)]
2009-08-19 Marek Safar <marek.safar@gmail.com>
* *.cs: Removed IResolveContext::GenericDeclContainer.
svn path=/trunk/mcs/; revision=140259
Carlos Alberto Cortez [Wed, 19 Aug 2009 16:37:59 +0000 (16:37 -0000)]
2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ToolStripDropDown.cs: When assigning the owner item, use its Font as
well.
svn path=/trunk/mcs/; revision=140258
Marek Safar [Wed, 19 Aug 2009 15:54:08 +0000 (15:54 -0000)]
New test.
svn path=/trunk/mcs/; revision=140252
Marek Safar [Wed, 19 Aug 2009 15:53:32 +0000 (15:53 -0000)]
2009-08-19 Marek Safar <marek.safar@gmail.com>
* *.cs: Removed IResolveContext::GenericDeclContainer.
svn path=/trunk/mcs/; revision=140251
Marek Safar [Wed, 19 Aug 2009 14:15:32 +0000 (14:15 -0000)]
2009-08-19 Marek Safar <marek.safar@gmail.com>
* class.cs, delegate.cs: Changed Delegate to be TypeContainer based.
svn path=/trunk/mcs/; revision=140246
Rodrigo Kumpera [Wed, 19 Aug 2009 13:56:14 +0000 (13:56 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (is_valid_method_header): Fix stupid formating
mistake.
svn path=/trunk/mono/; revision=140245
Atsushi Eno [Wed, 19 Aug 2009 13:54:11 +0000 (13:54 -0000)]
2009-08-19 Atsushi Enomoto <atsushi@ximian.com>
* NetNamedPipeBinding.cs, NetNamedPipeSecurity.cs
NamedPipeTransportSecurity.cs : new files.
* Dummy.cs : remove above ones.
* System.ServiceModel.dll.sources: add named pipe files.
svn path=/trunk/mcs/; revision=140244
Atsushi Eno [Wed, 19 Aug 2009 13:34:09 +0000 (13:34 -0000)]
2009-08-18 Atsushi Enomoto <atsushi@ximian.com>
* net_2_1_raw_System.Core.dll.sources : now it should be created.
svn path=/trunk/mcs/; revision=140243
Rodrigo Kumpera [Wed, 19 Aug 2009 13:21:17 +0000 (13:21 -0000)]
2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (is_valid_method_header): Fix number of clauses
and expected size calculation.
svn path=/trunk/mono/; revision=140242
Marek Safar [Wed, 19 Aug 2009 10:58:38 +0000 (10:58 -0000)]
New tests.
svn path=/trunk/mcs/; revision=140231
Marek Safar [Wed, 19 Aug 2009 10:58:20 +0000 (10:58 -0000)]
2009-08-19 Marek Safar <marek.safar@gmail.com>
* generic.cs, iterators.cs, expression.cs, statement.cs, ecore.cs,
cs-parser.jay, attribute.cs, codegen.cs: Better error reports.
svn path=/trunk/mcs/; revision=140230
Jérémie Laval [Wed, 19 Aug 2009 10:51:42 +0000 (10:51 -0000)]
2009-08-19 Jérémie Laval <jeremie.laval@gmail.com>
In class/System/System.Collections.Concurrent/:
* BlockingCollection.cs: Rewrite to use a transaction id
based approach. Ported to 4.0 API. Fix GetConsumingEnumerable.
In class/System/Test/System.Collections.Concurrent/:
* BlockingCollectionTests.cs: Track API changes.
In class/System/System.Threading/:
* Barrier.cs: Fix Barrier to be really thread-safe.
Remove deadlocking.
In class/corlib/System.Collections.Concurrent/:
* Partitioner.cs: Fix infinite recursion when calling Create
with a IList.
* Partitionners/ListPartitioner.cs: Fix bad splitting for the
last partition.
In class/corlib/System.Threading.Tasks/:
* Task.cs: Refactor Wait methods.
In class/corlib/System.Threading/:
* AtomicBoolean.cs: Turn it into a class
* CountdownEvent.cs: Work on cached variable. Make sure
count doesn't go under 0.
* ParallelLoopState.cs: Initialize correctly AtomicBoolean.
svn path=/trunk/mcs/; revision=140229
Atsushi Eno [Wed, 19 Aug 2009 10:19:40 +0000 (10:19 -0000)]
Adding System.IO.Pipes implementation.
svn path=/trunk/mcs/; revision=140228
Marek Habersack [Tue, 18 Aug 2009 23:56:22 +0000 (23:56 -0000)]
1.1 test fixes
svn path=/trunk/mcs/; revision=140213
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:43 +0000 (23:14 -0000)]
2009-08-17 Rodrigo Kumpera <rkumpera@novell.com>
* valid_generic_type_definition_on_boxing_position.cs: Valid encoding of GTD on
box position.
svn path=/trunk/mono/; revision=140212
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:32 +0000 (23:14 -0000)]
2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
* class.c (mono_class_get_field_idx): Add fixme for broken
behavior for types with multiple fields with the same name.
I would rather fix it, but have no idea on how to generate
such artifact for testing.
svn path=/trunk/mono/; revision=140211