mono.git
13 years agoFix repl using declaration after type declaration
Marek Safar [Thu, 17 Feb 2011 21:06:35 +0000 (21:06 +0000)]
Fix repl using declaration after type declaration

13 years agoLoad default references after user references so they can rely on corlib
Marek Safar [Thu, 17 Feb 2011 20:58:17 +0000 (20:58 +0000)]
Load default references after user references so they can rely on corlib

13 years agoEven more 4.0 profile mcs update
Marek Safar [Thu, 17 Feb 2011 19:28:20 +0000 (19:28 +0000)]
Even more 4.0 profile mcs update

13 years agoCleanup repl from most of static stuff and fix many hidden issues
Marek Safar [Thu, 17 Feb 2011 19:18:57 +0000 (19:18 +0000)]
Cleanup repl from most of static stuff and fix many hidden issues

13 years ago[asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method...
Marek Habersack [Thu, 17 Feb 2011 18:34:24 +0000 (19:34 +0100)]
[asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method overloads.

13 years agoDon't use runtime flag for basic compiler (it still lives in old world)
Marek Safar [Thu, 17 Feb 2011 18:33:24 +0000 (18:33 +0000)]
Don't use runtime flag for basic compiler (it still lives in old world)

13 years agoFixed exception string (spaces between words = good)
Jeffrey Stedfast [Thu, 17 Feb 2011 18:00:50 +0000 (13:00 -0500)]
Fixed exception string (spaces between words = good)

13 years ago[mcs] Fix builds which use full file paths on the command line
Marek Habersack [Thu, 17 Feb 2011 00:04:41 +0000 (01:04 +0100)]
[mcs] Fix builds which use full file paths on the command line

Passing /tmp/source.cs to mcs would result in "error CS2007: Unrecognized command-line option: /tmp/source.cs"
this patch fixes it.

13 years agoSet correct runtime version for corlib now when mcs defaults to 4.
Marek Safar [Thu, 17 Feb 2011 16:31:14 +0000 (16:31 +0000)]
Set correct runtime version for corlib now when mcs defaults to 4.

13 years agoCorrectly set underlying type of reduced side-effect constant expression
Marek Safar [Thu, 17 Feb 2011 15:18:39 +0000 (15:18 +0000)]
Correctly set underlying type of reduced side-effect constant expression

13 years agoAllow people to optionally fallback to the old scheduler with an environment variable
Jérémie Laval [Thu, 17 Feb 2011 15:36:27 +0000 (15:36 +0000)]
Allow people to optionally fallback to the old scheduler with an environment variable

13 years agoRemove ctors in TpScheduler
Jérémie Laval [Thu, 17 Feb 2011 15:35:32 +0000 (15:35 +0000)]
Remove ctors in TpScheduler

This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.

13 years agoMake TryExecuteTaskInline a bit smarter
Jérémie Laval [Thu, 17 Feb 2011 15:35:02 +0000 (15:35 +0000)]
Make TryExecuteTaskInline a bit smarter

13 years agoRefactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy
Jérémie Laval [Thu, 17 Feb 2011 15:34:11 +0000 (15:34 +0000)]
Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy

13 years agoKill old IScheduler interface.
Jérémie Laval [Thu, 17 Feb 2011 14:40:08 +0000 (14:40 +0000)]
Kill old IScheduler interface.

We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler

13 years agoWhen finding best worker number in Parallel loops use current TaskScheduler instead...
Jérémie Laval [Thu, 17 Feb 2011 14:03:10 +0000 (14:03 +0000)]
When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler

13 years agoAdapt TpScheduler to the new API in TaskScheduler
Jérémie Laval [Thu, 17 Feb 2011 13:34:04 +0000 (13:34 +0000)]
Adapt TpScheduler to the new API in TaskScheduler

13 years agoCache callback delegate in TpScheduler when passing Task to QueueUserWorkItem
Jérémie Laval [Thu, 17 Feb 2011 13:33:19 +0000 (13:33 +0000)]
Cache callback delegate in TpScheduler when passing Task to QueueUserWorkItem

13 years agoDon't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem
Jérémie Laval [Mon, 14 Feb 2011 17:58:38 +0000 (17:58 +0000)]
Don't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem

13 years agoTry to execute task inline when they are ready to run and we wait on them with no...
Jérémie Laval [Mon, 14 Feb 2011 11:04:52 +0000 (11:04 +0000)]
Try to execute task inline when they are ready to run and we wait on them with no timeout

13 years agoThreadpool Task scheduler
Jérémie Laval [Wed, 2 Feb 2011 16:44:43 +0000 (16:44 +0000)]
Threadpool Task scheduler

13 years agoMerge few more changes from MD
Marek Safar [Thu, 17 Feb 2011 14:45:24 +0000 (14:45 +0000)]
Merge few more changes from MD

13 years agoRemove install hack from mcs/mcs
Marek Safar [Thu, 17 Feb 2011 14:00:43 +0000 (14:00 +0000)]
Remove install hack from mcs/mcs

13 years agoFix Location to have reasonable limits when running under MD
Marek Safar [Thu, 17 Feb 2011 13:52:42 +0000 (13:52 +0000)]
Fix Location to have reasonable limits when running under MD

13 years agoHandle gsharing and marshal by ref.
Rodrigo Kumpera [Thu, 17 Feb 2011 13:44:28 +0000 (14:44 +0100)]
Handle gsharing and marshal by ref.

* method-to-ir.c (mono_emit_method_call_full): Non virtual
marshal by ref methods with gsharing context must always
be called using indirect calls.

Fixes #665893

13 years agoget out from NET_4_0.
Atsushi Eno [Thu, 17 Feb 2011 13:20:15 +0000 (22:20 +0900)]
get out from NET_4_0.

13 years agoCouple of corcompare fixes.
Atsushi Eno [Thu, 17 Feb 2011 12:07:13 +0000 (21:07 +0900)]
Couple of corcompare fixes.

13 years agoOnly use non-null values in ServiceAuthorizationBehavior.
Atsushi Eno [Thu, 17 Feb 2011 12:06:12 +0000 (21:06 +0900)]
Only use non-null values in ServiceAuthorizationBehavior.

13 years agoFill a couple of missing ServiceAuthorizationElement implementation.
Atsushi Eno [Thu, 17 Feb 2011 12:05:32 +0000 (21:05 +0900)]
Fill a couple of missing ServiceAuthorizationElement implementation.

13 years agoHTTP authentication in HttpListener had dropped during refactoring. Now it's back.
Atsushi Eno [Thu, 17 Feb 2011 12:04:34 +0000 (21:04 +0900)]
HTTP authentication in HttpListener had dropped during refactoring. Now it's back.

13 years agoReturn a new object in ObjectPool when too much time is spent spinning in Take
Jérémie Laval [Wed, 16 Feb 2011 13:46:01 +0000 (13:46 +0000)]
Return a new object in ObjectPool when too much time is spent spinning in Take

13 years agoRemove duplicate Mono.Softdebugger
Marek Safar [Thu, 17 Feb 2011 09:30:11 +0000 (09:30 +0000)]
Remove duplicate Mono.Softdebugger

13 years agoFix full path file names parsing
Marek Safar [Thu, 17 Feb 2011 09:28:56 +0000 (09:28 +0000)]
Fix full path file names parsing

13 years agoFix ARCH_STORE_REGS on arm to save r0->r12 properly
Geoff Norton [Wed, 16 Feb 2011 21:10:11 +0000 (16:10 -0500)]
Fix ARCH_STORE_REGS on arm to save r0->r12 properly

13 years agoRemove dead code
Geoff Norton [Wed, 16 Feb 2011 20:04:23 +0000 (15:04 -0500)]
Remove dead code

13 years agoAnother make dist fix
Marek Safar [Wed, 16 Feb 2011 19:07:44 +0000 (19:07 +0000)]
Another make dist fix

13 years agoMakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Atsushi Eno [Wed, 16 Feb 2011 15:55:15 +0000 (00:55 +0900)]
MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.

Fixed bug #670539.

13 years agofix the mobile build
Jb Evain [Wed, 16 Feb 2011 15:35:38 +0000 (16:35 +0100)]
fix the mobile build

13 years agoKeep monolite in line with mono 2.4 corlib as I cannot handle two different versions
Marek Safar [Wed, 16 Feb 2011 15:31:05 +0000 (15:31 +0000)]
Keep monolite in line with mono 2.4 corlib as I cannot handle two different versions

13 years agoFix mcs exit code for informative arguments
Marek Safar [Wed, 16 Feb 2011 14:47:23 +0000 (14:47 +0000)]
Fix mcs exit code for informative arguments

13 years agoMake all arrays module specific
Marek Safar [Wed, 16 Feb 2011 14:12:42 +0000 (14:12 +0000)]
Make all arrays module specific

13 years agoDecorate _image_base__ with __MINGW_LSYMBOL
Hib Eris [Fri, 11 Feb 2011 14:29:09 +0000 (15:29 +0100)]
Decorate _image_base__ with __MINGW_LSYMBOL

This fix is needed in compiling for x86_x64.

13 years agoTrack what task is currently executed by a ThreadWorker and add the case for "parent...
Jérémie Laval [Wed, 16 Feb 2011 13:12:28 +0000 (13:12 +0000)]
Track what task is currently executed by a ThreadWorker and add the case for "parent waiting on children task it created" in CheckTaskFitness predicate.

This fixup PLinq processing when it's launched from a Task.

13 years agoCreate PLinq query tasks attached to their eventual task parent by default
Jérémie Laval [Wed, 16 Feb 2011 13:11:42 +0000 (13:11 +0000)]
Create PLinq query tasks attached to their eventual task parent by default

13 years agoWhen choosing the number of Task to create for a PLinq query, check if we are already...
Jérémie Laval [Wed, 16 Feb 2011 12:59:22 +0000 (12:59 +0000)]
When choosing the number of Task to create for a PLinq query, check if we are already in a running Task

13 years agoImplement properly TaskScheduler's FromCurrentSynchronizationContext
Jérémie Laval [Wed, 16 Feb 2011 12:53:27 +0000 (12:53 +0000)]
Implement properly TaskScheduler's FromCurrentSynchronizationContext

13 years agoLess static is good for my health
Marek Safar [Wed, 16 Feb 2011 12:23:36 +0000 (12:23 +0000)]
Less static is good for my health

13 years agoDon't reject serialization map for existing different (but same-purpose) type.
Atsushi Eno [Wed, 16 Feb 2011 09:48:06 +0000 (18:48 +0900)]
Don't reject serialization map for existing different (but same-purpose) type.

13 years agoTo header seems mandatory in April2005, so fill it.
Atsushi Eno [Wed, 16 Feb 2011 09:17:09 +0000 (18:17 +0900)]
To header seems mandatory in April2005, so fill it.

13 years agoApril2005 AppSequence needs default constructor for deserialization.
Atsushi Eno [Wed, 16 Feb 2011 09:15:53 +0000 (18:15 +0900)]
April2005 AppSequence needs default constructor for deserialization.

13 years agoxsi:type parsing is wrong in default namespace resolution.
Atsushi Eno [Wed, 16 Feb 2011 09:02:28 +0000 (18:02 +0900)]
xsi:type parsing is wrong in default namespace resolution.

Fixed case #3 in bug #652331.

13 years agoOperation interface methods also have ServiceKnownType attributes.
Atsushi Eno [Wed, 16 Feb 2011 08:07:10 +0000 (17:07 +0900)]
Operation interface methods also have ServiceKnownType attributes.

13 years agoKnownTypeCollection; recursively registered type was not added to the collection...
Atsushi Eno [Wed, 16 Feb 2011 07:04:15 +0000 (16:04 +0900)]
KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state.

13 years agoFixes
Gonzalo Paniagua Javier [Wed, 16 Feb 2011 01:23:14 +0000 (20:23 -0500)]
Fixes

13 years agoRemove a bunch of warnings.
Gonzalo Paniagua Javier [Wed, 16 Feb 2011 00:58:08 +0000 (19:58 -0500)]
Remove a bunch of warnings.

13 years agoMake pdb2mdb work with files in other directories.
Martin Baulig [Tue, 15 Feb 2011 23:39:16 +0000 (00:39 +0100)]
Make pdb2mdb work with files in other directories.

Also added a public static method, so we can also use this as a library.

13 years agoMono.Debugger.Soft.dll is installed for 4.0 also.
Andrew Jorgensen [Thu, 10 Feb 2011 14:36:52 +0000 (07:36 -0700)]
Mono.Debugger.Soft.dll is installed for 4.0 also.

13 years ago[xbuild] Fix bug #671700, resource naming in presence of "Link".
Ankit Jain [Tue, 15 Feb 2011 14:38:05 +0000 (20:08 +0530)]
[xbuild] Fix bug #671700, resource naming in presence of "Link".

AssignTargetPath.cs: If 'Link' metadata is present, then use that
as the target path.

Add relevant test.

13 years agoNew test
Marek Safar [Tue, 15 Feb 2011 14:30:07 +0000 (14:30 +0000)]
New test

13 years ago[671878] Fixes IKVM ordering of catch clauses
Marek Safar [Tue, 15 Feb 2011 14:29:07 +0000 (14:29 +0000)]
[671878] Fixes IKVM ordering of catch clauses

13 years agoFix few warnings
Marek Safar [Tue, 15 Feb 2011 14:08:06 +0000 (14:08 +0000)]
Fix few warnings

13 years agoAsync MessageContract pattern needs more sophisticated contract validity check.
Atsushi Eno [Tue, 15 Feb 2011 14:24:01 +0000 (23:24 +0900)]
Async MessageContract pattern needs more sophisticated contract validity check.

It totally killed discovery.

13 years agoMessage headers are now serialized and deserialized for MessageHeaderDescription.
Atsushi Eno [Tue, 15 Feb 2011 14:14:27 +0000 (23:14 +0900)]
Message headers are now serialized and deserialized for MessageHeaderDescription.

13 years agoFix parameters names inside System.Net.dll for 2.1 profile
Sebastien Pouliot [Tue, 15 Feb 2011 13:35:14 +0000 (08:35 -0500)]
Fix parameters names inside System.Net.dll for 2.1 profile

* System.Net/System.Net.Sockets/SocketException_2_1.cs:
* System.Net/System.Net/WebClient_2_1.cs:
* System.Net/System.Net/WebRequest_2_1.cs:
* System/System.Net.Sockets/Socket_2_1.cs:
* System/System.Net/Cookie.cs:
* System/System.Net/DnsEndPoint.cs:
* System/System.Net/EndPoint.cs:
* System/System.Net/IPAddress.cs:
* System/System.Net/IPEndPoint.cs:
* System/System.Net/SocketAddress.cs:
Remove all red ! from corcompare in System.Net.dll (Silverlight
4 profile) to make it easier to pinpoint other errors/warnings.

13 years agoServiceDescription.cs does not exist in moonlight, so move TypeExtension.
Atsushi Eno [Tue, 15 Feb 2011 13:37:28 +0000 (22:37 +0900)]
ServiceDescription.cs does not exist in moonlight, so move TypeExtension.

13 years agoFix test failure in SplitOrderedList
Jérémie Laval [Tue, 15 Feb 2011 13:36:27 +0000 (13:36 +0000)]
Fix test failure in SplitOrderedList

13 years agoImplement TaskFactory.FromAsync
Jérémie Laval [Tue, 15 Feb 2011 13:25:25 +0000 (13:25 +0000)]
Implement TaskFactory.FromAsync

13 years agoHide boostrap compiler for people looking for mcs.exe
Marek Safar [Tue, 15 Feb 2011 13:16:06 +0000 (13:16 +0000)]
Hide boostrap compiler for people looking for mcs.exe

13 years agoUpdate mcs translations
Marek Safar [Tue, 15 Feb 2011 13:15:31 +0000 (13:15 +0000)]
Update mcs translations

13 years agoFix monolite make dist
Marek Safar [Tue, 15 Feb 2011 13:14:03 +0000 (13:14 +0000)]
Fix monolite make dist

13 years agoMessageHeaderDescription were not filled in message contract. Reject wrong contracts.
Atsushi Eno [Tue, 15 Feb 2011 13:11:22 +0000 (22:11 +0900)]
MessageHeaderDescription were not filled in message contract. Reject wrong contracts.

13 years agoimplement some ServiceHostBase public methods that already existed internally.
Atsushi Eno [Tue, 15 Feb 2011 13:10:09 +0000 (22:10 +0900)]
implement some ServiceHostBase public methods that already existed internally.

13 years agoAdd Mono.Debugger.Soft.dll to spec
Marek Safar [Tue, 15 Feb 2011 12:11:28 +0000 (12:11 +0000)]
Add Mono.Debugger.Soft.dll to spec

13 years agoBuild monolite from correct location
Marek Safar [Tue, 15 Feb 2011 12:08:36 +0000 (12:08 +0000)]
Build monolite from correct location

13 years agoMerge some useful changes from MD
Marek Safar [Mon, 14 Feb 2011 15:36:12 +0000 (15:36 +0000)]
Merge some useful changes from MD

13 years ago[HttpListener] Close idle connections on Stop()
Gonzalo Paniagua Javier [Tue, 15 Feb 2011 06:48:42 +0000 (01:48 -0500)]
[HttpListener] Close idle connections on Stop()

Idle connections that never received any data or had ever been
associated to a listener are properly closed now when the endpoint is
closed or the last listener they used is closed.
Fixes a bunch of tests in System.ServiceModel.

13 years agoWhen the callback contract type is the same as the contract, do not block replies.
Atsushi Eno [Tue, 15 Feb 2011 06:47:46 +0000 (15:47 +0900)]
When the callback contract type is the same as the contract, do not block replies.

13 years agoEndpointAddress could be empty on opening the factory.
Atsushi Eno [Tue, 15 Feb 2011 06:47:22 +0000 (15:47 +0900)]
EndpointAddress could be empty on opening the factory.

13 years agoPeeDuplex ChannelFactory must be opened in prior to create channels.
Atsushi Eno [Tue, 15 Feb 2011 06:46:41 +0000 (15:46 +0900)]
PeeDuplex ChannelFactory must be opened in prior to create channels.

13 years agoadd private setter for message serialization.
Atsushi Eno [Tue, 15 Feb 2011 06:45:58 +0000 (15:45 +0900)]
add private setter for message serialization.

Not sure if it is hack or required-to-do though.

13 years agoMerge branch 'master' of github.com:mono/mono
Neale Ferguson [Mon, 14 Feb 2011 20:17:07 +0000 (15:17 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years ago[bugfix]667855 - Fix handling of oracle raw data types sanely.
Veerapuram Varadhan [Mon, 14 Feb 2011 19:51:28 +0000 (01:21 +0530)]
[bugfix]667855 - Fix handling of oracle raw data types sanely.

13 years ago[HttpWebRequest] EndGetResponse already does this.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 19:36:14 +0000 (14:36 -0500)]
[HttpWebRequest] EndGetResponse already does this.

13 years ago[HttpListener] UserHostName includes the port.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 19:34:47 +0000 (14:34 -0500)]
[HttpListener] UserHostName includes the port.

13 years agoCorrectly add ObjectPool to the build
Jérémie Laval [Mon, 14 Feb 2011 18:16:51 +0000 (18:16 +0000)]
Correctly add ObjectPool to the build

13 years agoUse ObjectPool in SplitOrderedList
Jérémie Laval [Mon, 14 Feb 2011 18:12:13 +0000 (18:12 +0000)]
Use ObjectPool in SplitOrderedList

13 years agoFix wrong CAS check in SplitOrderedList
Jérémie Laval [Mon, 14 Feb 2011 18:11:42 +0000 (18:11 +0000)]
Fix wrong CAS check in SplitOrderedList

13 years agoUse ObjectPool in ConcurrentStack
Jérémie Laval [Mon, 14 Feb 2011 18:10:42 +0000 (18:10 +0000)]
Use ObjectPool in ConcurrentStack

13 years agoUse ObjectPool in ConcurrentQueue
Jérémie Laval [Mon, 14 Feb 2011 18:10:21 +0000 (18:10 +0000)]
Use ObjectPool in ConcurrentQueue

13 years agoAdd concurrent implementation of an ObjectPool to reuse small objects like Node instances
Jérémie Laval [Mon, 14 Feb 2011 18:09:38 +0000 (18:09 +0000)]
Add concurrent implementation of an ObjectPool to reuse small objects like Node instances

13 years ago[HttpListener] These lines were not supposed to be there.
Gonzalo Paniagua Javier [Mon, 14 Feb 2011 17:29:26 +0000 (12:29 -0500)]
[HttpListener] These lines were not supposed to be there.

13 years agosupport UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328.
Atsushi Eno [Mon, 14 Feb 2011 16:54:13 +0000 (01:54 +0900)]
support UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328.

13 years agoExtended CloneCopy() test with ReadOnly field
Carsten Schlote [Fri, 12 Nov 2010 15:56:46 +0000 (16:56 +0100)]
Extended CloneCopy() test with ReadOnly field

- It is recommended to set auto-increment fields to ReadOnly. When
  calling Copy() the check for ReadOnly must be omitted, otherwise
  you get an exception.
  The RadOnly attribute is set for the parent "Id" field to test
  proper handling of read-only fields.
- Source reindention and cleanups.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years agoFixes for broken RO check
Carsten Schlote [Thu, 11 Nov 2010 16:35:41 +0000 (17:35 +0100)]
Fixes for broken RO check

- When calling GetChanges() the ReadOnly check for DataCalumns must be
  turned off, as otherwise data of readonly columns can't be cloned
  into new rows for the new created DataSet/dataTable

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
13 years agoRemove
Miguel de Icaza [Mon, 14 Feb 2011 15:03:45 +0000 (10:03 -0500)]
Remove

13 years ago[670974] Use the underlying BaseStream to read bytes instead of trying to peek a...
Miguel de Icaza [Mon, 14 Feb 2011 14:38:02 +0000 (09:38 -0500)]
[670974] Use the underlying BaseStream to read bytes instead of trying to peek a character.

Peeking a character as it turns out is a really bad idea as it involves the encoder
to pull characters.   If the PeekChar happens to read a byte that is part of a
UTF8 string that needs more characters to process we would end up with the reported
crash.

Atsushi Enomoto tracked this down, and the fix is to use the binaryreader.BaseStream
to directly call into ReadByte and Read without ever probing with PeekChar ().   It
is not really possible to use BinaryReader.ReadByte since this one can throw on
end-of-buffer conditions instead of returning -1

13 years agoMerge branch 'master' of github.com:mono/mono
Neale Ferguson [Mon, 14 Feb 2011 14:31:38 +0000 (09:31 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoAdd unwind support to s390x and fix stack unwinding so that exception17 now passes
Neale Ferguson [Mon, 14 Feb 2011 14:31:00 +0000 (09:31 -0500)]
Add unwind support to s390x and fix stack unwinding so that exception17 now passes

13 years agoNew test
Marek Safar [Mon, 14 Feb 2011 13:15:59 +0000 (13:15 +0000)]
New test

13 years ago[671552] Use correct emit method for stobj type
Marek Safar [Mon, 14 Feb 2011 12:42:22 +0000 (12:42 +0000)]
[671552] Use correct emit method for stobj type