mono.git
12 years agoIntroduce a callback API to have notifications when runtime resources exceed preset...
Paolo Molaro [Tue, 4 Oct 2011 15:50:57 +0000 (17:50 +0200)]
Introduce a callback API to have notifications when runtime resources exceed preset limits.

12 years agoAllow type inference of lambda return type using type argument inside array
Marek Safar [Tue, 4 Oct 2011 10:19:31 +0000 (11:19 +0100)]
Allow type inference of lambda return type using type argument inside array

12 years agoFix recent regression caused by changes to assignment of struct fields
Marek Safar [Tue, 4 Oct 2011 08:33:40 +0000 (09:33 +0100)]
Fix recent regression caused by changes to assignment of struct fields

12 years ago[mdoc] Add tests for C#4 dynamic, default method parameter values.
Jonathan Pryor [Mon, 3 Oct 2011 19:53:44 +0000 (15:53 -0400)]
[mdoc] Add tests for C#4 dynamic, default method parameter values.

12 years ago[mdoc] Add tests for C#4 variance support.
Jonathan Pryor [Mon, 3 Oct 2011 19:27:56 +0000 (15:27 -0400)]
[mdoc] Add tests for C#4 variance support.

12 years agoAdd ProtectionTokenParameter for mutual nego. Patch by Alexander Riman.
Atsushi Eno [Mon, 3 Oct 2011 15:00:43 +0000 (00:00 +0900)]
Add ProtectionTokenParameter for mutual nego. Patch by Alexander Riman.

12 years agoUpdate to the latest ikvm reflection
Marek Safar [Mon, 3 Oct 2011 12:49:24 +0000 (13:49 +0100)]
Update to the latest ikvm reflection

12 years agoFix xbuild.rsp install location
Marek Safar [Mon, 3 Oct 2011 12:22:13 +0000 (13:22 +0100)]
Fix xbuild.rsp install location

12 years agoconfigure.{ac,in}: Point to the new Bugzilla.
alexrp [Fri, 30 Sep 2011 19:08:41 +0000 (21:08 +0200)]
configure.{ac,in}: Point to the new Bugzilla.

12 years agoAdd more 4.5 task methods
Marek Safar [Fri, 30 Sep 2011 18:25:07 +0000 (19:25 +0100)]
Add more 4.5 task methods

12 years agoMutate async awaiter when it's of generic type
Marek Safar [Fri, 30 Sep 2011 18:24:12 +0000 (19:24 +0100)]
Mutate async awaiter when it's of generic type

12 years agoAdd gitignore
Marek Safar [Thu, 29 Sep 2011 14:43:27 +0000 (15:43 +0100)]
Add gitignore

12 years agoMerge pull request #175 from alexrp/master
Marek Safar [Fri, 30 Sep 2011 09:59:16 +0000 (02:59 -0700)]
Merge pull request #175 from alexrp/master

Use Console.Is*Redirected for the 4.5 profile in csharp's repl.cs.

12 years agoUse Console.Is*Redirected for the 4.5 profile in csharp's repl.cs.
alexrp [Fri, 30 Sep 2011 11:35:07 +0000 (13:35 +0200)]
Use Console.Is*Redirected for the 4.5 profile in csharp's repl.cs.

12 years agoAdd new Is*Redirected properties to Console for the 4.5 profile.
alexrp [Thu, 29 Sep 2011 16:43:01 +0000 (18:43 +0200)]
Add new Is*Redirected properties to Console for the 4.5 profile.

12 years agoMerge pull request #174 from alexrp/master
Marek Safar [Fri, 30 Sep 2011 09:00:36 +0000 (02:00 -0700)]
Merge pull request #174 from alexrp/master

Add new Is*Redirected properties to Console for the 4.5 profile.

12 years agoPlug an unmanaged memory leak
Gonzalo Paniagua Javier [Fri, 30 Sep 2011 05:20:29 +0000 (01:20 -0400)]
Plug an unmanaged memory leak

If Flush() was called with final_flush set to true, we were leaking the
unmanaged memory in the output stream (if allocated).

It was "only" an AS leak.

Thanks to Kumpera for the help debugging this.

12 years agoMake mdoc a .NET 4.0 profile app.
Jonathan Pryor [Thu, 29 Sep 2011 16:10:33 +0000 (12:10 -0400)]
Make mdoc a .NET 4.0 profile app.

This isn't so much so that mdoc can use C#4 features. It's instead so
that the mdoc unit tests can use C#4 features. :-)

12 years agoInclude the correct profile directory in MONO_PATH.
Jonathan Pryor [Mon, 26 Sep 2011 19:06:30 +0000 (15:06 -0400)]
Include the correct profile directory in MONO_PATH.

Running a 4.0-built mdoc.exe against the 2.0 profile leads to pain.

12 years agoMerge pull request #167 from konrad-kruczynski/send_async_fix
Gonzalo Paniagua Javier [Thu, 29 Sep 2011 15:30:47 +0000 (08:30 -0700)]
Merge pull request #167 from konrad-kruczynski/send_async_fix

Fix for Xamarin bug #531.

