Zoltan Varga [Thu, 15 Jan 2015 15:39:55 +0000 (10:39 -0500)]
Merge pull request #1507 from DavidKarlas/mdbRead0Line
[sdb] Fixed .mdb parsing when line equals 0
Marek Safar [Thu, 15 Jan 2015 15:15:42 +0000 (16:15 +0100)]
[corlib] System.Collections from reference sources
Martin Baulig [Thu, 15 Jan 2015 12:23:10 +0000 (13:23 +0100)]
[Mono.Security]: Fix TLS Alert level.
Martin Baulig [Thu, 15 Jan 2015 10:55:13 +0000 (11:55 +0100)]
[Mono.Security]: Improve error reporting when sending TLS Alerts fail.
Marek Safar [Thu, 15 Jan 2015 09:05:50 +0000 (10:05 +0100)]
[system] System.Timer from reference sources
Marek Safar [Thu, 15 Jan 2015 08:19:02 +0000 (09:19 +0100)]
Merge pull request #1505 from esdrubal/tzifloatingrule
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
David Karlaš [Thu, 15 Jan 2015 08:18:16 +0000 (09:18 +0100)]
[sdb] Fixed .mdb parsing when line equals 0
Zoltan Varga [Thu, 15 Jan 2015 04:57:05 +0000 (23:57 -0500)]
Merge pull request #1506 from akoeplinger/fix-paste-test
[MWF] Fix unicode string handling from clipboard paste in X11
Zoltan Varga [Thu, 15 Jan 2015 00:57:41 +0000 (19:57 -0500)]
[sdb] Don't continue single stepping when reaching the same line if locations without debug info were reached during the single step.
Rodrigo Kumpera [Thu, 15 Jan 2015 00:26:13 +0000 (19:26 -0500)]
Sorry for breaking linux.
Rodrigo Kumpera [Thu, 15 Jan 2015 00:21:32 +0000 (19:21 -0500)]
[runtime] I can still find unguarded used of signal.h, amazing.
Zoltan Varga [Thu, 15 Jan 2015 00:13:41 +0000 (19:13 -0500)]
[sdb] Fix the detection of whenever an image has debug info or not.
Mark Probst [Wed, 14 Jan 2015 22:56:12 +0000 (14:56 -0800)]
Merge pull request #1466 from schani/stage-unified-card-table-scanning
Unified card table scanning
Zoltan Varga [Wed, 14 Jan 2015 22:48:51 +0000 (17:48 -0500)]
Fix the build.
Marek Safar [Wed, 14 Jan 2015 22:24:06 +0000 (23:24 +0100)]
[corlib] Hashtable constructor with equality comparer needs to use it during initialization as well
Zoltan Varga [Wed, 14 Jan 2015 21:56:57 +0000 (16:56 -0500)]
Marek Safar [Wed, 14 Jan 2015 21:30:35 +0000 (22:30 +0100)]
[Microsoft.Build.Utilities] Replace use of ProcessStringDictionary with case insensitive dictionary. It shouldn't case insensitive on non-windows but that'd break msbuild compatibility
Marek Safar [Wed, 14 Jan 2015 21:14:32 +0000 (22:14 +0100)]
Fixes build
Alexander Köplinger [Wed, 14 Jan 2015 11:02:37 +0000 (12:02 +0100)]
[MWF] Fix unicode string handling from clipboard paste in X11
In the TextBoxTest.PasteTest () test case we copy the string "ABCD" to the clipboard.
We then try to paste it again and see if it's the same.
Internally in WinForms, the clipboard data is retrieved via an X11 API that returns
a pointer to the string. In this case, we have a unicode/utf16 string that usually
looks as follows in memory (2 byte per character):
65 'A'
0
-
66 'B'
0
-
67 'C'
0
-
68 'D'
0
-
0 '\0' end of string
0 potential garbage from here on
-
0
0
...
The bug is that we use Marshal.PtrToStringUni (), which reads until the
first null *char* not the first null *byte*.
Imagine if we get the following (happens sometimes):
65 'A'
0
-
66 'B'
0
-
67 'C'
0
-
68 'D'
0
-
0 '\0' end of string
230 <--- garbage, but considered part of a char by PtrToStringUni ()
-
47
56
-
74
43
...
This produces garbage like "ABCD㠯⭊" since PtrToStringUni () reads beyond the original string.
The fix is to use the nitems variable that is returned by the X11 API (it contains the
actual number of bytes in the string) and copy the bytes manually. We already do
the same for the UTF8 case above.
This fixes the TextBoxTest.PasteTest () that intermittently fails on Jenkins.
Zoltan Varga [Wed, 14 Jan 2015 21:29:46 +0000 (16:29 -0500)]
[sdb] Emit debug logs using g_print () on android, so it shows up in adb logcat output.
Marek Safar [Wed, 14 Jan 2015 20:41:09 +0000 (21:41 +0100)]
[system.net.http] Drop WebClient dependency
Marek Safar [Wed, 14 Jan 2015 17:56:24 +0000 (18:56 +0100)]
[system] System.Collections.ObjectModel from reference sources
Zoltan Varga [Wed, 14 Jan 2015 18:44:29 +0000 (13:44 -0500)]
[pdb2mdb] Fix the decoding of nested scopes.
Marek Safar [Wed, 14 Jan 2015 17:42:12 +0000 (18:42 +0100)]
[system] System.Collections.Specialized from reference sources
Marek Safar [Wed, 14 Jan 2015 17:18:07 +0000 (18:18 +0100)]
[system] Add UnicodeDecodingConformance, UnicodeEncodingConformance
Marek Safar [Wed, 14 Jan 2015 16:37:12 +0000 (17:37 +0100)]
[system] Switch to reference sources WebClient
Marek Safar [Wed, 14 Jan 2015 15:40:43 +0000 (16:40 +0100)]
[system] Cookies implementation from reference sources
João Matos [Wed, 14 Jan 2015 15:28:11 +0000 (15:28 +0000)]
[runtime] Do not use MONO_STRUCT_OFFSET for Win32-specific offsets.
We do not yet have auto-generated offsets for Win32 targets and this interacts in weird ways with the Android cross-compilers for Windows.
Marcos Henrich [Wed, 14 Jan 2015 14:47:45 +0000 (14:47 +0000)]
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
Fixes #26008
We do not want (transition.DayOfWeek - first) % 7 to be negative.
As (transition.DayOfWeek - first) cannot be lower than -7, adding 7 to it solves the issue.
Marcos Henrich [Wed, 14 Jan 2015 14:25:17 +0000 (14:25 +0000)]
[System.Core] Added tests to TimeZoneInfoTest. Covers #26008.
Alex Rønne Petersen [Wed, 14 Jan 2015 12:51:38 +0000 (13:51 +0100)]
Fix mono_handle_native_sigsegv () signature in the cross compiler case.
Zoltan Varga [Wed, 14 Jan 2015 02:52:31 +0000 (21:52 -0500)]
Zoltan Varga [Wed, 14 Jan 2015 01:31:07 +0000 (20:31 -0500)]
Merge pull request #1500 from criteo-forks/criteo
Fix SpinLock.TryEnter
Zoltan Varga [Tue, 13 Jan 2015 23:58:02 +0000 (18:58 -0500)]
[bcl] Break waits in KeventWatcher by closing the command fd instead of polling.
Zoltan Varga [Tue, 13 Jan 2015 23:55:53 +0000 (18:55 -0500)]
[bcl] Put the files created by the HostFileChangeMonitor test into an additional subdir to avoid the file system watcher starting to watch system temporary files in the parent dir. Dispose file system watchers at the end of the test.
Zoltan Varga [Tue, 13 Jan 2015 21:34:23 +0000 (16:34 -0500)]
[bcl] Remove NET_4_5 defines from class libs.
Zoltan Varga [Tue, 13 Jan 2015 21:34:11 +0000 (16:34 -0500)]
[bcl] Remove NET_4_5 defines from tools.
Zoltan Varga [Tue, 13 Jan 2015 21:25:19 +0000 (16:25 -0500)]
[runtime] Move the monograph tool to tools/.
Zoltan Varga [Tue, 13 Jan 2015 21:06:31 +0000 (16:06 -0500)]
[bcl] Remove NET_4_0 defines from class libs.
Zoltan Varga [Tue, 13 Jan 2015 20:59:48 +0000 (15:59 -0500)]
[bcl] Remove NET_4_0 defines from tools.
Zoltan Varga [Tue, 13 Jan 2015 20:29:38 +0000 (15:29 -0500)]
[bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>.
Zoltan Varga [Tue, 13 Jan 2015 20:13:27 +0000 (15:13 -0500)]
[bcl] Remove NET_2_0 defines from tools.
João Matos [Tue, 13 Jan 2015 17:52:52 +0000 (17:52 +0000)]
Revert "[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build."
This reverts commit
5510857e6b3d584152ec314cea718416c6a05332.
Marcos Henrich [Tue, 13 Jan 2015 16:54:19 +0000 (16:54 +0000)]
[build] Updated csproj files.
Marcos Henrich [Tue, 13 Jan 2015 16:43:42 +0000 (16:43 +0000)]
Fixed msvc/scripts/genproj.cs file seperator issue on UNIX.
On UNIX '\\' is a valid file name character.
In this case we have to replace '\\' for Path.GetFileNameWithoutExtension to work as expected.
Marcos Henrich [Tue, 13 Jan 2015 15:19:05 +0000 (15:19 +0000)]
[System.ComponentModel.Composition] Updated Makefile thisdir.
Old thisdir was causing problems while doing make update-csproj on top dir.
João Matos [Tue, 13 Jan 2015 17:24:52 +0000 (17:24 +0000)]
[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build.
Marek Safar [Tue, 13 Jan 2015 16:02:08 +0000 (17:02 +0100)]
[system.data] refresh mobile sources
Marek Safar [Tue, 13 Jan 2015 15:11:07 +0000 (16:11 +0100)]
[system.data] Update for DataSetExtensions as GetTableMappingBySchemaAction is now more restrictive.
Marek Safar [Tue, 13 Jan 2015 13:57:55 +0000 (14:57 +0100)]
[corlib] Close underlying synchronized stream. Fixes #25498
Marek Safar [Tue, 13 Jan 2015 11:28:06 +0000 (12:28 +0100)]
[system.net.http] Split reading headers and content in GetStreamAsync. Fixes #23966
Marek Safar [Tue, 13 Jan 2015 10:19:21 +0000 (11:19 +0100)]
[corlib] Add range checks to CharUnicodeInfo. Fixes #25895
Marek Safar [Tue, 13 Jan 2015 10:02:54 +0000 (11:02 +0100)]
[system.data] update mobile profile
Marek Safar [Tue, 13 Jan 2015 09:58:45 +0000 (10:58 +0100)]
[system.data] Replace connection string builder from reference sources
Alex Rønne Petersen [Tue, 13 Jan 2015 09:16:44 +0000 (10:16 +0100)]
Fix the build on sigaltstack platforms.
Alex Rønne Petersen [Tue, 13 Jan 2015 08:43:58 +0000 (09:43 +0100)]
Fix the Android build; use HAVE_SYS_SYSCTL_H instead of HAVE_SYS_IOCTL_H.
Alex Rønne Petersen [Tue, 13 Jan 2015 08:17:47 +0000 (09:17 +0100)]
Add an extension point for backtraces on native SIGSEGVs.
Alex Rønne Petersen [Tue, 13 Jan 2015 08:17:13 +0000 (09:17 +0100)]
Propagate siginfo to mono_handle_native_sigsegv ().
Some platforms (e.g. Android) need this to get a backtrace in a signal handler.
Marek Safar [Mon, 12 Jan 2015 23:16:10 +0000 (00:16 +0100)]
[system.data] Replace System.Data.SqlTypes from reference sources except SqlXml which depends on internal system.xml factory method
Marek Safar [Mon, 12 Jan 2015 22:19:53 +0000 (23:19 +0100)]
[system.data] Switch to DbEnumerator from reference sources. Fixes #24935
Guillaume Turri [Mon, 12 Jan 2015 07:42:26 +0000 (08:42 +0100)]
Fix SpinLock.TryEnter
Little and big endian cases were inverted. It can be seen e.g. from the
reference http://locklessinc.com/articles/locks, where the ticket algorithm
is given for little-endian machines
As a consequence, without this patch, if TryEnter succeeds, it increments
ticket.Value instead of ticket.User, which puts the SpinLock in a corrupted
state, and makes it impossible to release afterwards.
Miguel de Icaza [Tue, 13 Jan 2015 04:23:23 +0000 (23:23 -0500)]
[Regex] Disable IL code generation until we figure out 25671
Miguel de Icaza [Tue, 13 Jan 2015 04:13:50 +0000 (23:13 -0500)]
[Mono.Posix] Add support for OSX F_NOCACHE
Zoltan Varga [Tue, 13 Jan 2015 00:38:01 +0000 (19:38 -0500)]
[aot] Fix llvm support.
Zoltan Varga [Mon, 12 Jan 2015 23:08:28 +0000 (18:08 -0500)]
[runtime] Fix the android build.
Zoltan Varga [Mon, 12 Jan 2015 22:23:41 +0000 (17:23 -0500)]
[runtime] Use a guint64 for device/inode instead of dev_t/ino_t since ino_t is defined as 32 bit on newer android versions, but inode values can actually be 64 bit.
Zoltan Varga [Mon, 12 Jan 2015 22:20:01 +0000 (17:20 -0500)]
Fix the build.
Zoltan Varga [Mon, 12 Jan 2015 22:08:21 +0000 (17:08 -0500)]
[runtime] Remove an unused define.
Zoltan Varga [Mon, 12 Jan 2015 22:02:39 +0000 (17:02 -0500)]
[bcl] Fix a race in a System.Threading.Tasks test.
Zoltan Varga [Mon, 12 Jan 2015 21:34:32 +0000 (16:34 -0500)]
[aot] Implement support for separate llvm object files when using static linking. Enable it on all platforms.
Zoltan Varga [Mon, 12 Jan 2015 21:33:30 +0000 (16:33 -0500)]
[arm] Fix the decoding of backward branches in mono_arch_get_call_target ().
Marek Safar [Mon, 12 Jan 2015 19:06:52 +0000 (20:06 +0100)]
[system] Fixes barrier file name
Zoltan Varga [Mon, 12 Jan 2015 18:41:54 +0000 (13:41 -0500)]
[aot] Add an 'llvm-outfile=' command line argument to specify the name of the assembly file holding the LLVM compiled code when the 'asmonly' option is used.
Marek Safar [Mon, 12 Jan 2015 16:18:42 +0000 (17:18 +0100)]
[system] Replace Barrier implementation from reference sources. Fixes #25928
Marek Safar [Mon, 12 Jan 2015 15:45:24 +0000 (16:45 +0100)]
[system.net.http] ProductInfoHeader collection parsing/formatting uses special separators. Fixes #19881
Radek Doulik [Mon, 12 Jan 2015 14:24:56 +0000 (15:24 +0100)]
do not use liblog's absolute path in DllImport
- let it for dllmap to specify the path of liblog
https://github.com/xamarin/monodroid/commit/
e834a251d65cb8f677ee7140450ea11e09dbf5c8
- when checking if running on Android, check the 64bit liblog location as well
Marcos Henrich [Mon, 12 Jan 2015 13:03:16 +0000 (13:03 +0000)]
[System.Runtime.Caching] Removed unused files.
referencesource files are used instead of the removed files.
Marek Safar [Mon, 12 Jan 2015 13:02:20 +0000 (14:02 +0100)]
[corlib] SafeHandle dispose can be called multiple times after closing. Fixes #25850
Marcos Henrich [Mon, 12 Jan 2015 11:32:36 +0000 (11:32 +0000)]
[runtime] update_liveness2 replaced wrong binary or with or.
Marcos Henrich [Mon, 12 Jan 2015 11:02:40 +0000 (11:02 +0000)]
[runtime] update_liveness2 now handles OP_IL_SEQ_POINT.
Marek Safar [Mon, 12 Jan 2015 10:52:31 +0000 (11:52 +0100)]
[corlib] Fixes SafeHandle invalidHandleValue handling
Marcos Henrich [Mon, 12 Jan 2015 08:27:48 +0000 (08:27 +0000)]
Merge pull request #1455 from esdrubal/caching
[System.Runtime.Caching] .NET integration.
Marek Safar [Sun, 11 Jan 2015 23:13:40 +0000 (00:13 +0100)]
Merge pull request #1499 from madrang/SafeHandleTesting
SafeHandle SetAsInvalid Testing
Marc-Andre Ferland [Sun, 11 Jan 2015 23:10:06 +0000 (18:10 -0500)]
More strict testing of SafeHandle.
SafeHandle.IsInvalid refer only to the handle value it self. Being true only if the handle is 0 || -1
In all cases, Releasing, Disposing or SetHandleAsInvalid does not change the handle value, so SafeHandle.IsInvalid will remain unchanged.
IsClosed will be true if the handle is released or if SetHandleAsInvalid is called.
The handle will not be released when calling Dispose if SetHandleAsInvalid was called.
The handle is not released at Dispose but when the last ref is removed by DangerousRelease
Zoltan Varga [Sun, 11 Jan 2015 17:07:16 +0000 (12:07 -0500)]
runtime] Really fix a race condition in mono_remoting_marshal_init ().
Zoltan Varga [Sun, 11 Jan 2015 15:31:29 +0000 (10:31 -0500)]
[aot] Enable direct llvm object file emission on x86 as well.
Zoltan Varga [Sun, 11 Jan 2015 15:26:36 +0000 (10:26 -0500)]
[aot] Avoid duplicate symbol errors if two methods have the same cfg->method.
Marcos Henrich [Sun, 11 Jan 2015 13:45:45 +0000 (13:45 +0000)]
test_op_il_seq_point.sh now properly tests AOT compilation.
Added missing option --aot
Marcos Henrich [Sun, 11 Jan 2015 13:43:49 +0000 (13:43 +0000)]
test_op_il_seq_point.sh no longer prints empty lines.
Marcos Henrich [Sun, 11 Jan 2015 13:30:43 +0000 (13:30 +0000)]
TestDriver now has option --quiet to disable Console outputs.
test_op_il_seq_point.sh does not work well when TestDriver produces outputs, calling the tests with option -q solves this.
Zoltan Varga [Sun, 11 Jan 2015 14:46:45 +0000 (09:46 -0500)]
[aot] Emit LLVM object files directly from llc on amd64.
Marcos Henrich [Sun, 11 Jan 2015 10:07:08 +0000 (10:07 +0000)]
test_op_il_seq_point.sh now prints whole diff.
Zoltan Varga [Sun, 11 Jan 2015 04:04:05 +0000 (23:04 -0500)]
Fix warnings.
Zoltan Varga [Sun, 11 Jan 2015 03:55:08 +0000 (22:55 -0500)]
Fix the build.
Zoltan Varga [Sun, 11 Jan 2015 03:46:39 +0000 (22:46 -0500)]
Merge pull request #1498 from akoeplinger/fix-windows
Fix Windows build
Alexander Köplinger [Fri, 9 Jan 2015 23:10:27 +0000 (00:10 +0100)]
Fix Windows build
Some autoconf checks were missing when running on Windows.
Added stub for mono_get_local_interfaces back that was removed in
b92e560d3f5e2684dfb8af954bebb6b938712598
for systems like Windows that have neither HAVE_SIOCGIFCONF nor HAVE_GETIFADDRS.
Marek Safar [Sat, 10 Jan 2015 17:50:35 +0000 (18:50 +0100)]
[mcs] Auto-implemented properties must override all accessors of the overridden property
Marek Safar [Sat, 10 Jan 2015 09:31:45 +0000 (10:31 +0100)]
[mcs] Contructors cannot be extern and have a constructor initializer
Marcos Henrich [Sat, 10 Jan 2015 16:27:34 +0000 (16:27 +0000)]
test_op_il_seq_point.sh ignore diff unnecessary data.
Zoltan Varga [Sat, 10 Jan 2015 16:24:42 +0000 (11:24 -0500)]
[aot] Emit a separate GOT for LLVM and JITted code, this avoids having to reference the extern got symbol from JITted code if the LLVM code is emitted into a separate module.