Zoltan Varga [Thu, 23 Jan 2014 03:46:55 +0000 (04:46 +0100)]
[jit] Add a mono_get_jit_tls () helper function.
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
Rodrigo Kumpera [Thu, 16 Jan 2014 20:52:46 +0000 (15:52 -0500)]
[metadata] Fix a potential crasher.
Rodrigo Kumpera [Thu, 16 Jan 2014 20:40:23 +0000 (15:40 -0500)]
[runtime] Fix a few warnings in io-layer and utils.
Rodrigo Kumpera [Thu, 16 Jan 2014 19:05:42 +0000 (14:05 -0500)]
[utils] The fallback mmap should fail if it cannot read the full contents of a file.
Rodrigo Kumpera [Thu, 16 Jan 2014 19:00:47 +0000 (14:00 -0500)]
[eglib] Fix a possible memory leak.
Zoltan Varga [Fri, 17 Jan 2014 17:02:51 +0000 (18:02 +0100)]
[runtime] Use mono_thread_info_tls_get () in sgen as well.
Atsushi Eno [Fri, 17 Jan 2014 14:18:27 +0000 (23:18 +0900)]
[mkbundle] fix template for compressed version. stderr is in stdio.h.
Marek Safar [Fri, 17 Jan 2014 10:32:15 +0000 (11:32 +0100)]
[mcs] Initial lambda checked scope comes from parent block.
Alex Rønne Petersen [Fri, 17 Jan 2014 08:24:50 +0000 (00:24 -0800)]
Merge pull request #856 from madewokherd/textcontrol
Avoid adjusting selection twice in TextControl.
Alex Rønne Petersen [Fri, 17 Jan 2014 08:23:09 +0000 (00:23 -0800)]
Merge pull request #861 from RobertZenz/patch-1
Noted that the fullname attribute is not the same as Type.FullName.
Alex Rønne Petersen [Fri, 17 Jan 2014 08:20:44 +0000 (00:20 -0800)]
Merge pull request #875 from justincc/master
Change Mono manpage to correct effect of MONO_THREADS_PER_CPU env var
Zoltan Varga [Fri, 17 Jan 2014 06:50:05 +0000 (07:50 +0100)]
Zoltan Varga [Fri, 17 Jan 2014 06:27:48 +0000 (07:27 +0100)]
[runtime] Remove some unused includes.
Zoltan Varga [Fri, 17 Jan 2014 06:26:40 +0000 (07:26 +0100)]
[runtime] Simplify mono_thread_state_init_from_handle () on darwin a bit.
Zoltan Varga [Fri, 17 Jan 2014 03:59:23 +0000 (04:59 +0100)]
[runtime] Store the values of some TLS variables into an array in MonoThreadInfo, and use it in mono_thread_state_init_from_handle () on darwin to avoid the usage of platform specific hacks to obtain their values.
Zoltan Varga [Fri, 17 Jan 2014 02:29:33 +0000 (03:29 +0100)]
[runtime] Add a mono_thread_info_yield () function.
Zoltan Varga [Fri, 17 Jan 2014 02:13:10 +0000 (03:13 +0100)]
[runtime] Use mono_thread_info_get_stack_bounds () in sgen instead of duplicating code.
Zoltan Varga [Fri, 17 Jan 2014 02:06:22 +0000 (03:06 +0100)]
[runtime] Move mono_thread_get_stack_bounds () to utils/mono-threads.
Zoltan Varga [Fri, 17 Jan 2014 01:14:45 +0000 (02:14 +0100)]
[aot] Add the rgctx trampolines required by array helper wrappers in the normal place instead of in mono_aot_get_method () so they won't interfere with gsharedvt. Fixes #17284.
Zoltan Varga [Fri, 17 Jan 2014 00:58:45 +0000 (01:58 +0100)]
Disable a gsharedvt test which depends on async functionality which no longer works.
Aaron Bockover [Thu, 16 Jan 2014 23:02:08 +0000 (18:02 -0500)]
driver.c: Revert "Update message"
This reverts commit
85841d0bbdb10e73373032ba4f2cd88a4ec9f80d.
Some scripts unfortunately depend on the verbage "Mono JIT compiler"
in the "mono --version" message. While this was never a blessed
or supported way of getting the version (use pkg-config) of Mono,
nonetheless this breaks some important stuff. We can use the better
message in the (somewhat distant) future.
Justin Clark-Casey [Thu, 16 Jan 2014 20:02:53 +0000 (20:02 +0000)]
Change Mono manpage to correct effect of MONO_THREADS_PER_CPU env var
1. MONO_THREADS_PER_CPU affects ThreadPool min threads rather than max threads
2. Effect is MONO_THREADS_PER_CPU * cpu_cores, there is no +20
3. Default is 1, not 10
Aaron Bockover [Thu, 16 Jan 2014 19:16:59 +0000 (14:16 -0500)]
profiles: define xammac (Xamarin.Mac) profile
Based on the Mobile profile and modeled after
the MonoDroid profile.
Aaron Bockover [Thu, 16 Jan 2014 19:13:10 +0000 (14:13 -0500)]
build: use MOBILE_DYNAMIC instead of MONODROID
Some conditional compilation shouldn't really
be bound to MONODROID, instead add a new define
that can be reused, MOBILE_DYNAMIC.
Aaron Bockover [Thu, 16 Jan 2014 19:09:55 +0000 (14:09 -0500)]
configure.in: remove --with-mobile
It doesn't actually do anything. Was quite
misleading.
Zoltan Varga [Thu, 16 Jan 2014 14:32:03 +0000 (15:32 +0100)]
[jit] Handle native types in mini_type_get_underlying_type () as well.
Zoltan Varga [Thu, 16 Jan 2014 03:03:36 +0000 (04:03 +0100)]
Fix the --enable-native-types build.
Zoltan Varga [Thu, 16 Jan 2014 02:37:21 +0000 (03:37 +0100)]
Fix the build.
Rodrigo Kumpera [Thu, 16 Jan 2014 01:29:03 +0000 (20:29 -0500)]
[runtime] Make gsharing and explicit configure extension.
Rodrigo Kumpera [Thu, 16 Jan 2014 01:22:46 +0000 (20:22 -0500)]
[runtime]Add native type extension.
Marek Safar [Wed, 15 Jan 2014 22:03:30 +0000 (23:03 +0100)]
New test file
Alan McGovern [Wed, 15 Jan 2014 20:17:10 +0000 (15:17 -0500)]
[Microsoft.Build.Engine] Fix the escaping/unescaping of FullPath metadata
It is incorrect to escape the FullPath metadata for a build item when
we invoke GetEvaluatedMetadata. If we do this we end up completely breaking
every file with a special character in it as things like this would always
fail as we'd pass an escaped path to the filesystem:
File.Exists (item.GetEvaluatedMetadata ("FullPath"))
The iOS designer encountered this issue when we added retina images
called "foo@2x.png" to our solution.
With tests.
Marek Safar [Wed, 15 Jan 2014 19:45:58 +0000 (20:45 +0100)]
[mcs] Add additional l-value checks on member access properties as well. Fixes #9571
Marek Safar [Wed, 15 Jan 2014 19:08:59 +0000 (20:08 +0100)]
[mcs] Import extension methods dynamic generic arguments correctly.
Zoltan Varga [Wed, 15 Jan 2014 17:50:47 +0000 (18:50 +0100)]
[jit] Use the jit lock instead of the loader lock in mono_tramp_info_register ().
Zoltan Varga [Wed, 15 Jan 2014 17:34:34 +0000 (18:34 +0100)]
[runtime] Get rid of SuspendThread()/ResumeThread(), integrate its functionality into mono-thread-info.c.
Zoltan Varga [Wed, 15 Jan 2014 03:22:37 +0000 (04:22 +0100)]
[jit] Fix dwarf line number info generation, make AOT use it again instead of the .loc/.file directives of GAS, since CLANG only supports those with assembly, not with .byte directives. Fixes part of #15202.
Marek Safar [Tue, 14 Jan 2014 18:22:48 +0000 (19:22 +0100)]
Miguel de Icaza [Tue, 14 Jan 2014 17:52:18 +0000 (12:52 -0500)]
Add support for stdout returns
Zoltan Varga [Tue, 14 Jan 2014 17:23:10 +0000 (18:23 +0100)]
Rolf Bjarne Kvinge [Tue, 14 Jan 2014 16:50:23 +0000 (17:50 +0100)]
The monotouch_runtime profile needs the DISABLE_COM flag too.
Zoltan Varga [Tue, 14 Jan 2014 16:51:53 +0000 (17:51 +0100)]
Zoltan Varga [Tue, 14 Jan 2014 16:14:34 +0000 (17:14 +0100)]
Revert "[runtime] Get rid of ResumeThread(), use mono_thread_info_resume () instead."
This reverts commit
e0cff630135268203eea6ec2fa25069363f78d5d.
Revert this as its racy.
Sebastien Pouliot [Tue, 14 Jan 2014 16:51:11 +0000 (11:51 -0500)]
Add missing (new) file for System.Net.Http.dll (monotouch build)
Rolf Bjarne Kvinge [Tue, 14 Jan 2014 16:30:30 +0000 (17:30 +0100)]
The monotouch_runtime profile needs the DISABLE_REMOTING flag.
Since the corresponding mono runtime being used has also disabled remoting.
Marek Safar [Tue, 14 Jan 2014 16:30:02 +0000 (17:30 +0100)]
[mcs] Disable container definition check on platforms which don't support it
Marek Safar [Tue, 14 Jan 2014 16:29:16 +0000 (17:29 +0100)]
[linker] Add missing descriptors
Zoltan Varga [Tue, 14 Jan 2014 15:50:45 +0000 (16:50 +0100)]
[runtime] Fix the windows build.
Sebastien Pouliot [Tue, 14 Jan 2014 15:12:11 +0000 (10:12 -0500)]
The mobile profile can support IBindingRuntimePreferences on WebHttpBinding. Fix one S.SM.W unit test failure for XI
Sebastien Pouliot [Tue, 14 Jan 2014 15:11:21 +0000 (10:11 -0500)]
There's no need for those special NET_2_1 cases (not using NameValueCollection like MS) anymore and it fixes 7 S.SM.W unit tests failures for XI (e.g. case sensitiveness)
Sebastien Pouliot [Tue, 14 Jan 2014 15:10:35 +0000 (10:10 -0500)]
There's no need for those special NET_2_1 cases (excluding System.Char) anymore and it fixes 6 S.SM.W unit tests failures for XI.
Sebastien Pouliot [Tue, 14 Jan 2014 15:09:46 +0000 (10:09 -0500)]
[test] Disable a test for XI (only) as it does not support dynamic proxy code generation
Zoltan Varga [Tue, 14 Jan 2014 13:51:47 +0000 (14:51 +0100)]
Fix a warning.
Zoltan Varga [Tue, 14 Jan 2014 13:50:42 +0000 (14:50 +0100)]
Revert "Fix a warning."
This reverts commit
c5104c091af3ffa65ac5be45f320e993ff833427.
Marek Safar [Tue, 14 Jan 2014 13:45:38 +0000 (14:45 +0100)]
Fixes failing test
Marek Safar [Tue, 14 Jan 2014 13:25:01 +0000 (14:25 +0100)]
[build] Add Microsoft.CSharp to monotouch profile
Marek Safar [Tue, 14 Jan 2014 13:21:55 +0000 (14:21 +0100)]
[System] Use generic equality comparer in Find/FindLast methods. Fixes #5245
Zoltan Varga [Tue, 14 Jan 2014 03:37:43 +0000 (04:37 +0100)]
[arm] Fix an assert caused by large offsets. Fixes #17208.
Zoltan Varga [Tue, 14 Jan 2014 02:47:26 +0000 (03:47 +0100)]
[runtime] Get rid of ResumeThread(), use mono_thread_info_resume () instead.
Zoltan Varga [Tue, 14 Jan 2014 01:51:54 +0000 (02:51 +0100)]
Fix a warning.
Zoltan Varga [Tue, 14 Jan 2014 01:49:03 +0000 (02:49 +0100)]
[runtime] Centralize low-level thread creation in utils/mono-threads.c. Get rid of the CreateThread () function in io-layer.
Michael Hutchinson [Mon, 13 Jan 2014 19:57:52 +0000 (14:57 -0500)]
[xbuild] Add 4.0 client profile
BXC1426 - xbuild should include the ".NET 4.0 client" framework profile
Michael Hutchinson [Sun, 12 Jan 2014 20:49:10 +0000 (15:49 -0500)]
[xbuild] 4.0 test targets go in 4.5 profile
Zoltan Varga [Mon, 13 Jan 2014 18:03:00 +0000 (19:03 +0100)]
[jit] Call mini_replace_type () in one place.
Zoltan Varga [Mon, 13 Jan 2014 17:27:49 +0000 (18:27 +0100)]
Zoltan Varga [Mon, 13 Jan 2014 16:13:30 +0000 (17:13 +0100)]
[sdb] Fix setting of byref variables in registers. Fixes #17185.
Rodrigo Kumpera [Mon, 13 Jan 2014 15:52:49 +0000 (10:52 -0500)]
[io-layer] Add essay on my choices for is_file_writable.