mono.git
12 years agoReturn the right empty collection in ParseQueryString.
Gonzalo Paniagua Javier [Wed, 21 Sep 2011 11:37:59 +0000 (07:37 -0400)]
Return the right empty collection in ParseQueryString.

Fixes Xamarin bug #970.

12 years agoMerge pull request #173 from juhovh/master
Sebastien Pouliot [Wed, 21 Sep 2011 15:17:46 +0000 (08:17 -0700)]
Merge pull request #173 from juhovh/master

Bug in HMACSHA384 and HMACSHA512 calculation

12 years agoFix HMACSHA384 and HMACSHA512 for key length of [65, 128] bytes.
Juho Vähä-Herttua [Wed, 21 Sep 2011 14:16:01 +0000 (17:16 +0300)]
Fix HMACSHA384 and HMACSHA512 for key length of [65, 128] bytes.

12 years agoRemove few compiler workarounds
Marek Safar [Wed, 21 Sep 2011 08:26:25 +0000 (09:26 +0100)]
Remove few compiler workarounds

12 years agoFix build for 4.0 rtm
Marek Safar [Wed, 21 Sep 2011 08:24:28 +0000 (09:24 +0100)]
Fix build for 4.0 rtm

12 years agoFix the build, resolve the ambiguity
Miguel de Icaza [Wed, 21 Sep 2011 06:00:07 +0000 (02:00 -0400)]
Fix the build, resolve the ambiguity

12 years agoAdd more task awaiters and optimize existing ones by using new overloads
Marek Safar [Tue, 20 Sep 2011 18:01:01 +0000 (19:01 +0100)]
Add more task awaiters and optimize existing ones by using new overloads

12 years agoFix my profiler loader.
Miguel de Icaza [Tue, 20 Sep 2011 02:53:17 +0000 (22:53 -0400)]
Fix my profiler loader.

This is what happens when you test on a pre-configured environment that
already worked fine.    This depended on a function that was never called
so we ended up probing for paths on NULL (repeating the same process twice)
instead of loading the profiler from the installation directory.

12 years agoUpdate copyrights
Miguel de Icaza [Wed, 31 Aug 2011 03:49:33 +0000 (23:49 -0400)]
Update copyrights

12 years agoFix warnings.
Zoltan Varga [Tue, 20 Sep 2011 02:08:05 +0000 (04:08 +0200)]
Fix warnings.

12 years agoFix the ObjRefs sdb test
Zoltan Varga [Tue, 20 Sep 2011 00:30:36 +0000 (02:30 +0200)]
Fix the ObjRefs sdb test

12 years agoFix debugger invokes when using soft breakpoints on arm, fix setting values in registers
Zoltan Varga [Mon, 19 Sep 2011 23:40:18 +0000 (01:40 +0200)]
Fix debugger invokes when using soft breakpoints on arm, fix setting values in registers

12 years agoImplement the new interrupt machinery for ARM
Zoltan Varga [Tue, 20 Sep 2011 02:00:14 +0000 (04:00 +0200)]
Implement the new interrupt machinery for ARM

12 years agoCall ensure_synch_cs_set () in thread_cleanup () too, it is needed when disposing...
Zoltan Varga [Mon, 19 Sep 2011 23:38:55 +0000 (01:38 +0200)]
Call ensure_synch_cs_set () in thread_cleanup () too, it is needed when disposing the debugger thread

12 years agoAllocate a param area in START_HANDLER. Fixes filter-stack.exe on arm
Zoltan Varga [Thu, 15 Sep 2011 23:07:43 +0000 (01:07 +0200)]
Allocate a param area in START_HANDLER. Fixes filter-stack.exe on arm

12 years agoFix a timing issue in a test
Zoltan Varga [Tue, 6 Sep 2011 21:06:03 +0000 (23:06 +0200)]
Fix a timing issue in a test

12 years ago[Mono.Options] Don't throw ArgumentOutOfRangeException for trailing whitespace
Jonathan Pryor [Mon, 19 Sep 2011 19:43:41 +0000 (15:43 -0400)]
[Mono.Options] Don't throw ArgumentOutOfRangeException for trailing whitespace

