mono.git
7 years ago[sgen] Split up concurrent sweep from worker logic
Vlad Brezae [Wed, 29 Mar 2017 11:17:02 +0000 (14:17 +0300)]
[sgen] Split up concurrent sweep from worker logic

While this was ok because workers and sweep could not run at the same time, this is no longer the case with parallel nursery collections. In the future, if many threads will be required for different types of jobs, we can consider running them on same native thread, but the jobs will still need to have appropriate contexts (the SgenThreadPool they belong to).

7 years ago[sgen] Increase gray stack section size
Vlad Brezae [Tue, 28 Mar 2017 21:12:02 +0000 (00:12 +0300)]
[sgen] Increase gray stack section size

Stealing a gray section is relatively expensive since it requires locking. We want to avoid repeated stealing, since only one gray queue section is stolen at a time (in the case of the parallel collector).

7 years ago[sgen] Increase parallelization of minors
Vlad Brezae [Fri, 3 Mar 2017 11:54:14 +0000 (13:54 +0200)]
[sgen] Increase parallelization of minors

7 years ago[sgen] Parallel nursery collections
Vlad Brezae [Fri, 3 Mar 2017 10:38:15 +0000 (12:38 +0200)]
[sgen] Parallel nursery collections

Scans the card table and the roots on the workers, including draining the stack.

7 years ago[sgen] Remove CARDTABLE_STATS
Vlad Brezae [Thu, 2 Mar 2017 21:35:58 +0000 (23:35 +0200)]
[sgen] Remove CARDTABLE_STATS

For dirty card counts we already have heavy counters. For card table scan time we already have the binary protocol which has more flexibility.

7 years ago[sgen] Make sure workers don't have evacuating blocks on the free-lists
Vlad Brezae [Thu, 2 Mar 2017 14:44:56 +0000 (16:44 +0200)]
[sgen] Make sure workers don't have evacuating blocks on the free-lists

Double copying of an object during a collection is not allowed. If we allocate from an evacuating block this can happen.

7 years ago[sgen] Blocks on the freelist don't need to have been swept
Vlad Brezae [Thu, 2 Mar 2017 14:37:13 +0000 (16:37 +0200)]
[sgen] Blocks on the freelist don't need to have been swept

7 years ago[sgen] Shutdown thread pool worker even if it's not active
Vlad Brezae [Thu, 2 Mar 2017 14:28:25 +0000 (16:28 +0200)]
[sgen] Shutdown thread pool worker even if it's not active

7 years ago[sgen] Don't use workers during finishing pause if we're not parallel
Vlad Brezae [Wed, 1 Mar 2017 13:41:27 +0000 (15:41 +0200)]
[sgen] Don't use workers during finishing pause if we're not parallel

Worker can be used though to drain the gray stack of workers after a forced finish (at the start of the finishing pause).

7 years ago[sgen] Add scan/copy context for the simple parallel nursery
Vlad Brezae [Wed, 1 Mar 2017 00:58:01 +0000 (02:58 +0200)]
[sgen] Add scan/copy context for the simple parallel nursery

7 years ago[sgen] Add option for parallel nursery collector
Vlad Brezae [Wed, 1 Mar 2017 00:03:14 +0000 (02:03 +0200)]
[sgen] Add option for parallel nursery collector

7 years ago[bcl] Avoid waiting for events inside a finalizer in Process.WaitForExit () because...
Zoltan Varga [Thu, 30 Mar 2017 01:42:01 +0000 (21:42 -0400)]
[bcl] Avoid waiting for events inside a finalizer in Process.WaitForExit () because it can hang if the thread which sets the event is aborted during shutdown. Fixes #53843. (#4609) (#4617)

7 years ago[msvc] Update csproj files
monojenkins [Wed, 29 Mar 2017 16:21:14 +0000 (16:21 +0000)]
[msvc] Update csproj files

7 years agoMerge pull request #4540 from kumpera/android-changes-part1
Rodrigo Kumpera [Wed, 29 Mar 2017 15:46:29 +0000 (11:46 -0400)]
Merge pull request #4540 from kumpera/android-changes-part1

