mono.git
9 years agoMerge pull request #1326 from BrzVlad/master
Mark Probst [Thu, 9 Oct 2014 18:43:03 +0000 (11:43 -0700)]
Merge pull request #1326 from BrzVlad/master

[sgen] Fix pointer access.

9 years ago[runtime] Remove pre WinXP SP2 windows support code.
Zoltan Varga [Thu, 9 Oct 2014 18:04:20 +0000 (14:04 -0400)]
[runtime] Remove pre WinXP SP2 windows support code.

9 years ago[runtime] Use the functionality in mono-proclib.c to get the current pid, remove...
Zoltan Varga [Thu, 9 Oct 2014 17:04:41 +0000 (13:04 -0400)]
[runtime] Use the functionality in mono-proclib.c to get the current pid, remove duplicate code from the io-layer.

9 years ago[runtime] Use the functionality in mono-proclib.c to enumerate processes, remove...
Zoltan Varga [Thu, 9 Oct 2014 16:56:04 +0000 (12:56 -0400)]
[runtime] Use the functionality in mono-proclib.c to enumerate processes, remove duplicate code from the io-layer.

9 years agoFix oops in DataContractJsonSerializer fix
Alexis Christoforides [Thu, 9 Oct 2014 05:04:34 +0000 (22:04 -0700)]
Fix oops in DataContractJsonSerializer fix

9 years ago[bcl] Use List instead of ArrayList () in a few places.
Zoltan Varga [Wed, 8 Oct 2014 20:12:01 +0000 (16:12 -0400)]
[bcl] Use List instead of ArrayList () in a few places.

9 years ago[bcl] Free strings allocated using Marshal.SecureStringToBSTR () using Marshal.ZeroFr...
Zoltan Varga [Wed, 8 Oct 2014 19:12:26 +0000 (15:12 -0400)]
[bcl] Free strings allocated using Marshal.SecureStringToBSTR () using Marshal.ZeroFreeBSTR ().

9 years agoMerge pull request #1330 from esdrubal/blockingcollection
Marek Safar [Wed, 8 Oct 2014 19:02:54 +0000 (15:02 -0400)]
Merge pull request #1330 from esdrubal/blockingcollection

Improved BlockingCollection.AddAny.

9 years ago[threaddpool] Fix deadlock in thread pool with monitor thread (2nd attempt)
Ludovic Henry [Wed, 8 Oct 2014 17:52:55 +0000 (13:52 -0400)]
[threaddpool] Fix deadlock in thread pool with monitor thread (2nd attempt)

Because the monitor thread was not marked as background thread, remove_and_abort_threads (threads.c:2807) would mark it as needed to be waited to shutdown the runtime, and wait_for_tids (threads.c:2652) would then wait indefinitely for it to finish. The issue was that the monitor was waiting on the semaphore monitor_sem, and thus would never exit.

Thread 7 (Thread 0x1c13 of process 99776):
#0  0x00007fff86590a56 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00000001003cc03a in mono_sem_wait (sem=0x1004f7f50, alertable=0) at mono-semaphore.c:103
#2  0x00000001002cef41 in monitor_thread (unused=0x0) at threadpool.c:898
#3  0x00000001002cb78f in start_wrapper_internal (data=0x10500abf0) at threads.c:657
#4  0x00000001002cb4a1 in start_wrapper (data=0x10500abf0) at threads.c:704
#5  0x00000001003d61d4 in inner_start_thread (arg=0x7fff5fbfe500) at mono-threads-posix.c:84
#6  0x00007fff8e7c9899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib
#7  0x00007fff8e7c972a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib
#8  0x00007fff8e7cdfc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x1503 of process 99776):
#0  0x00007fff86594716 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff8e7cbc3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib
#2  0x000000010039cfaa in _wapi_handle_timedwait_signal_handle (handle=0xa55, timeout=0x0, alertable=1, poll=0) at handles.c:1595
#3  0x000000010039d03d in _wapi_handle_wait_signal_handle (handle=0xa55, alertable=1) at handles.c:1540
#4  0x00000001003b7ba3 in WaitForSingleObjectEx (handle=0xa55, timeout=4294967295, alertable=1) at wait.c:194
#5  0x00000001003b865d in WaitForMultipleObjectsEx (numobjects=1, handles=0x7fff5fbff1f8, waitall=1, timeout=4294967295, alertable=1) at wait.c:516
#6  0x00000001002c75df in wait_for_tids (wait=0x7fff5fbff1f8, timeout=4294967295) at threads.c:2658
#7  0x00000001002c70e5 in mono_thread_manage () at threads.c:2951
#8  0x00000001000d551b in mono_main (argc=6, argv=0x7fff5fbff9e8) at driver.c:2021
#9  0x0000000100001bd1 in mono_main_with_options (argc=6, argv=0x7fff5fbff9e8) at ./main.c:91
#10 0x00000001000017d3 in main (argc=6, argv=0x7fff5fbff9e8) at ./main.c:122

