mono.git
10 years agoMerge pull request #268 from pcc/menudeactivate
Alex Rønne Petersen [Mon, 21 Oct 2013 18:21:06 +0000 (11:21 -0700)]
Merge pull request #268 from pcc/menudeactivate

Cause MenuDeactivate event to be delivered when appropriate

10 years agoMerge pull request #260 from pcc/topmost
Alex Rønne Petersen [Mon, 21 Oct 2013 18:19:47 +0000 (11:19 -0700)]
Merge pull request #260 from pcc/topmost

X11: improve handling of WS_EX_TOPMOST

10 years agoMerge pull request #565 from rneatherway/master
Michael Hutchinson [Mon, 21 Oct 2013 18:09:23 +0000 (11:09 -0700)]
Merge pull request #565 from rneatherway/master

This is a possible fix for finding xml documentation files

10 years agoMerge pull request #587 from madewokherd/gdipdllmap
Alex Rønne Petersen [Mon, 21 Oct 2013 17:00:26 +0000 (10:00 -0700)]
Merge pull request #587 from madewokherd/gdipdllmap

Ignore the gdiplus dllmap on Windows.

10 years agoRemove commented-out irix path from configure.in.
Alex Rønne Petersen [Mon, 21 Oct 2013 16:17:10 +0000 (18:17 +0200)]
Remove commented-out irix path from configure.in.

10 years agoAdd mono_gc_wbarrier_generic_store_atomic () function.
Alex Rønne Petersen [Mon, 21 Oct 2013 15:53:28 +0000 (17:53 +0200)]
Add mono_gc_wbarrier_generic_store_atomic () function.

This is used in place of mono_gc_wbarrier_generic_store () when
we need the store to be atomic with release semantics.

10 years agoAdd an extension point in atomic.c.
Alex Rønne Petersen [Fri, 18 Oct 2013 00:29:02 +0000 (02:29 +0200)]
Add an extension point in atomic.c.

10 years agoUse slow 64-bit cmpxchg for 32-bit ARM, MIPS, and PowerPC.
Alex Rønne Petersen [Fri, 18 Oct 2013 00:26:58 +0000 (02:26 +0200)]
Use slow 64-bit cmpxchg for 32-bit ARM, MIPS, and PowerPC.

GCC doesn't provide a 64-bit __sync_val_compare_and_swap intrinsic
for these architectures.

10 years agoCorrect our implementation of Thread.VolatileRead ()/VolatileWrite ().
Alex Rønne Petersen [Fri, 6 Sep 2013 02:16:21 +0000 (04:16 +0200)]
Correct our implementation of Thread.VolatileRead ()/VolatileWrite ().

We have various issues:

* All of the functions assumed that doing volatile loads/stores was
  enough, when load-acquire, store-release semantics were actually
  needed. This may have worked before purely by chance. We now use
  proper memory barriers so that we don't have to hope for the
  compiler and CPU to do the right thing.
* Removes the hack for 64-bit quantities on 32-bit systems. This is
  no longer needed now that we use explicit memory barriers in
  these functions. Also, these functions are not supposed to do
  atomic reads/writes in the first place - they're purely about the
  memory barrier semantics.
* The VolatileWrite (object&, object) overload was not using the
  volatile qualifier at all, thus not getting volatile semantics
  as per: http://gcc.gnu.org/onlinedocs/gcc/Volatiles.html

10 years agoUse InterlockedAdd64 () for Interlocked.Add (long&, long).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:31:18 +0000 (20:31 +0200)]
Use InterlockedAdd64 () for Interlocked.Add (long&, long).

10 years agoUse InterlockedAdd () for Interlocked.Add (int&, int).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:31:06 +0000 (20:31 +0200)]
Use InterlockedAdd () for Interlocked.Add (int&, int).

10 years agoUse InterlockedExchange64 () for Interlocked.Exchange (double&, double).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:23:36 +0000 (20:23 +0200)]
Use InterlockedExchange64 () for Interlocked.Exchange (double&, double).