[bcl+runtime] Multiple small cleanups to Android.

7 years ago[tools] Remove unused sources
Marek Safar [Wed, 29 Mar 2017 10:11:33 +0000 (12:11 +0200)]
[tools] Remove unused sources

7 years ago[jit] Cleanup the signature of the mono_arch_get_static_rgctx_trampoline () function...
Zoltan Varga [Wed, 29 Mar 2017 09:38:30 +0000 (05:38 -0400)]
[jit] Cleanup the signature of the mono_arch_get_static_rgctx_trampoline () function. (#4605)

Remove the unused MonoMethod argument, and rename the 'mrgctx' argument to 'arg', since it can be any value, not just
an mrgctx.

7 years agoBump cecil
Marek Safar [Wed, 29 Mar 2017 07:56:43 +0000 (09:56 +0200)]
Bump cecil

7 years agoBump corefx
Marek Safar [Thu, 23 Mar 2017 22:55:58 +0000 (23:55 +0100)]
Bump corefx

7 years ago[jit] Add ref types to mini_get_underlying_type (), use it to simplify the switch...
Zoltan Varga [Wed, 29 Mar 2017 00:17:31 +0000 (20:17 -0400)]
[jit] Add ref types to mini_get_underlying_type (), use it to simplify the switch loops in the jit. (#4606)

7 years ago[threadpool] Pass callback at initialization (#4546)
Ludovic Henry [Tue, 28 Mar 2017 21:03:31 +0000 (17:03 -0400)]
[threadpool] Pass callback at initialization (#4546)

This remove the possibility to execute different callbacks on the threadpool, but this allows us to remove the work_items_lock, which is called on the hot path of the ThreadPool.

7 years ago[msvc] Update csproj files
monojenkins [Tue, 28 Mar 2017 16:42:55 +0000 (16:42 +0000)]
[msvc] Update csproj files

7 years agoMerge pull request #4168 from xmcclure/aot-man
Andi McClure [Tue, 28 Mar 2017 18:14:08 +0000 (14:14 -0400)]
Merge pull request #4168 from xmcclure/aot-man

Correctly document --aot options in man page

7 years agoRemove 'experimental' label from full/hybrid AOT in manpage
Andi McClure [Mon, 27 Mar 2017 21:58:27 +0000 (17:58 -0400)]
Remove 'experimental' label from full/hybrid AOT in manpage

7 years agoCorrectly document --aot options in man page
Andi McClure [Mon, 27 Mar 2017 21:50:46 +0000 (17:50 -0400)]
Correctly document --aot options in man page

- Ensure all AOT options are both documented and listed in
  alphabetical order in both the manpage and --help line
- Ensure all exceptoins are commented in the aot-compiler.c source
  with "intentionally udnocumented"

7 years ago[mono] Remove unused icall
Marek Safar [Mon, 27 Mar 2017 22:28:08 +0000 (00:28 +0200)]
[mono] Remove unused icall

7 years agoUpdate copyright years
Miguel de Icaza [Tue, 28 Mar 2017 15:18:43 +0000 (11:18 -0400)]
Update copyright years

7 years ago[corlib] Add back X509 support for watchOS.
Rolf Bjarne Kvinge [Thu, 23 Mar 2017 17:43:29 +0000 (18:43 +0100)]
[corlib] Add back X509 support for watchOS.

Otherwise we'd be regressing existing (and working) behavior.

7 years agoDisable a few x509 tests that fail on older macOS
Chris Hamons [Mon, 27 Mar 2017 20:05:09 +0000 (15:05 -0500)]
Disable a few x509 tests that fail on older macOS

- Handles https://bugzilla.xamarin.com/show_bug.cgi?id=53958
- https://bugzilla.xamarin.com/show_bug.cgi?id=53689 is filed to turn them
  back on later with a better version check
- SecCertificateCreateWithData handles invalid arguments differently based on
  macOS version

7 years ago[corlib] Add more Array tests
Marek Safar [Thu, 23 Mar 2017 13:12:13 +0000 (14:12 +0100)]
[corlib] Add more Array tests

7 years ago[System.Windows.Forms] Fixes DataGridViewColumnCollection comparer not to return...
Marek Safar [Wed, 22 Mar 2017 14:05:53 +0000 (15:05 +0100)]
[System.Windows.Forms] Fixes DataGridViewColumnCollection comparer not to return 1 on match

7 years ago[System.Windows.Forms] Imrove DataGridViewColumnCollectionTest
Marek Safar [Wed, 22 Mar 2017 14:04:21 +0000 (15:04 +0100)]
[System.Windows.Forms] Imrove DataGridViewColumnCollectionTest

7 years ago[corlib] Use array managed parts from corert to fix bugs in sorting and arguments...
Marek Safar [Fri, 17 Mar 2017 09:42:36 +0000 (10:42 +0100)]
[corlib] Use array managed parts from corert to fix bugs in sorting and arguments checking. Fixes #53196 and similar

7 years agoBump corert
Marek Safar [Tue, 21 Mar 2017 17:11:17 +0000 (18:11 +0100)]
Bump corert

7 years ago[corlib] Fix RegistryKeyTest cleanup
Marek Safar [Fri, 17 Mar 2017 09:08:37 +0000 (10:08 +0100)]
[corlib] Fix RegistryKeyTest cleanup

7 years agoMerge pull request #4594 from lambdageek/bug-53890
Andi McClure [Mon, 27 Mar 2017 19:15:26 +0000 (15:15 -0400)]
Merge pull request #4594 from lambdageek/bug-53890

[remoting] Pass correct object to invoke of IRemotingTypeInfo.CanCastTo

7 years agoMerge pull request #4570 from lateralusX/jlorenss/visual_studio_msbuild_fix
Johan Lorensson [Mon, 27 Mar 2017 07:04:53 +0000 (09:04 +0200)]
Merge pull request #4570 from lateralusX/jlorenss/visual_studio_msbuild_fix

Windows msbuild triggers too much to rebuild.

7 years agoAdd FieldInfoMirror.FullName (#4588)
Jb Evain [Sun, 26 Mar 2017 13:33:34 +0000 (06:33 -0700)]
Add FieldInfoMirror.FullName (#4588)

7 years ago[interp] call mono_unhandled_exception, so exit() is called with proper return code
Bernhard Urban [Sun, 26 Mar 2017 02:06:10 +0000 (22:06 -0400)]
[interp] call mono_unhandled_exception, so exit() is called with proper return code

7 years ago[interp] enable more tests for CI
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] enable more tests for CI

7 years ago[interp] support floating point in runtime_invoke
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] support floating point in runtime_invoke

7 years ago[interp] allow more gregs, enable pinvoke17.exe
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] allow more gregs, enable pinvoke17.exe

7 years ago[interp] throw NRE in mint_strlen
Bernhard Urban [Sun, 26 Mar 2017 02:06:09 +0000 (22:06 -0400)]
[interp] throw NRE in mint_strlen

7 years ago[interp] add write barriers
Bernhard Urban [Fri, 24 Mar 2017 23:32:20 +0000 (00:32 +0100)]
[interp] add write barriers

issues found with
`MONO_GC_DEBUG=3,collect-before-allocs,check-remset-consistency ../mini/mono-sgen --interpreter /Users/bernhardu/work/mono/b/lib/mono/4.5/mcs.exe hello.cs`

7 years ago[interp] respect reference type in stobj insn
Bernhard Urban [Fri, 24 Mar 2017 23:32:20 +0000 (00:32 +0100)]
[interp] respect reference type in stobj insn

stackval_from_data does everything for us.

7 years ago[remoting] Pass correct object to invoke of IRemotingTypeInfo.CanCastTo
Aleksey Kliger [Fri, 24 Mar 2017 22:47:38 +0000 (18:47 -0400)]
[remoting] Pass correct object to invoke of IRemotingTypeInfo.CanCastTo

Pass the payload of the coop handle as the 'this' object, not the handle
itself.

Add asserts in ves_icall_Remoting_RealProxy_InternalGetProxyType that
remote_class and the proxy_class are non-NULL.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=53890

7 years ago[docs] Update formatting in mono-api-utils.
Jon Purdy [Fri, 10 Mar 2017 21:10:49 +0000 (13:10 -0800)]
[docs] Update formatting in mono-api-utils.

7 years ago[docs] Update formatting in mono-api-unsorted.
Jon Purdy [Fri, 10 Mar 2017 21:10:02 +0000 (13:10 -0800)]
[docs] Update formatting in mono-api-unsorted.

7 years ago[docs] Update formatting in mono-api-type.
Jon Purdy [Fri, 10 Mar 2017 21:04:17 +0000 (13:04 -0800)]
[docs] Update formatting in mono-api-type.

7 years ago[docs] Update formatting in mono-api-threads.
Jon Purdy [Fri, 10 Mar 2017 20:59:51 +0000 (12:59 -0800)]
[docs] Update formatting in mono-api-threads.

7 years ago[docs] Update formatting in mono-api-string.
Jon Purdy [Fri, 10 Mar 2017 20:55:58 +0000 (12:55 -0800)]
[docs] Update formatting in mono-api-string.

7 years ago[docs] Update formatting in mono-api-security.
Jon Purdy [Fri, 10 Mar 2017 00:32:53 +0000 (16:32 -0800)]
[docs] Update formatting in mono-api-security.

7 years ago[docs] Update formatting in mono-api-reflection.
Jon Purdy [Fri, 10 Mar 2017 00:28:18 +0000 (16:28 -0800)]
[docs] Update formatting in mono-api-reflection.

7 years ago[docs] Update formatting in mono-api-profiler.
Jon Purdy [Fri, 10 Mar 2017 00:22:39 +0000 (16:22 -0800)]
[docs] Update formatting in mono-api-profiler.

7 years ago[docs] Update formatting in mono-api-object.
Jon Purdy [Fri, 10 Mar 2017 00:19:29 +0000 (16:19 -0800)]
[docs] Update formatting in mono-api-object.

7 years ago[docs] Update formatting in mono-api-methods.
Jon Purdy [Fri, 10 Mar 2017 00:09:45 +0000 (16:09 -0800)]
[docs] Update formatting in mono-api-methods.

7 years ago[docs] Update formatting in mono-api-metadata.
Jon Purdy [Thu, 9 Mar 2017 22:53:58 +0000 (14:53 -0800)]
[docs] Update formatting in mono-api-metadata.

7 years ago[docs] Update formatting in mono-api-jitinternal.
Jon Purdy [Thu, 9 Mar 2017 21:45:59 +0000 (13:45 -0800)]
[docs] Update formatting in mono-api-jitinternal.

7 years ago[docs] Update formatting in mono-api-jit.
Jon Purdy [Thu, 9 Mar 2017 21:29:09 +0000 (13:29 -0800)]
[docs] Update formatting in mono-api-jit.

7 years ago[docs] Update formatting in mono-api-internal.
Jon Purdy [Thu, 9 Mar 2017 21:23:27 +0000 (13:23 -0800)]
[docs] Update formatting in mono-api-internal.

7 years ago[docs] Update formatting in mono-api-image.
Jon Purdy [Thu, 9 Mar 2017 20:57:31 +0000 (12:57 -0800)]
[docs] Update formatting in mono-api-image.

7 years ago[docs] Update formatting in mono-api-gchandle.
Jon Purdy [Thu, 9 Mar 2017 20:19:13 +0000 (12:19 -0800)]
[docs] Update formatting in mono-api-gchandle.

7 years ago[docs] Update formatting in mono-api-gc.
Jon Purdy [Thu, 9 Mar 2017 20:16:58 +0000 (12:16 -0800)]
[docs] Update formatting in mono-api-gc.

7 years ago[docs] Update formatting in mono-api-exc.
Jon Purdy [Thu, 9 Mar 2017 01:45:48 +0000 (17:45 -0800)]
[docs] Update formatting in mono-api-exc.

7 years ago[docs] Update formatting in mono-api-embedding.
Jon Purdy [Thu, 9 Mar 2017 01:20:48 +0000 (17:20 -0800)]
[docs] Update formatting in mono-api-embedding.

7 years ago[docs] Update formatting in mono-api-dynamic-codegen.
Jon Purdy [Thu, 9 Mar 2017 01:14:15 +0000 (17:14 -0800)]
[docs] Update formatting in mono-api-dynamic-codegen.

7 years ago[docs] Update formatting in mono-api-domains.
Jon Purdy [Thu, 9 Mar 2017 01:04:16 +0000 (17:04 -0800)]
[docs] Update formatting in mono-api-domains.

7 years ago[docs] Update formatting in mono-api-debug.
Jon Purdy [Thu, 9 Mar 2017 00:41:50 +0000 (16:41 -0800)]
[docs] Update formatting in mono-api-debug.

7 years ago[docs] Update formatting in mono-api-counters.
Jon Purdy [Thu, 9 Mar 2017 00:41:33 +0000 (16:41 -0800)]
[docs] Update formatting in mono-api-counters.

7 years ago[docs] Update formatting in mono-api-class.
Jon Purdy [Wed, 8 Mar 2017 23:24:44 +0000 (15:24 -0800)]
[docs] Update formatting in mono-api-class.

7 years ago[docs] Update formatting in mono-api-class.
Jon Purdy [Wed, 8 Mar 2017 23:24:44 +0000 (15:24 -0800)]
[docs] Update formatting in mono-api-class.

7 years ago[docs] Update formatting in mono-api-assembly.
Jon Purdy [Wed, 8 Mar 2017 02:43:28 +0000 (18:43 -0800)]
[docs] Update formatting in mono-api-assembly.

7 years ago[exdoc] Enable formatting in deprecated annotations.
Jon Purdy [Wed, 8 Mar 2017 23:44:13 +0000 (15:44 -0800)]
[exdoc] Enable formatting in deprecated annotations.

7 years ago[exdoc] Handle punctuation better in code formatting.
Jon Purdy [Wed, 8 Mar 2017 02:42:39 +0000 (18:42 -0800)]
[exdoc] Handle punctuation better in code formatting.

7 years ago[docs] Use Doxygen syntax for Monodoc.
Jon Purdy [Tue, 28 Feb 2017 00:58:33 +0000 (16:58 -0800)]
[docs] Use Doxygen syntax for Monodoc.

7 years ago[exdoc] Update warnings.
Jon Purdy [Wed, 1 Mar 2017 02:34:06 +0000 (18:34 -0800)]
[exdoc] Update warnings.

7 years ago[exdoc] Support Doxygen syntax.
Jon Purdy [Tue, 28 Feb 2017 00:58:09 +0000 (16:58 -0800)]
[exdoc] Support Doxygen syntax.

7 years ago[docs] Fix exdoc warnings.
Jon Purdy [Thu, 23 Feb 2017 02:29:29 +0000 (18:29 -0800)]
[docs] Fix exdoc warnings.

7 years ago[exdoc] Refactor.
Jon Purdy [Thu, 23 Feb 2017 02:27:54 +0000 (18:27 -0800)]
[exdoc] Refactor.

Avoid globals, use proper data structures instead of strings, and
produce some warnings for documentation errors.

7 years ago[exdoc] Add missing dependency.
Jon Purdy [Tue, 21 Feb 2017 23:41:15 +0000 (15:41 -0800)]
[exdoc] Add missing dependency.

7 years ago[exdoc] Enable 'warnings' and 'strict'.
Jon Purdy [Tue, 21 Feb 2017 23:40:59 +0000 (15:40 -0800)]
[exdoc] Enable 'warnings' and 'strict'.

7 years ago[exdoc] Fix whitespace.
Jon Purdy [Tue, 21 Feb 2017 23:15:20 +0000 (15:15 -0800)]
[exdoc] Fix whitespace.

7 years ago[docs] Remove redundant filename.
Jon Purdy [Mon, 13 Feb 2017 23:42:55 +0000 (15:42 -0800)]
[docs] Remove redundant filename.

7 years ago[docs] Fix Doxygen errors.
Jon Purdy [Mon, 13 Feb 2017 23:33:41 +0000 (15:33 -0800)]
[docs] Fix Doxygen errors.

Doxygen treats '@code' as the start of a '@code'...'@endcode' block, so
it raised spurious "reached end of file while inside code block" errors
when '@code' was used to denote a parameter. Change these instances to
'\param code' (declaration) and '\p code' (mention).

7 years ago[docs] Enable documentation for utils.
Jon Purdy [Mon, 13 Feb 2017 23:10:40 +0000 (15:10 -0800)]
[docs] Enable documentation for utils.

7 years ago[docs] Enable documentation for mini.
Jon Purdy [Sat, 11 Feb 2017 01:17:57 +0000 (17:17 -0800)]
[docs] Enable documentation for mini.

7 years ago[docs] Enable documentation for sgen.
Jon Purdy [Fri, 10 Feb 2017 23:32:44 +0000 (15:32 -0800)]
[docs] Enable documentation for sgen.

7 years ago[docs] Enable documentation for metadata.
Jon Purdy [Fri, 10 Feb 2017 01:43:01 +0000 (17:43 -0800)]
[docs] Enable documentation for metadata.

7 years ago[docs] Improve Doxygen config.
Jon Purdy [Fri, 10 Feb 2017 01:43:07 +0000 (17:43 -0800)]
[docs] Improve Doxygen config.

7 years agoRevert "Update corefx"
Marek Safar [Fri, 24 Mar 2017 19:04:55 +0000 (20:04 +0100)]
Revert "Update corefx"

This reverts commit 2a2c317d07e389088737b391e97853fdb6dbc390.

7 years ago[tests] Remove duplicate property
Marek Safar [Fri, 24 Mar 2017 19:04:03 +0000 (20:04 +0100)]
[tests] Remove duplicate property

7 years agoMerge pull request #4590 from xmcclure/master
Andi McClure [Fri, 24 Mar 2017 18:42:43 +0000 (14:42 -0400)]
Merge pull request #4590 from xmcclure/master

Improve "Could not resolve type with token" exception message

7 years agoImprove "Could not resolve type with token" exception message
Andi McClure [Fri, 24 Mar 2017 18:37:26 +0000 (14:37 -0400)]
Improve "Could not resolve type with token" exception message

7 years agoUpdate corefx
Marek Safar [Fri, 24 Mar 2017 18:36:23 +0000 (19:36 +0100)]
Update corefx

7 years ago[mcs] Reset also all partial parts current-type
Marek Safar [Fri, 24 Mar 2017 14:36:31 +0000 (15:36 +0100)]
[mcs] Reset also all partial parts current-type

7 years agoMerge pull request #4503 from BrzVlad/fix-appdomain-unload
Vlad Brezae [Fri, 24 Mar 2017 14:21:30 +0000 (16:21 +0200)]
Merge pull request #4503 from BrzVlad/fix-appdomain-unload

[runtime] Fix abort issues

7 years agoA few fixes to the man page
Miguel de Icaza [Fri, 24 Mar 2017 14:01:01 +0000 (10:01 -0400)]
A few fixes to the man page

7 years ago[bcl] Add a finalizer to MemoryMappedFile.
Zoltan Varga [Thu, 23 Mar 2017 17:34:57 +0000 (13:34 -0400)]
[bcl] Add a finalizer to MemoryMappedFile.

7 years ago[System.Data] Update tests for mobile profiles
Marek Safar [Fri, 24 Mar 2017 13:15:14 +0000 (14:15 +0100)]
[System.Data] Update tests for mobile profiles

7 years ago[runtime] Don't reset abort exception in invoke wrapper
Vlad Brezae [Thu, 23 Mar 2017 22:17:30 +0000 (00:17 +0200)]
[runtime] Don't reset abort exception in invoke wrapper

It leads to missing self aborts on full-aot.

7 years ago[runtime] Improve debugging of thread interruptions
Vlad Brezae [Mon, 20 Mar 2017 23:34:49 +0000 (01:34 +0200)]
[runtime] Improve debugging of thread interruptions