Thanks @akoeplinger for the help debugging

9 years agoRefactored AddToAny and TakeFromAny to reuse code.
Marcos Henrich [Wed, 8 Oct 2014 11:59:42 +0000 (12:59 +0100)]
Refactored AddToAny and TakeFromAny to reuse code.

9 years agoImproved BlockingCollection.AddAny. Fixes #22775.
Marcos Henrich [Wed, 8 Oct 2014 11:16:36 +0000 (12:16 +0100)]
Improved BlockingCollection.AddAny. Fixes #22775.
AddAny no longer consumes OperationCanceledException.
AddAny no longer blocks while adding an item to the first collection when its full.

9 years agoTest BlockCollection.AddAny. Covers #22775.
Marcos Henrich [Wed, 8 Oct 2014 10:58:26 +0000 (11:58 +0100)]
Test BlockCollection.AddAny. Covers #22775.

9 years agoBlockingCollection.Add was adding one more item than it should.
Marcos Henrich [Wed, 8 Oct 2014 10:51:59 +0000 (11:51 +0100)]
BlockingCollection.Add was adding one more item than it should.

9 years agoTest that BlockingCollection.Add blocks when there is no more space.
Marcos Henrich [Wed, 8 Oct 2014 09:41:14 +0000 (10:41 +0100)]
Test that BlockingCollection.Add blocks when there is no more space.

9 years ago[jit] Extract the ctor calling code from the NEWOBJ implementation into a separate...
Zoltan Varga [Wed, 8 Oct 2014 00:44:28 +0000 (20:44 -0400)]
[jit] Extract the ctor calling code from the NEWOBJ implementation into a separate function.

9 years ago[jit] Clean up the jit failure handling code a bit, move the the bulk of the eror...
Zoltan Varga [Wed, 8 Oct 2014 00:20:58 +0000 (20:20 -0400)]
[jit] Clean up the jit failure handling code a bit, move the the bulk of the eror handling macros into functions, unify the cleanup code at the end of mono_method_to_ir ().

9 years ago[bcl] Implement KnownTypes for DataContractJsonSerializer. Fixes #23058 and polymorph...
Alexis Christoforides [Tue, 7 Oct 2014 23:23:37 +0000 (16:23 -0700)]
[bcl] Implement KnownTypes for DataContractJsonSerializer. Fixes #23058 and polymorphism support.
Also discarded old __type hint behavior in JsonSerializationReader that potentially allowed any loaded type to be instantiated.

9 years ago[tests] Add tests for Bug #23058 and polymorphism/known types in DataContractJsonSeri...
Alexis Christoforides [Tue, 7 Oct 2014 23:18:25 +0000 (16:18 -0700)]
[tests] Add tests for Bug #23058 and polymorphism/known types in DataContractJsonSerializer.

9 years ago[threaddpool] Fix deadlock in thread pool with monitor thread
Ludovic Henry [Tue, 7 Oct 2014 22:14:04 +0000 (18:14 -0400)]
[threaddpool] Fix deadlock in thread pool with monitor thread

Because the monitor thread was not marked as background thread, remove_and_abort_threads (threads.c:2807) would mark it as needed to be waited to shutdown the runtime, and wait_for_tids (threads.c:2652) would then wait indefinitely for it to finish. The issue was that the monitor was waiting on the semaphore monitor_sem, and thus would never exit.