10 years agoUse InterlockedExchange64 () for Interlocked.Exchange (long&, long).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:22:36 +0000 (20:22 +0200)]
Use InterlockedExchange64 () for Interlocked.Exchange (long&, long).

10 years agoUse InterlockedDecrement64 () for Interlocked.Decrement (long&).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:20:53 +0000 (20:20 +0200)]
Use InterlockedDecrement64 () for Interlocked.Decrement (long&).

10 years agoUse InterlockedIncrement64 () for Interlocked.Increment (long&).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:20:20 +0000 (20:20 +0200)]
Use InterlockedIncrement64 () for Interlocked.Increment (long&).

10 years agoUse InterlockedRead64 () for Interlocked.Read (long&).
Alex Rønne Petersen [Wed, 25 Sep 2013 18:19:18 +0000 (20:19 +0200)]
Use InterlockedRead64 () for Interlocked.Read (long&).

10 years agoUse __sync_sub_and_fetch () for atomic decrements for clarity.
Alex Rønne Petersen [Wed, 25 Sep 2013 18:13:37 +0000 (20:13 +0200)]
Use __sync_sub_and_fetch () for atomic decrements for clarity.

10 years agoMove definition of NEED_64BIT_CMPXCHG_FALLBACK to top of atomic.c.
Alex Rønne Petersen [Wed, 25 Sep 2013 18:00:46 +0000 (20:00 +0200)]
Move definition of NEED_64BIT_CMPXCHG_FALLBACK to top of atomic.c.

10 years agoAdd interlocked read/write functions to atomic.c/.h.
Alex Rønne Petersen [Wed, 25 Sep 2013 17:59:37 +0000 (19:59 +0200)]
Add interlocked read/write functions to atomic.c/.h.

These are guaranteed to have sequential consistency regardless
of the bitness of the machine they run on.

10 years agoAdd implementations of various interlocked functions to atomic.c/.h.
Alex Rønne Petersen [Wed, 25 Sep 2013 17:26:24 +0000 (19:26 +0200)]
Add implementations of various interlocked functions to atomic.c/.h.

Mainly 64-bit variants, but also InterlockedAdd ().

10 years agoUse mono_memory_barrier () for Thread.MemoryBarrier ().
Alex Rønne Petersen [Wed, 25 Sep 2013 17:06:24 +0000 (19:06 +0200)]
Use mono_memory_barrier () for Thread.MemoryBarrier ().

This gets rid of the rather hacky lock-based barrier.

10 years agoKill the Cygwin hack in mono-membar.h.
Alex Rønne Petersen [Wed, 25 Sep 2013 17:03:40 +0000 (19:03 +0200)]
Kill the Cygwin hack in mono-membar.h.

We only support GCC 4.x in Cygwin now.

10 years agoRemove MONO_ARCH_SAVE_REGS from threading icalls.
Alex Rønne Petersen [Wed, 25 Sep 2013 17:00:57 +0000 (19:00 +0200)]
Remove MONO_ARCH_SAVE_REGS from threading icalls.

10 years agoUse GCC atomics on s390x.
Alex Rønne Petersen [Tue, 24 Sep 2013 15:27:01 +0000 (17:27 +0200)]
Use GCC atomics on s390x.

10 years agoRemove unneeded ARM code from atomic.c.
Alex Rønne Petersen [Tue, 24 Sep 2013 15:20:13 +0000 (17:20 +0200)]
Remove unneeded ARM code from atomic.c.

10 years agoUse host preprocessor identifiers in atomic.c, not target.
Alex Rønne Petersen [Tue, 24 Sep 2013 15:16:17 +0000 (17:16 +0200)]
Use host preprocessor identifiers in atomic.c, not target.

Here we care about the system we run on, not the kind of
system that Mono is built to compile for.

10 years agoSimplify the ifdeffery in atomic.c/.h a bit.
Alex Rønne Petersen [Tue, 24 Sep 2013 15:14:55 +0000 (17:14 +0200)]
Simplify the ifdeffery in atomic.c/.h a bit.

