Mark Probst [Tue, 8 Mar 2011 00:32:42 +0000 (01:32 +0100)]
Merge branch 'sgen-job-distribution'
Mark Probst [Mon, 7 Mar 2011 18:05:46 +0000 (19:05 +0100)]
[sgen] Store the destination's vtable before CASing the forwarding pointer.
Sometimes the binary protocol crashed because we were not doing this
before. It should not be strictly necessary if the binary protocol
is turned off, though.
Mark Probst [Fri, 4 Mar 2011 00:03:50 +0000 (01:03 +0100)]
[sgen] Make scan from remsets a job.
Mark Probst [Thu, 3 Mar 2011 23:35:59 +0000 (00:35 +0100)]
[sgen] Parallel nursery collection.
Do parallel nursery collections when using the parallel
Mark&Sweep collector.
Mark Probst [Thu, 3 Mar 2011 16:10:25 +0000 (17:10 +0100)]
[sgen] Scanning of finalizer entries in a job.
Mark Probst [Wed, 2 Mar 2011 23:50:49 +0000 (00:50 +0100)]
[sgen] Job for scan thread data.
Mark Probst [Wed, 2 Mar 2011 15:49:36 +0000 (16:49 +0100)]
[sgen] Jobs for scanning from registered roots.
Mark Probst [Mon, 7 Mar 2011 23:30:42 +0000 (00:30 +0100)]
[sgen] Remove an incorrect assertion in the workers code and explain.
Mark Probst [Tue, 1 Mar 2011 18:51:26 +0000 (19:51 +0100)]
[sgen] Job queue.
We want to make worker threads not only process gray objects but
do other jobs as well, like scanning roots or remsets. To that end
we need a job distribution system.
Mark Probst [Thu, 24 Feb 2011 16:10:24 +0000 (17:10 +0100)]
[sgen] Separate step for starting marking in workers.
Gonzalo Paniagua Javier [Mon, 7 Mar 2011 23:50:07 +0000 (18:50 -0500)]
Host name is the same when querying localhost
The host name is set to the queried host name when it is the local
machine name. Fixes bug #676260.
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
Andrew Jorgensen [Mon, 7 Mar 2011 20:01:17 +0000 (13:01 -0700)]
Fix up devel packages in spec file
Zoltan Varga [Mon, 7 Mar 2011 19:19:04 +0000 (20:19 +0100)]
Implement some DynamicILInfo methods.
Zoltan Varga [Mon, 7 Mar 2011 17:03:38 +0000 (18:03 +0100)]
Fix the previous change.
Zoltan Varga [Mon, 7 Mar 2011 16:59:45 +0000 (17:59 +0100)]
Fix out-of-tree builds.
Atsushi Eno [Mon, 7 Mar 2011 16:49:33 +0000 (01:49 +0900)]
Empty element is valid here in silverlight secrity element.
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.
Atsushi Eno [Mon, 7 Mar 2011 15:41:41 +0000 (00:41 +0900)]
Forgot to add the actual new client proxy.
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.
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.
Marek Safar [Fri, 4 Mar 2011 14:30:16 +0000 (14:30 +0000)]
Clean up handling of few special runtime types
Marek Safar [Fri, 4 Mar 2011 12:30:07 +0000 (12:30 +0000)]
Clean up null-literal underlying type
Atsushi Eno [Mon, 7 Mar 2011 08:07:37 +0000 (17:07 +0900)]
Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009.
Atsushi Eno [Mon, 7 Mar 2011 07:45:33 +0000 (16:45 +0900)]
Couple of fixed to support new DateTimeOffset serialization in .NET WCF.
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",
};
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).
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.
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.
Jonathan Pryor [Sun, 6 Mar 2011 19:41:14 +0000 (14:41 -0500)]
Distribute Mono.Options examples source, input, output.
Jonathan Pryor [Sun, 6 Mar 2011 19:39:36 +0000 (14:39 -0500)]
Remove unnecessary file.
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.
Atsushi Eno [Mon, 7 Mar 2011 04:59:22 +0000 (13:59 +0900)]
Forgot to add test xml files.
Atsushi Eno [Mon, 7 Mar 2011 04:56:37 +0000 (13:56 +0900)]
Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993.
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.
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.
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 ().
Zoltan Varga [Sun, 6 Mar 2011 10:29:33 +0000 (11:29 +0100)]
Don't register emulation for CEE_ opcodes, its not needed.
Zoltan Varga [Sat, 5 Mar 2011 21:36:05 +0000 (22:36 +0100)]
Move MonoContext defines to mono-context.h on arm.
Zoltan Varga [Sat, 5 Mar 2011 21:20:48 +0000 (22:20 +0100)]
Fix arm build.
Rodrigo Kumpera [Fri, 4 Mar 2011 22:04:36 +0000 (23:04 +0100)]
Fix the win32 build
Zoltan Varga [Fri, 4 Mar 2011 18:28:00 +0000 (19:28 +0100)]
Speed up suspending when running under the loader lock.
Zoltan Varga [Fri, 4 Mar 2011 16:33:07 +0000 (17:33 +0100)]
Install a mono-sgen-gdb.py as well.
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.
Marek Safar [Fri, 4 Mar 2011 11:08:11 +0000 (11:08 +0000)]
Wiring of BuildinType
Marek Safar [Fri, 4 Mar 2011 09:09:57 +0000 (09:09 +0000)]
Unify predefined type user operators calling
Marek Safar [Thu, 3 Mar 2011 17:44:34 +0000 (17:44 +0000)]
Wiring of BuildinType
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.
Geoff Norton [Thu, 3 Mar 2011 22:54:47 +0000 (17:54 -0500)]
When running in a linked environment, this file might not exist
Ankit Jain [Thu, 3 Mar 2011 22:47:22 +0000 (04:17 +0530)]
[xbuild] Set @(CollectedBuildOutput) for projects build from .sln .
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.
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.
Ankit Jain [Thu, 3 Mar 2011 19:41:26 +0000 (01:11 +0530)]
[xbuild] Fix bug #676671. Raise AnyEvent .
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.
Ankit Jain [Thu, 3 Mar 2011 17:39:17 +0000 (23:09 +0530)]
[xbuild] Update man page with info about FrameworkList.xml
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.
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.
Ankit Jain [Thu, 3 Mar 2011 14:31:23 +0000 (20:01 +0530)]
[xbuild] ImportCollections.TryGetImport and other fixes
Ankit Jain [Thu, 3 Mar 2011 14:30:54 +0000 (20:00 +0530)]
[xbuild] Expression.ParseAs<T> - new method
Ankit Jain [Thu, 3 Mar 2011 14:30:13 +0000 (20:00 +0530)]
[xbuild] DirectoryScanner.HasWildcard - new method
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.
Rodrigo Kumpera [Thu, 3 Mar 2011 16:09:18 +0000 (17:09 +0100)]
Switch amd64 to use MonoContext
Rodrigo Kumpera [Thu, 3 Mar 2011 16:08:28 +0000 (17:08 +0100)]
Use MonoContext from utils/mono-context
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.
Rodrigo Kumpera [Thu, 3 Mar 2011 16:06:06 +0000 (17:06 +0100)]
Cleanup the #ifdef mess.
Rodrigo Kumpera [Thu, 3 Mar 2011 16:01:12 +0000 (17:01 +0100)]
Make sure we scan all gregs on x86
Zoltan Varga [Thu, 3 Mar 2011 15:35:12 +0000 (16:35 +0100)]
Disable testbundle for powerpc too.
Marek Safar [Thu, 3 Mar 2011 14:17:38 +0000 (14:17 +0000)]
Implement accessibility check for protected members via type parameter qualifier
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
Marek Safar [Thu, 3 Mar 2011 10:32:32 +0000 (10:32 +0000)]
Update to the latest IKVM
Zoltan Varga [Thu, 3 Mar 2011 10:29:35 +0000 (11:29 +0100)]
Resurrect THREAD_DEBUG.
Zoltan Varga [Thu, 3 Mar 2011 10:24:42 +0000 (11:24 +0100)]
Change an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615.
Marek Safar [Thu, 3 Mar 2011 10:10:27 +0000 (10:10 +0000)]
[676476] Make UTF8 default encoding on all platforms
Marek Safar [Thu, 3 Mar 2011 08:11:41 +0000 (08:11 +0000)]
Simplify constant expression by removing Resolve phase
Marek Safar [Wed, 2 Mar 2011 15:39:11 +0000 (15:39 +0000)]
Wiring of BuildinType
Rodrigo Kumpera [Wed, 2 Mar 2011 19:45:07 +0000 (19:45 +0000)]
Fix linux build
Rodrigo Kumpera [Wed, 2 Mar 2011 18:11:57 +0000 (19:11 +0100)]
Fix non x86 builds
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.
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.
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.
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.
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.
Atsushi Eno [Wed, 2 Mar 2011 11:28:22 +0000 (20:28 +0900)]
Remove wrong overrides in RequestChannelBase in discovery.
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
Marek Safar [Wed, 2 Mar 2011 10:38:01 +0000 (10:38 +0000)]
Wiring of BuildinType
Marek Safar [Wed, 2 Mar 2011 10:35:54 +0000 (10:35 +0000)]
Use correct location for string literals
Marek Safar [Tue, 1 Mar 2011 19:31:54 +0000 (19:31 +0000)]
Wiring of BuildinType
Marek Safar [Tue, 1 Mar 2011 17:46:48 +0000 (17:46 +0000)]
Handle System.Void using special member kind
Marek Safar [Tue, 1 Mar 2011 15:08:04 +0000 (15:08 +0000)]
Wiring of BuildinType
Zoltan Varga [Wed, 2 Mar 2011 10:58:35 +0000 (11:58 +0100)]
Fix llvm+aot support.
Zoltan Varga [Wed, 2 Mar 2011 10:53:03 +0000 (11:53 +0100)]
Update to the latest version of the LLVM mono branch.
Zoltan Varga [Wed, 2 Mar 2011 01:24:30 +0000 (02:24 +0100)]
Small cleanups to the last sdb changes.
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
Zoltan Varga [Mon, 28 Feb 2011 15:06:44 +0000 (16:06 +0100)]
Thread id fixes for event processing.
Zoltan Varga [Mon, 28 Feb 2011 15:05:59 +0000 (16:05 +0100)]
Throw exception on disconnect.
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
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
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
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
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