Commit Graph
146 Commits
Author SHA1 Message Date
Marek Safar 4b4ddb66b3 [corlib] Improve flow of ExecutionContext (few tests taken from https://github.com/mono/mono/pull/864). Fixes #18121 and similar. 2014-03-06 19:54:06 +01:00
Marek Safar c2385c5ebf [corlib] Update current LogicalCallContext from empty context 2013-12-09 19:12:34 +01:00
Bart Vries e3c37d1042 LogicalSet/GetData implementation in CallContext 2013-11-25 16:59:59 +01:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Sebastien Pouliot 59918464b3 Add a few MOONLIGHT defines to remove the RemotingProxy from ML build
* System.Runtime.Remoting.Activation/ActivationServices.cs:
* System.Runtime.Remoting.Messaging/ConstructionCall.cs
* System.Runtime.Remoting.Proxies/ProxyAttribute.cs
* System.Runtime.Remoting.Proxies/RealProxy.cs
* System.Runtime.Remoting/RemotingServices.cs
	Add a few MOONLIGHT defines to remove the RemotingProxy from
	being used in Moonlight builds. This reduce the number of SSC
	and code size
* moonlight_raw_corlib.dll.sources: Remove System.Runtime.Remoting.
Proxies/RemotingProxy.cs from moonlight build
2011-04-13 10:31:11 -04:00
Louis Salin 5da72e98ea implement getter and setter for HostContext property 2011-03-31 09:11:40 -04:00
Marek Safar 894b26feca Warnings cleanup 2010-10-15 15:20:25 +01:00
Gonzalo Paniagua Javier eb2a5490f2 Adapt to new exception in threadpool behavior.
Since an exception in the threadpool can kill the application,
	silently ignore it when we know it is not harmful.
2010-08-11 13:15:39 -04:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Zoltan Varga 587b9ab706 Fix a warning.
svn path=/trunk/mcs/; revision=155700
2010-04-19 08:41:34 +00:00
Gonzalo Paniagua Javier 9f3c801b91 Reworked the threadpool. See individual ChangeLog entries for details.
svn path=/trunk/mcs/; revision=154243
2010-03-26 03:12:56 +00:00
Robert Jordan eee69a5cf6 2010-03-03 Robert Jordan <[email protected]>
* CADMessages.cs (GetMethod): don't continue if the type
	could not be found in the current domain. Fixes #584067.


svn path=/trunk/mcs/; revision=152969
2010-03-03 22:00:11 +00:00
Miguel de Icaza 3c39ac4586 Jumbo patch for NET_2_0, mscorlib is now clean
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Gonzalo Paniagua Javier 0a636b90df 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: do not create the handle if not needed.


svn path=/trunk/mcs/; revision=142929
2009-09-29 21:02:05 +00:00
Gonzalo Paniagua Javier 251ad8f004 2009-09-27 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: don't create the handle if we know the result is
	completed.


svn path=/trunk/mcs/; revision=142697
2009-09-27 05:28:55 +00:00
Gonzalo Paniagua Javier d0ba5ee475 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* AsyncResult.cs: lock when setting the 'completed' field and use the
	property instead of the 'handle' field.


svn path=/trunk/mcs/; revision=141860
2009-09-13 02:49:03 +00:00
Gonzalo Paniagua Javier bd8f528adc 2008-11-10 Gonzalo Paniagua Javier <[email protected]>
* CADMessages.cs: when the method is generic, return a constructed
	method instead of the generic one. Fixes regression in
	System.Runtime.Remoting.GenericTest::TestCrossAppDomainChannel.


svn path=/trunk/mcs/; revision=118400
2008-11-10 18:49:08 +00:00
Marek Safar 159314e044 Warnings cleanup
svn path=/trunk/mcs/; revision=111730
2008-08-27 18:28:16 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Andreas N 210cc33f02 2008-07-06 Andreas Nahr <[email protected]>
* MethodCallMessageWrapper.cs: Fix signatures

svn path=/trunk/mcs/; revision=107350
2008-07-06 21:25:35 +00:00
Andreas N 1eb4f66c18 2008-07-06 Andreas Nahr <[email protected]>
* IRemotingFormatter.cs: Fix parameter name
	* MethodCallMessageWrapper.cs: Remove excess public members

svn path=/trunk/mcs/; revision=107322
2008-07-06 12:51:37 +00:00
Andreas N 509ce46041 2008-07-04 Andreas Nahr <[email protected]>
* ReturnMessage.cs:
	* MethodResponse.cs:
	* MethodCall.cs:
	* IRemotingFormatter.cs:
	* IMethodReturnMessage.cs:
	* IMethodMessage.cs:
	* IMethodCallMessage.cs:
	* ConstructionResponse.cs:
	* ConstructionCall.cs: Fix parameter name
	* Header.cs: Ouch!

svn path=/trunk/mcs/; revision=107224
2008-07-04 08:22:16 +00:00
Robert Jordan 067780d08f 2007-12-04 Robert Jordan <[email protected]>
* MethodCall.cs (ResolveMethod): Handle server objects registered
	with RemotingServices.Marshal (obj, typeof (ISomeInterface)).
	Fixes #324232. Test case: /trunk/gert/standalone/bug82302/.


svn path=/trunk/mcs/; revision=91003
2007-12-09 14:52:58 +00:00
Atsushi Eno da15bb9730 2007-11-21 Atsushi Enomoto <[email protected]>
* RemotingConfiguration.cs : added CustomErrorMode (stub).

	* CallContext.cs : added missing 2.0 stuff.


svn path=/trunk/mcs/; revision=90062
2007-11-21 06:41:46 +00:00
Robert Jordan c9e988e0ef In System.Runtime.Remoting:
2007-10-30  Robert Jordan  <[email protected]>

	* RemotingServices.cs: (InternalExecuteMessage):
	Resolve interface methods using the new icall GetVirtualMethod ().
	Remove the now obsolete GetMethodBaseFromName + generic params
	overloads.

In System.Runtime.Remoting.Messaging:
2007-10-30  Robert Jordan  <[email protected]>

	* MethodCall.cs (ResolveMethod): Lookup the interface
	using RemotingServices.GetVirtualMethod (). Eliminates
	the costly GetMethodBaseFromName () call.


svn path=/trunk/mcs/; revision=88434
2007-10-30 01:49:05 +00:00
Robert Jordan afdc20175d In System.Runtime.Remoting:
2007-08-30  Robert Jordan  <[email protected]>

	* RemotingServices.cs (InternalExecuteMessage): Resolve interface
	methods correctly. Fixes #81554. Ditto for generic methods.

	* RemotingServices.cs (GetMethodBaseFromName): Reuse already computed
	FieldSetter|GetterMethods.

	* RemotingServices.cs (GetMethodBaseFromName): New overload that
	takes generic arguments into account.

In System.Runtime.Remoting.Messaging:
2007-09-07   Robert Jordan  <[email protected]>

	* MethodCall (ResolveMethod): Handle generic methods in the
	code that was introduced as a fix for #82240.
	Fixes #81554.


svn path=/trunk/mcs/; revision=85525
2007-09-08 22:28:07 +00:00
Atsushi Eno 63cf6d7312 2007-09-06 Atsushi Enomoto <[email protected]>
* LogicalCallContext.cs, MethodCall.cs, MethodCallMessageWrapper.cs,
	  IMethodMessage.cs, ReturnMessage.cs, MethodResponse.cs
	  MethodReturnMessageWrapper.cs : couple more of (2.0/1.1) API fixes.


svn path=/trunk/mcs/; revision=85388
2007-09-06 05:16:16 +00:00
Atsushi Eno 854b977d68 a set of cosmetic part of 2.0 remoting API fixes.
svn path=/trunk/mcs/; revision=84134
2007-08-15 05:47:35 +00:00
Wade Berrier 3fc8429094 2007-07-30 Lluis Sanchez Gual <[email protected]>
* MethodCall.cs (ResolveMethod): If the method is implemented 
       in an interface, look for the method implementation. Fix for bxc
#82240


svn path=/trunk/mcs/; revision=83216
2007-08-01 17:34:50 +00:00
Atsushi Eno 936dfc332b clearing ComVisibleAttribute noises in 2.0 API.
svn path=/trunk/mcs/; revision=81245
2007-07-03 12:28:53 +00:00
Robert Jordan 24c5756f7a 2007-02-05 Robert Jordan <[email protected]>
* MethodCall.cs (ResolveMethod): Actually use the type returned
	by CastTo (). Fixes bug #77191.


svn path=/trunk/mcs/; revision=76839
2007-05-07 15:39:33 +00:00
Robert Jordan bb653a80a8 In System.Runtime.Remoting.Messaging:
2006-12-25  Robert Jordan  <[email protected]>

	* MethodCall.cs: Add support for generic methods.
	* MethodCall.cs (GetTypeNameFromAssemblyQualifiedName):
	Add support for generic types.
	* ReturnMessage.cs: Fix bug #80371.

In System.Runtime.Serialization.Formatters.Binary:
2006-12-25  Robert Jordan  <[email protected]>

	* binary_serialization_format.htm: Update the NET_2_0 format.
	* BinaryCommon.cs: MethodFlags is actually an int32. Add NET_2_0 flags.
	* MessageFormatter.cs: Add support for generic method arguments.
	* ObjectWriter.cs, ObjectReader.cs: Map between System.MonoType and
	MS.NET's System.RuntimeType.


svn path=/trunk/mcs/; revision=70683
2007-01-08 23:55:18 +00:00
Lluis Sanchez cb736bda41 2006-12-18 Lluis Sanchez Gual <[email protected]>
* StackBuilderSink.cs: Avoid unneeded cast that was causing some
	  cast exceptions.


svn path=/trunk/mcs/; revision=69702
2006-12-19 01:16:19 +00:00
Lluis Sanchez 383897a465 * ReturnMessage.cs: When creating an exception message, copy the call
context from the call message.

svn path=/trunk/mcs/; revision=68829
2006-12-01 13:34:00 +00:00
Lluis Sanchez 9d99fb5ee9 2006-08-04 Lluis Sanchez Gual <[email protected]>
* MethodCall.cs, CADMessages.cs: Added missing unmarshalling case
	  for IntPtr. When getting the method from the CAD message,
	  check that the same declaring type is loaded in the target domain
	  from the same assembly. If it is not, get the correct type and
	  method for the domain.


svn path=/trunk/mcs/; revision=63340
2006-08-04 11:03:32 +00:00
Zoltan Varga 763cd73b08 2006-05-31 Zoltan Varga <[email protected]>
* AsyncResult.cs: Add an 'object_data' field which has GC tracking.

svn path=/trunk/mcs/; revision=61343
2006-05-31 17:12:59 +00:00
Zoltan Varga 0063519fb5 2006-05-31 Zoltan Varga <[email protected]>
* AsyncResult.cs: Revert the last change.

svn path=/trunk/mcs/; revision=61342
2006-05-31 17:05:13 +00:00
Zoltan Varga eb424173df 2006-05-31 Zoltan Varga <[email protected]>
* AsyncResult.cs: Make 'data' field an object to allow GC tracking.

svn path=/trunk/mcs/; revision=61340
2006-05-31 17:02:03 +00:00
Lluis Sanchez 97c23622ff 2006-02-06 Lluis Sanchez Gual <[email protected]>
* LogicalCallContext.cs, MethodCall.cs, ReturnMessage.cs,
	  MethodResponse.cs: Create a new LogicalCallContext for
	  every message. Fixes #77364 again.


svn path=/trunk/mcs/; revision=56586
2006-02-06 14:54:14 +00:00
Lluis Sanchez 968c155b82 2006-01-31 Lluis Sanchez Gual <[email protected]>
* LogicalCallContext.cs: Added shared empty call context.
	* MethodCall.cs: Added better error checking and reporting in
	the code that resolves methods.
	
	* ReturnMessage.cs, MethodResponse.cs, MethodCall.cs: Never return null in 
	LogicalCallContext. If it's null, return an empty context. Based
	on a patch by Dominic Ullmann that fixes bug #77364.


svn path=/trunk/mcs/; revision=56355
2006-01-31 19:45:07 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Lluis Sanchez 9d72dddf5d 2005-06-22 Lluis Sanchez Gual <[email protected]>
* MethodReturnMessageWrapper.cs: ArgCount now returns the count
	from the internal arg array, since it may change.
	* MonoMethodMessage.cs: Added NeedsOutProcessing helper method.


svn path=/trunk/mcs/; revision=46359
2005-06-22 10:24:10 +00:00
Lluis Sanchez 577cfcfedf 2005-05-31 Lluis Sanchez Gual <[email protected]>
* ReturnMessage.cs: Added some null checks.
	* MethodReturnMessageWrapper.cs: Added some null checks. Fixed
	incorrect cast in the constructor.


svn path=/trunk/mcs/; revision=45268
2005-05-31 20:04:21 +00:00
Sebastien Pouliot 05598a0e85 2005-05-20 Sebastien Pouliot <[email protected]>
* AsyncResult.cs: Added new fields (required for stack propagation) to
	match runtime structure.


svn path=/trunk/mcs/; revision=44819
2005-05-20 14:11:19 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Lluis Sanchez 377d173ba5 2005-05-09 Lluis Sanchez Gual <[email protected]>
* MethodCall.cs: Fix warning.


svn path=/trunk/mcs/; revision=44263
2005-05-09 10:54:01 +00:00
Marek Safar b20cf0cc02 removed unused variables
svn path=/trunk/mcs/; revision=36415
2004-11-23 06:40:55 +00:00
Lluis Sanchez f670a68db2 * CallContext.cs: In CreateLogicalCallContext, added parameter which
specifies if an empty LogicalCallContext needs to be created if there are
	no context values.

svn path=/trunk/mcs/; revision=35963
2004-11-10 11:52:21 +00:00