10 years agoRemove unneeded NetBSD code path from atomic.h.
Alex Rønne Petersen [Tue, 24 Sep 2013 14:59:11 +0000 (16:59 +0200)]
Remove unneeded NetBSD code path from atomic.h.

10 years agoMerge pull request #783 from alistair/timezoneinfo_fix_for__convert_utc_to_local
Marek Safar [Sat, 19 Oct 2013 15:34:26 +0000 (08:34 -0700)]
Merge pull request #783 from alistair/timezoneinfo_fix_for__convert_utc_to_local

Bug 15373: Return Local DateTime instead of Unspecified for >net_4_0

10 years agoReturn Local DateTime instead of Unspecified for >net_4_0
Alistair Bush [Sat, 19 Oct 2013 10:41:17 +0000 (23:41 +1300)]
Return Local DateTime instead of Unspecified for >net_4_0

10 years ago[runtime] JIT debugging option to optimize only single methods.
Mark Probst [Fri, 18 Oct 2013 19:46:11 +0000 (12:46 -0700)]
[runtime] JIT debugging option to optimize only single methods.

The --single-method option run regression tests from an assembly, like
--regression.  Instead of going through a list of optimizations,
however, it takes one optimization combination, runs all tests with
all optimizations turned off, while gathering a list of which methods
were jitted.  Then, for each jitted method, it runs all tests again,
with the optimizations applied to only that one method, stopping as
soon as a test fails.  Example:

    mono --single-method=branch,peephole basic-float.exe

10 years agoDisable a corlib test assertion which is no longer true.
Zoltan Varga [Fri, 18 Oct 2013 20:23:54 +0000 (22:23 +0200)]
Disable a corlib test assertion which is no longer true.

10 years agoMerge pull request #768 from madewokherd/gcnotdll
Rodrigo Kumpera [Fri, 18 Oct 2013 18:09:11 +0000 (11:09 -0700)]
Merge pull request #768 from madewokherd/gcnotdll

Define GC_NOT_DLL for included boehm on win32.

10 years ago[sgen] Set the TLS key offsets in one place in create_allocator ().
Zoltan Varga [Fri, 18 Oct 2013 17:28:39 +0000 (19:28 +0200)]
[sgen] Set the TLS key offsets in one place in create_allocator ().

10 years ago[aot] Add the JIT icall wrappers later, so it can pick up the JIT icalls registered...
Zoltan Varga [Fri, 18 Oct 2013 17:25:09 +0000 (19:25 +0200)]
[aot] Add the JIT icall wrappers later, so it can pick up the JIT icalls registered by the managed allocators.

10 years ago[runtime] Fix the build.
Zoltan Varga [Fri, 18 Oct 2013 16:32:28 +0000 (18:32 +0200)]
[runtime] Fix the build.

10 years ago[runtime] Really fix the build.
Zoltan Varga [Fri, 18 Oct 2013 16:14:25 +0000 (18:14 +0200)]
[runtime] Really fix the build.

10 years ago[runtime] Fix the build.
Zoltan Varga [Fri, 18 Oct 2013 16:10:30 +0000 (18:10 +0200)]
[runtime] Fix the build.

10 years ago[runtime] Add a missing file.
Zoltan Varga [Fri, 18 Oct 2013 16:01:44 +0000 (18:01 +0200)]
[runtime] Add a missing file.

10 years ago[runtime] Clean up the usage of the CEE_MONO_TLS opcode in wrappers. Instead of passi...
Zoltan Varga [Fri, 18 Oct 2013 15:54:01 +0000 (17:54 +0200)]
[runtime] Clean up the usage of the CEE_MONO_TLS opcode in wrappers. Instead of passing it the tls offset, pass one of the TLS_KEY_ constants defined in mono-tls.h, and resolve the offset in the JIT. This allows these wrappers to work with AOT.

10 years agoMerge pull request #781 from directhex/master
Zoltan Varga [Fri, 18 Oct 2013 09:22:32 +0000 (02:22 -0700)]
Merge pull request #781 from directhex/master

SPARC build fixes

