* debugger-agent.c (notify_thread): Skip terminated threads, since their tls
data is not freed yet. Fixes#582460.
svn path=/branches/mono-2-6/mono/; revision=152325
* Normalization.cs: Implement algorithmic Hangul decomposition; Calling
string.Normalize on Korean characters now works properly (bnc#480152).
This reduces the number of errors in 'make test' from 27k to 4.8k.
* StringNormalizationTestSource.cs:
* Makefile: Use the local, working copy of Normalization etc,so as to make
modifying Normalization.cs and then testing your changes with 'make test'
possible. Also, fix building/running of tests, patch by Alexander
Kojevnikov.
svn path=/branches/mono-2-6/mcs/; revision=152307
* HttpWebRequest_2_1.cs: Accept and ContentType properties do not
behave like Silverlight 2.0 (not related to browser/client stacks)
* WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
related to browser/client stacks)
* WebRequest_2_1.cs: Fix registration to work on domains (new)
and scheme (more correctly wrt new unit tests).
[Backport r152275]
svn path=/branches/mono-2-6/mcs/; revision=152276
* debugger-agent.c: Add support for the caught/uncaught flags on exception
event requests. Bump protocol minor version.
svn path=/branches/mono-2-6/mono/; revision=152234
* VirtualMachine.cs (CreateExceptionRequest): Add an overload taking two
booleans which specify whenever to report caught/uncaught exceptions.
* ExceptionRequest.cs: Add public properties for them.
* Connections.cs: Pass the caught/uncaught flags to the debuggee. Bump protocol
minor version.
svn path=/branches/mono-2-6/mcs/; revision=152232
* mini.c (mono_method_check_inlining): Use
* !mono_method_get_header_summary
instead of mono_method_get_header as it doesn't decode locals
so the called method can have unresolved dependencies that will
only be satisfied after the current method is JIT'd.
Fixes#550968.
svn path=/branches/mono-2-6/mono/; revision=152210
* metadata.c: Add mono_method_get_header_summary which returns
* minimal information about the header of a method. This is the
information used by the inline oracle to reject methods.
This method doesn't decode local variables and doesn't cache
it's result, so it should cause a minimal reduction in memory usage.
* metadata-internals.h: Add MonoMethodHeaderSummary structure
and mono_method_get_header_summary.
svn path=/branches/mono-2-6/mono/; revision=152209
* MemoryStream.cs: Don't clear the bytes beyond Length when shrinking
it. Instead just save the related information for it and do it when
Length grows and touchs that dirty region. Refactor the code where
needed to avoid duplication as well.
Fixes#327053.
svn path=/branches/mono-2-6/mcs/; revision=152171
In tools/xbuild:
2010-02-19 Ankit Jain <[email protected]>
* SolutionParser.cs (GetAllProjectFileNames): New.
* Parameters.cs (ParseArguments): When no project file is specified,
if the cur dir has a single sln and >1 project files, and all the
project files are referenced by the sln, the pick the sln.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-02-10 Ankit Jain <[email protected]>
* GenerateResource.cs (CompileResourceFile): Check File.Exists
for source file.
Don't build if the target is newer than the source file.
(Execute): Continue building all the resources, even if there
are failures for some files.
2010-02-10 Ankit Jain <[email protected]>
Fix bug #558739.
* GenerateResource (Resgen): New. Internal task to run resgen
with MONO_IOMAP=drive .
(Execute): Use the new Resgen task to compile the resources.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-02-19 Ankit Jain <[email protected]>
* ImportTest.cs (TestMissingImport*): Add new tests for missing
import projects.
2010-02-11 Ankit Jain <[email protected]>
* ImportTest.cs (Add1): Fix test on windows.
In class/Microsoft.Build.Engine/Test/various:
2010-02-19 Ankit Jain <[email protected]>
* Items.cs (TestItemsWithWildcards): Check for RecursiveDir metadata also.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-02-19 Ankit Jain <[email protected]>
* BuildItem.cs: Track api changes.
(SetMetadata): Allow RecursiveDir to be set, this is set by
DirectoryScanner.
* DirectoryScanner.cs (ProcessInclude): Set RecursiveDir metadata.
2010-02-19 Ankit Jain <[email protected]>
* Import.cs (Evaluate): Add param @ignoreMissingImports.
* Project.cs (Load*): Add overloads with param @projectLoadSettings.
(Log*): Mark internal.
* ProjectLoadSettings.cs: New.
In class/Microsoft.Build.Engine:
2010-02-19 Ankit Jain <[email protected]>
* Microsoft.Build.Engine.dll.sources: Add ProjectLoadSettings.cs .
In class/Microsoft.Build.Utilities:
2010-02-10 Ankit Jain <[email protected]>
* Microsoft.Build.Utilities.dll.sources: Add ProcessStringDictionary.cs
from class/System/System.Collections.Specialized . This is required as
the StringDictionary in ToolTask, used for EnvironmentOverrides, is
inadequate, because environment vars are case sensitive on unix.
In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2010-02-19 Ankit Jain <[email protected]>
* ReservedNameUtils.cs (GetReservedMetadata): Add dictionary param
@metadata. Use this to check for existing value of "RecursiveDir"
metadata, use that if present.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-02-19 Ankit Jain <[email protected]>
* TaskItem.cs: Track api changes.
2010-02-10 Ankit Jain <[email protected]>
* ProcessService.cs (globalEnvironmentVariablesOverride): Use
ProcessStringDictionary instead of StringDictionary.
ProcessStringDictionary retains the case of the keys (env vars
here).
* ToolTask.cs (environmentOverride): Likewise.
2010-02-10 Ankit Jain <[email protected]>
* ToolTask.cs (ExecuteTool): Use the virtual method
Standard*LoggingImportance, instead of the underlying field.
(LogEventsFromTextOutput): Use @importance argument for LogMessage.
(LogToolCommand): Remove MonoTODO.
svn path=/branches/mono-2-6/mcs/; revision=152128
* debugger-agent.c (mono_debugger_agent_handle_exception): Receive two contexts,
one for the throw and one for the catch. Mark uncaught exceptions by a NULL
CATCH_TXT. Send normal exception events for unhandled exceptions too.
(mono_debugger_agent_handle_unhandled_exception): Remove this, merged into
handle_exception.
svn path=/branches/mono-2-6/mono/; revision=152109
* debug-helpers.c (dis_one): Fix the disassembly of empty strings when
NO_UNALIGNED_ACCESS is defined.
svn path=/branches/mono-2-6/mono/; revision=152103
* System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648
so that PackUris can be combined properly.
svn path=/branches/mono-2-6/mcs/; revision=152070
* exceptions-x86.c (mono_arch_get_restore_context): Changes this so it restores
edx/ecx too. This is needed to support OP_SEQ_POINT.
svn path=/branches/mono-2-6/mono/; revision=152033
* class.c (mono_class_get_cctor): Fix support for dynamic classes, which doesn't
have has_cctor set. Fixes#575946.
svn path=/branches/mono-2-6/mono/; revision=151944
* appdomain.c: display a warning if the parsing the config file
produces any error.
Skip the BOM in UTF-8 files.
svn path=/branches/mono-2-6/mono/; revision=151894
* WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
supply it when calling OnDownloadProgressChanged
* WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature
[Backport r151800]
svn path=/branches/mono-2-6/mcs/; revision=151801
* StreamWriter.cs:
* FileStream.cs: if flushing fails when disposing the stream, make
sure it is closed before throwing the exception. Fixes bug #579146.
svn path=/branches/mono-2-6/mcs/; revision=151762
* SmtpClient.cs: generate correct MIME when there are text and html
linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.
svn path=/branches/mono-2-6/mcs/; revision=151759
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
when removing the querystring from the url.
svn path=/branches/mono-2-6/mcs/; revision=151755
* Test/System.Collections.Generic/HashSetTest.cs:
* System.Collections.Generic/HashSet.cs: fix and test for bug #579791.
Patch from Tiaan Geldenhuys.
svn path=/branches/mono-2-6/mcs/; revision=151706
* mono-profiler-aot.c (output_image): Emit method names instead of tokens so
the info can be used for different versions of the same assembly. Don't append
the assembly guid to the file names.
svn path=/branches/mono-2-6/mono/; revision=151698
* debug-helpers.c (mono_method_desc_search_in_image): Handle short names like
'int' for system classes.
svn path=/branches/mono-2-6/mono/; revision=151697
* mini.c (mono_jit_compile_method_inner): Avoid passing icall wrappers to
mono_profiler_method_end_jit, since the profiler has no way to process wrappers.
* aot-runtime.c mini.c: Resurrect the aot pagefault profiling stuff, it is useful
for mtouch.
svn path=/branches/mono-2-6/mono/; revision=151695
* debugger-agent.c: handle incomplete reads and EINTR in
recv()/send(). This could have been causing random
disconnections.
svn path=/branches/mono-2-6/mono/; revision=151688
* mini-arm.c (mono_arch_allocate_vars): Allocate the seq point related vars first
so they have small offsets. Fixes#566311.
svn path=/branches/mono-2-6/mono/; revision=151682
* generic-sharing.c (instantiate_other_info): Don't create ftnptr's from the
result of mono_compile_method (), it already includes an ftnptr.
svn path=/branches/mono-2-6/mono/; revision=151611
* mini-generic-sharing.c (mini_type_get_underlying_type): Handle byref as well
by returning native int. Fixes#577984.
svn path=/branches/mono-2-6/mono/; revision=151515
* CP1250.cs CP1252.cs: Move the '--charCount' line to the beginning of the loop,
since it can be skipped in case of HandleFallback. Add brances around the
call to HandleFallback so the 'continue' call is only done if it is called.
Should fix#573682.
svn path=/branches/mono-2-6/mcs/; revision=151281
2010-02-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Mono.CompilerServices.SymbolWriter does not
need to access mscorlib.dll internals anymore (ArrayList and
Hashtable)
[Backport r151176]
In .:
2010-02-09 Sebastien Pouliot <[email protected]>
* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
SymbolWriter source files directly into mscorlib 2.1
[Backport r151176]
In System.Reflection.Emit:
2010-02-09 Sebastien Pouliot <[email protected]>
* ModuleBuilder.cs: Do not use reflection to create SymbolWriterImpl
for Moonlight since the code is bundled inside mscorlib.dll to avoid
having a non-platform assembly poking the internals of mscorlib.dll
[Backport r151176]
svn path=/branches/mono-2-6/mcs/; revision=151177
* XUtil.cs: Avoid using ToLowerInvariant since it is not
available in Silverlight.
[Backport r151136]
svn path=/branches/mono-2-6/mcs/; revision=151137
2010-02-09 Rodrigo Kumpera <[email protected]>
* icall.c (param_info_get_type_modifiers): Handle the case when the member object is a
property. This happens which instances returned by PropertyInfo::GetIndexParameters ().
* reflection.c (mono_reflection_get_custom_attrs_info): Ditto.
* object-internals.h: Export mono_class_is_reflection_method_or_constructor as part of
the internal API.
Fixes#574434.
Backport of r151093.
svn path=/branches/mono-2-6/mono/; revision=151094
* threads.c: Removed two assertions that were too strict. Added a
clarifying comment. Fixes#577090.
Backport of r151074.
svn path=/branches/mono-2-6/mono/; revision=151075
* mini-exceptions.c (mini_jit_info_table_find): Search the root domain as well,
since mono_jit_info_table_find () doesn't do it anymore.
* mini-generic-sharing.c debugger-agent.c: Call mini_jit_info_table_find ()
instead of mono_jit_info_table_find ().
svn path=/branches/mono-2-6/mono/; revision=151035
* domain.c (mono_jit_info_table_find): Avoid looking in the root domain, since
the caller has no way of knowing the domain which owns the returned MonoJitInfo.
* appdomain.c (create_exceptions): Call mono_thread_push/popappdomain_ref ().
svn path=/branches/mono-2-6/mono/; revision=151034
* MethodInfoTest.cs: New test for GetParameters() returning the
* interned array.
* PropertyInfoTest.cs: New tests for GetIndexParameters().
svn path=/branches/mono-2-6/mcs/; revision=150955
* MonoMethod.cs (GetParameters): Must return a copy instead of
* the interned array.
* MonoMethod.cs (Invoke): Skip array clone in GetParameters.
* MonoProperty.cs (GetIndexParameters): Properly handle
* write-only indexed properties.
Return a ParameterInfo object bound to the properly and not to
the method.
* ParameterInfo.cs: Add new constructor that copies all fields
* but Member.
* ParameterInfo.cs (MetadataToken): Properly handle tokens of
* non-method members.
svn path=/branches/mono-2-6/mcs/; revision=150954
2010-02-04 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Use the new basic block formation pass
to avoid JIT'ng dead basic blocks. This is the same behavior as the
runtime MS verifier.
backport of r150888.
svn path=/branches/mono-2-6/mono/; revision=150895
* verify.c (mono_method_verify): Use the new basic block formation pass
to avoid verifying dead basic blocks. This is the same behavior as the
runtime MS verifier.
backport of r150888.
2010-02-04 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=150892
2010-02-04 Rodrigo Kumpera <[email protected]>
* mono-basic-block.c:
* mono-basic-block.h: New implementation of a basic block formation pass.
The formation pass does static liveness analysis as well to detect dead
basic blocks.
backport of r150887.
svn path=/branches/mono-2-6/mono/; revision=150891
* VirtualMachine.cs (CreateEnumMirror): New method to create an EnumMirror.
* AppDomainMirror.cs (GetCorrespondingType): New method to return a TypeMirror
corresponding to a primitive type.
* TypeMirror.cs (IsEnum): Implement.
* EnumMirror.cs (.ctor): New internal constructor called from CreateEnumMirror
which does lots of error checking.
svn path=/branches/mono-2-6/mcs/; revision=150814
backport of r149817
* cominterop.c marshal.c: Added support for marshalling in, in/byref,
in/out, in/out/byref parameters of type SAFEARRAY[VARIANT].
* cominterop.cs libtest.c: Added tests for marshalling
in, in/byref, in/out, in/out/byref parameters of type
SAFEARRAY[VARIANT].
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=150782
* mini-amd64.c (mono_arch_emit_prolog): Initialize lmf->rsp in the prolog too
so async stack walks don't crash.
svn path=/branches/mono-2-6/mono/; revision=150738
* mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
was not patched if the callee needed an rgctx trampoline.
svn path=/branches/mono-2-6/mono/; revision=150690
In tools/xbuild/Test:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* ParametersTest.cs: /noautorsp + test for each property value
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* xbuild.tests/ParametersTest.cs
* xbuild.tests/xbuild.tests.csproj:
NUnit tests for the Parameters class
In tools/xbuild:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* Main.cs
* Parameters.cs: response file might be specified in double quotes.
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* Makefile
* xbuild_test.dll.sources
* xbuild.sln
* Test/*: added NUnit tests (Test/xbuild.tests)
2009-12-22 Ankit Jain <[email protected]>
Fix bug #566087.
* xbuild/Microsoft.CSharp.targets: Use $(NoWarn) .
2009-12-14 Ankit Jain <[email protected]>
* Parameters.cs (TryProcessMultiOption): New.
(ProcessTarget):
(ProcessProperty): Refactor to use TryProcessMultiOption,
and accept ":" in target name or property name/value pair.
2009-12-14 Ankit Jain <[email protected]>
Fix bug #562056.
* Parameters.cs: Property name/value pairs can be separated by ':'.
2009-11-26 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets (PostBuildEvent): If
$(RunPostBuildEvent) is empty, treat it as OnBuildSuccess.
Simplify condition.
2009-11-25 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Emit list of files written
during the build to the obj/$(Config) rather than obj/, to keep
them per config. Bug reported by : Greg F <[email protected]>
2009-11-10 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets(AL):
* xbuild/Microsoft.CSharp.targets (CSC):
* xbuild/Microsoft.VisualBasic.targets (Vbc): Set ToolExe and ToolPath to
corresponding properties, allowing them to be overridden.
2009-11-09 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Set default TargetFrameworkVersion.
Replace TargetFrameworkPath with TargetFrameworkDirectories, and set
according to the TargetFrameworkVersion.
In tools/xbuild/tests:
2009-11-26 Ankit Jain <[email protected]>
* standalone/Project1/final-outputs.txt: Update.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* BuildChooseTest.cs
* BuildPropertyTest.cs:
test cases for nested Choose elements and different property
evaluation scenarios.
In class/Microsoft.Build.Engine/Test/various:
2009-12-22 Ankit Jain <[email protected]>
* Items.cs (TestItemsWithWildcards): Add Exclude also, update
test accordingly.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-12-22 Ankit Jain <[email protected]>
Fix bug #565849.
* DirectoryScanner.cs (Excludes): Change from string to ITaskItem[] .
* BuildItem.cs: Track api changes.
2009-12-02 Ankit Jain <[email protected]>
Fix bug #559990.
* Engine.cs (UnloadAllProjects): Don't remove items from the collection
being iterated over. Patch by Laurent Etiemble
<[email protected]>
2009-11-28 Ankit Jain <[email protected]>
Fix bug #547753.
* BatchingImplBase.cs (DumpBucket*): New. Useful for debugging.
* Project.cs (Batch): New. Contains the perBatchItems and the
commonItems for the batch.
Use a stack of batches, instead of directly setting the current
batch items.
(PushBatch): New.
(PopBatch): New.
(SetBatchedItems): Make this private.
(GlobalProperties.set): Re-evaluating the project is not required
for this.
* TargetBatchingImpl.cs: Use the new Push/PopBatch instead of directly
setting the batches.
* TaskBatchingImpl.cs: Likewise. Refactor slightly to PopBatch in
finally block.
* Target.cs (Build): Reset the current batch to nil before evaluating
and building this target.
2009-11-28 Ankit Jain <[email protected]>
* Project.cs (TryGetEvaluatedItemByNameBatched): Item could be
available in either perBatchItemsByName or commonItemsByName
or the evaluatedItemsByName collection. Allows the use of
items which are not batched, but are consumed in case of batching.
2009-11-26 Ankit Jain <[email protected]>
* TargetBatchingImpl.cs (BuildTargetNeeded): Expand metadata
refs also, for Inputs and Outputs.
2009-10-13 Ankit Jain <[email protected]>
* DirectoryScanner.cs:
* ExpressionCollection.cs:
* GroupingCollection.cs:
* Project.cs:
* Target.cs: Fix warnings.
In class/Microsoft.Build.Engine:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* Microsoft.Build.BuildEngine/BuildWhen.cs
* Microsoft.Build.BuildEngine/PropertyReference.cs:
support for nested Choose elements + fixed bug where the project reference
would be null during condition evaluation.
2010-01-12 Rodrigo B. de Oliveira <[email protected]>
* Microsoft.Build.BuildEngine/BuildWhen.cs
* Test/Microsoft.Build.BuildEngine/BuildChooseTest.cs:
Support for PropertyGroup as a child of When and Otherwise
In class/Microsoft.Build.Framework/Mono.XBuild.Framework:
2009-10-13 Ankit Jain <[email protected]>
* AssemblyLoadInfo.cs: Fix warning.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-12-22 Ankit Jain <[email protected]>
* CreateItemTest.cs (TestItemsWithWildcards): New.
2009-11-28 Ankit Jain <[email protected]>
* TaskBatchingTest.cs: Add new tests for batching.
2009-11-28 Ankit Jain <[email protected]>
* TaskBatchingTest.cs: Add new tests for batching, use on unbatched
items in a batching scenario.
In class/Microsoft.Build.Tasks:
2009-12-22 Ankit Jain <[email protected]>
* Microsoft.Build.Tasks.dll.sources: Add DirectoryScanner.cs
from Build.Engine, required by CreateItem.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-12-22 Ankit Jain <[email protected]>
Fix bug #565849.
* CreateItem.cs: Use DirectoryScanner to handle wildcards.
(IsExcluded): Remove.
2009-11-26 Ankit Jain <[email protected]>
* ManagedCompiler.cs (AddResponseFileCommands): *mcs doesn't
support /debug:pdbonly, so map it to /debug:full .
2009-11-10 Ankit Jain <[email protected]>
* ToolTask.cs (ToolExe): New.
* Csc.cs:
* AL.cs: Use ToolExe instead of ToolName to construct
tool's full path.
2009-11-09 Ankit Jain <[email protected]>
* GetFrameworkPath.cs (FrameworkVersion11Path):
(FrameworkVersion20Path):
(FrameworkVersion30Path):
(FrameworkVersion35Path): New.
2009-10-13 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Fix warnings.
2009-10-13 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Log only unique conflict warnings.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-11-25 Ankit Jain <[email protected]>
* ToolLocationHelper.cs: Set directory for 3.0 framework
to "2.0"
2009-11-09 Ankit Jain <[email protected]>
* TargetDotNetFrameworkVersion.cs (Version30):
(Version35): New.
* ToolLocationHelper.cs: Support 3.0 and 3.5 also.
2009-10-13 Ankit Jain <[email protected]>
* TaskLoggingHelper.cs:
* ToolTask.cs: Fix warnings.
svn path=/branches/mono-2-6/mcs/; revision=150655
* class.c (make_generic_param_class): Initialize interface offsets since we
set klass->inited. Fixes#574819.
svn path=/branches/mono-2-6/mono/; revision=150559
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
the correct thread (by using the stored SynchronizationContext).
* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
is passed to the WriteStreamClosedCallback.
svn path=/branches/mono-2-6/mcs/; revision=150511
* debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
end of the appdomain unload process, after assemblies have been unloaded.
Fixes#574842.
svn path=/branches/mono-2-6/mono/; revision=150454
* WebClient_2_1.cs: The async events must be invoked on a threadpool
thread if the async method wasn't executed on the main thread, so save
the synchronization context when the async method is called, and post
the event to that synchronization context when done. This is also
required when the async methods are executed on the main thread, since
HttpWebRequest callbacks are now always executed on a threadpool thread.
svn path=/branches/mono-2-6/mcs/; revision=150369
2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* Assembly.cs: GetSatelliteAssembly: Ask LoadSatellite to not throw
exceptions, since we ignore them anyway.
In class/corlib/System:
2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* AppDomain.cs: LoadSatellite: add a boolean parameter specifiying
whether we should throw on exceptions or not.
svn path=/branches/mono-2-6/mcs/; revision=150368
* pedump.c (main): Properly set the verifier mode when running the metadata
verifier.
Backport of r150304.
2010-01-28 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=150311
2010-01-28 Rodrigo Kumpera <[email protected]>
* verify.c (verify_class_for_overlapping_reference_fields): Properly verify
overlapping fields now that we're called before has_references is set.
* pedump.c (dump_verify_info): Clear any loader error before verifying another
method. Otherwise all sort of weird stuff happens.
Backport of r150303.
svn path=/branches/mono-2-6/mono/; revision=150309
* aot-compiler.c: Fix a logic error introduced when guarding against enums
with struct marshalability.
svn path=/branches/mono-2-6/mono/; revision=150245
* DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
AccessException inside a SerializationException but in a
SecurityException.
[Backport r150219]
svn path=/branches/mono-2-6/mcs/; revision=150220
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Use custom
version of DataContractJsonSerializer for Moonlight
[Backport r150153]
svn path=/branches/mono-2-6/mcs/; revision=150154
* DataContractJsonSerializerTest.cs: Add non-working test cases
for null-string, known types and handling floating point special
values
[Backport r150141]
svn path=/branches/mono-2-6/mcs/; revision=150152
* DataContractJsonSerializer_2_1.cs: New. Simpler version for
Moonlight since it does not inherit from the same base type nor
does it overrides any base methods.
[Backport r150149]
svn path=/branches/mono-2-6/mcs/; revision=150150
* IPEndPoint.cs: When throwing an ArgumentException in Create()
because of a mismatch in the address family, use a more informative
message. Patch by Juho Vähä-Herttu<[email protected]>.
Fixes#505105.
svn path=/branches/mono-2-6/mcs/; revision=150032
* ComboBox.cs: When the normal drop down window is closed, make sure
that the auto complete list -if any- is closed as well, instead of
stay open without need.
svn path=/branches/mono-2-6/mcs/; revision=150029
top, by calling the raw XplatUI.SetZOrder for it, since we can't
properly call BringToFront on it as it is parentless. This fixes an
issue when using this feature with ComboBox's own parentless listbox.
Fixes the remaining bits of #489339.
2010-01-21 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=150027
* XplatUIDriver:
* XplatUICarbon:
* XplatUIWin32:
* XplatUIX11.cs:
* XplatUIStructs: Implement support for different kind of audible
alerts in Windows, and update the requiered classes.
* MessageBox.cs:
* TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
Fixes#473725.
2010-01-21 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=150024
MaxDropDownHeight property - also rename our field 'count' to
'visible_items_count' to avoid confusion as much as possible.
Fixes an issue with several items, showing an incorrect layout.
2010-01-21 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=150021
* RichTextBox.cs: SelectedText should set Modified to true. Observe
that this is happening just here, not for the Text property, and
neither for the TextBoxBase impl.
Fixes#569950.
svn path=/branches/mono-2-6/mcs/; revision=150017
* exceptions-amd64.c (mono_arch_notify_pending_exc): Avoid a crash if the
thread has not fully started yet.
svn path=/branches/mono-2-6/mono/; revision=150014
* reflection.c (typebuilder_setup_fields): Pretend field setup already
happened before starting to encode the actual fields. This avoid ciclic
dependencies and eventual crashes.
Fixes#572660.
Backport of r150008.
2010-01-21 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=150011
* SmtpClient.cs: rethrow inner exception so that
AsyncCompletedEventArgs.Error gets the right value on error. Patch
by Dimitar Dobrev.
svn path=/branches/mono-2-6/mcs/; revision=149984
* metadata-verify.c (parse_generic_inst): Fail a type signature if it
has a recursive reference to itself.
Fixes#571863.
Backport of r149969.
svn path=/branches/mono-2-6/mono/; revision=149971
* icall.c: don't raise AppDomain.TypeResolve when the type is loaded
from the current assembly or mscorlib. Fixes bug #322957.
svn path=/branches/mono-2-6/mono/; revision=149922
* mini-posix.c (SIG_HANDLER_SIGNATURE): Avoid
"Thread (nil) may have been prematurely finalized" messages if this is called
on a thread not registered with the runtime.
* mini-exceptions.c (mono_handle_native_sigsegv): Ditto.
svn path=/branches/mono-2-6/mono/; revision=149913
* jit-icalls.c (mono_array_new_3): New jit icall.
* aot-compiler.c aot-runtime.c: Add support for ElementAddr wrappers.
* arrays.cs: Add a test for 3 dimensional arrays.
svn path=/branches/mono-2-6/mono/; revision=149832
* marshal.c (mono_marshal_wrapper_info_from_wrapper): New helper function to
return a point to a wrapper specific info structure describing the wrapper.
(mono_marshal_get_array_address): Store the rank+elem_size in the wrapper info.
svn path=/branches/mono-2-6/mono/; revision=149831
* security-core-clr.c (mono_security_core_clr_can_access_internals):
Handle the case where 'basedir' can be NULL (e.g. SRE assemblies)
[Backport r149823]
svn path=/branches/mono-2-6/mono/; revision=149824
* metadata-verify.c (parse_type): Fail a type signature if it has a recursive reference
to itself.
* metadata-verify.c (mono_verifier_verify_typespec_signature): Change signature to take
the token as parameter.
* verify-internals.h: Ditto.
* metadata.c (mono_type_create_from_typespec): Pass token to verifier.
Fixes#571460.
Backport of r149776.
2010-01-18 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=149777
* mini.h (MonoCompile): Add 'disable_out_of_line_bblocks' flag.
* branch-opts.c (mono_optimize_branches): Honor the new flag.
* mini.c (mini_method_compile): Set the new flag when running under the
debugger.
svn path=/branches/mono-2-6/mono/; revision=149753
* branch-opts.c (mono_branch_optimize_exception_target): Stop the optimization
if a clause is skipped because it uses the exception object, since it could
have caught the exception.
* exceptions.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=149707
* mini-amd64.c (emit_call_body): Always use near calls when AOTing even if
NOMAP32BIT or optimize_for_xen is set.
svn path=/branches/mono-2-6/mono/; revision=149673
* Int32.cs: In Parse() cast the parsed value to long *before* changing
its sign - this way we preserve the original value, instead of
accidentally changing it. This was happening parsing _exactly_
MaxValue + 1.
Fixes#475815.
svn path=/branches/mono-2-6/mcs/; revision=149650
2010-01-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Guard against unfinished types. This
happens only on 2.6 and not trunk because trunk better deals with unfinished types.
svn path=/branches/mono-2-6/mono/; revision=149642
2010-01-14 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_has_exceptions): Check the generic instance. It can fail
independently of the GTD.
* class.c (mono_class_setup_fields): Fail if field has negative offset.
* class.c (mono_class_setup_fields): Fail if valuetype has zero size. Add sizeof(MonoObject)
to the upper limit since instance_size includes this amount.
* class.c (mono_class_layout_fields): Check if the types of the static fields have failed.
Fixes#569544.
Backport of r149575.
svn path=/branches/mono-2-6/mono/; revision=149576
by having EcmaHelpSource.GetTextFromUrl() look for cached contents.
This greatly speeds up type member listings (e.g. T:...List`1/*),
e.g. from ~2.0s to 0.06s.
* Mono.Documentation/XmlDocUtils.cs: XmlDocUtils.AddExtensionMethods()
wasn't adding extension methods which matched *interfaces* of base
classes. Result: Mono.Options.OptionSet (which inherits
System.Collections.ObjectModel.KeyedCollection`2 which inherits from
System.Collections.ObjectModel.Collection`1 which implements
System.Collections.Generic.IEnumerable`1) wasn't getting any of the
LINQ extension methods (which is bad). Fix this.
* Resources/mdoc-html-utils.xsl: Fix regression caused by 2009-12-02
commit adding GetLinkTargetHtml(). The problem was that when
running within ASP.NET/monodoc ~all extension method links would be
'javascript:alert("...")M:Foo.Method(...)', which is clearly wrong.
This occurred because $linkid's generation would always call
GetLinkTargetHtml() with a $cref value of '', thus the monodoc
GetLinkTarget() would return '', so GetLinkTargetHtml() would return
the javascript "not found" alert. Thus, we can't expect
GetLinkTargetHtml() with $cref='' to work under monodoc, but it's
~required to work sanely under 'mdoc export-html'.
Solution is to not call GetLinkTargetHtml() here UNLESS we're doing
'mdoc export-html' generation, which we assume to be the case if
$html-anchor is true.
svn path=/branches/mono-2-6/mcs/; revision=149553
* HttpWebRequest.cs: when the server returns several different
authentication methods, pick the one that works.
Fixes bug #562043.
svn path=/branches/mono-2-6/mcs/; revision=149501
* HttpWebRequest_2_1.cs: Throw for CookieContainer. It is
implemented only in the client http stack (and for a limited
time in the browser stack too ;-)
* InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
available after closing/disposing (by user) since our own code
will need it later (e.g. when posting like DRT287)
* WebHeaderCollection_2_1.cs: Provide an argument to
ArgumentException. Found by Gendarme's ArgumentException
InstantiateArgumentExceptionCorrectlyRule
[Backport r149484]
svn path=/branches/mono-2-6/mcs/; revision=149485
* jit.h, method-to-ir.c: added ability to set the policy for
inserting breakpoints from the break IL instruction or the
Debugger.Break () API call.
svn path=/branches/mono-2-6/mono/; revision=149473
* WebRequest_2_1.cs: Rework registration wrt the two, browser
and client, stacks offered in SL3. Only global works now.
[Backport r149423]
svn path=/branches/mono-2-6/mcs/; revision=149424
* class.c (mono_class_get_implemented_interfaces): Now take a MonoError argument.
* class.c:
* cominterop.c:
* icall.c:
* object.c:
* class-internals.h: Adjust for new signature of mono_class_get_implemented_interfaces.
Backport of r149414.
2010-01-12 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=149417
2010-01-12 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_interfaces): Now take a MonoError argument and
it can fail loading the type.
* class.c: Add mono_class_inflate_generic_class_checked.
* class.c:
* verify.c:
* class-internals.h: Adjust for new signature of mono_class_setup_interfaces.
Backport of r149413.
svn path=/branches/mono-2-6/mono/; revision=149415
* monitor.c (ves_icall_System_Threading_Monitor_Monitor_wait): Don't close the
wait handle if the wait is interrupted, since it is still in mon->wait_list, and
we can't remove it from it since we don't hold the lock.
(mon_new): Free the orphaned events here when a mon structure is added to the
freelist. Fixes#561239. Thanks to Mike Rieker <[email protected]> for tracking
this down.
svn path=/branches/mono-2-6/mono/; revision=149335
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
an argument which matches any exception.
svn path=/branches/mono-2-6/mono/; revision=149297
* ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
place and synchronize the events properly. Fixes a lack of
coordination between the events - which should be fired together.
svn path=/branches/mono-2-6/mcs/; revision=149291
* method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
optimization if the called method is gshared and marshalbyref, since gshared
methods can' have wrappers. Fixes#569390.
* generics.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=149287
* debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
since it is not supported in win2000.
svn path=/branches/mono-2-6/mono/; revision=149275
* TrackBar.cs: Move our events code to a single method, allowing it to
optionally fire the Scroll event. This way we both avoid the
duplicated calls to OnScroll and also will be able to fire Scroll
*before* OnValueChanged in other places.
Fixes#568026.
svn path=/branches/mono-2-6/mcs/; revision=149271
* Expression.cs (Call): properly deal with zero length array
of type arguments for non generic methods. Fixes#568989.
backport r149241.
svn path=/branches/mono-2-6/mcs/; revision=149242
2010-01-07 Jb Evain <[email protected]>
* MonoType.cs (.MemberType): return the proper member type
for generic parameters.
backport r149175.
in Test/System:
2010-01-07 Jb Evain <[email protected]>
* TypeTest.cs: add test for the MemberType of
a generic parameter.
backport r149175.
svn path=/branches/mono-2-6/mcs/; revision=149176
2010-01-07 Sebastien Pouliot <[email protected]>
* Convert.cs: Fix line endings in ToBase64String (bug #568778)
and also the default line length. Code changed to not require
a BinaryReader over a MemoryStream to reduce memory requirements.
[Backport r149171]
In Test/System:
2010-01-07 Sebastien Pouliot <[email protected]>
* ConvertTest.cs: Add test case for #568778 and the default
line length.
[Backport r149171]
In System.Security.Cryptography:
2010-01-07 Sebastien Pouliot <[email protected]>
* ToBase64Transform.cs: Static-ify some methods to make it easier
to use from System.Convert
[Backport r149171]
svn path=/branches/mono-2-6/mcs/; revision=149172
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix#564695.
If LLVM decides to set the code model to Large, reset it to Default.
svn path=/branches/mono-2-6/mono/; revision=149160
2010-01-05 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Properly check for broken parent. Ignore
types that are meant to not have a parent.
Backport of r149053.
In mini:
2010-01-05 Rodrigo Kumpera <[email protected]>
* mini.c (mono_compile_is_broken): Skip methods from serialization's
internal assembly.
Backport of r149053.
svn path=/branches/mono-2-6/mono/; revision=149082
* RadioButton.cs: When drawing, if Appearance is Button use the old
normal routine in the theme engine, instead of using the one in 2.0,
since this last one doesn't support proper rendering of the control as
a button.
Fixes#567904.
svn path=/branches/mono-2-6/mcs/; revision=149075
2009-01-04 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_compile): Verify the method before calling
mono_compile_create_vars as this might crash since it uses method
information.
Fixes#560196.
Backport of r149045.
svn path=/branches/mono-2-6/mono/; revision=149046
2010-01-04 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_init): Do class verification at the beginning. Add
some asserts to avoid tripping into invalid memory.
* object.c (compute_class_bitmap): Replace a g_assert_not_reached with a
g_error and a decent message.
* verify.c (mono_verifier_verify_class): Verify for invalid super type.
Fixes#567548.
Backport of r149028.
svn path=/branches/mono-2-6/mono/; revision=149029
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs:
Do not include in both mscorlib and System.Core for a NET_2_1 profile.
backport r149020.
svn path=/branches/mono-2-6/mcs/; revision=149021
* GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
text of the group box if it is disabled.
Fixes#567847.
svn path=/branches/mono-2-6/mcs/; revision=149013
* locales.c (construct_culture_from_specific_name): Applied patch from
José Antonio Sánchez Lázaro <[email protected]>. Fix a crash if a culture was
not found. Fixes#567900.
svn path=/branches/mono-2-6/mono/; revision=148969
* XplatUICarbon.cs: Implement the overriden AudibleAlert
function in XplatUICarbon. Currently it throws
NotImplementedException which will kill a WinForms application showing
a dialog box.
Patch by Erik Ylvisaker ([email protected]).
svn path=/branches/mono-2-6/mcs/; revision=148958
* class.c (mono_class_setup_methods): Use checked version of mono_class_inflate_generic_method_full
so we can properly fail types instead of crashing.
Fixes#567676.
Backpor of r148948.
2009-12-30 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=148949
* Cookie.cs: Don't use automatic properties to let older mcs
(e.g. bootstrap) compile this for NET_1_1 profile
svn path=/branches/mono-2-6/mcs/; revision=148921
* method-to-ir.c (mono_method_to_ir): Handle the failure of mono_class_vtable ()
in a few more places.
svn path=/branches/mono-2-6/mono/; revision=148916
* verify.c (init_stack_with_value_at_exception_boundary): Do stack overflow checking here
as max stack might be zero.
Fixes#562320.
Backport of r148911.
2009-12-26 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=148912
Rework all uses of mono_class_setup_methods to accept that it can fail now.
* class.c (mono_class_setup_methods): This function now can fail the class. Do so for generic
instances if the GTD did.
* class.c (mono_class_setup_properties): Ditto.
* class.c (mono_class_setup_events): Ditto.
* class.c (mono_class_setup_vtable): Fail early if the type is already broken.
* class.c (mono_class_setup_vtable_general): Add a few more missing broken type checks. Sanitize
error setting.
* class.c (mono_class_init): Fail if GTD did.
* cominterop.c:
* generic-sharing.c:
* icall.c:
* loader.c:
* object.c:
* verify.c: Properly handle failure of mono_class_setup_methods.
Backport of r148905.
2009-12-26 Rodrigo Kumpera <[email protected]>
In mini:
2009-12-26 Rodrigo Kumpera <[email protected]>
* mini-trampolines.c (common_call_trampoline): Add assert for NULL resolved generic method.
Backport of r148905.
svn path=/branches/mono-2-6/mono/; revision=148907
2009-12-26 Rodrigo Kumpera <[email protected]>
* class-internals.c: Add mono_class_inflate_generic_method_full_checked and make
mono_class_inflate_generic_method_full internal.
* class.c (inflate_generic_context): Now takes a MonoError argument.
* class.c (mono_class_inflate_generic_method_full): Now calls the _checked and abort on
errors.
Backport of r148904.
svn path=/branches/mono-2-6/mono/; revision=148906
* domain.c (mono_domain_free): Backport part of r143047. Free special static
fields earlier to avoid crashes if the types they refer to are freed. Fixes
#565923.
svn path=/branches/mono-2-6/mono/; revision=148903
2009-12-24 Sebastien Pouliot <[email protected]>
* CookieContainerTest.cs: Split many tests into smaller test
cases. Add test cases for DefaultPerDomainCookieLimit and
DefaultCookieLimit. Remove all, but one 1.x, [Category
("NotWorking")] since everything works now.
In System.Net:
2009-12-24 Sebastien Pouliot <[email protected]>
* Cookie.cs: Re-work ToString to be useable in more cases. Fix
some issues found by Gendarme.
* CookieContainer.cs: Fix 2.0 NonWorking (and new) unit tests.
Implement removing oldest cookies when limits are reached.
* CookieCollection.cs: Fix sort to be closer to MS implementation
(but still not 100% identical). Fix some issues found by Gendarme
svn path=/branches/mono-2-6/mcs/; revision=148892
* mini-trampolines.c (mono_create_llvm_imt_trampoline): Fix the LLVM build on
platforms without mono_arch_get_llvm_imt_trampoline ().
svn path=/branches/mono-2-6/mono/; revision=148864
2009-12-21 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Check if the returned signature is compatible
with the one from the original method.
* metadata-verify.c (mono_verifier_is_sig_compatible): New function to verify signature
compatibility.
* verify-internals.h: Add new function to the internal API.
Fixes#566295.
Backport of r148828.
svn path=/branches/mono-2-6/mono/; revision=148829
* File.cs (ReadAllBytes): We cannot assume that a single call to
Read will return all the data we require.
[Backport r148822]
svn path=/branches/mono-2-6/mcs/; revision=148823
2009-12-18 Dimitar Dobrev <[email protected]>
* culture-info-tables.h: regenerated it to include the Georgian culture.
In tools/locale-builder:
2009-12-18 Dimitar Dobrev <[email protected]>
* langs/ka.xml: added a file with the settings of the neutral
Georgian culture
* locales/ka-GE.xml: added a file with the settings of the
specific Georgian culture
* supp/ka-GE.xml: added a file with the date and time formats
of the Georgian culture
* lcids.xml: added entries for the neutral and specific
Georgian culture
* Makefile.am: included supp/ka-GE.xml in the build and dist the new
we're not downloading from primates.ximian.com.
[Fixes bug 564910].
[Backport of r148776].
svn path=/branches/mono-2-6/mono/; revision=148803
2009-12-19 Zoltan Varga <[email protected]>
* String.cs: Fix the various IndexOf and LastIndexOf methods so they handle
"" and a non-zero startIndex correctly. Fixes#566106.
In Test/System:
2009-12-19 Zoltan Varga <[email protected]>
* StringTest.cs: Add tests for IndexOf ("", startIndex, count).
svn path=/branches/mono-2-6/mcs/; revision=148790
In class/corlib/System.Threading/:
* Parallel.cs: Added fix for Bug #536919.
In class/corlib/Test/System.Threading/:
* ParallelTests.cs: Added unit test for Bug #536919, cleaned up.
svn path=/branches/mono-2-6/mcs/; revision=148782
* mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
alloca as g_malloc is not signal safe.
svn path=/branches/mono-2-6/mono/; revision=148767
* reflection.c (mono_reflection_get_type_internal_dynamic): Use assembly->domain
instead of the current domain, since the two might not match if this is called
from the debugger.
* metadata-internals.h (MonoDynamicAssembly): Add a 'domain' field to specify the
domain which created this assembly.
svn path=/branches/mono-2-6/mono/; revision=148759
2009-12-17 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Don't pin virtual methods if they are newslot.
A private virtual newslot method is used to implement an interface method without exposing
it to users. When querying for public instance methods, such method would hide a public one
on a parent type.
Fixes#564379.
Backport of r148694.
svn path=/branches/mono-2-6/mono/; revision=148695
* method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
signatures. Fixes#565143.
* jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.
svn path=/branches/mono-2-6/mono/; revision=148683
* zlib-helper.c: when finishing uncompressing a buffer, we might need
more than one call to deflate with Z_FINISH since the uncompressed
data can take more space than the allocated buffer.
Fixes the IPY+Chiron test case.
svn path=/branches/mono-2-6/mono/; revision=148593
2009-12-16 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_type_get_object): If the type is VAR or MVAR check
if the owner class has not been finished before returning reflection_info.
Fixes#565127.
Backport of r148575.
svn path=/branches/mono-2-6/mono/; revision=148579
2009-12-16 Rodrigo Kumpera <[email protected]>
* mini-x86.h: Forgot to add a 0x to MONO_ARCH_MAX_FRAME_SIZE define
making max stack 10x smaller.
Backport of r148570.
svn path=/branches/mono-2-6/mono/; revision=148571
* reflection.c (mono_custom_attrs_from_param): Avoid a crash if a dynamic
param doesn't have custom attributes. Fixes#565117.
svn path=/branches/mono-2-6/mono/; revision=148561
* method-to-ir.c (mini_emit_memcpy): Assert if size is too big.
Backport of r148504.
2009-12-15 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=148513
2009-12-15 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
bigger than MONO_ARCH_MAX_FRAME_SIZE.
* mini-x86.c (mono_arch_emit_prolog): Handle huge frames.
* mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.
* mini-amd64.c / mini-amd64.h: Same fixes as of above.
* mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
the compilation.
Backport of r148502.
svn path=/branches/mono-2-6/mono/; revision=148509
* libtest.c (mono_test_marshal_bool_in): Use 'short' as the type of the
variant bool argument.
* marshalbool.cs: Pass -1 as the 'expected' argument instead of 0xffff, which
causes sign extensions issues on some platforms.
svn path=/branches/mono-2-6/mono/; revision=148485
* debugger-agent.c: The end_runtime_invoke guard isn't working
on AMD64 as __builtin_frame_address (1) returns NULL. Disable the
behaviour by default, and make it runtime configurable.
svn path=/branches/mono-2-6/mono/; revision=148421
009-12-14 Miguel de Icaza <[email protected]>
* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
raise an invalid program exception.
For other opcodes that we might not handle use a g_warning and
raise the exception. Beats termination.
Fixes#561724
2009-12-14 Miguel de Icaza <[email protected]>
* verify.c (mono_method_verify): The Unused opcodes produce an
InvalidProgramException on .NET
svn path=/branches/mono-2-6/mono/; revision=148418
* Mono.Cecil/BaseAssemblyResolver.cs: Update to .net fx 4 beta2
version number and reduce code duplication.
svn path=/branches/mono-2-6/mcs/; revision=148411
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
sigctx being passed in, as we have no CONTEXT available in the APC.
(mono_debugger_agent_cleanup): Use explicit cond wait implementation
for now.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=148352
* WebClient_2_1.cs: When creating the request we need to copy over
any headers the user set on us. We also need to wrap
InvalidOperationExceptions in WebExceptions.
svn path=/branches/mono-2-6/mcs/; revision=148181
2009-12-11 Chris Toshok <[email protected]>
* TypeMap.cs (CreateDefaultTypeMap): only include non-public
property info when dealing with KeyValuePair<,>. This is *not*
the way MS handles it, but we emulate things much better with this
hack.
in test/System.Runtime.Serialization.Json/:
2009-12-11 Chris Toshok <[email protected]>
* DataContractJsonSerializerTest.cs: add a test case for
non-public properties.
svn path=/branches/mono-2-6/mcs/; revision=148138
* driver.c: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
svn path=/branches/mono-2-6/mono/; revision=148125
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
svn path=/branches/mono-2-6/mono/; revision=148124
2009-12-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add mono_verifier_verify_string_signature to check
user string blobs.
* verify-internals.h: Add new function to the internal API.
* verify.c (do_ldstr): Call into mono_verifier_verify_string_signature to
check if it's a valid string.
* object.c (mono_ldstr): Ditto.
Fixes#561943.
Backport of r147941.
svn path=/branches/mono-2-6/mono/; revision=147949
* ThreadPool.cs (QueueUserWorkItem): properly throw
an ANE instead of triggering a NRE when being passed a null callback.
backports r147934.
svn path=/branches/mono-2-6/mcs/; revision=147938
* debugger-agent.c: Refactor the mono_runtime_invoke guarding against
stepping out into native code. There were issues with nested invokes
like .cctors.
svn path=/branches/mono-2-6/mono/; revision=147883
SchemaLoader support for Microsoft SQL Server, allowing sqlmetal to
generate entity stubs against SQL Server databases.
* System.Data.Linq.dll.sources: Add files to the build.
svn path=/branches/mono-2-6/mcs/; revision=147880
* driver.c: Fail gracefully with --compile-all if mono_method_signature
returns NULL (e.g. a bad assembly).
svn path=/branches/mono-2-6/mono/; revision=147854
A fix for bug #561149
anonymous.cs: Use actual type parameters when checking for generic
method host.
svn path=/branches/mono-2-6/mcs/; revision=147846
* JsonSerializationReader.cs (DeserializeGenericCollection): in
the 2.1 case we still need to convert the List<> to an array.
svn path=/branches/mono-2-6/mcs/; revision=147834
2009-12-07 Chris Toshok <[email protected]>
* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
encoding parameter instead of calling Detect. The jsonreader's
PushbackReader will autodetect.
(Detect): remove. a BufferedStream created from an unseekable
stream is itself unseekable, which makes it just as useless. This
breaks netflix's isostore file parsing.
* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
encoding, for the autodetecting reader case. for this ctor, pass
true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
svn path=/branches/mono-2-6/mcs/; revision=147830
* debugger-agent.c: Darwin can colesce signals, so we need to handle
the interrupt_count slightly differently. Native threads were never
marked as resumed.
svn path=/branches/mono-2-6/mono/; revision=147817
2009-12-06 Chris Toshok <[email protected]>
* KeyValuePair.cs: we need setters for Key and Value so they can
be set via reflection from
System.ServiceModel.System.Runtime.Serialization.Json.TypeMap.cs.
in class/System.ServiceModel.Web/System.Runtime.Serialization.Json/:
2009-12-06 Chris Toshok <[email protected]>
* JsonSerializationReader.cs (DeserializeGenericCollection): this
is jb's (iirc) patch, actually. Types subclassing from
ICollection<T> need to be supported, and since it's an interface
the implementation might be explicit. So instead of groveling
around in the actual type, we need to dispatch through the
interface's method.
* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
properties, since KeyValuePair items must be able to write to Key
and Value properties.
* JsonReader.cs (ReadContent): for builtin values (null, true,
false), use TryReadString instead of individual ReadChar's, since
they aren't reversible if the string didn't match. In the default
case, if we're LameSilverlightLiseralParser, we need to push back
the current character onto the stream -- this is because for
netflix's AppConfig.json we were parsing "frameRatePolicy" as
"rameRatePolicy" (the 'f' was triggering the "false" parsing).
(class PushBackReader): add this class to unify all the pushing
back of characters we need to do. 1 character (JsonReader's old
"saved_char") isn't enough given that you could have a property
named, e.g., "falsifiable", and we'd need 4 characters worth of
pushback to recognize that correctly.
svn path=/branches/mono-2-6/mcs/; revision=147767
* debugger-agent.c (buffer_add_value): Treat I/U as a valuetype, so the
client can distinguish between intptrs and longs.
svn path=/branches/mono-2-6/mono/; revision=147746
* System.Net.dll.sources: Remove (almost) everything. This
assembly in 3.5+ does not share anything with what SL2/3
provide (the later being a part of System.dll)
[Backport r147727]
svn path=/branches/mono-2-6/mcs/; revision=147743
Applied patch from Laurent Etiemble ([email protected]).
* mono/metadata/assembly.c: When opening an assembly image, pass the real
names in addition to the runtime generated one.
* mono/metadata/image.h: Add a function to take the real name of the assembly
image.
* mono/metadata/image.c: If a real name has been passed to load an assembly,
use it instead of the runtime generated one.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=147741
* marshal.c (emit_marshal_vtype): Do the klass == date_time_class checks
before the other checks to prevent problems if the DateTime class is blittable.
Hopefully fixes#559600.
svn path=/branches/mono-2-6/mono/; revision=147738
* debugger-agent.c: When doing a func-eval invoke on a suspended runtime,
we need to track the original suspend count so the thread properly
wakes up in resume_thread.
svn path=/branches/mono-2-6/mono/; revision=147734
* StructMirror.cs: Fix field indexer for structs with static fields.
* VirtualMachineManager.cs: Added an option to LaunchOptions which
allows providing a custom method for launching the process. This
allows launching mono in a wrapper process.
svn path=/branches/mono-2-6/mcs/; revision=147728
* CodeModule.cs: Silverlight does not allow AssemblyBuilderAccess.
RunAndSave so we reduce it to AssemblyBuilderAccess.Run
svn path=/branches/mono-2-6/mcs/; revision=147715
2009-12-04 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Remove HttpStatusCode_2_1.cs
[Backport r147704]
In System.Net:
2009-12-04 Sebastien Pouliot <[email protected]>
* HttpStatusCode_2_1.cs: Remove. SL3 provides all status code
since they are used for the client stack
* WebClient_2_1.cs: Add Credentials property and change
ResponseHeaders property to public
* WebRequest_2_1.cs: Add Credentials property
[Backport r147704]
svn path=/branches/mono-2-6/mcs/; revision=147705
* HttpWebRequest_2_1.cs: Add CookieCollection, need to be
implemented in the client stack
* HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
to move (a real) implementation into the client stack
* WebRequest_2_1.cs: Add Create(string) overload (SL3)
[Backport r147670]
svn path=/branches/mono-2-6/mcs/; revision=147671
* mini-trampolines.c (mono_create_static_rgctx_trampoline): Use a cache
keyed on the method+addr pair, since addr could be either the method addr or
an unbox trampoline in the AOT case. Fixes#560246.
svn path=/branches/mono-2-6/mono/; revision=147644
* mini.c (mini_method_compile): Call handle_exception_clauses () in the same
place it was called before too.
svn path=/branches/mono-2-6/mono/; revision=147625
* mini.c (mono_jit_runtime_invoke): Avoid the call to mono_class_setup_vtable ()
if no security manager is present, to speed up the AOT case. Call
mono_class_vtable () full with raise_on_error == TRUE instead.
svn path=/branches/mono-2-6/mono/; revision=147610
* mini.c (mini_method_compile): Call handle_exception_clauses earlier so
the local optimization passes can take its result into account. Fixes
#559876.
* exceptions.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=147606
This patch is contributed under the terms of the MIT/X11 license
* cpu-ppc64.md (load_memindex): Add loadi8_memindex.
svn path=/branches/mono-2-6/mono/; revision=147600
* VirtualMachineManager.cs: We might get a SocketException (interrupted)
here, so lets just handle all Exceptions to our Accept pattern the same
way
svn path=/branches/mono-2-6/mcs/; revision=147527
* debugger-agent.c: Rework the handling of stack traces of running threads to
avoid crashes if compute_frames () tries to walk the stack of running thread.
* mini.c (mono_print_method_from_ip): Use mini_jit_info_table_find.
* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): Set frame->lmf.
* mini.h (StackFrameInfo): Add an 'lmf' field.
svn path=/branches/mono-2-6/mono/; revision=147519
* CommunicationObjectAbortedException.cs, ServerTooBusyException.cs,
ServiceActivationException.cs: Fix base class
* ServiceKnownTypeAttribute.cs: Seal type and add missing
[AttributeUsage] attribute
[Backport r147513]
svn path=/branches/mono-2-6/mcs/; revision=147514
* Expression.cs: expression can be null for static getters. Patch from
Miguel de Icaza ([email protected]).
svn path=/branches/mono-2-6/mcs/; revision=147499
* verify.c (get_stack_type): Return that the type is invalid instead of
asserting.
* verify.c (mono_method_verify): Verify that all locals and arguments
have valid stack types.
Fixes#559913.
Backport of r147485.
2009-12-02 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147486
* class.c: remove asserts for invalid type token in
mono_class_name_from_token(), mono_assembly_name_from_token() and
mono_class_create_from_typedef () (fixes bug #553318).
svn path=/branches/mono-2-6/mono/; revision=147445
* verify.c (code_bounds_check): Do proper overflow checking.
* verify.c (mono_method_verify): The number of switch entries is
an unsigned int. Properly bounds check it.
Fixes#558594.
Backport of r147259.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147260
* metadata.c: Kill mono_metadata_get_param_attrs_checked. Add
mono_metadata_method_has_param_attrs which only checks if a given param
list has a non zero flags entry.
* metadata.c (mono_metadata_get_param_attrs): Add param_count parameter
to inform how many params should we expect to decode.
* loader.c (mono_method_signature): Use mono_metadata_method_has_param_attrs
as it's faster than mono_metadata_get_param_attrs.
* metadata-internals.h: Fix mono_metadata_get_param_attrs signature and
add mono_metadata_method_has_param_attrs.
Backport of r147244.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147252
* net_2_1_raw_System.dll.sources: Add existing files that are
part of Silverlight 3 (but were not in Silverlight 2)
svn path=/branches/mono-2-6/mcs/; revision=147238
* class.c (mono_class_setup_vtable_general): Check for mono_method_get_vtable_slot
failures.
* class.c (mono_method_get_vtable_slot): Don't assert if the computed method slot
is -1 but its class is broken.
Fixes#558522.
Backport of r147219.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147223
* metadata.c: Introduce mono_metadata_get_param_attrs_checked which checks
for parameter overflow.
* metadata.c (mono_metadata_parse_method_signature_full): Use checked version
of mono_metadata_get_param_attrs.
* metadata-internals.h: Add mono_metadata_get_param_attrs_checked to the internal
API.
* loader.c (mono_method_signature): Use checked version of mono_metadata_get_param_attrs.
Backport of r147218.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147222
* Uri.cs: Hide protected EscapeString and Unescape for SL2/3
* UriTypeConverter.cs: Seal type for SL2/3
[Backport r147156]
svn path=/branches/mono-2-6/mcs/; revision=147157
* mini-arm.c (mono_arch_lowering_pass): Fix an assert which is hit when
the instruction following an OP_FCOMPARE is optimized away.
svn path=/branches/mono-2-6/mono/; revision=147103
* Makefile: Remove the MOON_A11Y_INTERNAL_HACK define
for MoonAtkBridge after audit finished r147098.
svn path=/branches/mono-2-6/mcs/; revision=147102
* appdomain.c (create_exceptions): New helper function extracted from
mono_runtime_init () to precreate objects used during exception handling.
(mono_runtime_init): Call it.
(mono_domain_create_appdomain_internal): Ditto. Fixes#555264.
svn path=/branches/mono-2-6/mono/; revision=147058
* class.c (mono_class_setup_vtable_general): Cache the result of
get_virtual_methods () since it can be slow because of the metadata
optimization.
svn path=/branches/mono-2-6/mono/; revision=147039
* metadata-internals.h (_MonoImage): Change 'method_cache' to a GHashTable
from a MonoValueHashTable for now, since the later is based on an earlier
version of hpj's internal probing code and seems to have serious collision
issues.
* loader.c (mono_get_method_full): Update after the change above.
svn path=/branches/mono-2-6/mono/; revision=147038
* aot-compiler.c (emit_globals_table): Emit a hash table for the globals, to
avoid linear searches at runtime.
* aot-runtime.c (find_symbol): Update this to use the hash.
* mini.h: Bump AOT file format version.
svn path=/branches/mono-2-6/mono/; revision=147017
* Random.cs: Fix case where the diff between min and max
is very large in Next(int,int). Fix bug #558593
[Backport r146993]
svn path=/branches/mono-2-6/mcs/; revision=146994
* loader.c (field_from_memberref): Resolve the class first then the field
signature. Remove a lot of duplicated code and make sure we don't pass valid
values to mono_loader_set_error_field_load.
Fixes#553306.
Backport of r146937.
2009-11-25 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=146941
2009-11-25 Rodrigo Kumpera <[email protected]>
* class.c (inflate_generic_type): Change code to use new signature of
mono_error_set_bad_image.
Fixes#558124.
Backport of r146936.
In utils:
2009-11-25 Rodrigo Kumpera <[email protected]>
* mono-error-internals.h: Add mono_error_set_bad_image_name and change signature
of mono_error_set_bad_image to take a MonoImage instead of a const char *.
* mono-error.c: Same.
Backport of r146936.
svn path=/branches/mono-2-6/mono/; revision=146939
2009-11-25 Jb Evain <[email protected]>
* Queue.cs (Enqueue): deal with the case where the tail
is off the array when deciding to enlarge the capacity.
backport 146925.
in Test/System.Collections.Generic:
2009-11-25 Jb Evain <[email protected]>
* QueueTest.cs: add test for a specific combination of
calls that make the queue crash when enqueuing an item.
backport 146925.
svn path=/branches/mono-2-6/mcs/; revision=146926
* verify.c (mono_method_verify): Use the uninflated type name,
when the inflated is null, to report errors. Also take care when
freeing, not to free everything since, in case of an error, some
stuff would be copies (i.e. not allocated by the function itself)
Fix bug #558145
[Backport r146900]
svn path=/branches/mono-2-6/mono/; revision=146901
* debugger-agent.c (vm_commands): Implement EXIT by invoking Environment.Exit ()
on a random thread if possible.
svn path=/branches/mono-2-6/mono/; revision=146899
* verify.c (stack_push, stack_pop, stack_pop_safe): Assert if we underflow
or overflow. The caller must have done this check explicitly. This guard us
from accessing invalid memory.
* verify.c (do_push_static_field): Check for stack overflow.
Fixes#553333.
Backport of r146876.
2009-11-24 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=146881
2009-11-24 Rodrigo Kumpera <[email protected]>
* loader.c (find_method_in_class): Don't crash if the signature cannot
be resolved.
* metadata.c (mono_metadata_parse_generic_param): Return NULL instead
of asserting for the case of invalid params.
Fixes#553304.
Backport of r146875.
svn path=/branches/mono-2-6/mono/; revision=146880
* mini-darwin.c: Work around apple bug rdar://7209349 See
http://openradar.appspot.com/7209349 for details. Synopsis,
CoreFoundation SIGTRAP's if you dlopen it off the main thread if its
never been initialized before.
svn path=/branches/mono-2-6/mono/; revision=146872
* tramp-arm.c: Use blx instead of mov pc, reg to improve support for thumb.
* mini-arm.c (mono_arm_thumb_supported): New helper function.
svn path=/branches/mono-2-6/mono/; revision=146864
Backport of 144280.
* cominterop.c : Search the interface parts of vtable to find
method matches. Fixes 547030.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=146860
* image.c (mono_image_load_module): Fix crash when a bad assembly
has no module at all (fix bug #553412) and also replace the
g_assert with a return NULL (documented return value for failure)
[Backport r146839]
svn path=/branches/mono-2-6/mono/; revision=146840
* Array.cs: use ContainsGenericParameters instead of
IsGenericTypeDefinition as it catches more cases.
backport r146834.
svn path=/branches/mono-2-6/mcs/; revision=146835
2009-11-24 Jb Evain <[email protected]>
* Array.cs (IList.this[int]): prevent the use of the IList indexer
when dealing with a multi dimensional array.
backport r146831.
in Test/System:
2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: test that we don't allow the use of the IList indexer
on a multi dimensional array.
backport r146831.
svn path=/branches/mono-2-6/mcs/; revision=146832
2009-11-24 Jb Evain <[email protected]>
* Array.cs (Clear): throw an IndexOutOfRangeException instead
of an ArgumentOutRangeException for a negative length.
backport of r146825.
in Test/System:
2009-11-24 Jb Evain <[email protected]>
* ArrayTest: test for the proper exception on Clear ().
backport of r146825.
svn path=/branches/mono-2-6/mcs/; revision=146827
* ArrayTest.cs: add test ensuring we do not allow open
generic types in CreateInstance.
backport of r146823.
svn path=/branches/mono-2-6/mcs/; revision=146824
* ObjectMirror.cs TypeMirror.cs StructMirror.cs: Make the BeginInvokeMethod
which takes a 'vm' argument obsolete, it was added by mistake, add a version
without that argument instead.
svn path=/branches/mono-2-6/mcs/; revision=146810
* debugger-agent.c (resume_vm): Signal the suspend_cond even if suspend_count
> 0 since some threads can resume if their resume_count is > 0.
(invoke_method): Avoid reading freed memory.
svn path=/branches/mono-2-6/mono/; revision=146808
* debugger-agent.c (process_suspend): Extract the suspend code from
process_single_step_inner () to a separate function. Rework the code to prevent
races between this function and thread interrupts.
svn path=/branches/mono-2-6/mono/; revision=146807
* debugger-agent.c (suspend_current): Check the resume_count field instead
of resume_one so suspends+resumes during single threaded invokes work
correctly.
svn path=/branches/mono-2-6/mono/; revision=146778
* tramp-ppc.c (mono_arch_create_generic_class_init_trampoline_full): These
receive their argument in MONO_ARCH_VTABLE_REG, not in the first argument reg.
svn path=/branches/mono-2-6/mono/; revision=146604
* debugger-agent.c (create_event_list): Fix a crash if an empty assembly list
was used as an assembly filter.
svn path=/branches/mono-2-6/mono/; revision=146598
* class.c (can_access_internals): Allow CoreCLR to participate in
allowing (or not) [InternalsVisibleTo] between assemblies.
* security-core-clr.c|h: Make sure that only trusted code (a
superset of platform code) can access the internals of platform
code.
[Backport r146452]
svn path=/branches/mono-2-6/mono/; revision=146453
* debugger-agent.c (mono_debugger_agent_handle_exception): Pass a MonoJitInfo to
create_event_list () so assembly filters can be used.
svn path=/branches/mono-2-6/mono/; revision=146391
* aot-compiler.c (add_generic_instances): Emit instances of common generic
classes for char/bool too.
svn path=/branches/mono-2-6/mono/; revision=146323
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Signature fix.
This commit is licensed under the MIT X11 license.
svn path=/branches/mono-2-6/mono/; revision=146294
* DefaultWatcher.cs: patch by James P. Mitchel III.
The change corrects an instance of unsynchronized access to shared
state and is probably the intent of the original code.
svn path=/branches/mono-2-6/mcs/; revision=146291
* security-core-clr.c (get_caller_no_reflection_related):
[Mono]Type.InvokeMember is outside System.Reflection[.Emit] but
it's still reflection and must be filtered correctly.
svn path=/branches/mono-2-6/mono/; revision=146257
(mono_debugger_agent_thread_interrupt): Save the context so stacktraces for
threads in native code work.
svn path=/branches/mono-2-6/mono/; revision=146206
* debugger-agent.c: Pass the 'flags' argument to VM_INVOKE_METHOD earlier in
the parameter list, so it can be acted upon by vm_commands (). Bump protocol
version.
svn path=/branches/mono-2-6/mono/; revision=146202
* XmlNamespaceManager.cs: XmlReader.Read calls LookupNamespace via
the internal sig, which skips any overrides that might exist on
subclasses, so redirect all calls to the public call to make sure
all overrides are called as well.
Make AddNamespace, HasNamespace and RemoveNamespace private.
svn path=/branches/mono-2-6/mcs/; revision=146175
* debugger-agent.c: Implementation for Windows platform.
* mini-x86.c: Add support for Windows. Use mono-* synchronization
primitives. Use SEH to implement breakpoints and single stepping.
* mini-x86.h: Enable soft debugger on Windows.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=146169
* debugger-agent.c: Add support for passing flags to invokes. Add a
DISABLE_BREAKPOINTS flag. Bump protocol version.
svn path=/branches/mono-2-6/mono/; revision=146106
* debugger-agent.c (mono_debugger_agent_single_step_event): Avoid a crash if
this is called on the debugger thread.
svn path=/branches/mono-2-6/mono/; revision=146091
* mono-path.c: When resolving symlinks in a path, we need to
split on the directory separator and check each level, as
readlink only checks the final destination.
svn path=/branches/mono-2-6/mono/; revision=146067
* processes.c: match_procname_to_modulename should resolve
symlinks when checking if two process modules match.
svn path=/branches/mono-2-6/mono/; revision=146066
2009-11-09 Carlos Alberto Cortez <[email protected]>
* DataGridTextBoxColumn.cs:
* DataGrid.cs: Position the cursor in the add row should *not* show
yet another new row - that will happen till we get any real input data
from the user. When that happens, we will also mark the new row as
ready to commit - otherwise, when the cursor moves to a different row,
the just added row will be discarded. This is exactly what .Net seems
to do.
2009-11-09 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: The large value for our vertical scrollbar should
depend on the number of visible rows, instead of trying to re-use the
value of VisibleRowCount, which is the value of *current* visible
rows, and can easily end messed up if new rows are added/removed.
2009-11-09 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When moving the scroll, *dont* ever end the current
edit - this could seriously mess up our current edit cycle, specially
when adding new rows.
2009-11-02 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: In OnKeyDown call the base implementation first -
this way we let the user tell us whether we should handle the key or
not.
Fixes#543717.
2009-11-02 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: Implement removal of rows the Correct Way by creating a
copy of the indexes, as any direct write access to the source will cause to
reset the entire selection - also, do the linear de-selection in
reverse order to avoid any index mismatch in the source, due to out of
synchronization removing the rows.
2009-11-02 Carlos Alberto Cortez <[email protected]>
* DataGridTextBoxColumn.cs:
* DataGrid.cs: Don't use this add-pending behaviour to try to add a
new row until we have the first input char - it was helping us to fix
other issues we have/had, but it's not matching .net.
2009-10-30 Carlos Alberto Cortez <[email protected]>
* TextBoxBase.cs: When returning the preferred height, and we are
supposed to be borderless, return the TopMargin value - usually in
borderless mode it has a value of 0, but in the ToolStrip controls we
need to set the margin manually.
Fixes#551214.
2009-10-29 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: ShowAlways works at the form level, not at the control
level. Fixes#544565.
2009-10-28 Carlos Alberto Cortez <[email protected]>
* ButtonBase.cs: Usually the click routines are handled in Control,
but in this class we are handling it ourselved, thus we need to have
the same calls, and we were missing the call to MouseClick.
Patch by Eric Petit <[email protected]>.
2009-10-26 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When setting Text and data source is being used, if the
passed value is not matching any of the items in the source, don't
pass it to GetItemText, since it's useless, as GetItemText expects a
valid item.
Fixes#546009.
2009-11-12 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=146046
[backport the improvements and speedups for ListView from trunk,
-r 142738:144115]
2009-10-14 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When retrieving the top item, take into account the
offset represented by the header control, to retrieve the proper
value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
Fixes the remaining bits of #543773.
2009-10-14 Carlos Alberto Cortez <[email protected]>
* ListView.cs: TopItem setter should set the value as the top, not
only ensuring its visibility.
Fixes part of #543773.
2009-10-12 Carlos Alberto Cortez <[email protected]>
* ListView.cs: For virtual mode, when navigating the items using keyboard,
don't use the matrix of positions, and instead calculate the positions
based on the number of cols and rows, taking advantage of the fixed
positions of items. Use the same idea to implement FirstVisibleIndex,
so we avoid iterating over all the items. Patch by Stephen Robinson
mono at esar.org.uk.
Fixes part of #467418.
2009-10-07 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When computing the value for groups height don't use
text_size field, since in LargeIcon view it sometimes contains a
double height value - use Font.Height directly, and also improve the
padding value.
* ThemeWin32Classic: The same as above.
This way the space between the group header, the line, and the items
area is not that big in LargeIcon view.
2009-10-04 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When retrieving the fixed positions for the items in
virtual mode, use the row value to compute the coords of the item,
instead of the col value, as opposed to SmallIcon/LargeIcon views.
2009-09-29 Carlos Alberto Cortez <[email protected]>
* ListView.cs: The location of the items should be computed on the fly
in virtual mode - that decreased speed overall, but reduces the load
time.that decreased speed overall, but reduces the load time. Also,
handle the cases where we were using data structures we don't need to
use/create for this mode.
Fixes part of #467418.
2009-09-28 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Tile view and VirtualMode can't be applied together.
Patch by Stephen Robinson <[email protected]>.
2009-09-28 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When calculating the layout for Details view, don't ask
for the items *at all* in case we are in virtual mode. This should
re-enable the proper behaviour of virtual mode.
svn path=/branches/mono-2-6/mcs/; revision=146038
* VirtualMachineManager.cs: Refactor the APIs to have async methods.
Remove a bunch of Listen overloads that are pointless. Refactor
Launch to take a ProcessStartInfo instead of string arguments.
svn path=/branches/mono-2-6/mcs/; revision=145991
* Console.cs: Reduce duplication between OpenStandard[Input|
Output|Error] and, for Moonlight, don't return a NullStream if
security is disabled (e.g. when smcs executes)
r: alan
svn path=/branches/mono-2-6/mcs/; revision=145957
2009-11-10 Rodrigo Kumpera <[email protected]>
* object-internals.h: Change signature for mono_string_to_utf8_image.
* object.c (mono_string_to_utf8_image): Change signature to take a MonoError
argument.
* reflection.c: Take care of mono_string_to_utf8_image change and avoid raising
exceptions due to mono_string_to_utf8.
Backport of r145797.
svn path=/branches/mono-2-6/mono/; revision=145855
* object-internals.h: Change signature for mono_string_to_utf8_mp.
* object.c (mono_remote_class): Make sure all resources are released before
raising an exception.
* object.c (mono_print_unhandled_exception): Avoid raising an exception.
Backport of r145796.
2009-11-09 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=145854
* appdomain.c: Use checked version of mono_string_to_utf8 to avoid raising an
exception in the middle of the runtime code.
Backport of r145657.
2009-11-10 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=145837
* Socket_2_1.cs: throw when shutting down a socket that is not
connected. Don't linger if the socket is not connected.
svn path=/branches/mono-2-6/mcs/; revision=145808
* VirtualMachineManager.cs (Launch): Close the listening socket instead of
shutting it down since Shutdown throws on exception on non-connected sockets
in ms.net.
svn path=/branches/mono-2-6/mcs/; revision=145804
* debugger-agent.c (resume_from_signal_handler): New helper function extracted
from the single step/breakpoint handlers. Add a FIXME.
svn path=/branches/mono-2-6/mono/; revision=145791
* arm/arm-codegen.h: Fix the names of the LDMIA/STMIA macros, they don't actually
update the base register.
svn path=/branches/mono-2-6/mono/; revision=145788
* Console.cs (OpenStandardError,OpenStandardOut,OpenStandardInput):
for NET_2_1 && !MONOTOUCH, disable these streams unless a debugger
is attached, or unless the MOONLIGHT_ENABLE_CONSOLE environment
variable is defined.
reviewed: alan
svn path=/branches/mono-2-6/mcs/; revision=145773
* System.Data.Linq.dll.sources: Use src/DbLinq.MySql/MySqlDataContext.cs;
fixes the build for case-insensitive filesystems.
svn path=/branches/mono-2-6/mcs/; revision=145749
* driver.c (mono_jit_parse_options): New public API function to parse options
as done by the runtime executable.
svn path=/branches/mono-2-6/mono/; revision=145654
* debugger-agent.c (buffer_add_cattrs): Fix reading an uninitialized variable
when handling named arguments.
svn path=/branches/mono-2-6/mono/; revision=145652
*: Move .cs files to the System.Data.Services subdir to match their namespace,
move tests to 'Test' from 'Tests', add Makefile.
svn path=/branches/mono-2-6/mcs/; revision=145633
because they weren't compiling, which was because System.Data.Linq
wasn't listing sqlmetal_net_2_0 as a friend assembly. (Why this
built before I couldn't tell you...) Fixed in latest S.D.L.
svn path=/branches/mono-2-6/mcs/; revision=145617
generate constructors referring to IVendor), enhances query support
so that extension methods can be used within 'select' blocks,
various FirebirdSQL fixes, etc.
svn path=/branches/mono-2-6/mcs/; revision=145616
A fix for bug #553031
* linq.cs, expression.cs, class.cs, cs-parser.jay: Initialize
expression tree version of anonymous type with members declaration.
svn path=/branches/mono-2-6/mcs/; revision=145585
* mini-arm.c (handle_thunk): Add a domain argument to control the domain
where the thunk memory should be allocated from. Fixes appdomain unloading
on arm.
svn path=/branches/mono-2-6/mono/; revision=145570
* mini-arm.c exceptions-arm.c: Make ctx->regs map directly to the 16 hardware
registers, instead of r4..r11,ip,lr. Make restore_context () restore r0..r3 too.
svn path=/branches/mono-2-6/mono/; revision=145564
* HttpsTransportBindingElement.cs: Implement basic https transport
binding support for Moonlight and MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=145558
* mini-amd64.c (mono_arch_output_basic_block): Don't allow OP_SEQ_POINT in
AOT, as it is not implemented yet.
* mini-x86.c (mono_arch_output_basic_block): Ditto.
svn path=/branches/mono-2-6/mono/; revision=145552
* debugger-agent.c: Add an 'onthrow' option to start the debugger agent
when an exception of a given type is thrown.
svn path=/branches/mono-2-6/mono/; revision=145550
* debugger-agent.c: Add a 'onuncaught' option to start the debugger agent
only on an uncaught exception.
* mini-exceptions.c: Notify the debugger agent on an uncaught exception.
svn path=/branches/mono-2-6/mono/; revision=145549
* debugger-agent.c: Changes to build on windows. Use mono-mutex instead
of pthreads directly.
* mini.c (mono_sigfpe_signal_handler): Changed signature of Windows
exception handlers. Pass info argument.
* mini.h: Adjust signatures of soft debugger functions to pass void*
instead of siginfo_t. Adjust SIG_HANDLER_SIGNATURE on Windows.
* mini-amd64.c (mono_arch_is_single_step_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
(mono_arch_is_breakpoint_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
* mini-amd64.h: Adjust MonoW32ExceptionHandler signature.
* mini-x86.c (mono_arch_is_single_step_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
(mono_arch_is_breakpoint_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
* mini-x86.h: Adjust MonoW32ExceptionHandler signature.
* exceptions-x86.c: Adjust W32_SEH_HANDLE_EX for new signature.
* exceptions-amd64.c: Adjust W32_SEH_HANDLE_EX for new signature.
* mono-semaphore.h: Skeleton implementation for Windows.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=145543
* class.c: When CoreCLR is enabled don't call mono_init_com_types
if MONO_CLASS_IS_IMPORT return true unless the type reside in
platform (trusted) code. Instead we return a TypeLoadException to
be thrown later. This is the exception thrown by Silverlight 2 if
a type, inside application (user) code is marked with [ComImport]
[Backport r145534]
svn path=/branches/mono-2-6/mono/; revision=145535
* class.c: Add missing check for load errors after every
call to mono_class_setup_fields
Fixes#552282.
Backport of r145501.
2009-11-05 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=145516
* net_2_1_raw_System.Net.dll.sources: Add Consts.cs, Locale.cs and
MonoTODOAttribute.cs to the build to fix ambiguous references to
those types in corlib and System.dll. This way we'll use our own
types.
svn path=/branches/mono-2-6/mcs/; revision=145487
2009-11-05 Rodrigo Kumpera <[email protected]>
* metadata.c: Change event table schema to use TDOR for event type
as this is what it's meant to be.
* metadata.c (mono_metadata_compute_size): Change MONO_TABLE_ASSEMBLYPROCESSOR
to MONO_TABLE_ASSEMBLYREFPROCESSOR, which is table that has a MONO_MT_TABLE_IDX
entry.
* metadata.c (mono_metadata_compute_size): Trim MT_TABLE_IDX of code that no
longer makes sense: remove MONO_TABLE_EVENT and remove checks for non-existent
rows in MONO_TABLE_GENERICPARAM.
Fixes#552289.
Backport of r145478.
svn path=/branches/mono-2-6/mono/; revision=145480
* CultureInfo.cs: Allow neutral cultures, and fix zh-Hans/zh-Hant
- they're stored internally as zh-chs/zh-cht, and only visible as
zh-Hans/zh-Hant. zh-CHS/zh-CHS are invalid cultures in SL.
svn path=/branches/mono-2-6/mcs/; revision=145465
* VirtualMachineManager.cs (Connect): New method to connect to a runtime
listening at the provided address.
svn path=/branches/mono-2-6/mcs/; revision=145454
2009-11-04 Rodrigo Kumpera <[email protected]>
* class-internals.h: Change signature of mono_class_inflate_generic_type_with_mempool to take
a MonoError parameter.
* class-internals.h: Add new mono_class_inflate_generic_type_checked version that can does proper error handling.
* class.c (inflate_generic_type): Add a MonoError parameter. Don't assert on error, use new mono error machinery.
* class.c (mono_class_inflate_generic_type_with_mempool): Add new MonoError parameter.
* class.c, generics-sharing.c: Changes to handle mono_class_inflate_generic_type_with_mempool new signature.
Backport of r144688 and r144755.
svn path=/branches/mono-2-6/mono/; revision=145424
* string-icalls.c|h: Remove string internal calls that are not
used anymore by the class libraries.
* icall.c: Remove System_Reflection_FieldInfo_internal_from_handle
which is not used in the class librairies.
* icall-def.h: Update tables.
[Backport r145416]
svn path=/branches/mono-2-6/mono/; revision=145417
2009-11-04 Rodrigo Kumpera <[email protected]>
* reflection.c (fieldref_encode_signature): If field_image is NULL then
the token is already properly encoded. Fixs 4.0 build.
Backport of r145396.
svn path=/branches/mono-2-6/mono/; revision=145412
* locales.c (construct_number_format): Check if the number index is
valid before trying to use it, if not, just return.
svn path=/branches/mono-2-6/mono/; revision=145388
* aot-compiler.c (mono_save_xdebug_info): Bump the threshold for flushing
debug info to 100 because 10 still slows down gdb too much.
svn path=/branches/mono-2-6/mono/; revision=145368
* reflection.c (fieldref_encode_signature): Add new field_image parameter
to indicate which assembly to use when resolving a custom-mod.
Fixes handling of volatile fields used across assemblies as reported in #551513.
Backport of r145337.
svn path=/branches/mono-2-6/mono/; revision=145362
2009-11-03 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (load_simd_vreg): Add extra argument to signal if
the value was loaded from memory.
* simd-intrinsics.c (simd_intrinsic_emit_setter): Store back to memory if
the value was loader from there.
* simd-intrinsics.c (simd_intrinsic_emit_shuffle): Fail correctly for Shuffle
without constant swizzle.
Backport of r145283.
svn path=/branches/mono-2-6/mono/; revision=145338
* SocketAsyncEventArgs.cs: Set error back to SocketError.Success
once CheckEndPoint succeed.
[Fix bug #549586]
[Backport r145329]
svn path=/branches/mono-2-6/mcs/; revision=145330
* Mono.Tuner/CheckVisibility.cs: detect a throw_on_visibility_error
linker parameter to decide whether or not throw when an error
have been encountered.
svn path=/branches/mono-2-6/mcs/; revision=145303
* aot-runtime.c (mono_aot_get_method): Refactor some code into a new helper
function mono_aot_get_array_helper_from_wrapper ().
* aot-compiler.c (add_generic_class): Refactor the code a bit, really emit
array helper methods.
svn path=/branches/mono-2-6/mono/; revision=145299
* AssemblyInfo.cs: Open up the internals to System.Net.dll (which
needs Uri.IsDefaultPort) for NET_2_1 and remove it for
System.ComponentModel.DataAnnotations (again for NET_2_1)
[Backport r145294]
svn path=/branches/mono-2-6/mcs/; revision=145295
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Return false if
the agent is not enabled.
svn path=/branches/mono-2-6/mono/; revision=145258
* exceptions-x86.c: hopefully last change to fix the windows build.
This one courtesy of Jonathan Chambers.
svn path=/branches/mono-2-6/mono/; revision=145254
* debugger-agent.c: add #ifdefs for a few header files.
* mini-x86.h: disable the soft debugger in windows.
Step 1 of 2 to make this compile on windows with gcc.
svn path=/branches/mono-2-6/mono/; revision=145252
Merge the soft debugger branch.
* debugger-agent.h debugger-agent.c: New files containing the soft
mode debugger module.
* method-to-ir.c (mono_method_to_ir): Generate OP_SEQ_POINT opcodes
at the appropriate locations.
* mini-<ARCH>.c (mono_arch_output_basic_block): Handle OP_SEQ_POINT
opcode.
* mini-<ARCH>.c: Add new arch-specific functions to set/clear breakpoints,
enable/disable single stepping.
* exceptions-<ARCH>.c (mono_arch_find_jit_info_ext): New stack unwinding api
which returns all information in a StackFrameInfo structure, and can handle the
LMF frames added by the debugger.
* mini-<ARCH>.h (MonoLMFExt): New structure containing additional information
about an LMF frame.
* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): New stack
walker function which works on a specific thread and passes a StackFrameInfo
structure to its callback.
* mini.c (mini_init): Initialize the debugger agent.
* aot-compiler.c aot-runtime.c: Add soft-debug support.
* mini-ops.h: Add OP_SEQ_POINT opcode.
* driver.c (mono_main): Add new '--debugger-agent' option for passing
arguments to the debugger agent.
svn path=/branches/mono-2-6/mono/; revision=145249
* EventRequest.cs (AssemblyFilter): New property to filter
events based on a list of assemblies.
* Connection.cs: Add assembly filters to the protocol implementation.
svn path=/branches/mono-2-6/mcs/; revision=145245
* Makefile: Add Mono.Debugger.Soft.
In Mono.Debugger.Soft:
2009-11-02 Zoltan Varga <[email protected]>
* New directory containing the managed interface to the soft-mode debugger.
svn path=/branches/mono-2-6/mcs/; revision=145237
* debug-mono-symfile.c (check_line): Fix the handling of IL offset 0.
* threads.c (mono_thread_attach): Call the profiler thread start callback.
* object-internals.h (_MonoThreadInternal): Add a 'flags' field.
* threads.c (build_wait_tids): Ignore threads which have the DONT_MANAGE
flag set.
* profiler.c: Add new profiler callbacks for runtime invoke.
* object.c (mono_runtime_invoke): Call the runtime invoke callbacks.
svn path=/branches/mono-2-6/mono/; revision=145233
* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
to true until after the null check and the return statement.
svn path=/branches/mono-2-6/mcs/; revision=145215
Merge the MonoTouch Linker branch.
* monolinker.exe.sources: update
* Mono.Linker/Annotations.cs:
- add an preserved methods annotation on a type.
- add an annotation to get the base methods of a method.
- add an annotation to get the overriden method of a method.
* Mono.Linker/AssemblyAction.cs:
add a Delete action to remove an assembly from the output set.
* Mono.Linker.Steps/TypeMapStep.cs:
new step that create a map of virtual methods implementation.
* Mono.Linker.Steps/MarkStep.cs:
- removal of virtual methods.
- fix for custom attributes assigning properties and field
defined in a base type.
- mark scopes.
- mark default constructors of types used as a generic instance
of a generic parameter constrained with new().
- apply preserved methods.
* Mono.Linker.Steps/SweepStep.cs: remove unused assemblies.
* Mono.Linker.Steps/LoadI18nAssemblies.cs:
fix linking of i18n assemblies.
* Mono.Linker.Steps/OutputStep.cs:
fix the copied assemblies when the output directory
is the same as the origin of the assemblies.
* Mono.Linker.Steps/ResolveFromXmlStep.cs
* Mono.Linker.Steps/ResolveFromAssemblyStep.cs
* Mono.Linker.Steps/BaseStep.cs
* Mono.Linker/Driver.cs
* Mono.Linker/Pipeline.cs:
Cosmetics.
svn path=/branches/mono-2-6/mcs/; revision=145209
* mini.c (mini_method_compile): Disable llvm for methods with an lmf here to
speed things up.
* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOCALLOC.
svn path=/branches/mono-2-6/mono/; revision=145197
* mini.c (mini_init): Avoid using the IMT trampoline in the LLVM case.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add a static rgctx trampoline
if needed.
(mono_create_llvm_imt_trampoline): New function to create a trampoline which
sets the IMT argument and makes a virtual call.
* mini-llvm.c: Enable interface calls using the llvm imt trampoline.
svn path=/branches/mono-2-6/mono/; revision=145192
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
since it now works on windows too.
svn path=/branches/mono-2-6/mono/; revision=145173
* ResourceManager.cs (GetResourceFilePath): Don't use
'resourceDir' which should always be null for Moonlight
[Backport r145165]
svn path=/branches/mono-2-6/mcs/; revision=145166
* threads.c: refactor the code that initializes the
thread_start_args into a reusable function and use this in the two
methods that start up threads.
svn path=/branches/mono-2-6/mono/; revision=145155
* mono-perfcounters.c: add the "_Total" instance for CPU counters.
Until now, we only had the per-cpu(core) counters.
2009-10-30 Gonzalo Paniagua Javier <[email protected]>
* mono-proclib.c: hz is only multiplied by the number of cpus when
requesting "_Total".
Fixes bug #523520.
svn path=/branches/mono-2-6/mono/; revision=145135
* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test
cases for two DefineGenericParameters
[Backport r145118]
svn path=/branches/mono-2-6/mcs/; revision=145120
* MonoMethod.cs: Remove CAS check in MonoCMethod.Invoke (just
like it was done for MonoMethod.Invoke sister method)
[Backport r145101]
svn path=/branches/mono-2-6/mcs/; revision=145102
* TypeMap.cs (Deserialize): use
FormatterServices.GetUninitializedObject instead of
Activator.CreateInstance, since we shouldn't be invoking the
default ctor.
svn path=/branches/mono-2-6/mcs/; revision=145077
* ModuleBuilderTest.cs: Add test cases for GetType overloads
* TypeBuilderTest.cs: Remove NotWorking from two
DefineGenericParameters test case.
[Backport r145013]
svn path=/branches/mono-2-6/mcs/; revision=145015
* method-to-ir.c (mono_method_to_ir): Use EMIT_NEW_LOAD_MEMBASE_TYPE to
load vtypes instead if OP_LOADV_MEMBASE in the implementation of
CONSTRAINED. Fixes#550964.
* generics.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=145007
* MarshalByRefObject.cs: In InitializeLifetimeService, if a lease
exists for the object return it, instead of always creating
a new one. Fixes bug #544357.
svn path=/branches/mono-2-6/mcs/; revision=144963
* FileStream.cs: Move code to deal with 'anonymous' filenames
into two methods (returning the path, fullpath or only the
filename). Default Moonlight to anonymous (not only for isolated
storage) unless the coreclr is disable (e.g. smcs)
[Backport r144945]
svn path=/branches/mono-2-6/mcs/; revision=144946
* UnicodeEncodingTest.cs: Add test cases with an odd number of
bytes being used in GetString (it does not crash but it does not
work like MS FX either).
[Backport r144921]
svn path=/branches/mono-2-6/mcs/; revision=144924
* String.cs: Remove unused (and unneeded) internal call defs.
Reduce duplication (and fix test) for Concat (object,object).
Avoid allocating zero-length strings in the cases where the
FX does not do so.
[Backport r144921]
svn path=/branches/mono-2-6/mcs/; revision=144923
** Fixes #385028/#385029
* DbCommandBuilder.cs (CreateInsertCommand): Workaround for inserting
DEFAULT values to non-null-columns.
(GetInsertCommand): New overload added to handle above workaround.
(set_DataAdapter): Register for the RowUpdatingEventHandler.
svn path=/branches/mono-2-6/mcs/; revision=144917
2009-10-25 Zoltan Varga <[email protected]>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
In mono/mini:
2009-10-25 Zoltan Varga <[email protected]>
* mini-posix.c (add_signal_handler): Delay the GC suspend signal while
executing a SIGSEGV handler on an altstack, since libgc can't handle that.
In mono/tests:
2009-10-25 Zoltan Varga <[email protected]>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
svn path=/branches/mono-2-6/mono/; revision=144871
* Assembly.cs: Share code between GetSatelliteAssembly and
GetSatelliteAssemblyNoThrow. For Moonlight ensure both
GetManifestResourceStream and GetSatelliteAssembly don't load
anything "below" the assembly path.
[Backport r144845]
svn path=/branches/mono-2-6/mcs/; revision=144846
* InterlockedTest.cs: Add test case for generic methods
CompareExchange and Exchange
[Backport r144840]
svn path=/branches/mono-2-6/mcs/; revision=144842
marshal.c: BeginInvoke cannot be called on multicast delegates with
multiple targets. Fixes bug #574426.
Backported from trunk.
svn path=/branches/mono-2-6/mono/; revision=144812
* zlib-helper.c: stop trying to decompress when we get Z_STREAM_END.
Patch by Ives Bastide. Fixes bug #549942.
svn path=/branches/mono-2-6/mono/; revision=144800
* StackFrame.cs: Relax GetSecureFileName when the coreclr is not
active (i.e. show full path when compiling with smcs)
[Backport r144797]
svn path=/branches/mono-2-6/mcs/; revision=144798
* AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run
is supported (browser-side) but we still allow other values when
compiling (e.g. smcs) outside the browser (wo coreclr)
* TypeBuilder.cs (GetConstructor): Fix validations
[Backport r144791]
svn path=/branches/mono-2-6/mcs/; revision=144792
* mini-exceptions.c (mini_jit_info_table_find): Add an 'out_domain' argument
which will contain the domain where the method was found.
* exceptions-<ARCH>.c mini-exceptions.c: Update callers of
mini_jit_info_table_find ().
svn path=/branches/mono-2-6/mono/; revision=144789
* threadpool.[ch]: added hooks for thread start/finish and item
processing begin/end. For monotouch use only.
svn path=/branches/mono-2-6/mono/; revision=144783
* reflection.c (resolve_object): Set handle_class for strings too.
(mono_reflection_create_custom_attr_data_args): New helper function to decode
a cattr blob into a set of arrays and structures without creating the custom
attributes themselves.
(create_custom_attr_data): Simplify using create_custom_attr_data_args.
* mono-debug.c (mono_debug_il_offset_from_address): New helper function.
* debug-mono-symfile.c (mono_debug_symfile_get_line_numbers): New helper
function.
svn path=/branches/mono-2-6/mono/; revision=144778
* SecurityManager_2_1.cs: Return to duty for SecurityEnabled, it
will allow us to distinguish between running in the browser
(coreclr active) and on the console (e.g. smcs) from managed code
[Backport r144732]
svn path=/branches/mono-2-6/mcs/; revision=144733
* Configuration.cs: make this work again with bundled configuration
files. Fixes bug #495957. Patch from Tor Lillqvist.
svn path=/branches/mono-2-6/mcs/; revision=144723
* mini-x86.c (mono_arch_emit_prolog): Disable aot for methods with save_lmf
set, its not supported yet.
svn path=/branches/mono-2-6/mono/; revision=144676
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
iface wrapper is not found.
(mono_aot_get_method): Ditto for GetGenericValueImpl.
svn path=/branches/mono-2-6/mono/; revision=144673
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
iface wrapper is not found.
svn path=/branches/mono-2-6/mono/; revision=144666
* CodeNamespaceImportCollection.cs: Properly update the internal
keys hashtable when there are changes in the items.
svn path=/branches/mono-2-6/mcs/; revision=144651
* MonitorTest.cs: Mark existing tests as "NotWorking" since they
fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
to validate the TryEnter and Wait overloaded methods.
[Backport r144627]
svn path=/branches/mono-2-6/mcs/; revision=144629
* aot-runtime.c (mono_aot_get_method): Fix support for the IList<T> wrappers,
which have a different name.
svn path=/branches/mono-2-6/mono/; revision=144570
* aot-runtime.c (mono_aot_get_method): Special case the array generic iface
wrappers and Array.GetGenericValueImpl ().
* aot-compiler.c: Avoid emitting some wrappers which are not needed anymore
because of the change above.
* generics.cs: Add a test for full aot + generic array ifaces.
svn path=/branches/mono-2-6/mono/; revision=144566
* SerializationMap.cs, KnownTypeCollection.cs: avoid using LINQ
on arrays as MonoTouch has issues with them.
svn path=/branches/mono-2-6/mcs/; revision=144550
* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
methods overloads (at least the one present in Silverlight 2)
[Backport r144529]
svn path=/branches/mono-2-6/mcs/; revision=144531
* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
in Wait[One|Any|All]. Also call the overloaded (bool) methods for
WaitAll to reduce code duplication.
[Backport r144529]
svn path=/branches/mono-2-6/mcs/; revision=144530
* class.c (mono_class_create_from_typedef): Initialize class->element_class
before the interfaces to avoid crashes later if class initialization fails.
Fixes#548417.
svn path=/branches/mono-2-6/mono/; revision=144484
* ApplicationHost.cs: set the shadow copy options calling the methods
in AppDomain, instead of setting them in a copy of the setup
information.
svn path=/branches/mono-2-6/mcs/; revision=144479
* Timer.cs: Always call Init from every constructors to avoid
duplicate checks. Fix validations on different dueTime and period
(ctor and Change methods). Seal private TimerComparer class and
avoid multiple (identical) casts in its Compare method. Seal
private Scheduler class.
[Backport r144466]
svn path=/branches/mono-2-6/mcs/; revision=144467
* ServerContext.cs:
* SslServerStream.cs: add new parameter that forces sending the
CertificateRequest record. Make sure we raise the client certificate
validation event when it is requested or required.
svn path=/branches/mono-2-6/mcs/; revision=144460
* MonoProperty.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport 144448]
svn path=/branches/mono-2-6/mcs/; revision=144449
* Thread.cs: change type of the current_appcontext field to object
to avoid triggering static constructors unless explicitely required.
svn path=/branches/mono-2-6/mcs/; revision=144430
* assembly.c (mono_assembly_load_reference): Fix leak when 'status'
code is known. (parse_public_key) Remove duplicate (unneeded) NULL
check since 'pubkey' can't be NULL at this stage
* icall.c (ves_icall_System_Array_FastCopy): Add comment about
the check. (ves_icall_Type_GetInterfaceMapData) Remove duplicate
initialization of 'iter'
[Backport r144403]
svn path=/branches/mono-2-6/mono/; revision=144405
* MonoEvent.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport r144363]
svn path=/branches/mono-2-6/mcs/; revision=144364
* MethodBaseTest.cs: Add new, working, test for non-generic
GetMethodFromHandle. Add test case to show generic overload
behave exactly the same when no second RuntimeMethodHandle is
provided. Remove [Category("NotWorking")] on existing test case.
[Backport r144335]
svn path=/branches/mono-2-6/mcs/; revision=144337
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport r144335]
2009-10-18 Sebastien Pouliot <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=144336
* aot-compiler.c (can_marshal_struct): Allow some System.dll structs to be
marshalled. Fixes#541623.
svn path=/branches/mono-2-6/mono/; revision=144332
2009-10-18 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Remove System.IO.IntPtrStream since it can
be replaced by (public in 2.0+) UnmanagedMemoryStream
* net_2_1_raw_corlib.dll.sources: Remove System.IO.IntPtrStream
since it can be replaced by UnmanagedMemoryStream
[Backport r144322]
In System.Resources:
2009-10-18 Sebastien Pouliot <[email protected]>
* ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use
UnmanagedMemoryStream (instead of IntPtrStream)
[Backport r144322]
In System.IO:
2009-10-18 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStream.cs: Allow the use under NET_1_1 so we can
remove the internal IntPtrStream from every profile.
In System.Reflection:
2009-10-18 Sebastien Pouliot <[email protected]>
* Assembly.cs: Use UnmanagedMemoryStream (instead of IntPtrStream)
in every profile
svn path=/branches/mono-2-6/mcs/; revision=144323
* MonoMethod.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport r144306]
svn path=/branches/mono-2-6/mcs/; revision=144307
A fix for bug #493523, #507067
* convert.cs, nullable.cs, expression.cs: Do implicit and explicit
standard nullable conversion using underlying standard conversion
and not full conversion.
svn path=/branches/mono-2-6/mcs/; revision=144266
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
support contexts so we call the non-overloaded WaitOne method
(which defaults to false).
[Backport r144200]
svn path=/branches/mono-2-6/mcs/; revision=144201
* ClientRuntimeChannel.cs: Remove the WaitOne 'emitContext'
overloads from the Moonlight build. Directly call WaitHandle.
WaitAll from WaitOne(int) (since the overloads are not always
present)
[Backport r144198]
svn path=/branches/mono-2-6/mcs/; revision=144199
Mono.Data.Sqlite to the MonoTouch build.
* System/System.ComponentModel/TypeConverter_2_1.cs: Skip this type in
the MonoTouch profile; MonoTouch will be using the 2.0 version of
TypeConverter.
* System/System.ComponentModel/ComponentCollection.cs,
System/System.ComponentModel/PropertyDescriptor.cs: MonoTouch uses the
.NET 2.0 versions of these types.
* System/monotouch_System.dll.sources: Add lots of additional .NET 2.0
functionality to the MonoTouch profile.
* System.Transactions/Makefile (VALID_PROFILE): Add monotouch.
* System.Data/System.Data.Common/DbConnection.cs: Throw
NotImplementedException for DbConnection.DbProviderFactory, as
DbProviderFactories isn't included in the MonoTouch profile.
* System.Data/System.Data.SqlClient/SqlConnection.cs: Remove
EnterpriseServices dependency from the MonoTouch profile.
* System.Data/monotouch_System.Data.dll.sources: Added.
* System.Data/System.Data/XmlSchemaDataImporter.cs: Remove
DbProviderFactories dependency in the MonoTouch profile.
svn path=/branches/mono-2-6/mcs/; revision=144142
* Exception.cs: Use StackFrame.GetSecureFileName to display (or
not) the file names (and paths). Don't serialize Source for
Moonlight.
* ValueType.cs: Change InternalEquals (icall) visibility to
private since it is not used elsewhere outside the type.
[Backport r144104]
svn path=/branches/mono-2-6/mcs/; revision=144105
2009-10-13 Martin Baulig <[email protected]>
* debug-mini.c (mono_debugger_trampoline_compiled): Add
`const guint8 *trampoline' argument; send both the old and the new
notification.
2009-10-13 Martin Baulig <[email protected]>
* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
`MONO_DEBUGGER_EVENT_TRAMPOLINE' into
`MONO_DEBUGGER_EVENT_OLD_TRAMPOLINE' and added a new
`MONO_DEBUGGER_EVENT_TRAMPOLINE'.
* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 4.
svn path=/branches/mono-2-6/mono/; revision=144065
* aot-compiler.c (mono_save_xdebug_info): Group methods into groups of 10 to
avoid registering 1 symbol file per method with gdb.
svn path=/branches/mono-2-6/mono/; revision=144034
* aot-compiler.c (mono_save_xdebug_info): Emit a symbol for the method which
can be used to set breakpoints in gdb.
* image-writer.c (bin_writer_emit_writeout): Add support for setting the text
segment to an absolute address.
svn path=/branches/mono-2-6/mono/; revision=144033
In tools/xbuild:
2009-10-12 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: For referenced projects,
when trying to get the deploy items, ensure that the split
lists of project references are available.
(SplitProjectReferencesByExistent): New.
Set DependsOnTargets appropriately.
2009-10-12 Ankit Jain <[email protected]>
* SolutionParser.cs: Handle non-existing project files, and
project file load errors. Raise warnings instead of failing.
* xbuild/Microsoft.Common.targets: Handle non-existant
Project references, skip instead of failing.
In class/Microsoft.Build.Tasks:
2009-10-12 Ankit Jain <[email protected]>
* Makefile: Add reference to Microsoft.Build.Engine .
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-12 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Remove unnecessary tab in the warning
messages.
2009-10-12 Ankit Jain <[email protected]>
* MSBuild.cs (Execute): Handle build errors.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-12 Ankit Jain <[email protected]>
* Target.cs (TargetFile): New. Gives the name of the file
containing the target definition.
* BuildEngine.cs (.ctor): Add a 'taskfile' parameters, and
return this for ProjectFileOfTaskNode.
* BuildTask.cs (LogTaskStarted):
(LogTaskFinished): Use parentTarget.ProjectFileOfTaskNode for
the event.
(InitializeTask): Set BuildEngine's task file to parent target's
TargetFile.
* Engine.cs (LogProjectStarted): Incase of default targets, set
TargetNames to String.Empty .
* TargetBatchingImpl.cs (LogTargetStarted):
(LogTargetFinished): Use target.TargetFile for the event.
* ConsoleLogger.cs: Keep a stack of project/target/task being
executed. And corresponding list of errors and warnings.
(EventsToString): Stringifies the current "stack", to be used
as key to the table of errors/warnings and for show messages
at the end of the build.
2009-10-12 Ankit Jain <[email protected]>
* Project.cs (Load): Add argument checks.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-12 Ankit Jain <[email protected]>
* TaskLoggingHelper.cs: Use the buildEngine.ProjectFileOfTaskNode
in the event args.
2009-10-12 Ankit Jain <[email protected]>
* ToolTask.cs (ExecuteTool): Don't set toolOutput to null.
(HandleTaskExecutionErrors): toolOutput can be null.
Set toolOutput to null here.
svn path=/branches/mono-2-6/mcs/; revision=143964
In tools/xbuild:
2009-10-11 Ankit Jain <[email protected]>
* Main.cs: Add support for emitting messages in color.
Taking relevant code from mcs/report.cs . Using ANSI
color codes here instead of Console.ForegroundColor
because of a bug in Console.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-11 Ankit Jain <[email protected]>
* ConsoleLogger.cs (no_colors): Rename to ..
(use_colors): .. this. Fix the case when XBUILD_COLORS
is not set.
2009-10-11 Ankit Jain <[email protected]>
* ConsoleLogger.cs: Use ColorSetter and ColorResetter .
Support 'XBUILD_COLORS' to set colors for errors, warnings,
events and messages.
2009-10-10 Ankit Jain <[email protected]>
* ConsoleLogger.cs (ProjectFinishedHandler): Once projectFailed
becomes true, don't reset it. We are looking for "atleast one
project failed".
svn path=/branches/mono-2-6/mcs/; revision=143904
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
the GDB support mode in the runtime.
svn path=/branches/mono-2-6/mono/; revision=143889
* image-writer.c: Add support for emitting the image into a memory buffer.
* dwarfwriter.c: Add support for sharing one IL file between multiple images.
* aot-compiler.c: Add support for registering debug info with GDB using the
new JIT debugging interface in GDB 7.0. It can be turned on by setting
MONO_XDEBUG to 'gdb'.
svn path=/branches/mono-2-6/mono/; revision=143888
2009-10-09 Ankit Jain <[email protected]>
* Exec.cs (AddCommandLineCommands): Add '/q' for cmd.exe, to
turn 'echo off'. And make sure the script file on windows, has
a '.bat' extension, otherwise cmd.exe opens it in a text editor.
2009-10-09 Ankit Jain <[email protected]>
Fix bug #545703.
* Exec.cs (Command): On unix, change CRLF to CR.
svn path=/branches/mono-2-6/mcs/; revision=143881
* image-writer.c (bin_writer_emit_writeout): Fix a copy paste error causing
the LOC section to overwrite the LINE section.
svn path=/branches/mono-2-6/mono/; revision=143875
* StackFrame.cs: Introduce a new GetSecureFileName method that
will deal with CAS (regular framework) and will remove the path
(for Moonlight) on a stack frame.
* StackTrace.cs: Use the new StackFrame.GetSecureFileName to
simplify logic
[Backport r143802]
svn path=/branches/mono-2-6/mcs/; revision=143804
* AppDomain.cs: Remove NET_2_1 specific DefineDynamicAssembly(
AssemblyName,AssemblyBuilderAccess,bool) since it is not part
of SL. Provide a ToString implementation similar to Silverlight
for Moonlight (and without directly using an icall)
[Backport r143799]
svn path=/branches/mono-2-6/mcs/; revision=143800
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Don't get list of files
to deploy, for 'Private' project references.
Fix target named for *CopyDeploy*.
2009-10-08 Ankit Jain <[email protected]>
In tools/xbuild/tests:
2009-10-08 Ankit Jain <[email protected]>
* standalone/Project1: Add a new Lib5 project, and add
private references to various projects.
Update final-outputs.txt .
* standalone/Project01/Lib5/*: New.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ResolveAssemblyReference.cs: Don't resolve any dependencies for
assemblies resolved from {PkgConfig}. Honor parent's CopyLocal for
dependencies.
2009-10-08 Ankit Jain <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=143741
In tools/xbuild:
2009-10-08 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.tasks: Add RemoveDuplicates task.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-10-08 Ankit Jain <[email protected]>
* TestMessageLogger.cs (CheckLoggedAny): New.
2009-10-08 Ankit Jain <[email protected]>
* RemoveDuplicatesTest.cs: New.
In class/Microsoft.Build.Tasks:
2009-10-08 Ankit Jain <[email protected]>
* Microsoft.Build.Tasks_test.dll.sources: Added
RemoveDuplicatesTest.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-08 Ankit Jain <[email protected]>
* MSBuild.cs (Execute): Don't share target output items,
always create a copy.
2009-10-08 Ankit Jain <[email protected]>
* RemoveDuplicates.cs: Use item's ItemSpec as the key.
2009-10-07 Ankit Jain <[email protected]>
* ManagedCompiler.cs (HandleTaskExecutionErrors): Log error if
required.
2009-10-06 Ankit Jain <[email protected]>
* Exec.cs (ExecuteTool): Use DeleteTempFile instead of File.Delete
(HandleTaskExecutionErrors): Log error, if required.
* MSBuild.cs: Don't log error.
* Warning.cs: Don't log if @text is empty.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-08 Ankit Jain <[email protected]>
* ProjectTest.cs (TestBatchedMetadataRefInOutput): New.
In class/Microsoft.Build.Engine/Test/various:
2009-10-08 Ankit Jain <[email protected]>
* Items.cs (TestItemsWithWildcards): New.
2009-10-08 Ankit Jain <[email protected]>
* Items.cs (TestItems5): Fix to work correctly on windows
and unix.
(TestReservedMetadata): New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-08 Ankit Jain <[email protected]>
* DirectoryScanner.cs: Use Path.GetPathRoot, instead of
directly using DirectoryInfo ("z:"), that doesn't return
a dir info for "z:".
2009-10-08 Ankit Jain <[email protected]>
* DirectoryScanner.cs: Handle absolute paths. Fix to work
correctly on windows. Change order of adding paths to match
msbuild, useful to have.
2009-10-08 Ankit Jain <[email protected]>
* TaskBatchingImpl.cs (ParseTaskAttributes): Parse attributes
of the 'Output' element also.
* TaskEngine.cs (PublishOutput): Honor condition on 'Output' also.
2009-10-07 Ankit Jain <[email protected]>
* ConsoleLogger.cs: Mark build as failed, if any project failed.
2009-10-06 Ankit Jain <[email protected]>
* ConsoleLogger: Improve error reporting. Don't count failed task,
target or project as another error. Show "errors" after "warnings",
more useful to the user.
* Project.cs (BuildTarget): Log error instead of using CWL.
In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2009-10-08 Ankit Jain <[email protected]>
* ReservedNameUtils.cs: Fix 'RootDir', 'Directory'.
(WithTrailingSlash): New.
Update to use the new WithTrailingSlash method.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-06 Ankit Jain <[email protected]>
* ToolTask.cs (Execute): HandleTaskExecutionErrors is called only
if exitCode != 0.
(ExecuteTool): Move logging of exitcode to HandleTaskExecutionErrors.
Remove MonoTODOs.
* TaskLoggingHelper.cs (LogMessageFromText): New.
(LogMessage): Refactor to use above.
svn path=/branches/mono-2-6/mcs/; revision=143736
* CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
override for Moonlight and move all icalls together so they
can be #if-ed out.
[Backport r143648]
svn path=/branches/mono-2-6/mcs/; revision=143649
2009-10-07 Sebastien Pouliot <[email protected]>
* OperationContextTest.cs: Add test case for OperationContext.Current
[Backport r143620]
In System.ServiceModel:
2009-10-07 Sebastien Pouliot <[email protected]>
* OperationContext.cs: Use [ThreadStatic] instead of Thread.
GetNamedDataSlot with Thread.[Get|Set]Data since it offers type
safety and don't require keeping extra API inside Moonlight
[Backport r143620]
svn path=/branches/mono-2-6/mcs/; revision=143621
* Decimal.cs: Use Compare method instead of directly using the
decimalCompare internal call.
[Backport r143554]
svn path=/branches/mono-2-6/mcs/; revision=143555
* Enum.cs: Add an internal Value property as a single point to
call the internal call get_value.
[Backport r143549]
svn path=/branches/mono-2-6/mcs/; revision=143550
* aot-compiler.c (add_generic_class): Add an instance of GenericComparer<T> for
each instance of Comparer<T>.
* generics.cs: Add a new test.
svn path=/branches/mono-2-6/mono/; revision=143532
* GatewayIPAddressInformationCollection.cs:
* IPInterfaceProperties.cs: implement GatewayAddresses for linux.
Original patch by Christoph von Wittich.
Fixes bug #544640.
svn path=/branches/mono-2-6/mcs/; revision=143526
* object.c (mono_method_return_message_restore): Handle the case
where the argument is an instance of a generic type. Fixes
#544446.
Backport of r143506.
2009-10-06 Mark Probst <[email protected]>
* bug-544445.cs: New test.
* Makefile.am: Test added.
Backport of r143506.
svn path=/branches/mono-2-6/mono/; revision=143510
In tools/xbuild:
2009-10-03 Ankit Jain <[email protected]>
Fix bug#542461.
* xbuild/Microsoft.Common.targets (KeyOriginatorFile): Set to
$(AssemblyOriginatorKeyFile), if SignAssembly is true.
Use it for satellite assemblies also.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-03 Ankit Jain <[email protected]>
* Project.cs (OS): New.
(InitializeProperties): Set 'OS' as a pre-defined property, set to
'Windows_NT', 'Unix' or 'OSX' depending on the platform.
svn path=/branches/mono-2-6/mcs/; revision=143317
* mini-sparc.c (mono_arch_emit_setret): Emit long return values using OP_LMOVE.
(mono_arch_create_vars): Instead of allocating a stack slot by hand, allocate
a variable to hold the stack slot used by the int<->float conversion opcodes.
svn path=/branches/mono-2-6/mono/; revision=143311
* mini-sparc.c (mono_arch_create_vars): Make the component vars of a long ret
variable volatile. Fixes#541577.
* basic-calls.cs: Add a new test.
* basic-long.cs: Remove tests which are now in basic-calls.cs.
svn path=/branches/mono-2-6/mono/; revision=143310
* HtmlSelectBuilder.cs: <option> allows the value of the 'selected'
attribute to be a boolean or the string "selected", which is treated
as "true".
svn path=/branches/mono-2-6/mcs/; revision=143106
* Hashtable.cs: MS (at least latest and greatest) does not always
serialized the HashCodeProvider. Ignoring the error when the field
is not found.
svn path=/branches/mono-2-6/mcs/; revision=143100
* BuildManager.cs: load/set the global resources assembly for
precompiled and merged sites correctly.
svn path=/branches/mono-2-6/mcs/; revision=143094
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-01 Ankit Jain <[email protected]>
* ImportTest.cs (TestAdd1): Add tests for multiple imports.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-01 Ankit Jain <[email protected]>
* Project.cs (AddImport): Show the correct source file name, when
the import is in the main project file.
2009-10-01 Ankit Jain <[email protected]>
Fix bug #543299.
* Import.cs (.ctor): Evaluate and set EvaluatedProjectPath to
the full path of the imported project here itself, instead of ..
(Evaluate): .. here.
* ImportCollection.cs (Add): Use import.EvaluatedProjectPath .
(Contains): New.
* Project.cs (AddImport): Don't process if condition is false.
Warn if a circular reference is detected, and ignore the import.
svn path=/branches/mono-2-6/mcs/; revision=143082
* ExtensionManager.cs: Initialize the NET_2_0 pieces with
MonoTouch, but do not register any of the System.Configuration
depending extensions.
BuildExtensionImporters, BuildExtensionReflectors: empty methods
for MOnoTouch.
* ServiceDescriptionImporter.cs, WebReference.cs: Remove
codegeneration features for MonoTouch
2009-09-30 Miguel de Icaza <[email protected]>
* Methods.cs: Empty extensions for MonoTouch for now.
* ServerType.cs: On MonoTouch, we do not support HttpGet or
HttpPost variations yet.
* SoapExtension.cs: Avoid System.Configuration features.
svn path=/branches/mono-2-6/mcs/; revision=143061
[Backport]
* TreeNode.cs: When we invalidate a node, make sure we start at
0, instead of the node's Bounds.Left, which does not include
the +/-, checkbox, or stateimages.
[Fixes bug #542481]
svn path=/branches/mono-2-6/mcs/; revision=143020
* mono-compiler.h (MONO_INTERNAL): Disable this on solaris as it produces a
millions of warnings during compilation.
svn path=/branches/mono-2-6/mono/; revision=143006
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
instead of using type->data.klass as the later doesn't work with generics.
svn path=/branches/mono-2-6/mono/; revision=143005
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
instead of using type->data.klass as the later doesn't work with generics.
svn path=/branches/mono-2-6/mono/; revision=143004
* aot-compiler.c (add_wrappers): Add a runtime invoke wrapper which is used by
mono_runtime_capture_context () without calling mono_runtime_invoke ().
(can_marshal_struct): Skip structures with auto layout.
svn path=/branches/mono-2-6/mono/; revision=142993
A fix for bug #542959
* delegate.cs: Emit correct delegate instance variable when there
are static and non-static overloads.
svn path=/branches/mono-2-6/mcs/; revision=142978
* BinaryFormatter.cs: NoCheckDeserialize() was using PeekChar() on a
reader when it should only read 1 byte. Also BinaryReader.PeekChar()
tries to set the position of hte stream back to where it was before
the read, which does not work well with broken Stream
implementations like BZip2InputStream (reports CanSeek is true when
it really can't seek). Now we do a Read() and then pass the value we
read on to the next methods.
* MessageFormatter.cs:
* ObjectReader.cs: added overloads that take a BinaryElement instead
of reading it from the reader. Only for the methods used in
NoCheckDeserialize.
Fixes bug #503435.
svn path=/branches/mono-2-6/mcs/; revision=142964
* InotifyWatcher.cs: fixes bug #322330. Patch by Alexander Kojevnikov.
This patch fixes the issues reported by the OP and in my previous
comment. In particular:
Hunks 1 and 4 remove the new_name_needed flag, it's not used
anywhere and only adds confusion.
Hunk 2 skips DeleteSelf event for sub-directories, they receive the
Delete event anyway.
Hunk 3 makes sure that we use a combination of Deleted+Created
notifications instead of a single Renamed notification, if the watched item
has been moved from one directory to another. This is because RenamedEventArgs
supports only one directory name: FullPath is always directory+name,
OldFullPath is always directory+old_name.
Hunk 5 updates relevant InotifyData instances with the new directory
name. Without this, notifications always use the original folder names.
The last hunk may be a bit slow as it needs to iterate on all the
InotifyData instances. On the other hand, we are already doing it on the
Delete event (lines 560:568) and by default inotify allows only 8192 watches
per user.
svn path=/branches/mono-2-6/mcs/; revision=142959
In tools/xbuild:
2009-09-29 Ankit Jain <[email protected]>
* SolutionParser.cs (Insert): Show project name in case of a cyclic
dependency.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-29 Ankit Jain <[email protected]>
* Exec.cs: Write the commands, which can be multiline,
to a temporary file, and execute that with "cmd.exe /c"
on windows and "sh" on non-windows.
(LogToolCommand): Override, and emit the commands instead
of the actual args passed to the shell.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-29 Ankit Jain <[email protected]>
* ProjectTest.cs (TestPropertiesFromImportedProjects): New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-29 Ankit Jain <[email protected]>
* GroupingCollection.cs (Evaluate): Mark internal.
* Project.cs (AddImport): Only evaluate the properties,
till before the import.
2009-09-29 Ankit Jain <[email protected]>
* Project.cs (DoLoad): Don't use XmlReader.Create, for loading
the project xml, as returned Xml*Reader normalizes the newlines.
Instead directly use the TextReader with XmlDocument.Load ().
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-29 Ankit Jain <[email protected]>
* ToolTask.cs (ExecuteTool): Use LogToolCommand, instead of
directly logging.
(LogToolCommand): Implement.
svn path=/branches/mono-2-6/mcs/; revision=142871
* DefaultValueAttribute.cs: Implement the cctor which takes
a Type and a string for the SL2 case.
* CategoryAttribute.cs: Fix a typo in the CategoryAttribute.Asynchronous
ctor and fix some SL2 specific naming changes for the default properties.
svn path=/branches/mono-2-6/mcs/; revision=142866
* net_2_1_raw_System.Net.dll.sources: Remove Timer_2_1.cs and
related classes from System.dll - they are not required anymore
since Gonzalo's changes on Socket.Close(int)
[Backport r142851]
svn path=/branches/mono-2-6/mcs/; revision=142852
* appdomain.c|h: Add a mono_domain_try_unload method which is
equivalent to mono_domain_unload, except that it returns an exception
instead of throwing it. Make mono_domain_unload use the
mono_domain_try_unload method to avoid code-duplication.
Backport of r142658.
svn path=/branches/mono-2-6/mono/; revision=142846
* SocketAsyncEventArgs.cs: Default SocketError.AccessDenied on
Connect in case none of the DnsEndPoint provides an adequate
address (family).
[Backport r142746]
svn path=/branches/mono-2-6/mcs/; revision=142747
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-28 Ankit Jain <[email protected]>
* WriteLinesToFiles.cs (Execute): Handle empty list of
lines.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-28 Ankit Jain <[email protected]>
* ToolTask.cs (ProcessOuputTool): Move logging of tool
output from here to ..
(ExecuteTool): .. here. As, ProcessOuputTool can be
overridden.
svn path=/branches/mono-2-6/mcs/; revision=142742
* Socket_2_1.cs: Close(int timeout) blocks up to timeout ms if there's
pending data to be written to the socket. If there's no pending data,
it closes and returns right away. Instead of using Timer and then
doing a 'hard' close(), we set the linger option for the socket.
svn path=/branches/mono-2-6/mcs/; revision=142730
* SocketAsyncEventArgs.cs: Don't use Socket.Poll for NET_2_1.
Throw NIE for use of BufferList in Receive.
* Socket.cs: Move Close(int) to Socket_2_1.cs. Remove NET_2_1
defines since the file is not used by Moonlight
* Socket_2_1.cs: Add Close(int) from Socket. Define out Poll
and Blocking.
[Backport r142722]
svn path=/branches/mono-2-6/mcs/; revision=142723
* net_2_1_raw_System.Net.dll.sources: Add Timer_2_1.cs and
related classes from System.dll
[Backport of r142720]
svn path=/branches/mono-2-6/mcs/; revision=142721
* Timer_2_1.cs: New. A smaller, internal subset of Timer for
Moonlight - needed for Socket.Close(int)
[Backport of r142718]
svn path=/branches/mono-2-6/mcs/; revision=142719
* RealProxy.cs: for a custom proxy, retrieve the OutArgs before
allowing EndInvoke to proceed because after that, OutArgs will throw
because there is no method. Fixes remoting2 and remoting3 tests.
svn path=/branches/mono-2-6/mcs/; revision=142696
In tools/xbuild:
2009-09-27 Ankit Jain <[email protected]>
* SolutionParser.cs: Implement support for WebSite projects. These
projects lack a project file, so properties like references are read
from the .sln file, and targets are generated for build/clean etc.
2009-09-26 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Remove _ValidateEssentialProperties
from BuildDependsOn, which was a hack. It will get invoked from the
InitialTargets now.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-26 Ankit Jain <[email protected]>
* TargetTest.cs (TestOverridingTargets): New.
2009-09-26 Ankit Jain <[email protected]>
* ProjectTest.cs (TestInitialTargetsWithImports):
(TestDefaultTargets):
(TestDefaultTargetsWithImports):
(TestNoDefaultTargetsWithImports):
(TestNoDefaultTargets): New tests.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-27 Ankit Jain <[email protected]>
* ConditionParser.cs: Show the condition being parsed in the
exception message.
2009-09-26 Ankit Jain <[email protected]>
* Expression.cs: Allow '-' in item, property and metadata names.
2009-09-26 Ankit Jain <[email protected]>
* Project.cs (Evaluate): Split into this and ..
(PrepareForEvaluate): .. this.
(AddImport): Evaluate the current set of properties/items etc,
before processing the imported project. Honor the Condition
for the Import.
(ProcessProjectAttributes): Update MSBuildProjectDefaultTargets
property.
* GroupingCollection.cs (Evaluate): Don't evaluate Imports here.
* BuildItemGroup.cs (Evaluate): Evaluate only once.
* BuildPropertyGroup.cs (Evaluate): Evaluate only once.
2009-09-26 Ankit Jain <[email protected]>
* Project.cs: Get InitialTargets from the imported projects also.
The combined list of targets are executed, in the order they were
found.
DefaultTargets are also read in from imported projects, and the first
non-empty DefaultTargets found is used.
svn path=/branches/mono-2-6/mcs/; revision=142686
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
/// <param name="entitizeQuotAmpAndLtGt">If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized.</param>
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
publicoverridestringXmlLang
{
get
{
InternalTrace(null);
return_nametable.GetOrAdd(string.Empty);
}
}
#endregion
#regionPublicMethods
/// <summary>
/// Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator.
/// </summary>
/// <returns>A new HtmlNavigator object positioned at the same node as the original HtmlNavigator.</returns>
publicoverrideXPathNavigatorClone()
{
InternalTrace(null);
returnnewHtmlNodeNavigator(this);
}
/// <summary>
/// Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
/// </summary>
/// <param name="localName">The local name of the HTML attribute.</param>
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
/// <returns>The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node.</returns>
/// Moves to the first sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the first sibling node, false if there is no first sibling or if the navigator is currently positioned on an attribute node.</returns>
publicoverrideboolMoveToFirst()
{
if(_currentnode.ParentNode==null)
{
InternalTrace(">false");
returnfalse;
}
if(_currentnode.ParentNode.FirstChild==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.ParentNode.FirstChild;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the first HTML attribute.
/// </summary>
/// <returns>true if the navigator is successful moving to the first HTML attribute, otherwise, false.</returns>
publicoverrideboolMoveToFirstAttribute()
{
if(!HasAttributes)
{
InternalTrace(">false");
returnfalse;
}
_attindex=0;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the first child of the current node.
/// </summary>
/// <returns>true if there is a first child node, otherwise false.</returns>
publicoverrideboolMoveToFirstChild()
{
if(!_currentnode.HasChildNodes)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.ChildNodes[0];
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves the XPathNavigator to the first namespace node of the current element.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
/// Moves to the node that has an attribute of type ID whose value matches the specified string.
/// </summary>
/// <param name="id">A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.</param>
/// <returns>true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
publicoverrideboolMoveToId(stringid)
{
InternalTrace("id="+id);
HtmlNodenode=_doc.GetElementbyId(id);
if(node==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=node;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves the XPathNavigator to the namespace node with the specified local name.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="name">The local name of the namespace node.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
publicoverrideboolMoveToNamespace(stringname)
{
InternalTrace("name="+name);
returnfalse;
}
/// <summary>
/// Moves to the next sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the next sibling node, false if there are no more siblings or if the navigator is currently positioned on an attribute node. If false, the position of the navigator is unchanged.</returns>
/// <returns>true if there is a parent node, otherwise false.</returns>
publicoverrideboolMoveToParent()
{
if(_currentnode.ParentNode==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.ParentNode;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the previous sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the previous sibling node, false if there is no previous sibling or if the navigator is currently positioned on an attribute node.</returns>
publicoverrideboolMoveToPrevious()
{
if(_currentnode.PreviousSibling==null)
{
InternalTrace(">false");
returnfalse;
}
_currentnode=_currentnode.PreviousSibling;
InternalTrace(">true");
returntrue;
}
/// <summary>
/// Moves to the root node to which the current node belongs.
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law.
A “contribution” is the original software, or any additions or changes to the software.
A “contributor” is any person that distributes its contribution under this license.
“Licensed patents” are a contributor’s patent claims that read directly on its contribution.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
3. Conditions and Limitations
(A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks.
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
(E) The software is licensed “as-is.” You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
(F) If you distribute the software or derivative works with programs you develop, you agree to indemnify, defend, and hold harmless all contributors from any claims, including attorneys’ fees, related to the distribution or use of your programs. For clarity, you have no such obligations to a contributor for any claims based solely on the unmodified contributions of that contributor.
(G) If you make any additions or changes to the original software, you may only distribute them under a new namespace. In addition, you will clearly identify your changes or additions as your own.
/// Advances the enumerator to the next element of the collection.
/// </summary>
/// <returns>true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.</returns>
publicboolMoveNext()
{
_index++;
return(_index<_items.Count);
}
/// <summary>
/// Sets the enumerator to its initial position, which is before the first element in the collection.
// Use actual TreeView width to invalidate total prev/new area
Rectanglebounds=Bounds;
bounds.Width=tv.ClientSize.Width;
tv.Invalidate(bounds);
tv.UpdateNode(this);
}
internalvoidInvalidateWidth()
Loaded 100 of 1691 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.