Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
In order to ensure that monolite actually works you need to ensure that
the corlib in it has the same version as your runtime. Monolite
archives are now versioned monolite-MONO_CORLIB_VERSION-DATE.
* mono-path.c (mono_path_canonicalize): Properly canonicalize
non UNC paths with an extra backslash. Eg:
c:\foo\\bar was been canonicalized to c:\\foo\bar.
This was breaking assembly loading in some rare cases.
* tools/xbuild/xbuild/4.0/Microsoft.Common.targets
(GetReferenceAssemblyPaths): Don't look up framework directories
for $(TargetFrameworkMoniker) is $(_TargetFrameworkDirectories) is
already defined. This can be used to override moniker lookups.
Backport of commit a9cb57cc13
* System.Web/System.Web.Handlers/AssemblyResourceLoader.cs: AssemblyResourceLoader/ScriptResourceHandler must
always generate the same URL for every assembly+resource pair, or otherwise the browser would re-fetch
the resource in situations where it is not desired (e.g. during an async request to the server to update
a panel).
The generated URLs are not encrypted using real encryption, just hashed.
In addition, the handler code got modernized a bit.
* System.Web.Extensions/System.Web.UI/ScriptManager.cs: scriptStartupBlock is a 3.5+ thing
* System.Web.Extensions_1.0/Makefile: use the 1.0 Microsoft AJAX library for this compat assembly
* System.Web/System.Web.Util/MachineKeySectionUtils.cs: made GetValidationKey public
Backport of commit 21d2c6aedb
* Makefile: Compile tests with TEST defined (to include System.Web.Util.
MachineKeySectionUtils unit tests)
* System.Web.dll.sources: Move MachineKeySectionUtils.cs from System.
Web.Configuration_2.0 to System.Web.Util
* System.Web_test.dll.sources: Move MachineKeySectionUtilsTest.cs from
System.Web.Configuration_2.0 to System.Web.Util
* System.Web.Configuration_2.0/MachineKeySection.cs: Adjust using
clauses. Uncomment some code. Fix TripleDES versus 3DES for Validation
under NET_4_0. Remove 'private' on fields/methods.
* System.Web.Handlers/AssemblyResourceLoader.cs: Adjust using clauses
* System.Web.Security/MembershipHelper.cs: Adjust using clauses
* System.Web.Security/RolePrincipal.cs: Adjust using clauses
* System.Web.SessionState_2.0/SessionId.cs: Adjust using clauses
* System.Web.UI/LosFormatter.cs: Adjust using clauses.
* System.Web.Util/MachineKeySectionUtils.cs: Moved from System.Web.
Configuration_2.0. Rename namespace and remove 'internal' on type
declaration
* Test/System.Web.Util/MachineKeySectionUtilsTest.cs: Moved from Test/
System.Web.Configuration/MachineKeySectionTest.cs. Add test case for
TripleDES versus 3DES
Backport of commit a22389fde2
Normalization of cryptographic uses in asp.net
* System.Web.Configuration_2.0/MachineKeyRegistryStorage.cs:
Remove key length check and generic key generation.
* System.Web.Configuration_2.0/MachineKeySection.cs: Add support for 4.0
ValidationAlgorithm and the use of custom algorithms (validation and
decryption). Allow the use of any, valid, key length (based on the
algorithm). Let each algorithm creates its own key (e.g. special needs,
default length...)
* System.Web.Configuration_2.0/MachineKeySectionUtils.cs: Remove key
generation (from random) code and 192bits key length hack (won't work
with custom algorithms). Add support for new (4.0) algorithms, including
custom ones. Provide uniform/shared code to Encrypt/Decrypt, Sign/Verify
and EncryptSign/VerifyDecrypt using MachineKeySection data.
* System.Web.Configuration_2.0/MachineKeyValidation.cs: Add new (4.0)
values.
* System.Web.Configuration_2.0/MachineKeyValidationConverter.cs: Add
support for new (4.0) algorithms.
* System.Web.Handlers/AssemblyResourceLoader.cs: Use the new common
cryptographic code and base64 the encrypted data.
* System.Web.Security/FormsAuthentication.cs: Use the new common
cryptographic code and base64 the signed and/or encrypted data.
* System.Web.Security/MembershipHelper.cs: Use the new common
cryptographic code - this should be 100% compatible with existing data.
* System.Web.Security/RolePrincipal.cs: Use the new common cryptographic
code.
* System.Web.Security/SqliteMembershipProvider.cs: Adapt code for
internal API change.
With this, Microsoft.Common.targets will import
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*
at the beginning of the file and
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*
at the end of the file.
So, this would import all files from (eg.):
$prefix/lib/mono/xbuild/4.0/Microsoft.Common.targets/ImportBefore/
This can be disabled by setting the bool properties -
$(ImportByWildcardBeforeMicrosoftCommonTargets) and
$(ImportByWildcardAfterMicrosoftCommonTargets).
Emit list of projects in the solution as @(ProjectReference) items
in the generated .sln.proj file. This would be useful for extending
solution builds.
Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
Add hooks in the .sln.proj generated from .sln files.
1. It imports
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\*"
and
"$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter\*"
This is done only in case of 4.0 projects, as imports with wildcard
is a 4.0 feature.
2. And it imports before.Foo.sln.targets and after.Foo.sln.targets from
the same dir as the .sln file.
With 4.0 profile, <Import ..> can have wildcards. This works correctly
with our multiple MSBuildExtensionsPath also.
If the import references $(MSBuildExtensionsPath) property, then the
each extension path is used to resolve the import, and the search
stop as soon as an import is found.
If such an import uses wildcard, then the search stops at the
extension path in which *atleast one* file got imported.
And the import fails if any invalid project file is encountered.
This commit also heavily refactors the Import code to simplify
in the face of the new features, and improves error detection
and reporting.
ImportTest.cs: Add test for wildcards.
A target 'foo' can have BeforeTargets or AfterTargets attributes,
which list the targets before or after, 'foo' should be run.
This is a 4.0 feature.
* Project.cs (ProcessBeforeAndAfterTargets): New.
* Target.cs: Run the before/after targets in the correct order.
* TargetTest.cs (TestBeforeAndAfterTargets): New.
Engine.DefaultToolsVersion is used when a project is unable
to determine a suitable ToolsVersion to use. Change this fallback
version to 2.0 . This allows vs2005 (.net 2.0) projects which
don't have ToolsVersion explicitly set, to build. Newer projects
set ToolsVersion by default.
ToolsVersion 4.0 supports targeting arbitrary frameworks defined
by FrameworkList.xml files and referenced by $(TargetFrameworkMoniker),
which is of the format:
Identifier,Version=<version>[,Profile=<profile>]
built as:
$(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)[,Profile=$(TargetFrameworkProfile)]
eg. '.NETFramework,Version=v4.0' .
Frameworks are searched for in (order):
1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
3. MSBuild property $(TargetFrameworkRoot)
4. $prefix/lib/mono/xbuild-frameworks (default location)
.NET frameworks 2.0/3.0/3.5/4.0 have corresponding FrameworkList.xml
files now, which allows projects to target them. Custom frameworks like
MonoDroid can install suitable FrameworkList.xml files, and projects
can target them using the correct $(TargetFrameworkIdentifier) and
$(TargetFrameworkVersion).
Update man page.
* Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(GetProcessStartInfo): Add missing api. This allows more control
over the execution of the tool.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
(GetAssemblyNameFromFile): Rename to ..
(TryGetAssemblyNameFromFile): .. this, to make it consistent with
the similar method TryGetAssemblyNameFromFullName .
Track api changes.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:
Track api changes.
Also, fixes bug #668955.
Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.
* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.
From the comment:
$TARGET handles overflow by clipping, but this test assumes no overflow
handling. According to ECMA the result of float->int conversion is undefined
if overflow occurs, so both behaviours are valid.
Commit contributed under the MIT/X11 license.
Generated methods always place 'this' in a0, but unboxing trampolines
currently bump a1 for functions returning value types (the register
assignments for 'this' and return area pointers probably got swapped
at some point, but the trampoline generator was not updated).
Fix that by always bumping a0.
Commit contributed under the MIT/X11 license.
The current code generator uses a SUBU/BLEZ combination, but this
breaks for non-zero-based arrays. Given a lower bound 'b', length
'l', and an index 'i', Mini generates:
real_i = i - b;
COND_EXC_LE_UN(l, real_i);
Without this patch, the backend generates for e.g. b=42, l=1 and i=0:
SUBU real_i, 0, 42 => -42
SUBU at, 1, real_i => 43 (U only means "no trap.")
BLEZ at, throw => No throw because at is positive!
This causes the following sequence to be used instead:
SUBU real_i, 0, 42 => -42
SLTU at, real_i, 1 => 0 (Unsigned '<'; real_i is a large value)
BEQ at, zero, throw => Throw.
Commit contributed under the MIT/X11 license.
Without this, the code throws the more general ArithmeticException
when the divisor is -1, independently of the dividend. The check is
necessary because -Int32.MinValue does not fit into a 32-bit two's
complement integer.
Commit contributed under the MIT/X11 license.
Updating FromMSBuildPath also fixes a bug on windows.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Utilities.cs:
Move to..
* Microsoft.Build.Utilities/Mono.XBuild.Utilities/MSBuildUtils.cs:
.. this. Also, update FromMSBuildPath from monodevelop.
* Update Engine/* and Tasks/* to track the new api.
This fixes a bug reported in stackoverflow and mono-list that affects
Mono 2.8 and Mono 2.6 when using BeginReceive/BeginSend overloads that
take an ILIst<ArraySegment> argument.
* gc.c (mono_gc_cleanup): Cleanup all reference
queues after regular finalization.
* reflection.c: The dynamic method ref queue is finalized
by the runtime itself.
* runtime.c: Ditto.
* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Engine.cs:
Don't add 4.0 toolset.
* tools/xbuild/SolutionParser.cs: Don't use 4.0 ToolsVersion for
slnVersion=="11.0", let it default to 2.0 .
* tools/xbuild/xbuild/2.0/Microsoft.Common.targets:
* tools/xbuild/xbuild/3.5/Microsoft.Common.targets:
(GetFrameworkPaths): Emit an error instead of a warning if
TargetFrameworkVersion > 3.5 .
* tools/xbuild/xbuild/Microsoft.CSharp.targets: No 4.0 profile,
so don't set CscToolExe explicity. For both 2.0/3.5 gmcs will be
used.
Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.
* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.
Also, add new ExpressionEvaluationException class.
Wrap Expression*Exceptions in InvalidProjectFileException with
info about the full condition being evaluated.
* tools/xbuild/xbuild/Microsoft.CSharp.targets: $(CscToolExe)
is set depending on the value of $(TargetFrameworkVersion).
Since, $(TargetFrameworkVersion)'s default value is set
by MS.Common.targets, set $(CscToolExe) *after* importing
MS.Common.targets .
* Microsoft.Build.BuildEngine.Project.cs (InitializeProperties): Use
evaluatedProperties field instead of EvaluatedProperties property,
to avoid invoking a Reevaluate, since it is already in progress.
Remove the entries for a project from the built targets cache, on
project unload.
* Microsoft.Build.BuildEngine/Engine.cs (ClearBuiltTargetsForProject): New.
* Microsoft.Build.BuildEngine/Project.cs (BuiltTargetKeys): Remove.
(RemoveBuiltTargets): Use Engine.ClearBuiltTargetsForProject .
* Microsoft.Build.BuildEngine/Target.cs: Track api changes.
*
Fix the way RunningOnMac is detected (use `uname`=="Darwin"), thanks
to Michael Hutchinson.
And use "/Library/Frameworks/Mono.framework/External/pkgconfig" as a
search path for pkg-config files on MacOSX.
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Import.cs:
Change the order of paths.
* Microsoft.Build.Engine/Microsoft.Build.Engine.dll.sources:
Use MS.Build.Tasks/Utilities.cs, for using RunningOnMac .
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/PcFileCache.cs:
Look in "/Library/Frameworks/Mono.framework/External/pkgconfig"
for .pc files, on Mac.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/Utilities.cs
(RunningOnMac): New.
Emit location information in error messages for condition parsing
errors.
* Microsoft.Build.BuildEngine/Token.cs: Add position information.
* Microsoft.Build.BuildEngine/ConditionParser.cs: Track api changes.
Improve error messages.
(ExpectToken): Rename to ..
(IsAtToken): .. this, to better reflect its behavior.
* Microsoft.Build.BuildEngine/ConditionTokenizer.cs: Track api
changes and improve error messages.
* Microsoft.Build.BuildEngine/ConditionFactorExpresion.cs: Track api
changes
Add "/Library/Frameworks/Mono.framework/External/xbuild" to
MSBuildExtensionsPath on MacOSX.
From the bug report:
The purpose of this directory is to provide a place for third-party
installers to place extensions where they will not be removed by Mono
upgrades. MonoDevelop patches this into the xbuild MSBuildExtensionsPath
for builds within MD but it would be useful to have it work outside of MD.
For projects targeting TargetFrameworkVersion >= 3.5, automatically
add a reference to System.Core . This can be controlled via two
properties:
$(AddAdditionalExplicitAssemblyReferences) and
$(AdditionalExplicitAssemblyReferences) .
This is used only for projects built with ToolsVersion=4.0 .
Add GetFrameworkPaths and PrepareForBuild as dependencies for
the ResolveAssemblyReferences target. This is required when it is
invoked directly from MD.
Patch from Michael Hutchinson ([email protected]).
All targets that get built are tracked by the engine, to avoid
unnecessary builds of targets. This should be reset on engine.Build,
unless it is explicitly requested *not to* reset it, via BuildFlags.
MSBuild hosts like monodevelop, which use the same logger
for multiple builds, get errors/warnings from older builds.
So, reset them whenever the BuildFinished event is raised.
ILogger.Shutdown () is invoked when the host is about to quit,
according to msdn, so can't use that.
In a solution file, a Project might not have a corresponding
EndProject. This seems to be supported by VS, so updating xbuild
to support that too. Updated the regex.
For .resx resource files, check files referenced by the resx
file also, to determine whether to resgen it or not.
IsResgenRequired () has been taken from MonoDevelop
(main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MD1/MD1DotNetProjectHandler.cs)
Use ProcessStringDictionary in ToolTask for EnvironmentVariables,
as this retains the original case of the keys. Without this
environment vars would all be passed as lowercase!
This was removed in a previous patch by mistake.
* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(EnvironmentVariables): New.
(ExecuteTool): Merge EnvironmentVariables with
EnvironmentOverride
* class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs
(Resgen.Execute): Use EnvironmentVariables to set MONO_IOMAP=drive .
* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(ExecuteTool): When StartProcess returns, the process has already .Start()'ed
If we subscribe to the output events after that, then for processes that
finish executing before we can subscribe, we won't get the output/error
events at all! So, pass the handlers to StartProcess itself, so that
they get added before the process is started.
* mini-x86.c (emit_call): Align call instructions on
3 mod 4 so the address is 4 bytes aligned and can't span
two cache lines. This is required for proper SMP support
as CAS is not atomic across cache lines.
Fixes one of the crashes due to #667921.
* reflection.c: Use a reference queue to cleanup
dynamic methods instead of finalization.
* runtime.c: Shutdown the dynamic method queue
before runtime cleanup begins.
* DynamicMethod.cs: No longer finalizable.
* icall-def.h: Remove unused dynamic method icall.
Fixes#660422
Implement a reference queue API.
* gc.c: A reference queue allows one to queue
callbcks for when objects are collected.
It allows for safe cleanup of objects that can
only be done when it is effectively collected.
The major difference with regular finalization
is that the collector makes sure the object
was collected - and can't be resurrected.
* gc-internal.h: Export entrypoints for the
new API.
* gc.c: A reference queue allows one to queue
callbcks for when objects are collected.
It allows for safe cleanup of objects that can
only be done when it is effectively collected.
The major difference with regular finalization
is that the collector makes sure the object
was collected - and can't be resurrected.
* gc-internal.h: Export entrypoints for the
new API.
* verify.c: mono_class_is_assignable_from can't handle
IList<GTD<T>> x GTD[] since GTD[] won't have the right
iface slots set. This isn't a problem for the runtime
since GTD[] will never happen as it's an unrealizable type.
Fixes#663815
<[email protected]>
* DbDataAdapter.cs (Update): Fetch columnName from column-mapping if found one, otherwise use source column name to fetch parameter value.
* DataColumn.cs (Clone): Deep copy the ExtendedProperties collection.
* XmlSchemaDataImporter.cs: Support import of extended properties.
* XmlSchemaWriter.cs: Fix exception by writing the extended properties before simpletype element.
* verify.c: Add new function to internal verifier API to check
method instantiations.
* reflection.c (mono_reflection_bind_generic_method_parameters):
Check the instantiation before returning it.
Fixes#655847
* class.c (mono_class_init): Check instantiations of generic
instances.
* icall.c (ves_icall_Type_MakeGenericType): Ditto.
* verify.c: Add mono_verifier_class_is_valid_generic_instantiation
to the internal API so generic instances can be checked.
Fixes#654136
After the fix for bug #605092, inserting timers with an equal due time
was failing because searching in the list was also using a reference
comparison. Now, when adding a new timer, we search using just the due
time.
Fixes bug #648130.
namedmutex_prewait was (partially) listing the running processes and
then searching through them. Now we use OpenProcess to verify the owner
of the mutex is still alive.
Fixes bug #648133
* metadata/threads.c: Ensure correct stack pointer initialization on !POSIX.
This fixes some random crashes with embedded, release-optimized binaries on windows.
License: MIT/X11
* mini/exceptions-x86.c: Turn off exception callback filtering on WoW64. This allows managed exceptions to actually work when using 32bit mono on 64bit Windows.
License: MIT/X11
* AuthorizationRule.cs: if the configuration save is not Full, SerializeElement checks whether the rule being
serialized is modified. If it isn't, validation and serialization are not performed.
* AuthorizationRuleCollection.cs: there is no element name for the collection.
When one manipulates the collection as an instance of StringCollection, the 'modified' field will not
be set (Add, Remove etc. from the underlying StringCollection type will be used). To work around it
a check has to be performed in IsModified whether the contents of the collection changed. It is done
by comparing string hash codes of the original vs current string.
CommaDelimitedStringCollectionConverter forces string hash code update on the new collection, so that IsModified
works correctly on collections converted from comma-delimited strings.
* verify.c (mono_type_is_valid_type_in_context): Handle
types such as VAR and MVAR encoded as CLASS or VALUETYPE.
This encoding is not the canonical one, but works and
must be properly verified.
Fixes#601970
* trace.c: We need to parse exclude tokens ('-') before string tokens,
since the exclude token is a valid string character.
svn path=/trunk/mono/; revision=152906
There is no checkfor the SettingProviderAttribute attached to a Settings class.
.NET uses this to replace the default LocalSettingsProvider with your
own SettingsProvider.
The patch adds this feature.
Signed-off-by: Carsten Schlote <[email protected]>
Added missing check for empty strongname. This case is now handled the
same way as a missing strongname.
GetProductName() now correctly uses _Url_ and assembly.EscapedCodeBase
for its output.
Signed-off-by: Carsten Schlote <[email protected]>
The previous implementation creates eventually invalid filenames in a
random fashion on linux, mac, windows by having '/' or '\' chars
in the base64 output. As a result you can't save or retrieve your settings
due to filesystem errors.
This patch changes the output to plain hex values. This is a bit longer
then a base64 string, but also 100% filesystem safe.
Might
Signed-off-by: Carsten Schlote <[email protected]>
The *StreamChanged event for ProcessWrapper may get parts of
long lines, so process the complete ones that we have (for matching
error/warning), and save rest for processing when the rest of it
is received.
Also, don't ignore empty lines.
* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
ConsoleLogger was emitting target names, even if they didn't have
any useful output, which resulted in lots of "Target foo:" in the
output, with no other related msgs.
Target Foo:
Target Bar:
Target Xyz:
Emit project/target/task headers only if they result in a message,
error or warning. This results in much cleaner output.
* verify.c (mono_method_verify): Only skip dead code
after checking for fallthru.
* unverifiable_fallout_of_finally_block.il: Regression
test for fallthru on dead code.
Fixes#597072
sqlmetal.exe is supposed to allow generating source code from a .dbml file:
sqlmetal /code:foo.cs foo.dbml
However, this failed because the DbmlSchema.xsd file couldn't be found (so
that the DBML file could be validated).
Embed the DbmlSchema.xsd file so that the above `sqlmetal` command works.
UDP sockets that call Connect() to set a default address for datagrams
sent, can call Connect() again with IPv6Any or Any to 'disconnect'.
Fixes bug #639098.
* fakepoll.h: Added for OSX
* serial.c:
* signal.c: poll on OSX is broken, so we use a select based
implementation instead.
svn path=/trunk/mono/; revision=158861
* verify.c (do_leave): Set the target of leave.
* verify.c (mono_method_verify): Merge the resulting empty
stack of a leave instruction with it's target.
Fixes#633248
When calling GetLogicalDriveString, icall.c was passing the
length in the wrong units.
GetLogicalDriveString now translates any octal sequence found
into its corresponding byte. Use the UTF16 length
('items_written') instead of the UTF8 input string length
('items_read') when computing the total size.
Windows allows entry point names like "#10" which refer to the Nth
function (n > 1 and less than the highest ordinal value in the .def
file).
Fixes bug #636966.
We were not returning IPv6 addresses if there was no IPv6 configured
interface. Now we will return those addresses if ipv6 is enabled by
configuration.
Fixes bug #636517.
* method-to-ir.c (inline_method): We verify the inlined method
before variables are created for locals since this can assert.
Some check on locals are only done by the IL verifier so it's
not enough to just check if the header decoded fine.
* mini.c (mini_method_verify): Add parameter telling if we
should fail the compile or not.
* mini.c (mono_compile_is_broken): Pass the method explicitly
as it now can be diferent than cfg->method.
* mini.h: Export mono_compile_is_broken instead of
mini_method_verify.
Fixes#560200
If xbuild is unable to resolve a reference, then it dumps details of
why it failed. This adds a env var XBUILD_LOG_REFERENCE_RESOLVER,
which if set, logs those details of why a particular search path
was used to resolve the reference.
Update the man page also.
If we are redirecting to a GET from a POST, the Content-Length header
might have stale data and it will be sent. Some servers, instead of
ignoring it, keep waiting for the data to be sent (for a GET!).
Fixes bug #636219.
If there's a POST/PUT request that gets a NTLM 401, we save the data
and don't send it again until after the challenge phase. Ie, instead of
sending all the data 3 times, we only send it at most twice.
We were usign teh URL, but that might not be unique among several
requests that need to be authenticated using NTLM. This led to
different requests sharing the same authentication session which fails
miserably.
Bug #631315 fixed.
* marshal.c (mono_marshal_get_delegate_invoke): add support for
delegates pointing to instance methods that are closed over null.
Managed side of the feature is in 2ec0ab59fe.
send(2) does not return ETIMEDOUT for a blocking socket with a write
timeout set, which causes the wrong error code to be reported to the
managed world.
Fixes bug #599488.
* mini.c (create_jit_info): Handle the case where the basic
block right after a try block is dead. For example:
.try {
....
leave ...
}
nop //HERE
.catch {
...
}
The above nop is dead code and the branch opts will nullify it
which caused the code in create_jit_info to assert when
calculating the try block lenght.
This is a very rare case since only obfuscators or broken
compilers would put instruction between the try and handler
blocks.
The fix is to simply iterate over all CIL addresses of the
try block in reverse order looking for the first block which
was not removed.
Fixes 633291
When a server-side control processes its children (in the markup) as properties, it needs to instantiate
an object of the property type and assign it to the appropriate property of the control. Failing to do so
will cause markup which references properties to fail in certain cases (for instance when the control's
property type is a class and it is not instantiated by the control's constructor).
There is a possible crash using this profile if the monotouch.dll
isn't loaded into the process space. We will null guard the
type and only call start_wwan if its present.
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.
Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
When GridView auto-generates columns it uses reflection to retrieve list of public properties present
in the item type. Only the properties that have bindable type and are declared directly in the item
type must be considered for column auto-generation.
WebConfigurationHost now supports one more parameter passed to it in InitForConfiguration -
a boolean telling whether the configuration being initialized belongs to another app. If it is
true then the virtual path passed to InitForConfiguration is used as the application virtual
path. This has the effect that IsDefinitionAllowed doesn't throw an exception when a configuration
element with the MachineToApplication level is parsed.
WebConfigurationManager.FindWebConfig checks whether the path passed to it belongs to this application
which allows the mechanism described in the first paragraph to work.
When HttpContext.RewritePath is passed a virtual path with more than one leading slash it
results in HttpApplication.GetHandler not being able to locate the appropriate handler.
Patch adds code to convert the passed virtual path to a canonical form.
Additionally, HttpApplication.Pipeline () now throws an exception when no handler can be
determined for the current request.
* ScriptModule.cs: PostAcquireRequestState must check if the
current context and the current handler aren't null before
attempting to use them.
svn path=/trunk/mcs/; revision=160044
When the in-proc session handler puts items in the internal cache, it prefixes them with the
@@@InProc@ prefix to make sure they don't conflict with other values stored there. The handler
has been failing so far to remove that prefix when triggering the session end event. This commit
fixes the issue.
This attribute is needed so that Visual Studio can use MSBuild 4.0 to build
MonoDroid projects referencing the MonoTouch/MonoDroid assemblies, and
MSBuild 4.0 requires that the profile's mscorlib.dll contain this attribute.
* Ping.cs: generates a random ICMP Identifier field per Echo to help
match up pings and their responses. Now has valid TTL and timeouts apply to
the correct pings. Also fixed bugs were received Sequence and
Identifier would be corrupt for values >255, and fixed corruption of
the Data field.
Patch by Michael Walsh that fixes bug #627330.
When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.
AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.
When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.
When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.
This allows reading schema information from Microsoft SQL Server databases.
This should have been done as part of commit r147880 (as the corresponding
commit in svn-trunk r147868 added SqlServerSchemaLoader), but I
overlooked it. :-(
MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.
<Import Project="$(SolutionDir)\foo.targets"/>
$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.
* Microsoft.Build.BuildEngine/Engine.cs:
Apply global properties before the project load.
* Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.
* xbuild/xbuild/*/Microsoft.Common.targets: Rename item
@(TargetFrameworkDirectories) to @(_TargetFrameworkDirectories)
to *mark* it as private, and use the new $(TargetFrameworkDirectory)
property instead. Reported by mhutch.
* xbuild/xbuild/*/Microsoft.Silverlight.Common.targets: Update
to track the changes.
from various points.
In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add
UnknownToolsVersionException.cs
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Correctly handle precedence of ToolsVersion value coming
from various points.
* BuildEngine.cs (BuildProjectFile): Restore project.ToolsVersion .
* Engine.cs: Likewise. Also validate DefaultToolsVersion .
* Project.cs: Handle invalid tools version specified in the project
file, and fall back to engine's version.
* MSBuild.cs: Fix the precedence order, and validate.
* UnknownToolsVersionException.cs: New.
In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks.dll.sources: Use
UnknownToolsVersionException.cs from Engine.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* MessageTest (TestExecution): Additional messages with 'low'
importance get emitted, so don't expect sequential messages.
In tools/xbuild:
* Main.cs: Use tools version specified on the command line, if
any.
* xbuild.exe.sources: Include UnknownToolsVersionException.cs from
MS.B.Engine
svn path=/trunk/mcs/; revision=160133
for dependency checks for targets.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* TargetBatchingImpl.cs (BuildTargetNeeded): Fix var names to
correctly reflect what they track. Log messages when skipping
or building a target.
In tools/xbuild:
* xbuild/Microsoft.CSharp.targets (CoreCompile): Fix inputs.
* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Fix inputs.
svn path=/trunk/mcs/; revision=159406
* threadpool.c: applied patch from Lucas Meijer that fixes bug
#623707. It adds additional checks for the runtime shutting down to
avoid race conditions when unloading a domain.
2010-07-30 Andrés G. Aragoneses <[email protected]>
* TimezoneInfo.cs: fix the NET_2_1 build in the same way as the
MONOTOUCH build was. (This was failing on Debian etch with 1.9)
2010-07-30 Andrés G. Aragoneses <[email protected]>
* decl.cs: Avoid using "var" so this can be compiled with Mono 1.9
(current version of Debian etch).
2010-07-30 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle method with invalid
signature. This can happen now with the verifier checking them.
2010-07-30 Rodrigo Kumpera <[email protected]>
* loader.c (find_method): Return null if from_class number
of interfaces doesnt't match in_class.
Fixes#567859
2010-07-30 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_layout_fields): Comment out an
assert from a backport. It can't be done under 2.6
due to weaker SRE implementation.
2010-07-28 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Don't move forward
with verification if a stack overflow is detected for
the ARGLIST opcode.
Fixes#601953
2010-07-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_bounded_array_class_get): Fail arrays
of void or typedbyref. Those two types are not allowed
to be used with arrays. Failing them is easier and less
error prone than returning NULL.
Fixes#603279
2010-07-28 Rodrigo Kumpera <[email protected]>
* object.c (mono_get_delegate_invoke): Don't assert if
the Invoke method is not found. This can happen with
broken types and it's the caller resposibility to deal
with a null return.
Fixes#553403
2010-07-28 Rodrigo Kumpera <[email protected]>
* class.c (mono_assembly_name_from_token): Handle
images with null assembly. This can happen with resource
or broken assemblies.
Fixes#623586.
2010-07-27 Rodrigo Kumpera <[email protected]>
* class.c (concat_two_strings_with_zero): Guard against
null strings.
Modified version of patch by Sebastien Pouliot.
Fixes#623653.
2010-07-27 Rodrigo Kumpera <[email protected]>
* image.c (mono_image_load_module): Handle the case of
module index equal or smaller than zero. It is possible
to embed a valid zero index into metadata so this case
must be explicitly handled.
Patch by Sebastien Pouliot.
Fixes#623581.
2010-07-27 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (INVALID_IMPLMAP_FLAGS_BITS): Add non standard
bits for best fit on/off (4,5) and throw on unmappable on/off (12/13).
Fixes#622221.
2010-07-27 Rodrigo Kumpera <[email protected]>
* EventLogger.cs: Emit verifiable code. This was blocking the
SWF test suite from running under the verifier.
* verify.c (mono_generic_param_is_constraint_compatible): Don't
fail a contraint check even if the candidate has no constraints.
All constraints might resolve to the candidate itself so it can
have none.
Fixes#622225.
2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes#623451
* DataColumnCollection.cs (MoveColumn): Fix shifting of
DataColumn according to the direction of movement.
2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes#565616 - Based on Patch by Hubert FONGARNAND
* DataContainer.cs (GetContainerData): If typecode is string,
call Convert.ToString() irrespective of whether value is
IConvertible or not.
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
during startup before the loader lock is initialized.
(mono_loader_unlock_if_inited): Ditto.
* threadpool.c: don't accept more work items or keep waiting for them
if the runtime is shutting down. This way, even the idle threads will
exit when teh runtime is being shut down.
svn path=/branches/mono-2-6/mono/; revision=160685
* method-to-ir.c (op_to_op_src2_membase): Reorganize the amd64 op->op membase
code, it was missing a few 'break's.
svn path=/branches/mono-2-6/mono/; revision=160634
* BaseMachine.cs (Split): Don't add empty strings if they don't come from
the first capture group. Fixes#566117.
svn path=/branches/mono-2-6/mcs/; revision=160628
2010-07-20 Miguel de Icaza <[email protected]>
* parser.cs (ParseEscape): Now parses with some context, whether
we are parsing inside a character range which can not contain
back-references or when we are parsing on a string context which
can contain back references.
This fixes bug #577346 which exposed a bug parsing this:
new Regex("[\\177-\\377]")
svn path=/branches/mono-2-6/mcs/; revision=160627
* Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
to big for XGetImage to return. Fix bug #588228
[Backport r160507]
svn path=/branches/mono-2-6/mcs/; revision=160508
2010-07-12 Veerapuram Varadhan <[email protected]>
** Fixes#569543
* Tds70.cs (ExecPrepared): Revert back to old changes.
* Tds80.cs (ExecPrepared): Override for Tds 8 version that
optimizes network bandwidth.
svn path=/branches/mono-2-6/mcs/; revision=160282
* class.c (mono_method_can_access_method_full): Handle type
accessibility with very deep nested types.
* class.c (mono_method_can_access_field_full): Ditto.
Fixes#619300.
svn path=/branches/mono-2-6/mono/; revision=160182
* WebClient.cs: handle compressed streams when automatic decompression
is turned on by a class derived from WebClient.
svn path=/branches/mono-2-6/mcs/; revision=160082
but fallback to 3.5 toolset there. This is required for the mono-2-6
branch, which doesn't lacks NET_4_0 .
svn path=/branches/mono-2-6/mcs/; revision=160080
** Fixes#609109 - DateTime part
* TdsComm.cs (Append[DateTime]): More fix for handling SqlServer
MinValue for DateTime.
svn path=/branches/mono-2-6/mcs/; revision=159987
* Process.cs: ignore processes that finish while we are looking for
processes by name. Fixes bug #596779.
svn path=/branches/mono-2-6/mcs/; revision=159867
2010-07-03 Veerapuram Varadhan <[email protected]>
** Fixes#609935
* TdsMetaParameter.cs (Prepare): Use GetActualSize() instead of
* Size
property to calculate the length of a nvarchar param.
svn path=/branches/mono-2-6/mcs/; revision=159853
* class.c (mono_class_inflate_generic_method_full_checked): Added
a comment regarding a hack in mini-trampolines.c.
Backport of r159578.
2010-06-25 Mark Probst <[email protected]>
* mini-trampolines.c (common_call_trampoline): An ugly hack to
work around a potentially very hard to fix problem with inflating
generic methods.
Backport of r159578.
2010-06-26 Mark Probst <[email protected]>
* bug-616463.cs: New test.
* Makefile.am: Test added to generic tests.
Backport of r159578.
svn path=/branches/mono-2-6/mono/; revision=159795
2010-07-01 Martin Baulig <[email protected]>
Resume from the signal handler and do most of the work on the normal stack.
* exceptions-x86.c (mono_arch_handle_exception): Port this to Windows.
Backport r157282:
2010-05-13 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack even if
sigaltstack is disabled.
Backport r157380:
2010-05-14 Geoff Norton <[email protected]>
* exceptions-x86.c: Fix the alignment of this trampoline so we dont get a
misaligned stack on darwin.
Backport r157327:
2010-05-13 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_handle_exception): Resume from the signal handler
and do most of the work on the normal stack.
(mono_x86_get_signal_exception_trampoline): New x86 specific trampoline function.
svn path=/branches/mono-2-6/mono/; revision=159782
* icall.c (ves_icall_Type_make_array_type): Raise a TLE if a
TypedByRef is passed.
* icall.c (ves_icall_Type_make_byref_type): Ditto.
* icall.c (ves_icall_Type_MakePointerType): Ditto.
Fixes#612780.
svn path=/branches/mono-2-6/mono/; revision=159696
* SmtpClient.cs: support PLAIN authentication and throw if LOGIN and
PLAIN are not supported. Fixes bug #607249.
svn path=/branches/mono-2-6/mcs/; revision=159618
** Fixes#581679
* DataRelationCollection.cs (Add, Remove): Use DataRelation obj
instead of this when raising OnCollectionChang(ing, ed) events.
svn path=/branches/mono-2-6/mcs/; revision=159448
backport of r159337.
* Queryable.cs: properly set the constants types in the queryable
expression tree.
svn path=/branches/mono-2-6/mcs/; revision=159338
* TextControl.cs, XplatUIX11.cs, XplatUICarbon.cs: Expand paint
regions slightly so that the full extents of text get painted.
Fixes bug 464464.
svn path=/branches/mono-2-6/mcs/; revision=159328
* Mono.Documentation/monodocer.cs: Use Int64 instead of UInt64 for
enum values, so that we can properly capture negative values.
svn path=/branches/mono-2-6/mcs/; revision=159290
* tramp-amd64.c (mono_arch_create_generic_trampoline): Increase the buf len a little,
to avoid an assert.
svn path=/branches/mono-2-6/mono/; revision=159170
* VirtualMachine.cs Connection.cs: Group events received together into an EventSet,
like it is done in JDI. Add a GetNextEventSet () method.
svn path=/branches/mono-2-6/mcs/; revision=159087
** Fixes#613087
* Tds.cs (ProcessLoginAck): Fix server version being compared in
the switch-case.
* Tds70.cs (BuildPreparedParameters, BuildProcedureCall): Set
* default
precision to 18 as used by MS.Net when connecting to SqlServer
7.0.
(BuildExec, ExecRPC): Marked protected in order to be used by
Tds80
and henceforth.
* Tds80.cs (Execute): Separated from Tds70 to include Tds80
* changes.
svn path=/branches/mono-2-6/mcs/; revision=158952
* aot-compiler.c (compile_method): Add a 'depth' parameter to add_generic_class too
to fix infinite generic recursion. Fixes#612702.
svn path=/branches/mono-2-6/mono/; revision=158854
ECMA documentation. The problem was that we parse all the XML files
in order to extract //summary and //remarks members, and then stored
the XmlNodes for these members. XmlNode keeps a ref to the creating
XmlDocument, thus keeping the XmlNode around requires keeping the
entire XmlDocument around; result: ~350+MB RAM is needed to assemble
netdocs.zip (in ../../docs). To fix, import the XmlNodes that we
actually care about into an otherwise empty XmlDocument, so that we
only save the nodes we need. Result: ~32MB RAM is needed.
Fixes#602560.
svn path=/branches/mono-2-6/mcs/; revision=158836
files if any of the source .xml files have changed. This allows
new <summary/> values to be inserted into the index.{opts.ext}
files, instead of the index files being "stale". Fixes#573121.
svn path=/branches/mono-2-6/mcs/; revision=158791
KeyedCollection.InsertItem() exception safe, so that if the index is
invalid (negative or too large) we don't add the entry to the
underlying Dictionary.
* Test/System.Collections.ObjectModel/KeyedCollectionTest.cs: Verify
exception safety of Insert().
svn path=/branches/mono-2-6/mcs/; revision=158749
so that:
- it properly obeys the 'count' parameter; Fixes#601772.
- "...".Split(new[]{"."}, 2, StringSplitOptions.RemoveEmptyEntries).Length==0
- "A..".Split (new String[] { "." }, 2, StringSplitOptions.RemoveEmptyEntries) == new[]{"A"}
- Remove duplicative array handling code by using List<String>.
* Test/System/StringTest.cs: Add tests for #601772 (i.e. take
SplitStringChars(), change all the chars to Strings, and things
should work).
svn path=/branches/mono-2-6/mcs/; revision=158671
* liveness.c (visit_bb): Make the component vregs of long vars volatile as well.
Fixes#612206.
* exceptions.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=158669
* StackFrame.cs (GetVisibleVariables): New method to return the set of variables
visible at the current stack frame.
svn path=/branches/mono-2-6/mcs/; revision=158475
* dwarfwriter.c: Update after the mono_debug_lookup_locals () changes.
* debugger-agent.c (method_commands_internal): Ditto. Return scope information for
locals.
svn path=/branches/mono-2-6/mono/; revision=158423
* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Rewrite this so it returns
all information in a single structure. Return information about scopes as well.
* mono-debug.c (mono_debug_lookup_locals): Ditto.
svn path=/branches/mono-2-6/mono/; revision=158422
* verify.c (verify_generic_parameters): Verify if
there are not loops in constraints.
Backport of r158342.
svn path=/branches/mono-2-6/mono/; revision=158347
* verify.c (is_compatible_boxed_valuetype): Constaints
must be recursively checked if one generic argument
has a constraint on another.
Fixes#610625.
Backport of r158342.
svn path=/branches/mono-2-6/mono/; revision=158346
* gfile-win32.c: Use __stat64 instead of _stat64.
Backport of r156824 by (Jonathan Chambers <[email protected]>)
svn path=/branches/mono-2-6/mono/; revision=158305
* src/gstring.c: Put in some null guards for the ctors
Backport of r157279 by (Alan McGovern <[email protected]>).
svn path=/branches/mono-2-6/mono/; revision=158304
* threadpool.c (process_io_event): Discard io events
if the domain is unloading. Fixes part of #582162.
svn path=/branches/mono-2-6/mono/; revision=158302
2010-05-31 Martin Baulig <[email protected]>
Fix#608271.
* debugger-agent.c (breakpoints_cleanup): Iterate over `event_requests', call
clear_breakpoint() on all breakpoint events and remove them from the list.
svn path=/branches/mono-2-6/mono/; revision=158263
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
svn path=/branches/mono-2-6/mono/; revision=158238
Merge the MonoTouch Linker branch.
* Mono.Linker/TypeParser.cs: add a type parser.
* Mono.Linker.Steps/MarkStep.cs: properly mark types used
with typeof in custom attributes
* monolinker.exe.sources: add TypeParser.cs
svn path=/branches/mono-2-6/mcs/; revision=158210
* Makefile, *.dll.sources: disambiguate between Mvc and Mvc2
by using a distinct LIBRARY. Needed because the current
build system does not pay attention to LIBRARY_COMPAT
while building *.reponse and *.makefrag.
Backport from trunk.
svn path=/branches/mono-2-6/mcs/; revision=158068
2010-05-27 Martin Baulig <[email protected]>
Fix#605698.
* debugger-agent.c (method_commands, type_commands): Temporarily
set the appdomain while executing this method; do all metadata
calls in the debuggee's appdomain where user assemblies are loaded.
svn path=/branches/mono-2-6/mono/; revision=158051
2010-05-25 Martin Baulig <[email protected]>
Applying a patch from Lucas Meijer <[email protected]>.
* debug-mono-symfile.c: Release memory from symfiles that were
loaded from memory.
svn path=/branches/mono-2-6/mono/; revision=157864
2010-05-24 Martin Baulig <[email protected]>
* Connection.cs (VersionInfo): Make this public.
* VirtualMachine.cs (Version): New public property.
svn path=/branches/mono-2-6/mcs/; revision=157863
backport of r157831.
* Enumerable.cs: make Reverse lazier. Based on a patch by
Matthew Flaschen <[email protected]>. Fixes#608195.
svn path=/branches/mono-2-6/mcs/; revision=157832
* marshal.c (mono_marshal_free_dynamic_wrappers): Avoid an assert when this is called
during shutdown.
svn path=/branches/mono-2-6/mono/; revision=157809
* mini-ppc.c (mono_arch_output_basic_block): Use ins->inst_c1 instead of p1, the
two are not the same on ilp32.
svn path=/branches/mono-2-6/mono/; revision=157716
2010-05-19 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_marshal_init): Register mono_gchandle_get_target
icall.
* marshal.c (mono_delegate_to_ftnptr): Use a gchandle instead of
gc tracked memory.
* marshal.c (mono_marshal_emit_managed_wrapper): Retrieve the first
argument from a gchandle.
* marshal.c: Get rid of the delegate_target_locations hash table.
Fixes#605295.
Backport of r157589.
svn path=/branches/mono-2-6/mono/; revision=157655
* TypeDescriptor.cs: GetTypeDescriptor correctly forwards the call
to the wrapped type, if any. Fixes bug #603060
* TypeDescriptionProvider.cs: GetTypeDescriptor must return the
value from a call forwarded to _parent. Fixes bug #603060
svn path=/branches/mono-2-6/mcs/; revision=157626
* aot-compiler.c: Collect all information about a PLT entry into a separate MonoPltEntry
structure. Make the labels to plt entries local symbols instead of assembler local
labels, since tha latter causes problems for the iphone linker.
svn path=/branches/mono-2-6/mono/; revision=157577
* Enumerable.cs: fix GroupBy to deal with a null key for the last
group entry. Also fix GroupBy to properly throw ArgumentNullException.
svn path=/branches/mono-2-6/mcs/; revision=157561
* FtpDataStream.cs:
* FtpWebRequest.cs: properly close the data connection even when
nothing is read from it. Refixes bug #598908.
svn path=/branches/mono-2-6/mcs/; revision=157507
* class.c (mono_class_create_from_typedef): Fail a class
if there is a loop with its parent.
Fixes#598239.
svn path=/branches/mono-2-6/mono/; revision=157341
* class.c (mono_class_create_from_typedef): Only return
the class if no exceptions were detected.
* class.c (mono_class_create_from_typedef): Don't remove
broken classes from class_cache. Just set failure and
bail out.
This fixes a memory a memory leak where resolving the same
broken class multiple times resulted in a memory leak.
The right behavior would be to actually return the class
a let the caller figure it out.
svn path=/branches/mono-2-6/mono/; revision=157339
* typeload-unaligned.cs: Move the reference to the broken type
to an inner function since mono now detects the brokenness earlier.
svn path=/branches/mono-2-6/mono/; revision=157338
2010-05-11 Martin Baulig <[email protected]>
* debug-mono-symfile.c
(mono_debug_symfile_get_line_numbers): Fallback to the first
non-hidden source file in the method if the line number table ends
with a hidden line.
Fixes#604879.
svn path=/branches/mono-2-6/mono/; revision=157147
* aot-runtime.c (find_extra_method): Call mono_aot_wrapper_name only once,
instead of once for each module.
svn path=/branches/mono-2-6/mono/; revision=157143
* class.c (mono_class_alloc): New helper function to centralize memory allocation
for classes, allocates either from the image mempool or from the heap.
* class.c: Use mono_class_alloc to allocate memory owned by classes.
* metadata.c (free_generic_class_dependents): Free more items belonging to
generic classes.
svn path=/branches/mono-2-6/mono/; revision=157075
* debugger-agent.c (insert_breakpoint): Print a more descriptive error message
if a breakpoint cannot be inserted.
svn path=/branches/mono-2-6/mono/; revision=156984
* mini.c (mono_sigsegv_signal_handler): Use PLATFORM_WIN32 define instead of
HOST_WIN32. HOST_WIN32 was added after 2.6.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=156975
* metadata-verify.c: MS doesn't mind duplicates in the
typeref table. Move it to full verification.
Fixes#600508.
svn path=/branches/mono-2-6/mono/; revision=156949
* appdomain.c (mono_domain_has_type_resolve): Check for
NULL domain objects to make pedump happy.
* object.c (mono_field_get_value): Assert on NULL object.
It's the caller resposibility to check for this.
* object.c (mono_field_get_value_object): Ditto.
Fixes#601384.
svn path=/branches/mono-2-6/mono/; revision=156925
* debugger-agent.c (frame_commands): Return an error instead of asserting if
no JIT info is found for the method.
svn path=/branches/mono-2-6/mono/; revision=156915
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Protect against a NULL sigctx
in debug printf.
2010-05-05 Jonathan Chambers <[email protected]>
* mono-semaphore.c: Implement alertable wait on Windows similar to
other platforms. Always be alertable, but only return from wait if
user requested alertable state. Fixes soft debugger on Windows.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=156908
* OSX509Certificates.cs: Fix a crash when doing multiple certificate calls
Fix a rare but possible leak.
svn path=/branches/mono-2-6/mcs/; revision=156863
* class.c (mono_class_layout_fields): Don't perform alignment
if align is zero.
* class.c (mono_class_layout_fields): Init field related
* information
to sane defaults.
svn path=/branches/mono-2-6/mono/; revision=156765
* mini-ppc.c (mono_arch_emit_exceptions): Initialize exc_throw_pos/found
explicitly, this seems to be required by some gcc versions at -O2.
* mini-arm.c: Ditto.
svn path=/branches/mono-2-6/mono/; revision=156563
* mini.h (MonoAotTrampInfo): Rename this to MonoTrampInfo, add patches/unwind
info fields.
* aot-compiler.c (mono_aot_tramp_info_create): Rename to mono_tramp_info_create,
add patches/unwind info arguments, move to mini.c.
* mini-<ARCH>.c aot-compiler.c: Update after the above changes.
svn path=/branches/mono-2-6/mono/; revision=156559
* mini-x86.c (mono_arch_emit_prolog): Remove a disable_aot which is not needed.
(mono_arch_cpu_optimizazions): Make this a no-op when running with full aot.
(mono_arch_cpu_enumerate_simd_versions): Ditto.
svn path=/branches/mono-2-6/mono/; revision=156557
* tramp-x86.c exceptions-x86.c mini-x86.c aot-compiler.c aot-runtime.c:
Implement full-aot support on x86.
* method-to-ir.c: Always use a got var on x86 too, just like on ppc, because the
trampolines depend on it. Use MONO_ARCH_GOT_REG as the got register, instead of
the first register returned by get_global_int_regs ().
* cpu-x86.md: Fix the length of insertx_u1_slow.
* iltests.il.in: Disable tail call tests when running with full-aot.
svn path=/branches/mono-2-6/mono/; revision=156554
* debugger-agent.c (type_commands): Add a new CMD_TYPE_GET_SOURCE_FILES_2
command which returns full path names.
svn path=/branches/mono-2-6/mono/; revision=156537
* FtpDataStream.cs:
* FtpWebRequest.cs: use streams instead of sockets as soon as
possible. Correctly initialize the control connection when SSL
is used.
Fixes bug #598908.
svn path=/branches/mono-2-6/mcs/; revision=156199
* Context.cs:
* SslStreamBase.cs:
* RecordProtocol.cs: differentiate a received 'CloseNotify' alert from
one that we sent. Disposing the stream will try to send the
'CloseNotify' alert, if it hasn't already, and ignore any errors. This
is needed for FTPS to work.
svn path=/branches/mono-2-6/mcs/; revision=156197
* IProcess.cs:
* VirtualMachine.cs:
* VirtualMachineManager.cs:
Added new IProcess interface which wraps the debugged process.
This abstraction makes it easier to support debugging processes
for which we don't have a direct Process reference (for example,
if the process is remote).
svn path=/branches/mono-2-6/mcs/; revision=156113
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
sys/param.h dependencies to a few checks.
svn path=/branches/mono-2-6/mono/; revision=156098
* boehm-gc.c: Applied patch from Robert Nagy ([email protected]). Include
string.h for memmove.
socket-io.c: Applied patch from Robert Nagy ([email protected]).
ipaddress_to_struct_in6_addr() is only needed when
defined(HAVE_STRUCT_IP_MREQN) || defined(HAVE_STRUCT_IP_MREQ).
svn path=/branches/mono-2-6/mono/; revision=156095
names within EcmaHelpSource.MakeOperatorSignature() (where "full" is
"whatever is included in ECMA-335 §10.3.1 through §10.3.3").
Fixes InvalidOperationException reported to mono-docs-list.
svn path=/branches/mono-2-6/mcs/; revision=156072
* class.c (mono_class_create_from_typedef): Initialize class->nested_in after
calling setup_mono_type () since the nested parent could recursively reference
the nested class using generic constraints. Fixes#599469.
svn path=/branches/mono-2-6/mono/; revision=156054
default(T) expressions.
* System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
when beginning Type generation. This prevents "invalid"
`#endregion`s; if the CodeGenerator instance is reused for multiple
types, the last member of the first type has an EndDirective, then
the EndDirectvies will be generated before any members of the 2nd
type. Don't do that.
* Test/Microsoft.CSharp/CodeGeneratorFromExpressionTest.cs: Test
CodeDefaultValueExpression generation.
* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing
for CodeRegionDirectives.
svn path=/branches/mono-2-6/mcs/; revision=155897
* configure.in: Propagate DISABLE_MCS_DOCS to makefiles so mono/docs can be disabled.
Fixes the build '--with-profile2=no' using '--with-mcs-docs=no' as a workaround.
svn path=/branches/mono-2-6/mono/; revision=155879
* configure.in: Check for the asm/sigcontext.h header.
* mono/mini/exceptions-arm.c: Remove platform checks in favor of
configure checks.
* mono/io-layer/collection.c: Cleanup platform checks around
pthread_attr_setstacksize(), and instead always use
MAX(65536, PTHREAD_STACK_MIN) as the stack size.
* mono/io-layer/mono-mutex.c: Remove near duplicate
pthread_mutex_timedlock() declarations, and merge via a CONST_NEEDED
intermediate #define.
svn path=/branches/mono-2-6/mono/; revision=155825
primary `case "$host"` block. Using AC_CHECK_LIB() here breaks *BSD,
and it's unnecessary (for !target_win32, pthreads are checked again
later in configure.in).
svn path=/branches/mono-2-6/mono/; revision=155801
* verify.c: Handle the case where mono_type_get_underlying_type_any
returns NULL. Remove duplicated code between MONO_TYPE_GENERICINST
and MONO_TYPE_VALUETYPE in those case.
Based on a slightly modified patch by Sebastien Pouliot <[email protected]>
Hopefully Fixes#564253.
svn path=/branches/mono-2-6/mono/; revision=155772
terms of g_critical() instead of printf, and turn g_printerr() into
an actual function instead of a macro.
* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
and g_log() messages to the Android system log.
svn path=/branches/mono-2-6/mono/; revision=155762
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
in a build error in mono/utils/mono-codeman.c due to
`struct mallinfo` re-declaration. Define HAVE_USR_INCLUDE_MALLOC_H
if /usr/include/malloc.h is present to avoid this.
* mono/io-layer/collection.c, mono-mutex.c: Add Android support.
* mono/mini/exceptions-arm.c: Add Android support for sigcontext
structure.
svn path=/branches/mono-2-6/mono/; revision=155758
Android doesn't provide all the headers, structure members, and
functions that a "full" Linux distro includes.
* support/dirent.c, support/grp.c, support/macros.c, support/pwd.c,
support/signal.c, support/sys-statvfs.c, support/sys-time.c,
support/unistd.c: Add #if HAVE_XXX checks for functions which aren't
provided on Android.
svn path=/branches/mono-2-6/mono/; revision=155752
don't use glibc, and uses `environ` instead of `__environ`.
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
svn path=/branches/mono-2-6/mono/; revision=155746
* configure.in: Add a --enable-minimal=normalization option to disable support
for string normalization.
svn path=/branches/mono-2-6/mono/; revision=155720
* System/Uri.cs (CompactEscaped): New. Check if scheme allows escaped
path characters are compacted (list of schemes obtained from MSDN).
(Reduce): Add argument that is set if escaped characters need to
be compacted.
* Tests/System/UriTest.cs (FtpRootPath): New. Check that ftp root paths are
unmolested.
[backport trunk r155670]
svn path=/branches/mono-2-6/mcs/; revision=155672
* boehm-gc.c (mono_gc_base_init): Applied patch from Robert Nagy
([email protected]). Fix GC_stackbottom calculation on OpenBSD.
svn path=/branches/mono-2-6/mono/; revision=155616
* genmdesc.c (inst_name): Define this as a copy of mono_inst_name in helpers.c,
so the latter can be #ifndef DISABLE_JIT-ed.
* helpers.c: Comment out the opstr array if DISABLE_JIT is set.
svn path=/branches/mono-2-6/mono/; revision=155609
* HttpWebRequest.cs: set content length to -1 on redirect. Reset
'FinishedReading' on redirects. Fixes bug #593596.
svn path=/branches/mono-2-6/mcs/; revision=155605
* class.c (mono_class_from_typeref): Check if the supplied
image has an assembly bound to it.
Fixes#567884.
svn path=/branches/mono-2-6/mono/; revision=155546
* loader.c (mono_method_get_signature_full): Use new function
inflate_generic_signature_checked to check for errors.
Fixes#560839.
svn path=/branches/mono-2-6/mono/; revision=155530
* class.c (mono_class_setup_vtable_general): Use error checking
version of mono_class_inflate_generic_method_full.
Fixes#596975.
svn path=/branches/mono-2-6/mono/; revision=155525
Mono_Posix_RuntimeIsShuttingDown delegate, so that we can prevent an
infinite loop while shutting the process down. Fixes#592981.
svn path=/branches/mono-2-6/mcs/; revision=155523
mentioned that it's unacceptable for MonoPosixHelper to link against
libmono (e.g. when embedding mono, there might not be a libmono).
* map.h: Flush updated Mono_Unix_UnixSignal_SignalInfo prototype.
* signal.c: Don't use mono_runtime_is_shutting_down(). Instead, change
Mono_Unix_UnixSignal_WaitAny() to accept a function pointer argument,
which will return Environment.HasShutdownStarted in managed code (the
moral equivalent of mono_runtime_is_shutting_down()). This allows
us to avoid a libmono dependency w/o lots of rewriting. Fixes#592981.
svn path=/branches/mono-2-6/mono/; revision=155522
* reflection.c (_mono_reflection_parse_type): MS supports
non-assembly-qualified types in a generic type parameter list
when enclosed in '[]' (which signals that they should be a fqn).
This breaks ECMA specs for how type names are encoded in cattr
blobs but F# does it.
Fixes#576342.
svn path=/branches/mono-2-6/mono/; revision=155439
* icall.c (ves_icall_InternalInvoke): Check if the vtable is
* sane
for instance methods/ctors.
Fixes#422113.
svn path=/branches/mono-2-6/mono/; revision=155410
* method-to-ir.c (mono_method_to_ir): Disable generic sharing for constrained
calls where the constrained class needs a context. Fixes#595863.
* iltests.il.in: Add a test.
svn path=/branches/mono-2-6/mono/; revision=155330
** Fixes#591443
* DataColumn.cs (Clone): Use property to clone Expression as it
* builds
compiled expression also, if any.
svn path=/branches/mono-2-6/mcs/; revision=155217
* debugger-agent.c (thread_commands): Add a GET_ID command to get the
MonoInternalThread belonging to the thread.
svn path=/branches/mono-2-6/mono/; revision=155175
* verify.c (mono_method_verify): A switch op don't empty
the stack for the next one. Fixes a bug when running fsi
under --verify-all.
svn path=/branches/mono-2-6/mono/; revision=155155
* verify.c (do_invoke_method): It's ok to do use call with
virtual, non-final methods if their class is sealed.
svn path=/branches/mono-2-6/mono/; revision=155144
* DeflateStream.cs: always use Cdecl, since the library is compiled
using that calling convention in windows too.
svn path=/branches/mono-2-6/mcs/; revision=155015
* icall.c (ves_icall_System_Enum_ToObject): Avoid a crash for unfinished type
builders. Fixes#594464.
svn path=/branches/mono-2-6/mono/; revision=155011
* icall.c (ves_icall_System_Environment_Exit): Shutdown the threadpool before
waiting for all threads to suspend, as those threads can't be suspended.
svn path=/branches/mono-2-6/mono/; revision=155006
* zlib-helper.c: now that we don't use Z_SYNC_FLUSH, there might be
unflushed input in zstream, so always call Z_FINISH.
svn path=/branches/mono-2-6/mono/; revision=154996
* class.c (print_implemented_interfaces): Print proper type name.
* class.c (mono_class_setup_vtable): Don't try that hard to produce
the override map for generic instances since it later ignored.
* class.c (mono_class_implement_interface_slow): Don't break for
dynamic generic instances.
* object.c (mono_runtime_invoke_array): Add an assert for allocation.
* reflection.c (mono_reflection_method_get_handle): New method that
resolves a method handle.
* reflection.c (mono_reflection_get_dynamic_overrides): Handle the
case when we override methods from a dynamic generic instance interface.
Fixes#575941.
svn path=/branches/mono-2-6/mono/; revision=154888
2010-03-05 Martin Baulig <[email protected]>
Add support for aborting invocations.
* debugger-agent.c
(InvokeData): Added `InvokeData *last_invoke'.
(DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
added a new `invoke' field to keep the `InvokeData *' throughout
the invocation.
(ErrorCode): Added `ERR_NO_INVOCATION'.
(CmdVM): Added `CMD_VM_ABORT_INVOKE'.
(mono_debugger_agent_handle_exception): Don't report any exception
if an abort was requested.
(invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
a thread abort if necessary.
(vm_commands): Implement `CMD_VM_ABORT_INVOKE'.
svn path=/branches/mono-2-6/mono/; revision=154850
2010-03-05 Martin Baulig <[email protected]>
Add support for aborting invocations.
* IInvokeAsyncResult.cs: New file.
(IInvokeAsyncResult): New public interface; derives from
`IAsyncResult' and contains an Abort() method.
* Connection.cs
(Connection.VM_BeginInvokeMethod): Return the `id'.
(Connection.VM_AbortInvoke): New method.
* ObjectMirror.cs
(ObjectMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
instead of `IAsyncResult'. Connection.VM_BeginInvokeMethod() now
returns its id, store it in `InvokeAsyncResult.ID' because we need
to pass it to VM_AbortInvoke().
(ObjectMirror.AbortInvoke): New internal static method.
* StructMirror.cs
(StructMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
instead of `IAsyncResult'.
* TypeMirror.cs
(TypeMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
instead of `IAsyncResult'.
svn path=/branches/mono-2-6/mcs/; revision=154849
* verify.c (verify_type_compatibility_full): Fail mixed
* valuetype
and reference types that point to the same class.
Fixes#565598.
svn path=/branches/mono-2-6/mono/; revision=154802
Backport of r154765: Make configure display "Moon Profile: no".
* configure.in: Set default for with_moonlight to fix
"Moon Profile:" output.
This commit is licensed under the MIT X11 license.
svn path=/branches/mono-2-6/mono/; revision=154777
Backport of r154764: It's "initializer".
* configure.in: Fix typo.
This commit is licensed under the MIT X11 license.
svn path=/branches/mono-2-6/mono/; revision=154766
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
had been closed.
The problem here is that we have no records of why the code that
threw a ObjectDisposedException inside the do { } while block on
DangerousAddRef was added. It seems it was added in response to
Close() methods being called and the need to throw that exception
on further calls to ObjectDisposedException.
Sadly, we have no test suites for that.
svn path=/branches/mono-2-6/mcs/; revision=154742
against libmono.so, for mono_runtime_is_shutting_down().
* signal.c: Only continue retrying system calls if Mono is NOT
attempting to shut down. Fixes#592981.
svn path=/branches/mono-2-6/mono/; revision=154735
* config-default.make (LIBRARY_FLAGS): Applied patch from Laurent Etiemble
([email protected]). Use CFLAGS in the environment if defined.
svn path=/branches/mono-2-6/mcs/; revision=154607
* appdomain.c (mono_domain_assembly_postload_search): Avoid a crash/assert if
the assembly name is not well formed utf8. Fixes#567882.
svn path=/branches/mono-2-6/mono/; revision=154605
* reflection.c (mono_reflection_create_generic_class): Set the flags field of
the generic parameters from the builder. Fixes#473298.
svn path=/branches/mono-2-6/mono/; revision=154603
* mono-semaphore.h: Use Windows semaphores on Windows, patch
contributed by Vincent Povirk from bugzilla #531767
svn path=/branches/mono-2-6/mono/; revision=154601
* decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
float conv.ovf.un opcodes are encountered, instead of asserting later.
Fixes#566296.
svn path=/branches/mono-2-6/mono/; revision=154600
* mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
large. Fixes#567040.
* method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.
svn path=/branches/mono-2-6/mono/; revision=154585
* configure.in: Check whenever g++ is installed, since libtool requires it
even if no c++ files will be compiled.
svn path=/branches/mono-2-6/mono/; revision=154574
* System.Web.UI/PageParser.cs:
* System.Web.UI/Page.cs:
* System.Web.Configuration/PagesConfiguration.cs:
* System.Web.Compilation/PageCompiler.cs: default for
EnableViewStateMac is true. Allow setting it from a @Page
directive.
svn path=/branches/mono-2-6/mcs/; revision=154497
* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
the TypeBuilder since the runtime code can't handle a duplicate type name.
svn path=/branches/mono-2-6/mcs/; revision=154488
* mini-trampolines.c (mono_aot_trampoline): Remove some dead code.
* aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
does the patching if the callee is in the same domain.
* aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
of mono_arch_patch_plt_entry ().
svn path=/branches/mono-2-6/mono/; revision=154484
* CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for
dynamic enums to avoid crashes in the unmanaged code. Fixes#591800.
svn path=/branches/mono-2-6/mcs/; revision=154420
* debugger-agent.c (jit_end): Send type loads for types loaded before the VMStart
event is sent. Fixes#591733.
svn path=/branches/mono-2-6/mono/; revision=154352
* HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
existing authorization related headers until we know we have a
replacement. Fixes bug #591633.
svn path=/branches/mono-2-6/mcs/; revision=154347
* ServicePointManager.cs: errors parsing the certificate don't prevent
calling the callback now. Exceptions thrown parsing the certificate
are printed to stderr in case they are library errors.
svn path=/branches/mono-2-6/mcs/; revision=154317
** Patch by Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs: clean up
svn path=/branches/mono-2-6/mcs/; revision=154262
** Fixes#565149 - by Daniel Morgan <[email protected]>
* System.Data.OracleClient/OracleParameter.cs:
- if programmer explicitly sets the Size property,
do not override the size later if the Value property
is set for character data.
- for character and numeric data types, output and
return parameters were not allocated memory.
Also, input/output parameters need to allocate memory
based on Size because the output can be bigger than
the input after an execute.
* Test/TestOracleClient.cs: Data Adapter Test 2 is failing
for NET_2_0 profile.
svn path=/branches/mono-2-6/mcs/; revision=154261
* mono-semaphore.[hc]: make sure the semaphore calls are restarted if
interrupted. Return 0 on success and -1 on failure on windows.
svn path=/branches/mono-2-6/mono/; revision=154218
* SortSequenceContext.cs: Fix OrderByDescending stability.
Based on a patch by Richard Kiene <[email protected]>.
backport of r154154.
svn path=/branches/mono-2-6/mcs/; revision=154156
* loader.c (mono_method_get_marshal_info): Fix the handling of dynamic methods
broken by the last change.
svn path=/branches/mono-2-6/mono/; revision=153974
* loader.c: The marshal specs are freed at the end of the call
but it explicitly frees the strings as well as the container,
so we need to dup them too to avoid referencing free'd memory.
svn path=/branches/mono-2-6/mono/; revision=153973
* mini-ppc.c (mono_arch_emit_exceptions): Avoid an assert in ppc_patch () for
some large methods with lots of exception handlers. Fixes#440924.
svn path=/branches/mono-2-6/mono/; revision=153954
* DateTimeOffset.cs : fix parse failure on missing colon.
Fixed bug #547675, patch by Santa Marta (see bugzilla).
* DateTimeOffsetTest.cs : add test for bug #547675.
patch by Santa Marta.
Backport of r146338
svn path=/branches/mono-2-6/mcs/; revision=153925
* debugger-agent.c: Simplify the way breakpoints are processed by removing
the 'pending' flag. This fixes support for appdomains too.
svn path=/branches/mono-2-6/mono/; revision=153920
* FtpWebResponse.cs:
* FtpWebRequest.cs: for non-data operations, make sure we send the
QUIT command upon completion when KeepAlive is false.
Fixes bug #589305.
svn path=/branches/mono-2-6/mcs/; revision=153826
* StreamReaderTest.cs: test for bug 589236. The detected encoding is
different from the one provided in the ctor.
svn path=/branches/mono-2-6/mcs/; revision=153803
* StreamReader.cs: if the detected encoding is different from the
provided to the constructor, adjust the decoded buffer size if
needed. Fixes bug #589236.
svn path=/branches/mono-2-6/mcs/; revision=153800
* mini-ppc.c (mono_arch_build_imt_thunk): Always save and restore r11 since it
is needed even when fail_tramp!=NULL.
svn path=/branches/mono-2-6/mono/; revision=153769
* Path.cs (GetTempFileName): Fix infinite loop if the process doesn't have
write access to /tmp. Fixes#585017.
svn path=/branches/mono-2-6/mcs/; revision=153434
** Fixes #564833/580736
* DbDataAdapter.cs (*Command): Fix for .NET compatibility which
supports both type of adapters with/without discrete command
instances.
svn path=/branches/mono-2-6/mcs/; revision=153410
* object-internals.h (_G_BOOLEAN_EXPR): Fix the definition of this to explicitly
convert to a boolean, recent gcc versions compile this differently.
svn path=/branches/mono-2-6/mono/; revision=153373
* HttpListener.cs:
* HttpListenerRequest.cs:
* ListenerAsyncResult.cs:
* HttpConnection.cs: make sure there is no pending input when reusing
the connection.
svn path=/branches/mono-2-6/mcs/; revision=153301
* HttpListenerContext.cs: split the auth header in 2 parts.
* HttpListener.cs: backported SelectAuthenticationScheme and
added new InternalEndGetContext used for connections that require
authentication.
* ListenerAsyncResult.cs: allow this object to be just a forwarder
when nesting connections for authentication purposes.
Fixes bug #585455.
svn path=/branches/mono-2-6/mcs/; revision=153287
* method-to-ir.c: Store the initial basic block returned by
* mono_basic_block_split
so we can release the whole list and not just the first one.
Free it in more places as well.
svn path=/branches/mono-2-6/mono/; revision=153285
* verify.c: Store the initial basic block returned by
* mono_basic_block_split
so we can release the whole list and not just the first one.
svn path=/branches/mono-2-6/mono/; revision=153284
* verify.c: Store the initial basic block returned by
* mono_basic_block_split
so we can release the whole list and not just the first one.
Conflicts:
mono/metadata/ChangeLog
mono/metadata/verify.c
svn path=/branches/mono-2-6/mono/; revision=153283
This reverts commit 5b4c3e4a2a5e73e6603a181b183dd3293b15e856.
Revert this too as the corresponding fix was reverted.
svn path=/branches/mono-2-6/mono/; revision=153257
This reverts commit 1a9062e916b146e18177e2dd53b1bc84946c2ddf.
Revert this as it seems to break appdomain-unload.exe.
svn path=/branches/mono-2-6/mono/; revision=153254
* branch-opts.c (mono_if_conversion): Disable one of the cases when deadce
is disabled. Fixes#582322.
* iltests.il.in: Add a test.
svn path=/branches/mono-2-6/mono/; revision=153220
* processes.c: made ShellExecuteEx actually work when the file name to
execute is quoted. Display a message intead of blindly ignoring the
result of g_shell_parse_argv(). Fixes bug #385497.
svn path=/branches/mono-2-6/mono/; revision=153209
* monitor.c (mono_monitor_exit): Raise an exception if the object is not locked,
MS does this from net 2.0 onwards.
svn path=/branches/mono-2-6/mono/; revision=153200
* tramp-amd64.c (mono_arch_create_monitor_exit_trampoline_full): Delegate
the handling of obj->synchronization == null and owner != current thread to
mono_monitor_exit ().
svn path=/branches/mono-2-6/mono/; revision=153199
* SmtpClient.cs: typo in reply-to header. Thanks to Chris Tomlinson.
Fixes bug #578271.
Re-enabled code that seems to compile now.
svn path=/branches/mono-2-6/mcs/; revision=153181
* shared.c (shm_semaphores_init): Applied patch from Cal Page
([email protected]). Fix support for USE_SHM.
svn path=/branches/mono-2-6/mono/; revision=153133
2010-03-04 David S. Miller <[email protected]>
* include/private/gc_locks.h: Add SPARC implementations of
GC_compare_and_exchange and GC_memory_barrier.
In mono/mini/:
2010-03-04 David S. Miller <[email protected]>
* mini-sparc.h: Always use MONO_ARCH_USE_SIGACTION. Linux kernels
that don't provide the siginfo in the second signal handler argument
are buggy, and this has been fixed for years.
* mini.h (GET_CONTEXT): Remove __sparc__ special case.
(SIG_HANDLER_SIGNATURE, SIG_HANDLER_PARMS): Likewise.
svn path=/branches/mono-2-6/mono/; revision=153115
* mono-mmap.c: apparently kill() can return ENOMEM. Also use signal 0
which is the documented way of testing for the existence of a PID.
Thanks to Cal Page.
svn path=/branches/mono-2-6/mono/; revision=152955
* Methods.cs: In BuildResponseReflectionMembers, use the operation
name as base name for the response element. Don't use the request
name as base, since it may have been customized using the RequestElementName
property. Fixes bug #548988.
svn path=/branches/mono-2-6/mcs/; revision=152951
* ServiceDescriptionCollection.cs: When looking for bindings and other
items, look in the list instead of the namespace table, since the
collection may have several description documents with the same
namespace.
* ProtocolImporter.cs: Same as above. A schemas collection can have
more than one schema with the same name, so we can use the namespace
indexer to find schemas.
* BasicProfileChecker.cs: Added null check.
svn path=/branches/mono-2-6/mcs/; revision=152949
whatever uses the data should be the one adding newlines if they need it
(i.e., moon's ff bridge needs it, the curl bridge doesn't)
svn path=/branches/mono-2-6/mcs/; revision=152891
Merge the MonoTouch Linker branch.
* Mono.Linker/LinkContext.cs:
Allow creation with a custom resolver.
* Mono.Linker/AssemblyResolver.cs:
Allow creation with a custom assembly cache.
* Mono.Linker.Steps/ResolveFromAssemblyStep.cs:
- Mark fields for copied assemblied.
- Now can take an assembly directly.
* Mono.Linker.Steps/SweepStep.cs
* Mono.Linker.Steps/CleanStep.cs:
Optimizations.
svn path=/branches/mono-2-6/mcs/; revision=152841
2010-03-01 Martin Baulig <[email protected]>
* abort-invoke.cs: Add a test for my latest patch regarding thread
aborts while running a class .cctor.
svn path=/branches/mono-2-6/mono/; revision=152830
2010-02-26 Martin Baulig <[email protected]>
* class-internals.h (MonoVTable): Added `init_aborted'.
* object.c
(mono_runtime_class_init_full): Set `vtable->init_aborted' in
addition to `vtable->init_failed' if we hit a `ThreadAbortException'
while running the class .cctor and reset `init_failed' next time
we're called.
svn path=/branches/mono-2-6/mono/; revision=152829
2010-02-26 Martin Baulig <[email protected]>
* debug-debugger.c (MonoDebuggerInfo): Added `abort_runtime_invoke'.
* debug-mini.c
(MonoDebuggerThreadInfo): Added `internal_flags'.
(MonoDebuggerInternalThreadFlags): New enum.
(_mono_debugger_throw_exception): Don't signal the debugger if a
type abort was requested.
(_mono_debugger_unhandled_exception): Likewise.
(mono_debugger_abort_runtime_invoke): New method to abort an invocation.
(mono_debugger_runtime_invoke): If the debugger requested a thread
abort during the invocation, reset it here.
svn path=/branches/mono-2-6/mono/; revision=152828
either Xutf8LookupString or XLookupString with special chars (such
backspace and enter) can result in a buffer filled with garbage, or
empty - thus re-use the value returned by the same functions to fill
the gap.
Fixes#582691.
2010-03-02 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=152806
* RichTextBox.cs: When retrieving SelectedRtf/Rtf properly escape any
RTF reserved char, so we don't end up messing around the actual rtf
values.
Fixes part of #575731.
svn path=/branches/mono-2-6/mcs/; revision=152805
* OSX509Certificates.cs: Add support to validate X509 certificate
chains using the OSX certificates API.
svn path=/branches/mono-2-6/mcs/; revision=152763
* VirtualMachine.cs: Allow working with runtimes implementing a different
minor version of the debugger protocol.
svn path=/branches/mono-2-6/mcs/; revision=152758
* debugger-agent.c: Add a new command to communicate the protocol version used
by the client. This could be used to allow newer runtimes to communicate with
older clients.
svn path=/branches/mono-2-6/mono/; revision=152754
* AppDomainMirror.cs (CreateBoxedValue): New method to create a boxed value from
a primitive value or struct.
svn path=/branches/mono-2-6/mcs/; revision=152718
* Line.cs: When setting the Text property, if the new text is larger
than the previous one, call Grow to update our internal 'widths'
array, to be properly in sync with the new text.
Fixes#569530.
svn path=/branches/mono-2-6/mcs/; revision=152698
* ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
back color arguments depending on the higlight/focus state, just like
.net.
Fixes#572643.
svn path=/branches/mono-2-6/mcs/; revision=152697
* ToolStripMenuItem.cs: Don't try to use SystemColors.MenuText if fore
color is SystemColors.ControlText, as this system color detection
should be done *completely*. This is specially important when
detecting colors in systems running Gtk+ and dark themes.
svn path=/branches/mono-2-6/mcs/; revision=152691
* System.Net/WebConnection.cs: attach a validation callback to the new
event in Mono.Security.
* System.Net/ServicePointManager.cs: added a new ValidationHelper
class that takes care of building the certificate chain and perform
all the check that were done in Mono.Security before. This way the 2.0
server certificate validation callback can get all the data it needs.
* System.Net.Security/SslStream.cs: don't do anything if a chain
element has no error.
Fixes bug #584050.
svn path=/branches/mono-2-6/mcs/; revision=152655
* Mono.Security.Protocol.Tls/HttpsClientStream.cs: use Address instead
of RequestUri to get the right host name when the request is
redirected.
* Mono.Security.Protocol.Tls/SslStreamBase.cs:
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/SslServerStream.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
added a new callback for certificate validation that gets all the
certificates received from the server/client. The callee should
build the chain and validate it.
svn path=/branches/mono-2-6/mcs/; revision=152653
* Mono.Documentation/webdoc.cs: Allow .source files to be provided to
'mdoc export-html-webdoc', which will cause the .source files to be
read and all referenced .tree/.zip files to be processed.
svn path=/branches/mono-2-6/mcs/; revision=152642
* Monodoc/provider.cs: Fix the build: monodoc.dll is build for the 1.1
profile in Mono 2.6, so remove use of generics/etc.
svn path=/branches/mono-2-6/mcs/; revision=152639
* marshal.c (get_runtime_invoke_type): Avoid sharing byref with I, as the latter
needs an indirection.
svn path=/branches/mono-2-6/mono/; revision=152631
that 'mdoc export-html-webdoc' will use the system-installed sources
in addition to any -r'd sources (which was the behavior 2 commits
ago).
svn path=/branches/mono-2-6/mcs/; revision=152624
'--format' logic, specifically 'mdoc export-html-webdoc'.
* Mono.Documentation/webdoc.cs: Allow it to be more "stand-alone".
Previously, it would depend upon the system-wide .source files.
This is bad, because you might want to generate the 'cache'
directory for a different installation, with a different set of
.tree/.zip/.source files, and you might not want to replace your own
and/or you often forget, as is the case with me. Instead, allow a
format to be specified for .tree files, and allow additional .source
files to be referenced so that extension methods will be found within
the specified sources. This allows for a "stand-alone" method of
operation w/o depending upon the system-wide .source files.
svn path=/branches/mono-2-6/mcs/; revision=152591
resource.
* Monodoc/provider.cs: Add a
RootTree.LoadTree(string,XmlDocument,IEnumerable<string>) method.
This is so 'mdoc export-html-webdoc' doesn't need to rely on the
system-wide .source files (allowing execution w/o changing/replacing
the system-wide .source files) and so MonoDevelop can support
multiple .source files spread throughout the system sanely.
* Monodoc/ecma-provider.cs: Always add the extension methods contained
in the current EcmaHelpSource, instead of implicitly requiring that
the current EcmaHelpSource also be contained within
RootTree.HelpSources. This simplifies logic in 'mdoc'.
svn path=/branches/mono-2-6/mcs/; revision=152588
* class.c (get_implicit_generic_array_interfaces): Fix the last change so
we don't call setup_interface_offsets () for unfinished types.
svn path=/branches/mono-2-6/mono/; revision=152581
* threads.c (mono_thread_suspend_all_other_threads): Ignore threads which have
the DONT_MANAGE flag set.
svn path=/branches/mono-2-6/mono/; revision=152578
* class.c (get_implicit_generic_array_interfaces): Call
mono_class_setup_interface_offsets () before accessing
eclass->interface_offsets_count. This only shows up on platforms without IMT for
some reason.
svn path=/branches/mono-2-6/mono/; revision=152522
* Connection.cs: Throw a NotSupportedException if the protocol version doesn't
support the caught/uncaught flags in an exception modifier.
svn path=/branches/mono-2-6/mcs/; revision=152515
In class/System/System.Threading/:
* Barrier.cs: Fix NRE with postPhaseAction delegate
Add post phase triggering when removing participant(s)
svn path=/branches/mono-2-6/mcs/; revision=152512
* wait.c: If any of our handles are shared, we need to do
a polling wait so we're notified of the signal change.
svn path=/branches/mono-2-6/mono/; revision=152509
* debugger-agent.c (notify_thread): Skip terminated threads, since their tls
data is not freed yet. Fixes#582460.
svn path=/branches/mono-2-6/mono/; revision=152325
* Normalization.cs: Implement algorithmic Hangul decomposition; Calling
string.Normalize on Korean characters now works properly (bnc#480152).
This reduces the number of errors in 'make test' from 27k to 4.8k.
* StringNormalizationTestSource.cs:
* Makefile: Use the local, working copy of Normalization etc,so as to make
modifying Normalization.cs and then testing your changes with 'make test'
possible. Also, fix building/running of tests, patch by Alexander
Kojevnikov.
svn path=/branches/mono-2-6/mcs/; revision=152307
* HttpWebRequest_2_1.cs: Accept and ContentType properties do not
behave like Silverlight 2.0 (not related to browser/client stacks)
* WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
related to browser/client stacks)
* WebRequest_2_1.cs: Fix registration to work on domains (new)
and scheme (more correctly wrt new unit tests).
[Backport r152275]
svn path=/branches/mono-2-6/mcs/; revision=152276
* debugger-agent.c: Add support for the caught/uncaught flags on exception
event requests. Bump protocol minor version.
svn path=/branches/mono-2-6/mono/; revision=152234
* VirtualMachine.cs (CreateExceptionRequest): Add an overload taking two
booleans which specify whenever to report caught/uncaught exceptions.
* ExceptionRequest.cs: Add public properties for them.
* Connections.cs: Pass the caught/uncaught flags to the debuggee. Bump protocol
minor version.
svn path=/branches/mono-2-6/mcs/; revision=152232
* mini.c (mono_method_check_inlining): Use
* !mono_method_get_header_summary
instead of mono_method_get_header as it doesn't decode locals
so the called method can have unresolved dependencies that will
only be satisfied after the current method is JIT'd.
Fixes#550968.
svn path=/branches/mono-2-6/mono/; revision=152210
* metadata.c: Add mono_method_get_header_summary which returns
* minimal information about the header of a method. This is the
information used by the inline oracle to reject methods.
This method doesn't decode local variables and doesn't cache
it's result, so it should cause a minimal reduction in memory usage.
* metadata-internals.h: Add MonoMethodHeaderSummary structure
and mono_method_get_header_summary.
svn path=/branches/mono-2-6/mono/; revision=152209
* MemoryStream.cs: Don't clear the bytes beyond Length when shrinking
it. Instead just save the related information for it and do it when
Length grows and touchs that dirty region. Refactor the code where
needed to avoid duplication as well.
Fixes#327053.
svn path=/branches/mono-2-6/mcs/; revision=152171
In tools/xbuild:
2010-02-19 Ankit Jain <[email protected]>
* SolutionParser.cs (GetAllProjectFileNames): New.
* Parameters.cs (ParseArguments): When no project file is specified,
if the cur dir has a single sln and >1 project files, and all the
project files are referenced by the sln, the pick the sln.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-02-10 Ankit Jain <[email protected]>
* GenerateResource.cs (CompileResourceFile): Check File.Exists
for source file.
Don't build if the target is newer than the source file.
(Execute): Continue building all the resources, even if there
are failures for some files.
2010-02-10 Ankit Jain <[email protected]>
Fix bug #558739.
* GenerateResource (Resgen): New. Internal task to run resgen
with MONO_IOMAP=drive .
(Execute): Use the new Resgen task to compile the resources.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-02-19 Ankit Jain <[email protected]>
* ImportTest.cs (TestMissingImport*): Add new tests for missing
import projects.
2010-02-11 Ankit Jain <[email protected]>
* ImportTest.cs (Add1): Fix test on windows.
In class/Microsoft.Build.Engine/Test/various:
2010-02-19 Ankit Jain <[email protected]>
* Items.cs (TestItemsWithWildcards): Check for RecursiveDir metadata also.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-02-19 Ankit Jain <[email protected]>
* BuildItem.cs: Track api changes.
(SetMetadata): Allow RecursiveDir to be set, this is set by
DirectoryScanner.
* DirectoryScanner.cs (ProcessInclude): Set RecursiveDir metadata.
2010-02-19 Ankit Jain <[email protected]>
* Import.cs (Evaluate): Add param @ignoreMissingImports.
* Project.cs (Load*): Add overloads with param @projectLoadSettings.
(Log*): Mark internal.
* ProjectLoadSettings.cs: New.
In class/Microsoft.Build.Engine:
2010-02-19 Ankit Jain <[email protected]>
* Microsoft.Build.Engine.dll.sources: Add ProjectLoadSettings.cs .
In class/Microsoft.Build.Utilities:
2010-02-10 Ankit Jain <[email protected]>
* Microsoft.Build.Utilities.dll.sources: Add ProcessStringDictionary.cs
from class/System/System.Collections.Specialized . This is required as
the StringDictionary in ToolTask, used for EnvironmentOverrides, is
inadequate, because environment vars are case sensitive on unix.
In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2010-02-19 Ankit Jain <[email protected]>
* ReservedNameUtils.cs (GetReservedMetadata): Add dictionary param
@metadata. Use this to check for existing value of "RecursiveDir"
metadata, use that if present.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-02-19 Ankit Jain <[email protected]>
* TaskItem.cs: Track api changes.
2010-02-10 Ankit Jain <[email protected]>
* ProcessService.cs (globalEnvironmentVariablesOverride): Use
ProcessStringDictionary instead of StringDictionary.
ProcessStringDictionary retains the case of the keys (env vars
here).
* ToolTask.cs (environmentOverride): Likewise.
2010-02-10 Ankit Jain <[email protected]>
* ToolTask.cs (ExecuteTool): Use the virtual method
Standard*LoggingImportance, instead of the underlying field.
(LogEventsFromTextOutput): Use @importance argument for LogMessage.
(LogToolCommand): Remove MonoTODO.
svn path=/branches/mono-2-6/mcs/; revision=152128
* debugger-agent.c (mono_debugger_agent_handle_exception): Receive two contexts,
one for the throw and one for the catch. Mark uncaught exceptions by a NULL
CATCH_TXT. Send normal exception events for unhandled exceptions too.
(mono_debugger_agent_handle_unhandled_exception): Remove this, merged into
handle_exception.
svn path=/branches/mono-2-6/mono/; revision=152109
* debug-helpers.c (dis_one): Fix the disassembly of empty strings when
NO_UNALIGNED_ACCESS is defined.
svn path=/branches/mono-2-6/mono/; revision=152103
* System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648
so that PackUris can be combined properly.
svn path=/branches/mono-2-6/mcs/; revision=152070
* exceptions-x86.c (mono_arch_get_restore_context): Changes this so it restores
edx/ecx too. This is needed to support OP_SEQ_POINT.
svn path=/branches/mono-2-6/mono/; revision=152033
* class.c (mono_class_get_cctor): Fix support for dynamic classes, which doesn't
have has_cctor set. Fixes#575946.
svn path=/branches/mono-2-6/mono/; revision=151944
* appdomain.c: display a warning if the parsing the config file
produces any error.
Skip the BOM in UTF-8 files.
svn path=/branches/mono-2-6/mono/; revision=151894
* WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
supply it when calling OnDownloadProgressChanged
* WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature
[Backport r151800]
svn path=/branches/mono-2-6/mcs/; revision=151801
* StreamWriter.cs:
* FileStream.cs: if flushing fails when disposing the stream, make
sure it is closed before throwing the exception. Fixes bug #579146.
svn path=/branches/mono-2-6/mcs/; revision=151762
* SmtpClient.cs: generate correct MIME when there are text and html
linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.
svn path=/branches/mono-2-6/mcs/; revision=151759
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
when removing the querystring from the url.
svn path=/branches/mono-2-6/mcs/; revision=151755
* Test/System.Collections.Generic/HashSetTest.cs:
* System.Collections.Generic/HashSet.cs: fix and test for bug #579791.
Patch from Tiaan Geldenhuys.
svn path=/branches/mono-2-6/mcs/; revision=151706
* mono-profiler-aot.c (output_image): Emit method names instead of tokens so
the info can be used for different versions of the same assembly. Don't append
the assembly guid to the file names.
svn path=/branches/mono-2-6/mono/; revision=151698
* debug-helpers.c (mono_method_desc_search_in_image): Handle short names like
'int' for system classes.
svn path=/branches/mono-2-6/mono/; revision=151697
* mini.c (mono_jit_compile_method_inner): Avoid passing icall wrappers to
mono_profiler_method_end_jit, since the profiler has no way to process wrappers.
* aot-runtime.c mini.c: Resurrect the aot pagefault profiling stuff, it is useful
for mtouch.
svn path=/branches/mono-2-6/mono/; revision=151695
* debugger-agent.c: handle incomplete reads and EINTR in
recv()/send(). This could have been causing random
disconnections.
svn path=/branches/mono-2-6/mono/; revision=151688
* mini-arm.c (mono_arch_allocate_vars): Allocate the seq point related vars first
so they have small offsets. Fixes#566311.
svn path=/branches/mono-2-6/mono/; revision=151682
* generic-sharing.c (instantiate_other_info): Don't create ftnptr's from the
result of mono_compile_method (), it already includes an ftnptr.
svn path=/branches/mono-2-6/mono/; revision=151611
* mini-generic-sharing.c (mini_type_get_underlying_type): Handle byref as well
by returning native int. Fixes#577984.
svn path=/branches/mono-2-6/mono/; revision=151515
* CP1250.cs CP1252.cs: Move the '--charCount' line to the beginning of the loop,
since it can be skipped in case of HandleFallback. Add brances around the
call to HandleFallback so the 'continue' call is only done if it is called.
Should fix#573682.
svn path=/branches/mono-2-6/mcs/; revision=151281
2010-02-09 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Mono.CompilerServices.SymbolWriter does not
need to access mscorlib.dll internals anymore (ArrayList and
Hashtable)
[Backport r151176]
In .:
2010-02-09 Sebastien Pouliot <[email protected]>
* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
SymbolWriter source files directly into mscorlib 2.1
[Backport r151176]
In System.Reflection.Emit:
2010-02-09 Sebastien Pouliot <[email protected]>
* ModuleBuilder.cs: Do not use reflection to create SymbolWriterImpl
for Moonlight since the code is bundled inside mscorlib.dll to avoid
having a non-platform assembly poking the internals of mscorlib.dll
[Backport r151176]
svn path=/branches/mono-2-6/mcs/; revision=151177
* XUtil.cs: Avoid using ToLowerInvariant since it is not
available in Silverlight.
[Backport r151136]
svn path=/branches/mono-2-6/mcs/; revision=151137
2010-02-09 Rodrigo Kumpera <[email protected]>
* icall.c (param_info_get_type_modifiers): Handle the case when the member object is a
property. This happens which instances returned by PropertyInfo::GetIndexParameters ().
* reflection.c (mono_reflection_get_custom_attrs_info): Ditto.
* object-internals.h: Export mono_class_is_reflection_method_or_constructor as part of
the internal API.
Fixes#574434.
Backport of r151093.
svn path=/branches/mono-2-6/mono/; revision=151094
* threads.c: Removed two assertions that were too strict. Added a
clarifying comment. Fixes#577090.
Backport of r151074.
svn path=/branches/mono-2-6/mono/; revision=151075
* mini-exceptions.c (mini_jit_info_table_find): Search the root domain as well,
since mono_jit_info_table_find () doesn't do it anymore.
* mini-generic-sharing.c debugger-agent.c: Call mini_jit_info_table_find ()
instead of mono_jit_info_table_find ().
svn path=/branches/mono-2-6/mono/; revision=151035
* domain.c (mono_jit_info_table_find): Avoid looking in the root domain, since
the caller has no way of knowing the domain which owns the returned MonoJitInfo.
* appdomain.c (create_exceptions): Call mono_thread_push/popappdomain_ref ().
svn path=/branches/mono-2-6/mono/; revision=151034
* MethodInfoTest.cs: New test for GetParameters() returning the
* interned array.
* PropertyInfoTest.cs: New tests for GetIndexParameters().
svn path=/branches/mono-2-6/mcs/; revision=150955
* MonoMethod.cs (GetParameters): Must return a copy instead of
* the interned array.
* MonoMethod.cs (Invoke): Skip array clone in GetParameters.
* MonoProperty.cs (GetIndexParameters): Properly handle
* write-only indexed properties.
Return a ParameterInfo object bound to the properly and not to
the method.
* ParameterInfo.cs: Add new constructor that copies all fields
* but Member.
* ParameterInfo.cs (MetadataToken): Properly handle tokens of
* non-method members.
svn path=/branches/mono-2-6/mcs/; revision=150954
2010-02-04 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Use the new basic block formation pass
to avoid JIT'ng dead basic blocks. This is the same behavior as the
runtime MS verifier.
backport of r150888.
svn path=/branches/mono-2-6/mono/; revision=150895
* verify.c (mono_method_verify): Use the new basic block formation pass
to avoid verifying dead basic blocks. This is the same behavior as the
runtime MS verifier.
backport of r150888.
2010-02-04 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=150892
2010-02-04 Rodrigo Kumpera <[email protected]>
* mono-basic-block.c:
* mono-basic-block.h: New implementation of a basic block formation pass.
The formation pass does static liveness analysis as well to detect dead
basic blocks.
backport of r150887.
svn path=/branches/mono-2-6/mono/; revision=150891
* VirtualMachine.cs (CreateEnumMirror): New method to create an EnumMirror.
* AppDomainMirror.cs (GetCorrespondingType): New method to return a TypeMirror
corresponding to a primitive type.
* TypeMirror.cs (IsEnum): Implement.
* EnumMirror.cs (.ctor): New internal constructor called from CreateEnumMirror
which does lots of error checking.
svn path=/branches/mono-2-6/mcs/; revision=150814
backport of r149817
* cominterop.c marshal.c: Added support for marshalling in, in/byref,
in/out, in/out/byref parameters of type SAFEARRAY[VARIANT].
* cominterop.cs libtest.c: Added tests for marshalling
in, in/byref, in/out, in/out/byref parameters of type
SAFEARRAY[VARIANT].
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=150782
* mini-amd64.c (mono_arch_emit_prolog): Initialize lmf->rsp in the prolog too
so async stack walks don't crash.
svn path=/branches/mono-2-6/mono/; revision=150738
* mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
was not patched if the callee needed an rgctx trampoline.
svn path=/branches/mono-2-6/mono/; revision=150690
In tools/xbuild/Test:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* ParametersTest.cs: /noautorsp + test for each property value
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* xbuild.tests/ParametersTest.cs
* xbuild.tests/xbuild.tests.csproj:
NUnit tests for the Parameters class
In tools/xbuild:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* Main.cs
* Parameters.cs: response file might be specified in double quotes.
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* Makefile
* xbuild_test.dll.sources
* xbuild.sln
* Test/*: added NUnit tests (Test/xbuild.tests)
2009-12-22 Ankit Jain <[email protected]>
Fix bug #566087.
* xbuild/Microsoft.CSharp.targets: Use $(NoWarn) .
2009-12-14 Ankit Jain <[email protected]>
* Parameters.cs (TryProcessMultiOption): New.
(ProcessTarget):
(ProcessProperty): Refactor to use TryProcessMultiOption,
and accept ":" in target name or property name/value pair.
2009-12-14 Ankit Jain <[email protected]>
Fix bug #562056.
* Parameters.cs: Property name/value pairs can be separated by ':'.
2009-11-26 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets (PostBuildEvent): If
$(RunPostBuildEvent) is empty, treat it as OnBuildSuccess.
Simplify condition.
2009-11-25 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Emit list of files written
during the build to the obj/$(Config) rather than obj/, to keep
them per config. Bug reported by : Greg F <[email protected]>
2009-11-10 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets(AL):
* xbuild/Microsoft.CSharp.targets (CSC):
* xbuild/Microsoft.VisualBasic.targets (Vbc): Set ToolExe and ToolPath to
corresponding properties, allowing them to be overridden.
2009-11-09 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Set default TargetFrameworkVersion.
Replace TargetFrameworkPath with TargetFrameworkDirectories, and set
according to the TargetFrameworkVersion.
In tools/xbuild/tests:
2009-11-26 Ankit Jain <[email protected]>
* standalone/Project1/final-outputs.txt: Update.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* BuildChooseTest.cs
* BuildPropertyTest.cs:
test cases for nested Choose elements and different property
evaluation scenarios.
In class/Microsoft.Build.Engine/Test/various:
2009-12-22 Ankit Jain <[email protected]>
* Items.cs (TestItemsWithWildcards): Add Exclude also, update
test accordingly.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-12-22 Ankit Jain <[email protected]>
Fix bug #565849.
* DirectoryScanner.cs (Excludes): Change from string to ITaskItem[] .
* BuildItem.cs: Track api changes.
2009-12-02 Ankit Jain <[email protected]>
Fix bug #559990.
* Engine.cs (UnloadAllProjects): Don't remove items from the collection
being iterated over. Patch by Laurent Etiemble
<[email protected]>
2009-11-28 Ankit Jain <[email protected]>
Fix bug #547753.
* BatchingImplBase.cs (DumpBucket*): New. Useful for debugging.
* Project.cs (Batch): New. Contains the perBatchItems and the
commonItems for the batch.
Use a stack of batches, instead of directly setting the current
batch items.
(PushBatch): New.
(PopBatch): New.
(SetBatchedItems): Make this private.
(GlobalProperties.set): Re-evaluating the project is not required
for this.
* TargetBatchingImpl.cs: Use the new Push/PopBatch instead of directly
setting the batches.
* TaskBatchingImpl.cs: Likewise. Refactor slightly to PopBatch in
finally block.
* Target.cs (Build): Reset the current batch to nil before evaluating
and building this target.
2009-11-28 Ankit Jain <[email protected]>
* Project.cs (TryGetEvaluatedItemByNameBatched): Item could be
available in either perBatchItemsByName or commonItemsByName
or the evaluatedItemsByName collection. Allows the use of
items which are not batched, but are consumed in case of batching.
2009-11-26 Ankit Jain <[email protected]>
* TargetBatchingImpl.cs (BuildTargetNeeded): Expand metadata
refs also, for Inputs and Outputs.
2009-10-13 Ankit Jain <[email protected]>
* DirectoryScanner.cs:
* ExpressionCollection.cs:
* GroupingCollection.cs:
* Project.cs:
* Target.cs: Fix warnings.
In class/Microsoft.Build.Engine:
2010-01-21 Rodrigo B. de Oliveira <[email protected]>
* Microsoft.Build.BuildEngine/BuildWhen.cs
* Microsoft.Build.BuildEngine/PropertyReference.cs:
support for nested Choose elements + fixed bug where the project reference
would be null during condition evaluation.
2010-01-12 Rodrigo B. de Oliveira <[email protected]>
* Microsoft.Build.BuildEngine/BuildWhen.cs
* Test/Microsoft.Build.BuildEngine/BuildChooseTest.cs:
Support for PropertyGroup as a child of When and Otherwise
In class/Microsoft.Build.Framework/Mono.XBuild.Framework:
2009-10-13 Ankit Jain <[email protected]>
* AssemblyLoadInfo.cs: Fix warning.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-12-22 Ankit Jain <[email protected]>
* CreateItemTest.cs (TestItemsWithWildcards): New.
2009-11-28 Ankit Jain <[email protected]>
* TaskBatchingTest.cs: Add new tests for batching.
2009-11-28 Ankit Jain <[email protected]>
* TaskBatchingTest.cs: Add new tests for batching, use on unbatched
items in a batching scenario.
In class/Microsoft.Build.Tasks:
2009-12-22 Ankit Jain <[email protected]>
* Microsoft.Build.Tasks.dll.sources: Add DirectoryScanner.cs
from Build.Engine, required by CreateItem.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-12-22 Ankit Jain <[email protected]>
Fix bug #565849.
* CreateItem.cs: Use DirectoryScanner to handle wildcards.
(IsExcluded): Remove.
2009-11-26 Ankit Jain <[email protected]>
* ManagedCompiler.cs (AddResponseFileCommands): *mcs doesn't
support /debug:pdbonly, so map it to /debug:full .
2009-11-10 Ankit Jain <[email protected]>
* ToolTask.cs (ToolExe): New.
* Csc.cs:
* AL.cs: Use ToolExe instead of ToolName to construct
tool's full path.
2009-11-09 Ankit Jain <[email protected]>
* GetFrameworkPath.cs (FrameworkVersion11Path):
(FrameworkVersion20Path):
(FrameworkVersion30Path):
(FrameworkVersion35Path): New.
2009-10-13 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Fix warnings.
2009-10-13 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Log only unique conflict warnings.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-11-25 Ankit Jain <[email protected]>
* ToolLocationHelper.cs: Set directory for 3.0 framework
to "2.0"
2009-11-09 Ankit Jain <[email protected]>
* TargetDotNetFrameworkVersion.cs (Version30):
(Version35): New.
* ToolLocationHelper.cs: Support 3.0 and 3.5 also.
2009-10-13 Ankit Jain <[email protected]>
* TaskLoggingHelper.cs:
* ToolTask.cs: Fix warnings.
svn path=/branches/mono-2-6/mcs/; revision=150655
* class.c (make_generic_param_class): Initialize interface offsets since we
set klass->inited. Fixes#574819.
svn path=/branches/mono-2-6/mono/; revision=150559
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
the correct thread (by using the stored SynchronizationContext).
* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
is passed to the WriteStreamClosedCallback.
svn path=/branches/mono-2-6/mcs/; revision=150511
* debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
end of the appdomain unload process, after assemblies have been unloaded.
Fixes#574842.
svn path=/branches/mono-2-6/mono/; revision=150454
* WebClient_2_1.cs: The async events must be invoked on a threadpool
thread if the async method wasn't executed on the main thread, so save
the synchronization context when the async method is called, and post
the event to that synchronization context when done. This is also
required when the async methods are executed on the main thread, since
HttpWebRequest callbacks are now always executed on a threadpool thread.
svn path=/branches/mono-2-6/mcs/; revision=150369
2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* Assembly.cs: GetSatelliteAssembly: Ask LoadSatellite to not throw
exceptions, since we ignore them anyway.
In class/corlib/System:
2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* AppDomain.cs: LoadSatellite: add a boolean parameter specifiying
whether we should throw on exceptions or not.
svn path=/branches/mono-2-6/mcs/; revision=150368
* pedump.c (main): Properly set the verifier mode when running the metadata
verifier.
Backport of r150304.
2010-01-28 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=150311
2010-01-28 Rodrigo Kumpera <[email protected]>
* verify.c (verify_class_for_overlapping_reference_fields): Properly verify
overlapping fields now that we're called before has_references is set.
* pedump.c (dump_verify_info): Clear any loader error before verifying another
method. Otherwise all sort of weird stuff happens.
Backport of r150303.
svn path=/branches/mono-2-6/mono/; revision=150309
* aot-compiler.c: Fix a logic error introduced when guarding against enums
with struct marshalability.
svn path=/branches/mono-2-6/mono/; revision=150245
* DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
AccessException inside a SerializationException but in a
SecurityException.
[Backport r150219]
svn path=/branches/mono-2-6/mcs/; revision=150220
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Use custom
version of DataContractJsonSerializer for Moonlight
[Backport r150153]
svn path=/branches/mono-2-6/mcs/; revision=150154
* DataContractJsonSerializerTest.cs: Add non-working test cases
for null-string, known types and handling floating point special
values
[Backport r150141]
svn path=/branches/mono-2-6/mcs/; revision=150152
* DataContractJsonSerializer_2_1.cs: New. Simpler version for
Moonlight since it does not inherit from the same base type nor
does it overrides any base methods.
[Backport r150149]
svn path=/branches/mono-2-6/mcs/; revision=150150
* IPEndPoint.cs: When throwing an ArgumentException in Create()
because of a mismatch in the address family, use a more informative
message. Patch by Juho Vähä-Herttu<[email protected]>.
Fixes#505105.
svn path=/branches/mono-2-6/mcs/; revision=150032
* ComboBox.cs: When the normal drop down window is closed, make sure
that the auto complete list -if any- is closed as well, instead of
stay open without need.
svn path=/branches/mono-2-6/mcs/; revision=150029
top, by calling the raw XplatUI.SetZOrder for it, since we can't
properly call BringToFront on it as it is parentless. This fixes an
issue when using this feature with ComboBox's own parentless listbox.
Fixes the remaining bits of #489339.
2010-01-21 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=150027
* XplatUIDriver:
* XplatUICarbon:
* XplatUIWin32:
* XplatUIX11.cs:
* XplatUIStructs: Implement support for different kind of audible
alerts in Windows, and update the requiered classes.
* MessageBox.cs:
* TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
Fixes#473725.
2010-01-21 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=150024
MaxDropDownHeight property - also rename our field 'count' to
'visible_items_count' to avoid confusion as much as possible.
Fixes an issue with several items, showing an incorrect layout.
2010-01-21 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=150021
* RichTextBox.cs: SelectedText should set Modified to true. Observe
that this is happening just here, not for the Text property, and
neither for the TextBoxBase impl.
Fixes#569950.
svn path=/branches/mono-2-6/mcs/; revision=150017
* exceptions-amd64.c (mono_arch_notify_pending_exc): Avoid a crash if the
thread has not fully started yet.
svn path=/branches/mono-2-6/mono/; revision=150014
* reflection.c (typebuilder_setup_fields): Pretend field setup already
happened before starting to encode the actual fields. This avoid ciclic
dependencies and eventual crashes.
Fixes#572660.
Backport of r150008.
2010-01-21 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=150011
* SmtpClient.cs: rethrow inner exception so that
AsyncCompletedEventArgs.Error gets the right value on error. Patch
by Dimitar Dobrev.
svn path=/branches/mono-2-6/mcs/; revision=149984
* metadata-verify.c (parse_generic_inst): Fail a type signature if it
has a recursive reference to itself.
Fixes#571863.
Backport of r149969.
svn path=/branches/mono-2-6/mono/; revision=149971
* icall.c: don't raise AppDomain.TypeResolve when the type is loaded
from the current assembly or mscorlib. Fixes bug #322957.
svn path=/branches/mono-2-6/mono/; revision=149922
* mini-posix.c (SIG_HANDLER_SIGNATURE): Avoid
"Thread (nil) may have been prematurely finalized" messages if this is called
on a thread not registered with the runtime.
* mini-exceptions.c (mono_handle_native_sigsegv): Ditto.
svn path=/branches/mono-2-6/mono/; revision=149913
* jit-icalls.c (mono_array_new_3): New jit icall.
* aot-compiler.c aot-runtime.c: Add support for ElementAddr wrappers.
* arrays.cs: Add a test for 3 dimensional arrays.
svn path=/branches/mono-2-6/mono/; revision=149832
* marshal.c (mono_marshal_wrapper_info_from_wrapper): New helper function to
return a point to a wrapper specific info structure describing the wrapper.
(mono_marshal_get_array_address): Store the rank+elem_size in the wrapper info.
svn path=/branches/mono-2-6/mono/; revision=149831
* security-core-clr.c (mono_security_core_clr_can_access_internals):
Handle the case where 'basedir' can be NULL (e.g. SRE assemblies)
[Backport r149823]
svn path=/branches/mono-2-6/mono/; revision=149824
* metadata-verify.c (parse_type): Fail a type signature if it has a recursive reference
to itself.
* metadata-verify.c (mono_verifier_verify_typespec_signature): Change signature to take
the token as parameter.
* verify-internals.h: Ditto.
* metadata.c (mono_type_create_from_typespec): Pass token to verifier.
Fixes#571460.
Backport of r149776.
2010-01-18 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=149777
* mini.h (MonoCompile): Add 'disable_out_of_line_bblocks' flag.
* branch-opts.c (mono_optimize_branches): Honor the new flag.
* mini.c (mini_method_compile): Set the new flag when running under the
debugger.
svn path=/branches/mono-2-6/mono/; revision=149753
* branch-opts.c (mono_branch_optimize_exception_target): Stop the optimization
if a clause is skipped because it uses the exception object, since it could
have caught the exception.
* exceptions.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=149707
* mini-amd64.c (emit_call_body): Always use near calls when AOTing even if
NOMAP32BIT or optimize_for_xen is set.
svn path=/branches/mono-2-6/mono/; revision=149673
* Int32.cs: In Parse() cast the parsed value to long *before* changing
its sign - this way we preserve the original value, instead of
accidentally changing it. This was happening parsing _exactly_
MaxValue + 1.
Fixes#475815.
svn path=/branches/mono-2-6/mcs/; revision=149650
2010-01-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Guard against unfinished types. This
happens only on 2.6 and not trunk because trunk better deals with unfinished types.
svn path=/branches/mono-2-6/mono/; revision=149642
2010-01-14 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_has_exceptions): Check the generic instance. It can fail
independently of the GTD.
* class.c (mono_class_setup_fields): Fail if field has negative offset.
* class.c (mono_class_setup_fields): Fail if valuetype has zero size. Add sizeof(MonoObject)
to the upper limit since instance_size includes this amount.
* class.c (mono_class_layout_fields): Check if the types of the static fields have failed.
Fixes#569544.
Backport of r149575.
svn path=/branches/mono-2-6/mono/; revision=149576
by having EcmaHelpSource.GetTextFromUrl() look for cached contents.
This greatly speeds up type member listings (e.g. T:...List`1/*),
e.g. from ~2.0s to 0.06s.
* Mono.Documentation/XmlDocUtils.cs: XmlDocUtils.AddExtensionMethods()
wasn't adding extension methods which matched *interfaces* of base
classes. Result: Mono.Options.OptionSet (which inherits
System.Collections.ObjectModel.KeyedCollection`2 which inherits from
System.Collections.ObjectModel.Collection`1 which implements
System.Collections.Generic.IEnumerable`1) wasn't getting any of the
LINQ extension methods (which is bad). Fix this.
* Resources/mdoc-html-utils.xsl: Fix regression caused by 2009-12-02
commit adding GetLinkTargetHtml(). The problem was that when
running within ASP.NET/monodoc ~all extension method links would be
'javascript:alert("...")M:Foo.Method(...)', which is clearly wrong.
This occurred because $linkid's generation would always call
GetLinkTargetHtml() with a $cref value of '', thus the monodoc
GetLinkTarget() would return '', so GetLinkTargetHtml() would return
the javascript "not found" alert. Thus, we can't expect
GetLinkTargetHtml() with $cref='' to work under monodoc, but it's
~required to work sanely under 'mdoc export-html'.
Solution is to not call GetLinkTargetHtml() here UNLESS we're doing
'mdoc export-html' generation, which we assume to be the case if
$html-anchor is true.
svn path=/branches/mono-2-6/mcs/; revision=149553
* HttpWebRequest.cs: when the server returns several different
authentication methods, pick the one that works.
Fixes bug #562043.
svn path=/branches/mono-2-6/mcs/; revision=149501
* HttpWebRequest_2_1.cs: Throw for CookieContainer. It is
implemented only in the client http stack (and for a limited
time in the browser stack too ;-)
* InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
available after closing/disposing (by user) since our own code
will need it later (e.g. when posting like DRT287)
* WebHeaderCollection_2_1.cs: Provide an argument to
ArgumentException. Found by Gendarme's ArgumentException
InstantiateArgumentExceptionCorrectlyRule
[Backport r149484]
svn path=/branches/mono-2-6/mcs/; revision=149485
* jit.h, method-to-ir.c: added ability to set the policy for
inserting breakpoints from the break IL instruction or the
Debugger.Break () API call.
svn path=/branches/mono-2-6/mono/; revision=149473
* WebRequest_2_1.cs: Rework registration wrt the two, browser
and client, stacks offered in SL3. Only global works now.
[Backport r149423]
svn path=/branches/mono-2-6/mcs/; revision=149424
* class.c (mono_class_get_implemented_interfaces): Now take a MonoError argument.
* class.c:
* cominterop.c:
* icall.c:
* object.c:
* class-internals.h: Adjust for new signature of mono_class_get_implemented_interfaces.
Backport of r149414.
2010-01-12 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=149417
2010-01-12 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_interfaces): Now take a MonoError argument and
it can fail loading the type.
* class.c: Add mono_class_inflate_generic_class_checked.
* class.c:
* verify.c:
* class-internals.h: Adjust for new signature of mono_class_setup_interfaces.
Backport of r149413.
svn path=/branches/mono-2-6/mono/; revision=149415
* monitor.c (ves_icall_System_Threading_Monitor_Monitor_wait): Don't close the
wait handle if the wait is interrupted, since it is still in mon->wait_list, and
we can't remove it from it since we don't hold the lock.
(mon_new): Free the orphaned events here when a mon structure is added to the
freelist. Fixes#561239. Thanks to Mike Rieker <[email protected]> for tracking
this down.
svn path=/branches/mono-2-6/mono/; revision=149335
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
an argument which matches any exception.
svn path=/branches/mono-2-6/mono/; revision=149297
* ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
place and synchronize the events properly. Fixes a lack of
coordination between the events - which should be fired together.
svn path=/branches/mono-2-6/mcs/; revision=149291
* method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
optimization if the called method is gshared and marshalbyref, since gshared
methods can' have wrappers. Fixes#569390.
* generics.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=149287
* debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
since it is not supported in win2000.
svn path=/branches/mono-2-6/mono/; revision=149275
* TrackBar.cs: Move our events code to a single method, allowing it to
optionally fire the Scroll event. This way we both avoid the
duplicated calls to OnScroll and also will be able to fire Scroll
*before* OnValueChanged in other places.
Fixes#568026.
svn path=/branches/mono-2-6/mcs/; revision=149271
* Expression.cs (Call): properly deal with zero length array
of type arguments for non generic methods. Fixes#568989.
backport r149241.
svn path=/branches/mono-2-6/mcs/; revision=149242
2010-01-07 Jb Evain <[email protected]>
* MonoType.cs (.MemberType): return the proper member type
for generic parameters.
backport r149175.
in Test/System:
2010-01-07 Jb Evain <[email protected]>
* TypeTest.cs: add test for the MemberType of
a generic parameter.
backport r149175.
svn path=/branches/mono-2-6/mcs/; revision=149176
2010-01-07 Sebastien Pouliot <[email protected]>
* Convert.cs: Fix line endings in ToBase64String (bug #568778)
and also the default line length. Code changed to not require
a BinaryReader over a MemoryStream to reduce memory requirements.
[Backport r149171]
In Test/System:
2010-01-07 Sebastien Pouliot <[email protected]>
* ConvertTest.cs: Add test case for #568778 and the default
line length.
[Backport r149171]
In System.Security.Cryptography:
2010-01-07 Sebastien Pouliot <[email protected]>
* ToBase64Transform.cs: Static-ify some methods to make it easier
to use from System.Convert
[Backport r149171]
svn path=/branches/mono-2-6/mcs/; revision=149172
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix#564695.
If LLVM decides to set the code model to Large, reset it to Default.
svn path=/branches/mono-2-6/mono/; revision=149160
2010-01-05 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Properly check for broken parent. Ignore
types that are meant to not have a parent.
Backport of r149053.
In mini:
2010-01-05 Rodrigo Kumpera <[email protected]>
* mini.c (mono_compile_is_broken): Skip methods from serialization's
internal assembly.
Backport of r149053.
svn path=/branches/mono-2-6/mono/; revision=149082
* RadioButton.cs: When drawing, if Appearance is Button use the old
normal routine in the theme engine, instead of using the one in 2.0,
since this last one doesn't support proper rendering of the control as
a button.
Fixes#567904.
svn path=/branches/mono-2-6/mcs/; revision=149075
2009-01-04 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_compile): Verify the method before calling
mono_compile_create_vars as this might crash since it uses method
information.
Fixes#560196.
Backport of r149045.
svn path=/branches/mono-2-6/mono/; revision=149046
2010-01-04 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_init): Do class verification at the beginning. Add
some asserts to avoid tripping into invalid memory.
* object.c (compute_class_bitmap): Replace a g_assert_not_reached with a
g_error and a decent message.
* verify.c (mono_verifier_verify_class): Verify for invalid super type.
Fixes#567548.
Backport of r149028.
svn path=/branches/mono-2-6/mono/; revision=149029
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs:
Do not include in both mscorlib and System.Core for a NET_2_1 profile.
backport r149020.
svn path=/branches/mono-2-6/mcs/; revision=149021
* GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
text of the group box if it is disabled.
Fixes#567847.
svn path=/branches/mono-2-6/mcs/; revision=149013
* locales.c (construct_culture_from_specific_name): Applied patch from
José Antonio Sánchez Lázaro <[email protected]>. Fix a crash if a culture was
not found. Fixes#567900.
svn path=/branches/mono-2-6/mono/; revision=148969
* XplatUICarbon.cs: Implement the overriden AudibleAlert
function in XplatUICarbon. Currently it throws
NotImplementedException which will kill a WinForms application showing
a dialog box.
Patch by Erik Ylvisaker ([email protected]).
svn path=/branches/mono-2-6/mcs/; revision=148958
* class.c (mono_class_setup_methods): Use checked version of mono_class_inflate_generic_method_full
so we can properly fail types instead of crashing.
Fixes#567676.
Backpor of r148948.
2009-12-30 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=148949
* Cookie.cs: Don't use automatic properties to let older mcs
(e.g. bootstrap) compile this for NET_1_1 profile
svn path=/branches/mono-2-6/mcs/; revision=148921
* method-to-ir.c (mono_method_to_ir): Handle the failure of mono_class_vtable ()
in a few more places.
svn path=/branches/mono-2-6/mono/; revision=148916
* verify.c (init_stack_with_value_at_exception_boundary): Do stack overflow checking here
as max stack might be zero.
Fixes#562320.
Backport of r148911.
2009-12-26 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=148912
Rework all uses of mono_class_setup_methods to accept that it can fail now.
* class.c (mono_class_setup_methods): This function now can fail the class. Do so for generic
instances if the GTD did.
* class.c (mono_class_setup_properties): Ditto.
* class.c (mono_class_setup_events): Ditto.
* class.c (mono_class_setup_vtable): Fail early if the type is already broken.
* class.c (mono_class_setup_vtable_general): Add a few more missing broken type checks. Sanitize
error setting.
* class.c (mono_class_init): Fail if GTD did.
* cominterop.c:
* generic-sharing.c:
* icall.c:
* loader.c:
* object.c:
* verify.c: Properly handle failure of mono_class_setup_methods.
Backport of r148905.
2009-12-26 Rodrigo Kumpera <[email protected]>
In mini:
2009-12-26 Rodrigo Kumpera <[email protected]>
* mini-trampolines.c (common_call_trampoline): Add assert for NULL resolved generic method.
Backport of r148905.
svn path=/branches/mono-2-6/mono/; revision=148907
2009-12-26 Rodrigo Kumpera <[email protected]>
* class-internals.c: Add mono_class_inflate_generic_method_full_checked and make
mono_class_inflate_generic_method_full internal.
* class.c (inflate_generic_context): Now takes a MonoError argument.
* class.c (mono_class_inflate_generic_method_full): Now calls the _checked and abort on
errors.
Backport of r148904.
svn path=/branches/mono-2-6/mono/; revision=148906
* domain.c (mono_domain_free): Backport part of r143047. Free special static
fields earlier to avoid crashes if the types they refer to are freed. Fixes
#565923.
svn path=/branches/mono-2-6/mono/; revision=148903
2009-12-24 Sebastien Pouliot <[email protected]>
* CookieContainerTest.cs: Split many tests into smaller test
cases. Add test cases for DefaultPerDomainCookieLimit and
DefaultCookieLimit. Remove all, but one 1.x, [Category
("NotWorking")] since everything works now.
In System.Net:
2009-12-24 Sebastien Pouliot <[email protected]>
* Cookie.cs: Re-work ToString to be useable in more cases. Fix
some issues found by Gendarme.
* CookieContainer.cs: Fix 2.0 NonWorking (and new) unit tests.
Implement removing oldest cookies when limits are reached.
* CookieCollection.cs: Fix sort to be closer to MS implementation
(but still not 100% identical). Fix some issues found by Gendarme
svn path=/branches/mono-2-6/mcs/; revision=148892
* mini-trampolines.c (mono_create_llvm_imt_trampoline): Fix the LLVM build on
platforms without mono_arch_get_llvm_imt_trampoline ().
svn path=/branches/mono-2-6/mono/; revision=148864
2009-12-21 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Check if the returned signature is compatible
with the one from the original method.
* metadata-verify.c (mono_verifier_is_sig_compatible): New function to verify signature
compatibility.
* verify-internals.h: Add new function to the internal API.
Fixes#566295.
Backport of r148828.
svn path=/branches/mono-2-6/mono/; revision=148829
* File.cs (ReadAllBytes): We cannot assume that a single call to
Read will return all the data we require.
[Backport r148822]
svn path=/branches/mono-2-6/mcs/; revision=148823
2009-12-18 Dimitar Dobrev <[email protected]>
* culture-info-tables.h: regenerated it to include the Georgian culture.
In tools/locale-builder:
2009-12-18 Dimitar Dobrev <[email protected]>
* langs/ka.xml: added a file with the settings of the neutral
Georgian culture
* locales/ka-GE.xml: added a file with the settings of the
specific Georgian culture
* supp/ka-GE.xml: added a file with the date and time formats
of the Georgian culture
* lcids.xml: added entries for the neutral and specific
Georgian culture
* Makefile.am: included supp/ka-GE.xml in the build and dist the new
we're not downloading from primates.ximian.com.
[Fixes bug 564910].
[Backport of r148776].
svn path=/branches/mono-2-6/mono/; revision=148803
2009-12-19 Zoltan Varga <[email protected]>
* String.cs: Fix the various IndexOf and LastIndexOf methods so they handle
"" and a non-zero startIndex correctly. Fixes#566106.
In Test/System:
2009-12-19 Zoltan Varga <[email protected]>
* StringTest.cs: Add tests for IndexOf ("", startIndex, count).
svn path=/branches/mono-2-6/mcs/; revision=148790
In class/corlib/System.Threading/:
* Parallel.cs: Added fix for Bug #536919.
In class/corlib/Test/System.Threading/:
* ParallelTests.cs: Added unit test for Bug #536919, cleaned up.
svn path=/branches/mono-2-6/mcs/; revision=148782
* mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
alloca as g_malloc is not signal safe.
svn path=/branches/mono-2-6/mono/; revision=148767
* reflection.c (mono_reflection_get_type_internal_dynamic): Use assembly->domain
instead of the current domain, since the two might not match if this is called
from the debugger.
* metadata-internals.h (MonoDynamicAssembly): Add a 'domain' field to specify the
domain which created this assembly.
svn path=/branches/mono-2-6/mono/; revision=148759
2009-12-17 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Don't pin virtual methods if they are newslot.
A private virtual newslot method is used to implement an interface method without exposing
it to users. When querying for public instance methods, such method would hide a public one
on a parent type.
Fixes#564379.
Backport of r148694.
svn path=/branches/mono-2-6/mono/; revision=148695
* method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
signatures. Fixes#565143.
* jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.
svn path=/branches/mono-2-6/mono/; revision=148683
* zlib-helper.c: when finishing uncompressing a buffer, we might need
more than one call to deflate with Z_FINISH since the uncompressed
data can take more space than the allocated buffer.
Fixes the IPY+Chiron test case.
svn path=/branches/mono-2-6/mono/; revision=148593
2009-12-16 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_type_get_object): If the type is VAR or MVAR check
if the owner class has not been finished before returning reflection_info.
Fixes#565127.
Backport of r148575.
svn path=/branches/mono-2-6/mono/; revision=148579
2009-12-16 Rodrigo Kumpera <[email protected]>
* mini-x86.h: Forgot to add a 0x to MONO_ARCH_MAX_FRAME_SIZE define
making max stack 10x smaller.
Backport of r148570.
svn path=/branches/mono-2-6/mono/; revision=148571
* reflection.c (mono_custom_attrs_from_param): Avoid a crash if a dynamic
param doesn't have custom attributes. Fixes#565117.
svn path=/branches/mono-2-6/mono/; revision=148561
* method-to-ir.c (mini_emit_memcpy): Assert if size is too big.
Backport of r148504.
2009-12-15 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=148513
2009-12-15 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
bigger than MONO_ARCH_MAX_FRAME_SIZE.
* mini-x86.c (mono_arch_emit_prolog): Handle huge frames.
* mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.
* mini-amd64.c / mini-amd64.h: Same fixes as of above.
* mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
the compilation.
Backport of r148502.
svn path=/branches/mono-2-6/mono/; revision=148509
* libtest.c (mono_test_marshal_bool_in): Use 'short' as the type of the
variant bool argument.
* marshalbool.cs: Pass -1 as the 'expected' argument instead of 0xffff, which
causes sign extensions issues on some platforms.
svn path=/branches/mono-2-6/mono/; revision=148485
* debugger-agent.c: The end_runtime_invoke guard isn't working
on AMD64 as __builtin_frame_address (1) returns NULL. Disable the
behaviour by default, and make it runtime configurable.
svn path=/branches/mono-2-6/mono/; revision=148421
009-12-14 Miguel de Icaza <[email protected]>
* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
raise an invalid program exception.
For other opcodes that we might not handle use a g_warning and
raise the exception. Beats termination.
Fixes#561724
2009-12-14 Miguel de Icaza <[email protected]>
* verify.c (mono_method_verify): The Unused opcodes produce an
InvalidProgramException on .NET
svn path=/branches/mono-2-6/mono/; revision=148418
* Mono.Cecil/BaseAssemblyResolver.cs: Update to .net fx 4 beta2
version number and reduce code duplication.
svn path=/branches/mono-2-6/mcs/; revision=148411
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
sigctx being passed in, as we have no CONTEXT available in the APC.
(mono_debugger_agent_cleanup): Use explicit cond wait implementation
for now.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=148352
* WebClient_2_1.cs: When creating the request we need to copy over
any headers the user set on us. We also need to wrap
InvalidOperationExceptions in WebExceptions.
svn path=/branches/mono-2-6/mcs/; revision=148181
2009-12-11 Chris Toshok <[email protected]>
* TypeMap.cs (CreateDefaultTypeMap): only include non-public
property info when dealing with KeyValuePair<,>. This is *not*
the way MS handles it, but we emulate things much better with this
hack.
in test/System.Runtime.Serialization.Json/:
2009-12-11 Chris Toshok <[email protected]>
* DataContractJsonSerializerTest.cs: add a test case for
non-public properties.
svn path=/branches/mono-2-6/mcs/; revision=148138
* driver.c: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
svn path=/branches/mono-2-6/mono/; revision=148125
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
svn path=/branches/mono-2-6/mono/; revision=148124
2009-12-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add mono_verifier_verify_string_signature to check
user string blobs.
* verify-internals.h: Add new function to the internal API.
* verify.c (do_ldstr): Call into mono_verifier_verify_string_signature to
check if it's a valid string.
* object.c (mono_ldstr): Ditto.
Fixes#561943.
Backport of r147941.
svn path=/branches/mono-2-6/mono/; revision=147949
* ThreadPool.cs (QueueUserWorkItem): properly throw
an ANE instead of triggering a NRE when being passed a null callback.
backports r147934.
svn path=/branches/mono-2-6/mcs/; revision=147938
* debugger-agent.c: Refactor the mono_runtime_invoke guarding against
stepping out into native code. There were issues with nested invokes
like .cctors.
svn path=/branches/mono-2-6/mono/; revision=147883
SchemaLoader support for Microsoft SQL Server, allowing sqlmetal to
generate entity stubs against SQL Server databases.
* System.Data.Linq.dll.sources: Add files to the build.
svn path=/branches/mono-2-6/mcs/; revision=147880
* driver.c: Fail gracefully with --compile-all if mono_method_signature
returns NULL (e.g. a bad assembly).
svn path=/branches/mono-2-6/mono/; revision=147854
A fix for bug #561149
anonymous.cs: Use actual type parameters when checking for generic
method host.
svn path=/branches/mono-2-6/mcs/; revision=147846
* JsonSerializationReader.cs (DeserializeGenericCollection): in
the 2.1 case we still need to convert the List<> to an array.
svn path=/branches/mono-2-6/mcs/; revision=147834
2009-12-07 Chris Toshok <[email protected]>
* JsonReaderWriterFactory.cs (CreateJsonReader): pass null for the
encoding parameter instead of calling Detect. The jsonreader's
PushbackReader will autodetect.
(Detect): remove. a BufferedStream created from an unseekable
stream is itself unseekable, which makes it just as useless. This
breaks netflix's isostore file parsing.
* JsonReader.cs (PushbackReader): add a ctor which doesn't take an
encoding, for the autodetecting reader case. for this ctor, pass
true to StreamReader's ctor for detectEncodingFromByteOrderMarks.
svn path=/branches/mono-2-6/mcs/; revision=147830
* debugger-agent.c: Darwin can colesce signals, so we need to handle
the interrupt_count slightly differently. Native threads were never
marked as resumed.
svn path=/branches/mono-2-6/mono/; revision=147817
2009-12-06 Chris Toshok <[email protected]>
* KeyValuePair.cs: we need setters for Key and Value so they can
be set via reflection from
System.ServiceModel.System.Runtime.Serialization.Json.TypeMap.cs.
in class/System.ServiceModel.Web/System.Runtime.Serialization.Json/:
2009-12-06 Chris Toshok <[email protected]>
* JsonSerializationReader.cs (DeserializeGenericCollection): this
is jb's (iirc) patch, actually. Types subclassing from
ICollection<T> need to be supported, and since it's an interface
the implementation might be explicit. So instead of groveling
around in the actual type, we need to dispatch through the
interface's method.
* TypeMap.cs (CreateDefaultTypeMap): we need to include non-public
properties, since KeyValuePair items must be able to write to Key
and Value properties.
* JsonReader.cs (ReadContent): for builtin values (null, true,
false), use TryReadString instead of individual ReadChar's, since
they aren't reversible if the string didn't match. In the default
case, if we're LameSilverlightLiseralParser, we need to push back
the current character onto the stream -- this is because for
netflix's AppConfig.json we were parsing "frameRatePolicy" as
"rameRatePolicy" (the 'f' was triggering the "false" parsing).
(class PushBackReader): add this class to unify all the pushing
back of characters we need to do. 1 character (JsonReader's old
"saved_char") isn't enough given that you could have a property
named, e.g., "falsifiable", and we'd need 4 characters worth of
pushback to recognize that correctly.
svn path=/branches/mono-2-6/mcs/; revision=147767
* debugger-agent.c (buffer_add_value): Treat I/U as a valuetype, so the
client can distinguish between intptrs and longs.
svn path=/branches/mono-2-6/mono/; revision=147746
* System.Net.dll.sources: Remove (almost) everything. This
assembly in 3.5+ does not share anything with what SL2/3
provide (the later being a part of System.dll)
[Backport r147727]
svn path=/branches/mono-2-6/mcs/; revision=147743
Applied patch from Laurent Etiemble ([email protected]).
* mono/metadata/assembly.c: When opening an assembly image, pass the real
names in addition to the runtime generated one.
* mono/metadata/image.h: Add a function to take the real name of the assembly
image.
* mono/metadata/image.c: If a real name has been passed to load an assembly,
use it instead of the runtime generated one.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=147741
* marshal.c (emit_marshal_vtype): Do the klass == date_time_class checks
before the other checks to prevent problems if the DateTime class is blittable.
Hopefully fixes#559600.
svn path=/branches/mono-2-6/mono/; revision=147738
* debugger-agent.c: When doing a func-eval invoke on a suspended runtime,
we need to track the original suspend count so the thread properly
wakes up in resume_thread.
svn path=/branches/mono-2-6/mono/; revision=147734
* StructMirror.cs: Fix field indexer for structs with static fields.
* VirtualMachineManager.cs: Added an option to LaunchOptions which
allows providing a custom method for launching the process. This
allows launching mono in a wrapper process.
svn path=/branches/mono-2-6/mcs/; revision=147728
* CodeModule.cs: Silverlight does not allow AssemblyBuilderAccess.
RunAndSave so we reduce it to AssemblyBuilderAccess.Run
svn path=/branches/mono-2-6/mcs/; revision=147715
2009-12-04 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Net.dll.sources: Remove HttpStatusCode_2_1.cs
[Backport r147704]
In System.Net:
2009-12-04 Sebastien Pouliot <[email protected]>
* HttpStatusCode_2_1.cs: Remove. SL3 provides all status code
since they are used for the client stack
* WebClient_2_1.cs: Add Credentials property and change
ResponseHeaders property to public
* WebRequest_2_1.cs: Add Credentials property
[Backport r147704]
svn path=/branches/mono-2-6/mcs/; revision=147705
* HttpWebRequest_2_1.cs: Add CookieCollection, need to be
implemented in the client stack
* HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
to move (a real) implementation into the client stack
* WebRequest_2_1.cs: Add Create(string) overload (SL3)
[Backport r147670]
svn path=/branches/mono-2-6/mcs/; revision=147671
* mini-trampolines.c (mono_create_static_rgctx_trampoline): Use a cache
keyed on the method+addr pair, since addr could be either the method addr or
an unbox trampoline in the AOT case. Fixes#560246.
svn path=/branches/mono-2-6/mono/; revision=147644
* mini.c (mini_method_compile): Call handle_exception_clauses () in the same
place it was called before too.
svn path=/branches/mono-2-6/mono/; revision=147625
* mini.c (mono_jit_runtime_invoke): Avoid the call to mono_class_setup_vtable ()
if no security manager is present, to speed up the AOT case. Call
mono_class_vtable () full with raise_on_error == TRUE instead.
svn path=/branches/mono-2-6/mono/; revision=147610
* mini.c (mini_method_compile): Call handle_exception_clauses earlier so
the local optimization passes can take its result into account. Fixes
#559876.
* exceptions.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=147606
This patch is contributed under the terms of the MIT/X11 license
* cpu-ppc64.md (load_memindex): Add loadi8_memindex.
svn path=/branches/mono-2-6/mono/; revision=147600
* VirtualMachineManager.cs: We might get a SocketException (interrupted)
here, so lets just handle all Exceptions to our Accept pattern the same
way
svn path=/branches/mono-2-6/mcs/; revision=147527
* debugger-agent.c: Rework the handling of stack traces of running threads to
avoid crashes if compute_frames () tries to walk the stack of running thread.
* mini.c (mono_print_method_from_ip): Use mini_jit_info_table_find.
* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): Set frame->lmf.
* mini.h (StackFrameInfo): Add an 'lmf' field.
svn path=/branches/mono-2-6/mono/; revision=147519
* CommunicationObjectAbortedException.cs, ServerTooBusyException.cs,
ServiceActivationException.cs: Fix base class
* ServiceKnownTypeAttribute.cs: Seal type and add missing
[AttributeUsage] attribute
[Backport r147513]
svn path=/branches/mono-2-6/mcs/; revision=147514
* Expression.cs: expression can be null for static getters. Patch from
Miguel de Icaza ([email protected]).
svn path=/branches/mono-2-6/mcs/; revision=147499
* verify.c (get_stack_type): Return that the type is invalid instead of
asserting.
* verify.c (mono_method_verify): Verify that all locals and arguments
have valid stack types.
Fixes#559913.
Backport of r147485.
2009-12-02 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147486
* class.c: remove asserts for invalid type token in
mono_class_name_from_token(), mono_assembly_name_from_token() and
mono_class_create_from_typedef () (fixes bug #553318).
svn path=/branches/mono-2-6/mono/; revision=147445
* verify.c (code_bounds_check): Do proper overflow checking.
* verify.c (mono_method_verify): The number of switch entries is
an unsigned int. Properly bounds check it.
Fixes#558594.
Backport of r147259.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147260
* metadata.c: Kill mono_metadata_get_param_attrs_checked. Add
mono_metadata_method_has_param_attrs which only checks if a given param
list has a non zero flags entry.
* metadata.c (mono_metadata_get_param_attrs): Add param_count parameter
to inform how many params should we expect to decode.
* loader.c (mono_method_signature): Use mono_metadata_method_has_param_attrs
as it's faster than mono_metadata_get_param_attrs.
* metadata-internals.h: Fix mono_metadata_get_param_attrs signature and
add mono_metadata_method_has_param_attrs.
Backport of r147244.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147252
* net_2_1_raw_System.dll.sources: Add existing files that are
part of Silverlight 3 (but were not in Silverlight 2)
svn path=/branches/mono-2-6/mcs/; revision=147238
* class.c (mono_class_setup_vtable_general): Check for mono_method_get_vtable_slot
failures.
* class.c (mono_method_get_vtable_slot): Don't assert if the computed method slot
is -1 but its class is broken.
Fixes#558522.
Backport of r147219.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147223
* metadata.c: Introduce mono_metadata_get_param_attrs_checked which checks
for parameter overflow.
* metadata.c (mono_metadata_parse_method_signature_full): Use checked version
of mono_metadata_get_param_attrs.
* metadata-internals.h: Add mono_metadata_get_param_attrs_checked to the internal
API.
* loader.c (mono_method_signature): Use checked version of mono_metadata_get_param_attrs.
Backport of r147218.
2009-12-01 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=147222
* Uri.cs: Hide protected EscapeString and Unescape for SL2/3
* UriTypeConverter.cs: Seal type for SL2/3
[Backport r147156]
svn path=/branches/mono-2-6/mcs/; revision=147157
* mini-arm.c (mono_arch_lowering_pass): Fix an assert which is hit when
the instruction following an OP_FCOMPARE is optimized away.
svn path=/branches/mono-2-6/mono/; revision=147103
* Makefile: Remove the MOON_A11Y_INTERNAL_HACK define
for MoonAtkBridge after audit finished r147098.
svn path=/branches/mono-2-6/mcs/; revision=147102
* appdomain.c (create_exceptions): New helper function extracted from
mono_runtime_init () to precreate objects used during exception handling.
(mono_runtime_init): Call it.
(mono_domain_create_appdomain_internal): Ditto. Fixes#555264.
svn path=/branches/mono-2-6/mono/; revision=147058
* class.c (mono_class_setup_vtable_general): Cache the result of
get_virtual_methods () since it can be slow because of the metadata
optimization.
svn path=/branches/mono-2-6/mono/; revision=147039
* metadata-internals.h (_MonoImage): Change 'method_cache' to a GHashTable
from a MonoValueHashTable for now, since the later is based on an earlier
version of hpj's internal probing code and seems to have serious collision
issues.
* loader.c (mono_get_method_full): Update after the change above.
svn path=/branches/mono-2-6/mono/; revision=147038
* aot-compiler.c (emit_globals_table): Emit a hash table for the globals, to
avoid linear searches at runtime.
* aot-runtime.c (find_symbol): Update this to use the hash.
* mini.h: Bump AOT file format version.
svn path=/branches/mono-2-6/mono/; revision=147017
* Random.cs: Fix case where the diff between min and max
is very large in Next(int,int). Fix bug #558593
[Backport r146993]
svn path=/branches/mono-2-6/mcs/; revision=146994
* loader.c (field_from_memberref): Resolve the class first then the field
signature. Remove a lot of duplicated code and make sure we don't pass valid
values to mono_loader_set_error_field_load.
Fixes#553306.
Backport of r146937.
2009-11-25 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=146941
2009-11-25 Rodrigo Kumpera <[email protected]>
* class.c (inflate_generic_type): Change code to use new signature of
mono_error_set_bad_image.
Fixes#558124.
Backport of r146936.
In utils:
2009-11-25 Rodrigo Kumpera <[email protected]>
* mono-error-internals.h: Add mono_error_set_bad_image_name and change signature
of mono_error_set_bad_image to take a MonoImage instead of a const char *.
* mono-error.c: Same.
Backport of r146936.
svn path=/branches/mono-2-6/mono/; revision=146939
2009-11-25 Jb Evain <[email protected]>
* Queue.cs (Enqueue): deal with the case where the tail
is off the array when deciding to enlarge the capacity.
backport 146925.
in Test/System.Collections.Generic:
2009-11-25 Jb Evain <[email protected]>
* QueueTest.cs: add test for a specific combination of
calls that make the queue crash when enqueuing an item.
backport 146925.
svn path=/branches/mono-2-6/mcs/; revision=146926
* verify.c (mono_method_verify): Use the uninflated type name,
when the inflated is null, to report errors. Also take care when
freeing, not to free everything since, in case of an error, some
stuff would be copies (i.e. not allocated by the function itself)
Fix bug #558145
[Backport r146900]
svn path=/branches/mono-2-6/mono/; revision=146901
* debugger-agent.c (vm_commands): Implement EXIT by invoking Environment.Exit ()
on a random thread if possible.
svn path=/branches/mono-2-6/mono/; revision=146899
* verify.c (stack_push, stack_pop, stack_pop_safe): Assert if we underflow
or overflow. The caller must have done this check explicitly. This guard us
from accessing invalid memory.
* verify.c (do_push_static_field): Check for stack overflow.
Fixes#553333.
Backport of r146876.
2009-11-24 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=146881
2009-11-24 Rodrigo Kumpera <[email protected]>
* loader.c (find_method_in_class): Don't crash if the signature cannot
be resolved.
* metadata.c (mono_metadata_parse_generic_param): Return NULL instead
of asserting for the case of invalid params.
Fixes#553304.
Backport of r146875.
svn path=/branches/mono-2-6/mono/; revision=146880
* mini-darwin.c: Work around apple bug rdar://7209349 See
http://openradar.appspot.com/7209349 for details. Synopsis,
CoreFoundation SIGTRAP's if you dlopen it off the main thread if its
never been initialized before.
svn path=/branches/mono-2-6/mono/; revision=146872
* tramp-arm.c: Use blx instead of mov pc, reg to improve support for thumb.
* mini-arm.c (mono_arm_thumb_supported): New helper function.
svn path=/branches/mono-2-6/mono/; revision=146864
Backport of 144280.
* cominterop.c : Search the interface parts of vtable to find
method matches. Fixes 547030.
Code is contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=146860
* image.c (mono_image_load_module): Fix crash when a bad assembly
has no module at all (fix bug #553412) and also replace the
g_assert with a return NULL (documented return value for failure)
[Backport r146839]
svn path=/branches/mono-2-6/mono/; revision=146840
* Array.cs: use ContainsGenericParameters instead of
IsGenericTypeDefinition as it catches more cases.
backport r146834.
svn path=/branches/mono-2-6/mcs/; revision=146835
2009-11-24 Jb Evain <[email protected]>
* Array.cs (IList.this[int]): prevent the use of the IList indexer
when dealing with a multi dimensional array.
backport r146831.
in Test/System:
2009-11-24 Jb Evain <[email protected]>
* ArrayTest.cs: test that we don't allow the use of the IList indexer
on a multi dimensional array.
backport r146831.
svn path=/branches/mono-2-6/mcs/; revision=146832
2009-11-24 Jb Evain <[email protected]>
* Array.cs (Clear): throw an IndexOutOfRangeException instead
of an ArgumentOutRangeException for a negative length.
backport of r146825.
in Test/System:
2009-11-24 Jb Evain <[email protected]>
* ArrayTest: test for the proper exception on Clear ().
backport of r146825.
svn path=/branches/mono-2-6/mcs/; revision=146827
* ArrayTest.cs: add test ensuring we do not allow open
generic types in CreateInstance.
backport of r146823.
svn path=/branches/mono-2-6/mcs/; revision=146824
* ObjectMirror.cs TypeMirror.cs StructMirror.cs: Make the BeginInvokeMethod
which takes a 'vm' argument obsolete, it was added by mistake, add a version
without that argument instead.
svn path=/branches/mono-2-6/mcs/; revision=146810
* debugger-agent.c (resume_vm): Signal the suspend_cond even if suspend_count
> 0 since some threads can resume if their resume_count is > 0.
(invoke_method): Avoid reading freed memory.
svn path=/branches/mono-2-6/mono/; revision=146808
* debugger-agent.c (process_suspend): Extract the suspend code from
process_single_step_inner () to a separate function. Rework the code to prevent
races between this function and thread interrupts.
svn path=/branches/mono-2-6/mono/; revision=146807
* debugger-agent.c (suspend_current): Check the resume_count field instead
of resume_one so suspends+resumes during single threaded invokes work
correctly.
svn path=/branches/mono-2-6/mono/; revision=146778
* tramp-ppc.c (mono_arch_create_generic_class_init_trampoline_full): These
receive their argument in MONO_ARCH_VTABLE_REG, not in the first argument reg.
svn path=/branches/mono-2-6/mono/; revision=146604
* debugger-agent.c (create_event_list): Fix a crash if an empty assembly list
was used as an assembly filter.
svn path=/branches/mono-2-6/mono/; revision=146598
* class.c (can_access_internals): Allow CoreCLR to participate in
allowing (or not) [InternalsVisibleTo] between assemblies.
* security-core-clr.c|h: Make sure that only trusted code (a
superset of platform code) can access the internals of platform
code.
[Backport r146452]
svn path=/branches/mono-2-6/mono/; revision=146453
* debugger-agent.c (mono_debugger_agent_handle_exception): Pass a MonoJitInfo to
create_event_list () so assembly filters can be used.
svn path=/branches/mono-2-6/mono/; revision=146391
* aot-compiler.c (add_generic_instances): Emit instances of common generic
classes for char/bool too.
svn path=/branches/mono-2-6/mono/; revision=146323
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Signature fix.
This commit is licensed under the MIT X11 license.
svn path=/branches/mono-2-6/mono/; revision=146294
* DefaultWatcher.cs: patch by James P. Mitchel III.
The change corrects an instance of unsynchronized access to shared
state and is probably the intent of the original code.
svn path=/branches/mono-2-6/mcs/; revision=146291
* security-core-clr.c (get_caller_no_reflection_related):
[Mono]Type.InvokeMember is outside System.Reflection[.Emit] but
it's still reflection and must be filtered correctly.
svn path=/branches/mono-2-6/mono/; revision=146257
(mono_debugger_agent_thread_interrupt): Save the context so stacktraces for
threads in native code work.
svn path=/branches/mono-2-6/mono/; revision=146206
* debugger-agent.c: Pass the 'flags' argument to VM_INVOKE_METHOD earlier in
the parameter list, so it can be acted upon by vm_commands (). Bump protocol
version.
svn path=/branches/mono-2-6/mono/; revision=146202
* XmlNamespaceManager.cs: XmlReader.Read calls LookupNamespace via
the internal sig, which skips any overrides that might exist on
subclasses, so redirect all calls to the public call to make sure
all overrides are called as well.
Make AddNamespace, HasNamespace and RemoveNamespace private.
svn path=/branches/mono-2-6/mcs/; revision=146175
* debugger-agent.c: Implementation for Windows platform.
* mini-x86.c: Add support for Windows. Use mono-* synchronization
primitives. Use SEH to implement breakpoints and single stepping.
* mini-x86.h: Enable soft debugger on Windows.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=146169
* debugger-agent.c: Add support for passing flags to invokes. Add a
DISABLE_BREAKPOINTS flag. Bump protocol version.
svn path=/branches/mono-2-6/mono/; revision=146106
* debugger-agent.c (mono_debugger_agent_single_step_event): Avoid a crash if
this is called on the debugger thread.
svn path=/branches/mono-2-6/mono/; revision=146091
* mono-path.c: When resolving symlinks in a path, we need to
split on the directory separator and check each level, as
readlink only checks the final destination.
svn path=/branches/mono-2-6/mono/; revision=146067
* processes.c: match_procname_to_modulename should resolve
symlinks when checking if two process modules match.
svn path=/branches/mono-2-6/mono/; revision=146066
2009-11-09 Carlos Alberto Cortez <[email protected]>
* DataGridTextBoxColumn.cs:
* DataGrid.cs: Position the cursor in the add row should *not* show
yet another new row - that will happen till we get any real input data
from the user. When that happens, we will also mark the new row as
ready to commit - otherwise, when the cursor moves to a different row,
the just added row will be discarded. This is exactly what .Net seems
to do.
2009-11-09 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: The large value for our vertical scrollbar should
depend on the number of visible rows, instead of trying to re-use the
value of VisibleRowCount, which is the value of *current* visible
rows, and can easily end messed up if new rows are added/removed.
2009-11-09 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: When moving the scroll, *dont* ever end the current
edit - this could seriously mess up our current edit cycle, specially
when adding new rows.
2009-11-02 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: In OnKeyDown call the base implementation first -
this way we let the user tell us whether we should handle the key or
not.
Fixes#543717.
2009-11-02 Carlos Alberto Cortez <[email protected]>
* DataGrid.cs: Implement removal of rows the Correct Way by creating a
copy of the indexes, as any direct write access to the source will cause to
reset the entire selection - also, do the linear de-selection in
reverse order to avoid any index mismatch in the source, due to out of
synchronization removing the rows.
2009-11-02 Carlos Alberto Cortez <[email protected]>
* DataGridTextBoxColumn.cs:
* DataGrid.cs: Don't use this add-pending behaviour to try to add a
new row until we have the first input char - it was helping us to fix
other issues we have/had, but it's not matching .net.
2009-10-30 Carlos Alberto Cortez <[email protected]>
* TextBoxBase.cs: When returning the preferred height, and we are
supposed to be borderless, return the TopMargin value - usually in
borderless mode it has a value of 0, but in the ToolStrip controls we
need to set the margin manually.
Fixes#551214.
2009-10-29 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: ShowAlways works at the form level, not at the control
level. Fixes#544565.
2009-10-28 Carlos Alberto Cortez <[email protected]>
* ButtonBase.cs: Usually the click routines are handled in Control,
but in this class we are handling it ourselved, thus we need to have
the same calls, and we were missing the call to MouseClick.
Patch by Eric Petit <[email protected]>.
2009-10-26 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When setting Text and data source is being used, if the
passed value is not matching any of the items in the source, don't
pass it to GetItemText, since it's useless, as GetItemText expects a
valid item.
Fixes#546009.
2009-11-12 Carlos Alberto Cortez <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=146046
[backport the improvements and speedups for ListView from trunk,
-r 142738:144115]
2009-10-14 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When retrieving the top item, take into account the
offset represented by the header control, to retrieve the proper
value. Patch by Christoph von Wittich (Christoph at ApiViewer.de)
Fixes the remaining bits of #543773.
2009-10-14 Carlos Alberto Cortez <[email protected]>
* ListView.cs: TopItem setter should set the value as the top, not
only ensuring its visibility.
Fixes part of #543773.
2009-10-12 Carlos Alberto Cortez <[email protected]>
* ListView.cs: For virtual mode, when navigating the items using keyboard,
don't use the matrix of positions, and instead calculate the positions
based on the number of cols and rows, taking advantage of the fixed
positions of items. Use the same idea to implement FirstVisibleIndex,
so we avoid iterating over all the items. Patch by Stephen Robinson
mono at esar.org.uk.
Fixes part of #467418.
2009-10-07 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When computing the value for groups height don't use
text_size field, since in LargeIcon view it sometimes contains a
double height value - use Font.Height directly, and also improve the
padding value.
* ThemeWin32Classic: The same as above.
This way the space between the group header, the line, and the items
area is not that big in LargeIcon view.
2009-10-04 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When retrieving the fixed positions for the items in
virtual mode, use the row value to compute the coords of the item,
instead of the col value, as opposed to SmallIcon/LargeIcon views.
2009-09-29 Carlos Alberto Cortez <[email protected]>
* ListView.cs: The location of the items should be computed on the fly
in virtual mode - that decreased speed overall, but reduces the load
time.that decreased speed overall, but reduces the load time. Also,
handle the cases where we were using data structures we don't need to
use/create for this mode.
Fixes part of #467418.
2009-09-28 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Tile view and VirtualMode can't be applied together.
Patch by Stephen Robinson <[email protected]>.
2009-09-28 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When calculating the layout for Details view, don't ask
for the items *at all* in case we are in virtual mode. This should
re-enable the proper behaviour of virtual mode.
svn path=/branches/mono-2-6/mcs/; revision=146038
* VirtualMachineManager.cs: Refactor the APIs to have async methods.
Remove a bunch of Listen overloads that are pointless. Refactor
Launch to take a ProcessStartInfo instead of string arguments.
svn path=/branches/mono-2-6/mcs/; revision=145991
* Console.cs: Reduce duplication between OpenStandard[Input|
Output|Error] and, for Moonlight, don't return a NullStream if
security is disabled (e.g. when smcs executes)
r: alan
svn path=/branches/mono-2-6/mcs/; revision=145957
2009-11-10 Rodrigo Kumpera <[email protected]>
* object-internals.h: Change signature for mono_string_to_utf8_image.
* object.c (mono_string_to_utf8_image): Change signature to take a MonoError
argument.
* reflection.c: Take care of mono_string_to_utf8_image change and avoid raising
exceptions due to mono_string_to_utf8.
Backport of r145797.
svn path=/branches/mono-2-6/mono/; revision=145855
* object-internals.h: Change signature for mono_string_to_utf8_mp.
* object.c (mono_remote_class): Make sure all resources are released before
raising an exception.
* object.c (mono_print_unhandled_exception): Avoid raising an exception.
Backport of r145796.
2009-11-09 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=145854
* appdomain.c: Use checked version of mono_string_to_utf8 to avoid raising an
exception in the middle of the runtime code.
Backport of r145657.
2009-11-10 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=145837
* Socket_2_1.cs: throw when shutting down a socket that is not
connected. Don't linger if the socket is not connected.
svn path=/branches/mono-2-6/mcs/; revision=145808
* VirtualMachineManager.cs (Launch): Close the listening socket instead of
shutting it down since Shutdown throws on exception on non-connected sockets
in ms.net.
svn path=/branches/mono-2-6/mcs/; revision=145804
* debugger-agent.c (resume_from_signal_handler): New helper function extracted
from the single step/breakpoint handlers. Add a FIXME.
svn path=/branches/mono-2-6/mono/; revision=145791
* arm/arm-codegen.h: Fix the names of the LDMIA/STMIA macros, they don't actually
update the base register.
svn path=/branches/mono-2-6/mono/; revision=145788
* Console.cs (OpenStandardError,OpenStandardOut,OpenStandardInput):
for NET_2_1 && !MONOTOUCH, disable these streams unless a debugger
is attached, or unless the MOONLIGHT_ENABLE_CONSOLE environment
variable is defined.
reviewed: alan
svn path=/branches/mono-2-6/mcs/; revision=145773
* System.Data.Linq.dll.sources: Use src/DbLinq.MySql/MySqlDataContext.cs;
fixes the build for case-insensitive filesystems.
svn path=/branches/mono-2-6/mcs/; revision=145749
* driver.c (mono_jit_parse_options): New public API function to parse options
as done by the runtime executable.
svn path=/branches/mono-2-6/mono/; revision=145654
* debugger-agent.c (buffer_add_cattrs): Fix reading an uninitialized variable
when handling named arguments.
svn path=/branches/mono-2-6/mono/; revision=145652
*: Move .cs files to the System.Data.Services subdir to match their namespace,
move tests to 'Test' from 'Tests', add Makefile.
svn path=/branches/mono-2-6/mcs/; revision=145633
because they weren't compiling, which was because System.Data.Linq
wasn't listing sqlmetal_net_2_0 as a friend assembly. (Why this
built before I couldn't tell you...) Fixed in latest S.D.L.
svn path=/branches/mono-2-6/mcs/; revision=145617
generate constructors referring to IVendor), enhances query support
so that extension methods can be used within 'select' blocks,
various FirebirdSQL fixes, etc.
svn path=/branches/mono-2-6/mcs/; revision=145616
A fix for bug #553031
* linq.cs, expression.cs, class.cs, cs-parser.jay: Initialize
expression tree version of anonymous type with members declaration.
svn path=/branches/mono-2-6/mcs/; revision=145585
* mini-arm.c (handle_thunk): Add a domain argument to control the domain
where the thunk memory should be allocated from. Fixes appdomain unloading
on arm.
svn path=/branches/mono-2-6/mono/; revision=145570
* mini-arm.c exceptions-arm.c: Make ctx->regs map directly to the 16 hardware
registers, instead of r4..r11,ip,lr. Make restore_context () restore r0..r3 too.
svn path=/branches/mono-2-6/mono/; revision=145564
* HttpsTransportBindingElement.cs: Implement basic https transport
binding support for Moonlight and MonoTouch
svn path=/branches/mono-2-6/mcs/; revision=145558
* mini-amd64.c (mono_arch_output_basic_block): Don't allow OP_SEQ_POINT in
AOT, as it is not implemented yet.
* mini-x86.c (mono_arch_output_basic_block): Ditto.
svn path=/branches/mono-2-6/mono/; revision=145552
* debugger-agent.c: Add an 'onthrow' option to start the debugger agent
when an exception of a given type is thrown.
svn path=/branches/mono-2-6/mono/; revision=145550
* debugger-agent.c: Add a 'onuncaught' option to start the debugger agent
only on an uncaught exception.
* mini-exceptions.c: Notify the debugger agent on an uncaught exception.
svn path=/branches/mono-2-6/mono/; revision=145549
* debugger-agent.c: Changes to build on windows. Use mono-mutex instead
of pthreads directly.
* mini.c (mono_sigfpe_signal_handler): Changed signature of Windows
exception handlers. Pass info argument.
* mini.h: Adjust signatures of soft debugger functions to pass void*
instead of siginfo_t. Adjust SIG_HANDLER_SIGNATURE on Windows.
* mini-amd64.c (mono_arch_is_single_step_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
(mono_arch_is_breakpoint_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
* mini-amd64.h: Adjust MonoW32ExceptionHandler signature.
* mini-x86.c (mono_arch_is_single_step_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
(mono_arch_is_breakpoint_event): Adjust signature to pass void*
instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
* mini-x86.h: Adjust MonoW32ExceptionHandler signature.
* exceptions-x86.c: Adjust W32_SEH_HANDLE_EX for new signature.
* exceptions-amd64.c: Adjust W32_SEH_HANDLE_EX for new signature.
* mono-semaphore.h: Skeleton implementation for Windows.
Code contributed under MIT/X11 license.
svn path=/branches/mono-2-6/mono/; revision=145543
* class.c: When CoreCLR is enabled don't call mono_init_com_types
if MONO_CLASS_IS_IMPORT return true unless the type reside in
platform (trusted) code. Instead we return a TypeLoadException to
be thrown later. This is the exception thrown by Silverlight 2 if
a type, inside application (user) code is marked with [ComImport]
[Backport r145534]
svn path=/branches/mono-2-6/mono/; revision=145535
* class.c: Add missing check for load errors after every
call to mono_class_setup_fields
Fixes#552282.
Backport of r145501.
2009-11-05 Rodrigo Kumpera <[email protected]>
svn path=/branches/mono-2-6/mono/; revision=145516
* net_2_1_raw_System.Net.dll.sources: Add Consts.cs, Locale.cs and
MonoTODOAttribute.cs to the build to fix ambiguous references to
those types in corlib and System.dll. This way we'll use our own
types.
svn path=/branches/mono-2-6/mcs/; revision=145487
2009-11-05 Rodrigo Kumpera <[email protected]>
* metadata.c: Change event table schema to use TDOR for event type
as this is what it's meant to be.
* metadata.c (mono_metadata_compute_size): Change MONO_TABLE_ASSEMBLYPROCESSOR
to MONO_TABLE_ASSEMBLYREFPROCESSOR, which is table that has a MONO_MT_TABLE_IDX
entry.
* metadata.c (mono_metadata_compute_size): Trim MT_TABLE_IDX of code that no
longer makes sense: remove MONO_TABLE_EVENT and remove checks for non-existent
rows in MONO_TABLE_GENERICPARAM.
Fixes#552289.
Backport of r145478.
svn path=/branches/mono-2-6/mono/; revision=145480
* CultureInfo.cs: Allow neutral cultures, and fix zh-Hans/zh-Hant
- they're stored internally as zh-chs/zh-cht, and only visible as
zh-Hans/zh-Hant. zh-CHS/zh-CHS are invalid cultures in SL.
svn path=/branches/mono-2-6/mcs/; revision=145465
* VirtualMachineManager.cs (Connect): New method to connect to a runtime
listening at the provided address.
svn path=/branches/mono-2-6/mcs/; revision=145454
2009-11-04 Rodrigo Kumpera <[email protected]>
* class-internals.h: Change signature of mono_class_inflate_generic_type_with_mempool to take
a MonoError parameter.
* class-internals.h: Add new mono_class_inflate_generic_type_checked version that can does proper error handling.
* class.c (inflate_generic_type): Add a MonoError parameter. Don't assert on error, use new mono error machinery.
* class.c (mono_class_inflate_generic_type_with_mempool): Add new MonoError parameter.
* class.c, generics-sharing.c: Changes to handle mono_class_inflate_generic_type_with_mempool new signature.
Backport of r144688 and r144755.
svn path=/branches/mono-2-6/mono/; revision=145424
* string-icalls.c|h: Remove string internal calls that are not
used anymore by the class libraries.
* icall.c: Remove System_Reflection_FieldInfo_internal_from_handle
which is not used in the class librairies.
* icall-def.h: Update tables.
[Backport r145416]
svn path=/branches/mono-2-6/mono/; revision=145417
2009-11-04 Rodrigo Kumpera <[email protected]>
* reflection.c (fieldref_encode_signature): If field_image is NULL then
the token is already properly encoded. Fixs 4.0 build.
Backport of r145396.
svn path=/branches/mono-2-6/mono/; revision=145412
* locales.c (construct_number_format): Check if the number index is
valid before trying to use it, if not, just return.
svn path=/branches/mono-2-6/mono/; revision=145388
* aot-compiler.c (mono_save_xdebug_info): Bump the threshold for flushing
debug info to 100 because 10 still slows down gdb too much.
svn path=/branches/mono-2-6/mono/; revision=145368
* reflection.c (fieldref_encode_signature): Add new field_image parameter
to indicate which assembly to use when resolving a custom-mod.
Fixes handling of volatile fields used across assemblies as reported in #551513.
Backport of r145337.
svn path=/branches/mono-2-6/mono/; revision=145362
2009-11-03 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (load_simd_vreg): Add extra argument to signal if
the value was loaded from memory.
* simd-intrinsics.c (simd_intrinsic_emit_setter): Store back to memory if
the value was loader from there.
* simd-intrinsics.c (simd_intrinsic_emit_shuffle): Fail correctly for Shuffle
without constant swizzle.
Backport of r145283.
svn path=/branches/mono-2-6/mono/; revision=145338
* SocketAsyncEventArgs.cs: Set error back to SocketError.Success
once CheckEndPoint succeed.
[Fix bug #549586]
[Backport r145329]
svn path=/branches/mono-2-6/mcs/; revision=145330
* Mono.Tuner/CheckVisibility.cs: detect a throw_on_visibility_error
linker parameter to decide whether or not throw when an error
have been encountered.
svn path=/branches/mono-2-6/mcs/; revision=145303
* aot-runtime.c (mono_aot_get_method): Refactor some code into a new helper
function mono_aot_get_array_helper_from_wrapper ().
* aot-compiler.c (add_generic_class): Refactor the code a bit, really emit
array helper methods.
svn path=/branches/mono-2-6/mono/; revision=145299
* AssemblyInfo.cs: Open up the internals to System.Net.dll (which
needs Uri.IsDefaultPort) for NET_2_1 and remove it for
System.ComponentModel.DataAnnotations (again for NET_2_1)
[Backport r145294]
svn path=/branches/mono-2-6/mcs/; revision=145295
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Return false if
the agent is not enabled.
svn path=/branches/mono-2-6/mono/; revision=145258
* exceptions-x86.c: hopefully last change to fix the windows build.
This one courtesy of Jonathan Chambers.
svn path=/branches/mono-2-6/mono/; revision=145254
* debugger-agent.c: add #ifdefs for a few header files.
* mini-x86.h: disable the soft debugger in windows.
Step 1 of 2 to make this compile on windows with gcc.
svn path=/branches/mono-2-6/mono/; revision=145252
Merge the soft debugger branch.
* debugger-agent.h debugger-agent.c: New files containing the soft
mode debugger module.
* method-to-ir.c (mono_method_to_ir): Generate OP_SEQ_POINT opcodes
at the appropriate locations.
* mini-<ARCH>.c (mono_arch_output_basic_block): Handle OP_SEQ_POINT
opcode.
* mini-<ARCH>.c: Add new arch-specific functions to set/clear breakpoints,
enable/disable single stepping.
* exceptions-<ARCH>.c (mono_arch_find_jit_info_ext): New stack unwinding api
which returns all information in a StackFrameInfo structure, and can handle the
LMF frames added by the debugger.
* mini-<ARCH>.h (MonoLMFExt): New structure containing additional information
about an LMF frame.
* mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): New stack
walker function which works on a specific thread and passes a StackFrameInfo
structure to its callback.
* mini.c (mini_init): Initialize the debugger agent.
* aot-compiler.c aot-runtime.c: Add soft-debug support.
* mini-ops.h: Add OP_SEQ_POINT opcode.
* driver.c (mono_main): Add new '--debugger-agent' option for passing
arguments to the debugger agent.
svn path=/branches/mono-2-6/mono/; revision=145249
* EventRequest.cs (AssemblyFilter): New property to filter
events based on a list of assemblies.
* Connection.cs: Add assembly filters to the protocol implementation.
svn path=/branches/mono-2-6/mcs/; revision=145245
* Makefile: Add Mono.Debugger.Soft.
In Mono.Debugger.Soft:
2009-11-02 Zoltan Varga <[email protected]>
* New directory containing the managed interface to the soft-mode debugger.
svn path=/branches/mono-2-6/mcs/; revision=145237
* debug-mono-symfile.c (check_line): Fix the handling of IL offset 0.
* threads.c (mono_thread_attach): Call the profiler thread start callback.
* object-internals.h (_MonoThreadInternal): Add a 'flags' field.
* threads.c (build_wait_tids): Ignore threads which have the DONT_MANAGE
flag set.
* profiler.c: Add new profiler callbacks for runtime invoke.
* object.c (mono_runtime_invoke): Call the runtime invoke callbacks.
svn path=/branches/mono-2-6/mono/; revision=145233
* Thread.cs (set_CurrentUICulture): Delay setting in_currentculture
to true until after the null check and the return statement.
svn path=/branches/mono-2-6/mcs/; revision=145215
Merge the MonoTouch Linker branch.
* monolinker.exe.sources: update
* Mono.Linker/Annotations.cs:
- add an preserved methods annotation on a type.
- add an annotation to get the base methods of a method.
- add an annotation to get the overriden method of a method.
* Mono.Linker/AssemblyAction.cs:
add a Delete action to remove an assembly from the output set.
* Mono.Linker.Steps/TypeMapStep.cs:
new step that create a map of virtual methods implementation.
* Mono.Linker.Steps/MarkStep.cs:
- removal of virtual methods.
- fix for custom attributes assigning properties and field
defined in a base type.
- mark scopes.
- mark default constructors of types used as a generic instance
of a generic parameter constrained with new().
- apply preserved methods.
* Mono.Linker.Steps/SweepStep.cs: remove unused assemblies.
* Mono.Linker.Steps/LoadI18nAssemblies.cs:
fix linking of i18n assemblies.
* Mono.Linker.Steps/OutputStep.cs:
fix the copied assemblies when the output directory
is the same as the origin of the assemblies.
* Mono.Linker.Steps/ResolveFromXmlStep.cs
* Mono.Linker.Steps/ResolveFromAssemblyStep.cs
* Mono.Linker.Steps/BaseStep.cs
* Mono.Linker/Driver.cs
* Mono.Linker/Pipeline.cs:
Cosmetics.
svn path=/branches/mono-2-6/mcs/; revision=145209
* mini.c (mini_method_compile): Disable llvm for methods with an lmf here to
speed things up.
* mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOCALLOC.
svn path=/branches/mono-2-6/mono/; revision=145197
* mini.c (mini_init): Avoid using the IMT trampoline in the LLVM case.
* mini-trampolines.c (mono_llvm_vcall_trampoline): Add a static rgctx trampoline
if needed.
(mono_create_llvm_imt_trampoline): New function to create a trampoline which
sets the IMT argument and makes a virtual call.
* mini-llvm.c: Enable interface calls using the llvm imt trampoline.
svn path=/branches/mono-2-6/mono/; revision=145192
* configure.in: Pass -mno-cygwin to CXX too on windows. Enable AC_PROG_CXX
since it now works on windows too.
svn path=/branches/mono-2-6/mono/; revision=145173
* ResourceManager.cs (GetResourceFilePath): Don't use
'resourceDir' which should always be null for Moonlight
[Backport r145165]
svn path=/branches/mono-2-6/mcs/; revision=145166
* threads.c: refactor the code that initializes the
thread_start_args into a reusable function and use this in the two
methods that start up threads.
svn path=/branches/mono-2-6/mono/; revision=145155
* mono-perfcounters.c: add the "_Total" instance for CPU counters.
Until now, we only had the per-cpu(core) counters.
2009-10-30 Gonzalo Paniagua Javier <[email protected]>
* mono-proclib.c: hz is only multiplied by the number of cpus when
requesting "_Total".
Fixes bug #523520.
svn path=/branches/mono-2-6/mono/; revision=145135
* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test
cases for two DefineGenericParameters
[Backport r145118]
svn path=/branches/mono-2-6/mcs/; revision=145120
* MonoMethod.cs: Remove CAS check in MonoCMethod.Invoke (just
like it was done for MonoMethod.Invoke sister method)
[Backport r145101]
svn path=/branches/mono-2-6/mcs/; revision=145102
* TypeMap.cs (Deserialize): use
FormatterServices.GetUninitializedObject instead of
Activator.CreateInstance, since we shouldn't be invoking the
default ctor.
svn path=/branches/mono-2-6/mcs/; revision=145077
* ModuleBuilderTest.cs: Add test cases for GetType overloads
* TypeBuilderTest.cs: Remove NotWorking from two
DefineGenericParameters test case.
[Backport r145013]
svn path=/branches/mono-2-6/mcs/; revision=145015
* method-to-ir.c (mono_method_to_ir): Use EMIT_NEW_LOAD_MEMBASE_TYPE to
load vtypes instead if OP_LOADV_MEMBASE in the implementation of
CONSTRAINED. Fixes#550964.
* generics.cs: Add a test.
svn path=/branches/mono-2-6/mono/; revision=145007
* MarshalByRefObject.cs: In InitializeLifetimeService, if a lease
exists for the object return it, instead of always creating
a new one. Fixes bug #544357.
svn path=/branches/mono-2-6/mcs/; revision=144963
* FileStream.cs: Move code to deal with 'anonymous' filenames
into two methods (returning the path, fullpath or only the
filename). Default Moonlight to anonymous (not only for isolated
storage) unless the coreclr is disable (e.g. smcs)
[Backport r144945]
svn path=/branches/mono-2-6/mcs/; revision=144946
* UnicodeEncodingTest.cs: Add test cases with an odd number of
bytes being used in GetString (it does not crash but it does not
work like MS FX either).
[Backport r144921]
svn path=/branches/mono-2-6/mcs/; revision=144924
* String.cs: Remove unused (and unneeded) internal call defs.
Reduce duplication (and fix test) for Concat (object,object).
Avoid allocating zero-length strings in the cases where the
FX does not do so.
[Backport r144921]
svn path=/branches/mono-2-6/mcs/; revision=144923
** Fixes #385028/#385029
* DbCommandBuilder.cs (CreateInsertCommand): Workaround for inserting
DEFAULT values to non-null-columns.
(GetInsertCommand): New overload added to handle above workaround.
(set_DataAdapter): Register for the RowUpdatingEventHandler.
svn path=/branches/mono-2-6/mcs/; revision=144917
2009-10-25 Zoltan Varga <[email protected]>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
In mono/mini:
2009-10-25 Zoltan Varga <[email protected]>
* mini-posix.c (add_signal_handler): Delay the GC suspend signal while
executing a SIGSEGV handler on an altstack, since libgc can't handle that.
In mono/tests:
2009-10-25 Zoltan Varga <[email protected]>
* misc.c (GC_get_suspend_signal): New API function to return the suspend signal
used by libgc.
svn path=/branches/mono-2-6/mono/; revision=144871
* Assembly.cs: Share code between GetSatelliteAssembly and
GetSatelliteAssemblyNoThrow. For Moonlight ensure both
GetManifestResourceStream and GetSatelliteAssembly don't load
anything "below" the assembly path.
[Backport r144845]
svn path=/branches/mono-2-6/mcs/; revision=144846
* InterlockedTest.cs: Add test case for generic methods
CompareExchange and Exchange
[Backport r144840]
svn path=/branches/mono-2-6/mcs/; revision=144842
marshal.c: BeginInvoke cannot be called on multicast delegates with
multiple targets. Fixes bug #574426.
Backported from trunk.
svn path=/branches/mono-2-6/mono/; revision=144812
* zlib-helper.c: stop trying to decompress when we get Z_STREAM_END.
Patch by Ives Bastide. Fixes bug #549942.
svn path=/branches/mono-2-6/mono/; revision=144800
* StackFrame.cs: Relax GetSecureFileName when the coreclr is not
active (i.e. show full path when compiling with smcs)
[Backport r144797]
svn path=/branches/mono-2-6/mcs/; revision=144798
* AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run
is supported (browser-side) but we still allow other values when
compiling (e.g. smcs) outside the browser (wo coreclr)
* TypeBuilder.cs (GetConstructor): Fix validations
[Backport r144791]
svn path=/branches/mono-2-6/mcs/; revision=144792
* mini-exceptions.c (mini_jit_info_table_find): Add an 'out_domain' argument
which will contain the domain where the method was found.
* exceptions-<ARCH>.c mini-exceptions.c: Update callers of
mini_jit_info_table_find ().
svn path=/branches/mono-2-6/mono/; revision=144789
* threadpool.[ch]: added hooks for thread start/finish and item
processing begin/end. For monotouch use only.
svn path=/branches/mono-2-6/mono/; revision=144783
* reflection.c (resolve_object): Set handle_class for strings too.
(mono_reflection_create_custom_attr_data_args): New helper function to decode
a cattr blob into a set of arrays and structures without creating the custom
attributes themselves.
(create_custom_attr_data): Simplify using create_custom_attr_data_args.
* mono-debug.c (mono_debug_il_offset_from_address): New helper function.
* debug-mono-symfile.c (mono_debug_symfile_get_line_numbers): New helper
function.
svn path=/branches/mono-2-6/mono/; revision=144778
* SecurityManager_2_1.cs: Return to duty for SecurityEnabled, it
will allow us to distinguish between running in the browser
(coreclr active) and on the console (e.g. smcs) from managed code
[Backport r144732]
svn path=/branches/mono-2-6/mcs/; revision=144733
* Configuration.cs: make this work again with bundled configuration
files. Fixes bug #495957. Patch from Tor Lillqvist.
svn path=/branches/mono-2-6/mcs/; revision=144723
* mini-x86.c (mono_arch_emit_prolog): Disable aot for methods with save_lmf
set, its not supported yet.
svn path=/branches/mono-2-6/mono/; revision=144676
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
iface wrapper is not found.
(mono_aot_get_method): Ditto for GetGenericValueImpl.
svn path=/branches/mono-2-6/mono/; revision=144673
* aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
iface wrapper is not found.
svn path=/branches/mono-2-6/mono/; revision=144666
* CodeNamespaceImportCollection.cs: Properly update the internal
keys hashtable when there are changes in the items.
svn path=/branches/mono-2-6/mcs/; revision=144651
* MonitorTest.cs: Mark existing tests as "NotWorking" since they
fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
to validate the TryEnter and Wait overloaded methods.
[Backport r144627]
svn path=/branches/mono-2-6/mcs/; revision=144629
* aot-runtime.c (mono_aot_get_method): Fix support for the IList<T> wrappers,
which have a different name.
svn path=/branches/mono-2-6/mono/; revision=144570
* aot-runtime.c (mono_aot_get_method): Special case the array generic iface
wrappers and Array.GetGenericValueImpl ().
* aot-compiler.c: Avoid emitting some wrappers which are not needed anymore
because of the change above.
* generics.cs: Add a test for full aot + generic array ifaces.
svn path=/branches/mono-2-6/mono/; revision=144566
* SerializationMap.cs, KnownTypeCollection.cs: avoid using LINQ
on arrays as MonoTouch has issues with them.
svn path=/branches/mono-2-6/mcs/; revision=144550
* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
methods overloads (at least the one present in Silverlight 2)
[Backport r144529]
svn path=/branches/mono-2-6/mcs/; revision=144531
* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
in Wait[One|Any|All]. Also call the overloaded (bool) methods for
WaitAll to reduce code duplication.
[Backport r144529]
svn path=/branches/mono-2-6/mcs/; revision=144530
* class.c (mono_class_create_from_typedef): Initialize class->element_class
before the interfaces to avoid crashes later if class initialization fails.
Fixes#548417.
svn path=/branches/mono-2-6/mono/; revision=144484
* ApplicationHost.cs: set the shadow copy options calling the methods
in AppDomain, instead of setting them in a copy of the setup
information.
svn path=/branches/mono-2-6/mcs/; revision=144479
* Timer.cs: Always call Init from every constructors to avoid
duplicate checks. Fix validations on different dueTime and period
(ctor and Change methods). Seal private TimerComparer class and
avoid multiple (identical) casts in its Compare method. Seal
private Scheduler class.
[Backport r144466]
svn path=/branches/mono-2-6/mcs/; revision=144467
* ServerContext.cs:
* SslServerStream.cs: add new parameter that forces sending the
CertificateRequest record. Make sure we raise the client certificate
validation event when it is requested or required.
svn path=/branches/mono-2-6/mcs/; revision=144460
* MonoProperty.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport 144448]
svn path=/branches/mono-2-6/mcs/; revision=144449
* Thread.cs: change type of the current_appcontext field to object
to avoid triggering static constructors unless explicitely required.
svn path=/branches/mono-2-6/mcs/; revision=144430
* assembly.c (mono_assembly_load_reference): Fix leak when 'status'
code is known. (parse_public_key) Remove duplicate (unneeded) NULL
check since 'pubkey' can't be NULL at this stage
* icall.c (ves_icall_System_Array_FastCopy): Add comment about
the check. (ves_icall_Type_GetInterfaceMapData) Remove duplicate
initialization of 'iter'
[Backport r144403]
svn path=/branches/mono-2-6/mono/; revision=144405
* MonoEvent.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport r144363]
svn path=/branches/mono-2-6/mcs/; revision=144364
* MethodBaseTest.cs: Add new, working, test for non-generic
GetMethodFromHandle. Add test case to show generic overload
behave exactly the same when no second RuntimeMethodHandle is
provided. Remove [Category("NotWorking")] on existing test case.
[Backport r144335]
svn path=/branches/mono-2-6/mcs/; revision=144337
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport r144335]
2009-10-18 Sebastien Pouliot <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=144336
* aot-compiler.c (can_marshal_struct): Allow some System.dll structs to be
marshalled. Fixes#541623.
svn path=/branches/mono-2-6/mono/; revision=144332
2009-10-18 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Remove System.IO.IntPtrStream since it can
be replaced by (public in 2.0+) UnmanagedMemoryStream
* net_2_1_raw_corlib.dll.sources: Remove System.IO.IntPtrStream
since it can be replaced by UnmanagedMemoryStream
[Backport r144322]
In System.Resources:
2009-10-18 Sebastien Pouliot <[email protected]>
* ResourceReader.cs, ResourceSet.cs, RuntimeResourceSet.cs: Use
UnmanagedMemoryStream (instead of IntPtrStream)
[Backport r144322]
In System.IO:
2009-10-18 Sebastien Pouliot <[email protected]>
* UnmanagedMemoryStream.cs: Allow the use under NET_1_1 so we can
remove the internal IntPtrStream from every profile.
In System.Reflection:
2009-10-18 Sebastien Pouliot <[email protected]>
* Assembly.cs: Use UnmanagedMemoryStream (instead of IntPtrStream)
in every profile
svn path=/branches/mono-2-6/mcs/; revision=144323
* MonoMethod.cs: Reduce code duplication and the number of direct
calls to icalls (affecting the number of SecuritySafeCritical in
Moonlight)
[Backport r144306]
svn path=/branches/mono-2-6/mcs/; revision=144307
A fix for bug #493523, #507067
* convert.cs, nullable.cs, expression.cs: Do implicit and explicit
standard nullable conversion using underlying standard conversion
and not full conversion.
svn path=/branches/mono-2-6/mcs/; revision=144266
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
support contexts so we call the non-overloaded WaitOne method
(which defaults to false).
[Backport r144200]
svn path=/branches/mono-2-6/mcs/; revision=144201
* ClientRuntimeChannel.cs: Remove the WaitOne 'emitContext'
overloads from the Moonlight build. Directly call WaitHandle.
WaitAll from WaitOne(int) (since the overloads are not always
present)
[Backport r144198]
svn path=/branches/mono-2-6/mcs/; revision=144199
Mono.Data.Sqlite to the MonoTouch build.
* System/System.ComponentModel/TypeConverter_2_1.cs: Skip this type in
the MonoTouch profile; MonoTouch will be using the 2.0 version of
TypeConverter.
* System/System.ComponentModel/ComponentCollection.cs,
System/System.ComponentModel/PropertyDescriptor.cs: MonoTouch uses the
.NET 2.0 versions of these types.
* System/monotouch_System.dll.sources: Add lots of additional .NET 2.0
functionality to the MonoTouch profile.
* System.Transactions/Makefile (VALID_PROFILE): Add monotouch.
* System.Data/System.Data.Common/DbConnection.cs: Throw
NotImplementedException for DbConnection.DbProviderFactory, as
DbProviderFactories isn't included in the MonoTouch profile.
* System.Data/System.Data.SqlClient/SqlConnection.cs: Remove
EnterpriseServices dependency from the MonoTouch profile.
* System.Data/monotouch_System.Data.dll.sources: Added.
* System.Data/System.Data/XmlSchemaDataImporter.cs: Remove
DbProviderFactories dependency in the MonoTouch profile.
svn path=/branches/mono-2-6/mcs/; revision=144142
* Exception.cs: Use StackFrame.GetSecureFileName to display (or
not) the file names (and paths). Don't serialize Source for
Moonlight.
* ValueType.cs: Change InternalEquals (icall) visibility to
private since it is not used elsewhere outside the type.
[Backport r144104]
svn path=/branches/mono-2-6/mcs/; revision=144105
2009-10-13 Martin Baulig <[email protected]>
* debug-mini.c (mono_debugger_trampoline_compiled): Add
`const guint8 *trampoline' argument; send both the old and the new
notification.
2009-10-13 Martin Baulig <[email protected]>
* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
`MONO_DEBUGGER_EVENT_TRAMPOLINE' into
`MONO_DEBUGGER_EVENT_OLD_TRAMPOLINE' and added a new
`MONO_DEBUGGER_EVENT_TRAMPOLINE'.
* mono-debug.h (MONO_DEBUGGER_MINOR_VERSION): Bump to 4.
svn path=/branches/mono-2-6/mono/; revision=144065
* aot-compiler.c (mono_save_xdebug_info): Group methods into groups of 10 to
avoid registering 1 symbol file per method with gdb.
svn path=/branches/mono-2-6/mono/; revision=144034
* aot-compiler.c (mono_save_xdebug_info): Emit a symbol for the method which
can be used to set breakpoints in gdb.
* image-writer.c (bin_writer_emit_writeout): Add support for setting the text
segment to an absolute address.
svn path=/branches/mono-2-6/mono/; revision=144033
In tools/xbuild:
2009-10-12 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: For referenced projects,
when trying to get the deploy items, ensure that the split
lists of project references are available.
(SplitProjectReferencesByExistent): New.
Set DependsOnTargets appropriately.
2009-10-12 Ankit Jain <[email protected]>
* SolutionParser.cs: Handle non-existing project files, and
project file load errors. Raise warnings instead of failing.
* xbuild/Microsoft.Common.targets: Handle non-existant
Project references, skip instead of failing.
In class/Microsoft.Build.Tasks:
2009-10-12 Ankit Jain <[email protected]>
* Makefile: Add reference to Microsoft.Build.Engine .
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-12 Ankit Jain <[email protected]>
* ResolveAssemblyReference.cs: Remove unnecessary tab in the warning
messages.
2009-10-12 Ankit Jain <[email protected]>
* MSBuild.cs (Execute): Handle build errors.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-12 Ankit Jain <[email protected]>
* Target.cs (TargetFile): New. Gives the name of the file
containing the target definition.
* BuildEngine.cs (.ctor): Add a 'taskfile' parameters, and
return this for ProjectFileOfTaskNode.
* BuildTask.cs (LogTaskStarted):
(LogTaskFinished): Use parentTarget.ProjectFileOfTaskNode for
the event.
(InitializeTask): Set BuildEngine's task file to parent target's
TargetFile.
* Engine.cs (LogProjectStarted): Incase of default targets, set
TargetNames to String.Empty .
* TargetBatchingImpl.cs (LogTargetStarted):
(LogTargetFinished): Use target.TargetFile for the event.
* ConsoleLogger.cs: Keep a stack of project/target/task being
executed. And corresponding list of errors and warnings.
(EventsToString): Stringifies the current "stack", to be used
as key to the table of errors/warnings and for show messages
at the end of the build.
2009-10-12 Ankit Jain <[email protected]>
* Project.cs (Load): Add argument checks.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-12 Ankit Jain <[email protected]>
* TaskLoggingHelper.cs: Use the buildEngine.ProjectFileOfTaskNode
in the event args.
2009-10-12 Ankit Jain <[email protected]>
* ToolTask.cs (ExecuteTool): Don't set toolOutput to null.
(HandleTaskExecutionErrors): toolOutput can be null.
Set toolOutput to null here.
svn path=/branches/mono-2-6/mcs/; revision=143964
In tools/xbuild:
2009-10-11 Ankit Jain <[email protected]>
* Main.cs: Add support for emitting messages in color.
Taking relevant code from mcs/report.cs . Using ANSI
color codes here instead of Console.ForegroundColor
because of a bug in Console.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-11 Ankit Jain <[email protected]>
* ConsoleLogger.cs (no_colors): Rename to ..
(use_colors): .. this. Fix the case when XBUILD_COLORS
is not set.
2009-10-11 Ankit Jain <[email protected]>
* ConsoleLogger.cs: Use ColorSetter and ColorResetter .
Support 'XBUILD_COLORS' to set colors for errors, warnings,
events and messages.
2009-10-10 Ankit Jain <[email protected]>
* ConsoleLogger.cs (ProjectFinishedHandler): Once projectFailed
becomes true, don't reset it. We are looking for "atleast one
project failed".
svn path=/branches/mono-2-6/mcs/; revision=143904
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
the GDB support mode in the runtime.
svn path=/branches/mono-2-6/mono/; revision=143889
* image-writer.c: Add support for emitting the image into a memory buffer.
* dwarfwriter.c: Add support for sharing one IL file between multiple images.
* aot-compiler.c: Add support for registering debug info with GDB using the
new JIT debugging interface in GDB 7.0. It can be turned on by setting
MONO_XDEBUG to 'gdb'.
svn path=/branches/mono-2-6/mono/; revision=143888
2009-10-09 Ankit Jain <[email protected]>
* Exec.cs (AddCommandLineCommands): Add '/q' for cmd.exe, to
turn 'echo off'. And make sure the script file on windows, has
a '.bat' extension, otherwise cmd.exe opens it in a text editor.
2009-10-09 Ankit Jain <[email protected]>
Fix bug #545703.
* Exec.cs (Command): On unix, change CRLF to CR.
svn path=/branches/mono-2-6/mcs/; revision=143881
* image-writer.c (bin_writer_emit_writeout): Fix a copy paste error causing
the LOC section to overwrite the LINE section.
svn path=/branches/mono-2-6/mono/; revision=143875
* StackFrame.cs: Introduce a new GetSecureFileName method that
will deal with CAS (regular framework) and will remove the path
(for Moonlight) on a stack frame.
* StackTrace.cs: Use the new StackFrame.GetSecureFileName to
simplify logic
[Backport r143802]
svn path=/branches/mono-2-6/mcs/; revision=143804
* AppDomain.cs: Remove NET_2_1 specific DefineDynamicAssembly(
AssemblyName,AssemblyBuilderAccess,bool) since it is not part
of SL. Provide a ToString implementation similar to Silverlight
for Moonlight (and without directly using an icall)
[Backport r143799]
svn path=/branches/mono-2-6/mcs/; revision=143800
In tools/xbuild:
* xbuild/Microsoft.Common.targets: Don't get list of files
to deploy, for 'Private' project references.
Fix target named for *CopyDeploy*.
2009-10-08 Ankit Jain <[email protected]>
In tools/xbuild/tests:
2009-10-08 Ankit Jain <[email protected]>
* standalone/Project1: Add a new Lib5 project, and add
private references to various projects.
Update final-outputs.txt .
* standalone/Project01/Lib5/*: New.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* ResolveAssemblyReference.cs: Don't resolve any dependencies for
assemblies resolved from {PkgConfig}. Honor parent's CopyLocal for
dependencies.
2009-10-08 Ankit Jain <[email protected]>
svn path=/branches/mono-2-6/mcs/; revision=143741
In tools/xbuild:
2009-10-08 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.tasks: Add RemoveDuplicates task.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2009-10-08 Ankit Jain <[email protected]>
* TestMessageLogger.cs (CheckLoggedAny): New.
2009-10-08 Ankit Jain <[email protected]>
* RemoveDuplicatesTest.cs: New.
In class/Microsoft.Build.Tasks:
2009-10-08 Ankit Jain <[email protected]>
* Microsoft.Build.Tasks_test.dll.sources: Added
RemoveDuplicatesTest.cs
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-10-08 Ankit Jain <[email protected]>
* MSBuild.cs (Execute): Don't share target output items,
always create a copy.
2009-10-08 Ankit Jain <[email protected]>
* RemoveDuplicates.cs: Use item's ItemSpec as the key.
2009-10-07 Ankit Jain <[email protected]>
* ManagedCompiler.cs (HandleTaskExecutionErrors): Log error if
required.
2009-10-06 Ankit Jain <[email protected]>
* Exec.cs (ExecuteTool): Use DeleteTempFile instead of File.Delete
(HandleTaskExecutionErrors): Log error, if required.
* MSBuild.cs: Don't log error.
* Warning.cs: Don't log if @text is empty.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-08 Ankit Jain <[email protected]>
* ProjectTest.cs (TestBatchedMetadataRefInOutput): New.
In class/Microsoft.Build.Engine/Test/various:
2009-10-08 Ankit Jain <[email protected]>
* Items.cs (TestItemsWithWildcards): New.
2009-10-08 Ankit Jain <[email protected]>
* Items.cs (TestItems5): Fix to work correctly on windows
and unix.
(TestReservedMetadata): New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-08 Ankit Jain <[email protected]>
* DirectoryScanner.cs: Use Path.GetPathRoot, instead of
directly using DirectoryInfo ("z:"), that doesn't return
a dir info for "z:".
2009-10-08 Ankit Jain <[email protected]>
* DirectoryScanner.cs: Handle absolute paths. Fix to work
correctly on windows. Change order of adding paths to match
msbuild, useful to have.
2009-10-08 Ankit Jain <[email protected]>
* TaskBatchingImpl.cs (ParseTaskAttributes): Parse attributes
of the 'Output' element also.
* TaskEngine.cs (PublishOutput): Honor condition on 'Output' also.
2009-10-07 Ankit Jain <[email protected]>
* ConsoleLogger.cs: Mark build as failed, if any project failed.
2009-10-06 Ankit Jain <[email protected]>
* ConsoleLogger: Improve error reporting. Don't count failed task,
target or project as another error. Show "errors" after "warnings",
more useful to the user.
* Project.cs (BuildTarget): Log error instead of using CWL.
In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:
2009-10-08 Ankit Jain <[email protected]>
* ReservedNameUtils.cs: Fix 'RootDir', 'Directory'.
(WithTrailingSlash): New.
Update to use the new WithTrailingSlash method.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-10-06 Ankit Jain <[email protected]>
* ToolTask.cs (Execute): HandleTaskExecutionErrors is called only
if exitCode != 0.
(ExecuteTool): Move logging of exitcode to HandleTaskExecutionErrors.
Remove MonoTODOs.
* TaskLoggingHelper.cs (LogMessageFromText): New.
(LogMessage): Refactor to use above.
svn path=/branches/mono-2-6/mcs/; revision=143736
* CompareInfo.cs: Don't allow MONO_DISABLE_MANAGED_COLLATION
override for Moonlight and move all icalls together so they
can be #if-ed out.
[Backport r143648]
svn path=/branches/mono-2-6/mcs/; revision=143649
2009-10-07 Sebastien Pouliot <[email protected]>
* OperationContextTest.cs: Add test case for OperationContext.Current
[Backport r143620]
In System.ServiceModel:
2009-10-07 Sebastien Pouliot <[email protected]>
* OperationContext.cs: Use [ThreadStatic] instead of Thread.
GetNamedDataSlot with Thread.[Get|Set]Data since it offers type
safety and don't require keeping extra API inside Moonlight
[Backport r143620]
svn path=/branches/mono-2-6/mcs/; revision=143621
* Decimal.cs: Use Compare method instead of directly using the
decimalCompare internal call.
[Backport r143554]
svn path=/branches/mono-2-6/mcs/; revision=143555
* Enum.cs: Add an internal Value property as a single point to
call the internal call get_value.
[Backport r143549]
svn path=/branches/mono-2-6/mcs/; revision=143550
* aot-compiler.c (add_generic_class): Add an instance of GenericComparer<T> for
each instance of Comparer<T>.
* generics.cs: Add a new test.
svn path=/branches/mono-2-6/mono/; revision=143532
* GatewayIPAddressInformationCollection.cs:
* IPInterfaceProperties.cs: implement GatewayAddresses for linux.
Original patch by Christoph von Wittich.
Fixes bug #544640.
svn path=/branches/mono-2-6/mcs/; revision=143526
* object.c (mono_method_return_message_restore): Handle the case
where the argument is an instance of a generic type. Fixes
#544446.
Backport of r143506.
2009-10-06 Mark Probst <[email protected]>
* bug-544445.cs: New test.
* Makefile.am: Test added.
Backport of r143506.
svn path=/branches/mono-2-6/mono/; revision=143510
In tools/xbuild:
2009-10-03 Ankit Jain <[email protected]>
Fix bug#542461.
* xbuild/Microsoft.Common.targets (KeyOriginatorFile): Set to
$(AssemblyOriginatorKeyFile), if SignAssembly is true.
Use it for satellite assemblies also.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-03 Ankit Jain <[email protected]>
* Project.cs (OS): New.
(InitializeProperties): Set 'OS' as a pre-defined property, set to
'Windows_NT', 'Unix' or 'OSX' depending on the platform.
svn path=/branches/mono-2-6/mcs/; revision=143317
* mini-sparc.c (mono_arch_emit_setret): Emit long return values using OP_LMOVE.
(mono_arch_create_vars): Instead of allocating a stack slot by hand, allocate
a variable to hold the stack slot used by the int<->float conversion opcodes.
svn path=/branches/mono-2-6/mono/; revision=143311
* mini-sparc.c (mono_arch_create_vars): Make the component vars of a long ret
variable volatile. Fixes#541577.
* basic-calls.cs: Add a new test.
* basic-long.cs: Remove tests which are now in basic-calls.cs.
svn path=/branches/mono-2-6/mono/; revision=143310
* HtmlSelectBuilder.cs: <option> allows the value of the 'selected'
attribute to be a boolean or the string "selected", which is treated
as "true".
svn path=/branches/mono-2-6/mcs/; revision=143106
* Hashtable.cs: MS (at least latest and greatest) does not always
serialized the HashCodeProvider. Ignoring the error when the field
is not found.
svn path=/branches/mono-2-6/mcs/; revision=143100
* BuildManager.cs: load/set the global resources assembly for
precompiled and merged sites correctly.
svn path=/branches/mono-2-6/mcs/; revision=143094
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-10-01 Ankit Jain <[email protected]>
* ImportTest.cs (TestAdd1): Add tests for multiple imports.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-10-01 Ankit Jain <[email protected]>
* Project.cs (AddImport): Show the correct source file name, when
the import is in the main project file.
2009-10-01 Ankit Jain <[email protected]>
Fix bug #543299.
* Import.cs (.ctor): Evaluate and set EvaluatedProjectPath to
the full path of the imported project here itself, instead of ..
(Evaluate): .. here.
* ImportCollection.cs (Add): Use import.EvaluatedProjectPath .
(Contains): New.
* Project.cs (AddImport): Don't process if condition is false.
Warn if a circular reference is detected, and ignore the import.
svn path=/branches/mono-2-6/mcs/; revision=143082
* ExtensionManager.cs: Initialize the NET_2_0 pieces with
MonoTouch, but do not register any of the System.Configuration
depending extensions.
BuildExtensionImporters, BuildExtensionReflectors: empty methods
for MOnoTouch.
* ServiceDescriptionImporter.cs, WebReference.cs: Remove
codegeneration features for MonoTouch
2009-09-30 Miguel de Icaza <[email protected]>
* Methods.cs: Empty extensions for MonoTouch for now.
* ServerType.cs: On MonoTouch, we do not support HttpGet or
HttpPost variations yet.
* SoapExtension.cs: Avoid System.Configuration features.
svn path=/branches/mono-2-6/mcs/; revision=143061
[Backport]
* TreeNode.cs: When we invalidate a node, make sure we start at
0, instead of the node's Bounds.Left, which does not include
the +/-, checkbox, or stateimages.
[Fixes bug #542481]
svn path=/branches/mono-2-6/mcs/; revision=143020
* mono-compiler.h (MONO_INTERNAL): Disable this on solaris as it produces a
millions of warnings during compilation.
svn path=/branches/mono-2-6/mono/; revision=143006
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
instead of using type->data.klass as the later doesn't work with generics.
svn path=/branches/mono-2-6/mono/; revision=143005
* mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
instead of using type->data.klass as the later doesn't work with generics.
svn path=/branches/mono-2-6/mono/; revision=143004
* aot-compiler.c (add_wrappers): Add a runtime invoke wrapper which is used by
mono_runtime_capture_context () without calling mono_runtime_invoke ().
(can_marshal_struct): Skip structures with auto layout.
svn path=/branches/mono-2-6/mono/; revision=142993
A fix for bug #542959
* delegate.cs: Emit correct delegate instance variable when there
are static and non-static overloads.
svn path=/branches/mono-2-6/mcs/; revision=142978
* BinaryFormatter.cs: NoCheckDeserialize() was using PeekChar() on a
reader when it should only read 1 byte. Also BinaryReader.PeekChar()
tries to set the position of hte stream back to where it was before
the read, which does not work well with broken Stream
implementations like BZip2InputStream (reports CanSeek is true when
it really can't seek). Now we do a Read() and then pass the value we
read on to the next methods.
* MessageFormatter.cs:
* ObjectReader.cs: added overloads that take a BinaryElement instead
of reading it from the reader. Only for the methods used in
NoCheckDeserialize.
Fixes bug #503435.
svn path=/branches/mono-2-6/mcs/; revision=142964
* InotifyWatcher.cs: fixes bug #322330. Patch by Alexander Kojevnikov.
This patch fixes the issues reported by the OP and in my previous
comment. In particular:
Hunks 1 and 4 remove the new_name_needed flag, it's not used
anywhere and only adds confusion.
Hunk 2 skips DeleteSelf event for sub-directories, they receive the
Delete event anyway.
Hunk 3 makes sure that we use a combination of Deleted+Created
notifications instead of a single Renamed notification, if the watched item
has been moved from one directory to another. This is because RenamedEventArgs
supports only one directory name: FullPath is always directory+name,
OldFullPath is always directory+old_name.
Hunk 5 updates relevant InotifyData instances with the new directory
name. Without this, notifications always use the original folder names.
The last hunk may be a bit slow as it needs to iterate on all the
InotifyData instances. On the other hand, we are already doing it on the
Delete event (lines 560:568) and by default inotify allows only 8192 watches
per user.
svn path=/branches/mono-2-6/mcs/; revision=142959
In tools/xbuild:
2009-09-29 Ankit Jain <[email protected]>
* SolutionParser.cs (Insert): Show project name in case of a cyclic
dependency.
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-29 Ankit Jain <[email protected]>
* Exec.cs: Write the commands, which can be multiline,
to a temporary file, and execute that with "cmd.exe /c"
on windows and "sh" on non-windows.
(LogToolCommand): Override, and emit the commands instead
of the actual args passed to the shell.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-29 Ankit Jain <[email protected]>
* ProjectTest.cs (TestPropertiesFromImportedProjects): New.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-29 Ankit Jain <[email protected]>
* GroupingCollection.cs (Evaluate): Mark internal.
* Project.cs (AddImport): Only evaluate the properties,
till before the import.
2009-09-29 Ankit Jain <[email protected]>
* Project.cs (DoLoad): Don't use XmlReader.Create, for loading
the project xml, as returned Xml*Reader normalizes the newlines.
Instead directly use the TextReader with XmlDocument.Load ().
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-29 Ankit Jain <[email protected]>
* ToolTask.cs (ExecuteTool): Use LogToolCommand, instead of
directly logging.
(LogToolCommand): Implement.
svn path=/branches/mono-2-6/mcs/; revision=142871
* DefaultValueAttribute.cs: Implement the cctor which takes
a Type and a string for the SL2 case.
* CategoryAttribute.cs: Fix a typo in the CategoryAttribute.Asynchronous
ctor and fix some SL2 specific naming changes for the default properties.
svn path=/branches/mono-2-6/mcs/; revision=142866
* net_2_1_raw_System.Net.dll.sources: Remove Timer_2_1.cs and
related classes from System.dll - they are not required anymore
since Gonzalo's changes on Socket.Close(int)
[Backport r142851]
svn path=/branches/mono-2-6/mcs/; revision=142852
* appdomain.c|h: Add a mono_domain_try_unload method which is
equivalent to mono_domain_unload, except that it returns an exception
instead of throwing it. Make mono_domain_unload use the
mono_domain_try_unload method to avoid code-duplication.
Backport of r142658.
svn path=/branches/mono-2-6/mono/; revision=142846
* SocketAsyncEventArgs.cs: Default SocketError.AccessDenied on
Connect in case none of the DnsEndPoint provides an adequate
address (family).
[Backport r142746]
svn path=/branches/mono-2-6/mcs/; revision=142747
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2009-09-28 Ankit Jain <[email protected]>
* WriteLinesToFiles.cs (Execute): Handle empty list of
lines.
In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2009-09-28 Ankit Jain <[email protected]>
* ToolTask.cs (ProcessOuputTool): Move logging of tool
output from here to ..
(ExecuteTool): .. here. As, ProcessOuputTool can be
overridden.
svn path=/branches/mono-2-6/mcs/; revision=142742
* Socket_2_1.cs: Close(int timeout) blocks up to timeout ms if there's
pending data to be written to the socket. If there's no pending data,
it closes and returns right away. Instead of using Timer and then
doing a 'hard' close(), we set the linger option for the socket.
svn path=/branches/mono-2-6/mcs/; revision=142730
* SocketAsyncEventArgs.cs: Don't use Socket.Poll for NET_2_1.
Throw NIE for use of BufferList in Receive.
* Socket.cs: Move Close(int) to Socket_2_1.cs. Remove NET_2_1
defines since the file is not used by Moonlight
* Socket_2_1.cs: Add Close(int) from Socket. Define out Poll
and Blocking.
[Backport r142722]
svn path=/branches/mono-2-6/mcs/; revision=142723
* net_2_1_raw_System.Net.dll.sources: Add Timer_2_1.cs and
related classes from System.dll
[Backport of r142720]
svn path=/branches/mono-2-6/mcs/; revision=142721
* Timer_2_1.cs: New. A smaller, internal subset of Timer for
Moonlight - needed for Socket.Close(int)
[Backport of r142718]
svn path=/branches/mono-2-6/mcs/; revision=142719
* RealProxy.cs: for a custom proxy, retrieve the OutArgs before
allowing EndInvoke to proceed because after that, OutArgs will throw
because there is no method. Fixes remoting2 and remoting3 tests.
svn path=/branches/mono-2-6/mcs/; revision=142696
In tools/xbuild:
2009-09-27 Ankit Jain <[email protected]>
* SolutionParser.cs: Implement support for WebSite projects. These
projects lack a project file, so properties like references are read
from the .sln file, and targets are generated for build/clean etc.
2009-09-26 Ankit Jain <[email protected]>
* xbuild/Microsoft.Common.targets: Remove _ValidateEssentialProperties
from BuildDependsOn, which was a hack. It will get invoked from the
InitialTargets now.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2009-09-26 Ankit Jain <[email protected]>
* TargetTest.cs (TestOverridingTargets): New.
2009-09-26 Ankit Jain <[email protected]>
* ProjectTest.cs (TestInitialTargetsWithImports):
(TestDefaultTargets):
(TestDefaultTargetsWithImports):
(TestNoDefaultTargetsWithImports):
(TestNoDefaultTargets): New tests.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2009-09-27 Ankit Jain <[email protected]>
* ConditionParser.cs: Show the condition being parsed in the
exception message.
2009-09-26 Ankit Jain <[email protected]>
* Expression.cs: Allow '-' in item, property and metadata names.
2009-09-26 Ankit Jain <[email protected]>
* Project.cs (Evaluate): Split into this and ..
(PrepareForEvaluate): .. this.
(AddImport): Evaluate the current set of properties/items etc,
before processing the imported project. Honor the Condition
for the Import.
(ProcessProjectAttributes): Update MSBuildProjectDefaultTargets
property.
* GroupingCollection.cs (Evaluate): Don't evaluate Imports here.
* BuildItemGroup.cs (Evaluate): Evaluate only once.
* BuildPropertyGroup.cs (Evaluate): Evaluate only once.
2009-09-26 Ankit Jain <[email protected]>
* Project.cs: Get InitialTargets from the imported projects also.
The combined list of targets are executed, in the order they were
found.
DefaultTargets are also read in from imported projects, and the first
non-empty DefaultTargets found is used.
svn path=/branches/mono-2-6/mcs/; revision=142686
### AC_CONFIG_COMMANDS([quiet], [for i in `find mono libgc support -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/scripts/patch-quiet.sh $i; fi; done], [set(shell $SHELL]))
AC_ARG_ENABLE(system-aot, [ --enable-system-aot Enable the Ahead-Of-Time compilation of system assemblies during the build (on by default on some platforms)], enable_system_aot=$enableval, enable_system_aot=$AOT_SUPPORTED)
dnl Win32 does not have /dev/random, they have their own method...
*-mingw*|*-*-cygwin*)
*-*-mingw*|*-*-cygwin*)
ac_cv_have_dev_random=no
;;
@@ -1895,12 +1836,12 @@ else
AC_MSG_RESULT(has been disabled)
fi
if test "x$host_win32" = "xyes"; then
if test "x$platform_win32" = "xyes"; then
AC_DEFINE(HAVE_CRYPT_RNG)
fi
if test "x$ac_cv_have_dev_random" = "xno" \
&& test "x$host_win32" = "xno"; then
&& test "x$platform_win32" = "xno"; then
AC_MSG_WARN([[
***
*** A system-provided entropy source was not found on this system.
@@ -1924,6 +1865,12 @@ if test "x$try_shared_handles" != "xyes"; then
AC_SUBST(DISABLE_SHARED_HANDLES)
fi
if test x$gc = xsgen; then
if test x$with_tls != x__thread; then
AC_MSG_ERROR([The SGEN garbage collector depends on a working __thread implementation, and either --with-thread=pthread was passed to configure, or the configure test for __thread failed.])
fi
fi
AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
# if !defined(GC_PTHREADS) && defined(__OpenBSD__)
# define GC_OPENBSD_THREADS
# define GC_PTHREADS
# endif
# if !defined(GC_PTHREADS) && defined(__FreeBSD__)
# define GC_FREEBSD_THREADS
# define GC_PTHREADS
Loaded 100 of 8678 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.