10 years agoDefine REG_SP on SPARC in sgen-archdep.h, if needed.
Jo Shields [Fri, 18 Oct 2013 08:36:00 +0000 (09:36 +0100)]
Define REG_SP on SPARC in sgen-archdep.h, if needed.

This definition is stolen from exceptions-sparc.c

10 years agoFix MSVC build.
Jonathan Lima [Thu, 26 Sep 2013 16:56:16 +0000 (13:56 -0300)]
Fix MSVC build.

10 years agoAdd missing ; characters to mono-hwcap-sparc.c. Fixes build failure.
Jo Shields [Fri, 18 Oct 2013 08:07:52 +0000 (09:07 +0100)]
Add missing ; characters to mono-hwcap-sparc.c. Fixes build failure.

10 years agoMerge pull request #762 from echampet/wsdl
Atsushi Eno [Fri, 18 Oct 2013 07:52:08 +0000 (00:52 -0700)]
Merge pull request #762 from echampet/wsdl

[FIX] Bug 267: wsdl fails with "Argument is out of range."

10 years agoMerge pull request #766 from remobjects/resx-delete-on-clean
Atsushi Eno [Fri, 18 Oct 2013 07:49:51 +0000 (00:49 -0700)]
Merge pull request #766 from remobjects/resx-delete-on-clean

When generating resources, it intends to add the .resources file to the ...

10 years agoMerge pull request #767 from ovatsus/Bug14922
Atsushi Eno [Fri, 18 Oct 2013 07:48:26 +0000 (00:48 -0700)]
Merge pull request #767 from ovatsus/Bug14922

Fix for #14922

10 years agoFill out AssemblyName.ProcessorArchitecture for assemblies. Fixes #15347.
Zoltan Varga [Thu, 17 Oct 2013 09:53:17 +0000 (11:53 +0200)]
Fill out AssemblyName.ProcessorArchitecture for assemblies. Fixes #15347.

10 years agoBetter check for open generic types in probing expression. Fixes #15422
Marek Safar [Wed, 16 Oct 2013 18:21:18 +0000 (20:21 +0200)]
Better check for open generic types in probing expression. Fixes #15422

10 years agoFixes too early optimization of binary &&/& bool constants. Fixes part of #15392
Marek Safar [Wed, 16 Oct 2013 17:17:25 +0000 (19:17 +0200)]
Fixes too early optimization of binary &&/& bool constants. Fixes part of #15392

10 years agoDummy test commit.
Martin Baulig [Wed, 16 Oct 2013 09:24:57 +0000 (11:24 +0200)]
Dummy test commit.

10 years ago[sgen] Don't crash on nurseries of 512M or larger.
Mark Probst [Tue, 15 Oct 2013 23:47:18 +0000 (16:47 -0700)]
[sgen] Don't crash on nurseries of 512M or larger.

10 years ago[PCL]: Update the PCL Facade Assemblies.
Martin Baulig [Tue, 15 Oct 2013 18:30:29 +0000 (20:30 +0200)]
[PCL]: Update the PCL Facade Assemblies.

10 years ago[aot] Only use an AOT shortcut in the trampoline code if its safe to do so. Fixes...
Zoltan Varga [Tue, 15 Oct 2013 15:01:24 +0000 (17:01 +0200)]
[aot] Only use an AOT shortcut in the trampoline code if its safe to do so. Fixes #15345.

10 years agoMakefile magic ...
Martin Baulig [Tue, 15 Oct 2013 12:49:49 +0000 (14:49 +0200)]
Makefile magic ...

10 years agoFixes CodeDom regression introduced by 66d4b82a871667b3317d4e43b855d1fc1db22108
Marek Safar [Mon, 14 Oct 2013 17:17:23 +0000 (19:17 +0200)]
Fixes CodeDom regression introduced by 66d4b82a871667b3317d4e43b855d1fc1db22108

10 years agoMerge pull request #779 from LogosBible/UTF8Encoding
Marek Safar [Mon, 14 Oct 2013 07:32:13 +0000 (00:32 -0700)]
Merge pull request #779 from LogosBible/UTF8Encoding

Fixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.

