Miguel de Icaza [Thu, 19 Jul 2012 02:25:00 +0000 (22:25 -0400)]
mono_lookup_pinvoke_call: prevent leak by keeping a global MonoDl handle for the internal module.
From now on, we will keep a global handle for lookups performed against the "__Internal"
library name. This will prevent multiple P/Invoke calls from calling mono_dl_open with
filename == NULL for each call.
Since Mono never calls mono_dl_close on P/Invoke lookups, this should not pose a problem.
Miguel de Icaza [Tue, 19 Jun 2012 05:48:13 +0000 (01:48 -0400)]
Remove more old compile defines
Rodrigo Kumpera [Wed, 18 Jul 2012 23:59:27 +0000 (20:59 -0300)]
Another take into reducing shutdown crashes.
Dan Shechter [Mon, 16 Jul 2012 23:51:41 +0000 (02:51 +0300)]
Fixed Xamarin Bug 6148
- fixes https://bugzilla.xamarin.com/show_bug.cgi?id=6148
- explicit layout classes use the right packing
when determining the class size
- I release this patch is under the MIT/X11 license
Rodrigo Kumpera [Wed, 18 Jul 2012 14:17:18 +0000 (11:17 -0300)]
Fix shutdown when the io-tp was not used.
Rodrigo Kumpera [Tue, 17 Jul 2012 22:32:57 +0000 (19:32 -0300)]
Give each scan function an unique name to help some profilers finding the right symbol.
Jeremie Laval [Wed, 18 Jul 2012 13:50:16 +0000 (14:50 +0100)]
[external/debian] Bump debian packaging scripts
Marek Safar [Wed, 18 Jul 2012 12:31:14 +0000 (13:31 +0100)]
Implement better expression conversion between anonymous method dynamic return type and object
Marek Safar [Wed, 18 Jul 2012 10:52:07 +0000 (11:52 +0100)]
Fix return type check for delegates conversion using dynamic return type
Marek Habersack [Wed, 18 Jul 2012 12:06:34 +0000 (14:06 +0200)]
Remove external directory git cruft from the dist tarball
Alan McGovern [Wed, 18 Jul 2012 09:42:12 +0000 (10:42 +0100)]
Bump the debian-snapshot submodule again
Zoltan Varga [Wed, 18 Jul 2012 07:19:59 +0000 (00:19 -0700)]
Merge pull request #397 from xen2/llvm_sqrt_abs
Fixed Math.Sqrtf and Math.Abs with LLVM.
Zoltan Varga [Wed, 18 Jul 2012 07:18:55 +0000 (00:18 -0700)]
Merge pull request #396 from directhex/master
Refresh Debian packaging
Virgile Bello [Wed, 18 Jul 2012 04:46:38 +0000 (13:46 +0900)]
Fixed Math.Sqrtf and Math.Abs with LLVM.
Jo Shields [Tue, 17 Jul 2012 22:51:55 +0000 (23:51 +0100)]
[debian] Big bundle of packaging fixes, to massively simplify the job at Wrench's end, including a new script to build Debian packages inside the existing dirty prefix.
Rodrigo Kumpera [Tue, 17 Jul 2012 16:23:03 +0000 (13:23 -0300)]
When calculating allowance, don't blindly cast from double to uint as it might not saturate the result.
* sgen-gc.c (try_calculate_minor_collection_allowance): For workloads with very high
survival rates the calculated allowance_target can overflow a mword on 32bits systems.
Given this behavior is unspecified and we've been bitten by it, let's take the safe
side and manually saturate it.
Rodrigo Kumpera [Mon, 16 Jul 2012 22:13:29 +0000 (19:13 -0300)]
Add test for the behavior of discarding pending io events on appdomain unload.
Zoltan Varga [Tue, 17 Jul 2012 16:51:12 +0000 (18:51 +0200)]
Move some declarations out of a #ifdef in pthread_support.c to fix platforms without thread local alloc.
Zoltan Varga [Tue, 17 Jul 2012 06:41:44 +0000 (23:41 -0700)]
Merge pull request #394 from directhex/master
[debian] Update Debian submodule
Jo Shields [Tue, 17 Jul 2012 02:17:50 +0000 (03:17 +0100)]
[debian] Update Debian submodule with packaging bugfixes
Zoltan Varga [Tue, 17 Jul 2012 00:52:35 +0000 (02:52 +0200)]
Remove some incorrectly forward-ported code from aot-runtime.c.
Miguel de Icaza [Mon, 16 Jul 2012 21:42:36 +0000 (14:42 -0700)]
Merge pull request #323 from crazyjncsu/master
Fixed execution of parallel PageAsyncTasks
Miguel de Icaza [Mon, 16 Jul 2012 21:31:00 +0000 (14:31 -0700)]
Merge pull request #388 from strawd/master
Fixes for compatibility with ASP.NET Web API Self-hosting
Marek Safar [Mon, 16 Jul 2012 21:29:06 +0000 (14:29 -0700)]
Merge pull request #390 from baulig/master
Fix relative URLs
Gonzalo Paniagua Javier [Mon, 16 Jul 2012 17:51:17 +0000 (13:51 -0400)]
GetResponse() returns 0 when it need more data, not -1
GetResponse() returns 0 to signal that it needs more data to complete
while -1 signals an error processing the data.
Zoltan Varga [Mon, 16 Jul 2012 16:14:57 +0000 (09:14 -0700)]
Merge pull request #391 from xen2/
e377dd65b5599d5a9ecf4bfde625e25fcd45ae68
Bugfix for #6112
Marek Safar [Mon, 16 Jul 2012 12:13:32 +0000 (13:13 +0100)]
Set field usage in resolve to accommodate for expression trees. Fixes #6119
Marek Safar [Mon, 16 Jul 2012 10:27:03 +0000 (11:27 +0100)]
Better error message for missing using for extension methods
Jérémie Laval [Mon, 16 Jul 2012 12:10:09 +0000 (05:10 -0700)]
Merge pull request #364 from directhex/master
Wrench-friendly Debian snapshot packaging
Zoltan Varga [Mon, 16 Jul 2012 03:13:38 +0000 (05:13 +0200)]
Fix #6112 for amd64 as well.
Zoltan Varga [Sun, 15 Jul 2012 12:59:03 +0000 (14:59 +0200)]
Fix the handling of fail tramps in the full-aot IMT thunks on x86. Fixes #6112.
Rodrigo Kumpera [Fri, 13 Jul 2012 22:00:03 +0000 (19:00 -0300)]
Clear more threadpool state prior to domain unload.
* threadpool.c: When cleaning the threadpool
before a domain unload, clear the sock_to_state hashtbale
as it might contain objects of the dying domain.
Rodrigo Kumpera [Thu, 12 Jul 2012 20:45:09 +0000 (17:45 -0300)]
Replace an assertion with an UNVERIFIED call in the JIT.
David Straw [Fri, 13 Jul 2012 20:20:31 +0000 (14:20 -0600)]
Merge remote-tracking branch 'upstream/master'
Jo Shields [Fri, 13 Jul 2012 17:44:14 +0000 (18:44 +0100)]
[debian-snapshot] Pull in a fix for more robust path handling.
Marek Safar [Fri, 13 Jul 2012 09:25:47 +0000 (10:25 +0100)]
Make nullable values debugging more pleasant.
Marek Safar [Fri, 13 Jul 2012 08:42:16 +0000 (09:42 +0100)]
Fix error test number
Gonzalo Paniagua Javier [Wed, 11 Jul 2012 20:53:27 +0000 (16:53 -0400)]
Backport from mobile
David Straw [Wed, 11 Jul 2012 19:37:53 +0000 (13:37 -0600)]
Treat TimeSpan.MaxValue as a special case for http wait timeout
David Straw [Wed, 11 Jul 2012 17:51:59 +0000 (11:51 -0600)]
Constrain http request/response timeouts to int.MaxValue milliseconds
Rodrigo Kumpera [Wed, 11 Jul 2012 13:00:38 +0000 (10:00 -0300)]
Kill more compiler context code.
Rodrigo Kumpera [Wed, 11 Jul 2012 12:31:59 +0000 (09:31 -0300)]
MonoGenericClass::initialize runtime icall only needs fields.
Martin Baulig [Wed, 11 Jul 2012 00:19:46 +0000 (02:19 +0200)]
Support relative URIs.
David Straw [Tue, 10 Jul 2012 22:36:34 +0000 (16:36 -0600)]
Merge branch 'master' of https://github.com/strawd/mono
David Straw [Tue, 10 Jul 2012 22:35:21 +0000 (16:35 -0600)]
Use static instances for scheme in parsed URIs
Rodrigo Kumpera [Tue, 10 Jul 2012 21:38:32 +0000 (18:38 -0300)]
First pass killing compiler context support code.
* MonoGenericClass.cs: Switch to MS's behavior and kill
on ton of code in the process. Only MCS depended on it
and now we can kill it.
Rodrigo Kumpera [Tue, 10 Jul 2012 15:08:35 +0000 (12:08 -0300)]
Remove compiler context tests.
Rodrigo Kumpera [Tue, 10 Jul 2012 15:06:57 +0000 (12:06 -0300)]
Remove some dead code.
Rodrigo Kumpera [Mon, 9 Jul 2012 22:30:16 +0000 (19:30 -0300)]
Use a simpler design for IsUserType based on virtual calls.
* Type.cs (IsUserType) Replace the current hacky way with
a virtual call. This removes a direct dependency on a type
and a bunch of stuff that would otherwise be loaded for
no good reason.
Rodrigo Kumpera [Tue, 10 Jul 2012 18:32:49 +0000 (15:32 -0300)]
Disable mdb by default as it breaks sgen builds. This has gone unoticed for close to two years now.
Marek Safar [Tue, 10 Jul 2012 14:24:21 +0000 (15:24 +0100)]
Marek Safar [Tue, 10 Jul 2012 14:07:34 +0000 (15:07 +0100)]
Check type parameters constraints on best candidate only. Fixes #6056
Marek Safar [Tue, 10 Jul 2012 07:05:57 +0000 (08:05 +0100)]
Fixes build
Virgile Bello [Tue, 10 Jul 2012 03:54:23 +0000 (12:54 +0900)]
Fix #6112
c32a854: compile error and removed indirection.
Rodrigo Kumpera [Mon, 9 Jul 2012 23:44:10 +0000 (16:44 -0700)]
Merge pull request #386 from alexrp/master
Use a critical region in mono_gc_alloc_array.
alexrp [Mon, 9 Jul 2012 23:17:04 +0000 (01:17 +0200)]
Only use TLAB_ACCESS_INIT in sgen_card_table_wbarrier_object_copy for the critical region case.
alexrp [Mon, 9 Jul 2012 23:14:53 +0000 (01:14 +0200)]
Use a critical region in mono_gc_alloc_array.
Bojan Rajkovic [Mon, 9 Jul 2012 22:48:43 +0000 (15:48 -0700)]
Merge pull request #366 from robwilkens/bug5747-2
Fixes #5747: KeventWatcher - Was not returning subdirectories, repatched to fix regressions.
Rodrigo Kumpera [Fri, 6 Jul 2012 21:49:39 +0000 (18:49 -0300)]
Clear some dead code.
Rodrigo Kumpera [Tue, 5 Jun 2012 22:59:03 +0000 (19:59 -0300)]
Sanitize sgen's collection trigger internal API.
* sgen-gc.c: Sanitize all collection triggering functions in
just two. Make it possible to trigger a major GC before a minor
overflow happens.
Marek Safar [Mon, 9 Jul 2012 17:16:53 +0000 (18:16 +0100)]
Better error reporting for missing using directives
Marek Safar [Mon, 9 Jul 2012 15:56:22 +0000 (16:56 +0100)]
Fix infinite loop when parsin unclosed generic type declaration arguments
Marek Safar [Mon, 9 Jul 2012 15:25:55 +0000 (16:25 +0100)]
Restore id-buffer when after probing async keyword. Fixes #6037
Marek Safar [Mon, 9 Jul 2012 14:40:17 +0000 (07:40 -0700)]
Merge pull request #384 from miraclespain/master
Tests passing regarding modifications to System.Web.UI.WebControls.CheckboxList
Jakob Andersen [Mon, 9 Jul 2012 14:40:14 +0000 (16:40 +0200)]
Only compare values if postdata for the checkbox is actually recieved
Marek Safar [Mon, 9 Jul 2012 14:27:55 +0000 (15:27 +0100)]
Compare type definitions when checking nested type accessibility.
Marek Safar [Mon, 9 Jul 2012 09:19:39 +0000 (10:19 +0100)]
Better error message
Marek Safar [Mon, 9 Jul 2012 14:13:41 +0000 (07:13 -0700)]
Merge pull request #383 from JamesB7/system-security6
This version of CommonObjectSecurityTest does not use corlib AccessRule<T> or AuditRule<T>. Should unbreak it for .NET 2.0...
James Bellinger [Mon, 9 Jul 2012 14:03:02 +0000 (10:03 -0400)]
This version of CommonObjectSecurityTest should not use AccessRule<T> or AuditRule<T>
(just included simple specializations accomplishing the same).
Marek Safar [Mon, 9 Jul 2012 06:55:49 +0000 (23:55 -0700)]
Merge pull request #382 from JamesB7/system-security7
Semaphore and Pipe ACLs
James Bellinger [Sun, 8 Jul 2012 17:44:50 +0000 (13:44 -0400)]
Implemented PipeSecurity. GetAccessControl, SetAccessControl, and ACL-containing constructor overrides now work on pipes.
On another note, after writing a test I discovered Asynchronous pipes appear to be completely broken on Win32.
The class does not correctly handle overlapped I/O. This patch doesn't fix that.
One other fix in this patch, the DllImports for Win32 pipes did not have SetLastError set.
So, they were unable to return a meaningful error in the event of failure. This is now fixed, and
UnauthorizedAccessException correctly throws for pipe connects denied by ACL (necessary for PipeSecurity test).
James Bellinger [Sun, 8 Jul 2012 11:46:43 +0000 (07:46 -0400)]
Implement SemaphoreSecurity.
Marek Safar [Sun, 8 Jul 2012 18:40:48 +0000 (11:40 -0700)]
Merge pull request #381 from JamesB7/system-security6
Fix ObjectSecurityTest on .NET 2.0. The test no longer uses AccessRule<T> and AuditRule<T>.
James Bellinger [Sun, 8 Jul 2012 18:33:39 +0000 (14:33 -0400)]
Fix ObjectSecurityTest on .NET 2.0. The test no longer uses AccessRule<T> and AuditRule<T>.
Marek Safar [Sun, 8 Jul 2012 08:54:17 +0000 (01:54 -0700)]
Merge pull request #378 from miraclespain/master
Fix to problem with CheckboxList when running .NET 4.0
Marek Safar [Sun, 8 Jul 2012 08:53:08 +0000 (01:53 -0700)]
Merge pull request #380 from JamesB7/enum-fix
Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously ...
Marek Safar [Sun, 8 Jul 2012 08:49:01 +0000 (01:49 -0700)]
Merge pull request #379 from JamesB7/system-security6
ACLs! (File, Directory, Mutex, EventWaitHandle, RegistryKey)
James Bellinger [Sun, 8 Jul 2012 04:31:57 +0000 (00:31 -0400)]
Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously this method was returning in GetFields (declaration) order. It now returns sorted by the unsigned value of the enum as is correct.
Ran into this while calling Type.GetEnumNames and Type.GetEnumValues.
To my surprise the pairs didn't match up. Anyway, here's a fix.
James Bellinger [Sat, 7 Jul 2012 22:09:27 +0000 (18:09 -0400)]
RegistrySecurity now working!
James Bellinger [Sat, 7 Jul 2012 20:21:37 +0000 (16:21 -0400)]
Mutexes and event wait handles now work, with tests included. Fixed the exception on failure for MutexSecurity.
James Bellinger [Tue, 3 Jul 2012 22:57:27 +0000 (18:57 -0400)]
ACLs now work on Windows. Tests all the way up to DirectorySecurityTest and FileSecurityTest.
NativeObjectSecurity is implemented.
I've done it in such a way that, for OSes that do not have a unified API for all ACLs,
overrides can be done in subclasses such as FileSystemSecurity without trouble.
ObjectSecurity, CommonObjectSecurity, and DirectoryObjectSecurity all implemented.
MutexSecurity, PipeSecurity, etc. all just add type specialization and nothing else. Implemented all of these as well.
Access and Audit rules now correctly use NTAccount in their string overloads (see unit tests).
The constructors all provide correct AccessMasks now. In other words, these classes are all now un-broken/no longer stubs.
More unit tests for CommonSecurityDescriptor and fixes to pass them.
A few had checks that were redundant (implemented by (Authorization|Audit|Access)Rule) as well. These have been removed.
The Allow Everyone Full Access default for null DiscretionaryAcls in CommonSecurityDescriptor is, I think,
properly implemented. This required some changes to GenericSecurityDescriptor as well, but now Mono matches
MS.NET on GetSddl/GetBinaryForm for null DiscretionaryAcl including roundtrip.
What's still missing:
(1) CommonAcl's RemoveAccess/RemoveAudit. RemoveAll and RemoveSpecific work so it's not a big issue.
(2) CommonAcl merging will not yet try to merge a CommonAce together with an ObjectAce.
(3) The various *Security constructors. Get/SetAccessControl work on files and directories.
However, you still have to create and then set. I am not too familiar with Mono runtime internal
calls, but to someone who is: If the SECURITY_ATTRIBUTES parameter to Create*'s lpSecurityDescriptor
pointed to the output of GenericSecurityDescriptor's GetBinaryForm, that would be a complete
implementation.
James Bellinger [Tue, 3 Jul 2012 22:28:51 +0000 (18:28 -0400)]
CommonSecurityDescriptor!
Jakob Andersen [Sat, 7 Jul 2012 20:06:53 +0000 (22:06 +0200)]
Fix to compare to actual value as this is what is used in 4.0 since changeset
d8838a64
Gonzalo Paniagua Javier [Fri, 6 Jul 2012 17:42:43 +0000 (13:42 -0400)]
HtmlEncode the path
Fixes Novell bug #769799.
Mark Probst [Thu, 5 Jul 2012 13:58:43 +0000 (15:58 +0200)]
[sgen] Fix a race condition.
When a worker thread is looking for a job in the queue the collection
might already be over. Don't call code that assumes it's still running
until we're sure.
Rolf Bjarne Kvinge [Thu, 5 Jul 2012 12:54:19 +0000 (14:54 +0200)]
Rework RectangleF.Contains to not do equality comparison on floating point values. Fixes #5985.
Marek Safar [Thu, 5 Jul 2012 08:00:46 +0000 (09:00 +0100)]
Fix failing dns tests
Marek Safar [Thu, 5 Jul 2012 07:21:55 +0000 (08:21 +0100)]
Fix Order property to throw on no value
Zoltan Varga [Thu, 5 Jul 2012 02:59:11 +0000 (04:59 +0200)]
Fix an assert in the arm backend if an offset is too large.
Marek Safar [Wed, 4 Jul 2012 16:21:36 +0000 (09:21 -0700)]
Merge pull request #373 from QuickJack/master
Removed a number of warnings
Alan McGovern [Wed, 4 Jul 2012 14:42:17 +0000 (15:42 +0100)]
[Microsoft.Build.Tasks] Remove an overly verbose informational message
This warning really pollutes the monodevelop build, so lets nuke it
for now.
Alan McGovern [Sun, 1 Jul 2012 20:37:03 +0000 (16:37 -0400)]
[Microsoft.Build.Tasks] Fix some simple caching to improve build times
Large projects now have significantly less overhead when calculating
assembly references and referencing gac assemblies.
QuickJack [Wed, 4 Jul 2012 14:09:47 +0000 (16:09 +0200)]
Applied Marek's suggestions so remove CS0067 from certain event handler declarations
Marek Safar [Wed, 4 Jul 2012 11:49:01 +0000 (04:49 -0700)]
Merge pull request #376 from atomia/master
Allow parsing of config files for for enterprise library.
Thorsten Tarrach [Wed, 4 Jul 2012 11:46:34 +0000 (13:46 +0200)]
Not validating if null value is null
This allows parsing of enterprise library config extensions and is in line with the way MS .net handles things.
Marek Safar [Wed, 4 Jul 2012 11:30:47 +0000 (04:30 -0700)]
Merge pull request #375 from atomia/master
Improved exception messages in case of configuration errors
Thorsten Tarrach [Wed, 4 Jul 2012 09:37:05 +0000 (11:37 +0200)]
Improved error messages so that it becomes clear where configuration errors come from
Marek Safar [Wed, 4 Jul 2012 07:11:36 +0000 (00:11 -0700)]
Merge pull request #372 from JamesB7/system-security5
Implemented DiscretionaryAcl and SystemAcl except for RemoveAccess
QuickJack [Tue, 3 Jul 2012 20:54:31 +0000 (22:54 +0200)]
Fixes a number of warnings in System.Windows.Forms.dll
James Bellinger [Tue, 3 Jul 2012 19:32:49 +0000 (15:32 -0400)]
Implemented SystemAcl. Common shared functionality moved to CommonAcl. Only missing implementation now is RemoveAccess/RemoveAudit.
Unit tests included - for SystemAcl they are based on DiscretionaryAcl's mostly,
with one extra and one somewhat changed since AuditFlags merge together unlike Allow/Deny.
Anyway, it should be practical to implement CommonSecurityDescriptor and friends with these classes working.