Marek Safar [Mon, 22 Nov 2010 17:37:12 +0000 (17:37 +0000)]
Don't multiply fixed buffer size (it's done by runtime). Fixes #654058
Marek Safar [Mon, 22 Nov 2010 16:50:33 +0000 (16:50 +0000)]
Removed SetCharSet
Marek Safar [Mon, 22 Nov 2010 16:49:47 +0000 (16:49 +0000)]
Emit fixed buffers using standard api only
Marek Safar [Mon, 22 Nov 2010 16:37:36 +0000 (16:37 +0000)]
Fix retrieving of StructLayoutAttribute.Pack
Marek Safar [Mon, 22 Nov 2010 15:18:12 +0000 (15:18 +0000)]
group all fixed buffer tests
Marek Safar [Mon, 22 Nov 2010 12:07:56 +0000 (12:07 +0000)]
Tweak async modifier constant value
Alexander Corrado [Thu, 18 Nov 2010 20:20:17 +0000 (12:20 -0800)]
Added 'async' as a recognized method modifier.
Jérémie Laval [Fri, 19 Nov 2010 12:17:11 +0000 (12:17 +0000)]
Use a custom-wrapper for Aggregate operation invocation
Jérémie Laval [Fri, 19 Nov 2010 12:16:42 +0000 (12:16 +0000)]
Remove AreTasksFinished in Scheduler and directly use a non volatile version of IsCompleted
Jérémie Laval [Fri, 19 Nov 2010 12:15:58 +0000 (12:15 +0000)]
Increase the deepSleepTime of ThreadWorker
Marek Safar [Mon, 22 Nov 2010 11:36:46 +0000 (11:36 +0000)]
Comment out no longer used code
Marek Safar [Mon, 22 Nov 2010 11:28:51 +0000 (11:28 +0000)]
Updated mcs tests failures
Marek Safar [Mon, 22 Nov 2010 11:00:58 +0000 (11:00 +0000)]
Add comment details to DefineUnmanagedResource
Marek Safar [Mon, 22 Nov 2010 09:51:57 +0000 (09:51 +0000)]
Define embeded resources using standard API
Marek Safar [Sun, 21 Nov 2010 19:46:04 +0000 (19:46 +0000)]
Move entry point handling to AssemblyDefinition
Marek Safar [Sun, 21 Nov 2010 18:54:23 +0000 (18:54 +0000)]
Make generated assembly attributes container name unique
Marek Safar [Sun, 21 Nov 2010 17:34:51 +0000 (17:34 +0000)]
Don't sign netmodules.
Marek Safar [Sun, 21 Nov 2010 17:23:46 +0000 (17:23 +0000)]
Put back private key handling
Marek Safar [Sun, 21 Nov 2010 10:48:36 +0000 (10:48 +0000)]
Improve handling of netmodules. Fixes #504085
Marek Safar [Fri, 19 Nov 2010 16:21:47 +0000 (16:21 +0000)]
Add AssemblySpec to handle all assembly attributes in same way.
Marek Safar [Fri, 19 Nov 2010 16:12:09 +0000 (16:12 +0000)]
Add missing file
Zoltan Varga [Mon, 22 Nov 2010 04:50:27 +0000 (05:50 +0100)]
Allocate memory for generic instances from the mempool of the image set they belong to. Use this to simplify the freeing of these instances.
Zoltan Varga [Mon, 22 Nov 2010 04:50:10 +0000 (05:50 +0100)]
Fix g_hash_table_remove_all ().
Rodrigo Kumpera [Mon, 22 Nov 2010 03:04:14 +0000 (01:04 -0200)]
Handle cattr with arrays of System.Type.
* metadata-verify.c (is_valid_fixed_param): Handle arrays
of types. They can be encoded as 0x1B or 0x50.
* metadata-verify.c (is_valid_cattr_content): Ditto.
Fixes #655159
Gonzalo Paniagua Javier [Sun, 21 Nov 2010 20:12:45 +0000 (15:12 -0500)]
[File.ReadLines] Dispose the StreamReader in the right place.
The StreamReader was being disposed immediately after the call to
ReadLines() causing the enumerator to fails.
Fixes bug #649464.
Zoltan Varga [Sun, 21 Nov 2010 19:24:05 +0000 (20:24 +0100)]
Free the JIT tls data for the main thread.
Zoltan Varga [Sun, 21 Nov 2010 19:15:03 +0000 (20:15 +0100)]
Allocate generic param constraint data from the image mempool.
Zoltan Varga [Sun, 21 Nov 2010 18:06:45 +0000 (19:06 +0100)]
Unref all handles on shutdown so their memory is freed.
Zoltan Varga [Sun, 21 Nov 2010 05:49:48 +0000 (06:49 +0100)]
Fix some small memory leaks.
Zoltan Varga [Sun, 21 Nov 2010 04:32:15 +0000 (05:32 +0100)]
Remove the AOT log files on 'clean'.
Zoltan Varga [Sun, 21 Nov 2010 04:26:55 +0000 (05:26 +0100)]
Link the iomap profiler against eglib. Fixes #627889.
Zoltan Varga [Sun, 21 Nov 2010 00:48:43 +0000 (01:48 +0100)]
Fix a warning.
Gonzalo Paniagua Javier [Sat, 20 Nov 2010 21:48:01 +0000 (16:48 -0500)]
[HttpListener] Reduce the code inside lock {}
Avoid nesting locks when they are not needed.
Gonzalo Paniagua Javier [Sat, 20 Nov 2010 21:46:07 +0000 (16:46 -0500)]
[HttpListener] Use RWL instead of lock()
Most of the time we just want to read the prefixes instead of
adding/removing one.
Gonzalo Paniagua Javier [Sat, 20 Nov 2010 21:40:03 +0000 (16:40 -0500)]
[Timer] Use a WaitHandle instead of Wait/Pulse
Notifications of changes were sent using Monitor.Pulse() while the
scheduler thread was in a Monitor.Wait(). The way we handle
Monitor.Wait() internally involves creating an manual-reset event and
waiting on it each time Monitor.Wait() is called.
With this change, one 1 event is created for the lifetime of the
appdomain. These seems to help avoiding contention when there are a lot
of timers in play.
Miguel de Icaza [Sat, 20 Nov 2010 18:09:16 +0000 (13:09 -0500)]
Remove experimental from the name
Geoff Norton [Sat, 20 Nov 2010 04:33:13 +0000 (23:33 -0500)]
Fix a potential NRE when using bitmap contexts
Zoltan Varga [Sat, 20 Nov 2010 02:13:04 +0000 (03:13 +0100)]
Increase maximum size of ppc prolog. Fixes #654460.
Zoltan Varga [Sat, 20 Nov 2010 02:08:32 +0000 (03:08 +0100)]
Add support for the processorArchitecture field in assembly names. Fixes #655096.
Mark Probst [Fri, 19 Nov 2010 21:53:50 +0000 (22:53 +0100)]
[sgen] Implement evacuation for parallel mark.
Jackson Harper [Fri, 19 Nov 2010 20:37:16 +0000 (15:37 -0500)]
Parse RequestPathInvalidCharacters properly. Fixes urls with commas in them.
This fixes bug #654476. https://bugzilla.novell.com/show_bug.cgi?id=654476
These values are stored as a comma separated list, not just a list
of chars. So we need to parse out all the values, ignoring whitespace.
Gonzalo Paniagua Javier [Fri, 19 Nov 2010 17:46:48 +0000 (12:46 -0500)]
Web service help fix
Generate the wsdl document with UTF8 encoding.
Gonzalo Paniagua Javier [Fri, 19 Nov 2010 17:36:04 +0000 (12:36 -0500)]
Fix the build.
Zoltan Varga [Fri, 19 Nov 2010 16:19:04 +0000 (17:19 +0100)]
Fix the previous arm EH change.
Miguel de Icaza [Fri, 19 Nov 2010 16:09:28 +0000 (11:09 -0500)]
Remove mentions of Logging and Heap Shot profilers from man page
Zoltan Varga [Fri, 19 Nov 2010 16:07:43 +0000 (17:07 +0100)]
Load dependent assemblies of an aot image from the assembly's basedir. Fixes #654850.
Atsushi Eno [Fri, 19 Nov 2010 12:24:36 +0000 (21:24 +0900)]
Implement XamlType.CanAssignTo(). Remove extra writer state members.
Atsushi Eno [Fri, 19 Nov 2010 07:21:26 +0000 (16:21 +0900)]
Call OnWriteStratObject() after pushing current state.
Atsushi Eno [Fri, 19 Nov 2010 06:05:49 +0000 (15:05 +0900)]
Fix TypeValueSerializer and ValueSerializerContext to work fine with XamlObjectWriter.
Atsushi Eno [Fri, 19 Nov 2010 04:31:03 +0000 (13:31 +0900)]
Remove unnecessary code. String type check is only for XamlXmlWriter.
Atsushi Eno [Fri, 19 Nov 2010 04:04:58 +0000 (13:04 +0900)]
The test is network dependent.
Atsushi Eno [Fri, 19 Nov 2010 04:02:04 +0000 (13:02 +0900)]
Merge branch 'myeisha-xml-fixes'
Atsushi Eno [Fri, 19 Nov 2010 03:28:01 +0000 (12:28 +0900)]
Merge branch 'xml-fixes' of https://github.com/myeisha/mono into myeisha-xml-fixes
Marek Habersack [Fri, 19 Nov 2010 01:25:30 +0000 (02:25 +0100)]
[asp.net] Disabled array clearing on heap resize in CacheItemPriorityQueue as it causes NREX to be thrown with > 8192 items in the queue.
- Rewrote the CacheItem priority queue test generator to generate better code.
- CacheItem in System.Web doesn't have the unused Guid field now (the field is used only for tests)
- Added a huge sequence to CacheItem priority queue tests (10k entries)
Marek Habersack [Thu, 18 Nov 2010 11:32:49 +0000 (12:32 +0100)]
[asp.net] Added a reminder comment about stack scanning in CacheItemPriorityQueue.ResizeHeap
Zoltan Varga [Fri, 19 Nov 2010 00:38:36 +0000 (01:38 +0100)]
Set the thumb bit in the CPSR when resuming from a signal handler to a thumb function on arm.
Zoltan Varga [Thu, 18 Nov 2010 23:54:15 +0000 (00:54 +0100)]
Fix the thumb build.
Gonzalo Paniagua Javier [Thu, 18 Nov 2010 23:15:15 +0000 (18:15 -0500)]
Hush cross-compilation warnings
Zoltan Varga [Thu, 18 Nov 2010 23:02:32 +0000 (00:02 +0100)]
Improve tail call support on x86 too.
Gonzalo Paniagua Javier [Thu, 18 Nov 2010 22:32:56 +0000 (17:32 -0500)]
Don't throw when unable to write autogen keys
It is possible that the user running the ASP.NET application does not
have permission to write to the registry. In this case, the auto
generated keys will be created on every application start.
Zoltan Varga [Thu, 18 Nov 2010 20:09:46 +0000 (21:09 +0100)]
Fix an assert in single stepping if an IL offset doesn't correspond to a seq point. Fixes #654694.
Mark Probst [Thu, 18 Nov 2010 19:50:43 +0000 (20:50 +0100)]
[sgen] Use bit fields for the booleans in MSBlockInfo.
Zoltan Varga [Thu, 18 Nov 2010 17:58:37 +0000 (18:58 +0100)]
Fix infinite recursion in the CompareExchange aot code.
Gonzalo Paniagua Javier [Thu, 18 Nov 2010 17:29:06 +0000 (12:29 -0500)]
Fix g_dir_open et al for windows.
This was using the *A functiones instead of the *W ones and passing in UTF16.
It was also opening and closing the directory just to check that it was
there and then open it again !?.
Fixes bug #645189.
Mark Probst [Thu, 18 Nov 2010 17:01:33 +0000 (18:01 +0100)]
[fix] Fix build.
Sebastien Pouliot [Thu, 18 Nov 2010 16:18:54 +0000 (11:18 -0500)]
Fix bugs in UriFormat.SafeUnescaped
* System/Uri.cs: Add support for 'safe' unescaping rules
* System/UriParser.cs: Add support for SafeUnescaped in Format. Avoid
escaping the # when adding a fragment at the end of the Uri
* Test/System/UriTest.cs: More test cases for GetComponents wrt
different UriFormat
Jonathan Pryor [Thu, 18 Nov 2010 15:49:48 +0000 (10:49 -0500)]
[mdoc export-html] Fixup href generation for nested generics.
In certain situations, the type-parameter counting code doesn't
skip tokens properly. In some circumstances, this results in
invalid links (e.g. refing KeyValuePair`1, not KeyValuePair`2),
in others it results in an XSLT error with "!WTF 2".
The problem was we weren't properly checking for nested types.
Rodrigo Kumpera [Thu, 18 Nov 2010 13:51:19 +0000 (11:51 -0200)]
Handle broken invalid generic instantiations.
* loader.c (method_from_methodspec): Don't crash
if parsing of the generic instance fails.
Fixed #560834
Rodrigo Kumpera [Thu, 18 Nov 2010 13:04:22 +0000 (11:04 -0200)]
Add regression test for #562324
Jérémie Laval [Thu, 18 Nov 2010 12:46:28 +0000 (12:46 +0000)]
Revert the CER-like changes made to SpinLock.Enter method and document the problem.
Rodrigo Kumpera [Thu, 18 Nov 2010 12:33:42 +0000 (10:33 -0200)]
Verify the return value of called functions.
* verify.c (do_invoke_method): Make sure the returned
value is valid in the caller's context.
Fixes #562324
Jérémie Laval [Fri, 12 Nov 2010 15:06:46 +0000 (15:06 +0000)]
Another fix related to the rebase
Jérémie Laval [Fri, 12 Nov 2010 14:37:42 +0000 (14:37 +0000)]
Fix compile error introduced by rebasing
Jérémie Laval [Fri, 22 Oct 2010 14:13:25 +0000 (15:13 +0100)]
Protect TryEnter and Exit methods of SpinLock against asynchronous exceptions.
Jérémie Laval [Fri, 22 Oct 2010 14:09:28 +0000 (15:09 +0100)]
Protect ExitUpgradeable part of ReaderWriterLockSlim against asynchronous exception.
This ensure that the lock state remains consistent even when it's interrupted by an async exception (such as ThreadAbortException).
Jérémie Laval [Fri, 22 Oct 2010 14:04:52 +0000 (15:04 +0100)]
Protect Enter/Exit write part of ReaderWriterLockSlim against asynchronous exception.
This ensure that the lock state remains consistent even when it's interrupted by an async exception (such as ThreadAbortException).
Jérémie Laval [Fri, 22 Oct 2010 14:02:06 +0000 (15:02 +0100)]
Protect Enter/Exit read part of ReaderWriterLockSlim against asynchronous exception.
This ensure that the lock state remains consistent even when it's interrupted by an async exception (such as ThreadAbortException).
Paolo Molaro [Thu, 18 Nov 2010 10:37:03 +0000 (11:37 +0100)]
Provide better coverage of jitted methods to the profiler.
Sometimes we use wrapper methods or other tricks under the hood,
but we provided to the profiler some inconsistent information,
for example the MonoMethod pointer in enter/leave events could be
different from the one used in reporting jit compilation.
This patch introduces a concept of aliased methods: more
than one MonoMethod pointer could correspond to the same jit info
and as such, more end_jit notifications can happen for the same
compiled code. This also means, in turn, that you can get a
end_jit notification for MonoMethod pointers that weren't reported
in a start_jit event.
This partially reverts the change in
2e0067422b9cb, which doesn't
have an associated bug report anyway (this change instead fixes
the issue with unresolved methods in the log profiler).
Paolo Molaro [Wed, 17 Nov 2010 18:40:09 +0000 (19:40 +0100)]
Log profiler: be more specific about unknown methods and classes.
Zoltan Varga [Thu, 18 Nov 2010 02:45:48 +0000 (03:45 +0100)]
Pop the arguments to the throw trampoline from the stack on x86. Fixes #654322.
joncham [Thu, 18 Nov 2010 02:38:56 +0000 (21:38 -0500)]
Update vcxproj files.
joncham [Thu, 18 Nov 2010 02:37:57 +0000 (21:37 -0500)]
Undefine AF_INET6 on windows to disable IPv6 for now.
Jonathan Pryor [Thu, 18 Nov 2010 02:27:38 +0000 (21:27 -0500)]
[mdoc-update] Add C#4 dynamic support for method declarations.
Marek Habersack [Thu, 18 Nov 2010 01:20:12 +0000 (02:20 +0100)]
[system] NameObjectCollections.Init clears the items container and array before reallocating them.
Marek Habersack [Thu, 18 Nov 2010 01:12:13 +0000 (02:12 +0100)]
[asp.net] A few memory usage optimizations.
* System.Web.Caching/CacheItemPriorityQueue.cs: when the heap is resized, the old heap memory
is cleared.
* System.Web.SessionState_2.0/SessionInProcHandler.cs: the session items collection is cleared
when the InProcSessionItem is destroyed
* System.Web/HttpApplicationState.cs: instantiate SessionObjects and StaticObjects collections
only on demand.
Replaced ReaderWriterLock with ReaderWriterLockSlim.
Removed a few variables which aren't needed.
* System.Web/HttpStaticObjectsCollection.cs: replaced a Hashtable with a Dictionary <string, object>.
The objects dictionary is created on demand only.
Gonzalo Paniagua Javier [Thu, 18 Nov 2010 00:19:22 +0000 (19:19 -0500)]
Updated remove_wsq.
remove_wsq() should only clean up the queue when the runtime is shutting down.
In any other case, removing a queue that still contains work items is an error.
Gonzalo Paniagua Javier [Wed, 17 Nov 2010 23:50:37 +0000 (18:50 -0500)]
Fix typo.
Thanks Rolf debugging this.
Gonzalo Paniagua Javier [Wed, 17 Nov 2010 21:32:10 +0000 (16:32 -0500)]
Wrong return value in mono_sem_timedwait()
The return value of mono_sem_timedwait() with a timeout 0 was incorrect
(0=failure, !0=success instead of 0=success). This worked on
non-Windows platforms because the only call with timeout 0 was
expecting the incorrect return value, but it made the mono threadpool
in Windows fail.
Fixes bug #653928.
Atsushi Eno [Wed, 17 Nov 2010 20:52:55 +0000 (05:52 +0900)]
Support x:Arguments in XamlObjectWriter.
Atsushi Eno [Wed, 17 Nov 2010 20:37:18 +0000 (05:37 +0900)]
Avoid examining converted type after using TypeConverter. Add ArgumentAttributed test for object writer.
Atsushi Eno [Wed, 17 Nov 2010 20:12:25 +0000 (05:12 +0900)]
Gave up finding "correct" way to deserialize XamlType and made it special case :(
Atsushi Eno [Wed, 17 Nov 2010 20:11:45 +0000 (05:11 +0900)]
Add TypeValueSerializer, as it does not seem to work fine with TypeConverter. And tests.
Gonzalo Paniagua Javier [Wed, 17 Nov 2010 19:01:28 +0000 (14:01 -0500)]
User name and home directory initialization
User name and home directory are initialized at the same time from the
information in /etc/passwd if possible.
Atsushi Eno [Wed, 17 Nov 2010 17:36:33 +0000 (02:36 +0900)]
Rewrote ValueSerializer.GetSerializerFor() with couple of tests.
Atsushi Eno [Wed, 17 Nov 2010 17:35:59 +0000 (02:35 +0900)]
Add missing test file.
Paolo Molaro [Wed, 17 Nov 2010 17:18:35 +0000 (18:18 +0100)]
Log profiler: implemented command server and ondemand heapshot.
Jérémie Laval [Wed, 17 Nov 2010 15:46:20 +0000 (15:46 +0000)]
[Task scheduler] Refactoring and cleanup. Removed a bunch of not-so needed lambdas to avoid delegate invocation cost.
Jérémie Laval [Wed, 17 Nov 2010 15:45:27 +0000 (15:45 +0000)]
[Partitioner] Use custom made enumerator for GetPartitions proxying from GetOrderablePartitions
Jérémie Laval [Wed, 17 Nov 2010 15:44:38 +0000 (15:44 +0000)]
[CancellationToken] Speed up ThrowIfCancellationRequested operation
Rodrigo Kumpera [Wed, 17 Nov 2010 14:59:38 +0000 (12:59 -0200)]
Handle method load failure.
* loader.c (find_method_in_class): Properly
handle failure of loading a method.
* loader.c (find_method_in_class): Handle method load
failure. We can't just bail out since working code
depends on working while having broken methods in the
mix.
Fixes #562009