Thread 7 (Thread 0x1c13 of process 99776):
#0  0x00007fff86590a56 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00000001003cc03a in mono_sem_wait (sem=0x1004f7f50, alertable=0) at mono-semaphore.c:103
#2  0x00000001002cef41 in monitor_thread (unused=0x0) at threadpool.c:898
#3  0x00000001002cb78f in start_wrapper_internal (data=0x10500abf0) at threads.c:657
#4  0x00000001002cb4a1 in start_wrapper (data=0x10500abf0) at threads.c:704
#5  0x00000001003d61d4 in inner_start_thread (arg=0x7fff5fbfe500) at mono-threads-posix.c:84
#6  0x00007fff8e7c9899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib
#7  0x00007fff8e7c972a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib
#8  0x00007fff8e7cdfc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x1503 of process 99776):
#0  0x00007fff86594716 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff8e7cbc3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib
#2  0x000000010039cfaa in _wapi_handle_timedwait_signal_handle (handle=0xa55, timeout=0x0, alertable=1, poll=0) at handles.c:1595
#3  0x000000010039d03d in _wapi_handle_wait_signal_handle (handle=0xa55, alertable=1) at handles.c:1540
#4  0x00000001003b7ba3 in WaitForSingleObjectEx (handle=0xa55, timeout=4294967295, alertable=1) at wait.c:194
#5  0x00000001003b865d in WaitForMultipleObjectsEx (numobjects=1, handles=0x7fff5fbff1f8, waitall=1, timeout=4294967295, alertable=1) at wait.c:516
#6  0x00000001002c75df in wait_for_tids (wait=0x7fff5fbff1f8, timeout=4294967295) at threads.c:2658
#7  0x00000001002c70e5 in mono_thread_manage () at threads.c:2951
#8  0x00000001000d551b in mono_main (argc=6, argv=0x7fff5fbff9e8) at driver.c:2021
#9  0x0000000100001bd1 in mono_main_with_options (argc=6, argv=0x7fff5fbff9e8) at ./main.c:91
#10 0x00000001000017d3 in main (argc=6, argv=0x7fff5fbff9e8) at ./main.c:122

9 years ago[jit] Reduce code duplication in the inlining code.
Zoltan Varga [Tue, 7 Oct 2014 19:43:08 +0000 (15:43 -0400)]
[jit] Reduce code duplication in the inlining code.

9 years agoMerge pull request #1329 from esdrubal/httputility
Marek Safar [Tue, 7 Oct 2014 18:31:50 +0000 (14:31 -0400)]
Merge pull request #1329 from esdrubal/httputility

HttpQSCollection.ToString now url encodes values.

9 years agoMerge pull request #1327 from ermshiperete/Xamarin-23168
Alexis Christoforides [Tue, 7 Oct 2014 18:30:52 +0000 (11:30 -0700)]
Merge pull request #1327 from ermshiperete/Xamarin-23168

[MWF] Pass graphics when calculating button text and image

9 years ago[System.Core/Android] Fix standalone unit tests.
Jonathan Pryor [Tue, 7 Oct 2014 17:51:10 +0000 (13:51 -0400)]
[System.Core/Android] Fix standalone unit tests.

Commit 5564dad1 broke the self-test (for testing on the developer
machine, not an Android target). Fixup the comment so that appropriate
data is grabbed and used for testing, and improve
AndroidTimeZones.GetDefaultTimeZoneName() so that the default timezone
ID can be specified via the __XA_OVERRIDE_TIMEZONE_ID__ environment
variable for testing.

Finally, demonstrate TimeZoneInfo.GetUtcOffset(DateTime) use so that I
can get better insight into the timezone data stored within the
database:

$ __XA_OVERRIDE_TIMEZONE_ID__=America/New_York ANDROID_ROOT=`pwd` ANDROID_DATA=`pwd` mono --debug tzi.exe --offset=1969-01-01
Using DateTime Offset: 1/1/1969 12:00:00 AM
DB type: System.AndroidTzData
name=Africa/Abidjan                           Africa/Abidjan                          From Offset: 00:00:00
name=Africa/Accra                             Africa/Accra                            From Offset: 00:00:00
name=Africa/Addis_Ababa                       Africa/Addis_Ababa                      From Offset: 03:00:00
...

9 years agoHttpQSCollection.ToString now url encodes values. Fixes 22557.
Marcos Henrich [Tue, 7 Oct 2014 17:50:45 +0000 (18:50 +0100)]
HttpQSCollection.ToString now url encodes values. Fixes 22557.