10 years agoFixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.
Martin Potter [Sun, 13 Oct 2013 00:19:52 +0000 (17:19 -0700)]
Fixing bugs in UTF8Encoding's GetMaxByteCount and GetMaxCharCount.

The previous implementation of GetMaxByteCount has two bugs: it incorrectly took into account the byte order mark and it was taking the max of a byte count (3) and a character count (EncoderFallback.MaxCharCount). This could result in returning the max number of bytes required to convert a string that was less than the number bytes used when converting the string.

GetMaxCharCount did not previously take into account DecoderFallback.MaxCharCount or the fact that there may still be part of a surrogate pair left on the buffer from a previous call to convert.

I removed the #if NET_2_0 conditionals and NotWorking category since these methods now return results consistent with Microsoft's implementation. I also added two simple tests for custom EncoderFallback and DecoderFallback cases.

This commit is licensed under MIT/X11.

10 years agoMerge pull request #774 from DavidS/patch-1
Jeffrey Stedfast [Sat, 12 Oct 2013 22:07:27 +0000 (15:07 -0700)]
Merge pull request #774 from DavidS/patch-1

Minor fix to avoid ArgumentOutOfRangeException

10 years ago[runtime] Run the tests in mono/tests in sorted order.
Zoltan Varga [Sat, 12 Oct 2013 13:17:59 +0000 (15:17 +0200)]
[runtime] Run the tests in mono/tests in sorted order.

10 years ago[xdebug] Avoid using a MonoDebugMethodJitInfo structure after it has been freed....
Zoltan Varga [Sat, 12 Oct 2013 00:49:10 +0000 (02:49 +0200)]
[xdebug] Avoid using a MonoDebugMethodJitInfo structure after it has been freed. Fixes #15090.

