Jonathan Pryor [Tue, 1 Sep 2015 18:57:20 +0000 (14:57 -0400)]
Merge pull request #2012 from joelmartinez/mdoc-memberremoval-fix
[mdoc] Fixes an issue with member deletion.
Joel Martinez [Tue, 25 Aug 2015 19:52:13 +0000 (15:52 -0400)]
[mdoc] Fixes an issue with member and type deletion.
Specifically, when updating classic and unified assemblies, members
that were completely removed from one or both assemblies were not
being removed from the XML. This patch updates mdoc's `DeleteMember`
method to properly handle deletion in all scenarios (normal, classic, unified).
Of course, deletion will still not happen if one of two things is true:
- `--delete` is *not* passed into the `mdoc update` call and the member node
contains existing documentation.
- `--preserve` *is* passed into the `mdoc update` invocation.
In both of those cases, the member will not be deleted, and a message stating
as such will be written as a warning to the output.
Alex Rønne Petersen [Tue, 1 Sep 2015 16:51:20 +0000 (18:51 +0200)]
Merge pull request #2019 from directhex/powerpc-fixes
Add move_f_to_i4 and move_i4_to_f to PowerPC
Miguel de Icaza [Tue, 1 Sep 2015 16:37:19 +0000 (12:37 -0400)]
[Facades] Use Zoltan's parallel build infrastructure
Marcos Henrich [Tue, 1 Sep 2015 10:31:24 +0000 (11:31 +0100)]
Reverted too long to run test.
1abf5baf16a8051091a3c30e11118651c334aa6c added a tests that was making
jenkins to timeout.
Ludovic Henry [Tue, 1 Sep 2015 09:13:59 +0000 (11:13 +0200)]
[threadpool-io] Reduce the value of poll_fds_size on socket removal
Lennart Sorensen [Tue, 1 Sep 2015 10:20:15 +0000 (11:20 +0100)]
Add move_f_to_i4 and move_i4_to_f to PowerPC
Marek Safar [Tue, 1 Sep 2015 09:09:35 +0000 (11:09 +0200)]
[mcs] Remove not implemented from ambiguous static type lookup. Fixes #33527
Marek Safar [Tue, 1 Sep 2015 07:59:53 +0000 (09:59 +0200)]
Merge pull request #2016 from tpokorra/patch-1
fixing typo appropiate in WebHeaderCollection.cs
Timotheus Pokorra [Tue, 1 Sep 2015 07:56:28 +0000 (09:56 +0200)]
fixing typo appropiate in WebHeaderCollection.cs
as mentioned by FastCode in IRC
Zoltan Varga [Mon, 31 Aug 2015 22:48:00 +0000 (18:48 -0400)]
Revert "[llvm] Disable support for nested clauses again, it still causes test failures like #32583."
This reverts commit
d48d8e93e033f5850d2f6fdb86b1f6c35be789d7.
Revert this as it breaks the build.
Zoltan Varga [Mon, 31 Aug 2015 22:35:53 +0000 (18:35 -0400)]
[llvm] Disable support for nested clauses again, it still causes test failures like #32583.
Ludovic Henry [Mon, 31 Aug 2015 14:35:08 +0000 (16:35 +0200)]
[threadpool-io] Remove sparse-array for poll backend
The sparse-array approach led to better insert/remove performance, by allowing a O(1) access, but led to memory consumption issue. The kernel would, for example, have to parse the whole array, even if it's mostly empty, and that can be an issue for large arrays.
Marek Safar [Mon, 31 Aug 2015 13:22:30 +0000 (15:22 +0200)]
Remove incorrect warnings
Marek Safar [Mon, 31 Aug 2015 12:14:51 +0000 (14:14 +0200)]
[mcs] Don't report error for warnings which are not intended to be compiler warnings. Fixes #33487
Marek Safar [Mon, 31 Aug 2015 11:30:35 +0000 (13:30 +0200)]
[system] WebUtility from reference sources
Marcos Henrich [Sun, 30 Aug 2015 11:22:56 +0000 (12:22 +0100)]
[runtime] Removed duplicated code
Alex Rønne Petersen [Sun, 30 Aug 2015 19:18:13 +0000 (21:18 +0200)]
[mcs] 'future' option is now 'experimental' - clarify in man page and help text.
Marek Safar [Sat, 29 Aug 2015 14:24:06 +0000 (16:24 +0200)]
Revert "Merge pull request #2008 from dlech/CustomAttributeData"
This reverts commit
2775839f66faf67803efd96af7aa075888a1e09b, reversing
changes made to
9cf3500204c70d0cf69584a2c47c2c1591f198b0.
Marcos Henrich [Sat, 29 Aug 2015 11:24:02 +0000 (12:24 +0100)]
Merge pull request #1936 from esdrubal/DotNetRelativeOrAbsolute
[System] UriKind.RelativeOrAbsolute workaround.
Marcos Henrich [Sat, 29 Aug 2015 09:55:43 +0000 (10:55 +0100)]
Merge pull request #2008 from dlech/CustomAttributeData
Make CustomAttributeData.AttributeType virtual
Marcos Henrich [Sat, 29 Aug 2015 09:44:18 +0000 (10:44 +0100)]
Updated list of available MONO_DEBUG options.
David Lechner [Sat, 29 Aug 2015 03:07:53 +0000 (22:07 -0500)]
Make CustomAttributeData.AttributeType virtual
According to https://msdn.microsoft.com/en-us/library/system.reflection.customattributedata.attributetype%28v=vs.110%29.aspx, System.Reflection.CustomAttributeData.AttributeType is a virtual property.
Vlad Brezae [Sat, 29 Aug 2015 01:04:48 +0000 (18:04 -0700)]
Merge pull request #2005 from BrzVlad/feature-concurrent-work
Concurrent sgen improvements
Vlad Brezae [Thu, 27 Aug 2015 21:33:38 +0000 (14:33 -0700)]
[sgen] Add missing write barriers for the concurrent collector
Vlad Brezae [Wed, 26 Aug 2015 20:47:14 +0000 (13:47 -0700)]
[sgen] Major allocation should not happen while we sweep
Vlad Brezae [Mon, 17 Aug 2015 22:50:35 +0000 (15:50 -0700)]
[sgen] Enable cementing for concurrent collector
Vlad Brezae [Mon, 24 Aug 2015 22:35:08 +0000 (15:35 -0700)]
[sgen] Remove the finishing nursery collection within the concurrent collector
Vlad Brezae [Tue, 25 Aug 2015 19:38:03 +0000 (12:38 -0700)]
[sgen] Clear nursery at gc if we are doing concurrent checks
Vlad Brezae [Thu, 27 Aug 2015 23:44:50 +0000 (16:44 -0700)]
[sgen] Fix scanning of invalid entries within arrays
Zoltan Varga [Fri, 28 Aug 2015 19:55:08 +0000 (15:55 -0400)]
Merge pull request #2007 from madewokherd/imagelock
Fix an unlock without a corresponding lock.
Vincent Povirk [Fri, 28 Aug 2015 19:33:58 +0000 (14:33 -0500)]
Fix an unlock without a corresponding lock.
8eeb2cef moved the lock into an if statement.
This commit is licensed as MIT/X11.
Zoltan Varga [Fri, 28 Aug 2015 19:39:25 +0000 (15:39 -0400)]
[runtime] Remove some dead code.
Vlad Brezae [Fri, 14 Aug 2015 02:03:17 +0000 (19:03 -0700)]
[sgen] Flush after writing the protocol entry
Marcos Henrich [Fri, 28 Aug 2015 15:26:28 +0000 (16:26 +0100)]
Merge pull request #2004 from esdrubal/singlestacktrace
[corlib] Changes StackTrace.ToString to use Exception format.
Marcos Henrich [Fri, 28 Aug 2015 11:51:13 +0000 (12:51 +0100)]
[corlib] Changes StackTrace.ToString to use Exception format.
StackTrace.ToString format was different from Exception.ToString.
StackTrace.ToString had an identation of 3 spaces instead of 2, outputed
"line " before the line number which Exception.ToString does not, and it
did not print offsets.
This change allows StackTrace.ToString output to be used by the mono-symbolicate tool.
Marcos Henrich [Fri, 28 Aug 2015 14:26:35 +0000 (15:26 +0100)]
Test mono-symbolicate with StackTrace.ToString.
We were testing mono-symbolicate tool with Exception.Tostring stack
traces but now we also test that the tool works with StackTrace.ToString.
Martin Baulig [Fri, 28 Aug 2015 14:06:22 +0000 (16:06 +0200)]
Merge pull request #2000 from BogdanovKirill/master
Bug fix: reading of infinite web response can lead to connection loss
Marek Habersack [Fri, 28 Aug 2015 13:18:47 +0000 (15:18 +0200)]
Remove stray ifdef
Marcos Henrich [Fri, 28 Aug 2015 12:21:00 +0000 (13:21 +0100)]
Merge pull request #2003 from esdrubal/seq_test_fix2
[runtime] Fix test_op_il_seq_point in amd64.
Marcos Henrich [Fri, 28 Aug 2015 11:39:03 +0000 (12:39 +0100)]
Target test-local in mono-symbolicate Makefile.
mono-symbolicate tests were not called by recursive test due to not having the
target test-local in its Makefile.
Marcos Henrich [Thu, 20 Aug 2015 10:27:02 +0000 (11:27 +0100)]
[runtime] Fix test_op_il_seq_point in amd64.
In amd64 when possible 32bit instructions and registers are usedi
instead of 64bit ones.
Using MONO_DEBUG=single-imm-size avoids 32bit optimizations thus
maintaining the native code size between compilations.
Marcos Henrich [Wed, 19 Aug 2015 19:05:42 +0000 (20:05 +0100)]
[runtime] Added MONO_DEBUG=single-imm-size.
In amd64 when i8const are use with values within the first 32 bits
instructions and registers used can be optimized to their 32 bit
versions.
Setting MONO_DEBUG=single-imm-size variable disables such optimizations
and guarantee that the the generated native code size is independent
of the i8const values.
Marek Safar [Fri, 28 Aug 2015 07:30:01 +0000 (09:30 +0200)]
[mcs] Bump ikvm to support up to 4GB output files
Zoltan Varga [Thu, 27 Aug 2015 20:15:01 +0000 (16:15 -0400)]
[gsharedvt] Disable the box+brtrue optimization for gsharedvt types. Fixes #33324.
Jonathan Pryor [Thu, 27 Aug 2015 20:05:41 +0000 (16:05 -0400)]
[MonoPosixHelper] Fix compilation for Android.
The Android NDK decalres the `struct timeval` struct in <sys/time.h>.
Update sys-socket.c to #include <sys/time.h> to fix compilation
with the Android NDK.
Zoltan Varga [Thu, 27 Aug 2015 19:52:10 +0000 (15:52 -0400)]
Fix the build.
Zoltan Varga [Thu, 27 Aug 2015 19:46:32 +0000 (15:46 -0400)]
[x86] Fix fullaot support.
Rodrigo Kumpera [Thu, 27 Aug 2015 19:21:40 +0000 (15:21 -0400)]
[coop] Fix the public coop api.
Rodrigo Kumpera [Thu, 27 Aug 2015 19:10:10 +0000 (15:10 -0400)]
[coop] Blacklist two more wrappers when generating safepoints.
A GC Safepoint require the thread to be in GC unsafe mode to run properly.
Both mono_threads_finish_blocking and mono_threads_reset_blocking_start are called
in GC Safe mode, which would cause them to assert in checked-build.
mono_threads_finish_blocking is called after a pinvoke finished, which means the thread will
still be in blocking mode.
mono_threads_reset_blocking_start is called by reverse pinvoke wrappers before calling managed
code, so it will be in blocking mode too.
This looks like something checked-build should catch by setting the polling variable more frequently.
Rodrigo Kumpera [Thu, 27 Aug 2015 19:08:38 +0000 (15:08 -0400)]
[JIT] Prefer gdb over lldb on OSX as the later still produces useless output on my system.
Jonathan Pryor [Thu, 27 Aug 2015 18:08:47 +0000 (14:08 -0400)]
Merge pull request #1993 from steffen-kiess/posix-sockets-1
Add socket-related functions and data structures to Mono.Posix
Marcos Henrich [Thu, 27 Aug 2015 16:20:12 +0000 (17:20 +0100)]
Merge pull request #2002 from mono/revert-1991-seq_test_fix
Revert "[runtime] Fix test_op_il_seq_point in amd64."
Marcos Henrich [Thu, 27 Aug 2015 16:03:27 +0000 (17:03 +0100)]
Revert "[runtime] Fix test_op_il_seq_point in amd64."
Marcos Henrich [Thu, 27 Aug 2015 16:03:07 +0000 (17:03 +0100)]
Merge pull request #2001 from esdrubal/get_module_filename
Fixes get_module_filename.
Marcos Henrich [Thu, 27 Aug 2015 14:30:25 +0000 (15:30 +0100)]
Fixes get_module_filename.
Marcos Henrich [Thu, 27 Aug 2015 13:21:54 +0000 (14:21 +0100)]
Merge pull request #1991 from esdrubal/seq_test_fix
[runtime] Fix test_op_il_seq_point in amd64.
Rodrigo Kumpera [Wed, 26 Aug 2015 22:22:08 +0000 (18:22 -0400)]
[coop] Initial drop of the supporting public API.
Rodrigo Kumpera [Wed, 26 Aug 2015 22:06:43 +0000 (18:06 -0400)]
[corlib] Fix the mobile test suite.
triton [Wed, 26 Aug 2015 22:27:05 +0000 (23:27 +0100)]
[threadpool-io] Fixed the Windows backend to call the correct polling function.
Mark Probst [Wed, 26 Aug 2015 20:07:29 +0000 (13:07 -0700)]
[sgen] Don't access LOS object size directly because it has to be masked.
We use the lowest bit in the LOS object size to denote whether the object is
marked/pinned, so we can't directly use the size. Use the getter function
instead.
Zoltan Varga [Wed, 26 Aug 2015 19:56:42 +0000 (15:56 -0400)]
[sdb] Disallow nested invokes.
Alex Rønne Petersen [Wed, 26 Aug 2015 19:54:04 +0000 (21:54 +0200)]
Merge pull request #1999 from rodrmoya/master
Fix format description for TYPE_CONTEXT
Rodrigo Moya [Wed, 26 Aug 2015 16:21:08 +0000 (18:21 +0200)]
Fix format description for TYPE_CONTEXT
Zoltan Varga [Wed, 26 Aug 2015 18:47:24 +0000 (14:47 -0400)]
[llvm] Implement support for GC_SAFE_POINT.
Marcos Henrich [Wed, 26 Aug 2015 10:02:42 +0000 (11:02 +0100)]
[corlib] Fixes test not compiling with older NUnit.
BogdanovKirill [Tue, 18 Aug 2015 09:32:25 +0000 (14:32 +0500)]
[WebConnectionStream] Fix connection loss for >2GB reads
When HttpWebRequest is used to download infinite (ContentLength not set) response from web server, we can see that after reading about 2 GB (Int32.MaxValue) of data, totalRead variable can be equal to contentLength (which is int32.MaxValue). Then WebConnectionStream thinks that all data is received (see soft condition totalRead >= contentLength), but this is not correct.
This change is released under the MIT license.
Rodrigo Kumpera [Tue, 25 Aug 2015 21:07:08 +0000 (17:07 -0400)]
Merge pull request #1998 from BillSeurer/master
Fix coding error with ! operator in two places in libtest.c
Bill Seurer [Tue, 25 Aug 2015 21:00:04 +0000 (16:00 -0500)]
Fix coding error with ! operator in two places.
Martin Baulig [Tue, 25 Aug 2015 12:52:31 +0000 (14:52 +0200)]
Merge pull request #1992 from BogdanovKirill/ChunkedReading
[ChunkStream] CPU and memory leak fix when writing and reading infinitely
Zoltan Varga [Mon, 24 Aug 2015 22:22:10 +0000 (18:22 -0400)]
Merge pull request #1996 from BillSeurer/master
[ppc] Add MonoContext and asynch callback support
Bill Seurer [Mon, 24 Aug 2015 22:10:36 +0000 (17:10 -0500)]
[ppc] Add MonoContext and asynch callback support
Zoltan Varga [Mon, 24 Aug 2015 20:25:44 +0000 (16:25 -0400)]
[runtime] Remove the is_mb_open field from MonoMethod, it doesn't seem to be needed, inflated MethodBuilders are represented by MethodOnTypeBuilderInst objects.
Zoltan Varga [Mon, 24 Aug 2015 20:19:30 +0000 (16:19 -0400)]
[sdb] Remove the code which stopped single stepping when exiting a runtime invoke, it was only enabled on ios/android, and it doesn't seem to be needed anymore.
Ludovic Henry [Thu, 13 Aug 2015 19:10:15 +0000 (16:10 -0300)]
[threadpool-io] Remove unecessary operation change
These 2 operations are going to be treated the same in managed, so the change is useless
Ludovic Henry [Thu, 13 Aug 2015 19:09:31 +0000 (16:09 -0300)]
[threadpool-io] Add log tracing
Ludovic Henry [Thu, 13 Aug 2015 17:55:28 +0000 (14:55 -0300)]
[threadpool-io] Rework backend API
The main change is the fd will not be removed from the backend when there is no event to poll, but only when we close the socket. This also reduce the number of functions of the backend.
Ludovic Henry [Wed, 12 Aug 2015 15:24:12 +0000 (12:24 -0300)]
[threadpool-io] Move the states table to the selector thread exclusively
This greatly simplify the model of the states as we do not need to worry about modifications in different threads.
Ludovic Henry [Thu, 13 Aug 2015 14:11:59 +0000 (11:11 -0300)]
[threadpool-io] Disable AIO by default
Rodrigo Kumpera [Mon, 24 Aug 2015 14:51:26 +0000 (10:51 -0400)]
[coop] Add some TODOs to the stress test suite.
Steffen Kieß [Mon, 24 Aug 2015 17:42:54 +0000 (19:42 +0200)]
Add socket-related functions and data structures to Mono.Posix
This commit adds those socket-related functions which do not require the
sockaddr_* structures or the msghdr structure.
Rodrigo Kumpera [Mon, 24 Aug 2015 16:03:44 +0000 (12:03 -0400)]
Merge pull request #1989 from esdrubal/local_tz_from_link
Local tz id from symbolic link
Marcos Henrich [Thu, 20 Aug 2015 10:27:02 +0000 (11:27 +0100)]
[runtime] Fix test_op_il_seq_point in amd64.
In amd64 when possible 32bit instructions and registers are usedi
instead of 64bit ones.
Using MONO_DEBUG=single-imm-size avoids 32bit optimizations thus
maintaining the native code size between compilations.
Marcos Henrich [Wed, 19 Aug 2015 19:05:42 +0000 (20:05 +0100)]
[runtime] Added MONO_DEBUG=single-imm-size.
In amd64 when i8const are use with values within the first 32 bits
instructions and registers used can be optimized to their 32 bit
versions.
Setting MONO_DEBUG=single-imm-size variable disables such optimizations
and guarantee that the the generated native code size is independent
of the i8const values.
Zoltan Varga [Sat, 22 Aug 2015 02:00:41 +0000 (22:00 -0400)]
[runtime] Fix native backtraces with lldb by closing stdin.
Zoltan Varga [Fri, 21 Aug 2015 22:04:10 +0000 (18:04 -0400)]
Fix the build.
Zoltan Varga [Fri, 21 Aug 2015 21:46:55 +0000 (17:46 -0400)]
[runtime] Implement support for dynamic methods in stack traces in a different way: instead of constructing the stack trace eagerly when it contains a dynamic method, save the list of dynamic methods into the Exception object so they are kept alive.
Marek Safar [Fri, 21 Aug 2015 19:36:52 +0000 (21:36 +0200)]
[runtime] Remove eager exception stack construction when it contains dynamic method. Fixes #33064
We used to construct exception stack traces as string at throw site (for dynamic methods) but
that does not work correctly because exception stack trace can be decomposed via
new StackTrace (exception) or merged via ExceptionDispatchInfo both of them need the exception
stack in raw form and not as a string.
Further the format used by local stack builder was not same as format used by
System.Diagnostics.StackTrace.
The orignal reason for the specialization was that dynamic method can be collected
before stack is rendered which leads to stack frame to be reported as
at <unknown method> instead of
at (wrapper dynamic-method)
That should be addressed by gc-link between dynamic method and exception or
stack-frame.
Zoltan Varga [Fri, 21 Aug 2015 18:15:24 +0000 (14:15 -0400)]
[arm64] Add gc_safe_point to cpu-arm64.md.
Rodrigo Kumpera [Fri, 21 Aug 2015 17:48:47 +0000 (13:48 -0400)]
[jit] Enable OP_GC_SAFE_POINT on ARM64
Rodrigo Kumpera [Fri, 21 Aug 2015 17:19:17 +0000 (13:19 -0400)]
[Facades] xammac_net_4_5 needs the reflection facades.
Rodrigo Kumpera [Fri, 21 Aug 2015 00:07:46 +0000 (20:07 -0400)]
[BCL] Fix xammac_4_5 build of the Facades.
Rodrigo Kumpera [Thu, 20 Aug 2015 23:48:15 +0000 (19:48 -0400)]
[BCL] Partial compilation fix for xammac_4_5. Facades still busted.
Rodrigo Kumpera [Thu, 20 Aug 2015 21:23:53 +0000 (17:23 -0400)]
[arm64] Fix MONO_CONTEXT_GET_CURRENT so it can be used multiple times in the same compilation unit.
Marek Safar [Thu, 20 Aug 2015 21:25:24 +0000 (23:25 +0200)]
Fixes build of xammac new facades
Zoltan Varga [Thu, 20 Aug 2015 20:46:22 +0000 (16:46 -0400)]
[coop] Avoid polling in the mono_thread_interruption_checkpoint () icall wrapper, it could lead to infinite recursion if the polling flag is not cleared fast enough.
Zoltan Varga [Mon, 17 Aug 2015 19:21:25 +0000 (15:21 -0400)]
[coop] Avoid taking the gc lock when rehashing mono_g_hash tables, its not needed with the coop gc since the gc cannot preempnt that code.
Zoltan Varga [Thu, 20 Aug 2015 17:37:16 +0000 (13:37 -0400)]
[coop] Enter blocking mode before waiting on a condvar in the threadpool code.
Marek Safar [Thu, 20 Aug 2015 13:40:26 +0000 (15:40 +0200)]
Fixes mobile build
BogdanovKirill [Thu, 20 Aug 2015 10:51:35 +0000 (15:51 +0500)]
[ChunkStream] CPU and memory leak fix when writing and reading infinitely
The problem is connected with "chunks" field in ChunkStream class. As you can see in "ReadFromChunks" method, the number of elements of this array continuously grows, because array's elements are not removed but just set to null. So, every subsequent call of this method will be slower than previous and will use additional memory more and more infinitely. Yes, we have "ResetBuffer" method than could clear "chunks" array, but nobody call it when the connection is infinite.
This change is released under the MIT license.