9 years agoTest HttpQSCollection.ToString url encoding. Covers #22557.
Marcos Henrich [Tue, 7 Oct 2014 17:45:50 +0000 (18:45 +0100)]
Test HttpQSCollection.ToString url encoding. Covers #22557.

9 years ago[runtime] Move the MonoJit/MonoJitInfoTable code to a separate file from domain.c.
Zoltan Varga [Tue, 7 Oct 2014 17:26:12 +0000 (13:26 -0400)]
[runtime] Move the MonoJit/MonoJitInfoTable code to a separate file from domain.c.

9 years ago[runtime] Factor out some duplicate code from the MonoJitInfo creation code.
Zoltan Varga [Tue, 7 Oct 2014 17:03:28 +0000 (13:03 -0400)]
[runtime] Factor out some duplicate code from the MonoJitInfo creation code.

9 years agoMerge pull request #1328 from vkargov/master
Zoltan Varga [Tue, 7 Oct 2014 16:45:52 +0000 (12:45 -0400)]
Merge pull request #1328 from vkargov/master

[runtime] Take correct domain information from StackFrameInfo for each stack frame.

9 years ago[MWF] Pass graphics when calculating button text and image
Eberhard Beilharz [Tue, 7 Oct 2014 15:34:44 +0000 (17:34 +0200)]
[MWF] Pass graphics when calculating button text and image

This fixes a problem with calculating the text width of a button
which caused the text to get truncated under certain circumstances
instead of being wrapped. This fixes Xamarin-23168.

Change-Id: Iac0d8a2720a99cf5433e05d5123a04c4b019e493

9 years ago[runtime] Take correct domain information from StackFrameInfo for each stack frame.
Vladimir Kargov [Tue, 7 Oct 2014 15:30:31 +0000 (19:30 +0400)]
[runtime] Take correct domain information from StackFrameInfo for each stack frame.

9 years agoMerge pull request #1179 from ludovic-henry/pr25-threadpool
Rodrigo Kumpera [Tue, 7 Oct 2014 14:34:43 +0000 (10:34 -0400)]
Merge pull request #1179 from ludovic-henry/pr25-threadpool

[threadpool] Improve heuristic to approach optimal number of threads based on workload

9 years agoAdded missing files to projects csproj files.
Marcos Henrich [Tue, 7 Oct 2014 13:03:29 +0000 (14:03 +0100)]
Added missing files to projects csproj files.

9 years ago[runtime] Fix another lost canary change
Alexis Christoforides [Tue, 7 Oct 2014 00:02:23 +0000 (17:02 -0700)]
[runtime] Fix another lost canary change

9 years agoKill timed-out tests when using the managed test runner.
Zoltan Varga [Mon, 6 Oct 2014 20:13:54 +0000 (16:13 -0400)]
Kill timed-out tests when using the managed test runner.

9 years ago[sgen] Fix pointer access.
Vlad Brezae [Mon, 6 Oct 2014 19:11:57 +0000 (12:11 -0700)]
[sgen] Fix pointer access.

Thanks to @martinpotter for finding the bug.

9 years ago[bcl] Remove some verbose test output.
Zoltan Varga [Mon, 6 Oct 2014 18:56:21 +0000 (14:56 -0400)]
[bcl] Remove some verbose test output.

9 years ago[runtime] Silence a warning that has not helped us fix anything.
Rodrigo Kumpera [Mon, 6 Oct 2014 14:54:09 +0000 (10:54 -0400)]
[runtime] Silence a warning that has not helped us fix anything.

9 years ago[runtime] Fix canary oops
Alexis Christoforides [Mon, 6 Oct 2014 06:08:48 +0000 (23:08 -0700)]
[runtime] Fix canary oops

9 years ago[runtime] Implement 'nursery-canaries' option for SGen.
Alexis Christoforides [Mon, 6 Oct 2014 05:32:53 +0000 (22:32 -0700)]
[runtime] Implement 'nursery-canaries' option for SGen.

9 years ago[runtime] Convert String.InternalSetLength to an icall. Needed for canary support.
Alexis Christoforides [Mon, 6 Oct 2014 05:21:15 +0000 (22:21 -0700)]
[runtime] Convert String.InternalSetLength to an icall. Needed for canary support.
The change does not have a negative impact on StringBuilder performance; under variable-string-length microbenchmarks it seems to perform ~15-20% faster than the managed implementation.

