Marek Safar [Fri, 31 Jan 2014 14:30:18 +0000 (15:30 +0100)]
[corlib] Decimal parsing with banker's rounding with non-zero digits beyond the thousandths digit. Fixes #17536
Zoltan Varga [Fri, 31 Jan 2014 13:29:51 +0000 (14:29 +0100)]
[runtime] Remove some references to gc_wrapper.h which are no longer needed.
Zoltan Varga [Fri, 31 Jan 2014 13:18:14 +0000 (14:18 +0100)]
[runtime] Move the thread exit code to mono-threads from io-layer.
Marek Safar [Fri, 31 Jan 2014 13:04:49 +0000 (14:04 +0100)]
Marek Safar [Fri, 31 Jan 2014 12:30:49 +0000 (13:30 +0100)]
[mcs] Explicit user conversion from nullable types does not have to lift the result. Fixes #17469
Marek Safar [Fri, 31 Jan 2014 10:44:04 +0000 (11:44 +0100)]
[mcs] Report less internal errors. Fixes #17472
Marek Safar [Fri, 31 Jan 2014 10:25:25 +0000 (11:25 +0100)]
[mcs] Fixes warning
Marek Safar [Fri, 31 Jan 2014 09:18:26 +0000 (10:18 +0100)]
[mcs] Release array initializer stack field at the end of initialization. Fixes #17494
Zoltan Varga [Fri, 31 Jan 2014 07:58:16 +0000 (08:58 +0100)]
[runtime] Fix a shutdown leak.
Zoltan Varga [Fri, 31 Jan 2014 05:43:32 +0000 (06:43 +0100)]
[runtime] Use mono_thread_join () to wait for the finalizer thread to exit.
Zoltan Varga [Fri, 31 Jan 2014 05:17:41 +0000 (06:17 +0100)]
[llvm] Disable llvm instead of asserting in some cases. Fixes #17527.
Zoltan Varga [Fri, 31 Jan 2014 03:12:43 +0000 (04:12 +0100)]
[runtime] Use a separate lock for the joinable_threads () hash table.
Michael Hutchinson [Thu, 30 Jan 2014 21:13:59 +0000 (13:13 -0800)]
Merge pull request #880 from awinters-fvs/xbuild/make-dist-fix
Fix 'make dist' broken since
35287878
Rodrigo Kumpera [Thu, 30 Jan 2014 21:11:31 +0000 (16:11 -0500)]
[corlib] WeakReference<T>::TryGetTarget should return true only for non null targets.
Zoltan Varga [Thu, 30 Jan 2014 18:08:22 +0000 (19:08 +0100)]
Fix warnings.
Zoltan Varga [Thu, 30 Jan 2014 09:28:42 +0000 (10:28 +0100)]
[runtime] Change the way the runtime waits for threads to finish. Instead of detaching them at thread startup and waiting for them using WaitForMultipleObject(), add threads to a hash table before they exit mono code and use the finalizer thread to call pthread_join () on them. This will hopefully fix the problems where a thread tried to access data which the runtime at shutdown/appdomain unload.
Alex Rønne Petersen [Thu, 30 Jan 2014 03:51:18 +0000 (19:51 -0800)]
Merge pull request #882 from jgagnon/master
Fixes a socket leak in class TcpListener
Rodrigo Kumpera [Wed, 29 Jan 2014 19:17:13 +0000 (14:17 -0500)]
[jit]Add a missing call to mini_native_type_replace_type in mini_get_basic_type_from_generic.
Zoltan Varga [Wed, 29 Jan 2014 15:47:19 +0000 (16:47 +0100)]
[aot] Add a more helpfull error message when a method cannot be loaded.
Zoltan Varga [Wed, 29 Jan 2014 15:24:28 +0000 (16:24 +0100)]
[sgen] Fix a regression caused by
07fc727b8698a100aeb214ae3f7eb1cc3f5bab20. Fixes the windows build.
Michael Hutchinson [Tue, 28 Jan 2014 22:38:26 +0000 (17:38 -0500)]
[xbuild] Rework escaping in TaskItem to be compatible with MSBuild
The escaping/unescaping behaviour of TaskItem:ITaskItem was undocumented
originally in MSBuild, so our implementation did not perform any. This
caused issues with Tasks getting metadata and paths that were escaped,
trying to use them as-is, and failing horribly.
Fortunately the ITaskItem2 interface in .NET 4 provides complementary
accessors with documentation that indicates that it stores values
escaped internally, and the old accessors unescape the values.
This commit implements ITaskItem2, fixes the escaping behavior of the
old accessors, and removes some superluous uses of IDictionary.Contains.
Michael Hutchinson [Tue, 28 Jan 2014 22:19:53 +0000 (17:19 -0500)]
[xbuild] Remove unnecessary/inconsistent path conversion hack
Directory separators are automatically converted from Windows->Native
when parsing MSBuild files, but any paths provided in code must already
be native.
Alan McGovern [Tue, 28 Jan 2014 21:18:57 +0000 (16:18 -0500)]
[Microsoft.Build.Utilities] Properly escape/unescape ItemSpec
With tests.
Alan McGovern [Tue, 28 Jan 2014 20:40:25 +0000 (15:40 -0500)]
[Microsoft.Build.Utilities] Fix the escaping/unescaping of ItemSpec
This should hopefully fix compilation of projects using files with
names like 'foo@2x.png' in various places like embedded resources
or content items which must be copied to the output directory.
With tests.
Marek Safar [Tue, 28 Jan 2014 09:16:12 +0000 (10:16 +0100)]
[mcs] Better check for invalid attribute targets. Fixes #17447
Zoltan Varga [Tue, 28 Jan 2014 05:30:09 +0000 (06:30 +0100)]
[llvm] Load rgctx/imt arguments using a volatile load on arm to prevent LLVM from moving the setting of the argument elsewhere. This is needed because these arguments are passed in a caller save register, but our code treats it as callee save in a lot of places. Fixes #17435.
Zoltan Varga [Tue, 28 Jan 2014 05:11:22 +0000 (06:11 +0100)]
Revert "[jit] Precompute a bit more information for delegate trampolines to speed them up."
This reverts commit
e3de4cb92e5f91fcd37d83f832401be45c0a77a5.
Revert this as it seems to break mt.
Michael Hutchinson [Mon, 27 Jan 2014 21:58:49 +0000 (16:58 -0500)]
[xbuild] Define VisualStudioVersion, since F# projects can depend on it
Rodrigo Kumpera [Mon, 27 Jan 2014 21:28:01 +0000 (16:28 -0500)]
Properly compare assembly versions when performing binding. Fixes #17368.
The right way to compare assembly versions is by translating the major/minor
pair into a single number and compare that.
Since each element can only be one byte long, we multiply major by 256
before adding to minor.
This solves the problem where version 100.0.0.0 was not after 3.5.0.0.
Jonathan Gagnon [Mon, 27 Jan 2014 14:18:10 +0000 (09:18 -0500)]
Fixes a socket leak in class TcpListener
Fixes a socket leak in TcpListener.AcceptTcpClient and
TcpListener.EndAcceptTcpClient.
Marek Safar [Mon, 27 Jan 2014 10:35:41 +0000 (11:35 +0100)]
New test
Marek Safar [Mon, 27 Jan 2014 10:21:34 +0000 (11:21 +0100)]
[mcs] Remove used method
Marek Safar [Mon, 27 Jan 2014 10:19:54 +0000 (11:19 +0100)]
[mcs] Don't crash when default parameter constant member access cannot be resolved. Fixes #17354
Marek Safar [Sun, 26 Jan 2014 10:34:00 +0000 (11:34 +0100)]
[dlr] Handle more expressions in interpreter
Marek Safar [Sun, 26 Jan 2014 10:32:03 +0000 (11:32 +0100)]
[mcs] Do underlying float constant operation on double values. Fixes #15463
Marek Safar [Fri, 24 Jan 2014 16:53:21 +0000 (17:53 +0100)]
[mcs] Check for nested type arguments of cached method group. Fixes #17403
Zoltan Varga [Sun, 26 Jan 2014 06:32:08 +0000 (07:32 +0100)]
[jit] Precompute a bit more information for delegate trampolines to speed them up.
Zoltan Varga [Sat, 25 Jan 2014 06:39:36 +0000 (07:39 +0100)]
[jit] Store the spvar offsets for the finally clauses in MonoJitExceptionInfo to avoid disassembly in mono_arch_install_handler_block_guard ().
Zoltan Varga [Sat, 25 Jan 2014 06:27:40 +0000 (07:27 +0100)]
[jit] Change to signature of mono_arch_create_handler_block_trampoline () to be consistent with the signature of the other trampoline creation functions.
Ashley Winters [Fri, 24 Jan 2014 22:30:22 +0000 (14:30 -0800)]
Update mono-core.spec.in with xbuild reorganization
Zoltan Varga [Fri, 24 Jan 2014 19:44:15 +0000 (20:44 +0100)]
[jit] Add a mono_jinfo_get_unwind_info () helper function.
Sebastien Pouliot [Fri, 24 Jan 2014 13:47:10 +0000 (08:47 -0500)]
Allow a TLS1.1+ client (like recent Google Chrome, 1.2) to fallback to TLS1.0 when using System.dll (or Mono.Security.dll) server side SSL/TLS [#6843][#11736]
Atsushi Eno [Fri, 24 Jan 2014 08:33:14 +0000 (17:33 +0900)]
Fix build (and cosmetic code formatting).
Atsushi Eno [Fri, 24 Jan 2014 07:42:54 +0000 (16:42 +0900)]
remove private msbuild hacking project files.
Atsushi Eno [Fri, 24 Jan 2014 07:41:00 +0000 (16:41 +0900)]
Merge branch 'msbuilddll2'
Atsushi Eno [Fri, 24 Jan 2014 07:25:29 +0000 (16:25 +0900)]
Log target build error.
Zoltan Varga [Fri, 24 Jan 2014 07:23:41 +0000 (08:23 +0100)]
[jit] Fix/simplify the x86 handler guard trampoline code. Part of the fix for #16807.
Atsushi Eno [Fri, 24 Jan 2014 07:02:08 +0000 (16:02 +0900)]
Make sure to fail build when exception is thrown while building a target.
Zoltan Varga [Fri, 24 Jan 2014 06:49:55 +0000 (07:49 +0100)]
Revert "finally_guard has been promoted to the stable set of tests."
This reverts commit
31d902a285e02e11afd0065b85a98213d5a6d5d7.
finally_guard still fails when using LLVM.
Zoltan Varga [Fri, 24 Jan 2014 06:45:55 +0000 (07:45 +0100)]
[jit] Fix a regression caused by
28374f3161d7bd2521b26b4ce23515ec27eb2174. Fixes #17392.
Zoltan Varga [Fri, 24 Jan 2014 03:47:23 +0000 (04:47 +0100)]
[jit] Hopefully fix the loaded LLVM build.
Atsushi Eno [Fri, 24 Jan 2014 01:41:08 +0000 (10:41 +0900)]
add comment on MSB4057.
Ashley Winters [Thu, 23 Jan 2014 23:16:41 +0000 (15:16 -0800)]
Include xbuild_4_0_dirs in dist; fixes
425fdc03
In commit
425fdc03fa38b2ee29c1cf88617ddb1580fde78f:
[xbuild] Build & install MSBuild 12.0 assemblies
The net_3_5_only_dirs containing the Build classes were moved to
various xbuild_X_dirs variables, but an undefined $(xbuild_dirs)
variable was appended to DIST_ONLY_SUBDIRS.
This patch adds $(xbuild_4_0_dirs) instead.
Ashley Winters [Thu, 23 Jan 2014 22:46:09 +0000 (14:46 -0800)]
Fix 'make dist' broken since
35287878
In commit
35287878b9785efeaeb854afb6ee4509f5714d65:
[xbuild] Reorganize xbuild targets/frameworks/bin data
Several files were shuffled around, but the EXTRA_DISTFILES was
not fully updated with the new file paths.
This patch is required to build a 3.2.7 tarball.
Sebastien Pouliot [Thu, 23 Jan 2014 21:57:11 +0000 (16:57 -0500)]
[System] Exclude LinuxNetworkChange from MONOTOUCH build (since it won't work as the p/invoke are not present)
Atsushi Eno [Thu, 23 Jan 2014 14:46:46 +0000 (23:46 +0900)]
update .csproj.
Atsushi Eno [Thu, 23 Jan 2014 14:46:09 +0000 (23:46 +0900)]
Add BuildRequestDataTest and fixed some .NET compatibility in tests.
Atsushi Eno [Thu, 23 Jan 2014 14:45:23 +0000 (23:45 +0900)]
Check null buildTargets at BuildRequestData. But not in ProjectInstance.
Alex Rønne Petersen [Thu, 23 Jan 2014 11:59:37 +0000 (03:59 -0800)]
Merge pull request #735 from wtfrank/bitblt
dllmap for BitBlt in gdi32.dll
Atsushi Eno [Thu, 23 Jan 2014 10:14:35 +0000 (19:14 +0900)]
Path existence and lookup is now based on insensitive search.
Atsushi Eno [Thu, 23 Jan 2014 08:03:18 +0000 (17:03 +0900)]
comment out error check on Inputs/Outputs mismatch.
Atsushi Eno [Thu, 23 Jan 2014 08:02:15 +0000 (17:02 +0900)]
implement OnError on target.
Atsushi Eno [Thu, 23 Jan 2014 08:00:32 +0000 (17:00 +0900)]
Exists() needs to normalize Windows path first.
Zoltan Varga [Thu, 23 Jan 2014 03:46:55 +0000 (04:46 +0100)]
[jit] Add a mono_get_jit_tls () helper function.
Atsushi Eno [Thu, 23 Jan 2014 02:56:25 +0000 (11:56 +0900)]
exclude extraneous stuff from msbuild dir.
Atsushi Eno [Thu, 23 Jan 2014 02:31:07 +0000 (11:31 +0900)]
DefaultTargets must be first picked up from imports' attributes, then first of Targets.
Atsushi Eno [Thu, 23 Jan 2014 02:30:43 +0000 (11:30 +0900)]
property name comparison should be done in case insensitive manner.
tritao [Thu, 23 Jan 2014 00:33:01 +0000 (00:33 +0000)]
Follow up on return intrinsics tightening the preprocessor checks and using the declared version of the intrinsic instead of declaring it ourselves.
Addressing a post-commit review by @alexrp.
Rodrigo Kumpera [Wed, 22 Jan 2014 21:43:08 +0000 (16:43 -0500)]
[runtime] Handle native size of structs with explicit layout and min alignment smaller than default packing. Fixes #4510
The calculating the native size of structs with explicit layout we need to take into consideration the minimum alignment
needed and the packing asked.
If no packing is supplied, we should respect the minimum alignment. If packing is supplied we should use the minimum required.
João Matos [Wed, 22 Jan 2014 18:46:45 +0000 (10:46 -0800)]
Merge pull request #878 from tritao/master
MSVC build improvements
Marek Safar [Wed, 22 Jan 2014 16:53:15 +0000 (17:53 +0100)]
New tests
Marek Safar [Wed, 22 Jan 2014 16:52:21 +0000 (17:52 +0100)]
[dlr] Implement few missing interpreter instructions
Marek Safar [Wed, 22 Jan 2014 09:27:48 +0000 (10:27 +0100)]
[dlr] Fix UInt64 add/div
Zoltan Varga [Wed, 22 Jan 2014 00:11:23 +0000 (01:11 +0100)]
[jit] Fix the freeing of AOT jump target lists. Fixes #17201.
Zoltan Varga [Tue, 21 Jan 2014 23:58:25 +0000 (00:58 +0100)]
[amd64] Make seq_points clobber callee save registers. Fixes #17310.
Marek Safar [Tue, 21 Jan 2014 22:11:43 +0000 (23:11 +0100)]
[mkbundle] Make duplicate assembly name error tracking less painful
Marek Safar [Tue, 21 Jan 2014 19:39:28 +0000 (20:39 +0100)]
[mkbundle] Remove no longer needed System.Reflection hack
Marek Safar [Tue, 21 Jan 2014 15:31:50 +0000 (16:31 +0100)]
[mcs] Check for initially unassigned struct instance variables of unassigned structs.
Rolf Bjarne Kvinge [Tue, 21 Jan 2014 09:40:50 +0000 (10:40 +0100)]
[System] Include IndentedTextWriter in the mobile profile.
Fixes a build problem for Xamarin.iOS and besides there doesn't seem
to be any reason for it to not be included.
Zoltan Varga [Tue, 21 Jan 2014 03:27:06 +0000 (04:27 +0100)]
[runtime] Fix the DISABLE_JIT build.
Zoltan Varga [Tue, 21 Jan 2014 02:51:15 +0000 (03:51 +0100)]
[gsharedvt] Fix memory leaks. Fixes #16787.
tritao [Mon, 20 Jan 2014 18:50:44 +0000 (18:50 +0000)]
Explicitly define strtoull for MSVC releases previous to 2013.
tritao [Mon, 20 Jan 2014 18:49:37 +0000 (18:49 +0000)]
Fixed SGen qsort code to compile with MSVC.
MSVC does not understand C99, so we emulate it with some explicit allocas.
tritao [Mon, 20 Jan 2014 18:47:11 +0000 (18:47 +0000)]
Fixed return address intrinsics in MSVC.
Patch previously contributed Vincent Povirk, slightly updated due to some review feedback by Alex Petersen.
tritao [Mon, 20 Jan 2014 18:44:39 +0000 (18:44 +0000)]
Fixed missing Interlocked intrinsics in MSVC x86.
Patch previously contributed by Vincent Povirk.
Alex Rønne Petersen [Mon, 20 Jan 2014 17:15:33 +0000 (18:15 +0100)]
Move a variable into the #ifdef path it's used in. Fixes a warning.
Alex Rønne Petersen [Mon, 20 Jan 2014 17:15:13 +0000 (18:15 +0100)]
Remove unused emit_line_number_info_begin () function. Fixes a warning.
Alex Rønne Petersen [Mon, 20 Jan 2014 15:15:03 +0000 (16:15 +0100)]
Remove unused dummy_apc () function on non-WIN32. Fixes a warning.
Miguel de Icaza [Mon, 20 Jan 2014 14:22:17 +0000 (09:22 -0500)]
Revert "Exclude more console code from NET_2_1"
Since we no longer care about Moonlight, this patch is no longer needed,
and enables some cute functionality on the iOS REPL.
This reverts commit
ec445c82f7b7cc86ec9e0c2e561e3f28dd4e57e2.
Marek Safar [Mon, 20 Jan 2014 07:41:11 +0000 (23:41 -0800)]
Merge pull request #876 from knocte/master
Fix very sticky typo in numerous places
Andrés G. Aragoneses [Sun, 19 Jan 2014 16:51:24 +0000 (17:51 +0100)]
Fix very sticky typo in numerous places
Zoltan Varga [Sun, 19 Jan 2014 04:40:47 +0000 (05:40 +0100)]
[runtime] Rename QueueUserAPC () to wapi_thread_interrupt_self () and simplify it.
Rodrigo Kumpera [Fri, 17 Jan 2014 23:15:01 +0000 (18:15 -0500)]
finally_guard has been promoted to the stable set of tests.
Rodrigo Kumpera [Fri, 17 Jan 2014 23:13:57 +0000 (18:13 -0500)]
The shutdown check is racy, we should check if the queue has been cleaned up instead.
Rodrigo Kumpera [Fri, 17 Jan 2014 22:54:42 +0000 (17:54 -0500)]
[runtime] Properly unlink a node in the tls slot freelist. Fixes #17290.
The existing search code would not update the previous pointer so we would be
always unlinking all nodes in the freelist in front of the one picked.
Rodrigo Kumpera [Fri, 17 Jan 2014 21:05:38 +0000 (16:05 -0500)]
[runtime] Don't raise a ExecutionEngineException is shadown copying fails to find the file. Fixes #17251.
Patch by Jan Lamecki. Released under MIT X11 license as per https://bugzilla.xamarin.com/show_bug.cgi?id=17251
Marek Safar [Fri, 17 Jan 2014 20:59:40 +0000 (21:59 +0100)]
[corlib] BinaryStream sting reading from custom stream uses correct count. Fixes #15143
Marek Safar [Fri, 17 Jan 2014 20:03:11 +0000 (21:03 +0100)]
[corlib] Fixes race in disposing CancellationTokenSource. Fixes #17256
Marek Safar [Fri, 17 Jan 2014 19:56:56 +0000 (20:56 +0100)]
[mcs] Less cascading errors
Marek Safar [Fri, 17 Jan 2014 20:00:02 +0000 (12:00 -0800)]
Merge pull request #868 from mariokmk/master
Using the fully qualified assembly name in dependencies