mono.git
9 years agoMerge branch 'patch-1' of https://github.com/ReubenBond/mono into ReubenBond-patch-1
Alexander Köplinger [Fri, 7 Nov 2014 18:34:27 +0000 (19:34 +0100)]
Merge branch 'patch-1' of https://github.com/ReubenBond/mono into ReubenBond-patch-1

9 years agoMerge pull request #1394 from kjpou1/master
Miguel de Icaza [Fri, 7 Nov 2014 17:20:29 +0000 (12:20 -0500)]
Merge pull request #1394 from kjpou1/master

Fix GetUsing to output the using name instead of -> using Mono.CSharp.Na...

9 years agoAdd space
Kenneth Pouncey [Fri, 7 Nov 2014 15:59:42 +0000 (16:59 +0100)]
Add space

9 years agoAdd space
Kenneth Pouncey [Fri, 7 Nov 2014 15:57:41 +0000 (16:57 +0100)]
Add space

9 years agoFix GetUsing to output the using name instead of -> using Mono.CSharp.NamespaceExpres...
Kenneth Pouncey [Fri, 7 Nov 2014 15:41:05 +0000 (16:41 +0100)]
Fix GetUsing to output the using name instead of -> using Mono.CSharp.NamespaceExpression; <- for every using statement that was set
+ Fix NRE when source_file or source_file.Usings is null. This will now return back an empty string or empty List
+ **Note** that we are returning the ToString() value of NamespaceExpression which is the full resolved namespace of "System.Drawing" instead of "Drawing".
+ Add ToString override for NamespaceExpression to return the full resolved name of the namespace.

9 years ago[Mono.Posix] consider nano time info in UnixFileSystemInfo.Last*Time.
Atsushi Eno [Fri, 7 Nov 2014 12:42:25 +0000 (20:42 +0800)]
[Mono.Posix] consider nano time info in UnixFileSystemInfo.Last*Time.

Before this change, those Last*Time properties returned only based on
seconds (truncated), which could cause inaccurate time comparison.
Consider code like this:

var fileUpdated = DateTime.Now;
...
File.WriteAllText (path, "foobar");
...
if (fileUpdated > new UnixFileInfo (path).LastWriteTime)
   OnUpdatedFile (path);

This could always result in raising update event, even if there was
no update after writing.

Last*Time With milliseconds makes it very unlikely to happen.

9 years ago[xml] XmlElement.InnserXml seems to preserve whitespaces.
Atsushi Eno [Fri, 7 Nov 2014 07:35:40 +0000 (15:35 +0800)]
[xml] XmlElement.InnserXml seems to preserve whitespaces.