9 years ago[runtime] Implement nursery canaries.
Alexis Christoforides [Mon, 6 Oct 2014 05:16:27 +0000 (22:16 -0700)]
[runtime] Implement nursery canaries.
Use the new MONO_GC_DEBUG option "nursery-canaries"  to suffix each nursery object with a canary (guard) word, which is checked on each minor collection. Can be used to detect/debug
heap corruption issues.

Adding canaries to LOS is also easy if wanted - not sure about major heap.

9 years ago[system.xml] Make XmlSerializer work even when XmlTextReader has explicitly set its...
Marek Safar [Sun, 5 Oct 2014 21:58:02 +0000 (17:58 -0400)]
[system.xml] Make XmlSerializer work even when XmlTextReader has explicitly set its resolver

9 years ago[system.xml] Add missing 4.0 property
Marek Safar [Sun, 5 Oct 2014 19:44:55 +0000 (15:44 -0400)]
[system.xml] Add missing 4.0 property

9 years ago[corlib] Notify parent task when child task uses NotOnFaulted. Fixes #23594
Marek Safar [Sun, 5 Oct 2014 18:36:05 +0000 (14:36 -0400)]
[corlib] Notify parent task when child task uses NotOnFaulted. Fixes #23594

9 years ago[arm] Increase size of tls_get opcode to 24.
Zoltan Varga [Sun, 5 Oct 2014 04:04:44 +0000 (00:04 -0400)]
[arm] Increase size of tls_get opcode to 24.

9 years ago[runtime] Fix allocation size calculation for strings in 64-bit builds.
Alexis Christoforides [Fri, 3 Oct 2014 04:04:13 +0000 (21:04 -0700)]
[runtime] Fix allocation size calculation for strings in 64-bit builds.
Depending on alignment and packing, part of the string might be inside the MonoString struct boundaries. This e.g. shows up on 64-bit builds of mono where we were allocating 4 extra bytes per string.

9 years ago[bcl] Use random ports for the HttpListener tests.
Zoltan Varga [Fri, 3 Oct 2014 03:29:53 +0000 (23:29 -0400)]
[bcl] Use random ports for the HttpListener tests.

9 years ago[jit] Implement 5dbf97e66057f8626c53fcea30f1988d6627e5a2 for calls made from NEWOBJ...
Zoltan Varga [Fri, 3 Oct 2014 01:29:51 +0000 (21:29 -0400)]
[jit] Implement 5dbf97e66057f8626c53fcea30f1988d6627e5a2 for calls made from NEWOBJ too. Fixes #23557.

9 years ago[jit] Get rid of unused MONO_ARCH_THIS_AS_FIRST_ARG define.
Zoltan Varga [Fri, 3 Oct 2014 00:40:38 +0000 (20:40 -0400)]
[jit] Get rid of unused MONO_ARCH_THIS_AS_FIRST_ARG define.

9 years ago[arm] Implement handler block guards.
Zoltan Varga [Fri, 3 Oct 2014 00:35:42 +0000 (20:35 -0400)]
[arm] Implement handler block guards.

9 years ago[amd64] Simplify mono_arch_install_handler_block_guard ().
Zoltan Varga [Thu, 2 Oct 2014 23:04:27 +0000 (19:04 -0400)]
[amd64] Simplify mono_arch_install_handler_block_guard ().

9 years ago[arm] Increase the length of the tls_get opcode.
Zoltan Varga [Thu, 2 Oct 2014 22:41:42 +0000 (18:41 -0400)]
[arm] Increase the length of the tls_get opcode.

9 years ago[mono-api-html] Add filter for new namespaces/types
Chris Hamons [Thu, 2 Oct 2014 20:34:48 +0000 (15:34 -0500)]
[mono-api-html] Add filter for new namespaces/types

- Reviewed by Sebastien

9 years agoFix a warning.
Zoltan Varga [Thu, 2 Oct 2014 20:06:24 +0000 (16:06 -0400)]
Fix a warning.

9 years agoFix the arm build.
Zoltan Varga [Thu, 2 Oct 2014 20:06:01 +0000 (16:06 -0400)]
Fix the arm build.

