Miguel de Icaza
7975f5090d
Update version
2015-04-26 09:00:31 -04:00
Marek Safar
1aa57ef746
[corlib] Add DefaultDllImportSearchPathsAttribute
2015-04-25 08:53:19 -04:00
Alexis Christoforides
fd35b80bef
Bump to bring in xamarin/bockbuild@257a1a8920
2015-04-22 15:20:53 -04:00
Alexis Christoforides
c8db1b0fbc
Bump to bring in xamarin/bockbuild@42570d260b
2015-04-16 12:52:12 -04:00
Rodrigo Kumpera
d136b7923f
Commit marker for the gtk rendering fix.
2015-04-13 11:42:16 -04:00
João Matos
ba35e6882f
Merge pull request #1697 from directhex/mono-4.0.0-branch
...
[RPM] Fix MONO_PATH in RPM dependency generators
2015-04-09 13:22:29 +01:00
Jo Shields
0dfb848cde
[RPM] Fix MONO_PATH in RPM dependency generators
...
Otherwise, RPMs don't have any dependency information
2015-04-09 13:19:15 +01:00
Zoltan Varga
f42a83b1b4
[runtime] Allocate more space to thunks in dynamic methods. Fixes #28747 .
2015-04-07 17:15:21 -04:00
Alexander Köplinger
38e08858e6
Fix incorrectly resolved merge conflict
...
aot-compiler was incorrectly removed from net_4_5_SUBDIRS in ccc2e36bc5 , it should still be there in mono-4.0.0-branch (it was moved to net_4_5_PARALLEL_SUBDIRS in 3ceb869495 later on).
2015-04-07 14:36:12 +02:00
Alexander Köplinger
ccc2e36bc5
Integrate binary reference assemblies for v2.0/3.5 into the build system
...
Rename the net_4_0 profile which is already only used to trigger copying of reference assemblies
to binary_reference_assemblies and include the 2.0/3.5 files there. This should make it easier
to add more profiles in the future and doesn't clutter the build system as much as making separate
net_2_0 and net_3_5 profiles that do the same.
Conflicts:
mcs/class/Makefile
2015-04-06 18:27:27 -04:00
Rodrigo Kumpera
fe1279932f
Update the reference assemblies we ship in mono.
2015-04-06 12:52:37 -04:00
Marcos Henrich
9236ac41e9
[corlib] TimeZoneInfo.TryAddTicks is now private.
2015-04-04 15:22:07 +01:00
Marek Safar
4639c99a48
[mcs] Mutate nested storey initialization only when needed. Fixes #28211
2015-04-03 15:55:07 +02:00
Marcos Henrich
7fc9ff987a
[corlib] Refactored TimeZoneInfo DateTime overflow checks.
...
Added more overflow checks.
Fixed some overflow checks.
2015-04-03 10:27:53 +01:00
Marcos Henrich
989c0ff6aa
[corlib] Fixed ParseTZBuffer with DST periods longer than a year.
...
AdjustmentRule specifies a DST period that starts and ends within a year.
When we have a DST period longer than a year, the generated AdjustmentRule may not be usable.
Thus we fallback to the transitions.
Fixes #24086 .
2015-04-03 10:27:52 +01:00
Marcos Henrich
4420113b52
[corlib] Removed referencesource duplicated code.
2015-04-03 10:27:51 +01:00
Marcos Henrich
f7c051a73c
[corlib] Renamed GetUtcOffset to GetUtcOffsetHelper.
...
The new name is to avoid using the helper method instead of GetUtcOffset.
2015-04-03 10:27:50 +01:00
Marcos Henrich
c555aee959
[corlib] Changed TimeZoneInfo methods to use GetUtcOffset.
...
In some cases rules are not available so we use GetUtcOffset instead of GetApplicableRule.
2015-04-03 10:27:48 +01:00
Sebastien Pouliot
f26999f403
[linker] Ensure updated Scope for exported types (e.g. unlinked PCL facade assemblies in a Nuget) [ #28617 ]
2015-04-02 16:46:11 -04:00
Sebastien Pouliot
125e4f4705
[tools] Fix mono-cil-strip to return non-zero on failure [ #28617 ]
2015-04-02 16:46:01 -04:00
Marek Safar
8d291f789a
[mcs] Handle null operator inside parenthesis expression. Fixes #28172
2015-04-02 15:24:33 +02:00
Zoltan Varga
f70e175f52
Fix the build.
2015-04-01 10:53:48 -04:00
Zoltan Varga
cd906692af
Revert "Fix the build."
...
This reverts commit 21d849bd5b .
Revert this as it picked up unrelated changes.
2015-04-01 10:52:35 -04:00
Marek Safar
1830c45f5e
[system.net.http] Use correct separator for headers tostring
2015-04-01 10:01:47 +02:00
Sebastien Pouliot
3a1c4b6e41
[tests] ManualResetEventSlim.SpinCount depends on the number of CPU/cores and we can't assume everything as multiple CPU/cores [ #28611 ]
2015-03-31 21:30:48 -04:00
Zoltan Varga
bce084ad29
[runtime] Add more caches to mono_marshal_get_native_wrapper () to avoid mixing wrappers with/without exception checks.
2015-03-31 18:33:13 -04:00
Zoltan Varga
21d849bd5b
Fix the build.
2015-03-27 12:14:31 -04:00
Zoltan Varga
ce30aaaa01
[runtime] Synchronize the overflow checks between mono_string_new_size () and mono_gc_alloc_string ().
2015-03-27 06:38:14 -04:00
Zoltan Varga
5c1a143121
[jit] Avoid emitting seq points in inlined methods.
2015-03-27 06:37:55 -04:00
Marek Safar
f99b5b2825
[mcs] Reset flowanalysis finally scope per parameters block. Fixes #28196
2015-03-27 07:36:34 +01:00
Zoltan Varga
ce674ebde7
[io-layer] Fix the freeing of MonoProcess structures. Fixes #28209 .
2015-03-26 20:50:36 -04:00
Marek Safar
87c62a19b2
[system.net.http] Parse range values using long range. Fixes #26109
2015-03-26 23:47:04 +01:00
Marek Safar
d2a79f98fb
[mcs] The left-hand side of an assignment cannot contain a null propagating operator. Fixes #28435
2015-03-26 22:52:38 +01:00
Vincent Povirk
051999d6f0
Rename decimal functions to not conflict with win32 versions.
2015-03-26 21:01:45 +01:00
Martin Baulig
4e6e2a89fe
[System]: Fix the AllowWriteStreamBuffering check. Bugs #26640 and #26936 .
...
Added new tests for this to the web-tests:
https://github.com/xamarin/web-tests/commit/e7b5ac42897e629e9e4107cf6f9ae9e0a9fef45a
and re-enabled this one, which regressed:
https://github.com/xamarin/web-tests/commit/046da02c631c8799c7ab5025cd3b685f4a3e66f6
(cherry picked from commit 6808e6a5e6 )
2015-03-26 16:13:39 +01:00
Marek Safar
291931ebea
[mcs] Report abstract member hiding only for members which one can override. Fixes #28213
2015-03-26 10:06:52 +01:00
Marek Safar
57df2b7bc3
[mcs] Resize identifier buffer in all cases. Fixes #28292
2015-03-25 17:19:04 +01:00
Marek Safar
4fb3a99b5f
[mcs] Fix parsing of interpolated strings inside conditional expression. Fixes #28293
2015-03-25 16:37:22 +01:00
Marek Safar
b4eb72ca7d
[mcs] Allow built-in types to have partial declaration
2015-03-25 15:13:25 +01:00
Zoltan Varga
c61bcc925d
[runtime] Avoid returning null from Marshal.AllocCoTaskMem () if size is 0. Fixes #28383 .
2015-03-25 01:31:33 -04:00
Alex Rønne Petersen
b4d6290008
[profiler] Make perf syscall work on ARM64.
2015-03-25 02:43:34 +01:00
Alex Rønne Petersen
9e5820094b
[profiler] Clean up some unused declarations.
2015-03-25 02:43:29 +01:00
Alex Rønne Petersen
86ee34858d
[profiler] Don't build the profiler on Windows.
2015-03-25 02:43:17 +01:00
Alex Rønne Petersen
b0a10b2f73
[configure] Add a --disable-perf-events flag to disable perf on Linux.
2015-03-25 02:43:07 +01:00
Alex Soto
84a1764a57
[MonoDataSqlite] Add test for Xamarin.iOS specific bug 27864
...
src: https://bugzilla.xamarin.com/show_bug.cgi?id=27864
As of iOS 8.2 Apple updated Sqlite and broke queries that used to work
pre iOS 8.2 like the select command in this test, The pruppose of this
test is to know when apple fixes this. Expected test behaivour is as follows.
* If iOS 8.2+ Test will pass as long as apple does not fix the bug
* If iOS < 8.2 Test will pass as it does work as expected
* If iOS 8.2+ and apple fixed bug 27864 test will fail and we will need to
remove the fail check on lines 105 and 106
2015-03-24 17:34:19 -06:00
Zoltan Varga
a0a93c4263
Revert "[io-layer] Fix the freeing of MonoProcess structures. Fixes #28209."
...
This reverts commit 9e351577c2 .
Revert this until it is fixed.
2015-03-24 17:35:54 -04:00
Zoltan Varga
e25c686499
Revert "[runtime] Fix an uninitialized memory error added by eaf200b37bd8ba29d59fc7054f8409e9b76b5697."
...
This reverts commit 2335cca8fd .
Revert this until it is fixed.
2015-03-24 17:35:40 -04:00
Zoltan Varga
d2f18038ba
Revert "[runtime] Fix another regression caused by eaf200b37bd8ba29d59fc7054f8409e9b76b5697."
...
This reverts commit 5c55cf4b06 .
Revert this until it is fixed.
2015-03-24 17:35:20 -04:00
Zoltan Varga
5c55cf4b06
[runtime] Fix another regression caused by eaf200b37b.
2015-03-24 16:51:53 -04:00
Marcos Henrich
ec5f493016
[System] Fixed RemoveConnectionGroup concurrent issue.
...
CloseConnectionGroup can concurrently call RemoveConnectionGroup and remove a group that has added to removeList.
We now check that the group still exists before removing it.
Fixes #19823 .
2015-03-24 19:19:09 +00:00
Zoltan Varga
2335cca8fd
[runtime] Fix an uninitialized memory error added by eaf200b37b.
2015-03-24 14:56:31 -04:00
Zoltan Varga
9e351577c2
[io-layer] Fix the freeing of MonoProcess structures. Fixes #28209 .
2015-03-24 12:37:01 -04:00
Sebastien Pouliot
b7bcd23071
[tests] Tweak MemoryMappedFile test case that fails on iOS/ARM64 [ #27667 ]
...
Filled with Apple. From bug report:
The problem appears to be caused by a bug in mmap on the arm64 ios.
In this test, we request a page and mmap returns successfully, but when trying
to access the mapped memory, the program crashes after the 4097th byte, meaning
that it only maps us 4kb(???). It should be mentioned that on arm64 ios the
page size is 16kb.
2015-03-24 10:47:32 -04:00
Sebastien Pouliot
798a777153
Revert "Fix mmap past file end on arm64 ios."
...
This reverts commit 70f5971e04 .
2015-03-24 10:17:08 -04:00
Alex Rønne Petersen
c52336f439
[arm] Also fix OP_ATOMIC_STORE_R4.
2015-03-24 04:26:04 +01:00
Sebastien Pouliot
e3dc17469e
[tests] Tweak DateTime.AddMillisecondsOutOfRangeException* tests to work on ARM [ #28311 ]
2015-03-23 18:09:14 -04:00
Marek Safar
26d10e6572
Bump reference sources for bug #28331
2015-03-23 20:12:40 +01:00
Zoltan Varga
89a9c7646e
[arm] Fix OP_ATOMIC_LOAD_R4.
2015-03-23 14:25:45 -04:00
Sebastien Pouliot
b1c6715167
[tests] Some of the new decimal tests (ported from MS tests) do not work on every culture, this set one that works for them
2015-03-20 15:26:39 -04:00
Zoltan Varga
f1258f8548
[runtime] Disable the locking of archives in libtool, it was a workaround around an old darwin bug which got fixed years ago: http://lists.gnu.org/archive/html/bug-libtool/2009-05/msg00062.html .
2015-03-20 00:18:06 -04:00
Zoltan Varga
a4372a69fb
[aot] Fix support for direct icalls in llvm mode.
2015-03-19 23:26:41 -04:00
Zoltan Varga
d474800f1a
[jit] Use unique castclass caches in all cases. Fixes #27787 .
2015-03-19 22:46:25 -04:00
Zoltan Varga
a59c479a68
[runtime] Fix the isinst_with_cache wrapper on 64 bit platforms.
2015-03-19 22:46:17 -04:00
Zoltan Varga
ce8f657da1
[io-layer] Avoid closing std file descriptors on shutdown. Fixes #28098 .
2015-03-19 17:36:36 -04:00
Zoltan Varga
1605a60754
Fix the build.
2015-03-17 17:44:06 -04:00
Zoltan Varga
67a5a11bd3
[jit] Avoid disabling direct calls to icalls on arm64+llvm.
2015-03-17 17:38:51 -04:00
Zoltan Varga
00232c8704
[jit] Add exception checks after direct calls to icalls by inlining the wrapper.
2015-03-17 17:38:22 -04:00
Zoltan Varga
44a0663032
[jit] Disable direct icalls for now to fix the build.
2015-03-17 17:38:12 -04:00
Zoltan Varga
93cae9f52b
[jit] Add support for directly calling normal icalls. Enable it for a few perf-sensitive classes like Math.
2015-03-17 17:37:31 -04:00
Zoltan Varga
0078c40250
[aot] Enable direct calls to icalls in aot mode, disable them when the 'direct-calls' aot option is used.
2015-03-17 17:33:41 -04:00
Zoltan Varga
18d408f00d
[jit] Disable direct calls to icalls when using llvm, llvm can't handle direct calls to 64 bit addresses (tests/jit-float.exe fails).
2015-03-17 17:28:54 -04:00
Zoltan Varga
9578437645
[jit] Make the opcode emulation jit icalls callable without a wrapper in some cases.
2015-03-17 17:26:18 -04:00
Zoltan Varga
df3eb65bb7
[runtime] Use mono_set_pending_exception () in some places in icalls. Avoid using it for throwing exceptions returned by mono_thread_execute_interruption (), since that seems to cause problems.
2015-03-17 17:25:15 -04:00
Zoltan Varga
82b07416d5
[runtime] Mark mono_set_pending_exception () as a cold function, so calling code is generated out-of-line.
2015-03-17 17:25:02 -04:00
Zoltan Varga
886b00dc1c
[jit] Use mono_set_pending_exception () instead of throwing exceptions in JIT icalls.
2015-03-17 17:24:56 -04:00
Zoltan Varga
990c40cd4e
[jit] Make mono_thread_interruption_checkpoint () return the exception which needs to be thrown and throw it from the managed method/wrapper which called it.
2015-03-17 17:24:27 -04:00
Vlad Brezae
1b875c9b15
[x86] Handle stack pop done by native stdcalls.
...
The problem was caused with the introduction of the pushless backend. We have to compensate for the arguments being popped by native stdcall callees, to keep param_area from shrinking. Fixes #27597
2015-03-17 04:53:59 -04:00
Zoltan Varga
e4c026208c
[io-layer] Avoid the usage of atexit (), clean up handles normally.
2015-03-16 16:26:37 -04:00
Marcos Henrich
52ddcb28c3
[runtime] Fixed Process.GetProcesses ().
...
Process.GetProcesses () was not returning any processes.
2015-03-16 12:56:00 +00:00
Zoltan Varga
565c18bf2f
Fix the build.
2015-03-14 15:13:08 -04:00
Zoltan Varga
c961e6ed4b
Fix the aot compiler.
2015-03-14 05:02:19 -04:00
João Matos
d5b9350783
[aot] Wrap the commands we pass to Windows's system() in double quotes.
...
We need an extra set of quotes around the whole command to properly handle commands
with spaces since internally the command is called through "cmd /c.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=27899 .
2015-03-13 17:15:12 +00:00
João Matos
3f23cdd9a5
[aot] Escape the command executables with quotes to deal properly with spaces in paths.
2015-03-13 17:15:10 +00:00
João Matos
b4921c741c
[aot] Ensure the LLVM tools path ends with a directory separator appropriate to the system.
2015-03-13 17:15:08 +00:00
Rolf Bjarne Kvinge
eee6839126
[mono-api-html] Render generic parameter constraints.
...
Makes changed constraints show up in diffs.
2015-03-13 16:44:20 +01:00
Zoltan Varga
3b18a06f63
[jit] Throw the proper exception on integer overflow from div/rem if MONO_ARCH_NEED_DIV_CHECK is defined.
2015-03-12 18:28:04 -04:00
João Matos
08678f18e7
[eglib] Fixed file being created without read/write permission on Windows.
...
This bug manifested itself as files being written to disk with 0 bytes.
Fixes the AOT compiler on Windows not working properly.
https://bugzilla.xamarin.com/show_bug.cgi?id=27900
2015-03-12 16:41:37 +00:00
Marcos Henrich
d51afc4c5b
[corlib] TimeZoneInfo.TryGetTransitionOffset overflow checks.
2015-03-12 13:23:03 +00:00
Marcos Henrich
bc7b4e330a
[corlib] Fixed DateTime overflow check in TimeZoneInfo.
2015-03-12 12:46:17 +00:00
Zoltan Varga
9f0f929a97
[jit] Enable the gsharedvt testcase which now works.
2015-03-11 18:48:39 -04:00
Rodrigo Kumpera
165a47d044
Merge pull request #1625 from BrzVlad/fix-ios-mmap
...
Fix mmap past file end on arm64 ios.
2015-03-11 17:14:55 -05:00
Vlad Brezae
70f5971e04
Fix mmap past file end on arm64 ios.
...
On arm64, where page size is 16k, if trying to map after the file end mmap doesn't map us the full page but only 4kb. This bug is present on iOS 8.2. As a workaround, we forcefully extend the file to the desired size to make sure than we can map the full page.
https://bugzilla.xamarin.com/show_bug.cgi?id=27667
2015-03-11 14:01:43 -07:00
Marek Safar
fac9fc87e6
[system] Fixes InvalidCastException in OpenReadAsyncCallback
2015-03-11 17:28:59 +01:00
Rodrigo Kumpera
5554b6ad11
[io-layer] When checking if a file is a program check both read and execute permissions. Fixes #27565
...
The original behavior of only checking for read permission broke sudo on OSX which only have the execute permission set.
2015-03-11 12:28:51 -04:00
Jo Shields
625f62c167
[msvc] Change target MSVC release from v120 to v120_xp
...
They're basically the same thing, but v120 has DX10+ capabilities and v120_xp
is DX9 only. Since we're not building against DirectX, the difference is
purely academic - but changing the value to v120_xp means MSVC binaries run
on XP+, not Vista+
(cherry picked from commit 577482e336 )
2015-03-11 15:25:16 +00:00
Jo Shields
d3aedd8189
[msvc] Refresh .def files
...
(cherry picked from commit 1d33de4a70 )
2015-03-11 12:06:46 +00:00
Jo Shields
1bd3b8aca0
Bump winconfig.h to 4.0.0
2015-03-11 10:13:09 +00:00
Jo Shields
39dbbe2d65
Use MSVC2013 for *all* mono.sln dependants
...
(cherry picked from commit c127ea46a3 )
2015-03-11 10:00:48 +00:00
Jo Shields
7f27bd72df
Add _WIN32_WINNT to Release definition, not just Debug
...
(cherry picked from commit 21bc7fa948bee919644a733ca1355366c69926fd)
2015-03-11 09:49:15 +00:00
João Matos
f31b86c340
[runtime] Upgraded Jay MSVC project to VS 2013.
...
(cherry picked from commit b528a79db5 )
2015-03-11 09:37:25 +00:00
João Matos
bc98119172
[runtime] Fixed the MSVC build.
...
Even though this seems like it's just moving the files around in the project, for some reason it makes a difference to VS.
(cherry picked from commit 220afd9d49 )
2015-03-11 09:30:01 +00:00
Zoltan Varga
1aba894227
Fix the build.
2015-03-10 18:26:51 -04:00
Zoltan Varga
419f2abbd9
Fix some bugs in 92ca06aa7d. Fixes #26989 .
2015-03-10 17:54:26 -04:00
Zoltan Varga
ab869b5517
[jit] Fix the handling of byref locals in mono_allocate_stack_slots2 ().
2015-03-10 17:52:42 -04:00
Mark Probst
c00db28a9b
[tests] Test case for #27147 .
2015-03-10 14:44:52 -07:00
Mark Probst
a69610255d
[sgen] Fix a bug in 64 bit LOS cardtable scanning. Fixes #27147 .
2015-03-10 14:44:50 -07:00
Alexander Köplinger
397fb0c548
[corlib] Fix timezone dependent DateTimeOffset test
...
Instead of trying to recreate the date with the current timezone, we should make the date assume UTC and compare against that.
2015-03-09 21:59:43 -04:00
João Matos
73d7873d31
[runtime] Fixed Windows mono_threads_core_get_stack_bounds to work with cross-compiled targets.
2015-03-09 14:22:16 +00:00
João Matos
66c1b9c77c
Enable x86 cross compilation on Windows.
2015-03-06 18:15:12 +00:00
João Matos
922f5662ed
Do not try to use the native GCC linker when targeting Android from Windows.
2015-03-06 17:43:06 +00:00
João Matos
59c0207c87
Fixed Windows system commands calls with non-ASCII paths.
...
This is a bit of an hack but it works for now... ideally we should be processing the Unicode command line flags passed by the CRT at startup instead of trying to convert the MBCS string to a wide string.
2015-03-06 17:43:04 +00:00
Sebastien Pouliot
e80398b23f
Remove the EXPORT ciphers and related code path
...
That was still useful in 2003/2004 but the technical and legal landscape
changed a lot since then. Removing the old, limited key size, cipher
suites also allow removed additional parts of the code that deals with
them.
2015-03-06 10:37:57 -05:00
Sebastien Pouliot
4c54e08936
Remove the client-side SSLv2 fallback.
...
There's almost no SSLv3 web site left so a v2 fallback is only extra
code we do not need to carry forward.
2015-03-06 10:37:55 -05:00
Sebastien Pouliot
5c2a3c25fd
TLS protocol: add handshake state validation
2015-03-06 10:37:53 -05:00
Rodrigo Kumpera
53d221e810
[loader] If probing for a pinvoke fails, log the error mono_dl_symbol gives us.
...
We used to swallow the error, which is unhelpful.
The reason for that might be because we probe multiple names before giving up but
even then, it's ok log all attempts. It will make troubleshooting easy, even if we
have to go through a lot more log entries.
2015-03-05 15:22:03 -05:00
Zoltan Varga
ea43208df6
[sdb] Avoid asserts on darwin when the thread deregistration code is ran from a pthread dtor. Fixes #27697 .
2015-03-05 15:03:54 -05:00
Sebastien Pouliot
81f43a2487
[tests] IPInterfaceProperties DNS address does not currently work on iOS devices (since it read /etc/resolve.conf). Ignore it for XI until #27707 is fixed
2015-03-05 14:04:09 -05:00
Miguel de Icaza
89a08ecc33
[System.ServiceModel.Web/WebMessageFormatter] Fix OperationContracts with void returns
...
WebMessageFormatter crashes when the OperationContracts had a void return type.
Fixes #20764 , patch from <[email protected] >
2015-03-05 11:34:39 -05:00
Miguel de Icaza
9aae4ade12
[SslClientStream] Prevent crashes when a connection is closed
...
When a socket has been closed as part of the negotiation, the
SendAlert method would crash when trying to reuse the socket.
Add try/catch around this to prevent this.
Fixes #19334
2015-03-05 11:33:55 -05:00
João Matos
51d34c61fd
Support multiple options when processing the AOT flag "ld-flags".
2015-03-03 16:29:41 +00:00
Zoltan Varga
1050938254
[aot] Fix thumb support with separate llvm modules.
2015-03-02 22:38:38 -05:00
Zoltan Varga
ab5d6b3b9f
[arm] Fix support for backward branches in mono_arm_get_thumb_plt_entry ().
2015-03-02 22:38:33 -05:00
Marek Safar
b6438ca27b
[mcs] Handle string constants inside interpolated string expression. Fixes #27533
2015-03-02 14:20:42 +01:00
Jo Shields
092a04e4f7
Workaround for X509Certificate.RSA throwing an unhandled exception in ASN1 parsing of certificates with ECC public keys only.
2015-03-02 13:07:14 +00:00
Marek Safar
fcb023636e
Bump referencesource to mono-4.0.0-branch
2015-03-02 11:11:33 +01:00
Marek Safar
b16f85b9dd
[mcs] Add cloning to string interpolation expressions. Fixes #27525
2015-03-02 10:17:15 +01:00
Alexis Christoforides
5b7798b6c5
Bump to trigger build with https://github.com/xamarin/bockbuild/commit/b8ac90ecd1e89edd9ba62e3fe04581cb75f1d063
2015-03-01 12:09:54 -05:00
Zoltan Varga
709565592d
[llvm] Increase the size of a parameter array which was too small for some arm64 calling conventions.
2015-02-27 13:33:54 -05:00
João Matos
85f7fefe8a
Added "ld-flags" to pass extra linker flags to the AOT linker pipeline.
2015-02-27 17:27:16 +00:00
Rodrigo Kumpera
e0873dee3b
Remove explicit support for 2.0, it will now use 4.5
2015-02-27 11:07:44 -05:00
Zoltan Varga
26340997e5
[aot] Fix thumb support when using separate llvm modules.
2015-02-26 15:27:31 -05:00
Zoltan Varga
43743ac7f8
[runtime] Add a --disable-visibility-hidden flag to disable the usage of -fvisibility=hidden for now.
2015-02-26 15:20:59 -05:00
Rolf Bjarne Kvinge
cfe89ef924
Ignore a few decimal tests on mobile, according to #27269
...
https://bugzilla.xamarin.com/show_bug.cgi?id=27269
2015-02-26 20:00:41 +01:00
Zoltan Varga
8a3a77dce1
[runtime] Disable the "bridge-implementation=tarjan,major=marksweep-conc|ms-conc-tarjan-bridge" sgen tests which currently fail.
2015-02-26 12:57:52 -05:00
Rolf Bjarne Kvinge
00251b8c11
Don't use _NSGetEnviron on arm64.
2015-02-26 13:55:41 +01:00
Rolf Bjarne Kvinge
2c78813a69
Restrict IOKit usage to desktop OSX.
...
IOKit is a private framework in iOS, so it can't be used (and
no headers are provided, so it doesn't even compile).
2015-02-26 13:52:16 +01:00
João Matos
a9a759626a
Fixed compilation on Linux targets without linux/serial.h.
...
/Users/builder/data/lanes/monodroid-mavericks-master/7de6731a/source/mono/support/serial.c:25:26: fatal error: linux/serial.h: No such file or directory
#include <linux/serial.h>
The header is only available on Android NDK API level >= 21.
2015-02-26 12:10:03 +00:00
Alexander Köplinger
ebf6644648
Remove EntityFramework from class libs
...
We currently ship a horribly outdated version of EF. This is unnecessary since EF is on NuGet and has an active set of users using it on Unix.
Miguel gave his +1 on the mailing list already.
2015-02-26 01:29:54 +01:00
Rodrigo Kumpera
c5a2a17a55
Fix my last commit to properly include the tarjan test suite.
2015-02-25 19:16:20 -05:00
Rodrigo Kumpera
a2042e361c
Add the tarjan bridge to the test matrix.
2015-02-25 19:16:14 -05:00
Rodrigo Kumpera
1293675929
[sgen] Fix the sgen bridge test suite. Oh my.
2015-02-25 19:16:10 -05:00
Rodrigo Kumpera
5875dd48c2
[sgen-bridge] Fix all the bridges after the change to have descriptor loading happen outside of scanning.
...
This changes all bridges to use the _safe variant of sgen_obj_get_descriptor. Bridge processing happens in
the post-scan world, before objects get untagged.
2015-02-25 18:23:24 -05:00
Miguel de Icaza
c1d60b3918
[Serial] Add support for high baud rates to MacOS
2015-02-25 16:32:43 -05:00
Miguel de Icaza
6e688fc5a8
[serial,signal] Add support for Linux arbitrary baud rates + drop Apple legacy poll support
...
This patch brings support for arbitrary baud rates in Linux, from patch:
https://bugzilla.xamarin.com/show_bug.cgi?id=8207
Which has been MIT licensed (see mono-devel-list).
In addition, while testing the patch, discovered that we are using
fakepoll.h on MacOS which was there to support Tiger-era broken poll
implementations.
The details about the lack of poll support come from this document
that is now only available on web.archive.org:
http://web.archive.org/web/20030604064847/http://developer.apple.com/technotes/tn2002/tn2071.html
And the original Mono bug that reported the problem in 2008, followed
by the fixes is reported and discussed here:
https://bugzilla.novell.com/show_bug.cgi?id=384227
The source of the problem, confirmed by an Apple employee at the time
(form the bug) is that poll sometimes results in returning POLLHUP
when a POLLIN was expected:
http://curl.haxx.se/mail/lib-2005-05/0122.html
This web site tracks the behavior of poll (POLLHUP and POLLIN) across
Posix implementations when you reach an end of file:
http://www.greenend.org.uk/rjk/tech/poll.html
2015-02-25 15:17:33 -05:00
Marek Safar
ff2d07c4a1
[system.net.http] Add another workaround for incompatible mono Uri handling. Fixes #27386
2015-02-25 12:32:11 +01:00
Marek Safar
83d87aeb90
[System.Net.Http] Change relative uri test to not require internet access
2015-02-25 12:32:02 +01:00
Marek Safar
ca9ee4b264
[Mono.XBuild.Tasks] Fixes versioning with newer than 4.0 special msbuild profiles
2015-02-24 18:11:00 -05:00
Rodrigo Kumpera
807ca43a59
Bump mono version to 4.0
2015-02-24 17:28:43 -05:00
Rodrigo Kumpera
7ca1857b8d
Merge pull request #1592 from akoeplinger/remove-npgsql-4.0
...
Remove Npgsql from class libs (mono-4.0.0-branch)
2015-02-24 14:55:40 -06:00
Alexander Köplinger
51e5f8cc9b
Remove Npgsql from class libs
...
This has been requested by the maintainers of Npgsql a few times already (https://bugzilla.xamarin.com/show_bug.cgi?id=23119 ) and we should do it for Mono 4.0.
Miguel gave his +1 on the mailing list already.
2015-02-24 21:50:42 +01:00
Marek Safar
46b86edb63
[facades] Add missing System.ServiceModel.Primitives forwarders to MT profile. Fixes #27338
2015-02-24 20:31:01 +01:00
Marek Safar
ee2d91851a
[system.net.http] Accept header with multiple values. Fixes #27352
2015-02-24 19:18:44 +01:00
Marek Safar
3e854a1f22
[build] 3.10 bump for bootstrap was too much
2015-02-24 09:01:52 +01:00
Marek Safar
4576568996
[system] Bump reference sources to get correct category names
2015-02-24 08:51:33 +01:00
Zoltan Varga
51a74a27da
[runtime] Disable some dyncall/gsharedvt fullaot tests on amd64.
2015-02-23 19:50:03 -05:00
Zoltan Varga
7aa521b02c
[bcl] Fix Console support on ios, the TextWriter class from the reference sources called TextWriter:Write(char), so stdout was never flushed.
2015-02-23 19:47:52 -05:00
Alexander Köplinger
f3f1799700
Ensure MakeRelative() works even when basePath doesn't end in slash
2015-02-22 20:41:29 +01:00
Alexander Köplinger
0a8592dc5b
[Microsoft.Build.Engine] Implement MakeRelative() predefined property function
2015-02-22 20:09:31 +01:00
Marek Safar
321bb7200c
Merge pull request #1573 from akoeplinger/msbuild-import-empty
...
[Microsoft.Build.Engine] Ignore import with empty project attribute when condition is false
2015-02-21 13:22:01 +01:00
João Matos
b92e728081
Merge pull request #1583 from akoeplinger/fix-genproj-line-endings
...
[genproj] Fix line endings in generated file to be CRLF
2015-02-20 20:14:15 +00:00
Atsushi Eno
684f9b08a5
Merge branch 'master' of github.com:mono/mono
...
(some commits occurred while I have been cherry-picking a lot of "they are
in import-system-xml branch but it works with existing sys.xml" stuff.)
work in master
2015-02-21 03:35:57 +08:00
Atsushi Eno
545cdaf8f7
[WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
...
It needs LocalName. So use other overloads instead.
2015-02-21 03:33:23 +08:00
Atsushi Eno
6499ba871d
[XLinq] create new instance of XmlSchemaInfo for each XObject from XmlReader.
...
In referencesource, XmlReader.SchemaInfo does not return different instances
for each node at its state but just returns the XmlReader itself (which
implements IXmlSchemaInfo). Hence, if we just set the corresponding
IXmlScemaInfo to each XObject, it results in inconsistent state.
This fixes two regressions in ExtensionsTest (XAttributeFailValidate and
XAttributeThrowExceptionValidate).
2015-02-21 03:32:44 +08:00
Atsushi Eno
923ed6b241
[Sys.Security] don't expect XmlNode.ChildNodes returns the same instance.
...
It did in mono implementation. It doesn't on referencesource.
2015-02-21 03:31:39 +08:00
Atsushi Eno
d9184320f7
[Configuration] skip whitespaces in the settings xml.
...
This is required after we switch to referencesource, which somehow
preserves whitespaces during deserialization from xml.
2015-02-21 03:29:21 +08:00
Atsushi Eno
2951e3b6d8
[Xaml] XamlXmlWriter should flush output when disposing.
...
With referencesource, XmlWriter for TextWriter buffers the output.
When closing XamlXmlWriter, it does not flush the output, causing
the buffered XmlWriter output discarded in the wild.
2015-02-21 03:28:44 +08:00
Atsushi Eno
3001bd0d94
[WCF] for certain kind of Messages, do now write BodyContents twice.
2015-02-21 03:28:07 +08:00
Atsushi Eno
a1d5c9c48d
[Sys.Xml] when deserializing XmlNode, use XmlReader's NameTable.
2015-02-21 03:26:10 +08:00
Atsushi Eno
abb3e7dcfc
[WCF] fix wrong using scope on XmlWriter in security token serializer test.
2015-02-21 03:25:29 +08:00
Atsushi Eno
cdb4002190
[WCF] do not use XmlReader.Name to check LocalName.
...
It won't match for prefixed ones.
2015-02-21 03:24:54 +08:00
Atsushi Eno
358275e836
[WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
...
Fix several regressions caused by referencesource Sys.Xml import.
2015-02-21 03:24:12 +08:00
Atsushi Eno
a0dece2329
[S.R.Serialization] fix referencesource glitch in XmlMtomDictionaryWriter.
...
MTOM writer didn't expect multiple top-level elements are rejected at
ConformanceLevel.Auto, neiher do against Write[Start/End]Document() with
such elements.
Also Flush is often needed before directly writing to the Stream(Writer).
EOLs handling was also inconsistent between referencesource and old mono.
2015-02-21 03:23:15 +08:00
Atsushi Eno
a3383d1be5
[S.R.Serialization] add missing attributes in MS serialization namespace.
...
This fixes another regression which failed to load Test ns22.xsd.
2015-02-21 03:22:08 +08:00
Atsushi Eno
74e70ff985
[Sys.Xml] don't use XmlSchemaElement.ElementType anymore. MS doesn't use it.
...
XML Schema compilation is done in referencesource.
XmlSchemaImporter is based on mono code. Hence this glitch happened.
The following regression is fixed:
1) MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes : System.InvalidOperationException : 'Root' is missing.
at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping (System.Xml.XmlQualifiedName name) [0x0005a] in /svn/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs:453
at MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes () [0x00039] in /svn/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSchemaImporterTests.cs:1104
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2015-02-21 03:19:06 +08:00
Atsushi Eno
d41451bcbf
Our XmlDictionaryWriter implementation expects XmlReader at non-Initial state.
...
It is to fix glitch between mono Sys.Xml and referencesource.
2015-02-21 03:16:58 +08:00
Atsushi Eno
c56064b05c
[Sys.Data] DataSet.ReadXmlSchema(): use LocalName instead of Name on XmlReader.
...
MS referencesource Sys.Xml uncovered this bug.
2015-02-21 03:16:15 +08:00
Zoltan Varga
2202e97c33
[aot] Fix the emission of llvm plt entries.
2015-02-20 14:00:17 -05:00
Marek Safar
cfbb82b747
[corlib] Fixes build with old UnmanagedMemoryStream
2015-02-20 18:46:31 +01:00
Atsushi Eno
49d79191ca
Add missing new I18N DefaultEncoder class.
2015-02-21 00:52:26 +08:00
Atsushi Eno
3f355da212
Add old mono Encoder and use it in MonoEncoding to keep compatibility.
...
There was some glitch in CP932 encoding and referencesource Encoder
that caused error in Convert(), shown in System.XML tests.
To avoid this, bring back old Encoder as we used before and keep
compatible processing.
It might be buggier, but doesn't regress. We may be able to bring nlp-
based Encodings later too.
2015-02-21 00:52:20 +08:00
Zoltan Varga
392200a812
[runtime] Export the GC bridge api functions.
2015-02-20 11:51:19 -05:00
Miguel de Icaza
0e8701a161
Merge pull request #1582 from zevane/patch-1
...
Make the class thread-safe
2015-02-20 11:23:50 -05:00
Marek Safar
6800659e8c
[corlib] Remove ResourceCloseHandler usage
2015-02-20 17:07:15 +01:00
Marek Safar
01db1cc9ad
[corlib] Add more internal apis
2015-02-20 15:09:14 +01:00
Marek Safar
ed2510cc14
[build] Handle multiple entries in RESOURCE_STRINGS
2015-02-20 13:34:18 +01:00
Marek Safar
7a57bd6b3d
Bump reference sources to revert Add read-only interfaces to some collections
2015-02-20 11:25:23 +01:00
Marek Safar
8e90a963d6
Use more resource text strings from reference sources
2015-02-20 11:16:18 +01:00
Marek Safar
71533001b8
[System.Runtime.Serialization] Makefile cleanup
2015-02-20 09:57:30 +01:00
Marek Safar
f364eca194
[System.Numerics] Cleanup Makefile
2015-02-20 09:52:44 +01:00
Marek Safar
b1941bc08a
[System.ComponentModel.DataAnnotations] Makefile clean-up
2015-02-20 09:44:37 +01:00
zevane
b3ddd74efb
Make the class thread-safe
...
If two threads request the same section, which isn't yet cached, both try to insert it into the cache, causing a "Key duplication when adding...". It's neccesary to lock the getter. This solves bugs #5263 , #7785 , #18303
2015-02-20 09:12:47 +01:00
Marek Safar
754793df9e
[corlib] Switch to official mscorlib.txt
2015-02-20 08:49:17 +01:00
Miguel de Icaza
414d11f976
Bring referencesource messages that were just published by Microsoft
2015-02-19 21:02:49 -05:00
Zoltan Varga
285f867593
[aot] Fix the emission of dwarf debug info.
2015-02-19 20:24:38 -05:00
Zoltan Varga
5fc41fcb56
[aot] Emit dwarf emission on arm64.
2015-02-19 20:02:39 -05:00
Zoltan Varga
af3c010407
[llvm] Fix a bug introduced by 61ae03fef1.
2015-02-19 18:53:37 -05:00
Zoltan Varga
c3611d4d3b
[llvm] Mark methods with the NOINLINING attribute as non-inlinable.
2015-02-19 17:17:20 -05:00
Zoltan Varga
61ae03fef1
[llvm] Refactor the calling convention handling code a bit, add support for returning fp structures by value.
2015-02-19 17:04:07 -05:00
Ludovic Henry
986e58d530
[tpl] Increase wait timing in test suite to adapt to the slower ramp up of the ThreadPool
2015-02-19 15:49:19 -05:00
Zoltan Varga
127602a843
[aot] Enable LLVM level inlining.
2015-02-19 14:34:33 -05:00
Marek Safar
fbe7c55a56
[system.web] Tests update
2015-02-19 20:12:52 +01:00
Marek Safar
6e488234ae
[WindowsBase] Implement Vector formattable ToString
2015-02-19 20:12:52 +01:00
Marek Safar
ea43322c29
[corlib] BufferedStream from reference sources
2015-02-19 20:12:51 +01:00
Zoltan Varga
689a615a71
[llvm] Mark methods with clauses as noinline.
2015-02-19 14:06:20 -05:00
Zoltan Varga
e869cc56a5
[jit] Fix the overflow checks in the liveness2 pass since the liveness ranges are stored as signed ints.
2015-02-19 14:05:51 -05:00
Zoltan Varga
ae9d99d2d3
[aot] Fix catching exceptions in gshared methods on amd64.
2015-02-19 13:26:23 -05:00
Alexander Köplinger
042a9afd50
[genproj] Fix line endings in generated file to be CRLF
...
The template uses CRLF everywhere, so we should generate the same to avoid mixed line endings.
2015-02-19 19:23:23 +01:00
Zoltan Varga
eb7ed887ac
[llvm] Mark the mono_aot_personality () function as used, to prevent llvm from optimizing it away.
2015-02-19 12:10:02 -05:00
Zoltan Varga
08b8f74db5
[runtime] Export a few functions needed by xam.mac.
2015-02-19 11:41:11 -05:00
Jo Shields
2750f4970d
Add ReferenceSources/mscorlib.txt to EXTRA_DIST (fixes distcheck)
2015-02-19 16:11:28 +00:00
Marek Safar
65347a166e
[corlib] Text streams from reference sources
2015-02-19 17:04:14 +01:00
Marek Safar
ce4e2497be
[corlib] Use public TextWriter.Synchronized for Console synchronization and leave stream closing handling to underlying stream
2015-02-19 16:42:57 +01:00
Marek Safar
1425ace040
[corlib] Stream, MemoryStream from reference sources
2015-02-19 13:04:46 +01:00
Marek Safar
8da38a9e4a
[corlib] Access null stream using public property
2015-02-19 13:04:46 +01:00
Marek Safar
ffc36ef3bd
[corlib] Rename IsDirectorySeparator method to match reference sources
2015-02-19 13:04:46 +01:00
Alex Rønne Petersen
9af7d9083a
Stop building with -Wdeclaration-after-statement since we're C99 now.
2015-02-19 11:04:59 +01:00
Zoltan Varga
f8c5acaf45
[aot] Fix an assertion.
2015-02-18 20:35:47 -05:00
Zoltan Varga
2c1b64477b
[llvm] Emit null checks for remainders as well.
2015-02-18 19:15:12 -05:00
Zoltan Varga
5e0b127e15
[llvm] Emit null checks in div opcodes if needed.
2015-02-18 19:04:51 -05:00
Zoltan Varga
a0c1fb5a1a
[aot] Fix binary search in the code offsets table when emitting llvm code separately.
2015-02-18 19:04:08 -05:00
Zoltan Varga
98316e0be1
[aot] Fix the computation of LLVM code ranges.
2015-02-18 18:24:49 -05:00
Jo Shields
2d6092f45e
Ensure check-seq-point target exits immediately on failure.
2015-02-18 23:14:19 +00:00
Zoltan Varga
2c69ccd9f0
[jit] Disable llvm support for the atomic load/store opcodes for now to fix corlib test failures.
2015-02-18 17:31:02 -05:00
Zoltan Varga
77f4176af0
[aot] Handle separate blocks of llvm and jitted code correctly.
2015-02-18 17:10:57 -05:00
Mark Probst
fee8ae7ef6
[sgen] Correctly calculate size of zero-based one-dimensional non-vector arrays.
2015-02-18 12:43:31 -08:00
Marek Safar
a803d17038
[mcs] Make compiler output deterministic. Fixes #26842
2015-02-18 20:02:31 +01:00
Zoltan Varga
28a2664d4a
Merge pull request #1576 from McSherry/patch-1
...
revises GZipStream ctor parameter names
2015-02-18 13:41:08 -05:00
Zoltan Varga
04ba85af27
[runtime] Really fix the loadable LLVM build.
2015-02-18 13:39:08 -05:00
Liam McSherry
dd939ec86a
revises GZipStream ctor parameter names
...
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.
[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 18:32:43 +00:00
Jo Shields
9f5a7ae769
Just avoid BSD sed altogether.
2015-02-18 18:29:01 +00:00
Jo Shields
85f78490d2
More fixes for BSD sed breaking check-seq-point target
2015-02-18 17:42:15 +00:00
Jo Shields
dad995933c
Further fixes to check-seq-point test
2015-02-18 17:17:21 +00:00
Jo Shields
afc70b2b7e
Fix test suite on OSX
2015-02-18 16:54:54 +00:00
Zoltan Varga
5e4ee3ccea
[runtime] Fix the loadable LLVM build.
2015-02-18 11:43:32 -05:00
Marek Safar
038b3b6cea
Bump ikdasm to fix crashes on mobile mscorlib
2015-02-18 17:05:16 +01:00
João Matos
08ea547ec4
Merge pull request #1575 from mono/revert-1574-patch-1
...
Revert "revises GZipStream ctor parameter names"
2015-02-18 16:00:06 +00:00
João Matos
f0a399e640
Revert "revises GZipStream ctor parameter names"
2015-02-18 15:59:39 +00:00
João Matos
fb9ae0f835
Merge pull request #1574 from McSherry/patch-1
...
revises GZipStream ctor parameter names
2015-02-18 15:59:16 +00:00
Liam McSherry
1f07b1320c
revises GZipStream ctor parameter names
...
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.
[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 15:55:01 +00:00
João Matos
8e87cce42c
[profiler] Fixed an Android build regression introduced by 2b74940f64.
2015-02-18 15:29:57 +00:00
Zoltan Varga
bfafeddc2b
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. Use a separate SHARED_CFLAGS variable so it only affects a subset of libs.
2015-02-18 08:12:32 -05:00
Zoltan Varga
0927b86347
Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
...
This reverts commit 8a5a230aec .
Revert this as it still causes test failures.
2015-02-18 08:11:22 -05:00
João Matos
7e9504a10d
[monodis] Fixed building against LLVM-compiled Mono.
2015-02-18 12:49:01 +00:00
João Matos
b50b381226
Merge pull request #1572 from directhex/emit-nunit-xml-in-unmanaged-tests
...
Emit NUnit representation of check-seq-points target.
2015-02-18 12:26:09 +00:00
Jo Shields
a34e257fd2
Emit NUnit representation of check-seq-points target.
...
This generates an XML representation of the check-seq-points target,
as separate tests, which can be easily tracked by anything which
parses NUnit output (e.g. Jenkins or other CI systems). For example,
we are currently regressed on this on ARM.
2015-02-18 12:10:39 +00:00
Marek Safar
da706a2058
[corlib] Removes extra bufffer from FileStream async mode writes. Fixes #27086
2015-02-18 12:56:36 +01:00
Martin Baulig
a20a0459be
Merge pull request #1464 from akoeplinger/fix-portable-target
...
[xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
2015-02-18 08:12:08 +01:00
Alexander Köplinger
bf3d9609ba
[Microsoft.Build.Engine] Ignore import with empty project attribute when condition is false
...
<Import Project="$(Variable)" Condition="false" /> causes an exception otherwise when Variable is not set.
Also added a test for condition referencing extension path after discussion in https://github.com/akoeplinger/mono/commit/f13d9cb5dacbb5c9f758d6dd8b9aacf46b5508b6
2015-02-18 07:38:41 +01:00
Miguel de Icaza
aeb24275bc
Merge pull request #1563 from directhex/emit-nunit-xml-in-unmanaged-tests
...
Generate NUnit interpretation of whether "mono --regressions" passed
2015-02-17 23:27:58 -05:00
Zoltan Varga
8a5a230aec
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
2015-02-17 19:05:03 -05:00
Zoltan Varga
2b74940f64
[runtime] Link the logging profiler against eglib.
2015-02-17 19:03:39 -05:00
Zoltan Varga
065f41d168
[runtime] Export mono_threads_attach_tools_thread ().
2015-02-17 19:03:39 -05:00
Marek Safar
4d91c8e7d2
[build] Remove misused bootstrap profile definition
2015-02-17 21:58:23 +01:00
Marek Safar
451e14e4c8
[corlib] Remove duplicate source files
2015-02-17 21:43:23 +01:00
Marek Safar
c495250fde
[corlib] Replace resource keys with actual messages during compilation
2015-02-17 21:43:22 +01:00
Rodrigo Kumpera
04eeb70c8c
Merge pull request #1570 from mono/fix27010
...
Bug 27010 - Difference in Assembly.GetExportedTypes with .NET
2015-02-17 13:49:05 -06:00
Alex Rønne Petersen
8bf480fc62
Merge pull request #1571 from evincarofautumn/fix-warning
...
[utils] Fix warning in Makefile.am.
2015-02-17 19:58:14 +01:00
Jon Purdy
f14d23b7f0
[utils] Fix warning in Makefile.am.
2015-02-17 10:56:15 -08:00
João Matos
b8dec77eea
[mini] Improve the driver to handle more cases of incompatible cross-compilation targets.
2015-02-17 16:12:49 +00:00
João Matos
ac8ae330c7
[metadata] Do not try to use host context members when cross-compiling.
2015-02-17 16:12:11 +00:00
João Matos
85e5ebbfa9
[metadata] Add missing ARM64 object offsets.
...
This fixes the mobile products build with Mono master.
2015-02-17 16:11:21 +00:00
Zoltan Varga
0ba6d1777d
[aot] Fix the emission of ElementAddr wrappers.
2015-02-17 07:46:11 -05:00
Zoltan Varga
4c8a1a6733
[runtime] Link monodis against libmonoruntime instead of libmono which can be a dynamic lib.
2015-02-17 06:59:29 -05:00
Zoltan Varga
ff2cfae862
[gsharedvt] Implement support for multi-dimensional arrays in gsharedvt methods.
2015-02-17 06:57:43 -05:00
Zoltan Varga
acbe5f52d5
Fix a warning.
2015-02-17 05:44:58 -05:00
Marek Safar
673e8fa8ee
[mcs] Single name meaning relaxation to match roslyn
2015-02-17 10:59:33 +01:00
Alex Rønne Petersen
33ad107825
Update refsrc to get read-only interface changes for System/System.Core.
2015-02-17 10:53:10 +01:00
Marek Safar
877e8ce941
[mcs] Fixes check for overriden auto-properties.
2015-02-17 08:14:21 +01:00
Ungureanu Marius
818d229538
Bug 27010 - Difference in Assembly.GetExportedTypes with .NET
2015-02-17 06:41:12 +02:00
Alex Rønne Petersen
235f543d94
[mini] Fix a crash on armel.
2015-02-17 02:04:15 +01:00
Zoltan Varga
6ee1b1b565
[jit] Add tests for arm64 gsharedvt argument passing.
2015-02-16 16:07:03 -05:00
Zoltan Varga
175c1a521d
[jit] Add tests for arm64 gsharedvt argument passing.
2015-02-16 15:20:17 -05:00
Alexander Köplinger
8f7a551c0c
[Microsoft.Build.Tasks] Rethrow exception in Copy task
...
This way we don't lose the original stacktrace.
2015-02-16 19:05:00 +01:00
Marek Safar
724c1becc1
Add new test
2015-02-16 17:03:50 +01:00
Marek Safar
ed517ad778
[mcs] Implements dictionary initializers on pointer types
2015-02-16 16:48:24 +01:00
Miguel de Icaza
aef0b3e04c
Merge pull request #1542 from ninjarobot/UriTemplateMatchException
...
Fix to UriTemplate.Match to properly handle query parameters without a v...
2015-02-16 10:19:44 -05:00
Miguel de Icaza
5715cdc582
[System.ServiceModel] Prevent server crash when client disconnect
...
This patch is an updated version of a pull request (377) from Rob
Wilkens to fix #5926
2015-02-16 10:01:22 -05:00
João Matos
bccf5cf121
[aot] Re-organize JSON dumping code.
2015-02-16 12:48:05 +00:00
João Matos
d9234357f6
Revert "[aot] Re-organize JSON dumping code."
...
This reverts commit 25969466b5 .
2015-02-16 12:46:29 +00:00
João Matos
b4926395c6
[git] Ignore Doxygen-related generated files.
2015-02-16 12:39:03 +00:00
Zoltan Varga
25969466b5
[aot] Re-organize JSON dumping code.
2015-02-16 12:38:40 +00:00
Marek Safar
bc57fda921
Merge pull request #1568 from akoeplinger/xbuild
...
[Microsoft.Build.Tasks] Implement retries in Copy task and add a stub.
2015-02-16 07:54:54 +01:00
Atsushi Eno
90b1124402
Merge branch 'import-text-encoding-2'
2015-02-16 14:34:19 +08:00
Alexander Köplinger
40c0dfcf93
[Microsoft.Build.Tasks] Add stub for UseHardlinksIfPossible to Copy task
...
Creating hardlinks in .NET doesn't have a nice API and using Mono.Unix/Pinvoke doesn't
seem worth the effort at this point since the feature is off by default on msbuild as well.
2015-02-16 01:50:07 +01:00
Alexander Köplinger
baaf07c104
[Microsoft.Build.Tasks] Implement retries in Copy task
2015-02-16 01:38:06 +01:00
Atsushi Eno
e4b2bc75aa
[sys.xaml] serialize string value as string, do not try ValueConverter.
...
Fixed some xwt object serialization.
2015-02-16 03:32:49 +08:00
Zoltan Varga
bcd70a77a7
[jit] Fix a regression introduced by 00a28a7dfd which disabled liveness2 for most methods.
2015-02-14 15:51:11 -05:00
Zoltan Varga
bca66a090d
[arm64] Add a test for vtype by ref returns in dyn calls.
2015-02-13 17:54:31 -05:00
João Matos
874d17321d
[runtime] Fixed TLS detection on AMD64 to support cross-compilation.
2015-02-13 16:45:46 +00:00
Marek Safar
52c33f00ff
[mcs] Better error reporting after delegate probing failed. Fixs #27043
2015-02-13 17:42:41 +01:00
João Matos
e3279063de
[aot] Added JSON dumping support.
...
This is enabled by passing "aot=dump" to the Mono AOT driver and will create a JSON file in the working directory with the name of the assembly.
It's still a work-in-progress and will see improvements in the data dumped as it's needed.
2015-02-13 16:41:07 +00:00
Marek Safar
b9c8a612b7
[mcs] Set fixed buffer layourt wihout StructLayoutAttribute when possible. Fixes #27020
2015-02-13 16:49:22 +01:00
Marek Safar
8d3c6d44f8
[corlib] Random from reference sources
2015-02-13 15:05:43 +01:00
Marek Safar
da9546edfd
[corlib] MissingMember exceptions from reference sources
2015-02-13 14:58:40 +01:00
Marek Safar
09b16951bc
[corlib] UnitySerialization from reference sources
2015-02-13 14:45:46 +01:00
Marek Safar
8157ba59ce
[system.net.http] Parsing of nested parens inside comment. Fixes #27036
2015-02-13 14:37:32 +01:00
Marek Safar
1128af49cf
[mcs] Resolve using aliases on demand to fix issue with nested types. Fixes #27001
2015-02-13 14:37:31 +01:00
João Matos
08014c4629
[monodis] Attempt to fix the Cygwin build.
...
CCLD monodis.exe
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-opcodes.o): In function `mono_opcode_name':
/cygdrive/c/projects/mono-817/mono/metadata/opcodes.c:63: multiple definition of `mono_opcode_name'
../mini/.libs/libmonosgen-2.0.dll.a(d001720.o):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
2015-02-13 12:43:06 +00:00
Atsushi Eno
f47937f8f3
avoid reflection in EncodingHelper.
...
as per https://github.com/mono/mono/pull/1566#discussion_r24653304
2015-02-13 18:25:49 +08:00
Atsushi Eno
59dc2b42c8
[encoding] import referencesource encoding foundation types.
...
This change does not involve Windows-specific NLS-based encodings.
We will be still using I18N assemblies until we make more grand design
changes (Xamarin products premise those assemblies).
This also fixes bug #23771 and probably more.
2015-02-13 16:41:05 +08:00
Zoltan Varga
2a3385da86
Fix a warning.
2015-02-13 02:16:16 -05:00
Alex Rønne Petersen
61e8b5e6d0
[mini] Add a MONO_ARM_FORCE_SOFT_FLOAT environment variable.
2015-02-13 08:08:44 +01:00
Zoltan Varga
8a3b8e716f
[runtime] Overwrite logging profiler output files automatically.
2015-02-13 00:39:48 -05:00
Zoltan Varga
f16a4a1975
[runtime] Export mono_personality (), which is accessed from llvm compiled code.
2015-02-13 00:29:24 -05:00
Zoltan Varga
b45199d288
[corlib] Fix a race in LazyTest.EnsureSingleThreadSafeExecution ().
2015-02-13 00:15:52 -05:00
Zoltan Varga
82554c4e89
[runtime] Add a SHARED_CFLAGS autoconf var which can be used to pass the -fvisibility=hidden flag.
2015-02-13 00:10:51 -05:00
Rodrigo Kumpera
19a22ede0d
Merge pull request #1439 from BrzVlad/feature-managed-allocator
...
[jit] Optimize the managed allocator fastpath for small objects
2015-02-12 17:43:52 -06:00
Atsushi Eno
93ce056a76
Merge pull request #1496 from echampet/serializers
...
System.Xml.Serialization: fix xml serializers generation for Web Services
2015-02-13 05:08:10 +08:00
Atsushi Eno
33694c02b3
[encoding] as part of referencesource import, use new EncodingHelper class.
...
This will remain after importing referencesource and offer mono-only
internals for some classes. This involves icall (owner class) change.
2015-02-13 04:24:47 +08:00
Marek Safar
2ca5117fd2
[system] Mark ping MT implementation as broken
2015-02-12 19:09:08 +01:00
João Matos
ccf89b6b5b
[runtime] Fixed TLS detection on x86 to support cross-compilation. Fixes #26969 .
...
https://bugzilla.xamarin.com/show_bug.cgi?id=26969 .
2015-02-12 17:40:13 +00:00
Zoltan Varga
83ae5b92ac
[runtime] Fix an automake warning.
2015-02-12 12:29:37 -05:00
Zoltan Varga
679f9b44a5
[runtime] Fix an initialization race when using custom marshallers.
2015-02-12 12:13:54 -05:00
João Matos
98a88d8009
Merge pull request #1534 from haf/bugs/hmac-wrong-keysizes
...
Bugs/hmac wrong keysizes
2015-02-12 16:46:00 +00:00
Marek Safar
72eb18f84d
[system] More linker friendly tests
2015-02-12 17:00:34 +01:00
Jo Shields
12baa6e696
Generate NUnit interpretation of whether "mono --regressions" passed
2015-02-12 15:22:17 +00:00
Zoltan Varga
d7ae2816fe
Merge pull request #1562 from vkargov/master
...
[runtime] Mark TLS variables as explicitly used
2015-02-12 10:03:40 -05:00
Vladimir Kargov
16ee025230
[runtime]
...
Mark TLS variables as explicitly used to avoid their unwarranted deletion
by the compiler overlooking their usage in inline assembly sections.
2015-02-12 17:45:34 +03:00
João Matos
90185288b1
[aot] Fixed LLVM assembly generation for non-Mach targets.
...
Fixes bugzilla #26964 .
2015-02-12 13:42:46 +00:00
Marek Safar
45448a3f16
[corlib] Add timeout to more tests
2015-02-12 14:21:24 +01:00
Zoltan Varga
9eea9b6d70
[aot] Fix emission of symbol sizes which got broken by 05cd4225b2.
2015-02-12 07:49:08 -05:00
Marek Safar
3af8147e4d
[system] Add old monotouch test codepath
2015-02-12 13:24:16 +01:00
Marek Safar
3d3c8b9bc6
[system.core] Fix wrong 405f9534df
2015-02-12 13:20:10 +01:00
Zoltan Varga
0871f1f266
Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
...
This reverts commit 90e86725ac .
Revert this as it causes many test failures.
2015-02-12 06:47:09 -05:00
Zoltan Varga
b64c24b4ea
[runtime] Export mono_gc_toggleref_add ().
2015-02-12 06:45:45 -05:00
Zoltan Varga
90e86725ac
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
2015-02-12 05:22:52 -05:00
Zoltan Varga
17eadbf010
[runtime] Define MONO_API_EXPORT properly for gcc, and define MONO_DLL_EXPORT so it is actually used during the build.
2015-02-12 05:21:50 -05:00
Zoltan Varga
029753034f
Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
...
This reverts commit beb1463b6c .
Revert this for now as it breaks loading symbols from the mono executable on osx.
2015-02-12 04:51:06 -05:00
Marek Safar
52227a1e6d
[runtime] Return strongly typed array from GetModules to match managed signature. Fixes a crash with strongly typed enumerator
2015-02-12 10:09:06 +01:00
Marcos Henrich
b3aec8113a
[corlib] Fixes commit ceef1e2.
...
We want to remove the module check from GetMethodToken not SetUserEntryPoint.
2015-02-12 08:59:21 +00:00
Zoltan Varga
4ef4090a22
[runtime] Export symbols from libtest.
2015-02-12 03:53:26 -05:00
Zoltan Varga
250cd40b86
[runtime] Remove unused MONO_ARCH_SAVE_REGS declarations.
2015-02-12 03:46:49 -05:00
Zoltan Varga
b34c3f6f64
[jit] Remove unused MONO_ARCH_SAVE_REGS declarations.
2015-02-12 03:32:58 -05:00
Zoltan Varga
d9259e59e1
[monodis] Build monodis against the static mono libraries.
2015-02-12 03:04:39 -05:00
Zoltan Varga
beb1463b6c
[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported.
2015-02-12 02:25:19 -05:00
Sebastien Pouliot
cfc0d6fc73
[linker] Do not update the Scope on TypeSpecification (fix mmp regression tests)
2015-02-11 15:38:48 -05:00
Zoltan Varga
6f572dcc58
Merge pull request #1561 from main--/patch-1
...
Only call string.Format in Debug.Assert if really necessary
2015-02-11 13:49:53 -05:00
main()
2e6efb3149
Only call string.Format in Debug.Assert if really necessary
...
Right now (without this change), Debug.Assert **always** formats its string parameters, even if doing so wouldn't be necessary because the condition is true. This has a huge impact on code that asserts frequently because it assumes that calling Assert(true, ...) is cheap.
2015-02-11 19:42:29 +01:00
Marek Safar
ceef1e2379
Merge pull request #1560 from esdrubal/xlstregression
...
[corlib] ModuleBuilder.GetMethodToken no longer has a module check.
2015-02-11 17:17:27 +01:00
Marcos Henrich
9eb81476bd
[corlib] ModuleBuilder.GetMethodToken no longer has a module check.
...
.NET implementation is able to get method tokens from other modules.
This was causing a regression on a System.Xml.Xsl.XslTransformTests.Bug487065 while using referencesource's System.Xml implementation.
2015-02-11 15:59:37 +00:00
Marcos Henrich
1e7a4a2114
[corlib] Test GetMethodToken ability to get other modules' tokens.
...
.NET implementation is able to get method tokens from other modules.
2015-02-11 15:59:36 +00:00
João Matos
f1006fbbe0
[msvc] Upgrade the projects to require VS2013.
2015-02-11 15:55:43 +00:00
Alex Rønne Petersen
628f3d998b
Use -std=gnu99 as we rely on the linux macro in some places.
2015-02-11 16:50:59 +01:00
Marek Safar
2326fa0721
Bump reference sources
2015-02-11 16:42:40 +01:00
Zoltan Varga
46357aee0b
[runtime] Enable C99 mode.
2015-02-11 10:32:34 -05:00
Zoltan Varga
984a13d908
[runtime] Use ISO C __typeof__ instead of typeof () in one place.
2015-02-11 10:32:13 -05:00
Zoltan Varga
3b85df9c0d
Fix the loadable llvm build.
2015-02-11 09:44:45 -05:00
Sebastien Pouliot
b6d6280821
[linker] Ignore null type arguments in MarkWithResolvedScope
...
It's ignored in MarkType but it breaks calling Resolve in this case
2015-02-11 09:01:35 -05:00
Marek Safar
8db46e61fd
[corlib] Fixes build
2015-02-11 14:04:35 +01:00
Zoltan Varga
a42f4d8d22
Merge pull request #1559 from directhex/emit-nunit-xml-in-unmanaged-tests
...
Add NUnit XML emission to the managed runtime test runner.
2015-02-11 08:00:18 -05:00
Jo Shields
84a8428de1
Add NUnit XML emission to the managed runtime test runner.
...
This makes it easy to plug failures from the runtime tests into a visualisation, such as Jenkins' jUnit display system.
2015-02-11 12:48:45 +00:00
Zoltan Varga
078968540f
Make the managed test runner the default in mono/tests, run with make M=0 to use the old one.
2015-02-11 07:47:39 -05:00
Zoltan Varga
9b617125bd
[llvm] Maps structs made up of floats/doubles to llvm structs containing floats.
2015-02-11 07:02:45 -05:00
Marek Safar
4e27a21367
[system] Fix ping process exit code check
2015-02-11 12:04:50 +01:00
Marek Safar
f97001e2c8
[system] updates fixed test
2015-02-11 10:47:54 +01:00
Marek Safar
405f9534df
[system.core] Update aes test to match imported code
2015-02-11 09:43:17 +01:00
Marek Safar
ec2e126dfd
[mcs] Additional fix for #26892
2015-02-11 09:21:20 +01:00
Sebastien Pouliot
d07822286c
[linker] Resolve types inside custom attributes since they might refer to types in assemblies we won't be keeping [ #26752 ]
...
Custom attributes encoding means it's possible to have a scope that will
point into a PCL facade even if we (just before saving) will resolve all
type references.
Since all other references can be made on the _real_ assembly and that
we do not want to include any facade assembly just for this we need to
resolve those type and update their scope.
2015-02-10 21:04:02 -05:00
João Matos
325744cb85
[build] Fixed the MSVC build.
2015-02-10 15:14:16 +00:00
Marek Safar
9b9b96980b
[corlib] Guid from reference sources
2015-02-10 15:42:13 +01:00
Marek Safar
86e2bada8a
[mcs] Fixes failing test
2015-02-10 15:42:13 +01:00
Marcos Henrich
b94c4cdce1
[corlib] Calling 'tzi.exe -i' now prints olson transitions.
2015-02-10 10:44:35 +00:00
Marcos Henrich
7169eeb5e0
[corlib] Updated make target tzi.exe
2015-02-10 10:39:29 +00:00
Marcos Henrich
8473c6db7e
Moved android-dump-tzdata make target to corlib.
...
Reason: All TimeZoneInfo related files are now all in corlib directory.
2015-02-10 10:32:30 +00:00
Zoltan Varga
2f95909242
Merge pull request #1557 from StephenMcConnel/bug-26887
...
Prevent right click from triggering ToolStripItem.HandleClick
2015-02-10 04:25:34 -05:00
Marek Safar
158487fe94
Rename binary reference assemblies location
2015-02-10 10:21:29 +01:00
Marek Safar
85ee5582f6
[eval] Add C#6 using handling
2015-02-10 10:12:43 +01:00
Zoltan Varga
e26e45cf2f
Merge pull request #1558 from ermshiperete/fixCrash
...
[MWF] Fix NullReferenceException introduced by commit a080a7d
2015-02-10 04:05:26 -05:00
Damien Daspit
f7593c22b0
[MWF] Fix NullReferenceException introduced by commit a080a7d
...
Change-Id: I5709063cc7eecc01fd1e2978cd8aac096060c31e
2015-02-10 09:59:50 +01:00
Marek Safar
a74bac2da2
[mcs] Fixed casts rules don't apply to strings and arrays. Fixes #26892
2015-02-10 09:31:22 +01:00
Marek Safar
c7a4778737
[mcs] Resolve delegate optional parameters only once. Fixes #26840
2015-02-10 08:49:50 +01:00
Zoltan Varga
8562a498f3
[jit] Factor out the gsharedvt constrained call handling code into a separate function.
2015-02-10 02:27:13 -05:00
Zoltan Varga
382cf74c98
[jit] Fix some issues with constrained gsharedvt calls to be able to handle some cases encountered with the new MS reference source code.
2015-02-10 02:20:32 -05:00
Zoltan Varga
b8f1a79295
Increase some trampoline buffer sizes.
2015-02-09 23:08:57 -05:00
Zoltan Varga
d7b1944dce
Bump referencesource.
2015-02-09 22:40:50 -05:00
Zoltan Varga
c83aeed35f
Bump referencesource to e6af770c424af46f78d3b8f90eebbb2e0d7953a2.
2015-02-09 22:35:07 -05:00
Alex Rønne Petersen
23fa25b4b5
Revert "[mini] Implement atomic exchange with xchg on x86."
...
This reverts commit c96e58280c .
Getting this to work right with regards to register allocation
is turning out to be more complicated than it seems. Going to
abandon this for now.
2015-02-10 03:01:33 +01:00
Alex Rønne Petersen
c96e58280c
[mini] Implement atomic exchange with xchg on x86.
2015-02-10 01:49:18 +01:00
Stephen McConnel
e9cf1dc44a
Prevent right click from triggering ToolStripItem.HandleClick
...
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=26887 .
2015-02-09 18:39:18 -06:00
Zoltan Varga
8856edd6d3
Disable some full-aot tests on amd64 since it doesn't support dyn calls/gsharedvt.
2015-02-09 19:09:21 -05:00
Alex Rønne Petersen
0366b81069
[mini] Implement atomic exchange with xchg on amd64.
2015-02-09 23:41:30 +01:00
Marek Safar
d2994b1b3d
[corlib] Remove unused file
2015-02-09 23:15:16 +01:00
Marek Safar
8d9e34a098
[corlib] Keep file names ordered
2015-02-09 23:14:45 +01:00
Marek Safar
1bfa0567dc
Merge pull request #1556 from atsushieno/import-text-encoding
...
import referencesource CharUnicodeInfo and remove some runtime char tables.
2015-02-09 20:09:04 +01:00
Alex Rønne Petersen
8aaed197ca
Revert "[mini] Implement atomic exchange with xchg on x86/amd64."
...
This reverts commit 1a319806fe .
This seems to cause memory corruption that results in random
SGen crashes, especially in Roslyn.
2015-02-09 19:32:15 +01:00
Ludovic Henry
449666271a
[runtime] Lower log level of "counters not enabled" message in counters
2015-02-09 13:12:11 -05:00
Atsushi Eno
c72628cf46
Remove unused unicode category data (which is now charinfo.nlp).
2015-02-10 01:43:10 +08:00
João Matos
48b7a501b0
Initialize the counters support before registering new ones.
...
This bug manifests itself in mkbundle'd programs that use the machine config support. Under this case, we can end up registering counters before initializing the counter support in the runtime:
```
* thread #1 : tid = 0x141dec, 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #0 : 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218
frame #1 : 0x0025c3f6 mtouch-32`mono_loader_init + 198 at loader.c:106
frame #2 : 0x0025f005 mtouch-32`mono_dllmap_insert(assembly=0x00000000, dll=0x00d0a0c0, func=0x00000000, tdll=0x00d0a0d0, tfunc=0x00000000) + 53 at loader.c:1321
frame #3 : 0x002c28ca mtouch-32`dllmap_start(user_data=0x00d0a0b0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040) + 698 at mono-config.c:290
frame #4 : 0x002c2010 mtouch-32`start_element(context=0x00d09fa0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040, user_data=0xbffffb68, error=0x00000000) + 240 at mono-config.c:176
frame #5 : 0x0040ba6d mtouch-32`monoeg_g_markup_parse_context_parse(context=0x00d09fa0, text=0x00b72f30, text_len=240, error=0x00000000) + 1965 at gmarkup.c:351
frame #6 : 0x002c0a93 mtouch-32`mono_config_parse_xml_with_context(state=0xbffffb68, text=0x00b72f30, len=240) + 147 at mono-config.c:440
frame #7 : 0x002c09eb mtouch-32`mono_config_parse_memory(buffer=0x00b72f30) + 123 at mono-config.c:482
frame #8 : 0x00001e6d mtouch-32`install_dll_config_files + 29
frame #9 : 0x00001c86 mtouch-32`mono_mkbundle_init + 22
frame #10 : 0x000029db mtouch-32`main + 331
frame #11 : 0x00001c65 mtouch-32`start + 53
```
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24605 .
2015-02-09 17:40:04 +00:00
Atsushi Eno
d8aba3fa75
replace CharUnicodeInfo with that of referencesource and update runtime.
...
CharUnicodeInfo had conversion methods for uppercase/lowercase
conversion, and they are actually used by TextInfo. So moved them.
Then added another icall for "lite" version of internal character table
loader.
The new CharUnicodeInfo depends on "charinfo.nlp" resource file, which
does not exist in referencesource but can be generated by coreclr build
tools (as src/mscorlib/src/System/Globalization/Tables/CharInfo.nlp).
The coreclr rev. that built this specific checkin was c4eb037.
2015-02-10 00:47:16 +08:00
Marek Safar
0daaf302a5
[corlib] Update failing test
2015-02-10 02:01:29 +10:00
Marek Safar
fe40c28be0
Merge pull request #1555 from JetBrains/unrecognized_pragma
...
Skip unrecognized #pragma directive
2015-02-09 11:17:32 +01:00
Miguel de Icaza
d12c06df59
Fix the build
2015-02-08 13:52:29 -05:00
Leonid Shalupov
e9b8cb6682
Add test for skipping unrecognized #pragma directive
2015-02-08 19:09:25 +01:00
Leonid Shalupov
c4890a882a
Skip unrecognized #pragma directive
2015-02-08 19:09:02 +01:00
Zoltan Varga
8628fd051b
[jit] Remove unused disable_vtypes_in_regs variable.
2015-02-08 03:23:53 -05:00
Miguel de Icaza
4489d2399d
[monop] Port to use IKVM.Reflection, add -xi and -xa options to easily lookup Xamarin.Android and Xamarin.iOS types
2015-02-07 22:44:50 -05:00
Zoltan Varga
cc6e967a23
[sdb] Use a variant of g_path_get_basename () which can handle windows paths as well. Fixes #26436 .
2015-02-07 22:37:50 -05:00
Zoltan Varga
66f5f06469
Revert "[llvm] Maps structs made up of floats/doubles to llvm structs containing floats."
...
This reverts commit bc9c77280f .
Revert this as it breaks pinvoke2.exe.
2015-02-07 22:07:06 -05:00
Zoltan Varga
e179554eee
Revert "Fix the loadable llvm build."
...
This reverts commit dfe6b21b5e .
Revert this as it breaks pinvoke2.exe.
2015-02-07 22:06:47 -05:00
Zoltan Varga
1f14a9721b
Fix the loadable llvm build.
2015-02-07 18:01:43 -05:00
João Matos
1a341220c6
[decimal] Fixed the Windows build.
...
Works around the following compile error:
```/Users/triton/Development/mono/mono/metadata/decimal-ms.h:3:16: error: redefinition of 'struct tagDEC'
typedef struct tagDEC {
^
In file included from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unknwn.h:37:0,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objidl.h:477,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objbase.h:66,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/ole2.h:17,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:12,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/winscard.h:10,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/windows.h:97,
from /Users/triton/Development/mono/mono/io-layer/io-layer.h:24,
from /Users/triton/Development/mono/mono/metadata/process.h:17,
from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unistd.h:11,
from /Users/triton/Development/mono/mono/metadata/icall.c:27:
/Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:452:16: note: originally defined here
typedef struct tagDEC {
^
```
2015-02-07 14:21:35 +00:00
Zoltan Varga
dfe6b21b5e
Fix the loadable llvm build.
2015-02-07 07:56:26 -05:00
Miguel de Icaza
bc68eda84d
Merge pull request #1552 from mono/ms-decimal
...
Bring the CoreCLR Decimal support to Mono.
2015-02-07 00:05:15 -05:00
Zoltan Varga
bc9c77280f
[llvm] Maps structs made up of floats/doubles to llvm structs containing floats.
2015-02-06 19:12:03 -05:00
Miguel de Icaza
d1ff413081
Make referencesource point to mono/referencesource's mono branch
2015-02-06 17:39:44 -05:00
Miguel de Icaza
b8f68cc3f4
[Decimal] Remove old decimal from the metadata directory
2015-02-06 17:28:37 -05:00
Jeffrey Stedfast
f2c6ec43dc
[Mono.Debugger.Soft] Fixed StackFrame.Domain logic to not blow up
2015-02-06 17:24:57 -05:00
Zoltan Varga
ad38eb5cac
[arm64] Add r4 opcodes.
2015-02-06 16:18:29 -05:00
Miguel de Icaza
e4ee7a5e1f
Remove old implementation of Decimal support, it served us well
2015-02-06 15:56:27 -05:00
Miguel de Icaza
97f01eac96
Merge branch 'master' into ms-decimal
2015-02-06 15:54:31 -05:00
Miguel de Icaza
b1ca045003
[Decimal] Add test cases from the bugs that this branch fixes
2015-02-06 15:51:14 -05:00
Miguel de Icaza
9e13adae4b
[Decimal] Expand test suite with Microsoft's CoreFX Decimal tests
2015-02-06 15:25:58 -05:00
Miguel de Icaza
c13ecfcdee
[Decimal] Fix another missing cast, makes the entire Mono test suite pass
2015-02-06 14:54:49 -05:00
Miguel de Icaza
d72f9a0fc7
[Decimal] Set the reserved field, fix signed to unsigned cast mistakes from the port, document places where MS does not explicitly set reserved; Down to 1 failure
2015-02-06 14:09:40 -05:00
Zoltan Varga
7656a6beb4
Merge branch 'r4fp-ir'
2015-02-06 13:40:16 -05:00
Zoltan Varga
5a61d55c7f
Fix the build.
2015-02-06 13:37:47 -05:00
Zoltan Varga
76b0aebf27
Add mixed r4/r8 opcodes to binary opcodes.
2015-02-06 13:32:03 -05:00
Zoltan Varga
32f6084793
Exclude the float32 optimization from -O=all.
2015-02-06 13:32:03 -05:00
Zoltan Varga
067ab06be1
Implement arm support.
2015-02-06 13:32:02 -05:00
Zoltan Varga
c77eb2b62e
Add LLVM support.
2015-02-06 13:32:02 -05:00
Zoltan Varga
e0caebb53a
Fix OP_MOVE_F_TO_I4 and OP_MOVE_I4_TO_F in float32 mode.
2015-02-06 13:32:02 -05:00
Zoltan Varga
1d6362cdbd
Add support for generating 32 bit floating point code when operating on floats.
...
Design:
- Handle r4 types in the front-end normally like other types.
- Controlled using a 'float32' optimization flag, may become the default in the future.
- new stack type STACK_R4.
- new set of opcodes prefixed by 'R', use the same vregs as 'F' opcodes.
- opcodes which worked with r4 values are used as before, but generate different code
in the back end (OP_R4CONST/OP_LOADR4_MEMBASE/OP_STORER4_MEMBASE_REG, etc.).
2015-02-06 13:30:19 -05:00
Miguel de Icaza
0a7d65e63e
[Decimal] Fix enumeration values, down to 2 failures
2015-02-06 12:46:17 -05:00
Marek Safar
b927fa8ee6
[corlib] Imports messages from coreclr project
2015-02-06 18:37:32 +01:00
Jeffrey Stedfast
fcd44bb0d5
[Microsoft.Build.Utilities] Fixed to make unit tests pass again
2015-02-06 12:24:18 -05:00
Alex Rønne Petersen
1f6c5e8be7
[mini] Bump move_f_to_i4/move_i4_to_f insn sizes on x86.
2015-02-06 17:55:58 +01:00
Marek Safar
815c1bd287
Merge pull request #1551 from directhex/fix-missing-System.Web.ApplicationServices-sources
...
Move files which were split out in 4.0 from System.Web...
2015-02-06 17:55:54 +01:00
Marek Safar
9a26c9ef5f
[mcs] Correctly import metadata constant with mismatched type and value. Fixes #24675
2015-02-06 17:54:59 +01:00
Jo Shields
f3d505ed1e
Ensure missing test_op_il_seq_point.sh is shipped in tarballs.
2015-02-06 10:48:47 -05:00
Alex Rønne Petersen
cb085a39c5
[mini] Remove OP_ICONV_TO_R8_RAW since OP_MOVE_I4_TO_F does the same thing.
2015-02-06 16:45:14 +01:00
Alex Rønne Petersen
2bb9ed862c
[mini] Use a spill var for float <-> int data transfer opcodes on x86.
2015-02-06 16:45:14 +01:00
Alex Rønne Petersen
1046214694
[mini] Remove some unnecessary amd64 codegen macros (we already had them with different names).
2015-02-06 16:45:14 +01:00
Jo Shields
eb53f82111
Move files which were split out from System.Web into System.Web.ApplicationServices into the latter's directory. They no longer need to be in the former, since we no longer build the 2.0 profile they were originally part of. This fixes "no rule to make target" errors on tarball builds, caused by those files no longer being shipped in tarballs (make dist does not traverse a ../ boundary, so it wasn't enough for them to be listed in System.Web.ApplicationServices' manifest by System.Web's folder)
2015-02-06 10:17:54 -05:00
Miguel de Icaza
a51ac80865
Merge pull request #1550 from tpetazzoni/mips-fix
...
mono-context.h: fix build on MIPS
2015-02-06 09:50:33 -05:00
Sebastien Pouliot
375b749fca
[tests] Fix TypeDescriptorTests compilation when NUnitLite is used
2015-02-06 09:37:21 -05:00
Marek Safar
c7ad272b9a
[mcs] Fix cloning of labels from outer anonymous block. Fixes #26736
2015-02-06 15:14:26 +01:00
Marek Safar
baa2c983b3
[mcs] Replace 1684 warning turned into error with unique 7069 error code
2015-02-06 15:14:26 +01:00
Thomas Petazzoni
8f489c24e1
mono-context.h: fix build on MIPS
...
The mono-context.h file uses definitions such as mips_fp and mips_sp,
which are defined in <mono/arch/mips/mips-codegen.h>, but this file is
not included, leading to build failures.
This fix is similar to 4437ecea91 (for
ARM).
Signed-off-by: Thomas Petazzoni <[email protected] >
2015-02-06 14:56:10 +01:00
João Matos
88e35ade18
[runtime] Fixed potential memory leak in a8390dcd63.
2015-02-06 12:46:24 +00:00
João Matos
a8390dcd63
[runtime] Fixed marshalling bug in mono_marshal_get_native_func_wrapper.
...
It was caused by a mismatch of the `sig` and `csig` variables when looking the wrapper in the marshalling cache.
This was manifesting as the following crash in all Monodroid programs:
```
#0 mono_type_hash () at /Users/joao/Dev/droid/mono/mono/metadata/metadata.c:1390
#1 0x7512edf4 in mono_signature_hash () at /Users/joao/Dev/droid/mono/mono/metadata/metadata.c:4957
#2 0x75115d18 in signature_pointer_pair_hash () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#3 0x751dca10 in rehash () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#4 0x751dcbe0 in monoeg_g_hash_table_insert_replace () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#5 0x75119570 in mono_mb_create_and_cache_full () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#6 0x75127390 in mono_marshal_get_native_func_wrapper () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#7 0x75127780 in mono_ftnptr_to_delegate () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
```
Originally introduced in https://github.com/mono/mono/pull/1540 .
2015-02-06 12:35:45 +00:00
Marek Safar
6733010353
Merge pull request #1508 from slluis/fix-20966
...
Generate proper Link metadata for resources in imported projects
2015-02-06 11:05:40 +01:00
Marek Safar
a62823ac14
Merge pull request #1549 from esdrubal/tziathens
...
[corlib] Fixed TimeZoneInfo.TryGetTransitionOffset.
2015-02-06 09:18:01 +01:00
Marcos Henrich
5df4852b1a
[corlib] Fixed TimeZoneInfo.TryGetTransitionOffset.
...
Olson TZ transitions are in UTC, and TryGetTransitionOffset used the TZ standard time.
TryGetTransitionOffset was comparing UTC with TZ standard times thus DST transitions could be obtained some hours before their start.
TryGetTransitionOffset is now changing provided times to UTC before comparing them with the transition times.
Fixes #25050 .
2015-02-06 09:30:51 +02:00
Marcos Henrich
0c5347ad43
[corlib] Added test to TimeZoneInfoTest. Covers #25050 .
2015-02-06 06:20:54 +00:00
Miguel de Icaza
9241773f5c
[Decimal] Fix structure definitions, down to 3 failures from Mono test suite
2015-02-06 00:42:44 -05:00
Miguel de Icaza
9d31706582
[Decimal] Down to six failures in Mono's test suite
2015-02-06 00:23:52 -05:00
Miguel de Icaza
98e9d352e4
[Decimal] Fix basic decimal startup issues
2015-02-05 22:56:41 -05:00
Miguel de Icaza
fd78f734ea
[Build] Make the code build with old bootstrapped environments
2015-02-05 22:11:59 -05:00
Miguel de Icaza
09abacdd14
[Decimal] Fix the build for unresolved symbols with some C compilers
2015-02-05 22:11:35 -05:00
Alex Rønne Petersen
36a5363ef7
[mini] Remove now-unneeded clob spec for move_f_to_i4 on amd64.
2015-02-06 03:47:40 +01:00
Miguel de Icaza
5bde5effed
Merge pull request #1548 from akoeplinger/stubs
...
[bcl] Added a few stubs for missing APIs
2015-02-05 21:01:38 -05:00
Zoltan Varga
1445d4821c
[runtime] Update valgrind headers to the ones from valgrind 3.10.1. Fixes #26688 .
2015-02-05 20:53:21 -05:00
Miguel de Icaza
dda1b86e64
[Decimal] Completed the methods in decimal-ms.c
...
This completes the list of methods in decimal-ms.c that are surfaced
to the Decimal class. This change also swaps out the Decimal class
from Mono to the Microsoft implementation.
This has not been tested yet, beyond the compiler being able to read
decimals (it did crash without it).
CoreCLR has two different bits of code for SearchScale, it looks like
one is just old and has not been updated. Moved to the new one, and
updated the code to pass the extra data that is missing from the
former one.
2015-02-05 18:25:48 -05:00
Zoltan Varga
a5f77df5e1
[amd64] Avoid clobbering sreg1 in OP_MOVE_F_TO_I4.
2015-02-05 17:16:53 -05:00
Zoltan Varga
00a28a7dfd
[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732 .
2015-02-05 17:16:53 -05:00
Rodrigo Kumpera
8b4a2f2bd6
[runtime] Plug a loader error leak.
2015-02-05 17:15:42 -05:00
Zoltan Varga
54c312fa93
Revert "[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732."
...
This reverts commit 98f665aba9 .
Revert this as it causes assertions on methods with large basic blocks.
2015-02-05 16:53:26 -05:00
Sebastien Pouliot
6bd76b142d
Bump referencesource to disable some CAS usage
2015-02-05 15:55:09 -05:00
Alexander Köplinger
890ca8595e
Fix error message to mention git instead of svn
...
Just a nitpick, but I saw this in a build log and thought I'd fix it.
2015-02-05 21:30:58 +01:00
Sebastien Pouliot
7145c08255
[linker] Only consider [Preserve] (i.e. without any parameters) on assembly-level as meaning 'preserve everything inside this assembly'.
2015-02-05 15:20:55 -05:00
Sebastien Pouliot
7b29d5abb2
[linker] Preserve types given to custom attributes - even if they are inside an array [ #26030 ]
2015-02-05 15:19:46 -05:00
Sebastien Pouliot
a7a4de9dd5
[linker] Do not process custom attribute fields unless there are some (avoids memory allocation for collections)
2015-02-05 15:18:47 -05:00
Mark Probst
fe56186215
Merge pull request #1546 from evincarofautumn/faster-binprot
...
Make sgen-grep-binprot faster.
2015-02-05 11:55:26 -08:00
Jon Purdy
b299715e36
[sgen] Make sgen-grep-binprot faster.
...
fread() spent a great deal of time locking, and we called malloc() once for
each entry. Replacing fread() with read() plus manual buffering, as well
as replacing malloc() with a static buffer, improves throughput by an
order of magnitude.
This also adds an '--input' option for reading from a stream other than
standard input.
2015-02-05 11:53:08 -08:00
Neale Ferguson
d19817ad9c
Use float<->integer instructions for move operations
2015-02-05 14:36:54 -05:00
Jeffrey Stedfast
f076746dd7
[Microsoft.Build.Utilities] Fixed MSBuildErrorParser to be more robust
2015-02-05 13:43:14 -05:00
Marek Safar
ecaa5d7faf
[mcs] Prefer not missing type for ambiguous imported types. Fixes #26753
2015-02-05 18:25:18 +01:00
Alexander Köplinger
92af367655
[bcl] Added a few stubs for missing APIs
...
They are required for the upcoming System.Web port.
2015-02-05 18:09:40 +01:00
Marek Safar
52ce4a07b2
[corlib] TimeZoneInfo.ConvertTimeToUtc maximum datetime handling
2015-02-05 07:25:49 -05:00
Marek Safar
8442408da0
[runtime] Fixes setting FileVersionInfo managed booleans
2015-02-05 12:34:16 +01:00
Marek Safar
26a31a583b
[xbuild] Fix When Condition with a user comment
2015-02-05 11:49:59 +01:00
Marek Safar
6b908c2f34
[build] remove unused defines
2015-02-05 11:28:40 +01:00
Marek Safar
7c0da3c990
[corlib] BitConverter from reference sources
2015-02-05 10:48:49 +01:00
Alex Rønne Petersen
4c887f7ba4
[mini] Really fix the float <-> int data transfer instructions on arm.
...
The ARM_CVTS/ARM_CVTD macros have somewhat deceptive names: They
describe the source data type, not the target data type.
2015-02-05 04:59:47 +01:00
Miguel de Icaza
5b2bb8c901
[decimal] Microsoft's unmanaged code for decimal support
...
This is a port of the CoreCLR Decimal support to C and to the Mono
coding conventions. In the process of porting the code, I removed a
bunch of COM-isms and some Windows-isms that were just workaround with
compatibility typedefs and replaced it instead with stdint.h data
types as well as Mono assertions.
There are still a few methods missing, and the managed library is not
plugged yet (both constructors likely need to be altered to be managed
proxies to the init method).
2015-02-04 21:45:03 -05:00
Alex Rønne Petersen
136f17a024
Merge pull request #1541 from alexrp/mcs-build-cleanup
...
Clean up mcs build system
2015-02-05 03:13:59 +01:00
Miguel de Icaza
dee36bfa52
Start work to generate dependencies
2015-02-04 21:05:29 -05:00
Alex Rønne Petersen
2baec073f4
[mini] Implement float <-> int data transfer instructions in the LLVM backend.
2015-02-05 02:03:38 +01:00
Rodrigo Kumpera
3b38dffbc4
[test] Add verifier test for cgt_un and valuetypes.
2015-02-04 17:08:47 -05:00
Rodrigo Kumpera
ff87fbe74d
[verifier] Properly verify CGT_UN when used with reference value and the null literal.
2015-02-04 17:06:38 -05:00
Zoltan Varga
98f665aba9
[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732 .
2015-02-04 14:00:17 -05:00
Zoltan Varga
257620d383
[runtime] Enable the new interrupt code on arm64.
2015-02-04 13:22:38 -05:00
Marek Safar
03c62b9023
Move TimeZoneInfo tests to corlib
2015-02-04 19:09:14 +01:00
Marek Safar
da7d598940
[system.xml] Disable failing test, requires reference source implementation
2015-02-04 18:46:30 +01:00
Marek Safar
798e9c0c41
[corlib] Fix overflow in TimeZoneInfo utc conversion
2015-02-04 17:55:41 +01:00
Marek Safar
22c8cc477f
[mcs] update error message
2015-02-04 17:55:41 +01:00
Marek Safar
b75b33ab83
[corlib] Boolean from reference sources
2015-02-04 17:55:41 +01:00
Radek Doulik
598920ce36
[android] disable TLS on android/x86_64
...
- otherwise we assert in sgen allocator
in sgen-gc.h:EMIT_TLS_ACCESS_NEXT_ADDR
thru sgen-alloc.c:create_allocator
- note that it is also disabled for ARM[64] and X86
on android
2015-02-04 17:16:22 +01:00
Marek Safar
96eca3b925
[System] More TypeDescriptor tests
2015-02-04 15:49:41 +01:00
Marek Safar
9e396e4022
[corlib] Add test for #17626
2015-02-04 15:36:51 +01:00
Marek Safar
aa4ba602fc
[corlib] DateTime from reference sources
2015-02-04 15:36:51 +01:00
Alex Rønne Petersen
29a4519b5f
Revert "[runtime] Fixed allowing non-object complex arguments to cgt.un"
...
This reverts commit 38f878ce9d .
This broke the build: http://wrench.mono-project.com/Wrench/WebServices/Download.aspx?workfile_id=3704132
2015-02-04 15:28:44 +01:00
Alex Rønne Petersen
c294093080
[mini] Hopefully fix float <-> int data transfer instructions on x86. x87 sucks.
2015-02-04 14:58:03 +01:00
Alex Rønne Petersen
5ad8b5d9d4
[mini] Fix float <-> int data transfer instructions on arm/mips.
2015-02-04 14:42:43 +01:00
Alex Rønne Petersen
b48718ed54
[mini] Fix x86/arm build.
2015-02-04 14:42:43 +01:00
João Matos
057af01163
Fixed System.Net.NetworkInformation tests to work with MonoTouch.NUnitLite.
2015-02-04 13:21:40 +00:00
João Matos
acbf7557e4
[runtime] Added autoconf support for AMD64 Android cross compilation.
2015-02-04 13:08:32 +00:00
Alex Rønne Petersen
1a319806fe
[mini] Implement atomic exchange with xchg on x86/amd64.
2015-02-04 13:18:13 +01:00
Alex Rønne Petersen
5ca71a7700
[mini] Use new float <-> int move opcodes to implement r4/r8 CAS/Exchange.
2015-02-04 12:05:59 +01:00
Alex Rønne Petersen
afd8928030
[mini] Add new instructions for moving data between float and int regs.
...
These perform no conversions (other than any necessary single <-> double
conversions). They simply copy the raw data back and forth.
2015-02-04 12:05:59 +01:00
Alex Rønne Petersen
9095bc0d14
[mini] Apply the dreg != sreg1 optimization to OP_(F)MOVE in all backends.
2015-02-04 12:05:58 +01:00
Alex Rønne Petersen
1d3ec567aa
[mini] Fix some cases where intrinsics did not have a stack type set.
2015-02-04 12:05:58 +01:00
Radek Doulik
a99d8a396d
[android] do not use tkill on android/amd64(x86_64) as well
2015-02-04 09:54:00 +01:00
Alex Rønne Petersen
00725c15bc
Merge pull request #1543 from alexanderkyte/master
...
[runtime] Fixed allowing non-object complex arguments to cgt.un
2015-02-04 04:53:29 +01:00
Alexander Kyte
38f878ce9d
[runtime] Fixed allowing non-object complex arguments to cgt.un
2015-02-03 22:43:50 -05:00
Zoltan Varga
a85fe92f45
[amd64] Add missing amd64_sse_cvtss2si_reg_reg_size() codegen macro.
2015-02-03 20:44:26 -05:00
Vlad Brezae
bea7d8a600
[jit] Pass the aligned object size to the managed allocator.
2015-02-03 23:51:59 +00:00
Vlad Brezae
29659f7623
[jit] Optimize the managed allocator fastpath
...
Send the instance_size as an argument to the managed object allocator to reduce memory dereferences from the vtable in the generated code.
2015-02-03 23:51:58 +00:00
Zoltan Varga
989301647e
Merge pull request #1545 from akoeplinger/fix-windows-build
...
Fix Windows build
2015-02-03 15:58:12 -05:00
Alexander Köplinger
0b2a537abf
Fix Windows build
...
It was broken by c731686feb
2015-02-03 10:40:03 -08:00
Miguel de Icaza
38a2f62b2f
Updated the order file generated by following the instructions in msvc/scripts/README
2015-02-03 11:48:38 -05:00
Marek Safar
0b32ad8dfc
[corlib] TimeSpan from reference sources
2015-02-03 16:20:55 +01:00
João Matos
58ae0ae309
[corlib] Fixed tests to work with NET_2_1 define.
2015-02-03 14:11:32 +00:00
Marek Safar
6427a13879
[corlib] DateTimeOffset from reference sources
2015-02-03 11:58:48 +01:00
Marek Safar
5937d3a70c
[corlib] DateTimeFormatInfo and friends from reference sources
2015-02-03 10:30:30 +01:00
Marek Safar
98ecb517a7
[system] Add support for redirected http web-request with disabled AllowWriteStreamBuffering (empty streams only). Fixes #26640
2015-02-03 10:25:03 +01:00
Rodrigo Kumpera
98658d9091
[runtime] Replace a call to mono_get_method_full to mono_get_method_checked.
2015-02-02 22:36:15 -05:00
Alex Rønne Petersen
e55268f3ab
Remove old centum tests stuff.
...
Despite what the makefiles would have you believe, this was never
actually used when running the test suites. Don't ask me why - my
make-fu isn't good enough. Regardless, it's a bad idea to only
run tests for a specific set of assemblies. If some tests fail or
are unstable, they should be fixed, or disabled and have a bug
filed. Sweeping them under the rug like this is the wrong thing
to do. Incidentally, this commit doesn't add any new failures.
2015-02-03 03:41:15 +01:00
Alex Rønne Petersen
c740b9831d
Remove now-obsolete System.Web.Extensions(.Design)_1.0 assemblies.
...
These are no longer built in the newer profiles.
2015-02-03 03:41:14 +01:00
Alex Rønne Petersen
351e94964c
Remove obsolete profiles and profile checks from the build system.
...
* Removed all old profiles from VALID_PROFILE checks.
* Removed most logic under checks like ifeq (net_2_0), $(PROFILE)) as
it is dead code now that those old profiles are gone.
* Simplified the list of assemblies in mcs/class/Makefile now that we
only have one profile.
* LIBRARY_NEEDS_POSTPROCESSING has been removed as it was only used by
old 1.x assemblies that no longer exist.
* Build logic that sets MONO_PATH now points to mcs/class/lib/net_4_5
instead of mcs/class/lib/net_2_0.
2015-02-03 03:41:14 +01:00
Alex Rønne Petersen
43a0088f3f
Remove some leftover old 1.x, 2.x, 3.x profile ifdefs.
...
We no longer support these profiles so these code paths are dead.
2015-02-03 03:41:14 +01:00
Zoltan Varga
1b41e15f91
Avoid recompiling a test on every run.
2015-02-02 19:30:30 -05:00
Zoltan Varga
d504f17272
Revert "Switch System.Web.ApplicationServices to referencesource"
...
This reverts commit ea88432e49 .
Revert this as it breaks the System.Web tests.
2015-02-02 18:20:45 -05:00
Zoltan Varga
e2193970c9
Revert "Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs"
...
This reverts commit b88fc96610 .
Revert this as it breaks the System.Web tests.
2015-02-02 18:20:23 -05:00
Rodrigo Kumpera
9621471d3a
[io-layer] Small portability fix.
2015-02-02 17:39:38 -05:00
Jonathan Pryor
52eceb5460
[System.Core/Android] Update TimeZone database self test.
...
The `make tzi.exe` target had bitrotted, and the
`make android-dump-tzdata` target generated inadvertent/unintentional
errors. Fix the makefile so that things build and run.
2015-02-02 15:20:39 -05:00
Marek Safar
d8cbfdfbb1
[corlib] Makes AggregateException output visible
2015-02-02 20:26:52 +01:00
João Matos
d9f9ba0d8b
[corlib] Fixed xammac build.
2015-02-02 15:53:02 +00:00
João Matos
b6df249cc2
[corlib] Fixed build with NET_2_1 define.
2015-02-02 15:51:50 +00:00
Rolf Bjarne Kvinge
f3b7aa8afc
[System.Xml] Overwrite instead of append so that subsequent executions doesn't end up with garbage in the output.
2015-02-02 13:51:42 +01:00
Rodrigo Kumpera
03a28d987a
[jit] Fix bad_method_regression_2 when SSA is enabled on 32bits.
2015-02-01 19:20:17 -05:00
Dave Curylo
7cbeed36fd
Fix to UriTemplate.Match to properly handle query parameters without a value. No longer throws IndexOutOfRangeException and the parameter is added to the resulting UriTemplateMatch.QueryParameters field with a null value, same as in .NET.
...
This change is released under the MIT license.
2015-01-31 07:21:03 -05:00
Zoltan Varga
3edd4ffe6b
Merge pull request #1540 from esdrubal/marshallingcache
...
[runtime] Added native_func_wrapper_cache.
2015-01-31 02:42:34 -05:00
Zoltan Varga
910ebf9438
[jit] Increase the inline memcpy/memset cutoff to 8 machine words.
2015-01-30 23:50:28 -05:00
Zoltan Varga
1f5b328219
[llvm] Add a new LLVMArgAsFpArgs argument passing convention which means an argument is passed as a set of fp scalar arguments, i.e. HFAs on arm64.
2015-01-30 20:59:55 -05:00
Zoltan Varga
4b2d1f0edc
Fix a warning.
2015-01-30 19:15:24 -05:00
Zoltan Varga
4bd4e7539a
[arm] Enable llvm for methods with struct arguments larger than 2 words.
2015-01-30 17:46:43 -05:00
Zoltan Varga
d4077516ed
[runtime] Disable a test which fails with llvm/gcc.
2015-01-30 15:43:22 -05:00
Rodrigo Kumpera
c731686feb
Don't include the poll backed directly into the threadpool source code.
2015-01-30 14:07:52 -05:00
Rodrigo Kumpera
ebf7c45f74
[runtime] Skip the finalizer thread while it's sleeping.
2015-01-30 14:07:52 -05:00
Marcos Henrich
09c48bc964
[runtime] Added native_func_wrapper_cache.
...
mono_marshal_get_native_func_wrapper now uses native_func_wrapper_cache indexed by SignaturePointerPair,
Using SignaturePointerPair index instead of MonoMethod index avoids problems when one native function needs multiple wrappers.
e.g: when the managed code creates delegates for function pointers with parameters that require different marshallings.
This fixes bug 26127.
2015-01-30 17:01:45 +00:00
Marcos Henrich
e8f48de9bb
[runtime] Renamed SignatureMethodPair to SignaturePointerPair.
...
Changed field MonoMethod* method to gpointer pointer.
This change was done because we need in some cases to use a signature pointer pair.
2015-01-30 15:26:03 +00:00
Marek Safar
26618719fe
Merge pull request #1539 from directhex/use-referencesource-for-System.Web.ApplicationServices
...
Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs
2015-01-30 15:13:37 +01:00
Jo Shields
b88fc96610
Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs
...
This avoids depending on a missing .resources file with string translations in it
2015-01-30 14:09:15 +00:00
João Matos
6fa8f480dd
Merge pull request #1538 from directhex/use-referencesource-for-System.Web.ApplicationServices
...
Switch System.Web.ApplicationServices to ReferenceSource.
2015-01-30 12:45:38 +00:00
Jo Shields
ea88432e49
Switch System.Web.ApplicationServices to referencesource
...
Due to the removal of the net_2_0 profile, the files in ../System.Web/System.Web.Security aren't included in make dist anymore since they aren't used in System.Web (the classes got moved to System.Web.ApplicationServices.dll in .NET 4).
This breaks the tarball builds, as System.Web.ApplicationServices relies
on those files, so we now include the ReferenceSource equivalents instead.
2015-01-30 12:44:47 +00:00
Rodrigo Kumpera
2436f4c059
[runtime] Use MonoError instead of loader error with signature parsing.
2015-01-30 01:03:01 -05:00
Sebastien Pouliot
998dbd5a9d
Bump referencesource to disable CAS calls on System.Componentmodel.TypeDescriptor [ #26554 ]
2015-01-29 19:58:45 -05:00
Alex Rønne Petersen
f3d7670010
[mini] Fix Enum.HasFlag () intrinsic emitting a bad OP_LCEQ on 32-bit.
2015-01-30 01:10:31 +01:00
Zoltan Varga
8b6ae32c26
Fix the dreg op the long_ccc instructions, those instructions return ints.
2015-01-29 19:09:43 -05:00
Mark Probst
d43c5b2723
Merge pull request #1537 from evincarofautumn/color-binprot
...
Add color mode to sgen-grep-binprot.
2015-01-29 14:09:14 -08:00
Jon Purdy
b63d941ba0
[runtime] Add color mode to sgen-grep-binprot.
...
When searching for a pointer with '--color' or '-c', the field in a
protocol entry that matched will be highlighted; when searching for
multiple pointers, they will be highlighted in different colors
according to their order on the command line. When highlighting more
than six pointers, colors will be reused.
2015-01-29 13:51:27 -08:00
Jon Purdy
9df536fcc6
[runtime] Fix incorrect labels in sgen-grep-binprot output.
2015-01-29 12:52:13 -08:00
Miguel de Icaza
4bc5170cb5
Add more detail
2015-01-29 15:39:59 -05:00
Miguel de Icaza
9e53c70376
[lldb] Document and install the mono.py file for LLDB
2015-01-29 15:33:48 -05:00
Zoltan Varga
2457f29139
Fix a warning.
2015-01-29 15:29:45 -05:00
Alex Rønne Petersen
bc13a8125e
[mini] Fix decomposition of long opcodes in VolatileRead ()/VolatileWrite () intrinsics.
2015-01-29 19:06:33 +01:00
Alex Rønne Petersen
8221afc2bc
Optimize Enum.HasFlag () implementation and recognize it in the JIT.
...
The previous implementation did a ton of reflection and boxing making
it about 4x slower than it should be. This new (native) implementation
simply memcpy ()s the values out of the Enum objects and then does the
bitwise AND.
In addition, the JIT now recognizes this common IL pattern:
<push int or long ptr>
<push int or long>
box MyFlagsEnum
constrained. MyFlagsEnum
callvirt instace bool class [mscorlib] System.Enum::HasFlag (class [mscorlib] System.Enum)
This is generated from C# code such as:
MyFlagsEnum a = ..., b = ...;
a.HasFlag (b);
When the operand types of the `box` and `constrained.` instructions are
the same, we can skip all the slow stuff that HasFlag () normally does
and simply turn the whole thing into this IR:
<this> = loadi4_membase <this_ptr>
<temp> = int_and <this> <flag>
icompare <temp> <flag>
<result> = int_ceq
This is about 60x faster than the old HasFlag () without any JIT support
and about 15x faster than the new HasFlag () native implementation.
Also, added missing argument checks to HasFlag ().
2015-01-29 19:06:33 +01:00
João Matos
32db079545
[build] Updated the class library MSBuild projects.
2015-01-29 17:02:08 +00:00
Rodrigo Kumpera
7551802f99
Merge pull request #1536 from esdrubal/noreuse
...
[runtime] MonoIO methods using SafeHandle now prevent handle reuse.
2015-01-29 10:15:05 -06:00
João Matos
8c8eb43638
[System.Core] Fixed interpreter build.
2015-01-29 16:11:37 +00:00
Miguel de Icaza
27da886fe8
[FtpWebRequest] Add test for bug #26312 , issue was fixed by bringing .NET's implementation
2015-01-29 10:45:59 -05:00
Marcos Henrich
cfbd2c797b
[runtime] MonoIO methods using SafeHandle now prevent handle reuse.
...
This reverts partially commit 753229c72dd9f2b63beb097700e350164b887c2.
Marshallers are not called for ICalls parameters so the change of ICalls parameters to SafeHandle did not prevents handle reuse.
To prevent handle reuse ICalls are no longer called directly.
Instead we call a method that receives a SafeHandle and wraps the ICall call with safeHandle.DangerousAddRef and safeHandle.DangerousReleaseRef.
This guarantees that the safe handle reference countererence does not reach zero before or while the ICall, thus avoiding the handle beeing released and possibly reused.
2015-01-29 15:27:57 +00:00
Marek Safar
01557ce516
[system.core] Fixes MT build
2015-01-29 15:54:54 +01:00
Marcos Henrich
d08bfead6f
[symbolicate] Added tool README.
2015-01-29 13:13:00 +00:00
Rodrigo Kumpera
dc953f8095
[eglib] [io-layer] Have a single wrapper around getdtablesize. This removes the duplicate on io-layer and exports the eglib one.
2015-01-28 20:28:13 -05:00
Zoltan Varga
d547860431
[mdoc] More updates to expected test output.
2015-01-28 20:15:28 -05:00
Alex Rønne Petersen
55b090587d
[mini] Prefer OP_ICEQ over OP_CEQ in i4 CAS intrinsics.
2015-01-29 01:17:06 +01:00
Zoltan Varga
57a302ce03
[arm64] Add tests for loading of sbyte/bool arguments passed on the stack.
2015-01-28 18:39:24 -05:00
Rodrigo Kumpera
3798f91417
[profiler] Report methods not found in async mode due to AOT.
2015-01-28 18:25:46 -05:00
Rodrigo Kumpera
bb83aaa4f0
[utils] Fix mono_dl_build_path termination logic.
2015-01-28 18:25:45 -05:00
Rodrigo Kumpera
1e47df3c7b
[runtime] Fix appdomain loading event ordering.
2015-01-28 18:25:41 -05:00
Kai Ruhnau
46b5b849ae
Populate the RequestingAssembly property of ResolveEventArgs
2015-01-28 18:15:30 -05:00
Zoltan Varga
98949d2e25
Merge pull request #1535 from StephenMcConnel/bug-26523
...
Fix the default behavior of ToolStripLayoutStyle.Table
2015-01-28 17:54:38 -05:00
Stephen McConnel
aa7bfb2359
Fix the default behavior of ToolStripLayoutStyle.Table
...
This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26523 .
2015-01-28 16:52:40 -06:00
Alex Rønne Petersen
962c9682ab
[mini] Add some missing atomic instructions to cpu-arm64.md.
2015-01-28 23:48:36 +01:00
Ludovic Henry
2c524916b7
[runtime] Fix #26307 "Random crash due to threading issue in new threadpool heuristics code"
...
By locking `threads_lock` before launching the thread, we guarantee that the thread is not going to remove itself from `threads` before we actually add it to `threads`.
2015-01-28 15:56:07 -05:00
Zoltan Varga
d1647dabf8
Merge pull request #1533 from jbevain/pdb2mdb-roslyn
...
[pdb2mdb] Skip unknown pdb metadata
2015-01-28 15:45:26 -05:00
Rodrigo Kumpera
36afbc6563
Merge pull request #1510 from BrzVlad/fix-file-map
...
Fix file map
2015-01-28 14:18:19 -06:00
Mark Probst
5f70b2e00b
Merge pull request #1527 from ludovic-henry/master
...
[runtime] Generate binary protocol functions and structure with macro
2015-01-28 10:12:50 -08:00
Alex Rønne Petersen
5b1bce5693
[mini] Add atomic load/store instructions for float/double.
2015-01-28 18:29:09 +01:00
Alex Rønne Petersen
40ad17a1c3
[mini] Lower atomic load/store instruction sizes on ARM.
2015-01-28 18:29:09 +01:00
Alex Rønne Petersen
133aad946c
[mini] Fix some warnings.
2015-01-28 18:29:09 +01:00
João Matos
78e28d1121
[runtime] Fixed mono_dl_open_file to work in Android.
2015-01-28 17:21:22 +00:00
Ludovic Henry
b9da8d3f1e
[runtime] Generate binary protocol functions and structure with macro
...
You just have to edit mono/metadata/sgen-protocol-def.h to generate a new binary protocol entry type
2015-01-28 11:51:51 -05:00
Marcos Henrich
4f2b974bfa
[symbolicate] Added symbolicate.expected.
...
The added file Test/symbolicate.expected contains the value that we expect to find in Test/out/symbolicate.out.
make check now uses Test/symbolicate.expected.
2015-01-28 16:35:13 +00:00
Marcos Henrich
c052b2618c
[runtime] Duplicated instructions OP_IL_SEQ_POINT are now removed.
...
Sequences of OP_IL_SEQ_POINT instructions are now reduced to only the instruction.
This removes about half of the generated sequence point instructions.
2015-01-28 16:35:13 +00:00
Henrik Feldt
789d43622e
[crypto] Re-instantiate for Invariants() test
2015-01-28 17:13:02 +01:00
Henrik Feldt
0b8d94d285
[crypto] check key length in test
2015-01-28 16:51:11 +01:00
Marek Safar
b23077459a
[System.Core] More reference sources
2015-01-28 16:30:19 +01:00
Marek Safar
f90fe36593
[corlib] Move Aes.cs to corlib
2015-01-28 16:30:19 +01:00
Marek Safar
895f9cc39e
[system.core] Profiles cleanup
2015-01-28 16:30:18 +01:00
Marek Safar
cba3edec90
[corlib] Move TimeZoneInfo source files to assembly they are used
2015-01-28 16:30:18 +01:00
Marek Safar
a303b38586
[system.core] Cleanup TimeZoneInfo ifdefs
2015-01-28 16:30:18 +01:00
Henrik Feldt
7fc8c726ad
[crypto] Key size 128 bytes for HMACSHA512
...
Using recommended key size according to MSDN (1) and RFC4868 (2).
(1): https://msdn.microsoft.com/en-us/library/w5y83hkf%28v=vs.110%29.aspx
(2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt
c72f6c2fb5
[crypto] Key size 128 bytes for HMACSHA384
...
Using recommended key size according to MSDN (1) and RFC4868 (2).
(1): https://msdn.microsoft.com/en-us/library/h43559cy%28v=vs.110%29.aspx
(2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt
ad4a6a5369
[crypto] Key size 64 for HMACSHA256
...
Using recommended key size according to MSDN (1) and RFC4868.
Fixes #23808 - https://bugzilla.xamarin.com/show_bug.cgi?id=23808
(1): https://msdn.microsoft.com/en-us/library/9c9tf8wc%28v=vs.110%29.aspx
(2): https://tools.ietf.org/html/rfc4868 - under
2.1.1. Data Origin Authentication and Integrity Verification Usage
2015-01-28 16:28:09 +01:00
Henrik Feldt
f3d2c41b26
[crypto] Key size 64 for HMACSHA1
...
This HMAC cipher accepts any key size (1), took from RFC2104, which uses
the full 64 bytes of key since it has a block length of 64 bytes.
(1): https://www.ietf.org/rfc/rfc2104.txt - Chapter 2: Definition of HMAC
2015-01-28 16:27:54 +01:00
Henrik Feldt
1caf94bec7
[crypto] Key size 64 for HMACRIPEMD160
...
This HMAC cipher accepts any key size (1), took 64 bytes from MSDN (2)
(1): https://tools.ietf.org/html/rfc2857 - chapter 3 keying material
(2): https://msdn.microsoft.com/en-us/library/8k00xhf0%28v=vs.110%29.aspx
2015-01-28 16:27:41 +01:00
João Matos
786edf7ad6
[msvc] Updated runtime project files.
2015-01-28 15:09:14 +00:00
João Matos
cde444ffb0
[runtime] Windows build fixes.
2015-01-28 15:07:17 +00:00
Jb Evain
974526dd3c
[pdb2mdb] Skip unknown pdb metadata
...
This patch allows pdb2mdb to convert pdb files containing
metadata items emitted by the Roslyn compiler.
2015-01-28 15:36:46 +01:00
Alex Rønne Petersen
4d72abb180
[mini] Fix a few cases where incorrect vreg types were being allocated for intrinsics.
2015-01-28 14:36:49 +01:00
Alex Rønne Petersen
c6fb35d47d
[mini] Fix stack type for atomic intrinsics involving IntPtr.
2015-01-28 14:36:49 +01:00
Rolf Bjarne Kvinge
2bdeceed14
[mono-api-html] Take arity into account when comparing methods.
...
Fixes a crash when there are two methods overloaded by arity:
System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.Single[XElement] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00038] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2371
at System.Linq.Enumerable.SingleOrDefault[XElement] (IEnumerable`1 source, System.Func`2 predicate) [0x00007] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2445
at Xamarin.ApiDiff.MemberComparer.Find (IEnumerable`1 target) [0x00019] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:72
at Xamarin.ApiDiff.MemberComparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x0003c] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:83
at Xamarin.ApiDiff.MemberComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x000a2] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:55
at Xamarin.ApiDiff.ClassComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0005b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:210
at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
at Xamarin.ApiDiff.ClassComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:67
at Xamarin.ApiDiff.NamespaceComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0001a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:75
at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
at Xamarin.ApiDiff.NamespaceComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:49
at Xamarin.ApiDiff.AssemblyComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0002b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:70
at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
at Xamarin.ApiDiff.AssemblyComparer.Compare () [0x0004a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:50
at Xamarin.ApiDiff.Program.Main (System.String[] args) [0x00328] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ApiDiff.cs:164
2015-01-28 14:17:17 +01:00
Alex Rønne Petersen
416cbef8d8
[mini] Recognize and optimize Thread.VolatileRead ()/VolatileWrite ().
2015-01-28 13:30:57 +01:00
Alex Rønne Petersen
90d942e1c5
[mini] Recognize and optimize the new 4-parameter CAS overload.
2015-01-28 11:57:06 +01:00
Alex Rønne Petersen
9f3f9b174c
[corlib] Add a new generated test file to .gitignore.
2015-01-28 11:57:06 +01:00
Jo Shields
559b0b2c67
Missing bracket from 8b10cef3
2015-01-28 10:50:32 +00:00
Marek Safar
d5febd5365
[mdoc] update expected delegate exceptions
2015-01-28 10:07:15 +01:00
Zoltan Varga
e5d76a7074
[amd64] Add 32bit fp codegen macros.
2015-01-27 20:25:56 -05:00
Rodrigo Kumpera
417fc5e789
[runtime] Cleanup networking init/shutdown code.
2015-01-27 18:35:38 -05:00
Rodrigo Kumpera
8b10cef344
[utils] Cleanup the dynamic loading code and split the platform specific code into multiple files.
...
This makes the actual code much simpler to read and work with as we can clearly see what's done on each
target.
2015-01-27 17:59:33 -05:00
Zoltan Varga
69dc4238a2
Merge pull request #1530 from StephenMcConnel/bug-26478
...
Fix TextBox display to handle kerning fonts
2015-01-27 16:47:24 -05:00
Stephen McConnel
3280b20650
Fix TextBox display to handle kerning fonts
...
Many fonts, including the default DejaVu Sans, use kerning between
certain character pairs. This resulted in garbled or even invisible
display during typing of strings with a lot of kerning going on. An
attempt is made to retain the current speed-optimized implementation
while using accurate, slower string width measurements when needed.
See https://bugzilla.xamarin.com/show_bug.cgi?id=26478 for details.
2015-01-27 15:40:11 -06:00
Marcos Henrich
81af7de23d
[symbolicate] Makefile fixes.
2015-01-27 18:54:18 +00:00
Zoltan Varga
ec1244784c
Add tools/symbolicate to the build.
2015-01-27 13:49:30 -05:00
Marek Safar
6a0b61634d
[corlib] Remove redundant checks from delegate::combine
2015-01-27 19:46:55 +01:00
Zoltan Varga
d2ec22099a
[sdb] Avoid errors when a vtype method is invoked with the InvokeOptions.Virtual flag set.
2015-01-27 13:09:59 -05:00
Marek Safar
0d1f48b9e1
[mcs] Fix type inference fixing to filter all candidates
2015-01-27 18:53:17 +01:00
Atsushi Eno
057623eb7c
Merge pull request #1529 from alistair/xmlreader_read_to_next_sibling_bug
...
XmlReader.ReadToNextSibling(string) doesn't match .net behaviour
2015-01-28 01:04:26 +08:00
Marek Safar
a24bb201eb
Revert referencesource change from 9ac4b5b7a7
2015-01-27 17:58:29 +01:00
Marek Safar
52a93b2dbb
Revert to broken scope reference indexing
2015-01-27 17:58:29 +01:00
Marcos Henrich
0e3f9853ac
[symbolicate] Added target check to Makefile.
...
Target check verifies that symbolicate is capable of returning a debug stacktrace from a release stackframe.
2015-01-27 16:25:16 +00:00
Alistair Bush
aba3b1a915
Unit test for reproduction of XmlReader.ReadToNextSibling behaviour
2015-01-28 04:17:52 +13:00
Marek Safar
3abac7458e
Update ikvm
2015-01-27 16:14:54 +01:00
João Matos
b655fb35c6
[runtime] Fixed MONO_STRUCT_OFFSET to work with non-cross builds.
2015-01-27 15:06:08 +00:00
Alex Rønne Petersen
157db2ae27
[corlib] Switch to reference source System.Threading.SpinLock.
2015-01-27 13:05:28 +01:00
Alex Rønne Petersen
4f5195edd2
[mini] Make intrinsic method signature checks more robust.
...
This is so we can avoid miscompiling things left and right
when new overloads are added. For example, before this patch,
we miscompiled the new 4-parameter CAS () overload.
2015-01-27 13:05:28 +01:00
Marcos Henrich
951299ddae
test_op_il_seq_point.sh now properly generates tmp files.
2015-01-27 10:59:14 +00:00
Marcos Henrich
b457329942
test_op_il_seq_point.sh now calls mono with option --compile-all=1
...
Calling mono with flag --compile-all=1 avoids running the code and possible stdout problems and it also compiles every method.
As test_op_il_seq_point.sh now only compiles it is now capable of testing libraries and executables that are expecting parameters.
2015-01-27 09:37:48 +00:00
Zoltan Varga
2140250e4f
[corlib] Wait for tasks to finish in some Tasks tests to prevent races between tests.
2015-01-26 19:59:06 -05:00
Vlad Brezae
8b914ca48b
When map size is 0, use the aligned size of the file.
...
As MS does.
2015-01-26 15:08:15 -08:00
Vlad Brezae
08f78b1615
Fail on mappings that exceed the file size.
...
As MS does.
2015-01-26 15:08:14 -08:00
Vlad Brezae
495cd1500b
Fix handling of mappings over file size.
...
Add tests.
2015-01-26 15:08:14 -08:00
Vlad Brezae
3f81926327
Fix truncation of newly created map files.
...
File truncation could skip due to the fact that st_size field is only initialized for already existing files.
2015-01-26 15:06:53 -08:00
Zoltan Varga
85d7771306
[sdb] Avoid errors when a static method is invoked with the InvokeOptions.Virtual flag set.
2015-01-26 17:59:32 -05:00
Rodrigo Kumpera
89ed7a9018
[runtime] Check for sigaction been present when trying to use signals.
2015-01-26 16:30:43 -05:00
Rodrigo Kumpera
b3a4976b6d
[utils] Explicitly check if the system has mincore instead of relying on mmap been present.
2015-01-26 16:30:42 -05:00
Zoltan Varga
b97979906b
[runtime] Add infrastructure code for getting/setting Thread.Priority.
2015-01-26 15:13:46 -05:00
Rodrigo Kumpera
9ac4b5b7a7
[runtime] Introduce MonoError into mono_metadata_parse_method_signature_full.
2015-01-26 14:50:36 -05:00
Rodrigo Kumpera
a4188b73cd
Fix loader error <> MonoError interop.
2015-01-26 14:26:18 -05:00
Marek Safar
3632d51916
[corlib] Report constructor ContainsGenericParameters by inspecting parent type. Fixes #26412
2015-01-26 18:12:00 +01:00
Marek Safar
8fcdfeda92
Update reference sources to correctly fix #26375
2015-01-26 17:41:53 +01:00
Alex Rønne Petersen
1a858cbfbd
[runtime] Use MonoBoolean in icall signature, not gboolean.
2015-01-26 17:14:51 +01:00
João Matos
20eb41f97a
[runtime] Fixed the iOS build.
...
Failure caused by https://github.com/mono/mono/commit/2f1b464beb14a1b6b6099a03fc332493293bef35 .
```
../../../../../mono/mono/utils/mono-proclib.c:104:8: error: use of undeclared identifier 'errno'
if (errno != ENOMEM)
^
../../../../../mono/mono/utils/mono-proclib.c:104:17: error: use of undeclared identifier 'ENOMEM'
if (errno != ENOMEM)
```
2015-01-26 14:59:39 +00:00
João Matos
b52a468f49
Partial revert of "Fixes mobile build"
...
This reverts commit 4d3877d23b .
We cannot remove this file as the build logic is expecting it since we override it from mono-extensions.
```System/Guid.cs(42,7): error CS0246: The type or namespace name `Crimson' could not be found. Are you missing an assembly reference?```
2015-01-26 14:59:39 +00:00
Marek Safar
fc81c9a972
Revert corlib changes from 268627a68b
2015-01-26 15:50:58 +01:00
Marek Safar
268627a68b
[mcs] Emit catch scope with correct start offset. Also fixes local variable scope index reference. Fixes #25358
2015-01-26 15:46:03 +01:00
Alex Rønne Petersen
506d405b98
Fixup for 2644152b06.
...
Accidentally committed an incomplete patch.
2015-01-26 14:11:20 +01:00
Marek Safar
b3c4d9d786
Merge pull request #1521 from esdrubal/fshandle
...
[corlib] FileStream now uses SafeFileHandle.
2015-01-26 13:46:05 +01:00
Marcos Henrich
7a81fd5b30
[corlib] FileStream now uses SafeFileHandle.
...
FileStream now stores a SafeFileHandle instead of a IntPtr handle.
Added ObjectDisposedException to more methods.
2015-01-26 12:27:44 +00:00
Marcos Henrich
753229c72d
[corlib] Changed some MonoIO methods to use SafeHandle.
2015-01-26 12:27:42 +00:00
João Matos
6c65d62a14
[System] Fixed mobile build.
2015-01-26 12:03:17 +00:00
Jo Shields
cd9db9cb45
Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
...
[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
2015-01-26 10:31:36 +00:00
Alex Rønne Petersen
33e5da7a47
Revert "[runtime] Fix getting main thread's stack size with musl."
...
This reverts commit 67d84faecb .
This is not enough on its own to fix sigaltstack support with musl.
2015-01-26 07:11:51 +01:00
Alex Rønne Petersen
67d84faecb
[runtime] Fix getting main thread's stack size with musl.
...
See the code for an explanation of this mess.
2015-01-25 16:14:23 +01:00
Alexander Köplinger
cb3835ba9e
[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
...
It started failing when code from MS referencesource was imported.
I checked on MS.NET and the list of attributes is now the same on Mono
(except an additional __DynamicallyInvokableAttribute on MS.NET).
2015-01-25 15:05:16 +01:00
Alex Rønne Petersen
36589008a4
[runtime] Fix build when using musl libc.
2015-01-25 08:30:34 +01:00
Zoltan Varga
1d5f1c4760
Merge pull request #1522 from StephenMcConnel/bug-26258
...
Fix occasional rendering problem in TextBoxes
2015-01-24 22:10:10 -05:00
Zoltan Varga
2f1b464beb
[runtime] Avoid failures in Process.GetProcesses () when the number of processes is above 400. Fixes #26382 .
2015-01-24 21:14:53 -05:00
Zoltan Varga
b21fe11d6c
[runtime] Allow spaces after commas in generic instances passed in Type.GetType (). Fixes #26384 .
2015-01-24 19:22:54 -05:00
Zoltan Varga
f342649f75
[jit] Properly inflate method signatures used in CEE_NEWOBJ opcodes. Fixes #26346 .
2015-01-24 19:11:11 -05:00
Marek Safar
4d3877d23b
Fixes mobile build
2015-01-24 09:25:35 +01:00
Alex Rønne Petersen
94a922305a
[mini] Fix setting stack type for some atomic instructions.
...
Fixes some assertion failures introduced by 78141114e3 .
2015-01-24 08:47:10 +01:00
Zoltan Varga
0efa5704f4
Fix the build.
2015-01-23 20:13:05 -05:00
Alex Rønne Petersen
4d24ccadc6
[mini] Implement OP_MEMORY_BARRIER on MIPS.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
f457dee224
[mini] Fix CAS atomic ordering under LLVM.
...
AcquireRelease [0] and SequentiallyConsistent [1] are not equivalent.
[0] http://llvm.org/docs/Atomics.html#acquirerelease
[1] http://llvm.org/docs/Atomics.html#sequentiallyconsistent
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
c118dae7d3
[mini] Add atomic load/store instruction definitions for ARM64.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
5bf4ab138d
[mini] Implement atomic load/store instructions on ARM.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
52bfd89d96
[mini] Implement atomic load/store instructions on x86.
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen
c25ff177fd
[mini] Implement atomic load/store instructions on AMD64.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
df625319bb
[mini] Implement atomic load/store opcodes in the LLVM backend.
...
Requires a newer Mono LLVM fork and is only enabled on MONO_API_VERSION >= 4.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
3198e62024
[mini] Add new atomic load/store opcodes with acq/rel/seq semantics.
...
These are emitted by recognizing Interlocked and Volatile methods. They allow
us to generate more efficient instruction sequences on certain architectures
(e.g. ARM64 which has specialized load-acquire and store-release instructions).
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
78141114e3
[mini] Also match Interlocked.Exchange<T> () in mono_method_to_ir ().
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
e901b3377c
[mini] Memory barrier fixes, simplifications, and optimizations.
...
* Barrier semantics is now specified as acquire, release, and sequentially
consistent. This is in line with CIL/.NET semantics and also maps better to
LLVM's fence types.
* Use the mfence instruction for memory barriers on AMD64 as it's smaller
(and presumably also faster).
* We now emit specific barriers when using LLVM instead of always emitting
sequentially consistent barriers.
* Barriers emitted for the CIL volatile prefix instruction are now more
specific instead of always being sequentially consistent.
* Fixed emission of CEE_MONO_MEMORY_BARRIER in SGen's managed allocators. For
some reason (that I haven't had time to look into), mono_mb_emit_op ()
clobbers the barrier kind operand. This meant that in many cases we ended
up not actually emitting any barriers because the switches in the backends
didn't handle the clobbered values. mono_mb_emit_i4 () seems to work.
* Fixed handling of CEE_MONO_MEMORY_BARRIER in mono_method_to_ir (). Since it's
a custom opcode, the opcode is actually 2 bytes long. Another source of
barriers not actually being emitted.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen
2644152b06
Add an internal Interlocked.CompareExchange () icall overload needed by MS BCL.
2015-01-24 01:08:01 +01:00
Martin Baulig
3bcd0eb9de
Bump referencesource to un-break Xamarin Studio.
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=26375 .
2015-01-24 00:48:16 +01:00
João Matos
be92f03550
[runtime] Get Mono's LLVM API version from the LLVM repo when cross compiling.
...
The previous code was hardcoding Mono's LLVM API version which was less than ideal. The API has been bumped twice since without this being updated.
This depends on a recent Mono LLVM version, at least https://github.com/mono/llvm/commit/607aeaae423da73e6ddfe49af4741fa1bc5f9e78 .
2015-01-23 16:46:32 +00:00
João Matos
6d17bd5611
[mini] Include signal.h in mini.c.
...
This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd .
Error:
```
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6645:31: note: each undeclared identifier is reported only once for each function it appears in
/Users/joao/Dev/droid/mono/mono/mini/mini.c: In function 'mono_sigsegv_signal_handler':
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6704:31: error: 'SIGSEGV' undeclared (first use in this function)
mono_handle_native_sigsegv (SIGSEGV, ctx, info);
```
2015-01-23 16:41:16 +00:00
João Matos
73292633fc
[runtime] Check for signal.h when targeting Win32.
...
This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd .
2015-01-23 16:40:07 +00:00
Marek Safar
a09f7c6f7b
Revert "[System] Remove network interface operational status test."
...
This reverts commit 519582150d .
2015-01-23 13:46:49 +01:00
Marek Safar
a4a6ad39f8
[corlib] Add more tests
2015-01-23 13:46:26 +01:00
João Matos
519582150d
[System] Remove network interface operational status test.
...
This test is proving to be problematic since the status of interfaces can be different on OSs.
2015-01-23 12:38:41 +00:00
Marek Safar
b18af252e9
Fixes 579084d1f7 commit
2015-01-23 13:21:15 +01:00
Marek Safar
dc462a850b
[corlib] Increase timeout of failing test
2015-01-23 11:45:42 +01:00
Marcos Henrich
92f04b8636
[corlib] Added tests for FileStream SafeHandle.
2015-01-23 10:41:53 +00:00
Marek Safar
140d6e440c
[system] Implement Android specific domain name. Fixes #26305
2015-01-23 11:23:10 +01:00
Marek Safar
579084d1f7
[system] Fixes failing test
2015-01-23 11:08:28 +01:00
Marek Safar
772c45aaf9
Revert "[corlib] StringBuilder from reference sourcers"
...
This reverts commit ef6b35a009 .
2015-01-23 10:42:06 +01:00
Marek Safar
ef6b35a009
[corlib] StringBuilder from reference sourcers
2015-01-23 10:24:10 +01:00
Zoltan Varga
5090e3557a
[sdb] Move the checking of the various debugger attributes to one function to make it easier to add support for DebuggerStepperBoundaryAttribute.
2015-01-22 18:44:39 -05:00
Martin Baulig
335258b147
[System]: Add new internal Socket APIs.
2015-01-22 23:10:56 +01:00
Zoltan Varga
879cd1bed1
[runtime] Add a preliminary mono support mode for lldb. Currently, pretty printing some runtime types is supported.
2015-01-22 16:42:56 -05:00
Zoltan Varga
af7a963fc0
[runtime] Use the new one parameter ctor to create RuntimeWrappedException objects.
2015-01-22 16:01:49 -05:00
Marek Safar
066bbf8b21
[corlib] Remove current timezone specific tests
2015-01-22 15:55:08 -05:00
Marek Safar
f30d7e21a8
[Microsoft.Build.BuildEngine] Update failing test
2015-01-22 21:33:53 +01:00
Martin Baulig
f0abad3748
Bring Internal.cs, Logging.cs and _LoggingObject.cs.
2015-01-22 20:28:10 +01:00
Martin Baulig
c7d14ed7d8
Fix KeyContainerPermission.SetFlags().
2015-01-22 20:27:07 +01:00
Martin Baulig
5311437f06
Make TraceSource.GetSupportedAttributes() "protected internal".
2015-01-22 20:26:59 +01:00
Martin Baulig
dcfd3f23d1
The class needs to be called `FriendAccessAllowedAttribute'.
2015-01-22 20:26:52 +01:00
Mark Probst
14eda7354d
[sgen] MONO_GC_DEBUG options to not run finalizers.
2015-01-22 14:04:00 -05:00
Stephen McConnel
e62a37d332
Fix occasional rendering problem in TextBoxes
...
See https://bugzilla.xamarin.com/show_bug.cgi?id=26258 for details.
2015-01-22 12:26:42 -06:00
Zoltan Varga
a9af48a4a6
Fix the build.
2015-01-22 12:27:03 -05:00
Zoltan Varga
412f680e56
[runtime] Make RuntimeWrappedExceptions work with the new reference source version of RuntimeWrappedException.
2015-01-22 12:20:26 -05:00
Martin Baulig
20d845ca07
Merge pull request #1156 from felfert/master
...
Fixed Bug #21135 - Deadlock in WebConnectionStream
2015-01-22 17:21:24 +01:00
Marek Safar
7c3c908458
[corlib] referencesources update
2015-01-22 17:04:26 +01:00
Crisdut
7c39ab701b
Add unit test for the bug #1849
2015-01-22 15:41:59 +00:00
Crisdut
8098123ec2
Fix the bug #1849
2015-01-22 15:41:59 +00:00
Marek Safar
ea6a13d413
Remove unused files
2015-01-22 16:05:40 +01:00
Marek Safar
5352329186
[corlib] Calendars from reference sources
2015-01-22 16:05:40 +01:00
Marek Safar
346894957c
[corlib] generic collections from reference sources
2015-01-22 16:05:40 +01:00
Marek Safar
585c1278cb
Merge pull request #1520 from madrang/SafeHandleFix
...
Small fix for SafeHandle Disposing
2015-01-22 11:33:04 +01:00
Neale Ferguson
c9722940db
Add memory barrier support using BCR 14,0
2015-01-22 05:12:17 -05:00
Marc-Andre Ferland
b4776f20c7
Small fix for SafeHandle Disposing
2015-01-22 01:55:01 -05:00
Zoltan Varga
0c4cc7160a
Merge pull request #1518 from akoeplinger/remove-only-net11-ifdef
...
[bcl] Remove ONLY_1_1 defines from class libs
2015-01-21 23:08:47 -05:00
Zoltan Varga
6cf56cbb2f
[amd64] Fix r8->int conversions. Fixes #26219 .
2015-01-21 15:00:06 -05:00
Zoltan Varga
03724e8d79
[arm64] Add a test for vtypebyref parameters in gsharedvt trampolines.
2015-01-21 13:48:12 -05:00
Zoltan Varga
e478ab8364
Merge pull request #1519 from akoeplinger/remove-net35-ifdef
...
[bcl] Remove NET_3_5 defines from class libs
2015-01-21 12:53:56 -05:00
Alexander Köplinger
2a978a42f1
[bcl] Remove NET_3_5 defines from class libs
2015-01-21 17:59:27 +01:00
Alexander Köplinger
d4d7374efc
[bcl] Remove ONLY_1_1 defines from class libs
...
This is not used anymore.
2015-01-21 17:18:30 +01:00
João Matos
1e25d67aef
[runtime] Fix sigsev signal handler Win32 build.
...
This was broken by: https://github.com/mono/mono/commit/45704daf22d1cec17851ce011ee391137932c471
2015-01-21 13:06:33 +00:00
João Matos
c28e73de04
Merge pull request #1517 from akoeplinger/fix-network-test
...
[System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
2015-01-21 12:27:39 +00:00
Marek Safar
50f2b63442
[corlib] Contracts and CompilerServices from reference sources
2015-01-21 11:46:03 +01:00
Marek Safar
4fd0f05f66
[corlib] Fixes more SafeHandle failing tests
2015-01-21 11:46:03 +01:00
Marek Safar
018e826d47
Merge pull request #1502 from madrang/SafeHandle.CloseTestDispose
...
Test that closing handle will release managed resource by calling Dispose
2015-01-21 09:11:28 +01:00
Marek Safar
912dda4613
Merge pull request #1504 from madrang/SafeHandle.SetInvalidRelease
...
Allows refs to be released after the handle is set as invalid.
2015-01-21 09:11:12 +01:00
Rodrigo Kumpera
ebfa2d2b40
[runtime] Remove debug spew.
2015-01-20 15:31:21 -05:00
Zoltan Varga
76558bd382
Merge pull request #1516 from DavidKarlas/getThreadsHang
...
[sdb] Fixed GetThreads deadlock if thread was started or stopped during GetThread
2015-01-20 15:01:20 -05:00
Rodrigo Kumpera
75a4c28352
[runtime] Introduce mono_ldtoken_check and replace usage of the unchecked one with it.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
6a348cfc32
[runtime] Weave MonoError into method_from_method_def_or_ref.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
7650568113
[runtime] mono_type_create_from_typespec is no longer used by the runtime, it doesn't need to create a loader error.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
4bb01e4a2d
[runtime] Remove last usage of mono_class_get. Moving it and its _full variant to the bad to call set.
2015-01-20 12:50:50 -05:00
Rodrigo Kumpera
53424f1fae
[runtime] Weave MonoError in mono_metadata_interfaces_from_typedef_full.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
b2c5eaba5d
[runtime] Weave MonoError into more of the loader code.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
cd4a89e234
[runtime] Add more error checking.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
e9fc37d44e
[runtime] Introduce the usage of mono_class_get_checked in most of the runtime.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
027609046e
[runtime] Explicitly call mono_class_setup_methods to fail types with bad methods.
2015-01-20 12:50:49 -05:00
Rodrigo Kumpera
047116c246
[runtime] Introduce mono_get_method_checked.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
5995bb0ccb
[runtime] switch to checked variant of mono_get_method_constrained.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
b8775906b1
[runtime] Introduce mono_get_method_constrained_checked.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
a40ade5fef
[runtime] mono_get_method_constrained_with_method now uses MonoError.
2015-01-20 12:50:48 -05:00
Rodrigo Kumpera
6d09e35a0f
[runtime] Introduce MonoError into get_method_constrained.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
396d0623ad
[runtime] Fix a loader error leakage.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
8e18aca8cf
[runtime] Introduce MonoError into mono_get_method_from_token.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
20526d840d
[runtime] Move the runtime to use the checked variants of mono_class_inflate_generic_method.
2015-01-20 12:50:47 -05:00
Rodrigo Kumpera
0a159bb035
[runtime] Move method_from_methodspec to use MonoError.
2015-01-20 12:50:46 -05:00
Rodrigo Kumpera
a0056ed85b
[runtime] Make method_from_memberref use MonoError.
2015-01-20 12:50:46 -05:00
Marek Safar
d13b92edb1
[System] Extract NetworkInterface factory and implement LoopbackInterfaceIndex for more platforms
2015-01-20 15:04:32 +01:00
Marek Safar
2c472f0670
Merge pull request #1513 from akoeplinger/remove-net20-ifdefs
...
[bcl] Remove more NET_2_0 checks from class libs
2015-01-20 13:29:40 +01:00
Marek Safar
52cace8bb5
[corlib] Update System.Numeric mobile public key
2015-01-20 13:25:55 +01:00
Marek Safar
191cde43ad
[System.Numerics] Update to latest mscorlib
2015-01-20 13:09:43 +01:00
Marek Safar
429fd07df8
[corlib] Primitive types from reference sources
2015-01-20 12:23:29 +01:00
David Karlaš
948689360b
[sdb] Fixed GetThreads deadlock if thread was started or stopped during GetThreads call.
...
Regression introduced in 52b168e336
2015-01-20 11:29:44 +01:00
Zoltan Varga
7ef5dfed95
[sgen] Disable PREFETCH_CARDS when using xcode4 as it causes gcc to crash.
2015-01-19 17:06:43 -05:00
Marek Safar
c1a50591da
[corlib] Fixed failing covert test
2015-01-19 22:38:49 +01:00
Marek Safar
cde677dbaf
[corlib] Add more convert checks
2015-01-19 19:50:36 +01:00
Mark Probst
abc0bc6fbe
[sgen] Fix clearing ephemerons and weak links on domain unload.
...
At some point we zeroed all the unloaded domain's objects first, and then we cleared
weak links, ephemerons, etc. Because the objects were zeroes, we only had to
check that the vtable was null. Now we do it the other way around: clear weak links,
ephemerons, ..., and then zero objects. Obviously we now need to check for the
object's domain, because their vtables will not be null.
2015-01-19 09:57:23 -08:00
Marek Safar
6f802b490c
[corlib] Fixes ToDateTime for primitive types
2015-01-19 16:23:03 +01:00
Marek Safar
519ddb9895
[corlib] Char from reference sourcers
2015-01-19 16:23:03 +01:00
João Matos
435f968102
[runtime] Workaround missing net/route.h in iOS SDK.
2015-01-19 15:07:49 +00:00
Marek Safar
c5e4cfc9fb
[corlib] More system types from reference sources
2015-01-19 14:07:53 +01:00
Marek Safar
9aefc2627b
[corlib] Type's GetInterfaceMap has no implementation
2015-01-19 14:07:53 +01:00
Marek Safar
8c41fbe08f
[runtime] Remove Convert icalls
2015-01-19 14:07:53 +01:00
João Matos
396d9dbeb1
Merge pull request #1404 from woodsb02/mono-route
...
Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
2015-01-19 12:53:56 +00:00
Marek Safar
66a679268c
[corlib] System.Convert from reference sources
2015-01-19 11:14:04 +01:00
Alexander Köplinger
ff71a0fa40
[System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
...
The status of loopback interfaces is always 'Unknown' on Linux.
This fails the test so we need to skip them.
2015-01-19 10:30:29 +01:00
Ben Woods
1e0c63e953
Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
...
Add #ifdef to ignore code in mono/metadata/mono-route.c if OS=linux
Also remove mono-route.c from msvc/libmonoruntime.vcxproj (Windows)
Add #ifdef to ensure mono/metadata/mono-route.h code is not included
on Linux
Change to using #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
Use sizeof(addr) for maximum length of IP address string, instead of the hard-coded 16.
Should the size of addr ever change it will keep us from disaster in case if shrinking the array length.
Also, do not ignore snprintf return value - check for truncated output and act accordingly if it happens.
Add Tests for System.Net.NetworkInformation/IPInterfacePropertiesTest.cs and System.Net.NetworkInformation/NetworkInterfaceTest.cs
Remove accidental Copyright
add a space before the opening parenthesis, as shown in the coding guidelines.
Indent TestFixture to align with coding style of newer Test classes
Use G_N_ELEMENTS(mib) instead of sizeof(mib) / sizeof(mib[0])
2015-01-19 07:05:32 +08:00
Zoltan Varga
a3f3abf8fd
[arm64] Add a test for r4 hfa parameter passing in gsharedvt trampolines.
2015-01-18 11:32:22 -05:00
Zoltan Varga
12f36fd126
[arm64] Add a test for hfa parameter passing in gsharedvt out trampolines ( #26085 ).
2015-01-17 20:29:05 -05:00
Zoltan Varga
aeb7813213
[runtime] Fix aot-tests.cs.
2015-01-17 20:13:35 -05:00
Zoltan Varga
25246e4c3b
[arm64] Add tests for dyn calls with floats.
2015-01-17 15:55:20 -05:00
Zoltan Varga
8cd6feb66b
[arm64] Increase the size of the dyn_call instruction, and the buffers used during dyn calls.
2015-01-17 15:55:19 -05:00
David Karlaš
eb29fb3fa4
[sdb] ILInterpreter handle Br_S same as Br
2015-01-17 17:02:30 +01:00
David Karlaš
6953d781cd
[sdb] Fix deadlock in case of runtime disconnect while fetching frames(Bug 24434)
2015-01-17 16:24:30 +01:00
Alexander Köplinger
746650d1b9
[bcl] Remove more NET_2_0 checks from class libs
2015-01-17 05:45:39 +01:00
Miguel de Icaza
7d1cd56c5d
[System] ComponentModel, make it build in the MOBILE profile
2015-01-16 20:20:26 -05:00
Zoltan Varga
43a9f2af11
[bcl] Fix System.Threading.Tasks.Dataflow tests.
2015-01-16 19:49:00 -05:00
Mark Probst
9daffb747a
[sgen] Fix a concurrent collector bug.
...
Pinning is done in the worker thread, but reset in the main thread.
The main thread must wait for the worker jobs to finish until it can
reset pinning. We didn't do this before.
2015-01-16 16:00:11 -08:00
Zoltan Varga
d929a5d9ae
Merge pull request #1511 from akoeplinger/windows
...
[utils] Extract Windows-specific networking fallback into networking-windows.c
2015-01-16 17:26:34 -05:00
Zoltan Varga
ba6d6d74cd
[bcl] Fix the serialization of string arrays to IEnumerable<string> in the Json serializer. Fixes #25808 .
2015-01-16 14:11:51 -05:00
Marek Safar
014e3493b1
[System.Threading.Tasks.Dataflow] update atomicboolen location
2015-01-16 19:20:48 +01:00
Marek Safar
a844019685
[system.core] TaskExtensions from reference source
2015-01-16 19:01:40 +01:00
Marek Safar
8fa4f20578
Another build fix
2015-01-16 18:33:09 +01:00
Marek Safar
dc95e23048
Fixes build
2015-01-16 18:23:34 +01:00
Rodrigo Kumpera
45704daf22
[jit] Adjust the sigsegv handle to accomodate targets without siginfo.
2015-01-16 12:16:36 -05:00
Rodrigo Kumpera
adca49cdd2
[jit] First pass of portability fixes for the JIT.
2015-01-16 12:16:36 -05:00
Marek Safar
5a6e9cc4eb
[corlib] USe more types from System.Threading reference sources
2015-01-16 18:04:05 +01:00
Marek Safar
de222aa4be
[System.Core] System.Collections.Generic from reference sources
2015-01-16 16:55:36 +01:00
Marek Safar
2c439a5b84
[System.ServiceModel.Web] Update failing test
2015-01-16 16:32:03 +01:00
Alexander Köplinger
e1010a2e35
[utils] Extract Windows-specific networking fallback into networking-windows.c
2015-01-16 16:23:48 +01:00
Marek Safar
061d7f3fb1
[system.xml] Fix broken ClassMap logic which relied on order of hashtable elements
2015-01-16 16:21:22 +01:00
Marek Safar
b8d0752d82
[system.web] Update SqlDataSource test not to rely on idictionary order
2015-01-16 09:58:00 +01:00
Marek Safar
49721c35af
[WindowsBase] Fix incorrect test
2015-01-16 09:11:28 +01:00
Zoltan Varga
9661a1fba0
[runtime] Fix the build.
2015-01-15 19:17:19 -05:00
Zoltan Varga
3a4c4766fa
[sdb] Fix single stepping after a SetIP operation. Fixes #26033 .
2015-01-15 19:13:27 -05:00
Vlad Brezae
098121114a
Don't truncate the file to the page aligned size.
...
The second open attempt at opening would fail due to the capacity being smaller than the file size.
2015-01-15 15:27:50 -08:00
Miguel de Icaza
3619fe9c4c
[Mono.Posix] Add overloads to pass ints and pointers
2015-01-15 18:22:58 -05:00
Zoltan Varga
aae77596bf
[sdb] Rename 'restore_ctx' to 'restore_state' and change its type to MonoThreadUnwindState.
2015-01-15 17:33:10 -05:00
Marek Safar
76ad4fb9fe
[corlib] fixing TPL integration
2015-01-15 23:24:49 +01:00
Marek Safar
30ee7c53a4
[system] update failing tests
2015-01-15 23:13:36 +01:00
Ludovic Henry
9ac10ff321
[TPL] Replace implementation by Microsoft reference sources
2015-01-15 16:05:51 -05:00
Rodrigo Kumpera
18751d4475
Merge pull request #1458 from BrzVlad/feature-fat-cas
...
Poll-free fat locks
2015-01-15 14:54:12 -06:00
Zoltan Varga
5084172643
[runtime] Remap io-layer symbols using the prefix wapi_. Fixes #25821 .
2015-01-15 15:07:56 -05:00
Zoltan Varga
b27d024877
Fix a warning.
2015-01-15 14:42:01 -05:00
Martin Baulig
e129937283
[Mono.Security]: More exception debug foo.
...
Note: This patch may cause some ugly exception messages. This is intended to help
us debug and hopefully fix bug #19334 .
2015-01-15 19:08:46 +01:00
Martin Baulig
8670be04bf
[Mono.Security]: Test suite - we may not throw IOException as well here.
...
In fact, we should not ever throw ObjectDisposedException, but provide a
meaningful IOException. Still working on it.
2015-01-15 17:53:57 +01:00
Martin Baulig
60bd02c236
[Mono.Security]: Fix TLS Alert level." This breaks the System test suite.
...
Prevent further abuse (calling it before the fields have been assigned to)
by making the helper function static.
2015-01-15 17:53:57 +01:00
João Matos
d065c31a24
[msvc] Fixed the build.
2015-01-15 16:21:48 +00:00
Rodrigo Kumpera
e50db21610
Revert "[Mono.Security]: Improve error reporting when sending TLS Alerts fail."
...
This reverts commit 95eff24950 .
2015-01-15 11:04:32 -05:00
Rodrigo Kumpera
9b04cd4d29
Revert "[Mono.Security]: Fix TLS Alert level." This breaks the System test suite.
...
This reverts commit a036a6bf18 .
2015-01-15 10:57:58 -05:00
Zoltan Varga
34f074e4fa
Merge pull request #1507 from DavidKarlas/mdbRead0Line
...
[sdb] Fixed .mdb parsing when line equals 0
2015-01-15 10:39:55 -05:00
Marek Safar
46bdea893b
[corlib] System.Collections from reference sources
2015-01-15 16:16:42 +01:00
Martin Baulig
a036a6bf18
[Mono.Security]: Fix TLS Alert level.
2015-01-15 13:23:10 +01:00
Martin Baulig
95eff24950
[Mono.Security]: Improve error reporting when sending TLS Alerts fail.
2015-01-15 11:55:13 +01:00
Lluis Sanchez
639bf66171
Generate proper Link metadata for resources in imported projects
...
When importing a project that contains embedded resources, the id
of those resources must be generated using the path relative
to the project file that includes them, not relative to the
main project file. To fix this problem, we now generate a
Link metadata property for those resources that has the correct
relative path, and later this is used to generate the correct
id for the resource. We also now store a new metadata value
for all items (DefiningProjectFullPath) which contains the
path to the project file that defines the element. This is
used to check if an item was defined in an imported file,
in which case the Link assignment may need to be made.
This fixes bug BXC 20966.
2015-01-15 11:07:49 +01:00
Marek Safar
02782f4a1a
[system] System.Timer from reference sources
2015-01-15 10:05:50 +01:00
Marek Safar
bc6ea9d725
Merge pull request #1505 from esdrubal/tzifloatingrule
...
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
2015-01-15 09:19:02 +01:00
David Karlaš
03082714c0
[sdb] Fixed .mdb parsing when line equals 0
2015-01-15 09:18:16 +01:00
Zoltan Varga
31ca4c480c
Merge pull request #1506 from akoeplinger/fix-paste-test
...
[MWF] Fix unicode string handling from clipboard paste in X11
2015-01-14 23:57:05 -05:00
Zoltan Varga
18561ff041
[sdb] Don't continue single stepping when reaching the same line if locations without debug info were reached during the single step.
2015-01-14 19:57:49 -05:00
Rodrigo Kumpera
e92b71af43
Sorry for breaking linux.
2015-01-14 19:26:13 -05:00
Rodrigo Kumpera
6f6e8586eb
[runtime] I can still find unguarded used of signal.h, amazing.
2015-01-14 19:21:36 -05:00
Zoltan Varga
025f351123
[sdb] Fix the detection of whenever an image has debug info or not.
2015-01-14 19:13:46 -05:00
Mark Probst
ae3b35aa23
Merge pull request #1466 from schani/stage-unified-card-table-scanning
...
Unified card table scanning
2015-01-14 14:56:12 -08:00
Zoltan Varga
4304c55302
Fix the build.
2015-01-14 17:48:51 -05:00
Marek Safar
f9917c3110
[corlib] Hashtable constructor with equality comparer needs to use it during initialization as well
2015-01-14 23:25:32 +01:00
Zoltan Varga
ea0159a4ac
[sdb] Fix a few places missed in 73d14781d2.
2015-01-14 16:56:57 -05:00
Marek Safar
5c3e91d094
[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
2015-01-14 22:31:42 +01:00
Marek Safar
b15de26512
Fixes build
2015-01-14 22:31:42 +01:00
Alexander Köplinger
9c05594fc5
[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.
2015-01-14 22:31:30 +01:00
Zoltan Varga
73d14781d2
[sdb] Emit debug logs using g_print () on android, so it shows up in adb logcat output.
2015-01-14 16:29:54 -05:00
Marek Safar
053e618102
[system.net.http] Drop WebClient dependency
2015-01-14 21:41:49 +01:00
Marek Safar
a90491c257
[system] System.Collections.ObjectModel from reference sources
2015-01-14 21:41:48 +01:00
Zoltan Varga
d9341960de
[pdb2mdb] Fix the decoding of nested scopes.
2015-01-14 13:44:44 -05:00
Marek Safar
941ac41ac0
[system] System.Collections.Specialized from reference sources
2015-01-14 18:42:12 +01:00
Marek Safar
eb050de08a
[system] Add UnicodeDecodingConformance, UnicodeEncodingConformance
2015-01-14 18:18:07 +01:00
Marek Safar
4403146ada
[system] Switch to reference sources WebClient
2015-01-14 17:37:12 +01:00
Marek Safar
af11f84af0
[system] Cookies implementation from reference sources
2015-01-14 16:41:27 +01:00
João Matos
8811a8704f
[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.
2015-01-14 15:28:11 +00:00
Marcos Henrich
e0278f8f69
[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.
2015-01-14 15:20:27 +00:00
Marcos Henrich
e4676f8a12
[System.Core] Added tests to TimeZoneInfoTest. Covers #26008 .
2015-01-14 15:20:16 +00:00
Alex Rønne Petersen
9c660cf0b9
Fix mono_handle_native_sigsegv () signature in the cross compiler case.
2015-01-14 13:52:14 +01:00
Zoltan Varga
1f32c791d4
Fix a deadlock introduced by 3f10c46468.
2015-01-13 21:52:31 -05:00
Zoltan Varga
a9e3b26344
Merge pull request #1500 from criteo-forks/criteo
...
Fix SpinLock.TryEnter
2015-01-13 20:31:07 -05:00
Vlad Brezae
3f16384da1
[amd64] Add monitor enter v4 fastpath.
2015-01-13 17:07:18 -08:00
Zoltan Varga
3f10c46468
[bcl] Break waits in KeventWatcher by closing the command fd instead of polling.
2015-01-13 18:58:02 -05:00
Zoltan Varga
3cf4d21f8a
[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.
2015-01-13 18:56:14 -05:00
Vlad Brezae
5b0fbd4c9c
[x86] Add monitor enter v4 fastpath.
2015-01-13 14:26:33 -08:00
Zoltan Varga
c1b4366932
[bcl] Remove NET_4_5 defines from class libs.
2015-01-13 16:34:23 -05:00
Zoltan Varga
2375c74a64
[bcl] Remove NET_4_5 defines from tools.
2015-01-13 16:34:11 -05:00
Zoltan Varga
bfb9d6d5d9
[runtime] Move the monograph tool to tools/.
2015-01-13 16:25:19 -05:00
Zoltan Varga
032f313d5f
[bcl] Remove NET_4_0 defines from class libs.
2015-01-13 16:06:31 -05:00
Zoltan Varga
bc8041cbe5
[bcl] Remove NET_4_0 defines from tools.
2015-01-13 15:59:48 -05:00
Zoltan Varga
0985d4aa4b
[bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>.
2015-01-13 15:29:38 -05:00
Zoltan Varga
f54652de26
[bcl] Remove NET_2_0 defines from tools.
2015-01-13 15:13:27 -05:00
João Matos
7299191d96
Revert "[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build."
...
This reverts commit 5510857e6b .
2015-01-13 17:53:18 +00:00
Marcos Henrich
80cd1c8a0f
[build] Updated csproj files.
2015-01-13 17:47:48 +00:00
Marcos Henrich
d19f5dc228
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.
2015-01-13 17:47:48 +00:00
Marcos Henrich
5b851f03a2
[System.ComponentModel.Composition] Updated Makefile thisdir.
...
Old thisdir was causing problems while doing make update-csproj on top dir.
2015-01-13 17:47:48 +00:00
João Matos
5510857e6b
[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build.
2015-01-13 17:25:15 +00:00
Marc-Andre Ferland
80f72a9dd9
Allows refs to be released after the handle is set as invalid.
2015-01-13 12:06:49 -05:00
Marek Safar
5a781d6d56
[system.data] refresh mobile sources
2015-01-13 17:02:08 +01:00
Marek Safar
d0d5cd45de
[system.data] Update for DataSetExtensions as GetTableMappingBySchemaAction is now more restrictive.
2015-01-13 16:11:07 +01:00
Marek Safar
04dc09cbf8
[corlib] Close underlying synchronized stream. Fixes #25498
2015-01-13 14:57:55 +01:00
Marek Safar
7c2bf5f2a1
[system.net.http] Split reading headers and content in GetStreamAsync. Fixes #23966
2015-01-13 12:28:06 +01:00
Marek Safar
4736f957a6
[corlib] Add range checks to CharUnicodeInfo. Fixes #25895
2015-01-13 11:19:21 +01:00
Marek Safar
9ceced044e
[system.data] update mobile profile
2015-01-13 11:02:54 +01:00
Marek Safar
0042e68c2e
[system.data] Replace connection string builder from reference sources
2015-01-13 10:59:21 +01:00
Alex Rønne Petersen
20f9db583e
Fix the build on sigaltstack platforms.
2015-01-13 10:16:44 +01:00
Alex Rønne Petersen
b1099af6c7
Fix the Android build; use HAVE_SYS_SYSCTL_H instead of HAVE_SYS_IOCTL_H.
2015-01-13 09:43:58 +01:00
Alex Rønne Petersen
15312e93ab
Add an extension point for backtraces on native SIGSEGVs.
2015-01-13 09:20:06 +01:00
Alex Rønne Petersen
d1c6023b32
Propagate siginfo to mono_handle_native_sigsegv ().
...
Some platforms (e.g. Android) need this to get a backtrace in a signal handler.
2015-01-13 09:20:06 +01:00
Marek Safar
cb452cfff7
[system.data] Replace System.Data.SqlTypes from reference sources except SqlXml which depends on internal system.xml factory method
2015-01-13 09:19:11 +01:00
Marek Safar
696c08126c
[system.data] Switch to DbEnumerator from reference sources. Fixes #24935
2015-01-13 09:19:11 +01:00
Guillaume Turri
3d17efc13c
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.
2015-01-13 08:47:09 +01:00
Miguel de Icaza
9d08d2b0d9
[Regex] Disable IL code generation until we figure out 25671
2015-01-12 23:23:23 -05:00
Miguel de Icaza
a4c7885f7d
[Mono.Posix] Add support for OSX F_NOCACHE
2015-01-12 23:13:58 -05:00
Marc-Andre Ferland
f7d2cb47c0
Test that closing handle will release managed resource by calling Dispose
2015-01-12 21:37:09 -05:00
Zoltan Varga
c38c9c6f25
[aot] Fix llvm support.
2015-01-12 19:38:01 -05:00
Zoltan Varga
037f47d973
[runtime] Fix the android build.
2015-01-12 18:08:39 -05:00
Zoltan Varga
ca327b1162
[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.
2015-01-12 17:23:41 -05:00
Zoltan Varga
02696b4d21
Fix the build.
2015-01-12 17:20:01 -05:00
Zoltan Varga
3ccc4e92b2
[runtime] Remove an unused define.
2015-01-12 17:08:21 -05:00
Zoltan Varga
57f99de33d
[bcl] Fix a race in a System.Threading.Tasks test.
2015-01-12 17:02:39 -05:00
Zoltan Varga
05cd4225b2
[aot] Implement support for separate llvm object files when using static linking. Enable it on all platforms.
2015-01-12 16:45:07 -05:00
Zoltan Varga
472afb9fd7
[arm] Fix the decoding of backward branches in mono_arch_get_call_target ().
2015-01-12 16:45:07 -05:00
Marek Safar
bb9d05a5f5
[system] Fixes barrier file name
2015-01-12 20:07:33 +01:00
Zoltan Varga
1e5ddf741c
[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.
2015-01-12 13:41:54 -05:00
Marek Safar
e9b135baca
[system] Replace Barrier implementation from reference sources. Fixes #25928
2015-01-12 17:18:42 +01:00
Marek Safar
5728c1a3dd
[system.net.http] ProductInfoHeader collection parsing/formatting uses special separators. Fixes #19881
2015-01-12 16:47:04 +01:00
Radek Doulik
581ac48a56
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
2015-01-12 15:28:15 +01:00
Marcos Henrich
2dabfdf453
[System.Runtime.Caching] Removed unused files.
...
referencesource files are used instead of the removed files.
2015-01-12 13:08:20 +00:00
Marek Safar
9652f056bc
[corlib] SafeHandle dispose can be called multiple times after closing. Fixes #25850
2015-01-12 14:05:38 +01:00
Marcos Henrich
bcfdc181eb
[runtime] update_liveness2 replaced wrong binary or with or.
2015-01-12 11:32:36 +00:00
Marcos Henrich
602a62377d
[runtime] update_liveness2 now handles OP_IL_SEQ_POINT.
2015-01-12 11:05:15 +00:00
Marek Safar
28f16c8991
[corlib] Fixes SafeHandle invalidHandleValue handling
2015-01-12 11:52:31 +01:00
Marcos Henrich
f0834d5407
Merge pull request #1455 from esdrubal/caching
...
[System.Runtime.Caching] .NET integration.
2015-01-12 08:27:48 +00:00
Marek Safar
7a7d04b618
Merge pull request #1499 from madrang/SafeHandleTesting
...
SafeHandle SetAsInvalid Testing
2015-01-12 00:13:40 +01:00
Marc-Andre Ferland
4288f7d687
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
2015-01-11 18:10:06 -05:00
Zoltan Varga
b2e5b02817
runtime] Really fix a race condition in mono_remoting_marshal_init ().
2015-01-11 12:07:16 -05:00
Zoltan Varga
1fa2463bc3
[aot] Enable direct llvm object file emission on x86 as well.
2015-01-11 10:31:29 -05:00
Zoltan Varga
e3c000b256
[aot] Avoid duplicate symbol errors if two methods have the same cfg->method.
2015-01-11 10:26:41 -05:00
Marcos Henrich
b9e97c9957
test_op_il_seq_point.sh now properly tests AOT compilation.
...
Added missing option --aot
2015-01-11 14:53:13 +00:00
Marcos Henrich
4db0888798
test_op_il_seq_point.sh no longer prints empty lines.
2015-01-11 14:53:13 +00:00
Marcos Henrich
984d3df9b1
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.
2015-01-11 14:53:13 +00:00
Zoltan Varga
f663ba7ba7
[aot] Emit LLVM object files directly from llc on amd64.
2015-01-11 09:49:21 -05:00
Marcos Henrich
454d96dea6
test_op_il_seq_point.sh now prints whole diff.
2015-01-11 10:08:30 +00:00
Zoltan Varga
20113c5ec7
Fix warnings.
2015-01-10 23:04:05 -05:00
Zoltan Varga
d1beab3cd8
Fix the build.
2015-01-10 22:55:13 -05:00
Zoltan Varga
f717d75b69
Merge pull request #1498 from akoeplinger/fix-windows
...
Fix Windows build
2015-01-10 22:46:39 -05:00
Alexander Köplinger
6213c699d2
Fix Windows build
...
Some autoconf checks were missing when running on Windows.
Added stub for mono_get_local_interfaces back that was removed in b92e560d3f
for systems like Windows that have neither HAVE_SIOCGIFCONF nor HAVE_GETIFADDRS.
2015-01-10 22:09:18 +01:00
Marek Safar
9f9d9d25b3
[mcs] Auto-implemented properties must override all accessors of the overridden property
2015-01-10 18:51:01 +01:00
Marek Safar
aa5f851bec
[mcs] Contructors cannot be extern and have a constructor initializer
2015-01-10 18:51:01 +01:00
Marcos Henrich
55c0773505
test_op_il_seq_point.sh ignore diff unnecessary data.
2015-01-10 16:51:30 +00:00
Zoltan Varga
f6b3eb0e80
[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.
2015-01-10 11:24:42 -05:00
Zoltan Varga
9130a8641e
Add missing files to the windows build.
2015-01-10 10:07:41 -05:00
Zoltan Varga
edbde3b6be
Fix the windows build.
2015-01-10 08:18:25 -05:00
Marcos Henrich
3bcef7ef86
[System.Runtime.Caching] Updated MemoryCacheTest.
...
When config PhysicalMemoryLimitPercentage is not set or set to zero MemoryCache.PhysicalMemoryLimit value will depend on the total physical memory available.
2015-01-10 11:30:01 +00:00
Marcos Henrich
b78211356f
[System.Runtime.Caching] Improved CacheUsage sorting.
...
Now even if multiple MemoryCacheEntry are added to CacheUsage with the same date time CacheEntryCollection is able to sort them for removal in the same order.
2015-01-10 11:14:24 +00:00
Rodrigo Kumpera
6202a690ad
[utils][runtime] Another rounds of header cleanup.
2015-01-09 21:06:39 -05:00
Rodrigo Kumpera
48f0075b9d
[utils] Remove useless include.
2015-01-09 20:10:17 -05:00
Rodrigo Kumpera
e095e8b011
[metadata] Fix the build.
2015-01-09 20:09:18 -05:00
Rodrigo Kumpera
be917fb5ef
[metadata] Rename security.c to mono-security.c to avoid conflicts with some weird linkers.
2015-01-09 20:03:55 -05:00
Rodrigo Kumpera
7090ce602b
[io-layer] Fix another header missing a guard.
2015-01-09 19:46:51 -05:00
Rodrigo Kumpera
1f83d515cf
[metadata] Use new networking abtraction to fix targets without inet_ntop
2015-01-09 19:36:45 -05:00
Rodrigo Kumpera
4b98deb7c9
[utils] Add API to stringify a network address.
2015-01-09 19:36:45 -05:00
Zoltan Varga
92ca06aa7d
[jit] Add a MONO_PATCH_INFO_LDSTR_LIT patch type to handle strings which do not come from metadata, i.e. they are used in wrappers. Fixes #25891 .
2015-01-09 17:30:27 -05:00
Marek Safar
f52380fc7c
[mcs] Add string interpolation conversions
2015-01-09 23:27:18 +01:00
Rodrigo Kumpera
7b84b28673
[io-layer] Fix linux build.
2015-01-09 15:13:10 -05:00
Zoltan Varga
86a65282f6
Merge pull request #1497 from esdrubal/sq
...
Tests and fixes for OP_IL_SEQ_POINT
2015-01-09 13:37:58 -05:00
Marcos Henrich
5caa7a1491
[System.Runtime.Caching] MemoryCacheTest.Trim now checks LRU.
...
Entries are now removed in the least recently used order.
MemoryCacheTest.Trim was updated to check that entries are removed in LRU order.
2015-01-09 15:36:57 +00:00
Marcos Henrich
70d30f9de1
[System.Runtime.Caching] Updated MemoryCacheTest.TestCacheSliding.
...
Changed sliding expiration timeout from 1 second to 2 seconds.
2015-01-09 15:36:57 +00:00
Marcos Henrich
861b335181
[System.Runtime.Caching] Updated tests default PhysicalMemoryLimit.
...
MemoryCache.PhysicalMemoryLimit default value is now 99 instead of 98.
2015-01-09 15:36:57 +00:00
Marcos Henrich
80427367c2
[System.Runtime.Caching] .sources now uses referecensource files.
2015-01-09 15:36:57 +00:00
Marcos Henrich
88262cfa6e
[System.Runtime.Caching] Implemented referencesource missing classes.
...
Implemented classes UsageEntryRef, CacheUsage, ExpiresEntryRef and CacheExpires.
2015-01-09 15:36:56 +00:00
Marcos Henrich
bcf7e6e797
[System.Runtime.Caching] Copied SRef.cs from .NET.
...
.NET was using this to retrieve the size of an object graph, by using special logic on its GC.
This version of SRef is not doing that, because Mono does not provide that kind of computation.
As the changes that the GC would require to support this are not trivial, SRef returns a wrong size for now.
Known problems:
- CacheMemoryMonitor does not trim the cache when it reaches its memory size limit.
- IMemoryCacheManager.UpdateCacheSize is called with incorrect size.
2015-01-09 15:36:56 +00:00
Marcos Henrich
04285d5ad2
[System.Runtime.Caching] Copied R.Designer.cs from .NET
...
We will be using this version of R.Designer.cs with hard coded strings until Mono has access to .NET resources.
2015-01-09 15:36:56 +00:00
Marcos Henrich
b5d0ffe7dd
Added performance counter "Available Physical Memory".
...
Performance counter "Available Physical Memory" return the current
amount of ram that is not in use.
This was added to be used by System.Runtime.Caching .NET integration
that relies on the available system memory to resize the cache.
2015-01-09 15:36:56 +00:00
Etienne CHAMPETIER
81057618ac
System.Xml.Serialization: fix xml serializers generation for Web Services
...
(add a reference to System.Web.Services)
Without this patch we get the following exception after multiple call
to a soap web services:
Error while compiling generated serializer
/tmp/24ee1170/4996ddb2.cs(2519,27) : warning CS1522: Empty switch block
/tmp/24ee1170/4996ddb2.cs(969,29) : error CS0012: The type `System.Web.Services.Protocols.SoapHeader' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Signed-off-by: Frederic Mestayer <[email protected] >
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2015-01-09 15:02:10 +01:00
Alexander Köplinger
1db6835638
[utils] Remove duplicate socklen_t typedef from Windows build
...
This is already defined in ws2tcpip.h
2015-01-09 00:42:48 +01:00
Alexander Köplinger
d03e64a2ee
Merge pull request #1433 from akoeplinger/system.numerics-port
...
[System.Numerics] Ported code from MS referencesource
2015-01-09 00:34:31 +01:00
Zoltan Varga
2617698743
[aot] Enable emission of LLVM code into a separate file on amd64 in full aot mode. This requires emitting got accesses using normal assembly instead of emit_symbol_diff (), since clang cannot handle <sym> - . expressions if <sym> is an extern symbol.
2015-01-08 17:59:11 -05:00
Rodrigo Kumpera
2ce793efb6
[io-layer] Header usage grooming. Remove some unused headers and add config.h guards to others.
2015-01-08 17:46:54 -05:00
Miguel de Icaza
e397f7097a
Merge pull request #1495 from akoeplinger/fix-cancelrequestviaproxy
...
[System.Net.Http] Fix CancelRequestViaProxy() test that intermittently fails on Jenkins
2015-01-08 17:09:13 -05:00
Rodrigo Kumpera
41c1a773f9
[gc] Fix gc bitmap for array of pointers. They don't contain references
2015-01-08 15:37:18 -05:00
Rodrigo Kumpera
047b15f4e6
[utils] Fix linux compilation.
2015-01-08 15:18:23 -05:00
Rodrigo Kumpera
0959de07bf
[utils] Apparently ws2ipdef.h should not be included directly. Using ws2tcpip.h which is the recommended header.
2015-01-08 15:18:23 -05:00
Marek Safar
f776513488
[mcs] Add string interpolation grammar
2015-01-08 20:55:49 +01:00
Rodrigo Kumpera
c5d8151c22
[utils] Another round of windows fixing.
2015-01-08 12:33:48 -05:00
Rodrigo Kumpera
ab72a3d6ba
[utils] More portability cleanups.
2015-01-08 12:33:48 -05:00
Rodrigo Kumpera
2df9fc3e8c
[utils] Don't enable usage of sigaction unless the function is available.
2015-01-08 12:33:47 -05:00
Zoltan Varga
281b4a4abf
[runtime] Fix a race condition in mono_remoting_marshal_init ().
2015-01-08 12:15:04 -05:00
Rodrigo Kumpera
800a117da9
[utils] Don't special case android or FreeBSD when trying ucontext.h
2015-01-08 11:34:52 -05:00
Rodrigo Kumpera
373e055709
[utils] Small header sanitization. networking.h now include config.h
2015-01-08 11:34:03 -05:00
Rodrigo Kumpera
dd07fe7aaf
[utils] Another try to fix the windows build.
2015-01-08 10:57:56 -05:00
Alexander Köplinger
ab77341c6f
Only build the master branch on AppVeyor
2015-01-08 16:50:47 +01:00
Marcos Henrich
4629d64abd
[runtime] Makefile check now calls check-seq-points
...
check-seq-points now also checks AOT
2015-01-08 15:28:21 +00:00
Marcos Henrich
46a65b39bb
[runtime] mono_decompose_long_opts now handles OP_IL_SEQ_POINT.
2015-01-08 14:12:42 +00:00
Marcos Henrich
e5e97ddf35
test_op_il_seq_point.sh now checks sizes using diff.
...
Replaced sdiff with diff because sdiff cuts long line and we need to parse the code length from its output.
2015-01-08 14:01:51 +00:00
Marcos Henrich
2f5e9048a1
test_op_il_seq_point.sh no longer compares native code with AOT.
...
AOT compilation is also including non deterministic data into the generated native code.
2015-01-08 13:56:43 +00:00
Zoltan Varga
16b2539bab
[runtime] Another windows build fix.
2015-01-08 07:29:56 -05:00
Zoltan Varga
2368176d0f
[runtime] Add a header check for arpa/inet.h.
2015-01-08 06:16:42 -05:00
Zoltan Varga
62b4e3a314
[cominterop] Fix a crash by passing the proper value to mono_marshal_free_ccw (). Fixes #24638 .
2015-01-08 05:09:11 -05:00
Zoltan Varga
a568b19c13
[cominterop] Avoid crashes when the first item of a list is deleted and the list head was stored in a hash table. Fixes #24720 .
2015-01-08 05:05:08 -05:00
Zoltan Varga
b103884634
[runtime] Avoid Process.GetCurrentProcess ().HasExited asserting. Fixes #25720 .
2015-01-08 04:47:55 -05:00
Jo Shields
51f2a8c251
[msvc] 64-bit Windows still needs _WIN32_WINNT (for monoposixhelper)
2015-01-08 08:55:09 +00:00
Mark Probst
c389a66121
[sgen] Unified loop for scanning card tables.
...
We had previously used two separate loops for scanning card tables: One
loop that handled blocks where the object slots were larger than a single card,
and one loop where they were smaller. In the large case we would iterate over
the slots, check whether they were occupied, and if so, check their cards. In the
smaller case we would do it the opposite way: Check the card first, then check
the slots in the card.
For some workloads, the large loop resulted in lots of cache misses, because
we were fetching memory all over the blocks instead of just the cards. The small
loop, on the other hand, would sometimes scan objects twice, namely when they
crossed the boundary between two cards, and both cards were marked.
This new unified loop fixes both problems. We always look at the cards first,
and we keep a scan front pointer that prevents scanning objects more than
once.
2015-01-07 16:57:54 -08:00
Mark Probst
001c8a68ed
[sgen] Don't scan card tables differently based on object size.
...
For objects that were larger than a card we iterated over the objects in a block, rather
than iterate over the cards. To do that we had to load the object headers, which caused
cache misses. The card bits are consecutive, so they'll be in the cache.
2015-01-07 15:34:56 -08:00
Mark Probst
5d0069dec3
[sgen] Use a scan front pointer to avoid scanning objects twice from cardtable.
2015-01-07 15:34:56 -08:00
Mark Probst
6be120bde8
[sgen] Prefetching of blocks and cards in cardtable scanning.
2015-01-07 15:34:56 -08:00
Zoltan Varga
15e9a61807
[arm] Fix OP_ICLE_UN. Fixes #25798 .
2015-01-07 18:29:12 -05:00
Vlad Brezae
7786ec1408
[x86] Enable the monitor enter/exit fastpaths.
2015-01-07 14:21:45 -08:00
Vlad Brezae
efe2234b98
[amd64] Enable the monitor enter/exit fastpaths.
2015-01-07 14:21:14 -08:00
Vlad Brezae
753348a68b
Unmanaged implementation of spin free locks.
...
The commit addresses race issues between the waiting on the lock semaphore and the release of the lock. The entry count and the owner field are grouped together into the status field. Accesses to it are done using atomic cas operations so threads aren't lost waiting for release on the lock semaphore.
Disable native fastpaths for now, until they are updated to the new implementation.
2015-01-07 14:19:59 -08:00
Vlad Brezae
3327e1c25e
[amd64] Fix compilation error when monitor fastpaths are disabled
2015-01-07 14:03:12 -08:00
Vlad Brezae
b7482d9b22
Remove IL fastpaths for Monitor Enter/Exit.
2015-01-07 14:03:11 -08:00
Vlad Brezae
045422715f
[runtime] If possible, use fast tls for small_id storage.
2015-01-07 13:48:18 -08:00
Marek Safar
f41f2f0df1
[mcs] An argument to nameof operator cannot be extension method group
2015-01-07 21:06:11 +01:00
Marek Safar
c97ef02dc8
[mcs] update exception filters syntax to use yet another contextual keyword
2015-01-07 19:22:04 +01:00
Zoltan Varga
e2558972bd
[sdb] Enable the StackFrame.Domain property on stack frames which represent native transitions.
2015-01-07 10:59:17 -05:00
Marcos Henrich
93ffd56a4a
[runtime] Improved mono_local_cprop OP_IL_SEQ_POINT filtering.
...
Replaced more ins->next usages with mono_inst_next (ins, OP_IL_SEQ_POINT).
2015-01-07 14:11:16 +00:00
Marek Safar
50405e2e64
[mcs] Add reference to parent storey when this is hoisted in disconnected state machine. Fixes #25007
2015-01-07 14:02:12 +01:00
Marcos Henrich
0e90a8ccce
test_op_il_seq_point.sh can now tests with and without AOT
...
Without AOT only code size is checked
With AOT native code is checked.
We cannot compare the native code without AOT because some undeterministic data is stored in the middle of the code and there is no easy way of making the native code dumper ignore it.
2015-01-07 12:39:27 +00:00
Marcos Henrich
1aa885d086
test_op_il_seq_point.sh now compares native code with AOT only.
...
Comparing native code is only possible with AOT because it is almost deterministic.
A diff of the smallest method changed by OP_IL_SEQ_POINT is now printed to ease problem identification.
2015-01-07 11:56:21 +00:00
Zoltan Varga
9b294f1fc0
[aot] Enable separate llvm modules on amd64.
2015-01-07 03:49:01 -05:00
Zoltan Varga
bda99d7944
[aot] Enable emission of debug info for LLVM code if the LLVM code is emitted into a separate module.
2015-01-07 03:44:58 -05:00
Zoltan Varga
ac94e5c7cd
[aot] Add support for emitting the llvm code separately into a separate object file on amd64. Not enabled yet.
2015-01-07 03:11:49 -05:00
Zoltan Varga
eb0a3fe358
[aot] Allow the emission of the LLVM code into a separate .s/.o file. Not enabled yet.
2015-01-07 01:46:14 -05:00
Rodrigo Kumpera
b92e560d3f
[runtime] Change socket-io.c to use new API for local IP discovery.
2015-01-06 16:11:43 -05:00
Rodrigo Kumpera
0457b278f2
[utils] Add abstraction to retrive the local interface addresses.
2015-01-06 16:11:43 -05:00
Rodrigo Kumpera
da0acc6450
[runtime] IPV6 is now the norm so we can expect all systems to have it.
2015-01-06 16:11:43 -05:00
Zoltan Varga
f6ecbd11dc
[sdb] Bump protocol version to 2.39 so the single stepping changes can be detected by clients.
2015-01-06 15:14:09 -05:00
David Karlaš
1eb510ed44
[Sdb] Ignore hidden sequence points
2015-01-06 15:12:37 -05:00
David Karlaš
1187a32f28
[Sdb] With better mimicking of .Net debugging experience stepping out of method returns to method call instead of next statement
2015-01-06 15:12:17 -05:00
David Karlaš
ccf808281d
[Sdb] Fixed bug with STEP_DEPTH_MIN+STEP_SIZE_MIN which stopped on NONEMPTY_STACK sequence point in same method as it begin stepping
2015-01-06 15:12:16 -05:00
David Karlaš
1d195ac697
[Sdb] Removed exclusion of CEE_POP and CEE_NOP sequence point creation
2015-01-06 15:12:15 -05:00
David Karlaš
85c40f6784
[Sdb] Set filter on ss_req in ss_create because filter was never set condition "if ((ss_req->filter & STEP_FILTER_STATIC_CTOR) &&" in process_single_step_inner was nerver true
2015-01-06 15:12:15 -05:00
Zoltan Varga
a5c3f535cc
[sdb] Fix single stepping problems caused by missing seq point info in .mdb files. When stepping in, we have to put a single stepping breakpoint into the parent method, otherwise a missing seq point could cause the debugger to continue until it hits a method entry seq point.
2015-01-06 15:12:15 -05:00
Zoltan Varga
04753f184f
[sdb] Avoid putting implicit seq points at nops followed by a sym seq point.
2015-01-06 15:12:15 -05:00
Zoltan Varga
3ce94182e2
[sdb] Put seq points at nop's following calls as well.
2015-01-06 15:12:14 -05:00
Zoltan Varga
cd4cbc4c70
[sdb] Emit an implicit sequence point after every call and newobj instruction.
2015-01-06 15:12:14 -05:00
Zoltan Varga
6b43e2d103
[sdb] Avoid using implicit sequence points for methods without debug info in images which have debug info, like auto generated property accessors.
2015-01-06 15:12:14 -05:00
Rodrigo Kumpera
5229466676
[tests] Dump stdout/stderr on test failure.
2015-01-06 15:06:03 -05:00
Marek Safar
157083d1a5
[mcs] Additional fix for naming of nested types in attributes. Second fix of #24172
2015-01-06 19:22:51 +01:00
Rodrigo Kumpera
ab0be9bbee
[networking] mono_socket_address_init should set len to the size of sockaddr_* and not *_addr.
2015-01-06 13:12:08 -05:00
Zoltan Varga
a9a87caa20
[runtime] Fix a crash in FieldInfo.GetRawConstantValue () if a dynamic field doesn't have a default value, but has the HasDefault flag set.
2015-01-06 12:59:30 -05:00
Zoltan Varga
96b25f0d82
[jit] Add a test for #25487 .
2015-01-06 12:22:01 -05:00
Zoltan Varga
3a74470db6
Merge pull request #1493 from BrzVlad/vtune-integration2
...
Vtune integration
2015-01-06 04:00:09 -05:00
Rodrigo Kumpera
36128150d1
[io-layer] Remove some deadcode from the sockets code.
...
That function is no longer needed since nothing calls it.
This was effective dead code for ages as it would only be used by targets
with no ipv6. So, unless you're using Debian Potato, nothing to see here.
2015-01-05 18:50:43 -05:00
Rodrigo Kumpera
c87236f052
[sdb] Move sdb to use the new portable networking APIS.
...
This simplifies a lot of the code in some cases and enables some ports
to have access to previously disabled functionality (passive inferior).
2015-01-05 18:48:41 -05:00
Rodrigo Kumpera
98df6c7728
[runtime] Use the new network abstraction in the sockets code.
...
By using a single networking abstraction for name resolution we no longer
need to have two code paths, one for struct hostent and one for struct addrinfo. Good riddance.
More specifically.
We now use functions to fetch protocol numbers and not rely on inline ifdefs.
We use the single abstraction over name resolution, which allows us to have a single code
path to convert the native structure into a managed one.
Finally, we moved the polyfill logic for missing functionality to a separate file to make
things easier.
2015-01-05 18:40:34 -05:00
Rodrigo Kumpera
ab59edf8a5
[utils] Add a cross platform networking API for name discovery.
...
This meant to replace the ifdef hell that is part of the current socket code and to
modernize the sockets code on some targets.
For some reason we still relied on gethostbyname (and variants) in 2015.
Those functions were deprecated circa the KAME project - yes, I'm that old to remember it.
With that in mind, we now rely on getaddrinfo for all sane targets and drop straight to
the lowest common denominator when it's not available, which is gethostbyname/gethostbyname2.
This patch removes support for the glibc gethostbyname2_r extension. Which is not a practical
problem because all linux/android target we can realistically run on have getaddrinfo.
Sorry grampa, no Slackware 8.0 anymore.
This code has a simpler structure of whole file ifdefs as much as possible, which is
a blessing to OOT ports.
2015-01-05 18:29:02 -05:00
Rodrigo Kumpera
23b892dc3d
[configure] Add checks for some posix networking functions (getaddrinfo, gethostbyname2, gethostbyname, getprotobyname).
...
Some targets lack different combinations of those functions so we got to check them all.
2015-01-05 18:21:48 -05:00
Vlad Brezae
97c01a0adb
[profiler] Report code buffers to vtune.
2015-01-05 14:19:52 -08:00
Vlad Brezae
92128dfd4e
[profiler] Include vtune support for jitted methods in the build system.
...
In order to track emitted code with vtune you need to :
* pass --enable-vtune=yes to autogen.sh
* have in the LD_LIBRARY_PATH the path to the profiler libraries (ex $(installation_folder)/lib)
* pass argument --profiler=vtune to mono
2015-01-05 14:19:50 -08:00
Zoltan Varga
1b9729dbf6
[arm64] Mark the 'tailcall' opcode as a call. Fixes #25646 .
2015-01-05 15:22:16 -05:00
Alexander Köplinger
04170bbc67
Add build badge for debian-ppc64el to README.md
2015-01-05 19:20:04 +01:00
Marek Safar
81bd20edbd
Fixes build
2015-01-05 19:13:16 +01:00
Marek Safar
a9dbf2f152
[system.net.http] Use HttpWebRequest without additional buffering. Fixes #25213
2015-01-05 18:02:03 +01:00
Zoltan Varga
27fd291b19
[aot] Avoid returning different names for the same method in get_debug_sym () if llvm fails for a method. Fixes #25107 .
2015-01-05 11:40:52 -05:00
Alexander Köplinger
4dce3c27d9
[System.Net.Http] Fix CancelRequestViaProxy() test that intermittently fails on Jenkins
...
Seems that on Jenkins, the request to the (non-existing) IP address used in the test returns before the 1s timeout,
causing the test to fail because the cancellation didn't fire.
Lowering the timeout to 1 millisecond should fix this.
I also verified that the test still correctly fails when the commit that fixed the original issue is reverted.
2015-01-05 16:41:30 +01:00
Marcos Henrich
6719c94da5
[runtime] Improved test_op_il_seq_point.sh
...
test_op_il_seq_point.sh now compares methods generated native code.
2015-01-05 14:56:18 +00:00
Zoltan Varga
56e0f4518f
Merge pull request #1492 from akoeplinger/fix-eglib-remap-test
...
Add g_getdtablesize to list of acceptable g_* symbols in mono, for test-eglib-remap
2015-01-05 08:06:58 -05:00
Marek Safar
cd3707a51f
[system] Fixes HttpWebRequest::AllowReadStreamBuffering
2015-01-05 12:48:29 +01:00
Zoltan Varga
63a167dbcb
Merge pull request #1491 from akoeplinger/fix-async_read
...
Fix unreliable async_read.exe test
2015-01-04 23:24:51 -05:00
Alexander Köplinger
0e298082d7
[System.Numerics] Ported code from MS referencesource
2015-01-04 11:26:42 +01:00
Zoltan Varga
7ab68ad32f
[aot] Get rid of the code offsets code since direct method addresses are used on all supported platforms.
2015-01-04 04:43:06 -05:00
Zoltan Varga
3e0c70415e
[aot] Avoid creating gsharedvt synchronized wrappers if gsharedvt is not enabled.
2015-01-04 04:19:39 -05:00
Zoltan Varga
b73e4a71a0
[aot] Use direct method addresses on x86/amd64.
2015-01-04 04:13:45 -05:00
Zoltan Varga
1f2fe37733
[aot] Refactor the MONO_AOT_FILE_FLAG_DIRECT_METHOD_ADDRESSES code a bit.
2015-01-04 04:11:45 -05:00
Zoltan Varga
25abc112ea
[aot] Split the unbox_trampolines table into two to separate the indexes and the method addresses/offsets.
2015-01-04 04:03:52 -05:00
Zoltan Varga
e8156a0c8c
[aot] Use nops as alignment padding on amd64 instead of zeros.
2015-01-04 03:07:47 -05:00
Alexander Köplinger
dd8d450575
Add g_getdtablesize to list of acceptable g_* symbols in mono, for test-eglib-remap
...
The method was added in cd9f3b5859 and caused the test to fail.
2015-01-04 08:59:35 +01:00
Alexander Köplinger
219d56df76
Fix unreliable async_read.exe test
2015-01-04 05:51:18 +01:00
Zoltan Varga
b7c3485cda
[runtime] Use the proper domain in mono_thread_destroy_domain_tls (). Fixes #25629 .
2015-01-03 13:36:02 -05:00
Zoltan Varga
a0395d390a
[jit] Disable the seq point tests for now, they seem to fail because of stdout buffering problems on osx.
2015-01-03 13:32:43 -05:00
Zoltan Varga
2e90c80f54
[runtime] Fix the LOCK_TRACER build.
2015-01-03 10:03:40 -05:00
Miguel de Icaza
a080a7d8a9
[Windows.Forms] DataGridViewTextBoxCell: do not use a shared editing control
...
This fixes the case of the System.ObjectDisposedException being thrown
when editing a text cell in a DataGridView control a second time.
The problem is that the static control would be disposed by the code in
DataGridView's EditingControlInternal, but this instance was reused over
and over.
Instead, we now createa new editing control every time that the TextBoxCell
is created.
The investigation for this bug took place here:
https://bugzilla.xamarin.com/show_bug.cgi?id=9653
Fixes also:
https://bugzilla.xamarin.com/show_bug.cgi?id=22297
2015-01-03 12:42:32 -02:00
Zoltan Varga
43aa9be05d
[jit] Fix some IL_SEQ_POINT filtering issues on x86.
2015-01-03 07:13:09 -05:00
Zoltan Varga
9514523876
[runtime] Implement FieldInfo.GetRawConstantValue () for dynamic types. Fixes #25690 .
2015-01-03 06:48:45 -05:00
Zoltan Varga
2d4209742d
[sdb] Fix the previous change by setting SingleStepReq.start_method when the request is created, not when single stepping is started, since the latter can happen multiple times for a single step request.
2015-01-03 06:01:22 -05:00
Zoltan Varga
1139f71dc2
[sdb] Avoid stepping out of the current method if it is a cctor if StepFilter.StaticCtor is used. Fixes #14277 .
2015-01-03 05:38:19 -05:00
Zoltan Varga
9d64590968
Merge pull request #1473 from esdrubal/sq
...
[runtime] Optimizations fixes for OP_IL_SEQ_POINT compatibility.
2015-01-03 04:40:22 -05:00
Zoltan Varga
9e03c10d8f
[jit] Fix the returning of vtypes of size less than 8 in registers by using the proper sized load instructions instead of always 8. Fixes #25631 .
2015-01-02 22:29:04 -05:00
Zoltan Varga
f9bcd25048
[pdb2mdb] Implement support for scopes. Fixes #25357 .
2015-01-02 21:08:59 -05:00
Zoltan Varga
46b15a2a6b
[bcl] Fix crashes when FieldInfo.GetValue () is called on a pointer field with a null value. Fixes #25664 .
2015-01-02 18:36:02 -05:00
Zoltan Varga
102f316ae2
[runtime] Avoid reading past the end of a MonoGenericParam structure in some cases. Fixes #25679 .
2015-01-02 17:58:40 -05:00
Marek Safar
40810cf076
[mcs] More special case handling for explicit type names documentation. Fixes #25544
2015-01-02 23:16:33 +01:00
Marek Safar
4ab03af16a
[corlib] Fix Type::GetEnumName/IsEnumDefined to return same value as Enum::GetName/IsDefined
2015-01-02 18:54:48 +01:00
João Matos
a3510a115a
Fixed metadata offsets for ARM64 support.
2015-01-02 16:30:14 +00:00
Alexander Köplinger
e50764ba04
Fix CookieContainerTest to use expiration date in the future
...
It is 2015 now, so the cookie is already expired and the test fails otherwise.
2015-01-02 16:54:22 +01:00
Marek Safar
e8796320bf
[corlib] Allow bool/char to enum conversions
2015-01-02 15:19:51 +01:00
Alexander Köplinger
c04f7e75bf
Add missing quote to string added in 156ab8c5fc
...
This would fail to compile otherwise when the PCL constant is defined.
2014-12-31 12:42:05 +01:00
Alexander Köplinger
45a6bc149d
Merge pull request #1081 from rneatherway/bug17537
...
Allow CLR binaries to be passed to Process.Start
2014-12-31 12:38:41 +01:00
Marek Safar
fe37c2458d
Merge pull request #1482 from akoeplinger/fix-codetaskfactory-2
...
[Microsoft.Build.Tasks] Rework CodeTaskFactory to use CodeDom and implement parameter support
2014-12-30 22:24:48 +01:00
Alexander Köplinger
cdc8071806
[Microsoft.Build.Tasks] Rework CodeTaskFactory to use CodeDom and implement parameter support
...
Removed the old string-based code and use CodeDom APIs for everything.
Implemented parameter support by adding the necessary properties to the generated class.
Fixed bug where the task references weren't passed to the compiler.
This should now work with VB code as well (assuming the compiler is installed).
2014-12-28 13:08:20 +01:00
João Matos
be8962df9c
[runtime] Added support for builds with cross-compiled LLVM.
2014-12-24 19:49:12 +00:00
João Matos
1c3d900853
[runtime] Fixed mini-llvm.c build with MinGW.
...
MinGW-w64 lacks a definition for bzero which we use in the rest of this file, provide a simple implementation that should get the job done.
2014-12-24 19:49:11 +00:00
João Matos
28ce82dbed
Merge pull request #1479 from mfoliveira/ppc64el-build-errors-v2-mit
...
Fix build errors in mono-context.c on ppc64el
2014-12-24 13:31:03 -05:00
Mauricio Faria de Oliveira
55fa0a561a
Fix build errors in mono-context.c on ppc64el
...
Build error #1 :
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
mono-context.c: In function 'mono_sigctx_to_monoctx':
mono-context.c:435:68: error: 'MONO_SAVED_GREGS' undeclared (first use in this function)
memcpy (&mctx->regs, &UCONTEXT_REG_Rn(uc, 13), sizeof (mgreg_t) * MONO_SAVED_GREGS);
^
mono-context.c:435:68: note: each undeclared identifier is reported only once for each function it appears in
mono-context.c:436:70: error: 'MONO_SAVED_FREGS' undeclared (first use in this function)
memcpy (&mctx->fregs, &UCONTEXT_REG_FPRn(uc, 14), sizeof (double) * MONO_SAVED_FREGS);
^
The MONO_SAVED_GREGS and MONO_SAVED_FREGS macros are defined in mini-ppc.h.
The problem happens because commit 7e056cd346
moved code using them from exceptions-ppc.h (which includes mini-ppc.h) to
mono-context.c (which doesn't), where they're not #included.
So, include mini-ppc.h in mono-context.c (in the existing powerpc ifdef block).
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
Build error #2 :
Now, it turns out mini-ppc.h doesn't know MonoMethod, MonoMethodSignature, and MonoObject.
So, include object.h (MonoObject), which includes metadata.h (MonoMethod and MonoMethodSignature),
in mini-ppc.h.
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
In file included from mono-context.c:427:0:
../../mono/mini/mini-ppc.h:37:2: error: unknown type name 'MonoMethod'
MonoMethod *method;
^
../../mono/mini/mini-ppc.h:306:31: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:306:64: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:312:27: error: unknown type name 'MonoObject'
mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp, mgreg_t *int_regs, gdouble *fp_regs, gboolean rethrow) MONO_INTERNAL;
^
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
2014-12-24 15:52:07 -02:00
João Matos
052dd2c94e
Merge pull request #1478 from mono/revert-1475-ppc64el-build-errors
...
Revert "Fix build errors in mono-context.c on ppc64el"
2014-12-24 11:43:37 -05:00
João Matos
30a7ba9808
Revert "Fix build errors in mono-context.c on ppc64el"
2014-12-24 16:42:17 +00:00
Miguel de Icaza
649f91f71b
[System.IO.Compression.FileSystem] Fix infinite loop in ZipFile.Open(string,ZipArchiveMode)
2014-12-24 08:38:12 -02:00
João Matos
074873ab99
Merge pull request #1475 from mfoliveira/ppc64el-build-errors
...
Fix build errors in mono-context.c on ppc64el
2014-12-23 10:11:59 -05:00
Mauricio Faria de Oliveira
e36ef8bda6
Fix build errors in mono-context.c on ppc64el
...
Build error #1 :
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
mono-context.c: In function 'mono_sigctx_to_monoctx':
mono-context.c:435:68: error: 'MONO_SAVED_GREGS' undeclared (first use in this function)
memcpy (&mctx->regs, &UCONTEXT_REG_Rn(uc, 13), sizeof (mgreg_t) * MONO_SAVED_GREGS);
^
mono-context.c:435:68: note: each undeclared identifier is reported only once for each function it appears in
mono-context.c:436:70: error: 'MONO_SAVED_FREGS' undeclared (first use in this function)
memcpy (&mctx->fregs, &UCONTEXT_REG_FPRn(uc, 14), sizeof (double) * MONO_SAVED_FREGS);
^
The MONO_SAVED_GREGS and MONO_SAVED_FREGS macros are defined in mini-ppc.h.
The problem happens because commit 7e056cd346
moved code using them from exceptions-ppc.h (which includes mini-ppc.h) to
mono-context.c (which doesn't), where they're not #included.
So, include mini-ppc.h in mono-context.c (in the existing powerpc ifdef block).
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
Build error #2 :
Now, it turns out mini-ppc.h doesn't know MonoMethod, MonoMethodSignature, and MonoObject.
So, include object.h (MonoObject), which includes metadata.h (MonoMethod and MonoMethodSignature),
in mini-ppc.h.
libtool: compile: gcc <...> -c mono-context.c -fPIC -DPIC -o .libs/mono-context.o
In file included from mono-context.c:427:0:
../../mono/mini/mini-ppc.h:37:2: error: unknown type name 'MonoMethod'
MonoMethod *method;
^
../../mono/mini/mini-ppc.h:306:31: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:306:64: error: unknown type name 'MonoMethodSignature'
mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
^
../../mono/mini/mini-ppc.h:312:27: error: unknown type name 'MonoObject'
mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp, mgreg_t *int_regs, gdouble *fp_regs, gboolean rethrow) MONO_INTERNAL;
^
Signed-off-by: Mauricio Faria de Oliveira <[email protected] >
2014-12-23 12:48:20 -02:00
Alex Rønne Petersen
95f9770413
Merge pull request #1472 from Aetf/zh-CHS-patch-fix-25554
...
Add zh-CHS parent_lcid handling
2014-12-22 18:50:07 +01:00
Mark Probst
b4f51ba8e9
[sgen] Fix debug output for descriptor types.
2014-12-22 09:48:03 -08:00
Marcos Henrich
e52f1e1f5a
[runtime] mini-arm sequence point vars are only required to debug.
2014-12-22 10:51:40 +00:00
Marcos Henrich
44cbf38ddd
[runtime] Do not emit seq points for entry/exit offsets on release.
...
METHOD_ENTRY_IL_OFFSET and METHOD_EXIT_IL_OFFSET are only used by the debugger agent.
2014-12-22 10:09:27 +00:00
Marcos Henrich
5054bd6233
[runtime] mono_if_conversion no longer breaks with OP_IL_SEQ_POINT.
...
mono_if_conversion now skips OP_NOP and OP_IL_SEQ_POINT while navigating through the instructions.
2014-12-22 10:03:12 +00:00
Aetf
7595f73821
fix coding style
2014-12-22 17:41:23 +08:00
Aetf
80d2c0a74f
Add zh-CHS parent_lcid handling
2014-12-22 14:25:33 +08:00
João Matos
dabfddfd28
Merge pull request #1470 from cmp-/fix-mutex-trylock-windows
...
Fix mono_mutex_trylock on Windows
2014-12-20 10:55:26 -05:00
cmp
d34764ab2c
Fix mono_mutex_trylock on Windows
...
mono_mutex_trylock is expected to return nonzero on failure, while
TryEnterCriticalSection returns nonzero on success.
2014-12-20 16:23:16 +01:00
Marek Safar
0fda579501
Merge pull request #1465 from akoeplinger/msbuild-getdirnameoffileabove
...
[xbuild] Implement GetDirectoryNameOfFileAbove ()
2014-12-20 00:09:49 +01:00
Marcos Henrich
6dfca8e721
[runtime] Check that sequence points have no effect on JIT code.
...
Added a test to check that each method of the test assemblies are JITed the same way with and without the sequence points enabled.
2014-12-19 20:53:46 +00:00
Zoltan Varga
3b5a261a1e
Merge pull request #1375 from echampet/cleanup
...
TARGET_J2EE cleanup.
2014-12-19 14:59:51 -05:00
Miguel de Icaza
156ab8c5fc
[Mono.DataConverter] Make it easier to use in PCL libraries
2014-12-19 14:55:25 -05:00
Marek Safar
da7bfbe539
Merge pull request #1469 from akoeplinger/msbuild-missing-api
...
[xbuild] Add missing property 'StandardOutputImportance' to ToolTask
2014-12-19 16:15:05 +01:00
Alexander Köplinger
a2f1dfbfcb
Respond to code review feedback
2014-12-19 03:51:58 +01:00
Alexander Köplinger
b4aa35a571
Respond to code review feedback
2014-12-19 03:45:25 +01:00
Ludovic Henry
22b3945b66
[runtime] Add support to trace generics
2014-12-18 15:47:43 -05:00
Ludovic Henry
4f3b70d511
[runtime] Fix #24605 : "counters not enabled" message with embeders
2014-12-18 15:47:42 -05:00
Alexander Köplinger
ece634029e
[xbuild] Add missing property 'StandardOutputImportance' to ToolTask
...
It's a stub and is currently not used by xbuild.
2014-12-18 19:58:51 +01:00
Alexander Köplinger
b52e2e25f6
[xbuild] Implement GetDirectoryNameOfFileAbove ()
...
The method looks for the given file starting at the given path and traverses
the directory tree up until the file is found or root is reached.
2014-12-18 14:58:50 +01:00
Marcos Henrich
58f1c53708
[runtime] mono_local_deadce no longer breaks with OP_IL_SEQ_POINT.
...
Replaced ins->prev usages with mono_inst_prev (ins, FILTER_NOP | FILTER_IL_SEQ_POINT).
2014-12-18 11:04:36 +00:00
Marcos Henrich
702061aed0
[runtime] Updated amd64 with better OP_IL_SEQ_POINT handling.
2014-12-18 10:53:07 +00:00
Marcos Henrich
f982e98f03
[runtime] OP_IL_SEQ_POINT no longer breaks mono_local_cprop
...
mono_local_cprop now uses mono_inst_next (ins, FILTER_IL_SEQ_POINT) which skips OP_IL_SEQ_POINT.
2014-12-18 10:32:36 +00:00
Marcos Henrich
7e6965d398
[runtime] mono_optimize_branches no longer breaks with OP_IL_SEQ_POINT.
...
bbn->code was replaced with mono_bb_first_inst (bbn, FILTER_IL_SEQ_POINT).
2014-12-18 09:00:01 +00:00
Marcos Henrich
77ee6e0e08
[runtime] mono_peephole_ins last_ins now skips OP_IL_SEQ_POINT.
2014-12-18 08:26:30 +00:00
Marcos Henrich
bfb5185aab
[runtime] Added helper methods to iterate MonoInst with filters.
...
Added methods mono_inst_next, mono_inst_prev, mono_bb_first_inst, mono_bb_last_inst
The added methods do respectively the same as ins->next, ins->prev, bb->code, bb->last_ins but skip the instruction until it matches the specified filter.
2014-12-18 08:15:53 +00:00
Alexander Köplinger
56ea776405
[xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
...
This aligns xbuild with the MS.NET behavior.
2014-12-18 05:59:46 +01:00
Marcos Henrich
d4a2bab840
Merge pull request #1462 from ExonyLimited/fix-25442
...
Performance fix for TimeZoneInfo.GetApplicableRule(), addresses #25442
2014-12-17 07:28:17 +00:00
Craig Minihan
f0f976b985
Performance fix for TimeZoneInfo.GetApplicableRule(), addresses #25442
...
* Main use case - JSON.NET serialization of CLR objects containing DateTime fields, GetUtcOffset()=>GetApplicableRule() are the highest Mono methods in the profiler
* The property DateTime.Date access in the foreach is very expensive, this has been moved outside the foreach
* Performance for DateTime.Now passed as a parameter is 10x better than before
* This is the simplest possible change to yield an improvement, it would be better to replace the O(N) loop logic with a binary search - this yields a further 2-3x performance improvement, when master is building I may submit later
2014-12-16 17:19:36 -08:00
Marek Safar
bb3fe582d5
[build] Fix bootstrap profile dependencies lib location
2014-12-17 00:09:01 +01:00
Mark Probst
4266d3bc98
[sgen] Never inline sgen_par_object_get_size().
...
This makes at least graph4 a lot faster.
2014-12-16 13:19:16 -08:00
Marek Habersack
d8092c84a9
Bump the referencesource submodule
...
The new referenced commit in the submodule changes the macro used in the
mobile profile to disable CAS from MOBILE to DISABLE_CAS_USE
2014-12-16 21:50:11 +01:00
Marcos Henrich
67514a19d5
[runtime] remove_block_if_useless now ignores OP_IL_SEQ_POINT.
2014-12-16 20:28:27 +00:00
Marcos Henrich
2694840702
[runtime] mini-amd64 seq_point_info_var is only required to debug.
2014-12-16 20:28:27 +00:00
Marcos Henrich
ab392debf4
[runtime] Added gen-compact-seq-points option to MONO_DEBUG.
...
gen-compact-seq-points can be used to enable the generation of the sequence points data required to map native offsets to IL offsets.
2014-12-16 20:28:27 +00:00
João Matos
c021673939
Merge pull request #1336 from esdrubal/datatablereadxmlschema
...
DataTabe.ReadXmlSchema now handles non Schema base element.
2014-12-16 14:28:01 -05:00
João Matos
5742335f66
Merge pull request #1349 from martinjt/MachineKeyProtect
...
Implement MachineKey.Protect and MachineKey.Unprotect
2014-12-16 14:26:08 -05:00
João Matos
8597a88b69
Merge pull request #1459 from akoeplinger/fix-website-links
...
Updated the Mono website links in the man pages
2014-12-16 14:19:03 -05:00
João Matos
b5ddc30ebc
[System.IO.Compression] Fixed DeflateStream native error when handling empty input.
...
Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=22346
2014-12-16 18:56:24 +00:00
Marek Safar
6c8b4c1e90
[buid] Fix bootstrap issue on cygwin
2014-12-16 16:00:14 +01:00
Alexander Köplinger
0c8492cbc6
Updated the Mono website links in the man pages
...
Even though the old links still work, we can save everyone an unnecessary redirect by using the new links.
2014-12-16 15:05:05 +01:00
Marek Habersack
c2dce69079
Fix command stream encoding for FTP requests.
...
Whenever a connection to an FTP server is established, FtpWebRequest
sends an option command to the server to enable UTF8 encoding for the
transfer. So far we've failed to check the request status of that
command and assumed that UTF8 is enabled but *also* failed to actually
use the encoding when sending commands (we had the ASCII encoding
hard-coded). This resulted in failed requests whenever a command named a
file or path which included non-ASCII characters. This patch does two
things:
* checks the status of the UTF8 enabling command and uses UTF8 encoding
only if it succeeded. Otherwise Encoding.Default is used.
* uses the encoding detected above for the command stream.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24611
[Tests will follow at a later date]
2014-12-15 23:34:32 +01:00
Neale Ferguson
e78a3c6857
Add per thread profiling support to s390x
2014-12-15 14:13:00 -05:00
Jo Shields
f5e62d4d2f
Merge pull request #1456 from directhex/fix_Microsoft.Build.Execution.BuildManagerTest.BuildCommonResolveAssemblyReferences
...
Fix Microsoft.Build.Execution.BuildManagerTest.BuildCommonResolveAssemblyReferences
2014-12-15 18:38:53 +00:00
João Matos
e723d4ade5
[System] Relaxed Ping test to work under Linux.
...
So in Linux the PingTimeOut test was returning TtlExpired and failing the assertion. Since I'm not exactly sure how ping behaves under all platforms, relax the test to only make sure it doesn't succeed.
2014-12-15 17:06:27 +00:00
Jo Shields
70d3c7a23a
Use net_4_5 libraries for xbuild tests, regardless of target.
...
This works around failures caused by tests asking for other frameworks (like 4.0) on Mono 4.0, which only has 4.5
2014-12-15 16:59:48 +00:00
Jo Shields
d1a5f1d53a
Move XBUILD_FRAMEWORK_FOLDERS_PATH definition somewhere useful & export
...
This variable isn't being passed to the child xbuild process during testing, making it sorta useless.
2014-12-15 16:58:14 +00:00
Alexis Christoforides
e79dc945a5
[FileSystemWatcher] Properly handle multicast delegates.
...
Reverted the async delegate firing which is how Caching et al. expect FSW events; and properly handle the multicast case.
Also fixing a typo/regression in @2f1a136583c90cae805441e63b94bc4f277bb953
2014-12-15 11:05:19 -05:00
Marcos Henrich
25bcda516b
Bump referencesource
2014-12-15 15:54:46 +00:00
Jo Shields
9bd865ecc3
Force MSBuildExtensionsPath to point to in-tree xbuild data
...
As-is, on non-Mac, Xbuild looks for MSBuildExtensionsPath in the folder specified by --prefix, i.e. /usr/local/mono/xbuild by default (which may not & should not exist).
2014-12-15 14:32:18 +00:00
Jo Shields
5b591e1098
Revert "Use ";" not Empty as bad TargetFrameworkDirectory value"
...
This reverts commit 7b58afa1c8 .
Apparently this bad value passes on mac/wrench. So it's not a good failure condition for the test.
2014-12-15 13:37:19 +00:00
Jo Shields
7b58afa1c8
Use ";" not Empty as bad TargetFrameworkDirectory value
...
After manager.Build is called, a "null" empty for TargetFrameworkDirectory is
a string containing only ";" - a "good" value is the target framework
directory with a trailing ";". By testing for string.Empty, we don't actually
test whether the value has been correctly populated (causing all subsequent
failures).
2014-12-15 12:07:29 +00:00
Miguel de Icaza
d16a01fe98
[System.Runtime.Serialization] Further baby steps
2014-12-14 00:02:45 -05:00
Miguel de Icaza
8f32e290ad
[System.Runtime.Serialization] Dip toes into using ReferenceSource
2014-12-13 23:50:34 -05:00
Miguel de Icaza
db6468e61e
[Console/TerminfoDriver] Look in the TERMINFO directory if set
2014-12-13 23:49:51 -05:00
Miguel de Icaza
448f60e7f0
[System/SR] Brings some strings from .NET Core
...
Used the following script to do this:
var d = XDocument.Load ("Strings.resx");
foreach (var j in d.XPathSelectElements ("/root/data")){ var v = j.XPathSelectElement ("value"); Console.WriteLine ("\tpublic const string {0}=\"{1}\";", j.Attribute ("name").Value, v.Value); }
2014-12-13 19:58:06 -05:00
Miguel de Icaza
fda6bf1a33
[Console] Updated to terminfo renderer.
...
This brings .NET's parameterized terminfo renderer, various fixes and
semantic changes.
The existing implementation of the Console did not have a proper an
implementation of terminfo's parameterized sequences. Instead of
this, a collection of hacks existed to hardcode both light colors and
cursor position. These are now gone, since the parameterized strings
do contain the correct values for this.
The search path for terminfo now picks the most modern location for
terminfo. With the old paths in place.
The lookup for terminfo databases only supported the lookup based on
the first character of a terminal, so for example, for xterm this was
$terminfo_dir/x/xterm, but OSX and maybe other systems now store the
files in $terminfo_dir/78/xterm (where 78 is the hex representation of
'x', the first letter of the terminal name).
The fallback is still in place for other Unix systems.
We no longer use the built-in terminfo databases as the first pick,
instead we try to load the system terminfo database before we use the
built-in versions.
Worth figuring out if we want to remove the two built-in ones (Linux
and xterm) as broken terminfo databases are no longer the norm in Unix
and just keep the ansi one as a database of last resort.
This means that the console actually now gets high colors on MacOS,
not just Linux.
This also fixes the issue with consoles with more than 256 colors. As
reported in bug 18315.
2014-12-13 19:37:39 -05:00
Marek Safar
8a061c8c8e
Merge pull request #1451 from akoeplinger/fix-winforms-test
...
[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault
2014-12-13 10:01:38 +01:00
Marek Safar
06a22be0a2
Merge pull request #1452 from esdrubal/xmlnamespace
...
[System.Xml.Linq] xmlns prefixes are no longer generated in some cases.
2014-12-13 10:01:11 +01:00
Marcos Henrich
aad3c917e4
[System.Xml.Linq] xmlns prefixes are no longer generated in some cases.
...
- XNodeWrite.FillXmlns was adding a prefix to the attribute when no prefix was found (prefix==null)
- XNodeWrite.LookupPrefix now returns string.Empty prefix when the namespace is the same as the element.
A string.Empty prefix explicitly states that it has no prefix whereas null states that prefix was not defined.
When LookupPrefix returns null for a namespace it means that a prefix should be generated first for anything that uses the namespace.
That is what XmlSerializationWriter.GetQualifiedName does.
Fixes #24300
2014-12-12 19:50:15 +00:00
Marcos Henrich
2039c7d499
[System.Xml.Linq] Test XmlSerializer with custom namespace.
...
Covers #24300 .
2014-12-12 19:01:51 +00:00
Alexander Köplinger
bb100049e1
[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault
...
The code in ComponentModel (https://github.com/mono/referencesource/blob/7dc4e513eafd3fb30d34111948ef14c981264463/System/compmod/system/componentmodel/CategoryAttribute.cs#L276 ) looks up the category name by string concatenation, which means it wasn't captured in our SR.cs.
We also can't add the correct value for PropertyCategoryDefault as a string constant to SR.cs since the value is retrieved via GetObject () and we currently just return the parameter name there.
A short-term workaround is to just special case PropertyCategoryDefault in GetObject ().
2014-12-12 02:39:02 +01:00
Vlad Brezae
49830fb910
Populate small id field for MonoInternalThread structure.
2014-12-10 12:22:42 -08:00
Etienne CHAMPETIER
a4134641d8
[cleanup] WebConfigurationManager: remove hasConfigErrors
...
it's not used since 2009 (6a261e04ad )
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-12-01 23:57:19 +01:00
Etienne CHAMPETIER
227b0d1b55
[cleanup] System.Web*: remove TARGET_J2EE
...
done using unifdef
git grep -l TARGET_J2EE | grep -v ChangeLog | xargs -n1 unifdef -m -UTARGET_J2EE
Signed-off-by: Etienne CHAMPETIER <[email protected] >
2014-12-01 23:57:18 +01:00
Martin Thwaites
8302b5782d
Implement MachineKey.Protect and MachineKey.Unprotect
2014-11-03 21:52:18 +00:00
Marcos Henrich
48d05afa0e
DataTabe.ReadXmlSchema now handles non Schema base element. Fixes #22501 .
2014-10-13 16:15:23 -04:00
Marcos Henrich
9e5d94e72b
Test DataTable.ReadXmlSchema with non Schema base element. Covers #22501 .
2014-10-13 16:15:03 -04:00
Robin Neatherway
b50e4a8728
Allow CLR binaries to be passed to Process.Start
...
On *nix files are not executable by default where on Windows they
are. This causes problems if installing a NuGet package on *nix that
contains .exe files intended to be used by build tasks. On Windows the
build will invoke these without complaining whereas on *nix the build
will fail with "Native error: cannot find file specified".
On mono, the action that will be taken is to pass the path to the .exe
file to mono as a command-line argument. If this was done in a shell it
would succeed whether or not the .exe file has the executable bit set,
so it seems that this should also succeed within a program.
With thanks to @akoeplinger for help designing the test.
I release this under the MIT license.
2014-09-14 18:44:02 +01:00
Fritz Elfert
ce9db9db3f
Fixed Bug #21135 - Deadlock in WebConnectionStream
2014-07-11 19:20:11 +02:00