Paolo Molaro [Tue, 29 Nov 2011 15:53:51 +0000 (16:53 +0100)]
Win32 compilation fixes for sgen.
Zoltan Varga [Mon, 28 Nov 2011 18:23:54 +0000 (19:23 +0100)]
Disable an assert in mini-gc.c which can be hit. Fixes #2211.
Tom Hindle [Mon, 28 Nov 2011 17:52:29 +0000 (10:52 -0700)]
Fix bug #395 (part 2)
Tom Hindle [Mon, 28 Nov 2011 17:49:29 +0000 (10:49 -0700)]
Fix bug #395
Marek Safar [Mon, 28 Nov 2011 13:26:54 +0000 (13:26 +0000)]
Add debug parser target
Zoltan Varga [Mon, 28 Nov 2011 03:51:40 +0000 (03:51 +0000)]
Use dwarf unwind info on MIPS.
Zoltan Varga [Sun, 27 Nov 2011 01:17:51 +0000 (01:17 +0000)]
Ongoing MIPS work. Fix more endianness issues. Fix order fp compares.
Zoltan Varga [Sat, 26 Nov 2011 23:19:32 +0000 (23:19 +0000)]
Fix warnings on MIPS.
Zoltan Varga [Sat, 26 Nov 2011 22:52:45 +0000 (23:52 +0100)]
Initial soft debugger support for MIPS.
Zoltan Varga [Sat, 26 Nov 2011 17:08:07 +0000 (18:08 +0100)]
Add a heuristic to insert_breakpoint () to avoid 'Unable to insert breakpoint' errors in some cases, since the set of IL offsets in the debug info doesn't completely match what the JIT generates. Fixes #407.
Zoltan Varga [Thu, 24 Nov 2011 19:04:17 +0000 (20:04 +0100)]
Save the stack space used by arguments into MonoJitInfo to avoid calling mono_arch_get_arg_info () during stack walking, since it is not signal safe. Fixes #2190.
Jeremie Laval [Sat, 26 Nov 2011 14:30:45 +0000 (15:30 +0100)]
Add C# errors to search index so that it can be accessed by search tools (like webdoc's fastsearch)
Thomas Goldstein [Sat, 26 Nov 2011 00:26:27 +0000 (01:26 +0100)]
Unit test for bug #821.
Thomas Goldstein [Sat, 26 Nov 2011 00:17:02 +0000 (01:17 +0100)]
Ensure DataGridViewRowCollection.Insert() doesn't change element type. Fixes bug #821.
Marek Safar [Fri, 25 Nov 2011 20:09:46 +0000 (20:09 +0000)]
Fix type inference for nested non-generic delegates inside generic classes
Marek Safar [Thu, 24 Nov 2011 18:48:24 +0000 (18:48 +0000)]
Update expresion visitor based on MD changes
Rodrigo Kumpera [Fri, 25 Nov 2011 12:03:50 +0000 (10:03 -0200)]
Fix error message.
Rodrigo Kumpera [Thu, 24 Nov 2011 23:02:48 +0000 (21:02 -0200)]
Improve error reporting on test failure.
Rodrigo Kumpera [Thu, 24 Nov 2011 22:46:02 +0000 (20:46 -0200)]
Make INodeVisitor methods nonvirtual by augmenting nodes with interfaces.
Zoltan Varga [Thu, 24 Nov 2011 22:32:33 +0000 (23:32 +0100)]
Add an assert () to thread_suspend_func ().
Marek Safar [Thu, 24 Nov 2011 13:21:06 +0000 (13:21 +0000)]
Implementations of Uri.Equals must not throw exceptions. Fixes #2023
Marek Safar [Thu, 24 Nov 2011 12:59:26 +0000 (12:59 +0000)]
Fix 4.5 framework path used by xbuild
Marek Safar [Thu, 24 Nov 2011 12:56:50 +0000 (12:56 +0000)]
Clone input collection for ObservableCollection<T>. Fixes #2169
Marek Safar [Thu, 24 Nov 2011 12:27:10 +0000 (12:27 +0000)]
Add System.Collections.ObjectModel tests
Miguel de Icaza [Thu, 24 Nov 2011 06:29:20 +0000 (01:29 -0500)]
Extend JsonSerializerReader to support nullables and parse a wider range of Date formats, fixes x#163
Zoltan Varga [Thu, 24 Nov 2011 05:25:16 +0000 (05:25 +0000)]
Fix some endianess problems on mips.
Miguel de Icaza [Thu, 24 Nov 2011 03:47:12 +0000 (22:47 -0500)]
Updated with Xamarin copyrights
Miguel de Icaza [Thu, 24 Nov 2011 03:46:04 +0000 (22:46 -0500)]
Updated with Xamarin copyrights
Miguel de Icaza [Thu, 24 Nov 2011 03:44:58 +0000 (22:44 -0500)]
Updated with Xamarin copyrights
Miguel de Icaza [Thu, 24 Nov 2011 03:42:50 +0000 (22:42 -0500)]
Updated with Xamarin copyrights
Zoltan Varga [Thu, 24 Nov 2011 01:33:32 +0000 (02:33 +0100)]
Always free _WapiFileShare entries using _wapi_free_share_info (), otherwise zeroed out entries remain in the hash table when shared handles are disabled. Fixes #2170.
Rodrigo Kumpera [Wed, 23 Nov 2011 22:23:37 +0000 (20:23 -0200)]
Correctly calculate the number of cards to be marked.
* sgen-cardtable.c (sgen_card_table_mark_range): The number of
pages to be marked must be correctly calculated to avoid the case
when the in-card offset of the start address is bigger than
of the end address and cause the last card to be skipped.
Fixes #1917
Rodrigo Kumpera [Wed, 23 Nov 2011 18:22:00 +0000 (16:22 -0200)]
Speedup get_execution_context_addr.
* threads.c (get_execution_context_addr): This function is called
by the threadpool machinery and a contention hotspot. So we
cache the thread local offset per domain.
Rodrigo Kumpera [Wed, 23 Nov 2011 18:21:46 +0000 (16:21 -0200)]
Fix a theoretical deadlock found by valgrind. It was never reported.
Pablo Ruiz Garcia [Wed, 16 Nov 2011 21:10:19 +0000 (22:10 +0100)]
An enhanced fix for GB18030's GC problem, by allocating the underlaying table buffer from Marshal.AllocHGlobal, as the previous solution would fail if GC moves the memory pointed to by the static field..
Pablo Ruiz Garcia [Wed, 16 Nov 2011 20:18:36 +0000 (21:18 +0100)]
Avoid internal character table used by gb18030 (on ms.net) from being collected by GC.
Pablo Ruiz Garcia [Tue, 15 Nov 2011 17:50:43 +0000 (18:50 +0100)]
Fixes #683475: - Fixed ISO2022JPEncoder's GetBytesCount(..) to avoid it from returning invalid calculations leading to buffer overflows during GetBytes(..). - Fixed MonoEncoding::HandleFallback(..) off-by-one error when handling double-byte replacements. - Fixed ISO2022JPEncoder::GetBytes(..) invalid translation of some full width characters (U+FF60 ~ U+FF0A) when using halfwide kana mapping. - Fixed ISO2022JPEncoder::GetBytes(..) invalid translation of IDEOGRAPHIC SPACE (U+3000) character. - Refactor of MonoEncoding::HandleFallback(..) to correctly support replacement of inv. characters by statefull encoders/encodings (like ISO-2022-JP).
NOTE: This fixes were found by creating alternative safe-only implementations of the actual CJK encoders. Such implementations are disabled by default for performance reasons, but can be enabled if needed by using the conditional compiling flag DISABLE_UNSAFE.
Marek Safar [Wed, 23 Nov 2011 18:25:28 +0000 (18:25 +0000)]
Print errors comming from lambda expressions before error mode execution. Fixes #2083
Marek Safar [Wed, 23 Nov 2011 16:08:34 +0000 (16:08 +0000)]
Try to initialize for statement from incomplete statements
Marek Safar [Wed, 23 Nov 2011 14:05:07 +0000 (14:05 +0000)]
Add instance qualifier check to overload resolver. Fixes #2160
Zoltan Varga [Tue, 22 Nov 2011 21:56:43 +0000 (22:56 +0100)]
Fix a crash introduced by
64d35e3940f7b0e1839c1906855c29862e6ab8c1. Fixes #2150.
Rodrigo Kumpera [Tue, 22 Nov 2011 19:19:34 +0000 (17:19 -0200)]
Scan all ephemeron arrays during nursery collections.
* sgen-gc.c (mark_ephemerons_in_range): All ephemeron arrays
must be scanned during a nursery collection since we ignore
them during remset processing for a good reason.
In the future we should use cardtable information to avoid
scanning the whole thing.
Fixes bxc #1175.
Jonathan Pryor [Tue, 22 Nov 2011 15:58:49 +0000 (10:58 -0500)]
[mdoc-update] Filename comparison should be OrdinalIgnoreCase.
Consider the intermix of a case-sensitive language (C#) and a
case-insensitive filesystem (OSX, Windows):
namespace A {
public class Foo {}
}
namespace a {
public class Bar {}
}
On a case-sensitive filesystem, this will generate the structure:
en/A/Foo.xml
en/a/Bar.xml
On a case-insensitive filesystem, we instead get:
en/A/Foo.xml
en/A/Bar.xml
The problem with this is that CleanupFiles() uses filenames to index
into the `goodfiles` HashSet<string>`, and the filenames will contain
e.g. "en/A/Bar.xml" for a.Bar, which won't exist in the HashSet, so it
thus thinks the type doesn't exist and removes the file.
This is obviously bad, but the fix is trivial: `goodfiles` should use
an OrdinalIgnoreCase string comparison, as this is what the filesystem
will be using on OS X and Windows.
Marek Safar [Tue, 22 Nov 2011 16:38:17 +0000 (16:38 +0000)]
Explictly type SLE member binding type
Paolo Molaro [Tue, 22 Nov 2011 11:04:05 +0000 (12:04 +0100)]
Fixed StringBuilder.Clear() to properly clear the cached string.
Zoltan Varga [Tue, 22 Nov 2011 03:56:51 +0000 (04:56 +0100)]
Fix the build by including net_2_0 in MONO_PATH when running mdoc.
Jonathan Pryor [Mon, 21 Nov 2011 23:39:32 +0000 (18:39 -0500)]
[MonoDroid] Only alias stdout/stderr on Android devices.
Mono for Android uses Mono 2.10 + smcs to build code, which thus uses
an smcs built against the Mono for Android profile assemblies, which
would thus be built with MONODROID defined. Thus (understandably) dies
at runtime with a DllNotFoundException, as liblog.so can't be found.
Fix smcs.
Neale Ferguson [Mon, 21 Nov 2011 21:32:14 +0000 (16:32 -0500)]
Implement serialization
Jonathan Pryor [Mon, 21 Nov 2011 17:42:58 +0000 (12:42 -0500)]
[MonoDroid] Fix the libmono build.
7e49d08a nee
2763aae9c doesn't build because <fcntl.h> is missing:
mono/utils/mono-proclib.c:517: error: 'O_RDONLY' undeclared (first use in this function
Fix the build.
Jonathan Pryor [Mon, 21 Nov 2011 14:15:02 +0000 (09:15 -0500)]
[corlib] On Android, alias stdout/stderr to logcat.
In Mono for Android, stdout and stderr (file descriptors 1 and 2) are
only visible when debugging within MonoDevelop and/or Visual Studio,
which is rather annoying.
This was changed in Mono for Android 1.9.2, by using Console.SetOut()
and Console.SetError() to send stdout/stderr message to both
stdout/stderr and to the Android Debug Log (`adb logcat`), allowing
e.g. Console.WriteLine() output to be viewed outside of a debugger.
Problem: in order to capture user-generated messages at their earliest
point, Console.SetOut()/etc. must be called at the earliest point in
Mono for Android initialization, even if Console.WriteLine() is never
used. Worse, this adds ~180ms of startup overhead on a Nexus One.
The fix here is to move the std*/logcat duplication logic into
mscorlib.dll, so that we can configure things within the
System.Console static constructor. This moves the initialization
penalty onto users of System.Console (instead of all users).
Zoltan Varga [Sun, 20 Nov 2011 14:00:45 +0000 (15:00 +0100)]
Flush the output file in mono_counters_dump ().
Zoltan Varga [Sun, 20 Nov 2011 13:09:56 +0000 (14:09 +0100)]
Free debug info for dynamic methods by storing it in malloc-ed memory instead of the normal debugger tables. Fixes #731579.
Zoltan Varga [Sun, 20 Nov 2011 12:51:18 +0000 (13:51 +0100)]
Miguel de Icaza [Sun, 20 Nov 2011 01:45:42 +0000 (20:45 -0500)]
Fix the Stderr StreamWriter
This fixes the initialization of the Stderr property when used in a Console
(no redirected output) to use the CStreamWriter class instead of the
UnexpectionalStreamWriter class.
The CStreamWriter class already ignores IOException problems, just like the
UnexpectionalStreamWriter class, so there is no need to wrap this twice.
Before this fix, interleaved writes to stdout and stderr would keep the
Cursor properties out of sync, as the Stderr output would go directly to the
console, skipping our internal state tracking.
The following sample used to print 0:
Console.CursorTop = 0;
Console.Error.WriteLine ("Boo!");
Console.WriteLine (Console.CursorTop)
Now it prints 1.
Marek Safar [Fri, 18 Nov 2011 19:44:02 +0000 (19:44 +0000)]
Implement SLE recursive initialization of members of a field or property. Fixes #2082.
Zoltan Varga [Thu, 17 Nov 2011 18:30:40 +0000 (13:30 -0500)]
Add an 'fd' field to WapiHandle_file, to make it easier to break the fd==handle dependency in the future.
Zoltan Varga [Thu, 17 Nov 2011 10:45:06 +0000 (05:45 -0500)]
Add an explicit initialization function to io-layer, and use it to avoid calling shared_init () from a lot of places on demand.
Zoltan Varga [Thu, 17 Nov 2011 09:57:53 +0000 (04:57 -0500)]
Remove unused io layer daemon files.
Zoltan Varga [Thu, 17 Nov 2011 09:53:17 +0000 (04:53 -0500)]
Rework io-layer logging to use a single DEBUG macro instead of #ifdef DEBUG.
Zoltan Varga [Thu, 17 Nov 2011 09:50:33 +0000 (04:50 -0500)]
Add a 'tests' target to precompile the tests in mono/tests.
Zoltan Varga [Thu, 17 Nov 2011 07:49:44 +0000 (02:49 -0500)]
Add a allow_ctors argument to mono_class_get_methods_by_name (), so sdb can find ctor methods. Fixes #1873.
Jérémie Laval [Wed, 16 Nov 2011 17:46:16 +0000 (12:46 -0500)]
Fix previous commit
Jérémie Laval [Wed, 16 Nov 2011 16:15:56 +0000 (11:15 -0500)]
[MonoDroid] Query hardware CPU count for Environment.ProcessorCount
Marek Safar [Wed, 16 Nov 2011 14:16:35 +0000 (14:16 +0000)]
Don't release temporrary instance variable prematurely. Fixes #2011
Rodrigo Kumpera [Tue, 15 Nov 2011 23:35:26 +0000 (21:35 -0200)]
Add JIT counters to the local set of counters we support.
Zoltan Varga [Wed, 16 Nov 2011 09:35:31 +0000 (04:35 -0500)]
Revert "Add support for hardfp abi on ARM."
This reverts commit
e7055b45b9211fb20021997f7da0fa24992421f5.
Marek Safar [Fri, 11 Nov 2011 19:02:37 +0000 (19:02 +0000)]
Initial System.Net.Http commit
Marek Safar [Fri, 11 Nov 2011 18:59:57 +0000 (18:59 +0000)]
Fix few warnings
Alan McGovern [Fri, 11 Nov 2011 16:54:04 +0000 (16:54 +0000)]
[io-layer] Use lstat as a fallback for stat in SetFileAttributes
Make SetFileAttributes consistent with GetFileAttributes - if
stat fails and ENOENT try to use lstat in case it's a dangling
symlink.
Rodrigo Kumpera [Thu, 10 Nov 2011 18:08:21 +0000 (16:08 -0200)]
Precise scanning crashes on OSX while compiling corlib. Disabling for now.
Rodrigo Kumpera [Thu, 10 Nov 2011 11:28:42 +0000 (09:28 -0200)]
Mark a tinny function inline.
Miguel de Icaza [Thu, 10 Nov 2011 04:12:28 +0000 (23:12 -0500)]
Add locking around the ServiceModel.Logger, fixes a race reported on the mono-devel list
Rodrigo Kumpera [Wed, 9 Nov 2011 16:55:21 +0000 (14:55 -0200)]
Minor cleanup of sgen allocation code.
Rodrigo Kumpera [Wed, 9 Nov 2011 16:53:51 +0000 (14:53 -0200)]
Implement lightweight nursery verification.
Rodrigo Kumpera [Wed, 9 Nov 2011 16:23:42 +0000 (14:23 -0200)]
Cosmetic changes to the nursery allocator. Avoid a CAS & zero memset when possible.
Miguel de Icaza [Wed, 9 Nov 2011 15:25:48 +0000 (10:25 -0500)]
Update two days worth of copyrights, many more missing
Zoltan Varga [Wed, 9 Nov 2011 01:17:48 +0000 (02:17 +0100)]
Fix warnings on ARM.
Zoltan Varga [Wed, 9 Nov 2011 01:16:43 +0000 (02:16 +0100)]
Fix a bug introduced by
354778218590e906ea82154fff9ea960f9d03e2a which killed sgen performance on HEAD.
Zoltan Varga [Wed, 9 Nov 2011 01:12:12 +0000 (02:12 +0100)]
Merge branch 'master' of github.com:mono/mono
Zoltan Varga [Wed, 9 Nov 2011 00:13:16 +0000 (01:13 +0100)]
Add support for hardfp abi on ARM.
Rolf Bjarne Kvinge [Tue, 8 Nov 2011 23:15:02 +0000 (00:15 +0100)]
Log profiler: fix comment typo
Sebastien Pouliot [Tue, 8 Nov 2011 20:56:19 +0000 (15:56 -0500)]
fix typo in monotouch build
Zoltan Varga [Tue, 8 Nov 2011 20:40:00 +0000 (21:40 +0100)]
Install the net 4.0 profile for xbuild.
Neale Ferguson [Tue, 8 Nov 2011 19:50:34 +0000 (14:50 -0500)]
Merge branch 'master' of ssh://github.com/mono/mono
Neale Ferguson [Tue, 8 Nov 2011 19:48:03 +0000 (14:48 -0500)]
Fixes bug 1916 - incorrect appending of string to buffer when remaining buffer size is less than string size.
Marek Safar [Tue, 8 Nov 2011 19:15:58 +0000 (19:15 +0000)]
Add optimization for Timeout.Infinite
Zoltan Varga [Tue, 8 Nov 2011 16:45:28 +0000 (17:45 +0100)]
Fix profiler build if boehm is disabled.
Sebastien Pouliot [Tue, 8 Nov 2011 02:56:05 +0000 (21:56 -0500)]
Workaround AOT limitation for bug #1443. Patch by Rodrigo Kumpera
Sebastien Pouliot [Tue, 8 Nov 2011 02:48:38 +0000 (21:48 -0500)]
MonoTouch specific initialization for TimeZone (devices). Fix bug #1790
Sebastien Pouliot [Tue, 8 Nov 2011 02:13:19 +0000 (21:13 -0500)]
fix compilation under NET_2_0
Marek Safar [Mon, 7 Nov 2011 15:46:50 +0000 (15:46 +0000)]
Fix subtle issues with CancellationTokenSource and implement 4.5 methods
Marek Safar [Mon, 7 Nov 2011 09:38:26 +0000 (09:38 +0000)]
Output type inference can be run on default parameters. Fixes #1892
Marek Safar [Mon, 7 Nov 2011 09:08:42 +0000 (09:08 +0000)]
Fix type parameter effective base class lookup for mixed constraints. Fixes #1905
Zoltan Varga [Mon, 7 Nov 2011 01:13:51 +0000 (02:13 +0100)]
Enable precise stack marking by default so it gets more testing.
Zoltan Varga [Mon, 7 Nov 2011 01:13:31 +0000 (02:13 +0100)]
Disable a test which depended on COMPILER_ACCESS.
Zoltan Varga [Sun, 6 Nov 2011 18:56:40 +0000 (19:56 +0100)]
Remove a needless define.
Zoltan Varga [Sun, 6 Nov 2011 18:55:22 +0000 (19:55 +0100)]
Make mono_arch_sigctx_to_monoctx and vice versa use the code in mono-context.h on amd64.c
Zoltan Varga [Sun, 6 Nov 2011 18:36:36 +0000 (19:36 +0100)]
Get rid of IsCompilerContext, mcs no longer uses SRE.
Zoltan Varga [Sun, 6 Nov 2011 18:03:36 +0000 (19:03 +0100)]
Fix ARM cross compiling support.
Zoltan Varga [Sun, 6 Nov 2011 17:55:01 +0000 (18:55 +0100)]
Make --enable-mcs-build=no the default when building the AOT cross compiler.