9 years ago[sgen] Reorganize sgen-archdep.h to remove unused defines.
Zoltan Varga [Thu, 2 Oct 2014 19:49:00 +0000 (15:49 -0400)]
[sgen] Reorganize sgen-archdep.h to remove unused defines.

9 years ago[jit] Remove unused defines.
Zoltan Varga [Thu, 2 Oct 2014 18:32:11 +0000 (14:32 -0400)]
[jit] Remove unused defines.

9 years ago[amd64] Define MONO_ARCH_NOMAP32BIT on all non-linux platforms instead of defining...
Zoltan Varga [Thu, 2 Oct 2014 18:23:15 +0000 (14:23 -0400)]
[amd64] Define MONO_ARCH_NOMAP32BIT on all non-linux platforms instead of defining it once for each platform.

9 years agoRevert "Finish test changes started in 7ece665d16714db0979bde5df254231c5be24f10"
Sebastien Pouliot [Thu, 2 Oct 2014 17:45:11 +0000 (13:45 -0400)]
Revert "Finish test changes started in 7ece665d16714db0979bde5df254231c5be24f10"

This reverts commit d171cdf5e281973c06f2751f4e33098f1a624a95.

9 years agoRevert "Refresh HashAlgorithmTest to match changed NullStream behaviour in 8b9c60075f...
Sebastien Pouliot [Thu, 2 Oct 2014 17:44:58 +0000 (13:44 -0400)]
Revert "Refresh HashAlgorithmTest to match changed NullStream behaviour in 8b9c60075f7b97fe88c3c588968977ff9bcf8c28"

This reverts commit 7ece665d16714db0979bde5df254231c5be24f10.

9 years agoRevert "Missing Args checks."
Sebastien Pouliot [Thu, 2 Oct 2014 17:44:35 +0000 (13:44 -0400)]
Revert "Missing Args checks."

This reverts commit 8b9c60075f7b97fe88c3c588968977ff9bcf8c28.

9 years ago[jit] Define NOMAP32BIT on winx64.
Zoltan Varga [Thu, 2 Oct 2014 02:49:18 +0000 (22:49 -0400)]
[jit] Define NOMAP32BIT on winx64.

9 years ago[sgen] Fix concurrent mark with split nursery.
Mark Probst [Wed, 1 Oct 2014 21:51:20 +0000 (14:51 -0700)]
[sgen] Fix concurrent mark with split nursery.

9 years ago[jit] Remove the unused MONO_DISABLE_PENDING_EXCEPTIONS env var, the functionality...
Zoltan Varga [Wed, 1 Oct 2014 20:42:47 +0000 (16:42 -0400)]
[jit] Remove the unused MONO_DISABLE_PENDING_EXCEPTIONS env var, the functionality it disable is not experimental anymore.

9 years ago[x86] Remove the now unused push based parameter passing code.
Zoltan Varga [Wed, 1 Oct 2014 20:36:16 +0000 (16:36 -0400)]
[x86] Remove the now unused push based parameter passing code.

9 years agoMerge pull request #1306 from joelmartinez/docs-privateinterface
Jonathan Pryor [Wed, 1 Oct 2014 19:23:08 +0000 (15:23 -0400)]
Merge pull request #1306 from joelmartinez/docs-privateinterface

mdoc no longer documents private interfaces

9 years ago[corlib] Fix UnicodeEncoding GetMaxByteCount and GetMaxCharCount to return the same...
Rodrigo Kumpera [Wed, 1 Oct 2014 19:10:37 +0000 (15:10 -0400)]
[corlib] Fix UnicodeEncoding GetMaxByteCount and GetMaxCharCount to return the same values as .net.

9 years ago[runtime] Add a missing call to mono_thread_notify_pending_exc_fn () to the thread...
Zoltan Varga [Wed, 1 Oct 2014 19:02:25 +0000 (15:02 -0400)]
[runtime] Add a missing call to mono_thread_notify_pending_exc_fn () to the thread abort code.

9 years agoFix some warnings by not including utils/mono-threads.h into threads-types.h.
Zoltan Varga [Wed, 1 Oct 2014 18:27:18 +0000 (14:27 -0400)]
Fix some warnings by not including utils/mono-threads.h into threads-types.h.

