mono.git
12 years agoAnother build profile version fix
Marek Safar [Tue, 27 Sep 2011 10:48:21 +0000 (11:48 +0100)]
Another build profile version fix

12 years agoRemove 2.0 reference from 4.0 profile xbuild
Marek Safar [Tue, 27 Sep 2011 09:49:41 +0000 (10:49 +0100)]
Remove 2.0 reference from 4.0 profile xbuild

12 years agoUse correct version of xbuild 4.0 targets
Marek Safar [Tue, 27 Sep 2011 09:23:32 +0000 (10:23 +0100)]
Use correct version of xbuild 4.0 targets

12 years agoSplit bridge processing in two steps.
Rodrigo Kumpera [Mon, 26 Sep 2011 22:19:58 +0000 (19:19 -0300)]
Split bridge processing in two steps.

* sgen-bridge.c: Bridge processing must be split in
two steps because the object scanning step must be done
with world stop and before we copy the finalizable objects
and the ones pointed by them.

12 years agoFix the interation of non tracking weak refs and ephemerons.
Rodrigo Kumpera [Mon, 26 Sep 2011 21:26:31 +0000 (18:26 -0300)]
Fix the interation of non tracking weak refs and ephemerons.

* sgen-gc.c (finish_gray_stack): We must process ephemerons
before we check for non track weak refs to make sure we mark
those values whose only root are their keys.

12 years agoFix another framework version check
Marek Safar [Mon, 26 Sep 2011 21:36:32 +0000 (22:36 +0100)]
Fix another framework version check

12 years agoClean up mixed tabs and spaces
Marek Safar [Mon, 26 Sep 2011 14:47:58 +0000 (15:47 +0100)]
Clean up mixed tabs and spaces

12 years agoFix a bunch of data races.
Rodrigo Kumpera [Mon, 26 Sep 2011 19:40:58 +0000 (16:40 -0300)]
Fix a bunch of data races.

12 years agoFix enter/exit critical region visibility.
Rodrigo Kumpera [Mon, 26 Sep 2011 19:40:39 +0000 (16:40 -0300)]
Fix enter/exit critical region visibility.

12 years agoComplete acquire/release ops. Make acquire/release have ECMA sematics.
Rodrigo Kumpera [Mon, 26 Sep 2011 19:39:28 +0000 (16:39 -0300)]
Complete acquire/release ops. Make acquire/release have ECMA sematics.

12 years ago[mdoc-update] Properly implement C#4 dynamic support.
Jonathan Pryor [Mon, 26 Sep 2011 18:22:49 +0000 (14:22 -0400)]
[mdoc-update] Properly implement C#4 dynamic support.

The `dynamic` support in d80fadf was incomplete, in that it would only
find `dynamic` types, and not generic types, e.g.
`Dictionary<string, dynamic>` would be declared as
`Dictionary<string, object>`.

To figure this out, we need to read the
DynamicAttribute.TransformFlags value, which is a bool[] which
specifies which types in the depth-first traversal of the type should
be `dynamic` instead of the actual type, e.g. for
Dictionary<string,object> the bool[] is {false, false, true}.

This requires that we pass a "context" object whenever we have the
"root" of the object, so that we can properly count the depth-first
generic type traversal and generate an appropriate declaration.

12 years agoRun mdoc tests with --debug.
Jonathan Pryor [Mon, 26 Sep 2011 18:20:05 +0000 (14:20 -0400)]
Run mdoc tests with --debug.

It's more useful to see a stacktrace when things regress. :-)

12 years agoDon't install resgen when cannot be used
Marek Safar [Mon, 26 Sep 2011 11:27:51 +0000 (12:27 +0100)]
Don't install resgen when cannot be used

12 years agoFix System.Threading.Tasks.Dataflow version info
Marek Safar [Mon, 26 Sep 2011 11:26:40 +0000 (12:26 +0100)]
Fix System.Threading.Tasks.Dataflow version info

12 years agoInstall 4.0 profile as developers package and make 4.5 profile default gac target...
Marek Safar [Mon, 26 Sep 2011 11:08:01 +0000 (12:08 +0100)]
Install 4.0 profile as developers package and make 4.5 profile default gac target for 4.x

12 years agoCreate the first tp thread right away.
Gonzalo Paniagua Javier [Sun, 25 Sep 2011 06:19:45 +0000 (02:19 -0400)]
Create the first tp thread right away.

Avoid 500ms delay.  Fixes Xamarin bug #1036.

12 years agoMove things around in Task and Task_T
Jérémie Laval [Sun, 25 Sep 2011 16:53:56 +0000 (18:53 +0200)]
Move things around in Task and Task_T

12 years agoOptimize more how continuation are registered and executed to avoid extra allocation
Jérémie Laval [Sun, 25 Sep 2011 16:36:02 +0000 (18:36 +0200)]
Optimize more how continuation are registered and executed to avoid extra allocation

12 years agoMimic simpleAction usage in Task<T> to avoid creating an extra delegate in the simple...
Jérémie Laval [Sun, 25 Sep 2011 16:31:45 +0000 (18:31 +0200)]
Mimic simpleAction usage in Task<T> to avoid creating an extra delegate in the simple case