Fix for mdoc test regression (see commit comments on #661430f).

9 years ago[runtime] Use a separate signal with the SA_RESTART flag set for suspending/resuming...
Zoltan Varga [Fri, 7 Nov 2014 00:44:57 +0000 (19:44 -0500)]
[runtime] Use a separate signal with the SA_RESTART flag set for suspending/resuming threads during debugging on android, since lots of android native code cannot handle the interruptions caused by the normal abort signal. Fixes #22968/#23987.

9 years agoInstall Mono.Cecil in the net 4.5 profile.
Zoltan Varga [Wed, 5 Nov 2014 22:31:48 +0000 (17:31 -0500)]
Install Mono.Cecil in the net 4.5 profile.

9 years agoRevert "Disable building the NET 2.0 profile by default."
Zoltan Varga [Wed, 5 Nov 2014 21:56:38 +0000 (16:56 -0500)]
Revert "Disable building the NET 2.0 profile by default."

This reverts commit fe265502cc517e8374ce2988f31e88d4f3554d8a.

Revert this for now as it breaks too much stuff.

9 years agoChanged script DateTime.Now_Test.sh to use the compiled csharp.exe.
Marcos Henrich [Wed, 5 Nov 2014 16:38:39 +0000 (16:38 +0000)]
Changed script DateTime.Now_Test.sh to use the compiled csharp.exe.

9 years agoTZ display name changes no longer reset adjustment rules.
Marcos Henrich [Wed, 5 Nov 2014 16:30:13 +0000 (16:30 +0000)]
TZ display name changes no longer reset adjustment rules.
Reset of adjustment rules is mandatory when the base offset is changed because the rules are relative to the base offset.
Adjustment rules are now kept until the base offset changes.

9 years ago[linker] blacklist System.Net.Sockets.MulticastOption fields
Radek Doulik [Wed, 5 Nov 2014 12:00:37 +0000 (13:00 +0100)]
[linker] blacklist System.Net.Sockets.MulticastOption fields

 - merge fix for https://bugzilla.xamarin.com/show_bug.cgi?id=21578
   the MulticastOption's 'private IPAddress local' field was
   removed by linker and the app crashed later at runtime.
 - when System.Net.Sockets.MulticastOption object
   is passed to System.Net.Sockets.Socket.SetSocketOption
   and thru it to System.Net.Sockets.Socket.SetSocketOption_internal
   it accesses passed object fields
   (thru few more native calls).

9 years agoMerge pull request #1387 from akoeplinger/improve-bug652331_2
Zoltan Varga [Wed, 5 Nov 2014 04:18:11 +0000 (23:18 -0500)]
Merge pull request #1387 from akoeplinger/improve-bug652331_2

[System.ServiceModel] Fixed Bug652331_2 test that failed on Jenkins by increasing timeout

9 years ago[arm] Fix OP_LOCALLOC on arm so it correctly adjusts sp with the param area size...
Zoltan Varga [Wed, 5 Nov 2014 03:45:14 +0000 (22:45 -0500)]
[arm] Fix OP_LOCALLOC on arm so it correctly adjusts sp with the param area size even if the size is large. Fixes #24221.

9 years ago[profiler] Expose new profiling modes and allow sampling rate to be set when using...
Rodrigo Kumpera [Wed, 5 Nov 2014 00:29:45 +0000 (19:29 -0500)]
[profiler] Expose new profiling modes and allow sampling rate to be set when using signal-based sampling.

9 years ago[profiler] Add new profiler API mono_profiler_set_statistical_mode that gives control...
Rodrigo Kumpera [Wed, 5 Nov 2014 00:27:20 +0000 (19:27 -0500)]
[profiler] Add new profiler API mono_profiler_set_statistical_mode that gives control to statistical mode and sampling rate.

9 years ago[profiler] Fix signal based profiling to sample all registered threads.
Rodrigo Kumpera [Wed, 5 Nov 2014 00:06:27 +0000 (19:06 -0500)]
[profiler] Fix signal based profiling to sample all registered threads.

The current signal profiling code depended on invalid linux behavior of setitimer
allowing multiple threads to register for the same timer. Linux kernel 2.6.12 fixed
this and only the main thread gets the signal. Always.

The correct POSIX behavior happens on OSX/iOS.

On Linux we could use timer_create and SIGEV_THREAD_ID but that would not work on iOS/OSX
since it's specific to it. Given that little detail, I'll leave implementing it as an
exercise to the reader.

The solution, which aims to be as portable as possible, is to use a pair of signals and
have the first one fire the second one against all other threads.

We use a pair of signals since it's not well defined which thread will receive the signal
so detecting this from the signal is non-trivial.

9 years agoMake mono_threads_pthread_kill available to mach targets.
Rodrigo Kumpera [Wed, 5 Nov 2014 00:02:15 +0000 (19:02 -0500)]
Make mono_threads_pthread_kill available to mach targets.

9 years agoMake the build in docs/ uses the net 4.5 profile.
Zoltan Varga [Tue, 4 Nov 2014 23:24:27 +0000 (18:24 -0500)]
Make the build in docs/ uses the net 4.5 profile.

9 years agoDisable building the NET 2.0 profile by default.
Zoltan Varga [Tue, 4 Nov 2014 22:49:18 +0000 (17:49 -0500)]
Disable building the NET 2.0 profile by default.

9 years agoFix the loadable llvm build.
Zoltan Varga [Tue, 4 Nov 2014 21:44:39 +0000 (16:44 -0500)]
Fix the loadable llvm build.

9 years ago[llvm] Add beginnings of support for emitting dwarf debug info for LLVM code. Not...
Zoltan Varga [Tue, 4 Nov 2014 21:19:57 +0000 (16:19 -0500)]
[llvm] Add beginnings of support for emitting dwarf debug info for LLVM code. Not enabled yet, since it would clash with the dwarf info emitted by the AOT compiler for JITted code.

9 years ago[System.ServiceModel] Fixed Bug652331_2 test that failed on Jenkins by increasing...
Alexander Köplinger [Tue, 4 Nov 2014 10:38:01 +0000 (11:38 +0100)]
[System.ServiceModel] Fixed Bug652331_2 test that failed on Jenkins by increasing timeout

Looks like the test takes quite a while so 10 seconds was just too short. Increasing the timeout to 20s seems to fix it.

9 years ago[mscorlib] Marshal.GetExceptionForHR() takes an `errorInfo` parameter.
Jonathan Pryor [Tue, 4 Nov 2014 19:26:32 +0000 (14:26 -0500)]
[mscorlib] Marshal.GetExceptionForHR() takes an `errorInfo` parameter.

Parameter names are part of the ABI because of C#4 named parameter.
Consequently, they *must* be consistent with .NET, and .NET a
parameter name of "errorInfo", *not* "errorInfoPtr" [0]:

public static Exception GetExceptionForHR(
int errorCode,
IntPtr errorInfo
)

Change the parameter name from `errorCodeInfo` to `errorCode` so that
the parameter name is consistent with .NET.

[0]: http://msdn.microsoft.com/en-us/library/3xade62s(v=vs.100).aspx

9 years agoFix NET_2_0 build
Alexander Köplinger [Tue, 4 Nov 2014 09:49:57 +0000 (10:49 +0100)]
Fix NET_2_0 build

9 years agoMerge pull request #1363 from martinjt/AddMembershipPasswordAttribute
Miguel de Icaza [Tue, 4 Nov 2014 17:51:53 +0000 (12:51 -0500)]
Merge pull request #1363 from martinjt/AddMembershipPasswordAttribute

Added the MembershipPasswordAttribute class and associated unit tests

9 years ago[jit] Factor out duplicate code from the castclass/unbox.any opcode implementation.
Zoltan Varga [Mon, 3 Nov 2014 22:53:21 +0000 (17:53 -0500)]
[jit] Factor out duplicate code from the castclass/unbox.any opcode implementation.

9 years agoAdded the MembershipPasswordAttribute class and associated unit tests
Martin Thwaites [Fri, 24 Oct 2014 21:42:49 +0000 (22:42 +0100)]
Added the MembershipPasswordAttribute class and associated unit tests

9 years ago[jit] Reenable the more efficient cast code in gshared methods.
Zoltan Varga [Mon, 3 Nov 2014 21:06:46 +0000 (16:06 -0500)]
[jit] Reenable the more efficient cast code in gshared methods.

9 years agoMerge pull request #1185 from esdrubal/http-reuse
Marcos Henrich [Mon, 3 Nov 2014 11:41:13 +0000 (11:41 +0000)]
Merge pull request #1185 from esdrubal/http-reuse

Allow stream reuse when InputStream has been disposed.

9 years agoMerge pull request #1347 from ermshiperete/ImproveEllipsisHandling
Miguel de Icaza [Sun, 2 Nov 2014 17:36:49 +0000 (12:36 -0500)]
Merge pull request #1347 from ermshiperete/ImproveEllipsisHandling

[MWF] Improve ellipsis handling

9 years agoAdd missing newline in .sources file, should fix build
Alexander Köplinger [Fri, 31 Oct 2014 22:07:28 +0000 (23:07 +0100)]
Add missing newline in .sources file, should fix build

9 years ago[asp.net] Implement the EventHandlerTaskAsyncHelper and HttpTaskAsyncHandler classes...
Miguel de Icaza [Sun, 2 Nov 2014 01:23:05 +0000 (21:23 -0400)]
[asp.net] Implement the EventHandlerTaskAsyncHelper and HttpTaskAsyncHandler classes;  Manually bring Pull Request 1365 from Kornel Pal

9 years agoMerge pull request #1371 from martinjt/AddClientDisconnectedToken
Miguel de Icaza [Sun, 2 Nov 2014 00:50:48 +0000 (20:50 -0400)]
Merge pull request #1371 from martinjt/AddClientDisconnectedToken

Add ClientDisconnectedToken property to HttpResponseBase and Wrapper as ...

9 years agoSet ReadEntityBodyMode default to Classic to force clients to use the old method
Miguel de Icaza [Sun, 2 Nov 2014 00:49:10 +0000 (20:49 -0400)]
Set ReadEntityBodyMode default to Classic to force clients to use the old method
for reading the input stream.

According to the MSDN docs, if ReadEntityBodyMode returns "Classic" the code should use
the old method to read the input stream (HttpRequestBase.InputStream) which is fully
implemented in mono.

Manually applied patch from martinjt

9 years ago[asp.net] Implement the EventHandlerTaskAsyncHelper and HttpTaskAsyncHandler classes...
Miguel de Icaza [Sun, 2 Nov 2014 00:48:12 +0000 (20:48 -0400)]
[asp.net] Implement the EventHandlerTaskAsyncHelper and HttpTaskAsyncHandler classes;  Manually bring Pull Request 1365 from Kornel Pal

9 years agoMerge pull request #1163 from AerisG222/more_mvc_fixes
Miguel de Icaza [Sun, 2 Nov 2014 00:36:49 +0000 (20:36 -0400)]
Merge pull request #1163 from AerisG222/more_mvc_fixes

Add missing elements to allow MVC5.2 site to run

9 years ago[xml] XmlDocument.ReadNode() should not special case XmlTextReader.
Atsushi Eno [Fri, 31 Oct 2014 16:06:05 +0000 (00:06 +0800)]
[xml] XmlDocument.ReadNode() should not special case XmlTextReader.

Added test case that proves this change (by baulig).

9 years agoMerge pull request #960 from ermshiperete/ShowHelp
Miguel de Icaza [Fri, 31 Oct 2014 15:20:20 +0000 (11:20 -0400)]
Merge pull request #960 from ermshiperete/ShowHelp

[MWF] Partially implement Help.ShowHelp

9 years agoMerge pull request #1360 from madewokherd/winuncpath
João Matos [Fri, 31 Oct 2014 13:52:33 +0000 (13:52 +0000)]
Merge pull request #1360 from madewokherd/winuncpath

File URI's without a host are not UNC paths on Windows.

9 years ago[sgen] Add an explanatory comment about OOM.
Mark Probst [Thu, 30 Oct 2014 23:28:03 +0000 (16:28 -0700)]
[sgen] Add an explanatory comment about OOM.

9 years ago[runtime] Fix the android build with ndk r10c.
Zoltan Varga [Thu, 30 Oct 2014 22:44:01 +0000 (18:44 -0400)]
[runtime] Fix the android build with ndk r10c.

9 years agoMerge pull request #1381 from schani/fix-23401
Rodrigo Kumpera [Thu, 30 Oct 2014 22:43:36 +0000 (18:43 -0400)]
Merge pull request #1381 from schani/fix-23401

Fix 23401

9 years ago[aot] Remove some obsolete TODOs.
Zoltan Varga [Thu, 30 Oct 2014 21:56:19 +0000 (17:56 -0400)]
[aot] Remove some obsolete TODOs.

9 years ago[aot] Use the info->tramp_page_code_offsets array on arm as well.
Zoltan Varga [Thu, 30 Oct 2014 21:52:33 +0000 (17:52 -0400)]
[aot] Use the info->tramp_page_code_offsets array on arm as well.

9 years agoFix a warning.
Zoltan Varga [Thu, 30 Oct 2014 21:28:31 +0000 (17:28 -0400)]
Fix a warning.

9 years agoAdd the -Qunused-arguments warning to CPPFLAGS too.
Zoltan Varga [Thu, 30 Oct 2014 21:28:22 +0000 (17:28 -0400)]
Add the -Qunused-arguments warning to CPPFLAGS too.

9 years ago[llvm] Remove the unused LLVM_MAJOR_VERSION/LLVM_MINOR_VERSION defines.
Zoltan Varga [Thu, 30 Oct 2014 21:23:13 +0000 (17:23 -0400)]
[llvm] Remove the unused LLVM_MAJOR_VERSION/LLVM_MINOR_VERSION defines.

9 years agoAdd files that were forgotten in 6af798962810054fcf68f8e597de56b6490271a2, which...
Alexander Köplinger [Thu, 30 Oct 2014 21:16:20 +0000 (22:16 +0100)]
Add files that were forgotten in 6af798962810054fcf68f8e597de56b6490271a2, which is the re-apply of 950d9c8a567273c3363f43cee454f2b95a9f5da7

9 years ago[sgen] Don't store pin queue addresses, only indexes. Fixes #24084.
Mark Probst [Wed, 29 Oct 2014 23:36:02 +0000 (16:36 -0700)]
[sgen] Don't store pin queue addresses, only indexes.  Fixes #24084.

The pin queue can get relocated as a side-effect of resizing when late
pinning happens, so we can't count on pointers into it to remain valid.

9 years ago[sgen] Fix crash in late pinning.
Mark Probst [Wed, 29 Oct 2014 18:50:51 +0000 (11:50 -0700)]
[sgen] Fix crash in late pinning.

Our code assumed that late-pinned objects don't have a tag, but they
obviously have the pin tag, so use the safe function.

9 years ago[sgen] Don't loop endlessly when out of memory.
Mark Probst [Wed, 29 Oct 2014 18:48:09 +0000 (11:48 -0700)]
[sgen] Don't loop endlessly when out of memory.

9 years agoRevert incorrect changes from commit 950d9c8a567273c3363f43cee454f2b95a9f5da7
Ryan J. Melena [Thu, 30 Oct 2014 16:47:56 +0000 (11:47 -0500)]
Revert incorrect changes from commit 950d9c8a567273c3363f43cee454f2b95a9f5da7

Correctly handle null value deserialization in non-generic Deserialize(string, Type) method.

9 years agoRe-apply the patch, there isa fix for it
Miguel de Icaza [Thu, 30 Oct 2014 20:18:59 +0000 (16:18 -0400)]
Re-apply the patch, there isa  fix for it

9 years ago[Mono.Data.Tds] Allow sending of text data longer than 4000 characters by using a...
Zoltan Varga [Thu, 30 Oct 2014 18:39:38 +0000 (14:39 -0400)]
[Mono.Data.Tds] Allow sending of text data longer than 4000 characters by using a different column type. Fixes #21172.

9 years agoRevert this patch, as it broke the test suite
Miguel de Icaza [Thu, 30 Oct 2014 17:54:33 +0000 (13:54 -0400)]
Revert this patch, as it broke the test suite

9 years ago[System.Core/Android] Update TimeZone database self test.
Jonathan Pryor [Thu, 30 Oct 2014 16:33:33 +0000 (12:33 -0400)]
[System.Core/Android] Update TimeZone database self test.

Add Makefile rules to automagically download the TimeZone database
from the Android target $(ADB_TARGET), and build the tzi.exe app.

$ make android-dump-tzdata ADB_TARGET=-d
# downloads timezone data into ./android/tzdb.
# dumps timezone data into ./android/tzdata
# builds ./tzi.exe

# Show adjustment rules for a given timezone dump
$ mono tzi.exe -i=tzdata/Asia/Amman

Add `tzi.exe -R` option to show the TimeZoneInfo.GetAdjustmentRules()
output for all encountered timezones.

Add `tzi.exe -o=PATH` option to dump the TimeZone data to disk for
interrogation.

Add `tzi.exe -i=PATH` option to read in the specified TimeZone data
file and dump the rules contained therein.

Update usage comments.

9 years agoMerge pull request #944 from ermshiperete/bug-novell-496138
Zoltan Varga [Wed, 29 Oct 2014 23:06:05 +0000 (19:06 -0400)]
Merge pull request #944 from ermshiperete/bug-novell-496138

Improve COM error handling

9 years ago[corlib] Add some missing memory barriers to the ConcurrentQueue methods to order...
Zoltan Varga [Wed, 29 Oct 2014 21:08:42 +0000 (17:08 -0400)]
[corlib] Add some missing memory barriers to the ConcurrentQueue methods to order memory operations. Fixes #22788.

9 years agoMerge pull request #1378 from DynamicDevices/ajl/warnings
Zoltan Varga [Wed, 29 Oct 2014 19:03:31 +0000 (15:03 -0400)]
Merge pull request #1378 from DynamicDevices/ajl/warnings

[libgc] Eliminate warning about redefinition of GC_WIN32_THREADS

9 years agoMerge pull request #1337 from RyanMelenaNoesis/master
Miguel de Icaza [Wed, 29 Oct 2014 19:02:30 +0000 (15:02 -0400)]
Merge pull request #1337 from RyanMelenaNoesis/master

Additional JWT Security Token Support

9 years agoBump Mono version -> 3.12.1
Alexis Christoforides [Wed, 29 Oct 2014 17:16:04 +0000 (13:16 -0400)]
Bump Mono version -> 3.12.1

9 years ago[llvm] Disable the extension of i8/i16 arguments to i32 on arm64, since the ios calli...
Zoltan Varga [Wed, 29 Oct 2014 16:55:31 +0000 (12:55 -0400)]
[llvm] Disable the extension of i8/i16 arguments to i32 on arm64, since the ios calling convention passes them differently than i32. Fixes #22800.

9 years ago[libgc] Eliminate warning about redefinition of GC_WIN32_THREADS
Alex J Lennon [Wed, 29 Oct 2014 13:27:01 +0000 (14:27 +0100)]
[libgc] Eliminate warning about redefinition of GC_WIN32_THREADS

Makefile defines GC_WIN32_THREADS as 1 but gc_config_macros was
redefining as defined but with no value.

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
9 years ago[llvm] Fix a regression caused by 6ec1ebf99078a996ca16fd0c56cbd4e96e32ed41. Do the...
Zoltan Varga [Wed, 29 Oct 2014 03:30:44 +0000 (23:30 -0400)]
[llvm] Fix a regression caused by 6ec1ebf99078a996ca16fd0c56cbd4e96e32ed41. Do the direct call rewrite only if the caller and callee signature matches.

9 years ago[runtime] Disable the check for overlapping reference and non-reference fields, too...
Zoltan Varga [Tue, 28 Oct 2014 21:07:11 +0000 (17:07 -0400)]
[runtime] Disable the check for overlapping reference and non-reference fields, too much code depends on this to work.

9 years agoAdd OP_LREM_IMM support;Add implementation of mono_arch_get_delegate_virtual_invoke_impl
Neale Ferguson [Tue, 28 Oct 2014 18:48:45 +0000 (14:48 -0400)]
Add OP_LREM_IMM support;Add implementation of mono_arch_get_delegate_virtual_invoke_impl

9 years agoMerge pull request #1298 from esdrubal/uploadfileasync
Marcos Henrich [Tue, 28 Oct 2014 18:21:22 +0000 (18:21 +0000)]
Merge pull request #1298 from esdrubal/uploadfileasync

Fixes missing ContentType on WebClient.UploadFileTaskAsync

9 years agoMerge pull request #1321 from esdrubal/currentsystemtimezone
Marcos Henrich [Tue, 28 Oct 2014 18:18:54 +0000 (18:18 +0000)]
Merge pull request #1321 from esdrubal/currentsystemtimezone

CurrentSystemTimeZone.GetUtcOffset now supports multiple DST periods.

9 years agoMerge pull request #1376 from StephenMcConnel/bug-24109
Zoltan Varga [Tue, 28 Oct 2014 17:40:28 +0000 (13:40 -0400)]
Merge pull request #1376 from StephenMcConnel/bug-24109

Zero out pointers to freed memory in AudioDevice

9 years agoZero out pointers to freed memory in AudioDevice
Stephen McConnel [Tue, 28 Oct 2014 17:10:43 +0000 (12:10 -0500)]
Zero out pointers to freed memory in AudioDevice

This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24109.

9 years agoMerge pull request #1373 from michaldobrodenka/master
Alexis Christoforides [Tue, 28 Oct 2014 16:48:14 +0000 (12:48 -0400)]
Merge pull request #1373 from michaldobrodenka/master

Fix for random ObjectDiposedException in DispatcherCB class when connecting

9 years agoMerge pull request #1369 from DynamicDevices/ajl/appveyor
João Matos [Tue, 28 Oct 2014 16:47:19 +0000 (16:47 +0000)]
Merge pull request #1369 from DynamicDevices/ajl/appveyor

[CI] Add appveyor.yml configuration file to support Windows build

9 years agoMerge pull request #1374 from directhex/master
Zoltan Varga [Tue, 28 Oct 2014 05:08:37 +0000 (01:08 -0400)]
Merge pull request #1374 from directhex/master

Add missing header file to s390x_sources

9 years ago[System.IO] Phase 2 of revamping KeventWatcher (FileSystemWatcher implementation...
Alexis Christoforides [Thu, 9 Oct 2014 05:16:40 +0000 (22:16 -0700)]
[System.IO] Phase 2 of revamping KeventWatcher (FileSystemWatcher implementation for OS X/kqueue). Dozens of bugs and reliability issues fixed.

FileSystemWatcher.cs: Fixed multicast events.
SearchPattern.cs :  Fixed issue where case insensitivity was not being honored.
KeventWatcher.cs:
* Fixed several race conditions
* Fixed file descriptor duplication & leaks
* thread-safe/cleaner state transitions for watcher, and much cleaner stopping
* Now uses fsw.Filter parameter and respects IncludeSubdirectories = false. Use fsw.Filter to watch very large trees
* Added more error handling + OnError event
* Lots of behavior/reliability fixes and optimizations for Monitor() loop
* Fixed kevent/timespec struct definitions (for 64-bit build)

9 years ago[System.IO] Reimplemented much of the kqueue-based file watcher so that watching...
Cody Russell [Sun, 8 Jun 2014 21:46:18 +0000 (16:46 -0500)]
[System.IO] Reimplemented much of the kqueue-based file watcher so that watching subdirectories works.
Reworked a lot of the internals of the kqueue FileSystemWatcher. There
is now a separate thread and a separate kqueue for each FileSystemWatcher
object.

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

9 years ago[jit] Fix the decomposition of OP_IREM_IMM on arm64.
Zoltan Varga [Tue, 28 Oct 2014 00:55:48 +0000 (20:55 -0400)]
[jit] Fix the decomposition of OP_IREM_IMM on arm64.

9 years agoAdd missing header file to s390x_sources, otherwise a required header file for s390x...
Jo Shields [Mon, 27 Oct 2014 22:51:47 +0000 (22:51 +0000)]
Add missing header file to s390x_sources, otherwise a required header file for s390x builds is missing from tarball builds.

9 years ago[threadpool] Fix race condition on threads variable cleanup
Ludovic Henry [Mon, 27 Oct 2014 16:28:19 +0000 (12:28 -0400)]
[threadpool] Fix race condition on threads variable cleanup

9 years agoFix for ObjectDiposedException in DispatcherCB class
michaldobrodenka [Mon, 27 Oct 2014 12:28:59 +0000 (13:28 +0100)]
Fix for ObjectDiposedException in DispatcherCB class

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

9 years agoAdd ClientDisconnectedToken property to HttpResponseBase and Wrapper as default None
Martin Thwaites [Sun, 26 Oct 2014 23:42:54 +0000 (23:42 +0000)]
Add ClientDisconnectedToken property to HttpResponseBase and Wrapper as default None

9 years agoMerge pull request #1368 from martinjt/SuppressFormsAuthRedirect
Miguel de Icaza [Sun, 26 Oct 2014 22:53:05 +0000 (18:53 -0400)]
Merge pull request #1368 from martinjt/SuppressFormsAuthRedirect

Implement the SuppressFormsAuthenticationRedirect properties

9 years agoMerge pull request #1366 from DynamicDevices/ajl/win32build
Zoltan Varga [Sun, 26 Oct 2014 15:17:39 +0000 (11:17 -0400)]
Merge pull request #1366 from DynamicDevices/ajl/win32build

Fix Windows build by including wstcpip.h before winsock.h is included

9 years agoAdd/update missing bits in order to support MVC5.2.
Mike Morano [Sun, 26 Oct 2014 15:14:08 +0000 (11:14 -0400)]
Add/update missing bits in order to support MVC5.2.

9 years agoImplement the SuppressFormsAuthenticationRedirect properties
Martin Thwaites [Sun, 26 Oct 2014 14:29:45 +0000 (14:29 +0000)]
Implement the SuppressFormsAuthenticationRedirect properties

9 years agoMerge pull request #1367 from kornelpal/dolt-mingw32
Zoltan Varga [Sun, 26 Oct 2014 14:07:51 +0000 (10:07 -0400)]
Merge pull request #1367 from kornelpal/dolt-mingw32

[build] Enable dolt on mingw32

9 years ago[build] Enable dolt on mingw32
Kornel Pal [Sun, 26 Oct 2014 13:49:45 +0000 (14:49 +0100)]
[build] Enable dolt on mingw32

9 years ago[CI] Add appveyor.yml configuration file to support Windows build
Alex J Lennon [Sun, 26 Oct 2014 13:06:08 +0000 (14:06 +0100)]
[CI] Add appveyor.yml configuration file to support Windows build

Adds a configuration file to facilitate build of Mono with Cygwin
on Appveyor Windows-based build workers.

Dependencies are installed on a clean Appveyor build image for
each build and the result of the 'make install' step is stored
as a build output 'artifact' for further testing or deployment.

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
9 years agoFix Windows build by including wstcpip.h before winsock.h is included
Alex J Lennon [Sun, 26 Oct 2014 11:40:01 +0000 (12:40 +0100)]
Fix Windows build by including wstcpip.h before winsock.h is included

Error generated by socket-io.c was:

/usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2:
error: #error "ws2tcpip.h is not compatible with winsock.h.
Include winsock2.h instead."

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
9 years agoMerge pull request #1364 from muojp/addDotNet45_SocketCtor
Zoltan Varga [Sat, 25 Oct 2014 21:24:53 +0000 (17:24 -0400)]
Merge pull request #1364 from muojp/addDotNet45_SocketCtor

[System] Added missing ctor to Socket for initializing dual-mode socket

9 years ago[System] Added missing ctor to Socket for initializing dual-mode socket
Kei Nakazawa [Sat, 25 Oct 2014 12:58:29 +0000 (21:58 +0900)]
[System] Added missing ctor to Socket for initializing dual-mode socket
 - Ref: https://bugzilla.xamarin.com/show_bug.cgi?id=20048
 - Mono currently doesn't support 2-args Socket ctor added in .NET 4.5
 - Absence of this ctor prevents KestrelHttpServer (web server for
   ASP.NET vNext: https://github.com/aspnet/KestrelHttpServer ) test
   code from working
 - I hesitated to put IPv4 only implementation, but full dual stack
   (IPv4/v6) support would need bunch of works to be done. So, I pinned
   supported protocol of new ctor to IPv4. Also, I filed v4/v6 support
   issue as a MonoTODO entry inside the source code.

9 years ago[MWF] Improve ellipsis handling
Eberhard Beilharz [Thu, 16 Oct 2014 12:03:04 +0000 (14:03 +0200)]
[MWF] Improve ellipsis handling

- Don't subtract room for ellipsis. Ellipsis should be
  handled by the renderer so we shouldn't reserve space for it.
  Otherwise we end up not getting ellipsis (because the renderer
  thinks there is enough space available), or we don't use up the
  available space.
- Don't allow text to go below button if we want to show ellipsis.

9 years ago[MWF] Display visual feedback on pressed button (#23869)
Eberhard Beilharz [Thu, 16 Oct 2014 10:24:41 +0000 (12:24 +0200)]
[MWF] Display visual feedback on pressed button (#23869)

When a button is pressed the image and the text needs to be rendered one
pixel to the right and to the bottom so that there is some visual
feedback of the button press. Previously this was only the case if
TextImageRelation was set to Overlay.

9 years ago[mscorlib/Android] TimeZoneInfo.Local.Id should be "Local".
Jonathan Pryor [Fri, 24 Oct 2014 19:41:20 +0000 (15:41 -0400)]
[mscorlib/Android] TimeZoneInfo.Local.Id should be "Local".

On Mono/.NET, TimeZoneInfo.Local has a TimeZoneInfo.Id value of
"Local" and a TimeZoneInfo.DisplayName value of "Local":

$ csharp
csharp> TimeZoneInfo.Local.Id;
"Local"
csharp> TimeZoneInfo.Local.DisplayName;
"Local"

That isn't the case on Xamarin.Android, which returns the timezoneinfo
ID value from both DisplayName and Id, e.g. TimeZoneInfo.Local could
have Id and DisplayName values of "Australia/Sydney".

Rework things so that the TimeZoneInfo.Id and TimeZoneInfo.DisplayName
properties return "Local" on Xamarin.Android for the instance returned
from TimeZoneInfo.Local, just like normal Mono/.NET does.

9 years agoMerge pull request #1348 from ermshiperete/ImproveButtonTextLayout
Miguel de Icaza [Fri, 24 Oct 2014 18:44:29 +0000 (14:44 -0400)]
Merge pull request #1348 from ermshiperete/ImproveButtonTextLayout

[MWF] Improve button text layout

9 years agoMerge pull request #1357 from emergent-design/master
Miguel de Icaza [Fri, 24 Oct 2014 18:43:49 +0000 (14:43 -0400)]
Merge pull request #1357 from emergent-design/master

Include /dev/ttyACM in the search for serial port devices

9 years agoMerge pull request #1362 from echampet/dupfix
Miguel de Icaza [Fri, 24 Oct 2014 18:43:00 +0000 (14:43 -0400)]
Merge pull request #1362 from echampet/dupfix

Webapp stuck with "Key duplication when adding: httpModules"

9 years agoHttpApplication: if there is an exception in InitOnce, output it on the Console
Etienne CHAMPETIER [Fri, 24 Oct 2014 11:39:35 +0000 (13:39 +0200)]
HttpApplication: if there is an exception in InitOnce, output it on the Console

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
9 years agoWebConfigurationManager: simplify call to ConfigurationSection.GetRuntimeObject ()
Etienne CHAMPETIER [Fri, 24 Oct 2014 10:45:01 +0000 (12:45 +0200)]
WebConfigurationManager: simplify call to ConfigurationSection.GetRuntimeObject ()

this call come from an obfuscation contest :) ?

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>