Rodrigo Kumpera [Wed, 18 Sep 2013 20:21:49 +0000 (16:21 -0400)]
Fix the Makefile addition of a new test.
Rodrigo Kumpera [Wed, 18 Sep 2013 20:12:00 +0000 (16:12 -0400)]
[runtime]Do an alignment check before using the atomic op.
Zoltan Varga [Wed, 18 Sep 2013 20:09:23 +0000 (22:09 +0200)]
Fix the DISABLE_JIT build.
Rodrigo Kumpera [Tue, 17 Sep 2013 23:25:27 +0000 (19:25 -0400)]
Add a sgen test for threads joining/leaving at random places.
Rodrigo Kumpera [Tue, 17 Sep 2013 23:23:08 +0000 (19:23 -0400)]
[sgen] Kill SgenThreadInfo::thread_is_dying in favor of the thread-info state information.
Rodrigo Kumpera [Tue, 17 Sep 2013 23:16:03 +0000 (19:16 -0400)]
[runtime]Properly set mono-thread state as when starting/running/shutting down/dead.
Rodrigo Kumpera [Tue, 17 Sep 2013 22:24:10 +0000 (18:24 -0400)]
[sgen]Remove doing_handshake field since the race condition it fixes is now handled by mono-threads.
Rodrigo Kumpera [Tue, 17 Sep 2013 21:04:53 +0000 (17:04 -0400)]
[io-layer] Fix a warning.
Rodrigo Kumpera [Tue, 17 Sep 2013 21:04:11 +0000 (17:04 -0400)]
[runtime] Small optimizations and cleanup in ves_icall_System_Array_FastCopy.
Rodrigo Kumpera [Tue, 17 Sep 2013 21:01:30 +0000 (17:01 -0400)]
[runtime]Add more fast variants of the mono_array functions as those shown up in profiling.
Rodrigo Kumpera [Tue, 17 Sep 2013 20:59:26 +0000 (16:59 -0400)]
[sgen] Force inlining of some perf-critical functions.
Rodrigo Kumpera [Tue, 17 Sep 2013 20:43:09 +0000 (16:43 -0400)]
[sgen]We no longer need joined_stw as new threads can't join once the suspend lock has been acquired.
Since no new thread can join until the collection is over, FOREACH_THREAD won't miss any thread.
Rodrigo Kumpera [Tue, 17 Sep 2013 19:29:54 +0000 (15:29 -0400)]
[runtime]Provide a consistent view of registered threads during suspend operations.
We previously failed to provide a consistent view of the registered threads set. This
would should up in the following ways:
-New threads would join in between two FOREACH_THREAD passes. The recently joined threads
lead to broken invariants that one loop carried to the other.
-Existing threads would leave during a FOREACH_THREAD. The now defunct threads lead
to code waiting them to ack back and deadlock in the process.
-It was possible to witness an in-progress cleanup. This would show up by
mono_thread_info_current returning null when it should not.
To amend this we provide a a consistent view of all registered threads once the global
suspend lock is acquired. This is done by acquiring that lock when registering/unregistering.
This allows us to remove some of the work-around in the sgen thread registration
code and avoid taking the GC lock.
Mark Probst [Tue, 17 Sep 2013 23:07:16 +0000 (16:07 -0700)]
[sgen] Don't stack overflow when there are too many binary protocol buffers.
Binary protocol buffers are linearly linked from newest to oldest, but need to be
written out from oldest to newest. This was sloppily implemented with a recursive
call, which caused a stack overflow when there were too many buffers. We now
allocate an array and store pointers to all the buffers in it, then iterate over it in
reverse.
mayerwin [Tue, 17 Sep 2013 17:14:04 +0000 (01:14 +0800)]
Fix: bug https://bugzilla.xamarin.com/show_bug.cgi?id=14811 (to be reviewed)
Atsushi Eno [Tue, 17 Sep 2013 17:09:28 +0000 (10:09 -0700)]
Merge pull request #756 from akoeplinger/fix-xmlreader
Fixing inconsistency in XmlSchemaValidatingReader between Mono and MS.NET
Rodrigo Kumpera [Tue, 17 Sep 2013 13:25:00 +0000 (06:25 -0700)]
Merge pull request #754 from blackfusion/master
[Scripts] Fix a Shebang in mono-test-install for freeBSD
Zoltan Varga [Tue, 17 Sep 2013 11:41:28 +0000 (13:41 +0200)]
[runtime] Fix a regression introduced by
55039913729e26c839e45ff05f17de1f2aa1c751. Use __builtin_popcountl () on 64 bit machines.
Zoltan Varga [Mon, 16 Sep 2013 21:26:24 +0000 (23:26 +0200)]
Disable a profiler test which fails on osx.
Zoltan Varga [Mon, 16 Sep 2013 21:09:56 +0000 (23:09 +0200)]
Fix the profiler tests.
Zoltan Varga [Mon, 16 Sep 2013 18:45:26 +0000 (20:45 +0200)]
Revert "Set tls->context.valid to FALSE if a thread is suspended in native code. Fixes #1540."
This reverts commit
5ddbe31ee5c42f5e379cb077e3473667791bc15a.
Revert this as its incorrect, and causes a regression (#14058).
Larry O'Brien [Mon, 16 Sep 2013 17:19:00 +0000 (07:19 -1000)]
[mdoc] Switched from swallowing error to guarded execution
Improves
a60ff0fd1e181cfde5b862cc491c682c11b9660a
Tests for file existence and outputs diagnostic rather than treating it as a local recoverable exception.
Leaving the question of general mdoc error-reporting for another day.
Zoltan Varga [Mon, 16 Sep 2013 13:02:06 +0000 (15:02 +0200)]
[runtime] Avoid constructing vtables in a few places during AOT.
Zoltan Varga [Sun, 15 Sep 2013 23:44:02 +0000 (01:44 +0200)]
[runtime] Avoid calling mono_resolve_patch_target () while AOTing, its not needed.
Zoltan Varga [Sun, 15 Sep 2013 23:21:06 +0000 (01:21 +0200)]
[runtime] Add support for constrained gsharedvt calls to normal virtual methods.
Zoltan Varga [Sun, 15 Sep 2013 16:52:38 +0000 (18:52 +0200)]
[runtime] Avoid looking up pinvoke addresses when AOT compiling.
Larry O'Brien [Sun, 15 Sep 2013 21:12:27 +0000 (11:12 -1000)]
Bugzilla 14672 (mdoc namespace-level summary and remarks elements weren't being included)
commit
6ec0ddc7e5c4d5640da7420600898c10578a7974
Author: Larry O'Brien <lobrien@knowing.net>
Date: Sun Sep 15 11:03:32 2013 -1000
Coding style
commit
f034514fca8298a8ed2a167f3ab288f32bc7c74f
Author: Larry O'Brien <lobrien@knowing.net>
Date: Sun Sep 15 10:28:47 2013 -1000
Bugzilla 14672
Added namespace file ("ns-{namespace}.xml") summary and remarks into the nsSummaries, which results in displaying the data prior to the namespace type-list when the user searches at the namespace level.
Appears to only be necessary for native viewer (Web viewer for some reason "knows" about the summaries).
Zoltan Varga [Sun, 15 Sep 2013 01:21:44 +0000 (03:21 +0200)]
[runtime] Fix a few more places which accessed jinfo->method directly.
Zoltan Varga [Sun, 15 Sep 2013 00:42:28 +0000 (02:42 +0200)]
Fix a problem introduced by
c6989ab9f905ae27773140c8bf8c8e27ca4a6a1e. Avoid foreach on _items since that includes empty entries too.
Zoltan Varga [Sat, 14 Sep 2013 23:51:25 +0000 (01:51 +0200)]
[sdb] Simplify tests.
Zoltan Varga [Sat, 14 Sep 2013 23:39:05 +0000 (01:39 +0200)]
Update AOT after changes to SeqPoint in
488888ce612491aca1c97f79ddbad685302d43cc.
Zoltan Varga [Sat, 14 Sep 2013 23:36:38 +0000 (01:36 +0200)]
[sdb] Add an implicit seq point after every nonvoid call and make step over skip them. Fixes #10782.
Zoltan Varga [Sat, 14 Sep 2013 19:10:02 +0000 (21:10 +0200)]
Fix the ENABLE_JIT_MAP build. Fixes #14752.
Zoltan Varga [Tue, 10 Sep 2013 14:39:46 +0000 (16:39 +0200)]
[runtime] Make mono_install_handler_block_guard () async-safe. Fixes #14073.
Zoltan Varga [Tue, 10 Sep 2013 14:28:54 +0000 (16:28 +0200)]
[runtime] Make the stack walking code async safe when run in an async context.
Zoltan Varga [Tue, 10 Sep 2013 14:26:37 +0000 (16:26 +0200)]
[runtime] Make mono_aot_find_jit_info () async-safe by allocating memory from the lock-free domain mempool, avoiding loading metadata, and caching jit info entries in a lock-free array.
Zoltan Varga [Tue, 10 Sep 2013 14:12:47 +0000 (16:12 +0200)]
[runtime] Add a 'is_async_context' property to MonoThreadInfo, allowing functions to detect whenever they are in async context without having to pass an 'async' parameter around.
Zoltan Varga [Tue, 10 Sep 2013 14:07:19 +0000 (16:07 +0200)]
[runtime] Add a lock-free mempool allocator to MonoDomain.
Marek Safar [Fri, 13 Sep 2013 16:55:09 +0000 (18:55 +0200)]
Move dynamic handling out of Binary::DoResolve to reduce stack size
Marek Safar [Fri, 13 Sep 2013 15:49:49 +0000 (17:49 +0200)]
Add new test
Zoltan Varga [Fri, 13 Sep 2013 16:46:26 +0000 (18:46 +0200)]
Fix a warning.
Zoltan Varga [Tue, 3 Sep 2013 03:04:58 +0000 (05:04 +0200)]
[runtime] Make the address->aot module lookup in mono_jit_info_table_find () async-safe by storing the mapping in another MonoJitInfoTable.
Zoltan Varga [Tue, 3 Sep 2013 00:47:56 +0000 (02:47 +0200)]
Extract the jit info table code into separate functions so we it can be used in more places.
Zoltan Varga [Tue, 10 Sep 2013 14:00:19 +0000 (16:00 +0200)]
[runtime] Avoid direct access to MonoJitInfo.method, use an accessor function instead.
Mark Probst [Fri, 13 Sep 2013 16:21:32 +0000 (09:21 -0700)]
[sgen] Fix a toggleref array resize bug.
Atsushi Eno [Fri, 13 Sep 2013 15:56:48 +0000 (00:56 +0900)]
UTF8Encoding.GetMaxByteCount() was returning too big number.
The thing is, unlike the standards describe in codepoints, .NET String
characters beyond BMP are represented as surrogate pairs and they can be
converted all in 3 bytes.
The implementation didn't take care of encoder fallbacks, or byte order
marks either, so take them into considertion too.
Marek Safar [Fri, 13 Sep 2013 14:52:30 +0000 (16:52 +0200)]
Don't crash when unreachable code contains unreachable constant switch. Fixes #14587
Zoltan Varga [Fri, 13 Sep 2013 13:12:21 +0000 (15:12 +0200)]
Fix parallel compression in mkbundle, not enabled yet.
Marek Safar [Fri, 13 Sep 2013 12:49:23 +0000 (14:49 +0200)]
Unify Array/List FindIndex/FindLastIndex handling and argument checking. Fixes #14632
Sebastien Pouliot [Thu, 12 Sep 2013 22:05:38 +0000 (18:05 -0400)]
Move undef HAVE_SIOCGIFCONF later so it's not defined again by other includes
Miguel de Icaza [Thu, 12 Sep 2013 21:21:39 +0000 (17:21 -0400)]
Simplify locale fetching, we have very simple needs
Miguel de Icaza [Thu, 12 Sep 2013 20:54:18 +0000 (16:54 -0400)]
Add workaround for DNS garbage return
Rodrigo Kumpera [Thu, 12 Sep 2013 20:41:32 +0000 (16:41 -0400)]
[bcl] Fix BlockingCollection.TakeFromAny to handle when no items are available on the first collection. Fixes #6095.
Marek Safar [Thu, 12 Sep 2013 14:59:46 +0000 (16:59 +0200)]
Bump ikvm. Fixes the build
Sebastien Pouliot [Thu, 12 Sep 2013 00:57:59 +0000 (20:57 -0400)]
Reduce/remove the probability of having test failures wrt UdpClient.Available
Marek Safar [Wed, 11 Sep 2013 21:17:20 +0000 (23:17 +0200)]
Bump ikvm
Zoltan Varga [Wed, 11 Sep 2013 20:51:47 +0000 (22:51 +0200)]
Use __builtin_popcount () in mono_bitset_count ().
Miguel de Icaza [Wed, 11 Sep 2013 20:26:47 +0000 (16:26 -0400)]
Remove comment, refer to the spec instead
Miguel de Icaza [Wed, 11 Sep 2013 19:47:10 +0000 (15:47 -0400)]
Remove text from article
Martin Baulig [Wed, 11 Sep 2013 19:11:51 +0000 (21:11 +0200)]
Bump ikvm again to only pick-up my single commit.
I created a new 'mono-master' branch in ivkm-fork, which is based
at the previous ikvm commit, then cherry-picked my single commit.
Apparently, there are API changes in IVKM which prevent it from
being applied cleanly.
Miguel de Icaza [Wed, 11 Sep 2013 18:30:43 +0000 (14:30 -0400)]
Rewrite the header file, based on the internal mono-hash.c contents
Miguel de Icaza [Thu, 5 Sep 2013 16:12:04 +0000 (12:12 -0400)]
More inline docs
Martin Baulig [Wed, 11 Sep 2013 18:46:36 +0000 (20:46 +0200)]
Martin Baulig [Wed, 11 Sep 2013 18:41:56 +0000 (20:41 +0200)]
Add comment that this must be kept in sync with ikvm.
Marek Safar [Wed, 11 Sep 2013 16:31:19 +0000 (18:31 +0200)]
Revert "Bump ikvm"
This reverts commit
89166a0ea7347ac95fc3c9cfc645981d7c2c26e1.
Marek Safar [Wed, 11 Sep 2013 16:25:45 +0000 (18:25 +0200)]
Bump ikvm
Martin Baulig [Wed, 11 Sep 2013 13:42:19 +0000 (15:42 +0200)]
[System.Core]: Minor API fix in the Non-DLR version of System.Linq.Expressions.
Martin Baulig [Wed, 11 Sep 2013 13:39:21 +0000 (15:39 +0200)]
Use ecma.pub for System.Xml.Serialization.
Martin Baulig [Wed, 11 Sep 2013 13:37:06 +0000 (15:37 +0200)]
Use msfinal.pub for System.Net in .NET 4.0/4.5.
Alexander Köplinger [Wed, 11 Sep 2013 10:38:19 +0000 (12:38 +0200)]
Fixed inconsistency in XmlSchemaValidatingReader between Mono and MS.NET
Rodrigo Kumpera [Tue, 10 Sep 2013 23:43:09 +0000 (19:43 -0400)]
Fix the OSX and Windows build.
Rodrigo Kumpera [Tue, 10 Sep 2013 22:41:38 +0000 (18:41 -0400)]
Improve the build system.
Marek Safar [Tue, 10 Sep 2013 13:50:01 +0000 (15:50 +0200)]
Bump ikvm
Marek Safar [Tue, 10 Sep 2013 13:44:18 +0000 (15:44 +0200)]
Don't set sealed flag for imported static types
Marek Safar [Tue, 10 Sep 2013 12:56:27 +0000 (14:56 +0200)]
Don't emit inflated type parameter constraints which can collide with special constraint types.
Marek Safar [Tue, 10 Sep 2013 08:13:49 +0000 (10:13 +0200)]
Add System.ServiceModel.Activation assembly. Fixes #14544
Rodrigo Kumpera [Mon, 9 Sep 2013 18:48:48 +0000 (14:48 -0400)]
[verifier]Check generic constraints for duplicates. Fixes #1782.
Marek Safar [Mon, 9 Sep 2013 17:15:23 +0000 (10:15 -0700)]
Merge pull request #755 from ondrejmyska/master
Suggestion fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=6327
Rodrigo Kumpera [Mon, 9 Sep 2013 16:08:41 +0000 (12:08 -0400)]
[runtime] Fix a loader leak in the aot compiler.
Rodrigo Kumpera [Mon, 9 Sep 2013 15:20:59 +0000 (11:20 -0400)]
[runtime] Make suspend work during thread cleanup. Fixes #14555
SDB does suspend/resume during thread cleanup. It used to work until I introduced
critical regions. This won't work anymore as we need to lookup the thread info object
and during cleanup it will be gone.
The fix is to introduce mono_thread_info_current_slow which is a variant of
mono_thread_info_current that does search the thread list if the TLS key
is gone.
Ondrej Myska [Mon, 9 Sep 2013 15:19:34 +0000 (17:19 +0200)]
Suggestion fix for bug https://bugzilla.xamarin.com/show_bug.cgi?id=6327
Zoltan Varga [Mon, 9 Sep 2013 15:15:39 +0000 (17:15 +0200)]
[runtime] Fix a nullref when casting a null object to a complex type when using --debug=casts. Fixes #14552/#14493.
Marek Safar [Mon, 9 Sep 2013 07:42:53 +0000 (09:42 +0200)]
Set empty string to TraceListeners for empty assert message. Fixes #14505
Marek Safar [Mon, 9 Sep 2013 07:36:03 +0000 (09:36 +0200)]
Cleanup TraceImpl
Marek Safar [Mon, 9 Sep 2013 07:10:24 +0000 (09:10 +0200)]
Fixes parallel enumerable index counter. Fixes #14515
Raphael Boissel [Sun, 8 Sep 2013 20:40:30 +0000 (22:40 +0200)]
[Scripts] Fix a Shebang in mono-test-install for freeBSD
Zoltan Varga [Sun, 8 Sep 2013 09:04:38 +0000 (11:04 +0200)]
[runtime] Force the usage of --host=i686-pc-mingw32 when running configure on windows.
Marek Safar [Sun, 8 Sep 2013 08:58:46 +0000 (10:58 +0200)]
Don't print empty detailed assert message
Zoltan Varga [Sun, 8 Sep 2013 08:52:42 +0000 (10:52 +0200)]
[runtime] Fix the mingw build by defining InterlockedCompareExchange64 () which is missing from mingw's winbase.h.
Zoltan Varga [Sat, 7 Sep 2013 04:30:50 +0000 (06:30 +0200)]
[sdb] Add support for invoking interface methods. Fixes #14503.
Martin Baulig [Fri, 6 Sep 2013 13:58:42 +0000 (15:58 +0200)]
[System]: WebRequest.GetSystemProxy(): Return custom proxy for monodroid.
On ICS and newer, we can use Java.Net.ProxySelector, which supports
per-access point proxy settings. Fixes #12640.
Rodrigo Kumpera [Fri, 6 Sep 2013 21:22:02 +0000 (17:22 -0400)]
Add another extension point to the runtime.
Mark Probst [Fri, 6 Sep 2013 17:46:31 +0000 (10:46 -0700)]
[runtime] Thread teardown race condition. Fixes #13813.
Marek Safar [Fri, 6 Sep 2013 11:39:49 +0000 (13:39 +0200)]
Implements parsing of multi value User-Agent string. Fixes #8719
Zoltan Varga [Fri, 6 Sep 2013 04:43:12 +0000 (06:43 +0200)]
Zoltan Varga [Fri, 6 Sep 2013 01:29:41 +0000 (03:29 +0200)]
[runtime] Add more logging to a test which fails on wrench.
Zoltan Varga [Fri, 6 Sep 2013 00:22:58 +0000 (02:22 +0200)]
[runtime] Make a marshalling test more robust.
Zoltan Varga [Thu, 5 Sep 2013 16:13:26 +0000 (18:13 +0200)]
Avoid the managed->copy for ref vtypes with an [In] attribute in native-to-managed wrappers. Fixes #14069.
Zoltan Varga [Thu, 5 Sep 2013 15:43:38 +0000 (17:43 +0200)]
Avoid printing an error message in UnixRegistryApi which can happen during normal usage when a root process has created a registry under the mono installation prefix. Fixes #14366.
Rodrigo Kumpera [Thu, 5 Sep 2013 15:13:17 +0000 (11:13 -0400)]
[runtime]Fix the OSX build due to crappy compilers.