* EndPointListener.cs: call CheckIfRemove() after removing a regular
prefix. Fixes bug #513849.
* EndPointManager.cs: make sure we use the right lock when one prefix
of a collection fails to be added and we need to remove all of the
prefixes.
Clear the ip_to_endpoints hashtable if there are no more prefixes
listening on that address.
svn path=/branches/mono-2-4-2/mcs/; revision=136322
* WebConfigurationHost.cs: workaround to avoid definition errors when
a null config path is passed.
svn path=/branches/mono-2-4-2/mcs/; revision=136071
In tools/xbuild:
* xbuild/Microsoft.Common.targets (ProjectDir): Fix typo.
* xbuild/Microsoft.Common.targets (IntermediateAssembly): Change to
an Item list to match msbuild.
* xbuild/Microsoft.CSharp.targets (IntermediateAssembly): Update for
above changes.
* Parameters.cs (.ctor): Use assembly's location to build
path for the default response file.
In tools/xbuild/tests:
* standalone/Project01: Add missing Lib2.deploy.txt in the correct
location.
* standalone/Project01: Fix location for lib2.deploy.txt
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* Utilities.cs: New.
* AL.cs, AspNetCompiler.cs, Csc.cs,
SGen.cs, Vbc.cs (ToolName): Append ".bat" when running
on windows.
* MSBuild.cs (Execute): Copy metadata from the @Projects items
to the target outputs.
* ResolvedReference.cs: Add missing file.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* EngineTest.cs (TestMSBuildOutputs): New.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItemsInTarget3a): Add another case for valid whitespace
around an item ref.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #512535.
* ExpressionCollection.cs (ConvertToITaskItemArray): Whitespace around a
itemref is allowed if the prev/next element is ";".
* Utilities.cs (FromMSBuildPath): Return null if the path contains
"drive:" only on windows.
svn path=/branches/mono-2-4-2/mcs/; revision=136028
* XPathExpression.cs: Backport to Mono 2.4 the bug fix
for multithreaded applications that use XPath.
This was the fix for #477049 which also fixes#505678
svn path=/branches/mono-2-4-2/mcs/; revision=135816
Backport of 135171.
* threads.c (ves_icall_System_Threading_Thread_Sleep_internal):
Check if the thread was interrupted and proccess it straight away.
Makes abortion much more responsive.
Backport of 135170.
* threads.c (mono_thread_execute_interruption): Use atomic cas with
MonoThread::interruption_requested to match it's counterpart.
Fixes a hang in abort-stress-1 on a 2 core x86.
svn path=/branches/mono-2-4/mono/; revision=135666
2009-06-08 Martin Baulig <[email protected]>
* debug-mini.c
(MonoDebuggerExceptionAction): Moved into debug-mini.h.
(_mono_debugger_throw_exception): Don't make this static.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_handle_exception): Moved to mini-exceptions.c
* debug-mini.c
(MonoDebuggerExceptionAction): Moved here from debug-mini.c.
(_mono_debugger_throw_exception): Add function prototype.
(_mono_debugger_unhandled_exception): Likewise.
* mini-exceptions.c
(mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
arg; return the first exception handler if the exception is caught
and we're running inside the debugger.
(mono_debugger_handle_exception): Moved here from debug-mini.c;
improve exception handle inside runtime-invoke, check whether the
exception is actually caught in the method being invoked and not
by the runtime-invoke-wrapper.
svn path=/branches/mono-2-4/mono/; revision=135636
2009-03-31 Rodrigo Kumpera <[email protected]>
* Code.cs (CILLabel): Add new constructor to signal that
a label is an absolute il offset. This is required by exception
handling declarations that use offsets and not labels.
In ilasm/codegen:
2009-05-27 Rodrigo Kumpera <[email protected]>
* TypeDef.cs: Add field method_list to preserve definition
order of methods when emiting the PE file.
2009-04-20 Ankit Jain <[email protected]>
Fix bug #494221
* MethodDef.cs (BeginLocalsScope): New.
(EndLocalsScope): New.
(AddLocals):
(GetNamedLocal): Support scoping for .locals
* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.
2009-03-31 Rodrigo Kumpera <[email protected]>
* MethodDef.cs (WriteCode): Emit labels which use offsets as absolute PEAPI
CilLabels.
In ilasm/scanner:
* StringHelper.cs (startIdChars): New. Set of chars that can start an
identifier.
(Start): Use startIdChars instead of idchars.
Fix bug #487155.
* StringHelper.cs: Handle octal values in strings.
Patch from Stephen Gennard ([email protected])
In ilasm/parser:
Fix bug #494221.
* ILParser.jay (scope_block_begin): Mark begin .locals scope.
(scope_block): Mark end .locals scope.
* ILParser.jay (instr): Handle unidentified local var id.
2009-03-31 Rodrigo Kumpera <[email protected]>
* ILParser.jay: Fix integer labels in handler blocks.
svn path=/branches/mono-2-4/mcs/; revision=135623
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Use ResolveAssemblyReference
to find satellite assemblies, dependent assemblies, dependent
files, copy local files etc.
Add targets to fetch all this info for all referenced projects,
and copy them to the target locations. Also, copy the debug (.mdb)
files. Honor, "CopyToOutputDirectory" metadata.
* Parameters.cs (ProcessProperty): Handle invalid syntax.
* SolutionParser.cs (AddGeneralSettings): Don't hardcode the default
config/platform. Move to ..
(AddDefaultSolutionConfiguration): .. here.
(AddCurrentSolutionConfigurationContents): Use the first solution target
as the default config/platform or use Debug/anycpu if no config is available.
In tools/xbuild/tests:
* standalone/Project01: New. Solution with interdependent multiple projects,
with deploy files, satellite assemblies etc.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* CreateCSharpManifestResourceNameTest.cs (TestInvalidCulture): New.
* CscTest.cs (TestDefineConstants): Update DefineConstants to include
spaces also.
* AssignTargetPathTest.cs: Update tests to not depend on a fixed
root (C:\) or cur dir.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
ResolvedReference.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* AssignCulture.cs (TrySplitResourceName): Reset culture arg to null
if returning false.
* CreateCSharpManifestResourceName.cs: Set culture to null if the
culture was invalid.
* ResolvedReference.cs: New.
* AssemblyResolver.cs (GetResolvedReference): New. Honor's the
'Private' metadata and sets CopyLocal.
(SearchPath): New. Used to track how the reference was resolved.
(IsStrongNamed): Fix potential null ref.
All the assembly resolution methods now return ResolvedReference
instead of strings, to aid in proper CopyLocal behavior and
dependency resolution.
* ResolveAssemblyReference.cs: Add support for finding related files,
satellite files, resolving dependencies, copy local files.
Resolve files specified in "AssemblyFiles" param also, used to resolve
project references and dependencies.
* Csc.cs (AddResponseFileCommands): Split DefineConstants on space also.
* AssignTargetPath.cs (Execute): Expand incoming path to absolute
path, and correctly extract relative path (skipping over the preceding
dir separator).
* Copy.cs (CopyFile): Don't copy if the source and dest are the same.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest (TestBuildSolutionProject): New. Disabled for now.
* Consts.cs (RunningOnMono): Make public.
* TargetTest (TestTargetOutputsIncludingMetadata): New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Target.cs (Outputs): Use ITaskItem[] for conversion, to retain
the metadata.
svn path=/branches/mono-2-4/mcs/; revision=135620
* marshal.c metadata.c: Applied patch from Ulrich Weigand
<[email protected]>: Free the wrappers of inflated generic methods when
the inflated method is freed. Fixes#508389.
The code is contributed under the MIT/X11 license.
svn path=/branches/mono-2-4/mono/; revision=135435
* OracleParameter.cs: Infer size only for 2.0 profile when only
value is passed. Fixes test failure under 1.1 profile.
svn path=/branches/mono-2-4/mcs/; revision=135429
In tools/xbuild:
2009-05-20 Jonathan Chambers <[email protected]>
* SolutionParser.cs (ParseSolution): Ignore vcproj projects in solutions
and issue warning.
2009-04-27 Ankit Jain <[email protected]>
* xbuild/Microsoft.VisualBasic.targets: Update to use
CreateVisualBasicManifestResourceName task, and fix compiler params.
2009-04-25 Daniel Nauck <[email protected]>
Fix bug #484649:
* LoggerInfo.cs: fixed the parsing of the /logger: argument as described in
http://msdn.microsoft.com/en-us/library/ms164311.aspx
Added logger class detection if it's not explicit specified in the argument.
2009-03-19 Ankit Jain <[email protected]>
Fix bug #484773.
* Main.cs (Execute): Check whether the project file exists or not.
* Parameters.cs (ParseArguments): Handle absolute paths too.
2009-03-13 Ankit Jain <[email protected]>
* Main.cs (Execute): Build the project/sln with current directory set to
the project file's dir.
* SolutionParser.cs (ParseSolution): Project paths are relative to
solution directory.
2009-03-06 Ankit Jain <[email protected]>
Fix bug #481336.
* SolutionParser.cs (AddWarningForMissingProjectConfiguration): New.
(AddProjectTargets): Emit warning for missing project configurations.
2009-02-26 Ankit Jain <[email protected]>
* xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
ManifestNonResxWithCultureOnDisk instead of ManifestResourceWithNoCultureOnDisk.
2009-02-26 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Make targets extensible. Add
before/after hooks.
2009-02-25 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Use obj/$(Config) as the default intermediate
output path, instead of just obj/
2009-02-25 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets (CopyNonResxEmbeddedResources): New.
(GenerateSatelliteAssemblies): Update to use the new ManifestNonResxWithCultureOnDisk
instead of NonResxWithCulture.
* xbuild/Microsoft.CSharp.targets (Csc): Fix "Resources" argument to use
the new on disk file names instead of original filenames.
2009-02-25 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets (GetTargetPath): Add a path separator.
2009-02-25 Ankit Jain <[email protected]>
* SolutionParser.cs (ParseSolution): Report warning instead of error
for unknown global sections.
2009-02-21 Ankit Jain <[email protected]>
* xbuild/xbuild.rsp: Add descriptive comments.
2009-02-21 Ankit Jain <[email protected]>
* Parameters.cs (LoadResponseFile): Handle comments.
2009-02-20 Ankit Jain <[email protected]>
* SolutionParser.cs (ParseSolution): Ignore solution folders.
2009-02-20 Ankit Jain <[email protected]>
* SolutionParser.cs (ParseSolution): Ignore GlobalSection named
'NestedProjects'.
2009-02-20 Ankit Jain <[email protected]>
* SolutionParser.cs (ParseProjectConfigurationPlatforms): Report missing
project guids as Warnings and not errors. Report every missing guid only
once.
2009-02-20 Ankit Jain <[email protected]>
* SolutionParser.cs (projectRegex): Use '\s' to match whitespace.
2009-02-19 Jonathan Chambers <[email protected]>
* xbuild.csproj: Add.
* xbuild.sln: Add.
2009-02-13 Jonathan Chambers <[email protected]>
* SolutionParser.cs: Make Guid Regex case insensitive.
Handle project dependencies. The solution has explicit
dependencies, but we have to open projects for implicit
dependencies (via ProjectReferences).
2009-02-13 Jonathan Chambers <[email protected]>
* Main.cs: Add support for .sln files.
* SolutionParser.cs: Class for generating project file
from solution file.
* xbuild.exe.sources: Added SolutionParser.cs.
2009-02-02 Ankit Jain <[email protected]>
* Microsoft.CSharp.targets: Add targets to generate resource ids.
* Microsoft.Common.targets: Add targets for generating resources,
generate and deploy satellite assemblies, resolve project and assembly
references. All intermediate build output goes into a 'obj/' dir by
default. 'Clean' target enabled.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-05-29 Ankit Jain <[email protected]>
* TestMessageLogger.cs: Add counts for project/build start/finish
events.
2009-04-27 Ankit Jain <[email protected]>
* CreateVisualBasicManifestResourceNameTest.cs: New.
2009-03-03 Ankit Jain <[email protected]>
* CscTest.cs (DefineConstants): Add some extra semi-colons,
that should get removed on output.
(DefineConstants2): New. Test effectively empty define constants.
2009-02-25 Ankit Jain <[email protected]>
* CreateCSharpManifestResourceNameTest.cs (CheckResourceNames):
Refactor a bit to improve error reporting.
Update to use Path.Combine instead of hardcoding "\".
2009-02-24 Ankit Jain <[email protected]>
* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
* TaskBatchingTest.cs: .. here. Track api change.
2009-02-21 Ankit Jain <[email protected]>
* CopyTest.cs: New.
2009-01-31 Ankit Jain <[email protected]>
* TaskBatchingTest.cs (*): Add tests for target/task events.
(TestTargetBatching*): New tests for target batching.
* TestMessageLogger.cs: Add counts for target/task started/finished
events.
(NormalMessageCount): New.
In class/Microsoft.Build.Tasks/Test/resources:
2009-04-27 Ankit Jain <[email protected]>
* Sample.vb: New.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-04-27 Ankit Jain <[email protected]>
* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Move
to ..
* CreateManifestResourceName.cs: .. here.
* CreateVisualBasicManifestResourceName.cs: Implement.
2009-04-27 Ankit Jain <[email protected]>
* Vbc.cs (AddResponseFileCommands): Escape DefineConstants as it can
contain double quotes itself. Fix /doc switch.
(EscapeDoubleQuotes): New.
2009-03-22 Daniel Nauck <[email protected]>
* GenerateResource.cs: Set BasePath property of
ResXResourceReader class.
See: http://lists.ximian.com/pipermail/mono-devel-list/2009-March/031459.html
2009-03-19 Ankit Jain <[email protected]>
Fix bugs #323833 and #484384.
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.
2009-03-03 Ankit Jain <[email protected]>
Fix bug #480856.
* Csc.cs (AddResponseFileCommands): Split DefineConstants on ';'.
2009-02-26 Ankit Jain <[email protected]>
* MakeDir.cs (Execute): Don't create+log if dir already exists.
2009-02-25 Ankit Jain <[email protected]>
* AL.cs (Execute): Use ToolTask.Execute instead of doing our own.
2009-02-25 Ankit Jain <[email protected]>
* AssemblyResolver.cs:
* ResolveAssemblyReference.cs: Honor SpecificVersion. Emit detailed error
messages incase assembly resolution fails. Make specific version
strict.
2009-02-25 Ankit Jain <[email protected]>
* ManagedCompiler.cs (AddResponseFileCommands): Use LogicalName for
embedded resources, wherever available.
* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Use
Path.Combine instead of hardcoding "\".
2009-02-25 Ankit Jain <[email protected]>
* MSBuild.cs (Execute): Reset current directory back after every
project's execution.
2009-02-21 Ankit Jain <[email protected]>
Fix bug #458916.
* Copy.cs: CopiedFiles and DestinationFiles should have target paths
instead of source. Also, the metadata should get retained from source
items. Based on a patch by Jeffrey Richardson <[email protected]>
Refactor a bit to remove code duplication.
2009-02-21 Ankit Jain <[email protected]>
* MSBuild.cs (SplitPropertiesToDictionary): Split into exactly 2 parts.
2009-02-11 Leszek Ciesielski <[email protected]>
* ResolveAssemblyReference.cs : AllowedRelatedFileExtensions stub
2009-02-02 Ankit Jain <[email protected]>
* MSBuild.cs (Execute): Disable incorrect 'rebaseOutputs' behavior.
2009-02-02 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Honor SearchPaths and the special
items like '{HintPathFromItem}', '{TargetFrameworkDirectory}' etc.
* AssemblyResolver.cs: Add api for more specific search, like search
in a directory, target frameworks, gac etc.
2009-02-01 Ankit Jain <[email protected]>
* CallTarget.cs: Copy all items from target to TargetOutputs.
2009-02-01 Ankit Jain <[email protected]>
* Csc.cs (AddResponseFileCommands):
* ManagedCompiler.cs (AddResponseFileCommands): 'AddModules' and
'AdditionalLibPaths' can be empty.
2009-01-30 Ankit Jain <[email protected]>
* Copy.cs (Execute): Use for loop instead of enumerators.
sourceFiles and destinationFiles can be null, handle that.
Create new directory if required.
2009-01-27 Ankit Jain <[email protected]>
* Delete.cs (Execute): Skip non-existant files.
In class/Microsoft.Build.Tasks:
2009-05-14 Ankit Jain <[email protected]>
Fix tests on monobuild
* Makefile (EXTRA_DISTFILES): Add Test/resources/Sample.vb
2009-04-28 Raja R Harinath <[email protected]>
* Makefile (NAME_SUFFIX): New.
(LIBRARY_NAME): Use it.
(TEST_MCS_FLAGS): Don't mention name of library. Use NAME_SUFFIX
as appropriate when referring to other msbuild dlls.
2009-04-27 Ankit Jain <[email protected]>
* Microsoft.Build.Tasks_test.dll.sources: Added
CreateVisualBasicManifestResourceNameTest.cs .
2009-04-25 Jonathan Chambers <[email protected]>
* Makefile: Adjust assembly name for 3.5 profile.
2009-02-21 Ankit Jain <[email protected]>
* Microsoft.Build.Tasks_test.dll.sources: Added CopyTest.cs
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-05-29 Ankit Jain <[email protected]>
* EngineTest.cs (TestGlobalProperties*): New tests
and some helper methods.
* ProjectTest.cs (TestResetBuildStatus): Reset twice. Update
the event counts.
2009-05-15 Marek Sieradzki <[email protected]>
* BuildItemTest.cs:
* BuildPropertyGroupTest.cs:
* BuildPropertyGroupCollectionTest.cs:
* BuildPropertyTest.cs:
* BuildItemGroupTest.cs:
* EngineTest.cs:
* InternalLoggerExceptionTest.cs:
* ProjectTest.cs: Don't compare exception messages.
2009-05-12 Ankit Jain <[email protected]>
* ProjectTest.cs (TestAssignment1):
* UsingTaskTest.cs (TestTaskName):
(TestAssemblyNameOrAssemblyFile1):
(TestAssemblyNameOrAssemblyFile2): Don't compare exception messages.
2009-03-27 Jonathan Chambers <[email protected]>
* BuildChooseTest.cs: Enable tests.
* Microsoft.Build.Engine.Test.csproj: Update post build step.
2009-03-26 Jonathan Chambers <[email protected]>
* BuildTaskTest.cs (TestTaskInNamespace): Add test for Task in namespace.
2009-02-24 Ankit Jain <[email protected]>
* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
(TestAssemblyNameOrAssemblyFileConditionFalse): New.
(TestDuplicate1): New.
* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
use that.
2009-02-15 Jonathan Chambers <[email protected]>
* BuildChooseTest.cs (TestValueXml): Add tests for Choose.
Currently not working.
2009-02-12 Jonathan Chambers <[email protected]>
* BuildPropertyTest.cs (TestValueXml): New.
2009-02-01 Ankit Jain <[email protected]>
* ProjectTest.cs (TestBuild[23]): Check number of task started/finished
events.
(TestResetBuildStat): Remove "NotWorking".
(TestBuild4): Likewise. Check number of task started/finished events.
* TargetTest.cs (TestTargetOutputs1): New.
2009-01-30 Ankit Jain <[email protected]>
* ProjectTest.cs (TestRequiredTask_*): New.
(TestBatchedMetadataRef5): New.
2009-01-29 Ankit Jain <[email protected]>
* BuildItemTest.cs (TestBuildItemTransform): New.
In class/Microsoft.Build.Engine/Test/various:
2009-05-29 Ankit Jain <[email protected]>
* Conditions.cs (TestHasTrailingSlash1): New.
(TestUnknownFunction): New.
2009-05-15 Marek Sieradzki <[email protected]>
* Items.cs
* Conditions.cs: Don't check exception messages.
2009-02-23 Ankit Jain <[email protected]>
* Items.cs (TestItemsInTarget8): New.
(TestItemsInTarget9): New.
2009-02-20 Ankit Jain <[email protected]>
* Conditions.cs (TestCondition11): New. Test unquoted item/property
references in conditions.
In class/Microsoft.Build.Engine/Test/resources:
2009-03-26 Jonathan Chambers <[email protected]>
* TestTasks.cs (NamespacedOutputTestTask): New.
2009-02-24 Ankit Jain <[email protected]>
* TestTasks.cs (Another.SameTask): New.
(Other.SameTask): New.
2009-01-30 Ankit Jain <[email protected]>
* TestTasks.cs (RequiredTestTask): Rename to ..
(RequiredTestTask_TaskItems): .. this.
(RequiredTestTask_*): New types.
2009-01-29 Ankit Jain <[email protected]>
* TestTasks.cs (BatchingTestTask.TaskItemsOutput): New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-05-29 Ankit Jain <[email protected]>
Correctly handle global properties. Correctly log
project/build events.
* BuildPropertyGroup.cs (Clone): Implement.
* Engine.cs (globalProperties): Rename to ..
(global_properties): .. this.
(currentlyBuildingProjectsStack): New. Used to correctly
log and raise project/build start/finish events.
(BuildProjectFile): Override any project global properties
with explicitly specified ones, here in the param @globalProperties.
Mark project for reevaluation, which will update the engine's
global properties also.
Reset both engine and project's old global properties at the end.
(UnregisterAllLoggers): Log build finished only if we are currently
building.
(StartBuild): Rename to ..
(StartProjectBuild): .. this. Keeps track of the projects being built
in the new stack, and logs project and build events accordingly.
(EndProjectBuild): New. Uses the stack to keep track of projects
finishing builds, and raises project and build events accordingly.
(LogProjectStarted): Move here from Project.cs
(LogProjectFinished): Likewise.
* Project.cs (Build): Log start of project build.
Set current directory to the project file's dir, and reset at end.
(BuildInternal): Don't log here, its done in Build.
(BuildTarget): Already built targets are keyed by the set of global
properties that they were built with.
(GlobalPropertiesToString): New.
(ResetBuildStatus): 'building' must be true to allow built targets to be reset.
(RemoveBuiltTargets): Initialize builtTargetKeys in .ctor
(Evaluate): Remove built targets only if we are currently building and
build settings are None.
Merge project's global properties with those of the parent engine.
Add missing properties from engine's global properties.
(LogTargetSkipped): Fix format string, add the reqd argument.
2009-05-29 Ankit Jain <[email protected]>
* ConditionFunctionExpression.cs: Add 'HasTrailingSlash' function.
(HasTrailingSlash): New.
2009-05-12 Ankit Jain <[email protected]>
* Project.cs (.ctor): Init timeOfLastDirty.
2009-05-05 Miguel de Icaza <[email protected]>
* Contribution from Martin Brenn to fix#498154.
2009-04-27 Ankit Jain <[email protected]>
Fix bug #497839.
* Engine.cs (BuildProjectFile): Set project's GlobalProperties to the
one passed as argument.
2009-04-27 Ankit Jain <[email protected]>
* TaskEngine.cs (Prepare): Emit a useful error message property value
can't be converted to required type.
2009-04-27 Ankit Jain <[email protected]>
* ExpressionCollection.cs (ConvertToObject): Allow true/on/yes
as valid true values for bool, and corresponding for false.
2009-03-27 Jonathan Chambers <[email protected]>
* BuildWhen.cs: Add basic implementation.
* BuildChoose.cs: Add basic implementation.
* BuildItem.cs (AddEvaluatedItem): Add BuiltItem to
EvaluatedItemsIgnoringCondition.
* GroupingCollection.cs: Add evaluation of BuildChoose items.
2009-03-26 Jonathan Chambers <[email protected]>
* TaskDatabase.cs (RegisterTask): Search for class by name
if task was not found using GetType (which uses namespace).
2009-02-26 Ankit Jain <[email protected]>
* Target.cs: Handle target with no tasks. Log errors.
2009-02-24 Ankit Jain <[email protected]>
Lazily load UsingTask tasks.
* UsingTask.cs (Evaluate): Register 'this' with task database,
but don't load it yet. Register only if condition evaluates to true.
Move the load logic to ..
(Load): .. here. Register with the specified task database.
* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
in a table keyed by task name, but don't load it yet.
(GetTypeFromClassName): Try to load UsingTask if task is not already
loaded. Move loading logic to ..
(GetTypeFromClassNameInternal): .. here.
(CopyTasks): Copy the usingTasks table also.
2009-02-23 Ankit Jain <[email protected]>
* BuildItem.cs (AddMetadata): Allow overwriting older values.
2009-02-22 Ankit Jain <[email protected]>
* BuildItem.cs: Iterate over XmlElements childnodes with XmlNode
instead of XmlElement. Eg. XmlComment
2009-02-21 Ankit Jain <[email protected]>
* Utilities.cs (FromMSBuildPath): Copy from monodevelop.
* Project.cs (Load): Use FromMSBuildPath on the path.
(InitializeProperties): Set "MSBuildToolsPath" also.
2009-02-20 Ankit Jain <[email protected]>
Fix#449683.
* ConditionTokenizer.cs: Handle unquoted item references (with or w/o
transforms) in conditions.
* ConditionParser.cs: Parse unquoted item, property references.
eg. Condition = " @(Foo->'%(Extension)') == '.exe' "
* Token.cs (Token.ToString): Override.
(TokenType.Transform): Uncomment.
2009-02-12 Jonathan Chambers <[email protected]>
* BuildProperty.cs: Value corresponds to XmlElement.InnerXml
no XmlElement.InnerText. This allows properties to be additional
xml elements.
2009-02-01 Ankit Jain <[email protected]>
* BuildEngine.cs (BuildProjectFile): Use
BuildSettings.DoNotResetPreviouslyBuiltTargets for building projects.
* Engine.cs (BuiltTargetsOutputByName): New. Table of targets already
built. Move logging of project start/finish to ..
* Project.cs: .. here. Build a target only if hasn't been built already.
Keep track of target outputs, and return those even if an already built
target has been invoked again.
Honor BuildSettings.None and DoNotResetPreviouslyBuiltTargets .
2009-01-31 Ankit Jain <[email protected]>
* BatchingImpl.cs: Split into ..
* BatchingImplBase.cs: .. this,
* TaskBatchingImpl.cs: .. this ..
* TargetBatchingImpl.cs: .. and this. Implement target batching here.
* Target.cs (DoBuild): Use TargetBatchingImpl for building.
(Log*): Move to TargetBatchingImpl .
(BuildTasks): New.
(Engine): New.
2009-01-30 Ankit Jain <[email protected]>
* TaskEngine.cs (GetObjectFromString): Empty value is allowed only for
arrays.
2009-01-29 Ankit Jain <[email protected]>
* BuildItem.cs (child_items): Change type from BuildItemGroup to
List<BuildItem>.
(HasParent): Rename to ..
(HasParentItem): .. this.
(ParentItemGroup): Add setter.
* BuildItemGroup.cs (.ctor): Add overload with @project param.
(AddNewItem):
(AddItem): Correctly set the ParentItemGroup for new build items.
(ParentProject): Add setter.
* Project.cs: Set the project for new BuildItemGroup instances.
* TaskEngine.cs (PublishItemGroup): Likewise.
In class/Microsoft.Build.Engine:
2009-02-21 Ankit Jain <[email protected]>
* Import.cs (GetFullPath): Use Utilities.FromMSBuildPath .
2009-02-19 Jonathan Chambers <[email protected]>
* Microsoft.Build.Engine.csproj: Add.
* Microsoft.Build.Engine.Test.csproj: Update.
2009-01-31 Ankit Jain <[email protected]>
* Microsoft.Build.Engine_test.dll.sources: Replace BatchingImpl.cs with
BatchingImplBase.cs, TargetBatchingImpl.cs and TaskBatchingImpl.cs
In class/Microsoft.Build.Utilities:
2009-04-25 Jonathan Chambers <[email protected]>
* Makefile: Adjust assembly name for 3.5 profile.
2009-02-25 Ankit Jain <[email protected]>
* Microsoft.Build.Utilities.dll.sources: Add ProcessService.cs,
ProcessWrapper.cs, IAsyncOperation.cs and IProcessAsyncOperation.cs
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-04-24 Ankit Jain <[email protected]>
* ToolTask.cs (RealExecute): Handle TypeLoadExceptions, compiler
crashes and report them. Borrow some tricks from md.
(LogEventsFromTextOutput): Ignore known non-error messages. Don't
log unknown lines, crashes get handled elsewhere.
2009-04-08 Ankit Jain <[email protected]>
Fix bug #491828.
* ToolTask.cs (LogEventsFromTextOutput): Log even in case of
unrecognized errors.
2009-02-25 Ankit Jain <[email protected]>
* ProcessService.cs, IAsyncOperation.cs, IProcessAsyncOperation.cs,
ProcessWrapper.cs: Brought in from monodevelop.
* ToolTask.cs: Use the new ProcessService to execute the tool. Honor
SkipTaskExecution (). Use response files, but log the contents of the
response file instead of "@foo.rsp". Support environmentOverrides.
(LogEventsFromTextOutput): Add null check.
* Exec.cs (GetWorkingDirectory): Use the workingDirectory property.
2009-02-20 Ankit Jain <[email protected]>
Fix bug #475438.
* ToolTask.cs (RealExecute): Check whether the target executable exists.
Log any execution errors.
svn path=/branches/mono-2-4/mcs/; revision=135336
* OracleParameterTest.cs: Mark tests for bug #424908 as NotWorking
as it requires some more thorough debugging.
svn path=/branches/mono-2-4/mcs/; revision=135315
* HttpConnection.cs: unbind the context after every read for keep-alive
connections.
Bug #502274 fixed.
svn path=/branches/mono-2-4/mcs/; revision=135242
* OracleParameter.cs: If a non-zero size is passed, update
the size member but sizeSet is updated only when a non-null
value is passed.
svn path=/branches/mono-2-4/mcs/; revision=135236
* BuildManager.cs: allow deployment of precompiled applications under
any virtual path, not just the default one used when precompiling.
Fixes bug #483268.
svn path=/branches/mono-2-4/mcs/; revision=135232
* marshal.c (mono_marshal_get_runtime_invoke): Emit the right kind
of ldind opcode for generic instances so we don't fail for direct wrappers.
Fixes#508538.
svn path=/branches/mono-2-4/mono/; revision=135138
* collection.c (_wapi_collection_init): If pthread_create() fails,
try again with larger and then with no stack size set. Fixes
#470336.
Backport of r134985.
svn path=/branches/mono-2-4/mono/; revision=134986
Backport of r134810.
* icall.c (ves_icall_Type_GetMethodsByName): Virtual methods should be
discarded based on their most specific definition so we set the method_slots
array before checking if the method is acceptable or not.
Fixes#506757.
svn path=/branches/mono-2-4/mono/; revision=134944
Backport of r134723.
* class.c (mono_class_setup_fields): Don't mark simd types as having
16 bytes alignment as the whole runtime doesn't support.
svn path=/branches/mono-2-4/mono/; revision=134724
Backport of r134713/134715.
* basic.cs: Add regression test for #506915.
* method-to-ir.c (mono_method_to_ir): When doing the ldobj+stobj
optimization we must check the bb of the first byte of stobj as
it's the only one set in cil_offset_to_bb.
Fixes#506915.
svn path=/branches/mono-2-4/mono/; revision=134719
Backport of r134536.
* mini-x86.c (mono_arch_emit_call): The decompose code now supports
decomposing 8 bytes structs into a LCALL.
* mini-x86.c (emit_move_return_value): We no longer push the vtype
pointer for where to store the returned regs.
* decompose.c (mono_decompose_vtype_opts): Fix the comment to properly
state the concern.
Fixes#471747, #471751 and #4734530 (in fact, it's a bunch of dups).
svn path=/branches/mono-2-4/mono/; revision=134538
A fix for bug #504667
* class.cs: Check for static class using parent container instead of
parent type.
svn path=/branches/mono-2-4/mcs/; revision=134524
A fix for bug #495112
* class.cs (IsUnmanagedType): Handle recursive unmanaged types using
local cache.
svn path=/branches/mono-2-4/mcs/; revision=134522
Backport of r134470.
* local-propagation.c (mono_local_cprop): Avoid local propagation
across paired add/sub if the first instruction dest reg is it's
source reg. For example:
int_add_imm R12 <- R12 [1] clobbers: 1
int_sub_imm R42 <- R12 [1] clobbers: 1
The cprop pass would wrongly const prop + 1 to int_sub_imm which doesn't
maintain the math identify.
Fixes#505375.
svn path=/branches/mono-2-4/mono/; revision=134472
* RouteCollection.cs: when there is no named route, try the current
route before going through the list. The known values (default or
not) for the current route are merged with the values provided when
attempting to match.
Example:
Html.RouteLink ("Text", new { page = 5 });
when the current path is /some/path-here and the route is:
routes.MapRoute("RouteName", "some/{one}-{two}/{page}",
new { controller = "Some", action = "Index", page = 1});
svn path=/branches/mono-2-4/mcs/; revision=134273
** Fixes#325464 - ToolItems.xsd
* CustomDataClassGenerator.cs (CreateDataSetTableMembers): Prefix a "_" to
member names when it is same as that of the dataset. Fixes the CS0542 error
during compilation of the generated source.
svn path=/branches/mono-2-4/mcs/; revision=134264
** Fixes#424908
* OracleParameter.cs: Make sure size and sizeSet are properly
updated whenever value changes.
svn path=/branches/mono-2-4/mcs/; revision=134194
** Fixes rest of #497715 - Patch by Jonas Larsson <[email protected]>
* TdsMetaParameter.cs: Add support for XML type. For now, handle
XML type as just NVarchar.
backport of r134079
svn path=/branches/mono-2-4/mcs/; revision=134080
* UrlPattern.cs: if the pattern is line {a}/{b} and {b} is substituted
by an empty string, remove the '/' too.
svn path=/branches/mono-2-4/mcs/; revision=134027
* Dns.cs: made GetHostAddresses and friends internal for 1.x
* EndpointPermission.cs: use GetHostAddresses.
svn path=/branches/mono-2-4/mcs/; revision=133950
* UdpClient.cs: if possible, avoid DNS lookups when the host name is
an IP address. Related to bug #502866.
svn path=/branches/mono-2-4/mcs/; revision=133945
* CustomizableFileSettingsProvider.cs: make sure 'values' is
initialized in Reset(). Fixes bug #436592.
svn path=/branches/mono-2-4/mcs/; revision=133867
* DateTimePicker.cs: Add a UIA-specific property to ensure that if
is_checkbox_checked is changed, we won't break.
svn path=/branches/mono-2-4/mcs/; revision=133816
* DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers. Send
OnUIASelectionChanged when ShowCheckbox is true and the checkbox
recieves focus. Part of fix for #502029.
svn path=/branches/mono-2-4/mcs/; revision=133782
* Connection.cs: if the socket is already disconnected, Shutdown will
fail with a SocketException... Also, catch *all* the possible
exceptions since the socket.Close method could also throw
ObjectDisposedException.
Fixes bug #449092.
svn path=/branches/mono-2-4/mcs/; revision=133735
* src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
just saving it in a static variable. Also modified microseconds
calculation to avoid overflow.
svn path=/branches/mono-2-4/mono/; revision=133723
backport of r133710.
* XElement.cs (Load (XmlReader,LoadOptions)): prevent a NRE if
the provided XmlReader doesn't have existing settings.
Fixes#501589.
svn path=/branches/mono-2-4/mcs/; revision=133712
Backport of r133651.
* aot-compiler.c aot-runtime.c: Use our own hash function instead of
g_str_hash () which can change.
svn path=/branches/mono-2-4/mono/; revision=133654
* io-layer/events.c: fix event_signal and namedevent_signal to actually signal
the handle.
* metadata/icall-def.h:
* metadata/threads-types.h:
* metadata/threads.c: added internal call for WaitHandle.SignalAndWait.
svn path=/branches/mono-2-4/mono/; revision=133631
* Lease.cs: Don't use ArrayList.Remove() to remove sponsors because
it will end calling Equals, which may crash if the sponsor is not
available anymore. Just compare references.
svn path=/branches/mono-2-4/mcs/; revision=133623
* RealProxy.cs: If async dispatch crashes, don't propagate the
exception. The exception will be raised when calling EndInvoke.
svn path=/branches/mono-2-4/mcs/; revision=133622
* ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
fire OnDropDownOpened/OnDropDownClosed depending on the new
visibility. This also ensures that any direct access to this instance
will fire the mentioned events for the OwnerItem.
* ToolStripDropDownItem.cs: Remove the invocations to
OnDropDownOpened/OnDropDownClosed, since they are handled in
ToolStripDropDown, as well as updating the
OnDropDownHide/OnDropDownShow calls to be in the right order.
Fixes#496139.
svn path=/branches/mono-2-4/mcs/; revision=133554
* MaskedTextBox.cs: If Insert is pressed, change the internal
overwrite mode for our default value.
Fixes some bits of #477395.
svn path=/branches/mono-2-4/mcs/; revision=133552
* MaskedTextBox.cs: When setting Text use the very precise algorithm
that .net uses: iterate over every char of the new value, trying to
use every char, and use a normal call to MaskedTextProvider.Replace
call if RejectInputOnFirstFailure is true. Fire OnMaskInputRejected
in case of error in both cases, as well.
Fixes#477408.
svn path=/branches/mono-2-4/mcs/; revision=133551
* MaskedTextBox.cs: Handle OnKeyDown to properly process the Delete
key. Also create a new method to avoid code duplication between
OnKeyDown and OnKeyPress.
Fixes#477388.
svn path=/branches/mono-2-4/mcs/; revision=133550
* MaskedTextBox.cs: In OnKeyPress the IsOverwriteMode check is
actually inversed, so put it the right way. Also, don't automatically
look for the next editable item after adding a new one, but way for
the next insertion (this is what .net does) - this is not needed when
MaskedTextProvider.InsertAt is called however, since it already looks for the
next editable position.
Fixes the remaining bits of #477383.
svn path=/branches/mono-2-4/mcs/; revision=133549
* MaskedTextBox.cs: In OnKeyPress handle backspace by calling
MaskedTextProvider.RemoveAt method. Also for setting the SelectionStart
property after the text was modified, adjust the testPosition value
depending on what method was called.
Fixes part of #477383.
svn path=/branches/mono-2-4/mcs/; revision=133548
* Ping.cs: we just need the address(es), not a host entry. This avoids
querying the DNS server(s) when the target is an IP address.
svn path=/branches/mono-2-4/mcs/; revision=133460
* debug-debugger.c (debugger_insert_source_breakpoint): Don't call
mono_debugger_insert_method_breakpoint() since the class init
handler we're inserting at the top of the method already gives us
a notification.
svn path=/branches/mono-2-4/mono/; revision=133424
* Tds.cs (InitExec): Move initialization of state variables here. Useful
in case of asynchronous queries.
svn path=/branches/mono-2-4/mcs/; revision=133362
* Tds.cs (ExecuteQuery): Reset all the variables related to LoadData when
performing queries with SequentialAccess set to true. Fixes incorrect
handling of data retrieval when consecutive queries are run with
SequentialAccess set to true.
svn path=/branches/mono-2-4/mcs/; revision=133361
* Tds.cs (ExecuteQuery): Reset SequentialAccess read state variables
in order to avoid blocking forever when two consecutive queries are
executed with SequetialAccess set to true.
svn path=/branches/mono-2-4/mcs/; revision=133360
* SqliteConnection.cs: implement Dispose for 2.0. It was leaking an fd
in using().
Bug #499864 fixed.
svn path=/branches/mono-2-4/mcs/; revision=133255
* sockets.c: don't display a warning when connect() fails because the
socket was closed in another thread.
svn path=/branches/mono-2-4/mono/; revision=133032
* mini.c (mini_method_compile): Use TARGET_<ARCH> defines instead of
__<arch>__ defines in the JIT code.
svn path=/branches/mono-2-4/mono/; revision=132980
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/branches/mono-2-4/mcs/; revision=132947
* TdsConnectionPool.cs: if GetConnection() fails to create a
connection, try again several times and then throw. Improved
ResetConnectionPool() so that it does not immediately close
connections in use. Don't re-add connections that have been closed.
* Tds.cs: Connected tests the socket connection too. Made Disconnect()
not throw.
* TdsComm.cs: set more socket options (timeout and NoDelay) and have a
single entry point for reading from the stream.
svn path=/branches/mono-2-4/mcs/; revision=132940
2009-03-31 Martin Baulig <[email protected]>
* debug-debugger.c (debugger_remove_breakpoint): Call
mono_debugger_remove_class_init_callback ().
2009-03-31 Martin Baulig <[email protected]>
* mono-debug-debugger.c
(mono_debugger_register_class_init_callback): Also register the
class init callback if the class is already initialized to make
things work with shadow copied assemblies.
svn path=/branches/mono-2-4/mono/; revision=132891
* cominterop.c (ves_icall_System_Runtime_InteropServices_Marshal_ReleaseComObjectInternal):
changed to match .Net behaviour of not aborting on additional calls to ReleaseComObject.
svn path=/branches/mono-2-4/mono/; revision=132873
* ConsoleTraceListener.cs: add an internal constructor that takes a
string argument. Used when 'initializeData' is set.
* DiagnosticsConfigurationHandler.cs: try internal constructors when
the assembly is System.
Fixes bug #498853.
svn path=/branches/mono-2-4/mcs/; revision=132869
2009-04-25 Miguel de Icaza <[email protected]>
* StreamReader.cs (DataAvailable): New internal function to work
around the fact that StreamReaders are now blocking on Peek(), and
that our own Console.TermInfoDriver used Peek() as a way of
probing if there was data on a stream before to avoid blocking. o
2009-04-25 Miguel de Icaza <[email protected]>
* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
load all the data that was added into the `stdin' stream when we
did the `Read'.
svn path=/branches/mono-2-4/mcs/; revision=132671
Backport of r129367
* Convert.cs (ToType): Control whether this internal function will
call an IConvertible.ToType method or not.
Classes and structs implementing IConvertible in mscorlib (the
only callers that can access Convert.ToType) must pass false to
avoid a infinite recursion problem and callers from the public
Convert API must call it with true.
This fixes the regression reported in #485377 that was introduced
by the fix for #481687.
* Int16.cs, UInt64.cs, Double.cs, Enum.cs, SByte.cs, UInt16.cs,
Byte.cs, Decimal.cs, Int32.cs, String.cs, Int64.cs, Char.cs,
Boolean.cs, Single.cs, UInt32.cs: Update the call sites.
svn path=/branches/mono-2-4/mcs/; revision=132668
* threads.c (mono_thread_suspend_all_other_threads): Handle the case when
the a thread does not suspend within 100ms.
* monitor.c (mono_monitor_try_enter_internal): Handle SuspendRequested
in addition to StopRequested as well.
svn path=/branches/mono-2-4/mono/; revision=132494
* Microsoft.CSharp/CSharpCodeCompiler.cs:
* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
problem running the specified exec.
svn path=/branches/mono-2-4/mcs/; revision=132391
* method-to-ir.c (mono_method_to_ir): Force init_locals to be TRUE
to prevent asserts in various passes. Fixes#497220.
svn path=/branches/mono-2-4/mono/; revision=132365
* HttpSoapWebServiceHandler.cs: provide the full stack trace instead
of just the Message to aid in debugging web service problems.
Bug #496758 fixed.
svn path=/branches/mono-2-4/mcs/; revision=132336
**** Backport of r131819 ****
* MonoSymbolWriter.cs: Move `ISourceFile', `ICompileUnit' and
`IMethodDef' into MonoSymbolFile.cs. This allows us to use the
symbol reader part without MonoSymbolWriter.cs.
svn path=/branches/mono-2-4/mcs/; revision=131820
**** Backport of r131801 ****
* MonoSymbolTable.cs
(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
(LineNumberTable.DoRead): Ignore unknown extended opcodes if
they're within the Mono extension range.
svn path=/branches/mono-2-4/mcs/; revision=131806
**** Backport of r131800 ****
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Don't print a warning for
unknown extended opcodes if they're within 0x40 and 0x7f.
svn path=/branches/mono-2-4/mono/; revision=131803
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/branches/mono-2-4/mcs/; revision=131600
A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.
svn path=/branches/mono-2-4/mcs/; revision=131590
* include/private/gc_locks.h (GC_test_and_set): Merge a change from libgc
7.1's libatomic-ops to fix the ppc build with gcc 4.4.
svn path=/branches/mono-2-4/mono/; revision=131472
* BuildManager.cs: enabled recursion checking for page
targets. Also, if a built item is skipped because it has been
compiled recursively, add its assembly to the list of referenced
assemblies for the batch being currently compiled.
svn path=/branches/mono-2-4/mcs/; revision=131466
an improvement, but doesn't fix all problems. In particular, some
assemblies will depend upon other assemblies to load (e.g. 3rd party
assemblies) but these dependent assemblies shouldn't be documented.
Add support for -r:ASSEMBLY and -L:DIRECTORY arguments to allow the
user to manually add to the assembly search path so that assemblies
can be found. Assemblies added via -r will NOT be documented.
svn path=/branches/mono-2-4/mcs/; revision=131446
shared amongst all AssemblyDefinitions to resolve assembly/type
references with Cecil. Otherwise, if we have deeply nested
directories with cross-directory assembly dependencies, then Cecil
won't find the necessary assemblies (e.g. b/bin/Debug/b.dll has a
type which inherits from a/bin/Debug/a.dll -- here, we'll have two
separate AssemblyDefinitions, and when b.dll's AssemblyDefinition
tries to resolve types from a.dll, it fails).
See: http://lists.ximian.com/pipermail/mono-devel-list/2009-April/031646.html
svn path=/branches/mono-2-4/mcs/; revision=131366
* FtpWebRequest.cs: send REST after PASV to avoid some servers
forgetting aboout it.
Bug #491590 fixed.
svn path=/branches/mono-2-4/mcs/; revision=131181
A fix for bug #492329
* expression.cs (New): Load variable when assigning type parameter
to ref variable.
svn path=/branches/mono-2-4/mcs/; revision=131103
* AssemblyResourceLoader.cs: MS sets cacheability to public. Add
Last-Modified header and return 304 if validating max-age=0 or
If-Modified-Since succeeds.
svn path=/branches/mono-2-4/mcs/; revision=131054
backport of 130961.
* Enumerable.cs (Cast): fix for when casted enumerator is already
of the appropriate type.
svn path=/branches/mono-2-4/mcs/; revision=130962
backport of r130884 and r130886.
* Dictionary.cs (ValueCollection.CopyTo): fix for copying to
an object array. Based on a patch by Tobias Grimm <[email protected]>.
Fixes bug #328036.
svn path=/branches/mono-2-4/mcs/; revision=130887
* socket-io.c: don't fail if the SocketOptionsFlag has Partial or
* MaxIOVectorLength enabled, just ignore them.
Fixes bug #349688.
svn path=/branches/mono-2-4/mono/; revision=130614
* mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
a managed object which is later put into a GList. Return its class instead.
* mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
stack slots when using sgen.
svn path=/branches/mono-2-4/mono/; revision=130475
* marshal.c (mono_marshal_load_type_info): Fill out info->min_align.
(mono_class_native_size): Use klass->marshal_info->min_align instead of
klass->min_align, since klass->min_align contains the managed alignment,
while the native alignment can be different, like for longs on x86.
Fixes#469135.
* class-internals.h (MonoMarshalType): Add a min_align field.
svn path=/branches/mono-2-4/mono/; revision=130473
* appdomain.c:
* console-io.[ch]: added new mono_console_init() to make sure that
file descriptors 0, 1 and 2 are opened.
Bug #489019 fixed.
svn path=/branches/mono-2-4/mono/; revision=130425
* DefaultWsdlHelpGenerator.aspx: disable the test form
when only Soap is supported.
Bug #342073 fixed.
svn path=/branches/mono-2-4/mono/; revision=130401
* marshal.c (emit_marshal_object): Generate code to throw an exception
instead of throwing it. Fixes#488670.
Conflicts:
mono/metadata/ChangeLog
svn path=/branches/mono-2-4/mono/; revision=130259
stat.f_bavail * stat.f_frsize, NOT f_bavail*f_bsize, as on some
platforms (Solaris) bsize is the preferred block I/O size, while
f_frsize is the *actual* filesystem block size. Thus, to get proper
disk under Solaris, we need to s/f_bsize/f_frsize/g.
svn path=/branches/mono-2-4/mcs/; revision=130056
Backport of r129824.
* mini-amd64.c (mono_arch_compute_omit_fp): Add another check to avoid hitting
the stack_alloc_size < (1 << 16) assertion in emit_prolog ().
svn path=/branches/mono-2-4/mono/; revision=129825
Backport of r129461.
This patch is contributed under the terms of the MIT/X11 license
* Makefile.am (test_platform): Enable testbundle for ppc.
svn path=/branches/mono-2-4/mono/; revision=129463
Backport of r129460.
This patch is contributed under the terms of the MIT/X11 license
* mkbundle.cs (WriteSymbol): Use .p2align 5 instead of .align 32
to get consistent results on all platforms.
svn path=/branches/mono-2-4/mcs/; revision=129462
r129416:
- When checking if an elf file is valid, avoid mapping it in
memory until we know it's usable (avoids virtual memory
fragmentation issues).
- Correctly handle duplicated entries in /proc/self/maps.
svn path=/branches/mono-2-4/mono/; revision=129418
* appdomain.c: if the assembly name is a shadow-copied file, return
TRUE from mono_is_shadow_copy_enabled but don't actually do anything
in mono_make_shadow_copy.
* icall.c: if the assembly name is a shadow-copied file, replace it
with the original assembly path.
Bug #484244 fixed. NUnit tests for corlib can be run without
--noshadow now.
svn path=/branches/mono-2-4/mono/; revision=129214
* appdomain.c: if the assembly name is a shadow-copied file, return
TRUE from mono_is_shadow_copy_enabled but don't actually do anything
in mono_make_shadow_copy.
* icall.c: if the assembly name is a shadow-copied file, replace it
with the original assembly path.
Bug #484244 fixed. NUnit tests for corlib can be run without
--noshadow now.
svn path=/branches/mono-2-4/mono/; revision=129212
2009-03-12 Dean Brettle <[email protected]>
* nBrowser/Build.cs: made Browser() method thread-safe and moved the
actual tree creation to a private InitializeTree() method for clarity.
svn path=/branches/mono-2-4/mcs/; revision=129179
* InotifyWatcher.cs: don't send events when a directory is created
unless it matches the pattern. Fixes bug #484082.
svn path=/branches/mono-2-4/mcs/; revision=129113
Backport of r128849 + r128490.
* domain-internals.h (struct _MonoDomain): Add new hash tables mapping
between GCHandles of type WeakTrackResurrection and the objects they
point to.
* gc.c: Partly implement the sematics of GCHandles of type
WeakTrackResurrection: these handles should only be cleared after the
finalizer of the object they are pointing to has ran.
* domain-internals.h (struct _MonoDomain): Add a separate lock for the
finalize_objects_hash.
* gc.c: Use the separate lock to access the finalize_objects_hash field.
svn path=/branches/mono-2-4/mono/; revision=129104
* mini-x86.c (mono_arch_output_basic_block): Use different
registers in case the ones we want to overwrite are used by the
other operand. Fixes regression in #480807.
Backport of r129058.
svn path=/branches/mono-2-4/mono/; revision=129064
Backport of r129009.
* reflection.c (ensure_complete_type): New helper function to call
type resolve handlers for unfinished dynamic types.
(resolve_object): Call it for MonoClassFields. Fixes#483852.
svn path=/branches/mono-2-4/mono/; revision=129010
Backport of r128924.
* mini-s390x.c: Fix support for vtypes whose addresses are passed on the
stack.
svn path=/branches/mono-2-4/mono/; revision=128926
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c: Correct handling of OP_LOADI4_MEMINDEX for ppc64.
Fixes#483462.
Backport of r128904.
svn path=/branches/mono-2-4/mono/; revision=128905
* mini-trampolines.c (mono_create_jump_trampoline): If the method
is shared generic code, return the trampoline, even if the method
has already been compiled. Fixes#479763.
* mini.c, mini.h: New function
mono_jit_find_compiled_method_with_jit_info() which is the same as
mono_jit_find_compiled_method() but also returns the jit info.
Backport of r128723.
2009-03-09 Mark Probst <[email protected]>
* generic-sharing.c (instantiate_other_info): Always return a jump
trampoline for method code.
Backport of r128723.
2009-03-09 Mark Probst <[email protected]>
* bug-479763.2.cs: New test.
* Makefile.am: Test added.
Backport of r128723.
svn path=/branches/mono-2-4/mono/; revision=128903
* class.cs: Use correct common base type for unmanaged delayed
check.
* rootcontext.cs: Wrap unhandled exception.
svn path=/branches/mono-2-4/mcs/; revision=128854
* ResourceSet.cs: for custom resource sets without a reader, pretende
that's we've already read the stream.
svn path=/branches/mono-2-4/mcs/; revision=128815
* arm/tramp.c: Include a change from the debian patches. Avoid #include-ing
a file in the middle of a function.
svn path=/branches/mono-2-4/mono/; revision=128784
* method-to-ir.c (mono_method_to_ir): Only force the vtable var
for methods which actually have one. For all other methods, make
sure the this argument var is live the whole method.
* mini.c (mini_method_compile): Every shared method has a
this/vtable/mrgctx info. Fixes#480807.
Backport of r128720.
svn path=/branches/mono-2-4/mono/; revision=128724
* mono.def : Removing missing methods to remove link errors for
MSVC build.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-4/mono/; revision=128712
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c, mini-ppc.h: Implement TLS for PPC64.
Backport of r127060.
2009-03-05 Mark Probst <[email protected]>
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mono-compiler.h: MONO_THREAD_VAR_OFFSET for PPC(64).
Backport of r127060.
svn path=/branches/mono-2-4/mono/; revision=128711
2009-03-04 Martin Baulig <[email protected]>
* debug-mini.c: Clean up the exception API and add documentation.
(mono_debugger_handle_exception): New public method; this is
called when throwing an exception or encountering an unhandled one.
(mono_debugger_call_exception_handler): Formerly known as
mono_debugger_handle_exception(); this is used to tell the
debugger that we're about to invoke an exception handler.
svn path=/branches/mono-2-4/mono/; revision=128614
2009-03-04 Martin Baulig <[email protected]>
* debug-mini.c (mono_debugger_runtime_invoke): Moved here from
../metadata/mono-debug-debugger.c; save and reset exception state.
2009-03-02 Martin Baulig <[email protected]>
* debug-mini.c: Moved the debugger exception handling here from
../metadata/mono-debug-debugger.c.
* debug-mini.h
(MonoDebuggerExceptionAction): New exception typedef.
* debug-mini.c
(MonoDebuggerThreadInfo): Added `MonoObject *last_exception'.
* exceptions-amd64.c
(mono_amd64_throw_exception): Use the new debugger exception
handling code.
* mini-exceptions.c
(mono_handle_exception_internal): Don't call
mono_debugger_unhandled_exception() here.
2009-03-04 Martin Baulig <[email protected]>
* mono-debug.h
(mono_debugger_runtime_invoke): Removed.
* mono-debug-debugger.c
(mono_runtime_invoke): Moved into ../mini/debug-mini.c.
2009-03-02 Martin Baulig <[email protected]>
* mono-debug.h
(mono_debugger_unhandled_exception): Removed.
(mono_debugger_handle_exception): Removed.
(mono_debugger_throw_exception): Removed.
* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 1.
* mono-debug.c
(mono_debug_debugger_version): Bump to 5.
* mono-debug-debugger.c: Moved the exception handling code to
../mini/debug-mini.c
svn path=/branches/mono-2-4/mono/; revision=128613
* method-to-ir.c: Don't inline methods that use JMP. Fixes
#481403.
Backport of r128552.
2009-03-04 Mark Probst <[email protected]>
* bug-481403.il: New test.
* Makefile.am: Test added.
Backport of r128552.
svn path=/branches/mono-2-4/mono/; revision=128560
* BaseParser.cs:
* PageParser.cs:
* ControlBuilder.cs:
* TemplateParser.cs:
* Page.cs:
* SimpleWebHandlerParser.cs: settings that have to be in
machine.config or the root level web.config now call
GetWebApplicationSection.
svn path=/branches/mono-2-4/mcs/; revision=128274
* Enum.cs (FindName): Use a hash table for looking up names instead of
a linear search for enums with a lot of values.
svn path=/branches/mono-2-4/mcs/; revision=128268
* Socket.cs: instead of clearing the sockets form the output and then
adding them back, we just remove the ones that have not been signaled.
Fixes bug #354090 and bug #476138.
svn path=/branches/mono-2-4/mcs/; revision=128260
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
2008-02-26 Rodrigo Kumpera <[email protected]>
* MonoProperty.cs (GetValue): Optimize getters for properties without arguments.
The optimization is to create a pair of chained delegates that duplicate the workings
on MethodBase::Invoke without all the aditional overhead and without doing two
managed/native transitions.
Simple Getter performance is up to 17x faster.
This patch reduces contention on domain and domain jit code hash locks, which
can be very hot on asp.net applications.
svn path=/branches/mono-2-4/mcs/; revision=128174
* appdomain.c: make the check to avoid copying when the assembly is
already shadow copied actually work.
svn path=/branches/mono-2-4/mono/; revision=128126
* WebConfigurationManager.cs: generate a hash from the string hsah
codes instead of concatenating them.
svn path=/branches/mono-2-4/mcs/; revision=128122
- s/TEST_FILES/MAN_TEST_FILES/g: $(TEST_FILES) is used by the normal
build process, so the local definition is lost (and thus ignored).
Result: Test/* isn't actually copied. Oops. Changing to
MAN_TEST_FILES allows things to be copied.
- Fix the filenames within $(MAN_TEST_FILES) so `make dist-local'
works without error.
- Fixes#479753.
svn path=/branches/mono-2-4/mcs/; revision=128120
* String.cs (FormatHelper): If all the arguments are strings, compute an
initial length for the stringbuilder to avoid reallocations.
svn path=/branches/mono-2-4/mcs/; revision=128116
Backport of r127929.
* Enum.cs (GetInfo): Add a global cache in addition to the thread-local
caches to accomodate short living threads like threadpool threads.
svn path=/branches/mono-2-4/mcs/; revision=127930
* DataGridViewCell.cs: Invalidate the datagrid when the cell is selected
or deselected.
[Fixes bug #479124]
svn path=/branches/mono-2-4/mcs/; revision=127893
backport of 127755.
* Expression.cs (IsNumber): actually decimal is rather a special
case, and not a primitive number.
svn path=/branches/mono-2-4/mcs/; revision=127756
Backport of r127665.
* tramp-ppc.c (mono_arch_create_trampoline_code): Store the
correct frame pointer in the LMF. Should fix#478394.
svn path=/branches/mono-2-4/mono/; revision=127666
* FtpWebResponse.cs: return a Null stream when there's no response to
be read.
* FtpWebRequest.cs: provide the error returned by the server in the
exception.
* WebClient.cs: set the correct method when doing a FTP upload.
Fixes bug #478451.
svn path=/branches/mono-2-4/mcs/; revision=127641
* marshal.c (mono_marshal_get_runtime_invoke): Fix _another_ bug sharing
runtime invoke wrappers, this time it is string ctor wrappers, which
pass a dummy string as 'this' instead of their obj argument. Fixes
#478473.
svn path=/branches/mono-2-4/mono/; revision=127638
* method-to-ir.c (mono_method_to_ir): Don't assert if string ctors
are called from runtime invoke wrappers.
svn path=/branches/mono-2-4/mono/; revision=127636
in System.Reflection:
2008-02-21 Jb Evain <[email protected]>
* Module.cs: add a new virtual GetModuleVersionId method,
and make the properties .MvId and ModuleVersionId call it.
This way, we can override it in ModuleBuilder.
Part of the fix for #471302.
in System.Reflection.Emit:
2008-02-21 Jb Evain <[email protected]>
* ModuleBuilder.cs: override GetModuleVersionId
so that we can get the module guid from Module.ModuleVersionId.
Part of the fix for #471302.
svn path=/branches/mono-2-4/mcs/; revision=127632
backport of r127628.
* MonoType.cs (InvokeMember): don't pass a null args to
Binder.BindToMethod. Fix for #471275.
svn path=/branches/mono-2-4/mcs/; revision=127629
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
method.
* System.Web/HttpResponseStream.cs: added support for writing from an
IntPtr. copied the memcpy method from String.cs.
* System.Web.Compilation/BuildManager.cs: updated comment.
* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
like a LiteralControl but will render itself from the bytes pointed to
by an IntPtr and not create any string from the underlying data unless
needed.
* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
that are used from the precompiled assemblies for a web project. The
most notable change needed is to be able to read a win32 resource from
the dll of the control. The resource is a concatenation of literals
with plain text for the control and a specialized LiteralControl is
generated from different chunks of the resource.
* System.Web.UI/HtmlTextWriter.cs: new method that returns the
HttpWriter in use.
* System.Web.dll.sources: added new file.
* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
win32 resource associated with the control's assembly.
svn path=/branches/mono-2-4/mcs/; revision=127580
* cil-coff.h:
* icall-def.h:
* icall.c: add new GetUnmanagedResourcePtr that returns a pointer to a
win32 resource loaded from a PE file.
* image.c: fix mono_image_lookup_resource.
svn path=/branches/mono-2-4/mono/; revision=127575
A fix for bug #477447
* statement.cs: Add reference to correct parent storey when this
is accessible from deep children storey (more than 1 level).
svn path=/branches/mono-2-4/mcs/; revision=127528
* DataGridViewCell.cs: Use strict equality comparison in order to
prevent superfluous CellValueChanged events.
svn path=/branches/mono-2-4/mcs/; revision=127452
* FtpWebRequest.cs: avoid errors when creating a temporary Uri to get
the local path.
* WebClient.cs: when setting up the request for downloading, use the
default method. Fixes bug #477611.
svn path=/branches/mono-2-4/mcs/; revision=127451
* DataGridView.cs: Do not reset the columns when the data list changes,
but only the rows. Fixes multiple bugs related to sorting, custom
column styles being reset and more.
svn path=/branches/mono-2-4/mcs/; revision=127435
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
* System.Web.Compilation/BuildManager.cs: initial support for
precompilation. No 'updatable', please.
svn path=/branches/mono-2-4/mcs/; revision=127353
Backport of r127347.
* marshal.c (mono_ftnptr_to_delegate): Convert a NULL ftnptr to a null
delegate. Fixes#477396.
svn path=/branches/mono-2-4/mono/; revision=127349
backport of r127279.
* marshal.c (cominterop_get_managed_wrapper_adjusted) :
Adding exception handling for all CCW calls.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-4/mono/; revision=127280
Backport of r127232.
* marshal.c (emit_marshal_boolean): Add null checks to the new
native->managed marshalling code. Fixes#476247.
svn path=/branches/mono-2-4/mono/; revision=127233
Backport of r125348.
* marshal.c (mono_marshal_get_runtime_invoke): Disable sharing for
methods taking vtype/byref arguments, to fix yet another bug caused by
the sharing of runtime invoke wrappers. Partly fixes#471259.
svn path=/branches/mono-2-4/mono/; revision=127080
Backport of r125349.
* marshal.c (mono_marshal_free_dynamic_wrappers): New function for
freeing wrappers of dynamic methods.
* loader.c (mono_free_method): Call it. Fixes#463323.
svn path=/branches/mono-2-4/mono/; revision=127076
Backport of r125349.
* marshal.c (mono_marshal_free_dynamic_wrappers): New function for
freeing wrappers of dynamic methods.
* loader.c (mono_free_method): Call it. Fixes#463323.
svn path=/branches/mono-2-4/mono/; revision=127075
Backport of r126958.
* reflection.c (clear_cached_object): New helper function.
(mono_method_clear_object): New function to clear the cached reflection
objects for a dynamic method.
* object.c (mono_runtime_free_method): Call mono_method_clear_object ().
Partly fixes # 463323.
svn path=/branches/mono-2-4/mono/; revision=127074
Backport of r126983 + r127069.
* ssa.c (visit_inst): Fix a crash if the instruction following a switch
was optimized away.
Backport of r126980.
* mini-x86.c (mono_arch_get_vcall_slot): Handle yet another
code sequence which matches a non-virtual call. Fixes#472654.
Backport of r124419.
* mini-amd64.c (mono_arch_get_vcall_slot): Handle yet another
code sequence which matches a non-virtual call.
svn path=/branches/mono-2-4/mono/; revision=127071
2009-02-16 Rodrigo Kumpera <[email protected]>
Backport of r127032.
* loader.c (method_from_memberref): Don't abort if the array
method is not found. A regular loader failure is more informative
and correct.
Fixes#474271.
svn path=/branches/mono-2-4/mono/; revision=127061
Backport of r125679.
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c (mono_arch_output_basic_block): Generate better code
for LOADI4_MEMBASE. Use addi instead of addic if it's not
necessary.
svn path=/branches/mono-2-4/mono/; revision=127059
Backport of r125676.
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* exceptions-ppc.c (mono_arch_get_restore_context): Code size
comparison fix.
* tramp-ppc.c (mono_arch_create_generic_class_init_trampoline):
The trampoline can be longer on PPC64.
svn path=/branches/mono-2-4/mono/; revision=127056
Backport of r125672.
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* mini-ppc.c: Compiler warning fixes and trivial code
simplifications.
svn path=/branches/mono-2-4/mono/; revision=127055
Backport of r125443.
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* ppc/ppc-codegen.h: Make operand order and case consistent
(assembler order) for ppc_load_reg_update, ppc_load_multiple_regs,
ppc_store_multiple_regs, ppc_lwz, ppc_lhz, ppc_lbz,
ppc_stw,ppc_sth, ppc_stb, ppc_stwu, ppc_lbzu, ppc_lfdu, ppc_lfsu,
ppc_lfsux, ppc_lfsx, ppc_lha, ppc_lhau, ppc_lhzu, ppc_lmw,
ppc_lwzu, ppc_stbu, ppc_stfdu, ppc_stfsu, ppc_sthu, ppc_stmw. Use
"i" or "ui" instead of "d" for immediated operands to immediate
arthimetic and logical instructions in macros ppc_addi, ppc_addis,
ppc_ori, ppc_addic, ppc_addicd, ppc_andid, ppc_andisd.
[__mono_ppc64__]: Make operand order and case consistent
(assembler order) for ppc_load_multiple_regs,
ppc_store_multiple_regs. Simplify the DS form and make them
consistent with D forms for ppc_load_reg, ppc_load_reg_update,
ppc_store_reg, ppc_store_reg_update. ppc_ld, ppc_lwa, ppc_ldu,
ppc_std, ppc_stdu. Define ppc_lwax and ppc_lwaux.
2009-02-16 Mark Probst <[email protected]>
Backport of r125443.
Contributed under the terms of the MIT/X11 license by Steven
Munroe <[email protected]>.
* exceptions-ppc.c (restore_regs_from_context): Correct operand
order (offset then base reg) for ppc_load_multiple_regs.
(emit_save_saved_regs) Correct operand order for
ppc_store_multiple_regs.
(mono_arch_get_call_filter): Correct operand order for
ppc_load_multiple_regs.
* mini-ppc.c (emit_memcpy): Fix operand order for
ppc_load_reg_update and ppc_store_reg_update.
(mono_arch_output_basic_block): Correct operand order for ppc_lha.
(mono_arch_emit_epilog): Correct operand order for
ppc_load_multiple_regs.
* tramp-ppc.c (mono_arch_create_trampoline_code): Correct operand
order for ppc_store_multiple_regs and ppc_load_multiple_regs.
svn path=/branches/mono-2-4/mono/; revision=127054
A fix for bug #475965
* generics.cs: Check generic parameter type after extracting from
Expression<T>.
svn path=/branches/mono-2-4/mcs/; revision=127041
Backport of r126897.
* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
convert it to an in32. Fixes#475859.
* arrays.cs: Add a test.
svn path=/branches/mono-2-4/mono/; revision=126900
Backport of r126737.
* mini-s390x.c (mono_arch_output_basic_block): Fix the shift amounts in
OP_LCONV_TO_U2.
* basic-long.cs: Add a test.
svn path=/branches/mono-2-4/mono/; revision=126742
Backport of r126738. This is a safer variant of the
trunk for the 2.4 branch. The default in emit_marshal_boolean
for this version is I1.
* object-internals.h : Fixing a typo in the
MonoReflectionComVisibleAttribute struct.
* marshal.c (cominterop_com_visible): Check the implemented
interfaces for ComImport.
* marshal.c (cominterop_get_native_wrapper_adjusted): For COM calls
assume that bools should be treated as VARIANTBOOLs.
* marshal.c (emit_marshal_boolean): Adding cases for
MARSHAL_ACTION_MANAGED_CONV_IN and MARSHAL_ACTION_MANAGED_CONV_OUT.
* marshal.c (mono_marshal_emit_managed_wrapper): Adding calls to
emit_marshal MARSHAL_ACTION_MANAGED_CONV_IN and OUT for bools.
* marshal.c (cominterop_get_ccw): For COM calls assume that bools
should be treated as VARIANTBOOLs.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-4/mono/; revision=126740
Backport of r126737.
* mini-s390x.c (mono_arch_output_basic_block): Fix the shift amounts in
OP_LCONV_TO_U2.
* basic-long.cs: Add a test.
svn path=/branches/mono-2-4/mono/; revision=126739
* generic-sharing.c: Fixed a locking bug: The loader lock has to
be taken before the templates lock. Fixes part of #473150.
svn path=/branches/mono-2-4/mono/; revision=126715
* io.c: EXDEV when moving directories fails now without creating a
file in the destination.
Fixes bug #326983.
svn path=/branches/mono-2-4/mono/; revision=126691
Backport of r126668.
* ssa.c (fold_ins): Use MONO_IS_JUMP_TABLE () and MONO_JUMP_TABLE_FROM_INS ()
for processing jump tables. Fixes#473787.
svn path=/branches/mono-2-4/mono/; revision=126669
Backport of r126631.
* class.c, class-internals.h: mono_method_get_context_general()
combines the functionality of mono_method_get_context() and
mini_method_get_context().
* generic-sharing.c, domain-internals.h:
mono_method_construct_object_context() and
mono_domain_lookup_shared_generic() moved from mini.
* icall.c (ves_icall_InternalInvoke): Handle the case where the
method doesn't have the correct instantiation because it's shared
generic code. Fixes#473999.
2009-02-11 Mark Probst <[email protected]>
Backport of r126631.
* mini-generic-sharing.c: mini_method_get_context() just calls
mono_method_get_context_general() now.
* mini.c, mini.h: Moved get_object_generic_inst(),
construct_object_context_for_method() and
mono_domain_lookup_shared_generic() to metadata/generic-sharing.c.
2009-02-11 Mark Probst <[email protected]>
Backport of r126631.
* bug-473999.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=126635
Backport of 126604.
* branch-opts.c (mono_if_conversion): Handle the case where the merged
basic block fell through to its successor bblock without a branch. Fixes
#474718.
* iltests.il.in: Add a test.
svn path=/branches/mono-2-4/mono/; revision=126606
Backport of r126596.
* socket-io.c (ves_icall_System_Net_Sockets_Socket_Accept_internal):
For Win32, add additional break conditions for accept.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-4/mono/; revision=126598
Backport of r126467.
* mini-x86.c (mono_arch_context_get_int_reg): Handle all registers
individually. Fixes#473482.
2009-02-10 Mark Probst <[email protected]>
Backport of r126467.
* bug-473482.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=126469
* AppDomain.cs: this fixes the remoting tests.
Zoltan found out that there was a domain improperly using shadow
copy.
svn path=/branches/mono-2-4/mcs/; revision=126431
* Dns.cs: BeginGetHostAddresses - renamed argument to match MS,
reject "any" IP addresses. BeginGetHostEntry - renamed argument
to match MS, reject "any" IP addresses. GetHostEntry - reject
"any" IP addresses. GetHostAddresses - reject "any" IP addresses.
GetHostByName - use "hostName" as paramname in ANE.
svn path=/branches/mono-2-4/mcs/; revision=126295
* HttpClientTransportSink.cs: if we get an WebException that does not
have a response, dispatch it to the sink.
svn path=/branches/mono-2-4/mcs/; revision=126289
* DataGridView.cs: End or if end fails then cancel the current edit
operation before clearing the data source.
svn path=/branches/mono-2-4/mcs/; revision=126215
* socket-io.c: when requesting all the local ips, if there are no
interfaces up and running, MS returns 127.0.0.1.
svn path=/branches/mono-2-4/mono/; revision=126204
* Dns.cs: empty string for host (also 0.0.0.0) is just passed to the
runtime, which will then retrieve the local IP addresses. Fixes bug
#386637 part 2/2.
svn path=/branches/mono-2-4/mcs/; revision=126163
* StreamReader.cs: when a LF ends a decoded buffer and is not followed
by a CR in the next decoded buffer, we didn't flush the string.
Fixes bug #445326.
svn path=/branches/mono-2-4/mcs/; revision=126132
* FtpWebRequest.cs: some servers have a comment after the directory
name. Fixes bugs #471149 and #471216.
svn path=/branches/mono-2-4/mcs/; revision=126102
* WebConnectionStream.cs: set the content length to 0 when the
response is not supposed to have any content.
svn path=/branches/mono-2-4/mcs/; revision=126091
Backport of r126054.
* marshal.c (get_runtime_invoke_type): Avoid sharing enum types since they
need to be boxed.
svn path=/branches/mono-2-4/mono/; revision=126055
Backport of r125887.
* object.c (mono_object_get_virtual_method): Properly inflate
generic methods. Fixes#472692.
2009-02-05 Mark Probst <[email protected]>
Backport of r125887.
* jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
the method we get from mono_object_get_virtual_method() because
that function does it properly, now.
2009-02-05 Mark Probst <[email protected]>
Backport of r125887.
* bug-472692.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=125910
* DataGridViewRowCollection.cs, DataGridView.cs: Fix row insertation:
- Use ArrayList.Insert instead of the Item property so that the item
is actually inserted and not an existing item replaced.
- Call DataGridView.OnRowsAddedInternal and drop internal from
OnRowsAdded for binary compitability. This also fixes several
redrawing issues.
[Fixes bug #472968]
svn path=/branches/mono-2-4/mcs/; revision=125901
Backport of r125849.
* class.c (mono_class_create_from_typedef): The CLR supports SystemF
recursive types such as List<T>:Cons<T,List<T>> so when doing the lookup
for the parent type, the created type must be ready to be used on a generic
instantiation.
We fill this_arg/byval_arg if the parent is a generic instance to make sure
we won't have duplicated entries in generic_inst_cache.
Fixes#469553.
svn path=/branches/mono-2-4/mono/; revision=125851
Backport of r125839.
* mini-exceptions.c (ves_icall_get_frame_info): Account for the
fact that mono_find_jit_info() sometimes returns the context
corresponding to the jit info in new_ctx. Fixes#472600.
2009-02-05 Mark Probst <[email protected]>
Backport of r125839.
* bug-472600.2.cs: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=125850
Backport of 125697.
* mini-exceptions.c (mono_setup_altstack): Use a more reasonable altstack
size on systems with 64k pages. Fixes#471389.
svn path=/branches/mono-2-4/mono/; revision=125698
* WebConnection.cs:
* HttpWebRequest.cs: calling Abort is safe now if the request has been
read entirely.
svn path=/branches/mono-2-4/mcs/; revision=125635
Backport of r125603.
* verify.c (is_compatible_boxed_valuetype): When checking if the boxed
valuetype is compatible with target type, check by inheritance as a
VT is not really compatible with System.ValueType, for example.
* verify.c (do_invoke_method): Improve error message.
* verify.c (do_box_value): If boxing a nullable, use the type argument
on stack instead.
* verify.c (do_newobj): Improve error message.
Fixes#469549.
2009-02-03 Rodrigo Kumpera <[email protected]>
In tests/verifier:
Backport of r125604.
* valid_boxed_vt_compatible_with_sys_vt_or_sys_enum.il:
Regression test for #469549.
2009-02-03 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-4/mono/; revision=125606
* DataGridViewRowCollection.cs, DataGridView.cs: Move row completion
code in the row collection code, so that the completion happens before
the CollectionChanged event, also better encapsulation.
[Fixes bug #471987]
svn path=/branches/mono-2-4/mcs/; revision=125587
2009-02-03 Rodrigo Kumpera <[email protected]>
Backport of r125581.
* verify.c (mono_delegate_signature_equal): Make it possible to check
first-arg-bound delegates to static method.
* verify.c (verify_delegate_compatibility): Correctly verify delegates to
static methods with the first arg bound.
Fixes#469529.
In tests/verifier:
Backport of r125582.
* unverifiable_delegate_with_bad_bound_first_arg_to_static_method.il:
* mono/tests/verifier/valid_ldfnt_delegates_of_static_methods.il:
Regression test for #469529.
2009-02-03 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-4/mono/; revision=125586
Backport of r125539.
* verify.c: Added stack_slot_full_name to provide decent and more meanfull
errors.
* verify.c (is_compatible_boxed_valuetype): Be less restrictive when not
under strict mode. Any type, when boxed can be seen as a reference type.
Fixes#469528.
2009-02-03 Rodrigo Kumpera <[email protected]>
In tests/verifier:
2009-02-03 Rodrigo Kumpera <[email protected]>
Backport of r125540.
* valid_valuetype_boxed_types_are_merge_compatible.il:
Regression test for #469528.
svn path=/branches/mono-2-4/mono/; revision=125561
* CommittableTransaction.cs (CommitCallback): Handle the case
where the callback is invoked before BeginCommit ends due to the
async call ending synchronously.
svn path=/branches/mono-2-4/mcs/; revision=125490
2009-02-03 Rodrigo Kumpera <[email protected]>
Backport of r125458.
* object.h: The lower bound of an array is a signed integer value.
Introduce mono_array_lower_bound_t typedef. It should be used instead of
gint32 as under MONO_BIG_ARRAYS it will be a gint64.
* icall.c: Cast MonoArrayBounds::length to a signed value so correctly
calculate the upper bound.
Fixes#471252.
In mini:
2009-02-03 Rodrigo Kumpera <[email protected]>
Backport of r125459.
* arrays.cs: Test for Get/SetValue of array with negate lower bounds.
svn path=/branches/mono-2-4/mono/; revision=125461
* DataGridView.cs: When editing is finished do not remove the editing
row, because it has already become a real one. Instead add a new one.
[Fixes bug #471754]
svn path=/branches/mono-2-4/mcs/; revision=125445
Backport of r125402.
* icall.c (type_from_name): Ignore reflection frames to find out the real caller.
Fixes#471255.
svn path=/branches/mono-2-4/mono/; revision=125404
Backport of r125388.
* generic-sharing.c (lookup_or_register_other_info): Make sure the
loader lock is not taken while the templates lock is held. Fixes
#471089.
svn path=/branches/mono-2-4/mono/; revision=125391
* ToolBar.cs: Add new UIAPerformClick method to be called by
UIAutomationWinforms when someone calls Invoke() on the
ToolBarButtonProvider. (Backport of r125354.) r: jpobst
svn path=/branches/mono-2-4/mcs/; revision=125358
* DataGridView.cs, DataGridViewColumnCollection.cs: Ensure that the
binding is cleared prior to setting it to null. Fixes a regression
causing exceptions when the DataSource is set to null and then set
again to a data source.
svn path=/branches/mono-2-4/mcs/; revision=125272
Backport of r125172, r125205 and r125206
* basic-calls.cs: Test for the weird crash found on arm.
* cpu-arm.md: Increase the size of storer8_membase_reg and
loadr8_membase_reg to 24 bytes to accomodate the extra add.
* mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
reg to LR otherwise we'll be loading/storing from just the offset.
* cpu-arm.md: Increase the size of storer8_membase_reg to 20 bytes
as it might use decomposed ops.
svn path=/branches/mono-2-4/mono/; revision=125207
Backport of r125077-79
* exceptions-arm.c (mono_arch_find_jit_info): The frame layout on arm have
separate frame and stack pointers, so we must use FP to find the register
spill area.
The FP reg is retrieved from the MonoContext::regs array.
* mini-arm.c (mono_arch_output_basic_block): Emit two cond ops for OP_FBGE
as FPA requires it.
* mini-arm.c (mono_arch_emit_setret): Emit OP_FMOVE for methods that
return R4 and R8 when not running under softfloat.
Fixes basic-calls.exe
svn path=/branches/mono-2-4/mono/; revision=125116
A fix for bug #470767
* statement.cs: Introduced BlockScopeExpression, needed when
expression tree conversion has to emit scope variables.
svn path=/branches/mono-2-4/mcs/; revision=125096
* HttpApplicationFactory.cs: fix check that avoids lock. Keep one
HttpApplication instance ready to be returned in an instance variable
to avoid a few locks.
svn path=/branches/mono-2-4/mcs/; revision=124949
* XplatUIX11.cs: We should use utf8 handling clipboard transference
with other x11 applications, and use utf16 when handling clipboard
data in the class library. Update the related points as well.
Fixes#468683.
svn path=/branches/mono-2-4/mcs/; revision=124920
* DataGridViewCell.cs: Format strings according to the supplied
CellStyle.Format.
[Fixes bug #470384]
svn path=/branches/mono-2-4/mcs/; revision=124878
Backport of r124869.
* Uri.cs (IsWellFormedUriString): Changing IsWellFormedUriString
to not throw an exception but return false instead.
Contributed under MIT/X11 license.
svn path=/branches/mono-2-4/mcs/; revision=124870
* DataGridView.cs: Reset the hover cell if it gets moved due to row(s)
addition or removal. Fixes multiple crashes in OnMouseMove.
svn path=/branches/mono-2-4/mcs/; revision=124868
* TreeNode.cs: NextVisibleNode and PrevVisibleNode properties don't
take into account the fact that OpenTreeNodeEnumerator needs to call
MoveNext/MovePrevious to actually put the passed node as the one
retrieved in Current. This way this property should work as really
expected in .net.
Fixes part of #467225.
svn path=/branches/mono-2-4/mcs/; revision=124802
* TreeView.cs: When calculating the scrollbars, don't use
TreeNode.Bounds, since it still can have the values of the previous
-and now invalid- layout -which depends on TreeView.skipped_nodes, and
could not have been updated as well-, and use the actual number of
visible number of nodes to compute the height needed to contain all
the nodes. Also reset the value of vbar to 0 when disabled - this way
we make sure that, when re-enabled, it will update the visible area of
the treeview, even if the previous value before disabling it is the
same as now. Finally don't do anything for the vbar.ValueChanged
handler - for the case wheer we manually set the value but don't the
vbar is disabled already.
Fixes part of #467225.
svn path=/branches/mono-2-4/mcs/; revision=124801
* TreeView.cs: In CollapseAll, set vbar to the maximum value, instead
of trying to set as top node the highest parent of the previous
top node. Moving to the bottom of the TreeView after a call
to CollapseAll is exactly what .net does. This should avoid some
nasty issue when CollapseAll is called and we don't need the
vertical scroll bar.
svn path=/branches/mono-2-4/mcs/; revision=124800
Backport of r124712.
* method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
optimization if the top of stack is the last instruction in the
bblock. Otherwise it might have been used after its definition.
Fixes#469742.
2009-01-27 Mark Probst <[email protected]>
Backport of r124712.
* bug469742.2.il: New test.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=124715
* Backport of r123987.
* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
on type variables in AOTed code.
svn path=/branches/mono-2-4/mono/; revision=124691
* XplatUIX11.cs: Fire Timer.Tick even if there is no MainForm for the
current context.
[Fixes bug #469239]
svn path=/branches/mono-2-4/mcs/; revision=124669
* WebBrowser.cs: fix initial value of ScrollbarsEnabled, so they
won't be disabled by default.
[Backported from r124596, fixes#468690]
svn path=/branches/mono-2-4/mcs/; revision=124615
Backport of r124582.
* mini-s390x.c: Remove a stray declaration of emit_sig_cookie () to fix
the s390x build.
svn path=/branches/mono-2-4/mono/; revision=124583
* DataGridView.cs: Do not be too smart about selecting the first cell
when the first row is added as this is not what MS does. Fixes the
failing unit tests.
svn path=/branches/mono-2-4/mcs/; revision=124566
A fix for bug #469019
* anonymous.cs: Use all parent type parameters when instantiating
nested generic storey.
svn path=/branches/mono-2-4/mcs/; revision=124533
A fix for bug #469244
* cs-tokenizer.cs, cs-parser.jay: Fixed parsing of nullable type
instance inside a conditional expression.
svn path=/branches/mono-2-4/mcs/; revision=124489
* HttpWebRequest.cs: added locking in SetResponseData for the case
when we get an error response before BeginGetResponse has been
called.
svn path=/branches/mono-2-4/mcs/; revision=124453
* HttpResponse.cs: make sure config is not null here.
* HttpApplication.cs: add a timer (-d:PIPELINE_TIMER) for the pipeline.
Handle timeouts for OutputPage() too.
svn path=/branches/mono-2-4/mcs/; revision=124396
* HttpApplicationFactory.cs: set/reset the context for the application
when creating/disposing. Dispose() out of the lock.
svn path=/branches/mono-2-4/mcs/; revision=124394
* BuildManager.cs: if dependencyCache already contains the virtual
path, replace its corresponding file set (in AddToCache). This can
happen only if the requested virtual path compilation resulted in
errors and the compilation has been retried. Fixes bug #46268
svn path=/branches/mono-2-4/mcs/; revision=124326
Backport of r124022 and r124301.
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match. Only compare the image if the owner is NULL.
Fixes the AOT failures.
svn path=/branches/mono-2-4/mono/; revision=124305
Backport of r124266.
* metadata.c (mono_metadata_load_generic_params): Initialize the
MonoGenericParam structure using memset so the image field is initialized
as well.
svn path=/branches/mono-2-4/mono/; revision=124268
Backport of r124260.
* Stopwatch.cs: Reorder the calculations in Elapsed and ElapsedMilliseconds
to avoid overflow. Fixes#468570. Patch by Yoni Shalom <[email protected]>.
svn path=/branches/mono-2-4/mcs/; revision=124262
Backport of r124246.
* mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
info from the (correct) context.
2009-01-22 Mark Probst <[email protected]>
Backport of r124246.
* generic-stack-traces2.2.cs: Another generic sharing test for
stack traces.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=124249
Backport of r124059.
* appdomain-unload-callback.cs: New test for the AppDomain::DomainUnload
deadlock.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=124072
Backport of r124068.
* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
a plain store.
2009-01-21 Rodrigo Kumpera <[email protected]>
Backport of r124058.
* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
which signals that the unloading has started but all appdomain services must
remain operational.
* appdomain.c (mono_domain_unload): The initial state for unloading now
is unloading_start and we switch to unloading after the managed call to
AppDomain::DomainUnload has finished.
The new unloading state has to be created because managed code in the
DomainUnload event can depend on things like the threadpool still working.
The domain must remain fully functional while the event executes.
This shown as an issue due to Process::WaitForExit, which waits for
async reads of stdout and stderr to complete. Since those are processed
in the threadpool the code deadlocks because the DomainUnload callback
waits for the async read finished event, which should have been set by a
threadpool job but has been discarded due to the domain been in unload
state.
svn path=/branches/mono-2-4/mono/; revision=124071
Backport of r124065.
* class.c (mono_class_setup_vtable_general): In the generic instance
optimization, set method->slot for abstract virtual methods. Fixes part of
#467834.
svn path=/branches/mono-2-4/mono/; revision=124067
Backport or r124060.
* mini.h
(MonoCompile): Added `disable_deadce_vars' to disable removing
unused variables.
* mini.c
(mini_method_compile): Set `cfg->disable_deadce_vars' when running
inside the debugger.
* liveness.c (mono_analyze_liveness): Don't remove any unused
variables if `cfg->disable_deadce_vars' is set.
svn path=/branches/mono-2-4/mono/; revision=124061
UIACheckChanged, UIARadioCheckChanged, UIAEnabledChanged, and
UIATextChanged events.
* Managed.Windows.Forms/System.Windows.Forms/Form.cs: Add UIAMenuChanged
event.
* Managed.Windows.Forms/System.Windows.Forms/Menu.cs:
* Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs: Note which
internal APIs are being used by UIA.
svn path=/branches/mono-2-4/mcs/; revision=124055
Backport of r124028.
* method-to-ir.c: Only apply exception constructor optimization if
the the method actually belongs to an exception class. Fixes
#467456.
2009-01-21 Mark Probst <[email protected]>
Backport of r124028.
* bug-467456.cs: New test case.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=124031
Backport of r124022.
* metadata.c (mono_metadata_generic_param_equal): Owner as well as
image must match.
2009-01-21 Mark Probst <[email protected]>
Backport of r124022.
* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
for unloading images whose MonoGenericInst's are still in use.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=124025
Backport of r123989.
* mini-trampolines.c (mono_delegate_trampoline): Put back the previous
change inside a #ifdef __mono_ppc64__.
svn path=/branches/mono-2-4/mono/; revision=123990
Backport of r123958.
* reflection.c (resolve_object): For fields, inflate the class and
then get the field in the inflated class.
svn path=/branches/mono-2-4/mono/; revision=123964
Backport of r123917.
* method-to-ir.c: Force the vtable variable in shared generic code
for the case that they might show up on a stack trace where they
are needed.
* mini-exceptions.c: Save and use generic sharing info as well as
IP in stack traces to resolve shared generic instantiations.
2009-01-20 Mark Probst <[email protected]>
Backport of r123917.
* object-internals.h (struct _MonoException): Added a comment
explaining the new use of trace_ips.
2009-01-20 Mark Probst <[email protected]>
Backport of r123917.
* generic-stack-traces.2.cs: Generic sharing test for stack
traces.
* Makefile.am: Test added.
svn path=/branches/mono-2-4/mono/; revision=123946
Backport of r123914.
* mini-trampolines.c (mono_delegate_trampoline): Revert the change which
added a mono_get_addr_from_ftnptr () as it breaks the ia64 build.
svn path=/branches/mono-2-4/mono/; revision=123927
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
#
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
AC_MSG_ERROR([$errorm])
AC_ARG_ENABLE(solaris-tar-check,
[ --disable-solaris-tar-check disable solaris tar check],
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
errorm="Your mono distribution is incomplete; if unpacking from a tar file, make sure you use GNU tar; see http://www.mono-project.com/IncompletePackage for more details"
thrownewInvalidProjectFileException("A <UsingTask> element must contain either the \"AssemblyName\" attribute or the \"AssemblyFile\" attribute (but not both). ");
thrownewInvalidProjectFileException("A <UsingTask> element must contain either the \"AssemblyName\" attribute or the \"AssemblyFile\" attribute (but not both). ");
Loaded 100 of 817 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.