mono.git
13 years agoMerge branch 'master' of github.com:mono/mono
Neale Ferguson [Mon, 7 Mar 2011 22:51:00 +0000 (17:51 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoBring missing types into Moonlight 4
Sebastien Pouliot [Mon, 7 Mar 2011 21:19:24 +0000 (16:19 -0500)]
Bring missing types into Moonlight 4

* System.Diagnostics.Contracts.Internal/ContractHelper.cs:
* System.Diagnostics.Contracts/Contract.cs:
* System.Diagnostics.Contracts/ContractException.cs:
* System.Diagnostics.Contracts/ContractFailedEventArgs.cs:
* System.Diagnostics.Contracts/ContractShouldAssertException.cs:
* System.Runtime.ExceptionServices/HandleProcessCorruptedStateExceptionsAttribute.cs:
Add || MOONLIGHT to include the types in Moonlight 4

* moonlight_raw_corlib.dll.sources: Bring missing types into Moonlight 4

13 years agoFix up devel packages in spec file
Andrew Jorgensen [Mon, 7 Mar 2011 20:01:17 +0000 (13:01 -0700)]
Fix up devel packages in spec file

13 years agoImplement some DynamicILInfo methods.
Zoltan Varga [Mon, 7 Mar 2011 19:19:04 +0000 (20:19 +0100)]
Implement some DynamicILInfo methods.

13 years agoFix the previous change.
Zoltan Varga [Mon, 7 Mar 2011 17:03:38 +0000 (18:03 +0100)]
Fix the previous change.

13 years agoFix out-of-tree builds.
Zoltan Varga [Mon, 7 Mar 2011 16:59:45 +0000 (17:59 +0100)]
Fix out-of-tree builds.

13 years agoEmpty element is valid here in silverlight secrity element.
Atsushi Eno [Mon, 7 Mar 2011 16:49:33 +0000 (01:49 +0900)]
Empty element is valid here in silverlight secrity element.

13 years agoXmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Atsushi Eno [Mon, 7 Mar 2011 15:47:41 +0000 (00:47 +0900)]
XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.

Fixed bug #676020.

13 years agoForgot to add the actual new client proxy.
Atsushi Eno [Mon, 7 Mar 2011 15:41:41 +0000 (00:41 +0900)]
Forgot to add the actual new client proxy.

13 years ago2011-02-17 Juho Vähä-Herttua <juhovh@iki.fi>
Juho Vähä-Herttua [Thu, 17 Feb 2011 12:43:13 +0000 (14:43 +0200)]
2011-02-17 Juho Vähä-Herttua <juhovh@iki.fi>

        * CngAlgorithm.cs, CngAlgorithmGroup.cs: Change the private
        variable name to match .NET when the class is serialized
        * CngKeyBlobFormat.cs: New.
        * CngKeyCreationParameters.cs: New.
        * CngProperty.cs: New.
        * CngPropertyCollection.cs: New.
        * CngProvider.cs: New.
        * CngUIPolicy.cs: New.

13 years agoAvoid an assert when returning nullable null's from sdb invokes. Fixes #676587.
Zoltan Varga [Mon, 7 Mar 2011 10:54:51 +0000 (11:54 +0100)]
Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587.

13 years agoClean up handling of few special runtime types
Marek Safar [Fri, 4 Mar 2011 14:30:16 +0000 (14:30 +0000)]
Clean up handling of few special runtime types

13 years agoClean up null-literal underlying type
Marek Safar [Fri, 4 Mar 2011 12:30:07 +0000 (12:30 +0000)]
Clean up null-literal underlying type

13 years agoSet ProhibitDtd = false on uri-based Load(). Fixed bug #676009.
Atsushi Eno [Mon, 7 Mar 2011 08:07:37 +0000 (17:07 +0900)]
Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009.

13 years agoCouple of fixed to support new DateTimeOffset serialization in .NET WCF.
Atsushi Eno [Mon, 7 Mar 2011 07:45:33 +0000 (16:45 +0900)]
Couple of fixed to support new DateTimeOffset serialization in .NET WCF.

13 years ago[Mono.Options] Add option header support.
Jonathan Pryor [Mon, 7 Mar 2011 00:30:48 +0000 (19:30 -0500)]
[Mono.Options] Add option header support.

Option headers can be provided via OptionSet.Add(string), and allows
forgoing the use of a separate mechanism to provide contextual output.

For example, one used to do this:

bool show_help = false;
new OptionSet  {
// ...
{ "help|h|?", v => show_help = v != null },
}.Parse (args);

if (show_help) {
Console.WriteLine ("usage: sample-app ARGS");
p.WriteOptionDescriptions (Console.Out);
// ...
}

Using the new header support, the "contextual" output can be merged
with the option specification:

bool show_help = false;
new OptionSet {
"usage: sample-app ARGS",
{ "help|h|?", v => show_help = v != null },
}.Parse (args);

if (show_help)
p.WriteOptionDescriptions (Console.Out);

Furthermore, headers can be provided "inline", thus serving as a
mechanism to categorize options:

// mcs options
var p = new OptionSet {
"Mono C# compiler, Copyright 2001 - 2011 Novell, Inc.",
"mcs [options] source-files",
// ...
"Resources:",
{ "linkresource|linkres:", v => /* ... */ },
// ...
"",
"Options can be of the form -option or /option",
};

13 years agoFlush documentation.
Jonathan Pryor [Sun, 6 Mar 2011 19:50:23 +0000 (14:50 -0500)]
Flush documentation.

No "real" changes; just properties going from "set; get;" to
"get; set;" (why did that change?!) and updating the included
updated sample sources into the docs (s/NDesk.Options/Mono.Options/g).

13 years agoUpdate example output before running mdoc.
Jonathan Pryor [Sun, 6 Mar 2011 19:46:47 +0000 (14:46 -0500)]
Update example output before running mdoc.

The example output is included into the mdoc-updated documentation;
thus, we want to have updated (correct) output before we run
mdoc-update.

We do this by making $(the_libir)/.doc-stamp target depend upon
$(DOC_EXAMPLES_OUTPUT) instead of the doc-update-local target.

13 years agoDo not store binary files.
Jonathan Pryor [Sun, 6 Mar 2011 19:42:29 +0000 (14:42 -0500)]
Do not store binary files.

The `doc-update-local` target will create these as needed.

13 years agoDistribute Mono.Options examples source, input, output.
Jonathan Pryor [Sun, 6 Mar 2011 19:41:14 +0000 (14:41 -0500)]
Distribute Mono.Options examples source, input, output.

13 years agoRemove unnecessary file.
Jonathan Pryor [Sun, 6 Mar 2011 19:39:36 +0000 (14:39 -0500)]
Remove unnecessary file.

13 years agoAdd support for executing samples for documentation output.
Jonathan Pryor [Sun, 6 Mar 2011 19:32:43 +0000 (14:32 -0500)]
Add support for executing samples for documentation output.

The Documentation/en/examples/*.in files are command-lines for the
corresponding Documentation/en/examples/*.exe files, and the
stdout & stderr is recorded from these executions and appended
to Documentation/en/examples/*.txt. This allows the actual
documentation in Documentation/en/*/*.xml to include the *.txt
and *.cs files.

13 years agoForgot to add test xml files.
Atsushi Eno [Mon, 7 Mar 2011 04:59:22 +0000 (13:59 +0900)]
Forgot to add test xml files.

13 years agoFixed xsd derived simpleType cast failures on uint. Fixed bug #676993.
Atsushi Eno [Mon, 7 Mar 2011 04:56:37 +0000 (13:56 +0900)]
Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993.

13 years agoSupport for the same interface as service contract and as callback contract.
Peter Gerbrandt [Mon, 7 Mar 2011 03:51:19 +0000 (12:51 +0900)]
Support for the same interface as service contract and as callback contract.

13 years agoReplace SRE-based client proxy generator with RealProxy.
Atsushi Eno [Mon, 7 Mar 2011 03:29:39 +0000 (12:29 +0900)]
Replace SRE-based client proxy generator with RealProxy.

Now PE verified workaround should be unnecessary.

13 years agoRefactor the LMF creation code into separate functions on amd64. Create a variable...
Zoltan Varga [Sun, 6 Mar 2011 17:56:59 +0000 (18:56 +0100)]
Refactor the LMF creation code into separate functions on amd64. Create a variable for the LMF instead of allocating space for it in mono_arch_allocate_vars ().

13 years agoDon't register emulation for CEE_ opcodes, its not needed.
Zoltan Varga [Sun, 6 Mar 2011 10:29:33 +0000 (11:29 +0100)]
Don't register emulation for CEE_ opcodes, its not needed.

13 years agoMove MonoContext defines to mono-context.h on arm.
Zoltan Varga [Sat, 5 Mar 2011 21:36:05 +0000 (22:36 +0100)]
Move MonoContext defines to mono-context.h on arm.

13 years agoFix arm build.
Zoltan Varga [Sat, 5 Mar 2011 21:20:48 +0000 (22:20 +0100)]
Fix arm build.

13 years agoFix the win32 build
Rodrigo Kumpera [Fri, 4 Mar 2011 22:04:36 +0000 (23:04 +0100)]
Fix the win32 build

13 years agoSpeed up suspending when running under the loader lock.
Zoltan Varga [Fri, 4 Mar 2011 18:28:00 +0000 (19:28 +0100)]
Speed up suspending when running under the loader lock.

13 years agoInstall a mono-sgen-gdb.py as well.
Zoltan Varga [Fri, 4 Mar 2011 16:33:07 +0000 (17:33 +0100)]
Install a mono-sgen-gdb.py as well.

13 years agoLog all sdb log messages to the log file instead of stdout.
Zoltan Varga [Fri, 4 Mar 2011 11:50:19 +0000 (12:50 +0100)]
Log all sdb log messages to the log file instead of stdout.

13 years agoWiring of BuildinType
Marek Safar [Fri, 4 Mar 2011 11:08:11 +0000 (11:08 +0000)]
Wiring of BuildinType

13 years agoUnify predefined type user operators calling
Marek Safar [Fri, 4 Mar 2011 09:09:57 +0000 (09:09 +0000)]
Unify predefined type user operators calling

13 years agoWiring of BuildinType
Marek Safar [Thu, 3 Mar 2011 17:44:34 +0000 (17:44 +0000)]
Wiring of BuildinType

13 years ago[xbuild] LogExtensions.LogError - disambiguate.
Ankit Jain [Thu, 3 Mar 2011 22:58:38 +0000 (04:28 +0530)]
[xbuild] LogExtensions.LogError - disambiguate.

* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.

13 years agoWhen running in a linked environment, this file might not exist
Geoff Norton [Thu, 3 Mar 2011 22:54:47 +0000 (17:54 -0500)]
When running in a linked environment, this file might not exist

13 years ago[xbuild] Set @(CollectedBuildOutput) for projects build from .sln .
Ankit Jain [Thu, 3 Mar 2011 22:47:22 +0000 (04:17 +0530)]
[xbuild] Set @(CollectedBuildOutput) for projects build from .sln .

13 years ago[xbuild] Add missing api for Target.
Ankit Jain [Thu, 3 Mar 2011 22:41:55 +0000 (04:11 +0530)]
[xbuild] Add missing api for Target.

* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.

13 years agoChecking if a type is a reference must be gsharing aware.
Rodrigo Kumpera [Thu, 3 Mar 2011 21:56:14 +0000 (22:56 +0100)]
Checking if a type is a reference must be gsharing aware.

*  mini-generic-sharing.c: Add mini_type_is_reference
that returns true for VAR and MVAR if compiling under
gsharing.

* method-to-ir.c: Replace usage of mono_type_is_reference
with mini_type_is_reference.

* mini-gc.c: Ditto.

* mini.c: Ditto.

With the old behavior, the JIT could interpret a (M)VAR
variable and not been a reference type. This is an issue
for sgen as we could forgot to emit some write barriers
or generate the proper stack map.

13 years ago[xbuild] Fix bug #676671. Raise AnyEvent .
Ankit Jain [Thu, 3 Mar 2011 19:41:26 +0000 (01:11 +0530)]
[xbuild] Fix bug #676671. Raise AnyEvent .

13 years ago[xbuild] Add hooks for extending .sln builds.
Ankit Jain [Thu, 3 Mar 2011 17:41:57 +0000 (23:11 +0530)]
[xbuild] Add hooks for extending .sln builds.

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.

13 years ago[xbuild] Update man page with info about FrameworkList.xml
Ankit Jain [Thu, 3 Mar 2011 17:39:17 +0000 (23:09 +0530)]
[xbuild] Update man page with info about FrameworkList.xml

13 years ago[xbuild] Add support for wildcards in Import.
Ankit Jain [Thu, 3 Mar 2011 15:59:40 +0000 (21:29 +0530)]
[xbuild] Add support for wildcards in Import.

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.

13 years ago[xbuild] ImportedProject - remove unnecessary catch/throw
Ankit Jain [Thu, 3 Mar 2011 14:32:08 +0000 (20:02 +0530)]
[xbuild] ImportedProject - remove unnecessary catch/throw

Remove the catch { throw; }, this truncated the stack also.

13 years ago[xbuild] ImportCollections.TryGetImport and other fixes
Ankit Jain [Thu, 3 Mar 2011 14:31:23 +0000 (20:01 +0530)]
[xbuild] ImportCollections.TryGetImport and other fixes

13 years ago[xbuild] Expression.ParseAs<T> - new method
Ankit Jain [Thu, 3 Mar 2011 14:30:54 +0000 (20:00 +0530)]
[xbuild] Expression.ParseAs<T> - new method

13 years ago[xbuild] DirectoryScanner.HasWildcard - new method
Ankit Jain [Thu, 3 Mar 2011 14:30:13 +0000 (20:00 +0530)]
[xbuild] DirectoryScanner.HasWildcard - new method

13 years ago[xbuild] Log build errors and raise events even if a build fails.
Ankit Jain [Thu, 3 Mar 2011 14:27:21 +0000 (19:57 +0530)]
[xbuild] Log build errors and raise events even if a build fails.

13 years agoSwitch amd64 to use MonoContext
Rodrigo Kumpera [Thu, 3 Mar 2011 16:09:18 +0000 (17:09 +0100)]
Switch amd64 to use MonoContext

13 years agoUse MonoContext from utils/mono-context
Rodrigo Kumpera [Thu, 3 Mar 2011 16:08:28 +0000 (17:08 +0100)]
Use MonoContext from utils/mono-context

13 years agoImplement MonoContext for amd64.
Rodrigo Kumpera [Thu, 3 Mar 2011 16:06:48 +0000 (17:06 +0100)]
Implement MonoContext for amd64.

* mono-context.h: Add amd64 support. Different than
what we have on mini, we must store all 16 gregs.

13 years agoCleanup the #ifdef mess.
Rodrigo Kumpera [Thu, 3 Mar 2011 16:06:06 +0000 (17:06 +0100)]
Cleanup the #ifdef mess.

13 years agoMake sure we scan all gregs on x86
Rodrigo Kumpera [Thu, 3 Mar 2011 16:01:12 +0000 (17:01 +0100)]
Make sure we scan all gregs on x86

13 years agoDisable testbundle for powerpc too.
Zoltan Varga [Thu, 3 Mar 2011 15:35:12 +0000 (16:35 +0100)]
Disable testbundle for powerpc too.

13 years agoImplement accessibility check for protected members via type parameter qualifier
Marek Safar [Thu, 3 Mar 2011 14:17:38 +0000 (14:17 +0000)]
Implement accessibility check for protected members via type parameter qualifier

13 years agoImport base interfaces using full hierarchy to work with output produced by some...
Marek Safar [Thu, 3 Mar 2011 12:18:59 +0000 (12:18 +0000)]
Import base interfaces using full hierarchy to work with output produced by some odd compilers

13 years agoUpdate to the latest IKVM
Marek Safar [Thu, 3 Mar 2011 10:32:32 +0000 (10:32 +0000)]
Update to the latest IKVM

13 years agoResurrect THREAD_DEBUG.
Zoltan Varga [Thu, 3 Mar 2011 10:29:35 +0000 (11:29 +0100)]
Resurrect THREAD_DEBUG.

13 years agoChange an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615.
Zoltan Varga [Thu, 3 Mar 2011 10:24:42 +0000 (11:24 +0100)]
Change an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615.

13 years ago[676476] Make UTF8 default encoding on all platforms
Marek Safar [Thu, 3 Mar 2011 10:10:27 +0000 (10:10 +0000)]
[676476] Make UTF8 default encoding on all platforms

13 years agoSimplify constant expression by removing Resolve phase
Marek Safar [Thu, 3 Mar 2011 08:11:41 +0000 (08:11 +0000)]
Simplify constant expression by removing Resolve phase

13 years agoWiring of BuildinType
Marek Safar [Wed, 2 Mar 2011 15:39:11 +0000 (15:39 +0000)]
Wiring of BuildinType

13 years agoFix linux build
Rodrigo Kumpera [Wed, 2 Mar 2011 19:45:07 +0000 (19:45 +0000)]
Fix linux build

13 years agoFix non x86 builds
Rodrigo Kumpera [Wed, 2 Mar 2011 18:11:57 +0000 (19:11 +0100)]
Fix non x86 builds

13 years agoUse mono-context machinery for x86.
Rodrigo Kumpera [Wed, 2 Mar 2011 17:25:34 +0000 (18:25 +0100)]
Use mono-context machinery for x86.

* sgen-archdep.h: Use mono-context for x86.

* sgen-gc.c: Guard all uses of stopped_regs with
USE_MONO_CTX. The ifdef abuse is intentional to make
it easy to review it since this is temporary until
we move all other archs.

13 years agoUse new mono-context.h for x86.
Rodrigo Kumpera [Wed, 2 Mar 2011 17:24:55 +0000 (18:24 +0100)]
Use new mono-context.h for x86.

* exceptions-x86.c: Use code from utils/mono-context.

13 years agoInitial implementation of mono-context.
Rodrigo Kumpera [Wed, 2 Mar 2011 17:22:25 +0000 (18:22 +0100)]
Initial implementation of mono-context.

* mono-context.c: New file to represent platform independent
machine state. It basically moves MonoContext and associated
macros/functions from mini to utils.

13 years agoMove mgreg_t to utils.
Rodrigo Kumpera [Wed, 2 Mar 2011 17:19:51 +0000 (18:19 +0100)]
Move mgreg_t to utils.

* mini.h: Move mgreg_t to utils/mono-machine.h.

13 years agoReset iid of unloaded generic interfaces correctly.
Rodrigo Kumpera [Wed, 2 Mar 2011 14:09:27 +0000 (15:09 +0100)]
Reset iid of unloaded generic interfaces correctly.

* class.c (mono_get_unique_iid): Don't store
the iid of generic instances on their GTD image
since they can be unloaded before.

* metadata.c (free_generic_class): Reset the iid
used by interfaces.

13 years agoRemove wrong overrides in RequestChannelBase in discovery.
Atsushi Eno [Wed, 2 Mar 2011 11:28:22 +0000 (20:28 +0900)]
Remove wrong overrides in RequestChannelBase in discovery.

13 years agoWhen checking protected access via qualifier ignore internal modifier for external...
Marek Safar [Wed, 2 Mar 2011 11:25:15 +0000 (11:25 +0000)]
When checking protected access via qualifier ignore internal modifier for external references

13 years agoWiring of BuildinType
Marek Safar [Wed, 2 Mar 2011 10:38:01 +0000 (10:38 +0000)]
Wiring of BuildinType

13 years agoUse correct location for string literals
Marek Safar [Wed, 2 Mar 2011 10:35:54 +0000 (10:35 +0000)]
Use correct location for string literals

13 years agoWiring of BuildinType
Marek Safar [Tue, 1 Mar 2011 19:31:54 +0000 (19:31 +0000)]
Wiring of BuildinType

13 years agoHandle System.Void using special member kind
Marek Safar [Tue, 1 Mar 2011 17:46:48 +0000 (17:46 +0000)]
Handle System.Void using special member kind

13 years agoWiring of BuildinType
Marek Safar [Tue, 1 Mar 2011 15:08:04 +0000 (15:08 +0000)]
Wiring of BuildinType

13 years agoFix llvm+aot support.
Zoltan Varga [Wed, 2 Mar 2011 10:58:35 +0000 (11:58 +0100)]
Fix llvm+aot support.

13 years agoUpdate to the latest version of the LLVM mono branch.
Zoltan Varga [Wed, 2 Mar 2011 10:53:03 +0000 (11:53 +0100)]
Update to the latest version of the LLVM mono branch.

13 years agoSmall cleanups to the last sdb changes.
Zoltan Varga [Wed, 2 Mar 2011 01:24:30 +0000 (02:24 +0100)]
Small cleanups to the last sdb changes.

13 years agoImplement better semantics for unverifiable code.
Rodrigo Kumpera [Tue, 1 Mar 2011 22:50:20 +0000 (23:50 +0100)]
Implement better semantics for unverifiable code.

* verify.c (mono_method_verify_with_current_settings): Add
extra param telling if the method should be treated as fulltrust
regardless of verifier settings.

The only implication of this is that fulltrust verification
can't stop on the first unverifiable error like verifiable
code can. This only impact unverifiable methods running
on non standard verification setups.

* mini.c (mini_method_verify): If the verifier is enabled
and the method belongs to an assembly with a valid skip
verification token (the UnverifiableCodeAttribute cattr)
the code will be checked now for errors instead of simply
been ignored.

This patch gives --verify-all much more saner behavior
for assemblies with unsafe code.

Fixes #676054

13 years agoMerge branch 'master' of github.com:mono/mono
Neale Ferguson [Tue, 1 Mar 2011 21:49:18 +0000 (16:49 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoFix sgen operation on s390x
Neale Ferguson [Tue, 1 Mar 2011 21:48:32 +0000 (16:48 -0500)]
Fix sgen operation on s390x

13 years agoThread id fixes for event processing.
Zoltan Varga [Mon, 28 Feb 2011 15:06:44 +0000 (16:06 +0100)]
Thread id fixes for event processing.

13 years agoThrow exception on disconnect.
Zoltan Varga [Mon, 28 Feb 2011 15:05:59 +0000 (16:05 +0100)]
Throw exception on disconnect.

13 years ago[Cleanup] Remove windows-specific shutdown hackaround.
Levi Bard [Thu, 24 Feb 2011 10:15:45 +0000 (11:15 +0100)]
[Cleanup] Remove windows-specific shutdown hackaround.

 * debugger-agent.c: Remove windows-specific shutdown hackaround.

License: MIT/X11

13 years ago[Cleanup] Don't force unrequested events to be sent.
Levi Bard [Thu, 24 Feb 2011 10:13:44 +0000 (11:13 +0100)]
[Cleanup] Don't force unrequested events to be sent.

 * debugger-agent.c: Don't force unrequested events to be sent.

License: MIT/X11

13 years ago[Debugger] Track loaded classes on a per-domain basis.
Levi Bard [Wed, 23 Feb 2011 18:38:21 +0000 (19:38 +0100)]
[Debugger] Track loaded classes on a per-domain basis.

 * debugger-agent.c: Move loaded-classes to AgentDomainInfo

License: MIT/X11

13 years ago[Cleanup] Remove comment about now-fixed bug.
Levi Bard [Wed, 23 Feb 2011 17:32:47 +0000 (18:32 +0100)]
[Cleanup] Remove comment about now-fixed bug.

 * debugger-agent.c: Remove comment about now-fixed bug.

License: MIT/X11

13 years ago[Cleanup] Classlibs cleanup per vargaz comment.
Levi Bard [Wed, 23 Feb 2011 16:36:57 +0000 (17:36 +0100)]
[Cleanup] Classlibs cleanup per vargaz comment.

 * Mono.Debugger.Soft/VirtualMachine.cs: Cleanup per vargaz comment.

License: MIT/X11

13 years ago[Cleanup] Cleanup per vargaz comments.
Levi Bard [Tue, 22 Feb 2011 15:19:49 +0000 (16:19 +0100)]
[Cleanup] Cleanup per vargaz comments.

 * debugger-agent.c: Cleanup per vargaz comments.

License: MIT/X11

13 years ago[Debugger] Implement deferred attaching for sdb.
Levi Bard [Fri, 4 Feb 2011 17:24:30 +0000 (18:24 +0100)]
[Debugger] Implement deferred attaching for sdb.
License: MIT/X11

Squashed commit of the following:

commit 5e960e4812b492a511871694a2e77e8db88b2260
Author: Levi Bard <levi@unity3d.com>
Date:   Fri Feb 4 12:50:44 2011 +0100

    Add information about suspend suboption to mono man page.

     * mono.1: Add information about suspend suboption.

    License: MIT/X11

commit ee859cf9a82b53aeacf5e4b8ca01bf753e25af69
Author: Levi Bard <levi@unity3d.com>
Date:   Tue Feb 1 13:47:01 2011 +0100

    [Debugger] Conform to java debugger command line options.

     * debugger-agent.c: Replace defer=y with server=y,suspend=n.

    License: MIT/X11

commit 1256b48d5b03f0bb7c1742ffa2efa937ec6921c7
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Jan 31 16:16:09 2011 +0100

    Revert changelog mangling.

commit c86d8718a15afe07aa48a70906af19926b43e277
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Jan 31 15:42:42 2011 +0100

    [Debugger] Fix build.

     * debugger-agent.c: Fix build.

    License: MIT/X11

commit 08c96e1088e01a13657f9c226fa86441ccf225ea
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Jan 13 16:34:50 2011 +0100

    [Debugger] Allow runtime to survive not being able to listen for attachments.

     * debugger-agent.c: Allow runtime to survive not being able to listen for attachments.

    License: MIT/X11

commit 4afa67dc14c360afe6a04761e05a3b081b5b4c29
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Jan 13 09:46:24 2011 +0100

    [SDB] Unregress non-windows runtime shutdown.

     * debugger-agent.c: Unregress non-windows runtime shutdown.

    License: MIT/X11

commit 6c37f95fab689462e573d0c5ff088ed3141e210b
Author: Tak <levi@unity3d.com>
Date:   Wed Jan 12 13:54:11 2011 +0100

    [SDB] Fix race-to-crash on runtime shutdown.

     * debugger-agent.c: Fix race-to-crash on runtime shutdown.

    License: MIT/X11

commit 4941e44c76b98ffa1d08c0b2ba70aa48ba23d6df
Author: Tak <levi@unity3d.com>
Date:   Wed Dec 15 14:44:58 2010 +0100

    Fix shutdown crashes on windows.

commit 6949582e6630dc9274da9bf555e29251b9699a57
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Dec 13 18:34:23 2010 +0100

    [Debugger] Remove unused type load pending - all loaded types are resent on
    attach.

    * mono/mini/debugger-agent.c: Remove unused type load pending.

    License: MIT/X11

commit 423ed88cfbb8a09ab1f3913b50248f5e553ac8f1
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Dec 13 13:45:48 2010 +0100

    [Debugger] Remove thread start assert that's now nonsensical.

     * mono/mini/debugger-agent.c: Remove thread start
       assert that's now nonsensical.

    License: MIT/X11

commit c556b0073f27b74c11019524e780920911dbacc2
Author: Levi Bard <levi@unity3d.com>
Date:   Wed Nov 24 15:06:03 2010 +0100

    [Debugger] Listen on any address when deferring.

     * mini/debugger-agent.c: Listen on any address when deferring.

    License: MIT/X11

commit 4dfe4e99c2ed0e837ffde8b0838f4beec21c8861
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Nov 22 17:08:58 2010 +0100

    [Debugger] Autogenerate default port based on PID.

     * mini/debugger-agent.c: Autogenerate default port based on PID.

    License: MIT/X11

commit 33b21e89b41c5868aa8d7e86510769cd0155c017
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Nov 22 15:40:09 2010 +0100

    [Debugger] Reset pre-attach state on detach.

     * mini/debugger-agent.c: Reset pre-attach state on detach.

    License: MIT/X11

commit 11a909ca84e208775b3ef995735784e8256164f9
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Nov 18 09:52:24 2010 +0100

    Undo erroneous changelog modification.

commit d4cab97de93cfa05cfc01ff368655b16f28ca799
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Nov 18 09:34:36 2010 +0100

    [Debugger] Don't pend assembly loads while waiting for attach.

    * mini/debugger-agent.c: Don't pend assembly loads
      while waiting for attach.

    License: MIT/X11

commit 530b82b5e29300bfed7810ad7a2a4c5dc2a8afe0
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Nov 18 09:33:24 2010 +0100

    [Debugger] Cleanup event processing while attaching.

    * mini/debugger-agent.c: Cleanup event processing
      while attaching.

    License: MIT/X11

commit 91a417067d8d4576d842cf3feeaf27952c4a179b
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Nov 18 09:32:09 2010 +0100

    [Debugger] Cleanup state transmission on attach.

    * mini/debugger-agent.c: Cleanup state transmission
      on attach.

    License: MIT/X11

commit 629a10e783448a34b3ec3c30d12b16ee93ace0c6
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Nov 18 09:29:49 2010 +0100

    [Debugger] Add functions for emitting thread start.

    * mini/debugger-agent.c: Add functions for emitting
      thread start.

    License: MIT/X11

commit 6194d7d359e1210e44e0b612197209a45f3d83d9
Author: Levi Bard <levi@unity3d.com>
Date:   Thu Nov 18 09:27:49 2010 +0100

    [Debugger] Appdomain unload fixes.

    * mini/debugger-agent.c: Clear pending typeloads
      when unloading, remove appdomain from table
      earlier, take loader lock.

    License: MIT/X11

commit bb746b75700b8de6a55bc52dd366ab9616d8af21
Author: Levi Bard <levi@unity3d.com>
Date:   Mon Nov 8 12:14:29 2010 +0100

    [Debugger] Cleanup debug output.

    * mini/debugger-agent.c: Cleanup debug output.

    License: MIT/X11

commit 84f4deb1b167b2ae6d9af423de0f9048e998c9ed
Author: Levi Bard <levi@unity3d.com>
Date:   Wed Nov 3 17:18:25 2010 +0100

    [SDB] Allow VM disconnection without forcing the VM to exit.

    * Mono.Debugger.Soft/Connection.cs: Allow connection close without forcing the VM to exit.
    * Mono.Debugger.Soft/VirtualMachine.cs: Allow VM disconnection without forcing the VM to exit.

    License: MIT/X11

commit 0bafdbd73394403908cd3ec4a5d130bd704bd162
Author: Levi Bard <levi@unity3d.com>
Date:   Wed Nov 3 17:09:34 2010 +0100

    [Debugger] Ensure that client listener doesn't block VM exit.

    * mini/debugger-agent.c: Ensure that client listener doesn't block VM exit.

    License: MIT/X11

commit b45c56fcb699e8fd69feea8190aaf4ccfd5cc71d
Author: Levi Bard <levi@unity3d.com>
Date:   Wed Nov 3 17:08:04 2010 +0100

    [Debugger] Ensure the VM resumes when detaching.

    * mini/debugger-agent.c: Ensure the VM resumes when detaching.

    License: MIT/X11

commit 13aff4a2110aac4a39bc380d2a150a882fe9c837
Author: Levi Bard <levi@unity3d.com>
Date:   Wed Nov 3 17:05:42 2010 +0100

    [Debugger] Don't double-emit assembly nor type load information.

    * mini/debugger-agent.c: Don't double-emit assembly nor type load information.

    License: MIT/X11

commit bcab252c3af0aa18aabc0600ca539307dd036ef4
Author: Levi Bard <levi@unity3d.com>
Date:   Wed Nov 3 10:57:02 2010 +0100

    Initial changes to enable deferred attaching to sdb.

13 years ago[xbuild] Add support for Before/AfterTargets.
Ankit Jain [Tue, 1 Mar 2011 20:46:22 +0000 (02:16 +0530)]
[xbuild] Add support for Before/AfterTargets.

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.

13 years agoadd xbuild-frameworks to rpm
Andrew Jorgensen [Tue, 1 Mar 2011 16:55:06 +0000 (09:55 -0700)]
add xbuild-frameworks to rpm

13 years agoHandle RVA !=0 & pinvoke or icall.
Rodrigo Kumpera [Tue, 1 Mar 2011 16:34:11 +0000 (17:34 +0100)]
Handle RVA !=0 & pinvoke or icall.

metadata-verify.c (verify_method_table): Handle non
zero RVA with runtime supplied implementations.

Fixes #657985

13 years agoImplemented fast version of ThreadLocal<T>.
Paolo Molaro [Tue, 1 Mar 2011 15:31:02 +0000 (16:31 +0100)]
Implemented fast version of ThreadLocal<T>.

This patchset implements a fast version of ThreadLocal<T> by reusing the code from
the implementation of the ThreadStatic attribute. The tls slots are cleaned up
on Dispose (or Finalize) instead of during appdomain shutdown.
Since C# doesn't allow us to define an icall that returns a T& or a T* type, a JIT
hack is used: every load field address instruction for the tlsdata field in
ThreadLocal<T> is intercepted and trasformed into a tls access by using the tls_offset
field from the same ThreadLocal<T> instance. So, while the C# code looks like
it accesses and changes an instance field, under the hood it will access the tls
storage.
The end result is that this is 5-6 times faster than the previous code, 10-15%
faster than using Thread.GetData () (when used with references).
This implementation also fixes a number of issues with disposing and with
per-thread initializers throwing an exception.

13 years agoUse stdint.h for VS 2010 and later.
Zoltan Varga [Tue, 1 Mar 2011 15:33:08 +0000 (16:33 +0100)]
Use stdint.h for VS 2010 and later.

13 years agoFix test to work reliably under boehm
Rodrigo Kumpera [Tue, 1 Mar 2011 15:05:11 +0000 (16:05 +0100)]
Fix test to work reliably under boehm