9 years ago[jit] Make each CASTCLASS_CACHE patch unique by generating a unique identifier from...
Zoltan Varga [Wed, 1 Oct 2014 02:12:53 +0000 (22:12 -0400)]
[jit] Make each CASTCLASS_CACHE patch unique by generating a unique identifier from the method index and an per-method counter. Fixes #23478.

9 years agoFinish test changes started in 7ece665d16714db0979bde5df254231c5be24f10
Jo Shields [Tue, 30 Sep 2014 13:51:13 +0000 (14:51 +0100)]
Finish test changes started in 7ece665d16714db0979bde5df254231c5be24f10

9 years agoAdd new cert-sync command to scripts/.gitignore
Jo Shields [Tue, 30 Sep 2014 12:21:16 +0000 (13:21 +0100)]
Add new cert-sync command to scripts/.gitignore

9 years agoRefresh HashAlgorithmTest to match changed NullStream behaviour in 8b9c60075f7b97fe88...
Jo Shields [Tue, 30 Sep 2014 12:20:19 +0000 (13:20 +0100)]
Refresh HashAlgorithmTest to match changed NullStream behaviour in 8b9c60075f7b97fe88c3c588968977ff9bcf8c28

9 years ago[mcs] Undo bool loads normalization from byte arrays
Marek Safar [Tue, 30 Sep 2014 11:02:32 +0000 (13:02 +0200)]
[mcs] Undo bool loads normalization from byte arrays

9 years ago[mcs] Correctly identify constant switch section when value match is not section...
Marek Safar [Tue, 30 Sep 2014 09:12:24 +0000 (11:12 +0200)]
[mcs] Correctly identify constant switch section when value match is not section start. Fixes #23475

9 years ago[mcs] struct initializers are still experimental
Marek Safar [Tue, 30 Sep 2014 07:47:24 +0000 (09:47 +0200)]
[mcs] struct initializers are still experimental

9 years agoMerge pull request #1318 from AlexanderBekrenev/baa-membershipuser
Marek Safar [Tue, 30 Sep 2014 07:28:19 +0000 (22:28 -0900)]
Merge pull request #1318 from AlexanderBekrenev/baa-membershipuser

MembershipUser::UpdateUser method fix

9 years agoMembershipUser::UpdateUser method fix
Alexander Bekrenev [Tue, 30 Sep 2014 06:46:14 +0000 (10:46 +0400)]
MembershipUser::UpdateUser method fix

9 years agoFix build on pre-C99 compilers.
Mark Probst [Mon, 29 Sep 2014 20:52:00 +0000 (13:52 -0700)]
Fix build on pre-C99 compilers.

9 years ago[sgen] Remove useless internal allocation
Ludovic Henry [Mon, 29 Sep 2014 20:00:45 +0000 (16:00 -0400)]
[sgen] Remove useless internal allocation

9 years ago[runtime] Enable the new interrupt code on ios.
Zoltan Varga [Mon, 29 Sep 2014 18:30:09 +0000 (14:30 -0400)]
[runtime] Enable the new interrupt code on ios.

9 years ago[sgen] Don't use callback for pinning cemented objects.
Mark Probst [Wed, 3 Sep 2014 01:57:25 +0000 (18:57 -0700)]
[sgen] Don't use callback for pinning cemented objects.

9 years ago[sgen] Tag block pointers with whether the blocks contain references.
Mark Probst [Tue, 2 Sep 2014 20:29:56 +0000 (13:29 -0700)]
[sgen] Tag block pointers with whether the blocks contain references.

9 years ago[sgen] Macro abstractions for pointer tagging.
Mark Probst [Tue, 2 Sep 2014 20:09:29 +0000 (13:09 -0700)]
[sgen] Macro abstractions for pointer tagging.

9 years ago[sgen] Shift, don't divide, just to make sure.
Mark Probst [Tue, 16 Sep 2014 08:01:34 +0000 (10:01 +0200)]
[sgen] Shift, don't divide, just to make sure.

9 years ago[sgen] Move SGen statistics out of gc-internal.h.
Mark Probst [Sun, 7 Sep 2014 12:16:40 +0000 (14:16 +0200)]
[sgen] Move SGen statistics out of gc-internal.h.

This introduced a dependency from sgen-conf.h to a lot of compilation units
in metadata, leading to long build times when experimenting with SGen.

