Marek Habersack [Sun, 17 Apr 2011 01:00:15 +0000 (03:00 +0200)]
[asp.net] Implemented undocumented BuildManagerHost class to support the Cassini ASP.NET host
Marek Habersack [Sat, 16 Apr 2011 00:09:47 +0000 (02:09 +0200)]
[asp.net] MinimizableAttributeTypeConverter only converts from strings.
It returns a boolean 'false' when the passed string matches (case-insensitively) 'false' or
is empty, returns 'true' otherwise.
All the other types (and a null value) cause it to throw the NotSupportedException.
Zoltan Varga [Fri, 15 Apr 2011 23:21:55 +0000 (01:21 +0200)]
Handle a new dwarf CFA op generated by newer LLVM versions.
Sebastien Pouliot [Thu, 14 Apr 2011 19:27:54 +0000 (15:27 -0400)]
Fix non-element in XML flash policy (same as #681699 was for silverlight policies)
* FlashCrossDomainPolicyParser.cs: Skip, not throw, if we find a non-
element node type in a flash policy file.
Atsushi Eno [Fri, 15 Apr 2011 16:05:22 +0000 (01:05 +0900)]
Prepare for HostNameComparisonMode support (i.e. incomplete).
This is for bugfix #687580.
Atsushi Eno [Fri, 15 Apr 2011 14:49:39 +0000 (23:49 +0900)]
Return null for empty message in WebMessageFormatter. Useful eror messages.
Atsushi Eno [Fri, 15 Apr 2011 14:48:31 +0000 (23:48 +0900)]
Some argument check in TextMessageEncoder.
Marek Safar [Fri, 15 Apr 2011 13:04:40 +0000 (14:04 +0100)]
More fun with value type constraints
Rolf Bjarne Kvinge [Fri, 15 Apr 2011 11:31:03 +0000 (13:31 +0200)]
[corlib] Ensure Thread.ManagedThreadId is unique per thread.
This fixes bug #667329.
The problem was that ManagedThreadId was created from a per-appdomain
counter, but stored in a per-thread storage, so if two threads could
end up with the same ManagedThreadId if a second appdomain executed
on the second thread first.
Atsushi Eno [Fri, 15 Apr 2011 12:30:04 +0000 (21:30 +0900)]
Use correct MessageVersion instead of Default for empty response.
Part of bugfix #687580.
Jb Evain [Fri, 15 Apr 2011 12:11:27 +0000 (14:11 +0200)]
Remove warnings
Atsushi Eno [Fri, 15 Apr 2011 11:03:12 +0000 (20:03 +0900)]
Prefer immutable string return for ease of debugging in UriTemplate.
Marek Safar [Fri, 15 Apr 2011 10:30:00 +0000 (11:30 +0100)]
New test
Marek Safar [Fri, 15 Apr 2011 09:45:57 +0000 (10:45 +0100)]
Change ImplicitReferenceConversion not to relly on broken IsValueType
Atsushi Eno [Fri, 15 Apr 2011 07:37:58 +0000 (16:37 +0900)]
Fix regression for counter case to
6005f0a7.
http://localhost/x + X should not result in http://localhost/xX.
Atsushi Eno [Fri, 15 Apr 2011 06:40:42 +0000 (15:40 +0900)]
Implement support for KnownTypeAttribute.MethodName.
Atsushi Eno [Fri, 15 Apr 2011 06:00:40 +0000 (15:00 +0900)]
Prepare for new System.Xml.Serialization.dll build (moonlight sdk assembly).
Atsushi Eno [Fri, 15 Apr 2011 05:56:11 +0000 (14:56 +0900)]
Flush XmlWriter and TextWriter so that incomplete changes are not lost.
Atsushi Eno [Fri, 15 Apr 2011 05:45:39 +0000 (14:45 +0900)]
One more step to enable WCF diagnostics in Logger, and add HttpReplyChannel log.
Marek Habersack [Thu, 14 Apr 2011 22:50:58 +0000 (00:50 +0200)]
[asp.net] Fix for bug #685116. AJAX post-back which redirects the browser does not need a Page or ScriptManager instance
Gonzalo Paniagua Javier [Thu, 14 Apr 2011 22:22:57 +0000 (15:22 -0700)]
Clearing the queue messed up with the per-domain job count
Fixes bug #687399.
Rodrigo Kumpera [Thu, 14 Apr 2011 20:25:54 +0000 (17:25 -0300)]
Initial drop of the new suspend machinery.
* mini-posix.c (mono_runtime_posix_install_handlers): Only
install sigusr1 if the new machinery is not enabled.
* mono-threads.c: Add new suspend machinery. It provides
primitives to suspend and resume a thread. Code to interrupt
still missing.
* mono-threads-mach.c: Darwin backend for mono-threads.
Marek Habersack [Thu, 14 Apr 2011 20:40:06 +0000 (22:40 +0200)]
[asp.net] Fix for bug #685267. ClientScriptManager generates correct post-back event reference for cross-page post-backs.
Marek Habersack [Thu, 14 Apr 2011 19:12:15 +0000 (21:12 +0200)]
[asp.net] Removed a few NET_2_0 ifdefs
Rodrigo Kumpera [Thu, 14 Apr 2011 18:52:50 +0000 (15:52 -0300)]
Fix 64bits mono on windows.
Marek Habersack [Thu, 14 Apr 2011 18:49:30 +0000 (20:49 +0200)]
[asp.net] Shorten code in WebConfigurationHost
Marek Habersack [Thu, 14 Apr 2011 18:48:54 +0000 (20:48 +0200)]
[asp.net] Fixed a thinko in one of the previous commits
Rodrigo Kumpera [Thu, 14 Apr 2011 17:34:20 +0000 (14:34 -0300)]
Add regression test
Rodrigo Kumpera [Thu, 14 Apr 2011 17:30:04 +0000 (14:30 -0300)]
Take constraints into account when checking for VAR assignability.
* class.c (mono_class_is_assignable_from): Check the constraints
of two (M)VARs to see if one is assignable to the other. This is
needed when we want to check something like:
Foo<T,U> () where T : U
On the above example T is assignable to U.
Fixes #687269
Rodrigo Kumpera [Wed, 13 Apr 2011 21:41:45 +0000 (18:41 -0300)]
Fix some tests that got broken due to the verifier getting stricter
Rodrigo Kumpera [Wed, 13 Apr 2011 18:27:03 +0000 (15:27 -0300)]
Improve error message
Atsushi Eno [Thu, 14 Apr 2011 12:11:10 +0000 (21:11 +0900)]
Fix bug #687444, null-character handling is now closer and as illogical as .NET.
Alan McGovern [Thu, 14 Apr 2011 10:23:03 +0000 (11:23 +0100)]
Add more internal types for IVT for SDK assemblies.
Alan McGovern [Wed, 13 Apr 2011 17:45:03 +0000 (18:45 +0100)]
[System.ServiceModel] Add some missing properties for IVT compatibility
These are required for moonlight.
Alan McGovern [Wed, 13 Apr 2011 17:16:43 +0000 (18:16 +0100)]
[System.ServiceModel] return the same object reference from MessageVersion.CreateVersion
The Silverlight SDK assemblies rely on this behaviour as do the new tests.
Alan McGovern [Wed, 13 Apr 2011 17:12:18 +0000 (18:12 +0100)]
Add another dummy type to keep silverlight sdk assemblies happy wrt
IVT for System.ServiceModel.
Marek Safar [Thu, 14 Apr 2011 09:13:09 +0000 (10:13 +0100)]
Emit readonly. prefix for immutable loads only
Atsushi Eno [Thu, 14 Apr 2011 08:28:35 +0000 (17:28 +0900)]
In Parse(), throw FormatException instead of ArgumentOutOfRangeException.
Atsushi Eno [Thu, 14 Apr 2011 06:22:04 +0000 (15:22 +0900)]
Add ServiceKnownTypeAttributeTest.
Atsushi Eno [Thu, 14 Apr 2011 05:56:07 +0000 (14:56 +0900)]
ServiceKnownTypeAttribute.MethodName was used way different to lookup method.
Martin Baulig [Wed, 13 Apr 2011 18:17:44 +0000 (20:17 +0200)]
Oooops, it's supposed to be 'if (!strcmp (...))' !
Rodrigo Kumpera [Wed, 13 Apr 2011 17:42:37 +0000 (14:42 -0300)]
Implement the JIT side of the new mono-threads callbacks.
* mini.c: Fill MonoThreadInfoRuntimeCallbacks and
pass it to mono-threads.
* mini-exceptions.c (mono_setup_async_callback): New function
that can be used to inject an async callback into a stopped
thread. It works in a similar fashion as the current out
of signal handler EH.
* mini-posix.c:
* mini-darwin.c:
* mini-windows.c (mono_thread_state_init_from_handle): New
function to capture the context of a suspended thread. This
is meant to be used on targets where the kernel can suspend
a given thread - such as mach and windows.
Rodrigo Kumpera [Wed, 13 Apr 2011 17:20:46 +0000 (14:20 -0300)]
Add new set of callbacks to be provided by the JIT.
* mono-threads.h: Add MonoThreadInfoRuntimeCallbacks which
are a set of callbacks to be used by the new interruption
machinery.
Rodrigo Kumpera [Tue, 12 Apr 2011 23:48:00 +0000 (20:48 -0300)]
Move posix only code to a separate file.
Marek Safar [Wed, 13 Apr 2011 16:52:42 +0000 (17:52 +0100)]
Improve handling of dependant type parameters
Marek Habersack [Wed, 13 Apr 2011 14:56:15 +0000 (16:56 +0200)]
[asp.net] Make web.config path check test case-insensitive
Marek Habersack [Wed, 13 Apr 2011 14:25:10 +0000 (16:25 +0200)]
[asp.net] A more effective way of looking for web.config
Marek Habersack [Wed, 13 Apr 2011 14:24:08 +0000 (16:24 +0200)]
[runtime,IO] Filesystem entries can only be sought for in directories, not files.
Alan McGovern [Wed, 13 Apr 2011 14:50:42 +0000 (15:50 +0100)]
Add an IVT from System.ServiceModel to Sys.SM.Web.Extensions for Moonlight
Sebastien Pouliot [Wed, 13 Apr 2011 14:31:11 +0000 (10:31 -0400)]
Add a few MOONLIGHT defines to remove the RemotingProxy from ML build
* System.Runtime.Remoting.Activation/ActivationServices.cs:
* System.Runtime.Remoting.Messaging/ConstructionCall.cs
* System.Runtime.Remoting.Proxies/ProxyAttribute.cs
* System.Runtime.Remoting.Proxies/RealProxy.cs
* System.Runtime.Remoting/RemotingServices.cs
Add a few MOONLIGHT defines to remove the RemotingProxy from
being used in Moonlight builds. This reduce the number of SSC
and code size
* moonlight_raw_corlib.dll.sources: Remove System.Runtime.Remoting.
Proxies/RemotingProxy.cs from moonlight build
Sebastien Pouliot [Wed, 13 Apr 2011 14:26:46 +0000 (10:26 -0400)]
Redirect contract errors on Moonlight to an browser alert dialog
* corlib/System.Diagnostics.Contracts.Internal/ContractHelper.cs:
For Moonlight (only) change TriggerFailure to reflect into
System.Windows.Browser.dll to show a browser alert dialog if a contract
check fails
* corlib/System.Diagnostics.Contracts/Contract.cs: Avoid code
duplication in AssertMustUseRewriter and call
ContractHelper.TriggerFailure
Marek Safar [Wed, 13 Apr 2011 10:46:23 +0000 (11:46 +0100)]
Fix location of quoted indentifiers
Marek Safar [Wed, 13 Apr 2011 10:34:39 +0000 (11:34 +0100)]
Add check for ambiguous overrides
Marek Safar [Tue, 12 Apr 2011 18:18:02 +0000 (19:18 +0100)]
Add more checks for generic interfaces
Marek Safar [Tue, 12 Apr 2011 15:39:01 +0000 (16:39 +0100)]
Emit correct number of dimensions for empty array initializer of multi-dimensional arrays
Rodrigo Kumpera [Tue, 12 Apr 2011 21:12:43 +0000 (18:12 -0300)]
Avoid some duplicate work when we don't have KW_THREAD
Jeffrey Stedfast [Tue, 12 Apr 2011 20:54:34 +0000 (16:54 -0400)]
Implemented g_mkdir_with_parents() for unix
Jeffrey Stedfast [Tue, 12 Apr 2011 20:04:46 +0000 (16:04 -0400)]
Implemented a bunch of unicode functions for eglib
Atsushi Eno [Tue, 12 Apr 2011 17:21:02 +0000 (02:21 +0900)]
Fix wrong TraceEventType values passed.
Jeffrey Stedfast [Tue, 12 Apr 2011 15:48:43 +0000 (11:48 -0400)]
Optimized QuickSort routines a bit
Marek Habersack [Tue, 12 Apr 2011 14:31:35 +0000 (16:31 +0200)]
[runtime, iomap profiler] g_string_append_vprintf can be used with eglib as well
Marek Habersack [Tue, 12 Apr 2011 14:30:54 +0000 (16:30 +0200)]
[runtime] g_string_append_vprintf can be used with eglib as well
Marek Habersack [Tue, 12 Apr 2011 14:30:22 +0000 (16:30 +0200)]
[eglib] Added the g_string_append_vprintf function
Marek Safar [Tue, 12 Apr 2011 14:15:01 +0000 (15:15 +0100)]
Add support for startup file to evaluator
Marek Safar [Tue, 12 Apr 2011 13:07:08 +0000 (14:07 +0100)]
Be more robust when dealing with string based broken predefined attributes
Marek Safar [Tue, 12 Apr 2011 12:49:02 +0000 (13:49 +0100)]
Check allowed modifiers on property accessors
Marek Safar [Tue, 12 Apr 2011 12:43:51 +0000 (13:43 +0100)]
[686290] Inflate correctly imported nested type used from same type
Martin Baulig [Tue, 12 Apr 2011 04:55:30 +0000 (06:55 +0200)]
Ooops, also enable explicit nulls.
Rodrigo Kumpera [Mon, 11 Apr 2011 21:43:51 +0000 (18:43 -0300)]
Handle attached threads correctly on windows.
* driver.c:
* mono-threads.c: On windows attach/detach threads based on
DllMain DLL_THREAD_(DE|A)TTACH events. This enables us
to correctly handle more cases.
Zoltan Varga [Mon, 11 Apr 2011 21:39:06 +0000 (23:39 +0200)]
Merge branch 'nunit25/2011-04-11' of https://github.com/DavidS/mono into DavidS-nunit25/2011-04-11
Zoltan Varga [Mon, 11 Apr 2011 21:17:36 +0000 (23:17 +0200)]
Avoid putting a seq point at the beginning of finally clauses, they already have one. Fixes #686269.
David Schmitt [Mon, 11 Apr 2011 19:58:59 +0000 (21:58 +0200)]
reformat to coding guidelines
David Schmitt [Mon, 11 Apr 2011 19:53:11 +0000 (21:53 +0200)]
Update to NUnit 2.5 syntax
Zoltan Varga [Mon, 11 Apr 2011 19:12:48 +0000 (21:12 +0200)]
Add some comments to the LLVM backend.
Rodrigo Kumpera [Mon, 11 Apr 2011 18:09:25 +0000 (15:09 -0300)]
Introduce CreateThread wrapper to make mono-threads registration work on windows.
* mono-threads.c: Add mono_threads_wthread_create that
does the same as the pthread_create wrapper.
Rodrigo Kumpera [Mon, 11 Apr 2011 18:08:39 +0000 (15:08 -0300)]
Fix mono-tls usage under windows
Rodrigo Kumpera [Mon, 11 Apr 2011 18:06:17 +0000 (15:06 -0300)]
Add missing files to msvc project
Zoltan Varga [Mon, 11 Apr 2011 18:29:03 +0000 (20:29 +0200)]
Fix the build.
Martin Baulig [Mon, 11 Apr 2011 15:48:47 +0000 (17:48 +0200)]
Add "soft breakpoint" support for ARM.
There is some broken hardware like the HTC Desire HD where we can't
use any signals for single-stepping and breakpoints.
See http://baulig.blogspot.com/2011/04/limiting-page-faults-on-htc-desire-hd.html
for details.
To work around this, we read from a variable instead us using trigger
pages.
Marek Habersack [Mon, 11 Apr 2011 12:39:19 +0000 (14:39 +0200)]
[asp.net] CacheItemPriorityQueueTest improvements
External files are now used to store the test case lists and steps. Added tests for the new Update
operation. Added a new sequence.
Marek Habersack [Mon, 11 Apr 2011 12:38:13 +0000 (14:38 +0200)]
[asp.net] Better handling of item timeout reset in the in-proc session handler
The in-proc session handler no longer removes and re-inserts an item in order to
update its timeout. It is now done using Cache.SetItemTimeout which, in turn, checks
whether the item being updated is already a timed one and, if yes, calls CacheItemPriorityQueue's
Update method for that item. Should the update fail or the item is not yet timed, the item is
enqueued to the priority queue in the regular fashion.
CacheItem got a new member, PriorityQueueIndex to mark its position in the queue's heap for faster
lookup and manipulation.
The CacheItemPriorityQueue.BubbleDown method was rewritten to properly swap items in the heap.
Atsushi Eno [Mon, 11 Apr 2011 11:31:31 +0000 (20:31 +0900)]
Fixed couple of DateTime/DateTimeOffset tests to match .NET 4.0 behavior.
Zoltan Varga [Mon, 11 Apr 2011 10:07:00 +0000 (12:07 +0200)]
Fix a warning.
Zoltan Varga [Sun, 10 Apr 2011 18:27:58 +0000 (20:27 +0200)]
Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438.
Jeffrey Stedfast [Sun, 10 Apr 2011 03:45:24 +0000 (23:45 -0400)]
D'oh, forgot to add g_hash_table_steal() to glib.h
Jeffrey Stedfast [Sun, 10 Apr 2011 03:06:38 +0000 (23:06 -0400)]
Implemented g_hash_table_steal()
Rodrigo Kumpera [Sun, 10 Apr 2011 00:07:16 +0000 (21:07 -0300)]
Replace posix tls with mono-tls so it works on windows too.
Rodrigo Kumpera [Sun, 10 Apr 2011 00:02:50 +0000 (21:02 -0300)]
Implement low level TLS primitives. Can't afford some io-layer weirdness.
Rodrigo Kumpera [Sat, 9 Apr 2011 23:30:37 +0000 (20:30 -0300)]
Add mono-threads.c to msvc build
Rodrigo Kumpera [Sat, 9 Apr 2011 21:50:59 +0000 (18:50 -0300)]
Fist pass into fixing the win32 build
Gonzalo Paniagua Javier [Sat, 9 Apr 2011 19:16:42 +0000 (15:16 -0400)]
[HttpWebRequest] Ignore Transfer-Encoding when there's no content.
If the transfer encoding was set to chunked, we tried to read even when
the response might known to have no content. This led to timeouts.
Fixes bug #686371.
Jeffrey Stedfast [Sat, 9 Apr 2011 18:56:08 +0000 (14:56 -0400)]
Optimized by reducing compares and faster SWAP() routine
Also got rid of the pathological fallback case as it is no longer
needed.
Zoltan Varga [Sat, 9 Apr 2011 14:13:33 +0000 (16:13 +0200)]
Fix a warning.
Rodrigo Kumpera [Fri, 8 Apr 2011 22:32:53 +0000 (19:32 -0300)]
Fix silly C&P bug.
Rodrigo Kumpera [Fri, 8 Apr 2011 22:28:15 +0000 (19:28 -0300)]
Extract mono_threads_is_critical_method
Rodrigo Kumpera [Fri, 8 Apr 2011 21:51:42 +0000 (18:51 -0300)]
Fix null-gc
Rodrigo Kumpera [Fri, 8 Apr 2011 21:49:49 +0000 (18:49 -0300)]
Add mono_gc_is_critical_method to the internal GC api
Marek Habersack [Fri, 8 Apr 2011 21:18:26 +0000 (23:18 +0200)]
[runtime] Check whether linux/magic.h is present before including it
Neale Ferguson [Fri, 8 Apr 2011 19:23:29 +0000 (15:23 -0400)]
Merge branch 'master' of github.com:mono/mono
Neale Ferguson [Fri, 8 Apr 2011 19:16:50 +0000 (15:16 -0400)]
Two vararg related fixes: force placing fpr on stack; eliminate unnecessary update of cookie offset.