12 years ago[TimeZone] Fixed race condition with renewing the CurrentTimeZone object.
Jeffrey Stedfast [Thu, 29 Sep 2011 14:56:13 +0000 (10:56 -0400)]
[TimeZone] Fixed race condition with renewing the CurrentTimeZone object.

Fixes bug #1055.

12 years agoFix check for ambiguous async tasks
Marek Safar [Thu, 29 Sep 2011 13:55:21 +0000 (14:55 +0100)]
Fix check for ambiguous async tasks

12 years agoSearch for .net 4.5 corlib in correct profile folder
Marek Safar [Thu, 29 Sep 2011 13:13:04 +0000 (14:13 +0100)]
Search for .net 4.5 corlib in correct profile folder

12 years agoDistribute net_4_5 specific data
Marek Safar [Thu, 29 Sep 2011 13:11:03 +0000 (14:11 +0100)]
Distribute net_4_5 specific data

12 years agoRequest ObjectMirror type and domain in a single request.
Rodrigo Kumpera [Thu, 29 Sep 2011 00:51:35 +0000 (02:51 +0200)]
Request ObjectMirror type and domain in a single request.

12 years agoCache thread id.
Rodrigo Kumpera [Wed, 24 Aug 2011 20:30:59 +0000 (17:30 -0300)]
Cache thread id.

12 years agoCache source files.
Rodrigo Kumpera [Wed, 24 Aug 2011 20:30:42 +0000 (17:30 -0300)]
Cache source files.

12 years agoCache ObjectMirror type and domain.
Rodrigo Kumpera [Wed, 24 Aug 2011 00:44:50 +0000 (21:44 -0300)]
Cache ObjectMirror type and domain.

12 years agoAvoid looking up the ctor mirror twice.
Rodrigo Kumpera [Wed, 24 Aug 2011 00:30:22 +0000 (21:30 -0300)]
Avoid looking up the ctor mirror twice.

12 years agoAvoid a crash if mono_debug_open_image_from_memory is called without --debug. Fixes...
Zoltan Varga [Thu, 29 Sep 2011 00:01:11 +0000 (02:01 +0200)]
Avoid a crash if mono_debug_open_image_from_memory is called without --debug. Fixes #1093.

12 years ago[CSharpCodeGenerator] Revert change for not ignoring Final attr on fields
Lluis Sanchez [Wed, 28 Sep 2011 16:20:42 +0000 (18:20 +0200)]
[CSharpCodeGenerator] Revert change for not ignoring Final attr on fields

MS.NET does ignore the Final attribute for fields, so we
have to ignore it to be compatible. Also, CodeMemberField
objects are created with the Final flag set, so with this
change all fields were now generated as readonly, which
is a severe regression.

12 years agoFix broken task test
Marek Safar [Wed, 28 Sep 2011 14:25:09 +0000 (15:25 +0100)]
Fix broken task test

12 years agoDon't crash when constant resolver returns error expression
Marek Safar [Wed, 28 Sep 2011 12:10:46 +0000 (13:10 +0100)]
Don't crash when constant resolver returns error expression

12 years agoUpdate tools makefile to build with latest profile
Marek Safar [Wed, 28 Sep 2011 11:35:26 +0000 (12:35 +0100)]
Update tools makefile to build with latest profile

12 years agoAdd 4.5 sdk detection to mcs
Marek Safar [Wed, 28 Sep 2011 11:33:58 +0000 (12:33 +0100)]
Add 4.5 sdk detection to mcs

12 years agoRemove unused class
Marek Safar [Wed, 28 Sep 2011 10:07:51 +0000 (11:07 +0100)]
Remove unused class

12 years agoYet another wrong version check
Marek Safar [Wed, 28 Sep 2011 08:30:29 +0000 (09:30 +0100)]
Yet another wrong version check

12 years agoFix another version check
Marek Safar [Wed, 28 Sep 2011 08:13:50 +0000 (09:13 +0100)]
Fix another version check

12 years agoImplement stream async methods
Marek Safar [Tue, 27 Sep 2011 17:42:19 +0000 (18:42 +0100)]
Implement stream async methods

12 years agoSave/restore argument registers when instrumenting tail calls. Fixes #971
Zoltan Varga [Tue, 27 Sep 2011 18:57:59 +0000 (20:57 +0200)]
Save/restore argument registers when instrumenting tail calls. Fixes #971

12 years agoFix execution when same continuation is registered several times
Jérémie Laval [Tue, 27 Sep 2011 17:07:41 +0000 (19:07 +0200)]
Fix execution when same continuation is registered several times

12 years agoFix TaskFactoryTest
Marek Safar [Tue, 27 Sep 2011 14:47:38 +0000 (15:47 +0100)]
Fix TaskFactoryTest

12 years agoFix mcs/doc builds
Marek Safar [Tue, 27 Sep 2011 13:23:06 +0000 (14:23 +0100)]
Fix mcs/doc builds

12 years agoAdd 4.5 profile support to xbuild
Marek Safar [Tue, 27 Sep 2011 10:51:47 +0000 (11:51 +0100)]
Add 4.5 profile support to xbuild

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