Zoltan Varga [Wed, 30 Mar 2011 13:32:35 +0000 (15:32 +0200)]
Pretty print generic instances better in xdebug.
Zoltan Varga [Wed, 30 Mar 2011 13:27:40 +0000 (15:27 +0200)]
Add some checks to the ActivationServices:AllocateUninitializedClassInstance () icall to avoid instantiating interfaces/abstract types.
Dick Porter [Wed, 30 Mar 2011 12:01:57 +0000 (13:01 +0100)]
Merge branch 'master' of github.com:mono/mono
Rolf Bjarne Kvinge [Wed, 30 Mar 2011 11:24:40 +0000 (13:24 +0200)]
[io-layer] Make debug spew compile
Dick Porter [Thu, 28 Oct 2010 13:12:42 +0000 (14:12 +0100)]
Enable sgen on Solaris
Martin [Wed, 30 Mar 2011 10:20:33 +0000 (12:20 +0200)]
[asp.net] Fix for bug #658184. AuthorizationRule restores its Action when unmerging.
Marek Safar [Wed, 30 Mar 2011 09:39:33 +0000 (10:39 +0100)]
Allow XML documentation predefined types to be used with parameters for methods
Marek Safar [Wed, 30 Mar 2011 09:05:37 +0000 (10:05 +0100)]
Check XML documentation parameters on all parameters-like member kinds
Marek Safar [Wed, 30 Mar 2011 08:24:00 +0000 (09:24 +0100)]
New test
Marek Habersack [Mon, 28 Mar 2011 12:07:09 +0000 (14:07 +0200)]
[DataAnnotations] Implemented the Validator and CustomValidationAttribute 4.0 classes
Marek Safar [Wed, 30 Mar 2011 08:03:07 +0000 (09:03 +0100)]
Set correctly scope of namespace global attributes
Atsushi Eno [Wed, 30 Mar 2011 07:15:39 +0000 (16:15 +0900)]
Fix Sys.Xaml test build which got broken with the latest mcs since
9cc5c9e.
Gonzalo Paniagua Javier [Wed, 30 Mar 2011 05:38:53 +0000 (01:38 -0400)]
[proclib] Break after reading the line we need
Zoltan Varga [Wed, 30 Mar 2011 03:26:19 +0000 (05:26 +0200)]
Fix the previous change.
Zoltan Varga [Wed, 30 Mar 2011 03:05:06 +0000 (05:05 +0200)]
Call SleepEx in a loop in the Thread.Sleep () icall, to avoid a race when the sleep is interrupted. Fixes #683519.
Rodrigo Kumpera [Wed, 30 Mar 2011 02:45:38 +0000 (23:45 -0300)]
Fix domain TLS loading.
* sgen-os-mach.c (mono_sgen_thread_handshake): Given
recent changes in mono-compiler than enabled fast TLS
for mach, we now must use mono_domain_get_tls_offset
since io-layer TLS won't be used.
Rodrigo Kumpera [Wed, 30 Mar 2011 02:44:33 +0000 (23:44 -0300)]
Cast p to char* since the offset is in byte units.
Vincent Povirk [Tue, 29 Mar 2011 18:59:09 +0000 (13:59 -0500)]
System.Windows.Forms.Mime: Use freedesktop.org only on Unix platforms.
Gonzalo Paniagua Javier [Tue, 29 Mar 2011 18:24:04 +0000 (14:24 -0400)]
[nl] Move a bunch of #if's out of the way.
Gonzalo Paniagua Javier [Tue, 29 Mar 2011 17:45:57 +0000 (13:45 -0400)]
Reset BytesTransferred on every reuse.
Marek Safar [Tue, 29 Mar 2011 17:03:56 +0000 (18:03 +0100)]
Allow braces to be used instead of brackets for XML documentation
Marek Safar [Tue, 29 Mar 2011 16:40:42 +0000 (17:40 +0100)]
Make dynamic test for 4.0 profile only
Marek Safar [Tue, 29 Mar 2011 16:35:54 +0000 (17:35 +0100)]
Don't check constraints for anonymous method stories it's not needed and it's hard to get it right
Marek Safar [Tue, 29 Mar 2011 16:35:22 +0000 (17:35 +0100)]
Better error message for fixed size collections
Marek Safar [Tue, 29 Mar 2011 14:41:00 +0000 (15:41 +0100)]
Major update of XML documentation support
Gonzalo Paniagua Javier [Tue, 29 Mar 2011 03:22:23 +0000 (23:22 -0400)]
Fix vasprintf() for empty strings.
James Bellinger entered bug #682963 and he ended up debugging it and
providing the solution.
Atsushi Eno [Tue, 29 Mar 2011 02:51:01 +0000 (11:51 +0900)]
Do not forget mmember stack pop in XamlXmlReader. Fixed bug #682933.
Gonzalo Paniagua Javier [Mon, 28 Mar 2011 22:15:26 +0000 (18:15 -0400)]
.gitignore
Gonzalo Paniagua Javier [Mon, 28 Mar 2011 22:14:47 +0000 (18:14 -0400)]
(c) lines.
Gonzalo Paniagua Javier [Mon, 28 Mar 2011 21:47:41 +0000 (17:47 -0400)]
Fix a typo in Directory.GetFiles ()
The mask never matched the attributes and all files were discarded.
This fixes bug #683203.
Zoltan Varga [Mon, 28 Mar 2011 13:51:54 +0000 (15:51 +0200)]
Define MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX for arm.
Zoltan Varga [Mon, 28 Mar 2011 12:54:50 +0000 (14:54 +0200)]
Remove some unused fields from MonoDynamicGenericClass.
Atsushi Eno [Mon, 28 Mar 2011 12:17:24 +0000 (21:17 +0900)]
Cosmetic corcompare-based updates in Sys.SM.Web.
Atsushi Eno [Mon, 28 Mar 2011 08:09:25 +0000 (17:09 +0900)]
Looks like WCF serializer supports XmlNode, so we do as well.
for details: http://msdn.microsoft.com/en-us/library/
aa347876.aspx
Fixed bug #682957.
Atsushi Eno [Mon, 28 Mar 2011 07:05:17 +0000 (16:05 +0900)]
XamlXmlReader didn't update current_member after EndMember and kept old one.
Fixed bug #682933.
Zoltan Varga [Mon, 28 Mar 2011 06:18:58 +0000 (08:18 +0200)]
Fix a case where class->instance_size was not set for dynamic classes.
Zoltan Varga [Mon, 28 Mar 2011 04:44:28 +0000 (06:44 +0200)]
Pretty print null MonoGenericContext's in xdebug correctly.
Gonzalo Paniagua Javier [Sun, 27 Mar 2011 22:49:17 +0000 (18:49 -0400)]
[NetworkInformation] Support network IP/status events
Add support for the events in NetworkChanged (linux-only).
Sebastien Pouliot [Sun, 27 Mar 2011 20:59:26 +0000 (16:59 -0400)]
Add new crlupdate tool
* man/Makefile.am:
* man/crlupdate.1:
* man/man.xml:
Add new manual page for crlupdate
* mcs/tools/security/Makefile:
* mcs/tools/security/crlupdate.cs:
Add new crlupdate tool
* scripts/Makefile.am:
Generate script wrapper for crlupdate
Sebastien Pouliot [Sun, 27 Mar 2011 20:55:43 +0000 (16:55 -0400)]
Expose the distribution points from cRLDistrubutionPoint extension
* CRLDistributionPointsExtension.cs: Expose the DP from the extension
so it is easier to retrieve the URL to download them
Sebastien Pouliot [Sun, 27 Mar 2011 20:54:02 +0000 (16:54 -0400)]
Do not throw in IsSelfSigned on non-RSA based certificates
* X509Certificate.cs: Handle DSA or DSA paramaters-only certificates
in IsSeldSigned
Sebastien Pouliot [Sun, 27 Mar 2011 20:52:33 +0000 (16:52 -0400)]
Handle non-existing user CA store gracefully
* X509Chain.cs: Handle non-existing user CA store gracefully
Sebastien Pouliot [Sun, 27 Mar 2011 20:50:40 +0000 (16:50 -0400)]
Allow certmgr to display X.509 CRL inside the stores
* certmgr.cs: Implement display of X.509 CRL
Zoltan Varga [Sun, 27 Mar 2011 06:56:54 +0000 (08:56 +0200)]
Make mono_arch_context_get_int_reg () return an mgreg_t.
Virgile Bello [Fri, 25 Mar 2011 11:16:24 +0000 (20:16 +0900)]
VTune Amplifier XE 2011 plugin for Mono
Zoltan Varga [Sun, 27 Mar 2011 00:37:10 +0000 (01:37 +0100)]
Implement mono_arch_context_set_int_reg () for arm.
Atsushi Eno [Sat, 26 Mar 2011 12:27:19 +0000 (21:27 +0900)]
null JSON type must be handled in JsonWriter.
Atsushi Eno [Sat, 26 Mar 2011 12:00:16 +0000 (21:00 +0900)]
Do not always assume ascii == 1 byte in JsonWriter. Fix utf-16 usage.
Atsushi Eno [Sat, 26 Mar 2011 10:26:14 +0000 (19:26 +0900)]
XStreamingElement should be covered in WriteTo(). It's not derived from XNode.
Atsushi Eno [Sat, 26 Mar 2011 10:13:47 +0000 (19:13 +0900)]
Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
Zoltan Varga [Sat, 26 Mar 2011 04:19:34 +0000 (05:19 +0100)]
Implement mono_arch_context_set_int_reg () for x86.
Marek Habersack [Fri, 25 Mar 2011 21:44:17 +0000 (22:44 +0100)]
[asp.net] HtmlForum.Name rendering updates + test updates
Zoltan Varga [Fri, 25 Mar 2011 18:55:09 +0000 (19:55 +0100)]
Add support for reading/writing variables in registers to sdb.
Zoltan Varga [Fri, 25 Mar 2011 18:54:31 +0000 (19:54 +0100)]
Add a mono_arch_context_set_int_reg () function, amd64 only for now.
Zoltan Varga [Fri, 25 Mar 2011 18:34:40 +0000 (19:34 +0100)]
Add an unwind option to enable collection of register save locations during stack unwinding.
Vincent Povirk [Mon, 7 Mar 2011 19:41:46 +0000 (13:41 -0600)]
Replace ENABLE_COREE with a runtime switch.
Sebastien Pouliot [Fri, 25 Mar 2011 15:15:11 +0000 (11:15 -0400)]
Align our coreclr inheritance rules to match MS
* mono/metadata/security-core-clr.c: Change our inheritance check to be
closer to MS implementation wrt default ctors.
* mcs/tools/tuner/Mono.Tuner/InjectSecurityAttributes.cs: Let the tuner
inject the extra .ctor required to match the rules from above.
Sebastien Pouliot [Fri, 25 Mar 2011 14:12:20 +0000 (10:12 -0400)]
Do not allow extra elements in policy
* ClientAccessPolicyParser.cs: Fix regression (from
a023b07a) found by
DRT #666. More test cases to be added into moonlight WebPolicies test
application
Marek Habersack [Fri, 25 Mar 2011 13:19:48 +0000 (14:19 +0100)]
[tests,runtime] A kludge to make 2.0 tests using CodeDOM work
When running the 2.0 test suite some assemblies will invoke mcs via
CodeDOM and the new mcs process will find the MONO_PATH variable in its
environment pointing to the net_2_0 library which will cause the runtime
to attempt to load the 2.0 corlib into 4.0 process and thus mcs will
fail. At the same time, we must not touch MONO_PATH when running outside
the test suite, thus the kludge.
Marek Habersack [Fri, 25 Mar 2011 10:55:06 +0000 (11:55 +0100)]
[asp.net] Fix for bug #681553. Look for direct child controls before calling up on the NamingContainer
Miguel de Icaza [Fri, 25 Mar 2011 01:31:17 +0000 (21:31 -0400)]
Console encoding fix for bug 678357
Move the stream setup into a separate method and recreate the
streams whenever the input or output streams change.
Marek Habersack [Thu, 24 Mar 2011 22:31:46 +0000 (23:31 +0100)]
[asp.net] Fix for bug #681164. Page.InitOutputCache ignores calls with duration <= 0
It is ok to ignore such calls for two reasons - the cache with duration <= 0 will not
be effective anyway and the @OutputCache directive throws an exception for duration <= 0
Atsushi Eno [Thu, 24 Mar 2011 16:37:02 +0000 (01:37 +0900)]
Fix generic interface lookup to not miss exact match. Fixed bug #682140.
Atsushi Eno [Thu, 24 Mar 2011 14:25:16 +0000 (23:25 +0900)]
Again I forgot to add test xml file...
Atsushi Eno [Thu, 24 Mar 2011 14:20:18 +0000 (23:20 +0900)]
Support get-based property value (as omitted StartObject form) in XamlXmlReader.
This is a bit complicated to determine, and the identified condition could
be wrong (so far no regression).
It may be now missing the point to use IsWritePublic in some area to identify
GetObject node from XML stream. (Future consideration.)
Fixed bug #682131.
Atsushi Eno [Thu, 24 Mar 2011 12:32:27 +0000 (21:32 +0900)]
Nullable type needs special treatment in XamlValueConverter. fixed bug #682119.
Marek Safar [Thu, 24 Mar 2011 10:55:14 +0000 (10:55 +0000)]
Remove static members from documentation generator
Marek Safar [Thu, 24 Mar 2011 09:34:37 +0000 (09:34 +0000)]
Clean up few excessive documentation members
Marek Safar [Wed, 23 Mar 2011 20:03:45 +0000 (20:03 +0000)]
Better error message for common xml documentation error
Atsushi Eno [Thu, 24 Mar 2011 10:40:35 +0000 (19:40 +0900)]
Fix LookupNullable(). It is not lookable-up by interface (struct).
Atsushi Eno [Thu, 24 Mar 2011 10:33:48 +0000 (19:33 +0900)]
Undo unwanted comment out.
Atsushi Eno [Thu, 24 Mar 2011 10:17:31 +0000 (19:17 +0900)]
Implemented IAmbientProvider support in XamlObjectWriter. Fixed bug #682102.
Atsushi Eno [Thu, 24 Mar 2011 09:00:58 +0000 (18:00 +0900)]
Fix serialization test build that depended on compiler contravariance bug.
Thomas Goldstein [Thu, 24 Mar 2011 07:29:39 +0000 (08:29 +0100)]
Cursors.cs: Fix the appearance of the SizeNESW cursor when not running on Unix. Fixes bug 681032.
Atsushi Eno [Thu, 24 Mar 2011 06:19:30 +0000 (15:19 +0900)]
Add AmbientProperty tests (complicated, not working) for bug #682102.
Gonzalo Paniagua Javier [Wed, 23 Mar 2011 20:02:53 +0000 (16:02 -0400)]
Avoid warnigs.
Sebastien Pouliot [Wed, 23 Mar 2011 17:54:37 +0000 (13:54 -0400)]
Relax policy parser to accept text elements - fix 681699
* ClientAccessPolicyParser.cs: Allow non-element between the expected
XML elements. Fix text, like '-', being present inside policies.
Marek Safar [Wed, 23 Mar 2011 18:03:04 +0000 (18:03 +0000)]
[457081] Mixed documentation comment format was not detected for single lines
Marek Safar [Wed, 23 Mar 2011 17:24:59 +0000 (17:24 +0000)]
Update some documentation tests
Marek Safar [Wed, 23 Mar 2011 17:23:23 +0000 (17:23 +0000)]
[643460] Set delegate documentation scope correctly
Marek Safar [Wed, 23 Mar 2011 16:53:18 +0000 (16:53 +0000)]
Fixes another long standing issue where explicit type attributes could not be used at beginning of the file
Miguel de Icaza [Wed, 23 Mar 2011 14:11:54 +0000 (10:11 -0400)]
Make this OSX specific instead
Miguel de Icaza [Mon, 21 Mar 2011 17:25:47 +0000 (13:25 -0400)]
Allow generated files here
Miguel de Icaza [Mon, 21 Mar 2011 17:25:22 +0000 (13:25 -0400)]
Check in these autogenerated files, since they keep breaking the concurrent make builds
Atsushi Eno [Wed, 23 Mar 2011 13:33:56 +0000 (22:33 +0900)]
Add another complicated ContentProperty case.
Sebastien Pouliot [Tue, 22 Mar 2011 12:38:17 +0000 (08:38 -0400)]
Add missing API that are to be decorated with [SecurityCritical] for compatibility
* System.Reflection.Emit/AssemblyBuilder.cs: Add missing GetName(bool)
* System.Threading/ThreadPool.cs: Add missing UnsafeQueueNativeOverlapped
This is not a big issue since the missing API are unusable from
application code (and obviously not needed inside the platform code).
However it makes validating the tuned assemblies easier :)
Atsushi Eno [Wed, 23 Mar 2011 12:30:09 +0000 (21:30 +0900)]
Forgot to add test xml files for the previous commit.
Atsushi Eno [Wed, 23 Mar 2011 12:21:33 +0000 (21:21 +0900)]
ContentProperty with collection caused unexpected read in XamlXmlReader.
The fix is actually complicated. When a ContentProperty list is settable,
.NET allows omitting start element for it i.e. it *may* or *may not* appear,
which for each is interpreted as:
- it is StartObject if the start element can be of the member.
- otherwise it is GetObject.
It could still happen that if such a list could contain an instance of the
same list type, which results in "indeterminant" state. I don't think MS XAML
syntax and/or parser is carefully designed to treat such situation gracefully,
so I leave current implementation as is.
Rolf Bjarne Kvinge [Wed, 23 Mar 2011 07:33:25 +0000 (08:33 +0100)]
[io-layer] Use MonoSemType instead of sem_t
Marek Habersack [Wed, 23 Mar 2011 10:46:28 +0000 (11:46 +0100)]
[runtime] Fix compilation
Gonzalo Paniagua Javier [Wed, 23 Mar 2011 05:55:09 +0000 (01:55 -0400)]
--version shows kqueue now.
Miguel de Icaza [Wed, 23 Mar 2011 05:53:30 +0000 (01:53 -0400)]
OSX, Win32: Implements support for DriveInfo
This implements support for DriveInfo for OSX and Windows.
On OSX we use statfs system call that provides the filesystem
type information that we need. On Linux, we continue to fallback
to mtab parsing
Miguel de Icaza [Wed, 23 Mar 2011 04:41:18 +0000 (00:41 -0400)]
Add OSX support to the io-layer: supports getting a list of mounted file systems, and OSX-specific file system types
Miguel de Icaza [Wed, 23 Mar 2011 04:40:34 +0000 (00:40 -0400)]
Add Environment.IsMacOS for handling OSX specific bits in corlib
Atsushi Eno [Wed, 23 Mar 2011 05:45:58 +0000 (14:45 +0900)]
Add support for EnumTypeConverter in XamlValueConverter. Fixed bug #681724.
Gonzalo Paniagua Javier [Wed, 23 Mar 2011 01:39:12 +0000 (21:39 -0400)]
[threadpool] Don't start all the IO threads on first request.
The IO threadpool behaves as the regular one now: threads are created
on demand up to the default and then they are throttled based on load
unless Set(Min|Max)Threads is used.
Fix the stack size for threadpool threads when Set(Min|Max)threads is
used.
Rolf Bjarne Kvinge [Fri, 4 Feb 2011 12:51:11 +0000 (13:51 +0100)]
[io-layer] Improve waiting on processes a lot
We now install a SIGCHLD handler when creating a process, and we do the proper
waitpid in the SIGCHLD handler so that the process isn't left as a zombie. We
use a new data structure, MonoProcess, to keep track of created processes, and
where we have a semaphore the SIGCHLD handler releases when the process exits.
This enables us to wait properly (no polling!) for child processes, and
process_wait has been completely reworked to take advantage of this.
The ability to wait for non-child processes is partly there (when shared
handles are enabled any process can wait for a process any other mono process
has created by polling on the pid).
Rolf Bjarne Kvinge [Fri, 4 Feb 2011 12:34:18 +0000 (13:34 +0100)]
[io-layer] When forking ensure the parent's data structures are updated before the child execs
Rolf Bjarne Kvinge [Fri, 4 Feb 2011 12:23:53 +0000 (13:23 +0100)]
[io-layer] Move duplicated pid validation into one method.
Rolf Bjarne Kvinge [Fri, 4 Feb 2011 12:08:17 +0000 (13:08 +0100)]
[io-layer] Make the special_wait functions take an alertable flag.