10 years ago[mono-api-html] Several indexer properties (Item) can have the name (with different...
Sebastien Pouliot [Fri, 11 Oct 2013 20:44:59 +0000 (16:44 -0400)]
[mono-api-html] Several indexer properties (Item) can have the name (with different parameters)

10 years ago[mono-api-html] Output nested type correctly (was missing the declaring type name)
Sebastien Pouliot [Fri, 11 Oct 2013 15:05:02 +0000 (11:05 -0400)]
[mono-api-html] Output nested type correctly (was missing the declaring type name)

10 years agoThe first definite assignment cleanup
Marek Safar [Fri, 11 Oct 2013 13:28:54 +0000 (15:28 +0200)]
The first definite assignment cleanup

10 years ago[regalloc2] Handle sreg3.
Mark Probst [Thu, 10 Oct 2013 23:54:26 +0000 (16:54 -0700)]
[regalloc2] Handle sreg3.

10 years ago[regalloc2] Lazily allocate intervals.
Mark Probst [Thu, 10 Oct 2013 23:47:33 +0000 (16:47 -0700)]
[regalloc2] Lazily allocate intervals.

10 years agoMerge pull request #777 from nealef/master
Rodrigo Kumpera [Thu, 10 Oct 2013 18:44:45 +0000 (11:44 -0700)]
Merge pull request #777 from nealef/master

Remove debug message

10 years agoRemove debug message
Neale Ferguson [Thu, 10 Oct 2013 18:37:43 +0000 (14:37 -0400)]
Remove debug message

10 years agoMerge pull request #776 from nealef/master
Rodrigo Kumpera [Thu, 10 Oct 2013 18:26:54 +0000 (11:26 -0700)]
Merge pull request #776 from nealef/master

Fix memory leaks in Oracle Client. The largest leaks come from the curso...

10 years agoFix memory leaks in Oracle Client. The largest leaks come from the cursors being...
Neale Ferguson [Thu, 10 Oct 2013 17:17:17 +0000 (13:17 -0400)]
Fix memory leaks in Oracle Client. The largest leaks come from the cursors being created but never freed in OracleParameter.cs. The size of the memory used by these cursors varies from tens to thousands of bytes depending on the statement being executed. Several hours of transactions can lead to OOM errors. The other fixes are relatively minor but they do clean up other unmanaged memory not being returned.

10 years agobxc#13642: MacNetworkChange: implement using managed code
Aaron Bockover [Thu, 10 Oct 2013 16:35:02 +0000 (12:35 -0400)]
bxc#13642: MacNetworkChange: implement using managed code

The previous version used SCNetworkReachability
in C inside libMonoPosixHelper. This was less
than ideal and made it more problematic for
supporting iOS as it doesn't actually link
MPH in.

Rewrite using P/Invokes directly into the
SCNetworkReachability APIs for Mac OS X and
iOS.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=13642
for iOS and Mac OS X.

10 years agoCompound assignment of optimized binary constant needs to decompose it first. Fixes...
Marek Safar [Thu, 10 Oct 2013 14:05:59 +0000 (16:05 +0200)]
Compound assignment of optimized binary constant needs to decompose it first. Fixes #15315

10 years agoBetter debugger visualization for .net 1.1 style custom collections
Marek Safar [Thu, 10 Oct 2013 10:10:06 +0000 (12:10 +0200)]
Better debugger visualization for .net 1.1 style custom collections

10 years ago[mono-api-html] Output C# 'char' instead of 'System.Char'
Sebastien Pouliot [Thu, 10 Oct 2013 12:11:50 +0000 (08:11 -0400)]
[mono-api-html] Output C# 'char' instead of 'System.Char'

10 years ago[mono-api-html] Do not produce (near-)empty files when no (public) changes are detected
Sebastien Pouliot [Thu, 10 Oct 2013 12:10:44 +0000 (08:10 -0400)]
[mono-api-html] Do not produce (near-)empty files when no (public) changes are detected

10 years agoEnsure that CodeDom generated temporary directory is always created. Fixes #12202
Marek Safar [Thu, 10 Oct 2013 09:22:03 +0000 (11:22 +0200)]
Ensure that CodeDom generated temporary directory is always created. Fixes #12202

10 years ago[mono-api-html] Show 'static' fields as such
Sebastien Pouliot [Thu, 10 Oct 2013 00:59:21 +0000 (20:59 -0400)]
[mono-api-html] Show 'static' fields as such

10 years agoProcess/compare/output method's generic parameters [#15311]
Sebastien Pouliot [Thu, 10 Oct 2013 00:30:58 +0000 (20:30 -0400)]
Process/compare/output method's generic parameters [#15311]

10 years agoAnonymous type are shared across module hence need module counters.
Marek Safar [Wed, 9 Oct 2013 18:00:33 +0000 (20:00 +0200)]
Anonymous type are shared across module hence need module counters.

10 years agoFix net_2_0 test.
Rodrigo Kumpera [Wed, 9 Oct 2013 16:58:44 +0000 (12:58 -0400)]
Fix net_2_0 test.

10 years agoMerge pull request #775 from directhex/fix-gendarme-doc-generation
Jonathan Pryor [Wed, 9 Oct 2013 15:07:05 +0000 (08:07 -0700)]
Merge pull request #775 from directhex/fix-gendarme-doc-generation

[monodoc] Ensure we don't try to use <Parameters/> when it might be null. Fixes Gendarme doc generation.

10 years ago[monodoc] Support fields that match operator naming convention
Jo Shields [Wed, 9 Oct 2013 14:02:35 +0000 (16:02 +0200)]
[monodoc] Support fields that match operator naming convention

10 years ago[monodoc] Add a test for ba222d4eb939ef097dd2b77b1fea5c3b8a60b310
Jo Shields [Wed, 9 Oct 2013 13:57:47 +0000 (15:57 +0200)]
[monodoc] Add a test for ba222d4eb939ef097dd2b77b1fea5c3b8a60b310

10 years ago[monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendar...
Jo Shields [Wed, 9 Oct 2013 13:31:23 +0000 (15:31 +0200)]
[monodoc] Ensure we don't try to use <Parameters> when it might be null. Fixes Gendarme doc generation.

10 years agoAdjust defines to check for 4_0 instead of 3_0
Gustavo Guerra [Wed, 9 Oct 2013 12:38:35 +0000 (13:38 +0100)]
Adjust defines to check for 4_0 instead of 3_0

10 years ago anonymous: move counters to TypeContainer
Marek Safar [Wed, 9 Oct 2013 12:27:19 +0000 (14:27 +0200)]
anonymous: move counters to TypeContainer

    With the anonymous counters on ModuleContainer,
    anonymous method and type names will be generated
    in a way that depends on the order of the sources
    passed to mcs. This can cause undesirable API
    and IL differences.

    Moving the counters to TypeContainer instead
    avoids this issue.

10 years agoEnum IConvertible can convert to same enum or System.Enum. Fixes #15289
Marek Safar [Wed, 9 Oct 2013 12:04:47 +0000 (14:04 +0200)]
Enum IConvertible can convert to same enum or System.Enum. Fixes #15289

10 years agoCleanup redundant code
Marek Safar [Wed, 9 Oct 2013 11:52:10 +0000 (13:52 +0200)]
Cleanup redundant code

10 years agoSimplify work item registration for internal work items
Marek Safar [Wed, 9 Oct 2013 10:51:16 +0000 (12:51 +0200)]
Simplify work item registration for internal work items

10 years agoRemove redundant initialization
Marek Safar [Wed, 9 Oct 2013 09:39:14 +0000 (11:39 +0200)]
Remove redundant initialization

10 years agoAllow to queue multicast delegates in thread-pool
Marek Safar [Wed, 9 Oct 2013 09:26:34 +0000 (11:26 +0200)]
Allow to queue multicast delegates in thread-pool

10 years agoRelease continuation ancestor before running. Fixes #15036
Marek Safar [Wed, 9 Oct 2013 08:43:41 +0000 (10:43 +0200)]
Release continuation ancestor before running. Fixes #15036

10 years agoMinor fix to avoid ArgumentOutOfRangeException
David Schmitt [Wed, 9 Oct 2013 08:36:37 +0000 (10:36 +0200)]
Minor fix to avoid ArgumentOutOfRangeException

When the file is empty, data[0] would throw and swallow the original exception.

10 years agoAdds async type inference of void return type. Fixes #15238
Marek Safar [Tue, 8 Oct 2013 17:30:32 +0000 (19:30 +0200)]
Adds async type inference of void return type. Fixes #15238

10 years agoMake Task.Delay more reliable. Fixes #14585
Marek Safar [Tue, 8 Oct 2013 08:15:21 +0000 (10:15 +0200)]
Make Task.Delay more reliable. Fixes #14585

10 years ago[System.ComponentModel.DataAnnotations] Implemented EmailAddressAttribute.IsValid()
Jeffrey Stedfast [Mon, 7 Oct 2013 21:51:17 +0000 (17:51 -0400)]
[System.ComponentModel.DataAnnotations] Implemented EmailAddressAttribute.IsValid()

10 years agoElement() and Elements() could also reduce use of extraneous iterators.
Atsushi Eno [Mon, 7 Oct 2013 16:57:17 +0000 (01:57 +0900)]
Element() and Elements() could also reduce use of extraneous iterators.

10 years agoFallback to $LANG if $LC_ALL isn't set.
Jonathan Pryor [Mon, 7 Oct 2013 16:27:30 +0000 (12:27 -0400)]
Fallback to $LANG if $LC_ALL isn't set.

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15214

This is a regression introduced in be532638.

Xamarin.Android assumes that the $LANG environment variable can be
used to control System.Globalization.CultureInfo.CurrentCulture,
setting LANG based on the current Java locale.

This was broken in be532638 because $LANG was no longer being checked
to determine the default locale, as $LC_ALL was not set.

Fix the fallback logic so that $LANG is checked when $LC_ALL is not.

10 years agoreduce memory use on Attribute() caused by Attributes().
Atsushi Eno [Mon, 7 Oct 2013 16:25:51 +0000 (01:25 +0900)]
reduce memory use on Attribute() caused by Attributes().

10 years agoInline more is instance checks
Marek Safar [Mon, 7 Oct 2013 15:04:13 +0000 (17:04 +0200)]
Inline more is instance checks