12 years agoUse quicket methods to launch a Task on the threadpool
Jérémie Laval [Sun, 25 Sep 2011 16:11:27 +0000 (18:11 +0200)]
Use quicket methods to launch a Task on the threadpool

12 years agoDon't create a delegate each time we use a TaskCompletionSource method
Jérémie Laval [Sun, 25 Sep 2011 14:17:29 +0000 (16:17 +0200)]
Don't create a delegate each time we use a TaskCompletionSource method

12 years agoLazy allocate childTasks field in Task
Jérémie Laval [Sun, 25 Sep 2011 10:54:36 +0000 (12:54 +0200)]
Lazy allocate childTasks field in Task

12 years agoOptimize continuation registration for a single ContinueWith.
Jérémie Laval [Sun, 25 Sep 2011 10:53:30 +0000 (12:53 +0200)]
Optimize continuation registration for a single ContinueWith.

12 years agoFix build
Jérémie Laval [Sun, 25 Sep 2011 10:25:42 +0000 (12:25 +0200)]
Fix build

12 years agoFix double adding in ConcurrentDictionary ctor with IEnumerable seed.
Jérémie Laval [Sun, 25 Sep 2011 09:22:51 +0000 (11:22 +0200)]
Fix double adding in ConcurrentDictionary ctor with IEnumerable seed.

12 years agoFix for #892
Jérémie Laval [Mon, 19 Sep 2011 16:30:25 +0000 (18:30 +0200)]
Fix for #892

12 years agoFix more argument checking for Task<T>
Jérémie Laval [Mon, 19 Sep 2011 16:17:56 +0000 (18:17 +0200)]
Fix more argument checking for Task<T>

12 years agoCheck that supplied function argument in a Task<T> ctor isn't null
Jérémie Laval [Mon, 19 Sep 2011 15:33:56 +0000 (17:33 +0200)]
Check that supplied function argument in a Task<T> ctor isn't null

12 years ago[sgen] If we couldn't evacuate the nursery after a major collection, do a minor colle...
Mark Probst [Sat, 24 Sep 2011 12:39:06 +0000 (14:39 +0200)]
[sgen] If we couldn't evacuate the nursery after a major collection, do a minor collection.

If in the course of a major collection we run out of memory, we might
not be able to evacuate the nursery anymore, which means we'd probably
go into degraded mode soon.  It's very likely, however, that memory is
freed again during the sweep phase, so if we do a nursery collection
after the major collection, we should have a clean nursery again.

12 years ago[sgen] Never directly pin objects on the M&S major heap.
Mark Probst [Sat, 24 Sep 2011 12:16:56 +0000 (14:16 +0200)]
[sgen] Never directly pin objects on the M&S major heap.

We don't use the pin bit in the M&S heap blocks.  If we did that we'd
have to scan them all in the sweep phase, which would not be good
cache behaviour.

Instead, to pin an object we set its mark bit and the block's
has_pinned flag.  We'd need to (should) set the latter anyway, to
avoid evicting other objects out of that block.

12 years agoProvide binding for sqlite3_config to allow setting the threading model. Fix bug...
Sebastien Pouliot [Sat, 24 Sep 2011 13:35:23 +0000 (09:35 -0400)]
Provide binding for sqlite3_config to allow setting the threading model. Fix bug #652

12 years agoFix the namespace of a corlib test and quiet some tests.
Zoltan Varga [Sat, 24 Sep 2011 01:21:45 +0000 (03:21 +0200)]
Fix the namespace of a corlib test and quiet some tests.

12 years agoAdd missing RabbitMW source
Marek Safar [Fri, 23 Sep 2011 21:52:39 +0000 (22:52 +0100)]
Add missing RabbitMW source

12 years agoAdd extra 4.5 conditional
Marek Safar [Fri, 23 Sep 2011 18:56:46 +0000 (19:56 +0100)]
Add extra 4.5 conditional

12 years agoUpdate gitignore
Marek Safar [Fri, 23 Sep 2011 18:53:26 +0000 (19:53 +0100)]
Update gitignore

12 years agoIntroduce separate .net 4.5 profile
Marek Safar [Fri, 23 Sep 2011 18:37:04 +0000 (19:37 +0100)]
Introduce separate .net 4.5 profile

12 years agoUpdate test with timeout
Marek Safar [Thu, 22 Sep 2011 17:26:01 +0000 (18:26 +0100)]
Update test with timeout

12 years agoUse correct expression for infered default value argument. Fixes #983
Marek Safar [Thu, 22 Sep 2011 17:25:25 +0000 (18:25 +0100)]
Use correct expression for infered default value argument. Fixes #983

12 years agoAdd a few new async stream methods
Marek Safar [Thu, 22 Sep 2011 16:10:44 +0000 (17:10 +0100)]
Add a few new async stream methods

12 years agoMake CancellationToken more lightweight and fix few bugs in it
Marek Safar [Wed, 21 Sep 2011 16:11:13 +0000 (17:11 +0100)]
Make CancellationToken more lightweight and fix few bugs in it

12 years ago[Microsoft.Build] Stub out a few types to make nuget run.
Rolf Bjarne Kvinge [Wed, 21 Sep 2011 21:14:33 +0000 (23:14 +0200)]
[Microsoft.Build] Stub out a few types to make nuget run.

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