Trailing whitespace in option description text shouldn't throw an
ArgumentOutOfRangeException.

12 years agoAdd few new 4.5 overloads
Marek Safar [Mon, 19 Sep 2011 18:33:56 +0000 (19:33 +0100)]
Add few new 4.5 overloads

12 years agoAdd 4.5 readonly collection interfaces
Marek Safar [Mon, 19 Sep 2011 15:56:52 +0000 (16:56 +0100)]
Add 4.5 readonly collection interfaces

12 years agoReport error about missing async support types
Marek Safar [Mon, 19 Sep 2011 15:20:57 +0000 (16:20 +0100)]
Report error about missing async support types

12 years agofix previous fix (wrt #808)
Sebastien Pouliot [Mon, 19 Sep 2011 15:22:36 +0000 (11:22 -0400)]
fix previous fix (wrt #808)

12 years agoMove some async types to corlib
Marek Safar [Mon, 19 Sep 2011 14:00:15 +0000 (15:00 +0100)]
Move some async types to corlib

12 years agoUpdate public corlib api
Marek Safar [Mon, 19 Sep 2011 11:46:11 +0000 (12:46 +0100)]
Update public corlib api

12 years ago[Mono.Debugger.Soft] Support custom transports
Michael Hutchinson [Mon, 19 Sep 2011 12:14:47 +0000 (13:14 +0100)]
[Mono.Debugger.Soft] Support custom transports

12 years agoAllow async block to capture this inside value types
Marek Safar [Fri, 16 Sep 2011 12:11:37 +0000 (13:11 +0100)]
Allow async block to capture this inside value types

12 years agoBetter error reporting for special runtime types
Marek Safar [Fri, 16 Sep 2011 10:56:48 +0000 (11:56 +0100)]
Better error reporting for special runtime types

12 years agoUpdate mcs lang version
Marek Safar [Fri, 16 Sep 2011 09:20:20 +0000 (10:20 +0100)]
Update mcs lang version

12 years agoBetter error reporting for async delegates
Marek Safar [Fri, 16 Sep 2011 08:44:28 +0000 (09:44 +0100)]
Better error reporting for async delegates

12 years agoFix typo (bug #808)
Sebastien Pouliot [Sun, 18 Sep 2011 14:35:15 +0000 (10:35 -0400)]
Fix typo (bug #808)

12 years agoExpose Dispose under the NET_2_1 based profiles. Fix bug #154
Sebastien Pouliot [Sun, 18 Sep 2011 14:26:13 +0000 (10:26 -0400)]
Expose Dispose under the NET_2_1 based profiles. Fix bug #154

12 years ago[mdoc] Add C#4 default parameter value support.
Jonathan Pryor [Sat, 17 Sep 2011 02:01:07 +0000 (22:01 -0400)]
[mdoc] Add C#4 default parameter value support.

12 years ago[mdoc-net] Copy 2.0 assemblies for .NET support.
Jonathan Pryor [Sat, 17 Sep 2011 02:00:17 +0000 (22:00 -0400)]
[mdoc-net] Copy 2.0 assemblies for .NET support.

mdoc.exe is built against the 2.0 profile, so copying 4.0 support
assemblies results in runtime errors under .NET.

12 years agoGetMarshalledDomainObjRef() is needed also in the 2.1-based profiles for appdomain...
Paolo Molaro [Fri, 16 Sep 2011 12:07:07 +0000 (14:07 +0200)]
GetMarshalledDomainObjRef() is needed also in the 2.1-based profiles for appdomain creation.

12 years agoAllow commit/rollback/update events to work under MonoTouch. Fix bug #233
Sebastien Pouliot [Fri, 16 Sep 2011 02:20:11 +0000 (22:20 -0400)]
Allow commit/rollback/update events to work under MonoTouch. Fix bug #233

12 years agoAdded the new mobile profile to the build.
Paolo Molaro [Thu, 15 Sep 2011 15:41:20 +0000 (17:41 +0200)]
Added the new mobile profile to the build.

12 years agoRemove duplicate 'using' statement
Gonzalo Paniagua Javier [Thu, 15 Sep 2011 15:33:59 +0000 (11:33 -0400)]
Remove duplicate 'using' statement

12 years agoUpdate few async error codes
Marek Safar [Thu, 15 Sep 2011 15:08:47 +0000 (16:08 +0100)]
Update few async error codes

12 years agoExtension methods cannot be declared on interfaces. Fixes #825
Marek Safar [Thu, 15 Sep 2011 14:06:49 +0000 (15:06 +0100)]
Extension methods cannot be declared on interfaces. Fixes #825

12 years agoUpdate test
Marek Safar [Thu, 15 Sep 2011 12:27:35 +0000 (13:27 +0100)]
Update test

12 years agoGenerate better code for small switch statements
Marek Safar [Wed, 14 Sep 2011 14:45:08 +0000 (15:45 +0100)]
Generate better code for small switch statements

12 years agoQuiet the 'copying selected object files' libtool message
Zoltan Varga [Thu, 15 Sep 2011 12:15:57 +0000 (14:15 +0200)]
Quiet the 'copying selected object files' libtool message

12 years agoUpdate .gitignore
Jonathan Chambers [Wed, 14 Sep 2011 01:11:00 +0000 (21:11 -0400)]
Update .gitignore

12 years agoStop lying in the comments
Gonzalo Paniagua Javier [Wed, 14 Sep 2011 00:20:04 +0000 (20:20 -0400)]
Stop lying in the comments

12 years agoReport compilation errors when the type named in 'class' can't be loaded.
Gonzalo Paniagua Javier [Wed, 14 Sep 2011 00:18:30 +0000 (20:18 -0400)]
Report compilation errors when the type named in 'class' can't be loaded.

12 years agoUpdate copyrights
Miguel de Icaza [Mon, 12 Sep 2011 23:31:09 +0000 (19:31 -0400)]
Update copyrights

12 years agoAvoid duplicates in the SSC xrefs.
Rodrigo Kumpera [Tue, 13 Sep 2011 17:15:10 +0000 (14:15 -0300)]
Avoid duplicates in the SSC xrefs.

* sgen-brige.c (scc_add_xref): Make sure that the xref
array is kept sorted by doing sorted insertion for single elements
and merging for a pair of lists.

This avoids degenerated cases where performance of the dfs2 step
goes unbound and slows us down significantly.

Fixes bxc #496

12 years agoAdd logging to sgen-bridge. Log times and sizes.
Rodrigo Kumpera [Tue, 13 Sep 2011 17:48:45 +0000 (14:48 -0300)]
Add logging to sgen-bridge. Log times and sizes.

12 years agoStore current threads Synchronization Context, if present, on ComObject
Tom Hindle [Tue, 13 Sep 2011 16:05:42 +0000 (17:05 +0100)]
Store current threads Synchronization Context, if present, on ComObject
creation so that in its finalizer ReleaseInterfaces is called on the correct
thread.

Fixes bug #672879

12 years ago[System.Data] Delay column expression evaluation after all the columns have been...
Rolf Bjarne Kvinge [Tue, 13 Sep 2011 12:02:51 +0000 (14:02 +0200)]
[System.Data] Delay column expression evaluation after all the columns have been cloned when cloning a table. Fixes #666.

When cloning a table we loop over all the columns and clone them, but if a column
contains an expression with a reference to a later column, we'll throw an exception
unless we delay the expression compilation until all the columns have been added
to the new table clone.

So I've split out the expression compilation logic from the Expression property setter,
and now the column Clone method only sets the field. The Clone caller is responsible
for calling CompileExpression on the cloned column after adding all the cloned columns to
the cloned table.

12 years ago[System.Data] Properly clone a column's extended properties when cloning a table...
Rolf Bjarne Kvinge [Tue, 13 Sep 2011 09:52:11 +0000 (11:52 +0200)]
[System.Data] Properly clone a column's extended properties when cloning a table. Fixes #668.

12 years agoCheck whether parent struct field is assigned when assigning to child field. Fixes...
Marek Safar [Tue, 13 Sep 2011 10:56:19 +0000 (11:56 +0100)]
Check whether parent struct field is assigned when assigning to child field. Fixes #685916

12 years agoOmit struct flow analysis only when resolving member access expression
Marek Safar [Fri, 9 Sep 2011 10:06:49 +0000 (11:06 +0100)]
Omit struct flow analysis only when resolving member access expression

12 years agoDelay initialization of the stream until first read
Gonzalo Paniagua Javier [Tue, 13 Sep 2011 05:22:39 +0000 (01:22 -0400)]
Delay initialization of the stream until first read

This way uri-based resources are not fetched before they are supposed
to.

Fixes Xamarin bug #762.

12 years agoInternal worker is kept while there is an ongoing operation
Gonzalo Paniagua Javier [Tue, 13 Sep 2011 04:01:38 +0000 (00:01 -0400)]
Internal worker is kept while there is an ongoing operation

When there is an ongoing operation we can't dispose the internal
worker because it might be used by the IO threadpool.

Fixes Novell bug #691076 and Xamarin bug #766.

12 years agoMore fixes for running unit tests under NET_2_1 profile
Sebastien Pouliot [Mon, 12 Sep 2011 14:48:12 +0000 (10:48 -0400)]
More fixes for running unit tests under NET_2_1 profile

12 years agoVarious fixes to the Expression parser, the fixes include:
Miguel de Icaza [Sat, 10 Sep 2011 02:02:46 +0000 (22:02 -0400)]
Various fixes to the Expression parser, the fixes include:

* Fixes to the SUBSTRING and TRIM function to allow
  a wider range of functions to be passed as
  parameters.   This fixes xamarin #665

* Fix to the Parser.jay grammar to eliminate the
  reduce/reduce conflicts.

* Dropping the string concatenation code and instead
  use the existing arithmetic addition operator which
  also fixes the concatenation operation in the presence
  of null values

* Adds the null literal

With the associated test cases.

12 years agoAdjust corlib unit tests to reduce failures when executed on the NET_2_1 profile
Sebastien Pouliot [Fri, 9 Sep 2011 17:43:15 +0000 (13:43 -0400)]
Adjust corlib unit tests to reduce failures when executed on the NET_2_1 profile

12 years agofix FileStream test failures under Mac OSX
Sebastien Pouliot [Fri, 9 Sep 2011 17:41:00 +0000 (13:41 -0400)]
fix FileStream test failures under Mac OSX

12 years agoThrowing IsolatedStorageException is a Moonlight-behavior and should not have been...
Sebastien Pouliot [Fri, 9 Sep 2011 17:18:37 +0000 (13:18 -0400)]
Throwing IsolatedStorageException is a Moonlight-behavior and should not have been exposed to other 2.1 profiles

12 years agoEnsure we can roundtrip 'Local' (special case) timezone. Fix bug #326
Sebastien Pouliot [Fri, 9 Sep 2011 15:29:52 +0000 (11:29 -0400)]
Ensure we can roundtrip 'Local' (special case) timezone. Fix bug #326

12 years agoReturn null instead of catching Activator exception (and return null). What was a...
Sebastien Pouliot [Thu, 8 Sep 2011 14:47:15 +0000 (10:47 -0400)]
Return null instead of catching Activator exception (and return null). What was a corner case before is now very common when the linker is used (e.g. monotouch, m4a). Reported in assistly #1741

12 years agoDon't back reference local variable from its info
Marek Safar [Thu, 8 Sep 2011 12:45:28 +0000 (13:45 +0100)]
Don't back reference local variable from its info

12 years agoNew tests
Marek Safar [Thu, 8 Sep 2011 12:45:11 +0000 (13:45 +0100)]
New tests

12 years agoRun definitely assigned check on dynamic member access. Fixes #593369
Marek Safar [Wed, 7 Sep 2011 16:54:15 +0000 (17:54 +0100)]
Run definitely assigned check on dynamic member access. Fixes #593369

12 years agoFallback: load profiler from the Mono default path. This in particular allows users...
Miguel de Icaza [Wed, 7 Sep 2011 22:44:10 +0000 (18:44 -0400)]
Fallback: load profiler from the Mono default path.  This in particular allows users to run mono --profiler=log foo.exe without having to set anuy environment variables

12 years agoFix definitive assignment for imported structs. Fixes #629547
Marek Safar [Wed, 7 Sep 2011 14:15:41 +0000 (15:15 +0100)]
Fix definitive assignment for imported structs. Fixes #629547

12 years agoAssign uninitialized out parameter
Marek Safar [Wed, 7 Sep 2011 13:51:09 +0000 (14:51 +0100)]
Assign uninitialized out parameter

12 years agoNew tests
Marek Safar [Wed, 7 Sep 2011 10:41:21 +0000 (11:41 +0100)]
New tests

12 years agoBetter fix for fixed buffer definite assignment checks. Fixes #619228
Marek Safar [Wed, 7 Sep 2011 10:40:03 +0000 (11:40 +0100)]
Better fix for fixed buffer definite assignment checks. Fixes #619228

12 years agoRun definitely assigned check on extension method argument. Fixes #518349
Marek Safar [Wed, 7 Sep 2011 09:52:01 +0000 (10:52 +0100)]
Run definitely assigned check on extension method argument. Fixes #518349

12 years agoAdd null-check on 'partDesc'. Fix bug #612 (WCF regression)
Sebastien Pouliot [Wed, 7 Sep 2011 15:16:23 +0000 (11:16 -0400)]
Add null-check on 'partDesc'. Fix bug #612 (WCF regression)

12 years agoFixes commit f355ebbb77704829b0d0e48eaa952ff0d193ffae
Marek Safar [Wed, 7 Sep 2011 09:12:29 +0000 (10:12 +0100)]
Fixes commit f355ebbb77704829b0d0e48eaa952ff0d193ffae

12 years agoRun definitely assigned check on member access expression where left expression is...
Marek Safar [Wed, 7 Sep 2011 09:04:40 +0000 (10:04 +0100)]
Run definitely assigned check on member access expression where left expression is variable. Fixes #278

12 years agoDelay foreach variable initialization
Marek Safar [Wed, 7 Sep 2011 08:22:12 +0000 (09:22 +0100)]
Delay foreach variable initialization

12 years agoLet the system figure our permissions instead of doing a poor job at it.
Rodrigo Kumpera [Tue, 6 Sep 2011 22:27:45 +0000 (19:27 -0300)]
Let the system figure our permissions instead of doing a poor job at it.

io.c (DeleteFile): We can't forbit a file to be deleted just before
it's mask is not u+w. We should just call unlink and let the kernel
figure out permissions.

We are not SAMBA.

We're not in the job of trying to mingle windows and unix permissions
models so we just let the kernel figure it out and translate the appropriate
errno value to UnauthorizedAccessException.

12 years agoRework TaskFactory.FromAsync, it was a bit messy.
Jérémie Laval [Tue, 6 Sep 2011 21:53:42 +0000 (23:53 +0200)]
Rework TaskFactory.FromAsync, it was a bit messy.

12 years agoUse a TaskCompletionSource in non-generic ContinueWhenAny case. Fix #647.
Jérémie Laval [Tue, 6 Sep 2011 21:52:57 +0000 (23:52 +0200)]
Use a TaskCompletionSource in non-generic ContinueWhenAny case. Fix #647.

12 years agoMerge pull request #169 from madewokherd/master
Zoltan Varga [Tue, 6 Sep 2011 20:31:48 +0000 (13:31 -0700)]
Merge pull request #169 from madewokherd/master

replace uint with guint

12 years agoUse guint instead of uint.
Vincent Povirk [Tue, 6 Sep 2011 19:44:01 +0000 (14:44 -0500)]
Use guint instead of uint.

12 years agoImprove exception message.
Rodrigo Kumpera [Tue, 6 Sep 2011 17:22:06 +0000 (14:22 -0300)]
Improve exception message.

12 years agoAdd sgen collection pause times to mono trace log.
Rodrigo Kumpera [Fri, 2 Sep 2011 20:53:50 +0000 (17:53 -0300)]
Add sgen collection pause times to mono trace log.

12 years agoFix start location of char literals
Marek Safar [Tue, 6 Sep 2011 14:27:59 +0000 (15:27 +0100)]
Fix start location of char literals

12 years agoPersist char literal value under full ast
Marek Safar [Tue, 6 Sep 2011 12:44:43 +0000 (13:44 +0100)]
Persist char literal value under full ast

12 years agoAdd more async extensions
Marek Safar [Tue, 6 Sep 2011 12:20:59 +0000 (13:20 +0100)]
Add more async extensions

12 years agomake test public
Marek Safar [Tue, 6 Sep 2011 11:15:30 +0000 (12:15 +0100)]
make test public

12 years agoRevert part of 4a17e24982852fc0d939 which broke most of existing tests
Marek Safar [Tue, 6 Sep 2011 10:58:10 +0000 (11:58 +0100)]
Revert part of 4a17e24982852fc0d939 which broke most of existing tests

12 years agoRemove NET_2_0
Marek Safar [Tue, 6 Sep 2011 09:44:43 +0000 (10:44 +0100)]
Remove NET_2_0

12 years agoFix ResourceSet regression caused by 4a17e24982852fc0d939
Marek Safar [Tue, 6 Sep 2011 09:37:09 +0000 (10:37 +0100)]
Fix ResourceSet regression caused by 4a17e24982852fc0d939

12 years agoRemove NET_2_0
Marek Safar [Tue, 6 Sep 2011 09:26:51 +0000 (10:26 +0100)]
Remove NET_2_0

12 years agoFix wrong string unit test
Marek Safar [Tue, 6 Sep 2011 09:18:40 +0000 (10:18 +0100)]
Fix wrong string unit test

12 years agoRemove NET_2_0
Marek Safar [Tue, 6 Sep 2011 09:05:25 +0000 (10:05 +0100)]
Remove NET_2_0

12 years agoDon't set NewSlot attribute when base class already implements the interface method...
Marek Safar [Tue, 6 Sep 2011 08:29:40 +0000 (09:29 +0100)]
Don't set NewSlot attribute when base class already implements the interface method and same method exists in derived class

12 years agoDisplay more debugging info when epoll fails
Gonzalo Paniagua Javier [Tue, 6 Sep 2011 01:12:14 +0000 (21:12 -0400)]
Display more debugging info when epoll fails

12 years agoFallback to poll() if epoll_create() fails
Gonzalo Paniagua Javier [Tue, 6 Sep 2011 00:49:08 +0000 (20:49 -0400)]
Fallback to poll() if epoll_create() fails

From a patch by Zoltan in bug #705190.

12 years agoHandle threads which die without detaching.
Zoltan Varga [Tue, 6 Sep 2011 02:20:51 +0000 (04:20 +0200)]
Handle threads which die without detaching.

12 years agoAdd a few missing cases to event_to_string () in sdb.
Zoltan Varga [Tue, 6 Sep 2011 02:11:10 +0000 (04:11 +0200)]
Add a few missing cases to event_to_string () in sdb.

12 years agoRemove some unused arguments from mono_arch_handle_exception () / mono_handle_excepti...
Zoltan Varga [Tue, 6 Sep 2011 00:41:49 +0000 (02:41 +0200)]
Remove some unused arguments from mono_arch_handle_exception () / mono_handle_exception ().

12 years agoImplement mono_arch_setup_async_callback () for amd64.
Zoltan Varga [Tue, 6 Sep 2011 00:10:04 +0000 (02:10 +0200)]
Implement mono_arch_setup_async_callback () for amd64.

12 years agoFix a warning.
Zoltan Varga [Mon, 5 Sep 2011 22:19:41 +0000 (00:19 +0200)]
Fix a warning.

12 years agoOptimize AOT generics data structures a bit more.
Zoltan Varga [Mon, 5 Sep 2011 20:12:38 +0000 (22:12 +0200)]
Optimize AOT generics data structures a bit more.