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.
Zoltan Varga [Sun, 6 Nov 2011 17:48:31 +0000 (18:48 +0100)]
Make mono_arch_sigctx_to_monoctx and vice versa use the code in mono-context.h.
Zoltan Varga [Sun, 6 Nov 2011 17:36:12 +0000 (18:36 +0100)]
Get rid of MonoContext->sp on ARM, its already stored inside MonoContext->regs.
Zoltan Varga [Sun, 6 Nov 2011 16:52:38 +0000 (17:52 +0100)]
Clean up the arm MonoContext structure: use arm register names, mgreg_t, fix cross compilation.
Zoltan Varga [Sun, 6 Nov 2011 16:31:10 +0000 (17:31 +0100)]
Fix a warning.
alexrp [Sat, 5 Nov 2011 22:19:10 +0000 (23:19 +0100)]
Don't allow invoking methods that return by-ref types via reflection.
Gonzalo Paniagua Javier [Sun, 6 Nov 2011 01:09:01 +0000 (18:09 -0700)]
Merge pull request #188 from damageboy/exposed-handle-compat
Matched FileStream behaviour with MS.NET
Zoltan Varga [Sat, 5 Nov 2011 19:08:08 +0000 (20:08 +0100)]
Reduce the size of AOT seq points on ARM after the get_ip_for_breakpoint () changes.
Dan Shechter [Thu, 3 Nov 2011 18:07:34 +0000 (20:07 +0200)]
Matched FileStream behaviour with MS.NET
Rodrigo Kumpera [Fri, 4 Nov 2011 15:06:48 +0000 (13:06 -0200)]
Fix marshaling of Win32_IN6_ADDR.
Robert Jordan [Sat, 5 Nov 2011 13:41:08 +0000 (14:41 +0100)]
[Web] Fix obvious typo in DELETE FROM WHERE statement.
Jeremie Laval [Sat, 5 Nov 2011 12:38:41 +0000 (13:38 +0100)]
Remove debug spew
Jeremie Laval [Sat, 5 Nov 2011 12:22:16 +0000 (13:22 +0100)]
Update Lucene to latest Apache version. Make use of the new features in Monodoc searching API.
Zoltan Varga [Fri, 4 Nov 2011 23:29:36 +0000 (00:29 +0100)]
Omit 'Tests not run' from nunit output, its rarely used and too verbose.
Zoltan Varga [Fri, 4 Nov 2011 23:28:52 +0000 (00:28 +0100)]
Define MONO_PATH as an absolute dir for the 'run-test-vts' corlib target, since it is executed from a subdir.
Zoltan Varga [Fri, 4 Nov 2011 23:14:40 +0000 (00:14 +0100)]
Add a 'captured_traces' field to Exception, holding the state captured by ExceptionDispatchInfo. Use this when creating stack traces. Fixes #1857. Bump corlib version because of the layout changes.
Zoltan Varga [Fri, 4 Nov 2011 18:39:27 +0000 (19:39 +0100)]
Ignore ExceptionDispatchInfoTest:Throw() until it is fixed (#1857).
Zoltan Varga [Fri, 4 Nov 2011 17:53:53 +0000 (18:53 +0100)]
Fix another bug in mono_profiler_load ().
Zoltan Varga [Fri, 4 Nov 2011 17:33:07 +0000 (18:33 +0100)]
Throw a nicer error from Process.set_PriorityClass is the process has exited. Fixes #1692.
Sebastien Pouliot [Fri, 4 Nov 2011 15:14:15 +0000 (11:14 -0400)]
OSX and iOS does not support CLOCK_MONOTONIC so we use mach_timebase_info instead. Fix bug #1366
Zoltan Varga [Fri, 4 Nov 2011 17:15:10 +0000 (18:15 +0100)]
Avoid adding a ref in OpenProcess (), it is already added in _wapi_search_handle (). Fixes #1682.
Zoltan Varga [Fri, 4 Nov 2011 15:52:05 +0000 (16:52 +0100)]
Fix a crash if a profiler is not found. Fixes #1855.
Marek Safar [Fri, 4 Nov 2011 11:13:15 +0000 (11:13 +0000)]
Don't define eval variable when type could not be resolved
Marek Safar [Fri, 4 Nov 2011 10:51:21 +0000 (10:51 +0000)]
The type of an implicitly typed array cannot be inferred from 2 nulls either. Fixes #1848.
Marek Safar [Fri, 4 Nov 2011 10:39:19 +0000 (10:39 +0000)]
Fix sbyte/short parse of hexadecimal values. Fixes #981
Marek Safar [Fri, 4 Nov 2011 10:15:14 +0000 (10:15 +0000)]
Don't cache namespace usings in eval mode
Marek Safar [Thu, 3 Nov 2011 18:07:51 +0000 (18:07 +0000)]
Don't ignore Inherited flag in Attribute.IsDefined. Fixes #181
Marek Safar [Thu, 3 Nov 2011 17:09:24 +0000 (17:09 +0000)]
Fix LazyInitializer
Jeremie Laval [Fri, 4 Nov 2011 00:15:29 +0000 (01:15 +0100)]
Add RwWrite flag to status check when already owning upgradeable lock. Fix #802.
Zoltan Varga [Thu, 3 Nov 2011 17:49:32 +0000 (18:49 +0100)]
Fix some warnings.
Zoltan Varga [Wed, 2 Nov 2011 21:54:14 +0000 (22:54 +0100)]
Fix a crash which happens when an inlined method ends with a throw inside a branch, i.e. the return value is not on one branch, and not on the other. Fixes #1835.
alexrp [Thu, 3 Nov 2011 17:48:45 +0000 (18:48 +0100)]
cs-tokenizer: Remove old/inaccurate FIXME.
Ankit Jain [Thu, 3 Nov 2011 15:32:09 +0000 (21:02 +0530)]
[xbuild] Pick the correct base path for target frameworks.
Don't depend on Environment.GacPath to figure out the framework
base path ("..../xbuild-frameworks"). This broke on fedora, where
it mapped to $prefix/lib/mono instead of $prefix/lib64/mono .
Which caused framework assemblies to be picked from "lib" instead
of "lib64".
Marek Safar [Thu, 3 Nov 2011 15:19:41 +0000 (15:19 +0000)]
Imporove ExceptionDispatchInfo unit test
Marek Safar [Thu, 3 Nov 2011 15:12:24 +0000 (15:12 +0000)]
Partially implement ExceptionDispatchInfo
Marek Safar [Thu, 3 Nov 2011 13:45:52 +0000 (13:45 +0000)]
Fix previous commit
Rodrigo Kumpera [Thu, 3 Nov 2011 13:49:42 +0000 (11:49 -0200)]
Implement the icalls needed by the new mobile mmap code.
Rodrigo Kumpera [Thu, 3 Nov 2011 13:31:38 +0000 (11:31 -0200)]
Implement a mobile ready version of memory mapped files.
Rodrigo Kumpera [Mon, 31 Oct 2011 16:44:40 +0000 (14:44 -0200)]
Move all Mono.Unix deps into a single place and put a skeleton of MOBILE support for mmap'd files.
Marek Safar [Thu, 3 Nov 2011 13:10:15 +0000 (13:10 +0000)]
Fix mdoc execution mono path
Marek Safar [Thu, 3 Nov 2011 10:31:29 +0000 (10:31 +0000)]
Check overloaded method difference for CLS-compliance also with base class
Marek Safar [Thu, 3 Nov 2011 09:30:14 +0000 (09:30 +0000)]
Fix few more cascading errors
Marek Safar [Wed, 2 Nov 2011 15:26:43 +0000 (15:26 +0000)]
Use full type lenght when checking struct fields assignment
Marek Safar [Wed, 2 Nov 2011 14:48:08 +0000 (14:48 +0000)]
Update missing extension compiler type error message to workaround stupid MonoDevelop message bubbles
Marek Safar [Wed, 2 Nov 2011 14:21:49 +0000 (14:21 +0000)]
Reoder 4.x supported_runtimes versions to load correct mscorlib when <supportedRuntime ../> is used