9 years ago[sgen] Don't unroll run-length scanning loop.
Mark Probst [Fri, 5 Sep 2014 18:50:47 +0000 (20:50 +0200)]
[sgen] Don't unroll run-length scanning loop.

9 years ago[sgen] Keep allocated blocks in array instead of linked list.
Mark Probst [Tue, 2 Sep 2014 19:38:48 +0000 (12:38 -0700)]
[sgen] Keep allocated blocks in array instead of linked list.

We were spending a lot of time in major_iterate_live_block_ranges() on
the lcscbench benchmark, mainly from following the linked block list.
This change makes it much faster.

9 years ago[sgen] Move GRAY_OBJECT_ENQUEUE/DEQUEUE to sgen-gray.h.
Mark Probst [Thu, 28 Aug 2014 23:33:00 +0000 (16:33 -0700)]
[sgen] Move GRAY_OBJECT_ENQUEUE/DEQUEUE to sgen-gray.h.

9 years ago[sgen] Move HEAVY_STAT macro to sgen-conf.h.
Mark Probst [Thu, 28 Aug 2014 23:32:06 +0000 (16:32 -0700)]
[sgen] Move HEAVY_STAT macro to sgen-conf.h.

That's where we define HEAVY_STATISTICS, too.

9 years ago[sgen] Scoping fix in a macro.
Mark Probst [Wed, 27 Aug 2014 21:37:24 +0000 (14:37 -0700)]
[sgen] Scoping fix in a macro.

9 years ago[sgen] Heavy statistics counters for scanned object descriptors.
Mark Probst [Wed, 27 Aug 2014 21:37:03 +0000 (14:37 -0700)]
[sgen] Heavy statistics counters for scanned object descriptors.

9 years ago[sgen] do-while loop instead of 1-unrolled while loop in bitmap scan.
Mark Probst [Wed, 27 Aug 2014 21:35:51 +0000 (14:35 -0700)]
[sgen] do-while loop instead of 1-unrolled while loop in bitmap scan.

9 years ago[sgen] Added some comments.
Mark Probst [Wed, 27 Aug 2014 21:33:56 +0000 (14:33 -0700)]
[sgen] Added some comments.

9 years ago[sgen] Simplify sgen_drain_gray_stack().
Mark Probst [Fri, 22 Aug 2014 21:58:24 +0000 (14:58 -0700)]
[sgen] Simplify sgen_drain_gray_stack().

This seems to have accumulated code duplication by accident.

9 years ago[sgen] Free gray queue sections after GC, not at start of next.
Mark Probst [Fri, 22 Aug 2014 21:14:50 +0000 (14:14 -0700)]
[sgen] Free gray queue sections after GC, not at start of next.

We trim the free list of the gray queue to a maximum number of
sections, but we did it at each collection start, so the extraneous
sections were kept around between collections.

9 years ago[sgen] Enqueue objects with their descriptors.
Mark Probst [Fri, 22 Aug 2014 21:06:45 +0000 (14:06 -0700)]
[sgen] Enqueue objects with their descriptors.

At the point where we enqueue objects we have already fetched their
descriptors, and when we later scan them (after dequeuing) we need the
descriptor again, so we avoid cache misses by enqueuing them together.

9 years ago[sgen] Pass descriptor, not vtable, to OBJ_COMPLEX_ARR_FOREACH_PTR.
Mark Probst [Fri, 22 Aug 2014 21:04:33 +0000 (14:04 -0700)]
[sgen] Pass descriptor, not vtable, to OBJ_COMPLEX_ARR_FOREACH_PTR.

Later on, when we enqueue objects with their GC descriptors, we won't
load the vtable before scanning (because we'll already have the
descriptor), so the scanning macros shouldn't take them as arguments.

9 years ago[sgen] GrayQueueEntry struct instead of just char*.
Mark Probst [Fri, 22 Aug 2014 18:36:28 +0000 (11:36 -0700)]
[sgen] GrayQueueEntry struct instead of just char*.

This makes it easier to later enqueue the GC descriptor with the
object.

9 years ago[sgen] Remove obsolete check in #ifdef.
Mark Probst [Fri, 22 Aug 2014 18:30:34 +0000 (11:30 -0700)]
[sgen] Remove obsolete check in #ifdef.

That macro doesn't exist anymore.