This reverts commit f5302c64d9074f8250bb7e372a5faa3ba515767d, reversing
changes made to a04667db95c879584ec3a83d902ea61c1584ec27.
svn path=/tags/monotouch-1-0/mono/; revision=143559
* security-core-clr.c: Fix default_platform_check so it can run
the runtime coreclr tests (without an infinite recursion when
throwing an exception).
svn path=/trunk/mono/; revision=141690
prevent marking custom attributes of foreign assemblies in a derived
step in the tuner. ( r: jb )
* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs: Don't mark attributes of
non-a11y assemblies.
svn path=/trunk/mcs/; revision=141687
* verify.c: Look for recursive valuetypes only against the
type been initialized as this is a lot simpler and works.
svn path=/trunk/mono/; revision=141686
strings, so that it can be emitted with correct indentation.
(SearchLogger): Remove.
(LogSearchMessage): New.
(LogSearchLoggerMessages): New.
* ResolveAssemblyReference.cs: Track api changes.
svn path=/trunk/mcs/; revision=141684
* object.c (mono_object_get_virtual_method) : Call
mono_cominterop_get_invoke if the object is a COM object.
* mini-trampolines.c (mono_delegate_trampoline) : Call
mono_cominterop_get_invoke if the delegate target object
is a COM object.
* cominterop.cs : Adding a test for invoking delegates that
target COM methods.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=141680
* DocumentDesigner.cs: Changing the ISelectionService at run time was a
bad idea, so wrap it inside the extended UISelectionService instead.
svn path=/trunk/mcs/; revision=141679
* DesignSurface.cs: Provide the default implementation of the
ISelectionService in the DesignSurface service container.
* DocumentDesigner.cs: If there is already a ISelectionService registered
in the ServiceContainer but it's not an IUISelectionService (WinForms
specific) then replace it with one.
[Fixes bug #538037]
svn path=/trunk/mcs/; revision=141677
** Fixes#510176
* DataView.cs (OnRowChanged/OnRowDeleted): Raise appropriate events iff
view is affected. This silence of the numerous Add/Change events that were
getting raised from DataView.
(ToTable): Use appropriate index to generated DataTable in case of
RowFilter / Sort conditions.
* DataRow.cs (AcceptChanges/RejectChanges): Raise appropriate Changing events
svn path=/trunk/mcs/; revision=141649
OutputDirectory provided on the command line, and redirect some
progress info or errors to the console.
* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs: Remove
unnecessary step.
svn path=/trunk/mcs/; revision=141633
* RouteTest.cs: added two tests for empty and null route URLs (bug
#537751)
2009-09-09 Marek Habersack <[email protected]>
* Route.cs: when Url is set to null, create a parser for empty
string. Fixes bug #537751
* PatternParser.cs: Parse allows for null/empty URLs. Fixes bug
#537751
svn path=/trunk/mcs/; revision=141630
source directories are provided, e.g. 'mdoc export-html -o o a b c'
with docs located in directories a, b, and c. Previously this would
be equivalent to running aginst a, b, and c separately, resulting in
o/index.html being continually overwritten (and thus not showing ALL
available types).
* Resources/stylesheet.xsl: Make $Index a parameter (as monodocs2html
will create an in-memory index containing all types from all
specified directories), and various changes to cope with $Index no
longer being a file. Better support files in the global namespace.
* Test/html.expected/NoNamespace.html: Fix assembly link.
svn path=/trunk/mcs/; revision=141629
files located in multiple directories. Needed so that 'mdoc
export-html' can properly deal with multiple source directories.
svn path=/trunk/mcs/; revision=141628
* BuildItem.cs (Evaluate): Metadata from "Include" should be,
preserved, so use ConvertTo ITaskItem, rather than string.
Ensure that the new items have the metadata from references _in_
Include, and the metadata of _this_ builditem.
* DirectoryScanner.cs (Includes): Change to a array of ITaskItem.
(MatchedFilenames): Rename to ..
(MatchedItems): .. this, and change type of array of ITaskItem.
Ensure that metadata of items in Includes are retained in the
final matched items.
* BuildItemGroup.cs (ConvertoToITaskItemArray): Add 'separator'
param. If separator is present, then just return a "Join'ed"
string as the single task item.
* ItemReference.cs: Track api changes.
* BuildProperty.cs (ConvertToITaskItemArray): Split the value,
as we need separate task items.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItems2a):
(TestInheritedMetadataFromItemRefs):
(TestInheritedMetadataFromItemRefs2):
(TestMetadataFromItemReferences): New.
svn path=/trunk/mcs/; revision=141627
A fix for bug #518707
* expression.cs (Is): Optimize only generic parameter type
expression probing value type generic parameter.
svn path=/trunk/mcs/; revision=141619
the need of some new tuner step to redefine or call some methods.
* tuner/Mono.Tuner.csproj:
* tuner/Mono.Tuner.dll.sources: Add new step MoonlightA11yApiMarker.
* tuner/Mono.Tuner/MoonlightA11yApiMarker.cs:
* tuner/Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Use a new
marker step to only mark API used, not mark recursively.
* tuner/Mono.Tuner/MoonlightA11yUsageInspectionStep.cs: Use the new
marker step.
* tuner/Makefile: Adding reference to System, as we need it for
System.Text.RegularExpressions.
r: jb
svn path=/trunk/mcs/; revision=141614
* ParentControlDesigner.cs, ControlDesigner.cs, UISelectionService.cs,
IUISelectionService.cs: Support IToolboxService control creation via
point-(resize)-click.
[Fixes part of bug #537604]
svn path=/trunk/mcs/; revision=141612
* method-to-ir.c: For CoreCLR throw a SecurityException if an
internal call is defined outside platform code. Reduce code
duplication with existing [Method|Field]AccessException
svn path=/trunk/mono/; revision=141607
* mini-x86.c (mono_arch_emit_call): Don't reduce stack usage by 4
if the return value is a small struct passed on regs.
svn path=/trunk/mono/; revision=141552
A fix for bug #537402
* generic.cs (CheckConstraint): Don't use buildin types to check for
parameterless constructor.
svn path=/trunk/mcs/; revision=141538
Use inheritance-aware interface offsets. Inherited types use the same offsets
of their parents. This reduce offset duplication in case more than one type in
the inheritance tree explicitly implements the same interface.
This also removes a source of vtable bubbles found in #532409. An abstract type
isn't required to provide abstract methods to all interfaces it implements, which
resulted in a bubble with the previous scheme as the child would get a non-full
vtable from its parent. We fail all concrete types with vtable bubbles, so this
should be fixed.
This change causes an increase of 1.7% in vtable memory usage for IronPython pystone but
it's expected to not cause any significant increase beyond that.
* class.c (setup_interface_offsets): Compute super class iface offsets
first to force sharing.
* class.c: Add VTABLE_SELECTOR macro to the vtable debug macros to help
dumping only the relevant ones.
* class.c (mono_class_setup_vtable_general): Give newslot, non final, virtual
methods a new slot regardless if they belong to an interface or not. This allows
an inherited type to override the iface method separately from the class one.
svn path=/trunk/mono/; revision=141535
A fix for bug #537402
* generic.cs (CheckConstraint): Correctly inflate generic type
arguments when checking generic method.
svn path=/trunk/mcs/; revision=141532
* RichTextBox.cs: When processing rtf, don't add a new line if we
already have one for that position. This way we avoid overriding by
mistake our lines when copying/pasting.
Fixes#513030.
svn path=/trunk/mcs/; revision=141531
* basic-calls.cs: Move the test_0_float_load_and_store_with_big_offset ()
test which depends on structs to objects.cs.
svn path=/trunk/mono/; revision=141524
* basic-calls.cs: Remove calls to Console.WriteLine and throws, since those
require object model related stuff working.
svn path=/trunk/mono/; revision=141523
A fix for bug #536463
* decl.cs (AddToContainer): Don't report collision between explicit
and parameterless non-explicit members.
svn path=/trunk/mcs/; revision=141520
* ListView.cs: if total row count has been retrieved from the
view, don't reset it to the number of items returned from the data
source. Fixes bug #535701
svn path=/trunk/mcs/; revision=141509
* mini-codegen.c (mono_local_regalloc): Validate the cpu description
against the instruction metadata in mini-ops.h. amd64 only for now.
* mini-ops.h: Fix some instruction descriptions.
* mini-ops.h mini-x86.c mini-amd64.c cpu-<ARCH>.md: Remove some
unused instructions.
svn path=/trunk/mono/; revision=141476
* BuildManager.cs: added IsPrecompiled internal property.
* AppResourcesCompiler.cs: load precompiled site local and global
resource assemblies from static constructor. Fixes bugs #536138
and #536143
svn path=/trunk/mcs/; revision=141474
* UrlRoutingModule.cs: store original request path in
PostResolveRequestCache and restore it in
PostMapRequestHandler. Fixes bug #537089
svn path=/trunk/mcs/; revision=141471
A fix for bug #324625
* expression.cs, ecore.cs: Create nested generic type expression
using declaring and not current type.
svn path=/trunk/mcs/; revision=141461
* TextControl.cs: When inserting new lines, look for the end of file
char, and remove chars after it. This is unlikely to happeng either
loading a file, pasting text or pressing a char, but can happen using
the TextBox.Text property.
Fixes#535884.
svn path=/trunk/mcs/; revision=141460
* HttpContext.cs: when creating local resource provider, pass the
current file's virtual path to CreateLocalResourceProvider. Fixes
bug #536757
svn path=/trunk/mcs/; revision=141424
* HostingEnvironment.cs: MapPath checks if HttpContext.Request
actually exists before using it.
2009-09-07 Marek Habersack <[email protected]>
* XmlSiteMapProviderTest.cs: added
* StaticSiteMapProviderTest.cs: added test for FindSiteMapNode
2009-09-07 Marek Habersack <[email protected]>
* XmlSiteMapProvider.cs: do not allow the provider to be
intialized more than once.
Initialize throws if it finds unknown attributes in the
'attributes' collection.
AddNode checks its arguments and throws if they are null or aren't
from the same provider.
FindStartingNode throws exceptions in several erroneous situations
now.
Added private method GetConfigDocument which performs several
checks on the source .sitemap file and throws exceptions if it
finds any errors.
BuildSiteMap clears provider state before building the map.
BuildSiteMapRecursive correctly deals with custom providers. Fixes
bug #465696
FindSiteMapNode maps url before searching. Fixes bug #465696
* VirtualPathUtility.cs: Combine a bit more efficient
* StaticSiteMapProvider.cs: FindSiteMap node checks if rawUrl is
relative to application root and if yes, makes it absolute.
MapUrl converts both rooted and not rooted urls to absolute.
* SiteMapProvider.cs: check if HttpContext.Request exists before
using it in FindSiteMapnode
* SiteMap.cs: Providers collection must be read-only.
2009-09-07 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWeb/NunitWeb/Resources/sub_map_01.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_01.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_02.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_03.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_04.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_05.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_06.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_07.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_08.sitemap
Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_09.sitemap
2009-09-07 Marek Habersack <[email protected]>
* Tests/TestSiteMapProvider.cs: added
svn path=/trunk/mcs/; revision=141420
* XmlObjectSerializerTest.cs : fixed wrong EOLs that resulted in
failure in .NET.
* XsdDataContractExporterTest.cs : fix test that failed on .NET,
and marked as NotWorking (no proceeding wsdl work yet).
svn path=/trunk/mcs/; revision=141414
* DesignSurface.cs: Don't be so strict and allow for the users
to get the View even if the DesignSurface wasn't properly initialized
with a DesignerLoader. MS compatibility.
[Fixes bug #537131]
svn path=/trunk/mcs/; revision=141406
* UriTemplateTest.cs : fixed a couple of tests to match 3.5 SP1
behavior.
* UriTemplate.cs : Fixed a couple of parse/match behavior to match
3.5 SP1 (except for Defaults which misses implementation).
svn path=/trunk/mcs/; revision=141403
* Line.cs: In DeleteCharacters, cache line.Length for every tag, since
tag.Start changes will modify it indirectly and then we would end up
with wrong values.
Fixes#512521.
svn path=/trunk/mcs/; revision=141397
* ContractDescriptionGenerator.cs : default action name is prepended
"urn:", and on the other hand do not add extra '/' in such case.
* HttpRequestChannel.cs : Fix message version member comparison.
Double-quote SOAPAction. Remove extra Exception.
* HttpReplyChannel.cs : ditto for version comparison. Unquote above.
* HttpRequestContext.cs : when addressing is None, remove action
from the message.
svn path=/trunk/mcs/; revision=141394
* ContractDescriptionGenerator.cs : end method lookup should be
done against the type that defines begin method.
* ClientProxyGenerator.cs : it missed end method argument on
generating end method proxy.
svn path=/trunk/mcs/; revision=141393
* mini-llvm.c (mono_llvm_emit_method): Handle unsigned volatile variables
correctly by zero extending after loads. Skip methods containing calls
to the monitor enter/exit trampolines.
svn path=/trunk/mono/; revision=141390
* mini.c (mini_method_compile): Disable llvm when AOT compiling.
* tramp-amd64.c (mono_arch_patch_callsite): Add support for 32 bit ->
64 bit thunks.
(mono_arch_nullify_class_init_trampoline): Read 'buf' instead of 'code'.
* mini-llvm.c (mono_llvm_emit_method): Add a few missing conversions so a
bootstrap could run.
svn path=/trunk/mono/; revision=141388
* processes.c (CreateProcess): Return false and set the error to
ERROR_OUTOFMEMORY when a process handle cannot be created.
(ShellExecuteEx): Propagate an ERROR_OUTOFMEMORY error code. Fixes part of
#536776.
svn path=/trunk/mono/; revision=141379
* MemoryMappedViewAccessor.cs: New net 4.0 class.
* MemoryMappedViewStream.cs: Move the mmap code to MemoryMappedFile.cs,
so it can be used by ViewAccessor as well.
svn path=/trunk/mcs/; revision=141375
* HttpRuntime.cs: retrieve real Mono version from the runtime and
store it in the MonoVersion internal static property.
svn path=/trunk/mcs/; revision=141370
* object-internals.h (MonoRuntimeCallbacks): Add a 'get_runtime_build_info' callback.
* object.c (mono_get_runtime_callbacks): New helper function to return
the runtime callbacks.
* icall.c (ves_icall_Mono_Runtime_GetDisplayName): Use the result of
mono_get_runtime_build_info () as the display name.
svn path=/trunk/mono/; revision=141366
* build/DbLinq.Sqlite_test_mono_strict.dll.sources: Added; .sources
file to build build/DbLinq.Sqlite_test_mono_strict.dll, the
"end-to-end" unit tests for SQLite using Mono.Data.Sqlite.
* build/Makefile: Added; builds all "end-to-end" unit tests.
* examples/**/*: Sync with DbLinq r1217; includes sources needed for
end-to-end tests located in 'build'.
svn path=/trunk/mcs/; revision=141365
* threadpool.c: make the Sleep() alertable to prevent delays exiting
applications that take less than 2s to execute.
Bug #524984 fixed.
svn path=/trunk/mono/; revision=141363
* WebConnection.cs: if the request has already finished reading, don't
throw ObjectDisposedException here, just return as if nothing
happened. Fixes bug #312968.
svn path=/trunk/mcs/; revision=141346
* HttpRuntime.cs: detect (and parse if possible) real Mono version
and make it available via internal, static property
MonoVersion. MonoVersionParsed property tells whether
Mono.Runtime.GetDisplayName returned string in a format we
understood.
* HttpException.cs: report real Mono version when backtrace is
displayed.
svn path=/trunk/mcs/; revision=141339
* OperationInvokerHandler.cs, ReplyHandler.cs :
- Eliminate ReplyHandler use. What is does is simple reply, while
it brings inconsistency between sync and async models.
What reply handler used to do are now integrated.
- Support ErrorHandlers and InputSessionShutdownHandlers.
Actually ErrorHandlers were processed at wrong place and they
weren't called where they are expected.
* InputOrReplyRequestProcessor.cs : hence eliminated ReplyHandler.
* BaseRequestProcessor.cs : add FIXME notes on ErrorHandlers.
svn path=/trunk/mcs/; revision=141326
* ServiceHostBase.cs : URI trailing '/' can be added only when the
relative URI is non-empty. Do not make http://host/foo.svc as
http://host/foo.svc/ , it's not a directory.
* SvcHttpHandler.cs : set Uri property based on baseAddresses and
path, to pick those endpoints that are added at custom factories.
svn path=/trunk/mcs/; revision=141307
* ServiceHostBase.cs : add AddBaseAddress(). BaseAddresses must be
non-null.
* ServiceHostBaseTest.cs : added test for AddBaseAddress().
svn path=/trunk/mcs/; revision=141301
* WebScriptServiceHostFactory.cs : endpoints are automatically added
and if they are added through configuration, it is an error
(as documented).
svn path=/trunk/mcs/; revision=141294
* marshal.c (emit_marshal_array): Call conv.ovf.i on the array parameter
argument, since NEWARR expects a native int. Fixes#481559.
svn path=/trunk/mono/; revision=141268
* BindingSource.cs: Implement support for chained data sources.
* ListBindingHelper.cs: Add support for ICurrencyManagerProvider and
clean up.
[Fixes part of bug #536547]
svn path=/trunk/mcs/; revision=141261
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
of the method to
mono_breakpoint_clean_code () when using LLVM as the prologues generated by
LLVM might be very short.
svn path=/trunk/mono/; revision=141260
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
of the method to
mono_breakpoint_clean_code () when using LLVM as the prologues generated by
LLVM might be very short.
svn path=/trunk/mono/; revision=141259
* mini-x86.c (mono_arch_output_basic_block): Maintain stack alignment
in OP_THROW/RETHROW.
* exceptions-x86.c: Rewrite the throw trampolines so they maintain stack
alignment on osx.
svn path=/trunk/mono/; revision=141250
* ServiceHostBase.cs : on service contract lookup, do not always
expect contract name to match type name.
* ServiceHost.cs : remove extra local var.
svn path=/trunk/mcs/; revision=141229
* SvcHttpHandlerFactory.cs : some GetHandler changes.
* SvcHttpHandler.cs : significant changes on receiver structure. Now
ProcessRequest() stores pending requests (this might be extraneous,
but maybe useful when it implements async handler). Also removed
reply_channel field as it may become to handle multiple requests.
* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
* AspNetReplyChannel.cs : make it receive requests like
HttpReplyChannel (for HttpListener) to make them consistent.
svn path=/trunk/mcs/; revision=141224
* AppResourcesCompiler.cs: SanitizeResourceName uses VB/C# rules
to attempt to create valid identifiers from resource
names. Identifier is also escaped by the CodeDOM provider before
returning. Possible fix for bug #536364
svn path=/trunk/mcs/; revision=141220
* AspNetRequestContext.cs, HttpRequestContext.cs :
fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
by splitting HttpListener-based context out from common code base.
svn path=/trunk/mcs/; revision=141219
* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
relative or absolute. new Uri ("/foobar") doesn't work on non-unix
environment.
svn path=/trunk/mcs/; revision=141206
* corlib.dll.sources: Update with moved files.
* corlib_test.dll.source: Updated with moved files.
2009-07-31 Jérémie Laval <[email protected]>
svn path=/trunk/mcs/; revision=141190
* mini-amd64.c (mono_arch_get_vcall_slot): Pass the start of the method to
mono_breakpoint_clean_code () when using LLVM as the prologues generated by
LLVM might be very short.
svn path=/trunk/mono/; revision=141189
* class.c (mono_class_setup_fields): Remove duplicated local variable
named gklass.
Rename gklass to gtd to reflect the fact that it points to the generic
type definition.
Remove the duplicated call to mono_class_setup_fields on gtd and move
the error check to the beginning.
svn path=/trunk/mono/; revision=141184
* assembly.c (parse_public_key): Avoid allocating (and not
freeing) the public key array when it's not requested by the
caller.
* threads.c (mono_thread_manage, mono_thread_create_internal,
ves_icall_System_Threading_Thread_Thread_internal): Free
allocated memory on error.
svn path=/trunk/mono/; revision=141170
* mono-dl.c (mono_dl_open): Don't leak module if name is NULL
* mono-md5.c (mono_md5_get_digest_from_file): Close 'fp' even on
success (just like we do for sha1)
svn path=/trunk/mono/; revision=141161
* SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
loads types from system assemblies appropriately.
svn path=/trunk/mcs/; revision=141128
* WebMessageFormatter.cs : it was not returning value with correct
wrapper name/namespace. Fix interop with .NET client.
svn path=/trunk/mcs/; revision=141121
* WebMessageFormatter.cs : Made the same prohibition for dispatch
formatters too. Support WebMessageBodyStyle on dispatcher side too.
svn path=/trunk/mcs/; revision=141117
* DB2CLIWrapper.cs: changed libname to 'db2'. Use 'int' instead of
'IntPtr' for most of the SQL handles. Only SQLPOINTER is 64 bits in
64-bit machines.
svn path=/trunk/mcs/; revision=141088
* gen-md-tests.c: Add suppport for badrt mode for metadata
tests that require runtime type initialization.
* Makefile: Add support for badrt.
svn path=/trunk/mono/; revision=141077
* cli-global-props-tests.md: Add test for typeref table.
* cli-tables-tests.md: Disable test that pass under MS.
svn path=/trunk/mono/; revision=141075
This reverts r140936 and properly handles interfaces with static methods. The
right fix is to ensure vtables without bubles which is an easier to verify
constraint. We should avoid such special cases as of the reverted patch as those
only make the runtime more brittle.
* class.c (mono_class_setup_vtable_general): Revert previous change that handle
static methods on interfaces.
* class.c (setup_interface_offsets): Use the number of virtual methods when
calculating interface offsets instead of the number of methods. This way we
avoid bubles on the layout.
svn path=/trunk/mono/; revision=141073
* exceptions-x86.c (throw_exception): Fix the previous change by substracting
the alignment for the value of sp.
svn path=/trunk/mono/; revision=141069
* ListView.cs: LoadControlState must call OnTotalRowCountAvailable
after restoring the state, so that all parties subscribed to that
event are given chance to react accordingly.
SetPageProperties should use values stored in
PagePropertiesChangingEventArgs arguments after handler returns.
2009-09-01 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: ExecuteSelect must call
QueryTotalRowCount after executing the select method (that's what
.NET does)
svn path=/trunk/mcs/; revision=141062
* RichTextBox.cs: When saving the text to a file using SaveFile use
Environment.NewLine to separate the lines. This way we should be
saving the files according to the system.
Fixes the remaining part of #511515.
svn path=/trunk/mcs/; revision=141027
* Uri.cs (ParseNoExceptions): Don't look for '@' in absolute unix paths.
2009-09-01 Andres Aragoneses <[email protected]>
* UriTest.cs: New tests from #533572.
svn path=/trunk/mcs/; revision=141020
* WebOperationContext.cs : Current is automatically created (even
without WebHttpBehavior or WebChannelFactory).
* IncomingWebRequestContext.cs, IncomingWebResponseContext.cs:
WebOperationContext could be created regardless of whether it is
request or not. So do not premise incoming members existence.
* WebOperationContextTest.cs : new test.
* WebInvokeAttributeTest.cs : new test, not working.
* System.ServiceModel.Web_test.dll.sources :
added WebOperationContextTest.cs.
svn path=/trunk/mcs/; revision=141005
* Expression.cs (ParseOptions): New enum. Replace the bool params
of exression.Parse with this. Add option to control expansion of
metadata references.
(CopyToExpressionCollection): Track api changes.
Update all expr.Parse calls to use the new enum.
* BuildItem.cs, BuildProperty.cs, BuildTask.cs, Import.cs,
Target.cs, TargetBatchingImpl.cs, UsingTask.cs: Track api changes.
* BatchingImplBase.cs: Track api changes. Allow metadata refs
in task attributes.
* ConditionFactorExpression.cs: Allow metadata refs in conditions.
* ItemReference.cs: Allow metadata in transforms.
* TaskEngine.cs: Allow metadata refs.
* MetadataReference.cs (.ctor): Add a 'original string' param.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TaskBatchingTest.cs: Add new tests for metadata refs found
in places other than task attributes.
svn path=/trunk/mcs/; revision=140998
* metadata-verify.c (verify_metadata_header): Some very smart
obfuscators like to add extra stream headers. Ignore them.
svn path=/trunk/mono/; revision=140963
* HttpChannelFactory.cs : reject URI mismatch cases when required.
* HttpTransportBindingElementTest.cs : test for URI mismatch case.
svn path=/trunk/mcs/; revision=140960
* CustomizableFileSettingsProvider.cs: reset the property value
instead of using the DefaultValue.
* SettingsPropertyValue.cs: new Reset() method.
* ApplicationSettingsBase.cs: Reset happens in Reload().
Patch by Andrew Kurochka that fixes bug #532180.
svn path=/trunk/mcs/; revision=140950
* IsolatedStorageFileEnumerator.cs
* MoonIsolatedStorageFileStream.cs
* MoonIsolatedStorageFile.cs
* MoonIsolatedStorage.cs
* IsolatedStorageScope.cs
* IsolatedStorageFileStream.cs
* IsolatedStorage.cs
* IsolatedStorageFile.cs:
Use the traditional net_2_0 version of isolated storage
for MonoTouch.
svn path=/trunk/mcs/; revision=140937
* cli-global-props-tests.md: New tests for global
properties to check tables for.
* Makefile: Add new test source.
svn path=/trunk/mono/; revision=140927
* Expression.cs (ExpressionOptions): New.
Introduce a ExpressionOptions argument to all ConvertTo*
methods. Implement the rule: in evaluation phase, expand
all items completely, but dont expand item refs in properties.
At other times, expand the item refs in the properties.
See comments in Expression.cs, for a full explanation.
* BuildItem.cs: Track api changes.
* BuildItemGroup.cs: Likewise.
* BuildProperty.cs: Track api changes. Handle self-references.
* BuildTask.cs: Track api changes.
* IReference.cs: Add ExpressionOptions param.
* ItemReference.cs: Track api changes.
* PropertyReference.cs: Likewise.
* MetadataReference.cs: Likewise.
* ExpressionCollection.cs: Track api changes. Add support for
converting all primitive types and DateTime, instead of a fixed
few.
* Project.cs (GetMetadataBatched): Use the evaluated metadata.
* TaskBatchingImpl.cs: Handle the case when batching is required,
but no items are available.
* TaskEngine.cs: Throw on unsupported types. Correctly handle
properties in case of empty values.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* BuildItemTest.cs (TestSetMetadata5a): New.
* ProjectTest.cs: Add tests for different property types
with required attribute. Also, check the values - null or
empty array.
* TestTasks.cs: Add new tasks for above.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs: Add new tasks for different property types
with required attribute. Also, emit whether the value was
null or a zero length array.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs: Add tests for property/item evaluation.
svn path=/trunk/mcs/; revision=140911
* TextBoxBase.cs: Modified should *not* be modified from the Text
property, as our new tests show. It should be to false, however, in
Append and Clear; and Paste, Cut, Undo, and direct user input should set it
to true. Also, as opposed to what the .net docs say -but proven by our
tests-, the changes should be generating a ModifiedChanged event
(thus we set the property, instead of the field).
Fixes#511267.
svn path=/trunk/mcs/; revision=140891
* pedump.c: Initialize all types during metadata validation so we report
errors only detected as part of class initialization.
svn path=/trunk/mono/; revision=140838
* BuildManager.cs: when HttpRequest.FilePath is '/' in
GetAbsoluteVirtualPath, don't try to use
VirtualPathUtility.GetDirectory on it. Fixes bug #532679
svn path=/trunk/mcs/; revision=140786
* TextControl.cs: When removing a simple char, actually record the
action in the undo manager. This way we both support undoing the
removal of chars using backspace/delete, as well as keeping data
integrity when other undo tasks are performed.
Fixes#531983.
svn path=/trunk/mcs/; revision=140769
* AspTokenizer.cs: when there's put back record and we're in
verbatim mode, get_token must be careful with what it returns - it
can't return Token.* values, instead it should look at Value and
retrieve the next token from it. Fixes bug #400807
2009-08-26 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #400807
2009-08-26 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/OneLetterIdentifierInCodeRender.aspx
svn path=/trunk/mcs/; revision=140703
* PeerDuplexChannel.cs : When received Connect() from neighbor,
add the peer to its internal list.
Finally ChatApplication got working.
svn path=/trunk/mcs/; revision=140700
* PeerDuplexChannel.cs : since the channel factory is per instance,
do not reuse factory that is tied to different callback instance.
It resolved the issue that mono callback client didn't receive
messages from the client itself.
svn path=/trunk/mcs/; revision=140698
* PeerNode.cs : use ulong as same as Welcome message value.
* PeerDuplexChannel.cs : in the Welcome response, return the NodeId
of the receiver, not the requestor. It resolved the issue that
.NET client didn't send further messages to mono server.
svn path=/trunk/mcs/; revision=140693
* System.dll.sources:
* monotouch_System.dll.sources:
* System20.csproj: add Mono.Http/NtmlClient.cs
* Mono.Http/ChangeLog: New file.
* Mono.Http/NtlmClient.cs: copied from Mono.Http.
* System.Net/NtlmClient.cs: use Mono.Http.NtmlClient from System
instead of dynamically loading the one in Mono.Http.
svn path=/trunk/mcs/; revision=140690
* Expression.cs: Correctly handle a item reference with transform
when allowItems is false. If item ref is ignored, then the transform
will get incorrectly matched as a metadata ref.
* ItemReference.cs (.ctor): Add a @original_string param.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateItemTest.cs (TestVariableExpansion): Update test to
use a transform with a item reference in a property.
svn path=/trunk/mcs/; revision=140684
* class.c (mono_class_setup_vtable_general): Verify the resulting vtable
for holes or bad methods. Fixes#525314.
svn path=/trunk/mono/; revision=140653
* class.c (setup_interface_offsets): Don't allocate slot
for the same interface multiple times. This creates bubbles
that waster space and make vtable verification harder.
The same interface get a slot multiple times since we need
to get the closure of all implemented interfaces, which means
the same interface is reported multiple times.
svn path=/trunk/mono/; revision=140652
* verify.c (mono_verifier_verify_class): Don't check the fields
of generic instances since the context on which they got expanded
might lead to false positives.
Such thing happens when a generic type is inflated in the context
of a generic method and the inflated type of a field turns into a
generic method argument, which causes the checking code to think
it's an invalid class when it's not.
svn path=/trunk/mono/; revision=140634
** Fixes#521951
* DataViewManager.cs (CollectionToListChangeEventArgs) : Use a corresponding
DataTable/DataRelation obj instead of only DataRelation.
svn path=/trunk/mcs/; revision=140597
* WebColorConverter.cs: inform the user that the might need to
check if libgdiplus is installed when parsing a color name
fails. Fixes bug #533749
svn path=/trunk/mcs/; revision=140593
* icaa.c (ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor):
Check for errors after retrieving the vtable.
svn path=/trunk/mono/; revision=140561
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
* aot-runtime.c aot-compiler.c: Emit exception causes fully so we don't
depend on the info MonoMethodHeader which could be missing in IL stripped
assemblies.
svn path=/trunk/mono/; revision=140558
* PageParser.cs: 2.0 profile takes advantage of the inputFile
parameter to GetCompiledPageInstance. A check is made whether the
file pointed to by this parameter is inside the application's
virtual path and if not, the compilation request is assumed to
refer to a fake location. Part of fix for bug #463813
2009-08-24 Marek Habersack <[email protected]>
* PageBuildProvider.cs: MapPath now takes a VirtualPath
instance. Part of fix for bug #463813
* BuildManager.cs: public APIs which take virtual path strings as
their parameters got internal counterparts accepting a VirtualPath
instance in place of string. Part of fix for bug #463813
* GenericBuildProvider.cs:
MapPath now takes a VirtualPath instance. Part of fix for bug
#463813
2009-08-24 Marek Habersack <[email protected]>
* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
path hack when creating the helper page. Part of fix for bug
#463813
2009-08-24 Marek Habersack <[email protected]>
* VirtualPath.cs: Added new constructor which takes virtual and
physical paths as well as a boolean marking the instance as
referring to a fake location. Part of fix for bug #463813
svn path=/trunk/mcs/; revision=140548
the internal field to String.Empty, instead of doing it for our Text
property, as .net does (which also causes a TextChanged event and all
the other related routines).
Fixes#531587.
2009-08-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=140535
linear search - there's no possible way to use a binary search, since
the node instances are not implementing IComparable, nor have a
specific order.
Fixes#529927.
2009-08-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=140531
* CreateManifestResourceName.cs (GetResourceIdFromFileName): Spaces
in folder names should be converted to '_'.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateCSharpManifestResourceNameTest.cs:
* CreateVisualBasicManifestResourceNameTest.cs: Add tests for
folder name with spaces in it.
svn path=/trunk/mcs/; revision=140530
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 <[email protected]>
svn path=/trunk/mcs/; revision=140510
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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 <[email protected]>
* threadpool.c (mono_thread_pool_init): Use mono_object_hash() as
the hash function for the ares_htable.
svn path=/trunk/mono/; revision=140423
* 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
* ServiceHostBase.cs : some refactoring to isolate dispatcher
builder code from here.
* ServiceMetadataExtension.cs:
some dependent changes to ServiceHostBase.
svn path=/trunk/mcs/; revision=140403
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
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
* 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
* 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
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
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-20 Marek Habersack <[email protected]>
* 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 <[email protected]>
* ControlAdapterTest.cs: added test for bug #517172
svn path=/trunk/mcs/; revision=140299
* 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
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
* 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
* 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
* 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
* 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
* Route.cs: GetRouteData adds contents of its DataTokens
dictionary to the returned RouteData.DataTokens dictionary. Fixes
bug #523330. Patch from [email protected], thanks!
svn path=/trunk/mcs/; revision=140273
* 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
* 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
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
* 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
* verify.c (verifier_load_field): We should allow references to
fields to be made using the generic type definition. It's up to
the loader system to fail invalid ops.
* verify.c (get_boxable_mono_type): Only uninstantiated GTDs
are invalid.
svn path=/trunk/mono/; revision=140210
* class.c: Fix usage of mono_metadata_interfaces_from_typedef_full.
* metadata-internals.h: Fix declaration of
mono_metadata_interfaces_from_typedef_full.
* metadata.c (mono_metadata_interfaces_from_typedef_full): Add extra
heap_alloc_result parameter that controls if the result should be
g_malloc'd.
* metadata.c (mono_metadata_interfaces_from_typedef): Let the resulting
array be g_malloc'd and properly document this public API function.
svn path=/trunk/mono/; revision=140209
* cil-coff.h: Fix METHOD_HEADER_FORMAT_MASK to be 2 bits and
remove METHOD_HEADER_TINY_FORMAT1.
* reflection.c: Remove reference to METHOD_HEADER_TINY_FORMAT1.
* metadata.c (mono_metadata_parse_mh_full): Kill tiny format1.
Both spec and MS uses only 2 bits to enumerate the kind of header.
So given that 0x6 and 0x2 are equal under a 2 bits mask, tiny format1
is superfluous, only used for tiny headers with odd code lengths.
This change also make sure that mono doesn't wronly interpret bit 2
of fat header flags, which is currently reserved.
svn path=/trunk/mono/; revision=140208
* metadata.c (do_mono_metadata_parse_type): Do error
checking for element types. Don't abort if presented
with a broken type kind.
svn path=/trunk/mono/; revision=140207
* wthreads.c: Roll back change for thread-id as it "embraces
and extends" the api by passing word-size for thread id on
s390 and amd64.
Licensed under the MIT X11.
svn path=/trunk/mono/; revision=140201
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx
2009-08-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-18 Marek Habersack <[email protected]>
* AspParser.cs: added a constructor which creates an internal
parser, nested within the outer one, and adjusts its ILocation
members to report correct locations in the outer parser for better
error reporting. Inner parser also returns the outer's FileText,
if available.
* AspGenerator.cs: restored part of r138474 reverted in r138657,
r138658 and r138659 to fix bug #525104
BuilderLocation creates a copy of Location for its own use (since
the ILocation passed is actually AspParser, the line numbers
change between creating a BuilderLocation and using its Location
member).
The end of tag, expression and client comment regular expressions
now use lazy quantifiers. This fixes bugs #525104 and #517656
Client side comment blocks aren't ignored anymore, they are parsed
just as the other parts of the document. Fixes bug #524358
2009-08-18 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: read converters from the config only if
explicitly requested.
2009-08-18 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #525104 and
improved test for bug #517656
svn path=/trunk/mcs/; revision=140161
* BatchingImplBase.cs: Make the item name lookups and metadata be case
insensitive.
* TaskDatabase.cs: Likewise.
* TaskEngine.cs: Make property name looks, case insensitive.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestCaseSensitivityOfProjectElements): New.
svn path=/trunk/mcs/; revision=140153
* security.c:
* processes.c:
* wthreads.c: Be explicit when we are changing word sizes.
Licensed under the MIT X11.
svn path=/trunk/mono/; revision=140151
* aot-compiler.c (add_generic_instances): Add instances of
GenericEqualityComparer<T> for primitive types. Only emit the array
wrappers into the mscorlib image.
svn path=/trunk/mono/; revision=140132
OnFontChanged event, so we let our users know that we likely have a
new font - since Font is an ambient property.
* ToolStripDropDownItem.cs: When our Font changes, propagate that
information to our DropDown control, if any.
Fixes#531515.
2009-08-17 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=140121
* scripts/Makefile.am: Applied patch from Hib Eris ([email protected]).
Add $(SCRIPT_SUFFIX) to the name of the 'mod' tool.
svn path=/trunk/mono/; revision=140116
* loader.c (mono_method_get_marshal_info): Assert if
signature is invalid. Bounds check stores to the
mspecs array;
svn path=/trunk/mono/; revision=140110
* loader.c (mono_method_get_param_names): Check if signature
is null. Don't store beyond the size of the name array.
svn path=/trunk/mono/; revision=140108
* ScriptingJsonSerializationSection.cs: MaxJsonLength default
value is 2097152 for .NET 3.5+
2009-08-17 Marek Habersack <[email protected]>
* JsonSerializer.cs: serialize fields before properties.
* JavaScriptSerializer.cs: MaxJsonLength default value for .NET
3.5 is 2097152
2009-08-17 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: fixed broken tests
svn path=/trunk/mcs/; revision=140098
assembly name comparison. Use the new AssemblyNamesCompatible api.
(AssemblyNamesCompatible): Add new overload with a 'ignoreCase' param.
svn path=/trunk/mcs/; revision=140092
name lookups for target framework assemblies, case insensitive. Helps
with cases like "System.configuration", which vs.net is known to emit.
svn path=/trunk/mcs/; revision=140090
* DataGrid.cs:
* ThemeWin32Classic.cs: When the user clicks on a new cell, we should reset any
previous selection, just like .net does. Also, in the cases where a
cell is being edited and it keeps the selected status, use the normal
colors for it, and use the selected colors for the rest of the columns of
that row.
Fixes the remaining bits of #323051.
svn path=/trunk/mcs/; revision=140089
* IPeerConnectorContract.cs : use wildcard for the actual message
transfer operation.
* ServiceHostBase.cs : wildcard action support was not working
for one-way channels.
svn path=/trunk/mcs/; revision=140059
* CookieCollection.cs: Seal class for NET_2_1 (SL3)
* CookieContainer.cs: Seal class for NET_2_1 (SL3)
* NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
ICredentialsByHost
svn path=/trunk/mcs/; revision=140055
* PeerDuplexChannel.cs : ongoing implementation. Fix wrong peer
destination address in Connect() request. To repeat sending
request, use buffered copy. Set some peer-channel specific
header items. (todo: and consume them.)
svn path=/trunk/mcs/; revision=140047
* DataGrid.cs: When getting ProcessKeyPreview fired, call Edit() if we
are not editing already - so the edition is actually active on our
column style textbox. Also, it seems the code handling process the
grid keys is repeated, but instead of removing it, just comment it for
now.
Fixes part of #323051.
svn path=/trunk/mcs/; revision=140033
* LogicalTypeInfo.cs: make sure JavaScriptSerializer instance used
here reads custom converters from web.config. Fixes bug #525589
svn path=/trunk/mcs/; revision=140004
* aot-runtime.c (load_method): Rename 'aot_module' -> 'amodule'. Allocate
the methods_loaded array using amodule->info->nmethods.
* mini.h (MonoAotFileInfo): Add an 'nmethods' field.
(MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c: Emit more generic instances allowing some parts of linq
to work.
svn path=/trunk/mono/; revision=139977
* aot-runtime.c (mono_aot_get_unwind_info): Handle the case when the
MonoJitInfo doesn't belong to its methods aot image.
svn path=/trunk/mono/; revision=139975
* loader.c (mono_loader_error_prepare_exception): Handle missing field
errors with no class set.
* loader.c (field_from_memberref): If the field signature is of the wrong
type fail with a MissingFieldException instead of a BadImageException as
this is the behavior observed on MS.
svn path=/trunk/mono/; revision=139974
* BuildManagerDirectoryBuilder.cs: when VirtualPathProvider
reports a virtual directory doesn't exist, try to get the
requested virtual path using VirtualPathProvider.GetFile. Fixes
#525974
svn path=/trunk/mcs/; revision=139969
* SolutionParser.cs (AddProjectTargets): If a project name matches one
of the targets that we emit (Build/Clean etc), then rename to
"Solution:<project name>".
svn path=/trunk/mcs/; revision=139936
In tools/xbuild:
* SolutionParser.cs (ProjectInfo.Dependencies): Change to a dictionary
to keep track of corresponding ProjectInfo objects.
(ParseSolution): Refactor to populate the ProjectInfo.Dependencies
dictionary. Use AddBuildLevels to emit build levels to allow
parallel builds.
(AddProjectTargets): Dependency's projectInfo is directly available now.
(AddBuildLevels): New. Emit items named BuildLevelN, where each level
has projects that can be built in parallel. Lower levels represent
dependencies for higher levels.
(AddSolutionTargets): Instead of using CallTarget, directly use MSBuild
task with the new BuildLevelN stuff. Also tell the user about disabled
projects or missing project configs.
(TopologicalSort): New.
(Insert): New. Based on code from monodevelop.
In tools/xbuild/tests:
* standalone/Project01: Update .sln.proj file.
svn path=/trunk/mcs/; revision=139933
* metadata-verify.c: Add new warning level for errors specified
by ECMA 335 but that MS ignores.
* metadata-verify.c (verify_method_table): Make compiler controled
visibility + (rt)specialname error a warning as MS ignores this. Ignoring
this check is safe because the end result will only be some visibility
exceptions been thrown.
svn path=/trunk/mono/; revision=139923
* verify.c (get_boxable_mono_type): Don't allow the
use of the generic type definition on boxed type positions.
Fixes#531237.
svn path=/trunk/mono/; revision=139922
* threadpool.c: Make sure no cross-domain references remain in
ares_htable or the arrays that are thrown away when resizing.
svn path=/trunk/mono/; revision=139921
* appdomain.c, metadata-internals.h, image.c: In MonoImage add a
list of classes for which we have to unregister reflection_info
with the GC and which are not in the namespace cache.
* reflection.c (mono_reflection_initialize_generic_parameter): Add
the class to the list.
svn path=/trunk/mono/; revision=139920
* DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
get local and remote address of connected counterpart to get
callback channel connected.
* PeerDuplexChannel.cs : remove FIXME wrt above.
svn path=/trunk/mcs/; revision=139903
* ServiceRuntimeChannel.cs : return timeouts that are set at
dispatch runtime later than its .ctor(). Provide ListenUri too.
svn path=/trunk/mcs/; revision=139902
* ControlBuilder.cs: when CreateSubBuilder is called on a builder
which is supposed to treat its children as properties and the
default property builder is defined, first check if the tag which
has just been parsed isn't a template property. If it is, don't
use the default property builder, instead create a template
property builder directly. Fixes bug #527753
svn path=/trunk/mcs/; revision=139895
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
PcFileCache.cs from md.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* PcFileCache.cs: New. From monodevelop.
* AssemblyResolver.cs (ResolvePkgConfigReference): New. Use PcFileCache
to resolve assembly references.
(AssemblyNamesCompatible): If SpecificVersion is false, then compare
only simple names.
(GetResolvedReference): Rename default_value to default_copy_local_value.
(Cache): New.
(PcFileCacheContext): New.
(SearchPath): Add 'PkgConfig' to the enum.
* ResolveAssemblyReference.cs: Add support for '{PkgConfig}'. Update
messages.
* ResolvedReference.cs (FoundInSearchPathToString): Create from ..
(FoundInSearchPathAsString): .. this. Change this to a property to
allow custom "found in .. " messages.
In tools/xbuild:
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add
'{PkgConfig}' to SearchPaths.
svn path=/trunk/mcs/; revision=139892
* HttpWebRequest.cs:
* WebConnectionStream.cs: if there's an error writing the headers from
a buffered request, propagate the error instead of hiding it and
causing a different one later (ie, ObjectDisposedException instead of
the original WebException). This happened when posting without
Content-Length set to an HTTPS url without validating the server
certificate.
svn path=/trunk/mcs/; revision=139885
* AsyncMethodResult.cs: Store a exception field in case the called
method actually caused an exception. This way we can throw it later.
* XplatUIDriver.cs: Check if the async method result has an exception
- throw it if needed.
The idea is that Control.Invoke throws the exception from the thread
that called it, not the main MWF thread.
Patch by Tom Spink <[email protected]>. Fixes#497175.
svn path=/trunk/mcs/; revision=139853
attribs for base methods that are on our assembly.
This finally makes a11y work without security disabled. The summary of
the troubles encountered:
- GetHashCode() -> base method not SC. (r139589+r139649)
- Dispose() -> interface method not SC. (r139796)
- get_Handle() -> interface method SC while impl not SC. (this commit)
svn path=/trunk/mcs/; revision=139852
RootTree.LoadTree(null), and move the .config-file parsing into
.LoadTree(string) (for when basedir==null). This will simplify the
logic of monodoc, as we want to add the ability to monodoc to use
any arbitrary directory, and this will remove the need to do
`if (d==null) RootTree.LoadTree(); else RootTree.LoadTree(d)`.
This also conforms to FxDG guidelines.
svn path=/trunk/mcs/; revision=139850
* CodeTypeReferenceTest.cs: added test for bug #523341
2009-08-13 Marek Habersack <[email protected]>
* CodeTypeReference.cs: generic types specialized on arrays must
not be treated as array declarations. Fixes bug #523341
svn path=/trunk/mcs/; revision=139819
* Makefile: build only in the 2.0 profile, or otherwise we'll end
up with the resulting assembly referencing the 4.0 corlib.
svn path=/trunk/mcs/; revision=139818
* class.c: Add mono_class_get_field_from_name_full which does
the same as mono_class_get_field_from_name but does check field
signature as well.
* class-internals.h: Export mono_class_get_field_from_name_full as
part of the internal API.
* loader.c (field_from_memberref): Search fields by name and signature
as it's valid to have two fields with same name but different types.
Fixes#528055.
svn path=/trunk/mono/; revision=139815
* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.
* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.
svn path=/trunk/mono/; revision=139812
* gc.c (GCHandle_CheckCurrentDomain): Moved this here from icall.c.
* boehm-gc.c (mono_gc_add_weak_track_handle): Handle nulls.
svn path=/trunk/mono/; revision=139811
resource.
* monodoc/Resources/mdoc-html-format: Added; XSLT file to match
"//format[@type='text/html']//*", to support "pass-through"
semantics. This allows you to use actual HTML within your
documentation and have it visible to HTML-supporting output formats.
WARNING: Use as a "last resort" -- this is primarily intended for
importing existing HTML w/o needing lots of extra logic to convert
into mdoc format XML first (with a corresponding loss of fidelity).
However, it means that if (when) we get non-HTML output format
support, the <format type="text/html" /> blocks WILL be skipped for
that non-HTML output format.
For example, the forever-on-the-back-burner ROFF output support --
to remove the use of lynx, as no one ever has it installed --
wouldn't be able to support HTML format, so it would skip these
<format type="text/html"/> blocks.
Consider <format /> the moral equivalent of Perl POD's
'=begin formatname' block; see perlpod(1).
* monodoc/Resources/mdoc-html-utils.xsl: <xsl:import/>
mdoc-html-format.xsl. It *must* be imported (NOT included) so that
it will have a lower priority than other <template/>s, thus allowing
the HTML formatter to <xsl:apply-templates/> which then use the
"normal" rules. This allows:
<format type="text/html">
<p><see cref="T:System.String" /></p>
</format>
to work as expected.
* monodoc/Makefile: Add mdoc-html-format.xsl as a resource.
svn path=/trunk/mcs/; revision=139795
* DataGrid.cs: In mouse move we need to shift the selection in case
the pointer is on the row headers.
Fixes#323052.
svn path=/trunk/mcs/; revision=139791
* mini-trampolines.c (mono_magic_trampoline): Allocate a local to
hold the trampoline argument, so its initial value is available during
debugging.
svn path=/trunk/mono/; revision=139777
* sgen-gc.c, sgen-scan-object.h: Object scanning code factored out
to sgen-scan-object.h, which can be included and parameterized via
macros.
* Makefile.am: sgen-scan-object.h added.
svn path=/trunk/mono/; revision=139768
* exception.c (mono_exception_from_name_domain): Actually create
the exception in the specified domain.
* appdomain.c (mono_domain_create_appdomain_internal): Create the
OutOfMemoryException a bit later so that the domain is inialized
"enough" that it works.
svn path=/trunk/mono/; revision=139761
* Update unit tests
* Moved BlockingCollection and Barrier in System.dll (with assorted fixes)
* Fix wrong signature in TaskFactory<T>
* Update .dll.sources files
* Move AggregateException in System namespace
* Remove While in Parallel
* Correct Wait(CancellationToken) signature in CountdownEvent
* update corlib.dll.sources
svn path=/trunk/mcs/; revision=139727
* SplitContainer.cs: Avoid updating the splitter distance if it hasn't
moved. Updating the distance was causing a re-layout which was resetting
the clicks counter and preventing DoubleClick from every firing.
[Fixes bug #521387]
svn path=/trunk/mcs/; revision=139721
* DataGrid.cs: When a new TableStyle is added, don't create new
columns for it unless it is empty - this is the correct way to both
respect the columns if they were provided by our user, or create them
for him in case the column collection is empty.
Fixes#323111.
svn path=/trunk/mcs/; revision=139717
* generic.cs, lambda.cs, anonymous.cs, statement.cs, generic-mcs.cs,
codegen.cs: Finding the best common type of a set of expressions for
lambda statements.
svn path=/trunk/mcs/; revision=139697
* MetadataResolver.cs : added remaining methods.
* MetadataExchangeClient.cs : a bit of required changes for above.
svn path=/trunk/mcs/; revision=139691
* ServiceDebugBehavior.cs, ServiceMetadataBehavior.cs :
add Binding properties. Properties are now auto.
* ServiceMetadataExtension.cs : take Binding too to build dispatcher.
svn path=/trunk/mcs/; revision=139690
* metadata/metadata.c:
* metadata/metadata.h:
* metadata/object.c:
* metadata/class-internals.h:
* metadata/generic-sharing.c:
* metadata/marshal.c:
* mini/tramp-arm.c:
* mini/tramp-amd64.c:
* mini/tramp-ppc.c:
* mini/tramp-x86.c: use a #define instead of sizeof() for a few
structures that use a zero-length array.
svn path=/trunk/mono/; revision=139675
* syntax.cs (BackslashNumber): New class.
* parser.cs (ParseSpecial): Create it instead of 'Reference' if a
numeric backreference is seen.
svn path=/trunk/mcs/; revision=139656
* System.Text.RegularExpressions/parser.cs (ResolveReferences):
Allow named groups to be referred-to by their group numbers too.
* RegexMatchTests.cs (RegexTrial0053): New.
svn path=/trunk/mcs/; revision=139655
* MoonlightChannelBaseExtension.cs : fixed a couple of generated
code to compile on .NET (not in mcs yet; some nested generics bug).
svn path=/trunk/mcs/; revision=139645
* DataGrid.cs: Actually call BindColumns in the handler for
ListManager.MetaDataChanged, since the current code is already taking
into account the scenario when a custom table style is used - this was
confusing us before, and that's why we commented the call to
BindColumns. Also call CallAreasAndInvalidate, to properly reflect the
changes as needed.
Fixes#465021.
svn path=/trunk/mcs/; revision=139643
* ServiceContractGenerator.cs : removed ChannelBase proxy stuff,
which will be moved to svcutil source.
The targets for extension should be the interface, not the client
class.
svn path=/trunk/mcs/; revision=139639
* ServiceContractGenerator.cs,
OperationContractGenerationContext.cs : support extensions i.e.
IServiceContractGenerationExtension and IOperation...(ditto) .
svn path=/trunk/mcs/; revision=139630
* DataGrid.cs: When setting the data source, if we have a user
provided table style available, force a complete bind in case the
column styles for that table style is empty.
svn path=/trunk/mcs/; revision=139622
* ServiceContractGenerator.cs : first step to add moonlight-based
client proxy generator (it is not supported in 3.5. needs to be
enabled by some hook, such as reflection-based hack).
svn path=/trunk/mcs/; revision=139621
* ConsoleLogger.cs: Change the format of the error and warnings
strings to work when invoked inside Emacs by not rendering the
column if available, by using lowercase "error"/"warning" strings
instead of camelcased versions and to not have unnecessary padding.
2009-07-31 Ankit Jain <[email protected]>
svn path=/trunk/mcs/; revision=139618
* MonoGenericClass.cs: Implement almost all methods required
to move to inherit from System.Type. The only missing methods
are Is(Array|Pointer|ByRef)Impl and GetElementType since the
runtime still generates weird instances for generics instances
of non-SRE types with SRE types as generic arguments.
2009-08-07 Rodrigo Kumpera <[email protected]>
* MonoGenericClassTest.cs: Test for methods that must
throw.
svn path=/trunk/mcs/; revision=139596
* method-to-ir.c (mono_method_to_ir/CEE_CONSTRAINED_): Handle the
case when the method is dynamic. Fixes#529238.
svn path=/trunk/mono/; revision=139583
* ServiceRuntimeChannel.cs : change .ctor() args.
Add proxy hook methods that simply calls those in callback
ClientRuntimeChannel.
* InputOrReplyRequestProcessor.cs : now it could return an instance
of dynamically generated proxy over DuplexServiceRuntimeChannel.
svn path=/trunk/mcs/; revision=139550
* ContractDescriptionGenerator.cs : add new contract getter to
create callback contract type (which does not demand
ServiceContractAttribute).
svn path=/trunk/mcs/; revision=139548
* ClientRuntime.cs : oops, it should have been committed at a time.
Change .ctor() args. Make some properties auto.
svn path=/trunk/mcs/; revision=139546
* ClientRuntimeChannel.cs : factory was not fully optional. Add
contextChannel argument to make room for duplex callback channel.
svn path=/trunk/mcs/; revision=139545
* ServiceEndpoint.cs, ContractDescription.cs : moved client runtime
creator from former to latter.
* ClientProxyGenerator.cs : split client-specific code generation
from those common to service callback generation.
* ServiceProxyGenerator.cs : new file, uses common basis above.
svn path=/trunk/mcs/; revision=139544
* generic.cs: This loop was incorrect, it was increment ii, but
checking for `i'. This was a change introduced to fix#327497,
now we fix#424012.
svn path=/trunk/mcs/; revision=139540
* typemanager.cs (GetGenericArguments): SRE returns null for
generic methods on type builder instances if they are not generic
themselves. For example, for Foo<int>::Bar() it returns null, but
not for Foo<int>::Bar<>() or Foo<int>::Bar<double>().
svn path=/trunk/mcs/; revision=139533
* Mono.Documentation/mdoc.cs: mdoc version is Consts.MonoVersion, not
some hard-coded, perpetually out-of-date version.
svn path=/trunk/mcs/; revision=139518
* mini.c (mono_jit_compile_method_inner): Throw an exception instead
of asserting when a method is JIT compiled in full-aot mode.
svn path=/trunk/mono/; revision=139470
* ClientRuntimeChannel.cs : eliminate dependency on ChannelFactory,
which will block using it for callback instances.
svn path=/trunk/mcs/; revision=139462
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
svn path=/trunk/mono/; revision=139460
* MonoGenericClass.cs (FullName): mcs depends that FullName
doesn't return null for instantiations over generic params
of type builders. We special case this under compiler context.
svn path=/trunk/mcs/; revision=139403
In class/corlib/System.Threading.Tasks/:
* Future.cs: Fix for Future, when using TaskCompletionSource
don't try to run Wait before returning value
In class/corlib/Test/System.Collections.Concurrent/:
* ConcurrentDictionaryTests.cs: Re-enable ConcurrentDictionary unit
tests.
svn path=/trunk/mcs/; revision=139402
* MonoGenericClass.cs: Remove Is(Array|Pointer|ByRef)Impl
and GetElementType since the runtime still produces instances
of MonoGenericClass for those types.
svn path=/trunk/mcs/; revision=139400
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
svn path=/trunk/mono/; revision=139392
* PeerDuplexChannel.cs : ongoing listener refactoring. Now it uses
ServiceHost to process neighbor connection (not sure if this is
right way to go though ...).
svn path=/trunk/mcs/; revision=139391
* Start the split between PLATFORM_WIN32 and TARGET_WIN32.
PLATFORM_WIN32 should be used to configure the runtime while
building it. TARGET_WIN32 is used for target execution.
This is used by Mono's AOT cross compiler when running on Windows,
but targetting a different operating system. So we have to tell
those two apart.
svn path=/trunk/mono/; revision=139363
even if the list supports it if we are empty. This way we avoid an exc
sorting the empty list, and keep the UI compatible with .net.
2009-08-04 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=139347
* DataGrid.cs: In Edit () check we have any row before trying to use
the current row. Fixes a IOOR exc with an empty data grid.
svn path=/trunk/mcs/; revision=139346
* OperationContext.cs : GetCallbackChannel<T>() should just return
channel (which should also implement T, which must be callback
type).
svn path=/trunk/mcs/; revision=139330
* GridColumnStylesCollectionTest.cs: New test for #465019. Also make
public the test class, so it is *actually* loaded by nunit.
svn path=/trunk/mcs/; revision=139315
* DataGridColumnStyle.cs: Don't call CheckValidDataSource when setting
the owner DataGrid - even if this seems to be the right thing to do,
.net is not doind this check at this point, but in later operations.
Fixes#465019.
svn path=/trunk/mcs/; revision=139314
Jerry Maine <[email protected]>.
* mono/arch/amd64/amd64-codegen.h: Added missing code gen marco for single packed square root.
* mono/mini/basic-simd.cs: added test for packed double square root.
* mono/mini/cpu-amd64.md: added opcode info for packed double square root.
* mono/mini/cpu-x86.md: added opcode info for packed double square root.
* mono/mini/mini-ops.h: added IR opcode for packed double square root.
* mono/mini/mini-x86.c: added IR to native translation code for packed double square root.
* mono/mini/mini-amd64.c: removed todo for packed double square root.
* mono/mini/simd-intrinsics.c: added method to IR opcode converstion for
packed double square root.
svn path=/trunk/mono/; revision=139309
* MonoGenericClass.cs (initialize): Remember the number
of events available at initialization time. This is required as
mcs expect this behavior under compiler context that new events
are not returned for an instance that was inflated before.
* MonoGenericClass.cs: Kill GetEvents_internal and implement it
in terms of managed code.
2009-08-03 Rodrigo Kumpera <[email protected]>
* EventBuilder.cs: Make some fields internal.
* TypeBuilder.cs: Make events field internal.
Remove some MonoTODOs that are already done.
* EventOnTypeBuilderInst.cs: New file which implements
the required functionality by compiler context.
svn path=/trunk/mcs/; revision=139307
* mini-amd64.c: Added a change to help tell the difference as
to what perpose the xmm register is being used--mainly to help
with debuging.
* mini-amd64.h: Changed callee regs to use 15 out of 16
(one used for special cases) xmm registers for both fp
and simd ops. Added define to turn on new feature in the regalloc
that allows fp and simd ops to share the xmm regs happily.
* codegen.c: Added code to detect for which perpose an xmm reg is
being used (fp or simd) and to translate back and forth to the
correct logical reg bank (fp or simd) for 'spill load's.
svn path=/trunk/mono/; revision=139297
Jerry Maine <[email protected]>.
basic-simd.cs: Added tests for stressing the regalloc when running with
16 simd regs and when simd and fp ops share the same reg bank.
svn path=/trunk/mono/; revision=139296
* Thread.cs: Always call Thread_free_internal from the finalizer, since
it frees other things besides the handle. Fixes#527576.
svn path=/trunk/mcs/; revision=139281
* threads.c (ves_icall_System_Threading_Thread_Thread_free_internal):
Handle the case when the handle is 0.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=139280
* cs-parser.jay: Flag variables declared on the interactive shell
as used to prevent the 168 warning about local variable not being
used.
svn path=/trunk/mcs/; revision=139261
found twice when it's actually present only once (!). Attempt to
work around this by usinq LINQ instead of a foreach (which oddly
works...).
svn path=/trunk/mcs/; revision=139252
* Various changes to support the non-XAP XmlSchema resolution on
the Moonlight build.
Major missing feature: WebRequest resolution.
svn path=/trunk/mcs/; revision=139248
* Various changes to support the non-XAP XmlSchema resolution on
the Moonlight build.
Major missing feature: WebRequest resolution.
svn path=/trunk/mcs/; revision=139246
* sgen-gc.c (mono_gc_wbarrier_value_copy): Don't compute the GC
descriptor here. We assume it's already been computed.
* generic-sharing.c (instantiate_other_info): Compute the GC
descriptor for info type MONO_RGCTX_INFO_KLASS.
2009-08-01 Mark Probst <[email protected]>
* method-to-ir.c (mini_emit_stobj): If we call mono_value_copy()
in shared generic code, we might have to look up the class in the
RGCTX. If we use the class directly, compute its GC descriptor.
svn path=/trunk/mono/; revision=139243
* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
svn path=/trunk/mcs/; revision=139242
* reflection.c (mono_type_get_object): MonoDomain is an unmanaged
type, so don't use MONO_OBJECT_SETREF to set a field.
svn path=/trunk/mono/; revision=139240
* gc.c: We were missing one case where invoking a finalizer would
not reset the domain. Also, in the finalizer thread loop, assert
that we're in the root domain.
svn path=/trunk/mono/; revision=139239
values of clientVersion.
* app-net_2.0.config: added engine config for SQL Server 7.0. Fixed
values of clientVersion.
svn path=/trunk/mcs/; revision=139238
TypeTest.cs: Add test for Type::DeclaringMethod.
In special for throwing when the type is not a
generic param and for DeclaringMethod returning
a method bound to the right type.
svn path=/trunk/mcs/; revision=139226
* icall.c (ves_icall_MonoType_get_DeclaringMethod): Return the
method bound to the declaring type of the method. Raise an exception
if the type is not a generic param.
svn path=/trunk/mono/; revision=139225
* class.c (print_unimplemented_interface_method_info): Print the
full type name.
* class.c (mono_class_setup_vtable_general): When dealing with a
generic instance first check if the generic type definition is
not broken.
svn path=/trunk/mono/; revision=139222
* mini.c (mono_jit_runtime_invoke): Initialize the class and
check for errors. Fixed the case when the class with the Main
method is broken.
svn path=/trunk/mono/; revision=139221
* generic_type_definition.2.cs: This test verifies for a lot of stuff
that must work under compiler context. A few of those used to work outside
of it, so this test worked by pure luck.
The fix is to run the test under compiler context.
svn path=/trunk/mono/; revision=139220
* ChannelDispatcher.cs : raise error on multiple endpoint match
(documented at EndpointDispatcher.FilterPriority).
svn path=/trunk/mcs/; revision=139194
* PeerDuplexChannel.cs : ongoing [MC-PRCH] implementation. Rewrote
connection part to use new internal IPeerConnectorContract for
neighbor connection.
svn path=/trunk/mcs/; revision=139174
* ChannelListenerBase_1.cs, TcpChannelListener.cs,
PeerChannelListener.cs, HttpChannelListener.cs :
support ListenUri accordingly too so that it could be used when
it is different from LocalAddress.Uri.
svn path=/trunk/mcs/; revision=139171
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
ChannelFactory_1.cs : now proxies take remote address and via uri
which could be optionally specified and use it whenever required.
svn path=/trunk/mcs/; revision=139161
* RequestChannelBase.cs, DuplexChannelBase.cs :
Return endpoint address Uri when no explicit Via uri is specified.
* ChannelFactoryBase.cs : Remove extra async close methods.
Add async open methods. Reject null EndpointAddress.
* PeerChannelFactory.cs : remove async open methods (now in base).
svn path=/trunk/mcs/; revision=139160
* List.cs (IList.this.set): Convert NullReference and InvalidCast
exceptions into ArgumentExceptions.
(IList.Add, IList.Contains, IList.IndexOf, IList.Insert, IList.Remove):
Convert NullReferenceException to ArgumentException.
* ListTest.cs: Add a few testcases for IList interface, using null
values with a List<int>.
svn path=/trunk/mcs/; revision=139159
* TypeBuilder.cs (IsDefined): Throw if not
created and not in compiler context.
2009-07-30 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest: Test for IsDefined.
svn path=/trunk/mcs/; revision=139142
* TypeBuilder.cs (GetEvents): Throw if not created
and not in compiler context.
* TypeBuilder.cs (GetNestedType): Don't rely on
MonoType implementation as it doesn't work if the
nested type is defined after the TypeBuilder is
created.
2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest: Test for GetNestedType.
svn path=/trunk/mcs/; revision=139136
cil-opcodes.xml: Fix naming of stelem and ldelem to be
the same of the spec. Fix stack effect of stelem. Change
type of constrained and readonly prefixes.
2009-08-30 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Fix naming of stelem and ldelem.
2009-08-30 Rodrigo Kumpera <[email protected]>
* verify.c: Fix naming of stelem and ldelem.
svn path=/trunk/mono/; revision=139135
* generic-sharing.c: Replace the templates lock with the loader
lock because of very hard to resolve deadlock issues.
svn path=/trunk/mono/; revision=139118
* DictionaryTest.cs (KeyEnumerator_Current): New test. Test the
Keys slice enumerator.
(ValueEnumerator_Current): Likewise, for the Values slice.
svn path=/trunk/mcs/; revision=139117
conversion if type of value is different from "system type". Make
DbTypeMapping hashtable available on 1.0 profile, and add missing
mappings. Wrap FormatException adding information on conversion
that failed.
* SqlParameterTest.cs: Added test for bug #526794, and failed
conversion from (zero-length) string to int. Changed spaces to tabs.
svn path=/trunk/mcs/; revision=139116
* System.Collections.Generic/HashSet.cs (Enumerator.next): Rename from
Enumerator.current and change meaning to be the index of the slot to start
searching on the next iteration.
(Enumerator.current): New. Contains the current element.
(Enumerator.MoveNext): Update. Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
* Test/System.Collections.Generic/HashSetTest.cs (Enumerate_Current):
New test, including cases from #491858, #517415.
svn path=/trunk/mcs/; revision=139105
* Engine.cs (.ctor): Set default BinPath. Currently this assumes
v2.0, this will change when multi-targeting lands.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestNewProject): Disable. Invalid for
v3.5 profile.
svn path=/trunk/mcs/; revision=139089
* System.Collections.Generic/List.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
(Enumerator.Dispose): Set 'l' to null.
* Test/System.Collections.Generic/ListTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.
svn path=/trunk/mcs/; revision=139087
** Fixes the issue reported by Scott <[email protected]> in Mono-list
* SqlParameter.cs (ConvertToFrameworkType): Return String.Empty
in case of zero-length strings.
svn path=/trunk/mcs/; revision=139086
* System.Collections.Generic/Dictionary.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
* Test/System.Collections.Generic/DictionaryTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.
svn path=/trunk/mcs/; revision=139082
* SqlDataAdapter.cs (IDbDataAdapter.*Command): Remove over-engineered
checks as the base implementation is changed.
svn path=/trunk/mcs/; revision=139080
* ReflectionPermission.cs: RestrictedMemberAccess can be set.
* ReflectionPermissionFlag.cs: Add [Obsolete] on NET_4_0.
svn path=/trunk/mcs/; revision=139075
required for IDE integration.
* AssemblyResolver.cs (GetResolvedReference): All the original metadata
should be retained. Track api changes.
svn path=/trunk/mcs/; revision=139073
* SqlParameterTest.cs: Marked SqlChars/SqlBytes tests for SqlValue
as NotWorking as these types are considered as SqlString/SqlBinary
respectively.
svn path=/trunk/mcs/; revision=139071
* SqlDataAdapter.cs (IDbDataAdapter.*Command): Revert some of my earlier
changes. Validate the incoming value as we use bases' implementation now.
Fixes failing tests.
* SqlParameter.cs (GetSqlValue): Simplify handling of SqlValue and SqlTypes.
(SqlTypeToFramworkType): Added support for SqlChars and SqlBytes types.
svn path=/trunk/mcs/; revision=139070
* DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command,
as provider specific DbDataAdapters would have its own implementation.
svn path=/trunk/mcs/; revision=139069
* More clean up of fix for #522624/#507663
* SqlCommandBuilder.cs: Appropriately handle rowUpdatingHandler and
more cleanup for 2.0 profile.
svn path=/trunk/mcs/; revision=139068
* DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from
SqlCommandBuilder version of Create*Commands that fixes the failing tests.
svn path=/trunk/mcs/; revision=139065
* PeerDuplexChannel.cs : ongoing refactoring to work both as
listener and client. Now it creates a listening peer node, and
creates a set of TCP client channels for each peer in the mesh.
(EndpointAddress must be fixed to not filter out correct inputs).
* PeerNode.cs : remove TCP listener creator.
It is now in PeerDuplexChannel.
svn path=/trunk/mcs/; revision=139059
* PeerChannelListener.cs : do not accept more than one channel
which results in lots of listening peer node. Only one is enough.
svn path=/trunk/mcs/; revision=139058
* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle_type): Fix the second argument, its a MonoType* not a MonoClass*. Check whenever
the field belongs to the type. Fixes#525733.
svn path=/trunk/mono/; revision=139052
* mono-sigcontext.h: Include config.h.
2009-07-30 Mark Probst <[email protected]>
* sgen-gc.c: When we stop a thread and its stack top is not within
its allocated stack (because it's in an altstack signal handler),
restart it and stop it again, until it is.
svn path=/trunk/mono/; revision=139047
* mono-sigcontext.h, Makefile.am: Arch-dependent sigcontext
macros, moved from mini.
2009-07-30 Mark Probst <[email protected]>
* sgen-gc.c: Take a thread's stack top and registers from the
sigcontext in the suspend signal handler.
* sgen-gc.h, sgen-archdep.h, Makefile.am: Move arch-dependent
stuff to sgen-archdep.h.
* gc.c, gc-internal.h: Remove the get_ip_from_sigctx installer and
caller, because have code in sgen-archdep.h to acquire that data.
2009-07-30 Mark Probst <[email protected]>
* mini.c: get_ip_from_sigctx installer has been removed, so don't
call it anymore.
* mini-x86.h, mini-amd64.h, mini-ppc.h: UCONTEXT macros moved (to
utils/mono-sigcontext.h).
* exceptions-amd64.c: Use the UCONTEXT_GREGS macro instead of an
#ifdef.
svn path=/trunk/mono/; revision=139045
* build/library.make (SNFLAGS): Remove '-R', since it's specific to the
action required.
($(build_lib)): Use -R flag with $(SN).
($(the_lib)): Add a sanity check to verify that the assembly is signed.
* tools/csharplib/Makefile ($(the_lib)): Update to changes in build/library.make.
svn path=/trunk/mcs/; revision=139041
* Project.cs (InitializeProperties) Set 'MSBuildProjectFile' and
'MSBuildProjectName' properties.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Delete.cs (Execute): Log a message when deleting a file.
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Implement 'Clean' target. Currently
just handles clean for a full build.
svn path=/trunk/mcs/; revision=139013
* TypeBuilder.cs (GetConstructors): Throw if
TypeBuilder is incomplete.
2009-07-29 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (initialize): Call TypeBuilder::GetConstructorsInternal
since the public version throws.
2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest: Test for GetConstructors.
svn path=/trunk/mcs/; revision=139009
* TypeBuilder.cs (GetInterfaces): Return the expanded
interface list if the type has been created.
2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest: Test for GetInterfaces.
svn path=/trunk/mcs/; revision=139008
* TcpChannelListener.cs : to avoid creating two or more channels
for one remote endpoint, check existing remote endpoints and
ignore such connections (it must be handled in different thread
fired by ChannelDispatcher loop).
* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
the channel does not have to be fired Receive() before Open().
svn path=/trunk/mcs/; revision=138986
* Makefile: Fix mac build and dependencies.
Add new file.
* cli-blob-tests.md: stand-alone-method-sig tests now use
a separate input file with a single standalone sig so it's
no longer dependent on ilasm ordering.
* assembly-with-calli.il: New file with a single standalone
signature.
svn path=/trunk/mono/; revision=138953
* metadata-verify.c: Fix endianness problems on decoding functions.
Based on a patch by Ulrich Weigand <[email protected]>
svn path=/trunk/mono/; revision=138952
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
some mannerless clients [*1] do not send EndRecord accordingly, but
such channels at listener side should not be kept open. So, close
disconnected channels when the listener needs to accept another
one.
[*1] see olive/samples/wcf/clientbase/samplecli4.cs.
svn path=/trunk/mcs/; revision=138923
* TcpDuplexSessionChannel.cs :
Remove extra NIE overrides.
Implement OnAbort() apart from OnClose().
For duplex session channel, unlike reply channel, it must acquire
TCP connection before OnOpen(), otherwise ChannelDispatcher
releases the connection acceptance WaitHandle and the detected
live connection may be stolen by another channel acceptor.
svn path=/trunk/mcs/; revision=138915
* TypeBuilder.cs (CreateType): Throw if concrete
type has abstract method.
2009-07-28 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Test for concrete type with
abstract method.
svn path=/trunk/mcs/; revision=138913
* GenericTypeParameterBuilder.cs: SetBaseTypeConstraint with
null argument is the same as passing typeof (object).
2009-07-28 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilderTest.cs: Test for BaseType
and SetBaseTypeConstraint.
svn path=/trunk/mcs/; revision=138911
* DerivedTypes.cs (ArrayType): Special case vector arrays using zero
as rank. This is required because we need to make the distinction
between a vector and a one dimension SZARRAY.
* EnumBuilder.cs: Create vectors as rank-zero ArrayType objects.
* TypeBuilder.cs: Same.
* GenericTypeParameterBuilder.cs: Same.
2009-07-28 Rodrigo Kumpera <[email protected]>
* DerivedTypesTests.cs: Add test for the distinction between
vector and one-dimension SZARRAY.
svn path=/trunk/mcs/; revision=138907
DerivedTypes.cs: ByRef and Pointer types return Array as base
type.
2009-07-28 Rodrigo Kumpera <[email protected]>
DerivedTypesTest.cs: ByRef and Pointer types return Array as base
type.
svn path=/trunk/mcs/; revision=138906
* icall.c (ves_icall_Type_make_array_type): Handle the new encoding
schema for vectors and one dimension SZARRAY.
svn path=/trunk/mono/; revision=138905
* Type.cs (FindMembers): Fix the ordering of returned members
to method, ctor, property, event, field and nested type.
svn path=/trunk/mcs/; revision=138904
* reflection.c (mono_reflection_type_get_handle): Handle the new encoding
schema for vectors and one dimension SZARRAY.
svn path=/trunk/mono/; revision=138903
* CryptoConfig_2_1.cs: Add SHA1 support in MapNameToOID in order to
be able to verify the codecs signature integrity.
svn path=/trunk/mcs/; revision=138901
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Exec.cs (AddCommandLineCommands): First word from @command is treated
as exec name, and rest as arguments. Extract arguments here.
(ExecuteTool): Don't ignore params.
(GenerateFullPathToTool): Extract first word as tool name.
(HandleTaskExecutionErrors): Honor IgnoreExitCode property.
(LogEventsFromTextOutput): Log as messages.
* ManagedCompiler.cs (HandleTaskExecutionErrors): Implement.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
* ToolTask (.ctor): Initialize Timeout value.
(Execute): Use HandleTaskExecutionErrors to determine task result. Set
exitCode to the result of ExecuteTool and let HandleTaskExecutionErrors
determine final result of the task.
(RealExecute): Rename to ..
(ExecuteTool): .. this. @responseFileCommands could be empty.
Use specified timeout value for the executing tool.
Rename 'compilerOutput' to 'toolOutput'. Cleanup resources in the
finally block. Move processing of stdout/stderr output to ..
(ProcessOutputFile): .. here and ..
(LogEventsFromTextOutput): .. here.
(HandleTaskExecutionErrors): Implement.
(DeleteTempFile): Implement.
svn path=/trunk/mcs/; revision=138900
for the Copy tasks.
(CopyDeployFiles*): Fix typos, Add inputs/outputs for the
PreserveNewest case and remove for copy always case.
svn path=/trunk/mcs/; revision=138899
* ConsoleLogger.cs: Emit "-- FAILED" also when project/target building
fails. Also, emit result of project at Normal verbosity level.
svn path=/trunk/mcs/; revision=138897
* WebClient.cs: rethrow WebExceptions instead of creating a new one
with less information on the actual error.
Fixes bug #526069.
svn path=/trunk/mcs/; revision=138855
CloseConnection behavior.
* SqlCommand.cs: Ensure connection is closed if CloseConnection
behavior is set, and reader could not be created.
svn path=/trunk/mcs/; revision=138854
* typemanager.cs, expression.cs, ecore.cs, delegate.cs: Use correct
version of GetFieldHandle for fields of generic types.
svn path=/trunk/mcs/; revision=138832
* XplatUIWin32.cs: We need to filter the messages using
Application.FilterMessage for our DoEvents implementations. Observe
that I don't like the idea of XplatUI call the upper level Application
class, but at this point is easier and simpler to do this call - based
on the fact it's only one simple call.
Fixes#516735.
2009-07-28 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=138826
* TreeNodeCollection.cs: When removing the selected node, set the
SelectedNode value of TreeView to null if there aren't more nodes left -
this is better than to clear the selected node in Clear, since we need
to handle the situation in the Remove methods as well.
Fixes#525002.
svn path=/trunk/mcs/; revision=138824
* UTF8Encoding.cs: Small optimization, reuse the static
EncoderFallback and DecoderFallback instead of creating new ones.
svn path=/trunk/mcs/; revision=138787
* UTF8Encoding.cs: Use Equals to compare the objects as the
fallback objects do not overload operator ==. The comparison
was previously failing.
svn path=/trunk/mcs/; revision=138786
* Assembly.cs (GetType): Throw if name is empty.
2009-07-27 Rodrigo Kumpera <[email protected]>
* AssemblyTest.cs: Add test for empty string passed to
Assembly::GetType.
svn path=/trunk/mcs/; revision=138780
OpCode.cs: HashCode is meant to be calculated based on Name.
OpCodeNames.cs: Fix some names.
OpCodes.cs: Fix Stelem, Constrained and Readonly specs.
svn path=/trunk/mcs/; revision=138776
* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
event remove method is not visible.
2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfoTest.cs: Add test for private event and
RemoveEventHandler.
svn path=/trunk/mcs/; revision=138773
* EventInfo (AddEventHandler): Throw TargetException if target is not cast
compatible.
* EventInfo (AddEventHandler): Throw InvalidOperationException if the
event add method is not visible.
* EventInfo (AddEventHandler): Throw TargetException if source is null
and the event is not static.
2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfoTest.cs: Add test for cast incompatible type.
* EventInfoTest.cs: Add test for private event.
* EventInfoTest.cs: Add test for null target for non static
event.
svn path=/trunk/mcs/; revision=138772
* Value types implementing IConvertible.ToType now throw an
ArgumentNullException if they are passed a null as the
"targetType" argument.
This code can not be put directly in the Convert.ToType method, as
this method is used by Convert.ToType (object o, TypeCode tc)
which uses null as a target to throw a different kind of error
(InvalidCastException).
Fixes a few more bugs in the Silverlight BCL test suite.
Additionally, the parameter type has been renamed.
svn path=/trunk/mcs/; revision=138730
* icall-def.h, thread-types.h, threads.c: New separate icalls for
Interlocked.(Compare)Exchange with object arguments, which invoke
write barriers.
2009-07-27 Mark Probst <[email protected]>
* method-to-ir.c: Invoke write barriers for the
Interlocked.(Compare)Exchange JIT intrinsics.
svn path=/trunk/mono/; revision=138722
* Type.cs: (GetMember) call directly the worker method, instead of
calling through an intermediary.
(GetMember, full): throw if the name is null.
svn path=/trunk/mcs/; revision=138710
* icall.c (ves_icall_Type_GetNestedType): Throw an exception when
passed invalid arguments. Fixes another crasher in the
Silverlight test suite.
svn path=/trunk/mono/; revision=138708
* class.c (mono_class_array_element_size): Return 0 for the size
of the class; This fixes the crasher exposed by :
typeof (void).MakeArrayType ();
svn path=/trunk/mono/; revision=138706
* icall.c (ves_icall_MonoType_GetEvent): Do not dereference method
if there is no method to dereference. Put all the code that
depends on this inside the if (method) block.
This fixes the crasher exposed by Microsoft's Silvelright CLR test
suite ./Reflection/Emit/TypeBuilder/TypeBuilderGetEvent.exe
With this change, we pass the test.
svn path=/trunk/mono/; revision=138702
* reflection.c (mono_reflection_sighelper_get_signature_local):
Only dereference the assembly if it has been set. Fixes a
crasher exposed by #525328
svn path=/trunk/mono/; revision=138701
* SqlParameterTest.cs: Added/improved tests for SqlValue, and
SqlTypes. Improved tests for char and char [] type inferrence.
svn path=/trunk/mcs/; revision=138699
* platforms/darwin.make (PLATFORM_AOT_SUFFIX): New.
* platforms/linux.make (PLATFORM_AOT_SUFFIX): New.
* library.make ($(build_lib)): Don't try to AOT compile the
library in its possibly temporary location.
(DO_AOT): Remove. Move to ...
($(the_lib)$(PLATFORM_AOT_SUFFIX)): ... here, new rule to
explicitly run the AOT compilation.
(all-local) [ENABLE_AOT]: Build the AOT compiled library as appropriate.
svn path=/trunk/mcs/; revision=138696
* Calendar.cs: Do not add internal abstract methods to the
Calendar class, it prevents derived classes from existing.
svn path=/trunk/mcs/; revision=138695
* StringBuilder.cs: don't throw on null values in ctor(string, int).
Unify another ctor into the main one to account for MaxCapacity.
svn path=/trunk/mcs/; revision=138692
* library.make (build_lib): Define to a profile dependent
temporary location for LIBRARY_USE_INTERMEDIATE_FILE.
(DO_AOT): New. Extracted from ...
($(build_lib)): ... here. Simplify. Extract code handling
LIBRARY_USE_INTERMEDIATE_FILE into ...
($(the_lib)) [LIBRARY_USE_INTERMEDIATE_FILE]: ... here, a new rule
that takes care of copying the library from its temporary location
to the final location.
svn path=/trunk/mcs/; revision=138691
* DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the
nullcheck-param into the respective command's parameter list. Fixes
build breaks. Individual provider's CommandBuilder classes from 2.0
profile onwards use the base version of methods to maintain these commands.
(Get*Command): Cleanup code duplication
* DbDataAdapter (Update): Use SourceColumnNullMapping property to handle
nullcheckparams. Fixes#522624. Patch by
Gert Driesen <[email protected]>.
svn path=/trunk/mcs/; revision=138678
* sgen-gc.c, object.h, null-gc.c, boehm-gc.c, marshal.c: Really
don't perform the store in mono_gc_wbarrier_generic_nostore().
Remove the second argument (value), which is not needed.
svn path=/trunk/mono/; revision=138673
* EventBuilder.cs: Make some fields internal.
* TypeBuilder.cs: Make events field internal.
Remove some MonoTODOs that are already done.
2009-07-24 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (initialize): Remember the number
of events available at initialization time. This is required as
mcs expect this behavior under compiler context that new events
are not returned for an instance that was inflated before.
* MonoGenericClass.cs: Kill GetEvents_internal and implement it
in terms of managed code.
svn path=/trunk/mcs/; revision=138669
* MonoGenericClass.cs: Make all icalls private. Kill GetInterfaces_internal.
Add a workaround for a GetField under compiler context.
2009-07-24 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs: Make the interfaces field internal.
svn path=/trunk/mcs/; revision=138667
* ToolStripItemCollection.cs: Find should do a case insensitive
search, and should throw an ArgumentNullException if the parameter is
an empty string.
svn path=/trunk/mcs/; revision=138652
* configure.in
* runtime/Makefile.am
* data/Makefile.am: create a and populate a configuration folder
for the net_4_0 profile.
svn path=/trunk/mono/; revision=138645
* FieldOnTypeBuilderInst.cs: Add a ToString() to help debugging.
Make fields internal.
* MethodOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.
2009-07-24 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (GetMethod): Use the new code always. Don't
accept MethodOnTypeBuilderInst under compiler context.
* MonoGenericClass.cs (GetField): Use the new code always.
* MonoGenericClass.cs: Make a bunch of methods raise NotSupportedException
when not under compiler context. Remove some dead code.
svn path=/trunk/mcs/; revision=138640
This patch is contributed under the terms of the MIT/X11 license
* mini-ppc.c (mono_arch_output_basic_block):
(OP_STOREI1_MEMBASE_REG): Handle 32-bit offsets combining addis
for bits 32-47 with signed load/store diplacements for bits
48-63. Use prefered base/offset order for indexed form.
(OP_STOREI2_MEMBASE_REG, OP_STORE_MEMBASE_REG): Same.
(OP_LOAD_MEMBASE, OP_LOADI4_MEMBASE, OP_LOADU4_MEMBASE,
OP_LOADI1_MEMBASE, OP_LOADU1_MEMBASE, OP_LOADU2_MEMBASE,
OP_LOADI2_MEMBASE): Same.
(OP_STORER8_MEMBASE_REG, OP_LOADR8_MEMBASE,
OP_STORER4_MEMBASE_REG, OP_LOADR4_MEMBASE): Same.
(OP_STOREI1_MEMINDEX): Use prefered base/offset order for
indexed form.
(OP_STOREI2_MEMINDEX, OP_STORE_MEMINDEX): Same.
(OP_LOAD_MEMINDEX, OP_LOADI4_MEMINDEX, OP_LOADU4_MEMINDEX,
OP_LOADU2_MEMINDEX, OP_LOADI2_MEMINDEX, OP_LOADU1_MEMINDEX,
OP_LOADI1_MEMINDEX): Same
(OP_LOADR4_MEMINDEX, OP_LOADR8_MEMINDEX, OP_STORER4_MEMINDEX,
OP_STORER8_MEMINDEX): Same
(OP_JMP): Use addis/addi sequence for int cfg->stack_usage
computations.
(mono_arch_emit_prolog): Handle 32-bit offsets combining addis
for bits 32-47 with signed load/store diplacements for bits
48-63. Use prefered base/offset order for indexed form.
svn path=/trunk/mono/; revision=138639
This patch is contributed under the terms of the MIT/X11 license
* mini-ppc.c: Define PPC_MOVE_FPR_GPR and PPC_ISA_64.
(mono_arch_get_vcall_slot): Fx pointer to int cast warning.
(mono_arch_decompose_opts): Make OP_ICONV_TO_R4 and
OP_ICONV_TO_R8 decompose conditional on !PPC_ISA_64.
(mono_arch_output_basic_block) [OP_JMP]: Use ppc_load32 for
cfg->stack_usage to avoid size warnings.
(mono_arch_output_basic_block) [__mono_ppc64__]: Replace
store/load sequence with mffgpr if PPC_MOVE_FPR_GPR is true.
(mono_arch_output_basic_block) [!__mono_ppc64__]: For
OP_ICONV_TO_R4 or OP_ICONV_TO_R8 and PPC_ISA_64 use fcfid
to convert.
(mono_arch_emit_prolog): Move mono_emit_unwind_op_def_cfa
after code varible is initialized.
Add g_assert ppc_is_imm16 for ainfo->offset. Handle
ainfo->size == 8 when ainfo->offset !ppc_is_imm16.
(mono_arch_emit_epilog):
Move Use ppc_load32 for cfg->stack_usage to avoid size
warnings.
svn path=/trunk/mono/; revision=138636
This patch is contributed under the terms of the MIT/X11 license
* arch/ppc/ppc-codegen.h (ppc_ha): Define high adjusted
conversion to support combining addis for bits 32-47 with
signed load/store diplacements for bits 48-63.
(ppc_fcfidx, ppc_fctidx, ppc_fctidzx): Share with PPC32.
These instructions are availble to 32-bit programs on 64-bit
hardware and 32-bit both starting with PowerISA V2.01.
[__mono_ppc64__]: Define ppc_mftgpr and ppc_mffgpr for Power6
native mode.
[!__mono_ppc64__]: Define ppc_is_imm32 as constant true for
ppc32.
svn path=/trunk/mono/; revision=138635
* sgen-gc.c, marshal.c, object.h: Make the managed write barrier
not perform the store itself. Introduce
mono_gc_wbarrier_generic_nostore(), which is the same as
mono_gc_wbarrier_generic_store(), except it doesn't perform the
store.
2009-07-24 Mark Probst <[email protected]>
* method-to-ir.c: The write barrier doesn't do the store anymore,
so we have always to emit it. Also, emit the wbarrier after the
store.
svn path=/trunk/mono/; revision=138634
* icall.c (ves_icall_System_Array_SetGenericValueImpl):
mono_gc_wbarrier_value_copy() doesn't perform the copy itself, so
we still need the memcpy().
svn path=/trunk/mono/; revision=138632
* PeerChannelListener.cs : set source field. Remove unnecessary NIE.
* DuplexChannelBase.cs : comment out some extra fields (so far).
* PeerDuplexChannel.cs : pass valid EndpointAddress to PeerNodeImpl.
svn path=/trunk/mcs/; revision=138609
* ConstructorBuilder.cs: Make parameters and pinfo fields internal.
* ConstructorOnTypeBuilderInst.cs: Build it under BOOTSTRAP_NET_2_0.
Properly implement GetParameters under compiler context.
* TypeBuilder.cs: Make ctors field internal.
2009-07-23 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Kill GetConstructors_internal and implement it
all in terms of managed code.
* MonoGenericClass.cs: Return instances of ConstructorOnTypeBuilderInst
under bootstrap profile.
svn path=/trunk/mcs/; revision=138591
* FieldOnTypeBuilderInst.cs: Implement MetadataToken and FieldToken
for compiler context.
* TypeBuilder.cs: Make FieldBuilder related fields internal.
2009-07-23 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Kill GetFields_internal and implement it
all in terms of managed code.
svn path=/trunk/mcs/; revision=138590
* PropertyOnTypeBuilderInst.cs: Use TypeBuilder::GetMethod instead of
MonoGenericClass::GetCorrespondingInflatedMethod. This is possible
since the returned methods of MonoGenericClass::GetMethods have been
unified with TypeBuilder::GetMethod.
* TypeBuilder.cs: Make property related fields internal.
2009-07-23 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Kill GetMethods_internal and implement it
all in terms of managed code.
svn path=/trunk/mcs/; revision=138589
* BuildManager.cs: precompilation setup failed if the precompiled
virtual directory was / and it was deployed somewhere else.
svn path=/trunk/mcs/; revision=138576
* expression.cs, delegate.cs: Moved arguments resolve into their
counterparts expressions. Removed argument resolve from
CollectionElementInitializer.
svn path=/trunk/mcs/; revision=138574
* mini.c (mono_jit_compile_method_with_opt): Add an 'ex' argument to let
the caller handle the exceptions.
(mono_jit_runtime_invoke): Handle exceptions thrown while compiling the
method. Fixes#524498.
svn path=/trunk/mono/; revision=138544
* XmlObjectSerializerTest.cs: Add test cases with a generic
dictionary (empty, broken with r138386, and with one element)
that both works on MS.NET and for which Moonlight depends on.
svn path=/trunk/mcs/; revision=138531
* AspGenerator.cs:
Check for duplicate control IDs at the end of parse. Fixes bug
#524358
2009-07-23 Marek Habersack <[email protected]>
* ControlBuilder.cs: added an internal helper property
IsNamingContainer.
2009-07-23 Marek Habersack <[email protected]>
* HttpException.cs: if an exception is processed which refers to
internal "files", don't show the internal name.
svn path=/trunk/mcs/; revision=138521
* PropertyGrid.cs: Use click handlers for each ToolStripButton instead
of using a global handler for the ToolStrip. This way the buttons can
be recovered and can have its PerformClick method called properly.
Fixes#522454.
svn path=/trunk/mcs/; revision=138519
A fix for bug #523683
* convert.cs, delegate.cs: Use common overload mechanism for method
group conversion check.
svn path=/trunk/mcs/; revision=138513
* TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
Acquire TcpClient for each request/reply. Now it is fully
interoperable with .NET.
svn path=/trunk/mcs/; revision=138501
* TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
ReplyTo and MessageId (though it is session-less), and it expects
EndRecord at weird stage, inconsistent with [MC-NMF]...
Now .NET service accepts one mono client request.
svn path=/trunk/mcs/; revision=138499
* BinaryMessageEncoder.cs : revert the previous dictionary change.
They are indeed used for non-in-band-dictionary messages.
svn path=/trunk/mcs/; revision=138496
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
split out binary frame manager class into separate file.
* System.ServiceModel.dll.sources:
split out binary frame manager class into separate file.
svn path=/trunk/mcs/; revision=138489
* MethodOnTypeBuilderInst.cs: Implement ToString to help debugging.
* TypeBuilder.cs: Make the properties field internal.
* PropertyOnTypeBuilderInst.cs: New type implementing a property of an
inflated TypeBuilder.
2009-07-22 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Kill GetProperties_internal and implement it
all in terms of managed code.
svn path=/trunk/mcs/; revision=138482
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/FullTagsInText.aspx
Test/mainsoft/NunitWebResources/TagsExpressionsAndCommentsInText.aspx
2009-07-23 Marek Habersack <[email protected]>
* AspGenerator.cs: TextParsed takes a different approach to
post-processing text blocks now. It applies, in order, client-side
comment, tag and expression regular expressions to the text
and splits it into blocks of different types. Then the blocks are
processed accordingly.
svn path=/trunk/mcs/; revision=138474
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
AssignProjectConfigurationTest.cs .
* Microsoft.Build.Tasks.dll.sources: Added
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignProjectConfiguration.cs (Execute): Implement.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* AssignProjectConfigurationTest.cs: New.
In tools/xbuild:
* xbuild/Microsoft.Common.targets (AssignProjectConfigurations): New.
(ResolveProjectReferences): Add dependency on AssignProjectConfigurations
target. Also, set the config and platform properties for the msbuild task
being invoked.
* xbuild/Microsoft.Common.tasks: Add AssignProjectConfiguration .
In tools/xbuild/tests:
* standalone/Project01: Change config mappings a bit to mix them up,
like Debug->Release etc. Update .proj file and final-outputs.txt.
svn path=/trunk/mcs/; revision=138461
* WebConnectionStream.cs: when sending a 0-length POST, ignore further
writes instead of throwing.
Fixes bug #524049.
svn path=/trunk/mcs/; revision=138447
* sgen-gc.c: Align array bounds calculation to mono_array_size_t
so that big arrays are handled correctly. Always use
safe_object_get_size() to calculate array object sizes, which
takes bounds into account.
svn path=/trunk/mono/; revision=138406
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
as long as the URI is correct. Fixed bug #514015.
* XmlNamespaceManagerTests.cs : add test for bug #514015.
svn path=/trunk/mcs/; revision=138396
* icall-def.h, icall.c, thread-types.h: New separate icall for
VolatileWrite(object&,object) that uses a write barrier.
* console-unix.c, file-io.c, icall.c, threads.c: Use write
barriers in icalls which write to "ref" or "out" arguments.
2009-07-22 Mark Probst <[email protected]>
* mini-exceptions.c (ves_icall_get_frame_info): Use write
barriers.
svn path=/trunk/mono/; revision=138395
* SerializationMap.cs : for empty element, do not try to consume
children. Fixed bug #524086.
For enum, it is always error when the enum is not flags, and
is always default value for flags.
* XmlObjectSerializerTest.cs :
Add test for bug #524086 by Rolf Bjarne Kvinge.
Add enum flags test, which should not raise an error.
svn path=/trunk/mcs/; revision=138386
output assembly as well as multiple referenced assemblies
* namespace.cs (RootNamespace.LookupTypeReflection): Add
'must_be_unique' flag.
(GlobalRootNamespace): Update to changes.
(Namespace.LookupType): Pass 'must_be_unique' only when we don't
already have a type in hand.
svn path=/trunk/mcs/; revision=138385
* XPathNavigator.cs : name test did not handle String.Empty cases
for name and ns (i.e. no filter). Fixed bug #515136.
* XPathNavigatorTests.cs : added test for bug #515136.
svn path=/trunk/mcs/; revision=138384
* XmlFormatterDeserializer.cs : when reading empty primitive value,
make sure to consume the reader. Fixed bug #524083.
* XmlObjectSerializerTest.cs : add test for bug #524083, by
Rolf Bjarne Kvinge.
svn path=/trunk/mcs/; revision=138367
* SerializationMap.cs : call MoveToContent() before examining
the reader node type.
* XmlObjectSerializerTest.cs : now we can make xml indented as
originally done in #524088.
svn path=/trunk/mcs/; revision=138364
* KnownTypeCollection.cs : Find KnownTypeAttributes in base types
too. Patch by Rolf Bjarne Kvinge. Fixed bug #524088.
* XmlObjectSerializerTest.cs : added test for bug #524088 by
Rolf Bjarne Kvinge (a bit modified).
svn path=/trunk/mcs/; revision=138360
* XNodeReader.cs : do not possibly return null as the Prefix value.
Fixed bug #524084.
* XNodeReaderTest.cs : test Prefix on default namespace.
svn path=/trunk/mcs/; revision=138356
* XNodeReader.cs : a couple of properties did not return correct
value for EOF state.
* XNodeReaderTest.cs : test member behaviors at EOF state.
svn path=/trunk/mcs/; revision=138354
* XNodeReader.cs : do not return element's IsEmpty on attributes.
* XNodeReaderTest.cs : on attributes IsEmptyElement is false.
svn path=/trunk/mcs/; revision=138352
In class/Microsoft.Build.Tasks:
* Makefile: Add System.Core .
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Fix bug #517974.
* ResolvedReference.cs (AssemblyName): New.
(IsPrimary): New. Primary (eg. specified in the project file) or
dependent reference.
(FoundInSearchPathAsString): New.
* AssemblyResolver.cs (GetResolvedReference): Add a 'assembly name'
param for the new field in ResolvedReference.
(AssemblyNamesCompatible): Fix the check for public key token.
Track api changes.
* ResolveAssemblyReference.cs: Keep track of resolved assemblies,
prevent duplicate references and other files.
Process dependencies after resolving all the primary references.
Search for dependencies in parent assembly's dir first and then
the specified search paths.
Detect assembly version conflicts and try to resolve.
Improve logged messages.
(PrimaryReference): New.
(ResolveAssemblyReferenceHelper.AddUniqueFile): New extension method.
In tools/xbuild:
* xbuild.Microsoft.CSharp.targets (Csc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).
In tools/xbuild/tests:
* standalone/Project01: Add references to two "external" assemblies
with dependencies.
* standalone/Project01/Program.cs: Add references in code to the new
assemblies, to ensure that they are required for compilation.
svn path=/trunk/mcs/; revision=138329
* configure.in: add a --with-monotouch option.
* runtime/Makefile.am: use it to trigger the mcs monotouch build.
svn path=/trunk/mono/; revision=138308
* TcpReplyChannel.cs : new reply channel implementation.
* TcpChannelListener.cs : use above for streamed reply channel.
* TcpDuplexSessionChannel.cs : more streaming mode support.
* TcpRequestChannel.cs : a couple of updates to get it working
with the reply channel above. Still some issues on .NET interop.
* System.ServiceModel.dll.sources: add TcpReplyChannel.
svn path=/trunk/mcs/; revision=138299
* marshal.c (mono_marshal_get_runtime_invoke): Do the work done in the exception
handler in a separate icall, to reduce the size of the wrappers.
svn path=/trunk/mono/; revision=138287
* zlib-helper.c: don't try to finish the z_stream if it has not been
used. This fixes all the tests after the latest change.
svn path=/trunk/mono/; revision=138272
complete list of the supported actions in the drag source, and use the
action passed in the Position message only as a fallback. This will
help us with dnd operations with non winforms apps.
Fixes#402158.
2009-07-20 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=138251
* ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
Find. This should fix the exception we were getting when trying to
convert the ArrayList to an array of objects (since we were losing the
type parameter).
Fixes#519944.
svn path=/trunk/mcs/; revision=138248
* BuildManager.cs: GetReferencedAssemblies unconditionally
includes all assemblies from bin/ for precompiled sites. Fixes bug
#502016
svn path=/trunk/mcs/; revision=138246
* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
assemblies in AddAssembliesInBin and GetTypeFromBin.
svn path=/trunk/mcs/; revision=138245
* Makefile: Add support for new test kind badmd for tests with broken
metadata.
* make_tests.sh: Fix some tests that have broken metadata.
* *.sh: Add execute bit.
svn path=/trunk/mono/; revision=138236
* assembly-with-locals.il: Fix method to be verifiable.
Add more shapes of valid locals.
* cli-blob-tests.md (locals-sig): Fix some tests.
svn path=/trunk/mono/; revision=138234
* cominterop.c (cominterop_get_managed_wrapper_adjusted):
Fix invalid IL in valuetype handling (STOBJ must push the
corresponding class). Fixes bug #523149.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=138231
* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
MonoJitDomainInfo which maps MonoMethod's to a structure containing all
the information which is needed for invokes, so only one locking+hash table
lookup is needed.
svn path=/trunk/mono/; revision=138217
* mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
MonoJitDomainInfo which maps MonoMethod's to a structure containing all
the information which is needed for invokes, so only one locking+hash table
lookup is needed.
svn path=/trunk/mono/; revision=138216
* refletion.c (is_sre_usertype): Change name to is_usertype and
invert it's result so it returns true if the type is an user type
and not the opposite.
* reflection.c (is_*_type): Change all of those to use new macro
check_corlib_type_cached that cached the type lookup so we don't
need to do string comparisons all the type. Changed the signature
to take a MonoClass instead.
* reflection.c: Change mono_image_create_token and resolve_object
to use is_sre_* functions.
svn path=/trunk/mono/; revision=138188
* mini.h: Add prototypes for mono_runtime_syscall_fork and
mono_gdb_render_native_backtraces
* mini-darwin.c: Apple's syscall(SYS_fork) is very weird on x86,
so we implement the sane semantics to the runtime here
(mono_gdb_render_native_backtraces). Apple also uses an ancient gdb
so we need to call it differently (mono_gdb_render_native_backtraces)
* mini-posix.c: Move the old semantics from mini.c to the prototypes
here for default implementations.
* mini.c: Refactor mono_handle_native_sigsegv so that we can properly
support Apple's weird syscall (SYS_fork) implementation and not busy
loop in abort() on native crashes on OSX anymore.
svn path=/trunk/mono/; revision=138187
to compile on net_1_1 profile. Added tests for SelectMethod and
BindToMethod with params arguments, currently marked NotWorking.
svn path=/trunk/mcs/; revision=138186
2009-07-11 Robert Jordan <[email protected]>
* ComInteropProxy.cs: Implement CreateProxy. Hide public/internal
ctors forcing CreateProxy's usage. Hide CacheProxy since the
runtime is able to lookup it anyways.
Fixes bug #520437.
In System:
2009-07-19 Robert Jordan <[email protected]>
* __ComObject.cs: Factor out Initialize method and expose it to
ComInteropProxy. Fixes bug #520437.
In System.Runtime.Remoting:
2009-07-11 Robert Jordan <[email protected]>
* RemotingServices.cs: Track ComInteropProxy's changes.
svn path=/trunk/mcs/; revision=138182
* HttpContext.cs: GetGlobalResourceObject must look for resources
in the 'Resources' "namespace" - it was a regression from the
previous change to that method.
2009-07-18 Marek Habersack <[email protected]>
* DefaultResourceProvider.cs: if GetResourceObject is passed a
null or empty classKey it just returns null.
* AppResourcesAssemblyBuilder.cs: satellite assemblies are now
built using al instead of gmcs - makes the build slightly faster.
svn path=/trunk/mcs/; revision=138177
GetService.
* Container.cs: Changed Dispose(bool) behaviour to match .NET, based
on patch by Tom Hindle ([email protected]). Also use ValidateName
in Add overloads on 1.0 profile by making it available as private
method. Use case-insensitive comparison of component name.
svn path=/trunk/mcs/; revision=138174
* aot-runtime.c (load_method): Change the handling of the
MONO_LASTAOT env variable so MONO_LASTAOT=0 means that no aot methods
are used.
svn path=/trunk/mono/; revision=138172
* sgen-gc.c: When a thread is unregistered, don't free its remsets
but put them on a list which is processed with the other thread's
remsets.
svn path=/trunk/mono/; revision=138165
* add-conditional.pl Makefile: Applied patch from Marcus Griep
<[email protected]>. Remove workarounds for compiling this assembly in the
net 1.1 profile.
svn path=/trunk/mcs/; revision=138152
* add-conditional.pl Makefile: Applied patch from Marcus Griep
<[email protected]>. Remove workarounds for compiling this assembly in the
net 1.1 profile.
svn path=/trunk/mcs/; revision=138151
* RadioButtonTest.cs: Update the Checked test to not depend on
Form.Show, since we need to check the same behaviour even if no handle
has been created yet.
svn path=/trunk/mcs/; revision=138146
* RadioButton.cs: Setting Checked when none of the sibligs is checked
should happen *not* in GotFocus, but in the Enter event. This is
specially important since we should get that Checked behaviour even if
no handle is created yet - and thus, no actual GotFocus call happens at
the time.
Fixes#520764.
svn path=/trunk/mcs/; revision=138145
* ConfigurationElement.cs: don't skip xml nodes when reading 2
ConfigurationElement in a row. Patch by Greg Smolyn that fixes bug
#521231.
svn path=/trunk/mcs/; revision=138142
* PeerDuplexChannel.cs: add the registered node itself to peer list.
(The messaging must be done as TCP request/reply pattern, so it's
not working yet.)
svn path=/trunk/mcs/; revision=138126
* TcpRequestChannel.cs : new channel file (TCP for request/reply
messaging pattern). The messaging part is not working yet.
* TcpChannelFactory.cs : support IRequestChannel.
* TcpDuplexSessionChannel.cs : add unsized message support.
* System.ServiceModel.dll.sources: add TcpRequestChannel.
svn path=/trunk/mcs/; revision=138125
* HttpRequestChannel.cs, RequestChannelBase.cs :
A couple of async members are now implemented in the base class.
Ditto for EndpointAddress and Via.
svn path=/trunk/mcs/; revision=138122
* ComboBox.cs: Adjust manually the top border for out internal
ComboBox, since removing the border from it leaves it without any
margin. This is not noticeable in a default ComboBox, but it is in an
instance shown on top of ToolStrip.
Fixes the remaining part of #507462.
svn path=/trunk/mcs/; revision=138075
* Makefile (_boot_:net_2_0_bootstrap): Depend on
'net_1_1_bootstrap' profile, rather than 'net_1_1'.
* build/profiles/net_2_0_bootstrap.make (BOOTSTRAP_PROFILE): Set to
net_1_1_bootstrap instead of net_1_1.
svn path=/trunk/mcs/; revision=138070
* main.c: added new --presources option which prints manifest
resource offsets and names.
* monodis.1: added documentation of the --presources option.
svn path=/trunk/mono/; revision=138037
* refletion.c: Fix builds with SRE disabled by adding a minimal
implementation of mono_reflection_type_get_handle.
svn path=/trunk/mono/; revision=138025
* refletion.c: Make mono_reflection_type_get_handle non static.
* object-internals.h: Export mono_reflection_type_get_handle.
* icall.c (ves_icall_MonoGenericClass_InflateType): Resolve the
unmanaged handle using mono_reflection_type_get_handle.
Fix changelog date of previous commit.
svn path=/trunk/mono/; revision=138013
* refletion.c: Replace all reads of MonoReflectionType::type with
calls to mono_reflection_type_get_handle. Only the functions that
deal with constructing TypeBuilder::type have not been changed
because they have to deal with NULL values.
This is a first step into supporting reflection types that don't
map directly into their unmanaged counterpart.
svn path=/trunk/mono/; revision=138001
* cpu-x86.md:
* cpu-amd64.md: Revert previous change as those instructions
take 2 separate arguments. Remember to read the arch docs more
carefully next time.
svn path=/trunk/mono/; revision=138000
* EnumBuilder.cs: Use new derived types for array, pointer and byref.
2009-07-15 Rodrigo Kumpera <[email protected]>
* DerivedTypesTest.cs: New tests for interaction with
EnumBuilder objects.
svn path=/trunk/mcs/; revision=137989
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
of PointerType instead of relying on the runtime for it.
2009-07-15 Rodrigo Kumpera <[email protected]>
* DerivedTypesTest.cs: New tests for PointerTypeinteraction
with GenericTypeParameterBuilder.
svn path=/trunk/mcs/; revision=137988
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
of ByRefType instead of relying on the runtime for it.
2009-07-15 Rodrigo Kumpera <[email protected]>
* DerivedTypesTest.cs: New tests for generics related
stuff and interaction with GenericTypeParameterBuilder.
svn path=/trunk/mcs/; revision=137987
* AssemblyResolver.cs (FindInDirectory): Try the @reference as a
filename as it is, or with different @file_extensions.
If @reference is a assembly name, then look for *.@file_extensions
for target assembly.
(GetAssemblyNameFromFile): Log FileNotFoundException and BadImageFormatException
separately, instead of a single unclear message.
Change all uses of Assembly.GetAssemblyName with GetAssemblyNameFromFile
which does the required error checking and logging.
svn path=/trunk/mcs/; revision=137986
* gdipFunctions.cs: Fix XVisualIDFromVisual to return an IntPtr
since 64 bits X servers will return a 64 bits value.
* gdipStructs.cs: Fix XVisualInfo to use IntPtr on fields that
are 64 bits on 64 bits X servers.
* Graphics.cs: Adjust CopyFromScreenX11 to work with IntPtr so the
screenshot code can work on both 32 and 64 bits X servers.
[Fix bug #521718]
svn path=/trunk/mcs/; revision=137982
* WebConfigurationManager.cs: another approach to suppressing
application reloads after the app writes to its root web.config
file. Leaving the previous code in place to get more
protection. It's a kludge, but it's the best option to avoid
all the races caused by System.Configuration+FileSystemWatcher
without rewriting large parts of System.Configuration (and
System.Web.Configuration). Fixes bug #522017
2009-07-15 Marek Habersack <[email protected]>
* Configuration.cs: explicitly flush the stream when writing XML
data. Part of fix for bug #522017
2009-07-15 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: added internal methods to
enable/disable specific watchers. Part of fix for bug #522017
svn path=/trunk/mcs/; revision=137951
* metadata-verify.c (parse_locals_signature): Don't complain
on signature with zero locals since MS generates it and doesn't
bother with.
svn path=/trunk/mono/; revision=137913
* ApplicationShutdownReason.cs: add new 3.5 value.
* ParserErrorCollection.cs: add setter for ParserError.
Patch from Daniel Gagne.
svn path=/trunk/mcs/; revision=137911
* Attribute.cs (GetCustomAttributes): Pass typeof(Attribute)
to GetCustomAttributes to match MS.
* MonoCustomAttrs.cs (GetCustomAttributesBase): Do proper
checking of which types are handled by the runtime.
* MonoCustomAttrs.cs (IsDefined): Same.
Fixes#521885.
2009-07-14 Rodrigo Kumpera <[email protected]>
* AttributeTest.cs: Add tests for user types passed to
Attribute.GetCustomAttribute[s].
svn path=/trunk/mcs/; revision=137908
Jerry Maine <[email protected]>.
* basic-simd.cs: Added tests for single and doulble indexers.
* cpu-amd64.md: Added simd opcode information.
* mini-amd64.c: Added IR to native simd generation code.
Added simd register names and function that returns them.
* mini-amd64.h: Added marcos to turn on simd code compilation in
amd64. Added max simd register count marco. Added caller/callee
register mask marcos. Added marcos to use simd register bank.
* mini.h: Added helper marco for shufling dwords and simple
floats.
svn path=/trunk/mono/; revision=137905
* Makefile.am (mono_LDADD): Pass LLVM_LDFLAGS to the linked.
* unwind.c (mono_unwind_get_ops_from_fde): Make this return
the length of the native code as well.
svn path=/trunk/mono/; revision=137880
* DerivedTypes.cs (DerivedType): Implement IsAssignableFrom
and ContainsGenericParameters
* DerivedTypes.cs (DerivedType::UnderlyingSystemType): Create
the unmanaged type before returning so the resulting object is
understood as a SystemType.
* DerivedTypes.cs (DerivedType::AssemblyQualifiedName): Return null
if element's FullName is null as well.
* DerivedTypes.cs (ArrayType::GetAttributeFlagsImpl): Return proper
array flags if under compiler context.
* DerivedTypes.cs (*::FormatName): Return null if elementName is.
* GenericTypeParameterBuilder.cs: Improve compatibility when not
under compler context.
* GenericTypeParameterBuilder.cs (MakeArrayType): Return an instance
of ArrayType instead of relying on the runtime for it.
* TypeBuilder.cs: Add error checking to MakeArrayType and remove some
MonoTODO.
2009-07-14 Rodrigo Kumpera <[email protected]>
* DerivedTypesTest.cs: Added tests for generics related
stuff and interaction with GenericTypeParameterBuilder.
* GenericTypeParameterBuilderTest.cs: New file with tests
for the changes done.
svn path=/trunk/mcs/; revision=137877
* FieldTemplateFactoryTest.cs: added
* DynamicControlTest.cs: added TearDown method to clean up after
non-default field template tests.
Added tests for GetAttribute, HtmlEncode, FormattingOptions, Mode,
NullDisplayText, SetAttribute, ValidationGroup.
2009-07-14 Marek Habersack <[email protected]>
* AssertExtensions.cs: include full exception trace in the Fail
message
2009-07-14 Marek Habersack <[email protected]>
* FieldTemplateFactory.cs: implemented TemplateFolderVirtualPath
svn path=/trunk/mcs/; revision=137862
* System.Net.dll.sources: Remove extra files not needed to
compile System.Net (and cut the tuning time too)
* DummySystemNet.cs: Remove. Not needed anymore.
svn path=/trunk/mcs/; revision=137856
* Socket_2_1.cs, SocketAsyncEventArgs.cs: A bit more NET_2_1 defines
to help the tuner remove some extra types for moonlight.
svn path=/trunk/mcs/; revision=137855
* WebConfigurationManager.cs: added support for suppressing
application reload when the main config file is written to from
application.
* WebConfigurationHost.cs: added minimal implementation of
WriteCompleted, which checks if there's need to suppress
application reload.
2009-07-14 Marek Habersack <[email protected]>
* ConfigurationSaveEventArgs.cs, ConfigurationSaveEventHandler.cs:
added
* Configuration.cs: added two internal events - SaveStart and
SaveEnd. They are used by System.Web's configuration system to
suppress application reloads when configuration is modified and
saved from within a web application. It is necessary to use events
since there is no guarantee the web application will use
WebConfigurationManager (and thus WebConfigurationHost) for
writing.
2009-07-14 Marek Habersack <[email protected]>
* System.Configuration.dll.sources: added
System.Configuration/ConfigurationSaveEventArgs.cs
System.Configuration/ConfigurationSaveEventHandler.cs
2009-07-14 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for System.Web
2009-07-14 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: OnFileChanged doesn't reload
application if reload suppression is active.
svn path=/trunk/mcs/; revision=137847
* AssemblyBuilder.cs: Applied patch from <[email protected]>. Save
the public key token to a field where the runtime can access it.
svn path=/trunk/mcs/; revision=137844
* reflection.c (mono_image_basic_init): Applied patch from
<[email protected]>. Set the public key token from the assembly
builder. Fixes#518909.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=137843
* ResolveResponseInfo.cs : by default it returns empty address list,
instead of xsi:nil.
* LocalPeerResolverService.cs : resolve operation should return
all registered nodes but the client itself.
svn path=/trunk/mcs/; revision=137838
* InotifyWatcher.cs: when a watched subdirectory is deleted, remove it
from the list of children and only raise an event if it matches the
filter.
svn path=/trunk/mcs/; revision=137829
* Changelog: Rename this to ChangeLog.
* Mono.Simd/Mono.Simd/ArrayExtensions.cs: Don't ignore the 'offset'
parameter in the GetVector () methods. Fixes#521692.
svn path=/trunk/mcs/; revision=137824
* x86/x86-codegen.h: Applied patch from Marian Salaj <[email protected]>.
Fix encoding of PMINSW and PMINSD. Fixes#521662.
svn path=/trunk/mono/; revision=137821
* method-to-ir.c (mono_method_to_ir): When calling a gshared method,
call a generic class init trampoline if needed. Fixes#519336.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=137819
* MessageQueueException.cs: Removed MonoTODO.
* MessageBaseTest.cs: Moved from Mono.Messaging.Test
* MessageEnumeratorTest.cs: Moved from Mono.Messaging.Test
* MessageTest.cs: Used using aliases to prevent namespace clashes.
* AdminTest.cs: Remove unused variables.
* AsyncPeekTest.cs: Remove unused variables.
* AsyncReceiveTest.cs: Remove unused variables.
* MessageFactory.cs: Switched to DateTime.UtcNow.
* RabbitMQMessageQueue.cs: Removed some unecessary references to realm.
* RabbitMQMessagingProvider.cs: Removed some unecessary references to realm.
Changed volatile field to use Interlocked.Increment (++i is not thread safe).
* Mono.Messaging.RabbitMQ_test.dll.sources: Moved MessageEnumeratorTest.cs
and MessageBaseTest.cs from Mono.Messaging.Test.
* MessageBaseTest.cs: Moved to Mono.Messaging.RabbitMQ.Test
* MessageEnumeratorTest.cs: Moved to Mono.Messaging.RabbitMQ.Test
* MessagingProviderLocator.cs: Removed unessecary fields, made fields
readonly and some formatting changes.
* Mono.Messaging_test.dll.sources: Moved MessageBaseTest.cs and
MessageEnumeratorTest.cs to Mono.Messaging.RabbitMQ.Test.
svn path=/trunk/mcs/; revision=137816
* ProvidersHelper.cs: InstantiateProvider doesn't have to
explicitly look for types in App_Code assemblies - this is done in
HttpApplication.LoadType.
2009-07-13 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: wrap HttpApplication.LoadTypeFromBin call in
try/catch, so that we can wrap the possible exception in
HttpException.
2009-07-13 Marek Habersack <[email protected]>
* HttpApplication.cs: LoadType - wrap call to LoadTypeFromBin in
try/catch so that we can decide whether or not to throw
exceptions. LoadTypeFromBin - ignore the FileLoadException and
BadImageException exceptions as they don't matter in this
context.
svn path=/trunk/mcs/; revision=137811
* TextBoxBase.cs: Expose the margin top width as a property, to keep
the code clean.
* ToolStripTextBox.cs: Since we are actually using no border in the
default TextBox impl, and we are drawing the border ourselves, we need
to manually set the top margin.
Fixes part of #507462.
svn path=/trunk/mcs/; revision=137810
* ecore.cs: Fix obscure bug with resolving members of interfaces
that hide parent interface members. Fixes bug #444388 and corrects
bug #323096
svn path=/trunk/mcs/; revision=137781
* process.c (ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal) :
Applying the window_style field to the SHELLEXECUTEINFO struct.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=137776
* sgen-gc.c: Fix the race condition in the unmanaged allocator by
locking earlier. Fix it in the managed allocator by making sure
that no thread is stopped there before the GC runs. If we do stop
a thread there, we restart it and let it run a but, until it stops
somewhere else.
* gc-internal.h, gc.c: Function for getting the IP from a signal
context via a function registered by mini.
2009-07-13 Mark Probst <[email protected]>
* mini.c: Register function for getting the IP from a signal
context with metadata.
svn path=/trunk/mono/; revision=137772
methods/properties that requires a readable stream to throw
NotSupportedException instead of InvalidOperationException for
compatibility with MS.
* HttpResponseTest.cs: Store data from all calls to
SendResponseFromMemory. Fixed ClearHeaders test to pass on MS. Added
several tests for outputstream of HttpResponse.
svn path=/trunk/mcs/; revision=137758
with byref arguments.
* Binder.cs: Only allow a type to match its byref version for
BindToMethod (and not for SelectMethod).
* TypeTest.cs: Enabled test that was failing due to regression.
svn path=/trunk/mcs/; revision=137753
Jerry Maine <[email protected]>.
* amd64/amd64-codegen.h: Add marcos for coding several specific sse opcodes.
* amd64/amd64-codegen.h: Fix bugs in simd marcos.
svn path=/trunk/mono/; revision=137736
* ProcessStartInfo.cs: HaveEnvVars is enabled by just using the
EnvironmentVariables property. Bug #520650 fixed.
svn path=/trunk/mcs/; revision=137730
* typemanager.cs, lambda.cs, parameter.cs, convert.cs, anonymous.cs,
expression.cs, literal.cs, ecore.cs, complete.cs: Moved internal
types to new class.
* support.cs: New dynamic type wrapper.
svn path=/trunk/mcs/; revision=137686
* WebClient.cs: implement GetWebRequest and GetWebResponse. Use them
instead of SetupRequest and ProcessResponse.
svn path=/trunk/mcs/; revision=137673
* PeerNode.cs : significant refactoring. It does not call resolver
to manage the node itself but rather hold its state.
* PeerDuplexChannel.cs : now it implements some of node management
functionality and Send operation. The receiver part is not yet.
svn path=/trunk/mcs/; revision=137671
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
timeout to channel constructor. it does not make sense.
svn path=/trunk/mcs/; revision=137670
* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
as common interface member, and use binary encoder (not text).
svn path=/trunk/mcs/; revision=137669
* HttpWebRequestTest.cs: use different ports for different tests since
the shutdown might take a little bit and tests might conflict.
svn path=/trunk/mcs/; revision=137667
* class-internals.h, generic-sharing.c: New RGCTX info type for
getting a remoting invoke with check wrapper.
2009-07-09 Mark Probst <[email protected]>
* method-to-ir.c: When doing a call which might be remote from
shared generic code to other shared code with open type arguments,
get the remoting invoke wrapper from the RGCTX and do an indirect
call to it.
2009-07-09 Mark Probst <[email protected]>
* generic-xdomain.2.cs: Test case for generic marshal-by-ref
objects.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=137640
* WebConfigurationHost.cs: null means MachineToApplication.
* WebConfigurationManager.cs: when caching configuration and sections,
use the configuration file directory instead of the incoming request
path.
svn path=/trunk/mcs/; revision=137632
* DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
added
2009-07-09 Marek Habersack <[email protected]>
* HttpContext.cs: fall back to default resource provider factory
if the factory provided by user doesn't have the required object
in Get{Global,Local}ResourceObject. Fixes bug #520397
Refactored the GetResourceObject method and the
ResourceManagerCacheKey class to DefaultResourceProvider.
svn path=/trunk/mcs/; revision=137624
* PeerNode.cs : some implementation cleanup before significant
refactoring. Mesh state is not maintained here. Use optionally
fixed listener address and port. Set offline status when closed.
* PeerDuplexChannel.cs : PeerNode constructor argument changes.
svn path=/trunk/mcs/; revision=137621
* DerivedTypes.cs: Refactor the types here to move
a lot of code to the base DerivedType in preparation
for upcomming ByRefType and PointerType puppies.
svn path=/trunk/mcs/; revision=137583
* AssemblyResourceLoader.cs: send minimal headers set and don't call
response.End. When possible, write the resource using the unsafe
methods in HttpResponseStream.a
svn path=/trunk/mcs/; revision=137576
* DynamicControlTest.cs: added tests for ApplyFormatInEditMode,
Column, ConvertEmptyStringToNull, CssClass, DataField,
DataFormatString, FieldTemplate, Table, UIHint
2009-07-08 Marek Habersack <[email protected]>
* WebTest.cs: added new public property - TestBaseDir, to be used
by code which needs to access the files in the work dir.
2009-07-08 Marek Habersack <[email protected]>
* TestsSetup.cs: added the BuildPath helper method which converts
unix-style filesystem paths to the os-specific format.
svn path=/trunk/mcs/; revision=137568
* TemplateControlCompilerTest.cs: added test for bug #520024
2009-07-08 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/PreprocessorDirectivesInMarkup.aspx
2009-07-08 Marek Habersack <[email protected]>
* AspParser.cs: GetServerTag mustn't treat <% # ... %> as
data-binding directives. Fixes bug #520024
* AssemblyBuilder.cs: if debugging information is on, append
/d:DEBUG to the compiler's command line.
svn path=/trunk/mcs/; revision=137558
* PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
going to be unified to PeerDuplexChannel. And it is likely that
input and output functionalities are to be unified too.
svn path=/trunk/mcs/; revision=137535
* TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
may have to reuse it for peer transport.
* PeerChannelListener.cs : add binding member.
* PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.
svn path=/trunk/mcs/; revision=137531
* ChannelFactoryBase.cs, HttpChannelFactory.cs,
PeerChannelFactory.cs : close opened channels at OnClose() as
documented. Implement async methods.
* PeerChannelListener.cs : removed some NIE overrides.
svn path=/trunk/mcs/; revision=137528
* Type.cs (IsUserType): Only TypeDelegator and types
outside of corlib are unhandled usertypes.
2009-07-07 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (IsArrayImpl): Return false always as a
typebuilder will never represent an array.
* TypeBuilder.cs (MakeArrayType): Return a new instance of
ArrayType instead of calling into MonoType machinery.
* DerivedTypes.cs: New file with all the internal types
used by SRE to represent derived types from TypeBuilder:
arrays, pointers and byrefs'.
svn path=/trunk/mcs/; revision=137521
* CustomPeerResolverService.cs, LocalPeerResolverService.cs,
ICustomPeerResolverContract.cs : add local machine peer resolver
implementation that can work across appdomains (based on
dispatching peer resolver that communicates with a ServiceHost
which is either locally started or running as a different process).
* System.ServiceModel.dll.sources:
Added new custom peer resolver files.
svn path=/trunk/mcs/; revision=137504
* WebClient.cs: set the content length when uploading values. This
allows reusing the connection.
* WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
and does not need to copy it any more. WriteRequest() wasn't always
setting 'requestWritten' to true.
* HttpWebRequest.cs: change in SetHeaders call.
svn path=/trunk/mcs/; revision=137497
* XmlFormatterDeserializer.cs, SerializationMap.cs : IXmlSerializable
were not deserialized correctly as it has mismatch on wrapper
element. This fixes PeerNodeAddress.EndpointAddress deserialization.
svn path=/trunk/mcs/; revision=137491
* XmlSimpleDictionaryWriter.cs : fix bogus import of
XmlWriter.WriteNode() to handle more than two elements.
* XmlSimpleDictionaryWriterTest.cs : test WriteNode() to not skip more
than two nodes in an element.
svn path=/trunk/mcs/; revision=137485
* PrintPreviewDialog.cs: Record when left was pressed, so we can
simulate Tab+Alt when moving the focus throughout our buttons and
controls.
Fixes the remaining bits of #509142.
svn path=/trunk/mcs/; revision=137479
Modified CanRead and CanWrite to return false when instance is disposed.
* HttpWebRequestTest.cs: Enabled tests, and removed test that is now
covered by two separate CanTimeout tests for request and response
stream.
* HttpWebResponseStreamTest.cs: Enabled tests.
svn path=/trunk/mcs/; revision=137450
In class/System.Web/Test/System.Web.UI.Adapters:
* PageAdapterTest.cs (MyPage): Derive from SystemWebTestShim.Page.
(MyPageAdapter): Derive from SystemWebTestShim.PageAdapter.
(MyPageAdapter.GetPostBAckFormReference): New forwarding method.
In class/System.Web/Test/System.Web.UI.WebControls.Adapters:
* DataBoundControlAdapterTest.cs: Derive from
SystemWebTestShim.DataBoundControlAdapter.
* HideDisabledControlAdapterTest.cs (Render): Use
SystemWebTestShim.HideDisabledControlAdapter.
* HierarchicalDataBoundControlAdapterTest.cs: Derive from
SystemWebTestShim.HierarchicalDataBoundControlAdapter.
* MenuAdapterTest.cs: Derive from SystemWebTestShim.MenuAdapter.
* WebControlAdapterTest.cs: Derive from
SystemWebTestShim.WebControlAdapter.cs.
In class/SystemWebTestShim:
* SystemWebTestShim.dll.sources: Add Adapters.cs
svn path=/trunk/mcs/; revision=137441
* PageAdapterTest.cs (MyPage.MyDeterminePostBackMode): New
forwarding method to expose protected method.
(MyPageAdapter): Change constructor argument to type 'MyPage'.
svn path=/trunk/mcs/; revision=137439
In class/System.Web/Test/System.Web.Compilation:
* TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
Don't use 'typeof' on a System.Web internal exception type.
(InvalidPropertyBindTest3): Likewise.
In class/System.Web/Test/System.Web.UI:
* PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
System.Web internal exception type.
svn path=/trunk/mcs/; revision=137420
* TabControl.cs: When computing the width of each tab page, use the
page's Font instead of the tab control one.
Fixes#514368.
svn path=/trunk/mcs/; revision=137388
* Added some resources to WebPages - a test web page for
DynamicControlTest and the required DynamicData scaffolding.
2009-07-03 Marek Habersack <[email protected]>
* Makefile: added more resources to the test assembly
2009-07-03 Marek Habersack <[email protected]>
* DynamicControlTest.cs: added
2009-07-03 Marek Habersack <[email protected]>
* DynamicDataContainerModelProvider.cs,
DynamicDataContainerTableProvider.cs: are generic classes now.
2009-07-03 Marek Habersack <[email protected]>
* IDynamicDataContainer.cs: became a generic interface.
* DynamicDataSource.cs; some reformatting.
DynamicDataSourceView is a generic class now.
* DynamicDataContainer.cs: IDynamicDataContainer is a generic
interface now.
2009-07-03 Marek Habersack <[email protected]>
* TestsSetup.cs: custom WebTest setup for DynamicData
* TestsBasePage.cs: a base class for all the web pages used by the
tests.
* MiscExtensions.cs: added some helper extensions for fishing out
controls from control trees.
* ITestDataContext.cs: GetTableData gets full set of query
arguments.
2009-07-03 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added. Necessary, because we need to set up
WebTest environment and it is done via an assembly-level custom
attribute.
svn path=/trunk/mcs/; revision=137369
* sgen-gc.c (finish_gray_stack): Set the to_space pointer after
processing the disappearing links, and process disappearing links
in a loop until no new objects are copied.
svn path=/trunk/mono/; revision=137366
* mini-trampolines.c (get_unbox_trampoline): Add an rgctx trampoline
after the unbox trampoline in the full-aot case.
svn path=/trunk/mono/; revision=137364
* MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
the current menu is specifically a ContextMenu (this is what .net does
as well). This way we also avoid a crash caused by MenuTracker trying
to use the menu when it was already hidden.
svn path=/trunk/mcs/; revision=137363
* PrintPreviewDialog.cs: Remove the code used to handle the
DropDown menu, since we are now doing it by default in ToolBar, and
just call the base impl as needed.Also, deactivate the dropdown menu
before moving the focus to a different button in our toolbar, as .net
does.
* ContextMenu.cs:
* MenuAPI.cs: Make as internal the needed bits to deactivate a
ContextMenu, and also to keep some beauty in our api.
svn path=/trunk/mcs/; revision=137342
* WebTestResourcesSetupAttribute.cs: added. Can be used to specify
resources setup method alternative to the default
WebTest.CopyResources (). Useful in cases when WebTest is used
outside System.Web tests and different initial resources are
required.
* WebTest.cs: check whether the assembly WebTest is found in is
decorated with the WebTestResourcesSetup attribute and, if yes,
use handler specified by the attribute to perform initial
resources copying in EnsureHosting ().
svn path=/trunk/mcs/; revision=137334
* WebConnection.cs: provide better error message when there's an error
writing.
* WebConnectionStream.cs: don't nullify the buffer until
CheckFinalStatus() decides that there are no more authentication
retries or redirects.
svn path=/trunk/mcs/; revision=137332
* object.c (handle_enum): Invoke the write barrier when copying
value type instances.
* sgen-gc.c: Register remsets for unmanaged write barriers only
when the address written to is actually on the heap. This makes
set_value() in object.c work without requiring that the result be
on the heap.
svn path=/trunk/mono/; revision=137331
* HttpsClientStream.cs: if there's only an ICertificatePolicy and no
ServerCertificateValicationCallback, don't fail.
svn path=/trunk/mcs/; revision=137329
The runtime wrappers are all bound to a given type that must
exist in the same image. For regular images we use the <Module>
type, which is required to exist for all images.
The <Module> type can't be used for dynamic images because it
might not exist at the time the wrapper is required, so we create
a synthetic type to use instead.
The current code works because of the 2 stage setup of MonoClass,
but once this is gone it will no longer work.
* icall-def.h: Add ModuleBuilder::set_wrappers_type.
* metadata-internals.h (MonoDynamicImage): Add wrappers_type.
* object-internals.h: Export mono_image_set_wrappers_type icall
as part of the internal API.
* marshal.c (get_wrapper_target_class): If the image is dynamic,
use MonoDynamicImage::wrappers_type instead of the <Module> type.
reflection.c: Add mono_image_set_wrappers_type qhixh sets the dynamic
image wrappers_type to the provided value.
svn path=/trunk/mono/; revision=137325
* AssemblyBuilder.cs: Add IsRun property that returns true if
any execute mode is enabled.
* ModuleBuilder.cs: Add set_wrappers_type icall to define which type
is to be bound to wrappers. Create a new abstract type and call it
when the assembly is build this way.
Replace explicit checks for global_type with calls to CreateGlobalType.
* TypeBuilder.cs: Internal ctor now takes an extra table_idx argument.
svn path=/trunk/mcs/; revision=137322
* ServiceBehaviorAttribute.cs : fill SingletonInstanceContext on
opening the host.
* ChannelDispatcherTest.cs : add singleton instance context test
(but disabled, for some weird conflict).
svn path=/trunk/mcs/; revision=137315
* ContractDescriptionGenerator.cs : actually it had to fill all of
the interface methods (and implementation methods).
* ContractDescriptionTest.cs : make sure the contract actually
contains operations from the base types.
svn path=/trunk/mcs/; revision=137307
* ContractDescriptionGenerator.cs : do not reject derived service
contract from another service contract type.
* ContractDescriptionTest.cs : added test for derived contract type.
svn path=/trunk/mcs/; revision=137288
* X509Certificate2.cs:
* X509Chain.cs: changes to make everything compile with latest changes
and fixed typo in IsChainComplete().
svn path=/trunk/mcs/; revision=137259
* HttpsClientStream.cs: invoke the ServerCertificateValidationCallback
in the 2.0 profile. If there's a CertificatePolicy, it is run before
the 2.0 callback.
svn path=/trunk/mcs/; revision=137255
* ServicePointManager.cs: implement ServerCertificateValidationCallback.
* DefaultCertificatePolicy.cs: if there's a SCVC registered, don't do
normal error checking.a
svn path=/trunk/mcs/; revision=137253
* HttpWebRequest.cs: avoid duplicating Accept-Encoding if GetHeaders()
is called twice.
* WebConnectionStream.cs: don't send a 0 content length for non-write
requests.
svn path=/trunk/mcs/; revision=137233
* ToolBar.cs: When handling the key down message, if we are on a
drop down button, either show the DropDownMenu or pass the key to its
ProcessCmdKey method as needed.
Fixes the remaining bits of #509985.
svn path=/trunk/mcs/; revision=137228
* AspGenerator.cs: TextParsed must remove client-side comments
from the passed text before attempting to parse the text for
server side controls and expressions. Fixes bug #517656
2009-06-30 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #517656
2009-06-30 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ServerControlInClientSideComment.aspx
2009-06-30 Marek Habersack <[email protected]>
* NunitWebResources/ServerControlInClientSideComment.aspx: added
svn path=/trunk/mcs/; revision=137137
set current_item when navigating with the keyboard, so we can use it
properly later. Finally, handle both Enter and Space to fire
OnButtonClick *only*, without any other impact, as .net does.
Fixes part of #509985.
2009-06-29 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=137134
* parameter.cs, convert.cs, expression.cs, class.cs: Default
parameter expression can be value-type New.
* cs-parser.jay: Clean up too many parameter modifier boolean flags.
svn path=/trunk/mcs/; revision=137098
* ChannelDispatcher.cs : do not iterate extra channel acceptance
and hence close channels a bit more gracefully.
* TcpDuplexSessionChannel.cs : on Abort(), do just Close() within
(almost) no time.
* TcpChannelListener.cs : accept multiple channels at a time.
svn path=/trunk/mcs/; revision=137093
* mini-exceptions.c (get_generic_context_from_stack_frame): Fix the case
when the generic instance is an instantiation of a subclass of the
methods class. Fixes#517166.
svn path=/trunk/mono/; revision=137081
* threads.c: Store the thread start argument in a hash table instead of
registering it as a root, as libgc doesn't support unregistering roots
under windows, leading to 'too many root sets' errors when many threads
are created.
svn path=/trunk/mono/; revision=137080
* gc.c (mono_gc_run_finalize): Avoid finalizing dynamic methods during
shutdown, they can still be referenced by the other dying objects.
Fixes#514506.
svn path=/trunk/mono/; revision=137075
* TcpDuplexSessionChannel.cs : do not output all (stored) writer
session strings but output only those new ones in current message.
This fixes inconsistent body output in repetitive use of sender.
svn path=/trunk/mcs/; revision=137060
for disposed socket.
* Socket.cs: Modified some argument names to match MS. Moved disposed
check before argument checks in Receive. Use SocketError.InvalidArgument
instead of using magic numbers. Added back comments that was
accidentally removed in my previous commit.
* Socket_2_1.cs: Modified some argument names to match MS.
svn path=/trunk/mcs/; revision=137051
MulticastOptionTest.cs.
* Socket.cs: In GetSocketOption, throw SocketException when (byte [])
option value is null. Use SocketError fields instead of using "magic"
number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
only accept Linger, AddMembership, DropMembership and verify option
value.
* MulticastOption.cs: Added argument checks. Save interfaceIndex that is
passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
Reset InterfaceIndex when LocalAddress is modified, and reset
LocalAddress when InterfaceIndex is modified.
* UdpClient.cs: Modified exception to more closely match MS. Fixed
(int, AddressFamily) .ctor to construct IPv6 endpoint when family is
InterNetworkV6. Added null check for multicastAddr to (IPAddress)
JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
IPAddress) overloads of JoinMulticastGroup throw SocketException when
client is IPv4. Added null check for multicastAddr to (IPAddress, int),
overload, and moved JoinMulticastGroup call after argument checks.
* IPv6MulticastOption.cs: Renamed argument names to match MS. Added
null check to set_Group. Added range check to set_InterfaceIndex.
* IPv6MulticastOptionTest.cs: Added .ctor and property tests.
* MulticastOptionTest.cs: Added .ctor and property tests.
* SocketTest.cs: Fixed compiler warnings. Improved tests for
closed socket. Added tests fr GetSocketOption, and SetSocketOption
overloads (for Linger, DontLinger, AddMembership and DropMembership).
* UdpClientTest.cs: Added .ctor and JoinMulticastGroup tests.
svn path=/trunk/mcs/; revision=137048
* WebConnectionStream.cs: when buffering the response, we have to set
the internal length and regenerate the headers.
svn path=/trunk/mcs/; revision=137043
* SocketResponder.cs: the listener might be closed right before
Accept() is called and in that case we get an EINVAL.
* WebClientTest.cs: now that we might send separate packets for
headers and body, wait a little bit before checking socket.Available.
svn path=/trunk/mcs/; revision=137038
* HttpWebRequest.cs: don't send Content-Length header when SendChunked
is enabled.
* WebConnectionStream.cs: send the headers immediately when possible.
When writing the request before a Close(), if there was an exception
it was lost.
svn path=/trunk/mcs/; revision=137019
* MetaModel.cs: implemented DynamicDataFolderVirtualPath
* DynamicDataRouteHandler.cs: implemented SetRequestMetaTable,
GetCustomPageVirtualPath, GetScaffoldPageVirtualPath and
guessed at implementation of CreateHandler.
2009-06-27 Marek Habersack <[email protected]>
* MetaModelTest.cs: added test for DynamicDataFolderVirtualPath
* DynamicDataRouteHandlerTest.cs: implemented tests for
CreateHandler (one of them isn't working atm),
GetCustomVirtualPagePath, GetScaffoldVirtualPagePath,
GetRequestMetaTable, SetRequestMetaTable
2009-06-26 Marek Habersack <[email protected]>
* DynamicDataRouteTest.cs: MyDataContext3 is safely registered in
the fixture setup method.
Enabled the GetTableFromRouteData3 and GetRouteData tests - the
work fine now.
Added test for the RouteHandler property.
* DynamicDataRouteHandlerTest.cs: added tests for the constructor
and the Model property.
2009-06-26 Marek Habersack <[email protected]>
* MetaModel.cs: RegisterContextCore preserves already registered
tables.
* DynamicDataRouteHandler.cs: GetRequestContext must not retrieve
route data from the routes collection (if the matching route
happened to be an instance of DynamicDataRoute it would initialize
its RouteHandler's Model property, which is not correct, according
to tests). Instead a new RouteData instance is created each time
we don't find any cached context.
* DynamicDataRoute.cs: the associated route handler is set its
Model property when we initialize for the first time.
GetRouteData checks whether route data returned by base class
relates to a table which exists in the current context. If no such
table exists, null is returned.
svn path=/trunk/mcs/; revision=137013
* metadata-verify.c: The spec doesn't mention that it's possible to add
custom attribute to a generic parameter. Fixed.
svn path=/trunk/mono/; revision=137006
* ToolBar.cs: In OnButtonClick only change the Pushed value for
buttons with toogle style. We were previously doing it for
DropDownButton's buttons, but that's not what .net is doing.
Fixes#510030.
svn path=/trunk/mcs/; revision=137002
* mini-amd64.c (mono_arch_emit_prolog): Fix thread attaching in AOTed
code.
* mini.c (mono_jit_thread_attach): Allow domain to be NULL for calls from
AOTed code.
svn path=/trunk/mono/; revision=136995
* TcpDuplexSessionChannel.cs : handle EndRecord for repetitive
operation that does not involve session.
Preserve writer session as well as reader session.
* MessageHeaders.cs : take name and namespace into consideration
when creating a serializer.
svn path=/trunk/mcs/; revision=136975
* loader.c (method_from_methodspec): Call into the verifier to check
the signature.
* metadata-verify.c: Addmono_verifier_verify_methodspec_signature.
* verify-internals.h: Export mono_verifier_verify_methodspec_signature as
part of the internal API.
svn path=/trunk/mono/; revision=136963
2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.
In Test/System.Web.Services.Configuration:
2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.
In Test/System.Web.Services.Discovery:
2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.
svn path=/trunk/mcs/; revision=136961
2009-06-26 Robert Jordan <[email protected]>
* X509CertificateCollectionTest.cs,
X509ChainPolicyTest.cs: Upgrade to new NUnit style.
In Test/System.Security.Cryptography:
2009-06-26 Robert Jordan <[email protected]>
* OidCollectionTest.cs, OidEnumeratorTest.cs:
Upgrade to new NUnit style.
svn path=/trunk/mcs/; revision=136947
* *.cs: Convert all tests to new-style nunit classes/methods. Add
[Test] attributes to some tests which were missing them.
svn path=/trunk/mcs/; revision=136944
* DateTime.cs: if the DateTimeOffset is out of bounds, let Parse
report the error. Fix stupid harmless typo.
* DateTimeOffset.cs: report error if the UTC date/time is out of
bounds.
svn path=/trunk/mcs/; revision=136927
* metadata.c (mono_type_create_from_typespec): Call into the verifier to check
the signature.
* metadata-verify.c: Add mono_verifier_verify_typespec_signature.
* verify-internals.h: Export mono_verifier_verify_typespec_signature as
part of the internal API.
svn path=/trunk/mono/; revision=136922
the signature.
* metadata-verify.c: Add mono_verifier_verify_standalone_signature. Fix
blob verification.
* verify-internals.h: Export mono_verifier_verify_memberref_signature as
part of the internal API.
svn path=/trunk/mono/; revision=136921
* metadata-verify.c: Use is_valid_blob_object to verify blob validity
when doing basic verification.
This check must be done since the runtime peeks into signatures in much
more places than it does decoding so it makes sense to ensure that all
pointers to blob objects are well formed.
svn path=/trunk/mono/; revision=136920
* metadata-verify.c (is_valid_blob_object): Add extra minsize argument.
Use proper overflow dectection. Fix usage of it.
svn path=/trunk/mono/; revision=136919
* loader.c (field_from_memberref): Call into the verifier to check
the signature.
* loader.c (mono_method_get_signature_full): Same.
* loader.c (method_from_memberref): Same.
* metadata-verify.c: Add mono_verifier_verify_memberref_signature.
* verify-internals.h: Export mono_verifier_verify_memberref_signature as
part of the internal API.
svn path=/trunk/mono/; revision=136918
* WebAsyncResult.cs: new field that tells us if the request is being
written automatically because we reached the content length.
* WebConnection.cs:
* WebConnectionStream.cs: make sure we only access the NetworkStream
while we own it. Automatically write the request when we reach
ContentLength number of bytes. Kill the write buffer as soon as
possible. Don't use the buffer at all when chunked encoding is
enabled.
Fixes bugs #515931 and #510642.
svn path=/trunk/mcs/; revision=136900
* aot-compiler.c (emit_and_reloc_code): Factor out the code to
determine whenever a method is directly callable to a separate function.
svn path=/trunk/mono/; revision=136876
* RouteCollectionTest.cs, RouteTest.cs: added new tests for
GetVirtualPath
2009-06-25 Marek Habersack <[email protected]>
* PatternParser.cs: parameter name lookups must be
case-insensitive.
Null and empty (string) parameters are skipped when building query
part of the action path.
2009-06-25 Marek Habersack <[email protected]>
* LinqDataSource.cs: make ContextType not throw an exception when
ContextTypeName is not set, but rather return a null in that
case.
2009-06-25 Marek Habersack <[email protected]>
* MetaTableTest.cs: new GetVirtualPath tests.
* DynamicDataRouteTest.cs: added tests for route.Defaults
modifications on class init.
* DynamicDataRouteHandlerTest.cs: added
2009-06-25 Marek Habersack <[email protected]>
* MetaTable.cs: Fixes to make tests succeed.
* MetaModel.cs: added the GetDataFieldAttributes method for
retrieving attributes associated with data type/field.
Fixes to make tests succeed.
* MetaColumn.cs: refactoring - use
MetaModel.GetDataFieldAttributes instead of the local version.
* DynamicDataRouteHandler.cs: implemented GetRequestContext,
GetRequestMetaTable.
* DynamicDataRoute.cs: when the Action and Table properties are
set before one of GetVirtualPath or GetRouteData methods are
called for the first time, a check is made whether the Defaults
collection exists and whether it contains entries for Action and
Table. Initialization code makes sure those entries are inserted
into the dictionary in those cases.
svn path=/trunk/mcs/; revision=136875
* mini-<ARCH>.c tramp-<ARCH>.c: Remove needless casts and add new
needed ones as a result of the previous change.
svn path=/trunk/mono/; revision=136874
issue where AttributeMappingSource.GetModel().GetTables() would
return duplicate types, which was unexpected by Marek Habersack.
svn path=/trunk/mcs/; revision=136871
* threadpool.c (mono_thread_pool_add): If the domain is unloading
or unloaded, still return an AsyncResult, but don't add it to the
threadpool.
2009-06-25 Mark Probst <[email protected]>
* appdomain-async-invoke.cs: Fail if BeginInvoke doesn't return an
AsyncResult.
svn path=/trunk/mono/; revision=136868
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
Made required changes for repeated use of message exchanges.
Hold binary reader session. The channels use it incrementally.
Preambles are handled at Open, and EndRecords are handled at
Close, Add session shutdown hook here (not working yet though).
svn path=/trunk/mcs/; revision=136867
* ChannelDispatcher.cs : instead of discarding channels, reuse them
unless it is closed by session manager (session manager does not
work, so channels are not actually closed automatically yet).
svn path=/trunk/mcs/; revision=136866
* threadpool.c: Don't add new calls to a threadpool if the domain
of the call is unloading or unloaded. When dequeuing a job, null
the reference in the queue.
2009-06-25 Mark Probst <[email protected]>
* appdomain-async-invoke.cs: Test for adding async invokes while a
domain is unloading.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=136849
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
parameters of type SAFEARRAY[VARIANT].
* reflection.c (encode_marshal_blob): Properly generate element type
(SafeArraySubType marshal attribute option).
* cominterop.cs libtest.c: Added tests for marshalling
out parameters of type SAFEARRAY[VARIANT].
* CustomAttributeBuilder.cs: Properly handle element type for safe
arrays (SafeArraySubType marshal attribute option).
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=136836
* cominterop.h cominterop.c marshal.c: Added support for marshalling out
parameters of type SAFEARRAY[VARIANT].
* reflection.c (encode_marshal_blob): Properly generate element type
(SafeArraySubType marshal attribute option).
* cominterop.cs libtest.c: Added tests for marshalling
out parameters of type SAFEARRAY[VARIANT].
* CustomAttributeBuilder.cs: Properly handle element type for safe
arrays (SafeArraySubType marshal attribute option).
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=136836
* loader.c (mono_method_signature): Call into the verifier to check
the method signature.
* metadata-verify.c (verify_method_table): Move signature verification
to verify_method_table_full.
* metadata-verify.c: Add mono_verifier_verify_method_signature.
* verify-internals.h: Export mono_verifier_verify_method_signature as
part of the internal API.
svn path=/trunk/mono/; revision=136799
* loader.c (mono_method_get_header): Call into the verifier to
check the method header.
* metadata-verify.c: Add mono_verifier_verify_method_header.
* verify-internals.h: Export mono_verifier_verify_method_header as
part of the internal API.
svn path=/trunk/mono/; revision=136798
* class.c (mono_class_find_enum_basetype): Call into the verifier to
check the field signature. Replace an assert with an explicit check.
* class.c (mono_class_setup_fields): Call into the verifier to check
the field signature.
* metadata-verify.c: Add mono_verifier_verify_field_signature.
* verify-internals.h: Export mono_verifier_verify_field_signature as
part of the internal API.
svn path=/trunk/mono/; revision=136797
* class.c (mono_class_find_enum_basetype): Simplify this function
by moving code outside of the loop and not decoding static fields.
svn path=/trunk/mono/; revision=136796
* metadata-verify.c (verify_typedef_table): Check the extends
token here. Move to here a flags check from verify_typedef_table_full.
svn path=/trunk/mono/; revision=136795
* ArrayListTest.cs, CollectionBaseTest.cs, DictionaryEntryTest.cs,
HashtableTest.cs: Convert all tests to new-style nunit methods.
* QueueTest.cs: likewise. Convertion revealed 25 test that were
disabled after the NUnit 2.4 update.
* StackTest.cs: likewise. Convertion revealed 24 test that were
disabled after the NUnit 2.4 update.
svn path=/trunk/mcs/; revision=136771
* *.cs: Replaced ArrayList with Arguments in need of a nonsequential
arguments expression to be implemented.
*.sources: Add argument.cs
svn path=/trunk/mcs/; revision=136765
* WebConnection.cs: 'socket' and 'Data' where being changed by 2
threads at the same time when there were queued requests and the
current one was aborted in Connect().
* HttpWebRequest.cs: 'aborted' is now an int and we use Interlocked to
access it. Added WebConnection field used when aborting the request.
Fixes bug #514591 for good.
svn path=/trunk/mcs/; revision=136753
* AssemblyInfo.cs: added InternalsVisibleTo for
System.ComponentModel.DataAnnotations (needs
ReflectionPropertyDescriptor)
2009-06-23 Marek Habersack <[email protected]>
* MetaTable.cs: constructor now takes ContextConfiguration instead
of a boolean and uses the config to determine value of the
ScaffoldAllTables property. Also, if context config is present,
makes sure to register the associated type description provider
(if any) with TypeDescriptor.
* MetaModel.cs: no longer uses local cache for description
providers. Uses TypeDescriptor.{Add,Get}Provider now.
* MetaColumn.cs: fixed Scaffold to match tests - IsGenerated and
IsCustomProperty take precedence over Table.ScaffoldAllTables.
GetDataFieldAttribute doesn't use AttributeCollection indexer, as
the latter would create a default instance of the requested
attribute, which is not what we want here.
2009-06-23 Marek Habersack <[email protected]>
* ValidationAttribute.cs: error message must not ever be empty.
* UIHintAttribute.cs: do not throw NIEX from the constructor.
* DataTypeAttribute.cs: implemented correct DisplayFormat
intialization for DataType.Time.
* AssociatedMetadataTypeTypeDescriptor.cs: implemented retrieving
attributes of the associated metadata type, as well as merging of
attribute collections between metadata and main type properties.
* AssociatedMetadataTypePropertyDescriptor.cs: added. Helper class
which merges attributes from the metadata type (if any) with those
associated with property from the "main" type.
2009-06-23 Marek Habersack <[email protected]>
* System.ComponentModel.DataAnnotations.dll.sources: added
System.ComponentModel.DataAnnotations/AssociatedMetadataTypePropertyDescriptor.cs
2009-06-23 Marek Habersack <[email protected]>
* TypeDescriptor.cs: do not wrap DefaultTypeDescriptionProvider.
Implemented GetAttributes and GetProperties in
DefaultTypeDescriptor.
* AttributeCollection.cs: make sure that attrList is never null.
svn path=/trunk/mcs/; revision=136732
enumeration contains multiple names with the same value.
Fixes#515030.
* Test/DocTest-v1.cs: Add test for #515030.
* Test/en.expected/Mono.DocTest/Color.xml,
Test/en.expected.since/Mono.DocTest/Color.xml,
Test/html.expected/Mono.DocTest/Color.html,
Test/msxdoc-expected.importslashdoc.xml,
Test/en.expected.importslashdoc/Mono.DocTest/Color.xml: Flush.
svn path=/trunk/mcs/; revision=136730
* XmlSchemaAssertion.cs, XmlSchemaTests.cs : migrate from Assertion
to Assert (it still uses XmlSchemaAssertion as the base class,
but XmlSchemaAssertion is not based on Assertion anymore).
svn path=/trunk/mcs/; revision=136714
* ServiceHostBase.cs : remove more TODO.
* DispatchRuntime.cs : do not fill InstanceContextProvider here.
* ChannelDispatcher.cs : do it here instead.
* ChannelDispatcherCollection.cs : remove TODOs.
* ChannelDispatcherTest.cs : make sure that the port to be in use is
available before running the tests. Check attach state.
* DispatchRuntimeTest.cs : make sure that it runs through all the
behavior tests.
svn path=/trunk/mcs/; revision=136695
* parameter.cs: Moved GetParameterIndexByName to base class.
* expression.cs, statement.cs, ecore.cs, delegate.cs: Removed
unused AType. Use argument's version of GetExpressionTree.
svn path=/trunk/mcs/; revision=136694
* ListBox.cs: When creating DrawItemEventArgs, pass either
Theme.ColorHighlightText or ForeColor depending on the selected state
of our item, as .net does.
Fixes#512115.
svn path=/trunk/mcs/; revision=136669
2009-06-22 Mark Probst <[email protected]>
* sgen-gc.c: Managed allocation with pthreads TLS.
* threads.c, threads-types.h: Functions for the JIT to tell the
runtime whether it supports the MONO_TLS opcode.
2009-06-22 Mark Probst <[email protected]>
* mini.c, mini.h: Tell the runtime whether we support MONO_TLS.
svn path=/trunk/mono/; revision=136658
* WeakObjectWrapper.cs, WeakObjectWrapperComparer.cs: added - used
by TypeDescriptor for storage of type description providers.
* TypeDescriptor.cs: implemented part of the 2.0+ API which deals
with adding/removing/getting type description providers.
* AttributeCollection.cs: do not throw NREX when attrList is
null in Count.
2009-06-22 Marek Habersack <[email protected]>
* TypeDescriptorTests.cs: added tests for 2.0+ APIs which deal
with adding/removing/getting type description providers.
svn path=/trunk/mcs/; revision=136634
* object-internals.h : Adding interrupt_on_stop field.
* threads.c (mono_thread_request_interruption) : On Windows exit the
thread if interrupt_on_stop is set.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
Removing old interrupt logic and setting the interrupt_on_stop for the
thread when calling accept.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
setting the interrupt_on_stop for the thread when calling accept.
* Thread.cs : Adding interrupt_on_stop field.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=136628
* object-internals.h : Adding interrupt_on_stop field.
* threads.c (mono_thread_request_interruption) : On Windows exit the
thread if interrupt_on_stop is set.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal) :
Removing old interrupt logic and setting the interrupt_on_stop for the
thread when calling accept.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Receive_internal) :
setting the interrupt_on_stop for the thread when calling accept.
* Thread.cs : Adding interrupt_on_stop field.
Contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=136628
2009-06-18 Martin Baulig <[email protected]>
* debug-debugger.h (MonoDebuggerRuntimeFlags): New enum typedef.
(MonoDebuggerInfo): Renamed the `dummy' field info `runtime_info'.
* debug-debugger.c
(mini_debugger_set_attach_ok): New function; sets the attach-ok
flag in `MONO_DEBUGGER__info.runtime_info'.
* driver.c
(mono_main): Call mini_debugger_set_attach_ok() if generics
sharing is disabled.
svn path=/trunk/mono/; revision=136618
2009-06-08 Martin Baulig <[email protected]>
* debug-mini.c
(MonoDebuggerExceptionAction): Moved into debug-mini.h.
(_mono_debugger_throw_exception): Don't make this static.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_handle_exception): Moved to mini-exceptions.c
* debug-mini.c
(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
(_mono_debugger_throw_exception): Add function prototype.
(_mono_debugger_unhandled_exception): Likewise.
* mini-exceptions.c
(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
arg; return the first exception handler if the exception is caught
and we're running inside the debugger.
(mono_debugger_handle_exception): Moved here from debug-mini.c;
improve exception handle inside runtime-invoke, check whether the
exception is actually caught in the method being invoked and not
by the runtime-invoke-wrapper.
svn path=/trunk/mono/; revision=136617
* ppc/ppc-codegen.h: Rework the naming of the load/store macros,
ldr/str now handle register sized quantities, while ldptr/stptr handle
pointer sized quantities.
svn path=/trunk/mono/; revision=136604
* ComboBox.cs: When handling WM_CHAR, process the message first, and
send it to the textbox only if it wasn't handled.
Fixes#507459.
svn path=/trunk/mcs/; revision=136594
* WebConnectionStream.cs: close the underlying socket if there's an
exception when closing the stream. Fixes bug #514996.
svn path=/trunk/mcs/; revision=136572
* WebConnectionStream.cs: Keep count of all bytes written, and perform
write overflow check in both buffered and non-buffered writing (if
not using chunked transfer encoding). Fixes bug #510642.
svn path=/trunk/mcs/; revision=136570
* method-to-ir.c (initialize_array_data): Do the optimization if the
target byte order is little endian, instead of the host byte order.
svn path=/trunk/mono/; revision=136559
* aot-compiler.c: Emit sizes for most symbols, only emit runtime-invoke
wrappers into the mscorlib image, Emit a unique plt symbol for each
image, emit symbols for plt entries.
* image-writer.c (img_writer_emit_symbol_size): New function to emit
a .size directive.
svn path=/trunk/mono/; revision=136557
* aot-compiler.c (add_wrappers): Avoid calling
mono_marshal_get_type_info () since it can assert for some types.
* method-to-ir.c (mono_method_to_ir): Disable aot when some forms of
ldtoken are used inside wrappers.
svn path=/trunk/mono/; revision=136556
* HttpWebRequestTest.cs: Enabled test for bug #508027. Added test for
bug #513087.
* WebClientTest.cs: Added test for bug #484795, for Encoding property.
svn path=/trunk/mcs/; revision=136544
zero-length string literal. Fixed exception argument name to match
MS.
* WebConnectionStream.cs: Throw a WebException that wraps an
IOException when closing the stream before all bytes are written.
svn path=/trunk/mcs/; revision=136543
* mini.h (OP_LOADR_MEMBASE): New opcodes to load/store pointer sized
quantities when using ilp32.
* mini-codegen.c: Use OP_LOADR_MEMBASE/OP_STORER_MEMBASE for loading/storing
spill slots. Use sizeof(mgreg_t) for the spill slot size.
* image-writer.c: Use .long on ilp32.
* aot-compiler.c: Use 32 bit loads on ilp32.
svn path=/trunk/mono/; revision=136541
* ppc/ppc-codegen.h: Add ppc_ldr/ppc_str macros to store regsize quantities.
Handle little endian host platforms in ppc_emit32.
svn path=/trunk/mono/; revision=136539
* metadata-verify.c: Kill is_corlib from VerifyContext.
It is only used by the offline mode.
So we better remove it from the runtime path.
svn path=/trunk/mono/; revision=136530
* metadata-verify.c: Add new mono_verifier_verify_full_table_data
function that perform the offline metadata verification steps.
* metadata-verify.c (verify_typedef_table): Move some checks to
verify_typedef_table_full and make it been called by new function
mono_verifier_verify_full_table_data.
* pedump.c: Call mono_verifier_verify_full_table_data.
* verify-internals.h: Export mono_verifier_verify_full_table_data as
part of the internal API.
svn path=/trunk/mono/; revision=136527
* image.c: Extract mono_image_load_names from do_mono_image_load.
* metadata-internals.h: Export mono_image_load_names as part of
the internal API.
svn path=/trunk/mono/; revision=136525
a state (i.e. no release tests fail within NUnit), fixes several
bugs, massive code cleanup (#if removal), EntitySet<T> fixes,
removes some locale dependency issues, predicate building,
performance improvements, and likely more. Remove src/VisualMetal;
it's no longer used.
* Makefile (update-dblinq): Exclude more files so that there's less
"garbage" files to review on the next update.
svn path=/trunk/mcs/; revision=136523
* WebConnection.cs: make sure we don't open a new socket if the
request is aborted before we establish the connection. Fixes bug
#514591.
* HttpWebRequest.cs: new property to return abort status. Invoke the
abort handler before doing anything else when Abort() is called for
the first time.
svn path=/trunk/mcs/; revision=136516
* mini-ops.h: Use TARGET_POWERPC define for consistency.
* patch-info.h: Add 'MSCORLIB_GOT_ADDR' patch type.
* aot-compiler.c aot-runtime.c: Put the mscorlib got address into the
second got slot of every aot image.
* aot-compiler.c aot-runtime.c mini-trampolines.c: Add support for
aot on platforms with function pointers.
* mini-ppc.h mini-ppp.c cpu-ppc.md exceptions-ppc.c tramp-ppc.c: Add
support for aot/full aot on ppc/ppc64.
svn path=/trunk/mono/; revision=136504
* tramp-<ARCH>.c (mono_arch_patch_plt_entry): Add 'got' and 'regs'
arguments which are needed on ppc.
* tramp-arm.c (mono_arch_nullify_class_init_trampoline): Add 'regs'
argument.
* mini-trampolines.c aot-runtime.c: Update after the above changes.
svn path=/trunk/mono/; revision=136502
* metadata.c (mono_metadata_cleanup): Free the generic method cache
first, as it could reference data in the other caches.
svn path=/trunk/mono/; revision=136499
* Normalization.cs :
- reverted the previous index calculation change. It was correctly
implemented and I rather broke it.
- fix index calculation on combining.
- NFKD was incorrectly directed to combining path. It should not.
- Simplify quick check.
* StringTest.cs : Fix the previous test. It was expecting wrong
results. Added another NFC composition test.
svn path=/trunk/mcs/; revision=136474
* ChannelDispatcher.cs : significant changes:
- simplified Open/Close async.
- implement OnAbort().
- create ServiceThrottle when it is null.
- Channels are accepted as much as the throttle allows, and
process requests when accepted an input (now it holds more than
one channel).
- Support ReceiveSynchronously and use Begin/EndAcceptChannel()
for async pattern.
- Close all channels and the listener when it is closed.
- Cosmetic simplification on channel acceptor delegate creation.
svn path=/trunk/mcs/; revision=136431
* AppDomainSetup.cs: update attribute.
* TermInfoDriver.cs: ensure we are initialized in CheckWindowDimensions().
* DateTimeOffset.cs: Implement Parse().
* DateTime.cs: add 'zzz' to the list of default time formats. Return a
DateTimeOffset from _DoParse. Fixed the offset minutes when the
timezone is specified as a negative one.
* Console.cs: updates for MoveBufferArea().
* AppDomainManager.cs: implement EntryAssembly.
* AppDomain.cs: update attribute.
svn path=/trunk/mcs/; revision=136426
* ChannelListenerBase_1.cs : added cancellation hook here too.
HttpChannelListener.cs : use above.
Do not allow parallel channel creation (this listener does not
allow more than one AcceptChannel().
svn path=/trunk/mcs/; revision=136425
* ListBox.cs: When calculating the scrollbars for non MultiColumn
mode, force the use of the horizontal scrollbar only if
ScrollAlwaysVisible is true as well.
Fixes#513029.
svn path=/trunk/mcs/; revision=136399
* data/browscap.ini: applied Mono modifications to the upstream
version. Fixes three tests failing in System.Web. Fixes bug #513965
Added ecmascriptversion, msdomversion and w3cdomversion to the IE
8.0 entry. Fixes bug #513965
svn path=/trunk/mono/; revision=136393
* data/browscap.ini: applied Mono modifications to the upstream
version. Fixes three tests failing in System.Web.
svn path=/trunk/mono/; revision=136392
* MetaColumnTest.cs: added test for SortExpression
2009-06-18 Marek Habersack <[email protected]>
* DynamicDataContainerColumnProvider.cs: added setting of
IsSortable
2009-06-18 Marek Habersack <[email protected]>
* Test/DataSource/DynamicDataColumn.cs: added Sortable property.
2009-06-18 Marek Habersack <[email protected]>
* TestDataColumn.cs: mark the column as sortable based on value of
the DynamicDataSortable attribute.
* Baz.cs: added a sortable column.
svn path=/trunk/mcs/; revision=136386
* UnsafeNativeMethods.cs: added import of the old sqlite3_open
function to make code compatible with sqlite3 versions older than
3.5.0
* SQLite3.cs: added a workaround for systems which come with
sqlite3 older than 3.5.0 (which added new call sqlite3_open_v2,
used in this version of Mono.Data.Sqlite). If this function is not
found in the native shared library, the old sqlite3_open is used
as fallback.
svn path=/trunk/mcs/; revision=136384
* JavaScriptSerializerTest.cs: added comparison with the
.NET-generated serialization result in TestDeserialize and
TestDeserializeTypeResolver tests.
2009-06-18 Marek Habersack <[email protected]>
* ListViewTest.cs: hushed the output in ListView_Edit ()
svn path=/trunk/mcs/; revision=136383
* ComboBox.cs: When using AddRange on a sorted combobox, don't
try to use our inefficient sorted insert method, just append
it and sort the whole thing at then end.
[Fixes bug #511247]
svn path=/trunk/mcs/; revision=136358
* dwarfwriter.c (mono_dwarf_writer_create): Add an 'appending' parameter
to control whenever the dwarf writer is in xdebug or aot mode.
(emit_class_dwarf_info): Use a separate abbrev for structures without
children.
* aot-compiler.c: Pass the appending parameter to
mono_dwarf_writer_create ().
svn path=/trunk/mono/; revision=136353
* EndPointListener.cs: call CheckIfRemove() after removing a regular
prefix. Fixes bug #513849.
* EndPointManager.cs: make sure we use the right lock when one prefix
of a collection fails to be added and we need to remove all of the
prefixes.
Clear the ip_to_endpoints hashtable if there are no more prefixes
listening on that address.
svn path=/trunk/mcs/; revision=136320
A fix for bug #513400
* nullable.cs (EmitEquality): Operands emit could be simplified for
built-in types when we now emit user operators differently.
svn path=/trunk/mcs/; revision=136314
* branch-opts.c (mono_merge_basic_blocks): Fix the case when bbn
falls through to its next bblock. Fixes#513931.
* iltests.il: Add a test.
svn path=/trunk/mono/; revision=136303
* cli-blob-tests.md: Tests for method header.
* assembly-with-methods.cs: Add some body to
make for some fat headers.
svn path=/trunk/mono/; revision=136268
* metadata-verify.c (verify_import_table): The IAT contents
might end been patched by the windows DL when running with
coree enabled.
svn path=/trunk/mono/; revision=136266
* dwarfwriter.c (mono_dwarf_writer_emit_base_info): Emit some line number
infor even if emit_line is FALSE, as the apple linker seems to require it.
svn path=/trunk/mono/; revision=136265
Activator.CreateInstance for *Adapter classes, so we need to have an
exception here for these ctors (to avoid MissingMethodExceptions).
svn path=/trunk/mcs/; revision=136245
* ToolBar.cs: Expose as internal the code used to show a dropdown menu.
* PrintPreviewDialog.cs: Handle the down/up arrow keys for our
DropDown element.
Fixes#509152.
svn path=/trunk/mcs/; revision=136225
* RouteValueDictionaryExtensions.cs: do not compile if
SYSTEMCORE_DEP is not defined
* PatternParser.cs: if SYSTEMCORE_DEP is not defined, do not
compile parts which require RouteValueDictionaryExtensions.
2009-06-16 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): define SYSTEMCORE_DEP
2009-06-16 Marek Habersack <[email protected]>
* DynamicDataManager.cs, DynamicDataExtensions.cs: use new
DataBoundControl.DataSourceObject instead of
InternalGetDataSource
2009-06-16 Marek Habersack <[email protected]>
* Makefile: warn if the 4.0 assembly is compiled without
System.Core
svn path=/trunk/mcs/; revision=136222
* DispatchRuntimeTest.cs : add reasonable timeout and close client
appropriately. Objects are disposed in different ways than .NET.
Do not expect things automatically disposed as just time goes by.
svn path=/trunk/mcs/; revision=136221
* WebConnection.cs: propagate the exception to the request.
* WebException.cs: new internal ctor.
* HttpWebRequest.cs: use new ctor to encapsulate the innerException.
Fixes#323452.
2009-06-16 Andrés G. Aragoneses <[email protected]>
* WebRequestTest.cs: Drop NotWorking attrib, more accurate tests.
svn path=/trunk/mcs/; revision=136198
* net_4_0_System.Web.Routing.dll.sources: added. In the 4.0
profile all classes are compiled into System.Web,
System.Web.Routing becomes an empty assembly.
2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.Abstractions.dll.sources: added. In the 4.0
profile all classes are compiled into System.Web,
System.Web.Abstractions becomes an empty assembly.
2009-06-16 Marek Habersack <[email protected]>
* Decorated all classes with the TypeForwardedFrom attribute for
the 4.0 profile.
2009-06-16 Marek Habersack <[email protected]>
* Decorated all classes with the TypeForwardedFrom attribute for
the 4.0 profile.
2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.dll.sources: added. System.Web.Routing and
System.Web.Abstractions are part of System.Web.dll in the 4.0
profile.
svn path=/trunk/mcs/; revision=136182
* PrintPreviewDialog.cs: Tune the navigation among the buttons and
controls that are part of our ToolBar, so we can mimic the behaviour
observed in .Net, by handling also the arrow keys and doing the
preprocess for them too.
Fixes the remaining bits of #509142.
svn path=/trunk/mcs/; revision=136143
* HttpWebRequest.cs: for unknown methods, always send the request once
we are connected even if there's no writeStream. Fixes bug #513087.
svn path=/trunk/mcs/; revision=136136
* class.c (mono_class_from_typeref): If the enclosing type is not
found return null instead of crashing. Fixes#508487.
svn path=/trunk/mono/; revision=136134
* Environment.cs : bump corlib version.
* Normalization.cs : For NFC and NFKC, IsNormalized() was not working
enough to check composed characters. It's not possible without
the actual composition, so just call Normalize() and compare them.
In Normalize() mapping helper didn't pick correct map index since
the table for index stores index for "uncompressed" numbers.
* NormalizationTableUtil.cs : updated to the latest UCD.
* Makefile : to build test, source file must be downloaded too.
* StringTest.cs : added string normalization test.
svn path=/trunk/mcs/; revision=136100
* AspGenerator.cs: CreateRootBuilder quits when root builder
already exist. This can happen when recursively parsing an include
file. Fixes bug #512028
svn path=/trunk/mcs/; revision=136096
* HttpCachePolicy.cs: SetHeaders adds max-age when MaxAge is set
to TimeSpan.Zero by calling SetMaxAge. Fixes bug #513000
svn path=/trunk/mcs/; revision=136093
* TemplateParser.cs: AddAssembliesInBin (1.1 profile) tries to
load every assembly in order to see if it's a valid one. All bad
dll image errors are silently ignored. Fixes bug #315816
svn path=/trunk/mcs/; revision=136089
* mini.h (struct MonoBasicBlock): Add 'has_jump_table' and
'has_call_handler' fields.
* method-to-ir.c (mono_method_to_ir): Set them if needed.
* branch-opts.c (mono_merge_basic_blocks): Avoid iterating through the
first bblock if not needed. Fixes#512790.
svn path=/trunk/mono/; revision=136063
* Variant.cs (GetValue): Changing the bool case to use the short value.
This is to avoid junk in the high word.
Contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=136044
* cominterop.c (cominterop_get_ccw): Increment mspec's SizeParamIndex
because "this" of the managed signature has become an
ordinary parameter in the unmanaged signature.
svn path=/trunk/mono/; revision=136029
* ToolBar.cs: Expose the current item as internal.
* PrintPreviewDialog.cs: Tune the TabStop property for
PrintPreviewControl/ToolBar so we match the .net scenario regarding
Tab navigation. Also implement support to navigate throughout the
items in the ToolBar.
Fixes#509142.
svn path=/trunk/mcs/; revision=136020
an Item list to match msbuild.
* xbuild/Microsoft.CSharp.targets (IntermediateAssembly): Update for
above changes.
svn path=/trunk/mcs/; revision=136001
Fix bug #512535.
* ExpressionCollection.cs (ConvertToITaskItemArray): Whitespace around a
itemref is allowed if the prev/next element is ";".
In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItemsInTarget3a): Add another case for valid whitespace
around an item ref.
svn path=/trunk/mcs/; revision=136000
* MetaTableTest.cs: tests use single data model provider now.
Implemented tests for IsReadOnly, ListActionPath, Model, Name,
Provider, Scaffold, SortColumn, SortDescending, ToString.
Fixed ForeignKeyColumnNames test.
2009-06-12 Marek Habersack <[email protected]>
* TestDataContainer.cs: GetTables uses an object of the associated
data type to create table collection.
* TestDataColumn.cs: foreign key columns are determined using a
custom attribute instead of a name now. This makes it possible to
specify which table.column they are associated with.
* FooDisplayColumnAttribute.cs: changed sortDescending to true in
class attributes.
* AssociatedBar.cs, AssociatedFoo.cs, FooEmptySortColumn.cs,
FooMisnamedSortColumn.cs, FooNoScaffold.cs, FooReadOnly.cs,
ITestDataContext.cs, TestDataContext.cs: added
2009-06-12 Marek Habersack <[email protected]>
* MetaTable.cs: implemented correct detection of foreign key
columns.
Implemented IsReadOnly, SortColumn, SortDescending.
svn path=/trunk/mcs/; revision=135997
* rootcontext.cs: add a Platform field.
* driver.cs: handle /platform.
* codegen.cs: pass the proper flags according to
the platform when saving the assembly.
svn path=/trunk/mcs/; revision=135990
* AssemblyBuilder.cs (Save): throw a NotImplementedException
when asked to emit a pe32+ binary for a AMD64 or IA64
specific assembly.
svn path=/trunk/mcs/; revision=135989
* ServiceHostBase.cs : do not give up releasing further channel
dispatchers when one of them threw an error. Use strict timeout.
svn path=/trunk/mcs/; revision=135979
* HttpChannelListener.cs : do not Close() more than once (though
it is allowed to call it twice, we don't reject it; just ignore).
svn path=/trunk/mcs/; revision=135977
* ParameterInfo.cs (DefaultValue): Add support for decimals, their default
value is encoded using a custom attribute.
svn path=/trunk/mcs/; revision=135965
* class-internals.h (struct _MonoGenericContainer): Add an 'image'
field for owner-less generic containers.
* reflection.c (mono_reflection_initialize_generic_parameter): Set the
image field of the owner-less generic containers created here.
* metadata.c (mono_metadata_load_generic_params): Ditto, the
contain is ownerless until the caller sets its owner.
* metadata.c (type_in_image): Handle owner-less generic containers
correctly.
svn path=/trunk/mono/; revision=135964
* ContentControlBuilderInternal.cs: detect missing
ContentPlaceHolderID attribute when parsing instead of throwing a
nullref later on.
svn path=/trunk/mcs/; revision=135960
* HttpReplyChannel.cs : reject multiple WaitForRequest calls.
Temporarily disable HTTP Keep-Alive since it somehow results in
wrong reuse of connection (shown as NRE in HttpConnection).
Make sure to close RequestContext which was created from it.
* HttpRequestContext.cs : simplify.
svn path=/trunk/mcs/; revision=135921
* PageCompiler.cs: if generating code to assign output cache
parameters, use special case for generating OutputCacheLocation
enum reference. Fixes bug #512037
svn path=/trunk/mcs/; revision=135918
* HttpChannelListener.cs, TcpChannelListener.cs,
ChannelListenerBase_1.cs : put common internal listener base
and let it handle those async stuff.
svn path=/trunk/mcs/; revision=135916
* aot-compiler.c (add_wrappers): Don't emit remoting-invoke-with-check
wrappers.
* aot-runtime.c (mono_aot_get_method): Use the original method's code for
remoting-invoke-with-check wrappers, which are not needed when running with
full-aot, since it doesn't support remoting.
svn path=/trunk/mono/; revision=135898
* aot-compiler.c (emit_got_info): Don't emit offsets for the plt got entries.
* aot-compiler.c aot-runtime.c: Don't emit the first got offset in the
method info, it is not used anymore.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=135891
* aot-compiler.c (arch_emit_plt_entry): Make the arm plt entries one
word smaller.
* aot-runtime.c (mono_aot_get_plt_info_offset): Update after the
change above.
* tramp-arm.c (mono_arch_patch_plt_entry): Ditto.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=135886
* image-writer.c (asm_writer_emit_symbol_diff): Disable the
TARGET_ASM_APPLE stuff for now, as it doesn't seem to work on the
iphone.
svn path=/trunk/mono/; revision=135869
* Thread.cs: Refactor calling Moonlight's OnUnhandledException to
make sur the delegate it not called from a [SecuritySafeCritical]
caller.
* ThreadPool.cs: Reuse the above code for QueueUserWorkItem.
Original patch from Alan McGovern
svn path=/trunk/mcs/; revision=135866
* HttpReplyChannel.cs, ReplyChannelBase.cs : async operations are
now implemented as virtual in base class. Remove NIEs in http.
svn path=/trunk/mcs/; revision=135823
* Expression.cs: improve the ExpressionCache, it still does not
work, but it will at least work better with multithreaded apps (we
take locks) and we use WeakReferences correctly.
For WeakReferences it is important to not depend on IsAlive to
retrieve the target (this is a documented race). IsAlive is only
useful to determine if it has already been collected, but if true,
the Target can still be released.
This race condition is exposed by #505678 on x86-64 platforms (only).
Sadly, this fix is not good enough to re-enable the cache, on
x86-64 this with a single thread, it still crashes randomly
svn path=/trunk/mcs/; revision=135815
* cli-blob-tests.md: Tests for typespec signature.
* assembly-with-typespec.il: Input file with a
bunch of typespec instances.
* Makefile: Add new dependency.
svn path=/trunk/mono/; revision=135796
* aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
the full-aot case if possible, since the trampoline will be called right
away.
* aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
trampolines to 1024 after the change above.
svn path=/trunk/mono/; revision=135786
* aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
the full-aot case if possible, since the trampoline will be called right
away.
* aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
trampolines to 1024 after the change above.
svn path=/trunk/mono/; revision=135785
* HttpWebRequest.cs: follow MS docs when throwing
ProtocolViolationException at the beginning of an asynchronous
operation. Fixes bug #465613.
svn path=/trunk/mcs/; revision=135758
* DataGridViewColumnCollection.cs, DataGridViewRowCollection.cs,
DataGridView.cs: Fire CollectionChangeAction.Refresh collection
changed when Clearing the collections so that the DataGridView
can know and reset the current cell.
[Fixes bug #492549]
svn path=/trunk/mcs/; revision=135737
* BindingSource.cs: In ResetBindings use the ListChangedEventArgs ctor
with the PropertyDescriptor parameter instead of index, because the
latter will set some irelevant indices. Fixes a bug uncovered by recent
fix to ListChangedEventArgs.
svn path=/trunk/mcs/; revision=135736
* ChannelDispatcher.cs : avoid NRE (actually it should eliminate
Thread.Abort()). Added some comments on throttling.
svn path=/trunk/mcs/; revision=135730
* aot-compiler.c (arch_emit_specific_trampoline): Rework the arm
trampoline to save 8 bytes per trampoline.
* tramp-arm.c (mono_arch_create_trampoline_code_full): Update after the
change above.
svn path=/trunk/mono/; revision=135715
* CurrencyManager.cs: In AllowNew firstly check if the list is a
IBindingList and proxy to AllowNew. IBindingList has slightly differet
logic and eventhough it's an IList IsReadOnly should not be used in this
case as it might be True but AllowNew could be True as well.
Fixes a bug uncovered by a fix to the Array class.
svn path=/trunk/mcs/; revision=135713
* ListBindingHelper.cs: In GetListItemType do a null check when
looking for IList.Item, since the impl could be explicit, and thus
private. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
Fixes the remaining part of #507120
svn path=/trunk/mcs/; revision=135698
* FtpWebRequest.cs: avoid exception when the reply from the server
contains just response code. Fixes bug #510852.
svn path=/trunk/mcs/; revision=135695
* EngineTest.cs (TestMSBuildOutputs): New.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* MSBuild.cs (Execute): Copy metadata from the @Projects items
to the target outputs.
svn path=/trunk/mcs/; revision=135694
* CSharpCodeProviderTest.cs: Avoid depending on the order in which
GetManifestResourceNames () returns resource names.
svn path=/trunk/mcs/; revision=135672
* HttpChannelManager.cs, HttpChannelListener.cs: renaming, as
"ChannelManager" is confusing (there is ChannelManagerBase).
svn path=/trunk/mcs/; revision=135671
* HttpChannelManager.cs, HttpTransportBindingElement.cs,
HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
they should be split into separate listener->reply channel lines
(remove "if (HostingEnvironment.IsAspNet)".)
svn path=/trunk/mcs/; revision=135668
* CommunicationObject.cs : OnClosed() requires call to base method.
Close() could rather abort the channel, and Abort() does not
always invke OnAbort().
* ChannelBase.cs : add call to base as above.
* ChannelDispatcher.cs :
Add call to base (see CommunicationObject change).
* InstanceContext.cs :
Add call to base (see CommunicationObject change).
* CommunicationObjectTest.cs : added a couple of close/abort tests
for state transition and base call check.
svn path=/trunk/mcs/; revision=135649
2009-06-08 Martin Baulig <[email protected]>
* debug-mini.c
(MonoDebuggerExceptionAction): Moved into debug-mini.h.
(_mono_debugger_throw_exception): Don't make this static.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_handle_exception): Moved to mini-exceptions.c
* debug-mini.c
(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
(_mono_debugger_throw_exception): Add function prototype.
(_mono_debugger_unhandled_exception): Likewise.
* mini-exceptions.c
(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
arg; return the first exception handler if the exception is caught
and we're running inside the debugger.
(mono_debugger_handle_exception): Moved here from debug-mini.c;
improve exception handle inside runtime-invoke, check whether the
exception is actually caught in the method being invoked and not
by the runtime-invoke-wrapper.
svn path=/trunk/mono/; revision=135635
* ConfigurationLocation.cs: if the path passed to constructor
starts with any of ' ' '.' '/' or '\', throw an exception. Fixes
bug #510735
svn path=/trunk/mcs/; revision=135630
* image-writer.c: Improve support for the osx assembler.
* dwarfwriter.c: Avoid the usage of subsections if the assembler doesn't
support them.
svn path=/trunk/mono/; revision=135624
* AssignCulture.cs (TrySplitResourceName): Reset culture arg to null
if returning false.
* CreateCSharpManifestResourceName.cs: Set culture to null if the
culture was invalid.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateCSharpManifestResourceNameTest.cs (TestInvalidCulture): New.
svn path=/trunk/mcs/; revision=135619
their dependant files.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest (TestBuildSolutionProject): New. Disabled for now.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
ResolvedReference.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ResolvedReference.cs: New.
* AssemblyResolver.cs (GetResolvedReference): New. Honor's the
'Private' metadata and sets CopyLocal.
(SearchPath): New. Used to track how the reference was resolved.
(IsStrongNamed): Fix potential null ref.
All the assembly resolution methods now return ResolvedReference
instead of strings, to aid in proper CopyLocal behavior and
dependency resolution.
* ResolveAssemblyReference.cs: Add support for finding related files,
satellite files, resolving dependencies, copy local files.
Resolve files specified in "AssemblyFiles" param also, used to resolve
project references and dependencies.
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Use ResolveAssemblyReference
to find satellite assemblies, dependent assemblies, dependent
files, copy local files etc.
Add targets to fetch all this info for all referenced projects,
and copy them to the target locations. Also, copy the debug (.mdb)
files. Honor, "CopyToOutputDirectory" metadata.
In tools/xbuild/tests:
* standalone/Project01: New. Solution with interdependent multiple projects,
with deploy files, satellite assemblies etc.
svn path=/trunk/mcs/; revision=135618
* image-writer.c (append_subsection): Don't align subsections of the
debug_line section as a workaround.
* dwarfwriter.c: Emit line number info in the AOT case as well.
svn path=/trunk/mono/; revision=135611
* Csc.cs (AddResponseFileCommands): Split DefineConstants on space also.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CscTest.cs (TestDefineConstants): Update DefineConstants to include
spaces also.
svn path=/trunk/mcs/; revision=135610
* AssignTargetPath.cs (Execute): Expand incoming path to absolute
path, and correctly extract relative path (skipping over the preceding
dir separator).
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* AssignTargetPathTest.cs: Update tests to not depend on a fixed
root (C:\) or cur dir.
svn path=/trunk/mcs/; revision=135609
* Target.cs (Outputs): Use ITaskItem[] for conversion, to retain
the metadata.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* TargetTest (TestTargetOutputsIncludingMetadata): New.
svn path=/trunk/mcs/; revision=135607
config/platform. Move to ..
(AddDefaultSolutionConfiguration): .. here.
(AddCurrentSolutionConfigurationContents): Use the first solution target
as the default config/platform or use Debug/anycpu if no config is available.
svn path=/trunk/mcs/; revision=135605
* DataObject.cs: Map StringFormat/Text/UnicodeText formats properly,
to match them in all the cases, as this is exactly what .net does.
Fixes#510728.
svn path=/trunk/mcs/; revision=135604
This patch is contributed under the terms of the MIT/X11 license
* mini-ppc.c (mono_arch_emit_exceptions): Change assert to
code_len <= code_size
svn path=/trunk/mono/; revision=135601
NRE. Modify System.Int32 indexer to throw ArgumentOutOfRangeException
instead of ArgumentException. Reduce number of times that item count
must be obtained.
* ContextStackTest.cs: Added unit tests for indexers, and argument
(null) checks.
svn path=/trunk/mcs/; revision=135596
* ListBindingHelper.cs: In GetListItemType handle gracefully the case
where an instance of IEnumerator returns a null value for its Current
property. Fix by Florent Fayolle (p.ricca at odyssee-ingenierie.com).
Fixes#507120.
svn path=/trunk/mcs/; revision=135593
* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
WebConfigurationManager.GetSection to retrieve the verification
setting. Instead, the setting is retrieved in the static
constructor.
* HttpRequest.cs: ApplyUrlMapping must not use
WebConfigurationManager.GetSection as it would cause a recursive
call loop. Code to detect whether url mappings are in effect has
been moved to a static constructor.
2009-06-05 Marek Habersack <[email protected]>
* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
to retrieve page theme name. GetWebApplicationSection cannot be
used because the system.web/pages section is valid also in
subdirectories. Fixes bug #510302
2009-06-05 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: OpenWebConfiguration caches
configurations with a key generated from all the parameters passed
to it, not just from path.
Added internal GetSection method which takes HttpContext as its
third parameter - used in calling OpenWebConfiguration.
FindWebConfig is no longer used in GetSection - it breaks handling
of <location> elements in config files. Fixes bug #510302
svn path=/trunk/mcs/; revision=135558
2009-06-05 Sebastien Pouliot <[email protected]>
* DownloadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
* OpenReadCompletedEventArgs.cs: Remove Address property since it's
not part of SL2. Call RaiseExceptionIfNecessary
* OpenWriteCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
* UploadStringCompletedEventArgs.cs: Call RaiseExceptionIfNecessary
In System.Net/System.Net:
2009-06-05 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Make sure *CompletedEventArgs gets called
even in case an exception occurs before the BeginGetResponse
call. Adjust API for OpenReadCompletedEventArgs.
svn path=/trunk/mcs/; revision=135545
* XmlBinaryDictionaryReader.cs : fix GetAttribute() that returns
attributes from cache that are *not* in current element.
svn path=/trunk/mcs/; revision=135517
2009-06-05 Sebastien Pouliot <[email protected]>
* ClientAccessPolicy.cs: Removed
* CrossDomainAccessManager.cs: Removed
* CrossDomainPolicy.cs: Removed
* HttpRequestChannel.cs: Remove call to CrossDomainAccessManager
since this is now done inside the BeginGetResponse call (outside
this assembly) for Moonlight (NET_2_1)
In .:
2009-06-05 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources: Remove
ClientAccessPolicy.cs, CrossDomainPolicy.cs and
CrossDomainAccessManager.cs since the code and checks is now done
inside System.Windows.Browser.dll, by BrowserHttpWebRequest, for
every non-site-or-origin web connection - i.e. http[s]
svn path=/trunk/mcs/; revision=135513
* XmlBinaryDictionaryReader.cs : there was wrong reusage of nodes
when the node was at the top of the stack. It was added twice and
call to reset resulted in end element with empty names.
* XmlBinaryDictionaryReaderTest.cs : verify that end element has
non-empty local name.
svn path=/trunk/mcs/; revision=135512
* ComboBox.cs: Properly detect whether we need to use our vertical
scrollbar or not, specially for DropDownList/DropDown styles,
depending on the value of DropDownHeight.
Fixes#508541.
svn path=/trunk/mcs/; revision=135501
* cli-blob-tests.md: Tests for type encoding.
* assembly-with-types.il: Input file with all
sorts of type encodings.
* Makefile: Add new dependency.
svn path=/trunk/mono/; revision=135497
* cli-blob-tests.md: LocalsSig tests.
* assembly-with-locals.il: File with all sort
of locals sig.
* Makefile: Add new dependency.
svn path=/trunk/mono/; revision=135495
* AspGenerator.cs: if plain text is parsed and it contains
server-side controls, parse and process them. Fixes bug #508888
2009-06-04 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ServerSideControlsInScriptBlock.aspx
2009-06-04 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #508888
svn path=/trunk/mcs/; revision=135486
* generic.cs, parameter.cs: Avoid using 'var' so we can bootstrap
the compiler from older mono versions (like moon's bots)
svn path=/trunk/mcs/; revision=135470
* HttpRequestChannel.cs : Rewrite ProcessRequest to use the async APIs
instead of the sync apis. Prevents a possible deadlock condition in
moonlight.
svn path=/trunk/mcs/; revision=135467
* WebClient_2_1.cs: Remove the creation of threads and use the
async methods provided by WebRequest (and its friends). Use an
internal object to lock on (not this). Remove comments from the
original (mono) WebClient since the code has diverged so much.
Fix DRT#326 (hopefully others too or at least more than it breaks)
svn path=/trunk/mcs/; revision=135463
* HttpApplicationFactory.cs: OnFileChanged ignores the directory
part of the file triggering the event. Fixes bug #509998
2009-06-04 Marek Habersack <[email protected]>
* InotifyWatcher.cs: filter pattern should be matched on file name
alone, not on the relative path of the file triggering the
event. Fixes bug #509998
svn path=/trunk/mcs/; revision=135460
2009-06-04 Andrés G. Aragoneses <[email protected]>
* Mono.Tuner.dll.sources:
* Mono.Tuner.csproj: Update.
* Mono.Tuner/InjectSecurityAttributes.cs:
* Mono.Tuner/MoonlightAssemblyStep.cs: Change some accessibility
keywords, to be able to override and inherit.
* Mono.Tuner/MoonlightA11yProcessor.cs:
* Mono.Tuner/MoonlightA11yAssemblyStep.cs: New steps for a11y.
svn path=/trunk/mcs/; revision=135446
* RouteValueDictionaryExtensions.cs: if both values are strings in
Has (string, value), compare them case-insensitively. Fixes bug
#502555
2009-06-04 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added two more test cases to the bug
#502555 test. They check whether url generation matches defaults
case-insensitively.
svn path=/trunk/mcs/; revision=135438
* cominterop.c (cominterop_ccw_queryinterface): Fix for bug 499566.
For QueryInterface on CCWs consider the base class
interfaces as well.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=135434
* OracleParameter.cs: Infer size only for 2.0 profile when only
value is passed. Fixes test failure under 1.1 profile.
svn path=/trunk/mcs/; revision=135427
* marshal.c metadata.c: Applied patch from Ulrich Weigand
<[email protected]>: Free the wrappers of inflated generic methods when
the inflated method is freed. Fixes#508389.
The code is contributed under the MIT/X11 license.
svn path=/trunk/mono/; revision=135422
2009-06-04 Mark Probst <[email protected]>
* sgen-gc.h: Support for Darwin by using named semaphores and
pthread conditions instead of unnamed semaphores.
2009-06-04 Mark Probst <[email protected]>
* mini-darwin.c: The exception thread must not be registered with
the GC.
svn path=/trunk/mono/; revision=135421
2009-06-04 Mark Probst <[email protected]>
* sgen-gc.c: Do TLS using pthread API if __thread keyword is not
supported.
svn path=/trunk/mono/; revision=135368
2009-06-04 Mark Probst <[email protected]>
* sgen-gc.c: Disable TLA and managed allocation if the __thread
keyword is not supported.
svn path=/trunk/mono/; revision=135367
- renamed all public classes from SQLite* to Sqlite*
- re-added Mono compatibility code for command string parsing
- re-applied several patches from the past
svn path=/trunk/mcs/; revision=135357
- Applied changes to make the sources compile (added using statements, modified code to use fully qualified type names in some places)
- Modified AssemblyInfo.cs to reference correct public key, commented out InternalsVisibleTo for the upstream Linq library, changed the
version to 2.0.0.0
svn path=/trunk/mcs/; revision=135356
* MessageEnumerator.cs: Added calls to the delegate IMessageEnumerator
for methods that use a timeout and added exception handling.
* MessageEnumeratorTest.cs: Added tests for timeout methods.
* MessageFactory.cs: Moved TimeSpanToInt32 method to here.
* RabbitMQMessageEnumerator.cs: Added Remove/MoveNext methods that include
timeouts.
* RabbitMQMessageQueue.cs: Updated to cater for moved TimeSpanToInt32 method
* MessageEnumeratorExceptionTest.cs: New
* QueueReferenceTest.cs: Incorrect namespace for test
* IMessageEnumerator.cs: Added additional methods to support operations
specified by the System.Messaging version.
* Mono.Messaging_test.dll.sources: Added MessageEnumeratorExceptionTest.cs
* Makefile: Added nunit-mocks.dll to build
svn path=/trunk/mcs/; revision=135338
* MonoSettingsSection.cs: added new property,
verificationCompatibility, which serves the same purpose as the
registry key described in http://support.microsoft.com/kb/932552
(when set to 1 it turns off virtual path validity
verification). Fixes bug #509163
2009-06-03 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: IsValidVirtualPath now checks the value
of the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility
registry key when running on Windows and also consults the
mono-specific system.web/monoSettings configuration section to see
what is the verificationCompatibility property set to. If either
of the two is set to 1, Mono will not verify the validity of
the current request's path. Fixes bug #509163
svn path=/trunk/mcs/; revision=135328
* HttpApplicationFactory.cs: OnFileChanged must check whether the
modified location is a directory before it decides to ignore it
when watcher's filter is "?eb.?config". Fixes bug #509450 (see
also bug #495011)
svn path=/trunk/mcs/; revision=135313
* HttpForbiddenHandler.cs: updated the error message to match
.NET, added requested path and description. Fixes bug #509092
* HttpException.cs: if trace is not requested, don't output <!--
following the version information in WriteFileBottom. Fixes bug
#509475
GetDefaultErrorMessage appends trace only if showTrace is
true. Fixes bug #509092
svn path=/trunk/mcs/; revision=135307
* marshal.c (get_wrapper_target_class): New helper function.
(mono_marshal_get_runtime_invoke): Place runtime-invoke wrappers into
the <Module> class of the image. Fixes#509049.
svn path=/trunk/mono/; revision=135280
* ILGenerator.cs (EmitCall): Under 2.0 profile ignore optional
arguments if the method call conv is not vararg.
2009-06-02 Rodrigo Kumpera <[email protected]>
* ILGeneratorTest.cs: Tests for #509131.
svn path=/trunk/mcs/; revision=135251
* HttpApplication.cs: LocateHandler needs to pass current request
path and filepath to WebConfigurationManager when retrieving
system.web/httpHandlers section as only this will guarantee that
any <location> elements relating to the current request's which
contain system.web/httpHandlers section will be correctly read and
used. Also fixes reading httpHandlers section if it's found in
web.config located in a subdirectory. Fixes bug #509069
svn path=/trunk/mcs/; revision=135237
* src/gpath.c (g_find_program_in_path): While searching on Windows
also try additional suffixes .exe, .cmd, .bat, and.com.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=135235
* OracleParameter.cs: If a non-zero size is passed, update
the size member but sizeSet is updated only when a non-null
value is passed.
svn path=/trunk/mcs/; revision=135234
* BuildManager.cs: allow deployment of precompiled applications under
any virtual path, not just the default one used when precompiling.
Fixes bug #483268.
svn path=/trunk/mcs/; revision=135231
* ToolTip.cs: Call the base implementation in Dispose, but do it
before anything else to avoid a regression. This way we do the default
routines related to any System.ComponentModel.Container.
Fixes#508586.
svn path=/trunk/mcs/; revision=135174
* threads.c (ves_icall_System_Threading_Thread_Sleep_internal):
Check if the thread was interrupted and proccess it straight away.
Makes abortion much more responsive.
svn path=/trunk/mono/; revision=135171
* threads.c (mono_thread_execute_interruption): Use atomic cas with
MonoThread::interruption_requested to match it's counterpart.
Fixes a hang in abort-stress-1 on a 2 core x86.
* threads.c (ves_icall_System_Threading_Thread_GetAbortExceptionState):
Fix warning.
svn path=/trunk/mono/; revision=135170
* HttpWebRequest_2_1.cs: Avoid possible NRE while settings a
complete collection.
* WebResponse_2_1.cs: Use StringComparer.OrdinalIgnoreCase on
the prefix Dictionary
svn path=/trunk/mcs/; revision=135169
Change MonoImage::name_cache to be protected by the image lock
instead of the loader lock.
* appdomain.c (deregister_reflection_info_roots): Protect access
to name_cache.
* class.c (mono_image_init_name_cache): Change from the loader lock
to the image lock. Check if the cache wasn't already created.
* class.c: Change from the loader to the image lock.
* icall.c (ves_icall_System_Reflection_Assembly_GetNamespaces): Fix
the code to hold the image lock while iterating over name_cache and
not go into mono_array_new holding it.
* metadata-internals.h: Add a comment about this change.
svn path=/trunk/mono/; revision=135168
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
Under the 2.0 profile raise the loader error.
Fixes#508532.
svn path=/trunk/mono/; revision=135159
* marshal.c (mono_marshal_get_runtime_invoke): Emit the right kind
of ldind opcode for generic instances so we don't fail for direct wrappers.
This only affect direct calls.
svn path=/trunk/mono/; revision=135158
* HttpException.cs: if custom errors are enabled and the error
code is 404 show the "standard" 404 error message instead of the
default custom error mode one. Fixes bug #508649
2009-06-01 Marek Habersack <[email protected]>
* BuildManager.cs: when throwing a 404 exception, pass the virtual
path to the exception constructor.
svn path=/trunk/mcs/; revision=135147
* MetaModelTest.cs: disabled GetActionPath test - nothing to test
there.
2009-06-01 Marek Habersack <[email protected]>
* MetaModel.cs: GetModel throws InvalidOperationException on
missing model.
Implemented GetActionPath and GetTable.
svn path=/trunk/mcs/; revision=135136
* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
attribute to generated input element in the 1.1 profile. Fixes bug
#508167. Patch from Hubert FONGARNAND
<[email protected]>, thanks!
svn path=/trunk/mcs/; revision=135134
* XmlFormatterSerializer.cs, KnownTypeCollection.cs : collection
types does not emit xsi:type when the actual type is different
from the nominal serilaization type. To achieve this, introduced
the idea of the actual serialization type.
* XmlObjectSerializerTest.cs : enable interface collection test and
add some more test lines.
svn path=/trunk/mcs/; revision=135111
* aot-compiler.c (mono_compile_assembly): Move the creation of the
output file after the code has been compiled.
svn path=/trunk/mono/; revision=135107
* aot-compiler.c aot-runtime.c: Get rid of the shared/non-shared got
entries distinction to simplify the code.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=135106
This patch is contributed under the terms of the MIT/X11 license
* template_main.c: Include string.h to define strchr, memcpy,
and strdup.
svn path=/trunk/mcs/; revision=135093
* ListItem.cs: when tracking view state is turned on after
attributes have been set, make sure that the associated state bag
begins tracking state and that all of its existing items are
marked as dirty. Do the same after loading view state. Fixes bug
#507836
2009-05-29 Marek Habersack <[email protected]>
* StateBag.cs: made SetDirty (bool) available on 1.1 as
internal. Fixes bug #507836
svn path=/trunk/mcs/; revision=135057
* XmlBinaryDictionaryWriter.cs : allow mapping an identical prefix
to different xmlns in different element level.
* XmlBinaryDictionaryWriterTest.cs : added test for failing duplicate
namespace declaration in the same element context.
svn path=/trunk/mcs/; revision=135052
* TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
I cannot precisely identify when EndRecord should be consumed,
so allow it at either at the end of ReadSizedMessage() or on
consuming preamble (it's likely handling EndRecord of previous
message though).
Now duplex IPeerResolverContract communication works between
either of .NET/Mono client and .NET/Mono server.
svn path=/trunk/mcs/; revision=135046
* TcpDuplexSessionChannel.cs : looks like I have added some bogus
code. Handle preamble ack on ReadSizedMessage() only at server.
Consume EndRecord from server, at client side. Though it is likely
changed as it's blocking when mono is at server side.
svn path=/trunk/mcs/; revision=135044
* TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
different protocol than existing code with related to preamble ack.
So changed it to work fine with .NET client (finally).
svn path=/trunk/mcs/; revision=135043
project/build events.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Correctly handle global properties. Correctly log
project/build events.
* BuildPropertyGroup.cs (Clone): Implement.
* Engine.cs (globalProperties): Rename to ..
(global_properties): .. this.
(currentlyBuildingProjectsStack): New. Used to correctly
log and raise project/build start/finish events.
(BuildProjectFile): Override any project global properties
with explicitly specified ones, here in the param @globalProperties.
Mark project for reevaluation, which will update the engine's
global properties also.
Reset both engine and project's old global properties at the end.
(UnregisterAllLoggers): Log build finished only if we are currently
building.
(StartBuild): Rename to ..
(StartProjectBuild): .. this. Keeps track of the projects being built
in the new stack, and logs project and build events accordingly.
(EndProjectBuild): New. Uses the stack to keep track of projects
finishing builds, and raises project and build events accordingly.
(LogProjectStarted): Move here from Project.cs
(LogProjectFinished): Likewise.
* Project.cs (Build): Log start of project build.
Set current directory to the project file's dir, and reset at end.
(BuildInternal): Don't log here, its done in Build.
(BuildTarget): Already built targets are keyed by the set of global
properties that they were built with.
(GlobalPropertiesToString): New.
(ResetBuildStatus): 'building' must be true to allow built targets to be reset.
(RemoveBuiltTargets): Initialize builtTargetKeys in .ctor
(Evaluate): Remove built targets only if we are currently building and
build settings are None.
Merge project's global properties with those of the parent engine.
Add missing properties from engine's global properties.
(LogTargetSkipped): Fix format string, add the reqd argument.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestGlobalProperties*): New tests
and some helper methods.
* ProjectTest.cs (TestResetBuildStatus): Reset twice. Update
the event counts.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TestMessageLogger.cs: Add counts for project/build start/finish
events.
svn path=/trunk/mcs/; revision=135019
2009-05-28 Mark Probst <[email protected]>
* collection.c (_wapi_collection_init): If pthread_create() fails,
try again with larger and then with no stack size set. Fixes
#470336.
svn path=/trunk/mono/; revision=134985
* reflection-save.c: New file, a copy of reflection.c which will contain
the reflection.emit AssemblyBuilder.Save related code. Not part of the build
yet.
svn path=/trunk/mono/; revision=134972
* Mono.Tuner/InjectSecurityAttributes.cs: show a warning if using
the MoonlightAssemblyStep but no secattr option is specified.
svn path=/trunk/mcs/; revision=134969
* SerializationMap.cs : generic interface search has to be more
complicated. Give kind error message on setting deserialized value.
svn path=/trunk/mcs/; revision=134963
* ServiceSettingsResponseInfo.cs, RegisterResponseInfo.cs,
RefreshResponseInfo.cs, ResolveInfo.cs, UpdateInfo.cs,
UnregisterInfo.cs, ResolveResponseInfo.cs, RefreshInfo.cs :
set explicit namespaces on DataContract so that their members can
be serialized in appropriate namespace (namespaces in
MessageBodyMemberAttribute does not apply there).
svn path=/trunk/mcs/; revision=134956
* mini.c (mini_create_ftnptr): New helper function, moved here from
object.c.
(mini_get_addr_from_ftnptr): Ditto.
(mini_init): Install the new helpers.
svn path=/trunk/mono/; revision=134948
* object-internals.h (MonoRuntimeCallbacks): New structure containing
callbacks supplied by the runtime.
* object.c (mono_install_callbacks): New internal function to install
the callbacks.
* object.c (mono_create_ftnptr): Move the implementation of this to
mini/.
* object.c (mono_get_addr_from_ftnptr): Ditto.
svn path=/trunk/mono/; revision=134947
* HttpUtility.cs: fixed UrlDecode for encoded strings which
should be converted to byte sequences longer than 2 bytes. Fixes
bug #507666
2009-05-28 Marek Habersack <[email protected]>
* HttpUtilityTest.cs: added test for bug #507666
svn path=/trunk/mcs/; revision=134942
* FormsAuthenticationModule.cs: if forms authentication login URL
is not rooted, make it relative to the application root, so that
MapPath maps it correctly.
Use String.Compare for checking whether requested URL matches the
login URL - be case-insensitive when running on Windows or with
IOMAP in effect.
svn path=/trunk/mcs/; revision=134931
2009-05-28 Martin Baulig <[email protected]>
Correctly initialize the debugger when embedding Mono.
* mdb-debug-info32.s, mdb-debug-info64.s: Add a global variable
`MONO_DEBUGGER__using_debugger' to the `.mdb_debug_info' section;
see documentation in mini_debug_running_inside_mdb().
* debug-debugger.c
(mini_debug_running_inside_mdb): New function to check whether
we're running inside mdb.
* mini.c (mini_init): Call mini_debugger_init() if we're running
inside the debugger.
* driver.c (mono_main): Moved the call to mini_debugger_init()
into mini_init() to make this work when embedding Mono.
* debug-debugger.c (mini_debugger_init): Warn about duplicate
calls to mini_debugger_init().
* mini.h: Rename mono_debugger_init() -> mini_debugger_init(),
mono_debugger_main() -> mini_debugger_main() and put them inside a
`MONO_DEBUGGER_SUPPORTED' conditional.
svn path=/trunk/mono/; revision=134926
2009-05-27 Martin Baulig <[email protected]>
Correctly initialize the debugger when embedding Mono.
* mini.c (mini_init): Call mono_debugger_init() if we're running
inside the debugger.
* driver.c (mono_main): Moved the call to mono_debugger_init()
into mini_init(); `mono_debug_init (MONO_DEBUG_FORMAT_DEBUGGER)'
sets the mono_debug_using_mono_debugger () flag for us, so we can
do the mono_debugger_init() call in mini_init().
svn path=/trunk/mono/; revision=134921
* cli-blob-tests.md: Tests for parameters and generics
* assembly-with-custommod.il: Added more methods to use
in the tests.
svn path=/trunk/mono/; revision=134906
* Makefile (LIB_MCS_FLAGS): added support for defining the DEBUG
symbol on compiler command line.
2009-05-27 Marek Habersack <[email protected]>
* PatternParser.cs: if Match is passed an empty path, do not
attempt to match the Url segments, skip to defaults matching right
away.
2009-05-27 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added a test for routes from
NerdDinner.
svn path=/trunk/mcs/; revision=134877
* class.cs, decl.cs, delegate.cs, parameter.cs:
Fix the build by replacing the use of 'var' with the actual
type.
svn path=/trunk/mcs/; revision=134867
* XmlReaderSettings.cs: Set prohibitDtd when changing the value
of DtdProcessing. Will fix a few Moonlight DRT tests
svn path=/trunk/mcs/; revision=134827
* BinaryMessageEncoder.cs : the serializer somehow leaves binary
xml open, so close the writer as well as open elements.
* TcpDuplexSessionChannel.cs : clear write buffer on each operation.
Do not output EndRecord and SizedMessage at a time.
svn path=/trunk/mcs/; revision=134820
* icall.c (ves_icall_Type_GetMethodsByName): Virtual methods should be
discarded based on their most specific definition so we set the method_slots
array before checking if the method is acceptable or not.
Fixes#506757.
svn path=/trunk/mono/; revision=134810
* shared.c (_wapi_shm_file): Avoid creating a .wapi directory here, create
it in _wapi_shm_file_open (), since platforms using posix shm don't need it.
svn path=/trunk/mono/; revision=134798
2009-05-26 Andrés G. Aragoneses <[email protected]>
* AssemblyInfo.cs: Add InternalsVisibleTo for MoonAtkBridge
under a MOON_A11Y_INTERNAL_HACK define.
* Makefile: Handling of the MOON_A11Y_INTERNAL_HACK env var.
svn path=/trunk/mcs/; revision=134789
2009-05-26 Mark Probst <[email protected]>
* reflection.c (create_dynamic_mono_image): Use mono_object_hash()
for the hashes whose keys are managed objects.
svn path=/trunk/mono/; revision=134778
Marek Safar <[email protected]>
A fix for bug #377509
* parameter.cs: Use predefined and not empty name for implicit
setters.
svn path=/trunk/mcs/; revision=134776
* Thread.cs: Don't set the execution context when creating a
thread because the _ec member is thread static and we set the
wrong one. It's now set by the runtime. We just provide the
correct one.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=134773
2009-05-26 Mark Probst <[email protected]>
* object-internals.h, threads.c: Set the execution context on
thread start here, not in corlib.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=134772
* TdsComm.cs (Append): When appending strings of length bigger than
output buffer, calculate and iterate over the strings according to
the output buffer length. Fixes ArgumentOutOfRangeException.
svn path=/trunk/mcs/; revision=134769
* TdsComm.cs (Append): When appending smalldatetime values, cast value of
days to short instead of ushort. Fixes Tds error in RPC packet.
* Tds70.cs (WriteParameterInfo): Instead of IsLargetType, compare only
the types that can take 0xFFFF as size if value is null.
svn path=/trunk/mcs/; revision=134767
** Fixes#382734
* Tds80.cs: Consider queries with Parameters as RPCs and avoid formatting
param values as strings. Fixes issues with locale specific string
formatting/conversions.
* TdsRpcProcId.cs: New - enum of rpc Ids to use with RPC packet type.
svn path=/trunk/mcs/; revision=134765
* System.Web.Extensions.dll.sources: added
System.Web.UI/ScriptReferenceBase.cs
2009-05-26 Marek Habersack <[email protected]>
* ScriptReferenceBase.cs: implemented (3.5 SP1)
* ScriptReference.cs: now inherits from the ScriptReferenceBase
class. Implemented all the required methods, removed some
properties which now live in the base class.
* ScriptManager.cs: code refactoring - moved parts of script
registration code to ScriptReference
2009-05-26 Marek Habersack <[email protected]>
* ListControlDesigner.cs: updated to match MSDN specs, added 2.0
methods. Used in the latest AjaxControlToolkit.
2009-05-26 Marek Habersack <[email protected]>
* System.Design.dll.sources: added
System.Web.UI.Design.WebControls/ListControlDesigner.cs
svn path=/trunk/mcs/; revision=134754
* AspGenerator.cs: before including a file specified with the
<!--#include file="" --> directive, check if it's within the
current application's root.
svn path=/trunk/mcs/; revision=134747
* TcpDuplexSessionChannel.cs : It seems that buffered stream channel
only accepts buffered messages, so do as such for write buffers.
Add RelatesTo header.
svn path=/trunk/mcs/; revision=134745
* mini-x86.c (mono_arch_output_basic_block): Fix the precision of
long_conv_to_r_un to 64 bits.
* cpu-x86.md: Increase the instruction size due to the changes.
* iltests.il.in: Add regression test.
Fixes#467201.
svn path=/trunk/mono/; revision=134729
* class.c (mono_class_setup_fields): Don't mark simd types as having
16 bytes alignment as the whole runtime doesn't support.
svn path=/trunk/mono/; revision=134723
* PrintPreviewDialog.cs: Don't use Dock.Fill for the
PrintPreviewControl, since it will be hidden in the top by our
toolbar. Use manual location and anchoring instead.
Fixes#474889.
svn path=/trunk/mcs/; revision=134720
* method-to-ir.c (mono_method_to_ir): When doing the ldobj+stobj
optimization we must check the bb of the first byte of stobj as
it's the only one set in cil_offset_to_bb.
Fixes#506915.
svn path=/trunk/mono/; revision=134713
* FileDialog.cs: When saving the size of the dialog, use the
ClientSize instead of Size, so we have always the same size for the
form. Patch by Alex Shulgin.
Fixes#503064.
svn path=/trunk/mcs/; revision=134697
* object.c (mono_create_ftnptr): Don't allocate from the code mempool since
it is read-only when using full aot.
svn path=/trunk/mono/; revision=134689
* MessageBox.cs: When showing the dialog call XplatUI.AudibleAlert to
show a beep, similar to what .net does.
Fixes#473725.
svn path=/trunk/mcs/; revision=134688
* PeerNode.cs : if Resolve() returns no address, create a new peer
address here, and shut it down when it is closed.
* PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.
svn path=/trunk/mcs/; revision=134686
* UrlPattern.cs: removed - replaced by PatternParser below.
* RouteValueDictionaryExtensions.cs: added - some shortcuts for
using RouteValueDictionary in PatternParser
* Route.cs: use the new PatternParser.
Factored out ProcessConstraint into ProcessConstraintInternal so
that the latter can be used by the PatternParser class.
Added parameter checks in ProcessConstraint.
* PatternTokenType.cs: added
* PatternToken.cs: added a helper class for the pattern parser.
* PatternParser.cs: added. New implementation of url
parser/matcher/generator which fixes all URL isues known so
far. Fixes bug #504378
2009-05-25 Marek Habersack <[email protected]>
* System.Web.Routing_test.dll.sources: added
System.Web.Routing/AssertExtensions.cs
* System.Web.Routing.dll.sources: added
System.Web.Routing/PatternParser.cs
System.Web.Routing/PatternToken.cs
System.Web.Routing/PatternTokenType.cs
System.Web.Routing/RouteValueDictionaryExtensions.cs
removed
System.Web.Routing/UrlPattern.cs
2009-05-25 Marek Habersack <[email protected]>
* RouteTest.cs: added several tests for GetVirtualPath,
GetRouteData, ProcessConstraint and refactored some tests.
* RouteCollectionTest.cs: added several tests for GetVirtualPath
* AssertExtensions.cs: added some methods to make code testing for
exception throws look nicer.
svn path=/trunk/mcs/; revision=134682
* PeerResolverSerializationTest.cs : new test for general
serialization tests.
* System.ServiceModel.dll_test.sources:
added PeerResolverSerializationTest.cs.
svn path=/trunk/mcs/; revision=134672
* SerializationMap.cs, XmlFormatterSerializer.cs :
collection types should not output xsi:type e.g. IList<T> should
not exposed xsi:type as xsi:type=List`1.
svn path=/trunk/mcs/; revision=134670
* GenericTest.cs: differentiate between "Test(int)" and
"Test<int>(int)" to prove that the correct method is invoked.
svn path=/trunk/mcs/; revision=134649
* GenericTest.cs (TestCrossAppDomainChannel): disable on MS.NET as
some generic calls do not seem to be supported anymore. It looks
like a bug, though, since the same tests are passing when performed
over the TCP channel.
svn path=/trunk/mcs/; revision=134648
* GenericTest.cs (TestTcpChannel): create a unique channel and
unregister it upon termination. Fixes issues that were uncovered
by the NUnit upgrade (see Atsushi's changelogs below).
svn path=/trunk/mcs/; revision=134646
* ContainerControl.cs:
* MenuStrip.cs
* ToolStrip.cs: Implicit mnemonic processing should happen for every
ToolStrip child, not only for MenuStrip, so we are going to do that in
ToolStrip.ProcessMnemonic, where we already had that exactly
functionality, but we are only just checking that either this instance
is a ToolStripDropDownMenu instance or Alt has been pressed. Finally
remove the extra code, since we are not going to use it now.
Fixes the remaining bits of #503663.
svn path=/trunk/mcs/; revision=134638
* mini-ppc.c (mono_arch_emit_exceptions): Increase the size of the
exception throwing code to accomodate ppc64.
* tramp-ppc.c (mono_arch_get_nullified_class_init_trampoline): Increase the
size to work on ppc64 too.
* mini-ppc.h (MonoCompileArch): Enable static rgctx trampolines on ppc64
too.
svn path=/trunk/mono/; revision=134632
* image-writer.c: Clean up the #ifdef hell a bit by adding defines for
the assembler dialect instead of using platform specific defines.
svn path=/trunk/mono/; revision=134631
* metadata-verify.c (is_valid_method_signature): Verify parts
of the return type. Provide an error message in case of failure.
svn path=/trunk/mono/; revision=134627
* wapi_glob.c: Do not need sys/param.h anymore, we now use the
POSIX PATH_MAX instead of BSD's MAXPATHLEN
* handles.c: Do not pull a reference to sockets if they are
disabled.
* sockets.c: Allow for ports to define their own ioctlsocket.
* wthreads.c: Remove obsolete code that I recently introudced (the
hook for mono_register_thread_attr.
svn path=/trunk/mono/; revision=134616
* icall.c: Remove warnings.
* mono-config.c: Allow for CONFIG_CPU to be set in config.h and
prevent auto-detection based on GCC defines.
Add PS3
* metadata-verify.c: Do not include signal.h
* generic-sharing.c, marshal.c: Add returns to avoid some warning
messages. Not sure why the g_assert_not_reached is not enough to
quiet the compiler.
* appdomain.c: Remove code that is not used when
DISABLE_SHADOW_COPY is set.
* image.c: use g_getenv
svn path=/trunk/mono/; revision=134615
* AssemblyBuilder.cs (.ctor): Error out if the not yet supported
RunAndCollect flag was given.
* AssemblyBuilderAccess.cs: Add RunAndCollect flag for net 4.0.
svn path=/trunk/mcs/; revision=134601
* Socket_2_1.cs: Do not throw a SecurityException if the security
policy check fails in NET_2_1 but set the SocketError to AccessDenied
ensure the EndPoint has a valid policy before connecting.
* SocketAsyncEventArgs.cs: Don't recurse endlessly in SendCallback
and ReceiveCallback if the socket is not connected. Check for
AccessDenied in ConnectCallback (needed for the security policy
check in NET_2_1).
svn path=/trunk/mcs/; revision=134596
* WebClient_2_1.cs: Add an internal OpenPolicyReadAsync. Check
result in ProcessResponse and throw if not Ok (200).
* WebRequest_2_1.cs: Add an internal overload to BeginGetResponse
from where we can handle downloading the policy.
svn path=/trunk/mcs/; revision=134595
* mini-arm.c (get_call_info): If a structure is split between the stack
and argument registers, we should not advance the stack pointer by the entire
native size, but just by the amount that spilled.
svn path=/trunk/mono/; revision=134587
* BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
This encoder factory implements CreateSessionEncoder() and binary
encoder does support session transmit, in different media type.
* ChannelManagerBase.cs : added utility method to create appropriate
encoder.
* HttpChannelFactory.cs, HttpChannelListener.cs,
MsmqChannelFactory.cs, MsmqChannelListener.cs,
PeerChannelFactory.cs, PeerChannelListener.cs,
TcpChannelFactory.cs, TcpChannelListener.cs : use above.
* MessageEncoderTest.cs : test CreateSessionEncoder().
svn path=/trunk/mcs/; revision=134584
* aot-compiler.c (add_extra_method): Fix up the collection of extra
methods so wrapper don't get added twice.
(add_generic_instances): Don't add methods of arrays.
* generics.cs: Mark one test as !FULLAOT.
svn path=/trunk/mono/; revision=134554
* mini-x86.c (mono_arch_emit_call): The decompose code now supports
decomposing 8 bytes structs into a LCALL.
* mini-x86.c (emit_move_return_value): We no longer push the vtype
pointer for where to store the returned regs.
* decompose.c (mono_decompose_vtype_opts): Fix the comment to properly
state the concern.
Fixes#471747, #471751 and #4734530 (in fact, it's a bunch of dups).
svn path=/trunk/mono/; revision=134536
Updated to version 1.5.3 of the RabbitMQ libraries.
2009-05-20 Michael Barker <[email protected]>
* RabbitMQMessageEnumerator.cs: Removed references to realms & tickets.
* RabbitMQMessageQueue.cs: Removed references to realms & tickets.
svn path=/trunk/mcs/; revision=134509
* CultureInfo.cs : it seems that zh-Hant and zh-Hans are introduced
as almost alias of zh-CHS/zh-CHT in vista and some new windows.
Add hacky support for them.
* CultureInfoTest.cs : test zh-Hant.
svn path=/trunk/mcs/; revision=134499
2009-05-20 Miguel de Icaza <[email protected]>
* socket-io.c
(ves_icall_System_Net_Sockets_Socket_Available_internal): Remove
the ifdef here and instead put that on io-layer
svn path=/trunk/mono/; revision=134498
* wapi_glob.c (_wapi_glob): Use PATH_MAX from limits.h instead of
the BSD name from sys/param.h (MAXPATHLEN)
Do not include pwd.h as it is not used.
svn path=/trunk/mono/; revision=134494
* aot-compiler.c (add_wrappers): Add StructureToPtr/PtrToStructure wrappers.
* basic.cs: Move the test_2_cprop_bug () test to generics.cs as it involves
generics.
svn path=/trunk/mono/; revision=134489
* thread-private.h: Use indent ifdef style for clarity
* sockets-wrappers.h: sys/socket.h conditional
* daemon-messages.h: sys/uio.h conditional.
* sockets.c: sys/ioctl.h conditional
* wthreads.c: work around for platforms with no thread fetching
information.
svn path=/trunk/mono/; revision=134488
* shared.c: Split the code to make DISABLE_SHARED remove all the
code that does not use the shared handles. Before it merely
removed some of it, with this we avoid hacks on platforms that can
not implement it.
Split the code to reduce the amount of ifdefs.
Remove #ifdef DEBUG from the source and use a macro instead.
svn path=/trunk/mono/; revision=134477
* local-propagation.c (mono_local_cprop): Avoid local propagation
across paired add/sub if the first instruction dest reg is it's
source reg. For example:
int_add_imm R12 <- R12 [1] clobbers: 1
int_sub_imm R42 <- R12 [1] clobbers: 1
The cprop pass would wrongly const prop + 1 to int_sub_imm which doesn't
maintain the math identify.
Fixes#505375.
svn path=/trunk/mono/; revision=134470
* RabbitMQMessagingProviderTest.cs: Added test for dynamic create of
MessagingProvider
2009-05-19 Michael Barker <[email protected]>
* RabbitMQMessageQueue.cs: Added comments.
2009-05-19 Michael Barker <[email protected]>
* Makefile: Added environment variable for the RabbitMQMessagingProvider
2009-05-19 Michael Barker <[email protected]>
* MessageBaseTest.cs: Used reflection to create Message Object
2009-05-19 Michael Barker <[email protected]>
* IMessage.cs: Added additional comments.
* IMessagingProvider.cs: Added additional comments.
* MessagingProviderLocator.cs: Added support for specifing messaging
implementation using an environment variable.
svn path=/trunk/mcs/; revision=134437
* cli-tables-tests.md: Add tests for the generic param constraint table.
* assembly-with-generics.cs: Add stuff for new tests.
svn path=/trunk/mono/; revision=134431
* cli-tables-tests.md: Add tests for the methodspec table.
* assembly-with-generics.cs: Add stuff for new tests.
svn path=/trunk/mono/; revision=134428
* cli-tables-tests.md: Add tests for the generic param table.
* assembly-with-generics.cs: New file for generic tests.
* Makefile: Adjust the build to the new file.
svn path=/trunk/mono/; revision=134426
2009-05-19 Mark Probst <[email protected]>
* sgen-gc.c: Use generation enum more consistently and use the
correct generation in mono_gc_register_for_finalization().
svn path=/trunk/mono/; revision=134400
* XmlSchemaUtil.cs, BuiltInDatatype.cs, XmlSchemaComplexType.cs:
Introduced new MS compatibility option by environment variable,
for bug #502115.
svn path=/trunk/mcs/; revision=134397
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
incomplete. Patch by Jonas Larsson. Fixed bug #502168.
2009-05-07 Jonas Larsson <[email protected]>
* XmlSchemaValidatorTests.cs : added test for bug #501666.
svn path=/trunk/mcs/; revision=134396
* XmlBinaryDictionaryReader.cs : fix utf16 array on getting its
length. Report correct length (since BinaryReader is directly used
it makes no sense to incompletely keep track of position in Source).
* XmlBinaryDictionaryReaderTest.cs : added test for utf16 chars.
svn path=/trunk/mcs/; revision=134388
* cli-tables-tests.md: Add tests for the nested class table.
* assembly-with-complex-type.cs: Add a nested class.
svn path=/trunk/mono/; revision=134363
* cli-tables-tests.md: Add tests for the manifest resource table.
* Makefile: Update to the new dependency.
* assembly-with-resource.cs: Add an exported type to be used
by the new tests.
svn path=/trunk/mono/; revision=134361
* Rename `threads.c' to `wthreads.c' as broken build systems are
not able to cope with two files with the same name across multiple
svn path=/trunk/mono/; revision=134356
* DateTimePicker.cs: Call Focus in HideMonthCalendar to avoid
duplication of code, as well as actually getting the focus back in
*any* scenario where the drop down is closed.
svn path=/trunk/mcs/; revision=134332
* ToolStripRenderer.cs: Apply patch from Thomas Goldstein to make
disabled graphics look closer to the ones that .Net produces.
[Fixes bug #473660]
svn path=/trunk/mcs/; revision=134324
* DateTimePicker.cs: When calculating the max width for the year part,
use the current value, since *all* the possible values are exactly a 4
digits number. This way we avoid a ArgumentOutOfRangeException trying
to check against different values.
Fixes#500917.
svn path=/trunk/mcs/; revision=134317
* SerializationMap.cs, XmlFormatterDeserializer.cs,
KnownTypeCollection.cs : Support for array of some primitive types
in the deserializer was missing, which resulted in peer resolver
RegisterInfo deserialization failure.
svn path=/trunk/mcs/; revision=134312
* XmlFormatterDeserializer.cs : remove type lookup optimization
(since .NET 3.5 introduced system types with DC) and fix
serialization of system types (ISerializable types were not
resolved in previous code).
svn path=/trunk/mcs/; revision=134310
* exceptions-ppc.c: Remove the caching from the trampoline creation
functions, it is already done in the caller.
svn path=/trunk/mono/; revision=134302
messages, and improve compatibility with MS. Modified set_Capacity to
no longer change MaxCookieSize when new value is less than
MaxCookieSize.
* CookieTest.cs: Added test for Path.
* CookieContainerTest.cs: Added and improved .ctor tests.
Improved tests for Capacity and MaxCookieSize. Added tests for
PerDomainCapacity. Added tests for Add overloads, GetCookieHeader,
GetCookies and SetCookies. Added test for bug #421827.
svn path=/trunk/mcs/; revision=134295
* mini.c method-to-ir.c mini-trampolines.c: Get rid of the usage of
mono_marshal_get_static_rgctx_invoke (), all platforms which support
gshared use the static rgctx trampolines now.
svn path=/trunk/mono/; revision=134285
2009-05-16 Zoltan Varga <[email protected]>
* class.c (mono_set_generic_sharing_supported): New internal function.
(mono_class_generic_sharing_enabled): Move the #ifdef stuff to the JIT.
In mini/
2009-05-16 Zoltan Varga <[email protected]>
* mini.c (mini_init): Call mono_set_generic_sharing_supported () if the
platform supports it.
svn path=/trunk/mono/; revision=134284
* RouteCollection.cs: when there is no named route, try the current
route before going through the list. The known values (default or
not) for the current route are merged with the values provided when
attempting to match.
Example:
Html.RouteLink ("Text", new { page = 5 });
when the current path is /some/path-here and the route is:
routes.MapRoute("RouteName", "some/{one}-{two}/{page}",
new { controller = "Some", action = "Index", page = 1});
svn path=/trunk/mcs/; revision=134272
** Fixes#325464 - ToolItems.xsd
* CustomDataClassGenerator.cs (CreateDataSetTableMembers): Prefix a "_" to
member names when it is same as that of the dataset. Fixes the CS0542 error
during compilation of the generated source.
svn path=/trunk/mcs/; revision=134263
* cli-tables-tests.md: Add tests for the exported type table.
* assembly-with-module.il: Old file not longer needed.
* assembly-with-module.cs: File use to generate
tests for the exported table.
* module.il: Same. This file is written in MSIL because
gmcs/SRE can't handle the AssemblyAttributesGoHere hack.
* Makefile: Adjust the build to the new files.
svn path=/trunk/mono/; revision=134253
* MessageBox.cs: When handling ProcessDialogChar, check that
CancelButton is not null before trying to use it, to avoid a null ref
exception. We don't need to do that on the ok/yes buttons, since they
always exist.
Fixes#503935.
svn path=/trunk/mcs/; revision=134226
* Mono.Tuner/InjectSecurityAttributes.cs: fix issues
with non unique MethodReference.ToString for generic method defs.
svn path=/trunk/mcs/; revision=134200
* ListBox.cs: Handle the key down event in WndProc instead of doing it
in an event handler, as we need to avoid any operation in case
the user has handled it in its own OnKeyDown handler, and this can't
be achieved since our handler would be the first one always.
* FontDialog.cs: Update the calls since our method handling key down
has been renamed.
Fixes#503469.
svn path=/trunk/mcs/; revision=134198
* MessageFault.cs : Reason is mandatory. raise XmlException, and
CommunicationException in each CreateFault().
* soap-fault-incomplete.xml : new test file.
* MessageFaultTest.cs : new test.
* System.ServiceModel.dll_test.sources: added MessageFaultTest.cs.
svn path=/trunk/mcs/; revision=134197
* XPathNavigatorReader.cs : LookupNamespace() in XmlReader from
ReadSubtree() should work correctly on text nodes.
* XPathNavigatorCommonTests.cs : test that LookupNamespace() in
XmlReader from ReadSubtree() works correctly on text nodes.
svn path=/trunk/mcs/; revision=134196
* TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
Open(). Some (but not all yet) continuous communication works now.
Use ProtocolException. Remove dummy binary session string.
svn path=/trunk/mcs/; revision=134185
* Application.cs: We should dismiss the active ToolStrip when we
receive a WM_SYSKEYDOWN message, instead of WM_SYSKEYUP, so the next
keyboard short cut can be properly processed by another menu item.
Fixes part of #503663.
svn path=/trunk/mcs/; revision=134183
* gc.c: MachO/Darwin supports and uses semaphores fine for this
use-case and is significantly more performant than the wapi layer.
svn path=/trunk/mono/; revision=134180
* HtmlForm.cs: if application isn't running on /, make sure we
generate the correct relative path for the action form attribute.
svn path=/trunk/mcs/; revision=134176
* Socket_2_1.cs: Add ConnectAsync support for NET_2_1 which will
ensure the EndPoint has a valid policy before connecting.
* SocketAsyncEventArgs.cs: Add support for IList<ArraySegment<byte>>
when sending. Add ConnectSocket for NET_2_1
svn path=/trunk/mcs/; revision=134171
disable QueryCache.GetFromSelectCache(), as the cache keeps breaking
for currently undiagnosed reasons. With this disabled, NerdDinner
seems to work properly.
svn path=/trunk/mcs/; revision=134143
* mini-mips.c mini-mips.h exceptions-mips.c: Transition the mips backend
to use mono_arch_throw_corlib_exception.
svn path=/trunk/mono/; revision=134141
* DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
DnsEndPoint that match the requested AddressFamily
svn path=/trunk/mcs/; revision=134140
* System.ComponentModel/ListChangedEventArgs.cs: Fix .NET compatibility
problems (discovered from trying to run the System.Data.Linq
unit tests).
* Test/System.ComponentModel/ListChangedEventArgsTest.cs: Added; tests
for ListChangedEventArgs.
svn path=/trunk/mcs/; revision=134138
* Makefile.am (test-coreclr-security): Use the net_2_1_raw profile since
the net_2_1 profile is no longer generated.
svn path=/trunk/mono/; revision=134129
* aot-runtime.c (decode_patch): Allocate the data for R4/R8 from the
domain mempool.
* mini.c (mono_patch_info_dup_mp): Copy the table of switch targets too.
svn path=/trunk/mono/; revision=134120
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
sending/receiving SizedMessageRecord parts to manager class.
Handle writer session, though it is likely broken at dictionary
writer part (no string is written so far).
* BinaryMessageEncoder.cs : add writer session and rename reader
session.
svn path=/trunk/mcs/; revision=134117
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
is mandatory in initiator preamble packet. Handle Fault reply in
initiator preamble.
svn path=/trunk/mcs/; revision=134111
* TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
based communication under TcpBinaryFrameManager class.
svn path=/trunk/mcs/; revision=134107
* SerializationMap.cs: interface collection failed to serialize as
it was calling inappropriate GetInterfaceMap().
* XmlObjectSerializerTest.cs : added serialization test for
interface collection.
svn path=/trunk/mcs/; revision=134100
* Test/test-config-file: Revert the prior change, as this breaks 1.0
profile testing.
* Test/test-config-file-net-2.0: Added; config file to use when testing
under the .NET 2.0+ profile, for #502944.
svn path=/trunk/mcs/; revision=134099
* HandlerFactoryConfiguration.cs: if we're matching a default
handler, disallow caching.
2009-05-14 Marek Habersack <[email protected]>
* HttpHandlersSection.cs: if we're matching a default handler,
disallow caching.
2009-05-14 Marek Habersack <[email protected]>
* HttpApplication.cs: LocateHandler won't cache if a default
handler was returned.
svn path=/trunk/mcs/; revision=134097
* aot-compiler.c: Emit a local symbol prefixed with the assembly name
for the got to make debugging easier and to avoid confusing it with the
system got.
svn path=/trunk/mono/; revision=134089
* aot-compiler.c (emit_method_code): Emit a C style symbol for each
method so a breakpoint can be set when using gdb.
svn path=/trunk/mono/; revision=134086
** Fixes rest of #497715 - Patch by Jonas Larsson <[email protected]>
* TdsMetaParameter.cs: Add support for XML type. For now, handle
XML type as just NVarchar.
svn path=/trunk/mcs/; revision=134079
2009-05-13 Mark Probst <[email protected]>
* sgen.c: Speed up weak links and finalizers by grouping them by
generation.
svn path=/trunk/mono/; revision=134053
* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
MessageProcessingContext.cs : reply processing is also needed by
non-request channels (i.e. duplex). Current code basis lacked
such possibility. Quick fix by adding duplex support in
ReplyHandler so far.
svn path=/trunk/mcs/; revision=134046
* ChannelDispatcher.cs, SecurityHandler.cs,
InputOrReplyRequestProcessor.cs, MessageProcessingContext.cs :
remove default communication timeouts from several types. They
bring bogus NRE. Instead, fill timeouts in ChannelDispatcher and
use it when required (it was actually *only* request processor).
* ChannelDispatcherTest.cs : make sure ctor args are nullable.
svn path=/trunk/mcs/; revision=134044
2009-05-13 Mark Probst <[email protected]>
* marshal.c (delegate_hash_table_add): When overwriting an entry,
free the old GCHandle (only applies to SGen).
svn path=/trunk/mono/; revision=134040
* UrlPattern.cs: The
value comparison is done case-insensitively when the dictionary
values are strings. Fixes bug #502555
svn path=/trunk/mcs/; revision=133997
* mini.c (mini_init): Install mono_aot_get_imt_thunk as the IMT thunk
builder when using full aot.
* mini-amd64.c (mono_arch_build_imt_thunk): Don't handle the full-aot case
here, it is already handled.
* mini-arm.c (mono_arch_emit_imt_argument): Pass the dynamic imt arg
correctly for IMT.
* aot-compiler.c (arch_emit_imt_thunk): Implement this for ARM.
* mini-arm.h: Enable IMT for full aot.
svn path=/trunk/mono/; revision=133992
* UrlPattern.cs: TrySubstitute performs substitution trimming. If
a segment would be set to a default value and all of its following
segments as well, it will be omitted from the generated URL.
svn path=/trunk/mcs/; revision=133990
2009-05-12 Mark Probst <[email protected]>
* monitor.c, monitor.h (mono_monitor_get_object_monitor_weak_link):
New function for returning a monitor's weak link if it has one.
* sgen-gc.c: Remove an object's monitor's weak link (if it has
one) when clearing a domain. These can still be around because
the object might not have been collected.
svn path=/trunk/mono/; revision=133989
TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
* System.Diagnostics/TraceSourceInfo.cs: Add a new constructor,
TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
the DefaultTraceListener w/o depending upon (the possibly still
initializing) TraceImpl members. Fixes#502944.
* Test/test-config-file: Add a /configuration/system.diagnostics/source
section to elicit the buggy behavior found in #502944.
svn path=/trunk/mcs/; revision=133981
* mini.c (mini_init): Don't disable IMT for full aot if the
architecture supports it.
* mini.h (MonoAotTrampoline): New enum containing the different types
of 'numerous' trampolines.
(MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c aot-runtime.c: Unify the handling of specific and
static rgctx trampolines. Add support for full-aot IMT thunks.
* mini-amd64.h: Enable IMT for full aot.
svn path=/trunk/mono/; revision=133971
* ComboBox.cs: If auto complete is being used, it is needed to update
the actual value of the combo box, doing it immediately if the user
presses Enter, or doing it when our combo box loses focus. Finally,
when handling Enter and Escape keys for the combobox, don't try to
hide the listbox if it is not visible in the first place.
Fixes part of #489339.
2009-05-11 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=133969
* TestDriver.cs: Add a CategoryAttribute class and an --exclude option
to exclude tests belonging to a category.
* generics.cs: Mark some tests with a !FULLAOT category.
* Makefile.am (fullaotcheck): Run tests with --exclude !FULLAOT. Include
generics tests.
svn path=/trunk/mono/; revision=133968
* WebHeaderCollection_2_1.cs: Headers are case insensitive but we
must keep them in their original form since AllKeys property will
report them that way and user code (like DRT#288) can depends on
this behavior.
svn path=/trunk/mcs/; revision=133966
* template_main.c: Some small improvements on Windows: No need to
include <shellapi.h>, <windows.h> does it already. Don't use the
argc value as passed to main(), instead just let
CommandLineToArgvW() overwrite it. Free the buffer returned by
CommandLineToArgvW().
svn path=/trunk/mcs/; revision=133962
* gc.c (mono_gc_init): Set gc_thread on creation. This avoids the
prevous wait that resulted in a deadlock on Windows when initializing
the runtime form DllMain. Also results in improved startup time.
(finalizer_thread): Get rid of thread_started_event.
* threads.c, threads-types.h (mono_thread_create_internal): Return the
resulting MonoThread.
Contributed under MIT/X11 license.
Also fixed ChangeLog encoding.
svn path=/trunk/mono/; revision=133959
* assembly-with-methods.cs: Mark the class with the
P/Invoke as abstract.
* cli-tables-tests.md: Add tests for implmap.
svn path=/trunk/mono/; revision=133947
* ToolStripDropDownTest.cs: New test to assure the Height atfer
calculating the layout depends on ToolStripItem.GetPreferredHeight.
svn path=/trunk/mcs/; revision=133943
* ToolStripDropDownMenu.cs: Use the height returned by
ToolStripItem.GetPreferredHeight to calculate our own height.
svn path=/trunk/mcs/; revision=133941
* security-core-clr.c: Delegate checks are done at creation time,
not a invocation time. Fix exception for Telerik Silverlight demo
svn path=/trunk/mono/; revision=133938
cases and never when the "this" property is used. Call ToLower
in SetHeader too in order to avoid typos.
2009-05-11 Sebastien Pouliot <[email protected]>
svn path=/trunk/mcs/; revision=133930
2009-05-11 Mark Probst <[email protected]>
* sgen-gc.c (need_remove_object_for_domain): Remove the special
case for the Thread class.
* threads.c: Do clean-up of abort exception/state in
thread_cleanup() instead of Thread.free_internal(). Also clean up
current_appcontext. The reason we have to do that is because
those references might point into another domain and if that
domain is unloaded before the thread is finalized, they point to
invalid data.
svn path=/trunk/mono/; revision=133925
* HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
to use, with special care, the Headers property
* WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.
svn path=/trunk/mcs/; revision=133916
* template_main.c: Enable passing options to the bundled Mono
interpreter through a MONO_BUNDLED_OPTIONS environment
variable. Requested in bug #495858.
Enable non-ASCII (arbitraty Unicode in fact) command-line
parameters to a mkbundled executable on Windows. Use
GetCommandLineW(), CommandLineToArgvW(), and then
g_utf16_to_utf8(). From bug #446172.
svn path=/trunk/mcs/; revision=133915
* XmlSchemaComplexType.cs : make complex content type work like .NET
does. Patch by Jonas Larsson. Fixed bug #501814.
* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
Larsson.
svn path=/trunk/mcs/; revision=133908
* XmlSchemaComplexType.cs : do not forget to clear attributes
before Compile(). Patch by Jonas Larsson. Fixed bug #501763.
* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.
svn path=/trunk/mcs/; revision=133905
* UrlPattern.cs: TrySubstitute treats defaults differently
now. They are not consulted when checking if the passed values
match the pattern, but only when substituting the values. Fixes
bug #502555
2009-05-11 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added test for bug #502555
svn path=/trunk/mcs/; revision=133904
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.
* XmlSchemaValidatorTests.cs : added test for bug #501666.
svn path=/trunk/mcs/; revision=133903
* aot-compiler.c (emit_and_reloc_code): Move the implementation of
MONO_PATCH_INFO_GOT_OFFSET to a separate arch-specific function.
(emit_plt): Fix a warning.
svn path=/trunk/mono/; revision=133895
* TreeNode.cs: When setting Checked, do a double null check, since the
current node can still get a null parent handling
TreeView.OnAfterCheck.
Fixes#502567.
svn path=/trunk/mcs/; revision=133868
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx
2009-05-10 Marek Habersack <[email protected]>
* AspGenerator.cs: keep processing the tag if it is not a server
one and contains expressions and no code render blocks.
2009-05-10 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added a test for expressions in
list control items.
svn path=/trunk/mcs/; revision=133861
* LinkedListTest.cs: Added NotWorking test for #481621,
converted from example code by Andy Hume <[email protected]>.
svn path=/trunk/mcs/; revision=133858
* aot-compiler.c aot-runtime.c: Fix the build by moving is_shared_got_patch
back into aot-compiler.c to a place where the other functions shared by
the runtime and aot compiler are.
svn path=/trunk/mono/; revision=133856
* aot-compiler.c aot-runtime.c: Emit the got addr using a separate symbol,
as done previously, instead of in MonoAotFileInfo, since pointers might have
alignment requirements.
* mini.h: Bump AOT file format version.
svn path=/trunk/mono/; revision=133855
* HttpWebRequest_2_1.cs: Move Headers property logic here (as
shown by adding more unit tests)
* WebClient_2_1.cs: Add comment that Headers are not validated
there, but later.
* WebHeaderCollection_2_1.cs: Add a SetHeader method that can
work around the normal validations that the "this" property
needs to do.
svn path=/trunk/mcs/; revision=133852
* aot-runtime.c (mono_aot_is_shared_got_patch): Move this routine
that is used at runtime from the aot-compiler.c, this makes it
work on setups that remove the AOT compiler from the output
image.
svn path=/trunk/mono/; revision=133848
2009-05-10 Andreas Faerber <[email protected]>
* null-gc.c (mono_gc_weak_link_add, mono_gc_clear_domain): Fix
stub signatures.
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=133844
* verify.c, metadata-verifier.c: Add support for disabling the
verifier in some builds.
[ Sorry, my previous commit accidentally commited some work in
progress ]
svn path=/trunk/mono/; revision=133840
* configure.in: Instead of reporting the various disabled features
in a loop, where a keyword might fail, report the actual disabled
features in the sections that handle them
svn path=/trunk/mono/; revision=133837
* decompose.c (mono_decompose_long_opts): Move the ppc/sparc specific
stuff to mono_arch_decompose_long_opts ().
(mono_decompose_opcode): Remove some dead code.
svn path=/trunk/mono/; revision=133833
* messages.c: Split the scan into common and uncommon messages to
allow the messages that are not produced by Mono to be removed on
embedded scenarios.
svn path=/trunk/mono/; revision=133830
* messages.c (message_string): instead of having a gigantic switch
table, use a sorted structure in memory and do a binary search on
it.
This reduces the runtime size by 49k and the debugging symbols by
400k.
svn path=/trunk/mono/; revision=133828
2009-05-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Open up the internals to System.Windows.Browser
(needed right now), System.Windows and System.Xml (needed for an
upcoming patch).
In System.Net:
2009-05-09 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: When associated with a WebRequest
the header collection items needs to be validated since not all
headers will be valid. Part of fix for DRT#532
svn path=/trunk/mcs/; revision=133826
* DateTimePicker.cs: Add a UIA-specific property to ensure that if
is_checkbox_checked is changed, we won't break.
svn path=/trunk/mcs/; revision=133815
ToolStripDropDownButton and we get Select()ed.
* ToolStripMenuItemTest.cs: Improve test, and remove the
NotWorking attribute. Also remove the 'var' keywords, doh!
svn path=/trunk/mcs/; revision=133814
* ToolStripControlHost.cs: DefaultSize must return the current size of
the Control, not the value returned by GetPreferredSize. Also connect
a handle to the control Resize event, and use it to fire
OnHostedControlReize.
Fixes the remaining bits of #483146.
svn path=/trunk/mcs/; revision=133811
* ToolStripDropDown.cs: When performing the layout, use
ToolStripItem.GetPreferredSize ().Height instead of
ToolStripItem.Height, since we are already using it that way in this
same method.
Fixes part of ##483146.
svn path=/trunk/mcs/; revision=133810
* DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
OnUIASelectionChanged when ShowCheckbox is true and the checkbox
recieves focus. Part of fix for #502029.
svn path=/trunk/mcs/; revision=133783
* method-to-ir.c (mono_method_to_ir): Fix boostrap of non amd64 builds
cmethod can be null for quite a some reasons.
svn path=/trunk/mono/; revision=133779
** Fixes#497715
* SqlDataReader.cs: (GetSqlXml): Handle Xml types for TDS 8/8.1
clients as well.
* SqlParameter.cs: Map XML type properly.
svn path=/trunk/mcs/; revision=133769
* method-to-ir.c (mono_emit_call_args): Add a 'tail' flag argument.
(mono_method_to_ir): Use MONO_ARCH_USE_OP_TAIL_CALL macro to determine
whenever to make tail calls using OP_TAIL_CALL. Enable support for tail
calls returning structures by addr on amd64.
* mini-amd64.h (MONO_ARCH_USE_OP_TAIL_CALL): New arch-specific macro.
* iltests.il.in: Restructure the tail call tests a bit.
svn path=/trunk/mono/; revision=133766
* runtime/Makefile.am (mcs-compileall): Pass --security=validil
to the runtime so the assemblies are not required to be verifiable.
svn path=/trunk/mono/; revision=133737
* Connection.cs: if the socket is already disconnected, Shutdown will
fail with a SocketException... Also, catch *all* the possible
exceptions since the socket.Close method could also throw
ObjectDisposedException.
Fixes bug #449092.
svn path=/trunk/mcs/; revision=133734
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
just saving it in a static variable. Also modified microseconds
calculation to avoid overflow.
svn path=/trunk/mono/; revision=133725
* UniqueId.cs: Fix attributes for v3.5 (and later 2.0 SP) and remove
them (in particular [SecurityTreatAsSafe]) from the NET_2_1 build.
svn path=/trunk/mcs/; revision=133716
* XElement.cs (Load (XmlReader,LoadOptions)): prevent a NRE if
the provided XmlReader doesn't have existing settings.
Fixes#501589.
svn path=/trunk/mcs/; revision=133710
* gen-md-tests.c (next_token): Stop taking chars
for a token when encountering the first delimiter char.
This makes the parser less brain-dead when encountering
sequences like "foo()".
svn path=/trunk/mono/; revision=133695
Reverting because regression unfixed for 4 days:
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_LocalEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_TCP6ROW:get_RemoteEndPoint () failed with exception '(null)':
Compilation of System.Net.NetworkInformation.Win32IPGlobalProperties/Win32_MIB_UDP6ROW:get_LocalEndPoint () failed with exception '(null)':
../mcs/class/lib/net_2_0/System.dll verification failed
svn path=/trunk/mono/; revision=133677
* ToolStripMenuItemTest.cs: Add a test for GetCurrentParent
(passes on MS.NET). Related to a11y bugs #485524 and #479397.
svn path=/trunk/mcs/; revision=133676
* cli-tables-tests.md: Tests for propertymap table.
* assembly-with-cas.cs: New test file for producing tests
for property tables.
* Makefile: Add new dependencies.
svn path=/trunk/mono/; revision=133627
* Lease.cs: Don't use ArrayList.Remove() to remove sponsors because
it will end calling Equals, which may crash if the sponsor is not
available anymore. Just compare references.
svn path=/trunk/mcs/; revision=133621
* RealProxy.cs: If async dispatch crashes, don't propagate the
exception. The exception will be raised when calling EndInvoke.
svn path=/trunk/mcs/; revision=133620
* TemplateParser.cs: PageParserFilterType uses
HttpApplication.LoadType so that it is able to load the filter
from App_Code or with not fully qualified type names.
svn path=/trunk/mcs/; revision=133606
* configure.in: Reduce configure-time dependencies by using
pkg-config the way it was originally intended to be used, and not
with the incredibly lame and painful inducing pkg.m4 file.
I am on a quest to remove this gratuitous dep on pkg.m4 that is
making people's lives miserable around the globe, just because
someone can not be bothered to learn the shell if construct.
svn path=/trunk/mono/; revision=133582
* UrlPattern.cs: Match adds defaults values should some keys be
missing from the url. Fixes bug #500739
* Route.cs: a small GetRouteData loop optimization
2009-05-05 Marek Habersack <[email protected]>
* RouteTest.cs: added test for bug #500739
svn path=/trunk/mcs/; revision=133577
* Methods.cs: if SoapRpcMethodAttribute doesn't specify the action
or the action name is an empty string, generate the Action in
SoapMethodStubInfo constructor. Fixes bug #459790
svn path=/trunk/mcs/; revision=133574
* BuildManager.cs: RemoveFailedAssemblies wraps the compilation
exception to be rethrown in a HttpException instance.
* AspGenerator.cs: create a Location and pass it to the parser
before calling AddDirective from GetInheritedType, so that we get
meaningful exception messages with source, line information etc.
svn path=/trunk/mcs/; revision=133568
* eglib.vcproj, genmdesc.vcproj, libgc.vcproj, libmono.vcproj,
mono.vcproj,monoposixhelper.vcproj : Adding TARGET_X86 and
TARGET_AMD64 preprocessor definitions to the Win32 and x64 targets.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=133532
proper time when SelectionIndex changes. Fixes#499887.
* TabControlTest.cs: More accurate test for bug#499887 showing
the SelectedIndex at the moment of the event (passes on Vista).
svn path=/trunk/mcs/; revision=133510
* ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
which takes AspComponentFoundery as its
parameter. AspGenerator.RootBuilder isn't initialized until after
the parser is initialized.
* TemplateControlCompiler.cs: make sure to call
ProcessGeneratedCode on each instance of ControlBuilder after it's
fully generated. Fixes bug #500075
* TemplateBuildProvider.cs: moved the directive regex to
AspGenerator
* BaseCompiler.cs: added two internal properties, BaseType and
DerivedType, which are used in calls to
ControlBuilder.ProcessGeneratedCode. Fixes bug #500075
* AspGenerator.cs: implemented a work around for our parser
limitation which is unable to extract the page/control's base type
before parsing the actual file contents. This is necessary to
support ASP.NET MVC's "generic" Inherits attribute. The reason we
need to find out what the base type is before parsing the file is
that we need to look at the type's custom attributes to see if a
root control builder type is specified (which is what ASP.NET MVC
does) and, if yes, use it instead of the default type. Fixes bug
#500075
2009-05-04 Marek Habersack <[email protected]>
* TemplateParser.cs: take RootBuilder from the associated
generator.
Allow the main page directive to be added twice if the parser
needs it. Used by AspGenerator when extracting the inherited type
name before actual parsing. Fixes bug #500075
* FileLevelControlBuilderAttribute.cs,
FileLevelPageControlBuilder.cs, FileLevelUserControlBuilder.cs:
implemented
* ControlBuilder.cs: added a new internal property,
DataBindingMethod.
Implemented ProcessGeneratedCode.
svn path=/trunk/mcs/; revision=133500
* aot-compiler.c (encode_patch_list): Simplify this considerably as we are
no longer saving offsets, so just save the patch types along with the other
info.
* aot-runtime.c (load_patch_info): Update after the changes to
encode_patch_list ().
(decode_got_entry): Removed, merged into load_patch_info ().
(is_shared_got_patch): Removed, call the same function from
aot-compiler.c.
* mini.h: Bump aot file format version.
svn path=/trunk/mono/; revision=133469
* Ping.cs: we just need the address(es), not a host entry. This avoids
querying the DNS server(s) when the target is an IP address.
svn path=/trunk/mcs/; revision=133459
* MonthCalendar.cs: In SetBoundsCore always do the bounds check to
have valid values, even if BoundSpecified is not including
Size/Height/Width - this is useful when we are in a control using Dock
or Anchor.
Fixes part of #483146.
svn path=/trunk/mcs/; revision=133441
* debug-debugger.c (debugger_insert_source_breakpoint): Don't call
mono_debugger_insert_method_breakpoint() since the class init
handler we're inserting at the top of the method already gives us
a notification.
svn path=/trunk/mono/; revision=133425
* CredentialCache.cs : implement all not-implemented methods.
Patch by Mineda Nozomi. Close bug #499556.
* CredentialCacheTest.cs : new tests for get/add/remove.
Patch by Mineda Nozomi.
svn path=/trunk/mcs/; revision=133400
2009-05-02 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs (ThrowSecurityException): Don't include
CAS-specific information when throwing a SecurityException in
NET_2_1
In System:
2009-05-02 Sebastien Pouliot <[email protected]>
* Console.cs: Remove Windows-specific p/invokes and SSC code
from the NET_2_1 build.
In System.Security.Cryptography.X509Certificates:
2009-05-02 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Remove code to initialize from an handle
in NET_2_1 since this is only possible from Windows and would be
SC anyway.
In System.Reflection:
2009-05-02 Sebastien Pouliot <[email protected]>
* Assembly.cs: Exclude CAS-specific code for NET_2_1
svn path=/trunk/mcs/; revision=133384
* Tds.cs (ExecuteQuery): Reset all the variables related to LoadData when
performing queries with SequentialAccess set to true. Fixes incorrect
handling of data retrieval when consecutive queries are run with
SequentialAccess set to true.
svn path=/trunk/mcs/; revision=133366
* Tds.cs (ExecuteQuery): Reset SequentialAccess read state variables
in order to avoid blocking forever when two consecutive queries are
executed with SequetialAccess set to true.
svn path=/trunk/mcs/; revision=133365
* mini-llvm.c mini-x86.c: Implement 32 bit and x86 support.
* ssa.c (mono_ssa_compute): Don't skip I8 values when using LLVM.
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Update to the latest
LLVM API.
* mini.c (mini_method_compile): Set the from_llvm flag in MonoJitInfo
if needed. Don't decompose long operations when using llvm.
svn path=/trunk/mono/; revision=133297
while reading the .config file, instead cache the values and refer
to the cached values during initialization. This prevents recursive
initialization calls (Trace.OnInit() ... Trace.Listeners.Add() ...
Trace.OnInit() ...), and associated duplicate parsing of .config file
sections. Fixes bnc#499442.
* TraceImpl.cs: Cope with DiagnosticsConfigurationHandler changes.
* TraceListenerCollection.cs: Add internal
Add(TraceListener,TraceImplSettings) method for adding
TraceListeners during DiagnosticsConfigurationHandler initialization
(which can't access TraceImpl, as we may still be reading the
.config file to determine the TraceImpl values).
svn path=/trunk/mcs/; revision=133291
* CodeAccessSecurityAttribute.cs, SecurityAction.cs,
SecurityAttribute.cs, SecurityPermissionAttribute.cs: Add [Obsolete]
on NET_2_1 since CAS stuff is not available in Moonlight. Note that
the types needs to be present because compiler insert them inside
assemblies.
svn path=/trunk/mcs/; revision=133279
2009-05-01 Mark Probst <[email protected]>
* gc.c (mono_gc_run_finalize): Don't set the domain too late,
because mono_delegate_free_ftnptr() needs it.
svn path=/trunk/mono/; revision=133261
* cli-tables-tests.md: Tests for event map table.
* assembly-with-events.cs: New test file for producing tests
for cattr table.
* Makefile: Add new dependency.
svn path=/trunk/mono/; revision=133243
* cli-tables-tests.md: Tests for standalonesig table.
* assembly-with-complex-type.cs: Added more stuff for
field layout tests.
svn path=/trunk/mono/; revision=133241
* cli-tables-tests.md: Tests for field layout table.
* assembly-with-complex-type.cs: Added more stuff for
field layout tests.
svn path=/trunk/mono/; revision=133239
* cli-tables-tests.md: Tests for class layout table.
* assembly-with-complex-type.cs: Added more stuff for
class layout tests.
svn path=/trunk/mono/; revision=133236
* cli-tables-tests.md: Tests for decl security table.
* assembly-with-cas.cs: New test file for producing tests
for cattr table.
* Makefile: Add new dependencies and do some cleanup.
svn path=/trunk/mono/; revision=133234
2009-04-30 Mark Probst <[email protected]>
* domain.c (mono_domain_set_internal_with_options): Don't do
anything if the old domain is the same as the old one. Fixes
#499326.
svn path=/trunk/mono/; revision=133222
2009-04-30 Mark Probst <[email protected]>
* appdomain.c: Deregister the reflection_info roots when unloading
a domain.
* sgen-gc.c, domain.c, gc-internal.h: mono_gc_clear_domain() nulls
memory allocated by a domain and frees its disappearing links.
* boehm-gc.c, null-gc.c: Empty implementation of
mono_gc_clear_domain().
svn path=/trunk/mono/; revision=133212
MySQL connection types, as those are actually included with Mono
(unlike MySql.Data, which isn't included with Mono).
svn path=/trunk/mcs/; revision=133210
2009-04-30 Mark Probst <[email protected]>
* gc.c: Set the correct domain when invoking finalizers.
* appdomain.c: Set the correct domain when creating threads.
svn path=/trunk/mono/; revision=133202
* BuildManager.cs: when BuildInner catches a compilation
exception, wrap it in HttpException before re-throwing.
2009-04-30 Marek Habersack <[email protected]>
* TemplateParser.cs: removed the PageParserFilterTypeName
property, the filter type name is looked up on demand now.
* ApplicationFileParser.cs, MasterPageParser.cs,
UserControlParser.cs: load config defaults explicitly after
initializing the instance.
svn path=/trunk/mcs/; revision=133169
2009-04-29 Tom Hindle <[email protected]>
* Marshal.cs: Improved GetExceptionForHR to return real
C# exceptions in certain cases instead of always COMException.
svn path=/trunk/mcs/; revision=133150
* cli-tables-tests.md: Tests for cattr table.
* assembly-with-cattr.cs: New test file for producing tests
for cattr table.
* Makefile: Add new dependencies and do some cleanup.
svn path=/trunk/mono/; revision=133092
* decompose.c (mono_decompose_long_opts): Move the implementation of LNEG
to mono_arch_decompose_long_opts () for x86 and arm.
svn path=/trunk/mono/; revision=133088
2009-04-29 Sebastien Pouliot <[email protected]>
* PKCS1.cs: Make this work under NET_2_1 where SHA384 and SHA512
are not available in the BCL.
In System.Security.Cryptography:
2009-04-29 Sebastien Pouliot <[email protected]>
* DES.cs, DESCryptoServiceProvider.cs: Do not include in NET_2_1
* HMACMD5.cs, HMACRIPEMD160.cs, HMACSHA384.cs, HMACSHA512.cs: Do
not include in NET_2_1
* MACTripleDES.cs: Do not include in NET_2_1
* RC2.cs, RC2CryptoServiceProvider.cs: Do not include in NET_2_1
* Rijndael.cs, RijndaelManaged.cs, RijndaelManagedTransform.cs:
Do not include in NET_2_1 (AES is available in System.Core.dll)
* RIPEMD160.cs, RIPEMD160Managed.cs: Do not include in NET_2_1
* SHA1CryptoServiceProvider.cs: Do not include in NET_2_1, however
SHA1Managed is available.
* SHA384.cs, SHA384Managed.cs: Do not include in NET_2_1
* SHA512.cs, SHA512Managed.cs: Do not include in NET_2_1
* TripleDES.cs, TripleDESCryptoServiceProvider.cs: Do not include
in NET_2_1
svn path=/trunk/mcs/; revision=133013
* hashwrap.cs: Add "#if !NET_2_1 ... #endif" on wrappers so they
don't get compiled for 2.1 (since mscorlib 2.1 lacks some
required types and the generated code is not part of SL2).
svn path=/trunk/mcs/; revision=133011
* MetaTable.cs: implemented the DataContextType,
DataContextPropertyName properties and the ToString method.
* MetaColumn.cs: implemented the Scaffold, DisplayName,
SortExpression, UIHint properties and the ToString method.
* DynamicField.cs: implemented
* DynamicDataManager.cs: partially implemented RegisterControl.
Added internal AutoFieldGenerator class, used by RegisterControl
when dealing with GridView.
Implemented some properties.
* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable
* DynamicControl.cs: implemented parts of the class.
2009-04-29 Marek Habersack <[email protected]>
* DataBoundControl.cs: added InternalGetDataSource method, used by
DynamicData
2009-04-29 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
System.Web.DynamicData
2009-04-29 Marek Habersack <[email protected]>
* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
added
* System.Web.DynamicData_test.dll.sources: added
System.Web.DynamicData/DynamicDataManagerTest.cs,
System.Web.DynamicData/DynamicDataExtensionsTest.cs,
System.Web.DynamicData.ModelProviders/TableProviderTest.cs
* System.Web.DynamicData.dll.sources: added
System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
removed
System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs
2009-04-29 Marek Habersack <[email protected]>
* TableProvider.cs: implemented
* DLinqDataModelProvider.cs: renamed from
DLinqDataModelProviders.cs and moved some classes to separate
files.
* DLinqTableProvider.cs: moved to here from
DLinqDataModelProvider.cs
* DLinqColumnProvider.cs: moved to here from
DLinqDataModelProvider.cs
* DLinqAssociationProvider.cs: added
2009-04-29 Marek Habersack <[email protected]>
* DataBinder.cs: GetPropertyValue must throw also if propName is
empty.
2009-04-23 Marek Habersack <[email protected]>
* ContextConfiguration.cs: implemented all the methods and added a
parameterless constructor.
2009-04-23 Marek Habersack <[email protected]>
* System.Web.DynamicData_test.dll.sources: added
System.Web.DynamicData/ContextConfigurationTest.cs
* Makefile: tests need to be linked with
System.ComponentModel.DataAnnotations.dll
2009-04-23 Marek Habersack <[email protected]>
* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
real functionality yet.
* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
all the methods.
2009-04-23 Marek Habersack <[email protected]>
* System.ComponentModel.DataAnnotations_test.dll.sources: added
* System.ComponentModel.DataAnnotations.dll.sources: added
System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs
* Makefile: enabled tests
2009-04-23 Marek Habersack <[email protected]>
* ContextConfigurationTest.cs: added
svn path=/trunk/mcs/; revision=133003
2009-04-29 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add CryptoConfig_2_1.cs (partial class) to
the build
In System.Security.Cryptography:
2009-04-29 Sebastien Pouliot <[email protected]>
* CryptoConfig.cs: Change to partial class and don't include this
part (#ifdef out) in the NET_2_1 build.
* CryptoConfig_2_1.cs: Partial class that contains only what's
needed for Moonlight (NET_2_1). This disallow dynamically replacing
cryptographic algorithms using machine.config
svn path=/trunk/mcs/; revision=132992
* HttpContext.cs:
* HttpWorkerRequest.cs:
* HttpRuntime.cs: if other parts of the system are using the
threadpool and we queue requests, once the threadpool is free we
might still not get back to use it to the maximum extent possible.
Adding a few more calls to QueuePendingRequest ensures that does not
happen.
svn path=/trunk/mcs/; revision=132946
* TdsConnectionPool.cs: if GetConnection() fails to create a
connection, try again several times and then throw. Improved
ResetConnectionPool() so that it does not immediately close
connections in use. Don't re-add connections that have been closed.
* Tds.cs: Connected tests the socket connection too. Made Disconnect()
not throw.
* TdsComm.cs: set more socket options (timeout and NoDelay) and have a
single entry point for reading from the stream.
svn path=/trunk/mcs/; revision=132939
* gen-md-tests.c: Fix stream header calculation.
* cli-tables-tests.md: Tests for constant.
* assembly-with-constants.cs: New test file for producing tests
for constant table.
* Makefile: Add new dependencies and do some cleanup.
svn path=/trunk/mono/; revision=132937
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.
* cli-tables-tests.md: Tests for interfaceimpl.
svn path=/trunk/mono/; revision=132932
* verify.c: Improve error message.
* debug-helpers.c (mono_type_get_desc): Harden the code that
deals with VAR and MVAR.
svn path=/trunk/mono/; revision=132929
* TcpDuplexSessionChannel.cs : implement in-band dictionary support
in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
comments for magic numbers based on [MC-NMF].
* BinaryMessageEncodingBindingElementTest.cs, binary-message.raw:
new test files.
* System.ServiceModel.dll_test.sources: added
BinaryMessageEncodingBindingElementTest.cs.
svn path=/trunk/mcs/; revision=132882
* BinaryMessageEncoder.cs : implement part of in-band dictionary
support for [MC-NBFSE] record in [MC-NMF], in this class.
svn path=/trunk/mcs/; revision=132881
* XmlBinaryDictionaryReader.cs : several fixes;
- Name property was always empty.
- Value property was always empty for attributes.
- TextIndex node type was not supported.
- node reset at Read() was incomplete.
- attribute Prefix for single character had wrong value.
- namespace nodes did not appear as attribute nodes.
- attribute value node must be always single. Another text node
means a text child of the element, not the following attr value.
tests will go in sys.servicemodel.
svn path=/trunk/mcs/; revision=132879
* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.
svn path=/trunk/mono/; revision=132872
* ConsoleTraceListener.cs: add an internal constructor that takes a
string argument. Used when 'initializeData' is set.
* DiagnosticsConfigurationHandler.cs: try internal constructors when
the assembly is System.
Fixes bug #498853.
svn path=/trunk/mcs/; revision=132868
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderCommonTests.cs: Add test case for an empty string url
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
a second change using Path.GetFullPath. (GetStreamFromUrl) Add
extra validations that would be missed in NET_2_1
svn path=/trunk/mcs/; revision=132856
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for
NET_2_1 profile
* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file
since this is not used anymore in Moonlight
svn path=/trunk/mcs/; revision=132855
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small
fixes wrt new unit tests (inside moon-unit).
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Remove XmlUrlResolver.cs
and the associated [SecuritySafeCritical] that it required
svn path=/trunk/mcs/; revision=132852
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolverTest.cs: New. Unit tests for base features.
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
method for NET_2_1 profile.
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
the unit tests
svn path=/trunk/mcs/; revision=132851
* security-core-clr.c: Avoid redundant checks for platform code,
e.g. check for method and for class (very common) and check
for class and outer class (less common)...
svn path=/trunk/mono/; revision=132844
* GridView.cs: implemented ColumnsGenerator and enabled its use in
CreateColumns.
* DetailsView.cs: implemented the RowsGenerator property and
enabled its use in CreateFieldSet.
svn path=/trunk/mcs/; revision=132833
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx
2009-04-28 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #498637
2009-04-28 Marek Habersack <[email protected]>
* AspGenerator.cs: ProcessTag doesn't process a tag which is not
server-side and which has declarative expressions embedded. Fixes
bug #498637
2009-04-28 Marek Habersack <[email protected]>
* NunitWebResources/LinkInHeadWithEmbeddedExpression.aspx: added
svn path=/trunk/mcs/; revision=132812
* Makefile (NAME_SUFFIX): New.
(LIBRARY_NAME): Use it.
(TEST_MCS_FLAGS): Don't mention name of library. Use NAME_SUFFIX
as appropriate when referring to other msbuild dlls.
svn path=/trunk/mcs/; revision=132811
* ComboBox.cs: When losing the focus, if our textbox is not null,
close its auto complete list, if any.
Fixes part of #489339.
svn path=/trunk/mcs/; revision=132804
* aot-runtime.c (mono_aot_create_specific_trampoline): Add a stat for the
number of trampolines used in full-aot mode.
* aot-compiler.c: Add an ntrampolines option to set the number of
trampolines emitted in full-aot mode.
svn path=/trunk/mono/; revision=132777
2009-04-27 Sebastien Pouliot <[email protected]>
* SecurityException.cs: Remove CAS-specific stuff from ToString
* SecurityManager.cs: Do not include for NET_2_1 build
* SecurityManager_2_1.cs: Alternate implementation for NET_2_1
In .:
2009-04-27 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add new specific to 2.1 version of some
classes.
In System.Security.Policy:
2009-04-27 Sebastien Pouliot <[email protected]>
* Evidence.cs: Custom GetDefaultHostEvidence for NET_2_1
* Hash.cs: Do not include for NET_2_1 build
* HashMembershipCondition.cs: Do not include for NET_2_1 build
* PolicyLevel.cs: Do not include for NET_2_1 build
* PolicyLevel_2_1.cs: Alternate implementation for NET_2_1
* Zone.cs: Do not include for NET_2_1 build
* ZoneMembershipCondition.cs: Do not include for NET_2_1 build
svn path=/trunk/mcs/; revision=132774
* DispatchRuntime.cs : some comment.
* ChannelDispatcher.cs : ongoing changes to handle listeners and
accepted channels at more precise state. Listeners are opened,
without accepting channels. Some setup code is done at OnOpen(),
while some are done at OnOpened().
* ServiceHost.cs : split dispatcher open from dispatcher loop start.
Use DispatchRuntime.Type to specify service type.
* ChannelDispatcherTest.cs : added a couple of EndpointDispatcher
state tests.
svn path=/trunk/mcs/; revision=132739
* XplatUIX11.cs: Properly support UTF8 when handling the
SelectionRequest event - this is helpful supporting some window
managers, such KDE, that explictly request the text in utf8, as
opposed to gnome, that supports ascii.
Fixes#489393.
svn path=/trunk/mcs/; revision=132698
* ToolStripDropDownItem.cs: When assigning a new
ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
Capture duties performed by Application/ToolStripManager are handled
nicely and we don't end up in an inconsisten stat.
Fixes#492815.
svn path=/trunk/mcs/; revision=132696
* mini-codegen.c (mono_local_regalloc): Prevent sreg1/dreg to be allocated
to the same register as a fixed sreg2. Fixes#497271.
* iltests.il.in: Add a new test.
svn path=/trunk/mono/; revision=132689
* mini-amd64.c: Use moves instead of pushes for passing arguments on the
stack, since pushes complicate exception handling.
* exceptions-amd64.c (mono_arch_find_jit_info): Don't pop the arguments of
the stack if they are passed using moves.
svn path=/trunk/mono/; revision=132687
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.
* method-to-ir.c (mono_method_to_ir): Disable fast virtual generic methods
when using llvm.
* mini-llvm.c (mono_llvm_emit_method): Call jit icall wrappers, not the
icalls themselves. Convert arguments of FCOMPARE. Convert the destination
of FMOVE if it is an R4.
svn path=/trunk/mono/; revision=132686
2009-04-26 Mark Probst <[email protected]>
* domain.c, domain-internals.h: Disable
track_resurrection_{objects,handles}_hash in MonoDomain if using
SGen.
svn path=/trunk/mono/; revision=132681
* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
load all the data that was added into the `stdin' stream when we
did the `Read'.
2009-04-25 Miguel de Icaza <[email protected]>
* StreamReader.cs (DataAvailable): New internal function to work
around the fact that StreamReaders are now blocking on Peek(), and
that our own Console.TermInfoDriver used Peek() as a way of
probing if there was data on a stream before to avoid blocking. o
svn path=/trunk/mcs/; revision=132670
* mini-ops.h: Add OP_LLVM_OUTARG_VT opcode.
* mini.h (LLVMCallInfo): New structure to store calling convention
information for the LLVM back end similar to the CallInfo structures in
the back-ends.
* mini-amd64.c (mono_arch_get_llvm_call_info): New arch function to return
call information in a format usable by LLVM.
(mono_arch_emit_call): Move the LLVM handling code to mono_llvm_emit_call ().
* method-to-ir.c (mono_emit_call_args): Emit calls using
mono_llvm_emit_call () when compiling using LLVM.
* mini-llvm.c: Implement support for passing/receiving valuetypes. Add
comments to all functions. Fix memory leaks. Add a public init/cleanup
function.
* mini.c: Call the llvm init/cleanup functions in mini_init()/cleanup().
* method-to-ir.c (handle_array_new): Disable llvm when calling the vararg
mono_array_new_va () jit icall.
svn path=/trunk/mono/; revision=132665
* ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
any ToolStripDropDownItem when receiving a mouse down event in an
empty area.
svn path=/trunk/mcs/; revision=132664
* *.cs: Exclude the files for the NET_2_1 profile, since they are
unneeded and adds a bunch (23) [SecuritySafeCritical] to audit for
Moonlight
svn path=/trunk/mcs/; revision=132663
* Environment.cs: #ifdef out code that use the registry for the
NET_2_1 profile and some other properties (2) that added
[SecuritySafeCritical] methods to audit inside Moonlight.
svn path=/trunk/mcs/; revision=132662
Fix bug #484649:
* LoggerInfo.cs: fixed the parsing of the /logger: argument as described in
http://msdn.microsoft.com/en-us/library/ms164311.aspx
Added logger class detection if it's not explicit specified in the argument.
svn path=/trunk/mcs/; revision=132660
* include/private/gcconfig.h: Changes to support 64-bit ABI on MIPS.
Add an additional condition for a proper defining of ALIGNMENT
and CPP_WORDSZ.
svn path=/trunk/mono/; revision=132645
* assembly-with-params.cs: New test file with all sort of param kinds.
* assembly-with-methods.cs: Added more stuff to test paramlist.
* Makefile: Add new dependencies.
* cli-tables-tests.md: Tests for methoddef's paramlist.
Tests for the param table.
svn path=/trunk/mono/; revision=132635
a new shift/reduce conflict which is bothering me:
625: shift/reduce conflict (shift 452, reduce 890) on COMPLETE_COMPLETION
state 625
member_initializer : non_assignment_expression . opt_COMPLETE_COMPLETION (452)
opt_COMPLETE_COMPLETION : . (890)
COMPLETE_COMPLETION shift 452
CLOSE_BRACE reduce 890
COMMA reduce 890
opt_COMPLETE_COMPLETION goto 807
2009-04-24 Miguel de Icaza <[email protected]>
* complete.cs (CompletionElementInitializer): New completion class
to support completing inside a C# 3 element initializer, so this
allows completion for Silverlight situations where it is very
common to do:
new TextBlock () { Fo<TAB>
(CompletionSimpleName): Expose the prefix that was
passed to the simple name.
* cs-parser.jay (object_or_collection_initializer): Add support
for element_initializers.
* expression.cs (CollectionOrObjectInitializers.DoResolve):
special case completion expressions as this method aggressively
collects data before it operates, and errors were being thrown
earlier than we were able to complete.
svn path=/trunk/mcs/; revision=132626
Fixing the glib targets for Winx64.
* libmono.vcproj, mono.vcproj: Correcting the ProgramDatabaseFile
value for the Winx64 glib build.
* mono.sln: Enabling the glib targets for Winx64.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=132622
* HtmlizedException.cs: make HtmlException derive from
HttpException. System.Web.Mvc relies upon compile and parse
exception being descendants of HttpException or otherwise it will
catch and ignore compilation/parsing errors.
svn path=/trunk/mcs/; revision=132617
* ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
fire OnDropDownOpened/OnDropDownClosed depending on the new
visibility. This also ensures that any direct access to this instance
will fire the mentioned events for the OwnerItem.
* ToolStripDropDownItem.cs: Remove the invocations to
OnDropDownOpened/OnDropDownClosed, since they are handled in
ToolStripDropDown, as well as updating the
OnDropDownHide/OnDropDownShow calls to be in the right order.
Fixes#496193.
svn path=/trunk/mcs/; revision=132611
* libmono.vcproj: Adding metadata/metadata-verify.c to the project.
* runmdesc.bat: Fixing the argument order to genmdesc.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=132610
* System.Web_test.dll.sources: added
System.Web.UI/PageParserFilterTest.cs
2009-04-24 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilter.Initialize now takes just
one parameter.
* PageParserFilter.cs: a few alignments for .NET compatibility in
the default behavior.
2009-04-24 Marek Habersack <[email protected]>
* AspGenerator.cs: ProcessCode should _not_ stop processing the
passed code string if the filter's ProcessCodeConstruct returns
false. Fixes bug #497775
2009-04-24 Marek Habersack <[email protected]>
* PageParserFilterTest.cs: added
svn path=/trunk/mcs/; revision=132607
types:
2009-04-24 Miguel de Icaza <[email protected]>
* complete.cs (CompletionElementInitializer): New completion class
to support completing inside a C# 3 element initializer, so this
allows completion for Silverlight situations where it is very
common to do:
new TextBlock () { Fo<TAB>
(CompletionSimpleName): Expose the prefix that was
passed to the simple name.
* cs-parser.jay (object_or_collection_initializer): Add support
for element_initializers.
* expression.cs (CollectionOrObjectInitializers.DoResolve):
special case completion expressions as this method aggressively
collects data before it operates, and errors were being thrown
earlier than we were able to complete.
svn path=/trunk/mcs/; revision=132592
* Mono.Tuner.dll.sources: adjusted
* Mono.Tuner/FilterAttributes.cs: new step to remove some known
undesirable custom attributes.
svn path=/trunk/mcs/; revision=132582
crashes and report them. Borrow some tricks from md.
(LogEventsFromTextOutput): Ignore known non-error messages. Don't
log unknown lines, crashes get handled elsewhere.
svn path=/trunk/mcs/; revision=132569
* class.c (get_anon_gparam_class, set_anon_gparam_class): New. Don't
use ParamInfo class at all.
(mono_class_from_generic_parameter): Use them.
(make_generic_param_class): Fix a couple of instances where 'pinfo
== NULL' wasn't handle.
svn path=/trunk/mono/; revision=132549
* class-internals.h (MonoGenericParamInfo::token): New field.
* metadata.c (mono_metadata_load_generic_params): Initialize it
from metadata.
* class.c (mono_class_from_generic_parameter): Use it instead of
searching through metadata.
svn path=/trunk/mono/; revision=132547
* assembly-with-methods.cs:
* assembly-with-global-method.il: New test files with a global method.
* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.
* cli-tables-tests.md: Tests for the methoddef table.
* Makefile: Add new dependencies.
svn path=/trunk/mono/; revision=132535
* appdomain.c (mono_domain_create_appdomain_internal): Free the
string returned by get_shadow_assembly_location_base.
* appdomain.c (get_shadow_assembly_location_base): Add a comment
about caller's ownership.
svn path=/trunk/mono/; revision=132531
* reflection.c: Add mono_reflection_cleanup_domain to cleanup
reflection memory on domain unload.
* domain.c (mono_domain_free): Don't free refobject_hash, let the
reflection cleanup code do it.
* domain-internals.h: Add mono_reflection_cleanup_domain.
This fixes a memory leak for managed mirrors of reflection objects
on domain unload.
svn path=/trunk/mono/; revision=132530
* pedump.c (main): Init mono with mscorlib so it defaults to 2.0 and
doesn't try to parse the input assembly, which can be broken.
svn path=/trunk/mono/; revision=132527
* Regex.cs: Remove Compiler-related support for NET_2_1
* RegexOptions.cs: Remove Compile from values available on NET_2_1
svn path=/trunk/mcs/; revision=132491
2009-04-23 Mark Probst <[email protected]>
* boehm-gc.c, gc-internal.h, gc.c, monitor.c, null-gc.c,
sgen-gc.c: Implement track resurrection in weak GC handles in SGen
by using the lowest bit in the link to store whether the link is
tracked. Move the track_resurrection hashes into boehm-gc.c.
svn path=/trunk/mono/; revision=132485
* AsyncPostBackTrigger.cs: HasTriggered () must look up the
UniqueID of the control specified in the ControlID property or
otherwise it may miss certain triggers.
svn path=/trunk/mcs/; revision=132482
* Makefile: disable moon. Tuning is done by moonlight, which
will populate back the mcs tree with tuned assemblies for tests.
svn path=/trunk/mcs/; revision=132462
* ChannelFactory.cs : reordered preferrence of created channel types,
and fixed to allow duplex channels without CallbackContractType
(which does not always exist for duplex channels).
svn path=/trunk/mcs/; revision=132448
* namespace.cs (NamespaceEntry.CompletionGetTypesStartingWith):
Consider looking up the namespace that matches the prefix being
used.
This is part of the support for allowing completions like:
`System.Co<TAB>' to complete to System.Console.
* complete.cs (CompletionSimpleName.AppendResults): Make this
routine reusable.
svn path=/trunk/mcs/; revision=132430
* AssemblyInfo.cs: Open up the internals to System.ServiceModel.Web,
e.g. calls to IDataContractSurrogate, JsonReader ...
svn path=/trunk/mcs/; revision=132429
* Makefile.am: Split the console support in platform specific
code and put together a framework for making this easy in the future so
that we can start splitting code instead of having a mess of PLATFORM_WIN32
svn path=/trunk/mono/; revision=132422
* System.Net.dll.sources: Remove the common Const, Locale and
MonoTODOAttribute since we can now get them from mscorlib.dll.
Remove all System/System.Net.NetworkInformation/* types since
Socket does not depend on them anymore.
* DummySystemNet.cs: Add a dummy System.Net.NetworkInformation
namespace to please compilers.
svn path=/trunk/mcs/; revision=132409
* Socket_2_1.cs: Use old-n-simple CheckProtocolSupport to implement
OSSupportsIP[v4|v6] for Moonlight (NET_2_1 only) so we can avoid
including a bunch of types (22) from System.Net.NetworkInformation
and drop the number of [SecuritySafeCritical] methods to audit (the
same 22) and [SecurityCritical] (8) beside getting a smaller
System.Net.dll assembly :)
svn path=/trunk/mcs/; revision=132408
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Remove the common
Const, Locale and MonoTODO since we can now get them from mscorlib.dll
svn path=/trunk/mcs/; revision=132407
* Microsoft.CSharp/CSharpCodeCompiler.cs:
* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
problem running the specified exec.
svn path=/trunk/mcs/; revision=132387
* configure.in: Check for a stable version of glib-2.0 as opposed
to an unstable development version (we don't want people
unfamiliar with glib versioning to install an unstable development
version of glib).
svn path=/trunk/mono/; revision=132384
* AdjustVisibility.cs: we're now turning non exposed fields and
methods (API wise) that are `protected` into `protected and internal`.
svn path=/trunk/mcs/; revision=132370
* method-to-ir.c (mono_method_to_ir): Force init_locals to be TRUE
to prevent asserts in various passes. Fixes#497220.
svn path=/trunk/mono/; revision=132364
* XmlSchemaValidator.cs : quick fix for bug #496205. Reset xsi:type
and endelement.
* XmlSchemaValidatorTests.cs : added test for bug #496192 and #496205.
* 496192.xml, 496192.xsd : new test files.
svn path=/trunk/mcs/; revision=132351
* XmlQualifiedName.cs : added Parse() overload that is used for
xsd validation.
* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
use xsd-supported version of XmlQualifiedName.Parse().
Fixed bug #496205.
svn path=/trunk/mcs/; revision=132347
* XmlAttributeCollection.cs : when the node to be inserted has owner
element _but_ is identical to that of this collection, do not
reject it to raise an error. Fixed bug #496022.
* XmlAttributeCollectionTests.cs : added test for bug #496022.
svn path=/trunk/mcs/; revision=132344
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
of just the Message to aid in debugging web service problems.
Bug #496758 fixed.
svn path=/trunk/mcs/; revision=132335
* verify.c (mono_delegate_type_equal): Compare valuetypes using
mono_class_from_mono_type to avoid bad interactions with the dual representation
of the generic type definition.
svn path=/trunk/mono/; revision=132318
* verify.c (do_invoke_method): Use mono_class_from_mono_type to
get the MonoClass for the call context type as it might be a generic
instance.
Fixes#491483.
svn path=/trunk/mono/; revision=132317
* PageCompiler.cs: implemented new way of setting output cache
parameters in the 2.0 profile. The generated code is now the same
as on .NET and uses the OutputCacheParameters class to pass
settings to InitOutputCache.
2009-04-21 Marek Habersack <[email protected]>
* Page.cs: added support for OutputCacheParameters.NoStore to
InitOutputCache.
* TemplateParser.cs:
Added support for the SqlDependency, NoStore and CacheProfile
attributes of the OutputCache directive. Fixes bug #496951
svn path=/trunk/mcs/; revision=132312
2009-04-21 Mark Probst <[email protected]>
* object-internals.h: The Thread object has no execution_context
member anymore.
* threads.c, threadpool.c, threads-types.h: Accessor functions for
the execution context.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=132309
* Thread.cs: Make the execution context field thread-static to
avoid it being shared between app domains.
2009-04-21 Mark Probst <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132308
* Control.cs, ContextMenuStrip.cs, ToolStripMenuItem.cs: Only process any
shortchut in ToolStripMenuItem.ProcessCmdKey if the control generating the
event is the same as the owner of the menu item. Also set properly
SourceControl for ContextMenuStrip, as well as add an internal field to
contain the control that owns the ContextMenuStrip (we need to know this
even before the public property is assigned).
Fixes bits of #393775.
svn path=/trunk/mcs/; revision=132303
* SimpleWebHandlerParser.cs: retrieve CompilationSection from the
appropriate web.config file.
* BaseParser.cs: moved the internal property VirtualPath from
TemplateParser to here and added an internal method
GetConfigSection to retrieve sections from the correct web.config
file on 2.0 applications. Fixes bug #494245
* PageParser.cs: use the new GetConfigSection method to retrieve
ClientTargetSection.
* TemplateParser.cs: moved the VirtualPath property to
BaseParser.
PagesConfig now uses the new GetConfigSection method. Fixes bug
#494245
svn path=/trunk/mcs/; revision=132300
In .:
2009-04-21 Sebastien Pouliot <[email protected]>
* System.Xml.Schema/*: Remove (not needed for 2.1 anymore)
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
more code duplication for 2.1 and fix the build
svn path=/trunk/mcs/; revision=132289
* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
MonoTODOAttribute since we get it from mscorlib (fix build too).
Remove System.Xml.Schema/XmlSchema.cs from build since we can
get the fields directly from System.Xml.dll
svn path=/trunk/mcs/; revision=132283
* aot-compiler.c aot-runtime.c: Emit the unwind info into a separate
table to avoid duplicates.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=132267
* UriParserTest.cs: Ensure "tcp" is not a registred scheme
* UriTest2.cs: Make sure GetComponents and IsBaseOf do not throw
NRE is no UriParser was registred for the URI scheme
svn path=/trunk/mcs/; revision=132265
* DefaultUriParser.cs: Add special case for schema
* Uri.cs: Make sure we can use a default parser if none was
registred for the URI schema.
* UriParser.cs: Handle "*" as a special schema for "anything"
[Fix bug #496783]
svn path=/trunk/mcs/; revision=132264
* AssemblyInfo.cs: Remove extra attributes for 2.1. Open up the
internals to System.ServiceModel, e.g. to call the ctor of
System.Xml.XmlDictionaryReaderQuotas
svn path=/trunk/mcs/; revision=132261
* ClientRuntimeChannel.cs : setup IChannel instance at construction
time, so that it can GetProperty<T>() immediately after
ChannelFactory.CreateChannel().
Implement some properties.
svn path=/trunk/mcs/; revision=132249
* PeerResolver.cs, PeerResolverImpl.cs :
update API to the latest .NET.
* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.
svn path=/trunk/mcs/; revision=132237
* WebConnection.cs:
* HttpWebRequest.cs: provide more information on why the connection
could not be established.
svn path=/trunk/mcs/; revision=132220
* verify.c (verify_clause_relationship): Only mask as an error if the exception clause
is nested in the filter block.
* verify.c (verify_clause_relationship): The disjoint check must verify if the exception
block is not fully nested.
Fixes#495656.
svn path=/trunk/mono/; revision=132207
* ComboBox.cs: When calculating the height of the ComboListBox,
specially for the 2.0 profile, use MaxDropDownItems if the
DropDownHeight property hasn't been set, and use the later if it has
been set. This way we support both properties.
Fixes#493308.
svn path=/trunk/mcs/; revision=132188
* verify.c (verify_type_compatibility_full): Compare MonoClass and
not MonoType to check for equality of valuetypes as the generic type
definition allows for two different encodings: the generic type definition
class or a generic instance over the GTD arguments.
Fixes#496175.
svn path=/trunk/mono/; revision=132185
* mini-llvm-cpp.cpp (mono_llvm_dump_value): New helper function to print
a Value to stdout.
* mini-llvm.c (mono_llvm_emit_method): Use it.
svn path=/trunk/mono/; revision=132183
* metadata-verify.c: Enable pe verification as the issue with #496453
is that the authenticode data directory have a different unspecified
format. Ignore it for now.
* pedump.c: Run the metadata verifier together with the IL verifier.
Fixes ##496453.
svn path=/trunk/mono/; revision=132170
* mini-llvm.c (type_to_llvm_type): Fix the mapping of enums.
(mono_llvm_emit_method): Add support for CAS. Fix handling of CSET opcodes
on volatile values.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add support for
synchronized methods.
* mini.c (mini_method_compile): Disable LLVM for dynamic methods.
svn path=/trunk/mono/; revision=132169
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
UnhandledException event mechanism in System.Windows.Application instead
of crashing the application.
svn path=/trunk/mcs/; revision=132166
* Enum.cs (MonoEnumInfo): Compare bytes, shorts, ints and longs as
unsigned values as specified and to fix 371559, from the bug:
So the actual difference is that MSFT's Enum.GetValues
orders the members as unsigned even when the underlying
type is int. See the following. Perhaps that's what's
being implied by "binary values" in that Enum.GetValues
MSDN quote above.
svn path=/trunk/mcs/; revision=132113
Fix bug #494221
* MethodDef.cs (BeginLocalsScope): New.
(EndLocalsScope): New.
(AddLocals):
(GetNamedLocal): Support scoping for .locals
In ilasm/parser:
Fix bug #494221.
* ILParser.jay (scope_block_begin): Mark begin .locals scope.
(scope_block): Mark end .locals scope.
svn path=/trunk/mcs/; revision=132111
* Process.cs: Do not crash if GetProcesses_internal returns null
This happens on operating systems where we have not implemented
svn path=/trunk/mcs/; revision=132110
* mini.c (mini_method_compile): Enable ABCREM when running with LLVM.
* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOADI4_MEM/
OP_LOADI8_MEM.
svn path=/trunk/mono/; revision=132106
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add a MONO_LLVM env variable
allowing some options to be set dynamically.
svn path=/trunk/mono/; revision=132105
* mini-llvm.c (mono_llvm_emit_method): Handle compares followed by an
unconditional branch.
* mini.h (MonoTrampolineType): Add new trampoline type
'MONO_TRAMPOLINE_LLVM_VCALL' which handles virtual calls made from LLVM
compiled code.
* mini-trampolines.c (mono_llvm_vcall_trampoline): New C trampoline
function.
* mini-trampolines.c (mono_create_llvm_vcall_trampoline): New trampoline
creation function.
* mini.c (mini_init): Avoid using the common vtable trampoline when LLVM
is enabled. Instead, use the llvm vcall trampoline.
svn path=/trunk/mono/; revision=132104
prefix, e.g. `mdoc export-html-webdoc -o cache.new foo.tree` will
output files into `cache.new/foo` instead of directly into
`cache.new`. This makes it easier to specify more than one
.tree/.zip file on the command line.
svn path=/trunk/mcs/; revision=132103
character, as it may contain '\n' (thus preventing the following text
from being properly indented).
* Test/Mono.Options/OptionSetTest.cs: Add test to check \n\n
Option.Description handling.
svn path=/trunk/mcs/; revision=132102
* metadata-verify.c: Fix cli and table verification to use information
from the MonoImage. A lot of duplicated code got killed.
svn path=/trunk/mono/; revision=132099
This patch starts to integrate the metadata verifier with the runtime code.
This patch causes major regression in functionality for the metadata verifier
as cli and table verification are disabled since they require to be ported to
use MonoImage information.
* image.c (do_mono_image_load): Split the code in this function
into mono_image_load_pe_data and mono_image_load_cli_data.
Add care_about_pecoff parameter to not load pecoff data.
Call into the metadata verifier for pecoff and cli verification.
* image.c (mono_image_open_raw): New function that doesn't perform
any parsing of the image contents.
The reason for the 3 new functions is to give pedump better control
into the interaction with the verifier.
* metadata-internals.h: Add new functions from image.c as part of the
internal mono API.
* metadata-verify.c: Split mono_image_verify into mono_verifier_verify_pe_data,
mono_verifier_verify_cli_data and mono_verifier_verify_table_data. Prepare
to make those functions work together with the runtime.
* verify.c: Add mono_verifier_is_enabled_for_image function that returns
true if the image needs to be verified.
* verify-internals.h: Export new functions from metadata-verify.c and verify.c.
* pedump.c: Use new metadata verifier API.
svn path=/trunk/mono/; revision=132098
* mini-trampolines.c (mono_get_vcall_slot_addr): New helper function.
* mini-trampolines.c tramp-amd64.c tramp-x86.c: Use it.
* mini-<ARCH>.c: Get rid of the identical mono_arch_get_vcall_slot_addr ()
functions.
svn path=/trunk/mono/; revision=132097
* mini-<ARCH>.h mini-trampolines.c mini.c: Get rid of
MONO_ARCH_COMMON_VTABLE_TRAMPOLINE, it is supported by all archs.
svn path=/trunk/mono/; revision=132096
2009-04-19 Zoltan Varga <[email protected]>
* object.c (mono_install_vtable_trampoline): Make this receive a
trampoline creation function instead of trampoline, allowing the JIT
to use a different trampoline for each vtable.
In mini/
2009-04-19 Zoltan Varga <[email protected]>
* mini.c (mini_create_vtable_trampoline): Make this receive a
vtable argument, not yet used.
svn path=/trunk/mono/; revision=132081
Option.Description text of `"aaa." . "a" x 64` (that is, "aaa."
followed by 64 "a"s) would cause GetLines() to go into an infinite
loop and (eventually) die from an OutOfMemoryException. Oops.
Fix this, simplify the logic, and turn GetLines() into an
IEnumerable<string>.
* Test/Mono.Options/OptionSetTest.cs: Add additional line breaking
tests. Remove [Category("NotWorking")], as they work for me.
svn path=/trunk/mcs/; revision=132074
* NumberFormatter.cs: Keep the current thread's number formatter
as a ThreadStatic member.
2009-04-18 Mark Probst <[email protected]>
* Thread.cs: Don't keep the current number formatter here
because it's shared between app domains.
svn path=/trunk/mcs/; revision=132067
* RemotingServices.cs (GetDomainProxy): Make a copy of the array
created in the other app domain so as not to pollute our own.
svn path=/trunk/mcs/; revision=132066
* complete.cs: Include namespace resolution in simple names as
well as global types and types in the using scope in the
resolution.
* namespace.cs: Supporting infrastrcture to provide completions
based on the current using scope.
svn path=/trunk/mcs/; revision=132065
2009-04-18 Mark Probst <[email protected]>
* icall-def.h: New icall for getting the thread abort exception
state for a thread.
* object.c, thread.c, object-internals.h: A thread's abort
exception state is now a GC handle. To get the object it stands
for, we must move it into the current app domain, if it's
different than the one where it originated from.
* appdomain.c: Bump corlib version.
* domain.c, domain-internals.h: New function for setting the
domain and migrate the thread abort exception or not.
2009-04-18 Mark Probst <[email protected]>
* appdomain-thread-abort.cs: New tests for thread aborts across
app domains.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=132064
2009-04-18 Mark Probst <[email protected]>
* Thread.cs: Make the abort exception state a GC handle, to
properly separate AppDomains. Add internal method for getting the
state object.
* ThreadAbortException.cs: Get the abort exception state via the
method in Thread.
2009-04-18 Mark Probst <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=132063
of the evaluator API.
* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
support the completion engine. When we reach the end of the
input stream instead of returning EOF, when this flag is true the
tokenizer instead produces:
One GENERATE_COMPLETION token: this token then must be
handled in the grammar at every point where the user
would likely request a completion.
As many COMPLETE_COMPLETION tokens as necessary. These
tokens are generated to assist the parser in unwinding and
producing a valid parse tree.
The parser rules do not have to be perfect, the parser needs to be
augmented with judicious use of GENERATE_COMPLETION tokens to
improve the areas where we can provide completion and the parser
needs to add support for COMPLETE_COMPLETION tokens in productions
to make them work.
It is common to not have enough support for COMPLETE_COMPLETION
under certain rules and that even if we generated the
GENERATE_COMPLETION token that the resulting tree will be invalid
due to the missing rules that support COMPLETE_COMPLETION.
The final EOF token is produced by having the parser notify the
tokenizer when it reaches the root production that the next token
should be EOF.
* support.cs (CompletionResult): New Exception. This exception
is thrown to return the completion results when one of the special
completion expressions is reached.
This exception is thrown by the completing ExpressionStatements
classes that live in complete.cs
* complete.cs (CompletingExpression): a new base class for
completing expressions. This derives from the
ExpressionStatement class and not from Expression as it allows
completion to happen not only where expressions are expected in
the grammar, but also where statements are expected.
(CompletionSimpleName): A new class used to provide completions
for SimpleNames. This currently only resolves to local
variables from the evaluator context (GetVars call).
(CompletionMemberAccess): Implements support for completing member
access patterns.
* cs-parser.jay: Add support for completion in a few places.
* eval.cs (GetCompletions): New public API for the evaluator that
returns a list of possible completions given the input. The
return value is an array of completions
* anonymous.cs (Compatible): If the exception thrown from the
resolved expression is a CompletionResult exception let that one
through instead of printing a diagnostic error in the try/catch.
svn path=/trunk/mcs/; revision=132052
Initial support to provide code completion facilities to consumers
of the evaluator API.
* cs-tokenizer.cs (CompleteOnEOF): this new property is used to
support the completion engine. When we reach the end of the
input stream instead of returning EOF, when this flag is true the
tokenizer instead produces:
One GENERATE_COMPLETION token: this token then must be
handled in the grammar at every point where the user
would likely request a completion.
As many COMPLETE_COMPLETION tokens as necessary. These
tokens are generated to assist the parser in unwinding and
producing a valid parse tree.
The parser rules do not have to be perfect, the parser needs to be
augmented with judicious use of GENERATE_COMPLETION tokens to
improve the areas where we can provide completion and the parser
needs to add support for COMPLETE_COMPLETION tokens in productions
to make them work.
It is common to not have enough support for COMPLETE_COMPLETION
under certain rules and that even if we generated the
GENERATE_COMPLETION token that the resulting tree will be invalid
due to the missing rules that support COMPLETE_COMPLETION.
The final EOF token is produced by having the parser notify the
tokenizer when it reaches the root production that the next token
should be EOF.
* support.cs (CompletionResult): New Exception. This exception
is thrown to return the completion results when one of the special
completion expressions is reached.
This exception is thrown by the completing ExpressionStatements
classes that live in complete.cs
* complete.cs (CompletingExpression): a new base class for
completing expressions. This derives from the
ExpressionStatement class and not from Expression as it allows
completion to happen not only where expressions are expected in
the grammar, but also where statements are expected.
(CompletionSimpleName): A new class used to provide completions
for SimpleNames. This currently only resolves to local
variables from the evaluator context (GetVars call).
(CompletionMemberAccess): Implements support for completing member
access patterns.
* cs-parser.jay: Add support for completion in a few places.
* eval.cs (GetCompletions): New public API for the evaluator that
returns a list of possible completions given the input. The
return value is an array of completions
* anonymous.cs (Compatible): If the exception thrown from the
resolved expression is a CompletionResult exception let that one
through instead of printing a diagnostic error in the try/catch.
svn path=/trunk/mcs/; revision=132033
* ChannelFactory.cs: Ensure we create and open a factory here,
avoids a NRE regression in
System.ServiceModel.ClientRuntimeChannel.SetupRequestChannel ()
svn path=/trunk/mcs/; revision=132023
* repl.cs: Support executing files that were specified in the
command line.
2009-04-17 Miguel de Icaza <[email protected]>
* eval.cs: Introduce an entry point that allows for initialization
to return a list of the files passed on the command line.
svn path=/trunk/mcs/; revision=132017
* ChannelFactory.cs, ClientRuntimeChannel.cs : implemented
CreateFactory() and moved corresponding code from latter to
former. Made implementation closer to .NET behavior.
svn path=/trunk/mcs/; revision=132016
* coreclr-security.cs: Add test case for the "special" case about
a default ctor being SSC on a transparent type (e.g. WebClient)
svn path=/trunk/mono/; revision=132010
* CSharpCodeCompiler.cs: pass current application's domain
PrivateBinPath to gmcs using its /lib parameter and put the same
value in the MONO_PATH environment variable. Fixes bug #493874
svn path=/trunk/mcs/; revision=131983
* AspGenerator.cs: if thead/tbody are parsed as children of a
server-side table control, ignore them. Fixes bug #481622
svn path=/trunk/mcs/; revision=131977
* assembly-with-complex-type.cs: Add stuff to
fill constant, field rva and field marshal tables.
* cli-tables-tests.md: Initial tests for the field table.
* gen-md-tests.c: Add or-byte and or-ushort effects. Fix
documentation.
svn path=/trunk/mono/; revision=131963
* metadata-verify.c: Add a macro to conditionally enable
dumping of verification information. Add make_coded_token
and search_sorted_table to enable search sorted tables
by a given coded token.
svn path=/trunk/mono/; revision=131961
* metadata-verify.c: Add array mapping from table index
to description offset. Add get_col_offset and get_col_size
functions.
svn path=/trunk/mono/; revision=131960
* metadata-verify.c: Fixed constant table description.
Fixed calculation of HasCustomAttribute coded index size.
Fixed calculation of size for many table indexes.
svn path=/trunk/mono/; revision=131958
HelpSource.GetText() unless *useful* content is being returned, as
when non-null is returned RootTree.RenderUrl() assumes that the url
was handled and won't try any other HelpSources. In this case, we
can (and do) have multiple ManHelpSources present, but since
ManHelpSource.GetText() was returning "<html>url was null</html>",
RootTree thought it was handled...when it wasn't. Fix.
svn path=/trunk/mcs/; revision=131934
EcmaDoc.GetCref() to generate //member/@name values.
* Mono.Documentation/dump.cs: Add -f=FORMAT support, so that we can
load an appropriate HelpSource (if supplied) so that an appropriate
Node.PublicUrl can be displayed in the output.
svn path=/trunk/mcs/; revision=131927
* net_2_1_raw_System.Xml.dll.sources: Remove corlib's files since
System.Xml can now access, for 2.1 (moonlight) corlib's internals.
svn path=/trunk/mcs/; revision=131926
* net_2_1_raw_System.dll.sources: Remove corlib's files since System
can now access, for 2.1 (moonlight) corlib's internals.
svn path=/trunk/mcs/; revision=131925
* AssemblyInfo.cs: allow System, System.Xml and Mono.
CompilerServices.SymbolWriter access to mscorlib internals
for 2.1 (Moonlight) so they can access internalized types
like non-generic System.Collections
svn path=/trunk/mcs/; revision=131924
it's own process, and spawns monodoc GUI into a separate process,
then sends Node.URL values (obtained from the MonoDevelop process)
to load the documentation into the monodoc GUI. Problem:
occasionally the requested documentation isn't loaded, but instead
some completely unrelated documentation is shown instead. This is
because the Node.URL value contains HelpSource-dependent data, e.g.
a Node.URL value of "ecma:0#Foo/" will specify the 1st file
within...whatever HelpSource is first consulted by monodoc (which
can vary between monodoc runs, the phase of the moon, etc.).
Solution: Add a Node.PublicUrl property which returns _stable_ URLs
which aren't specific to a given HelpSource.
- Add Node.PublicUrl property, which delegates to
Provider.GetPublicUrl(string), so that a Provider can generate a
Provider-independent URL (if possible).
- Print PublicUrl from Node.PrintTree().
- Add RootTree.GetSupportedFormats(), RootTree.GetProvider()
methods.
- Make RootTree.GetHelpSource() public.
* Monodoc/ecma-provider.cs: Add EcmaDoc.GetCref() method (generates an
XML documentation //see/@cref value), override
Provider.GetPublicUrl() (which will return cref's if possible).
svn path=/trunk/mcs/; revision=131923
* ResourceWriter.cs: The magic internal type here is required to match
Microsofts for SL2 resource deserialization.
svn path=/trunk/mcs/; revision=131919
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().
svn path=/trunk/mono/; revision=131908
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
ChannelFactory_1.cs :
Sort of reverted internal client channel type changes from
February, but to work fine in SL2 too. Now ChannelFactory<T>
can handle combined interface of IClientChannel and the contract.
svn path=/trunk/mcs/; revision=131899
* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
does not report them (since they are the "right" behavior)
* WebClient_2_1.cs: Fix BaseAddress property to return the URI to
the XAP file. Implement protected GetWebRequest which will make an
absolute URI from a relative one (using BaseAddress). That remove
the need of the previous hack.
* WebRequest_2_1.cs: Remove previous hack
svn path=/trunk/mcs/; revision=131897
* certmgr.cs: Don't throw if we're missing an argument. Fix by
Romain Tartiere (bug #464765). Updated help to specify that
"option type" is mandatory in some cases.
svn path=/trunk/mcs/; revision=131892
* HttpContext.cs: local resources code now uses the custom
resource provider factory, just like the global resources
code. Fixes bug #493263
2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs:
AssignPropertyFromResources now checks whether the field/property
passed to it is decorated with the Localizable custom attribute
and whether the resource provider contains an entry for that
property.
svn path=/trunk/mcs/; revision=131888
* TemplateControlCompiler.cs: using a regexp to check whether an
expression is a Bind one. Fixes bug #493639
2009-04-16 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx
2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #493639
svn path=/trunk/mcs/; revision=131874
* cli-tables-tests.md: Tests for the field list of the typedef table.
* assembly-with-complex-type.cs: New assembly source.
* Makefile: Compile the new assembly source.
svn path=/trunk/mono/; revision=131856
* metadata-verify.c (verify_pe_optional_header): Add comment of why
the code is commented.
* metadata-verify.c (verify_resources_table): Remove spurious printf
and don't fail if there are unmanaged resources. Gmcs generates a useless
one for all assemblies - I bet it's some MS compatibility junk.
svn path=/trunk/mono/; revision=131854
- Add HelpSource.IgnoreCache field, so that if the cache is present
it will be ignored. (Required by 'mdoc export-html-webdoc' so it
gets "fresh" content to generate the cache, and by monodoc GUI as
it can't use the cache'd HTML; cache'd HTML is for ASP.NET
webdoc only.)
- Alter the cache directory from e.g. sources/netdocs to
sources/cache/netdocs (as defined by
XmlDocUtils.GetCacheDirectory()).
- Add HelpSource.GetCachedText() method which will return the
contents of the cache for an id.
* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs,
Monodoc/error-provider.cs, Monodoc/man-provider.cs,
Monodoc/simple-provider.cs: Use GetCachedText().
* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
GetCacheFileName() methods.
svn path=/trunk/mcs/; revision=131828
2009-04-15 Martin Baulig <[email protected]>
* MonoSymbolTable.cs
(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
(LineNumberTable.DoRead): Ignore unknown extended opcodes if
they're within the Mono extension range.
svn path=/trunk/mcs/; revision=131801
2009-04-15 Martin Baulig <[email protected]>
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Don't print a warning for
unknown extended opcodes if they're within 0x40 and 0x7f.
svn path=/trunk/mono/; revision=131800
target directory already exists and is newer than the source files,
don't regenerate output. (Greatly speeds things up if nothing has
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=131770
* TemplateParser.cs: use generic lists for import, namespace and
interface caches. If a namespace is added (e.g. by parsing the
Import directive), find the assembly in which namespace is
defined.
2009-04-15 Marek Habersack <[email protected]>
* BuildManager.cs: do not add all assemblies in bin/ when serving
a precompiled site. Fixes bug #493873
When serving a precompiled site, check if the bin/ directory
contains certain well-known assemblies and load them if present.
svn path=/trunk/mcs/; revision=131768
* HttpApplicationFactory.cs: if a notification is received from a
FileSystemWatcher which was configured to watch for
subdirectories, uses a filter (currently we have just one such
watcher - waiting for changes to '?eb.?onfig') and the event
doesn't match the filter, ignore the event. Fixes bug #495011
svn path=/trunk/mcs/; revision=131752
In ilasm/codegen:
* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.
In ilasm/parser:
* ILParser.jay (instr): Handle unidentified local var id.
In ilasm/scanner:
* StringHelper.cs (startIdChars): New. Set of chars that can start an
identifier.
(Start): Use startIdChars instead of idchars.
svn path=/trunk/mcs/; revision=131736
HelpSource, not through the RootTree, as URLs of the form
"ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
in this case) as a HelpSource-relative identifier. Result: you get
the wrong documentation if you go through RootTree.
svn path=/trunk/mcs/; revision=131728
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
"pre-renders" HTML for use by the webdoc ASP.NET renderer.
* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
implementation; attempts to pre-render HTML based on .tree/.zip
file contents.
* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
traversal (from Mono.Rocks). For use in webdoc.cs.
svn path=/trunk/mcs/; revision=131727
* verify.c (mono_method_verify): Don't fail if an unconditional branch
with non empty stack happens before the beginning of a try block.
Fixes#494812.
svn path=/trunk/mono/; revision=131704
* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
computation where the result is not used (overwritten)
svn path=/trunk/mcs/; revision=131681
* marshal.c (delegate_hash_table_add): Make delegate_target_locations
a MonoGHashTable to keep its values alive.
(emit_marshal_boolean): Fix a warning.
svn path=/trunk/mono/; revision=131667
* ContainerControl.cs: Implement support for Control.CausesValidation,
by adding a pending list of controls to be validated in the top
container control, and postpone validation as needed.
Also remove any control in the validation chain in case it gets removed
from its owner before the pending validation actually happens.
Fixes#457170.
svn path=/trunk/mcs/; revision=131656
* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
allocating the location holding the this argument to prevent
'too many root sets' errors.
svn path=/trunk/mono/; revision=131655
* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
not have any interface configured for IPv4/IPv6.
svn path=/trunk/mono/; revision=131639
* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
to mark fields as special static.
(mono_field_static_get_value): Handle special static fields.
(mono_field_static_set_value): Ditto.
* class-internals.h (struct _MonoClassField): Document this.
svn path=/trunk/mono/; revision=131623
* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
case. This will handle when managed code returns null to native code.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131622
* object.c (build_imt_slots): Changing a free to a g_free to match
the g_malloc0 in add_imt_builder_entry that allocated this memory.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131621
* marshal.c (emit_marshal_boolean): Adding code to ensure that
the correct TRUE value is passed through the marshaling layer.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131618
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131614
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131613
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
full aot support to the arch specific code.
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.
* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.
* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.
* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
collect information about the delegate invoke impl trampolines.
* mini.h (MonoAotTrampInfo): New structure collecting the information needed
to save trampolines during full-aot mode.
svn path=/trunk/mono/; revision=131612
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/trunk/mcs/; revision=131599
A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.
svn path=/trunk/mcs/; revision=131588
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
svn path=/trunk/mono/; revision=131565
* mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
creation function which returns a trampoline which sets the rgctx
argument.
(mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
wrapper if possible.
(mono_delegate_trampoline): Ditto.
* mini.c (mono_jit_runtime_invoke): Ditto.
* tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.
* aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
svn path=/trunk/mono/; revision=131555
* mini.c (mini_method_compile): Disable sharing of stack slots/registers
and extend live ranges to cover the whole method when using xdb.
svn path=/trunk/mono/; revision=131528
* jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
do it in the trampolines.
* mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
needed.
* mini-trampolines.c (mono_delegate_trampoline): Ditto.
svn path=/trunk/mono/; revision=131527
* WebClient_2_1.cs: WebClient allows relative URI...
* WebRequest_2_1.cs: ...while WebRequest does not by default.
Also uncomment a few checks for new test cases
svn path=/trunk/mcs/; revision=131518
* method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
call code in full-aot mode since IMT is disabled there.
(mono_method_to_ir): Inline ldfld wrappers which return structures too, the
new JIT no longer has that restriction.
svn path=/trunk/mono/; revision=131517
* UpdatePanel.cs: implemented SingleChildControlCollection to be
used in CreateControlCollection ().
RequiresUpdate not only checks the update mode and explicit update
requests, but also looks if any triggers fired.
Initialize () initializes triggers only if partial rendering is
supported by the ScriptManager.
IsInPartialRendering property no longer returns the value of
ScriptManager.IsInPartialRendering. Instead, it relies on the
value of instance field which can be set using new internal
SetInPartialRendering () method (called from
ScriptManager.RenderPageCallback ())
Simplified the logic in RenderChildren ().
* ScriptManager.cs: no need to register panels for refresh in
OnPreRenderComplete, this is now done in RenderPageCallback.
Modified HasBeenRendered () so that it doesn't query whether the
panel has been explicitly updated by the user, but checks whether
panel is in the list of panels to refresh.
RaisePostDataChangedEvent () doesn't update the panel whose id is
named in the POST request for refresh. This is handled in
RenderPageCallback.
Reverted the changes to WriteCallbackPanel and RenderFormCallback
committed in r129774.
RenderPageCallback now correctly detects panels to be refreshed
(and thus included in the async response).
* AsyncPostBackTrigger.cs, PostBackTrigger.cs: implemented
HasTriggered ().
svn path=/trunk/mcs/; revision=131511
* mini.h (MONO_AOT_FILE_VERSION): Bump this.
* aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
a more compact format.
(mono_aot_wrapper_name): New function to return a unique name for a
wrapper method, also used by the AOT runtime.
* aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
aot-compiler.c.
svn path=/trunk/mono/; revision=131502
* aot-compiler.c (add_generic_class): Add the helper methods from T[]
when a ICollection<T> etc is encountered.
(add_generic_instances): Process method arguments/locals too.
(emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
trampoline names.
* aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.
svn path=/trunk/mono/; revision=131501
2009-04-10 Mark Probst <[email protected]>
* appdomain-unload.cs: Test for invoking on a proxy whose server
domain was unloaded.
svn path=/trunk/mono/; revision=131473
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
7.1's libatomic-ops to fix the ppc build with gcc 4.4.
svn path=/trunk/mono/; revision=131471
* Array.cs: Make some of the InternalArray methods non-generic to cut down
on the number of instantiations. Add implementation for
ICollection:IsReadOnly.
svn path=/trunk/mcs/; revision=131469
an improvement, but doesn't fix all problems. In particular, some
assemblies will depend upon other assemblies to load (e.g. 3rd party
assemblies) but these dependent assemblies shouldn't be documented.
Add support for -r:ASSEMBLY and -L:DIRECTORY arguments to allow the
user to manually add to the assembly search path so that assemblies
can be found. Assemblies added via -r will NOT be documented.
svn path=/trunk/mcs/; revision=131447
* decompose.c (mono_decompose_opcode): Make this return a MonoInst*
representing the result of the decomposition. Nullify instructions
instead of setting them to OP_NOP since nops can't have registers
set.
svn path=/trunk/mono/; revision=131445
* valid_delegate_signature_with_generics.cs: Test for the compatibility
of delegate arguments when a function has a non generic type argument
and the delegate has a generic one.
svn path=/trunk/mono/; revision=131437
* finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs :
Adding a sleep to the waiting thread to give Mono on Windows an
opportunity to interrupt the thread via QueueUserAPC.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131423
* aot-compiler.c (mono_compile_assembly): Split this huge function into
smaller parts. Add 'nodebug' option to prevent generation of DWARF debug
info. Strip 'mapping symbols' on ARM.
* iltests.il.in (test_0_fconv_to_i): Disable this on ARM too.
svn path=/trunk/mono/; revision=131421
* ListBox.cs: The default instance StringFormat field used to draw our
items should use the StringFormatFlags.NoWrap value, so it doesn't try
to put in a different line the text that doesn't fit our bounds, but
show it partially.
Fixes#475581.
svn path=/trunk/mcs/; revision=131415
that DISTFILES can be properly set (and thus properly distribute the
*_test.dll.sources file). This allows unit tests to actually build
and run when building from the tarball.
svn path=/trunk/mcs/; revision=131409
* CheckedListbox.cs: When executing OnItemClick check that the index
is different to -1 before trying to retrieve an item using that value.
Fixes a ArgumentOutOfRangeException thrown when the horizontal
scrollbar was visible but not needed, and then a clicked was received
on its area.
svn path=/trunk/mcs/; revision=131404
2009-04-09 Sebastien Pouliot <[email protected]>
* System.Net.dll.sources: Remove some unneeded files for the
build. Add the SL2 specific enums, instead of using the existing
ones from System.dll. Include Socket_2_1.cs (from System) and use
the AssemblyInfo.cs for this assembly
In System.Net:
2009-04-09 Sebastien Pouliot <[email protected]>
* DnsEndPoint_2_1.cs: Fix header.
* HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
* HttpWebRequest_2_1.cs: Add missing members
* WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
* WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable
svn path=/trunk/mcs/; revision=131400
2009-04-09 Sebastien Pouliot <[email protected]>
* Socket.cs: Split socket class into two files (this one and the
new Socket_2_1.cs). This let us remove (some) existing #if in the
sources and avoid (a lot) of new ones for Moonlight.
* Socket_2_1.cs: Just enough of socket for NET_2_1. This helps
the tuner not to bring a lot of extra stuff (some visible)
into Moonlight.
* SocketAsyncEventArgs.cs: Ifdef out some cases for NET_2_1 so
Moonlight can use it's own (smaller) SocketAsyncOperation enum
In .:
2009-04-09 Sebastien Pouliot <[email protected]>
* System.dll.sources: Add System.Net.Sockets/Socket_2_1.cs
svn path=/trunk/mcs/; revision=131392
* ecma-provider.cs: remove 'using'.
* provider.cs: if there's a directory with the base name, read the
files from there instead of from the .zip file.
svn path=/trunk/mcs/; revision=131376
* class.c (can_access_instantiation): Verify accesibility of element types
for arrays and pointers.
* class.c (can_access_type): Return true if the target class is VAR or MVAR.
* class.c (mono_method_can_access_method_full): Fix typos in the documentation.
Fixes#493068.
svn path=/trunk/mono/; revision=131372
shared amongst all AssemblyDefinitions to resolve assembly/type
references with Cecil. Otherwise, if we have deeply nested
directories with cross-directory assembly dependencies, then Cecil
won't find the necessary assemblies (e.g. b/bin/Debug/b.dll has a
type which inherits from a/bin/Debug/a.dll -- here, we'll have two
separate AssemblyDefinitions, and when b.dll's AssemblyDefinition
tries to resolve types from a.dll, it fails).
See: http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html
svn path=/trunk/mcs/; revision=131370
sqlmetal, as it couldn't find an IProcessor implementation (as the
local AssemblyInfo.cs was missing a [assembly: DbLinq] attribute).
Fix so that sqlmetal works again.
* Makefile: Actually enable NUnit tests.
svn path=/trunk/mcs/; revision=131358
* MaskedTextBox.cs: If Insert is pressed, change the internal
overwrite mode for our default value.
Fixes some bits of #477395.
svn path=/trunk/mcs/; revision=131344
* security-core-clr.c: Simplify get_reflection_caller not to call
mono_method_get_last_managed (another stack walk) and adjust the
callers to handle a (should not happen) NULL return value.
svn path=/trunk/mono/; revision=131339
* dis/get.c: Use new MonoGenericParam accessors.
* metadata/class-internals.h (mono_generic_param_owner): New accessor.
(mono_generic_param_num): Likewise.
(mono_type_get_generic_param_owner): New helper.
(mono_type_get_generic_param_num): New helper.
* metadata/{class.c, icall.c, metadata.c, reflection.c, verify.c}: Use them.
* mini/aot-compiler.c: Use new MonoGenericParam accessors.
svn path=/trunk/mono/; revision=131315
* ScriptComponentDescriptor.cs: properties/events/references must
be serialized in alphabetical order. This matches what .NET
does. Some 3rd party controls depend upon this fact.
svn path=/trunk/mcs/; revision=131314
* aot-runtime.c (decode_klass_ref): Simplify generic parameter
handing. Avoid allocating MonoGenericParams, but use the ones in
the container itself.
svn path=/trunk/mono/; revision=131295
* dis/get.c: Use MonoGenericContainer accessor to get the contained
MonoGenericParam.
* metadata/class-internals.h (mono_generic_container_get_param): New wrapper.
* metadata/{class.c, icall.c, metadata.c, verify.c}: Use it.
svn path=/trunk/mono/; revision=131294
* verify.c (mono_type_is_valid_type_in_context): Rewrite to use
the standard case/loop. In particular, don't complain about
references to generic type definitions.
svn path=/trunk/mono/; revision=131270
* mini-llvm.c (mono_llvm_emit_method): Fix alignment in the LOCALLOC_IMM
opcode. Use pointer types in more places instead of casting them to
integers.
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Create a pass manager to run
optimizations.
(mono_llvm_optimize_method): New helper function to optimize a method.
* method-to-ir.c (mono_emit_widen_call_res): Extract the call result
widening code so it could be called from more places.
(mono_method_to_ir): Call mono_emit_widne_call_res () in several more
code paths in the call opcodes.
svn path=/trunk/mono/; revision=131265
* loader.c (method_from_memberref): If ít's a memberref to a typespec inflate
the signature and search the inflated type.
We can't blindly search the generic type definition or expect that the signature
will be inflated as both options can happen. The only solution is to search the
inflated type against the inflated signature.
Fixes#492778.
svn path=/trunk/mono/; revision=131263
* verify.c (mono_method_verify): Don't init code slots for exception boundaries if they
are larger than code size.
This can happen in valid code if the try/catch block is not followed by any instruction
and do a backward branch on the leave instruction.
Fixes#492494.
svn path=/trunk/mono/; revision=131233
* TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
assume that the passed member is a property anymore. Fixes bug
#492252
svn path=/trunk/mcs/; revision=131210
* TreeView.js: removed nodeText parameter from the JS calls.
* TreeView.cs: encode | characters into U+007C, so that
RaiseCallbackEvent doesn't get confused.
Removed nodeText parameter from the JS calls.
svn path=/trunk/mcs/; revision=131196
* TreeNode.cs: reset the path data for all child nodes too.
* TreeView.cs: HtmlAttribute encode the node text. When rebuilding the
node tree, set the correct index for the nodes so that the Path is
correct.
svn path=/trunk/mcs/; revision=131186
* AssemblyInfo.cs: Added; Assembly-level attributes for sqlmetal.exe.
* Makefile: Correct the "namespace" of the embedded resource files;
build NUnit tests for sqlmetal.exe.
* sqlmetal.exe.sources: Build against the local AssemblyInfo.cs, not
DbMetal's AssemblyInfo.cs file.
* sqlmetal_test.dll.sources: Added; source files for the NUnit test.
* Test/AssemblyInfo.cs: Added; Assembly-level attributes for the NUnit
test assembly.
svn path=/trunk/mcs/; revision=131184
* ListView.cs: In EnsureVisible avoid any direct access to items if we
are using virtual mode - otherwise use the bounds stored in a specific
item in a given index. This is specially important when using groups
or when items are re-arranged, since the position in the items
collection can be different than that one being displayed.
Fixes the rest of ##491978.
svn path=/trunk/mcs/; revision=131163
* AssemblyInfo.cs: Remove AllowPartiallyTrustedCallers from NET_2_1
build (not in SL2) and open our internals to System.Xml.Serialization
(only in NET_2_1) since MS SL2 SDK requires it. Test case @
http://demos.devexpress.com/AgDataGridDemos/
svn path=/trunk/mcs/; revision=131162
* dwarfwriter.c: Use _ to separate class name
components as gdb can't handle '.'. Represent reference variables
as 'class <NAME>&'.
svn path=/trunk/mono/; revision=131157
* security-core-clr.c: Fix typo while comparing second method names
in can_avoid_corlib_reflection_delegate_optimization
svn path=/trunk/mono/; revision=131152
* ToolTip.cs: New fields to store the title/icon information.
* ThemeWin32Classic.cs: Implement support for tooltip's title and
icon.
Fixes#491978.
svn path=/trunk/mcs/; revision=131143
* HttpRuntime.cs: added a new internal static property
IsDebuggingEnabled
* HttpContext.cs: IsDebuggingEnabled now calls
HttpRuntime.IsDebuggingEnabled
2009-04-06 Marek Habersack <[email protected]>
* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
now return full exception trace if one is caught and we're running
in debugging mode.
2009-04-06 Marek Habersack <[email protected]>
* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
full definition of treeview's node contents.
Added new function, TreeView_PopulateNode, which partially takes
over role of the PopulateNode function generated in
TreeView.OnPreRender (see below). Fixes bug #492307
* TreeView.cs: RaiseCallbackEvent needs to recreate the event
target's parental tree all the way from the root to the node and
populate only the leaf (requested) node. This avoids calling the
TreeNodePopulate handler more times than needed. Fixes bug #492307
OnPreRender: moved the script code to constants and the script
body is now generated using StringBuilder instead of a series of
String.Format calls.
GetClientExpandEvent: adjusted code for new TreeView JavaScript
API.
svn path=/trunk/mcs/; revision=131137
* object.c (mono_class_compute_gc_descriptor): Make this non-static.
* domain-internals.h (struct _MonoJitInfo): Add a 'gc_info' field.
* gc-internal.h (MonoGCCallbacks): New stucture containing the callback
functions supplied by the JIT for the SGEN GC.
* sgen-gc.c: Call the callbacks supplied by the JIT to do stack marking.
svn path=/trunk/mono/; revision=131132
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.
* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.
* gc-test.cs: New file with GC stack marking tests.
svn path=/trunk/mono/; revision=131131
* mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.
* mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
* mini-gc.c: New file, contains the SGEN GC related parts of the JIT.
* gc-test.cs: New file with GC stack marking tests.
svn path=/trunk/mono/; revision=131130
* Workspace.cs, ResourceCollectionInfo.cs,
CategoriesDocument.cs, ServiceDocument.cs : use common internal
SyndicationExtension class for extensions.
svn path=/trunk/mcs/; revision=131111
an NUnit test assembly during 'make test' and will run the tests
within the NUnit test assembly during 'make run-test'.
* library.make: Split out NUnit test rules/logic into tests.make.
* Makefile: Distribute tests.make.
* README.makefiles: Document HAS_NUNIT_TEST for executable.make,
documenting how to have NUnit tests for executables.
* tests.make: Added; NUnit test logic rules.
svn path=/trunk/mcs/; revision=131072
* AssemblyResourceLoader.cs: MS sets cacheability to public. Add
Last-Modified header and return 304 if validating max-age=0 or
If-Modified-Since succeeds.
svn path=/trunk/mcs/; revision=131053
* mono-filemap.c: Move mono_file_unmap for the not-mmap case to
the mono-filemap.c file so it can be plugged in platform-specific
code as well.
svn path=/trunk/mono/; revision=131031
* LogicalTypeInfo.cs: don't throw NREX when the passed type
doesn't have a parameterless constructor in
ShouldGenerateScript. Fixes bug #485435
svn path=/trunk/mcs/; revision=130982
* WebUIValidation_2.0.js: CustomValidatorEvaluateIsValid calls the
client-side evaluation function even if ControlToValidate is not
set. Fixes bug #485458
svn path=/trunk/mcs/; revision=130979
* SessionSQLServerHandler.cs: recreate connection after database
became unavailable but the session handler is still alive. Fixes
bug #491508. Patch from Hubert Fongarnand
<[email protected]>, thanks!
svn path=/trunk/mcs/; revision=130972
* AspParser.cs: local copy of checksum generated by the tokenizer
is made right after parsing is done.
* AspGenerator.cs: set tparser.MD5Checksum in Parse instead of in
InitParser. Avoids empty checksums in #pragma checksum.
svn path=/trunk/mcs/; revision=130971
* mini.h (COMPILE_LLVM): New macro.
* decompose.c (mono_decompose_opcode): Use the COMPILE_LLVM macro.
* ssa.c (mono_ssa_compute): Ditto.
* unwind.c (mono_unwind_get_ops_from_fde): New helper function to extract
the unwind ops from a DWARF FDE.
* mini-llvm.c: Implement generation of unwind info for LLVM compiled
methods by extracting the dwarf unwind ops from the unwind info generated
by LLVM.
svn path=/trunk/mono/; revision=130967
* TabControl.cs: When removing a tab that was previously selected, set
internally the value of selected_index to -1, to avoid trying to
access the previous one when trying to set the new one (and was
already removed from the collection). This is what .net seems to do
too.
Fixes#490937.
svn path=/trunk/mcs/; revision=130931
* mini-llvm.c (mono_llvm_emit_method): Enable support for non-IMT virtual
calls.
* mini-amd64.c (mono_arch_get_vcall_slot): Handle more kinds of the SIB
addressing modes.
svn path=/trunk/mono/; revision=130911
* WebConfigurationManager.cs: added code in the static constructor
to enable retrieving application settings via
ApplicationSettingsBase from within asp.net applications. Fixes
bug #491531
* ApplicationSettingsConfigurationFileMap.cs: added.
2009-04-03 Marek Habersack <[email protected]>
* CustomizableFileSettingsProvider.cs: added a way for System.Web
to specify path to the current Web.config. Fixes bug #491531
svn path=/trunk/mcs/; revision=130909
* Mono.Cecil.Metadata/BlobHeap.cs
* Mono.Cecil.Metadata/MetadataWriter.cs:
do a better job at emitting a blob heap.
svn path=/trunk/mcs/; revision=130908
* ClipboardTest.cs: New rrich text format test, and also re-name the
previous test to be a little more informative. Also clear the data
we have put in the clipboard before returning.
svn path=/trunk/mcs/; revision=130903
* XplatUIX11.cs, X11Clipboard.cs: Text and Rtf formats must be
separated, and we cannot fallback on Text if Rtf is requested but not
present.
* Clipboard.cs: Actually use the format specified by our user when
putting data.
svn path=/trunk/mcs/; revision=130902
* mini.c (mini_method_compile): Add support for compiling with LLVM,
failing back to the JIT if something cannot be handled.
* mini-amd64.c (mono_arch_emit_call): Emit the arguments more simple when
compiling with LLVM.
* decompose.c (mono_decompose_opcode): Avoid decomposing some opcodes when
compiling with LLVM.
* method-to-ir.c (mono_method_to_ir): Avoid decomposing SWITCH when
compiling with LLVM.
* mini-ops.h: Add a few opcodes needed by LLVM.
* dwarfwriter.c (mono_dwarf_writer_emit_method): Avoid crashes if the method
has no unwind info.
* mini-llvm.c mini-llvm-cpp.cpp: New files containing the experimental llvm
backend.
svn path=/trunk/mono/; revision=130895
* Dictionary.cs (ValueCollection.CopyTo): fix for copying to
an object array. Based on a patch by Tobias Grimm <[email protected]>.
Fixes bug #328036.
svn path=/trunk/mcs/; revision=130884
* CompilationException.cs: skip warnings in ErrorMessage and
ErrorLines
* BuildManager.cs: when an error occurs while compiling the
requested virtual path, throw the exception, do not attempt to
build again.
* TemplateControlCompiler.cs: implemented missing converter for
the ExpandDepth property. Fixes bug #490860
2009-04-02 Marek Habersack <[email protected]>
* HttpException.cs: if there are more lines with errors, display
them all.
svn path=/trunk/mcs/; revision=130876
* valid_candidate_contraint_is_inflated_using_global_context.cs:
New test for cases where the candidate constraint type refers to the
global generic context.
We have to use it because it might be the case the the global context
has more arguments than the local one.
svn path=/trunk/mono/; revision=130873
* verify.c (mono_generic_param_is_constraint_compatible): Inflate the candidate
using the context of the method been verifier and not of the method been called.
* verify.c: Add verifier_inflate_type and mono_type_is_valid_type_in_context to
safely inflate generic types.
svn path=/trunk/mono/; revision=130872
* Initial import of ASP.NET MVC 1.0
2009-04-02 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added Mono specific attributes to delay-sign
the assembly with the winfx.pub key.
svn path=/trunk/mcs/; revision=130868
* security-core-clr.c: Change the strategy for checking the
"reflection using delegates optimization" to avoid unneeded
attributes in multiple class libraries.
svn path=/trunk/mono/; revision=130865
* ContentType.cs : when there are especials, quote parameter values.
* ContentTypeTest.cs : add quotation test for especials.
svn path=/trunk/mcs/; revision=130842
2009-04-01 Mark Probst <[email protected]>
* regalloc.h, mini-codegen.c: Make vassign members gint32 to fix
ridiculously large methods.
svn path=/trunk/mono/; revision=130798
* AssemblyBuilder.cs: CSharpCodePragmaGenerator.ReserveSpace:
added the 2 extra chars to pragmaChecksumStaticCount constant (the
ones added by Gonzalo below) and removed one NewLine to account
for Martin's change below.
VBCodePragmaGenerator.ReserveSpace - one newline follows
#ExternalSource.
VBCodePragmaGenerator.DecorateFile - one newline follows
#ExternalSource.
svn path=/trunk/mcs/; revision=130763
* Fixes rest of #480377
* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
where passed type overloads an explicit operator for conversion of values.
svn path=/trunk/mcs/; revision=130709
* Fixes rest of #480377
* DataContainer.cs (GetContainerData, GetExplicitValue): Added to handle cases
where passed type overloads an explicit operator for conversion of values.
svn path=/trunk/mcs/; revision=130708
* verify.c (verifier_load_field): Fail if the field parent could not be loaded.
* verify.c (mono_method_verify): Do proper bounds checking of exception
clause ranges.
svn path=/trunk/mono/; revision=130699
* Page.cs: SavePageViewState saves the list of controls which
require post back regardless of whether view state is disabled or
not. Fixes bug #490753
svn path=/trunk/mcs/; revision=130694
* Code.cs (CILLabel): Add new constructor to signal that
a label is an absolute il offset. This is required by exception
handling declarations that use offsets and not labels.
svn path=/trunk/mcs/; revision=130691
* HttpApplicationFactory.cs: use glob patterns to watch for
changes to global.asax and web.config files.
Set up recursive watch on web.config in a separate thread, to
minimize application startup delay. Fixes bug #490497
svn path=/trunk/mcs/; revision=130682
* X11Clipboard.cs: Actually look for the RtfText format when calling
GetRftText in our clipboard formats list, instead of using the
generical Text format.
svn path=/trunk/mcs/; revision=130681
2009-03-31 Mark Probst <[email protected]>
* sgen-gc.c: Execute critical finalizers after ordinary
finalizers.
* class-internals.h, domain.c: Add CriticalFinalizerObject to
mono_defaults.
2009-03-31 Mark Probst <[email protected]>
* critical-finalizers.cs: Test case for critical finalizers.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130677
2009-03-31 Mark Probst <[email protected]>
* sgen-gc.c: Wait until the last finalizer has executed when
returning from WaitForPendingFinalizers.
2009-03-31 Mark Probst <[email protected]>
* finalizer-wait.cs: Test case for WaitForPendingFinalizers.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130670
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
be created using Response.Write, as the code expression in the
href attribute is otherwise treated verbatim. This is the same as
with .NET. Fixes bug #490497
svn path=/trunk/mono/; revision=130667
* All of the below are part of the fix for bug #489687
* ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
constructors.
* BuildProvider.cs: associated virtual path is stored internally
as an instance of VirtualPath, accessible via new
VirtualPathInternal property.
* BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
detect fake virtual paths.
GetBuildProvider now takes a VirtualPath instead of string for the
virtualPath parameter. The passed VirtualPath instance is passed
unchanged to BuildProvider.
* BuildManager.cs: AssertVirtualPathExists now uses
VirtualPath.IsFake to check for fake virtual paths.
* ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
MasterPageBuildProvider.cs, PageBuildProvider.cs,
ThemeBuildProvider.cs, UserControlBuildProvider.cs,
WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
CreateParser overloads now take a VirtualPath instead of a string
for the virtualPath parameter.
* ThemeBuildProvider.cs: use new parser constructors which take
VirtualPath instances instead of strings.
2009-03-31 Marek Habersack <[email protected]>
* VirtualPath.cs: added code to detect whether the VirtualPath
instance represents a fake virtual path (IsFake property).
Added new property DirectoryNoNormalize which returns
non-normalized directory for the VirtualPath instance.
Made ToString () a bit more friendly and well-behaved.
2009-03-31 Marek Habersack <[email protected]>
* ApplicationFileParser.cs, MasterPageParser.cs, PageParser.cs,
PageThemeFileParser.cs, PageThemeParser.cs, UserControlParser.cs,
WebHandlerParser.cs, WebServiceParser.cs: 2.0 constructors take a
VirtualPath instance for the virtualPath parameter, instead of a
string.
svn path=/trunk/mcs/; revision=130665
2009-03-31 Martin Baulig <[email protected]>
* debug-debugger.c (debugger_remove_breakpoint): Call
mono_debugger_remove_class_init_callback ().
2009-03-31 Martin Baulig <[email protected]>
* mono-debug-debugger.c
(mono_debugger_register_class_init_callback): Also register the
class init callback if the class is already initialized to make
things work with shadow copied assemblies.
svn path=/trunk/mono/; revision=130658
* XmlBinaryDictionaryReader.cs, XmlDictionaryWriter.cs :
a couple of fixes to reflect correct values for node properties
on each read step.
* XmlBinaryDictionaryReaderTest.cs: make tests more doubtful on
state.
svn path=/trunk/mcs/; revision=130655
* security-core-clr.c
(mono_security_core_clr_ensure_reflection_access_field): Let
critical code access the field (just like we do for methods). Use
check_field_access helper.
(mono_security_core_clr_ensure_reflection_access_method): Use
check_field_access helper.
svn path=/trunk/mono/; revision=130652
2009-03-31 Mark Probst <[email protected]>
* sgen-gc.c: Remove data (callback) element from FinalizeEntry
* and
call the run-finalize function directly.
* gc.c, gc-internal.h: Make run_finalize() non-static.
svn path=/trunk/mono/; revision=130650
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs
XmlBinaryFormat.cs : implemented element with short prefix.
* XmlBinaryDictionaryReaderTest.cs,
XmlBinaryDictionaryWriterTest.cs : added test for element with
short prefix.
svn path=/trunk/mcs/; revision=130617
* socket-io.c: don't fail if the SocketOptionsFlag has Partial or
* MaxIOVectorLength enabled, just ignore them.
Fixes bug #349688.
svn path=/trunk/mono/; revision=130613
* aot-compiler.c (mono_compile_assembly): Call img_writer_emit_start ()
right before emitting code, not at the start.
* mini.c (mono_postprocess_patches): Extract this into a separate function
from mono_codegen ().
* ssa.c (mono_ssa_compute): Set ins->klass for every PHI node, handle
byref types correctly.
svn path=/trunk/mono/; revision=130585
* gen-md-tests.c: Parse the source assembly using the runtime
metadata routines.
* gen-md-tests.c: Add table-row function.
* Makefile: like gen-md-tests with the runtime.
* cli-tables-tests.md: Add initial tests for the module table.
svn path=/trunk/mono/; revision=130581
* TextBox.cs: Process auto completion properly when we are using the
internal source provided by ComboBox, and also remove some repeated
checks.
Fixes#489339.
svn path=/trunk/mcs/; revision=130573
* AssemblyBuilder.cs: introduced a kludge to add #pragma checksum
and #pragma lines (or its vb equivalent - #ExternalSource) to
code-behind files named in the CodeFile/Src directives while
copying them to the dynamic directory for compilation. The kludge
works by recognizing the .cs and .vb extensions and wrapping the
file contents in the appropriate directives. This is done in this
way because the other possible way, using the
CodeSnippetCompileUnit, requires the entire file to be read in
memory and then passed to CodeDOM. We fall back to this way when
the file being copied is neither C# or VB.
svn path=/trunk/mcs/; revision=130566
src/DbLinq/Factory/Implementation/AbstractObjectFactory.cs, add
src/DbLinq/Data/Linq/SqlClient/Sql2008Provider.cs.
* src/**/*: Flush; syncs to DbLinq r1038, fixes
System.Data.Linq.SqlClient.Sql200?Provider cor-compare differences,
unit test execution order dependency issues, namespace names within
tests, etc.
svn path=/trunk/mcs/; revision=130561
ExceptionLocations.AddedMember, used for --exceptions=added support.
* Mono.Documentation/monodocer.cs: Add --exceptions=added, which will
only add <exception/> elements for newly added elements. This is
useful for updating documentation for established projects which
already have <exception/> corrections (e.g. *removal* of
<exception/> elements because the exceptions weren't actually
possible), so only new members should have <exception/> created.
svn path=/trunk/mcs/; revision=130551
* X11Clipboard.cs: Move internal ClipboardStruct from X11Structs to
its own file, since it is adding some functionality and thus is not a
simple struct as before.
* XplatUIX11.cs: Add support to store different formats that could
have been specified by the user when puting data in the Clipboard -
this is important when more than one format is supported (such plain
text and rtf text). Update in the needed places, as well as simplify
the code.
Fixes#489625.
2009-03-30 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=130537
* XplatUIX11.cs: When handling the SelectionRequest event, use
SelectionRequestEvent instead of SelectionEvent, so we get the right
data for the app asking for clipboard data. Set the member of
SelectioneEvent.property to indicate the place where we are storing
the information as well - this is specially important for gnome/kde
apps using the TARGETS atom to ask for the supported permission before
actually asking for a specific format.
Fixes#489393.
svn path=/trunk/mcs/; revision=130531
* mini-amd64.c (mono_arch_output_basic_block): Emit a few nops before
indirect calls, this avoids problems where get_vcall_slot () would get
confused by the native code for the instruction preceeding the call.
(mono_arch_get_vcall_slot): Simplify this.
(mono_arch_emit_imt_argument): Remove this, it is no longer needed.
svn path=/trunk/mono/; revision=130505
* mini-ops.h: Fix the definitions of the OP_IA64 opcodes, since the local
register allocator now seems to depend on them instead of the data in
cpu-<ARCH>.md.
svn path=/trunk/mono/; revision=130491
* mini.c (mini_method_compile): Throw the correct type of exception if
mono_method_get_header () fails because of a loading error.
svn path=/trunk/mono/; revision=130483
* mini.c (mini_method_compile): Clear the loader error if the method
header cannot be decoded.
In tests/
* load-exceptions.cs: Add a test for missing locals.
svn path=/trunk/mono/; revision=130476
* class.c: move coreclr inheritance/override checks to
security-core.clr.c
* security-core.clr.c|h: add code from class.c with additional
documentation. Fix override check when the method is not critical.
svn path=/trunk/mono/; revision=130464
* dwarfwriter.c (mono_dwarf_writer_emit_method): Fix handling of the
this argument for vtype methods. Add precise liveness info for arguments.
svn path=/trunk/mono/; revision=130460
* mini-codegen.c (mono_print_ins_index): Print the vreg of the
LIVERANGE_START/END opcodes.
* method-to-ir.c (mono_spill_global_vars): Fix liverange calculation
for arguments and values in registers.
svn path=/trunk/mono/; revision=130459
* DataGridViewCell.cs: We don't support drawing all types of cell borders,
so fallback and at least draw something instead of nothing.
svn path=/trunk/mcs/; revision=130449
* DataGridView.cs: If the column header isn't visible allow resizing
using the cell column border. Also be sure to reset the cursor properly.
[Fixes bug #489929]
svn path=/trunk/mcs/; revision=130446
* metadata-verify.c: Rename bounds_check_offset to bounds_check_datadir.
* metadata-verify.c: Implement table layout row size calculation. Verify
the total size of the tables.
svn path=/trunk/mono/; revision=130443
* appdomain.c:
* console-io.[ch]: added new mono_console_init() to make sure that
file descriptors 0, 1 and 2 are opened.
Bug #489019 fixed.
svn path=/trunk/mono/; revision=130424
* XmlBinaryDictionaryWriter.cs : further namespace refactory.
namespaces are managed by its own (to work fine for both string
and dictionary string).
svn path=/trunk/mcs/; revision=130396
* appdomain.h: Export a new callback type and a new function to
set this callback. This allow a mono host to provide it's own
definition for "platform code".
* metadata-internals.h: Add a core_clr_platform_code flag on
_MonoImage to (cache and) know if it is representing platform
code.
* image.c (do_mono_image_open): Set core_clr_platform_code flag
on platform code images.
* security-core-clr.c|h
(mono_security_set_core_clr_platform_callback): Allow the host
to provide it's own platform check definition.
(mono_security_core_clr_determine_platform_image): Detect if an
image is platform code (using the specified callback).
(mono_security_core_clr_is_platform_image): Return cached value
for platform code.
svn path=/trunk/mono/; revision=130389
2009-03-27 Zoltan Varga <[email protected]>
* threads.h: Add a comment to CreateThread.
In metadata/
2009-03-27 Zoltan Varga <[email protected]>
* threads.c (mono_create_thread): New helper function to wrap CreateThread
which has different parameter types for the 'tid' argument in windows and
the io-layer.
* appdomain.c attach.c threads.c: Use the new helper.
In mini/
2009-03-27 Zoltan Varga <[email protected]>
* aot-compiler.c: Use mono_thread_create () to create helper threads.
svn path=/trunk/mono/; revision=130385
* XmlBinaryFormat.cs, XmlBinaryDictionaryReader.cs,
XmlBinaryDictionaryWriter.cs : improved shorthanded prefix
support. Not only autocreated prefixes but also explicitly-
specified 'a' .. 'z' prefixes are mapped as shorthand.
Some significant (and ongoing) namespace support changes.
* XmlBinaryDictionaryWriterTest.cs: added test for shorthand
prefixed attributes.
svn path=/trunk/mcs/; revision=130381
* gen-md-tests.c: Add tables-header and set-bit helpers.
* cli-tables-tests.md: New tests for the cli tables.
* Makefile: Add new tests.
svn path=/trunk/mono/; revision=130349
IEnumerable<TEntity>.GetEnumerator() implementation to Table<TEntity>.
This is done for cor-compare compatibility with .NET.
svn path=/trunk/mcs/; revision=130333
* ToolStrip.cs: When disposing, iterate over the items in reverse
order, since disposing the items modifies the collection.
* ToolStripItem.cs: Remove from the owner when disposing.
Fixes#485769.
svn path=/trunk/mcs/; revision=130331
* DataGridView.cs: Add an implementation for UpdateRowHeightInfo. No
longer throws a NotImplementedException.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #488319]
svn path=/trunk/mcs/; revision=130327
* DataGridView.cs: Do not show the vertical scrollbar if there is only
one row or less. For the sake of MSNET compatibility.
[Fixes bug #487988]
svn path=/trunk/mcs/; revision=130318
* TaskDatabase.cs (RegisterTask): Search for class by name
if task was not found using GetType (which uses namespace).
svn path=/trunk/mcs/; revision=130305
* HttpWorkerRequest.cs: use a generic dictionary to keep header
names in 2.0+.
GetKnown{Request,Response}HeaderIndex doesn't use the switch
anymore.
* HttpResponse.cs: WriteHeaders now checks whether a header to be
sent is a known one or not and uses the appropriate method to send
that header. Partial fix for bug #488702
svn path=/trunk/mcs/; revision=130292
* XmlBinaryFormat.cs, XmlBinaryDictionaryWriter.cs :
added some incomplete code for QName support.
* XmlBinaryDictionaryWriterTest.cs: added QName test part, but
disable since it does not work yet.
svn path=/trunk/mcs/; revision=130290
* X509ChainPolicyTest.cs: Add a small sleep between the Reset and
the second VerificationTime check since it would be possible, on
fast hardware, to get the same value (and assert).
svn path=/trunk/mcs/; revision=130282
* XmlBinaryDictionaryReader.cs, XmlBinaryFormat.cs :
handle utf16 typed nodes. (not sure if it is used in writer.)
svn path=/trunk/mcs/; revision=130281
* XmlBinaryDictionaryReader.cs, XmlBinaryDictionaryWriter.cs,
XmlBinaryFormat.cs : fixed couple of issues regarding text and
base64 fixed-length buffers (their sizes are not variant).
Some ongoing changes on reading dummy-prefixed attributes.
svn path=/trunk/mcs/; revision=130278
* DataGridView.cs: When the current cell is moved out of the editing row
be sure to reset it back to a place holder row.
svn path=/trunk/mcs/; revision=130267
2009-03-25 Mark Probst <[email protected]>
* mini-codegen.c (mono_local_regalloc): Don't let sregs get
allocated to the same registers as fixed sregs.
2009-03-25 Mark Probst <[email protected]>
* interlocked-4.2.cs: New CompareExchange test (triggered
* register
allocation bug on x86 and amd64).
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=130247
* AspTokenizer.cs: MD5 checksum calculation happens here. It's
done incrementally as characters are read.
* AspParser.cs: the MD5 checksum is no longer computed here. Moved
to AspTokenizer.
After parsing, both the tokenizer and the string reader are
disposed of.
svn path=/trunk/mcs/; revision=130245
* AssemblyBuilder.cs: renamed CopyFile to CopyFileWithChecksum, in
prepration for future inclusion of checksum and line pragmas in
the file being copied.
Files are copied chunk by chunk, not by reading the entire
contents.
svn path=/trunk/mcs/; revision=130244
* appdomain.c: Bump MONO_CORLIB_VERSION to 73
* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Add
an extra 'throwOnBindFailure' parameter to the icall. Remove FIXME
and add a call to mono_security_core_clr_ensure_delegate_creation
to do the extra checks required by CoreCLR.
* security-core-clr.c|h: Add function to check delegate creation,
both in the binding and accessibility, under CoreCLR.
svn path=/trunk/mono/; revision=130214
* reflection.c (mono_reflection_create_dynamic_method): when
coreclr is enabled make sure that every resolved object are
checked (e.g. field and method access).
* security-core-clr.c|h: Add function to check objects resolved
when a dynamic method is created.
svn path=/trunk/mono/; revision=130206
* Delegate.cs (CreateDelegate): fix checks to deal with
valuetypes -> obj conversions for arguments, and avoid
issues with such unallowed conversion for return types.
svn path=/trunk/mcs/; revision=130175
* gen-md-tests.c: Add stream-header and cli-metadata
helpers.
* cli-metadata-tests.md: New tests for the cli metadata header
and streams.
* Makefile: Add new tests.
svn path=/trunk/mono/; revision=130173
* SerializationMap.cs, XmlFormatterDeserializer.cs:
empty collection deserialization resulted in extra
consumption of the next xml node.
svn path=/trunk/mcs/; revision=130108
* TemplateBuildProvider.cs: add values of the CodeFile and Src
page/master/control directives to the list of file dependencies.
Extract language also for master/page, not only for controls.
* PageCompiler.cs: CreateConstructors now triggers master page
build, if the current page is using one. Fixes bug #487857
svn path=/trunk/mcs/; revision=130082
stat.f_bavail * stat.f_frsize, NOT f_bavail*f_bsize, as on some
platforms (Solaris) bsize is the preferred block I/O size, while
f_frsize is the *actual* filesystem block size. Thus, to get proper
disk under Solaris, we need to s/f_bsize/f_frsize/g.
svn path=/trunk/mcs/; revision=130055
* ConsoleTest.cs: added a bunch of tests for the standard input,
output and error stream properties.
2009-03-23 Marek Habersack <[email protected]>
* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
constructors
2009-03-23 Marek Habersack <[email protected]>
* Console.cs: OpenStandard{Input,Output,Error} no longer use
FileStream on 2.0+. The reason is that SafeFileHandle used in the
stream doesn't allow handles with values <= 0, and on Unix stdin
is 0 which would break the Console class. Instead of FileStream,
introduced a simple internal specialized stream which is used in
this scenario.
2009-03-23 Marek Habersack <[email protected]>
* FileStream.cs: implemented full support for SafeFileHandle in
2.0. The obsolete constructors taking an IntPtr now wrap it in a
SafeFileHandle.
2009-03-23 Marek Habersack <[email protected]>
* SafeHandle.cs: added an internal property, OwnsHandle, used by
FileStream.
svn path=/trunk/mcs/; revision=130049
* aot-compiler.c (arch_emit_unbox_trampoline): Fix the binary writer support.
(mono_compile_assembly): Enable the binary writer for full-aot as well.
* image-writer.c (do_reloc): Add support for the JUMP24 relocation,
fix the handling of large values in the ALU_PC_G0_NC relocation.
svn path=/trunk/mono/; revision=130003
* driver.cs (Main): Use Environment.Exit to quit quickly and
prevent the compiler from doing the usual wait for helper thread
to terminate.
This is to prevent a slowdown that was reported by Gonzalo on
ASP.NET
svn path=/trunk/mcs/; revision=129990
* exception.c|h: Add helpers to create [Field|Method]AccessException
* icall.c: Add required coreclr check calls for field reflection.
Move the existing (method) check logic into security-core-clr.c
* security-core-clr.c: Add functions to check if the access of a
field or method is allowed when reflecting under coreclr. This is
mostly done using a stack walk to find the "real" caller: i.e. the
code that is calling the reflection
svn path=/trunk/mono/; revision=129959
mdoc-export-html, and other apps that use file timetamps: if the
file contents haven't changed after the update, don't replace the
"original" file. This preserves file timestamps, thus allowing
other apps to behave nicely (e.g. mdoc-export-html won't update all
documentation after running mdoc-update, as the files won't change
unless something has *actually* changed).
svn path=/trunk/mcs/; revision=129940
target file already exists and is newer than the source file, don't
regenerate it. (Greatly speeds things up if only a few .xml files
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=129936
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization
works correctly, i.e. throw the right exception, with Moonlight.
svn path=/trunk/mcs/; revision=129872
* security-core-clr.c|h: (mono_security_core_clr_class_level,
mono_security_core_clr_method_level): Avoid potential
MonoCustomAttrInfo allocation for transparent assemblies (e.g.
user/application code) and make it easier to set breakpoints
svn path=/trunk/mono/; revision=129866
* OracleCommand.cs: fix suggested by Thracx <[email protected]>
where the parameter was always item zero for an out parameter.
svn path=/trunk/mcs/; revision=129864
* unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.
* mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
into cfg->used_int_regs, it is not needed with the dwarf unwinder.
(mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.
svn path=/trunk/mono/; revision=129826
src/DbLinq.Firebird/FirebirdDataContext.cs,
src/DbLinq.Ingres/IngresDataContext.cs,
src/DbLinq.MySql/MysqlDataContext.cs,
src/DbLinq.Oracle/OracleDataContext.cs,
src/DbLinq.PostgreSql/PgsqlDataContext.cs,
src/DbLinq.Sqlite/Schema/DataCommand.cs,
src/DbLinq.Sqlite/SqliteDataContext.cs,
src/DbLinq.SqlServer/SqlServerDataContext.cs,
src/DbLinq/Util/ReflectionUtility.cs: Make types internal so that
they aren't exported from System.Data.Linq.dll.
svn path=/trunk/mcs/; revision=129823
* DataGridView.cs: If IsHandleCreated and the very first row is added
to the grid in a non-databound scenario - select the first cell.2009-03-19 Ivan N. Zlatev <[email protected]>
* DataGridViewTest.cs: Add tests to verify that the current cell changes
if IsHandleCreated and the first row is added in a non-databound scenario.
[Fixes bug #486881]
svn path=/trunk/mcs/; revision=129815
* DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
DataGridView. They do not belong to a DataGridView.
* DataGridViewTest.cs, DataGridViewColumnTest.cs: Add tests for
Row/CellTemplates being always null.
[Fixes bug #486645]
svn path=/trunk/mcs/; revision=129806
* DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
Set indices and associate with DataGridView only after the item is
add to the internal list.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129805
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
FullRowTemplate already contains all the cells.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129804
* DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
to perform Pre and Post removal actions to allow the current cell to be
moved and all events fired properly before the column is removed.
svn path=/trunk/mcs/; revision=129803
* ScriptManager.cs: WriteCallbackPanel is called from
UpdatePanel.RenderChildren and should not output anything for
panels registered as the ones to refresh. If such a panel calls
this method, its output is stored in a dictionary to be used later
in RenderFormCallback.
RenderFormCallback first renders all the form controls. In that
process UpdatePanel instances, if any, may call
WriteCallbackPanel. After that, if there are panels registered for
refresh, another loop over the list is made this time checking
whether any panels left their output in WriteCallbackPanel. If a
panel hasn't done it it is rendered. And last, another check is
done to see if the loop described above caused any panels to leave
output in WriteCallbackPanel. If yes, the output is written to the
text writer.
svn path=/trunk/mcs/; revision=129774
* SecurityManager.cs: Remove VerificationException (not used from
the runtime anymore) and add FieldAccessException (which is now,
or soon will be, required/used by the runtime).
svn path=/trunk/mcs/; revision=129771
* KnownTypeCollection.cs, XmlFormatterDeserializer.cs :
to infer type from xml qname, consider DataContractAttribute
names.
svn path=/trunk/mcs/; revision=129764
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.
svn path=/trunk/mcs/; revision=129760
* DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
Post removal action to allow the current cell to be moved and all events fired
properly before the row is removed.
svn path=/trunk/mcs/; revision=129757
* metadata-verify.c (verify_resources_table): Fix verification of zero
sized resource section and id entries count.
svn path=/trunk/mono/; revision=129741
* TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
the base method which now throws an exception.
svn path=/trunk/mcs/; revision=129692
* Type.cs (GetGenericTypeDefinition): Make this throw an exception to be
consistent with MS.NET. Move the real implementation to MonoType.
svn path=/trunk/mcs/; revision=129691
* Control.cs: AppRelativeResourceDirectory no longer returns a
hard-coded "~/" when template control's virtual path cannot be
determined. It returns application relative version of
TemplateSourceDirectory instead.
svn path=/trunk/mcs/; revision=129676
* DataGridView.cs: Fix scrolling to take into account that the
scrollbars are actually inside the client area of the datagridview.
svn path=/trunk/mcs/; revision=129657
* DataGridView.cs: When DataSource changes the rebinding should happen
not if IsHandleCreated but if BindingContext != null.
* DataGridViewTest.cs: Add tests for the relevance of IsHandleCreated and
the BindingContext for the databound state of the DataGridView.
[Fixes bug #486013]
svn path=/trunk/mcs/; revision=129651
* DataGridView.cs: Browsable(false) properties should be skipped when
autogenerating the columns.
* DataGridViewTest.cs: Add a test for Browsable(false) columns.
[Fixes bug #486021]
svn path=/trunk/mcs/; revision=129637
* Unit.cs: introduced a field to tell the difference between empty
(as in Unit.Empty) and 0px units.
2009-03-17 Marek Habersack <[email protected]>
* UnitTest.cs: added a test for equality with Unit.Empty
svn path=/trunk/mcs/; revision=129620
* verify.c (mono_verifier_is_class_full_trust): Add support for
CoreCLR security mode where trusted assemblies are defined as
"platform code".
svn path=/trunk/mono/; revision=129588
* method-to-ir.c: Remove more dead code (that was required only
because of method_is_safe). Fix compiler warnings.
svn path=/trunk/mono/; revision=129585
* JavaScriptSerializer.cs: if conversion of IDictionary or
IDictionary <K,V> to an object is requested, make sure that a
concrete type is used (in both cases Dictionary <string, object>).
Make sure that if the target type is an IDictionary<K,V> that the
key is either an object or a string.
2009-03-17 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added tests for conversion to
IDictionary and IDictionary <K,V> types.
svn path=/trunk/mcs/; revision=129580
* Expression.cs : gave up another optimization for bug #443090.
* SelectNodesTests.cs : added 2nd test for bug #443490.
svn path=/trunk/mcs/; revision=129574
* XPathExpression.cs : eliminate use of ExpressionCache and lose
significant performance in some use for the sake of multithreaded
use. Fixed bug #477049.
svn path=/trunk/mcs/; revision=129545
* DomainUpDown.cs: When ReadOnly is true, all the text entered by the
user should use a different handling, trying to use every pressed char
as a unique and only one prefix to compare against the items. Also,
refactor some input check code to avoid duplication.
Fixes#458607.
svn path=/trunk/mcs/; revision=129531
* resources-tests.md: New file with pecoff tests.
* Makefile: Add new tests.
* header-tests.md: Update some tests.
svn path=/trunk/mono/; revision=129519
* mini.c (mini_method_compile): Print the method been compiled with
verbose level 1 instead of 3 as this helps a lot debugging JIT crashes
for people not familiar with the runtime.
svn path=/trunk/mono/; revision=129514
* mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
a managed object which is later put into a GList. Return its class instead.
* mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
stack slots when using sgen.
svn path=/trunk/mono/; revision=129509
* DataGridViewBand.cs: Update our State whenever a property changes.
* DataGridView.cs: Don't be so generous in reseting Displayed, because
it will spawn lots and lots of unneeded State changed events.
[Fixes bug #484989]
svn path=/trunk/mcs/; revision=129501
* AspGenerator.cs:
TagParsed now better handles <script> tags. For both server and
client tags ProcessScript is called and the input text, in case of
client tags, is read verbatim to be processed when ProcessScript
is called to close the tag. At this point the verbatim text is
checked whether it contains server-side tags and/or expressions.
svn path=/trunk/mcs/; revision=129491
* UriParser.cs (GetComponents): Don't refer to fields of Uri to
extract components. Use a pair of regexes instead on
Uri.OriginalString.
* Uri.cs (OriginalString): Make available as an internal property
in the NET_1_1 profile.
svn path=/trunk/mcs/; revision=129488
* MenuAPI.cs: When navigating items using the keyboard properly handle
the case when no item is selected - this way we should try to select
the first or the last item depending on the direction, but no the
second or third one, etc.
svn path=/trunk/mcs/; revision=129472
* XmlSchemaValidator.cs : check identities for untyped attributes.
Attribute keyfield test must adjust depth, or it never matches.
Missing braces for IgnoreIdentity test.
svn path=/trunk/mcs/; revision=129464
This patch is contributed under the terms of the MIT/X11 license
* Makefile.am (test_platform): Enable testbundle for ppc.
svn path=/trunk/mono/; revision=129461
This patch is contributed under the terms of the MIT/X11 license
* mkbundle.cs (WriteSymbol): Use .p2align 5 instead of .align 32
to get consistent results on all platforms.
svn path=/trunk/mcs/; revision=129460
* AspGenerator.cs: when parsing nested tags (includes tags inside
client-side javascript script blocks) pass the closing tag up to
the containing parser.
Instead of parsing the whole plain text contents, plus the two
constructs we're interested in from it using regexs. This is
necessary as we might be passed JavaScript code and without
understanding its syntax we'll confuse the '<' character for the
start of a tag.
svn path=/trunk/mcs/; revision=129449
* BuiltInDatatype.cs, XmlSchemaDatatype.cs : some equality comparison
failed because it anyType is not used as singleton.
svn path=/trunk/mcs/; revision=129440
* AspGenerator.cs: when parsing nested tags (includes tags inside
client-side javascript script blocks) pass the closing tag up to
the containing parser.
svn path=/trunk/mcs/; revision=129412
* XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
EndElement at the next XmlReader.Read(). Fixed bug #480066.
* XmlReaderCommonTests.cs : added test for bug #480066.
svn path=/trunk/mcs/; revision=129404
* Form.cs: When calling ProcessCmdKey, just after checking for any
MainMenu, check if there's an active ContextMenu that is *not* owned
by the form - this is needed when a non-focusable control owns a
ContextMenu but its ProcessCmdKey method can't be called since it
can't receive any input.
Fixes#477655.
svn path=/trunk/mcs/; revision=129395
Directly manipulate lsb/msb of short/int/long instead of using BitConverter.GetBytes() and swapping the resultant byte array using Swap() to reduce array allocations which, improves overall performance of Mono's TDS implementation.
svn path=/trunk/mcs/; revision=129375
* Convert.cs (ToType): Control whether this internal function will
call an IConvertible.ToType method or not.
Classes and structs implementing IConvertible in mscorlib (the
only callers that can access Convert.ToType) must pass false to
avoid a infinite recursion problem and callers from the public
Convert API must call it with true.
This fixes the regression reported in #485377 that was introduced
by the fix for #481687.
* Int16.cs, UInt64.cs, Double.cs, Enum.cs, SByte.cs, UInt16.cs,
Byte.cs, Decimal.cs, Int32.cs, String.cs, Int64.cs, Char.cs,
Boolean.cs, Single.cs, UInt32.cs: Update the call sites.
svn path=/trunk/mcs/; revision=129367
* metadata-verify.c: Verify the data pointed by the import table.
2009-03-13 Rodrigo Kumpera <[email protected]>
* data-directory-tests.md: New tests for import table name, ilt and iat.
svn path=/trunk/mono/; revision=129350
2009-03-13 Mark Probst <[email protected]>
* coreclr-security.exe: Added a test for calling via a
MANAGED_TO_MANAGED wrapper.
svn path=/trunk/mono/; revision=129300
* dwarfwriter.c (emit_line_number_info): Disable an assert which seems to
trigger randomly.
* aot-compiler.c: Get rid of xdebug_lock (), use the loader lock instead.
* dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
implement GArray.
svn path=/trunk/mono/; revision=129278
* SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
SerializationSource as the class is going to be used in 2.1 too.
* XmlRootAttribute.cs : use KeyHelper above to add internal Key
property that is used in SL2 System.Xml.Serialization.dll.
* System.Xml.dll.sources, net_2_1_raw_System.Xml.dll.sources :
added KeyHelper.cs.
svn path=/trunk/mcs/; revision=129243
* Control.cs: clear the controls cache on control removal. This
ensures that a subsequent FindControl call won't return the
removed control.
svn path=/trunk/mcs/; revision=129234
* TypeMap.cs: Avoid checking the getter/setter information until after
checking if we have the required attribute decorated.
svn path=/trunk/mcs/; revision=129232
We can't just rely on the normal System.Data.Linq.dll.sources
handling because ../../tools/sqlmetal also uses these sources.
svn path=/trunk/mcs/; revision=129217
* appdomain.c: if the assembly name is a shadow-copied file, return
TRUE from mono_is_shadow_copy_enabled but don't actually do anything
in mono_make_shadow_copy.
* icall.c: if the assembly name is a shadow-copied file, replace it
with the original assembly path.
Bug #484244 fixed. NUnit tests for corlib can be run without
--noshadow now.
svn path=/trunk/mono/; revision=129210
* sgen-gc.c (add_to_global_remset): Fix the handling of root global remset
entries when the table is reallocated.
svn path=/trunk/mono/; revision=129204
* Mono.Cecil/AssemblyStripper.cs (PatchHeap): don't crash
if the assembly doesn't contain a specific metadata heap.
svn path=/trunk/mcs/; revision=129191
* sqlmetal/ChangeLog, sqlmetal/Makefile, sqlmetal/sqlmetal.exe.config,
sqlmetal/sqlmetal.exe.sources: Added; builds `sqlmetal.exe', which is
the Mono version of DbLinq's DbMetal.exe program (which in turn is
modeled on .NET's SQLMETAL tool), "tuned" to depend only on Mono's
System.Data.Linq.
svn path=/trunk/mcs/; revision=129189
sqlmetal.exe to access the System.Data.Linq.dll internals, as
sqlmetal.exe is DbMetal.exe, and needs access to (normally public)
DbLinq.dll types.
svn path=/trunk/mcs/; revision=129187
which DbLinq files are being excluded from the build), and add
additional files to the build, specifically the *SchemaLoader and
*DataContext types.
* src/**: Flush to DbLinq r1013 (which allows the *SchemaLoader and
*DataContext types to build under MONO_STRICT).
svn path=/trunk/mcs/; revision=129185
* nBrowser/Build.cs: made Browser() method thread-safe and moved the
actual tree creation to a private InitializeTree() method for clarity.
svn path=/trunk/mcs/; revision=129176
* XplatUIX11.cs: In GetMessage when F1 gets pressed, besides sending a
WM_HELP message for the associated window, don't call
NativeWindow.WndProc *at all*, since this could send a WM_*
key-related to Control.WndProc. Also, return the keypress message, in
case it needs to be preprocessed for any menu.
Fixes#478476.
svn path=/trunk/mcs/; revision=129170
* icall.c: Allocate the memory used by the mono_ptr_array macros using
mono_gc_alloc_fixed () since it contains GC refs.
svn path=/trunk/mono/; revision=129166
* BuildManager.cs, BuildManagerDirectoryBuilder.cs,
BuildProvider.cs, TemplateBuildProvider.cs: dependencies are
returned as an IDictionary <string, bool>. Dependencies must be
compared case-insensitively.
svn path=/trunk/mcs/; revision=129142
* SerializationMap.cs, KnownTypeCollection.cs :
support CollectionDataContract-based dictionary too.
* XmlObjectSerializerTest.cs : added test for dictionary with
CollectionDataContractAttribute.
svn path=/trunk/mcs/; revision=129128
* SerializationMap.cs : cosmetic !NET_2_1 fix (no effect).
* KnownTypeCollection.cs : use ICollection<> and IList instead of
IEnumerable. This causes confusion for dictionary.
svn path=/trunk/mcs/; revision=129124
* InotifyWatcher.cs: don't send events when a directory is created
unless it matches the pattern. Fixes bug #484082.
svn path=/trunk/mcs/; revision=129112
System.Data.Linq.dll, add unit tests -- which aren't hooked up to Mono's build
system -- various bug fixes, etc.)
svn path=/trunk/mcs/; revision=129090
A fix for bug #482996
* anonymous.cs: Make sure we are not infering return type when
checking type compatibility.
svn path=/trunk/mcs/; revision=129085
* WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
make sure we don't pass any exceptions back to native code.
svn path=/trunk/mcs/; revision=129077
* SortedList.cs: Add version checking to the Key/Value enumerators +
implement support for Reset (). Fixes#483985.
svn path=/trunk/mcs/; revision=129076
* XmlFormatterSerializer.cs, XmlObjectSerializer.cs,
XmlFormatterDeserializer.cs, KnownTypeCollection.cs :
add more xsi:type to cover collection items.
* XmlObjectSerializerTest.cs : test for generic IList of
DictionaryEntry. (no Hashtable serialization yet.)
svn path=/trunk/mcs/; revision=129068
* typemanager.cs, generic.cs, parameter.cs, decl.cs, const.cs,
rootcontext.cs, namespace.cs, class.cs, delegate.cs, driver.cs,
generic-mcs.cs, attribute.cs, codegen.cs: Maintain predefined
attributes in their own structure. Needed when accessing their
properties before they are resolved.
svn path=/trunk/mcs/; revision=129061
2009-03-11 Mark Probst <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Use different
registers in case the ones we want to overwrite are used by the
other operand. Fixes regression in #480807.
svn path=/trunk/mono/; revision=129058
* KnownTypeCollection.cs : fix generic argument names in xml.
They should use xmlized names instead of raw type name.
* XmlFormatterDeserializer.cs : remove extra Console.WriteLine.
* XmlObjectSerializerTest.cs : test for generic IList of KeyValuePair
(it is still different from full IDictionary support...!).
svn path=/trunk/mcs/; revision=129055
* reflection.c (ensure_complete_type): New helper function to call
type resolve handlers for unfinished dynamic types.
(resolve_object): Call it for MonoClassFields. Fixes#483852.
svn path=/trunk/mono/; revision=129009
* KnownTypeCollection.cs : fix for generic serialization.
* XmlObjectSerializerTest.cs : test for generic type serialization.
svn path=/trunk/mcs/; revision=129001
* UrlAuthorizationModule.cs: OnAuthorizeRequest must use the
configuration from <location> elements in the config. Fixes bug
#467221
svn path=/trunk/mcs/; revision=128972
2009-03-09 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c: Correct handling of OP_LOADI4_MEMINDEX for ppc64.
Fixes#483462.
svn path=/trunk/mono/; revision=128904
Date: Thu Mar 5 17:47:30 2009 +0100
Add CompileUnitEntry.IncludeFiles.
2009-03-05 Martin Baulig <[email protected]>
* MonoSymbolTable.cs
(CompileUnitEntry.IncludeFiles): New public property.
(CompileUnitEntry.ReadData): Also read include files.
svn path=/trunk/mcs/; revision=128890
* class.cs: Use correct common base type for unmanaged delayed
check.
* rootcontext.cs: Wrap unhandled exception.
svn path=/trunk/mcs/; revision=128852
* domain-internals.h (struct _MonoDomain): Add new hash tables mapping
between GCHandles of type WeakTrackResurrection and the objects they
point to.
* gc.c: Partly implement the sematics of GCHandles of type
WeakTrackResurrection: these handles should only be cleared after the
finalizer of the object they are pointing to has ran.
svn path=/trunk/mono/; revision=128849
* DataGridView.cs: When removing the first displayed row and moving
the current cell up one we must invalidate the first displayed row
index before calculating the row heights, etc.
* DataGridViewTest.cs: Add tests for CurrentCell.
[Fixes bug #483202]
svn path=/trunk/mcs/; revision=128845
* DataGridView.cs: Fix three column bugs:
- Rows should be cleared (but not removed) if columns become 0.
- The current cell should get moved
- ColumnCount increase was adding too many columns.
* DataGridViewTest.cs: Add tests for ColumnCount.
svn path=/trunk/mcs/; revision=128844
* DataGridView.cs: Fix RowCount decrease which wasn't working well
in both scenarions - with and without editing row.
* DataGridViewTest.cs: Add more tests for the RowCount property.
svn path=/trunk/mcs/; revision=128833
* support.cs (SeekableStreamReader.ResetStream): New. Allocates the buffer.
(SeekableStreamReader.Position.set): Use it. Simplify logic
which, as a side-effect, makes it arbitrarily-seekable. Tune the
buffer size when the stream needs to be re-read from the beginning.
svn path=/trunk/mcs/; revision=128831
returns null.
* ConvertTest.cs: Merged and improved test for bug #481687.
* ConvertTest2.cs: Merged into ConvertTest.cs.
svn path=/trunk/mcs/; revision=128830
2009-03-06 Mark Probst <[email protected]>
* icall.c: Partially revert r126631 because using the jump
trampolines for generic shared methods makes it superfluous.
svn path=/trunk/mono/; revision=128828
* Convert.cs: Apply patch from Tom Hindle that uses
IConvertible.ToType if there are no other possible conversions
defined.
Fixes: #481687
svn path=/trunk/mcs/; revision=128807
* DataGridView.cs: Be compatible with MS in that the scroll to
selection has a synchronous effect. The trick here is that in
order to avoid unnecessary calculations each time a row/column
is added/removed we recalculate the whole grid size just before
just before the scroll to selection.
[Fixes bug #482478]
svn path=/trunk/mcs/; revision=128806
* JsonDeserializer.cs: unquoted key values must ignore leading
and trailing whitespace
2009-03-06 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added a test for unquoted tests
surrounded with spaces.
svn path=/trunk/mcs/; revision=128801
* ControlBuilder.cs: BindingContainerType - if control type of the
containing builder is null, return typeof (Control)
svn path=/trunk/mcs/; revision=128796
* MonoType.cs (MonoTypeInfo): Add default_ctor field.
* MonoType.cs: Add GetDefaultConstructor that caches using
type_info.default_ctor.
* MonoType.cs (FullName): Protects against type_info been replaced
under the hood.
* Activator.cs (CreateInstance): If the type is a MonoType resolve the
default constructor using the new method from MonoType.
Improves Activator::CreateInstance performance by at least 30%, reduces object churn
and domain lock contention.
svn path=/trunk/mcs/; revision=128795
* RichTextBox.cs: LoadFile(string path) should pass by default
RichTextBoxStreamType.RichText, without caring about the detection or
extension of the file.
svn path=/trunk/mcs/; revision=128791
* RichTextBox.cs: When calling LoadFile, remove the extra EOL
introduced by StreamReader, since it will convert the EOF to an EOL.
Fixes#479646.
svn path=/trunk/mcs/; revision=128788
* ToolStripMenuItem.cs: Don't draw the dropdown arrow or shortcut
string if we aren't on a ToolStripDropDownMenu.
svn path=/trunk/mcs/; revision=128780
* method-to-ir.c (mono_method_to_ir): Check for type load exceptions in
the delegate ctor handling code. Fixes#482638.
svn path=/trunk/mono/; revision=128778
* ToolStripDropDownButton.cs, ToolStripItem.cs: Refactor some Button
code from Item to Button. Patch from Alex Shulgin.
svn path=/trunk/mcs/; revision=128777
* domain-internals.h (struct _MonoDomain): Move 'typeof_void' before
FIRST_GC_TRACKED.
* domain.c (mono_domain_create): Register the fields between FIRST_GC_TRACKED
and LAST_GC_TRACKED as a GC root.
svn path=/trunk/mono/; revision=128734
* gc-internal.h: Fix the comment of mono_gc_alloc_fixed.
* object.c (mono_class_create_runtime_vtable): Create a GC descriptor for
the static data even if it consists of 1 reference.
* boehm-gc.c (mono_gc_alloc_fixed): Allocate using GC_MALLOC_EXPLICITLY_TYPED
if there is a GC descriptor.
svn path=/trunk/mono/; revision=128731
* reflection.c (ALLOC_REFENTRY): Allocate ReflectedEntry-es using malloc
instead of through the GC since they contain no object references.
svn path=/trunk/mono/; revision=128727
* mini-trampolines.c (mono_create_jump_trampoline): If the method
is shared generic code, return the trampoline, even if the method
has already been compiled. Fixes#479753.
* mini.c, mini.h: New function
mono_jit_find_compiled_method_with_jit_info() which is the same as
mono_jit_find_compiled_method() but also returns the jit info.
2009-03-05 Mark Probst <[email protected]>
* generic-sharing.c (instantiate_other_info): Always return a jump
trampoline for method code.
2009-03-05 Mark Probst <[email protected]>
* bug-479763.2.cs: New test.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=128723
* method-to-ir.c (mono_method_to_ir): Only force the vtable var
for methods which actually have one. For all other methods, make
sure the this argument var is live the whole method.
* mini.c (mini_method_compile): Every shared method has a
this/vtable/mrgctx info. Fixes#480807.
svn path=/trunk/mono/; revision=128720
* ContractDescriptionGenerator.cs : fill service known types.
* ServiceKnownTypeAttribute.cs : correct implementation to populate
specified types.
svn path=/trunk/mcs/; revision=128719
* culture-info-tables.h: generated to include the en-tt culture.
2009-03-05 Marek Habersack <[email protected]>
* locales/en_TT.xml: added here since openi18n.org times out and
also I can't update icu_locales.tar.gz. File based on en_ZA.xml
from that tarball, with appropriate modifications.
* Makefile.am (supp_data_files): added supp/en_TT.xml
svn path=/trunk/mono/; revision=128714
* mono.def : Removing missing methods to remove link errors for
MSVC build.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=128713
* ToolStripDrowDown.cs: Remove some hardcoded values and assumptions.
* ToolStripDropDownButton.cs: This should use a ToolStripDropDownMenu,
not a ToolStripDropDown.
* ToolStripItem.cs: Don't use the item margins on a ToolStripDropDown.
svn path=/trunk/mcs/; revision=128694
* mini-ppc.c (mono_arch_build_imt_thunk): Add support for mixed
generic/imt thunks where some entries branch through the vtable,
while other entries branch directly.
svn path=/trunk/mono/; revision=128690
* domain-internals.h (MonoDomain): Add two fields to cache invoke wrappers to
capture the thread context.
* object.c (mono_async_result_new): Cache the invoke wrappers to
ExecutionContext::Capture.
svn path=/trunk/mono/; revision=128664
* marshal.h: Add a prototype for what mono_compile_method returns
for invoke wrappers.
* gc.c: Use the new prototype declaration.
svn path=/trunk/mono/; revision=128663
* boehm-gc.c: Add some MONO_LOG tracing for the GC
* gc-internal.h:
* mono-gc.h: Expose mono_gc_invoke_finalizers in the embedding api.
svn path=/trunk/mono/; revision=128661
* DataGridView.cs: Fix RowCount/ColumnCount decreasing.
* DataGridViewTest.cs: Add tests for RowCount/ColumnCount decreasing.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #482133]
svn path=/trunk/mcs/; revision=128645
* DataGridView.cs, DataGridViewElement.cs:
- Always calls OnDataGridViewChanged() if the new DGV is
not the same/null as the current one.
- Do not throw NREs when setting TopLeftHeaderCell to null
- Unset the DGV for TopLeftHeaderCell when replacing it
* DataGridViewCellTest.cs: Add tests for OnDataGridViewChanged behavior.
Based on a patch by Tom Hindle <[email protected]>
[Fixes bug #481681]
svn path=/trunk/mcs/; revision=128628
* CrossDomainPolicy.cs : added validation method. Not sure if it is
complete.
* CrossDomainAccessManager.cs : validate against crossdomain.xml too.
svn path=/trunk/mcs/; revision=128593
* ToolStripDropDown.cs: When dismissing control due to ESC, don't
hit a NRE if we are a ContextMenuStrip and do not have a parent.
[Fixes bug #478616]
svn path=/trunk/mcs/; revision=128573
* Mono.Cecil/StructureWriter.cs: properly set the metadata tokens
of newly emitted modules and assemblies. Fix#480729.
svn path=/trunk/mcs/; revision=128572
2009-03-04 Martin Baulig <[email protected]>
* debug-mini.c: Clean up the exception API and add documentation.
(mono_debugger_handle_exception): New public method; this is
called when throwing an exception or encountering an unhandled one.
(mono_debugger_call_exception_handler): Formerly known as
mono_debugger_handle_exception(); this is used to tell the
debugger that we're about to invoke an exception handler.
svn path=/trunk/mono/; revision=128556
2009-03-04 Martin Baulig <[email protected]>
* debug-mini.c (mono_debugger_runtime_invoke): Moved here from
../metadata/mono-debug-debugger.c; save and reset exception state.
2009-03-02 Martin Baulig <[email protected]>
* debug-mini.c: Moved the debugger exception handling here from
../metadata/mono-debug-debugger.c.
* debug-mini.h
(MonoDebuggerExceptionAction): New exception typedef.
* debug-mini.c
(MonoDebuggerThreadInfo): Added `MonoObject *last_exception'.
* exceptions-amd64.c
(mono_amd64_throw_exception): Use the new debugger exception
handling code.
* mini-exceptions.c
(mono_handle_exception_internal): Don't call
mono_debugger_unhandled_exception() here.
2009-03-04 Martin Baulig <[email protected]>
* mono-debug.h
(mono_debugger_runtime_invoke): Removed.
* mono-debug-debugger.c
(mono_runtime_invoke): Moved into ../mini/debug-mini.c.
2009-03-02 Martin Baulig <[email protected]>
* mono-debug.h
(mono_debugger_unhandled_exception): Removed.
(mono_debugger_handle_exception): Removed.
(mono_debugger_throw_exception): Removed.
* mono-debug.c
(mono_debug_debugger_version): Bump to 5.
* mono-debug-debugger.c: Moved the exception handling code to
../mini/debug-mini.c
svn path=/trunk/mono/; revision=128544
* CachedRawResponse.cs: headers are stored in NameValueCollection
now.
2009-03-03 Marek Habersack <[email protected]>
* HttpResponse.cs: fully implemented the Headers property.
It is also used in the 1.1 profile, but is internal.
* HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
now returns a string with the header value.
* HttpCacheVaryByParams.cs: GetResponseHeader renamed to
GetResponseHeaderValue - now returns a string with the header
value.
* HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
instead of an ArrayList
svn path=/trunk/mcs/; revision=128494
* domain-internals.h (struct _MonoDomain): Add a separate lock for the
finalize_objects_hash.
* gc.c: Use the separate lock to access the finalize_objects_hash field.
svn path=/trunk/mono/; revision=128490
2009-03-03 Zoltan Varga <[email protected]>
* domain-internals.h (struct _MonoDomain): Add finalize_runtime_invoke
field.
* metadata-internals.h (struct _MonoImage): Add runtime_invoke_vcall_cache
cache.
* image.c (mono_image_close): Free it.
* marshal.c (mono_marshal_get_runtime_invoke): Add a 'virtual' argument
allowing a creation of a wrapper which invokes its method using a CALLVIRT
on the this argument.
* gc.c (run_finalize): Optimize the calling of the finalizers.
In mini/
2009-03-03 Zoltan Varga <[email protected]>
* mini.c aot-compiler.c: Update after the changes to
mono_marshal_get_runtime_invoke ().
svn path=/trunk/mono/; revision=128489
* icall.c (ves_icall_MonoType_GetGenericArguments): Use
mono_array_class_get_cached to reduce locking contention. Extract
a domain var.
* icall.c (ves_icall_Type_GetFields_internal): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
* icall.c (ves_icall_Type_GetEvents_internal): Same.
* icall.c (ves_icall_Type_GetNestedTypes): Same.
* locales.c (create_names_array_idx): Use mono_array_new_cached
to reduce locking contention.
svn path=/trunk/mono/; revision=128455
A fix for bug #480867
* typemanager.cs, expression.cs, ecore.cs: Changed method group
expression to have no valid type.
svn path=/trunk/mcs/; revision=128441
* ListView.cs: SetPageProperties invoked the
PagePropertiesChanging event with the startRowIndex and
maximumRows parameters reversed. Fixes bugs #481250 and #481252
svn path=/trunk/mcs/; revision=128408
2009-03-02 Chris Toshok <[email protected]>
* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
has HasValue.
In System.XML/System.Xml:
2009-03-02 Chris Toshok <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
EntityResolvingXmlReader.cs: 2.1 has HasValue.
In System.XML/Mono.Xml:
2009-03-02 Chris Toshok <[email protected]>
* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.
In System.Xml.Linq/System.Xml.Linq:
2009-03-02 Chris Toshok <[email protected]>
* XNodeReader.cs: 2.1 has HasValue.
In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02 Chris Toshok <[email protected]>
* JsonReader.cs: 2.1 has HasValue.
svn path=/trunk/mcs/; revision=128406
* object.c (mono_method_add_generic_virtual_invocation): Put back the
thunk builder code for the non-interface case.
svn path=/trunk/mono/; revision=128404
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot):
Virtual generic methods might not have method->slot set, work around
that.
* generics.cs: Add a test.
svn path=/trunk/mono/; revision=128401
* Csc.cs (AddResponseFileCommands): Split DefineConstants on ';'.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CscTest.cs (DefineConstants): Add some extra semi-colons,
that should get removed on output.
(DefineConstants2): New. Test effectively empty define constants.
svn path=/trunk/mcs/; revision=128396
* EventInfo.cs: Apply similar trick to the one in MonoProperty to speed up
AddEventHandler.
2009-03-02 Rodrigo Kumpera <[email protected]>
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=128383
* object-internals.h: Rename _MonoReflectionEvent to
MonoReflectionMonoEvent so it reflects the right managed type.
Add a MonoReflectionEvent that correctly represents System.EventInfo.
* icall.c:
* reflection.c: Adjust code to use the new MonoReflectionMonoEvent
type.
svn path=/trunk/mono/; revision=128382
* mini-trampolines.c (mono_generic_virtual_remoting_trampoline): Update
this since it now receives the method not its generic context in the
IMT reg.
svn path=/trunk/mono/; revision=128381
* Enum.cs (IsDefined): If the enum underlying type is int32, use
the generic version, which doesn't box every element of the array.
svn path=/trunk/mcs/; revision=128367
* mini-amd64.c (mono_arch_build_imt_thunk): Add support for mixed
generic/imt thunks where some entries branch through the vtable, while
other entries branch directly.
* mini-x86.c (mono_arch_build_imt_thunk): Ditto.
* method-to-ir.c (mono_method_to_ir): Enable fast virtual generic call
support for interface methods as well.
* mini-trampolines.c: Add support for virtual generic methods in interfaces
using the normal IMT thunks.
generics.cs: Add new tests.
svn path=/trunk/mono/; revision=128360
* object.c (get_generic_virtual_entries): New helper function to collect
the virtual generic method instances which need to be added to an IMT
thunk.
(mono_method_add_generic_virtual_invocation): Add a 'vtable' argument.
Instead of creating a new IMT thunk, reset the vtable slot to the
trampoline, the thunk will be created the next time the trampoline is called.
(build_imt_slots): Add support for virtual generic methods in interfaces by
adding to the IMT thunk all the methods registered using
mono_method_add_generic_virtual_invocation ().
* object-internals.h (_MonoImtBuilderEntry): Add a 'has_target_code' field.
(struct _MonoIMTCheckItem): Ditto.
svn path=/trunk/mono/; revision=128359
* Enum.cs (GetName): If the enum underlying type is int32, use
the generic version, which doesn't box every element of the array.
svn path=/trunk/mcs/; revision=128356
* method-to-ir.c (mono_method_to_ir): Pass the method instead of
the generic inst to the generic imt thunks. This fixes AOT support,
improves consistency with the normal IMT thunks, and makes it easier to
add support for interface generic virtual methods later.
* mini-trampolines.c (mono_magic_trampoline): Ditto.
svn path=/trunk/mono/; revision=128353
* object.c (mono_method_add_generic_virtual_invocation): Take a
MonoMethod argument instead of a MonoGenericInst. Fix the construction of
the IMT thunk to include all items.
svn path=/trunk/mono/; revision=128351
* icall.c (ves_icall_Type_GetMethodsByName): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
svn path=/trunk/mono/; revision=128348
Fields sub-node) would result in a stack overflow within
Resources/mdoc-html-utils.xsl:GetInheritedMembers(), because the
document() XSLT function was being used to obtain the base type's
documentation. It stack overflowed because the XmlUrlResolver was
being used, which when given e.g. file:///DocAttribute.xml, would
return file:///DocAttribute.xml (which makes sense), but it was
non-terminating. (I find this troubling as it should have been
trying to resolve e.g. System.Attribute, not DocAttribute; it must
be some XmlTransform-fu that was substituting documents.)
The fix is for EcmaUncompiledHelpSource to provide an alternate
document XmlResolver, one which always returns null from
XmlResolver.ResolveUri(), thus preventing endless recursion.
svn path=/trunk/mcs/; revision=128318
* Makefile: tune for internal use, but don't install.
Temporary situation, this will require more discussion
with spouliot.
svn path=/trunk/mcs/; revision=128310
* Mono.Tuner.dll.sources
* Mono.Tuner/MoonlightAssemblyStep.cs: add new step specific
to moonlight to instrument Moonlight assemblies one by one.
svn path=/trunk/mcs/; revision=128309
* ListView.cs: When removing items from a ListViewItemCollection
contained in ListView (not in ListViewGroup), before actually removing
the items remove them also from their -if any- associated groups. If
the item is present in ListViewGroup.Items but not in ListView.Items,
then don't remove it - this is *exactly* what .net seems to do.
Fixes the remaining bits of #478689.
svn path=/trunk/mcs/; revision=128308
delegate to return `null' if no further base types are found, so
stop processing if we find a null base type.
* Monodoc/provider.cs:
- Make GetHelpStream() virtual so that EcmaUncompiledHelpSource can
override it, as the default zip-based behavior is inappropriate.
- Make GetHelpXmlWithChanges() virtual so that
EcmaUncompiledHelpSource can override it, as the default zip-based
behavior is inappropriate.
- When initializing UncompiledHelpSources, set the
HelpSource.RootTree property (avoids an NRE from
EcmaHelpSource.GetTextFromUrl() when it reads RootTree.HelpSources).
* Monodoc/ecma-provider.cs:
- Within the XmlDocUtils.AddExtensionMethods() call, don't always
prefix the type with "T:", as sometimes the type will already start
with "T:", which is the case with EcmaUncompiledHelpSource ids.
- Add EcmaUncompiledHelpSource.GetHelpStream() and
EcmaUncompiledHelpSource.GetHelpXmlWithChanges(), which Do The
Right Thing for the file-based backend.
svn path=/trunk/mcs/; revision=128306
EcmaHelpSource.GetNamespaceDocument() wasn't being used anymore,
which is what EcmaUncompiledHelpSource overrides to permit loading
of local files. Result: an exception when trying to view namespaces
of local (non-assembled) directories. Oops. "Fixes" 443508.
svn path=/trunk/mcs/; revision=128305
* reflection.c: Use cached version of mono_array_new alongside
the mono_reflection_get_custom_attrs_by_type call path.
svn path=/trunk/mono/; revision=128304
* icall.c (ves_icall_Type_GetInterfaces): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
* icall.c (ves_icall_Type_GetConstructors_internal): Same.
svn path=/trunk/mono/; revision=128303
* icall.c: Add small implementation of a growable stack bound array.
* icall.c (ves_icall_System_Enum_get_hashcode): Fix warning.
* icall.c (ves_icall_Type_GetPropertiesByName): Avoid allocating
intermediary managed arrays. Use caching version of mono_array_new
to allocate the result array.
svn path=/trunk/mono/; revision=128302
* NameValueCollection.cs (AsSingleString): Avoid the allocation of
a stringbuilder for collections with only one element.
svn path=/trunk/mcs/; revision=128295
* driver.c (mono_set_signal_chaining): New public API function to enable
signal chaining on POSIX platforms.
* mini-posix.c mini.c: Applied a variant of a patch by Simon Rowland
([email protected]) to implement signal chaining. The original patch was
contributed under the MIT X/11 license:
https://bugzilla.novell.com/show_bug.cgi?id=318894
svn path=/trunk/mono/; revision=128282
* BaseParser.cs:
* PageParser.cs:
* ControlBuilder.cs:
* TemplateParser.cs:
* Page.cs:
* SimpleWebHandlerParser.cs: settings that have to be in
machine.config or the root level web.config now call
GetWebApplicationSection.
svn path=/trunk/mcs/; revision=128273
* Enum.cs (FindName): Use a hash table for looking up names instead of
a linear search for enums with a lot of values.
svn path=/trunk/mcs/; revision=128267
* ListView.cs: In our MouseDown handler in ItemControl use the item in
the very specific *real* position where the mouse was pressed, using
GetItemAtDisplayIndex for that purpose, instead of directly accessing
Items - this is specially useful when groups with Details view is
used. This is what we do in other places when using groups.
Fixes part of #478689.
svn path=/trunk/mcs/; revision=128264
* UInt16.cs (CompareTo/short): Make it return the
same values as the /object version.
* Enum.cs (CompareTo): Use new compare_value_to icall to do the comparison.
This avoids two allocations and reduce the number of trips to unmanaged land
by one.
The performance improvement is up to 3.5x with the bonus of reducing the generated
garbage.
2009-02-27 Rodrigo Kumpera <[email protected]>
EnumTest.cs: Tests for CompareTo.
svn path=/trunk/mcs/; revision=128247
* icall.c: New icall ves_icall_System_Enum_compare_value_to that
helps Enum::CompareTo to be implemented without reboxing all enums
to their underlying type.
svn path=/trunk/mono/; revision=128246
evaluator are not null, as documented in MSDN (and the variance found
while testing DbLinq).
* Test/System.Text.RegularExpressions/RegexReplace.cs: Add null
argument checks for Regex.Replace().
svn path=/trunk/mcs/; revision=128241
* domain.c (SET_APPDOMAIN): Avoid calling TlsSetValue () on some platforms,
since it acquires a global lock leading to scalability problems.
svn path=/trunk/mono/; revision=128236
* ReflectionPropertyDescriptor.cs: Don't cache getter and
setter properties. Cache instead the PropertyInfo objects
that defined them.
PropertyInfo::Get/SetValue is faster than calling the method
throught reflection.
svn path=/trunk/mcs/; revision=128235
* iltests.il.in (test_0_implicit_float_to_double_conversion): Disable this
too until it can be made to run on amd64.
svn path=/trunk/mono/; revision=128234
* MaskedTextBox.cs: Properly replace selection when a new valid key
is pressed - even when IsOverwriteMode is false. This is what .net
does.
svn path=/trunk/mcs/; revision=128224
* Message.cs : (in CreateBufferedCopy) do not pass the entire
message as BodyWriter.
(in GetReaderAtBodyContents) just write body contents.
* MessageImpl.cs : do not try to read body at ctor (fixed tons
of test failures).
Add some state check in GetReaderAtBodyContents().
* XmlReaderBodyWriter.cs : avoid possible extra xmldecl onto output.
svn path=/trunk/mcs/; revision=128186
* profiler.c: Make the stat profiler work with multiple appdomains, this
currently only works when no appdomains are unloaded.
svn path=/trunk/mono/; revision=128176
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
The optimization is to create a pair of chained delegates that duplicate the workings
on MethodBase::Invoke without all the aditional overhead and without doing two
managed/native transitions.
Simple Getter performance is up to 17x faster.
This patch reduces contention on domain and domain jit code hash locks, which
can be very hot on asp.net applications.
svn path=/trunk/mcs/; revision=128172
* MaskedTextBox.cs: When setting Text use the very precise algorithm
that .net uses: iterate over every char of the new value, trying to
use every char, and use a normal call to MaskedTextProvider.Replace
call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
in case of error in both cases, as well.
Fixes#477408.
svn path=/trunk/mcs/; revision=128165
happens in numerous places. Instead, take a page out of the "I
never should have invented `null'" book, and ensure that Tree.Nodes
can never be null. This fixes the "HelpSource has 0 items" issue
and several other related ones.
svn path=/trunk/mcs/; revision=128134
elements (which can be done by e.g. running `mdoc assemble' on an
empty directory), in which case HelpSource.Tree.Nodes will be null.
Make sure that we don't get a NullReferenceException.
Patch thanks to Theerud Lawtrakul. Fixes#443699.
svn path=/trunk/mcs/; revision=128131
A fix for bug #475354
* convert.cs, nullable.cs, expression.cs, statement.cs: Emit
correctly user defined nullable equality operators.
svn path=/trunk/mcs/; revision=128118
* String.cs (FormatHelper): If all the arguments are strings, compute an
initial length for the stringbuilder to avoid reallocations.
svn path=/trunk/mcs/; revision=128114
* TagAttributes.cs: modified ToString to return string formatted
in a more helpful way.
* AspParser.cs: added ToString, helpful when debugging.
* AspGenerator.cs: properly print leading and trailing plain text
when looking for embedded tags in ProcessTagsInAttributes.
svn path=/trunk/mcs/; revision=128091
* merge.cs: Smarter merge to avoid duplicate (or unneeded) attributes
on methods when a type is decorated with SC or SSC.
svn path=/trunk/mcs/; revision=128089
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs,
ClientBase.cs, ChannelFactory_1.cs, DuplexClientBase.cs:
now ClientBase<TChannel>.InnerChannel became ChannelBase<T> as
SL2 does. This change required several internal changes in
proxy code generation. Also, now TChannel must be class.
svn path=/trunk/mcs/; revision=128056
* ServiceContractGenerator.cs : ClientBase<> argument type must be
class (the class itself is to be fixed soon as well).
svn path=/trunk/mcs/; revision=128055
supported by the server.
(GetColumnValue): lcid and sortId are available only from Tds 8.
* Tds80.cs (ProcessColumnInfo, ProcessOutputParam): Call base
methods if the server version is less than Tds 8.
svn path=/trunk/mcs/; revision=128053
- s/TEST_FILES/MAN_TEST_FILES/g: $(TEST_FILES) is used by the normal
build process, so the local definition is lost (and thus ignored).
Result: Test/* isn't actually copied. Oops. Changing to
MAN_TEST_FILES allows things to be copied.
- Fix the filenames within $(MAN_TEST_FILES) so `make dist-local'
works without error.
- Fixes#479753.
svn path=/trunk/mcs/; revision=128051
* HttpApplication.cs: let the current context known that
MapRequestHandler is done.
* HttpContext.cs: implemented RemapHandler
svn path=/trunk/mcs/; revision=128045
* MonoType.cs (FullName): Cache the result of this in a field, as
computing it is expensive.
* Environment.cs: Bump corlib version.
svn path=/trunk/mcs/; revision=128042
* metadata-internals.h (struct _MonoImage): Add a new cache for szarray
classes + a separate lock for it, as it is used frequently at runtime, not
just during metadata loading/JIT compilation.
* class.c (mono_bounded_array_class_get): Use the separate cache + lock
for szarrays.
svn path=/trunk/mono/; revision=128012
* object-internals.h (mono_class_from_name_cached): New macro to cache
the results of the lookup locally without having to declare a static
variable to hold it.
(mono_class_get_field_from_name_cached): Ditto.
(mono_array_class_get_cached): Ditto.
* threadpool.c threads.c locales.c icall.c reflection.c socket-io.c: Use
the new macros.
svn path=/trunk/mono/; revision=128011
* MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
key. Also create a new method to avoid code duplication between
OnKeyDown and OnKeyPress.
Fixes#477388.
svn path=/trunk/mcs/; revision=128006
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
suspend-on-sigsegv functionality.
* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
to suspend when a native SIGSEGV is received. This is useful for debugging
crashes which don't happen under gdb, since a live process contains more
information than a core file.
* mini-exceptions.c (mono_print_thread_dump): Use
MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.
* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.
* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.
svn path=/trunk/mono/; revision=127943
* mini-exceptions.c (mono_handle_native_sigsegv): Implement the
suspend-on-sigsegv functionality.
* mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
to suspend when a native SIGSEGV is received. This is useful for debugging
crashes which don't happen under gdb, since a live process contains more
information than a core file.
* mini-exceptions.c (mono_print_thread_dump): Use
MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.
* mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.
* mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.
svn path=/trunk/mono/; revision=127942
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass a non-null
value to mono_arch_patch_callsite () to fix crashes.
svn path=/trunk/mono/; revision=127940
* ManagedCompiler.cs (AddResponseFileCommands): Use LogicalName for
embedded resources, wherever available.
* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Use
Path.Combine instead of hardcoding "\".
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateCSharpManifestResourceNameTest.cs (CheckResourceNames):
Refactor a bit to improve error reporting.
Update to use Path.Combine instead of hardcoding "\".
In tools/xbuild:
* xbuild/Microsoft.Common.targets (CopyNonResxEmbeddedResources): New.
(GenerateSatelliteAssemblies): Update to use the new ManifestNonResxWithCultureOnDisk
instead of NonResxWithCulture.
* xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
the new on disk file names instead of original filenames.
svn path=/trunk/mcs/; revision=127938
* AspTokenizer.cs: put_back now uses a stack and allows more than
one invocation when called inside a tag.
* AspGenerator.cs: when a nested parser is used, pay attention to
server tags found inside client tags and add them to the control
tree.
svn path=/trunk/mcs/; revision=127935
* TempFileStream.cs: the class is internal
* VirtualPathUtility.cs: ToAbsolute (string, string, bool) is
internal
svn path=/trunk/mcs/; revision=127934
* Enum.cs (GetInfo): Add a global cache in addition to the thread-local
caches to accomodate short living threads like threadpool threads.
svn path=/trunk/mcs/; revision=127929
Atsushi Enomoto said on 2008-11-26, Mono's NUnit is for internal use
only, and installing nunit-docs.source causes an warning message
during monodoc startup.
* docs/nunit-docs.source: Remove.
svn path=/trunk/mcs/; revision=127907
* Microsoft.Build.Utilities.dll.sources: Add ProcessService.cs,
ProcessWrapper.cs, IAsyncOperation.cs and IProcessAsyncOperation.cs
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
* ProcessService.cs, IAsyncOperation.cs, IProcessAsyncOperation.cs,
ProcessWrapper.cs: Brought in from monodevelop.
* ToolTask.cs: Use the new ProcessService to execute the tool. Honor
SkipTaskExecution (). Use response files, but log the contents of the
response file instead of "@foo.rsp". Support environmentOverrides.
(LogEventsFromTextOutput): Add null check.
* Exec.cs (GetWorkingDirectory): Use the workingDirectory property.
svn path=/trunk/mcs/; revision=127886
* XmlDataReader.cs (ReadElementElement): For reference types
that implements IXmlSerializable, call the corresponding ReadXml.
* DataSet.cs (WriteColumnAsElement): For reference types that
implements IXmlSerializable, call the corresponding WriteXml.
svn path=/trunk/mcs/; revision=127849
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Lazily load UsingTask tasks.
* UsingTask.cs (Evaluate): Register 'this' with task database,
but don't load it yet. Register only if condition evaluates to true.
Move the load logic to ..
(Load): .. here. Register with the specified task database.
* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
in a table keyed by task name, but don't load it yet.
(GetTypeFromClassName): Try to load UsingTask if task is not already
loaded. Move loading logic to ..
(GetTypeFromClassNameInternal): .. here.
(CopyTasks): Copy the usingTasks table also.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
(TestAssemblyNameOrAssemblyFileConditionFalse): New.
(TestDuplicate1): New.
* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
use that.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (Another.SameTask): New.
(Other.SameTask): New.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
* TaskBatchingTest.cs: .. here. Track api change.
svn path=/trunk/mcs/; revision=127830
* MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
actually inversed, so put it the right way. Also, don't automatically
look for the next editable item after adding a new one, but way for
the next insertion (this is what .net does) - this is not needed when
MaskedTextProvider.InsertAt is called however, since it already looks for the
next editable position.
Fixes the remaining bits of #477383.
svn path=/trunk/mcs/; revision=127819
* os_dep.c (GC_init_linux_data_start): Avoid the call to GC_find_limit ()
if GC_no_dls is TRUE, as it is not needed and it complicates debugging since
it causes a SIGSEGV.
svn path=/trunk/mono/; revision=127807
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Replace the
nop code by patching the call address to point to the nullified class init
trampoline, as the former does not seem to be safe on SMP machines.
svn path=/trunk/mono/; revision=127806
* MaskedTextBox.cs: In OnKeyPress handle backspace by calling
MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
property after the text was modified, adjust the testPosition value
depending on what method was called.
Fixes part of #477383.
svn path=/trunk/mcs/; revision=127798
* ListView.cs: For EnsureVisible, adjust the view port bounds based on
the existence of the column headers, as well as using this information
to adjust the vscrollbar value, so items never get hidden by the
column headers.
Fixes#478498.
svn path=/trunk/mcs/; revision=127720
* xmltool.cs : Enabled new error recovery feature in RELAX NG
validation. It should continue error reporting until the end of
the document.
svn path=/trunk/mcs/; revision=127704
* RelaxngValidatingReader.cs : implemented error recovery feature.
Use InvalidNodeFound event (of type RelaxngValidationEventHandler)
to handle validation error like ValidationEventHandler in
System.Xml.XmlSchema.
* RdpPattern.cs : added "Anything" which is used in error recovery
support.
* relaxngtest.cs : added --skip-error option to test error recovery.
svn path=/trunk/mcs/; revision=127703
* reflection.c (encode_locals): Add checks for user types.
(method_encode_clauses): Ditto.
(method_encode_code): Ditto.
(mono_image_create_token): Ditto.
* object-internals.h: Change the type of more fields from MonoReflectionType*
to MonoObject*.
svn path=/trunk/mono/; revision=127683
* tramp-ppc.c (mono_arch_create_trampoline_code): Store the
correct frame pointer in the LMF. Should fix#478394.
svn path=/trunk/mono/; revision=127665
* threads.c (mono_thread_suspend_all_other_threads): Handle the case when
the a thread does not suspend within 100ms.
* monitor.c (mono_monitor_try_enter_internal): Handle SuspendRequested
in addition to StopRequested as well.
svn path=/trunk/mono/; revision=127661
* mono-debug.c: Call _mono_debug_get_image () while holding the debug lock.
* debug-mono-symfile.c (mono_debug_symfile_lookup_method): Actually
search the method_hash before inserting a new entry, to avoid crashes when
the same method is inserted multiple times, causing the old
MonoDebugMethodInfo structure to be freed by the value dtor function.
svn path=/trunk/mono/; revision=127660
* TextBox.cs: Some code lifting for AutoComplete's support. First,
when handling non-navigation keys, save the original Text typed by the
user, and don't motify it BEFORE. This was a design mistake, since the
re-assignation happens only when navigating the append/suggest list,
not while creating the matches. Also, process the Delete key just like
the backspace one. Finally, when handling WM_CHAR, ignore both Escape
and Enter keys.
Fixes some missing bits of #469967.
svn path=/trunk/mcs/; revision=127657
* Makefile.am (fullaotcheck): Copy Mono.Simd.dll as well.
* image-writer.c: Make the binary writer less verbose.
svn path=/trunk/mono/; revision=127644
* FtpWebResponse.cs: return a Null stream when there's no response to
be read.
* FtpWebRequest.cs: provide the error returned by the server in the
exception.
* WebClient.cs: set the correct method when doing a FTP upload.
Fixes bug #478451.
svn path=/trunk/mcs/; revision=127640
* marshal.c (mono_marshal_get_runtime_invoke): Fix _another_ bug sharing
runtime invoke wrappers, this time it is string ctor wrappers, which
pass a dummy string as 'this' instead of their obj argument. Fixes
#478473.
svn path=/trunk/mono/; revision=127637
2008-02-21 Jb Evain <[email protected]>
* Module.cs: add a new virtual GetModuleVersionId method,
and make the properties .MvId and ModuleVersionId call it.
This way, we can override it in ModuleBuilder.
Part of the fix for #471302.
in System.Reflection.Emit:
2008-02-21 Jb Evain <[email protected]>
* ModuleBuilder.cs: override GetModuleVersionId
so that we can get the module guid from Module.ModuleVersionId.
Part of the fix for #471302.
svn path=/trunk/mcs/; revision=127631
* ModuleBuilderTest.cs: add a test accessing the property
Module.ModuleVersionId on a dynamic module.
Test for #471302.
svn path=/trunk/mcs/; revision=127630
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added CopyTest.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Fix bug #458916.
* Copy.cs: CopiedFiles and DestinationFiles should have target paths
instead of source. Also, the metadata should get retained from source
items. Based on a patch by Jeffrey Richardson <[email protected]>
Refactor a bit to remove code duplication.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CopyTest.cs: New.
svn path=/trunk/mcs/; revision=127626
Extracted from a patch by Kornél Pál <[email protected]>.
* cpu-x86.md: Fix the sizes for long_conv_to_r_un and long_conv_to_r_un_2.
* mini-x86.c (mono_arch_output_basic_block): Use only 64bits of precision for
OP_LCONV_TO_R_UN.
Last fix for of #467201.
svn path=/trunk/mono/; revision=127585
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
method.
* System.Web/HttpResponseStream.cs: added support for writing from an
IntPtr. copied the memcpy method from String.cs.
* System.Web.Compilation/BuildManager.cs: updated comment.
* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
like a LiteralControl but will render itself from the bytes pointed to
by an IntPtr and not create any string from the underlying data unless
needed.
* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
that are used from the precompiled assemblies for a web project. The
most notable change needed is to be able to read a win32 resource from
the dll of the control. The resource is a concatenation of literals
with plain text for the control and a specialized LiteralControl is
generated from different chunks of the resource.
* System.Web.UI/HtmlTextWriter.cs: new method that returns the
HttpWriter in use.
* System.Web.dll.sources: added new file.
* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
win32 resource associated with the control's assembly.
svn path=/trunk/mcs/; revision=127579
* reflection.c (mono_reflection_setup_internal_class): Check for user types.
(mono_reflection_create_runtime_class): Ditto.
(mono_reflection_sighelper_get_signature_local): Ditto.
(mono_reflection_sighelper_get_signature_field): Ditto.
* object-internals.h (CHECK_MONOTYPE): New macro to check that a Type object
is a System.MonoType object or similar.
(monotype_cast): New helper function to cast a MonoObject to a
MonoReflectionType object.
* object-internals.h: Change MonoReflectionType* members in structures to
MonoObject* members to force the usage of the monotype_cast () function.
* reflection.c icall.c: Use monotype_cast () for accessing Type members of
structures/arrays. This causes us to assert instead of crashing when
instances of user defined subclasses of System.Type are encountered.
svn path=/trunk/mono/; revision=127576
* cil-coff.h:
* icall-def.h:
* icall.c: add new GetUnmanagedResourcePtr that returns a pointer to a
win32 resource loaded from a PE file.
* image.c: fix mono_image_lookup_resource.
svn path=/trunk/mono/; revision=127574
Extracted from a patch by Kornél Pál <[email protected]>.
* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
and long_conv_to_r8_2:
Fixed part of #467201.
svn path=/trunk/mono/; revision=127562
Extracted from a patch by Kornél Pál <[email protected]>.
* cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
and long_conv_to_r8_2:
svn path=/trunk/mono/; revision=127561
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (mono_arch_output_basic_block): Adjust precision of int to float
conversion to 32 bits.
* cpu-x86.md: Increase the size of int_conv_to_r4.
* basic-float.cs: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127560
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (emono_arch_output_basic_block): Adjust precision of long to double
conversion to 64 bits.
* basic-float.cs: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127559
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (emit_move_return_value): Don't reduce precision of functions returning float.
This behavior is compatible with MS.
* iltest.il.in: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127558
Extracted from a patch by Kornél Pál <[email protected]>.
* mini-x86.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_R4, it must
change the precision of the value.
* cpu-x86.md: Define len for float_conv_to_r4.
* basic-float.cs: Add a test for this.
Fixed part of #467201.
svn path=/trunk/mono/; revision=127557
functions no longer declared within Mono.Posix.dll).
* signal.c: Allow Mono_Unix_UnixSignal_WaitAny() to be called
concurrently from multiple threads w/o blocking each thread;
previously, calls to Mono_Unix_UnixSignal_WaitAny() would block
until the previous call completed. This required restructuring
Mono_Unix_UnixSignal_SignalInfo to hold a ref-counted
read_fd/write_fd pair (instead of allocating & releasing within
_WaitAny()) so that the pipes could be "shared" between threads.
Patch thanks to [email protected].
svn path=/trunk/mono/; revision=127538
* ChannelFactory_1.cs : it's not going to create ClientRuntime
anymore here. Moving to ServiceEndpoint.cs as the first stage.
* ClientBase.cs : some comment.
* ServiceEndpoint.cs : moved CreateRuntime() from ChannelFactory<T>.
svn path=/trunk/mcs/; revision=127531
A fix for bug #477447
* statement.cs: Add reference to correct parent storey when this
is accessible from deep children storey (more than 1 level).
svn path=/trunk/mcs/; revision=127527
* cominterop.c : Adding cominterop_type_from_handle and
registering it as an icall. Replacing all references
to type_from_handle.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=127481
* Makefile.am: Add lock-tracer.h and lock-trace.c.
* appdomain.c: Call the tracer init function.
* domain-internals.h: Enable the tracer for the domain locks.
* image.c: Enable the tracer for image locks.
* loader.c: Enable the trace for the loader lock.
* lock-tracer.h:
* lock-tracer.c: Initial implementation of the lock trace utility.
The tracer requires a compile time define to be enabled and a env var
to be enabled at runtime.
svn path=/trunk/mono/; revision=127476
* FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
the local path.
* WebClient.cs: when setting up the request for downloading, use the
default method. Fixes bug #477611.
svn path=/trunk/mcs/; revision=127449
* detect-sc.cs, detect-ssc.cs: Accept multiple input directories
to find the platform assemblies (and deal with the current /mcs
and /moon locations).
* Makefile.am: Detect platform assemblies in {x}/mcs and {x}/moon
svn path=/trunk/mcs/; revision=127439
* System.Windows[.Browser].auto.[sc|scc]: New data files
* mscorlib.auto.ssc, System.Net.auto.ssc: Updated since adding
the first auto.sc generation cause new auto.ssc to be found.
svn path=/trunk/mcs/; revision=127438
* DataGridView.cs: Do not reset the columns when the data list changes,
but only the rows. Fixes multiple bugs related to sorting, custom
column styles being reset and more.
svn path=/trunk/mcs/; revision=127434
* mini.c: Adjust locking order to the new semantics where the loader lock
comes first.
2009-02-19 Rodrigo Kumpera <[email protected]>
* appdomain.c:
* generic-sharing.c:
* object.c:
* reflection.c: Adjust locking order to the new semantics where the loader lock
comes first.
svn path=/trunk/mono/; revision=127430
* domain.c: Add mono_domain_code_* functions that perform locking
around the domain codeman.
* domain-internals.h: Export those functions.
* object.c: Use new functions instead of acquiring the domain lock.
svn path=/trunk/mono/; revision=127428
RealTimeSignum on OS X, as OS X doesn't support real-time signals
(and thus these will always error, often for the "wrong" reason).
* Test/Mono.Unix.Native/RealTimeSignumTest.cs: Disable the tests on
Mac OS X, as OS X doesn't support real-time signals.
svn path=/trunk/mcs/; revision=127415
A fix for bug #475860 by David Mitchell <[email protected]>
* class.cs: Define base type members before setting up member cache.
svn path=/trunk/mcs/; revision=127390
* *.cs: The tuner takes care of the visibility of this for us, and it
is in fact needed. (Readd ReadAttributeValue to 2.1)
svn path=/trunk/mcs/; revision=127366
* xmltool.cs : call Compile() and detect relax ng grammar error
so that it could detect grammar sanity when there is no instance
to be validated.
svn path=/trunk/mcs/; revision=127365
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
* System.Web.Compilation/BuildManager.cs: initial support for
precompilation. No 'updatable', please.
svn path=/trunk/mcs/; revision=127352
* AttributeCollection.cs: this [Type] shouldn't throw a NREX when
attrList is null.
* TypeDescriptor.cs: GetConverter (Type) must throw
ArgumentNullException if the passed parameter is null.
FindDefaultConverterType should gracefully cope with type being
null.
2009-02-19 Marek Habersack <[email protected]>
* TypeDescriptorTests.cs: added a test for
TypeDescriptor.GetConverter (null) case.
svn path=/trunk/mcs/; revision=127343
* TemplateParser.cs: don't initialize PageParserFilter in
LoadConfigDefaults, postpone it till the first time the
PageParserFilter property is accessed.
* ApplicationFileParser.cs, UserControlParser.cs: make sure
VirtualPath is set in the constructors.
svn path=/trunk/mcs/; revision=127333
* Mono.Tuner/InjectSecurityAttributes.cs: new tuner step
which is able to process the security attribute data files.
It replaces the previous InjectAttributes step.
svn path=/trunk/mcs/; revision=127303
* cominterop.c (cominterop_get_managed_wrapper_adjusted) :
Adding exception handling for all CCW calls.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=127279
* UrlPattern.cs: TrySubstitute now gets the collection of default
values and uses it to replace url segments instead of failing when
the passed values collection is missing a segment.
* RouteCollection.cs: check if name is null or empty, not just
null in GetVirtualPath
* Route.cs: url.TrySubstitute should be passed the defaults
collection when called from GetVirtualPath
svn path=/trunk/mcs/; revision=127259
* Mono.Documentation/exceptions.cs, Mono.Documentation/monodocer.cs:
Use the new Mono.Cecil .Resolve() methods instead of (erroneously)
duplicating their functionality with the .GetDefinition() methods.
ExceptionLookup.this[IMemberReference] checks for multi-dimensional
arrays, as MD arrays are "special" (Cecil can't resolve them, as
they're internal to the runtime with no specific associated IL).
Fixes#471379.
svn path=/trunk/mcs/; revision=127244
* Uri.cs : file URI for Windows path should also try '\' instead of
'/' as a host/path separator.
* UriTest.cs : added test for windows local path with '\' (used in
ooxml relax ng test case).
svn path=/trunk/mcs/; revision=127237
* Socket.cs: instead of clearing the sockets form the output and then
adding them back, we just remove the ones that have not been signaled.
Fixes bug #354090 and bug #476138.
svn path=/trunk/mcs/; revision=127234
* src/DbLinq.Firebird, System.Data.Linq.dll.sources :
added Firebird support sources (new in DbLinq).
svn path=/branches/atsushi-200810/mcs/; revision=115419
* Expression.cs : fix WeakReference usage for such case that it
might GC-ed between .IsAlive check and .Target retrieval.
svn path=/branches/atsushi-200810/mcs/; revision=115191
* XPathExpression.cs, Expression.cs : Cache compiled xpath
expressions so that they don't have to be parsed repeatedly.
svn path=/branches/atsushi-200810/mcs/; revision=114957
* Expression.cs, Iterator.cs : ChildIterator is not a SimpleIterator
now. And reduced extra clone when the context node has no child.
svn path=/branches/atsushi-200810/mcs/; revision=114931
* XPathNavigatorEvaluateTests.cs : corrected couple of misconception
in the tests.
* XslTransformTests.cs : removed extra NotDotNet.
svn path=/branches/atsushi-200810/mcs/; revision=114689
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
#
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
AC_ARG_ENABLE(solaris-tar-check,
[ --disable-solaris-tar-check disable solaris tar check],
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
fi
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
@@ -414,7 +435,7 @@ if test "x$USE_NLS" = "xyes"; then
fi
AC_ARG_WITH([libgdiplus],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to NO)],
[ --with-libgdiplus=installed|sibling|<path> Override the libgdiplus used for System.Drawing tests (defaults to installed)],
[], [with_libgdiplus=installed])
case $with_libgdiplus in
@@ -431,7 +452,7 @@ if test "x$PKG_CONFIG" = "xno"; then
if test "x$mono_feature_disable_full_messages" = "xyes"; then
AC_DEFINE(DISABLE_FULL_MESSAGES, 1, [Disables building in the full table of WAPI messages])
AC_MSG_NOTICE([Disabled full messages for Win32 errors, only core message strings shipped])
fi
if test "x$mono_feature_disable_verifier" = "xyes"; then
AC_DEFINE(DISABLE_VERIFIER, 1, [Disables the verifier])
AC_MSG_NOTICE([Disabled the metadata and IL verifiers])
fi
if test "x$mono_feature_disable_jit" = "xyes"; then
AC_DEFINE(DISABLE_JIT, 1, [Disable the JIT, only full-aot mode will be supported by the runtime.])
AC_MSG_NOTICE([Disabled the JIT engine, only full AOT will be supported])
fi
AM_CONDITIONAL(DISABLE_JIT, test x$mono_feature_disable_jit = xyes)
if test "x$mono_feature_disable_simd" = "xyes"; then
AC_DEFINE(DISABLE_SIMD, 1, [Disable SIMD intrinsics related optimizations.])
AC_MSG_NOTICE([Disabled SIMD support])
fi
AC_MSG_CHECKING(for visibility __attribute__)
@@ -738,7 +799,7 @@ case "x$gc" in
;;
esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB], [large_heap=$withval], [large_heap=no])
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
@@ -797,7 +858,7 @@ if test x$platform_win32 = xno; then
AC_MSG_CHECKING([if big-arrays are to be enabled])
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
if test "x$enable_big_arrays" = "xyes" ; then
if test "x$ac_cv_sizeof_void_p" = "x8"; then
AC_DEFINE(MONO_BIG_ARRAYS,1,[Enable the allocation and indexing of arrays greater than Int32.MaxValue])
@@ -1720,6 +1788,9 @@ if test "x$enable_dtrace" = "xyes"; then
if test "x$DTRACE" = "xno"; then
AC_MSG_RESULT([dtrace utility not found, dtrace support disabled.])
enable_dtrace=no
elif ! $DTRACE -h $srcdir/data/mono.d > /dev/null 2>&1; then
AC_MSG_RESULT([dtrace doesn't support -h option, dtrace support disabled.])
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to NO)],[
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to no)],[
if test x$with_malloc_mempools = xyes; then
MALLOC_MEMPOOLS=yes
AC_DEFINE(USE_MALLOC_FOR_MEMPOOLS,1,[Use malloc for each single mempool allocation])
@@ -2185,20 +2303,33 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each
DISABLE_MCS_DOCS=no
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to YES)],[
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to yes)],[
if test x$with_mcs_docs != xyes; then
DISABLE_MCS_DOCS=yes
fi
])
dnl
dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
docs_dir=""
else
docs_dir=docs
fi
AC_SUBST(docs_dir)
AM_CONDITIONAL(HAVE_OPROFILE, test x$OPROFILE = xyes)
AC_SUBST(OPROFILE_CFLAGS)
AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
AM_CONDITIONAL(INSTALL_2_1, test x$MOONLIGHT = xyes)
AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
Loaded 100 of 5927 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.