Compare commits

..
1781 Commits
Author SHA1 Message Date
Rodrigo Kumpera 4d9ada68b5 Make sure we don't corrupt the heap when serializing a unix domain socketaddr.
* socket-io.c (create_object_from_sockaddr): The resulting array size must
	be two bytes larger than the sockaddr one since we always serialize the family
	kind at the beginning.

	This fixes a crash on MD-linux-amd64-mono-sgen-3.0 running unit tests.
2012-11-28 18:23:13 -05:00
Rolf Bjarne Kvinge 2209daad1c Make WaitHandle.Wait* behave the same wrt WAIT_IO_COMPLETION. Fixes #8566.
Make the all check for exceptions if interrupted, and wait again
with a re-calculated timeout if no exceptions were to be thrown.

This fixes a deadlock in WaitAny, because WaitAny wasn't checking
for exceptions, just re-calculating the timeout. It also makes
the methods behave the same wrt other APC reasons.
2012-11-28 01:23:20 +01:00
Rodrigo Kumpera 21fad6dbbd Add test-wrench target to bring runtime tests back to life. 2012-11-27 14:10:24 -05:00
Zoltan Varga 91d176cf85 Disable test_0_stack_unwind () test which fails on x86+llvm (#5432). 2012-11-26 23:17:59 +01:00
Rodrigo Kumpera 5f6941c396 Remove SRE.UnmanagedMarshal dependency from System.Reflection.
* FieldInfo.cs:
	* MonoMethod.cs:
	* ParameterInfo.cs: Remove silly dep on UnmanagedMarshal to use
	MarshalAsAttribute which is what we need in the end.

	* icall.c:
	* reflection.c: Use the custom attribute type instead of the SRE
	one. This allows FULL_AOT_RUNTIME to work with stuff that uses
	MarshalAs.
2012-11-26 16:12:42 -05:00
Rodrigo Kumpera b00aa90454 Remove FieldInfo::UMarshal, which is dead code. 2012-11-26 16:12:42 -05:00
Rodrigo Kumpera da410e5b6e Expose MarshalAsAttribute to the runtime. 2012-11-26 16:12:41 -05:00
Jeremie Laval eefe6041ba [corlib] Pass the right scheduler for worker number calculation. Fix #8559. 2012-11-26 12:13:44 +00:00
Sebastien Pouliot e821bb63f3 Do not send IP address as server_name entries and skip non-fatal (warning) alerts when negotiating. Fix bug #8553 2012-11-22 16:37:34 -05:00
Zoltan Varga e71f58ce14 Fix a buffer overflow in the LLVM backend. Fixes #8502. 2012-11-22 15:07:46 +01:00
Martin Baulig f852f8bc94 [System.Configuration]: Imlement ConfigurationElement.EvaluationContext. 2012-11-21 02:25:53 +01:00
Martin Baulig 2560a7c903 [System.Configuration]: Fix filenames in ExeConfigurationFileMap. 2012-11-21 02:25:29 +01:00
Martin Baulig 2f45a48a30 Fix NTLM related test failures.
* Provide a more descriptive [Obsolete] message for the legacy API.

* Refuse to send the LM response unless explicitly enabled with
  Type3Message.DefaultAuthLevel.  The LM response is only actually
  checked by old, pre-historic servers and sending it exposes the
  user's password to very weak encryption.

* Fix some problems when encoding / decoding problems in Type2Message.

* Type3Message now encodes host and domain name in a case-sensitive
  way, fixes the tests.
2012-11-21 02:24:06 +01:00
Lluis Sanchez 99c7c9db36 Add tests for bug #8468
Conflicts:

	mcs/class/System.XML/Test/System.Xml.Serialization/DeserializeTests.cs
2012-11-20 14:46:12 +01:00
Lluis Sanchez e31afd05fe Fix XML serialization bug
When reflecting a class which inherits serializable members from a
base class, the members of the base class must be serialized using the
namespace set in the subclass unless a namespace has been explicitly
set in the base class. Before the fix, the members were always
serialized using the namespace of the base class, even when not set
(in which case it was using the default empty namespace).

Fixes bug 8468 - XML serialization problem.
2012-11-20 14:43:50 +01:00
Dean Ellis ddaa82c2b7 [Mono] TimeZoneInfo.FindSystemTimeZoneById returns null
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=7966

If we cannot find the requiested time zone we should throw a
TimeZoneNotFoundException rather than returning null.
2012-11-19 21:41:01 +00:00
Zoltan Varga 408a3390e0 Check for nullref exceptions in ves_icall_System_Buffer_BlockCopyInternal () since it is called directly without going through the managed wrapper. Optimize the MONO_CHECK_ARG() macros a bit. 2012-11-18 03:11:58 +01:00
Jeremie Laval d2a82c2743 [corlib] Fix unobserved exception being mistakenly propagated to finalizer thread when using ContinueWhenAll.
The problem was that we internally use Task.WhenAll inside TaskFactory.ContinueWhenAll to merge the given tasks into one that we can Continue on to run the passed arguments.

However, the behavior of WhenAll is to collect the exceptions that happened on its parent tasks and to set the aggregate on itself which was not catched by our continuation internally, leading to the exception remaining unobserved and escalating to the finalizer thread.
2012-11-15 15:02:17 +00:00
Sebastien Pouliot a214478534 Add test case from bug #8366 (it was fixed in master, not in 2-10) 2012-11-14 11:26:08 -05:00
Gonzalo Paniagua Javier cdd5f81df6 Hook ProopertyNotified event on data sources
Patch by Rasmus Toftahl Olesen that fixes bug #585577.
2012-11-14 09:27:32 -05:00
Martin Baulig d9732ffa79 Support [OnSerializing] in System.Runtime.Serialization.Json.
This fixes a problem that has been reported on stackoverflow:
http://stackoverflow.com/questions/13362906/onserializing-method-not-called-in-mono-3-0-1
2012-11-13 23:22:21 +01:00
Paolo Molaro 309f5d989c Confirmed fix from Marek for #xambug 8320.
The memberref table is not a valid option for computing the
MemberRefParent tag size.
2012-11-13 17:22:05 +01:00
Sebastien Pouliot 9550a304a6 Only send server_name extension for TLS (not SSLv3). Fix for #8312 2012-11-13 09:31:43 -05:00
Martin Baulig 8a2a992c48 Implement NTLMv2 Session and NTLMv2 Authentication.
By default, we use NTLMv2 Session if the server supports it
and fall back to LM and NTLM.

The default behavior can be configured with the static
Mono.Security.Protocol.Ntlm.Type3Message.DefaultAuthLevel
property.

To use NTLMv2, you must explicitly set this to
NtlmAuthLevel.NTLMv2_only.

This is similar to the LAN Manager Authentication Level on
Windows (http://msdn.microsoft.com/en-us/library/ms814176.aspx).
2012-11-09 17:15:47 +01:00
Rodrigo Kumpera a0f2930ea5 When inflating a (M)VAR make sure we're not using a broken type.
*class.c (inflate_generic_type): When inflating (M)VAR we must
	check if the replaced type is not void or typedbyref as both can
	later lead to all sorts of nasty crashes or memory corruption.
2012-11-01 18:05:48 -04:00
Alan McGovern 117caa26b6 [corlib] Remove the DebuggerDisplay attribute from KeyValuePair and DictionaryEntry
This attribute gives us a horrible debugging experience when the
'Value' of the KeyValuePair is null. By using this attribute, the
user is told that the KeyValuePair itself is null when they inspect
something like 'new KeyValuePair<string, string> (null, null)'.
This is very confusing.

We should just let the ToString method be invoked, which returns a
nicely formatted string. This is also the behaviour observed when
debugging using Visual Studio.
2012-11-01 17:14:23 +01:00
Zoltan Varga 139d505ed5 Avoid throwing exceptions from WeakReference.IsAlive after finalization when the underlying GCHandle is already finalized. Fixes #8072. 2012-11-01 16:16:00 +01:00
Zoltan Varga 7dda372ef0 Properly inflate arrays of generic parameters in resolve_object (). Fixes #7964. 2012-11-01 15:51:58 +01:00
Martin Baulig 4025e280a3 [#7637][Web]: This is supposed to fail prior to .NET 4.0.
Fixes my previous commit 1ccb01e.
2012-10-29 15:51:38 +01:00
Martin Baulig 63506fa47c [#7637][Web]: Support empty write streams. 2012-10-27 01:17:34 +02:00
Martin Baulig a32f625ee5 [6329][Web]: Fixed abort race condition in WebConnection.ReadDone().
ReadDone() now passes the 'WebConnectionData' instance to GetResponse()
and 'readState' has been moved into 'WebConnectionData'.

Abort() can now reset 'Data' while ReadDone() still uses the old
instance, but learns about the abort request from 'data.ReadState'.
2012-10-27 00:59:31 +02:00
Martin Baulig 1d9b4ba977 Emit WebAsyncResult's callback on same thread on sync completion.
This fixes System.Net.Http.HttpClientTest.Send_Content_Put ().
2012-10-27 00:59:10 +02:00
Zoltan Varga c8376af1a0 Clear sb->cached_str in mono_string_utf8_to_builder () so if the same stringbuilder is passed to two pinvoke calls, the modifications made by the second are visible in the result of sb.ToString (). Fixes #7980. 2012-10-26 04:14:53 +02:00
Atsushi Eno ca949036f8 fix bug #7957: empty dictionary should not be read siblings as content. 2012-10-24 12:00:56 +09:00
Martin Baulig 96cd4cf98b [#7258][Web]: Fix proxy authentication for non-ssl sessions
Thanks a lot to Christian Gan for this patch :-)
2012-10-24 01:25:48 +02:00
Martin Baulig ebdd362914 Fix CookieParserTest.TestExpires().
DateTime.MinValue.ToUniversalTime() != DateTime.MinValue
if you're living east of Greenwich.
2012-10-23 07:31:20 +02:00
Martin Baulig 3f06859a91 Test; fixed the mono-mac-2.10 buildbot. 2012-10-23 06:00:42 +02:00
Martin Baulig 0d1297095c Test; trigger buildbot run. 2012-10-23 03:56:51 +02:00
Martin Baulig 771b5f6e3e Test; testing buildbot. 2012-10-23 00:52:20 +02:00
Jeffrey Stedfast 67c3717890 [xbuild] PCL targets needs to load MonoAndroid targets file from MSBuildExtensionsPath
Fixes bug #7905
2012-10-22 12:32:14 -04:00
Martin Baulig 5e29582df8 [#7258][Web]: Check 'Connection: close' header.
When receiving a 407 in CreateTunnel(), check whether the server
asks to close the connection.

Thanks again to Christian Gan for this patch.
2012-10-21 21:31:32 +02:00
Martin Baulig d470f01a0b [#7599][Web]: Use original uri to compute service point hash.
Use the original request Uri, not the proxy address, to compute
the service point hash.
2012-10-21 21:31:22 +02:00
Zoltan Varga 3aa1d61880 Make comparison of array types in mono_metadata_class_equal () go through do_mono_metadata_type_equal (), so arrays of generic parameters are handled correctly. Fixes #7848. 2012-10-19 17:15:34 +02:00
Martin Baulig c3743734be [#7258][Web]: Support multiple proxy auth methods.
* AuthenticationManager.EnsureModules(): Swap the order of the
  modules, putting the strongest ones first.

* WebConnection.CreateTunnel(): Pass the proxy's address to
  AuthenticationManager to support CredentialsCache.  Only attempt
  one single authentication method.

I've done some extensive testing with different squid configurations
(digest only, ntlm only, digest and ntlm, ntlm and digest) and the
.NET runtime only attempts one single authentication method.

If you provide credentials like this:

	var proxy = new WebProxy (proxyUrl, false);
	proxy.Credentials = new NetworkCredential ("user", "pass", "domain");

then these must match the server's first authentication method.

You can also use a CredentialsCache like this:

	var ntlm_cred = new NetworkCredential ("u1", "p1", "d1");
	var digest_cred = new NetworkCredential ("u2", "u3", "d2");

	var cc = new CredentialCache ();
	cc.Add (proxy_uri, "NTLM", ntlm_cred);
	cc.Add (proxy_uri, "Digest", digest_cred);

	var proxy = new WebProxy (proxy_uri, false);
	proxy.Credentials = cc;
2012-10-19 04:21:21 +02:00
Christian Gan 62e090c406 [#7258][Web]: Implement NTLM proxy authentication.
This is mostly Christian Gan's patch for the bug report, I only
did a few minor tweaks to it.  Thanks a lot for helping me out
with this.  Martin.
2012-10-19 04:20:57 +02:00
Martin Baulig 9101c02a74 [#7258][Web]: Fix proxy authentication for secure connections.
In WebConnection.CreateTunnel():

* Support multi "Proxy-Authentication" headers from the server.

* Pass a fake HttpWebRequest with method "CONNECT" to
  AuthenticationManager.Authenticate(); the HTTP method is part
  of the digest response.

* Add "Proxy-Connection: Keep-Alive".
2012-10-18 05:53:09 +02:00
Bojan Rajkovic 045289564b Revert "Bug 2663: Regular Expression Bug Fixes"
This reverts commit dc6efdab29. This
patch completely regressed performance for regexes in the same class
as the regexes it fixed. Xamarin bug #6198 details the regressions,
and I've confirmed that reverting this commit fixes the 2 order of
magnitude performance drop (with the patch, the test takes almost 7
seconds, without it, it takes .07 seconds). The bug still needs to be
fixed, but this is not the right fix.
2012-10-17 13:21:18 -04:00
Sebastien Pouliot 892654f252 Add support for 'server_name' extension in the TLS client hello message. Fix for #7664 2012-10-17 11:27:14 -04:00
Martin Baulig 96f958e38c mono_lookup_pinvoke_call: Correctly handle full path names.
* Fix the prefix matching code: if the dllmap path is "/path/foo",
  we want to look for "/path/libfoo", not "lib/path/foo".

* Check for @executable_path, @loader_path and @rpath on OS X.
  (see http://stackoverflow.com/questions/12834141/setting-path-of-the-native-library-for-dllimport-on-mono-for-mac/).
2012-10-13 02:10:55 +02:00
Martin Baulig 787fc121d6 [WCF,Serialization] Improve and fully implement support for collection types.
* System.Runtime.Serialization/XsdDataContractImporter:
      Check ImportOptions.ReferencedCollectionTypes to determine the proxy type.

* System.ServiceModel.Description/MetadataImporter.cs:
      Very simply implementation of the 'State' property.

* System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:
      Use it here.

* Test/Resources/WSDL: Added some sample .wsdl files for the new tests; adding
      these as resources to the test dll.

* Test/System.Runtime.Serialization: Added WsdlHelper.cs,
      XsdDataContractImporterTest2.cs and XsdDataContractExportTest2.cs
2012-10-11 14:13:49 +02:00
Martin Baulig cbec3d742a [WCF]: Fix WSDL import of methods with complex return types.
There is no bug report, the problem has been reported here:
http://stackoverflow.com/questions/12551090/monotouch-wcf-service-reference-cs-errors/12669880

DataContractSerializerMessageContractImporter.IsOperationImported()
did not check the method's return value, so it failed to recognize
methods such as

	[OperationContract]
	DateTime GetDate ();

as already being imported.  This caused the method to be imported with
both the DataContractMessageContractImporterInternal and the
XmlSerializerMessageContractImporterInternal, but the latter does not
resolve type references, see the FIXME in that class.

I also added a new test case for this.
2012-10-11 14:13:25 +02:00
Sebastien Pouliot 838b66aafa [OSX][iOS] Ensure 'sectrust' is released even if we deny the request 2012-10-09 19:46:37 -04:00
Sebastien Pouliot 23692ff63d Provide a non-null X509Chain in the callback for MonoTouch (useful for custom validations) but we are not fully building it (since we do not use the output) and this can be done if customization is required 2012-10-09 19:46:21 -04:00
Rodrigo Kumpera 4a5a65cbe9 Make sure that the unsafe array store intrinsics emit a write barrier.
* method-to-ir.c: Array.UnsafeStore and Array.SetGenericValueImpl must
	emit a write barrier for reference types.
2012-10-03 12:28:38 -04:00
Rodrigo Kumpera acc97565c9 Disable the type check on reference type array stores.
* method-to-ir.c (emit_array_store): We can avoid the type check
	on stores to reference arrays as it turns out List<T> is not
	covariant to its element type as I previously thought so.
2012-10-02 16:14:44 -04:00
Rodrigo Kumpera 167af9a1b9 List<T> accessors now use Array.Unsafe(Load|Store). 2012-10-01 15:16:54 -04:00
Rodrigo Kumpera 5ee66e1983 Implement Array.UnsafeLoad and Array.UnsafeStore. Both functions ignores bounds check when possible.
* Array.cs: Add UnsafeLoad and UnsafeStore functions that don't perform bounds check.
	The JIT will generate, when possible, direct a load/store. Right now the only case we can't
	handle are stores to reference arrays.

	Reference arrays are covariant on their element type which means that we must perform a runtime
	type check on stores to preserve type safety. Since the type check is usually must more expensive
	than the bounds check we simply ignore this for now.

	The reasoning behind this decision was that given our initial target are corlib's collections and
	they are too covariant to their element types they do need too a runtime type check on stores to ensure
	correctness.
2012-10-01 15:15:24 -04:00
Rodrigo Kumpera c8200121e5 Extract the array store code to separare function. 2012-10-01 15:03:37 -04:00
Zoltan Varga 117a60e03d Fix some sign extension issues in the 2 dimensional array access implementation on 64 bit platforms. Fixes #7438. 2012-09-29 02:22:07 +02:00
Martin Baulig 8182c8c908 [#7424]: Fix regression in same-origin-check for Cookies.
Disable same-origin checks when the cookie does not have a domain
and we default to the Uri's hostname.
2012-09-27 04:08:47 +02:00
Sebastien Pouliot 98e4842eb1 Fix CFB mode for Rijndael when data is not a multiple of block size 2012-09-26 20:37:56 -04:00
Martin Baulig 0fa7cd1607 [#7200]: WebRequest returns result in another thread.
This is a partial revertion of master commit #9069d07, which was
backported into mono-2-10 in commit #bfa23f8.

I only reverted the change in line 716, keeping the rest of the
commit in place.
2012-09-27 02:21:33 +02:00
Martin Baulig d775e2b2c4 Fix my 512fc194, which broke the build. 2012-09-27 00:16:11 +02:00
Martin Baulig 512fc1943e Fix #5899: WebClient.*Async() now correctly builds the query string.
I also added 'async_thread.IsBackground = true'.

These methods could also use some more love; I filed a new bug #6904
about that.

Conflicts:

	mcs/class/System/System.Net/WebClient.cs
2012-09-26 16:08:59 -04:00
Martin Baulig e0d162c5f3 [#7299][Serialization]: Fixed and improved collection serialization.
* Implement "Interchangeable Collections" and Collection Interface Types.
  (see http://msdn.microsoft.com/en-us/library/aa347850.aspx)

* Add element type check for arrays.

* Identify custom collection types (must have a public parameterless
  constructor and an "Add" method with the correct argument type) and
  distinguish them from types which implement one or more of the
  collection interfaces without being a custom collection type.

* Add some checks for [CollectionDataContract].

* Added some NUnit tests for that.
2012-09-26 15:39:43 -04:00
Martin Baulig d9ba2c3f81 Fix #275: "net.tcp://localhost:<port>/<path>" should listen on IPAddress.Any. 2012-09-26 15:27:56 -04:00
Martin Baulig ee5cb70e09 Fix #5655: Always send HTTP headers for WebDAV methods. 2012-09-26 15:27:46 -04:00
Zoltan Varga 6cd6738b10 Fix the computation of TLS reference bitmaps (#6755) properly by using a 'numbits' variable instead of the confusing 'max_bits' variable. 2012-09-26 17:21:16 +02:00
Duncan Mak 1c1e95ef26 Fix typo 2012-09-24 13:21:00 -04:00
Jonathan Pryor 5e16340a14 [mdoc, .xsd] Allow the <returns/> element to contain <c/> elements.
It's frequently useful (and accidentally used) to have <c/> within
<returns/> blocks:

	<returns>
		<c>-1</c> at end of stream; otherwise the number of bytes read.
	</returns>

Allow this to validate.
2012-09-24 12:47:33 -04:00
Martin Baulig e79dc9ab02 Only set Cookie.Port if Cookie.Version == 1.
Background:

* Cookie.Port's property setter sets Version to 1, thus forcing strict
  RFC 2109 compliance.  This is also what the .NET runtime does when
  assigning this property.

* When parsing the result of a web request, .NET 4.5 only sets Cookie.Port
  when the Set-Cookie: header contains "Version=1".

* Google Chrome does not check cookie ports at all.
2012-09-22 02:27:38 +02:00
Martin Baulig 04914757fc [#6041][WebServices]: Don't crash if an operation doesn't have <wsdl:output>. 2012-09-22 02:25:22 +02:00
Martin Baulig 47f41c2dcb [#4511][WCF]: Fix DuplexClientBase channel initialization.
For duplex channels, the ClientRealProxy needs to support both
IClientChannel and IDuplexContextChannel.
2012-09-22 02:25:15 +02:00
Rolf Bjarne Kvinge 9e961425a3 Marshal sockaddrdl manually, since it contains a variable-length byte array. Fixes #7329. 2012-09-21 02:06:56 +02:00
Martin Baulig eb689f02ef [WCF] Fix relative endpoint addresses that start with a '/'.
For instance:

	ServiceHost host = new ServiceHost (typeof (Foo), new Uri ("http://localhost/echo"));
	var b = host.AddServiceEndpoint (typeof (Foo), new BasicHttpBinding (), "/b");

should resolve into 'http://localhost/echo/b'.
2012-09-19 07:17:53 +02:00
Martin Baulig 7fb4041c2f [#1340][WCF]: Fix null reference when using invalid HTTP methods. 2012-09-19 07:17:45 +02:00
Martin Baulig c16c0b31d2 [#7177][WCF]: Correctly handle derived FaultExceptions. 2012-09-19 07:17:14 +02:00
Martin Baulig 68117e0098 [#5935][BinaryFormatter]: Fix serialization of generic arrays. 2012-09-19 07:17:05 +02:00
Martin Baulig 9983d67f87 [#6187][WCF]: Fix contract interface inheritance. 2012-09-18 05:21:50 +02:00
Martin Baulig 9d52a8ce00 [#6489][SoapFormatter]: Reset culture before raising events. 2012-09-18 02:59:39 +02:00
Martin Baulig 8a921615b2 [#6515][WCF]: Enable custom headers for NET_2_1.
This allows

	HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
	request.Headers.Add ("Foo", "Bar");

	OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);

The code was already there, but disabled for the NET_2_1 profile.
2012-09-17 17:34:02 +02:00
Rolf Bjarne Kvinge 3651d5c250 TimeZoneInfo.Local must be cached, otherwise reference comparisons fail later on.
This fixes an issue reported here: http://lists.ximian.com/pipermail/monotouch/2012-September/011784.html
2012-09-17 12:06:06 +02:00
Martin Baulig 9c5a1b6ffa [#6201][WCF]: Don't crash if we don't have a client certificate. 2012-09-15 21:16:16 +02:00
Duncan Mak b6441229fa Revert "Use the full path to MonoPosixHelper in mono's config file."
This reverts commit 406140257b.
2012-09-14 16:40:04 -04:00
Sebastien Pouliot 9b545aaabf [OSX] Reset errors to 0 if the OS tells us that (1) the chain is ok, (2) the certificate usage is for SSL server and (3) the server identity is confirmed (2+3 were part of an earlier fix). Without this reset we depended on the mono certificate store as an extra condition (which would requires mozroots to be executed and we want to avoid this 'duplicated' requirement and trust OSX). This does not affect iOS where no mono stores exists. 2012-09-13 20:49:15 -04:00
Jonathan Pryor 329c0ffe11 [M4A] Clear RemoteCertificateChainErrors if Android validates the chain.
The problem: Mono for Android 4.2.5 horribly broke SSL support:

	http://lists.ximian.com/pipermail/monodroid/2012-September/012213.html

Why? Because of ad89f72f (kinda): As Mono for Android doesn't provide
or use its own set of SSL root certificates (opting instead to just
let Android worry about it), the `chain.Build()` method will ALWAYS
result in SslPolicyErrors.RemoteCertificateChainErrors being returned
from GetErrorsFromChain().

The world before ad89f72f "masked" this because errors & status11 were
always cleared if Android accepted the chain; however, clearing these
out masked other bugs, such as #5706 (in which https://74.125.224.134
is accepted as valid when it can't be valid, by definition).

The fix is to clear out SslPolicyErrors.RemoteCertificateChainErrors
if Android accepts the certificate chain. Any other errors are left
unchanged, thus keeping #5706 fixed.
2012-09-13 14:56:29 -04:00
Rolf Bjarne Kvinge f58f8b8a14 Add support for armv7s. 2012-09-13 13:17:21 +02:00
Martin Baulig c2b8bc30cb Fixed and improved Mono's Cookie implementation.
* Updated the tests to reflect .NET 4.5's new improved behavior.
* Fixed subdomain matching rules.
* Added some very simple sanity checks, such as same origin and
  public suffixes.

This is far from perfect, but the tests now pass with .NET 4.5
and this also fixes a Monotouch bug from one of our customers.

TODO:

* Using 'Cookie.Version = 1' (RFC 2109 compliance) apparently got
  broken in .NET 4.5; I disabled the corresponding tests / made
  them use the default 'Version = 0' where possible.

* Same origin has not been tested for security (it previously
  didn't exist at all) and we should probably use the list at
  publicsuffix.org; but .NET 4.5 also allows you to set a cookie
  .co.uk (haven't tested their web stack, thoug - it's possible
  that they have additional checks there).
2012-09-13 02:20:06 +02:00
Duncan Mak 313118e1d7 Include gdiplus in mono/config. 2012-09-12 16:20:27 -04:00
Duncan Mak 406140257b Use the full path to MonoPosixHelper in mono's config file. 2012-09-12 16:20:26 -04:00
Jérémie Laval d9a1d9e930 [System.Core] Check for canceled operation when invoking inner call 2012-09-12 15:49:43 +02:00
Mark Probst 13371cd7a2 [sgen] Provide a function to wait for bridge processing to finish. 2012-09-11 21:31:15 +02:00
Atsushi Eno e53fc0c952 in MONODROID profile, TimeZoneInfo should not return null entry. 2012-09-11 21:54:57 +09:00
Rolf Bjarne Kvinge 246a0a2fa4 Add an unhandled exception hook embedders can use to report unhandled exceptions as they wish. 2012-09-10 23:27:51 +02:00
Sebastien Pouliot 18a260bc95 Add two-keys triple-des test case (works with Mono but not with CommonCrypto, see #6968) 2012-09-07 09:17:36 -04:00
Atsushi Eno 099d197b21 add Android-specific ping path. 2012-09-07 17:35:11 +09:00
Jérémie Laval 356de4b625 [System.Core] Fix compare bug in PLinq's Contains implementation 2012-09-06 13:24:05 +01:00
Jérémie Laval 75d8f4b63c [System.Core] Remove Max/Min generic indirection 2012-09-06 10:26:46 +01:00
Jérémie Laval 28b9e04fd9 [System.Core] Remove generic indirection for Count/LongCount 2012-09-05 16:40:41 +01:00
Jérémie Laval 3d71903120 [System.Core] Fix issue in Join where some data might have been dismissed by accident
Conflicts:
	mcs/class/System.Core/Test/System.Linq/ParallelEnumerableTests.cs
2012-09-05 15:39:44 +01:00
Jérémie Laval f656531304 [System.Core] Fix ICE for older library lacking contravariance
Conflicts:
	mcs/class/System.Core/System.Linq.Parallel.QueryNodes/QueryGroupByNode.cs
2012-09-05 14:40:51 +01:00
Jérémie Laval 3176523609 [System.Core] Remove a source of generic indirection for GroupBy 2012-09-05 14:39:31 +01:00
Jérémie Laval f8f1d60790 [System.Core] Fix possible state corruption in ReaderWriterLockSlim. Fix #6635.
The problem was triggered in a situation where threads were competing for the write-lock and were using timeout:
   - thread t1 takes the lock (state = RwWrite)
   - thread t2 tries to take the lock but fails because of t1, it registers it interest (state = RwWrite | RwWait) and goes to sleep
   - thread t3 tries to take the lock but failes because of t1 and don't register any interest because t2 did it already (state = RwWrite | RwWait)
   - t1 releases the lock, waking up t2 and t3 which race for it with t3 winning the race (state = RwWrite)
   - t2 tries to go back to sleep but has overrun its timeout so it exits.
   - with t2 exiting, it tries to remove previously registered interest (state = RwWrite - RwWait -> corruption).
2012-09-04 18:54:04 +01:00
Jérémie Laval 89e884094a [System.Core] Returns false in SequenceEqual when the two sequences size are different 2012-09-04 16:36:47 +01:00
Jérémie Laval 63c200e3d3 [System.Core] Remove generic indirection 2012-09-04 16:06:13 +01:00
Jérémie Laval 85f30d851a [System] Fix timeout in BlockingCollection. Fix #6732. 2012-09-04 14:45:05 +01:00
Jérémie Laval db95d188fb [System.Core] Remove generic indirection in ParallelExecuter.Process 2012-09-04 13:56:20 +01:00
Jérémie Laval f510c462ea [System.Core] Remove generic indirection for ToDictionary 2012-09-04 12:15:08 +01:00
Jérémie Laval 5f536b5b42 [System.Core] Remove generic indirection for ToArray 2012-09-04 12:15:05 +01:00
Jérémie Laval 942199fc89 [System.Core] Remove generic indirection for ToList 2012-09-04 12:15:00 +01:00
Jérémie Laval f21ee49072 [System.Core] Remove a source of generic indirection 2012-09-03 19:34:32 +01:00
Zoltan Varga 9757685b36 Fix an off-by-one in the computation of the TLS reference bitmaps. Fixes #6755. 2012-08-30 22:00:05 +02:00
Alan McGovern e30f1ec9c0 [Microsoft.Build.Tasks] Don't throw if duplicate dependencies are found
We should use the dictionary setter instead of the Add method so that
we do not get an exception if the same Nth order dependency is found
multiple times
2012-08-30 01:24:02 +01:00
Alan McGovern c6be26d5ea [Microsoft.Build.Tasks] Fix several bugs in ResolveAssemblyReference
XBuild was adding both the primary references and nth-order references
to the ResolvedFiles output variable. This meant that dependent assemblies
were being added to the commandline passed to the compiler which caused
all sorts of issues.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=6708 and adds
tests to cover the changes to ensure they are correct.
2012-08-29 14:48:54 +01:00
Andreia Gaita e0871deeba [MSBuild] Fix wildcard parsing such as Include="dir\**"
The directory scanner was failing if the wildcard was the last item
on the path. Fix it, and also fix the excluded items detection to
make sure it checks the full path as well (paths may or may not be
rooted). Add a test for this.
2012-08-29 14:48:48 +01:00
Alan McGovern a51d8788e3 [Microsoft.Build.Tasks] Fix some simple caching to improve build times
Large projects now have significantly less overhead when calculating
assembly references and referencing gac assemblies.
2012-08-29 14:48:42 +01:00
Alan McGovern 14ae191489 [Xbuild] Use OrdinalIgnoreCase not InvariantCultureIgnoreCase
It's chewing up a fair bit of CPU time and buys us nothing. We only care
about ordinal ignore case for these scenarios.
2012-08-29 14:48:37 +01:00
Alex Earl 8edc967a26 Fix unit test for OverwriteReadonlyFiles 2012-08-29 14:48:32 +01:00
Slide d8d87e6613 [xbuild] Add 'OverrideReadOnlyFiles' property to Copy task.
Also, fixed Bugzilla 2239 where the copy task does not
behave the same as msbuild when a file being copied is
ReadOnly. msbuild resets the attributes of the file to
Normal in this case.
2012-08-29 14:48:26 +01:00
Zoltan Varga 0a3afd84a5 Avoid returning a 0 exit code from xbuild if one of the projects in an .sln file fails to build 2012-08-29 14:48:20 +01:00
Ankit Jain b57b90e3b9 [xbuild] Pick the correct base path for target frameworks.
Don't depend on Environment.GacPath to figure out the framework
base path ("..../xbuild-frameworks"). This broke on fedora, where
it mapped to $prefix/lib/mono instead of $prefix/lib64/mono .
Which caused framework assemblies to be picked from "lib" instead
of "lib64".
2012-08-29 14:48:14 +01:00
Rolf Bjarne Kvinge bede03d5fd Microsoft.Build.Tasks: vbnc2 must be used for the 2.0 profile 2012-08-29 14:48:09 +01:00
Zoltan Varga ba69969a33 Emit line number table in the sdb debug log. 2012-08-28 19:59:16 +02:00
Zoltan Varga 8153b50ff3 Add a MONO_SDB_ENV_OPTIONS env variable to allow passing extra options like loglevel to sdb. 2012-08-28 19:53:01 +02:00
Paolo Molaro 87b321f611 Avoid direct access to /dev/shm on some platforms. 2012-08-27 10:16:21 +02:00
Sebastien Pouliot b24e740510 [M4A] Do not reset 'errors' and 'status11' when a certificate is trusted. Fix last part of #5706 2012-08-23 16:41:28 -04:00
Sebastien Pouliot 4b9e7cafc6 [OSX|iOS] Do not reset 'errors' and 'status11' when a certificate is trusted. Use the OS to validate the certificate (as valid for SSL server usage) and for the host name checks. Fix parts of #5706 2012-08-23 16:41:19 -04:00
Sebastien Pouliot 78320b9187 Fix binding (type) and value error (true) that could lead to error #5 (kSecTrustResultRecoverableTrustFailure) for valid certificates. Fix bug #4001 2012-08-23 10:48:28 -04:00
Jeffrey Stedfast ef7e7ce38d [xbuild] Fixed Microsoft.Portable.CSharp.targets to use smcs
Fixes bug #6649
2012-08-22 13:45:01 -04:00
Petr Onderka e8a6fe06ca new CancellationTokenRegistration().Dispose() shouldn't throw
Conflicts:

	mcs/class/corlib/Test/System.Threading/CancellationTokenTests.cs
2012-08-20 01:30:01 +01:00
Petr Onderka d7dcebde97 Check key for null in ConcurrentDictionary 2012-08-20 01:30:01 +01:00
Alan McGovern b98640fe96 [System.Xml.Linq] Add error checking to the XElement constructors
Added matching tests.
2012-08-16 15:25:36 +01:00
Zoltan Varga f3d493d315 Free the newly added assembly->remapped_tokens hashtable. 2012-08-16 02:47:46 +02:00
Zoltan Varga d9e782e1f0 Handle ConstructorBuilders in fixup_cattrs () correctly. Fixes #689533 (nemerle build). 2012-08-16 02:41:00 +02:00
Miguel de Icaza 207b46dca9 Revert 4e5e52a298, which was pull request 242, which was novell bugzilla #689533
This patch miscompiled attributes like this:

                [EditorBrowsable (EditorBrowsableState.Advanced)]
                [Export ("init")]
                public  CAKeyFrameAnimation () : base (NSObjectFlag.Empty)
                {
                        if (IsDirectBinding) {
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.Init);
                        } else {
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.Init);
                        }
                }

In particular the [Export ("init")] method to be compiled like this:

    // method line 6274
    .method public hidebysig specialname rtspecialname
           instance default void '.ctor' ()  cil managed
    {
        .custom instance void class [System]System.ComponentModel.EditorBrowsableAttribute::'.ctor'(valuetype [System]System.ComponentModel.EditorBrowsableState) =  (01 00 02 00 00 00 00 00 ) // ........

        .custom instance void class MonoMac.CoreGraphics.CGImage::'.ctor'(int32, int32, int32, int32, int32, class MonoMac.CoreGraphics.CGColorSpace, valuetype MonoMac.CoreGraphics.CGImageAlphaInfo, class MonoMac.CoreGraphics.CGDataProvider, float32[], bool, valuetype MonoMac.CoreGraphics.CGColorRenderingIntent) =  (01 00 04 69 6E 69 74 00 00 ) // ...init..

Notice the "CGImage" attribtue instead of the ExportAttribute
2012-08-14 17:00:31 -04:00
Sebastien Pouliot 59f8ccff70 Add MD4, SHA384 and SHA512 signature verification to X.509 certificates
* X509Certificate.cs: Add MD4 (if available), SHA384 and SHA512
RSA signature verification
2012-08-14 13:27:02 -04:00
Sebastien Pouliot c41f66b93f Avoid throwing (just return false) when verifying an RSA certificate with dsaSHA1
* X509Certificate.cs: Do not throw a CryptographicException for "unknown
hash algorithm" when asked to verify a RSA certificate with dsaSHA1 since
this can happen when a bad/incomplete chain is being tested.
2012-08-14 13:27:02 -04:00
Sebastien Pouliot 5ff0bf12d2 Add support for validating RSA-based X.509 certifcates using SHA256
* X509Certificate.cs: Add mappings for 1.2.840.113549.1.1.11
2012-08-14 13:27:01 -04:00
Sebastien Pouliot c672257edb Do not throw in IsSelfSigned on non-RSA based certificates
* X509Certificate.cs: Handle DSA or DSA paramaters-only certificates
in IsSeldSigned
2012-08-14 13:27:01 -04:00
James Bellinger aa99529c2d Fixed Type.GetEnumNames sort order (it's specified on MSDN). Previously this method was returning in GetFields (declaration) order. It now returns sorted by the unsigned value of the enum as is correct.
Ran into this while calling Type.GetEnumNames and Type.GetEnumValues.
To my surprise the pairs didn't match up. Anyway, here's a fix.
2012-08-14 17:17:07 +01:00
Zoltan Varga 67f377f0b7 Fix debugger invokes which return pointer types. Fixes #4214. 2012-08-14 01:32:08 +02:00
Juho Vähä-Herttua ecb05bdde0 Fix HMACSHA384 and HMACSHA512 for key length of [65, 128] bytes. 2012-08-13 14:10:19 -04:00
Sebastien Pouliot 7d4183e828 Add test cases from #6510 2012-08-13 14:10:18 -04:00
Jonathan Pryor 0bb4db9401 Pass SSL certificate chain, not just collection, to Mono.Android.dll
Fixes BCL half of: https://bugzilla.xamarin.com/show_bug.cgi?id=6501

Today I learned that the SSL certificate collection (as held in
X509CertificateCollection) is a potentially unordered sequence of SSL
certificates, which not all versions of Android will validate.

The fix is to use the properly ordered SSL certificate chain (as held
in X509Chain), and have Android validate that.
2012-08-13 13:50:53 -04:00
Sebastien Pouliot 879adcdfab Wrap potential exceptions (like #6425 NRE) inside an (expected) WebException 2012-08-10 16:54:24 -04:00
Rolf Bjarne Kvinge c1288989c9 [Sqlite] Rework type mapping between sqllite and .net using sqlite's substring matching. Hopefully this will fix #5577 for good. 2012-08-09 15:06:59 +02:00
Jonathan Pryor 77f1b3fe63 Add note that UnixDirectoryInfo.Create() follows umask. 2012-08-07 15:42:06 -04:00
Alan McGovern 777753a5c5 Bump mono-2-10 to have a version number of 2.10.10 2012-08-02 15:00:22 -04:00
Paolo Molaro b0e367c025 Fixes xambug#2965: enqueue the correct worker instance (change from Tammo Hinrichs). 2012-08-02 20:03:55 +02:00
Rodrigo Kumpera ef23d8545e Disable native trace collection and spew on desktop. 2012-08-02 13:44:02 -04:00
Jonathan Pryor 6671c332e6 Enable IPv6 support under Android.
Android now supports IPv6.

Reverts: 55a3c344
2012-07-31 07:38:01 -04:00
Jeremie Laval e9c2847e83 [System] Check for Abort state when poping so that we can retry 2012-07-25 17:38:32 +01:00
Jeremie Laval 98835184b2 [corlib] Dont use blocking wait call in CancellationTokenSource test 2012-07-25 16:10:28 +01:00
Jérémie Laval 39109fbb04 [corlib] Remove now unneeded line 2012-07-25 16:10:00 +01:00
Jérémie Laval 1e221161b7 [corlib] Also unregister linked tokens when the proxy CancellationTokenSource becomes cancelled. 2012-07-25 15:49:55 +01:00
Jérémie Laval fd30c84ca4 [corlib] Linked token callback to the proxy CancellationTokenSource shouldn't throw ODE in concurrent situations.
Conflicts:

	mcs/class/corlib/System.Threading/CancellationTokenSource.cs
2012-07-25 15:47:53 +01:00
Jérémie Laval 9e1c3635ff [corlib] Dispose linked tokens connections when disposing the resulting CancellationTokenSource
Based on baulig's patch: https://github.com/baulig/mono/commit/3ee4f7600b8efe61f7a701a93fffed8373b7b4b3

Conflicts:

	mcs/class/corlib/System.Threading/CancellationTokenSource.cs
2012-07-25 15:45:24 +01:00
Jeremie Laval 9c30bb3bbc [System] Optimize ConcurrentBag, implement TryPeek and add unit tests
Initially reported by linquize

Conflicts:

	mcs/class/System/Test/System.Collections.Concurrent/CollectionStressTestHelper.cs
2012-07-25 14:41:09 +01:00
Marek Habersack 412fb275d3 Fix the build 2012-07-25 08:44:12 -04:00
Marek Habersack 049bb49f1c Update to fix for Novell bug #739119 2012-07-25 08:43:55 -04:00
Marek Habersack 04245de5c4 Fix for Novell bug #739119 2012-07-24 19:06:19 -04:00
Alex Rønne Petersen 7770151c3d Merge pull request #405 from linquize/patch-2
Fix typo in OldValue/NewValue for mono-2-10
2012-07-23 21:00:04 -07:00
linquize a54a85a407 Fix typo in OldValue/NewValue in System.ComponentModel.Design/ComponentChangedEventArgs.cs 2012-07-24 11:57:07 +08:00
Miguel de Icaza 1a303bc70c Render obsolete attributes on members 2012-07-23 21:36:37 -04:00
Rodrigo Kumpera 6954c0c4ac Switch the unhandled exception spew to use the new native backtrace when available. 2012-07-20 14:48:23 -03:00
Rodrigo Kumpera 7e8a4d5ef0 Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility available to managed land. 2012-07-20 14:48:23 -03:00
Rodrigo Kumpera 24ec24deb7 Add new mono_exception_get_native_backtrace function that stringify the native backstace with managed and native frames. 2012-07-20 14:48:22 -03:00
Rodrigo Kumpera bcbc8bbfcc Fill Exception::native_trace_ips when doing exception handling. 2012-07-20 14:48:22 -03:00
Rodrigo Kumpera d0f5ade677 Add field to Exception to hold the unmanaged backtrace. 2012-07-20 14:48:21 -03:00
Alan McGovern 04495073c1 Update the tests to do actual verification
Ensure the elements really are added twice.
2012-07-20 17:37:00 +01:00
Alan McGovern 2cd3d8204c Use the result of XUtil.ToNode when emitting events
Sometimes the value the user passes in is converted to an XNode. In
these cases we need to use that XNode when emitting the change events.
Added a test covering this change.
2012-07-20 17:36:52 +01:00
Alan McGovern 5d636d18d6 Emit change events for modifying XElement.Name
Added additional tests for this too.
2012-07-20 17:36:44 +01:00
Alan McGovern 31bbdabec6 Add some tests to verify behaviour of Annotations 2012-07-20 17:36:36 +01:00
Alan McGovern 35b5d4b419 Implement XObjectChange.Value for XAttribute
We now emit the correct Changing/Changed events when modifying the
value of an XAttribute. Added tests covering the changes.
2012-07-20 17:36:14 +01:00
Alan McGovern 94cd06fc6a Begin fixing the XObject.Changing and XObject.Changed events
Add tests to ensure the event is correctly emitted and correctly propagated
up the tree for the basic Add and Remove operations. Fixed the implementation
accordingly.
2012-07-20 17:36:08 +01:00
Alan McGovern 8a82e90853 [System.Xml.Linq] Fix some bugs in the tests
Ensure we normalize both the expected and actual output
so they have the same line endings.
2012-07-20 17:35:57 +01:00
Marek Safar 873a572022 Use correct iterator return type for XPathEvaluate. Fixes #5902 2012-07-20 17:35:49 +01:00
Marek Safar 65a50bb3c1 Add new test 2012-07-20 17:35:40 +01:00
Marek Safar d950656d72 Add missing CreateReader method 2012-07-20 17:35:30 +01:00
Marek Safar 51cc05438e Fix some parameters names 2012-07-20 17:35:06 +01:00
Atsushi Eno b68627cdb8 Do not call WriteString() for whitespace XText. 2012-07-20 17:33:45 +01:00
Atsushi Eno 58b45ea45c Fix bug #2146 - create snapshot copy of nodes before removal in Remove<T>(). 2012-07-20 17:33:26 +01:00
Atsushi Eno 7d514aaf91 Fix bug #2383 patch by Weeble - in XPathExtensions.Evaluate(), return IEnumerable of the underlying object, not XPathNavigator, for node-set values. 2012-07-20 17:33:08 +01:00
Atsushi Eno 27767b384f XDocument could also be filled IXmlLineInfo. 2012-07-20 17:32:11 +01:00
Miguel de Icaza 3dd75ec4a9 Add solution files 2012-07-20 17:30:31 +01:00
Miguel de Icaza 72a62a0e17 mono_lookup_pinvoke_call: prevent leak by keeping a global MonoDl handle for the internal module.
From now on, we will keep a global handle for lookups performed against the "__Internal"
library name.   This will prevent multiple P/Invoke calls from calling mono_dl_open with
filename == NULL for each call.

Since Mono never calls mono_dl_close on P/Invoke lookups, this should not pose a problem.
2012-07-18 22:33:23 -04:00
Rodrigo Kumpera 5f32625301 When calculating allowance, don't blindly cast from double to uint as it might not saturate the result.
* sgen-gc.c (try_calculate_minor_collection_allowance): For workloads with very high
	survival rates the calculated allowance_target can overflow a mword on 32bits systems.
	Given this behavior is unspecified and we've been bitten by it, let's take the safe
	side and manually saturate it.
2012-07-17 14:06:27 -03:00
Marek Habersack 8f5b1a0454 Merge pull request #385 from symform/mono-2-10
Mono 2 10
2012-07-17 03:14:03 -07:00
Gonzalo Paniagua Javier 70d63aa739 GetResponse() returns 0 when it need more data, not -1
GetResponse() returns 0 to signal that it needs more data to complete
	while -1 signals an error processing the data.
2012-07-16 13:53:21 -04:00
Gonzalo Paniagua Javier bfa23f8cd0 Backport from master 2012-07-13 19:34:36 -04:00
Rodrigo Kumpera 249ff94c35 Fix the layout of InternalThread and make sure we won't bump into it. Fix a linux crash.
* appdomain.c: Bump corlib version and add a canary to make sure
	we don't backport layout changes blindly.
2012-07-12 17:10:05 -03:00
Rodrigo Kumpera 0b95cbb8d9 Disable mdb by default as it breaks sgen builds. This has gone unoticed for close to two years now. 2012-07-10 15:33:17 -03:00
Michael Goff 65f7b4a137 Fix for bug #4896: Incorrect routing of catchall parameter
https://bugzilla.xamarin.com/show_bug.cgi?id=4896
2012-07-09 15:41:08 -07:00
Gonzalo Paniagua Javier 5c610044b0 HtmlEncode the path
Fixes Novell bug #769799.
2012-07-06 13:43:45 -04:00
Rolf Bjarne Kvinge 618657c3a5 Rework RectangleF.Contains to not do equality comparison on floating point values. Fixes #5985. 2012-07-05 14:55:09 +02:00
Alan McGovern 5c612297d4 [Microsoft.Build.Tasks] Remove an overly verbose informational message
This warning really pollutes the monodevelop build, so lets nuke it
for now.
2012-07-04 15:45:33 +01:00
Rodrigo Kumpera a47e41749e Use isfinite instead of finite as newer xcode removed it. 2012-07-02 11:22:57 -03:00
Rodrigo Kumpera a2634730e3 Add test for pinned gc handle. 2012-07-02 11:22:56 -03:00
Rodrigo Kumpera 9fba74a47b Fix a pair of bugs in the gchandle code.
* gc.c: Make sure pinned handles actually pin on sgen.
	* gc.c: Use gc_memmove and gc_bzero when dealing with memory
	that has managed references.
2012-07-02 11:22:56 -03:00
Rolf Bjarne Kvinge a1e30ace6f Make mkbundle bundle assemblies a lot faster.
Preallocate the 256 different lines we might write to the assembly file
instead of allocating several strings for every line.

With compression mkbundle is about twice as fast now (since compression
speed hasn't changed), without compression it's 5-10x faster, depending
on the number of assemblies to embed.
2012-07-02 15:46:17 +02:00
Zoltan Varga 2c7ff47245 Remove some assembly from mkbundle which doesn't work on osx 64 bit. 2012-06-30 00:46:33 +02:00
Rodrigo Kumpera 8ac076956b Make the thread abort code multi-thread safe. 2012-06-29 15:32:27 -03:00
Rodrigo Kumpera e4afc97bdd With Socket:Dispose from using Thread.Abort to less agressive alternative.
* Socket_2_1.cs: When closing a socket we need to abort any
	pending syscalls to that socket. For most syscalls the kernel
	does it for us. But accept/connect on linux requires extra
	love.

	We previously used Thread.Abort to implement that, but this
	is a pretty radical solution with very complicated ramifications.
	So instead now we use a new icall cancel_blocking_socket_operation
	that makes sure we only abort the syscall and do nothing else.

	This reduces the trouble surface a lot given how tricky
	Thread.Abort is.
2012-06-29 15:32:24 -03:00
Rodrigo Kumpera 33bec03932 Async close on mac raises ECONNABORTED for connect(). 2012-06-29 15:29:37 -03:00
Rodrigo Kumpera 4bffb9fe56 Add new cancel_blocking_socket_operation icall to Socket.
* socket-io.c: Add cancel_blocking_socket_operation icall
	to Socket so we can abort socket syscalls on other threads
	when we decide to close a socket.
2012-06-29 15:29:13 -03:00
Rodrigo Kumpera f3c60e7b0c New field InternalThread::ignore_next_signal. Bump corlib version due to layout change. 2012-06-29 15:10:37 -03:00
Rodrigo Kumpera 3e78c22f48 Fix race condition in static's inialization of mono_message_init.
* object.c (mono_message_init): Make sure the static field
	we test fo check for initialization is the last to init or
	we risk an abort due to others been null.
2012-06-29 12:52:55 -03:00
Gonzalo Paniagua Javier 02dd6e7f7b Attempt to fix #1553
This should prevent a popular exception to happen again.
2012-06-28 22:20:10 -04:00
Martin Baulig 371d7369a7 Include quotation marks in cookie value. 2012-06-26 15:27:40 -04:00
Martin Baulig 6feffe1373 Correctly parse cookies.
* System.Net/CookieParser.cs: Replace GetNameValue() with Parse(),
  support multiple cookies, errors and "expires=Day, ...".

* Test/System.Net/CookieParserTest.cs: New nunit test suite for that.
2012-06-26 15:27:12 -04:00
Martin Baulig b3d9be482e Fix DateTime.ToFileTimeUtf (bug #5697). 2012-06-26 15:22:53 -04:00
Rolf Bjarne Kvinge 60a2e2d0b5 Sqlite: Map BOOLEAN to System.Boolean. Fixes #5768. 2012-06-25 11:56:16 +02:00
Zoltan Varga 73cc5917ee Disable LLVM for methods with very long basic blocks. Fixes #5714. 2012-06-24 21:26:25 +02:00
Zoltan Varga de3f5e1538 More fixes for passing/receiving nullables in sdb. Fixes #4659. 2012-06-19 22:50:24 +02:00
Zoltan Varga 5dc6c75b62 Allow setting nullable values in sdb. Fixes #4385. 2012-06-19 22:50:24 +02:00
Marek Safar 4fa036cf0f Fixes a warning 2012-06-19 13:01:17 -04:00
Rob Wilkens dc6efdab29 Bug 2663: Regular Expression Bug Fixes
What this fixes:
IF you were checking a regex which contained something like "(A|AB)C" and then you
checked something like "ABC" against it, it would fail previously, because its
first trip thru the regex it would match "A" first and short circuit out of the
"or" (|)  then next try to match "C" but find "B" and fail.  In this case, it should
be obvious that it needs to, after it fails, go back and try "AB" rather than "A"
and that's where this patch comes in.

Brief summary of each change in order that "git diff --staged" is giving them to
me:

This first one summarizes the background of goal of project:
New Function: EmitJumpTest
For when we are evaluating Alternatives (or's) we now want to be able to go back
and try or paths we haven't already tried if and only if we fail.  This alternate to
EmitJump instead of jumping to target if we have a match immediately, will
on first attempt do the jump, but later if we have already tried this jump
combination, it will jump to ElseTarget, which is the equivalent of this test
failing on subsequent attempts with the same combination of 'or's passing.

RxCompiler:
EmitJumpTest isn't implemented for RxCompiler because i didn't have sample
code to test it on, so it falls back to a regular jump, nothing changes in
RxCompiler in other words other than having this required fucntion front.

arch.cs:
New OpCode added for JumpTest (see EmitJumpTest above)

compiler.cs:
EmitJumpTest added here for regular compiler, it now takes two arguments (two
items on stack) first was the standard where to jump to address, the second
argument is where to jump to in case where we have already tried this
combination)

interpreter.cs:

JumpTestEntry - What we keep track of to know if we've been here before, for
now i presumed just 'pc' (program counter') and 'ptr' (pointer - where we are)
were enough to tell us if we've been to this particular spot before.

Eval has been moved into Eval_Real

Eval if it gets called with parameters indicating we've already been here
(i.e we're being called recursively) just passes the call directly to eval_real
as-was.

Otherwise eval will loop on eval_real while we fail and haven't tried every
possible path through all the or's. (Note: The special case of where we're
running a 'test' (i.e. checking !(a|b|c) rather than just matching (a|b|c)),
and if we're running a test, we turn off JumpTestTracking while it's in its
recursive section.  The reason for this is because while we can rightly check
all the options of (a|ab|abc)  first for a then try again with ab then try again
with abc, we cannot do the same for a not (i.e. !(something or something else)
is really (not something AND not somtehing else), and it is not (not something
or not something else))

JumpTestList tracks our current run's JumpTest calls...
TriedCombo's tracks all the combos (all the JumpTestList results) that we've
already tried.

All calls to anything which calls Eval were modified to call eval passing
the optional new parameters that we now need, and remember if we call
eval with those parameters having a value, it will just forward the call
to Eval_Real.

This included modifying TryMatch because it calls Eval.

OpCode.JumpTest handler was added, what it does is first check if we need
to ByPass to jump to 'else' right away, which again happens when we're in
a test recursive call (Checking not, for example).
Next, it will create and populate a new JumpTestEntry with the current values.
It then calls CheckComboMatch() which sees if we match a combo already on file.
If we don't have a Match we jump to the first label (at pc+1) which is the
regular jump call.  If we have a match, though, it will jump to the else label
which is now at (pc+2).

CheckComboMatch had to be broken up into two functions because it was going
too deep in terms of nesting.  What it does by now should be somewhat understood
it will see if we have a match between our current run and previous runs, and
if we have a match, it returns true.  If we don't have a match, it returns
false.  I have some doubts about whether this function is 100% correct, there
may remain a bug or two, but it does pass all the "System" unit tests which
includes all the regular expression tests, plus it works for all the tests
in the bug report, so i have little reason to mess with it.

syntax.cs:
Here's where i modified so that when evaluating alternatives ("or"s or "|"s)
we instead call EmitJumpTest rather than just a regular EmitJump.

RegExBugs.cs:
This is the unit test (a bunch in one) which fails on mono without this patch
but succeeds with it
commit 48027ac2bdd9b60d18985ec2537eb188607f8164 1 parent 91c4180d55

This patch was originally submitted under another branch which had a bunch of
unrelated commits in it.  I'm hoping if i did this right, these changes stand
alone.
2012-06-19 13:01:08 -04:00
Rolf Bjarne Kvinge 32f743c2e0 Sqlite: Map GUIDBLOB to System.Guid. Fixes #5577. 2012-06-19 16:13:10 +02:00
Gonzalo Paniagua Javier 5c5be866e2 Aborting a pending request closes the socket now
Aborting an HttpWebRequest whose request stream is not closed yet will
	now close the underlying socket properly.
	Fixes bug #5710.
2012-06-18 22:52:36 -04:00
Rodrigo Kumpera 3d3fe6afab Improve Delegate::Combine error message. 2012-06-18 12:14:01 -03:00
Atsushi Eno 2f90a22a0b doh, miscopied file names. 2012-06-12 19:03:25 +09:00
Atsushi Eno 2908d55286 Those new hacky RabbitMQ sources files need to be included in dist. 2012-06-12 18:58:44 +09:00
Atsushi Eno 4ab341d0a5 attempt to fix parallel build in RabbitMQ dir.
Its' nasty, but who cares? (if whoever does, fix it.)

Conflicts:

	mcs/class/RabbitMQ.Client/docs/specs/Makefile
2012-06-12 17:56:00 +09:00
Atsushi Eno 1f7f0ad019 bring back code contracts to mobile profiles. 2012-06-12 15:59:52 +09:00
Miguel de Icaza bb04c29fd0 Merge pull request #317 from viniciusjarina/fix_4794_mono-2-10
Fix 4794 mono 2 10
2012-06-07 17:59:13 -07:00
Zoltan Varga bca3e7d60a Fix sorting of ulong[] arrays among others when using the non-generic Sort() overloads. 2012-06-07 15:45:52 -04:00
Marek Safar 1d09e181e0 Merge pull request #254 from viniciusjarina/fix_build
Fix broken test
2012-06-07 01:24:05 -03:00
Dave Ferguson 22b4ec0f7a - Fix bug 4794 by searching the SerializationMap with both type and
qname in all but several cases (see bug report comments)
- Add separate list for known types to mimic behavior of the .NET
  runtime

- Make previous test fixtures public so that the unit tests will be run

- Remove unused private method

- Add unit test for bug 4794
2012-06-07 01:23:38 -03:00
Atsushi Eno 14b6329657 Use non-prefixed namespace output for element when applicable. Fixed bug #5519. 2012-06-07 13:05:23 +09:00
Sebastien Pouliot 30d72c0558 Propagate all errors to the (old) ICertificatePolicy or (newer) callback. Fix bug #5546 for iOS 2012-06-06 21:12:23 -04:00
Lluis Sanchez 07ce8e4dd2 Improve date serialization compatibility with third party web services
Make XmlCustomFormatter.cs more liberal about the date formats it accepts.
Many third party web services do not format date exactly at 'yyyy-mm-dd'.
The Microsoft implementation is more liberal about accepting other formats
and so the current Mono implementation breaks projects that consume third
party web services when they are ported to Mono.
Based on a patch by Aaron Roydhouse.
2012-06-05 12:31:20 +02:00
Jonathan Pryor 0253a59dff [corlib] Allow SynchronizationContext.Current to work on MfA
For the main (UI) thread, make SynchronizationContext.Current return
the Android.App.Application.SynchronizationContext property.
2012-06-01 12:52:20 -04:00
Rodrigo Kumpera 28cc5ba1ec Implement better pointer spew for the new heap verifier. 2012-06-01 12:06:29 -03:00
Zoltan Varga c895ea21a5 Add an aot option to override the value of readonly static fields.
If the static constructor of a type has been run, the JIT can perform
some optimizations based on the actual value of static readonly fields.
This isn't possible in AOT mode, since the code won't be ran before compile
time: this option allows to set any number of static readonly fields to
a constant value so that the compiler can perform the same kind of
optimizations.
2012-06-01 12:48:09 +02:00
Zoltan Varga b8d1e49bb7 Revert "Add an aot option to override the value of readonly static fields."
This reverts commit 0127f24037.

Revert this as an experiment to see if it fixes #5429.
2012-06-01 10:55:07 +02:00
Zoltan Varga ba75d15c99 Merge pull request #311 from symform/mono-2-10
Mono 2 10
2012-05-31 17:50:12 -07:00
Michael Goff 0cd9bea4a6 Incorrect comment syntax was breaking compile time configure check for large file support 2012-05-31 15:11:00 -07:00
Jeffrey Stedfast c70e6210b9 Fixed regressions in Microsoft.Build.BuildEngine 2012-05-31 14:04:46 -04:00
Vinicius Jarina 3d6c70d28e Fix issue #242 DataContractSerializer fails to deserialize List<T> properties 2012-05-30 23:36:46 -04:00
Zoltan Varga 656b00c8ca Fix a race in mono_aot_find_jit_info (). 2012-05-30 23:38:21 +02:00
Zoltan Varga 736efd75e0 Resurrect the remote csharp repl on 2.10. 2012-05-30 02:19:18 +02:00
Rodrigo Kumpera 27943b1dda Fix major whole-heap verification if the nursery end up partially cleaned. 2012-05-29 18:14:44 -03:00
Sebastien Pouliot 86e85ff5d4 Remove dependency on System.ServiceModel.Web (and it's own dependency) when using System.Json is enough 2012-05-29 14:54:28 -04:00
Rodrigo Kumpera 5fd37f3212 Add new whole heap verifier that can catch a whole lot more problems than previous tools did.
* sgen-gc.c Add verify-before-allocs and verify-before-collections experimental
	options to perform heap verification at the many different points in the app.

	This does check all pointers in the heap, so it's much much slower than
	the previous option.
2012-05-28 17:31:13 -03:00
Jeremie Laval 9ec0bb7319 [corlib] Fix ConcurrentStack.TryPopRange and add tests. Fix #5304 2012-05-28 11:31:09 +01:00
Jeremie Laval 18c6ae3023 [corlib] A CancellationTokenRegistration instance should always have a working GetHashCode method
Reported by knittl
2012-05-28 11:08:46 +01:00
Zoltan Varga 0127f24037 Add an aot option to override the value of readonly static fields.
If the static constructor of a type has been run, the JIT can perform
some optimizations based on the actual value of static readonly fields.
This isn't possible in AOT mode, since the code won't be ran before compile
time: this option allows to set any number of static readonly fields to
a constant value so that the compiler can perform the same kind of
optimizations.
2012-05-27 04:05:05 +02:00
Marek Safar 225b611bd1 Fix Guid::CompareTo. Fixes #4721 2012-05-26 08:40:41 +01:00
Sebastien Pouliot 799028878b Add newer (SL5) types to mobile profile. Fix bug #5337 2012-05-25 19:55:56 -04:00
Marek Safar 4f44c7b885 Remove System.Threading.LockRecursionException from mobile System.Core. Fixes #5192 2012-05-25 19:55:56 -04:00
Rodrigo Kumpera 04440004f5 Small improvements to the concurrent queue.
* mono-cq.c (mono_cq_add_node): Add a store store fence
	between the two stores as they can be observed OOO.

	* mono-cq.c (mono_cq_create): Use precise roots for head
	and tail.
2012-05-25 10:54:03 -03:00
Sebastien Pouliot eeabf86973 Avoid having LockRecursionException in both mscorlib and System.Core for the MOBILE profile. Fix bug #5311 2012-05-24 22:12:56 -04:00
Miguel de Icaza 36b479bdd9 Merge pull request #280 from symform/mono-2-10
Modified the large file support check to do a compile-time check instead of a run-time check
2012-05-24 13:53:04 -07:00
Rodrigo Kumpera 236b31961b Use new mono_gc_(memmove|bzero) in places messing with managed memory. 2012-05-23 16:08:28 -03:00
Rodrigo Kumpera 90355d32d3 Fix a bunch of data races. 2012-05-23 16:08:28 -03:00
Rodrigo Kumpera 9d59f5b1d9 Fix mono-cq under sgen.
* mono-cq.c: Don't store to managed fields directly, use
	MONO_OBJECT_SETREF. Don't memset a block of memory with
	roots, use mono_gc_bzero.

	This fixes random crashes in my sgen_par_tlab branch.
	Hopefully all of them.
2012-05-23 16:08:28 -03:00
Rodrigo Kumpera b1ba3a716d Backport gc_memmove and gc_bzero with all fixes together. 2012-05-23 16:08:27 -03:00
alexrp a0139172d7 mono/metadata/gc.c: Fix warning due to declaration after statement. 2012-05-23 15:28:26 +02:00
Sebastien Pouliot 3cbbaecc07 Fix IsolatedStorageFile directory creation/deletion with rooted paths. Fix bug #5011 2012-05-22 14:37:39 -04:00
Rodrigo Kumpera 215f7744f6 Replace some g_assert with g_error. 2012-05-22 13:20:17 -03:00
Gonzalo Paniagua Javier f537b39bfa .NET 4.0+ flushes the request stream when content length is not set
Fixes bug #4640
2012-05-22 05:41:35 -04:00
Rodrigo Kumpera 2f739140ce Fix a very rare hang on sgen.
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	When suspending threads, if a given thread was suspended on
	a gc unsafe point we restart it until it land on a safe zone.

	Since we restart the thread, it might die before we get the chance
	to suspend it again, we take this into account except when waiting
	for acks. We mistakenly waited for the same number of acks of the
	restart step. It could have been reduced if a thread died.

	This bug is very very hard to hit as it only happens on linux,
	requires that a thread on an unsafe point dies right after been
	restarted and it must not be a managed thread as those must take
	the GC lock while cleaning up.

	This sums up to a mostly theoretical bug that someone might
	have observed once in the wild. We're better fixing it now
	since further optimization work might make it easier to hit.
2012-05-21 12:39:46 -03:00
Rolf Bjarne Kvinge d819ff3031 Fix typo 2012-05-21 13:25:07 +02:00
Rodrigo Kumpera 698a0b1b7f Avoid a deadlock when waiting for pending finalizers.
* gc.c: If the finalizer thread is delay started
	we must ensure that we don't block waiting for finalizers
	until it is live.

	This is required as the delayed start could happen in
	the blocked thread - and deadlock us.
2012-05-18 17:34:18 -03:00
Rodrigo Kumpera 5e727c96e6 Make asserts more usefull. 2012-05-18 17:34:01 -03:00
Rolf Bjarne Kvinge 1631b25a22 Sqlite: Map DATETIME to System.DateTime. Fixes #5078. 2012-05-18 14:31:11 +02:00
Marek Safar 8ef4c5b84b Fix datetime miliseconds parsing. Fixes #992 2012-05-18 13:45:47 +02:00
Sebastien Pouliot ed4e6b9b35 Add fix and test case from bnc #650402 2012-05-16 16:53:22 -04:00
Rolf Bjarne Kvinge f1ba0b3467 Sqlite: Close the command before the connection when CommandBehavior.CloseConnection is specified. Fixes #5058. 2012-05-16 22:20:06 +02:00
Jeremie Laval 98b272411e [corlib] Fix NullRef when using dispose a CancellationTokenRegistration when the initial source has been disposed
Conflicts:

	mcs/class/corlib/Test/System.Threading/CancellationTokenSourceTest.cs
2012-05-16 11:54:57 +01:00
Sebastien Pouliot 666e804ca5 newer nunit does not require a [TestFixture] attribute and made those fixture fail. Making them abstract fix this 2012-05-14 09:17:14 -04:00
Atsushi Eno 47df5f6a86 Make use of GetPrefixOfNamespace() in XElement.ToString(). Fixed bug #3972. 2012-05-14 18:32:13 +09:00
Atsushi Eno 2baf26aaf0 Fix bug #2564 - give .NET compatible namespace prefixes for XElement with namespace that XAttribute provides.
This makes XElement.WriteTo() pretty much slower.
2012-05-14 18:31:48 +09:00
Atsushi Eno fcc5484999 Add Xml declaration even for such document that lacks XDeclaration.
Fixed bug #4850.
2012-05-14 17:28:52 +09:00
Atsushi Eno b67f32d308 XNodeNavigator could be used for a node tree without XDocument, so make it work for such case.
Fixed bug #4690, patch by eb1 sil.org.
2012-05-14 16:32:19 +09:00
Atsushi Eno f327e874af In XNodeNavigator, do not start text node skip from current node.
Fixed bug #4739, patch by eb1 sil.org.
2012-05-14 16:25:08 +09:00
Zoltan Varga 964997a025 Fix byref stringbuilder marshalling. Fixes #5007. 2012-05-14 02:42:14 +02:00
Zoltan Varga 9d104c58f8 Implement out support in byref string marshalling. Fixes part of #5007. 2012-05-14 02:41:36 +02:00
Vinicius Jarina 867ff15e3d Added new test 2012-05-11 10:56:56 -04:00
Vinicius Jarina 663a84c6e1 Fix XML serialization of DateTimeOffset?. Fixes #3258
The nullable DateTimeOffset was not properly handled when serialized.
The deserialization changed to work with DateTimeOffset?.
Avoided "i:type" attribute when serializing Nullable type.
2012-05-11 10:55:14 -04:00
Vinicius Jarina c38ef96f9f Removed code commented 2012-05-11 10:55:10 -04:00
Rolf Bjarne Kvinge c57521f7fb If the dllname for a dllimport is a full path, try that exact path before anything else. Fixes #4678. 2012-05-11 01:06:52 +02:00
Sebastien Pouliot 2a9bec8482 Add System.Windows.Input.ICommand which is part of 4.5 and the portable class libraries
Conflicts:

	mcs/class/System/System.dll.sources
2012-05-10 08:53:25 -04:00
Sebastien Pouliot 9ff4fe6fa1 Add some stubs for methods required by the portable class library profiles 2012-05-10 08:46:19 -04:00
Rodrigo Kumpera e60e2c11ba Make INodeVisitor methods nonvirtual by augmenting nodes with interfaces. 2012-05-10 10:55:51 +01:00
Jérémie Laval 2c29ba21d2 Fix overflow checking in PLinq Range operator 2012-05-10 10:55:51 +01:00
Jeremie Laval d030330913 Bring in CountdownEvent optimizations/fixes from master 2012-05-10 10:55:51 +01:00
Konrad M. Kruczynski 22d4fae2e0 Another fix and unit test added.
Now all three possible cases are tested (and working).
2012-05-10 10:55:51 +01:00
Konrad M. Kruczynski 00cd968f98 Fixes as per the Rodrigo's comment.
Wait now throws an exception in case of cancellation token was
cancelled.
2012-05-10 10:55:50 +01:00
Konrad M. Kruczynski 9ce01415e1 Fix for bug in ManualResetEventSlim.
The problem occured when one waited for an event with the
cancellation token and the wait was successful but not
immediate. In that case Wait returned false instead of true,
because of wait handle number mismatch. Also the unit test was
added.

Conflicts:

	mcs/class/corlib/Test/System.Threading/ManualResetEventSlimTests.cs
2012-05-10 10:55:50 +01:00
Jeremie Laval 27c014e63c Update Cancellation plumbery to bring back fixes from master 2012-05-10 10:55:50 +01:00
Jérémie Laval d73722f5d7 Fix wrong CAS check in SplitOrderedList 2012-05-10 10:55:50 +01:00
Jeremie Laval 4d439e7a6b Sanitize Task plumbery from master.
Some fix/enhancements were disseminated in master and had never been brough back to 2-10
2012-05-10 10:55:49 +01:00
Jeffrey Stedfast ca4d43ff20 Added call to GC.SupressFinalize() in CFObject.Dispose() 2012-05-09 14:48:14 -04:00
Sebastien Pouliot 1a9f426523 Add a few bits that the Portable profiles includes (already in master) 2012-05-09 14:07:53 -04:00
Sebastien Pouliot b950fd3bff Small adjustments needed for Profile[1-4] of the Portable Class Libraries.
Conflicts:

	mcs/class/System.XML/System.Xml/XmlReaderSettings.cs
2012-05-09 14:01:04 -04:00
Sebastien Pouliot e637067028 Thread.Finalize is needed in Profile3 of the Portable Class Libraries. 2012-05-09 14:00:01 -04:00
Sebastien Pouliot c89dc66024 BinaryWriter.Dispose is needed in Profile[1-4] of the Portable Class Libraries. Fix bug #4871
Conflicts:

	mcs/class/corlib/System.IO/BinaryWriter.cs
2012-05-09 13:59:22 -04:00
Jeffrey Stedfast 94a56041f4 [MacProxy] Fixed refcounting and got rid of unneeded attribute flags 2012-05-09 10:46:34 -04:00
Jeffrey Stedfast 8227961a41 WebRequest.GetDefaultWebProxy() must not assume the type of the system proxy. 2012-05-08 19:07:20 -04:00
Jeffrey Stedfast 7c89a8fe75 [System.Net.WebRequest] Implemented new and improved proxy support on Mac/iOS 2012-05-08 18:40:36 -04:00
Rodrigo Kumpera b02f9ac6bb When cleaning up the finalizers of a domain, do it in a way that reduces the chance of leftover objects.
* gc.c (finalize_domain_objects): When cleaning up a domain, we run two kinds of finalizers,
	those that have already been queued and those for objects that remain alive.

	A common problem we need to deal is that some finalizers allocate other finalizable objects
	when doing seeminly trivial operations such as String.IndexOf - which might require the Thread
	object of the finalizer thread to be instantiated.

	We handle those new objects by draining the registered finalizers set until none shows up. This fails
	if we run the queued finalizers after that.

	The order onto which finalizers are run on domain unload is unspecified and the new behavior can
	be argued to be more natural.
2012-05-07 13:52:43 -03:00
Rodrigo Kumpera 528213d413 Fix a warning. 2012-05-07 12:19:53 -03:00
Rodrigo Kumpera 969f4f3c19 Fiz a domain unload race regarding finalizable objects.
* sgen-gc.c (mono_gc_clear_domain): It's possible to have a finalizable object
	survive mono_domain_finalize and leak into mono_domain_free, so we make sure this
	won't crash by removing from the fin hashtable all objects that belong to the
	doomed domain.
2012-05-07 12:19:39 -03:00
Gonzalo Paniagua Javier 80801f6d22 Do not raise the client cert callback twice.
Reverts my own patch from 2009.
2012-05-01 15:16:38 -04:00
Gonzalo Paniagua Javier 906ca96d65 Add support for client certificates to HttpListener
Fixes bug #3969.
2012-05-01 15:15:46 -04:00
Gonzalo Paniagua Javier 5da868cbe5 Do not attempt to write 0 bytes.
Fixes bug #4669.
2012-04-27 15:45:48 -04:00
Gonzalo Paniagua Javier fd8b0c3f82 Do not send all the DNs on the server upon establishing a connection. 2012-04-27 15:45:40 -04:00
Jeffrey Stedfast 532aecf0ce [xbuild] We still need to throw if we fail to import something. 2012-04-26 13:53:19 -04:00
Michael Goff 1de3e266c1 Modified the large file support check to do a compile-time check instead of a run-time check so that cross compile does the right thing. 2012-04-26 09:49:41 -07:00
Jérémie Laval 361c5c49f3 Fix constructor call in QueryConcatNode 2012-04-25 19:31:08 +01:00
Rodrigo Kumpera ab93d7d14f Make sure no live object is left unscanned before we process disappearing links & finalizable objects. 2012-04-25 00:18:18 -03:00
Rodrigo Kumpera 8e0dc5abc9 Add regression test for #3903. 2012-04-24 16:42:35 -03:00
Rodrigo Kumpera 27f313cfd9 Use MonoClass::element_class for non array types when computing array interfaces. Fixes #3903.
* class.c (get_implicit_generic_array_interfaces): When computing the interfaces
	of Array::InternalEnumerator<T> don't use element_class for array types as we
	only want to do that to drop from enum to base type and uint->int.

	Fixes #3903.
2012-04-24 16:42:28 -03:00
Gonzalo Paniagua Javier bf3a705d0d Avoid deadlocking when getting the ServicePoint
SSL connections were deadlocking when getting the service point for the
	connection in the last few releases of 2.10.x and in master.

	Fixes bug #4599.
2012-04-24 04:55:20 -04:00
Sebastien Pouliot 8ba548ded1 Fix leak when an error message is returned from sqlite3_exec 2012-04-23 13:42:30 -04:00
Sebastien Pouliot 5abd53db85 Fix leak by releasing the certificate elements from the CFArray since it was created with a null CFArrayCallBacks 2012-04-23 13:42:28 -04:00
Zoltan Varga 6a99950558 Avoid setting thread->abort_exc in mono_raise_exception (), it was already done. Fixes #4413.# 2012-04-23 15:18:46 +02:00
Duncan Mak 606afdf3ed Fix SetElementValue, fixes #4211. 2012-04-20 17:31:45 -04:00
Gonzalo Paniagua Javier 4b51c2dd29 Avoid key duplication error from bogus ContentType
Fixes bug #4542.
2012-04-20 13:58:38 -04:00
Rolf Bjarne Kvinge 69abed92c0 Fix XmlAttributes to ignore all XmlAttributes if XmlIgnore is present 2012-04-19 23:06:25 +02:00
Rolf Bjarne Kvinge c6fef95efb Ignore XmlIgnore attributes when importing members in XmlReflectionImporter. Fixes #4367. 2012-04-19 23:06:23 +02:00
Jeffrey Stedfast 10980e09d6 [Mono.CompilerServices.SymbolWriter] Fixed Cecil ctor in MonoSymbolFile.cs 2012-04-18 17:40:17 -04:00
William Holmes 48dd92e4d7 Fixing some problems with my previous commit.
threadpool.c (async_invoke_thread) :
	1) Decrease the thread pool waiting count if the dequeue was successful.
	2) Do not call dequeue_or_steal while gc skip thread is true.
2012-04-18 17:14:37 -03:00
Gonzalo Paniagua Javier 4b7ab75409 Merge pull request #275 from bholmes/wsq-deadlock-12-04
Work Stealing Queue Deadlock fix.
2012-04-18 14:01:38 -04:00
Jeffrey Stedfast acb2b75103 [xbuild] Add a Microsoft.Portable.CSharp.targets file
Conflicts:

	mcs/tools/xbuild/Makefile
2012-04-17 17:02:51 -04:00
Jeremie Laval c657ebe342 Improve ManualResetEventSlim consistency with new algorithm
Conflicts:

	mcs/class/corlib/System.Threading/ManualResetEventSlim.cs
2012-04-16 17:16:35 +01:00
Zoltan Varga 02e06a619a Fix setting of byref variables in sdb. Fixes #4362. 2012-04-16 17:36:52 +02:00
Jeremie Laval c61bbdc80e Remove NET_4_5 parts that were introduced by cherry-pick 2012-04-16 16:00:31 +01:00
Jeremie Laval 004c18a1fc Don't overwrite the current variable without first saving its value in case a Task is executed inline inside another task
Conflicts:

	mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
2012-04-16 15:58:16 +01:00
Jeremie Laval ea3791d7f7 Fix Task child waiting for RunSynchronously
Conflicts:

	mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
2012-04-16 15:42:34 +01:00
Jeremie Laval 2d833c991d Change how parent is selected during Task creation and do not force continuation's parent as they are not necessarily the same as their ancestor
Conflicts:

	mcs/class/corlib/System.Threading.Tasks/Task.cs
2012-04-16 15:40:44 +01:00
Jeremie Laval 82785d6e98 Correctly propagate faulted status and exception from child to parent in attached case
Conflicts:

	mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs
2012-04-16 15:06:29 +01:00
Jeremie Laval 110087a8e5 Use .NET 4.5 implementation of Task's WhenAll/WhenAny for TaskFactory's ContinueWhenAll/ContinueWhenAny
The diff noise in Task.cs is just moving WhenAllCore and WhenAnyCore outside of their NET_4_5 region

Conflicts:

	mcs/class/corlib/System.Threading.Tasks/Task.cs
	mcs/class/corlib/System.Threading.Tasks/TaskContinuation.cs
2012-04-16 14:54:08 +01:00
Jeremie Laval ad4ae8a0a0 Better argument checking in TaskFactory's ContinueWhen* methods 2012-04-16 14:33:51 +01:00
Jeremie Laval 0c03eca2a5 Add unit test for bug #2007 2012-04-16 14:33:09 +01:00
Gonzalo Paniagua Javier a73443e3c9 Remove HasCacheControl from here too (fixes the build) 2012-04-14 22:29:07 -04:00
Gonzalo Paniagua Javier 348c273c5f Fix issues with caching
When the 't' parameter was specified, we returned a 304 if the
	timestamp matched the assembly timestamp, even if the client
	needed the entire body. We were also setting the 304 response
	cachebility as public to further mess things up.

	Fixes the treeview in the class status pages.
2012-04-14 15:27:11 -04:00
Sebastien Pouliot f1b6f91b8e Parse floating point values with negative exponent correctly. Fix bug #4415 2012-04-13 09:01:57 -04:00
Jeffrey Stedfast 727ada784e [xbuild] Don't evaluate an import unless the file actually exists
Fix for bug #4365.
2012-04-10 15:24:53 -04:00
Zoltan Varga 6b1609e62b Allow setting the name of threadpool threads. Fixes #4269. 2012-04-09 08:36:42 +02:00
Zoltan Varga 551ae5de33 Fix the domains of the objects returned by AssemblyMirror.GetAssemblyObject ()/TypeMirror.GetTypeObject (). Avoid caching empty strings in AppDomainMirror.FriendlyName. Fixes #4223. 2012-04-07 06:06:02 +02:00
Jonathan Pryor 9a8c51583e [System] Fix MacOsNetworkInterface.ImplGetAllNetworkInterfaces()
On my (cursed?) MacBook Pro, calling
System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
results in an exception:

	System.ArgumentException: length
		at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0
		at System.Net.NetworkInformation.MacOsNetworkInterface.ImplGetAllNetworkInterfaces () [0x00000] in <filename unknown>:0
		at System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces () [0x00000] in <filename unknown>:0

Some printfs later, and we see why:

	Array.Copy(array.Length=12, 3, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 4, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 4, array.Length=0, 0, 0)
	Array.Copy(array.Length=12, 3, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 3, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 3, array.Length=8, 0, 4)
	Array.Copy(array.Length=12, 4, array.Length=6, 0, 6)
	Array.Copy(array.Length=12, 8, array.Length=6, 0, 6)
	# BOOM!

(Apparently I have 8 interfaces: lo0, gif0, stf0, en0, en1, fw0, p2p0,
and vboxnet0.)

The problem is readily obvious: we're trying to read 6 bytes of data
when only 4 are available, and Array.Copy() complains appropriately.

The fix -- which looks to almost contradict a02076ba -- is to use
`sockaddrdl.sdl_data.Length - sockaddrdl.sdl_nlen` instead of
`sockaddrdl.sdl_data.Length - macAddress.Length` (or sdl_alen).
sdl_nlen is the offset into the source sockaddrdl.sdl_data array, and
in this case sockaddrdl.sdl_alen (the length of the destination
macAddress) isn't the same as sockaddrdl.sdl_nlen, hence the breakage.
2012-04-05 16:17:28 -04:00
Jonathan Chambers f5fe12c2f1 Merge pull request #251 from TalAloni/mono-2-10
Mono-2-10: VS2010 Compilation fix
2012-04-05 11:45:56 -07:00
Rolf Bjarne Kvinge 6a9a0cdf4a Ensure we get the correct StartWWAN overload. 2012-04-04 16:03:03 +02:00
Sebastien Pouliot 58daced21c Ensure a default key is available, if none is set, when using ARC4Managed 2012-04-03 10:00:10 -04:00
Sebastien Pouliot 331ead550d Apply SHA256 optimizations (single buffer allocation, inlining and better locality) to SHA224 so their performance match 2012-04-03 09:59:56 -04:00
Rolf Bjarne Kvinge a4c85814d8 Fix mono_path_canonicalize to not canonicalize the root directory to an empty string 2012-03-31 00:13:53 +02:00
Rolf Bjarne Kvinge e5428b29c0 Fix g_strreverse to handle empty strings 2012-03-30 13:43:28 +02:00
Rolf Bjarne Kvinge 13f5dc80f4 Log profiler: don't ignore return values from select, in particular not EINTR. 2012-03-29 19:14:48 +02:00
Rolf Bjarne Kvinge 9d103ff7c1 Add most of the Debug class (with related tracing types) to the mobile build. Fixes #3754. 2012-03-29 17:53:23 +02:00
Atsushi Eno 0f4561c272 (monodroid) Do not crash with LogcatTextWriter.Write(null). 2012-03-29 18:22:16 +09:00
Zoltan Varga 42da58a46e Fix the 2.10 build. 2012-03-29 09:04:17 +02:00
Zoltan Varga 4f546f89c4 Register vtables in runtime data structures after they have been completely initialized, since other threads can access them without locking. Fixes #3676. 2012-03-29 08:52:30 +02:00
Gonzalo Paniagua Javier 946353acc4 Welcome to the future 2012-03-28 22:51:35 -04:00
Sebastien Pouliot 6c1b6a9c69 Adjust unit tests wrt Gonzalo fix for NTLM - commit 214741630f 2012-03-28 13:22:40 -04:00
Sebastien Pouliot 2c869a025b Fix tests where a DSA CA certificate expired at the end of 2011 2012-03-28 13:21:58 -04:00
Rodrigo Kumpera bb664acf16 Use g_error instead of fpritnf so target like android see it. 2012-03-27 15:51:26 -03:00
Sebastien Pouliot 90fd4771cb Fix bug #4101 when using a deep hierarchy of directories in isolated storage.
Conflicts:

	mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs
2012-03-27 08:40:14 -04:00
Sebastien Pouliot d2d85aa4b0 Move RijndaelTransform code from RijndaelManaged.cs to RijndaelManagedTransform.cs to ease code reuse 2012-03-26 15:05:44 -04:00
Gonzalo Paniagua Javier 890722aa51 Merge pull request #256 from flow3r/patch-1
Binding socket with specified IP address if possible.
2012-03-24 12:17:07 -04:00
Rodrigo Kumpera 9885438b4b It turns out the bridge code needs to distinguish bridges on a per-object basis.
* sgen-bridge.c: In additin to the per-class bridge check, restore the
	per object one. The per-class one still a major win as it allows clients
	to do the more expensive checks upfront.
2012-03-23 16:58:36 -03:00
Rodrigo Kumpera 913882f280 Improve Missing Field error message. 2012-03-23 16:02:35 -03:00
Sebastien Pouliot 28f09f89a2 Fix FindBySubjectName to find anything in the subject name (except the oid acronyms). Fix bug #3897 2012-03-23 11:52:20 -04:00
Sebastien Pouliot 88cb0bab07 Ignore two more tests with [Category(NotWorking)] for NET_2_1/nunitlite 2012-03-23 10:14:17 -04:00
Sebastien Pouliot 8f1b2d3cde Fix ArgumentOutOfRangeException in PKCS1MaskGenerationMethod + unit tests. Fix bug #3777 2012-03-23 09:56:43 -04:00
Sebastien Pouliot 6e7c741e82 Match IDisposable with 4.0 changes in System.Security.Cryptography
* AsymmetricAlgorithm.cs:
* CryptoAPITransform.cs:
* DeriveBytes.cs:
* FromBase64Transform.cs:
* HashAlgorithm.cs:
* PasswordDeriveBytes.cs:
* Rfc2898DeriveBytes.cs:
* RijndaelManagedTransform.cs:
* SymmetricAlgorithm.cs:
* ToBase64Transform.cs:
	Adjust changes to IDisposable wrt 4.0

Conflicts:

	mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs
2012-03-22 20:56:28 -04:00
Sebastien Pouliot 2a0885838d Fix finalizer where a NRE can occur if the ctor fails to complete
Conflicts:

	mcs/class/corlib/System.Security.Cryptography/PasswordDeriveBytes.cs
2012-03-22 20:40:58 -04:00
Sebastien Pouliot d3fdf77682 Fix old test cases so it's easier to reuse for the mobile profile / nunitlite
Conflicts:

	mcs/class/corlib/Test/System.Security.Cryptography/DSACryptoServiceProviderTest.cs
2012-03-22 20:39:57 -04:00
Gonzalo Paniagua Javier 6b3c55549a Trigger the UploadProgressChanged event wen uploading a file.
Fixes bug #3100.
2012-03-22 00:25:18 -04:00
Rodrigo Kumpera fa176583f4 Improve io-layer error logging. 2012-03-20 13:47:00 -03:00
TalAloni b4c9977966 x64 compilation fix: by default, compile only the necessary projects (and avoid trying to compile additional projects that can't be successfully built ATM) 2012-03-20 13:00:10 +02:00
TalAloni dc4fd8cc77 Fix compilation: Add target platform preprocessor-definition to x64 Release 2012-03-20 12:53:36 +02:00
TalAloni 515def4985 Fix VS2010 compilation 2012-03-20 12:50:03 +02:00
TalAloni 16fc03984c Add target platform preprocessor-definition to x64 Release 2012-03-20 12:43:43 +02:00
TalAloni 1e91630811 Disable treating compiler warnings as errors 2012-03-20 12:40:25 +02:00
Rodrigo Kumpera 1b88db4c3f Merge pull request #165 from TalAloni/mono-2-10
Mono-2-10 Bugfixes
2012-03-19 16:10:05 -07:00
Miguel de Icaza cae83d6486 Update email address for licensing Mono in LICENSE file 2012-03-19 15:46:34 -04:00
Miguel de Icaza 2a371aa90a (write_serial): fix the variable holding the return value of write(2) which is a ssize_t, not a size_t. This fixed a problem where we would not exit the loop, as negative values would never be set, fix from GitHub.com's konrad-kruczynski 2012-03-19 11:39:02 -04:00
Gonzalo Paniagua Javier 6c037f1efd Redirect right after NTLM authentication works now
Fixes bug #3894.
2012-03-18 17:45:37 -04:00
Gonzalo Paniagua Javier 0d604357b5 Last commit was not entirely correct... 2012-03-16 00:32:03 -04:00
Zoltan Varga dea6c80669 Fix the previous change again. 2012-03-15 22:25:01 +01:00
Zoltan Varga 24590e07e3 Fix build on platforms without MONO_ARCH_HAVE_TLS_GET defined. 2012-03-15 22:24:44 +01:00
Gonzalo Paniagua Javier fe7aede2b9 Merge pull request #241 from viniciusjarina/fix2843
Fix bug 2843 (Deserialization Nullable user-type) + Unit tests
2012-03-14 18:22:17 -04:00
Gonzalo Paniagua Javier bad8aa46b6 If we read an entire chunk, return it in the next read operation
When waiting for the chunk trailer, we can return the data read
	so far.
2012-03-13 12:00:16 -04:00
Rolf Bjarne Kvinge 982ba3238d Include System.Collections.Generics.SortedSet in the mobile profile. Fixes #3827. 2012-03-13 12:38:04 +01:00
Rolf Bjarne Kvinge 537fdd06c2 Mono.Data.Sqlite: Add support for TIMESTAMP / UnixEpoch column. Fixes #638. 2012-03-13 12:38:03 +01:00
Rolf Bjarne Kvinge 765a04a438 Mono.Data.Sqlite: Fix type name comparison to compare the entire name, not just a substring. 2012-03-13 12:38:03 +01:00
Rodrigo Kumpera 120ef23972 Properly handle ASLR randomization of the main thread stack on darwin. 2012-03-12 19:51:05 -03:00
Rodrigo Kumpera e1a19266d4 Merge pull request #210 from symform/mono-2-10
Fixed a race condition in WebConnection that was causing it to throw NullReferenceException on Close/Dispose
2012-03-12 08:04:44 -07:00
NN 4e5e52a298 Make code behaving like .Net.
The original discussion is here:
https://bugzilla.novell.com/show_bug.cgi?id=689533
And this is the proposed patch:
https://bugzillafiles.novell.org/attachment.cgi?id=426501
2012-03-11 21:40:33 +01:00
Zoltan Varga d9d2965c29 Fix the previous patch. 2012-03-11 18:30:41 +01:00
Zoltan Varga e92c10fa70 Move the thread attach code for native-to-managed wrappers to method_to_ir (), instead of emitting it by hand for each architecture. Also make it save/restore the current domain. Fixes #3623. 2012-03-11 18:30:18 +01:00
Rodrigo Kumpera fb8e168214 Add new mono byte code for memory barriers 2012-03-11 18:21:31 +01:00
Marek Safar 3adb9e170d Fix sbyte/short parse of hexadecimal values. Fixes #981 2012-03-10 12:15:29 -05:00
Sebastien Pouliot daafc06b54 Tests from bug #3677 (works on master, fails in MonoTouch) 2012-03-10 11:21:08 -05:00
Zoltan Varga 721d15749a Add basic quoting support to MONO_ENV_OPTIONS. Fixes #792. 2012-03-10 16:44:54 +01:00
Gonzalo Paniagua Javier f1ffa65963 Add another default format
Patch by Tom Hindle.
	Fixes bug #3392.
2012-03-09 23:45:31 -05:00
Zoltan Varga 520065c164 Fix LLVM type mapping so classes and generic instances are mapped to the same type. 2012-03-09 00:09:13 +01:00
Rodrigo Kumpera fae1eca260 Under full-aot process the types of method arguments that are called from other methods. Fixes #3735.
* aot-compiler.c: If we call a sharable generic method that takes a parameter that
	isn't shareable we must include that type or we risk failing at runtime.

	Fixes #3735.
2012-03-08 19:43:08 -03:00
Gonzalo Paniagua Javier e040f44cb1 Initialize struct 2012-03-08 14:36:48 -05:00
Gonzalo Paniagua Javier 30399887c6 Just in case... 2012-03-08 14:36:47 -05:00
Gonzalo Paniagua Javier 1e3c3b8e01 Remove warning 2012-03-08 14:36:47 -05:00
Gonzalo Paniagua Javier 5e64449222 ReadTimeout and WriteTimeout
They were returning a 0 timeout when it should be Infinite.
2012-03-08 14:36:47 -05:00
Gonzalo Paniagua Javier bb82257c88 Fix multiple async accepts
Running multiple BeginAccepts or AcceptAsync at the same time on the
	same socket requires serialization.
	Fixes bug #3805.
2012-03-08 14:36:47 -05:00
Atsushi Eno 5843173415 Fix XLinq decimal value formatting to become invariant. Fixed bug #3634. 2012-03-08 09:21:38 -05:00
Miguel de Icaza 1653431720 Add iOS FileProtection attributes to the Connection String 2012-03-08 09:21:26 -05:00
Gonzalo Paniagua Javier b1994d8062 Fix rethrow of the interrupted exception
Fixes bug #2483.
2012-03-06 20:58:09 -05:00
Jonathan Pryor 3d2dd9849a [MonoPosixHelper] Allow MmapFlags.MAP_ANON use on OS X.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=3419

The problem is that OS X defines MAP_ANON but not MAP_ANONYMOUS, AND
MAP_ANON and MAP_ANONYMOUS have the same value. Furthermore,
create-native-map doesn't have any special support for constants with
the same value, so it emits the validation independently.

The result is that the following fails on OS X:

	$ csharp -r:Mono.Posix.dll
	csharp> int r;
	csharp> using Mono.Unix.Native;
	csharp> NativeConvert.TryFromMmapFlags(MmapFlags.MAP_ANONYMOUS, out r);
	false
	csharp> r;

The (hackish) fix is to provide MAP_ANONYMOUS on OS X, thus allowing
the existing validation logic to work as expected.
2012-03-06 11:39:40 -05:00
Jeremie Laval fb903e8283 Correct CancellationTokenSource locking. Fix #3756.
Conflicts:

	mcs/class/corlib/System.Threading/CancellationTokenSource.cs
2012-03-06 10:23:43 +00:00
Miguel de Icaza ebc7339be1 Revert the change to syslog message formatting, as JonP's code already does escaping in managed code, see: https://github.com/mono/mono/commit/f49164bf7658855390b2c19574b170f8728a99ff#commitcomment-1044747 2012-03-05 16:44:10 -05:00
Miguel de Icaza 3f3fb33fab Fix the previous patch 2012-03-05 16:42:56 -05:00
Miguel de Icaza 68af170e2e [registry] fix for #3632 2012-03-05 16:42:56 -05:00
Eberhard Beilharz 4c6c0e20d4 Xamarin-2938: Fix Screen.FromControl
We have to convert the location of the control to screen coordinates
so that we end up with the correct screen in a multi-monitor setup.
This patch fixes Screen.FromControl, Screen.FromHandle, and
Screen.GetWorkingArea.

Change-Id: I6c4fd65833d012e832d97d610c79abc792e57adf
2012-03-05 16:42:55 -05:00
Miguel de Icaza c084f978ff Backport fix for 2893 2012-03-05 16:42:55 -05:00
Gonzalo Paniagua Javier a4a87c8cab [HttpWebRequest] Support 4.0 Date property. 2012-03-04 23:07:10 -05:00
Gonzalo Paniagua Javier 0d1abfb610 2 fixes for NTLM authentication
-Set the correct flags when the domain is not set. This fixes
	authentication with an empty or null domain name.
	-Allow domain\user and domain/user as the user name and set domain and
	user accordingly.
2012-03-03 16:46:43 -05:00
Rodrigo Kumpera 02a2af110f Fix a mach race condition between a thread triggering a NRE and another aborting the former. 2012-03-02 15:09:01 -03:00
Jeremie Laval b33e723d66 Fix #3639
The search code was taking care of hash collision for different objects inside the collection but it didn't handle properly the case where the supplied search key has the same hash than a different object inside the collection.
2012-03-01 13:06:11 +01:00
Zoltan Varga a267f24095 Wrap exceptions thrown by property getters into TargetInvocationExceptions even when using the optimized getter delegates in PropertyInfo.GetValue (). Fixes #3690. 2012-02-29 23:52:54 +01:00
Marek Safar 2f94e74f3d Merge pull request #230 from linquize/branch_3c098eb0
Include all TDS collation mappings generated from CultureInfo
2012-02-29 00:28:49 -08:00
Gonzalo Paniagua Javier c8517d7fa5 Add MinimumLength when formatting 2012-02-29 01:39:28 -05:00
Jonathan Pryor e8c7245f02 [System.Data.Services.Client] Compile in string resources.
System.Data.Services.Client uses System.Resources for localization
purposes (even though only one language is provided...). Consequently,
to get _useful_ strings (read: error messages) out of
System.Data.Services.Client, System.Resources needs to be able to find
them, such that the following works:

	$ csharp -r:System.Data.Services.Client;
	Mono C# Shell, type "help;" for help

	Enter statements below.
	csharp> using System.Resources;
	csharp> using System.Data.Services.Client;
	csharp> var a = typeof(SendingRequestEventArgs).Assembly;
	csharp> var r = new ResourceManager("System.Data.Services.Client", a);
	csharp> r.GetString("AtomMaterializer_PropertyNotExpectedEntry");

If `r.GetString()` fails, it'll throw an exception instead of
returning a useful string, which is bad. Unfortunately, it failed.

To fix this, we use `resgen` to compile
Client/System.Data.Services.Client.txt into a .resources file and
compile the .resources file into the assembly with `gmcs -resource:`,
which allows the above `csharp` fragment to work w/o throwing (and
thus allows OData users to get useful, meaningful error messages).
2012-02-28 20:25:51 -05:00
Zoltan Varga aeddfd7be1 Increase generic trampoline sizes on amd64 to avoid an assertion introduced by 948f06a03f. 2012-02-28 18:54:31 +01:00
Linquize e8c16f5c2a Add all collations generated from CultureInfo.GetCultures(CultureTypes.AllCultures) 2012-02-28 23:38:24 +08:00
Zoltan Varga 3c098eb04f Add stack alignment checking to the amd64 trampolines and align the stack properly in the handler block trampoline. Fixes #2642. 2012-02-27 17:23:50 +01:00
Gonzalo Paniagua Javier 74ec9d9f0e DELETE can have a request stream
Fixes bug #3276.
2012-02-27 10:54:38 -05:00
Peter Johanson 68725d92b2 Fix Bug #658, allowing uri templates with no text preceding a wildcard. 2012-02-19 12:47:23 -05:00
Sebastien Pouliot 71625b8c65 merge 2012-02-17 13:27:21 -05:00
Sebastien Pouliot c4f072207f Add warning and unit tests about RegionInfo fields ordering. Fix for #3476 2012-02-16 20:46:51 -05:00
Sebastien Pouliot 0b709ededd Ensure match between native/managed fields representation so we retrieve the right values 2012-02-15 16:55:52 -05:00
Atsushi Eno fd5b65341b It seems I rather needed to edit Makefile, not Mono.CSharp.dll.sources. 2012-02-15 17:41:26 +09:00
Atsushi Eno dd52f53e14 Add Microsoft.CSharp.dll to monodroid build. 2012-02-15 14:51:43 +09:00
Atsushi Eno 33d298c365 add dlr part to monodroid build. 2012-02-14 12:47:20 +09:00
Gonzalo Paniagua Javier bb45dcf362 Fix race condition
Our synchronized Hashtable "set" method is not really locking...
2012-02-13 11:00:01 -05:00
Sebastien Pouliot 277d9a5498 Just like Flush catch more than IOException on Write overloads, e.g. UnauthorizedAccessException can occur too (ref: assistly #7431) 2012-02-13 10:48:56 -05:00
Jeffrey Stedfast a0888a74e9 Fixed System.Text.Encoding.GetEncoding (string name) to work for UTF-16LE. 2012-02-11 21:02:17 -05:00
Jérémie Laval 26d2e2b38e Fix AggregateException.GetBaseException behavior 2012-02-11 22:15:25 +01:00
Gonzalo Paniagua Javier f6c1bdaf1c Chunked read error reporting improvement
Reset the chunked read variables before reading the chunk size and
	provide a better error in case of a protocol problem.
2012-02-10 02:16:39 -05:00
Rolf Bjarne Kvinge 70a5c958bf Add an explicit ctor reference to a ctor used by reflection for MonoTouch. 2012-02-08 01:01:56 +01:00
Martin 98756a4400 Commit 6a9937d216 is not correct. WebClient.Proxy should return WebRequest.DefaultProxy if WebClient.Proxy has NOT been set before. 2012-02-05 11:57:29 -05:00
Martin f2f52e643a Fixes some naming conventions. 2012-02-05 11:57:14 -05:00
Martin 1e233bb9c1 Behaviour of using proxies in WebClient is different compared to .NET
(1) Consider the following example code:

	WebClient client=new WebClient();

If you examine the client.Proxy property when running this code in .NET you will see, that the Proxy property reflects the current system proxy settings. However, Mono initializes the Proxy property in OpenRead()

(2) Mono's implementation of the WebClient.Proxy property described in (1) has a disadvantage. To understand that, consider der following example code:

	WebClient client=new WebClient();

	client.Proxy=null;

Explicitely setting the Proxy property to null ensures that .NET does not use any proxies when calling further methods of the client object. My patch provides exactly this functionality for Mono's WebClient when using the http or ftp protocol. This functionality can be very interesting for a lot of scenarios.
2012-02-05 11:56:35 -05:00
Sebastien Pouliot c41a25b8eb Add WebClient.Proxy unit test 2012-02-05 11:56:17 -05:00
Jérémie Laval 00f3d0cc6e Rework Parallel.Invoke and add tests 2012-02-05 16:27:16 +01:00
Zoltan Varga 753b1e7e31 Fix Parallel.Invoke () with only one action. Fixes #3225. 2012-02-04 23:21:03 +01:00
Michal Srb 41b13429a4 Avoid NullReferenceException in Mono.Unix.UnixDriveInfo.GetDrives () when fs_file is null. Fixes #3219. 2012-02-04 15:09:36 +01:00
Rolf Bjarne Kvinge 16fca92c58 System.ServiceModel: Make FaultContractInfos available (and therefore deserialized correctly) in mobile profiles. Fixes #1437 and 2859. 2012-02-04 03:04:36 +01:00
Jérémie Laval 27d1f326ef Fix Task AttachedToParent behavior. Fix bug #2777 part1.
The problem was two folds. First, a parent task wasn't correctly waiting on the inner task continuations that were setup. Second, the way the Task parent field was re-used with a continuation collided with the parenting behavior of AttachedToParent (if the continuation was also created that way), the fix is to have two Task fields to differentiate between the two cases.
2012-02-03 15:42:26 +01:00
Jérémie Laval c285077b5e Fix RunSynchronously behavior with children Task. Fix bug #2777 part 2. 2012-02-03 15:40:01 +01:00
Rodrigo Kumpera 1dc4b77819 Use the bridge callback to speedup bridge object detection. 2012-02-02 18:32:18 -02:00
Rodrigo Kumpera ccfe8bdfdb The bridge callback now is per-class and not per-object. Introduce versioning to reduce the chance of breakage. 2012-02-02 18:30:04 -02:00
Rodrigo Kumpera 78f855037a Make more bits in the vtable available to the GC.
* class-internals.h (MonoVTable): There's a spare nimble after
	those one bits flag fields. We reserve those leftovers to our
	GCs to use.
2012-02-02 18:07:53 -02:00
Mark Probst feb8a124aa [sgen] Option for an allowance limit.
The metric for deciding when to trigger a major collection assumes
that there's unlimited memory, so it does, especially since it's
probably buggy and certainly not very smart, sometimes allow too much
allocation to happen.  This new option is a way to tell SGen where to
draw the line.  Note that memory will still be allocated, it's just
that once the limit is overstepped, major collections happen more
frequently to keep memory usage down.
2012-02-01 20:00:02 -02:00
Sebastien Pouliot 2af9b70055 Floating point numbers needs to be encoded using the invariant culture. Fix bug #3137 2012-01-30 18:44:41 -05:00
Rolf Bjarne Kvinge f178794cdd AOT: add support for calling pinvoke methods directly, instead of going through dlsym. 2012-01-30 14:46:54 +01:00
Rodrigo Kumpera c903915555 Guard against lazy initialization of idepth. 2012-01-29 13:02:04 -02:00
Rodrigo Kumpera e9493ca335 Last round of fullaot fixes for lazy init'ng supertypes. 2012-01-29 13:02:04 -02:00
Zoltan Varga ea60aab12f Disable some TLS fallback code on ppc as it does not work. Fixes #2717. 2012-01-28 18:00:28 +01:00
Zoltan Varga 096fce594c Fix infinite loop in TestDriver.cs when using the -v option. 2012-01-27 15:54:58 +01:00
Rodrigo Kumpera 52af8b7d5f Fix aot miscompilation due to the lazy supertypes initialization. 2012-01-26 17:27:35 -02:00
Zoltan Varga 770b7b9c4c Fix support for synchronized methods + ldftn. Fixes #3088. 2012-01-26 20:14:24 +01:00
Rodrigo Kumpera 3f97001899 Fix consumers of supertypes information to account for lazyness.
* class-internals.h (mono_class_has_parent): Convert this macro into
	an inline function that guards against non initialized supertypes info.

	Fix random breakage all over the place.
2012-01-25 14:14:03 -02:00
Zoltan Varga 3e7cd1f126 Fix the previous commit. 2012-01-24 06:52:17 +01:00
Zoltan Varga c1330622d6 Add a nunit-console4 script. Fixes #2156. 2012-01-24 06:49:38 +01:00
Zoltan Varga ea14d7909a Allow assemblies without AOT images in full-aot mode if they don't have any methods. 2012-01-24 03:06:24 +01:00
Rodrigo Kumpera 8a724d071c A regression test for bxc #795. 2012-01-23 23:44:26 -02:00
Rodrigo Kumpera f36e8fb25b Be lazy'er when setting up supertype information. Fixes bxc #795
* class.c (mono_class_setup_parent): We can't setup supertypes here
	since we might be initializing our parent as well, which will cause
	the current type to have broken values.

	Since we're lazier, we need to check for it in more places.

	Fixes bxc #795.
2012-01-23 23:34:35 -02:00
Rodrigo Kumpera 962f399b66 Lazily nit mono_class_setup_supertypes correctly. 2012-01-23 23:11:58 -02:00
Zoltan Varga eb37e977e3 Fix the setting of sp in mono_monoctx_to_sigctx () on arm. Fixes #2775. 2012-01-22 21:48:37 +01:00
Zoltan Varga 80bba25a4c Fix the build. 2012-01-22 12:01:10 +01:00
Zoltan Varga e4cf743462 Implement GetFolderPath(Environment.SpecialFolder.UserProfile) on unix. Fixes #2873. 2012-01-22 10:38:21 +01:00
Gonzalo Paniagua Javier 650bb6d628 Avoid warnigs.
This appears to fix #1885 on osx.
2012-01-21 03:49:54 +01:00
Zoltan Varga 66d1911dd9 Fix a crash if a BeginInvoke is not found by the AOT compiler. Fixes #2996. 2012-01-21 01:09:48 +01:00
Zoltan Varga c22a66450a Fix an out-of-bounds write in the llvm backend initialization code. 2012-01-20 18:05:31 +01:00
Kevin Houlihan 597bbeb80e Change to ensure that correct BufferHeight and BufferWidth are returned after terminal resize.
Console.BufferHeight and Console.BufferWidth were returning incorrect values after a terminal window resize on Linux (bug 874). I added CheckWindowDimensions calls to the getters of these properties to ensure that the values are up to date.
2012-01-20 06:37:12 +01:00
Zoltan Varga bded18f3d3 Fix Type.GetType () when an assembly resolver is used without a type resolver. Fixes #644. 2012-01-20 06:33:08 +01:00
Jonathan Pryor 51e38b504b [System.ServiceModel] Don't try to deserialize void messages.
Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=1164

The breakage reported in #1164 was caused by commit 106fdeb4, which
fixed bxc206. The problem is that in fixing bxc206, response messages
of a type having a MessageContractAttribute custom attribute were
changed to have a `void` return type, according to the
MessageDescription's Body.ReturnValue.Type property.

This fix is correct, in that it's what .NET does, but it broke XML
deserialization which expected the "actual" return type to exist, not
`void`.

Case in point: the added IService1.EndJSMGetDatabases() method will
have a MessageDescription with a Body.ReturnValue.Type=typeof(void).
The problem is that deserializing this message will fail:

	System.Runtime.Serialization.SerializationException: Deserializing
	type 'System.Void'. Expecting state 'EndElement'. Encountered state
	'Text' with name '' with namespace ''.

Obviously this is not good. ;-)

The fix is simple: don't use the MessageDescription's ReturnValue if
it's `typeof(void)`.

There are two added wrinkles:

 1. Writing a test case for the above.

 2. The test case broke with another error: a NRE within
    BaseMessagesFormatter.MessageObjectToParts(). This is because
    when ContractDescriptionGenerator.GetMessage() sets the
    ReturnValue for a response message, it doesn't set
    MessagePartDescription.MemberInfo.
    BaseMessagesFormatter.MessageObjectToParts(), meanwhile, was
    checking the ReturnValue's MemberInfo...which was null.

    Add a null check here so that the actual bug can be tested.
2012-01-20 00:20:13 -05:00
Jonathan Pryor e35c4d694b [System.ServiceModel] Speed up Bug652331_2Test test execution.
For reasons I currently can't explain, the Service1Client test type
appears to support having only one async operation "in flight" at a
time. As a result of this, calling multiple Async methods on the
Service1Client instance, as was done previously, would result in not
all of the event handlers being invoked, and the test timing out
after 60s instead of exiting quickly because all event handlers had
been raised.

I don't understand enough of WCF & this code to say why Service1Client
can have only one async operation in progress at once, but making this
change so that each async operation operates on a separate instance
speeds up the Bug652331_2Test execution from 60s to 5s.
2012-01-20 00:20:05 -05:00
Zoltan Varga 19e67c0dc6 Avoid passing a Module to the GetSigHelper methods (), which can happen if an ILBuilder is used from a dynamic method. Fixes #1900. 2012-01-20 05:57:09 +01:00
Zoltan Varga 37db673795 Fix -O=shared support in mono_delegate_ctor (). 2012-01-20 02:35:49 +01:00
Gonzalo Paniagua Javier 363d32c7dc UploadFile+PUT does not wrap the file in a multipart envelope
When using PUT as the method to upload a file using WebClient, the file
	is uploaded as-is, without the multipart boundaries, headers,...
	Fixes bug #2970.
2012-01-19 12:34:52 -05:00
Miguel de Icaza 33ce03c03b Fix my last commit 2012-01-19 00:09:54 -05:00
Miguel de Icaza 58ab8f2f10 Prevent race conditions for this cached variable, by using a temporary variable, fixes #2952 2012-01-18 11:19:25 -05:00
Rolf Bjarne Kvinge f6252f4659 DateTime.FromFileTimeUtc should return a DateTime with DateTimeKind.Utc. Fixes #2936. 2012-01-18 00:45:34 +01:00
Rolf Bjarne Kvinge bd747ae200 System.Data: DataTable.ImportRow should be able to handle columns with different types. Fixes #2926. 2012-01-17 22:16:18 +01:00
Rolf Bjarne Kvinge 5092bb1023 threadpool: Disable the gc for threadpool threads while waiting for work. Fixes #2619 2012-01-17 17:22:39 +01:00
Rolf Bjarne Kvinge b371946d24 sgen: Add support for disabling the gc for a thread 2012-01-17 17:22:35 +01:00
Zoltan Varga 719aac656e Avoid passing methodspec tokens to mono_aot_get_method_from_token (). 2012-01-16 23:16:57 +01:00
Zoltan Varga 21c1183934 Fix delegate invokes in shared mode. 2012-01-16 23:16:11 +01:00
Miguel de Icaza 9bca0865a2 Implements TimeZoneInfo.Local for Windows
Fixes #2791, contributed by Jonathan Shore <[email protected]>
2012-01-15 15:10:55 -05:00
Tristan Caulfield 019ede8079 * fix tasklets crash on x86 2012-01-14 19:04:51 +01:00
Zoltan Varga b6c6e42ba3 Respect the SizeConst parameter to UnmanagedType.ByValTStr. Fixes #2567. 2012-01-14 18:58:46 +01:00
Miguel de Icaza e6b0567e92 Apply fix for 2839 from Michael Mudge 2012-01-13 18:59:10 -05:00
Miguel de Icaza 6ffbd41bf3 Remove the limit on the buffer size, the spec actually calls for supporting messages of up to 0xffffffff bytes in size 2012-01-13 16:49:48 -05:00
Rolf Bjarne Kvinge 3610139238 sgen: report LOS objects pinned by interior pointers as roots to the profiler 2012-01-13 14:54:11 +01:00
Sebastien Pouliot 50268828dd Bring TaskExtensions to the mobile profile. Fix bug #2769 2012-01-12 16:35:57 -05:00
Sebastien Pouliot f49c83779d Do not build a managed X509Chain in MonoTouch and simply ask iOS about the chain. Other SSL related checks about the leaf certificate are still required/done. Avoid many internal exceptions since Mono's machine store does not exists inside iOS devices (note: already part of MonoTouch since 4.3) 2012-01-12 15:48:11 -05:00
Gonzalo Paniagua Javier d7465a722f Heavy IO load might cause obj to be NULL
Fixes novell bug #704264.
2012-01-12 12:05:52 -05:00
Zoltan Varga d3a95fa616 Implement mono_gc_set_stack_end () for Boehm/null GC to remove the #ifdef HAVE_SGEN_GC dependency from driver.c. 2012-01-12 00:09:04 +01:00
Rolf Bjarne Kvinge 575a460fc3 Set the end of the stack for the main thread
This helps the GC by minimizing the stack area to scan, while at the
same time reducing the chance of false positives when scanning the stack
for managed objects since we know no managed object can live on the
stack above the main function. This improves memory usage for the test
case in #2619 quite much (but that particular bug isn't fixed by this).
2012-01-12 00:08:59 +01:00
Miguel de Icaza ce3fc24bc2 Fix x #2191
From Federico Di Gregorio <[email protected]>, allow leading sign
2012-01-11 16:08:55 -05:00
Zoltan Varga ecd2f2d1b8 Disable shared mode for non-corlib and inflated methods since appdomain unloads can invalidate them. 2012-01-11 21:40:32 +01:00
Rodrigo Kumpera 8e8b2f3392 Fix enter/exit critical region visibility. 2012-01-11 13:03:39 -02:00
Rodrigo Kumpera 7c8bf76693 Aleviate fencing on critical regions and allocation.
* sgen-gc.c: Critical regions only requires proper visibility
	on the enter side. On the exit side all we need to make sure is
	ordering.

	* sgen-gc.c: Allocation don't need to have all stores imediatelly
	visible, only properly ordered when it happens.
2012-01-11 13:03:39 -02:00
Rodrigo Kumpera d4956e2f14 Storing the vtable pointer on the object header requires release semantics 2012-01-11 13:03:38 -02:00
Rodrigo Kumpera acc499e32d Replace an explicit memory barrier with mono_atomic_store_release. Thanks from x86-land. 2012-01-11 13:03:38 -02:00
Rodrigo Kumpera ce8a66c3f3 Complete acquire/release ops. Make acquire/release have ECMA sematics. 2012-01-11 13:03:37 -02:00
Rodrigo Kumpera c13b7ea6c1 Fix release semantics to make sure it flushes the store buffer on ia32/amd64.
* mono-memory-model.h: Release semantics must cause the store buffer
	to be flushed on x86. Add variants of atomic_store that only provides
	sequencing with previous stores.
2012-01-11 13:03:36 -02:00
Rodrigo Kumpera a57bf2d262 Extract the code to emit a memory barrier. Add a memory_barrier_kind field to MonoInst::backend. 2012-01-11 13:03:35 -02:00
Rodrigo Kumpera 8d8b6c57e2 Add the basics for memory model aware fencing.
* mono-memory-model.h: New header that exports the basics
	to will enable us to apply fencing only on archs that need it.
2012-01-11 13:03:35 -02:00
Zoltan Varga 28a571c022 Don't compile dynamic methods in shared mode. 2012-01-10 22:54:26 +01:00
Gonzalo Paniagua Javier 81061e629a Use the right socket for the data stream
This fixes bug active data connections.
	Fixes xamarin bug #1294.
2012-01-10 16:35:12 -05:00
Rodrigo Kumpera 6acec36426 Fix the iteraction between bridge and major evacuation on a minor overflow major collection.
* sgen-gc.c: The bridge code is split into 3 steps, one done when we collect finalizable objects,
	one done before we restart the world and the last right after.

	The first step can be executed twice if an overflow major collection happens. We handled this
	situation by avoiding duplicates in the registration code.

	This works fine except if a registered bridge object is moved by the second collection, which can
	happen when defragmentation kicks in.

	Instead of fixing those pointers, which is quite tricky, we move hash building to happen in the second
	step and discard all elements on the registered bridge array before each collection.  Since all bridges
	collected by the first collection will be collected again on the second, we can do it.
2012-01-10 19:17:25 -02:00
Zoltan Varga fd984e3fe6 Fix an IndexOutOfBounds exception in the sdb packet writer. 2012-01-10 22:16:39 +01:00
Gonzalo Paniagua Javier 5b344f2b89 Don't send the buffered request until GetResponse is called
Allows changing some header values after writing the request until the
	call to (Begin)GetResponse()
2012-01-10 15:59:57 -05:00
Zoltan Varga 66c3f85e2c Add memory barriers to interlocked operations on ARM, since the runtime code depends on it. 2012-01-10 17:43:19 +01:00
Zoltan Varga 997cff0cd7 Allow enum->basetype argument conversion in CreateDelegate(). Fixes #794. 2012-01-07 00:41:37 +01:00
Zoltan Varga b487294279 Call mono_create_jit_trampoline_in_domain () in mono_resolve_patch_target () so shared methods don't end up calling trampolines in another domain. 2012-01-06 22:36:01 +01:00
Zoltan Varga 2f985da336 Fix stack alignment calculation in mono_arch_setup_async_callback () on amd64. 2012-01-06 03:59:47 +01:00
Rodrigo Kumpera a987217a4e Avoid doing IL lookup in the native crash handler. 2012-01-05 21:32:46 -02:00
Rodrigo Kumpera eb601dd083 Add regression test for bxc #1147. 2012-01-05 09:50:54 -02:00
Rodrigo Kumpera 0a7a137703 Properly initialize a rgctx template. Fixes bxc #1147.
* mini-generic-sharing.c (mono_class_get_runtime_generic_context_template):
	When initializing a new rgctx template, we fill it with its parent
	slots.

	When the parent is a non generic class extending a generic class,
	has multiple templates and, finally, the first template has more
	slots that the rest, we would fill more entries than we should
	and later cause an assertion when trying to use those extra slots.

	To fix that we handle it just like a generic parent class and
	count the number of slots each template has.

Fixes bxc #1147.
2012-01-05 09:50:53 -02:00
Jonathan Pryor 84b4051951 [System.ServiceModel.Web] Fix JSON array deserialization for NET_2_1
Fixes DataContractJsonSerializerTest.DeserializeArray() in the NET_2_1
profile, which is also the MonoTouch and Mono for Android base.

The problem is JsonSerializationReader.DeserializeGenericCollection:

	Type listType = collectionType.IsArray ? typeof (List<>).MakeGenericType (elementType) : null;
	var c = (IEnumerable) TypeMap.CreateInstance (listType ??  collectionType);
	// `c` is a List<T>
	...
	ret = collectionType.IsArray ? ((ArrayList) c).ToArray (elementType) : c;
	// yet we cast `c` to an ArrayList?!

This dies with an InvalidCastException on Mono for Android/MonoTouch,
as List<elementType> is not an ArrayList. The solution is to further
separate out the code paths, ensuring that NET_2_1 avoides the cast.
2012-01-04 22:33:35 -05:00
Jonathan Pryor 69eb3f4713 [System.ServiceModel.Web] Support null as value for DateTime? field.
Fixes assistly #5863.
2012-01-04 16:35:42 -05:00
Sebastien Pouliot 2e069b5e19 backport CryptoConfig changes/fixes from master 2012-01-04 11:30:50 -05:00
Rodrigo Kumpera 79a17fef30 Checking if a type is a reference must be gsharing aware.
*  mini-generic-sharing.c: Add mini_type_is_reference
	that returns true for VAR and MVAR if compiling under
	gsharing.

	* method-to-ir.c: Replace usage of mono_type_is_reference
	with mini_type_is_reference.

	* mini-gc.c: Ditto.

	* mini.c: Ditto.

	With the old behavior, the JIT could interpret a (M)VAR
	variable and not been a reference type. This is an issue
	for sgen as we could forgot to emit some write barriers
	or generate the proper stack map.
2012-01-04 05:45:07 -02:00
Jonathan Pryor a7c3740f5f Merge commit a04edc9d from mono/master
Clone input collection for ObservableCollection<T>. Fixes #2169

The commit has been modified from a04edc9d to remove the added unit
tests, as these cause merge conflicts with the mono-2-10 branch (as
the mcs/class/System/Test/... tests don't exist in mono-2-10).
2012-01-03 22:06:30 -05:00
symform 2ddb080ec5 Fixed a race in System.Net.WebConnection that was causing it to throw NullReferenceException on Close/Dispose 2012-01-03 17:15:06 -08:00
Miguel de Icaza 6799a27a6b XmlSerializer: Add support to serialize nullable types when the XmlElement has explicity set the DataType
The existing code had a special code path for handling nullables that
ignored the DataType component.

This patch splits the nullable test away, allows the specified XmlDataType
to be probed and then performs the standard type lookup mechanism.

This allows this:

        [XmlElement ("MyNullableTime", DataType="time", IsNullable=true)]
        DateTime? myTime;

To be serialized as a "time" instead of a "datetime".

Fixes bug #329
2012-01-03 19:38:45 -05:00
Miguel de Icaza ac4d41c3ee Allow trailing commas on Json objects 2012-01-03 19:38:31 -05:00
Zoltan Varga 8701ca9df5 Initialize the out arguments at the beginning of mono_lookup_pinvoke_call (). 2012-01-03 20:41:31 +01:00
Rodrigo Kumpera 26877fb8d4 Properly align calls to mono_jit_thread_attach from wrappers. Fix pinvoke3 OSX with -O2. 2012-01-03 18:00:40 +01:00
Miguel de Icaza 65a7f84678 Fix history navigation 2011-12-26 08:25:52 -05:00
Zoltan Varga 4be815a64b Allow the placement of breakpoints in wrappers using --break. 2011-12-25 15:09:27 +01:00
Zoltan Varga 550c5a630e Fix localloc on MIPS. 2011-12-24 14:35:01 +01:00
Miguel de Icaza e0c41f35c2 Fix move-forward-word by also considering symbols as punctuations (before we could not move-forward 'a>b') 2011-12-22 19:35:37 -05:00
Sebastien Pouliot 0bf1517c97 Do not add the Create flag when ReadOnly is used. Fix http://stackoverflow.com/q/8602726/220643 2011-12-22 10:16:56 -05:00
Jeffrey Stedfast aed10e3f8d [MSBuild.Tasks] Backport other fixes for RemoveDir from master. 2011-12-20 17:37:06 -05:00
Jeffrey Stedfast 9f32d73ebc [MSBuild.Tasks] Fixed RemoveDir to be recursive.
Fix for bug #2576.
2011-12-20 17:31:43 -05:00
Rolf Bjarne Kvinge d30b7de6ca Fix gdb backtraces on OSX.
We can't redirect output from gdb: since gdb will suspend us we won't
be able to read from the pipe we've redirected output to, and we'll
end up deadlocking if gdb outputs a lot of data (see bug #2548).
2011-12-20 11:21:44 +01:00
Rolf Bjarne Kvinge fed99b7ac7 sgen: Don't report all pinned roots as stack roots. 2011-12-20 02:29:37 +01:00
Sebastien Pouliot 083c82f1cc Provide total, not the number of bytes read, in DownloadData. Fix bug #2482 2011-12-19 14:12:18 -05:00
Rolf Bjarne Kvinge 6922ed8629 Disable gdb backtracing until #2548 has been fixed. 2011-12-19 18:52:35 +01:00
Zoltan Varga cd3c79413a Fix List.LastIndexOf () on empty lists. Fixes #2558. 2011-12-19 12:21:58 +01:00
Duncan Mak bc36fbe193 Bump version number to 2.10.8.1. 2011-12-16 11:48:30 -05:00
Rodrigo Kumpera 53d8062782 Fix sgen 2011-12-16 12:03:18 -02:00
Duncan Mak 44983be8f2 Fix typo from commit b4c110c. 2011-12-14 15:51:15 -05:00
Duncan Mak 015444e23d Bump version number to 2.10.8 2011-12-14 14:07:23 -05:00
Rolf Bjarne Kvinge f4433694ac [System.Web.Services] Make sure we don't keep results forever when doing async requests. Fixes #2473. 2011-12-13 23:12:32 +01:00
Gonzalo Paniagua Javier a02076baf6 Fix MAC address for Mac/iOS
The position of the first byte to copy was wrong.
	Fixes bug #2012.
2011-12-13 10:27:57 -05:00
Marek Safar 0a3a379ee0 Fixes NRE when checking most specific type of default parameters. Fixes #2465 2011-12-13 10:10:18 +00:00
Jeffrey Stedfast fbbe941b69 [GetTimeZoneData icall] Fixed logic for zones where there is only a start date
Thanks to Kirill for this patch.

Bug #2223.
2011-12-09 11:57:10 -05:00
Rodrigo Kumpera 61963ca6b1 Fix another case where bridge would not be triggered. 2011-12-08 16:16:33 -02:00
Paolo Molaro 50cc972397 Do the multiplication/division with floating point numbers in time calculations on win32. 2011-12-08 10:01:10 +01:00
Rodrigo Kumpera 340361ff91 Fix severe breakage of sgen bridge code. 2nd and 3rd step where not been called anymore. 2011-12-07 21:12:01 -02:00
Rodrigo Kumpera de6a0113fb Avoid an assert in bridge code when doing a major collection due to minor overflow. Fixes bxc #2349 and bxc #2091.
* sgen-bridge.c:
	* sgen-gc.c: After we split bridge processing in two, one step with world stopped and
	another with world running, we introduced the following regression:

	A minor collection starts and find an young bridge object ready to be processed.
	Major heap overflows and a major GC is triggered. The object mentioned above will
	remain collectible and will be queued for processing again.
	Since we do the first step in finish_gray_stack, it will be done twice in the above
	scenario. This will cause an assertion due to duplicate entries in the hashtable.

	The solution is to split the step that is performed with world stopped into another two.
	One that happens during collections, that can be done multiple times per duty cycle and
	another one that is done only once before we restart the world.

	This split has the minor advantage of reducing duplicated work for the dfs1 step. Nothing big
	as this is one of the fastest steps.
2011-12-07 15:25:12 -02:00
Rodrigo Kumpera 636f9ec0b9 Remove some dead code 2011-12-07 15:22:52 -02:00
Paolo Molaro e5e8c141c5 Fix overflow in the win32 monotonic time (xambug #183). 2011-12-07 15:05:00 +01:00
Rodrigo Kumpera 764f9cbd32 Use mono-tls for the current domain.
* domain.c: Use mono-tls for the current domain variable.
	Sgen depends on this so it has to be lock free and the
	io-layer version is not.

	Fixes bxc #2326
2011-12-06 09:12:48 -02:00
Rodrigo Kumpera a96b9dd614 Move current thread to use mono-tls. 2011-12-06 01:57:52 -02:00
Rodrigo Kumpera b4c110c021 Backport utils/mono-tls.h. 2011-12-06 01:57:51 -02:00
Duncan Mak 1f505f2ebb Add TimeZoneInfo.MonoTouch.cs so that it's included in dist 2011-12-05 20:28:03 -05:00
Zoltan Varga 3e62b6e207 Fix infinite recursion introduced by the previous patch. 2011-12-05 06:01:06 +01:00
Zoltan Varga 83e5c48472 AOT the cctor of generic classes which are referenced by SFLDA patches and superclasses of generic instances. Fixes #2155 2011-12-05 05:53:10 +01:00
Duncan Mak abc05b767c Bump to 2.10.7 2011-12-02 15:26:04 -05:00
Jb Evain 7019e2b39f Test for assignability of arrays to generic interfaces. Fixes #2304. 2011-12-02 16:46:09 +01:00
Paolo Molaro 137efe9736 Fixed complex value type scan (xmarin bug#228). 2011-12-01 17:53:52 +01:00
Marek Safar 4752df3669 Fix Array::Contains for null items via ICollection<T>. Fixes #2260
Conflicts:

	mcs/class/corlib/System/Array.cs
2011-11-30 13:52:58 +00:00
Sebastien Pouliot a2d3a480e9 Ensure that [Parameterized]ThreadStart code is always wrapped in a NSAutoreleasePool for MonoTouch. Fix bug #1999 2011-11-29 19:56:00 -05:00
Jeffrey Stedfast e79c9e9135 [monodoc] Removed debug spew 2011-11-29 16:14:06 -05:00
Miguel de Icaza bd511fa11e Fix the build, add declaration for SeqPoint 2011-11-28 04:38:37 -05:00
Zoltan Varga f8539f3cf6 Add a heuristic to insert_breakpoint () to avoid 'Unable to insert breakpoint' errors in some cases, since the set of IL offsets in the debug info doesn't completely match what the JIT generates. Fixes #407. 2011-11-26 18:09:17 +01:00
Zoltan Varga 614da57287 Save the stack space used by arguments into MonoJitInfo to avoid calling mono_arch_get_arg_info () during stack walking, since it is not signal safe. Fixes #2190. 2011-11-24 20:06:33 +01:00
Miguel de Icaza c8778b1133 Extend JsonSerializerReader to support nullables and parse a wider range of Date formats, fixes x#163 2011-11-24 01:32:05 -05:00
Zoltan Varga f3692b8819 Always free _WapiFileShare entries using _wapi_free_share_info (), otherwise zeroed out entries remain in the hash table when shared handles are disabled. Fixes #2170. 2011-11-24 02:38:49 +01:00
Rodrigo Kumpera ae25c90d61 Correctly calculate the number of cards to be marked.
* sgen-cardtable.c (sgen_card_table_mark_range): The number of
	pages to be marked must be correctly calculated to avoid the case
	when the in-card offset of the start address is bigger than
	of the end address and cause the last card to be skipped.

	Fixes #1917
2011-11-23 20:56:59 -02:00
Zoltan Varga ff47ddc6db Fix a crash introduced by 64d35e3940. Fixes #2150. 2011-11-22 23:00:21 +01:00
Rodrigo Kumpera 88ac3e5d4d Scan all ephemeron arrays during nursery collections.
* sgen-gc.c (mark_ephemerons_in_range): All ephemeron arrays
	must be scanned during a nursery collection since we ignore
	them during remset processing for a good reason.

	In the future we should use cardtable information to avoid
	scanning the whole thing.

	Fixes bxc #1175.
2011-11-22 17:25:43 -02:00
Neale Ferguson 9746e8d9f8 Implement serialization 2011-11-22 10:12:41 -05:00
Jonathan Pryor 10bcc0d354 [MonoDroid] Only alias stdout/stderr on Android devices.
Mono for Android uses Mono 2.10 + smcs to build code, which thus uses
an smcs built against the Mono for Android profile assemblies, which
would thus be built with MONODROID defined. Thus (understandably) dies
at runtime with a DllNotFoundException, as liblog.so can't be found.

Fix smcs.
2011-11-21 18:46:13 -05:00
Jonathan Pryor cf3562d2c8 [MonoDroid] Fix the libmono build.
7e49d08a nee 2763aae9c doesn't build because <fcntl.h> is missing:

	mono/utils/mono-proclib.c:517: error: 'O_RDONLY' undeclared (first use in this function

Fix the build.
2011-11-21 12:53:46 -05:00
Jonathan Pryor 2388926d50 [corlib] On Android, alias stdout/stderr to logcat.
In Mono for Android, stdout and stderr (file descriptors 1 and 2) are
only visible when debugging within MonoDevelop and/or Visual Studio,
which is rather annoying.

This was changed in Mono for Android 1.9.2, by using Console.SetOut()
and Console.SetError() to send stdout/stderr message to both
stdout/stderr and to the Android Debug Log (`adb logcat`), allowing
e.g. Console.WriteLine() output to be viewed outside of a debugger.

Problem: in order to capture user-generated messages at their earliest
point, Console.SetOut()/etc. must be called at the earliest point in
Mono for Android initialization, even if Console.WriteLine() is never
used. Worse, this adds ~180ms of startup overhead on a Nexus One.

The fix here is to move the std*/logcat duplication logic into
mscorlib.dll, so that we can configure things within the
System.Console static constructor. This moves the initialization
penalty onto users of System.Console (instead of all users).
2011-11-21 09:30:59 -05:00
Zoltan Varga d6be15f97b Don't allow compiling with stock LLVM versions, only the Mono LLVM repo at https://github.com/mono/llvm is supported. 2011-11-20 20:17:03 +01:00
Zoltan Varga ad8e7c929f Free debug info for dynamic methods by storing it in malloc-ed memory instead of the normal debugger tables. Fixes #731579. 2011-11-20 14:10:20 +01:00
Rolf Bjarne Kvinge 1638105782 [System.Data] Fix sorting in DataView when changing sort value/default sort several times. 2011-11-16 16:01:38 -05:00
Jérémie Laval ad939942b5 Fix previous commit 2011-11-16 13:21:46 -05:00
Jérémie Laval e2110645f1 [MonoDroid] Query hardware CPU count for Environment.ProcessorCount 2011-11-16 11:18:38 -05:00
Rodrigo Kumpera 55f3721a38 Add JIT counters to the local set of counters we support. 2011-11-15 21:41:25 -02:00
Alan McGovern 82d9fb288c [io-layer] Use lstat as a fallback for stat in SetFileAttributes
Make SetFileAttributes consistent with GetFileAttributes - if
stat fails and ENOENT try to use lstat in case it's a dangling
symlink.
2011-11-11 16:55:41 +00:00
Neale Ferguson 9196c64c2a Fixes bug 1916 - incorrect appending of string to buffer when remaining buffer size is less than string size. 2011-11-10 18:42:33 -05:00
Jérémie Laval 3dfc36e4ac Add missing Task_T_Test file 2011-11-10 23:37:38 +01:00
Miguel de Icaza 044461a63b Add locking around the ServiceModel.Logger, fixes a race reported on the mono-devel list 2011-11-09 23:14:49 -05:00
Rolf Bjarne Kvinge fd05675b35 Log profiler: fix comment typo 2011-11-09 00:15:48 +01:00
Sebastien Pouliot 2e9eca05b9 fix typo in monotouch build 2011-11-08 15:57:34 -05:00
Zoltan Varga eefdcf1d3a Fix profiler build if boehm is disabled. 2011-11-08 17:47:16 +01:00
Sebastien Pouliot 8546da29ca Workaround AOT limitation for bug #1443. Patch by Rodrigo Kumpera 2011-11-08 07:58:04 -05:00
Sebastien Pouliot 793bbb9a87 MonoTouch specific initialization for TimeZone (devices). Fix bug #1790 2011-11-08 07:58:04 -05:00
Jérémie Laval 5ff0b3b636 Import TPL unit test from master 2011-11-07 19:05:14 +01:00
Jérémie Laval 51eb841a56 Import TPL changes from master 2011-11-07 18:20:33 +01:00
Rodrigo Kumpera c3026122e9 Fix marshaling of Win32_IN6_ADDR. 2011-11-05 14:15:59 -02:00
Robert Jordan 6bf88caf77 [Web] Fix obvious typo in DELETE FROM WHERE statement. 2011-11-05 14:47:33 +01:00
Zoltan Varga 8b336154f7 Avoid adding a ref in OpenProcess (), it is already added in _wapi_search_handle (). Fixes #1682. 2011-11-04 18:15:40 +01:00
Zoltan Varga 9ecf360a2b Fix a crash if a profiler is not found. Fixes #1855. 2011-11-04 16:53:56 +01:00
Sebastien Pouliot 9c72742bf8 OSX and iOS does not support CLOCK_MONOTONIC so we use mach_timebase_info instead. Fix bug #1366 2011-11-04 11:14:15 -04:00
Jeremie Laval 5faf9e26c8 Add RwWrite flag to status check when already owning upgradeable lock. Fix #802. 2011-11-04 01:17:37 +01:00
Rodrigo Kumpera 6bc4446f02 Implement the icalls needed by the new mobile mmap code. 2011-11-03 17:39:59 -02:00
Rodrigo Kumpera 32942d4014 Implement a mobile ready version of memory mapped files. 2011-11-03 17:39:58 -02:00
Rodrigo Kumpera 66c0b04951 Move all Mono.Unix deps into a single place and put a skeleton of MOBILE support for mmap'd files. 2011-11-03 17:39:58 -02:00
alexrp 7cbff8d169 Fix call to mono_sgen_gc_unlock () in mono_gc_toggleref_add (). 2011-11-03 14:39:45 +01:00
Zoltan Varga a58017ca8e Fix a crash which happens when an inlined method ends with a throw inside a branch, i.e. the return value is not on one branch, and not on the other. Fixes #1835. 2011-11-02 22:54:33 +01:00
Rolf Bjarne Kvinge 6efa57b2c2 [Mono.Data.Sqlite] Use a prebuilt resources file like Managed.Windows.Forms does.
This makes it possible to build the monotouch profile, since generating the resources
file requires a System.Windows.Forms.dll, which monotouch doesn't have.
2011-11-02 12:13:38 +01:00
Zoltan Varga 6373d04e93 Delete unused link.h include 2011-11-01 20:57:26 +01:00
Jeremie Laval b8cd87e608 Set success boolean in all cases and avoid state masking. Fix #124 2011-11-01 16:30:37 +01:00
Rodrigo Kumpera 9fa7633b1f publish the same events as pthread_stop_world 2011-11-01 10:20:59 -02:00
Rodrigo Kumpera 8ea6fd8ac5 Implement new toggleref machinery for sgen.
* sgen-toggleref.c: GC backed toggleref machinery. This enables
	embedders to support toggleref style of external memory management
	without hooking up to the host retain/release machinery.

	The API export two entry points. The first let the caller register
	a callback with sgen that decides the state of a given object, by
	probably inspecting its native state. The second allows registration
	of objects with the toggleref machinery.

	The idea of toggleref is that we keep an external reference to an object
	and it can be  either a strong or weak reference. We use a weak reference
	when the external peer has no interest into the object and a strong otherwise.
2011-10-26 15:16:29 -02:00
Rodrigo Kumpera 29bc8d9b9c Export a bunch of sgen functions for internal usage. 2011-10-26 14:25:41 -02:00
Rolf Bjarne Kvinge d1df969755 Log profiler: ensure the size we pass to getsockname is initalized correctly. 2011-10-26 15:24:11 +02:00
Rolf Bjarne Kvinge 33e0667472 Log profiler: flush file after writing to it. 2011-10-26 15:22:36 +02:00
Rolf Bjarne Kvinge 2ee0c254a4 Log profiler: add support for writing to an existing file descriptor. 2011-10-26 15:02:49 +02:00
Rolf Bjarne Kvinge 5ddf92f33c Profiler: add support embedded profilers whose entry point ends with _<profiler name>. 2011-10-26 14:20:44 +02:00
Lluis Sanchez 4960cd6133 [System.Xml] Fix handling of XmlSchemaForm when importing elements
When the schema for is not explicitly set for an element, get the default form specified in the schema, and use 'unqualified' if there is no other default. This fixes bug #41.
2011-10-26 11:29:32 +02:00
Atsushi Eno dd1a9c331a Fix NET_2_1 builds. 2011-10-26 00:36:30 +09:00
Rolf Bjarne Kvinge 352bb2461b When providing stack trace for a crash make sure we attach to the crashed process, not the forked process that will become gdb. 2011-10-24 22:38:22 +02:00
Miguel de Icaza 4ef6555a3a Remove the exit code so that we can get a little bit further on MacOS X 2011-10-24 12:53:34 -04:00
Atsushi Eno 1e25dd1757 Give prefix "i" for xsi:nil. Patch by Alexander Riman, fixes pt.2 of #1198. 2011-10-24 23:53:59 +09:00
Miguel de Icaza 995a774521 Patch from Mario Kosmiskas for Bug 1460: add support for Path.GetFileName to work with MONO_IOMAP 2011-10-22 21:09:30 -04:00
Miguel de Icaza 4aeb0b7347 Fix from github.com/sehe for passing the command line arguments to the OnStart method 2011-10-22 09:58:57 -04:00
Miguel de Icaza 0e2108e5e0 Make this build on the MOBILE profile 2011-10-21 11:49:49 -04:00
Marek Safar 3f246aa0b2 Fix VolatileRead(uint&), VolatileWrite(uint&,uint) to use correct word size 2011-10-19 15:38:13 +01:00
Sebastien Pouliot 0222d30eab Ensure private key flow from the mono store into the X509Certificate2 instance. Patch from bug #1201 2011-10-18 15:50:34 -04:00
Alan McGovern 35c0bb794e [WindowsBase] Add better support for Default/Override content_types
System.IO.Packaging already had full support for parsing [Content_Types].xml
if it contained both <Override> and <Default> nodes when specifying content
types for files. However we had taken a shortcut before by explicitly writing
the content type of each file using an <Override> attribute for every file. We
now properly write a <Default> element and only use <Override> attributes when
required.
2011-10-18 11:43:14 +01:00
Jérémie Laval d12e49a9b3 [WindowsBase] Don't treat special file [Content-Types].xml as a part, ends up as a duplicate when writing back a package 2011-10-18 00:50:49 +01:00
Alan McGovern 97426e608b [System.IO.Packaging] Fix some dispose related issues
Ensure we can call dispose multiple times without blowing up. Also
ensure that we do not close streams which are passed in by the user.
We should only close streams which are implicitly created by the API.
This is a modification of the patch proposed for bug #1464, which is
now fixed by this commit.
2011-10-18 00:48:28 +01:00
Miguel de Icaza daa4a4f0f5 Fix for 1461: Microsoft's generated deserializer call CollapseWhitespace extensively 2011-10-17 17:06:29 -04:00
Rolf Bjarne Kvinge b3cc72b9a7 Add System.Numerics to the mobile profile. 2011-10-17 12:32:45 +02:00
Gonzalo Paniagua Javier 32029f1171 Return the correct length for input streams 2011-10-17 00:46:14 -04:00
Marek Safar 44882b1925 Fix System.Data.Services.Client public key 2011-10-16 12:03:08 -04:00
Miguel de Icaza b7ad6a07a8 Apply patch from Mario Kosmiskaso fix bug 1210: Correctly propagate the Operation Context on async calls
The OperationContext is a [ThreadStatic] variable therefore when a REST call is
made asynchronously the worker thread will not see a context set and will not
expose any data through the context.

A possible solution (which I implemented in the attached patch) is for
ClientRealProxy to set the context in the channel prior to executing the call
(either sync or async). The ClientRuntimeChannel needs to then properly set and
reset the context in the worker thread.

Because WCF operations marked [OperationContract(AsyncPattern = true)] using
IAsyncResult only generate an outgoing call on End<OperationName> the
ClientRuntimeChannel.EndProcess must not reset the context as it's currently
doing. The context can only be reset after calling EndInvoke because the
request will be only generated at this point.
2011-10-16 11:44:36 -04:00
Miguel de Icaza 2bb4353929 Apply patch from Mario Kosmiskaso fix bug 1209: Patch to correctly expose WebOperationContext.IncomingResponse
There was apparently no point in the call flow when the reponse message was set
in the context, resulting in WebOperationContext.IncomingResponse always being
null.

After patching WebMessageFormatter to set the response in the context (if
available) the value of WebOperationContext.IncomingResponse was still null. A
bit more investigation showed that IncomingWebResponseContext would construct a
HttpResponseMessageProperty encapsulating the OperationContext at the time the
request was made but before the response was received and cache that object.
That caused the HttpResponseMessageProperty to always have a null value for the
response. The second part of the patch changes this behavior and always creates
a new HttpResponseMessageProperty on GET.
2011-10-16 11:41:36 -04:00
Miguel de Icaza 88df658060 Apply patch from Mario Kosmiskaso fix bug 1207: Throw the correct exception when a REST request returns a 404
.NET throws a EndpointNotFoundException encapsulating a WebException when a
REST request returns a 404.

The attached patch tests for a 404 and throws the same exception chain thrown
by .NET.
2011-10-16 11:37:43 -04:00
Miguel de Icaza 6ca75c627b Apply patch from Mario Kosmiskaso fix bug 1207: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:37:06 -04:00
Miguel de Icaza 393f7c7f3e Apply patch from Mario Kosmiskaso fix bug 1205: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:33:37 -04:00
Miguel de Icaza 07268b7ab8 Apply patch from Mario Kosmiskaso fix bug 1204: Add certificate to the HttpWebRequest if configured
System.ServiceModel.Channels.HttpRequestChannel never added the configured
certificate to the HttpWebRequest which prevented client side authentication.

The attached patch does exactly that if a certificate has been configured.
2011-10-16 11:32:07 -04:00
Miguel de Icaza 241a34d604 Fix bug 1203, relaxes the test for the protocol to allow https endpoints 2011-10-16 11:29:09 -04:00
Gonzalo Paniagua Javier da1bdf6b34 Don't 404 when any of the hashes has a / in it
This fixes "random" problems getting resources served by
	WebResource.axd.
2011-10-16 00:14:22 -04:00
Rolf Bjarne Kvinge f0737b398c Log profiler: Don't include major collections in ondemand mode. 2011-10-13 14:39:15 +02:00
David Evans f373840a8a Fix regression to System.Diagnostics.Process.PrivateMemorySize64 (). Fixes #1459 2011-10-13 08:01:06 +02:00
QuickJack 2d1dba2a8f Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-12 23:42:33 -04:00
QuickJack a8cee6b88e Edited mcs/class/System/System.Net/WebRequest.cs via GitHub 2011-10-12 23:42:29 -04:00
QuickJack 76debbe013 Edited mcs/class/System/System.Net.Configuration/BypassElement.cs via GitHub 2011-10-12 23:42:25 -04:00
QuickJack 92bb5751a7 Edited mcs/class/System/System.Net.Configuration/ProxyElement.cs via GitHub 2011-10-12 23:42:20 -04:00
Rolf Bjarne Kvinge 39a7dcb400 [System] Added NetworkCredential.SecurePassword. 2011-10-11 15:12:39 +02:00
Rolf Bjarne Kvinge 276ca3613f [Microsoft.Build] Stub out a lot of classes to make NuGet build with mono. 2011-10-11 15:12:39 +02:00
Rolf Bjarne Kvinge 7e9785dc4e [Microsoft.Build.Framework] Add a couple of 4.0 interfaces. 2011-10-11 15:12:38 +02:00
Rolf Bjarne Kvinge 968a511c89 [WindowsBase] Relationship ids must be valid XML identifiers. 2011-10-11 15:12:38 +02:00
Rolf Bjarne Kvinge 7cce646657 [Microsoft.Build] Stub out a few types to make nuget run. 2011-10-11 15:12:38 +02:00
Leszek 'skolima' Ciesielski b033bff618 [MSBuild] Fixed issues found by Paul Selormey.
Unset attributes should return String.Empty, null is only for invalid.
2011-10-11 15:12:38 +02:00
Leszek 'skolima' Ciesielski 9c94be9d30 [MSBuild] LinkedList used for storing children
ProjectElementContainer should now handle modifications faster.
2011-10-11 15:12:38 +02:00
Leszek 'skolima' Ciesielski 0e4b34fdd7 [MSBuild] Preserve comments in build files
Contribution by Paul Selormey
2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski f784b407c4 [MSBuild] Finishing Microsoft.Build.Construction
No more NotImplementedException.
2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski a246a51c0f [MSBuild] Microsoft.Build.Construction loading project files 2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski 21a92702c3 fixing the build 2011-10-11 15:12:37 +02:00
Leszek 'skolima' Ciesielski dffda4000e [MSBuild] Add Microsoft.Build for 4.0 profile
Namespace Microsoft.Build.Construction partiallly implemented,
enought to construct and save a valid project file. Some
tests present (work on .Net).
2011-10-11 15:12:37 +02:00
Miguel de Icaza 736891c361 Add the fallback to MonoDoc 2011-10-07 16:36:28 -04:00
Miguel de Icaza 62e371b81b Avoid loading the same documentation file twice 2011-10-07 16:22:41 -04:00
Sebastien Pouliot 4f64a73a44 Ensure consistency when 'emitContext == true' is used in MONOTOUCH profile (since it won't work when the linker is enabled). Fix bug #1144 2011-10-05 17:44:00 -04:00
Sebastien Pouliot a147386bc4 Internalize [ComImport] in MONOTOUCH profile since it can make the (unlinked) application code crash (and we better spot this at compile time). Fix assistly #2357 2011-10-05 17:43:48 -04:00
Rolf Bjarne Kvinge d87a79de52 [System.ServiceModel] Write EndPointAddress properly in the 2.1 profile. Fixes #1244 2011-10-05 22:57:02 +02:00
Alan McGovern 14a9dbdd34 [System.IO.Path] Fix potential infinite loop in Path.GetTempFileName
Refactor this method so that it only attempts alternative filenames if
the filename just attempted already exists. This way we will never end
up looping forever being unable to create the required file. Previously
if we opened the maximum allowed files and then called GetTempFileName
we'd loop forever throwing an IOException in the FileStream constructor
every time.
2011-09-30 13:25:41 +01:00
Gonzalo Paniagua Javier fc7ffed3ac 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.
2011-09-30 01:23:03 -04:00
Gonzalo Paniagua Javier 7cf63b69e6 Merge pull request #167 from konrad-kruczynski/send_async_fix
Fix for Xamarin bug #531.
2011-09-29 11:47:55 -04:00
Jeffrey Stedfast 3bb319b61d [TimeZone] Fixed race condition with renewing the CurrentTimeZone object.
Fixes bug #1055.
2011-09-29 10:57:40 -04:00
Rodrigo Kumpera 6148e4b997 Request ObjectMirror type and domain in a single request. 2011-09-29 03:23:05 +02:00
Rodrigo Kumpera 39c0feba1c Cache thread id. 2011-09-29 03:18:19 +02:00
Rodrigo Kumpera 89881c9b4d Cache source files. 2011-09-29 03:17:41 +02:00
Rodrigo Kumpera 47c388364d Cache ObjectMirror type and domain. 2011-09-29 03:17:17 +02:00
Rodrigo Kumpera 8ad829ac4e Avoid looking up the ctor mirror twice. 2011-09-29 03:16:55 +02:00
Zoltan Varga 93e489abf2 Avoid a crash if mono_debug_open_image_from_memory is called without --debug. Fixes #1093. 2011-09-29 02:01:29 +02:00
Zoltan Varga 742ff74e50 Save/restore argument registers when instrumenting tail calls. Fixes #971 2011-09-27 20:58:39 +02:00
Rodrigo Kumpera abff177b4b 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.
2011-09-26 20:07:10 -03:00
Rodrigo Kumpera 5524ab9825 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.
2011-09-26 19:35:52 -03:00
Mark Probst d51f05c88b [sgen] Do the bridge callback after the world has been restarted.
Conflicts:

	mono/metadata/sgen-gc.c
2011-09-26 19:32:59 -03:00
Gonzalo Paniagua Javier 35f3c96490 Create the first tp thread right away.
Avoid 500ms delay.  Fixes Xamarin bug #1036.
2011-09-25 02:21:40 -04:00
Jérémie Laval c1d9d1a6b6 Fix double adding in ConcurrentDictionary ctor with IEnumerable seed. 2011-09-25 11:27:47 +02:00
Sebastien Pouliot 8bb319b1e6 Provide binding for sqlite3_config to allow setting the threading model. Fix bug #652 2011-09-24 09:36:19 -04:00
Gonzalo Paniagua Javier 37ac996882 Return the right empty collection in ParseQueryString.
Fixes Xamarin bug #970.
2011-09-21 07:39:58 -04:00
Miguel de Icaza 0afd473342 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.
2011-09-19 22:53:17 -04:00
Jérémie Laval 4b750612a8 Fix for #892 2011-09-19 18:38:47 +02:00
Jérémie Laval 5d17d13bee Fix more argument checking for Task<T> 2011-09-19 18:38:46 +02:00
Jérémie Laval 475c172dae Check that supplied function argument in a Task<T> ctor isn't null 2011-09-19 18:38:46 +02:00
Sebastien Pouliot 323ff14b65 fix previous fix (wrt #808) 2011-09-19 11:23:14 -04:00
Sebastien Pouliot 4a6df0b082 Fix typo (bug #808) 2011-09-18 11:35:58 -04:00
Sebastien Pouliot 8141307e4b Expose Dispose under the NET_2_1 based profiles. Fix bug #154 2011-09-18 11:35:38 -04:00
Gonzalo Paniagua Javier 27b145e24f Avoid warning 2011-09-16 20:37:02 -04:00
Sebastien Pouliot bdaf7bb33c Allow commit/rollback/update events to work under MonoTouch. Fix bug #233 2011-09-15 22:21:48 -04:00
Alex Corrado 378032bf64 Fix prepending $(CURDIR) to paths failing under cygwin 2011-09-15 13:07:57 -04:00
Alex Corrado a19eb0760b 2.10.6 2011-09-13 23:37:20 -04:00
Gonzalo Paniagua Javier 5cfc62f415 Stop lying in the comments 2011-09-13 20:24:11 -04:00
Gonzalo Paniagua Javier 1ed1c4bed1 Report compilation errors when the type named in 'class' can't be loaded. 2011-09-13 20:24:01 -04:00
Rodrigo Kumpera 616f648f0d 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
2011-09-13 15:35:31 -03:00
Rodrigo Kumpera 4fccd4d599 Add logging to sgen-bridge. Log times and sizes. 2011-09-13 15:35:30 -03:00
Rolf Bjarne Kvinge bd4f80e803 [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.
2011-09-13 14:15:11 +02:00
Rolf Bjarne Kvinge 9e9b3f913d [System.Data] Properly clone a column's extended properties when cloning a table. Fixes #668. 2011-09-13 13:01:57 +02:00
Jérémie Laval a2a168e5f3 Add missing files. 2011-09-13 12:20:07 +02:00
Jérémie Laval 5f982b1908 Backport System.Threading.Tasks from master to mono-2-10 2011-09-13 12:18:39 +02:00
Gonzalo Paniagua Javier f00202d3e3 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.
2011-09-13 01:24:14 -04:00
Gonzalo Paniagua Javier b4d4033040 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.
2011-09-13 00:06:12 -04:00
Sebastien Pouliot 68deb6335e More fixes for running unit tests under NET_2_1 profile 2011-09-12 12:53:17 -04:00
Miguel de Icaza cb965a9d3a 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.
2011-09-09 22:04:18 -04:00
Marek Habersack 86262ef424 Support colors on 256-color terminals 2011-09-09 22:04:02 -04:00
Sebastien Pouliot acfa4856b9 Adjust corlib unit tests to reduce failures when executed on the NET_2_1 profile 2011-09-09 13:48:15 -04:00
Sebastien Pouliot be8711a7e6 fix FileStream test failures under Mac OSX 2011-09-09 13:48:01 -04:00
Sebastien Pouliot 7e6a0ff51e Throwing IsolatedStorageException is a Moonlight-behavior and should not have been exposed to other 2.1 profiles 2011-09-09 13:47:48 -04:00
Sebastien Pouliot c989e10293 Ensure we can roundtrip 'Local' (special case) timezone. Fix bug #326 2011-09-09 13:29:40 -04:00
Sebastien Pouliot b04d809478 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 2011-09-09 13:29:26 -04:00
Miguel de Icaza 219276c182 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 2011-09-07 18:44:22 -04:00
Sebastien Pouliot 64ff652330 Add null-check on 'partDesc'. Fix bug #612 (WCF regression) 2011-09-07 11:17:55 -04:00
Rodrigo Kumpera 75e3ca80bc 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.
2011-09-06 19:36:00 -03:00
Jérémie Laval aa48b6f714 Use a TaskCompletionSource in non-generic ContinueWhenAny case. Fix #647. 2011-09-06 23:55:01 +02:00
Rodrigo Kumpera 2603a2e4fd Improve exception message. 2011-09-06 14:53:00 -03:00
Rodrigo Kumpera 05550e7c66 Add collection logging to sgen. 2011-09-06 14:52:59 -03:00
Gonzalo Paniagua Javier 99349445b1 Display more debugging info when epoll fails 2011-09-05 21:13:07 -04:00
Gonzalo Paniagua Javier d768dd0125 Fallback to poll() if epoll_create() fails
From a patch by Zoltan in bug #705190.
2011-09-05 20:51:10 -04:00
Zoltan Varga e376d9156b Handle threads which die without detaching. 2011-09-06 04:24:21 +02:00
Zoltan Varga 85349b801f Implement AppDomain.ResourceResolve. Fixes #579. 2011-09-04 03:20:22 +02:00
Mark Probst 41d1be9f34 [sgen] Break tracking weak references as early as possible.
Our tracking references code aimed to transform tracking references
into normal weak references the first time their targets became
unreachable.  It was implemented incorrectly though, and is not the
right thing to do in the first place anyway, because tracking
references have to keep tracking if the target is re-registered for
finalization.  The incorrect implementation inadvertently handled
re-registration correctly, but it kept the reference intact for one
garbage collection cycle too many.
2011-09-02 11:14:27 -03:00
Rodrigo Kumpera ac19d5bfaf Handle finalizable objects pointed by bridge objects. (cont...)
* sgen-fin-weak-hash.c:
	* sgen-gc.c: Bridge objects are used to represent objects
	that have references outside of sgen's control. They are
	kept around until the embedder figures out it's ok to
	collect them.
	Until those bridge objects turn externally unreachable,
	they must be kept around. Up to now, the expected pattern
	was to resurrect them during finalization.
	The problem with this approach is that if they hold references
	to other finalizable, non-bridge objects those will be finalized
	and we will resurrect objects that point to dead ones.

	Think of this:

	class BridgeObject {
 		FileStream stream;
	}

	The bridge object is resurrected on the finalizer and so will
	stream, disposing its native handle and been permanently unusable.

	The solution is to process brige objects before we do ordinary
	finalization. We record all dead bridges and copy/mark them.
	We drain the gray queue on the end, which makes sure all other
	finalizable objects that transitively reachable are too.

	Finally, we introduce a breaking change to the bridge API.
	The bridge must set to NULL the first object of all SCC
	entries that remain alive. Other entries will be considered
	dead and will be subject to regular finalization.

	This way, sgen knows when a given bridge object is completely
	unreachable and provides adequate finalization semantics to
	them and referenced objects.

	This fixes bxc #375
2011-09-01 20:13:06 -03:00
Atsushi Eno ae7d005dfc DiffLoader didn't handle encoded name and caused mismatch between .NET. 2011-08-31 17:53:04 -07:00
Atsushi Eno 04427d962d Fix invalid path check for Windows regarding ':'. 2011-08-31 14:12:51 -07:00
Atsushi Eno 57bc2f6ffb Add test for bug #545. 2011-08-31 14:12:42 -07:00
Atsushi Eno 059a6a685b EncoderReplacementFallbackBuffer.Reset() did not really reset its internals. 2011-08-31 14:03:10 -07:00
Chris Toshok 4ac77ca819 prepend $(CURDIR) to jay input files so that the debugging info references the right .jay 2011-08-30 17:06:50 -07:00
Jonathan Pryor d703e86b4b Don't use vasprintf on PLATFORM_ANDROID.
This allows sanely using g_log() within signal handlers.
2011-08-30 15:44:17 -04:00
Atsushi Eno 6870a59952 Implement IXmlLineInfo on XLinq node reader. 2011-08-30 23:13:36 +09:00
Atsushi Eno 721dadd34b LineInfo on namespace nodes were missing. 2011-08-30 20:22:01 +09:00
Sebastien Pouliot b7061d3e57 Fix build. Adding #if MOBILE is just not enough ;-) 2011-08-29 09:53:23 -04:00
Sebastien Pouliot 2f4099863e Fix bug #380. Patch from bnc#605795 were not committed to master but part of MonoTouch 3.x (ended up missing in MT4) 2011-08-29 08:57:30 -04:00
Hin-Tak Leung 96e0c59371 Fix mingw32 cross-build on a git no-branch checkout. Fixes #698446. 2011-08-29 01:25:19 +02:00
Zoltan Varga 1e910229a8 Allow pointers to structures to be passed in pinvoke, MS seems to allow this at least in some cases. Fixes bxc #158.
This partially reverts c4d9097c57.
2011-08-28 17:52:05 +02:00
Jérémie Laval c74031105a Check that CancellationToken coming from OperationCanceledException isn't None. Fix #472. 2011-08-28 14:50:12 +02:00
Atsushi Eno 279678d726 Revert GET switch for serializing requests. BodyWriter handles it better. 2011-08-24 18:13:04 -07:00
TalAloni da306d6e83 Bug Fix: OpenSubKey will open key as writable when RegistryKeyPermissionCheck is set to ReadWriteSubTree 2011-08-25 02:52:30 +03:00
Atsushi Eno 46db32524d for GET request, just skip the member. It does not contain xml for null. 2011-08-24 16:48:46 -07:00
TalAloni 1a6f160c21 Make sure a proper 'Not Implemented' exception is thrown instead of an 'Out of Range' exception. 2011-08-25 02:46:00 +03:00
TalAloni f1d4ca44e2 Fixed an ANSI to managed string conversion bug on native to managed callback functions. 2011-08-25 02:03:15 +03:00
Atsushi Eno 0563034987 Skip serialization when the return type is void.
This batch should fix bug #206.
2011-08-24 12:20:23 -07:00
Atsushi Eno 0baf32151f Do not try to output empty message body to logs. 2011-08-24 12:20:13 -07:00
Atsushi Eno 8bd9eebf1f When there is void return, the common message formatter should ignore it.
This case occurs when MessageContract is used and there is no member for
the return value.
2011-08-24 12:20:02 -07:00
Atsushi Eno b9a5b85c16 ReturnValue in MessageDescription was missing when there was MessageContract. 2011-08-24 12:19:52 -07:00
Atsushi Eno c98be1ad12 Differentiate GET query parameter binding from another request binding.
This is one core of the bugfix for #206.
2011-08-24 12:19:42 -07:00
Atsushi Eno 67b1fcec06 When there was no path parameter, it ignored the whole path part. 2011-08-24 12:19:31 -07:00
Atsushi Eno 4643f66d1a This filter should ignore port, and should not filter out anonymous URIs. 2011-08-24 12:19:21 -07:00
Atsushi Eno e3aa857b74 UriTemplate should not be mandatory, make it optional. Fix unit test. 2011-08-23 11:43:56 -07:00
Alex Corrado 350fcbd003 2.10.5 2011-08-22 19:58:07 -04:00
Jérémie Laval c6799b1f41 Throw when a non-finished task is started 2011-08-20 15:00:24 +02:00
Jérémie Laval f260ff4299 Make TaskCompletionSource methods thread-safe
Conflicts:

	mcs/class/corlib/System.Threading.Tasks/TaskCompletionSource.cs
2011-08-20 14:54:28 +02:00
Rodrigo Kumpera 7122b78d60 Fix sgen-arm-mach. It requires some #define juggling.
.
2011-08-19 20:36:39 -03:00
Rodrigo Kumpera 52971cce4c Fix variance test involving nullable types.
* class.c (mono_class_is_variant_compatible): Reject valuetypes
	if not the same straight away. This fixes testing IEnumerable<int?>
	with IEnumerable<int>.

	Fixes bxc #185
2011-08-19 19:32:48 -03:00
Rodrigo Kumpera 5dc77749e7 Correctly calculate the size of the freed array buffer.
* sgen-bridge.c (dyn_array_ensure_capacity): We must correctly
	calculate the size as our allocator asserts when we do it with
	very large allocs.
2011-08-19 02:06:24 -03:00
Rodrigo Kumpera 472b3e6fca Fix android's broken pthread_kill under sgen. 2011-08-18 14:02:26 -03:00
Alan McGovern 59b4c5bc3d [LinkedList] Optimise Clear slightly. 2011-08-18 16:06:27 +01:00
Alan McGovern f105c6d4e7 Merge pull request #161 from LogosBible/master
Fix bug #311: On LinkedList.Clear, detach each node instead of dropping them en masse.
2011-08-18 16:06:10 +01:00
Zoltan Varga 2e637c4cba Disable some failing LLVM passes. Should fix bxc #280. 2011-08-18 17:00:34 +02:00
Jérémie Laval 8d44e61042 Fix coding style 2011-08-17 20:02:02 +02:00
Sebastien Pouliot eac9866b2c Provide an error message if an instance method is decorated with [MonoPInvokeCallback]. Ease finding issues like bug #296 2011-08-17 10:49:30 -04:00
Alan McGovern 7ada4aec7b [System.IO.Packaging] Fix calling convention related issues
The P/Invokes should be Cdecl as the library is compiled with that
calling convention. The delegates passed to native code must also
be marshalled as Cdecl. Fixes BXC #223.
2011-08-17 12:50:23 +01:00
Miguel de Icaza dacb11a24c updated copyrights 2011-08-17 01:26:05 -04:00
Miguel de Icaza 5c44041365 More updates 2011-08-17 01:21:40 -04:00
Rodrigo Kumpera 56b901df8f Fix g_log redirection under android. 2011-08-16 16:30:06 -03:00
Jérémie Laval 582bd35450 Backport TaskCreationOptions check from master 2011-08-16 19:06:45 +02:00
Jeffrey Stedfast 6057352d91 Merge pull request #158 from nickers/mono-2-10
remove debug CWL's
2011-08-16 04:35:11 -07:00
Tomasz Wsuł 3b450189bb Remove writing statement on standard output 2011-08-16 12:56:08 +02:00
Jeffrey Stedfast 7878c22bbf Fixed a typo in zoltan's last commit 2011-08-15 18:05:13 -04:00
Jeffrey Stedfast 674372dd15 Fix for bug #445855
In this day and age of mobile personal computing devices,
we need to periodically check the underlying system
timezone because the device may have crossed a timezone
boundary.
2011-08-15 15:19:20 -04:00
Zoltan Varga af804a9305 Escape characters in LLVM symbol names 2011-08-15 17:47:56 +01:00
Zoltan Varga 7e2eff0be7 Don't pass MONO_UNWIND_ACTUAL_METHOD to the stack walker in a signal handler, its not signal safe. Fixes bxc #263. 2011-08-14 22:35:55 +02:00
Gonzalo Paniagua Javier 7de999655d [threadpool] Exit on unhandled exceptions only
Unhandled exceptions will only set the exitcode if there is no
	AppDomain unhandled exception handler. When the exitcode is set,
	the TP will exit for unhandled exceptions.

	Fixes bug #227.
2011-08-13 00:34:13 -04:00
Gonzalo Paniagua Javier 1b84abfcab [threadpool] Work around for a race-condition
Under some circumstances new_job was not signaled and the threadpool
	threads didn't realized there was a workitem in the queue.

	Fixes Xamarin bug #12 and Novell bug #690357.
2011-08-12 23:17:05 -04:00
Sebastien Pouliot 8286cbf198 Use 'as' for casting certificate extensions since we already deal with null and malformed extensions will throw, hard to debug, ICE when we just want to ignore them 2011-08-12 14:59:12 -04:00
Gonzalo Paniagua Javier db7d7c47cb Fix the range for rnd.Next() 2011-08-11 14:17:23 -04:00
Rodrigo Kumpera 9445d6e22c Add IObserver/IObservable to MOBILE profile. 2011-08-11 13:19:47 -03:00
Marek Habersack 209c253e3f Compilation fix for e449d41158 2011-08-11 02:29:07 +02:00
Marek Habersack e449d41158 [runtime] Fix for Xamarin bug #99. Don't fail to parse assembly names with spaces surrounding = in key=value pairs 2011-08-11 02:20:11 +02:00
Zoltan Varga 9b4a07a69e Fix the newly added test_0_llvm_regress_171 (). 2011-08-10 18:10:58 +02:00
Jérémie Laval 28766cfe96 Avoid creating a delegate instance in general case when setting up continuations
Conflicts:

	mcs/class/corlib/System.Threading.Tasks/Task.cs
2011-08-10 17:16:23 +02:00
Jonathan Pryor a95adaf53d [System,MOBILE] Add System.Text.RegularExpressions.RegexOptions.Compiled.
Add the RegexOptions.Compiled enumeration value to the MOBILE profile.

Fixes: http://bugzilla.xamarin.com/show_bug.cgi?id=149

MonoTouch and Mono for Android still use `PatternCompiler`, which is
interpreted. Thus RegexOptions.Compiled is ignored, and is present only for
compatibility with Windows Phone 7, which states [0]:

	Present only in Silverlight for Windows Phone, but not supported.

[0] http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions(VS.96).aspx
2011-08-09 21:33:56 -04:00
Zoltan Varga 7ae2112edc LLVM requires two PHI entries if a previous bblock branches to the current bblock using a conditional branch whose two targets are the same. Fixes #171. 2011-08-09 21:41:54 +02:00
Zoltan Varga 79b99d358b Add support for reference instances of Interlocked.Exchange<T> to full-aot, similarly to Interlocked.CompareExchange<T>. 2011-08-09 19:16:15 +02:00
Zoltan Varga 12fedc8ee6 Merge pull request #154 from mdsol/fix-mono-tarball-tests
Fix mono tarball tests
2011-08-09 10:03:00 -07:00
Jeffrey Stedfast 27589a4031 If #CONFIGURATION_DEP isn't defined, we still want to get a default proxy 2011-08-09 12:30:32 -04:00
Alex Corrado f12adef20c 2.10.4 2011-08-08 21:00:25 -04:00
Harry Wilkinson 049efb2da8 Include mono/tests/delegate2.exe.config to the source tarball so that the tests pass 2011-08-08 18:16:03 +01:00
Gonzalo Paniagua Javier d41b9d61c2 Merge pull request #150 from bassamtabbara/mono-2-10
Some fixes to mono-2-10
2011-08-08 06:26:42 -07:00
Bassam Tabbara 71b1f58d41 Fixed regression in System.Web.Routing caused by 62b047ae5b. Value and constraint where switched when evaluating regex route constraints. 2011-08-07 23:09:08 -07:00
Bassam Tabbara f983186526 Remove Console.WriteLine from DriveInfo.GetDrives() 2011-08-07 11:51:08 -07:00
Bassam Tabbara c726c88f32 Networkstream now throws IOException('connection closed') if the socket was closed/disposed 2011-08-07 11:17:27 -07:00
Jérémie Laval 3cb9ce92bc Fix for #162 2011-08-05 22:35:13 +02:00
Miguel de Icaza 2504797e50 Merge pull request #129 from grumpydev/CryptoFixo
Fix for out of bounds exception in Rfc2898DeriveBytes
2011-08-05 10:05:56 -04:00
Mark Probst 67ebb6a498 [sgen] Enqueue finalizers after update the pointer.
If the object was forwarded we read a bogus vtable and hence a bogus
klass.
2011-08-04 12:04:50 +02:00
Atsushi Eno d9e839c91b Merge pull request #146 from flutos/207ce0bccceec3ff7860ea986086fedb5a92d822
fix for bug 708178 that would fail if the type wasnt IEnumerable, should check if it implement IEnumerable rather than is IEnumerable
2011-08-04 09:08:12 +09:00
Rodrigo Kumpera fd65ec9388 Fix padding of call instructions. 2011-08-03 19:47:34 -03:00
Chris Toshok 7a0052ae2f don't redefine ABS 2011-08-03 10:42:01 -07:00
Marek Habersack ec0e9d7771 [runtime, globalization] Fix for Xamarin bug #161. Fix culture info data for certain locale short date formats
Modified locales which don't use '/' as the short date separator.
2011-08-03 16:00:46 +02:00
Rolf Bjarne Kvinge 4325b8151a [aot-compiler] Replace assert with descriptive error message. 2011-08-03 15:07:41 +02:00
Atsushi Eno 482e406319 Fix NET_2_1 builds (regression from the previous SecurityBindingElement fixes). 2011-08-03 13:54:08 +09:00
Rodrigo Kumpera e421b10a3d Implement fail tramp support on arm for full-aot imt thunks.
* aot-compiler.c (arch_emit_imt_thunk): Implement fail tramp
	support on arm. This enables variance to work under full-aot.
	The code blowout is not really significant as even on non linked
	apps the imt thunk overhead is 0.5%.
2011-08-03 00:47:20 -03:00
Geoff Norton 55c4b01d95 [gc] Darwin/AMD64 can have 64-bit thread id's, so we need to ensure
we cast properly to make sure the modulus has a valid result.
Additionally add support for x86_THREAD_STATE64.
2011-08-02 23:36:05 -04:00
Atsushi Eno a5610cbed1 Merge pull request #145 from ngraziano/99b87f07af0beed3a887
Fix Service Model Xml Serialization and XMLAttributes
2011-08-02 13:51:35 -07:00
Atsushi Eno fc9e1be0b3 Fix build, merge some missing changes to MessagePartDescription. 2011-08-03 05:46:53 +09:00
Atsushi Eno 9b9fef57d9 Fix bug #707434, check order only when applicable.
Based on the input by Scott Fluto.
2011-08-03 05:36:30 +09:00
Nicolas GRAZIANO 99b87f07af TypedMessageConverter do not take into account the xml attribute which modify the serialization.
Correction and Unit Test.
2011-08-02 22:15:58 +02:00
Atsushi Eno 9a69207087 Merge pull request #143 from mistoll/master
Fixes for WCF BasicHttpBinding with message security
2011-08-02 22:53:01 +09:00
Alex 4cfb3889f8 Define MONO_ARCH_NOMAP32BIT for DragonFly BSD. 2011-08-02 00:07:59 +02:00
Atsushi Eno 0a7f80fb0a Fill/reflect ReturnValue to and from corresponding message part.
This may have fixed bug #41.
2011-08-02 10:00:49 -07:00
Atsushi Eno df66c40aaa part of fix bug #41. MessageParameterAttribute is considered for return value.
Conflicts:

	mcs/class/System.ServiceModel/System.ServiceModel.Description/MessagePartDescription.cs
2011-08-02 07:52:03 -07:00
Jeffrey Stedfast 9b3e4f9034 Oops, fixed a typo 2011-08-01 16:59:52 -04:00
Alex 89dad63b0f Add support for DragonFly and NetBSD to sigcontext. 2011-08-01 10:29:43 +02:00
Jeffrey Stedfast 9636231dda Fix a mkbundle compiler warning by #including mono-config.h 2011-07-29 16:59:27 -04:00
Miguel de Icaza a2d896ec4e Update copyrights 2011-07-29 15:22:11 -04:00
Rodrigo Kumpera 66187b25b6 Use wrappers for accessing socket errors. Cygwin does not have some errors in errno.h. Fixes Windows build. 2011-07-29 13:42:25 -03:00
Rodrigo Kumpera f3deab1057 OSX won't expose IPV6_PKTINFO unless __APPLE_USE_RFC_3542 is defined. 2011-07-28 15:23:36 -03:00
Rodrigo Kumpera 5a9f5defc3 Handle a race on thread cleanup.
* mini.c (mini_thread_cleanup): Under some rare cases it's
	possible to have a NULL lmf.
2011-07-28 15:23:33 -03:00
Alex Corrado e43a74ae3f 2.10.3 2011-07-27 19:07:46 -04:00
Jérémie Laval 06cd95ea65 Same test for TaskCompletionSource 2011-07-27 19:52:01 -04:00
Jérémie Laval 7d088a3f17 Ensure that Task is in a correct initial state before starting it for real 2011-07-27 19:36:40 -04:00
Jérémie Laval 0ddabfc4ab Test that futures throw Exception through Result property when they are Faulted 2011-07-27 19:35:50 -04:00
Jérémie Laval 8078626d49 Add test for various AggregateException ctor exception situations 2011-07-27 18:32:05 -04:00
Jérémie Laval ffad7f7365 Move innerExceptions internal null check at the right place. 2011-07-27 18:21:36 -04:00
Jérémie Laval da2f5156b2 Add testcase to ensure unobserved exception on Task are correctly propagated 2011-07-27 18:12:23 -04:00
Jérémie Laval e3578fe451 Makes AggregateException ToString output closer to .NET one 2011-07-27 18:03:28 -04:00
Jérémie Laval 036c395d3c Fix AggregateException behavior 2011-07-27 18:03:24 -04:00
Jérémie Laval 474417efb7 Allow using a worker number that is greater than Environment.ProcessorCount for parallel loops. 2011-07-27 16:24:08 -04:00
Atsushi Eno 23263e537f Fix wsdl import wrt element qname (!= type name). 2011-07-27 21:05:56 -07:00
Jeffrey Stedfast c98cedfc91 Don't invoke libc uname() on non-Unix systems 2011-07-26 18:41:49 -04:00
Mark Probst 2228af8148 [sgen] Use the proper object size when scanning arrays from a card table.
Using the block object size is incorrect since we might scan beyond
the end of the array.
2011-07-26 18:28:23 +02:00
Mark Probst c6bbff5b5e [sgen] Make the card table on AMD64 correct for 64 bit nursery addresses. 2011-07-26 18:25:46 +02:00
Mark Probst 1b58ec73aa [sgen] Make mono_sgen_safe_object_get_size() handle forwarded objects.
This is sometimes called on forwarded objects from the major collector
during finalization.  Now it doesn't crash anymore.
2011-07-26 18:24:09 +02:00
Miguel de Icaza f49164bf76 Fix invocation to syslog 2011-07-25 19:10:07 -04:00
Atsushi Eno 1ae6c346f6 Fix bug #16: use Owner node instead of Parent. Patch by Martin Potter. 2011-07-26 04:25:00 +09:00
Sebastien Pouliot 45064beb94 Fixed decoding of PKCS/CMS message with detached ContentInfo. Pull request from Pablo Ruiz Garcia <[email protected]> 2011-07-25 10:32:46 -04:00
Duane Wandless 8bd7d107a8 Fix crash on Lion when exiting 2011-07-24 15:59:41 -03:00
Geoff Norton d465c35811 Fix configure check for darwin to support all variants 2011-07-24 15:59:40 -03:00
Zoltan Varga fcff387c6a Fix a crash in the soft-float decompose code when a branch following an fcompare is optimized away. Fixes #705186. 2011-07-24 20:45:24 +02:00
Atsushi Eno 513122c74e Avoid possible duplicate xmlns output. Fixes xsp-based hosting somehow. 2011-07-22 14:04:08 +09:00
Atsushi Eno d68521e673 Fix bug #703910 - implement Order support in XmlSerializer. 2011-07-21 04:58:51 +09:00
Marek Safar c5302ba6b6 Merge pull request #135 from eue/mono-2-10
-checked command-line option
2011-07-20 01:10:43 -07:00
Martinho Fernandes 70352e16a9 Test for bug #706877 2011-07-20 09:02:23 +01:00
Martinho Fernandes 150ea5489d [Fix] Command-line option -checked now works (bug #706877)
The -checked option was not being considered in the BuilderContext.
Now it is set on construction of BuilderContext to the value from RootContext.
2011-07-20 09:01:24 +01:00
Atsushi Eno dd4afcfa02 fix build regarding ContentType. 2011-07-19 10:03:37 +09:00
Atsushi Eno a15e2d0bec support action parameter in SOAP 1.2 content type. Close pull request #133. 2011-07-19 02:30:11 +09:00
Rodrigo Kumpera 1e7567b332 Merge pull request #132 from ngraziano/fb497cbb6503c2a0913fddba700079608bcd8892
"make dist" do not work in branch mono-2-10
2011-07-18 07:19:38 -07:00
Atsushi Eno 1dba37de1c Fix bug 704813: just ignore members of type IEnumerable`1 without Add(). 2011-07-16 06:51:45 -07:00
Rodrigo Kumpera bfdd13a52c If a thread abort is fatal, print the exception before dying. 2011-07-15 18:16:36 -03:00
Rodrigo Kumpera a26b65f6b3 Improve stacktraces when facing a runtime invoke wrapper.
* mini-exceptions.c (mono_handle_exception_internal_first_pass):
	Don't trim the trace list if we find a filter clause from a wrapper.
	This makes stacktraces across MRI's work.
	Extract trace trimming into a macro to reduce code duplication.
2011-07-15 18:10:40 -03:00
Rodrigo Kumpera 36f12fc250 Avoid a .cctor on the initialization path. 2011-07-12 19:50:46 -03:00
Rodrigo Kumpera 8c253ee6c3 Add shared_perfcounters option to enable minimal. 2011-07-12 19:50:44 -03:00
Nicolas Graziano fb497cbb65 Correct the include files Platform is not in test. 2011-07-12 16:01:05 +02:00
Rodrigo Kumpera 11bacf8e1b Do DISABLE_PORTABILITY more agressively. 2011-07-12 01:35:35 -03:00
Zoltan Varga 2599353bc0 Add a test for 7cb704d9a9. 2011-07-12 03:19:10 +02:00
Zoltan Varga 9f92b788d8 Avoid register allocation problems when a try clause is nested inside a handler block. 2011-07-12 02:09:27 +02:00
Zoltan Varga c584c82e0d Fix the length of r4const on arm. 2011-07-11 17:11:00 +02:00
Zoltan Varga aa4803c5a4 Fix caching in mono_marshal_get_array_address (). 2011-07-11 00:25:52 +02:00
Zoltan Varga 816556dbb8 Use TARGET_ANDROID instead of PLATFORM_ANDROID in one place. 2011-07-11 00:25:50 +02:00
Zoltan Varga d9ecc66fb6 Really fix the -Wno-unused-but-set-variable check. 2011-07-11 00:25:49 +02:00
Zoltan Varga f333e91d0a Clean up the cross-compile configure.in code. Add a TARGET_ANDROID define. 2011-07-11 00:25:49 +02:00
Rodrigo Kumpera f87620d145 Fix signal chaining to handle a stupid previous handler. 2011-07-09 13:40:43 -03:00
Rodrigo Kumpera 8bd567de14 Arm has MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX. This gives us nice stacktraces on unhandles exceptions. 2011-07-09 13:40:36 -03:00
Rodrigo Kumpera 28a61a5d55 Disable the exception thread under iOS since it's neither needed nor working. 2011-07-09 13:40:29 -03:00
Atsushi Eno d25c23dc46 Full equivalence comparison is unnecessary for MessageEncoder ContentType.
based on https://github.com/mono/mono/pull/130
2011-07-09 06:52:43 +09:00
Jeffrey Stedfast 481881bdf7 Reverted previous commit, struct sizes vary way too much between platforms 2011-07-06 18:20:20 -04:00
Jeffrey Stedfast 44ab43948a Use a struct utsname when calling uname() instead of an 8K buffer 2011-07-06 18:07:34 -04:00
Jeffrey Stedfast 643c0f0cba Add System/Platform.cs to *System*.dll.sources 2011-07-06 13:30:06 -04:00
Jeffrey Stedfast da0d698fce Make internal Platform class static 2011-07-06 12:43:49 -04:00
Jeffrey Stedfast 6f1458dea4 Load the correct type on MacOSX (as opposed to iOS) 2011-07-06 12:04:34 -04:00
Jeffrey Stedfast 72e554c612 Implemented a shared way to detect MacOSX for System.dll 2011-07-05 17:50:21 -04:00
Jeffrey Stedfast e54a124e71 Doh, do proper OSX detection 2011-07-05 17:00:16 -04:00
Jeffrey Stedfast 62e6bd03f6 Use runtime checks to decide to use CoreFoundation.CFNetwork.GetDefaultProxy() 2011-07-05 16:30:50 -04:00
Jeffrey Stedfast be2e765af8 On MonoTouch, call CoreFoundation.CFNetwork.GetDefaultProxy() to get the default proxy 2011-07-05 13:56:51 -04:00
Marek Habersack c5b95f4bbb [asp.net] Added FormsAuthentication.Timeout 4.0 property 2011-07-01 00:01:19 +02:00
Jb Evain b8e85ce171 Fix handling of null in the non generic implementation of EqualityComparer. Fixes 703027. 2011-06-30 01:25:34 +02:00
Jackson Harper a2b093a9a1 We can accidently swallow out of FD errors here since this function is called from a threadpool thread. 2011-06-28 23:25:15 -04:00
Atsushi Eno 8481eefe9f Implement support for Stream param with WebHttpBinding raw content format. 2011-06-28 20:45:37 +09:00
Atsushi Eno 9f612740f7 Implement support for generic data contract type name with "{x}". 2011-06-28 18:03:49 +09:00
Jb Evain cb4b62c04b Fix queryable enumerable expression transformation 2011-06-23 00:33:09 +02:00
Jb Evain c51e257674 Don't emit null queryable constants when rewriting linq queries, fix #701187 2011-06-23 00:20:13 +02:00
Sebastien Pouliot 40ca71a120 Merge pull request #119 from konrad-kruczynski/SslStreamNoTimeout
Removed hard coded timeout for SslStreamBase.
2011-06-22 06:25:06 -04:00
Michael Hutchinson cc81b58a0e Fix the cairo dllmap on OS X 2011-06-20 14:48:19 +01:00
XTZGZoReX 70640f232b Socket: Fixed a security issue when default-initialized ArraySegment structs are passed in.
This is the same security issue that was recently addressed in MS.NET.
2011-06-19 19:02:34 -04:00
Gonzalo Paniagua Javier 949e910102 Fix crash when there's a \' in the arguments.
Fixes crash when calling Process.Start on a file with a ' in the path
	when UseShellExecute is set to false.

	Patch by Tom Philpot.
2011-06-15 15:36:23 -04:00
Sebastien Pouliot 395aae632d Fix remaining moon-unit failures wrt Sockets changes
* System.Net.Sockets/Socket_2_1.cs: Ensure RemoteEndPoint is always
available after ConnectAsync (connected or not, allowed or not).
Ensure the Connect event is fired even if denied by policy.
2011-06-15 15:36:09 -04:00
Sebastien Pouliot ce9ff91f78 Fix copy-paste error in git 17085447
* System.Net.Sockets/Socket_2_1.cs: Fix some moved code (from
SocketAsyncEventArgs.cs) so should the references to RemoteEndPoint
still point to the SocketAsyncEventArgs instance. Fix some moon-unit
test failures
2011-06-15 15:36:09 -04:00
Zoltan Varga f1861e5cbe Apply a workaround for a gcc 4.6 problem on arm. 2011-06-15 17:31:35 +02:00
Atsushi Eno 79bca55588 Set "Encoder" property when Message was read from MessageEncoder. 2011-06-14 19:19:06 +09:00
Atsushi Eno 3e48da364b finally implement Message.ToString() as in expected form.
Regressions on this method has caused several unpredictable errors,
so I avoided this for somewhat long time...
2011-06-14 18:46:12 +09:00
Atsushi Eno 8b88042311 Flush some ongoing changes for XmlSerializer support in svcutil. 2011-06-14 18:01:07 +09:00
Rodrigo Kumpera 352e7d076d Allow AssemblyRef flags to have at least ECMA's values. Fixes #684613. 2011-06-13 16:38:59 -03:00
Atsushi Eno d4a6887c31 Fix 2.0 build. 2011-06-13 21:36:47 +09:00
Atsushi Eno 6813d3f09b Implement OnWriteBodyContents() and add message buffer support for RawMessage. 2011-06-13 20:07:53 +09:00
Marek Habersack 81d20479d4 [asp.net] Construct properly rooted paths when assigning values from resources 2011-06-13 12:39:23 +02:00
Zoltan Varga 1ff53bb1ba Add an assert to detect TLS mismatches between the aot compilation and runtime environment. 2011-06-12 18:47:17 +02:00
Sebastien Pouliot 927a76eb30 Fix namespace and avoid looping once ctor is found 2011-06-12 12:25:23 -04:00
Sebastien Pouliot 050abd469f Refactor MonoMac's MarkNSObjects substep so it can be reused in other products 2011-06-12 12:25:04 -04:00
Jb Evain 127c3bf6e0 update tuner 2011-06-12 12:24:41 -04:00
Jb Evain cbd9da1acf update tuner 2011-06-12 12:24:14 -04:00
Zoltan Varga 71b1425fd5 Fix the check for the -Wno-unused-but-set-variable gcc option. 2011-06-11 15:35:06 +02:00
Zoltan Varga 89424f5b25 Disable the -Wunused-by-set-variable warning supported by newer gcc versions. 2011-06-11 15:35:06 +02:00
Rodrigo Kumpera 86d31a6e3f Fix darwin-arm build. 2011-06-09 13:55:23 -03:00
Zoltan Varga 84265522ed Fix a corner case where an inlined bblock which had its next_bb set was the last bblock in a method. Fixes #693905. 2011-06-04 15:24:38 +02:00
Jonathan Pryor 662a9ac8f7 Allow Android'd support_boehm=no to work.
The AC_ARG_ENABLE(boehm, ..., ..., support_boehm=yes) resulted in
support_boehm always being 'yes', even for `--host=arm-linux-androidabi`,
which was not the intention. Using `support_boehm=${support_boehm:-yes}`
generates correct behavior.
2011-06-03 17:19:43 -04:00
Jonathan Pryor 33068b3d07 Simplify building with the Android NDK.
Check --host against *-*-linux-android* for Android-specific configure fixes,
and improve **/Makefile.am to simplify Android support:

	./configure \
		--build=`./config.guess` \
		--host=armv5-linux-androideabi \
		--target=armv5-linux-androideabi \
		--enable-nls=no --with-mcs-docs=no --enable-mcs-build=no \
		CC="/path/to/ndk/arm-linux-androideabi-gcc --sysroot=/path/to/sysroot" \
		AR="..." AS="..." CPP="..." CXX="..." LD="..." RANLIB="..." STRIP="..."
		CFLAGS="-DARM_FPU_NONE=1" CXXFLAGS="-DARM_FPU_NONE=1"

See also Android NDK docs/STANDALONE-TOOLCHAIN.html.

The Android NDK/bionic is "interesting", in that it's lacking header files and
macros normally present on Linux which otherwise break the build (e.g. no
<link.h> which breaks Boehm support).  Using --host with an android target
works around the known issues, simplifying the building of libmonosgen-2.0.so
with the Android NDK toolchain.
2011-06-03 16:58:08 -04:00
Atsushi Eno db9f31cbd1 Support RemoteEndpointMessageProperty. 2011-06-03 19:47:40 +09:00
Zoltan Varga 5b3336a997 Fix the previous change. 2011-06-03 12:29:17 +02:00
Zoltan Varga 6920d7ce86 Fix NOMAP32BIT support in specific trampolines. 2011-06-02 23:42:46 +02:00
Rodrigo Kumpera 1da10df16c Handle a vtable layout corner case.
class.c (mono_class_inflate_generic_method_full_checked): Don't
	inflate a method if the provided context won't change it.
	This change, in particular, avoid inflating a generic method
	of a non-generic class if the context has class only vars.

	This fixes #696593 as the above was causing the vtable of
	Class3 ending up with an inflated Class1::Method<> that
	comes from inflated Class2<object> parent.
	Then the parent override pass would collect a non-inflated
	Class1::Method<> overide that would then not match the one
	on the vtable causing Class3 to have an abstract method on
	its vtable and thus failing to load.

	Big explanation means tricky change, might break tons of stuff.
2011-06-01 15:04:34 -03:00
Atsushi Eno 7f2cf89aeb Support WebHttpBinding configuration. 2011-05-31 20:58:05 +09:00
Atsushi Eno 3e629f2ac7 Ref parameter was not covered by ParameterInfo.IsOut. Fixed bug #696784. 2011-05-31 18:55:09 +09:00
Rodrigo Kumpera 3c5a13fa39 Properly handle field RVA under moving collector.
* reflection.c (typebuilder_setup_fields): Alloc RVA data
	on the image mempool so it works with a moving collector.

	Fixes #696817
2011-05-30 18:34:03 -03:00
Rodrigo Kumpera 46c26749eb Fix sgen under xen 2011-05-30 12:23:35 -03:00
Atsushi Eno a2d8112081 Add test for XmlMembersMapping.TypeName and .Namespace (not very useful yet...) 2011-05-27 17:30:12 +09:00
Atsushi Eno bb331ddde1 Fill type info in MessagePartDescription from XmlSerializer-based wsdl importer.
It still needs some fixes to import message elements.
2011-05-27 17:27:01 +09:00
Rodrigo Kumpera 300bc2d4b0 Fix mul_imm under amd64 2011-05-25 15:09:28 -03:00
Marek Habersack f88fba3cbd [asp.net] Don't throw an exception if a session item being released does not have a lock.
It can happen when the item is being released after its associated session has ended.
2011-05-24 11:14:33 +02:00
Atsushi Eno 7b58e280a5 Support named wildcard in UriTemplate matching. Fixed bug #693996. 2011-05-23 20:32:11 +09:00
Atsushi Eno 8dd637646f Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203. 2011-05-23 19:29:28 +09:00
Atsushi Eno 77625cbc89 Allow DocumentType in ImportNode().
http://lists.ximian.com/pipermail/mono-devel-list/2011-May/037575.html
2011-05-19 13:18:20 +09:00
Marek Habersack b122da385a [asp.net] Ignore JavaScript blocks enclosed in HTML comments 2011-05-19 03:37:44 +02:00
Marek Habersack eac15568e2 [runtime] When shadow-copying assemblies, use the io portability function to find the file.
This is necessary in situations when managed code pases case-insenstive file name and the
file on disk uses different case. stat(2) would return an error in such situation and, in effect,
the stat structure would get invalid/random values in its fields.
2011-05-18 22:05:40 +02:00
Atsushi Eno fb67d391a3 Check invalid recursion of xs:group use. Fixed bug #650117. 2011-05-18 01:11:34 +09:00
Marek Habersack 7129d57c22 [asp.net] Fix for bug #650847. Output both tagged and untagged UpdatePanel names in AJAX responses.
Also, update panels which rendered empty string are included in the output.
2011-05-16 16:15:03 +02:00
Atsushi Eno 9e88fe782a Do not import xs:any member as XmlElement[]. Create a wrapper class instead.
Part of bugfix #670945.
2011-05-16 18:47:11 +09:00
Atsushi Eno 91de42214b (manually) Merge pull request #101 from occ/master
Decimal support to XmlBinaryDictionaryReader
2011-05-16 16:41:27 +09:00
Zoltan Varga 02b82fb567 Avoid a crash in Field:GetRawConstantValue () if the field type couldn't be loaded. Fixes #693894. 2011-05-15 13:05:14 +02:00
Atsushi Eno 9fc2d82c3b Implement XmlSerializerMessageContractImporter, round 2.
This time it is XmlSerializer-based, got it somewhat working.
2011-05-14 01:30:21 +09:00
Atsushi Eno 1aebe941ef Do not take host part into consideration on comparing URLs.
It blocks access by different host name (e.g. localhost vs. IP).
This was part of bugfix #687580 (forgot to commit).
2011-05-13 21:55:30 +09:00
Atsushi Eno 9c1b923e99 Implement WsdlContractConversionContext, and ignore message importer for now. 2011-05-13 21:48:41 +09:00
Atsushi Eno 6adda4d4c0 Revert previous XmlSerializerMessageContractImporter implementation.
XsdDataContractImporter is not XmlSerializer-based, while this class is.
2011-05-11 18:42:45 +09:00
Atsushi Eno 5a8f29cbcc Add PipeException. fixed bug #692987 by Eberhard Beilharz. 2011-05-11 16:56:58 +09:00
Atsushi Eno aa2208afee Fixed orders in XmlSchemaObjectTable and got some S.R.Serialization tests working. 2011-05-11 16:37:04 +09:00
Atsushi Eno a1e3732cef CanImport() just returns false, without throwing error. 2011-05-10 22:04:10 +09:00
Atsushi Eno 8bb3b4db45 support import of xs:anyType, as well as make couple of minor fixes. 2011-05-10 21:47:58 +09:00
Atsushi Eno 240c0124a6 Fix common issue in MetadataSet - call MoveToContent() while iterating nodes. 2011-05-10 20:00:38 +09:00
Atsushi Eno 52965a2b9d Add new MetadataSetTest and fix couple of minor issues. 2011-05-10 19:36:26 +09:00
Atsushi Eno bed33dd66b Revive this test by implementing mock web server. 2011-05-10 19:36:16 +09:00
Atsushi Eno c0f3997eaf Add (not-working) callback instance context mode test and FIXME comment. 2011-05-10 19:36:05 +09:00
Atsushi Eno 29adf41cc2 Update XsdDataContractImporter.CanImport and implement ImportXmlType. 2011-05-10 17:42:03 +09:00
Atsushi Eno 0f6b274a8e ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 23:00:39 +09:00
Atsushi Eno 34b7d3a84d Multiple schemas in wsdl could share same SourceUri, so check more identity.
Part of bugfix #670945.
2011-05-09 19:12:09 +09:00
Atsushi Eno 3afbf58c92 Allow xsi:nil for void. Fixed client side of bug #687580. 2011-05-09 13:52:09 +09:00
Atsushi Eno 9193bf8f3f Now our HttpListener can listen to wildcard prefix safely.
Fixed server part of bug #687580.
2011-05-09 13:43:12 +09:00
Rodrigo Kumpera 2b487789c8 Workaround io-layer crashing when the runtime exit without cleaning up everything.
* handles.c (handle_cleanup): When the runtime exit(), not
	everything is shutdown and the main thread might be waiting
	on other threads to finish. On this case, io-layer cleanup
	with assert as a mutex will be in use.
	The work-around is to be lenient to busy resources during
	shutdown.
2011-05-07 00:13:11 +02:00
Lluis Sanchez 6b6ce9bd43 [Web Services] Fix regression caused by previous commit
Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
2011-05-06 18:45:30 +02:00
Veerapuram Varadhan fbe4e20182 [ado.net]bugfix:688773 - Assign default value to columns that does not
exist in the row that is being imported.
2011-05-06 00:06:23 +05:30
Veerapuram Varadhan d753eb1861 [ado.net]bugfix:681916 - Based on patch by Scott <[email protected]>
- Handle null values for parameter types varbinary(max) and/or image
2011-05-06 00:05:31 +05:30
Veerapuram Varadhan aac2016aa9 [mono]bugfix:663287 - Validate the type of value against underlyingtype
instead of nullableType.
2011-05-06 00:03:42 +05:30
Veerapuram Varadhan 2ec26f2e77 [ado.net][OracleClient] - Fixes calling size_t native parameters by
passing UIntPtr reference types and hence, solves 32/64 bit and
little/big-endian issues.
2011-05-05 23:51:14 +05:30
Veerapuram Varadhan 9e48c8a2b0 [bugfix][ado.net]Fixes 663914 - Restore original column data for
unchanged columns during deserialization.
2011-05-05 23:41:39 +05:30
Marek Habersack f1ab82a7e8 [corlib] Do not cache disposed resource sets. 2011-05-04 23:33:11 +02:00
Marek Habersack c4a3ecad74 [asp.net] Do not retrieve script's URL in RegisterScriptReference if script.Path is set. 2011-05-04 23:33:04 +02:00
Martin Baulig 844d678cba Add socket timeouts to the soft debugger.
SDB now support setting a send/receive timeout on the client's side
of the communication socket.  To make this work, the server sends
a special 'keepalive' event when using receive timeouts.

There's a new method VirtualMachine.SetSocketTimeouts() to enable
this feature.
2011-05-03 13:53:37 +02:00
Rodrigo Kumpera d3c5cc1fe5 Add regression test for #691057 2011-05-03 02:58:48 -03:00
Rodrigo Kumpera 01cf5ded25 Fix a couple of issues on Mono.Simd.
* local-propagation.c (mono_local_deadce): Don't perform
	reverse copyprop on simd insert ops. The backend requires
	dreg and sreg1 to match.

	* mini-x86.c (mono_arch_output_basic_block): Fix insert_r8_slow
	for the X element.

	Fixes a few bugs due to #691057
2011-05-03 01:23:20 -03:00
Zoltan Varga 399a6c779e Implement BSTR icalls even when COM is disabled. Fixes #690255. 2011-05-03 01:03:43 +02:00
Gonzalo Paniagua Javier 516cbf29c4 Don't set NoDelay twice. 2011-05-02 12:12:09 +02:00
Jb Evain 63fc3530b9 Fix non net_4_0 profiles build 2011-05-02 11:58:52 +02:00
Jb Evain 0ae09ac40d Properly check the maxstacksize asked for the Thread 2011-05-02 11:46:09 +02:00
Zoltan Varga c9cb0a918b Fix support for parameters with generic constraints in Type.IsAssignableFrom (). Fixes #691119. 2011-05-02 09:41:18 +02:00
Geoff Norton c538edd457 Avoid doubly declaring some types in the 2.1 profile for mobile 2011-04-30 11:48:59 -04:00
Gonzalo Paniagua Javier 718f02e0d3 Fix prefix selection
We were picking the wrong prefix when the URL matched the path.
	Fixes bug #688860.
2011-04-30 11:34:54 +02:00
Gonzalo Paniagua Javier f3560b3f22 Support FTP + RETR + proxy
Fixes bug #690887.
2011-04-30 11:08:55 +02:00
Gonzalo Paniagua Javier 8b18364cfb Missed this in the backport 2011-04-30 06:59:20 +02:00
Geoff Norton e7ff9bcf14 Remove debug spew 2011-04-29 17:52:33 -04:00
Geoff Norton 546a888f91 [boehm] Avoid a ENOMEM when allocating across an unallocated page
A very rare allocation pattern could cause the boehm free list to call
the GC_unmap_gap function, which actually calls down into munmap().
Darwins virtual memory manager will return a KERN_INVALID_ADDRESS
which is translated into a ENOMEM, if mprotect attempts to change
the protection of a range which includes an unallocated page.
We address this by just mmap() back to ANON, instead of actually
unallocating the page.
2011-04-29 16:23:15 -04:00
Gonzalo Paniagua Javier b0c3795ac4 [webclient] Process uri.UserInfo when present
If there are no crendetials, the Uri might have them.
	Based on a patch by QuickJack.
	Fixes bug #688007.
2011-04-29 11:55:17 +02:00
Geoff Norton 19f4433ef2 Avoid a needless buffer copy that is susceptible to overflow 2011-04-28 23:05:15 -04:00
Zoltan Varga b09e63d792 Fix loading from volatile base addresses in the LLVM backend. Fixes #690020. 2011-04-28 23:46:42 +02:00
Zoltan Varga 5e04bc52bb Revert "Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533."
This reverts commit 046ff98055.

This seems to break smcs.exe.
2011-04-28 22:28:00 +02:00
Lluis Sanchez 2773f9f10a [Web.Services] Add support for optional parameters
Non-nullable web service parameters can be made optional by
adding an additional parameter with the same name and a
'Specified' suffix. This was supported when serializing
classes, but not when serializing web service parameters.
This might fix bug 688496.
2011-04-28 18:34:16 +02:00
Atsushi Eno cf183438ee Looks like xs:any is allowed under certain condition in XsdDataContractImporter.
But I don't understand why :(
2011-04-28 23:41:43 +09:00
Atsushi Eno c18ad33d44 moonlight does not like XmlSchemaType but nasty code in KnownTypeCollection :( 2011-04-28 22:10:06 +09:00
Atsushi Eno 9956130fa2 ...and do return Type for all known xs:* types in XsdDataContractImporter. 2011-04-28 20:33:47 +09:00
Atsushi Eno 50ad936a80 Do not reject xsd:* types that are not listed in KnownTypeCollection.
e.g. xs:token.
2011-04-28 20:09:05 +09:00
Atsushi Eno acb4203da5 support <service>-less wsdls in svcutil. Look for portTypes instead. 2011-04-28 19:54:48 +09:00
Atsushi Eno a6e6fbbeb3 Extend supported XmlDateTimeSerialization formats. Fixed bug #690475. 2011-04-28 17:37:33 +09:00
Atsushi Eno 02e0ab3df8 XmlSerializer code generator was generating wrong char literal.
Fixed bug #673019.
2011-04-28 15:44:18 +09:00
Gonzalo Paniagua Javier a66df5bf91 [socket] More BeginConnect (IPAddress []) work
When trying multiple addresses, the second and sucessive calls to
	BeginConnect(IPAddress) will cause an error which we would have to
	ignore and then retry. Since this behavior is not documented, we just
	close the socket and open a new one for retries is there is already a
	pending connect attempt.
2011-04-28 00:18:35 -04:00
Gonzalo Paniagua Javier ef49022f97 [Socket] Improved ConnectAsync
ConnectAsync() now uses the improved BeginConnect.
2011-04-28 00:18:35 -04:00
Atsushi Eno 4d2ff35b88 Remove non-existent test source (it is only in master). 2011-04-28 12:45:13 +09:00
Atsushi Eno 1e08457302 Handle fault messages in duplex callback channel. 2011-04-27 20:59:18 +09:00
Atsushi Eno 59dd3fcfe8 Use FindCritera/ResolveCriteria Duration properties for DiscoveryEndpoint timeout. 2011-04-27 15:43:46 +09:00
Atsushi Eno 35a659b435 Log UDP messages (using System.ServiceModel internals via IVT). 2011-04-27 15:43:39 +09:00
Gonzalo Paniagua Javier 01fff28591 If there's a delayed exception, clear 'ares' 2011-04-26 23:44:12 -04:00
Gonzalo Paniagua Javier acad9c91d0 Worked on linux, failed on OSX 2011-04-26 22:05:49 -04:00
Marek Habersack ea73a5a1e4 [asp.net] CreateChildControls is internal only when compiling system.web tests 2011-04-26 21:14:35 +02:00
Jérémie Laval 6c5f273c3f Fail gracefully when CancellationToken has been created uninitialized by user.
Also add corresponding unit test.
2011-04-26 17:03:26 +02:00
Jérémie Laval 512ca45eb9 Add CancellationToken unit tests 2011-04-26 17:03:26 +02:00
Jérémie Laval 67c3b641c2 Honors correctly canceled ctor parameter of CancellationToken 2011-04-26 17:03:26 +02:00
Gonzalo Paniagua Javier bb61f41996 Reset the blocking flag as soon as possible. 2011-04-26 11:03:00 -04:00
Gonzalo Paniagua Javier 8dfa7d2c7e [socket] Fixed other BeginConnect overloads
The BeginConnect overload taking an IPAddress[] was not really
	asynchronous.
2011-04-26 11:03:00 -04:00
Zoltan Varga 046ff98055 Modify fixup_cattrs () to handle a corner case where a cattr is created using a MonoCMethod instead of a ConstructorBuilder. Fixes #689533. 2011-04-26 13:26:54 +02:00
Atsushi Eno cde89bb093 Fix monodroid/monotouch build. 2011-04-26 19:39:10 +09:00
Gonzalo Paniagua Javier 9eb77b093b [Socket] Fix BeginConnect
Windows/Linux flagged the socket as writable even when connect() has
	not been called. On *BSD and OSX, this was not the case and we waited
	forever.

	Now, for blocking sockets, we make them blocking and call connect()
	before adding the socket to the wait pool.
2011-04-26 00:05:26 -04:00
Gonzalo Paniagua Javier 5e40958c3b In *AllLines use WriteLine instead of Write.
This fixes bug #689670.
2011-04-25 16:23:17 -04:00
Atsushi Eno 82b1e211f8 Log net.tcp transport messages too. 2011-04-25 18:31:01 +09:00
Atsushi Eno 3fd521bd7d Make our own simple log format actually diagnostics-compatible.
So MS ServiceTraceViewer.exe can open our log now.
2011-04-25 18:30:50 +09:00
Atsushi Eno cdc0fc4d45 Document MONO_WCF_TRACE environment variable. 2011-04-25 16:25:39 +09:00
Atsushi Eno 43c40b6f3d minor diagnostic log format brush up. 2011-04-25 16:15:08 +09:00
Atsushi Eno 2e5417f5bd Actual source directory changes after changing namespaces. 2011-04-25 15:57:59 +09:00
Atsushi Eno 247cef557f More nettcp namespace changes. 2011-04-25 15:57:49 +09:00
Atsushi Eno 0f328b26c0 Move NetTcp namespace to internal one. 2011-04-25 15:57:38 +09:00
Atsushi Eno 415027eedd Enable environment-controled output on non-moon profile too. Add error logging. 2011-04-25 15:38:39 +09:00
Miguel de Icaza 1223efd9ce Do not go beyond our string boundaries 2011-04-23 12:54:57 -04:00
Atsushi Eno 27e1844bb9 Log HTTP reply Message too. Make logging customizible on under the moon.
Logging is done only when requested by MOON_WCF_TRACE=[stdout|stderr]
environment variable.
2011-04-23 02:09:11 +09:00
Marek Habersack 054738b20f Fix compilation 2011-04-22 14:02:39 +02:00
Marek Habersack 58a60f9e5e [asp.net] Do nothing if null SessionStateStoreData is passed to SessionStateServerHandler.SetAndReleaseItemExclusive 2011-04-22 12:36:11 +02:00
Marek Habersack df413084ff [asp.net] Inform user about all exceptions thrown during HttpRuntime static initialization 2011-04-22 11:55:35 +02:00
Marek Habersack b029f4e97e [asp.net] Implemented composite scripts support in System.Web.Extensions 2011-04-22 11:55:15 +02:00
Zoltan Varga 4b98bcb536 Fix AOT support for isinst_with_cache wrappers. Fixes #687865. 2011-04-22 03:40:58 +02:00
Geoff Norton c597bb43ac We support hard breakpoints on arm, not sure why this is here at all 2011-04-21 15:00:42 -04:00
Atsushi Eno f66017dd16 Use XPathNavigator output in WCF diagnostics. Got sorta-valid message trace. 2011-04-21 21:12:48 +09:00
Atsushi Eno 0990c54b02 Fix wrapper elements. It should be <TraceData><DataItem>... 2011-04-21 21:09:48 +09:00
Atsushi Eno 1cf432ed50 XmlWriterTraceListener supports XPathNavigator as non-escaped xml output. 2011-04-21 20:56:09 +09:00
Marek Safar eb9c5951e6 [688891] Keep same TypeParameter ctor syntax 2011-04-21 10:11:11 +01:00
Marek Safar 6a1de942e0 [688891] Copy type parameters for base proxy method 2011-04-21 10:08:42 +01:00
Atsushi Eno b62fb2816f Use xmlns-ignoring XmlDocument derivation for config files. Fixed bug #641935. 2011-04-21 17:47:49 +09:00
Atsushi Eno d3a50832b1 RooArray types were rejected as unknown when it is at root. Fixed bug #688414. 2011-04-21 16:22:09 +09:00
Atsushi Eno d911500226 Get real fix for bug #687902. Revert request processor IDisposable.
and handle session shutdown when creating InstanceContext.
Also add note on DisposeInstance(), which got me stuck.
2011-04-20 19:15:15 +09:00
Atsushi Eno 657c31a31b Ongoing service channel closing fix and session management in ChannelDispatcher.
It is part of bugfix 687902.

To get the bug fixed, the new "using" sections in ChannelDispatcher.cs to
explicitly dispose channels. But this causes regression in PerSession-based
tests. So some new session management code is (likely) required as well.

It will also alter "mixed" MaxConcurrentCalls and MaxConcurrentSessions with
correct management code.
2011-04-20 16:57:58 +09:00
Miguel de Icaza 851c79f6e6 Prevent crash on scripts that do not contain the #! line 2011-04-19 22:52:39 -04:00
Zoltan Varga 3fedcf496b Allow storing managed pointers into 'native int' in the JIT, fsharp generates code without a conv.i. Fixes #688008. 2011-04-19 22:45:29 +02:00
Gonzalo Paniagua Javier 1562106ccd [HttpListener] Fix matching directories
/foo was not properly matched.
	Fixes bug #688353.
2011-04-19 13:56:39 -04:00
Marek Safar 90922a746d [687282] Fixes cross references of nested anonymous methods which don't start at parameters level block 2011-04-19 13:06:12 +01:00
Lluis Sanchez e54906aaf2 Fix ICollection.CopyTo in the Stack class 2011-04-19 13:51:55 +02:00
Gonzalo Paniagua Javier 6f9f05df58 [HttpWebRequest] Fix half-baked commit
Fixes bug #688100.
2011-04-18 10:57:21 -04:00
Marek Habersack ce3b0b7564 [asp.net] ScriptResourceHandler must correctly encode script literals. 2011-04-18 13:23:28 +02:00
Atsushi Eno a9777b31fc Empty XmlReader message caused failure on buffereed copy. 2011-04-18 17:22:21 +09:00
Zoltan Varga 7dcacbb5bf Fix Object.MemberwiseClone () on arrays. Fixes #688033. 2011-04-17 23:49:33 +02:00
Gonzalo Paniagua Javier 5f8f48145d [webclient] Only set the credentials when they are not null.
Setting the credentials to null makes FtpWebRequest throw.
	Fixes bug #688007.
2011-04-17 13:58:59 -04:00
Sebastien Pouliot b8052728ea backport pull request for 2.10.2 2011-04-17 10:07:12 -04:00
Marek Habersack 3f823404fc [asp.net] MinimizableAttributeTypeConverter only converts from strings.
It returns a boolean 'false' when the passed string matches (case-insensitively) 'false' or
is empty, returns 'true' otherwise.
All the other types (and a null value) cause it to throw the NotSupportedException.
2011-04-16 02:12:48 +02:00
Rolf Bjarne Kvinge e3658fe73e [corlib] Ensure Thread.ManagedThreadId is unique per thread.
This fixes bug #667329.

The problem was that ManagedThreadId was created from a per-appdomain
counter, but stored in a per-thread storage, so if two threads could
end up with the same ManagedThreadId if a second appdomain executed
on the second thread first.
2011-04-15 22:11:09 +02:00
Marek Habersack 3f43883b30 [asp.net] Fix for bug #685116. AJAX post-back which redirects the browser does not need a Page or ScriptManager instance 2011-04-15 21:57:20 +02:00
Atsushi Eno c9f2555f4a Prepare for HostNameComparisonMode support (i.e. incomplete).
This is for bugfix #687580.
2011-04-16 01:07:19 +09:00
Atsushi Eno 8fa55bb406 Return null for empty message in WebMessageFormatter. Useful eror messages. 2011-04-15 23:52:15 +09:00
Atsushi Eno ea78b00406 Some argument check in TextMessageEncoder. 2011-04-15 23:52:04 +09:00
Atsushi Eno fb2c69e852 Use correct MessageVersion instead of Default for empty response.
Part of bugfix #687580.
2011-04-15 21:32:05 +09:00
Atsushi Eno 26536ad29f Prefer immutable string return for ease of debugging in UriTemplate. 2011-04-15 20:04:30 +09:00
Atsushi Eno 24702d5e64 Fix regression for counter case to 6005f0a7.
http://localhost/x + X should not result in http://localhost/xX.
2011-04-15 16:45:34 +09:00
Atsushi Eno 79bf69008d Implement support for KnownTypeAttribute.MethodName. 2011-04-15 15:42:52 +09:00
Atsushi Eno 0d20226656 Flush XmlWriter and TextWriter so that incomplete changes are not lost. 2011-04-15 14:57:56 +09:00
Atsushi Eno e4f59e1fa0 One more step to enable WCF diagnostics in Logger, and add HttpReplyChannel log. 2011-04-15 14:48:11 +09:00
Gonzalo Paniagua Javier bf77046abc Clearing the queue messed up with the per-domain job count
Fixes bug #687399.
2011-04-14 15:25:59 -07:00
Marek Habersack 985f57d2b4 [asp.net] Fix for bug #685267. ClientScriptManager generates correct post-back event reference for cross-page post-backs. 2011-04-14 22:42:09 +02:00
Marek Habersack aca8c70648 [asp.net] Shorten code in WebConfigurationHost 2011-04-14 20:51:07 +02:00
Marek Habersack be8a6afd4a [asp.net] Fixed a thinko in one of the previous commits 2011-04-14 20:50:59 +02:00
Atsushi Eno b313b63718 Add ServiceKnownTypeAttributeTest. 2011-04-14 15:23:09 +09:00
Atsushi Eno 80238cef2f ServiceKnownTypeAttribute.MethodName was used way different to lookup method. 2011-04-14 14:58:03 +09:00
Martin Baulig 776a4cb2b5 Oooops, it's supposed to be 'if (!strcmp (...))' ! 2011-04-13 20:18:43 +02:00
Marek Habersack a96c5dd131 [asp.net] Make web.config path check test case-insensitive 2011-04-13 16:57:53 +02:00
Marek Habersack c79e051d35 [asp.net] A more effective way of looking for web.config 2011-04-13 16:57:46 +02:00
Marek Habersack 0adb5a6dbf [runtime,IO] Filesystem entries can only be sought for in directories, not files. 2011-04-13 16:57:40 +02:00
Atsushi Eno 64ba822460 Fix wrong TraceEventType values passed. 2011-04-13 02:23:18 +09:00
Martin Baulig db59c744af Ooops, also enable explicit nulls. 2011-04-12 07:02:07 +02:00
Zoltan Varga d0ecf17cec Avoid putting a seq point at the beginning of finally clauses, they already have one. Fixes #686269. 2011-04-11 23:18:31 +02:00
Zoltan Varga 86b0b2afed Revert "Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438."
This reverts commit c5c488ec9d.

This seems to break IronRuby.
2011-04-11 19:38:52 +02:00
Martin Baulig db9d1fffba Add "soft breakpoint" support for ARM.
There is some broken hardware like the HTC Desire HD where we can't
use any signals for single-stepping and breakpoints.

See http://baulig.blogspot.com/2011/04/limiting-page-faults-on-htc-desire-hd.html
for details.

To work around this, we read from a variable instead us using trigger
pages.
2011-04-11 17:48:47 +02:00
Zoltan Varga c5c488ec9d Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438. 2011-04-10 20:46:23 +02:00
Gonzalo Paniagua Javier 11cee69b5f [HttpWebRequest] Ignore Transfer-Encoding when there's no content.
If the transfer encoding was set to chunked, we tried to read even when
	the response might known to have no content. This led to timeouts.

	Fixes bug #686371.
2011-04-09 15:18:18 -04:00
Atsushi Eno 0dd62ba176 Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods. 2011-04-08 21:40:01 +09:00
Atsushi Eno 40f9aba00f Add XmlSerializerFormatAttribute support in mobile profiles.
Unlike moonlight, XmlSerializer is in the framework lib (sys.xml), so we don't
have to split them out to Sys.Xml.Serialization.dll.
2011-04-08 16:01:11 +09:00
Atsushi Eno 643148f131 Temporarily disable InternalsVisibleTo(Sys.Xml.Serialization). 2011-04-08 13:46:47 +09:00
Gonzalo Paniagua Javier 099d0f0e34 Remove printf 2011-04-07 21:32:44 -04:00
Miguel de Icaza 9187dbc0d9 Revert broken patch 34f18b68 that caused random bugs in assembly loading, but could crash the runtime as well 2011-04-07 21:15:53 -04:00
Miguel de Icaza a9c68584df Add test to prevent future problems, this fixes the random MacOSX crashes with assembly loading, but likely everywhere else as well 2011-04-07 21:15:53 -04:00
Zoltan Varga 50dadb263b Revert "Disable SMP on arm until #683409 is fixed."
This reverts commit 29550902ee.

This is now longer needed as #683409 is fixed.
2011-04-07 22:20:24 +02:00
Zoltan Varga 1106b9be5f Pass HAVE_ARMV6 to libgc on darwin too. 2011-04-07 22:19:32 +02:00
Zoltan Varga ec6e3150f8 Add a membar to libgc's UNLOCK () on arm. Fixes #683409. 2011-04-07 22:16:29 +02:00
Atsushi Eno 824336a958 Split XmlMessagesFormatter out. It is for use in Sys.Xml.Serialization.dll.
XmlMessagesFormatter will be used in Sys.Xml.Serialization.dll and this
type should not be excluded by !NET_2_1 or !MOONLIGHT. It is not doable
if this class is in BaseMessagesFormatter.cs.
2011-04-08 00:22:38 +09:00
Atsushi Eno 5a414980ea Add InternalsVisibleTo(Sys.Xml.Serialization.dll) to Sys.ServiceModel in 2.1. 2011-04-08 00:13:03 +09:00
Atsushi Eno 7215e2b879 Fix moonlight_raw build in Sys.Xml.Serialization.dll (NIE!) 2011-04-07 23:29:28 +09:00
Atsushi Eno 12d359a6c4 DataContractSerializerOperationBehavior is done too. Fix moonlight_raw build. 2011-04-07 22:02:42 +09:00
Atsushi Eno 182883c4ba Some XmlSerializerFormatAttribute and XmlSerializerOperationBehavior refactoring. 2011-04-07 19:20:59 +09:00
Atsushi Eno 1ed5a802a9 HttpRequestChannel should also return CookieContainer in NET_2_1 profile.
Fixed bug #683642.
2011-04-07 12:34:54 +09:00
Gonzalo Paniagua Javier b0a314db2c [HttpWebResponse] Close and Dispose are different beasts.
After calling Close () on response you are still allowed to access its
	properties. Calling Dispose() causes the usual exception to be thrown
	when accessing the properties.

	Fixes bug #685368.
2011-04-06 23:02:03 -04:00
Zoltan Varga 4234f30930 Disable SMP on arm until #683409 is fixed. 2011-04-07 01:30:37 +02:00
MrUnleaded 12de169c29 Fix that corrects a mishandling of UInt64's. 2011-04-06 18:45:36 -04:00
Atsushi Eno cafcafe8d7 Looks like .NET accepts non-integer numbers as int. Smells bogus though. 2011-04-06 22:03:58 +09:00
Atsushi Eno 9dd0c9aaa0 auto-detect UTF16-LE too. 2011-04-06 20:22:11 +09:00
Marek Habersack 8e5e7a293e [DynamicData] Use different web.config for 2.0 and 4.0 tests 2011-04-06 11:07:17 +02:00
Gonzalo Paniagua Javier e430abe428 [eglib] The last argument can be empty and quoted.
Fixes bug #669303.
2011-04-06 02:04:59 -04:00
Atsushi Eno 8ed33a951d Fix build, looks like ArrayList is internally available in moon. 2011-04-05 23:07:34 +09:00
Jérémie Laval ef74fcb6bb Protect entering ReaderWriterLockSlim upgradable mode against async exceptions. 2011-04-05 15:25:34 +02:00
Marek Habersack 98cf1c90d4 [asp.net] Fix for bug #684803. XmlSiteMapProvider must take its root node into account when matching an URL. 2011-04-05 14:36:46 +02:00
Atsushi Eno aacbe2f237 Collection support in JSON serializer was actually for any IEnumerable. 2011-04-05 20:57:06 +09:00
Atsushi Eno 7ac57f726f Revert PushbackReader changes (was unnecessary and actually bogus). 2011-04-05 20:27:28 +09:00
Atsushi Eno 89fee7d373 null value also outputs "type='null' in WCF JSON writer. 2011-04-05 19:49:18 +09:00
Atsushi Eno 3d56703e92 Auto-detect text encoding from input stream for JsonReader. Fix DBCS pushback. 2011-04-05 18:24:02 +09:00
Atsushi Eno 53523879e8 IDictionary`2 serialization support was missing in DataContractJsonSerializer.
Fixed bug #685042.
2011-04-05 13:21:44 +09:00
Marek Safar 7290370f37 [666033] Fixes Mono.WebBrowser versioning
[backported by shana]
2011-04-04 18:46:08 +01:00
Jb Evain 5923bba0bf Fix net_2_0 build 2011-04-04 16:02:27 +02:00
Atsushi Eno c8a824af78 unlike told by docs.mono-android.net Trace does not exist in mobile profile. 2011-04-04 22:56:47 +09:00
Atsushi Eno bb3e8d2323 Add WCF diagnostics implementation (not working yet). 2011-04-04 20:58:44 +09:00
Kenneth Skovhede 2c74b21642 Fix the handling of the '%f' descriptor in DataConverter.Unpack (). Fixes #683712. 2011-04-03 06:33:52 +02:00
Marek Habersack 3e7bd993d8 [asp.net] 2.0 standalone tests must have the MONO_TESTS_IN_PROGRESS variable exported in the environment 2011-04-03 00:04:33 +02:00
Tomasz Kubacki ffbdeac062 [asp.net] HttpApplication.InitOnce must ensure that HttpApplication.Context does not return null.
HttpApplication.Context != null is assumed by System.Web.WebPages.WebPagesHttpModule Init method
2011-04-03 00:04:27 +02:00
Atsushi Eno e72666919a fix wrong attempt to add restricted headers in HttpRequestChannel. 2011-04-02 11:30:09 +09:00
Marek Habersack e57e16fee4 [asp.net] Store new heap size when shrinking it. Thanks to Rodrigo Kumpera for noticing it!
This should fix the IndexOutOfRangeError which occur after heap exceeds 8192 elements and is then
shrunk below that value.
2011-04-02 02:38:36 +02:00
Rodrigo Kumpera af23f3ee26 Fix thread restart under mach.
* sgen-gc.c (restart_threads_until_none_in_managed_allocator):
	On mach we used to simply call thread_suspend/thread_resume
	without updating the thread context, which would result in
	sgen getting hang.
2011-04-01 19:10:08 -03:00
Rodrigo Kumpera 1e137b7fcb Extract suspend code from mono_sgen_thread_handshake.
sgen-os-mach.c (mono_sgen_thread_handshake): Extract
	suspend code into new function mono_sgen_suspend_thread.
2011-04-01 19:01:58 -03:00
Rodrigo Kumpera 5340b41cd1 Use constant stack space for STW under darwin.
* sgen-gc.h: Since darwin doesn't use signals to
	stop the target threads, we must reserve space for
	register in SgenThreadInfo.

	* sgen-os-mach.c (mono_sgen_thread_handshake): Don't
	alloca inside the loop. Make sure each thread registers
	are copied to the right place.
2011-04-01 18:38:17 -03:00
Rodrigo Kumpera 11c5664fb4 Leverage SgenThreadInfo::mach_port.
* mach-support-*.c (mono_mach_arch_get_tls_value_from_thread):
	This function now receives pthread_t instead of mach_port
	as argument, so avoiding an expensive call to
	pthread_from_mach_thread_np.

	* sgen-os-mach.c (mono_sgen_thread_handshake): Loop over
	the registered threads insted of asking the kernel to enumerate
	them. Avoid calling pthread_from_mach_thread_np which takes
	a lock and is O(n) on the number of threads.
2011-04-01 18:18:02 -03:00
Rodrigo Kumpera 59d034e8a7 Store the mach port on SgenThreadInfo 2011-04-01 17:24:09 -03:00
Rodrigo Kumpera b178109c1e Fix win32 file name canonicalization.
* mono-path.c (mono_path_canonicalize): Properly canonicalize
	non UNC paths with an extra backslash. Eg:
	c:\foo\\bar was been canonicalized to c:\\foo\bar.

	This was breaking assembly loading in some rare cases.
2011-04-01 17:00:05 -03:00
Atsushi Eno a2a78ecc5d A bit less !NET_2_1 and !MOONLIGHT in Sys.ServiceModel.Web. 2011-04-02 04:11:09 +09:00
Atsushi Eno c540e335c3 Less !NET_2_1/!MOONLIGHT to improve SL4 WCF compatibility. 2011-04-01 20:45:47 +09:00
Marek Habersack b7aaf47762 [asp.net,routing] Fix for bug #682869. RouteCollection.MapPageRoute is a 4.0 thing 2011-04-01 13:41:04 +02:00
Marek Habersack b80dca6c9b [wcf] Unbreak the build (Assembly.IsDynamic is a 4.0 thing) 2011-04-01 13:34:51 +02:00
Marek Habersack 3dd79d0752 [mvc3] Part of fix for bug #683339. Override more NameValueCollection methods.
Without those overrides, merging collections in System.Web.HttpParamsCollection fails.
2011-04-01 11:55:34 +02:00
Marek Habersack a8cb34edbf [system] Part of fix for bug #683339. NameValueCollection.Add (NameValueCollection) must call the Get* overloads instead of BaseGet*
Otherwise classes wrapping NameValueCollection will not be able to intercept the Add call which leads to errors in MVC3's
FormCollection.
2011-04-01 11:55:28 +02:00
Alan McGovern 812ee3308e [log profiler] Keep correct stats about gchandles
We were not keeping track of allocated/destroyed/alive gchandles in the
log profiler. It only ever reported the number of handles alive at the
end of the profiling run and that was misreported as the output claimed
this was the number of gchandles created.
2011-04-01 10:34:12 +01:00
Atsushi Eno 53c2bea069 Implement ConfigurationName support for ChannelFactory.
It is required for MoonlightDrtViewer bugfixing.
2011-04-01 18:25:10 +09:00
Peter Gerbrandt e56d2c760b Fix contract description for contracts with deep inheritance hierarchy. 2011-04-01 14:21:00 +09:00
Louis Salin 3e9df709c8 TraceData and TraceEvent methods must pass a new instance of TraceEventCache 2011-03-31 09:09:41 -04:00
Louis Salin 1bd073b713 implement getter and setter for HostContext property 2011-03-31 09:09:40 -04:00
Gonzalo Paniagua Javier e60acb3ab0 Remove printf's 2011-03-30 22:27:25 -04:00
Gonzalo Paniagua Javier 6c94fea797 Revert "Fix a typo in Directory.GetFiles ()"
This reverts commit 5bbd6c23f8.
2011-03-30 21:04:35 -04:00
Zoltan Varga a4ae5ad77a Add some checks to the ActivationServices:AllocateUninitializedClassInstance () icall to avoid instantiating interfaces/abstract types. 2011-03-30 16:05:32 +02:00
Martin a8ef691b71 [asp.net] Fix for bug #658184. AuthorizationRule restores its Action when unmerging. 2011-03-30 12:21:54 +02:00
Marek Habersack 047b8446d4 [DataAnnotations] Implemented the Validator and CustomValidationAttribute 4.0 classes 2011-03-30 10:19:44 +02:00
Rodrigo Kumpera 66b152ffe0 Cast p to char* since the offset is in byte units. 2011-03-30 00:44:32 -03:00
Zoltan Varga 7f3f7f3d28 Fix the previous change. 2011-03-30 05:26:42 +02:00
Zoltan Varga fcd76072e0 Call SleepEx in a loop in the Thread.Sleep () icall, to avoid a race when the sleep is interrupted. Fixes #683519. 2011-03-30 05:07:47 +02:00
Vincent Povirk b4e8b39a6e System.Windows.Forms.Mime: Use freedesktop.org only on Unix platforms. 2011-03-29 21:10:51 -04:00
Gonzalo Paniagua Javier e22f04bbdc Reset BytesTransferred on every reuse. 2011-03-29 13:46:38 -04:00
Ankit Jain ebab6e9fad [xbuild] Allow skipping target framework moniker lookup.
* tools/xbuild/xbuild/4.0/Microsoft.Common.targets
(GetReferenceAssemblyPaths): Don't look up framework directories
for $(TargetFrameworkMoniker) is $(_TargetFrameworkDirectories) is
already defined. This can be used to override moniker lookups.
2011-03-29 18:48:35 +05:30
Gonzalo Paniagua Javier fe220bb14f Fix vasprintf() for empty strings.
James Bellinger entered bug #682963 and he ended up debugging it and
	providing the solution.
2011-03-28 23:25:18 -04:00
Andrew Jorgensen 2af17e6d19 mono-sgen-gdb.py should be installed conditionally 2011-03-28 16:37:38 -06:00
Gonzalo Paniagua Javier 5bbd6c23f8 Fix a typo in Directory.GetFiles ()
The mask never matched the attributes and all files were discarded.
	This fixes bug #683203.
2011-03-28 17:48:41 -04:00
Andrew Jorgensen 320abe5356 Bump to 2.10.2 2011-03-28 12:27:26 -06:00
Zoltan Varga cee9574eec Remove some unused fields from MonoDynamicGenericClass. 2011-03-28 15:01:24 +02:00
Atsushi Eno 6cc6d1f172 Cosmetic corcompare-based updates in Sys.SM.Web. 2011-03-28 21:18:17 +09:00
Atsushi Eno fd0bfb7e2e Looks like WCF serializer supports XmlNode, so we do as well.
for details: http://msdn.microsoft.com/en-us/library/aa347876.aspx

Fixed bug #682957.
2011-03-28 17:11:30 +09:00
Zoltan Varga 8f8e0a9b6e Fix a case where class->instance_size was not set for dynamic classes. 2011-03-28 08:25:01 +02:00
Atsushi Eno 71f131be40 null JSON type must be handled in JsonWriter. 2011-03-26 21:28:06 +09:00
Atsushi Eno c96c5db231 Do not always assume ascii == 1 byte in JsonWriter. Fix utf-16 usage. 2011-03-26 21:01:37 +09:00
Atsushi Eno 4e0819daab XStreamingElement should be covered in WriteTo(). It's not derived from XNode. 2011-03-26 19:27:14 +09:00
Atsushi Eno 07ddd5f698 Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
2011-03-26 19:15:42 +09:00
Marek Habersack 9ec474d427 [asp.net] HtmlForum.Name rendering updates + test updates 2011-03-25 22:49:51 +01:00
Marek Habersack 0810ccda41 [asp.net] Fix for bug #681553. Look for direct child controls before calling up on the NamingContainer 2011-03-25 14:22:52 +01:00
Rodrigo Kumpera f7a4dbc112 Avoid an infinite loop on broken utf16.
* gutf8.c (g_utf16_to_utf8): Increase the input counter
	when encountering broken surrogates head or tails to
	make sure we don't end in an infinite loop.
2011-03-24 23:21:46 -04:00
Gonzalo Paniagua Javier a247e53faa Avoid 'comparison always true...' 2011-03-24 23:21:10 -04:00
Gonzalo Paniagua Javier c86ebb4da5 Merge branch 'threadpool-2-10' into mono-2-10 2011-03-24 23:00:15 -04:00
Marek Habersack b225c4736c [asp.net] Fix for bug #681164. Page.InitOutputCache ignores calls with duration <= 0
It is ok to ignore such calls for two reasons - the cache with duration <= 0 will not
be effective anyway and the @OutputCache directive throws an exception for duration <= 0
2011-03-24 23:35:18 +01:00
Atsushi Eno 992872bb5d Fix serialization test build that depended on compiler contravariance bug. 2011-03-24 18:05:16 +09:00
Gonzalo Paniagua Javier a4d5c71207 .gitignore 2011-03-23 17:09:08 -04:00
Gonzalo Paniagua Javier 958ce2ba14 [windows] Avoid creating a thread in init 2011-03-23 17:08:52 -04:00
Gonzalo Paniagua Javier 82e0de5779 [windows] Make the connect hack work again. 2011-03-23 17:08:43 -04:00
Gonzalo Paniagua Javier 6e20527322 Revert "Replace old connect hack with _pipe on windows."
This reverts commit 1691837400.
2011-03-23 17:08:36 -04:00
Gonzalo Paniagua Javier 9c4c7d85e0 Revert "Remove unneeded function and use same code for win/lin"
This reverts commit 59c30ca79c.
2011-03-23 17:08:27 -04:00
Gonzalo Paniagua Javier c52ce4b572 Remove unneeded function and use same code for win/lin 2011-03-23 17:08:04 -04:00
Gonzalo Paniagua Javier 5b9892f071 Replace old connect hack with _pipe on windows. 2011-03-23 17:05:38 -04:00
Gonzalo Paniagua Javier 60f34bbaed --version shows kqueue now. 2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier ff39c58bac [threadpool] Don't start all the IO threads on first request.
The IO threadpool behaves as the regular one now: threads are created
	on demand up to the default and then they are throttled based on load
	unless Set(Min|Max)Threads is used.

	Fix the stack size for threadpool threads when Set(Min|Max)threads is
	used.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier 249e6665eb Some changes to the threadpool
-Reduce stack size for IO threads.
	-Create threads on demand up to min_threads, then throttle.
2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier 3cd7aaf9c8 [threadpool] Add support for kqueue asynch. IO. 2011-03-23 16:57:15 -04:00
Gonzalo Paniagua Javier 40d02e9a1d [threadpool] Split the socket code in separate files. 2011-03-23 16:57:14 -04:00
Miguel de Icaza 725ac8d811 Make this OSX specific instead 2011-03-23 10:12:20 -04:00
Marek Habersack b34102015d [runtime] Fix compilation 2011-03-23 10:12:16 -04:00
Miguel de Icaza b311360048 OSX, Win32: Implements support for DriveInfo
This implements support for DriveInfo for OSX and Windows.

On OSX we use statfs system call that provides the filesystem
type information that we need.   On Linux, we continue to fallback
to mtab parsing
2011-03-23 01:56:58 -04:00
Miguel de Icaza 20808baa2c Add OSX support to the io-layer: supports getting a list of mounted file systems, and OSX-specific file system types 2011-03-23 01:56:47 -04:00
Miguel de Icaza b78ad6ad48 Add Environment.IsMacOS for handling OSX specific bits in corlib 2011-03-23 01:56:39 -04:00
Marek Habersack b93091c617 [asp.net] Fix for bug #681421. Use VirtualPathProvider.CombineVirtualPaths
The method is used by the parsers to look up dependencies, sources, controls
and master pages.
2011-03-22 21:29:17 +01:00
Marek Habersack d6b8fed5be [asp.net] Use List <string> instead of ArrayList to keep assembly locations in TemplateParser 2011-03-22 21:29:11 +01:00
Marek Habersack f12d23c5cc [asp.net] Use List <string> instead of ArrayList to keep file dependencies 2011-03-22 21:29:04 +01:00
Jb Evain f7bbde7bb5 Fix output of local variable names in debugging symbols 2011-03-22 16:00:29 -04:00
Geoff Norton 0e15d77a17 Set SO_REUSEADDR on listening sockets 2011-03-22 15:52:08 -04:00
Gonzalo Paniagua Javier 4e01dad1f8 [HttpListener] request.Url.Original string matches MS now.
Fixes bug #681548.
2011-03-22 12:57:12 -04:00
Gonzalo Paniagua Javier 406d680f31 [HttpListener] Match exceptions from MS on cleanup.
When the listener is aborted or closed, we get different exceptions
	depending on whether there's a GetContext() call in progress or not.
2011-03-22 12:56:51 -04:00
Zoltan Varga 7bde20118b Implement OperatingSystem.ServicePack. Fixes #681552. 2011-03-22 17:16:28 +01:00
Gonzalo Paniagua Javier 3a7370aefc [threadpool] Avoid the infame assert in mono-wsq.
Fixes bug #677746.
2011-03-22 11:52:18 -04:00
Gonzalo Paniagua Javier 2087d7c1a1 [msvc] New mono.def 2011-03-22 11:22:21 -04:00
Gonzalo Paniagua Javier ed57d90570 [HttpListener] Fix keep-alive connections
We were removing the connection in the wrong place.
	Also unbind the context in other error situations like a read failure
	after the headers are in.
2011-03-22 11:22:21 -04:00
Gonzalo Paniagua Javier fc3f496d1b [windows] Update create-defs.pl
Library is now mono-2.0, exclude mono_gc_pthread_* from the output.
2011-03-22 11:22:21 -04:00
Atsushi Eno 39ece5f8c7 Remove unexpected CWL. 2011-03-22 15:35:36 +09:00
Gonzalo Paniagua Javier b5b8d4a42e [windows] Wrong LoadLibrary being called.
We were calling LoadLibraryA instead of the W version.
2011-03-21 23:27:48 -04:00
Gonzalo Paniagua Javier 792bd0b4e3 [windows] Get rid of a lot of warnings 2011-03-21 23:27:47 -04:00
Gonzalo Paniagua Javier e8e244f839 [windows] Avoid creating a thread in init. 2011-03-21 18:16:59 -04:00
Veerapuram Varadhan bb58f668b3 [bugfix][ado.net odbc]Fixes #676368 - make it thread safe to release
underlying statement handles and check for the validity of the same
before attempting to release them.  Fixes random crashes.
2011-03-22 01:08:22 +05:30
Zoltan Varga ecdf344983 Fix the length of 'break' on ppc. 2011-03-21 20:07:57 +01:00
Jérémie Laval 6623fc543d Revert fcbb5717c1 and implement it differently.
The commit had the good idea but since some values of the enumeration overlap it broke the correct behavior. Instead we now turn off the extra options and use the previous way to check.
2011-03-21 13:30:52 +01:00
Geoff Norton 1e38c9d065 Add some missing types to the mobile profile 2011-03-20 21:53:26 -04:00
Jb Evain 30719eac23 [linker] always preserve System.MonoCQItem 2011-03-20 20:27:29 +01:00
Miguel de Icaza be791133e9 Merged compile fix from master 2011-03-18 22:22:14 -04:00
Rafael Munitic ba41a4afc3 Must pass null to overloaded constructor instead of wrapper lambda (TaskCompletionSource can use overloaded constructors and it will pass null in function argument) 2011-03-18 18:22:24 -04:00
Rafael Munitic 7001015c8a Continuation options should be checked as flags 2011-03-18 18:20:12 -04:00
Rafael Munitic cb86a2cae2 If the function is null Wait will not get called and will not check if Future is in faulted state/raise the exception 2011-03-18 18:19:42 -04:00
Koushik Dutta 2023fd51cf Fix bug where if a task is Start-ed with a specific scheduler,
that scheduler is ignored if it is in a thread owned by another
scheduler. Tasks should not be locked to the scheduler that
owns the calling thread.

Fix bug where TryExecuteTask does not actually try to execute
the task. Instead, TryExecuteTaskInline is called, which is
abstract. The TpScheduler implementation, the default, then
calls the internal method Task.Execute which then actually
executes the task. The problem with this is that only 3rd
party schedulers, can't actually execute a task, thus making
extending TaskScheduler impossible. (Unless they use some
serious Mono specific reflection hacks as I am now.)
2011-03-18 17:59:52 -04:00
Mark Sciabica ee0c82f938 Fix exception handling on windows x64. 2011-03-18 18:00:34 +01:00
Atsushi Eno f66c15fa4c XamlType lookup from xml name failed when [XmlnsDefinition] is involved. 2011-03-18 15:59:30 +09:00
Gonzalo Paniagua Javier 870a168078 Fix the host name returned in GetHostEntry.
GetHostEntry() was setting the HostName to the last IP address returned
	for the requested host name.
2011-03-18 01:27:12 -04:00
Zoltan Varga f1e5ff5830 Switch to the domain of the assembly in question while executing CMD_ASSEMBLY_GET_TYPE, so referenced assemblies are found. Fixes #679586. 2011-03-17 20:08:04 +01:00
Rodrigo Kumpera ec56b2399e Revert "[io-layer] Handle process waits when SHM is disabled."
This reverts commit 2bb69090d7.
2011-03-17 18:05:30 +01:00
Rodrigo Kumpera 98567347b0 Revert "[io-layer] Make my previous patch signal safe."
This reverts commit c183437b77.
2011-03-17 18:05:16 +01:00
Gonzalo Paniagua Javier d1ef9e9bc0 [asp.net] Return the correct Mime type for 304. 2011-03-17 12:50:08 -04:00
Marek Habersack 1d15cb6eab [asp.net] Test for bug #655474 2011-03-17 16:37:49 +01:00
Marek Habersack 2f6c884c39 [asp.net] Fix for bug #655474. Don't assume an Uri being serialized is an absolute one 2011-03-17 16:20:23 +01:00
Marek Habersack 3007742461 [asp.net] Test compilation fix for System.Web.Extensions 2011-03-17 16:20:06 +01:00
Marek Habersack dd02160e29 Removed debug noise 2011-03-17 15:41:33 +01:00
Marek Habersack 04ceb5cec2 [asp.net] Fix for bug #678473. Do not map paths of absolute file paths when passed to HttpRequest.WriteFile 2011-03-17 15:36:46 +01:00
Marek Habersack 4c251cb528 [asp.net] Fix for bug #670714. Menu is rendered correctly in 4.0 now (highlighting works) 2011-03-17 15:12:46 +01:00
Atsushi Eno f29c6b4014 Fix build; remove extra !NET_2_1. 2011-03-17 21:15:50 +09:00
Atsushi Eno 5d3bd4296d net.tcp Sized message with non-binarysession encoding should work now.
(Untested checkin.)
2011-03-17 20:05:43 +09:00
Atsushi Eno 7b4e9fe3b3 Support encoding record other than binary session in TCP channel frame reader. 2011-03-17 19:29:56 +09:00
Gonzalo Paniagua Javier e127fbdbc8 [Threadpool] Handle multiple calls to cleanup
Don't fail if mono_thread_pool_cleanup() is called more than once.
	Fixes bug #678662.
2011-03-17 02:00:10 -04:00
Marek Habersack da38ea1a3c [asp.net] Fix for bug #670874. Match request URLs against precompiled dictionary using absolute paths. 2011-03-17 01:53:37 +01:00
Zoltan Varga 80b18e5e78 Fix the title of the Mono.Debugger.Soft assembly monodoc. 2011-03-17 01:28:04 +01:00
Marek Habersack b08fcbf349 [asp.net] Fixes bug #676008. HtmlForm 'name' attribute rendering fixes.
The 'name' attribute is rendered using the static ID of 'aspnetForm' if
the form is in a naming container other than the Page control. Inside Page,
the form's ID is rendered. The attribute is output in .NET 4.0 only if control
rendering compatibility is less than 4.0
2011-03-17 00:56:34 +01:00
Gonzalo Paniagua Javier 4448207b46 [io-layer] Don't use Get/SetLastError after wapi shutdown.
handle_cleanup() is called at exit and might try to clean things up
	twice, causes a WSANOTUNITIALISED and then a segmentation fault trying
	to use a pthread key that has already been freed.
2011-03-16 16:12:01 -04:00
Gonzalo Paniagua Javier c183437b77 [io-layer] Make my previous patch signal safe. 2011-03-16 13:45:16 -04:00
Marek Habersack 0bc62c64f2 [asp.net] Fix for bug #668696. Handle recursive locks gracefully. 2011-03-16 16:19:05 +01:00
Zoltan Varga f9f20656d9 Fix support for generic virtual thunks in full-aot. 2011-03-16 14:44:38 +01:00
Zoltan Varga 1cf96c874c Add a cache for virtual generic thunks to avoid freeing those created by AOT. 2011-03-16 14:40:41 +01:00
Atsushi Eno 2e938cedc3 Enable behaviors in mobile profiles for WebHttpBinding. 2011-03-16 20:54:57 +09:00
Atsushi Eno 8aae8a860c Enable more behavior interface member in NET_2_1. 2011-03-16 20:52:50 +09:00
Atsushi Eno 72c9964603 Enable more behaviors use in NET_2_1 land, toward WebHttpBinding. 2011-03-16 20:43:24 +09:00
Atsushi Eno 045c255762 Implement more encodings than binary frame with dictionary, in TCP manager.
(not known to not regress in nunit tests..)
2011-03-16 20:34:05 +09:00
Atsushi Eno 441e34087e Fix MessageID element name in discovery contracts. 2011-03-16 20:31:37 +09:00
Jérémie Laval b754115f2b Don't throw an exception when task array is empty in WaitAll and throw in case a null element is encountered in it.
Fix for #679183
2011-03-16 09:34:38 +01:00
Jérémie Laval 94398a1154 Correctly implement enumerating CyclicDequeue.
Fix #679174
2011-03-16 09:33:29 +01:00
Atsushi Eno cf3968f176 Add endpoint behavior support in NET_2_1, which involved not a few additions. 2011-03-16 17:22:25 +09:00
Gonzalo Paniagua Javier 6101dfa1e7 Fix g_get_charset for windows.
Patch by Horst Kakuschke that fixes bug #660412.
2011-03-16 02:00:39 -04:00
Gonzalo Paniagua Javier 2bb69090d7 [io-layer] Handle process waits when SHM is disabled.
When SHM is disabled, handle SIGCHLD and either fill the info for the
	process handle or just wait for the process to avoid zombies.
	Fixes bug #668867.
2011-03-16 01:51:55 -04:00
Jason Cohen 32c89f8e51 [asp.net] Fix for bug #678705. Menu list rendered properly closes the list now. 2011-03-16 02:31:34 +01:00
Bassam Tabbara 733baa249e [asp.net] Fix for bug #667513. Implement support for PathInfo in Route.GetRouteData 2011-03-16 01:11:58 +01:00
Jb Evain 1fc9d8bd0b Handle conversion to System.Enum 2011-03-15 22:20:00 +01:00
Gonzalo Paniagua Javier c596b87264 [Semaphore] Remove warnings 2011-03-15 16:29:02 -04:00
Veerapuram Varadhan 51ede8ef25 [bugfix]672113 - Make a copy of constraint columns array 2011-03-15 20:24:10 +05:30
Atsushi Eno 92d8d69c21 avoid NRE on non-binary encoding use in TcpTransport. 2011-03-15 21:07:25 +09:00
Gonzalo Paniagua Javier 7ccc860767 Appdomain refs can be NULL in pop_refs
This fixes a bunch of test I broke with my previoius commit.
2011-03-14 22:51:21 -04:00
Kornél Pál a19eee8543 [asp.net] Fix for bug #650695. Implements the System.Web.{HttpNotFoundHandler,HttpNotImplementedHandler} classes. 2011-03-14 23:47:18 +01:00
Zoltan Varga f00f059724 Avoid calling class cctors during JITting when the same class needs initialization more than once during a method. Fixes #679467. 2011-03-14 23:09:33 +01:00
Gonzalo Paniagua Javier db74186f65 [HttpListener] Avoid contention
-Lock-free reads from registered listeners.
	-Don't register the context until *all* the setup steps are done.
2011-03-14 18:00:11 -04:00
Lucas Meijer d6b8f09a9b Implmement a private BinaryFormatter.DefaultSurrogateSelector, which enables embedders who want to make a sandbox, to specify a default surrogate selector, which is required to get System.Serialization be able to operate within a CoreCLR environment. 2011-03-14 17:34:20 -04:00
Geoff Norton be077e583a Fix the mobile build 2011-03-14 16:11:24 -04:00
Geoff Norton 0a8951258f Fix the mobile build 2011-03-14 15:43:29 -04:00
Mark Probst adaeb6075b Merge branch 'sgen-disable-gc' into mono-2-10 2011-03-14 19:25:31 +01:00
Gonzalo Paniagua Javier 6c25b86257 Add new ignore file. 2011-03-14 14:09:17 -04:00
Gonzalo Paniagua Javier 1d602e9364 [threads] appdomain_refs push/pop speedup
Replace the GSList with an array to avoid malloc/free on every push/pop
	call.
2011-03-14 14:03:22 -04:00
Gonzalo Paniagua Javier a8985dc3ec Cache NewLine per AppDomain. 2011-03-14 14:02:00 -04:00
Gonzalo Paniagua Javier 1756d9ea31 [threadpool] Added dynamic concurrent queue implementation
Replace the big lock around the list+array used to queue work items
	with a dynamic concurrent queue to reduce contention.
2011-03-14 14:02:00 -04:00
Atsushi Eno 63e2c4a403 Enable DTD attdecl processing in mobile profile. 2011-03-15 00:46:23 +09:00
Peter Gerbrandt 35c7e0b062 Apply DataContractSerializerOperationBehavior. 2011-03-14 12:18:46 +09:00
Ankit Jain e49c454e06 [xbuild] Microsoft.Common.targets - import Before/After targets files.
With this, Microsoft.Common.targets will import
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*
at the beginning of the file and
$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*
at the end of the file.

So, this would import all files from (eg.):
$prefix/lib/mono/xbuild/4.0/Microsoft.Common.targets/ImportBefore/

This can be disabled by setting the bool properties -
$(ImportByWildcardBeforeMicrosoftCommonTargets) and
$(ImportByWildcardAfterMicrosoftCommonTargets).
2011-03-12 02:14:20 +05:30
Ankit Jain 1b676d2766 [xbuild] Throw ArgumentNullException if target name is null 2011-03-12 02:14:18 +05:30
Ankit Jain a0e8d07f2b [xbuild] Emit list of projects in the .sln.proj
Emit list of projects in the solution as @(ProjectReference) items
in the generated .sln.proj file. This would be useful for extending
solution builds.
2011-03-12 02:14:17 +05:30
Ankit Jain 9aee6ad25d [xbuild] Don't report Imports ignored because of false conditions. 2011-03-12 02:14:15 +05:30
Ankit Jain f00c5a545b [xbuild] xbuild/Main.cs - remove unnecessary catch/throw. 2011-03-12 02:14:13 +05:30
Ankit Jain 7d67acee8b [xbuild] Set ProjectFile and TargetName metadata on target outputs.
Set "MSBuildProjectFile" and "MSBuildTargetName" metadata on target outputs.
2011-03-12 02:14:12 +05:30
Ankit Jain 30cf8768c4 [xbuild] Handle unknown exceptions.
Re-throw any unknown exceptions.
* Project.cs: Log the exception, doing it here also, so that direct
project.Build(..) call failures also get logged.
* Engine.cs: Log the unknown exception only if the build is running.
This allows for the case when Project.Build caught it and ended the
build.
2011-03-12 02:14:10 +05:30
Ankit Jain 64c827f318 [xbuild] Function names are case insensitive. 2011-03-12 02:14:08 +05:30
Ankit Jain f13dcb35bf [xbuild] Evaluate Import with MSBuildThisFile* properties set. 2011-03-12 02:14:07 +05:30
Ankit Jain 85f294ee2f [xbuild] Fix test on windows.
AssignTargetPathTest.TestLink : Fix test on windows
2011-03-12 02:14:05 +05:30
Ankit Jain 0e091a62fa [xbuild] Clean up test logs.
Remove unnecessary debug spew for tests that pass.
2011-03-12 02:14:03 +05:30
Gonzalo Paniagua Javier 42e4086945 Add to .gitignore 2011-03-11 02:03:46 -05:00
Gonzalo Paniagua Javier 7590b8bb30 [HttpListener] Paranoid cleanup 2011-03-11 02:00:33 -05:00
Gonzalo Paniagua Javier 455746a0ce Test for both Set-Cookie and Set-Cookie2 2011-03-11 01:59:28 -05:00
Gonzalo Paniagua Javier 371bc51b1c [HttpWebRequest] Only uppercase known methods 2011-03-11 01:59:20 -05:00
Gonzalo Paniagua Javier badc22bbae [Socket] Remove more auto-delegates 2011-03-11 01:59:11 -05:00
Gonzalo Paniagua Javier 2d7a5669d2 [Timer] Use static CB for invoking timer callbacks. 2011-03-11 01:59:05 -05:00
Gonzalo Paniagua Javier 89209acd58 [Socket] Minimize allocations of delegates 2011-03-11 01:58:55 -05:00
Gonzalo Paniagua Javier 9a4bd9308e [HttpListener] Avoid blocking in FlushInput 2011-03-11 01:58:40 -05:00
Gonzalo Paniagua Javier 3527ec8621 [HttpListener] Plug leak. 2011-03-11 01:47:00 -05:00
Gonzalo Paniagua Javier e812234121 Support NLS when opening assemblies on windows.
Patch by Horst Kakuschke that fixes bug #673793.
2011-03-10 22:16:25 -05:00
Geoff Norton b8397a6eeb Fix ARCH_STORE_REGS on arm 2011-03-10 16:28:22 -05:00
Gonzalo Paniagua Javier be0b6c8933 [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.
2011-03-10 13:02:58 -05:00
Duane Wandless cbd4fef05a GetApplicableRule returns NULL in TimeZoneInfo.cs yet the code does not always handle a NULL return value.
This change fixes this issue and allows timezones like China Standard Time to work.
2011-03-10 22:12:39 +08:00
Rodrigo Kumpera 4f2774fa80 mono_gc_alloc_mature must check if the object needs to be registered for finalization 2011-03-10 13:13:14 +01:00
Lucas Meijer cf967de406 backport of ee5a8cf9d09d525741e94b380bba411c6915026a, still under the mit x11 license. 2011-03-10 12:15:24 +01:00
Gonzalo Paniagua Javier 5167cc3dae [HttpListener] Memory use reductions 2011-03-10 00:45:22 -05:00
Atsushi Eno 12ce3d1370 In some collection case, xsi:type is explicitly written. Try to copy that behavior. 2011-03-10 14:35:23 +09:00
Gonzalo Paniagua Javier fa5e96cdf7 [HttpWebRequest] Support 4.0 Host property. 2011-03-09 22:34:23 -05:00
Zoltan Varga 18eb35983b Use mono_field_get_type () in one place to fix a crash. Fixes #678269. 2011-03-10 01:11:10 +01:00
Zoltan Varga b80343fd5b Mark threads created when calling from native code into the runtime as background threads. Fixes #678164. 2011-03-10 01:02:10 +01:00
Levi Bard 34f18b6876 [Fix] Make path building on windows behave the same as stock mono+glib.
* src/gpath.c: Make path building on windows behave the same as stock mono+glib.

License: MIT/X11
2011-03-09 16:38:34 -05:00
Gonzalo Paniagua Javier c690aa95bc IO threads have their own name 2011-03-09 16:11:54 -05:00
Gonzalo Paniagua Javier 9f33f58799 Some changes to the threadpool
-Reduce stack size for IO threads.
	-Create threads on demand up to min_threads, then throttle.
2011-03-09 16:08:46 -05:00
Andrew Jorgensen e30eeacd70 Fix up devel packages in spec file 2011-03-09 11:19:55 -07:00
Atsushi Eno 3e9fccb813 Some attempts to make KnownTypeCollection parallel access safe. 2011-03-09 22:51:18 +09:00
Atsushi Eno e25503422b Remove old windows threading workaround. 2011-03-09 21:20:38 +09:00
Marek Safar 69e64f8d72 [677550] Fixes fixed buffer regressions 2011-03-09 08:30:21 +00:00
Atsushi Eno 1585b98d92 Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580. 2011-03-09 15:57:21 +09:00
Peter Gerbrandt c60c84c55d Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 14:00:22 +09:00
Atsushi Eno 1eae886946 Temporarily disable InternalsVisibleTo(System.ServiceModel).
until mcs (in 2-10 or later release) fixes the issue.
2011-03-09 10:21:39 +09:00
Gonzalo Paniagua Javier 4b7ca990ad Avoid null refs when capacity set to 0
This fixes bug #676060.
2011-03-08 18:06:11 -05:00
Miguel de Icaza aabd50d5ad [System.Json] Fix loader.
The current loader failed with some Json strings due to the implementation
of the BufferedStreamReader.   Removed that implementation completely,
and instead depend on the StreamReader to do the actual BOM detection.

This removes the JavaScriptObjectDeserializer.cs file
2011-03-08 18:00:27 -05:00
Miguel de Icaza f56f2a679c Make print take an object 2011-03-08 18:00:20 -05:00
Gonzalo Paniagua Javier e3ec5dcffb Turn the method to upper case.
Fixes bug #675731.
2011-03-08 17:35:52 -05:00
Gonzalo Paniagua Javier b428261ea6 No need to create an extra instance of Worker. 2011-03-08 12:35:05 -05:00
Atsushi Eno 7711cbf01a In XNodeWriter, extra xmlns was written and often rejected for duplicate decls.
Fixed bug #675620.
2011-03-08 23:54:23 +09:00
Atsushi Eno ce550ab14b Merge branch 'mono-2-10' of github.com:mono/mono into mono-2-10 2011-03-08 22:08:59 +09:00
Atsushi Eno 6d67acf0d0 More xml output fixes in XmlSyndicationContent and SydicationElementExtension.
They have couple of complicated xml outputs in both GetReader(AtContent)
and Write(Contents)To methods... check new tests for details.
2011-03-08 22:06:49 +09:00
Ankit Jain 82f415e01a [xbuild] Implement FileLogger . Fix #676650 .
* FileLogger.cs: Implement

Add corresponding command line args for file loggers.
Update man page.
2011-03-08 18:29:34 +05:30
Ankit Jain 4b9f33b4d5 [xbuild] ConsoleLogger - parse params only on Initialize. 2011-03-08 18:29:34 +05:30
Ankit Jain bf997c57b6 [xbuild] LogExtensions.LogError - disambiguate.
* LogExtensions.cs(LogError): Rename the 'filename' overload to ..
(LogErrorWithFilename): .. this.
* Engine.cs: Track api changes.
2011-03-08 18:29:33 +05:30
Ankit Jain 4395aab675 [xbuild] Set @(CollectedBuildOutput) for projects build from .sln . 2011-03-08 18:29:33 +05:30
Ankit Jain aad5ac41fa [xbuild] Add missing api for Target.
* Target.cs (Outputs): Add new public property by this name. And rename
old one to ..
(OutputsAsITaskItems): .. this.
2011-03-08 18:29:32 +05:30
Ankit Jain 9a743feb99 [xbuild] Fix bug #676671. Raise AnyEvent . 2011-03-08 18:29:32 +05:30
Ankit Jain 353b636e4a [xbuild] Add hooks for extending .sln builds.
Add hooks in the .sln.proj generated from .sln files.

1. It imports
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportBefore\*"
   and
   "$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\SolutionFile\ImportAfter\*"
   This is done only in case of 4.0 projects, as imports with wildcard
   is a 4.0 feature.

2. And it imports before.Foo.sln.targets and after.Foo.sln.targets from
   the same dir as the .sln file.
2011-03-08 18:29:31 +05:30
Ankit Jain 50f46f1fac [xbuild] Update man page with info about FrameworkList.xml 2011-03-08 18:29:31 +05:30
Ankit Jain 6e597dfd63 [xbuild] Add support for wildcards in Import.
With 4.0 profile, <Import ..> can have wildcards. This works correctly
with our multiple MSBuildExtensionsPath also.

If the import references $(MSBuildExtensionsPath) property, then the
each extension path is used to resolve the import, and the search
stop as soon as an import is found.

If such an import uses wildcard, then the search stops at the
extension path in which *atleast one* file got imported.
And the import fails if any invalid project file is encountered.

This commit also heavily refactors the Import code to simplify
in the face of the new features, and improves error detection
and reporting.

ImportTest.cs: Add test for wildcards.
2011-03-08 18:29:30 +05:30
Ankit Jain 1a357d9f4e [xbuild] ImportedProject - remove unnecessary catch/throw
Remove the catch { throw; }, this truncated the stack also.
2011-03-08 18:29:30 +05:30
Ankit Jain 12692327a1 [xbuild] ImportCollections.TryGetImport and other fixes 2011-03-08 18:29:29 +05:30
Ankit Jain e166179eb8 [xbuild] Expression.ParseAs<T> - new method 2011-03-08 18:29:29 +05:30
Ankit Jain 294900133a [xbuild] DirectoryScanner.HasWildcard - new method 2011-03-08 18:29:28 +05:30
Ankit Jain df939989d8 [xbuild] Log build errors and raise events even if a build fails. 2011-03-08 18:29:28 +05:30
Ankit Jain a1c49cd4e9 [xbuild] Add support for Before/AfterTargets.
A target 'foo' can have BeforeTargets or AfterTargets attributes,
which list the targets before or after, 'foo' should be run.
This is a 4.0 feature.

* Project.cs (ProcessBeforeAndAfterTargets): New.
* Target.cs: Run the before/after targets in the correct order.

* TargetTest.cs (TestBeforeAndAfterTargets): New.
2011-03-08 18:29:27 +05:30
Ankit Jain b374152512 [xbuild] Fix warnings. 2011-03-08 18:29:27 +05:30
Ankit Jain bbc79f7b41 [xbuild] Fix assembly name comparison when resolving references.
AssemblyResolver.cs (AssemblyNamesCompatible): If either of the
references don't have a public key token, then ignore that.
2011-03-08 18:29:26 +05:30
Ankit Jain 841b593bd9 [xbuild] Vbc task - make error column check a little non-specific. 2011-03-08 18:29:26 +05:30
Ankit Jain 49805cb00d [xbuild] Exec task - add support for custom error/warning regex.
Add 4.0 api, CustomErrorRegularExpression and
CustomWarningRegularExpression.
2011-03-08 18:29:25 +05:30
Atsushi Eno 0256398770 Couple of fixes around XmlSyndicationContent.GetReaderAtContent().
- The returned XmlReader is positioned at the beginning of the element.
- XmlSyndicationContent.GetReaderAtContent() returns XmlReader that begins
  with the "wrapper" which is dummy Atom 1.0 content element.
2011-03-08 18:58:40 +09:00
Atsushi Eno 38855bc712 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:28:08 +09:00
Atsushi Eno 017b4ed819 Make sure to call MoveToContent() to correctly determine node type.
Fix "Dictionary deserialization from xml with indent" issue.
2011-03-08 14:54:11 +09:00
Geoff Norton d47c02350c Add 2 missing 4.0 APIs to the MOBILE profile 2011-03-07 21:27:51 -05:00
Atsushi Eno 4b4f74955d DateTimeOffset child elements have fixed namespace. 2011-03-08 11:03:47 +09:00
Gonzalo Paniagua Javier 211be59492 Host name is the same when querying localhost
The host name is set to the queried host name when it is the local
	machine name. Fixes bug #676260.
2011-03-07 18:51:30 -05:00
Zoltan Varga 55a91737da Fix the previous change. 2011-03-07 18:04:02 +01:00
Zoltan Varga 568b8cf74d Fix out-of-tree builds. 2011-03-07 18:01:15 +01:00
Atsushi Eno bee257b69b Empty element is valid here in silverlight secrity element. 2011-03-08 01:51:39 +09:00
Atsushi Eno 36353034c9 XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Fixed bug #676020.
2011-03-08 00:49:27 +09:00
Atsushi Eno b4b3b7b978 Forgot to add the actual new client proxy. 2011-03-08 00:43:23 +09:00
Zoltan Varga 550ca25837 Avoid an assert when returning nullable null's from sdb invokes. Fixes #676587. 2011-03-07 12:02:16 +01:00
Atsushi Eno 5cb757c95b Set ProhibitDtd = false on uri-based Load(). Fixed bug #676009. 2011-03-07 17:09:44 +09:00
Atsushi Eno c6fb9f9494 Couple of fixed to support new DateTimeOffset serialization in .NET WCF. 2011-03-07 16:46:56 +09:00
Atsushi Eno 1c664cbb1e Forgot to add test xml files. 2011-03-07 14:00:52 +09:00
Atsushi Eno dcc8112e68 Fixed xsd derived simpleType cast failures on uint. Fixed bug #676993. 2011-03-07 13:58:15 +09:00
Peter Gerbrandt 7f8aafbe7d Support for the same interface as service contract and as callback contract. 2011-03-07 12:53:19 +09:00
Atsushi Eno 837bf42ce7 Replace SRE-based client proxy generator with RealProxy.
Now PE verified workaround should be unnecessary.
2011-03-07 12:32:21 +09:00
Zoltan Varga 084a76ecea Install a mono-sgen-gdb.py as well. 2011-03-04 17:33:45 +01:00
Zoltan Varga 3da978e41b Log all sdb log messages to the log file instead of stdout. 2011-03-04 13:30:04 +01:00
Geoff Norton e8c3443bd3 When running in a linked environment, this file might not exist 2011-03-03 17:54:47 -05:00
Zoltan Varga 14b494ed61 Disable testbundle for powerpc too. 2011-03-03 16:35:53 +01:00
Zoltan Varga ef214d3a25 Resurrect THREAD_DEBUG. 2011-03-03 11:30:14 +01:00
Zoltan Varga 5038f10bb6 Change an #ifdef DEBUG to THREAD_DEBUG(). Fixes #676615. 2011-03-03 11:25:48 +01:00
Rodrigo Kumpera fd2b90b73b Reset iid of unloaded generic interfaces correctly.
* class.c (mono_get_unique_iid): Don't store
	the iid of generic instances on their GTD image
	since they can be unloaded before.

	* metadata.c (free_generic_class): Reset the iid
	used by interfaces.
2011-03-02 15:14:40 +01:00
Atsushi Eno 7225ae8eed Remove wrong overrides in RequestChannelBase in discovery. 2011-03-02 20:29:29 +09:00
Andrew Jorgensen 4f8349919a add xbuild-frameworks to rpm 2011-03-01 09:57:01 -07:00
Zoltan Varga 0214f7431a Use stdint.h for VS 2010 and later. 2011-03-01 16:34:40 +01:00
Marek Safar dbdcec54b4 [675777] Remove invalid zero based optimization 2011-03-01 08:59:02 +00:00
Geoff Norton 87cc02a04a Fix the build when using DESTDIR 2011-02-28 19:26:26 -05:00
Rodrigo Kumpera f5bba434cd Handle demormalized object and string types.
* metadata.c (do_mono_metadata_parse_type): NET 1.1
	assemblies can have string and object encoded in a denormalized
	way.

	Fixes #675464.
2011-02-28 22:02:05 +01:00
Rodrigo Kumpera 7048e3f49e Handle CompareTo(long) and huge numbers.
* BigInteger.cs (CompareTo): Handle numbers
	larger than 64bits.

	Fixes #674120
2011-02-28 14:57:35 +01:00
Ankit Jain ac1ad54ded [xbuild] ToolTask - make error column check a little non-specific. 2011-02-28 17:01:38 +05:30
Ankit Jain a1953b3f77 [xbuild] Make Engine.DefaultToolsVersion 2.0 .
Engine.DefaultToolsVersion is used when a project is unable
to determine a suitable ToolsVersion to use. Change this fallback
version to 2.0 . This allows vs2005 (.net 2.0) projects which
don't have ToolsVersion explicitly set, to build. Newer projects
set ToolsVersion by default.
2011-02-28 17:01:37 +05:30
Ankit Jain b100e0eed6 [xbuild] ResolveAssemblyReference - log task parameters 2011-02-28 17:01:35 +05:30
Ankit Jain 24e787e9ff [xbuild] ResolveAssemblyReference - add missing api. 2011-02-28 17:01:33 +05:30
Ankit Jain 916943ce1a [xbuild] GetReferenceAssemblyPaths - add missing license header. 2011-02-28 17:01:31 +05:30
Ankit Jain 93a4e248be [xbuild] Add support for multi-targeting arbitrary frameworks.
ToolsVersion 4.0 supports targeting arbitrary frameworks defined
by FrameworkList.xml files and referenced by $(TargetFrameworkMoniker),
which is of the format:
 Identifier,Version=<version>[,Profile=<profile>]

built as:
 $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)[,Profile=$(TargetFrameworkProfile)]

eg. '.NETFramework,Version=v4.0' .

Frameworks are searched for in (order):

  1. Paths specified in the environment variable $XBUILD_FRAMEWORK_FOLDERS_PATH
  2. /Library/Frameworks/Mono.framework/External/xbuild-frameworks on Mac OSX.
  3. MSBuild property $(TargetFrameworkRoot)
  4. $prefix/lib/mono/xbuild-frameworks (default location)

.NET frameworks 2.0/3.0/3.5/4.0 have corresponding FrameworkList.xml
files now, which allows projects to target them. Custom frameworks like
MonoDroid can install suitable FrameworkList.xml files, and projects
can target them using the correct $(TargetFrameworkIdentifier) and
$(TargetFrameworkVersion).

Update man page.
2011-02-28 17:01:30 +05:30
Ankit Jain 8494641805 [xbuild] ToolTask - add missing api
* Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(GetProcessStartInfo): Add missing api. This allows more control
over the execution of the tool.
2011-02-28 17:01:28 +05:30
Ankit Jain 82b37d914c [xbuild] Add missing property to Error/Warning tasks. 2011-02-28 17:01:26 +05:30
Ankit Jain 8c579dfce2 [xbuild] Add $(MSBuildToolsRoot) reserved property. 2011-02-28 17:01:24 +05:30
Ankit Jain 95af93f266 [xbuild] Remove property if Output TaskParameter is null.
If the TaskParameter for Output of a task is null, then remove
the corresponding property.
Add relevant test.
2011-02-28 17:01:22 +05:30
Geoff Norton 41b1fe814e Cache the result of the pthread_specific disassembly when checking for fast tls on darwin 2011-02-25 16:42:20 -05:00
Geoff Norton ac1e8e16a2 Fix the mobile build 2011-02-25 11:41:10 -05:00
Marek Habersack e8a578407b [asp.net] Fix for bug #671753. Route.GetVirtualPath must take ambient values into account. 2011-02-25 13:18:10 +01:00
Steve Bjorg 450b0f1c4a added units tests for TextReader ReadLine() and ReadToEnd() 2011-02-25 01:52:29 -05:00
Steve Bjorg d2b840c9fc TextReader.Null should return "" on ReadToEnd() 2011-02-25 01:51:39 -05:00
Miguel de Icaza ad9ddef21a Fix build 2011-02-25 01:49:02 -05:00
Miguel de Icaza 5c1fe2fedb [TerminfoDriver] be more tolerant to failures, and fallback gracefully, instead of aborting 2011-02-24 23:59:53 -05:00
Miguel de Icaza 268adea870 Do not throw exceptions, instead return a sensible value, fixes 656468 2011-02-24 23:36:33 -05:00
Atsushi Eno 70910f3f04 Fix 2.0 test build (disable it). 2011-02-25 12:38:51 +09:00
Zoltan Varga 02f2d4dbf7 Fix previous arm patch. 2011-02-25 03:20:32 +01:00
Miguel de Icaza dcec5908af Add default implementations to ReadLine() and ReadToEnd() to TextReader, fixes 655934 2011-02-24 16:52:00 -05:00
Zoltan Varga 85e594b968 Fix stop_debugger_thread () on windows. Shutdown both ends of the connection socket since shutting down only the receive part doesn't seem to work on windows. Wait for the debugger thread to exit in a loop, since we don't use condvars on windows. 2011-02-24 19:15:14 +01:00
Geoff Norton c08e02bc59 Enable ARMv6 for arm*-darwin 2011-02-24 12:22:34 -05:00
Martin Baulig a92669fc05 Fix bug #669836:
Treat exceptions that are caught by mono_runtime_invoke()
as unhandled in SDB.
2011-02-24 17:43:34 +01:00
Ankit Jain 0cce6b2bf5 [xbuild] Rename method to make it more consistent.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
(GetAssemblyNameFromFile): Rename to ..
(TryGetAssemblyNameFromFile): .. this, to make it consistent with
the similar method TryGetAssemblyNameFromFullName .
Track api changes.
* Microsoft.Build.Tasks/Microsoft.Build.Tasks/ResolveAssemblyReference.cs:
Track api changes.
2011-02-24 18:31:49 +05:30
Ankit Jain 9f29e21ade [xbuild] Fix bug #674630.
Handle errors in trying to create AssemblyName from invalid
full names.
2011-02-24 18:31:45 +05:30
Zoltan Varga 93dd831a8b Only use memory barriers on arm when running on armv6 or later. 2011-02-24 13:56:15 +01:00
Marek Safar b860a9145c [674224] Type parameter constraint can resolve to nested type before it has been imported 2011-02-24 08:14:57 +00:00
Atsushi Eno c69896b97b Simple InstanceContext.Extensions implementation by David Schmitt.
Fixed bug #674057.
2011-02-24 14:40:52 +09:00
Atsushi Eno 094614ba92 Do not write empty items in Probe message. 2011-02-24 14:36:36 +09:00
Atsushi Eno 2bbbccf106 To header rewrite only happens in Adhoc mode.
Update contracts to comply with that and make it consistent between versions.
2011-02-24 14:36:24 +09:00
Atsushi Eno 37589e862a Pass Actor. use IsNullOrEmpty() instead of "!= String.Empty". 2011-02-24 14:29:45 +09:00
Atsushi Eno 80890aa751 Another fix to not write null header. Add UniqueId deserialization workaround. 2011-02-24 14:29:34 +09:00
Jonathan Pryor 05745bacdf Enable UDP Sockets on MOBILE platforms.
Fixes runtime part of #666736.
2011-02-23 23:03:13 -05:00
Zoltan Varga 26bbac8c8a Disallow EventType.Step in EnableEvents (). Fixes #674490. 2011-02-24 01:07:51 +01:00
Miguel de Icaza b60927f21f Fix win32 build 2011-02-23 14:21:01 -05:00
Ankit Jain a77fdbe8b5 [xbuild] Fix bug #674337.
Use appropriate path separator for handling environment variable
MSBuildExtensionsPath.
2011-02-23 21:29:37 +05:30
Jérémie Laval 81f2bb71ed Allow people to optionally fallback to the old scheduler with an environment variable 2011-02-23 14:44:59 +00:00
Jérémie Laval 3d1b4715eb Remove ctors in TpScheduler
This also remove the capping of the ThreadPool, problem needs to be fixed in the pool itself.
2011-02-23 14:44:58 +00:00
Jérémie Laval df12cf48c6 Make TryExecuteTaskInline a bit smarter 2011-02-23 14:44:57 +00:00
Jérémie Laval 4e37530b60 Refactor common code block of TpScheduler and SyncContextScheduler in SchedulerProxy 2011-02-23 14:44:57 +00:00
Jérémie Laval 95513a6be4 Kill old IScheduler interface.
We still use the ParticipateUntil facility of IScheduler internally and provide a default implementation for pure TaskScheduler
2011-02-23 14:44:56 +00:00
Jérémie Laval 8415e77fbe When finding best worker number in Parallel loops use current TaskScheduler instead of default TaskScheduler 2011-02-23 14:44:56 +00:00
Jérémie Laval 3e593ba735 Adapt TpScheduler to the new API in TaskScheduler 2011-02-23 14:44:55 +00:00
Jérémie Laval ddd9443f26 Cache callback delegate in TpScheduler when passing Task to QueueUserWorkItem 2011-02-23 14:44:55 +00:00
Jérémie Laval d0c67f7e87 Don't create a new lambda everytime when queuing Task via ThreadPool QueueUserWorkItem 2011-02-23 14:44:54 +00:00
Jérémie Laval b2e391a309 Try to execute task inline when they are ready to run and we wait on them with no timeout 2011-02-23 14:44:53 +00:00
Jérémie Laval 3d4f602354 Threadpool Task scheduler 2011-02-23 14:44:53 +00:00
Jérémie Laval 2b62b097df Create PLinq query tasks attached to their eventual task parent by default 2011-02-23 14:44:52 +00:00
Jérémie Laval b816837188 When choosing the number of Task to create for a PLinq query, check if we are already in a running Task 2011-02-23 14:44:52 +00:00
Jérémie Laval c084efc79e Implement properly TaskScheduler's FromCurrentSynchronizationContext 2011-02-23 14:44:51 +00:00
Jérémie Laval 07791b1406 Adapt Parallel.For stealing to all processor flavors 2011-02-23 14:44:51 +00:00
Jérémie Laval 9ba41cadd2 Allow multiple invocation of Task Execute method to allow short-circuiting without breaking deque ordering 2011-02-23 14:28:43 +00:00
Miguel de Icaza ca02c72ecb Avoid warnings, should fix OpenSUSE builds 2011-02-22 19:30:48 -05:00
Andrew Jorgensen f5b2849d72 Version 2.10.1 2011-02-22 14:16:00 -07:00
Ankit Jain 8c4808fc36 [xbuild] Add new reserved properties $(MSBuildThisFile*).
Also, fixes bug #668955.

Add new reserved properties $(MSBuildThisFile*).
Unlike the $(MSBuildProjectFile), the *This* properties are evaluated
in the context where they were used. Eg. if such a property was
referenced in a PropertyGroup, then it would refer to the file
containing the that definition, and *not* the main project file.
It applies to items and tasks/targets also.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildChoose.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroup.cs:
* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildPropertyGroup.cs:
Add DefinedInFileName property.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs:
Add a stack to keep track the "current" file, which is used to set
the $(MSBuildThisFile*) properties. Update the properties on
Push/Pop.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/GroupingCollection.cs:
Push/Pop the "current" file, when evaluating a property/item/etc.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Target.cs:
Push/Pop the "current" file, when building. This ensures that the
references in the target definition get evaluated correctly.

* Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine/ProjectTest.cs:
Add corresponding test.
2011-02-23 01:38:40 +05:30
Rodrigo Kumpera ed23f897c4 Properly check arguments in List<T> ICollection.CopyTo.
* List.cs (ICollection.CopyTo): Properly check
	the array argument to match MS semantics.

	Fixes #672907
2011-02-22 18:51:20 +01:00
Ankit Jain b636b093d2 [xbuild] Use the env var $MSBuildExtensionsPath before trying other paths.
Change the order of the "search paths", so that the environment
variable can always override it.
Update the man page to reflect the change.
2011-02-22 21:39:00 +05:30
Zoltan Varga e433c33f9f Fix the passing of the mrgctx argument in case of a virtual->nonvirtual optimization. Fixes #672446. 2011-02-22 15:30:33 +01:00
Hib Eris 21528f97be Fix gsize for 64-bit Windows 2011-02-22 14:41:14 +01:00
Zoltan Varga a7c3c38901 Avoid returning TRUE from mono_domain_finalize () if it is interrupted by sdb. Fixes #673592. 2011-02-22 05:36:34 +01:00
Zoltan Varga 5766da53da Fix arm thunk creation in dynamic methods. Fixes #673828. 2011-02-22 00:51:50 +01:00
Marek Habersack 3e6f82d10c [transactions] When cloning a transaction make sure to copy all the stuff that matters.
The volatiles and durables lists must be copied even if they are empty. The calling code
might still be accessing them via the original transaction (as is the case with Orchard+NHibernate)
2011-02-21 23:38:23 +01:00
Marek Habersack 01e4a9bb55 [asp.net] Fix for bug #669807. Cache session item locks as the item might be cleared before the lock needs to be released. 2011-02-21 19:50:33 +01:00
Geoff Norton e09f898428 Implement proper TSD lookup for arm-darwin 2011-02-21 13:37:06 -05:00
Geoff Norton 1d3ed22ab2 OSX 10.6 properly respected signal handlers before invoking the crash reporter 2011-02-20 23:01:50 -05:00
Zoltan Varga abdc66ca35 Implement mono_memory_barrier () and OP_MEMORY_BARRIER for ARM. 2011-02-20 03:23:33 +01:00
Zoltan Varga affd549250 Make the var/mvar caches per-image, since the generic params they refer to can be freed on domain unload. Fixes part of #672939. 2011-02-20 01:54:34 +01:00
Zoltan Varga a98ce10d71 Revert "[Win64] Compilation fix for eglib in win64"
This reverts commit 97bc578e86.
2011-02-19 23:27:25 +01:00
Zoltan Varga 432ed84634 Reorganize the way jump_target_hash is stored in the JIT. Free entries in jump_target_hash which point inside a dynamic method when it is freed. Fixes #669815. 2011-02-19 22:24:06 +01:00
Geoff Norton b2eaffda65 Avoid leaking a mach_port every time we query the counters 2011-02-19 12:22:19 -05:00
Miguel de Icaza 78a1ca7417 Backport support for add support for new PerformanceCounter("Process", "% Processor Time", "<process id as string>" on OS X 2011-02-19 12:03:32 -05:00
Gonzalo Paniagua Javier 7372ca74ef [eglib] Move definition of GPid to eglib-config.h
This new patch moves the definition of GPid from glib.h to eglib-config.h and
	determines the the type of pid_t in configure.

	Pach from Hib Eris that fixes bug #670076.
2011-02-19 11:50:46 -05:00
Gonzalo Paniagua Javier 97bc578e86 [Win64] Compilation fix for eglib in win64
Compiling for 64 bit windows breaks on incorrect gsize.
	Patch by Hib Eris that fixes bug #673581.
2011-02-19 11:43:54 -05:00
Miguel de Icaza adc1bd510c [594642] System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces fix for MacOS X 2011-02-19 11:06:00 -05:00
Gonzalo Paniagua Javier 5ef11410bd Fix the check for version and PublicKeyToken
When loading an assembly we were comparing Version(0,0,0,0) with null
	and a 0 length PKT with an actual one when those two cases are the
	default.
	Fixes bug #661461.
2011-02-19 10:14:12 -05:00
Rodrigo Kumpera 843a59e2ab Handle overrides on events when retrieving cattrs.
* MonoCustomAttrs.cs (GetBase): Special case events
	when retrieving the base event to lookup cattrs.

	* AttributeTest.cs: Add regression test.

	Fixes #662867
2011-02-18 23:38:28 +01:00
Mark Probst 9bd2159a5f [sgen] Fix some debug functions. 2011-02-18 23:18:09 +01:00
Zoltan Varga 0b63e96ade Set cfg->uses_rgctx_reg in another code path too on arm, to fix --regression generics.exe. 2011-02-18 23:09:51 +01:00
Zoltan Varga 17a13200f8 Work around a gcc bug on arm. 2011-02-18 23:06:32 +01:00
Rodrigo Kumpera b48e7b5988 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
2011-02-18 17:14:27 +01:00
Atsushi Eno ba4c090467 Fix infinite loop in DiscoveryMessageSequence equality comparison. 2011-02-18 16:32:57 +09:00
Atsushi Eno b9b1ae5876 Do not try to serialize null header item. 2011-02-18 16:23:58 +09:00
Atsushi Eno 223d09ec41 Fix wrong element name (AppSequenceType->AppSequence). 2011-02-18 16:14:08 +09:00
Atsushi Eno e72dcebf98 Almost eliminate wrong use of Constants.WsaNamespace.
They should be addressing-version-aware.
2011-02-18 16:11:16 +09:00
Atsushi Eno 980810dc82 EndpointAddressAugust2004 was not serialized correctly.
Well, Actually unified the implementation with 10.
2011-02-18 15:54:52 +09:00
Rodrigo Kumpera 6d7b16c0d2 Make sure we keep a root for the delegates when calling them.
* method-to-ir.c (mono_emit_method_call_full): Make sure
	we keep a root for delegates when calling them using the
	fast delegate dispatch.

	Fixes #667921
2011-02-17 21:59:44 +01:00
Marek Habersack d8d5da5c30 [asp.net,mvc3] Fix for bug #668655. Implemented a few more NameValueCollection method overloads. 2011-02-17 19:37:05 +01:00
Atsushi Eno 931c55c115 get out from NET_4_0. 2011-02-17 22:20:56 +09:00
Atsushi Eno dcd3787a52 Couple of corcompare fixes. 2011-02-17 21:09:50 +09:00
Atsushi Eno 995d298d00 Only use non-null values in ServiceAuthorizationBehavior. 2011-02-17 21:09:40 +09:00
Atsushi Eno 582c628f21 Fill a couple of missing ServiceAuthorizationElement implementation. 2011-02-17 21:09:29 +09:00
Atsushi Eno 10e94f0efa HTTP authentication in HttpListener had dropped during refactoring. Now it's back. 2011-02-17 21:09:19 +09:00
Geoff Norton f45ca2b65e Fix ARCH_STORE_REGS on arm to save r0->r12 properly 2011-02-16 16:10:31 -05:00
Geoff Norton c9231c0248 Remove dead code 2011-02-16 15:04:47 -05:00
Atsushi Eno b5491e25d9 MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Fixed bug #670539.
2011-02-17 00:56:59 +09:00
Hib Eris ea0673de2b Decorate _image_base__ with __MINGW_LSYMBOL
This fix is needed in compiling for x86_x64.
2011-02-16 15:22:26 +01:00
Atsushi Eno f8d7872cc4 Don't reject serialization map for existing different (but same-purpose) type. 2011-02-16 18:50:02 +09:00
Atsushi Eno ead615dca5 To header seems mandatory in April2005, so fill it. 2011-02-16 18:19:14 +09:00
Atsushi Eno 4ed4702907 April2005 AppSequence needs default constructor for deserialization. 2011-02-16 18:19:03 +09:00
Atsushi Eno be750c099d xsi:type parsing is wrong in default namespace resolution.
Fixed case #3 in bug #652331.
2011-02-16 18:04:18 +09:00
Atsushi Eno 4b82e7b3b2 Operation interface methods also have ServiceKnownType attributes. 2011-02-16 17:07:10 +09:00
Atsushi Eno 1e17218a2d KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state. 2011-02-16 16:06:15 +09:00
Jérémie Laval 423f895412 Implement TaskFactory.FromAsync 2011-02-15 18:38:29 +00:00
Ankit Jain d6070f1383 [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.
2011-02-15 20:18:36 +05:30
Marek Safar f1e818a76f [671878] Fixes IKVM ordering of catch clauses 2011-02-15 14:33:14 +00:00
Atsushi Eno a28a9520b5 Async MessageContract pattern needs more sophisticated contract validity check.
It totally killed discovery.
2011-02-15 23:25:31 +09:00
Atsushi Eno 6907827b05 Message headers are now serialized and deserialized for MessageHeaderDescription. 2011-02-15 23:15:32 +09:00
Atsushi Eno 6ea68b9128 ServiceDescription.cs does not exist in moonlight, so move TypeExtension. 2011-02-15 22:38:20 +09:00
Atsushi Eno 7c37c423e1 MessageHeaderDescription were not filled in message contract. Reject wrong contracts. 2011-02-15 22:13:25 +09:00
Atsushi Eno 8854623440 implement some ServiceHostBase public methods that already existed internally. 2011-02-15 22:13:18 +09:00
Atsushi Eno 7b088dc2a4 When the callback contract type is the same as the contract, do not block replies. 2011-02-15 15:51:44 +09:00
Atsushi Eno e19f4be52c EndpointAddress could be empty on opening the factory. 2011-02-15 15:51:38 +09:00
Atsushi Eno 20b58344cc PeeDuplex ChannelFactory must be opened in prior to create channels. 2011-02-15 15:51:32 +09:00
Atsushi Eno c310cd6556 add private setter for message serialization.
Not sure if it is hack or required-to-do though.
2011-02-15 15:51:26 +09:00
Veerapuram Varadhan fc074bb4fa [bugfix]667855 - Fix handling of oracle raw data type appropriately. 2011-02-15 01:25:00 +05:30
Gonzalo Paniagua Javier a7bfba4549 [HttpListener] UserHostName includes the port. 2011-02-14 14:38:26 -05:00
Gonzalo Paniagua Javier a65b6c7523 [HttpWebRequest] EndGetResponse already does this. 2011-02-14 14:38:26 -05:00
Gonzalo Paniagua Javier 7730c00a02 [HttpWebRequest] Use the timeout in GetResponse()
The timeout was not being used in GetResponse.
	Fixes bug #603794.
2011-02-14 14:38:26 -05:00
Atsushi Eno 675dc5b693 support UdpTranspoerSettings.MulticastInterfaceId. This should fix bug #669328. 2011-02-15 01:57:02 +09:00
Veerapuram Varadhan 881d960b29 backport of r1012ab0b
Fixes 667236 - Handle numeric types appropriately
2011-02-14 21:18:04 +05:30
Miguel de Icaza 6c161687ea [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
2011-02-14 09:41:31 -05:00
Marek Safar 7acea3000f [671552] Use correct emit method for stobj type 2011-02-14 13:21:44 +00:00
Gonzalo Paniagua Javier a615812280 [HttpWebRequest] Avoid nullref on empty cookie header.
If the Set-Cookie header is empty, the cookie instance is not created.
	Fixes bug #670189.
2011-02-13 14:54:27 -05:00
Alexandre Mutel 7ec51b02e9 Fix sizeof(T) in non-gshared code. Fixes #580189. 2011-02-13 16:17:12 +01:00
Mark Probst 9b5ca2f366 Merge branch 'bugfix-main-thread-root' into mono-2-10 2011-02-13 16:10:37 +01:00
Zoltan Varga f4edc478f0 Add an assembly version to Mono.Debugger.Soft. Fixes #671536. 2011-02-13 16:06:57 +01:00
Gonzalo Paniagua Javier ba0fbbe133 [HttpListenre] Avoid multiple calls to Close()
HttpListenerResponse could be calling HttpConnection.Close() more than
	once.
2011-02-13 07:08:34 -05:00
Zoltan Varga 86fdd99f9e Fix reading of cattr arguments of type Type[]. Fixes #670331. 2011-02-13 04:24:58 +01:00
Gonzalo Paniagua Javier 6390cf3b64 [gzip] Allow partial flush
When Flush() is called explicitly, do a Z_PARTIAL_FLUSH to force gzip
	into giving us whatever is available. Less efficient, but compatible
	with MS.
2011-02-12 00:05:35 -05:00
Gonzalo Paniagua Javier fcdb18822c [Socket] Fix invalid cast
Fix invalid cast when canceling pending operations due to socket.Close.
2011-02-11 18:36:54 -05:00
Zoltan Varga 79fddfa11d Fix token generation for TypeBuilder's in another assembly. Fixes #671245. 2011-02-12 00:15:59 +01:00
Miguel de Icaza 32f616acfb [fix] changing Form.Enabled sometimes can change the list of OpenForms, fixes 671098 2011-02-11 17:34:23 -05:00
Zoltan Varga 52e0febfe6 Add Mono.XBuild.Utilities/MSBuildUtils.cs to the build. 2011-02-11 21:58:02 +01:00
Zoltan Varga 4246c386a0 Pretty print MonoString* too in xdb. 2011-02-11 21:54:44 +01:00
Sebastien Pouliot d4ed08b5b4 Continue X509Chain processing even if the local machine directory does not exists
* corlib/Mono.Security.X509/X509Store.cs:
* Mono.Security/Mono.Security.X509/X509Store.cs:
	Fix key pair persistence to load key pairs from the same location
	(machine or user) as the requested certificate. This avoids an
	internal exception (on missing local machine directory) that stop
	the evaluation of the certificate validity (i.e. no user store
	check)
* System/System.Security.Cryptography.X509Certificates/X509Chain.cs:
Ensure that a missing local machine directory does not result in a NRE
while loading CRL (which would fail the certificate being validated)
2011-02-11 13:41:33 -05:00
Hib Eris e43d097f7c Earlier undefine HAVE_GETPROCESSID when cross compiling 2011-02-11 15:42:29 +01:00
Rodrigo Kumpera 1066c2c1b5 Make maxStackSize behavior compatible with MS.
* Thread.cs (.ctor): Check if maxStackSize is negative
	and raise and AOORE. Silently use a saner minimum size
	of 128k as mono can't really run with much less than that.
2011-02-11 14:58:12 +01:00
Zoltan Varga efa462d684 Make the wait in the finalizer thread alertable to fix sdb on windows. Fixes #670619. 2011-02-11 05:55:06 +01:00
Zoltan Varga 6a77ef2687 Change some Sleep(0)'s to Sleep(1) in the soft-debugger code to avoid 100% cpu utilization on windows. 2011-02-11 01:34:43 +01:00
Gonzalo Paniagua Javier 1829c15ee9 [HttpWebRequest] Can't ignore erros here 2011-02-10 17:26:09 -05:00
Gonzalo Paniagua Javier c214cd9488 [HttpWebRequest] Error handling for POST/PUT
When we get an error from the server before writing an entire
	unbuffered response, the server might close the connection leading to
	write errors. Ignore those and return the actual HTTP status code from
	the original server error.
2011-02-10 17:26:09 -05:00
Ankit Jain d08d05e197 [xbuild] Update Utilities.FromMSBuildPath from monodevelop.
Updating FromMSBuildPath also fixes a bug on windows.

* Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Utilities.cs:
Move to..
* Microsoft.Build.Utilities/Mono.XBuild.Utilities/MSBuildUtils.cs:
.. this. Also, update FromMSBuildPath from monodevelop.
* Update Engine/* and Tasks/* to track the new api.
2011-02-11 02:57:58 +05:30
Andrew Jorgensen 0793c8ecae Mono.Debugger.Soft.dll is installed for 4.0 also. 2011-02-10 07:36:52 -07:00
Atsushi Eno 2031d77d6b Fix a couple of addressing namespace fixes (found in April2005 version). 2011-02-10 22:07:16 +09:00
Atsushi Eno 916479ff8a Fix wrong async completion handling in UDP channel receive.
After AsyncWaitHandle.Set(), order of filling results and WaitOne() are
undefined.
2011-02-10 21:19:02 +09:00
Marek Habersack 1630b8ecb9 [asp.net] Fix for bug #669048. Fix up virtual precompiled app virtual paths with the virtual root of the current app 2011-02-09 22:02:36 +01:00
Rodrigo Kumpera 1316be56bb Handle assignment check of variant type and its gtd.
* clas.c (mono_class_is_variant_compatible): Return
	FALSE if checking a variant type and its gtd instead
	of crashing.

	Fixes #668506
2011-02-09 16:42:17 +01:00
Zoltan Varga e61f3b7278 Install Mono.Debugger.Soft in the 4.0 profile as well. 2011-02-09 16:25:02 +01:00
Atsushi Eno b6b34d1051 Recent ContractDescription fix uncovered wrong contracts in discovery. 2011-02-09 20:06:07 +09:00
Rodrigo Kumpera c5cbc7e8e2 Cleanup the reference queue on domain unload.
* gc.c (finalize_domain_objects): Clear reference
	queues on domain unload after running all finalizers.
2011-02-09 11:22:23 +01:00
Atsushi Eno 3aad1fb2cf Support ServiceKnownTypes. Fixed another case on bug #652331. 2011-02-09 15:44:19 +09:00
Zoltan Varga c3cd3eb877 Disable OP_INEG cfolding on 32 bit arches, as it breaks the LNEG decomposition. The previous special casing didn't work as the spill pass could insert a store between the ineg and the adc_imm. Fixes #670479. 2011-02-09 05:11:43 +01:00
Gonzalo Paniagua Javier 610f8d77c9 [SmtpClient] Don't send empty display name.
If there's no display name, don't send '""'.
	Fixes bug #670475.
2011-02-08 21:02:33 -05:00
Miguel de Icaza 18efb9a9e2 Update docs 2011-02-08 20:19:02 -05:00
Miguel de Icaza 11b3ead24e Add prototype to .h file 2011-02-08 20:18:55 -05:00
Lucas Meijer dfcd93df2a implement mono_set_assemblies_path for platforms that cannot set MONO_PATH environment variable. 2011-02-08 20:18:39 -05:00
Atsushi Eno ee701df195 Fix bug #661400 - fix complicated namespace resolution issue.
Namespaces in nested external schemas have to be validated against
immediately-containing schema. If there is a schema A with urn:x
targetNamespace imports a schema B with urn:y targetNamespace which
in turn includes another schema C, then C must be validated its namespace
against B, not A.
2011-02-08 20:18:32 -05:00
Marek Habersack 142676a516 [asp.net] Be more careful with errors collection when compilation fails. 2011-02-09 01:26:17 +01:00
Marek Habersack 02f2fe8204 [asp.net] Implemented CustomErrorsRedirectMode 2011-02-09 01:26:10 +01:00
Miguel de Icaza be6ba4038a Fix Enum.HasValue, previous version crashed with negative values 2011-02-08 15:52:38 -05:00
Marek Habersack 9d4e229c2e [cross-compilation] Added some flexibility regarding the location of development packages
The script now supports an extra cross-compilation directory in which you can unpack the
library and development packages necessary for the build to succeed (glib, zlib etc). Also
supported now is specifying the location at which Mono will be installed on Windows.
Replaced SVN and GIT-SVN version checks with git checks.
2011-02-08 20:47:15 +01:00
Rodrigo Kumpera 9177ddc384 Fix reference queue under boehm.
* gc.c (finalizer_thread): Clean reference queues
	after finalizers are called to give boehm a chance
	to resurrect it.
2011-02-08 18:30:09 +01:00
Hib Eris b9c4865b04 Fix build-mingw32.sh for CROSS_PKG_CONFIG_DIR without *.pc files 2011-02-08 14:56:26 +01:00
Hib Eris 83c2b73c8c No longer include glib binaries in build-mingw32.sh builds.
By default, Mono now uses an embedded glib implementation, so there
is no need to ship external glib libraries anymore.
2011-02-08 14:55:51 +01:00
Hib Eris 77b6d414b9 Let build-mingw32.sh script also work on dist tarballs 2011-02-08 14:55:10 +01:00
Hib Eris cb8913217e Use winternl.h instead of ddk (when available)
These changes are nescessary for compiling with a mingw-w64 compiler.
2011-02-08 14:45:12 +01:00
Hib Eris c45dd61269 Remove implementation details from public header io-layer.h
The macro HAVE_GETPROCESSID is defined in config.h and should not be
exposed in public headers.
2011-02-08 14:44:52 +01:00
Marek Safar 2990e2e271 [657099] Fix cloning of remapped blocks 2011-02-08 12:53:05 +00:00
Atsushi Eno 7e69d0aa77 Simple content restriction was not validated when it is in further reference.
Fixed bug #595947. It was complexType [base]-> complexType [base]-> simpleType.
2011-02-08 20:55:16 +09:00
Marek Safar cf0928b53e Fix remapping of cloned block parent when already in cloned context 2011-02-08 11:23:46 +00:00
Atsushi Eno b2525e0cb0 For complexType simpleContent restriction, fill attributes from base type.
Part of bugfix #595947.
2011-02-08 18:32:53 +09:00
Atsushi Eno 38fe929b9f There's a tricky namespace-mismatching deserialization in .NET implementation.
Fixed bug #666333.
2011-02-08 17:11:15 +09:00
Atsushi Eno f5ef8da8e5 Contract-based type must ensure that the base type is also contract-based.
Fixed bug #661987 on WCF side.

Conflicts:

	mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/XmlObjectSerializerTest.cs
2011-02-08 12:13:57 +09:00
Atsushi Eno 20453fcb9c Open and close client/service runtime channels in chains. Fixed bug #663278. 2011-02-08 12:08:10 +09:00
Atsushi Eno f3ddd9df63 handle IsTerminating. 2011-02-08 12:07:57 +09:00
Atsushi Eno 68ce0748e5 Duplex client has its own listener loop, so special care on reply is needed. 2011-02-08 12:07:45 +09:00
Atsushi Eno 34fad98bf0 Callback contract should be distinguished from others for DispatchOperation. 2011-02-08 12:07:33 +09:00
Atsushi Eno 176c92c21d Now operations are collected per corresponding ContractDescription.
This fixes naming of MessageDescription Action URI from its type.
2011-02-08 12:07:22 +09:00
Atsushi Eno a303481db4 Implement GetInheritedContracts(), towards bugfix #668089. 2011-02-08 12:07:11 +09:00
Atsushi Eno e2884a6c57 standard endpoint and protocol mapping support were lacking at client side.
Turned out that they had nothing to do with #668089..
2011-02-08 12:07:00 +09:00
Atsushi Eno be19163ffe Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-08 12:06:50 +09:00
Atsushi Eno 44a9e7eef7 Manage opened proxy channels and close them when ChannelFactory is closed. 2011-02-08 12:06:39 +09:00
Atsushi Eno ab26a0788e Implemented a couple of async methods in InstanceContext as well as disposing. 2011-02-08 12:06:29 +09:00
Atsushi Eno 0870ad290d Avoid possible list modification error during close process. 2011-02-08 12:06:18 +09:00
Atsushi Eno c4c9b57b9d Make sure to close session once the client opened one. 2011-02-08 12:06:07 +09:00
Atsushi Eno 184d565783 Fix regression, avoid null key. 2011-02-08 12:05:55 +09:00
Atsushi Eno 84c27ca818 And rename source file name. 2011-02-08 12:05:44 +09:00
Atsushi Eno 561ec9f0e6 Rename InstanceBhavior, too ambiguous among IXxxBehavior interfaces. 2011-02-08 12:05:34 +09:00
Atsushi Eno cf586923d5 Sessions should not be keyed by MessageId but be done by channel SessionId. 2011-02-08 12:05:24 +09:00
Atsushi Eno be5559c59f Read body content if required. Fixed all issues in bug #656020.
Now it considers message content format and IsWrapped[Request|Response] to
retrieve XmlObjectSerializer.
2011-02-08 12:05:13 +09:00
Atsushi Eno 97a48b0eab Enable duplicate "UriMatched" error check, with couple of FIXMEs.
.NET is very unclear about those UriTemplate behavior. Too minor to mind.
2011-02-08 12:05:03 +09:00
Atsushi Eno fbc54c3de5 Fix template match logic to first check HTTP-method-matching ones.
Part of the fix for bug #656020.
2011-02-08 12:04:53 +09:00
Atsushi Eno e99c8b5a77 Serialize non-mapped message parameter as body content. Part of bug #656020 fix. 2011-02-08 12:04:43 +09:00
Marek Habersack 6eca3e53ed [crypto] Added missing 4.0 algorithm names 2011-02-08 00:34:33 +01:00
Hib Eris d1ef6f2e4b Do not distribute eglib-config.h
The file eglib-config.h is generated when running configure.
Distributing eglib-config.h in tarballs causes errors when building
out of the source tree.
2011-02-07 23:55:47 +01:00
Hib Eris 0ab1c82223 Use _vscprintf() for mingw-w64 compilers
The mingw-w64 compilers implement a vsnprintf() function that do not
conform to the C99 standard (just like MSVC).
2011-02-07 23:43:37 +01:00
Hib Eris dd8a1f2831 Include config.h in mono-profiler-aot.c
This change is nescessary for compiling with a mingw-w64 compiler.
2011-02-07 23:41:28 +01:00
Zoltan Varga 632a3c70c7 Cast the result of MONO_CONTEXT_GET_SP () to an int to fix the windows build. 2011-02-07 23:36:41 +01:00
Zoltan Varga 6b9347a35b Include sys/types.h for pid_t on mingw. Fixes #670076. 2011-02-07 23:33:11 +01:00
Zoltan Varga ccedbc64dc Use mono_method_get_vtable_slot () instead of accessing method->slot directly. Fixes #669808. 2011-02-07 16:11:47 +01:00
Zoltan Varga a962434e90 Fix the ia64 build. 2011-02-06 00:08:16 +01:00
Rodrigo Kumpera 129cfd47ee Fixes ldfnt to ldvtftn conversion.
* mini-trampolines.c (mono_delegate_trampoline): The ldftn
	to ldvtftn conversion must check if the method is abstract,
	otherwise it breaks delegate to base classes.

	Fixes #666008
2011-02-05 13:38:42 +01:00
Zoltan Varga 1c51463ed0 Print a normal stack trace even if a hard stack overflow happens in unmanaged code. 2011-02-04 12:55:47 +01:00
Zoltan Varga 719afa9b59 Print a normal stack trace on a hard stack overflow. 2011-02-03 23:04:47 +01:00
Zoltan Varga 8f45703547 Fix the handling of CompareExchange icalls in AOT, we were using the 'object' versions for everything, which broke with 64 bit types on 32 bit platforms. 2011-02-03 21:59:34 +01:00
Ankit Jain d47a028ed4 [webservices] Extensions can be unknown XmlElements also, fix.
* class/System.Web.Services/System.Web.Services.Description/BasicProfileChecker.cs:
Extensions can be XmlElement or ServiceDescriptionFormatExtension.
* class/System.Web.Services/System.Web.Services.Description/ServiceDescription.cs:
(AddExtensionNamespaces): Likewise. Also, ignore namespaces from
XmlElement, as we retain and write them out as-is.
(WriteExtension): Emit the XmlElement as-is.
* class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs:
Update to write out the wsdl also.
2011-02-04 01:03:45 +05:30
Marek Habersack 568f9ab996 [asp.net] HttpRuntimeSection.RequestPathInvalidCharacters default value is different 2011-02-03 17:43:31 +01:00
Marek Habersack c7f2fda73d [xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocument} are present in 3.5+
With the exception of DtdProcessing, the properties are part of .NET 3.5+. DtdProcessing appeared in 4.0.
2011-02-03 17:43:02 +01:00
Marek Safar c139a0e52d Don't even try to import type when its context is wrong 2011-02-03 15:21:38 +00:00
Marek Safar 320645f312 Add handling of broken Convert callsite from Orchard Project 2011-02-03 15:21:13 +00:00
Marek Safar 8b1e1255e6 Fix importing of private types under dynamic context 2011-02-03 15:16:50 +00:00
Zoltan Varga a96d068321 Fix the passing of vtype arguments for methods which return floats in soft-float mode. Fixes #668905. 2011-02-03 16:06:25 +01:00
Marek Safar a5f9b5d9c6 Allow any expression to be used in where clause. Some custom linq implementations use non-predicate version of where 2011-02-03 13:55:28 +00:00
Marek Habersack fe7386298f [reflection] Default binder's AdjustArguments method treats ParamArray parameters which are already arrays properly
Such parameters are not adjusted as it would lead to an InvalidCastException whenever an attempt to set an array
index's value would be made.
2011-02-03 02:23:15 +01:00
Zoltan Varga db64c7f8f1 Add support for --debug=casts to Array:SetValue (). Fixes #668851. 2011-02-03 00:37:45 +01:00
Zoltan Varga 63f4b4cdd4 Fix a warning. 2011-02-03 00:36:41 +01:00
Rodrigo Kumpera 0efd1e04f6 Fix dynamic method cleanup at shutdown.
* gc.c (mono_gc_cleanup): Cleanup all reference
	queues after regular finalization.

	* reflection.c: The dynamic method ref queue is finalized
	by the runtime itself.

	* runtime.c: Ditto.
2011-02-02 20:28:30 +01:00
Miguel de Icaza b4e49b89b4 [csharp] Change the signature for print 2011-02-02 13:09:53 -05:00
Marek Safar bf12c6eb03 Implement support for implicit user conversion for DefaultParameterValue (very odd) 2011-02-02 17:25:22 +00:00
Ankit Jain 15514b1b26 [xbuild] Warn for unknown toolsVersion only on build.
Emit warning for unknown toolsversion only on a build, and
*not* everytime the project file is parsed.

* class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Project.cs
(GetToolsVersionToUse): Add a 'emitWarning' bool param.
(Build): Call GetToolsVersionToUse () to ensure that a warning is
emitted in case of a unknown tools version.
2011-02-02 18:26:43 +05:30
Rodrigo Kumpera 8dba556993 Align call instructions to make code patching SMP safe.
* mini-x86.c (emit_call): Align call instructions on
	3 mod 4 so the address is 4 bytes aligned and can't span
	two cache lines. This is required for proper SMP support
	as CAS is not atomic across cache lines.

	Fixes one of the crashes due to #667921.
2011-02-02 13:03:04 +01:00
Geoff Norton a40312f1c1 Avoid a stack overflow when deactivating a window 2011-02-01 23:54:06 -05:00
Lucas Meijer ca201f3478 make mono_print_thread_dump output to the visualstudio debugger window, for better debugger experience 2011-02-01 21:55:57 +01:00
Rodrigo Kumpera e7785a27ab Don't use finalization to cleanup dynamic methods.
* reflection.c: Use a reference queue to cleanup
	dynamic methods instead of finalization.

	* runtime.c: Shutdown the dynamic method queue
	before runtime cleanup begins.

	* DynamicMethod.cs: No longer finalizable.

	* icall-def.h: Remove unused dynamic method icall.

	Fixes #660422
2011-02-01 17:35:11 +01:00
Rodrigo Kumpera fd57b963ad Implement a reference queue API.
* gc.c: A reference queue allows one to queue
	callbcks for when objects are collected.
	It allows for safe cleanup of objects that can
	only be done when it is effectively collected.
	The major difference with regular finalization
	is that the collector makes sure the object
	was collected - and can't be resurrected.

	* gc-internal.h: Export entrypoints for the
	new API.
2011-02-01 17:35:11 +01:00
Zoltan Varga 88bfc71d89 Make caching in mono_marshal_get_virtual_stelemref () thread-safe. Fixes #668489. 2011-02-01 17:09:45 +01:00
Marek Safar efcd37f730 Fix empty cast conversion from dynamic type object type argument 2011-02-01 14:29:49 +00:00
Marek Habersack b27182bd5d [asp.net] FormsAuthenticationTicket.FromByteArray stops early if it is passed a null parameter 2011-02-01 09:21:13 +01:00
Marek Habersack e44310c079 [runtime] AddWatcher icall must look up the path in an IOMAP-aware way 2011-02-01 09:21:07 +01:00
Atsushi Eno 5d7723bc37 Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-01 15:59:00 +09:00
Atsushi Eno 157111dbb5 quick build workaround. 2011-02-01 13:01:50 +09:00
Atsushi Eno 38bdb82f95 in NET_4_0, remove types that went into System.Xaml.dll. Change build order. 2011-02-01 11:05:11 +09:00
Bit Diff 0a8a210791 Fixes #527447 whereby it was not possible to pass additional arguments to mono-service2 (if your executable required command-line arguments of it's own). 2011-01-31 17:59:03 -05:00
Zoltan Varga ca0ededdc6 Fix stack walks on sparc. 2011-01-31 22:40:11 +01:00
Gonzalo Paniagua Javier 79633ee3d1 Handle wrapped ThreadAbortException
Third party ProcessRequest() like the one from Razor can wrap a
	ThreadAbortException originated from response.Redirect().
2011-01-31 16:36:16 -05:00
Jonathan Pryor 0577648c00 Fix the basic-profile build. 2011-01-31 15:16:05 -05:00
Jonathan Pryor 8cc7997a69 Fix the MonoDroid build.
Most System.TimeZoneInfo members weren't being included.
2011-01-31 14:05:19 -05:00
Gonzalo Paniagua Javier 1258d11fc3 Allow forcing HTTP protocol version
If the version is manually set, ignore the version from the service
	point when set.

	Fixes bug #668199.
2011-01-31 10:49:40 -05:00
Lluis Sanchez b5da420c28 Handle possible exceptions thrown by Socket.Close 2011-01-31 16:34:17 +01:00
Marek Habersack 879cb82456 [asp.net] Implemented 4.0 types System.Web.Security.{MachineKey,MachineKeyProtection} plus tests 2011-01-31 15:20:57 +01:00
Zoltan Varga 15aed192fb When using xdebug, allocate all code from the code manager of the root domain. Hopefully fixes #666152. 2011-01-31 14:02:29 +01:00
Marek Habersack 789c5a7f91 [asp.net] Ignore directories that don't exist instead of throwing. 2011-01-31 11:08:33 +01:00
Marek Habersack 684266d2b3 [runtime] Use IOAMP-aware method of looking for domain configuration file 2011-01-31 09:47:20 +01:00
Jo Shields c5302b7b52 Really fix sgen on PowerPC Linux. Assembler on Linux requires that register names are just bare numbers, unlike OSX, i.e. "r0" must be "0" on Linux. 2011-01-31 07:47:05 +01:00
Atsushi Eno fc0ec2635d Do not return DocumentFragment from AppendChild() etc. Fixed bug #666249. 2011-01-31 13:48:00 +09:00
Atsushi Eno 2d13b63f4e Fixed bug #666872; XElement.Changed and .Changing were not triggered. 2011-01-31 13:46:55 +09:00
Atsushi Eno b057032956 add public NetTcpSecurity .ctor() and close #667429. 2011-01-30 23:38:57 -05:00
Miguel de Icaza a11120ae36 [repl] Fix running specified scripts from command line, allow #! syntax, add print command
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.

Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase

Add a better way of dealing with -e, without adding hacks to the core that wont work
in the future
2011-01-30 17:43:44 -05:00
Miguel de Icaza b56b8ad2c3 [repl] Add support for -e EXPRESSION to the csharp command 2011-01-30 12:06:10 -05:00
Miguel de Icaza 0b17f7feab Document csharp #! support 2011-01-30 11:41:09 -05:00
Miguel de Icaza abf855afe1 [repl] Fix running specified scripts from command line, allow #! syntax, add print command
We were calling the Reset () method after we had initialized the driver
with the new command line arguments, clearing the list of files to execute
before we executed them.

Added support for #! in the csharp repl, and added the print() command to
the InteractiveBase
2011-01-30 11:33:00 -05:00
Zoltan Varga af6065a810 Fix some quadratic behavior in the AOT compiler. 2011-01-30 09:13:51 +01:00
Zoltan Varga 9cffdf6cf4 Improve hashing of MONO_PATCH_INFO_TYPE_FROM_HANDLE. 2011-01-30 09:13:36 +01:00
Zoltan Varga 5a862ae52a Mark a newly added test as !FULLAOT. 2011-01-30 09:13:05 +01:00
Zoltan Varga 07b052d9c6 Don't crash when inlining static methods called using callvirt. Fixes #668170. 2011-01-30 07:00:30 +01:00
Zoltan Varga 70adac78be Clear the 'need_rgctx_tramp' flag when creating a synchronized wrapper. Fixes 2011-01-29 20:52:23 +01:00
Geoff Norton 51a4f125d1 Typo 2011-01-29 11:37:17 -05:00
Geoff Norton 8e4b73cb4a Avoid a crash when shutting down jit attached threads 2011-01-28 19:05:21 -05:00
Geoff Norton e0dd2115d6 Ensure we setup the vtable before accessing it 2011-01-28 01:08:57 -05:00
Zoltan Varga 54fe90cf1c Add an AtLeast version to sdb's VersionInfo class. 2011-01-28 06:28:55 +01:00
Geoff Norton abc793ffbd Bump SDB protocol so MonoDevelop can guard IL inspection of dynamic methods 2011-01-28 00:26:12 -05:00
Geoff Norton d23601d20b Dont leak loader errors in the aot compiler, as it could cause later methods to not get compiled erroneously 2011-01-27 23:23:27 -05:00
Gonzalo Paniagua Javier 2151a961f8 [HttpListener] Set each cookie in its own header
Send a Set-Cookie header per cookie instead of a Set-Cookie2 with
	multiple cookies.

	Fixes bug #667550.
2011-01-27 15:47:53 -05:00
Zoltan Varga b8bf630538 Fix AOT support for types in the EXPORTEDTYPE table. 2011-01-27 19:28:18 +01:00
Zoltan Varga 77f13bc288 Increase an aot buffer size again. 2011-01-27 17:25:07 +01:00
Marek Habersack dead19bc1e [asp.net] A bunch of fixes related to the default VirtualPathProvider (needed for Orchard)
* DefaultVirtualDirectory is now more careful when snipping off parts of the path passed to
  its constructor. Before removing the file part it checks whether the file indeed exists.
  Also sealed the class and made it use generic List instead of ArrayList
* HttpRequest does not normalize mapped paths when converting them to absolute ones. This is
  to avoid errors when path like "~/bin/../../file.txt" is passed to MapPath.
* VirtualPathUtility.ToAbsolute overload with normalize parameter really doesn't normalize
  the resulting path now.
2011-01-27 15:36:45 +01:00
Marek Habersack ef2c84591a [machine.config] Added the <system.transactions> section definition 2011-01-27 15:36:45 +01:00
Zoltan Varga 30f5e30bc4 Applied patch from Burkhard Linke <[email protected]>. Add support for newer boehm-gc versions. 2011-01-27 15:35:25 +01:00
Jérémie Laval cdd5b3f397 Leave db connection opened until requested to close it and add more unit tests 2011-01-27 13:18:19 +00:00
Zoltan Varga 4512ede1a0 Fix compilation of tests/assemblyresolve with newer mcs-es. 2011-01-27 11:06:35 +01:00
Marek Safar fb6c06445f [667261] Fixes overload resolution of an optional parameter followed by a params parameter of the same type 2011-01-27 09:06:10 +00:00
Zoltan Varga d2fddf5062 Fix dist issues in Mono.Debugger.Soft. 2011-01-27 07:16:44 +01:00
Gonzalo Paniagua Javier ae3683b3c2 Prevent abort
When cleaning up the sockets we no longer have access to Tls.
2011-01-26 23:09:50 -05:00
Zoltan Varga 36d4336429 Add AOT support for castclass_with_cache wrappers. 2011-01-27 01:44:47 +01:00
Kyle Ambroff 51a47770f2 version tolerant serialization fails with missing primitive members
Modifies ObjectReader so that when it encounters a primitive typed member in
an object stream which has no corresponding member in the app domain, it will
read the value anyway and throw it away. That way it can read the next block
from the stream.

Added a unit test which passes with the changes to ObjectReader.

Fixes bug #641821.
2011-01-26 18:07:42 -05:00
Kenneth Bell c0a4dd98cf Implement RawSecurityDescriptor.
* Marshals to/from SDDL and binary form.

 * Supports 'Common' ACEs and 'Object' ACEs
2011-01-26 17:58:57 -05:00
Kenneth Bell 27729c4b20 Implement SecurityIdentifier and improve NTAccount.
* Only translates between SecurityIdentifier and NTAccount for
    well-known accounts.

  * NTAccount changed to not upper-case values to match behaviour
    observed in Microsoft's .NET (see also unit tests)

  * Add unit tests for both classes
2011-01-26 17:46:28 -05:00
Antoine Cailliau c7f33c1904 Implements System.ComponentModel.DataAnnotations.RegularExpressionAttribute 2011-01-26 17:28:56 -05:00
Geoff Norton eb3626b925 Include operands when emitting the IL stream to sdb clients 2011-01-26 12:34:48 -05:00
Geoff Norton acba62755d Ensure we properly align the stack before resuming from breakpoint signal handlers 2011-01-26 12:13:52 -05:00
Andrew Jorgensen e62983964b Add 2.0 and 4.0 S.D.S.C 2011-01-26 09:48:47 -07:00
Geoff Norton 93966536b5 Dynamic methods are classes already here 2011-01-26 11:24:38 -05:00
Rodrigo Kumpera 9aa0d0ba0b Fix freeing of delegate wrappers.
* marshal.c (mono_marshal_get_delegate_invoke): If
	the target is a static method with first arg bound
	and it belongs to a different assembly than the delegate
	we might end up with a freed signature in the hashtable.

	Fix a moonlight crash.
2011-01-26 12:37:39 +01:00
Marek Safar e984af0443 Optimized constructor readonly access has to be inside same declarting type 2011-01-26 09:04:50 +00:00
Geoff Norton 97c46a7be6 MonoTouch doesnt support SRE, so we need to disable this code on MT 2011-01-25 23:04:33 -05:00
Zoltan Varga 7d5fce6c1b Add a 'suspend-on-unhandled' MONO_DEBUG option to help track down the random build failures on ia64. 2011-01-26 04:17:08 +01:00
Geoff Norton 3d19f5b624 Further .NET 4.0 ification of the mobile profile 2011-01-25 20:11:19 -05:00
Ankit Jain 16669c9944 [xbuild] Improve error messages for condition evaluation.
Also, add new ExpressionEvaluationException class.
Wrap Expression*Exceptions in InvalidProjectFileException with
info about the full condition being evaluated.
2011-01-26 05:03:16 +05:30
Ankit Jain a8f4de0f37 [xbuild] Support short-circuiting in conditions. 2011-01-26 05:03:14 +05:30
Ankit Jain ad8508c148 [xbuild] Correctly set CscToolExe if TargetFrameworkVersion is not set.
* tools/xbuild/xbuild/Microsoft.CSharp.targets: $(CscToolExe)
is set depending on the value of $(TargetFrameworkVersion).
Since, $(TargetFrameworkVersion)'s default value is set
by MS.Common.targets, set $(CscToolExe) *after* importing
MS.Common.targets .
2011-01-26 05:03:13 +05:30
Ankit Jain 081dc45b72 [xbuild] Fix bug #665637.
Pass $(WarningsNotAsErrors) to Csc task.
2011-01-26 05:03:11 +05:30
Ankit Jain b0f9fd65a1 [xbuild] Fix bug #665004. Honor /nologo option.
* tools/xbuild/Parameters.cs (DisplayVersion): Remove, not required.
2011-01-26 05:03:10 +05:30
Ankit Jain f995310582 [xbuild] Update Novell copyright. 2011-01-26 05:03:08 +05:30
Ankit Jain 5789f96b3c [xbuild] Error out, if no target is found in a project. 2011-01-26 05:03:07 +05:30
Jb Evain e413cf2327 [linq] Fix Reverse for IList implementors 2011-01-26 00:10:55 +01:00
Jb Evain bbd7f83168 [linq] Fix overflow check for Count 2011-01-26 00:10:41 +01:00
Jb Evain dcad2f1b22 [linq] fix Range extreme boundaries 2011-01-26 00:10:30 +01:00
Miguel de Icaza e9f180be6a Restoring some of the formal beauty of this text document as
we carefully restore the missing tabs that helped carefully
align the continuation characters in a list of assemblies.

As we align these newline separators, suddenly, a new form
emerges from the chaos, something that gives us the illusion
that this stream of bytes is indeed almost like a dawn of a
new day as we breathe the air in a valley overlooking a beautiful
mountain at the beginning of the spring.
2011-01-25 17:56:00 -05:00
Geoff Norton 8c3c6c4b54 Fix the mobile build 2011-01-25 14:16:11 -05:00
Mark Probst f97c2388cb Merge branch 'sgen-android' into mono-2-10
Conflicts:
	mono/metadata/sgen-gc.c
2011-01-25 16:35:16 +01:00
Marek Habersack 1e0d0e7c4c [corlib,crypto] RandomNumberGenerator implements IDisposable in 4.0 2011-01-25 15:49:24 +01:00
Marek Habersack f96a9873cc [system] SmtpClient implements IDisposable on 4.0 (a no-op for now) 2011-01-25 15:49:19 +01:00
Marek Habersack b10086345e [wcf] Install the System.Data.Services.Client properly. 2011-01-25 15:49:13 +01:00
Marek Safar 77a05371b4 Degrade wrong override member to virtual instead of non-virtual 2011-01-25 10:46:43 +00:00
Geoff Norton ff1caafd97 Add pfx to the mobile profile 2011-01-25 01:52:17 -05:00
Geoff Norton d1eb847ef2 Work around a full-aot issue for monotouch System.Json 2011-01-25 01:52:12 -05:00
Zoltan Varga 6e268ac849 Fix up CAS tests a bit. 2011-01-25 03:01:48 +01:00
Andrew Jorgensen 8f69b0e0e0 Add WebMatrix.Data to spec 2011-01-24 15:17:16 -07:00
Tomasz Kubacki d70c578fc4 [Mono.CSharp] Improve error reporting 2011-01-24 15:44:42 -05:00
Geoff Norton 7ee94c1ca3 Avoid leaking the vmmap allocated by the kernel for the thread_act_array_t 2011-01-24 12:07:24 -05:00
Geoff Norton 8db070aae1 Fix a mach port leak 2011-01-24 11:39:19 -05:00
Jérémie Laval bc326d8e73 Add unit test for Database 2011-01-24 15:06:00 +00:00
Jérémie Laval 7c3bd246b6 Add unit tests for DynamicRecord 2011-01-24 15:05:58 +00:00
Jérémie Laval 1f40d73cdf Just fixup comment 2011-01-24 15:05:58 +00:00
Jérémie Laval b364173319 Add GetLastInsertId 2011-01-24 15:05:55 +00:00
Jérémie Laval f1acca540b Foobar trigger connection 2011-01-24 15:05:54 +00:00
Jérémie Laval 98c4b8992d Add Close method 2011-01-24 15:05:53 +00:00
Jérémie Laval 591be8a33f Add ConnectionOpened event to Database 2011-01-24 15:05:53 +00:00
Jérémie Laval f5b9efc784 Fix up compilation of Database and DynamicRecord 2011-01-24 15:05:52 +00:00
Jérémie Laval d607d23767 Add Dispose calls to Database 2011-01-24 15:05:52 +00:00
Jérémie Laval 1b4eee0534 Add Database type 2011-01-24 15:05:51 +00:00
Jérémie Laval 784198d66a Complete base DynamicRecord API 2011-01-24 15:05:50 +00:00
Jérémie Laval 77908fc88a Stub DynamicRecord 2011-01-24 15:04:53 +00:00
Jérémie Laval 9bcbd52f03 Add WebMatrix.Data assembly skeleton 2011-01-24 15:01:20 +00:00
Jérémie Laval b57515aa5a Make sure a synchronous continuation get executed synchronously in all cases 2011-01-24 14:33:57 +00:00
Marek Habersack 2d2834e4bc [asp.net] Global.asax assembly must be passed as reference when compiling. BuildManager.GetType improvements.
When user has their own global application class (global.asax is present) the assembly produced from it must
be passed as reference to the compiler.
BuildManager.GetType now supports fully-qualified type names for 'typeName' and searches for the type in the
top-level assemblies, the global.asax assembly and in the assemblies specified in as references in web.config.

All of this fixes certain MVC3+Razor applications.
2011-01-24 15:30:53 +01:00
Marek Habersack a87db25252 [asp.net] Avoid passing duplicate assemblies on mcs command line. 2011-01-24 15:30:47 +01:00
Marek Safar 450b15885d [666476] Use correct parameter count when checking ambiguous params methods 2011-01-24 14:04:41 +00:00
Marek Safar 3fc9d42ca0 Use byte array as underlying storage for AttributeEncoder 2011-01-24 13:59:33 +00:00
Zoltan Varga e50fc47fd5 Dist finally_guard.cs. 2011-01-24 04:15:05 +01:00
Gonzalo Paniagua Javier 234a2d72e8 Fix Dispose() 2011-01-22 13:30:22 -05:00
Marek Habersack 38e5ecca9f [asp.net,routing] Fix for bug #651966. Regular expression constraints must be treated as absolute regexps. 2011-01-22 12:44:25 +01:00
Gonzalo Paniagua Javier 7dabffd212 [HttpListener] Fix incorrect 411 error
Don't send a 411 for unknown methods without content length.
	No need to assign input_stream until requested.

	Fixes bug #666251.
2011-01-21 23:53:51 -05:00
Zoltan Varga 9e14e62935 Fix an assert which happens when a call is made to Nullable.Unbox from gshared code in AOT. 2011-01-22 03:08:26 +01:00
Bassam Tabbara 54b00f3630 Fix for 666225 2011-01-21 21:00:49 -05:00
Miguel de Icaza 6e81152a98 [getline] Fix history search in the cmdline editor 2011-01-21 20:48:51 -05:00
Miguel de Icaza 6593ea7a5e [Mono.CSharp] Fix bug where overwriting variables cleared the wrong value
This fixes #641910
2011-01-21 20:19:38 -05:00
Miguel de Icaza 70feb6a2b3 [csharp] repl using statement fix + support for --fatal
Fixes #638585 which kept reporting the same error on the using statements over and over
Added support for the --fatal flag to the REPL
2011-01-21 19:56:41 -05:00
Zoltan Varga 93f8f61c8a Transition non perf-critical users of klass->has_finalize over to mono_class_has_finalizer (). 2011-01-21 22:32:00 +01:00
Zoltan Varga cef819966a Obsolete VirtualMachine.GetNextEvent () as it is impossible to determine when to resume after an event, since the debuggee suspends only once per event-set. 2011-01-21 21:54:31 +01:00
Zoltan Varga 8b52311dfd Initialize klass->has_finalizer lazily. This allows us to remove the find_method_in_metadata () optimization without a perf cost which is broken in the presence of overrides. Fixes #665769. 2011-01-21 21:54:12 +01:00
Andrew Jorgensen faac64a083 Oops, Microsoft.Web.Infrastructure, not System. 2011-01-21 12:54:13 -07:00
Andrew Jorgensen 0e29d1e39b add Microsoft.Web.Infrastructure 2011-01-21 10:44:36 -07:00
Sebastien Pouliot ef3bdc76c2 Allow RSACryptoServiceProvider.SignHash to work with SHA-2 family
* System.Security.Cryptography/CryptoConfig.cs: Add OID for RIPEMD160
* System.Security.Cryptography/RSACryptoServiceProvider.cs: Update
GetHashNameFromOID to include SHA2-family OIDs. Remove historical
comments about 1.x FX behavior.

* Test/System.Security.Cryptography/CryptoConfigTest.cs: Add test cases
wrt RIPEMD160 OID
* Test/System.Security.Cryptography/RSACryptoServiceProviderTest.cs: Add
test case for SignHash with all FX-provided hash implementations (all
working except RIPEMD160). Remove some NET_2_0/NET_1_1 defines.
* Test/System.Security.Cryptography/RSAPKCS1SignatureFormatterTest.cs:
Remove hacks that were needed for running the tests under FX 1.x. Remove
some NET_2_0/NET_1_1 defines.
2011-01-21 08:39:32 -05:00
Zoltan Varga ec98a692a1 Add NET 4.0 Assembly.UnsafeLoadFrom () method. 2011-01-21 07:27:30 +01:00
Zoltan Varga a1681e5ee3 Fix the previous aot fix. 2011-01-21 05:58:29 +01:00
Miguel de Icaza 962fedd1e6 Do not build the Socket passing on Mobile systems 2011-01-20 22:50:08 -05:00
Atsushi Eno 5920237751 backport JavaScriptObjectDeserializer encoding detection fix. 2011-01-21 12:13:52 +09:00
Gonzalo Paniagua Javier 788535030b [System.Web] Razor works now (modulo DB) 2011-01-20 21:59:47 -05:00
Zoltan Varga 48f3edb3cd Add a test for infinite generic recursion + AOT. 2011-01-21 02:07:57 +01:00
Zoltan Varga e235e72884 Only add imt items whose is_equal flag is set to the array passed to the full-aot imt thunk. 2011-01-21 02:06:47 +01:00
Zoltan Varga 3a1ae308b8 Avoid emitting .note.GNU-stack on arm. 2011-01-21 01:52:51 +01:00
Zoltan Varga f1c1e02c38 Detect inifinite generic recursion differently in the AOT compiler. 2011-01-21 01:50:35 +01:00
Marek Habersack 43937146ac [asp.net] Don't throw NREX when a cache item to be removed is null 2011-01-20 23:39:12 +01:00
Miguel de Icaza c618dfe519 [sockets] Implement DuplicateAndClose and Socket (SocketInformation) constructor for in-process socket passing (AppDomains) 2011-01-20 16:52:49 -05:00
Andrew Jorgensen 42afbbaaa4 remove conflict marker 2011-01-20 11:24:24 -07:00
Jb Evain 730898592e [bug] Prevent a GetMethodBody call on a dynamic method. Fixes 665788 2011-01-20 16:45:43 +01:00
Marek Habersack 0a63027390 [asp.net,mvc] Make unobtrustive request validation in MVC v3 possible
Validation is enabled early in the pipeline during request. ValidationUtility makes sure that validation is indeed enabled and
replaces the default form and query string collections with a lazy version which will validate values only when an existing key
is found and requested.
2011-01-20 14:38:46 +01:00
Marek Habersack 61aa41abb7 [asp.net] Do not throw NREX when firstError is null in ErrorMessage getter 2011-01-20 14:38:37 +01:00
Marek Habersack 66818bb2b6 [asp.net] ValidationUtility implementation 2011-01-20 14:38:21 +01:00
Marek Habersack 1d180c57e1 [asp.net] Introduced unvalidated versions of Form and QueryString properties for MVC3 2011-01-20 14:38:12 +01:00
Marek Habersack 5119b6ef08 [asp.net] Implemented dynamic HTTP module registration 2011-01-20 14:38:02 +01:00
Marek Habersack 14698a4fbf [asp.net] Implemented BuildManager.GetObjectFactory
This method is not used by Mono internally but is called by MVC v3.
2011-01-20 14:37:53 +01:00
Marek Habersack bbca7f5660 [asp.net] Added internal property InputValidationEnabled to report whether the user enabled validation for current request. 2011-01-20 14:37:42 +01:00
Marek Habersack a0c987053d [asp.net] System.Web and Microsoft.Web.Infrastructure are now friends 2011-01-20 14:37:33 +01:00
Marek Habersack 61f6558eae [asp.net] Added the Microsoft.Web.Infrastructure assembly 2011-01-20 14:37:17 +01:00
Marek Safar ba139553af [665333] Encode Length of Public Key correctly 2011-01-20 08:36:02 +00:00
Zoltan Varga 15ead88bf2 Properly align the stack in the arm generic trampoline. 2011-01-20 05:36:20 +01:00
Zoltan Varga 626711d3ac Add a TID field to ThreadMirror which returns the system thread id. 2011-01-20 02:14:22 +01:00
Andrew Jorgensen 51d92f3a6a Dist more files needed by MSVC build 2011-01-19 15:43:12 -07:00
Rodrigo Kumpera 3914fd479a Document precise marking 2011-01-19 15:02:25 +01:00
Rodrigo Kumpera a3d0d6916e Properly clear weak refs that don't track resurrection.
* sgen-gc.c (finish_gray_stack): We must clear
	weak refs that don't track resurrection before
	processing finalizable objects otherwise we'll
	copy/mark them and the weak ref won't be cleared
	until after finalization.

	Fixes #657408
2011-01-19 15:02:09 +01:00
Gonzalo Paniagua Javier 347ad09426 Happy new year. 2011-01-18 22:44:15 -05:00
Zoltan Varga 744c3e2c5b Make the stacks of aot image non-executable. 2011-01-18 18:12:47 +01:00
Marek Safar ca11993157 Checking skd path for is not enough, add check for mscorlib as well 2011-01-18 17:11:07 +00:00
Marek Safar 132f745176 Fallback to corlib location when sdk path cannot be found 2011-01-18 17:10:46 +00:00
Zoltan Varga 001ea99047 Disable some of the FastCopy fast paths since they are racy. 2011-01-18 17:17:42 +01:00
Zoltan Varga 74d5f80e4a Allow only primitive types/enums in RuntimeHelpers.InitializeArray (). 2011-01-18 16:42:22 +01:00
Marek Safar 8e600e2290 Remove devirtualization for Type members 2011-01-18 13:32:34 +00:00
Zoltan Varga fe6c36df0a Make runtime invoke wrappers use cdecl cconv on windows. 2011-01-17 23:18:17 +01:00
Zoltan Varga fe3cd893f7 OP_LCOMPARE_IM has type 'L', not 'I'. Fixes #664630.
This is the same as 6c02c15153, but only for ia64, to avoid destabilizing the
branch.
2011-01-17 22:46:43 +01:00
Rodrigo Kumpera 7dfbfce2c4 Don't check for brokeness when verifying contraints.
* verify.c (is_valid_generic_instantiation): Don't
	check if any argument is broken during constraint check
	as an instance should be valid, but not realizable, even
	if it has broken arguments.

	Fixes one of the issues with #664612
2011-01-17 20:05:16 +01:00
Marek Safar fd66549c35 Add new mcs -sdk option 2011-01-17 17:22:12 +00:00
Zoltan Varga 61b183faa3 Avoid another case of infinite recursion in AOT. 2011-01-17 16:15:10 +01:00
Jb Evain 029c168ffb Fix pdb2mdb when a pdb has a method with no seq points.
Patch by Thad Thompson <[email protected]>
2011-01-17 15:55:11 +01:00
Marek Safar 2ec8c50752 Update to the latest mcs version 2011-01-17 14:15:43 +00:00
Marek Safar 322bc4c9c2 Update IKVM.Reflection 2011-01-17 14:13:26 +00:00
Marek Habersack 8341dc023d [asp.net] (4.0) Validate the form data in Form getter 2011-01-17 14:03:09 +01:00
Zoltan Varga 52ac70bd71 Fix the previous marshalling change so it only applies to chars, not structures which contain char fields. 2011-01-17 00:09:39 +01:00
Zoltan Varga 3229ba977b Pass the string encoding to emit_struct_conv () so marshalling of char arrays works on big-ending machines like s390/ppc64. 2011-01-16 21:11:45 +01:00
Zoltan Varga 02c5d6df68 Make OP_CHECK_THIS do a byte load on arm, since the source argument might point to a vtype if a vtype method is inlined. 2011-01-14 22:29:29 +01:00
Marek Habersack 10ed451a10 [asp.net] Make StopRoutingHandler actually stop the routing instead of throwing an exception
Patch from Damir Simunic <[email protected]>, thanks!
2011-01-14 21:37:18 +01:00
Ankit Jain 31458593f0 [xbuild] Use the backing field directly to avoid evaluating again.
* Microsoft.Build.BuildEngine.Project.cs (InitializeProperties): Use
evaluatedProperties field instead of EvaluatedProperties property,
to avoid invoking a Reevaluate, since it is already in progress.
2011-01-14 04:11:23 +05:30
Ankit Jain 4a914ca1bf [xbuild] Fix bug #664349 .
* Microsoft.Build.BuildEngine/Project.cs (BuildInternal): Set needToReevaluate to
false, when reevaluating.
2011-01-14 04:11:18 +05:30
Ankit Jain 66a2165e37 [xbuild] Add $(TargetDir) property.
Add $(TargetDir) and set TargetPath only if its not set already.
2011-01-14 04:11:12 +05:30
Ankit Jain 035f96e4f8 [xbuild] Clear the built targets cache on project unload.
Remove the entries for a project from the built targets cache, on
project unload.

* Microsoft.Build.BuildEngine/Engine.cs (ClearBuiltTargetsForProject): New.
* Microsoft.Build.BuildEngine/Project.cs (BuiltTargetKeys): Remove.
(RemoveBuiltTargets): Use Engine.ClearBuiltTargetsForProject .
* Microsoft.Build.BuildEngine/Target.cs: Track api changes.
*
2011-01-14 04:11:00 +05:30
Ankit Jain 88b0d19f8b [xbuild] Copy metadata from Project items to target outputs.
Copy metadata from Project items to the corresponding target
outputs in MSBuild task.

Fix the corresponding test also.
2011-01-14 04:10:46 +05:30
Ankit Jain ca46b25e6a [xbuild] Ensure trailing slash on some properties.
Ensure trailing slash on $(BaseIntermediateOutputPath) and
$(IntermediateOutputPath).
2011-01-14 04:10:37 +05:30
Ankit Jain 6140b9ca09 [xbuild] ConsoleLogger - Correctly indent multi-line messages.
Split and correctly indent multi-line messages in ConsoleLogger.
2011-01-14 04:10:29 +05:30
Geoff Norton 5ed112e660 Fix the win32 build 2011-01-13 12:38:44 -07:00
Geoff Norton 318ddb4924 Fix win32 build 2011-01-13 12:38:34 -07:00
Andrew Jorgensen b073713bfa Add vcxproj files for msbuild 2011-01-13 12:37:39 -07:00
Marek Habersack 4085f52f2c [data-annotations] Added some missing 4.0 members 2011-01-13 20:23:36 +01:00
Marek Habersack 71d78c2ceb [asp.net] Implemented the 4.0 type, FileLevelMasterPageControlBuilder 2011-01-13 20:23:26 +01:00
Zoltan Varga 7d25fb2f5e Add null check to stelem_ref_check () jit icall. Fixes #664297. 2011-01-13 18:42:52 +01:00
Jérémie Laval 6418ad41d2 Make use of the wait changes in the internal TaskScheduler -> IScheduler proxy. 2011-01-13 17:19:13 +00:00
Jérémie Laval 6a8c4a6220 Rework internal wait mechanism in thread workers participation code 2011-01-13 17:18:58 +00:00
Andrew Jorgensen 97d18f0c32 2.10 2011-01-13 09:50:27 -07:00
Jb Evain 92b8771128 Remove custom ResolutionException now that Cecil is providing one 2011-01-13 16:09:42 +01:00
Jb Evain 4689cde2f6 Update cecil from upstream 2011-01-13 16:09:17 +01:00
Jérémie Laval 7132ff6bc1 Fix continuation not being scheduled because of too early and too greedy disposing. 2011-01-13 14:40:02 +00:00
Rodrigo Kumpera e159ffb746 Fix 2.0 remapping of System.Transations to 2.0 and not 3.5. 2011-01-13 11:40:42 +01:00
Rodrigo Kumpera 882fad8a8e Fix array assignability to one of its generic interfaces.
* verify.c: mono_class_is_assignable_from can't handle
	IList<GTD<T>> x GTD[] since GTD[] won't have the right
	iface slots set. This isn't a problem for the runtime
	since GTD[] will never happen as it's an unrealizable type.

	Fixes #663815
2011-01-12 18:32:48 +01:00
Rodrigo Kumpera 6c6008506f Handle more cases of gtd encoded as ginst over itself.
* verify.c (mono_type_is_valid_type_in_context_full):
	The trick of encoding the GTD as an instantiation over its
	own arguments is also valid for component types such as GTD[]
	GTD[,] and Foo<GTD>.
2011-01-12 18:32:35 +01:00
Atsushi Eno 403346372f Fix cygwin build. 2011-01-12 20:05:08 +09:00
Marek Safar 4ae2b5037d Update copyright years 2011-01-12 09:28:03 +00:00
Marek Safar a67eb7f224 Use base type parameters to extract params modifier of virtual method 2011-01-12 09:27:39 +00:00
Marek Safar d9619cbfa9 Install new ikvm based C# compiler as mcs 2011-01-12 09:26:46 +00:00
Marek Safar c098d0d842 [662222] Import dynamic attribute using attribute type reader 2011-01-12 09:26:20 +00:00
Christian Hergert b2823262ba Fix broken g_int_hash/g_int_equal semantics
Both g_int_hash and g_int_equal used the semantics that an
integer is stored directly in the pointer. This is incorrect
as the pointer actually points to a location containing an
integer.

For those wanting the previous (incorrect) implementation,
they should look at g_direct_hash and g_direct_equal.
2011-01-11 19:46:05 -05:00
Marek Habersack 42d8b111ec [asp.net] Fix for bug #662918. Do not create the HtmlTitle child control for HtmlHead if <title> wasn't used in the page code. 2011-01-11 23:23:58 +01:00
Zoltan Varga cfa37dc27d Disable system AOT when using the loaded llvm, as it seems to cause crashes on the x86 buildbot. 2011-01-11 20:56:15 +01:00
Zoltan Varga 2be48ab1fa Dump the AOT log upon a failure. 2011-01-11 20:44:22 +01:00
Geoff Norton cd6a73c07f Fix AOT on OSX/x86 2011-01-11 10:34:03 -05:00
Geoff Norton 4264916df5 Fixed loadedllvm on OSX
The default build of libmono-llvm.dylib includes libmono and all its dependencies,
but our statically compiled mono binary does as well.  OSX can actually load both
into its process space, and get confused as to which symbol it should call, leading
to non-deterministic crashes.  We'll remove all the mono dependencies, and use
-undefined suppress to mitigate this on OSX.
2011-01-11 00:55:52 -05:00
Jonathan Pryor 32b1aa404a [monodoc/osx] Look for docs in additional directories.
Fixes #663182.

OSX allows multiple framework versions to be installed side-by-side,
and the current version is available through
/Library/Frameworks/Mono.framework/Versions/Current.

However, documentation installed into /L/F/M.f/V/C/lib/monodoc/sources
is specific for that Mono version; upgrade Mono.framework, and the
documentation is "lost," not visible to the newly installed version.

To fix this, we're creating an *unversioned* directory to contain
documentation, which will thus be persistent across Mono.framework
upgrades: /Library/Frameworks/Mono.framework/External/monodoc

This will allow Mono.framework to be upgraded without "losing" the
documentation visible within monodoc.
2011-01-10 21:09:26 -05:00
Zoltan Varga 1302702ad5 Fix a regression introduced by db4299a1. 2011-01-11 01:12:47 +01:00
Ankit Jain 3fb44e93e2 [xbuild] Update man page, new search paths for extensions and .pc files. 2011-01-11 05:19:12 +05:30
44454 changed files with 2619174 additions and 6308387 deletions

No files matched your search

+2 -1
View File
@@ -1,5 +1,5 @@
# ensure LF endings on all checkouts
configure.ac crlf=input
configure.in crlf=input
# ensure native line endings on checkout
*.c crlf
@@ -9,6 +9,7 @@ configure.ac crlf=input
*.il crlf
.gitattributes crlf
ChangeLog crlf
*akefile* crlf
*.sources crlf
+36 -128
View File
@@ -1,130 +1,38 @@
##############################################################################
# General
##############################################################################
# OS junk files
[Tt]humbs.db
*.DS_Store
# Visual Studio / MonoDevelop
*.[Oo]bj
*.exe
*.dll
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.ilk
*.log
*.lib
*.sbr
*.sdf
*.opensdf
*.resources
*.res
ipch/
obj/
[Bb]in
[Dd]ebug*/
[Rr]elease*/
Ankh.NoLoad
*.gpState
.vscode/
# Tooling
_ReSharper*/
*.resharper
[Tt]est[Rr]esult*
*.orig
*.rej
# NuGet packages
!.nuget/*
[Pp]ackages/*
![Pp]ackages/repositories.config
# Temporary Files
~.*
~$*
# Autotools-generated files
/Makefile
Makefile.in
aclocal.m4
autom4te.cache
/build/
config.cache
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
configure.scan
cygconfig.h
depcomp
install-sh
libtool
ltmain.sh
missing
mkinstalldirs
releases
stamp-h
stamp-h1
stamp-h.in
/test-driver
/Makefile.in
/_tmpinst
/aclocal.m4
/autom4te.cache
/config.cache
/config.guess
/config.h
/config.h.in
/config.h.in
/config.log
/config.status
/config.sub
/configure
/libtool
/ltconfig
/ltmain.sh
/mono-*.tar.gz
/*.pc
/mono.spec
/mono-core.spec
/semantic.cache
/stamp-h
/stamp-h.in
/stamp-h1
/tmpinst-dir.stamp
/missing
/compile
/depcomp
/install-sh
/doltlibtool
/doltcompile
/libtool.m4
/ltoptions.m4
/ltsugar.m4
/lt~obsolete.m4
/ltversion.m4
*~
*.swp
*.o
.deps
# Libtool
libtool.m4
lt~obsolete.m4
ltoptions.m4
ltsugar.m4
ltversion.m4
# Dolt (libtool replacement)
doltlibtool
doltcompile
# pkg-config
*.pc
# Emacs
semantic.cache
# gtags
GPATH
GRTAGS
GSYMS
GTAGS
# Doxygen
docs/doxygen*
docs/perlmod*
##############################################################################
# Mono-specific patterns
##############################################################################
.dirstamp
compile
mono.h
mono-*.tar.*
tmpinst-dir.stamp
msvc/scripts/inputs/
extensions-config.h
-37
View File
@@ -1,37 +0,0 @@
[submodule "external/aspnetwebstack"]
path = external/aspnetwebstack
url = git://github.com/mono/aspnetwebstack.git
[submodule "external/Newtonsoft.Json"]
path = external/Newtonsoft.Json
url = git://github.com/mono/Newtonsoft.Json.git
[submodule "external/cecil"]
path = external/cecil
url = git://github.com/mono/cecil.git
[submodule "external/debian-snapshot"]
path = external/debian-snapshot
url = git://github.com/directhex/mono-snapshot.git
[submodule "external/rx"]
path = external/rx
url = git://github.com/mono/rx.git
branch = rx-oss-v2.2
[submodule "external/ikvm"]
path = external/ikvm
url = git://github.com/mono/ikvm-fork.git
[submodule "external/ikdasm"]
path = external/ikdasm
url = git://github.com/mono/ikdasm.git
[submodule "external/reference-assemblies"]
path = external/binary-reference-assemblies
url = git://github.com/mono/reference-assemblies.git
[submodule "external/Lucene.Net.Light"]
path = external/Lucene.Net.Light
url = git://github.com/mono/Lucene.Net.Light.git
[submodule "external/nunit-lite"]
path = external/nunit-lite
url = git://github.com/mono/NUnitLite.git
[submodule "external/nuget-buildtasks"]
path = external/nuget-buildtasks
url = git://github.com/mono/NuGet.BuildTasks
[submodule "external/buildtools"]
path = external/buildtools
url = git://github.com/mono/buildtools.git
+3
View File
@@ -0,0 +1,3 @@
Miguel de Icaza ([email protected])
Paolo Molaro ([email protected])
Dietmar Maurer ([email protected])
-73
View File
@@ -1,73 +0,0 @@
Guidelines
==========
When contributing to the Mono project, please follow the [Mono Coding
Guidelines][1]. We have been using a coding style for many years,
please make your patches conform to these guidelines.
[1]: http://www.mono-project.com/community/contributing/coding-guidelines/
Etiquette
=========
In general, we do not accept patches that merely shuffle code around,
split classes in multiple files, reindent the code or are the result
of running a refactoring tool on the source code. This is done for
three reasons: (a) we have our own coding guidelines; (b) Some modules
are imported from upstream sources and we want to respect their coding
guidelines and (c) it destroys valuable history that is often used to
investigate bugs, regressions and problems.
License
=======
The Mono runtime, compilers, and tools and most of the class libraries
are licensed under the MIT license. But include some bits of code
licensed under different licenses. The exact list is [available here] (https://github.com/mono/mono/blob/master/LICENSE).
Different parts of Mono use different licenses. The actual details of
which licenses are used for which parts are detailed on the LICENSE
file in this directory.
CLA
=======
Contributions are now taken under the [.NET Foundation CLA] (https://cla2.dotnetfoundation.org/).
Testing
=======
Pull requests go through testing on our [Jenkins server][2]. We will
usually only merge a pull request if it causes no regressions in a
test run there.
When you submit a pull request, one of two things happens:
* If you are a new contributor, Jenkins will ask for permissions (on
the pull request) to test it. A maintainer will reply to approve
the test run if they find the patch appropriate. After you have
submitted a few patches, a maintainer will whitelist you so that
all of your future pull requests are tested automatically.
* If you are a well-known, whitelisted contributor, Jenkins will go
ahead and test your pull request as soon as a test machine is
available.
When your pull request has been built, Jenkins will update the build
status of your pull request. If it succeeded and we like the changes,
a maintainer will likely merge it. Otherwise, you can amend your pull
request to fix build breakage and Jenkins will test it again.
[2]: http://jenkins.mono-project.com/
# Inactivity
Occasionally, a pull request sits for several months without any
response from the author. This isn't necessarily an issue, but we may
sometimes decide to close pull requests that have not seen any
progress for a long time. This is in interest of keeping the pull
request list clean so that other pull requests don't get lost in the
clutter.
If we do close your pull request due to inactivity, you're more than
welcome to submit it anew after you address any comments or issues that
were brought up on the original pull request.
+501 -1
View File
@@ -1 +1,501 @@
See LICENSE file in the project root for full license information.
The Mono runtime is licensed under the terms of the GNU
Library General Public License, version 2.
The eglib directory is licensed under the terms of the MIT
X11 license and is a drop-in replacement for Mono's use of
glib 2.0 (which was LGPL).
The Boehm licensing information is in the libgc directory
The SGen Garbage Collector is under the terms of the MIT X11
license
The class libraries under mono/mcs are unless otherwise stated
under the MIT X11 license.
Open source Microsoft code is licensed under the original terms
which is either MS-PL for older components, or dual licensed
MS-PL/Apache2 licensed.
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
+5706
View File
File diff suppressed because it is too large. Load diff
+99 -1406
View File
File diff suppressed because it is too large. Load diff
+43 -72
View File
@@ -1,38 +1,34 @@
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
AM_CFLAGS = $(WERROR_CFLAGS)
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib/src mono
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
# Some tools might not build when cross-compiling
if CROSS_COMPILING
tools_dir =
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples tools msvc docs
else
tools_dir = tools
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
endif
endif
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) msvc $(docs_dir) acceptance-tests llvm
# Keep in sync with SUBDIRS
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests llvm
all: update_submodules
SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date'
update_submodules:
@$(srcdir)/scripts/update_submodules
.PHONY: update_submodules
EXTRA_DIST= \
README.md \
LICENSE \
autogen.sh \
mkinstalldirs \
mono-uninstalled.pc.in \
winconfig.h \
code_of_conduct.md \
external \
mcs/class/referencesource
LICENSE \
autogen.sh \
build-mingw32.sh \
mkinstalldirs \
mono-uninstalled.pc.in \
nls.m4 \
po.m4 \
progtest.m4 \
winconfig.h
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
@@ -41,13 +37,7 @@ GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
rm -rf `find $(top_distdir)/external -path '*\.git'`
rm -f `find $(top_distdir)/external -path '*\.exe'`
rm -f `find $(top_distdir)/external -path '*\.dll' -not -path '*/binary-reference-assemblies/*'`
cp mcs/class/lib/basic/System.Configuration.dll mcs/class/lib/monolite/
cp mcs/class/lib/basic/System.Security.dll mcs/class/lib/monolite/
# Disable this for now because it is very slow and causes wrench to timeout:
# test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
@@ -57,7 +47,7 @@ DISTCLEANFILES= mono-uninstalled.pc
mcslib = $(mcs_topdir)/class/lib
monolite = $(mcslib)/monolite
mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
monolite_url = http://download.mono-project.com/monolite/monolite-$(mono_corlib_version)-latest.tar.gz
monolite_url = http://mono.ximian.com/daily/monolite-$(mono_corlib_version)-latest.tar.gz
.PHONY: get-monolite-latest
get-monolite-latest:
-rm -fr $(mcslib)/monolite-*
@@ -67,14 +57,6 @@ get-monolite-latest:
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
if BITCODE
BITCODE_CHECK=yes
endif
.PHONY: check-ci
check-ci:
MONO_LLVMONLY=$(BITCODE_CHECK) $(srcdir)/scripts/ci/run-test-$(TEST_PROFILE).sh
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
validate: do-build-mono-mcs
$(MAKE) mcs-do-tests
@@ -97,28 +79,28 @@ mcs-do-compiler-tests:
bootstrap-world: compiler-tests
$(MAKE) install
if INSTALL_MONOTOUCH
monotouch-do-build: config.h
@list='$(MONOTOUCH_SUBDIRS)'; for subdir in $$list; do \
if MOONLIGHT
moon-do-build: config.h
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
case "x$$subdir" in \
xmono ) target="monotouch-do-build";; \
xmono ) target="moon-do-build";; \
* ) target="all";; \
esac; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
done;
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) monotouch-do-build)
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-build)
monotouch-do-clean:
@list='$(MONOTOUCH_SUBDIRS)'; for subdir in $$list; do \
moon-do-clean:
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
case "x$$subdir" in \
xmono ) target="monotouch-do-clean";; \
xmono ) target="moon-do-clean";; \
* ) target="clean";; \
esac; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target); \
done;
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) monotouch-do-clean)
(cd runtime && $(MAKE) $(AM_MAKEFLAGS) moon-do-clean)
endif
@@ -139,10 +121,12 @@ win32getdeps:
win32setup:
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
update-csproj:
-rm msvc/scripts/order
-rm msvc/scripts/order.xml
-rm -rf msvc/scripts/inputs
-mkdir msvc/scripts/inputs
(cd runtime; make V=1 extra_targets=csproj-local)
@@ -151,28 +135,15 @@ package-inputs:
echo '<root>' >> msvc/scripts/order.xml
for i in `cat msvc/scripts/order`; do \
set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
cat msvc/scripts/inputs/$$2.input | sed -e 's/\\\\/\\/g' -e 's/\\/\\\\/g' | \
cat msvc/scripts/inputs/$$2.input | \
(echo " <project dir=\"$$1\" library=\"$$2\">"; \
read boot; echo " <boot>$$boot</boot>"; \
read mcs; echo " <mcs>$$mcs</mcs>"; \
read flags; echo " <flags>$$flags</flags>"; \
read output; echo " <output>$$output</output>"; \
read built; echo " <built_sources>`echo $$built | sed 's/\\\/\\\\/g'`</built_sources>"; \
read built; echo " <built_sources>$$built</built_sources>"; \
read libou; echo " <library_output>$$libou</library_output>"; \
read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
read profile; echo " <profile>$$profile</profile>"; \
read resxt; echo " <resources>$$resxt</resources>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
echo " </project>") >> msvc/scripts/order.xml; \
done
echo "</root>" >> msvc/scripts/order.xml
# Update llvm version in configure.ac to the output of $LLVM_DIR/bin/llvm-config --version
update-llvm-version:
if test "x$$LLVM_DIR" = "x"; then echo "Set the make variable LLVM_DIR to the directory containing the LLVM installation."; exit 1; fi
REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.ac > tmp && mv tmp configure.ac && echo "Version set to $$REV."
update-solution-files:
make update-csproj
make package-inputs
(cd msvc/scripts; make genproj.exe; mono genproj.exe)
+6 -1
View File
@@ -1,3 +1,8 @@
Release notes for Mono are hosted on the web, please see:
http://www.mono-project.com/docs/about-mono/releases/
http://www.go-mono.com/archive/VERSION
Where version is the version of this Mono package, for example:
http://www.go-mono.com/archive/1.1.9
-44
View File
@@ -1,44 +0,0 @@
Microsoft Patent Promise for Mono
Microsoft Corporation and its affiliates (“Microsoft”) promise not to
assert any Applicable Patents against you for making, using, selling,
offering for sale, importing, or distributing Mono.
If you file, maintain, or voluntarily participate in any claim in a
lawsuit alleging direct or contributory patent infringement by Mono,
or inducement of patent infringement by Mono, then your rights under
this promise will automatically terminate.
This promise is not an assurance that (i) any Applicable Patents are
valid or enforceable or (ii) Mono does not infringe patents or other
intellectual property rights of any third party. No rights except
those expressly stated in this promise are granted, waived or received
by Microsoft, whether by implication, exhaustion, estoppel or
otherwise. This is a personal promise directly from Microsoft to you,
and you agree as a condition of benefitting from it that no Microsoft
rights are received from suppliers, distributors, or otherwise in
connection with this promise.
Definitions:
“Mono” means those portions of the software development technology, as
originally distributed by Xamarin, Inc. or the .NET Foundation under
the name “Mono,” that implement .NET Framework Functionality, provided
that such portions at a minimum implement all of the required parts of
the mandatory provisions of Standard ECMA-335 – Common Language
Infrastructure (CLI).
“.NET Framework Functionality” means any functionality in Microsoft’s
.NET Framework as described in Microsoft’s API documentation on
Microsoft’s MSDN website, including the functionality in
Windowsbase.dll, but excluding all other functionality in the Windows
Presentation Foundation component of .NET Framework.
“Applicable Patents” are those patent claims, currently owned by
Microsoft and acquired in the future, that are necessarily infringed
by Mono. For clarity, Applicable Patents do not include any patent
claims that are infringed (x) by any underlying or enabling technology
that may be used, combined, or distributed in connection with Mono
(such as hardware, operating systems, or applications that run on
Mono), (y) only as a consequence of modification of Mono, or (z) only
by the combination of Mono with third party code.
+588
View File
@@ -0,0 +1,588 @@
This is Mono.
1. Installation
2. Using Mono
3. Directory Roadmap
1. Compilation and Installation
===============================
a. Build Requirements
---------------------
On Itanium, you must obtain libunwind:
http://www.hpl.hp.com/research/linux/libunwind/download.php4
On Solaris, make sure that you used GNU tar to unpack this package, as
Solaris tar will not unpack this correctly, and you will get strange errors.
On Solaris, make sure that you use the GNU toolchain to build the software.
Optional dependencies:
* libgdiplus
If you want to get support for System.Drawing, you will need to get
Libgdiplus. This library in turn requires glib and pkg-config:
* pkg-config
Available from: http://www.freedesktop.org/Software/pkgconfig
* glib 2.4
Available from: http://www.gtk.org/
* libzlib
This library and the development headers are required for compression
file support in the 2.0 profile.
b. Building the Software
------------------------
If you obtained this package as an officially released tarball,
this is very simple, use configure and make:
./configure --prefix=/usr/local
make
make install
Mono supports a JIT engine on x86, SPARC, SPARCv9, S/390,
S/390x, AMD64, ARM and PowerPC systems.
If you obtained this as a snapshot, you will need an existing
Mono installation. To upgrade your installation, unpack both
mono and mcs:
tar xzf mcs-XXXX.tar.gz
tar xzf mono-XXXX.tar.gz
mv mono-XXX mono
mv mcs-XXX mcs
cd mono
./autogen.sh --prefix=/usr/local
make
The Mono build system is silent for most compilation commands.
To enable a more verbose compile (for example, to pinpoint
problems in your makefiles or your system) pass the V=1 flag to make, like this:
make V=1
c. Building the software from GIT
---------------------------------
If you are building the software from GIT, make sure that you
have up-to-date mcs and mono sources:
If you are an anonymous user:
git clone git://github.com/mono/mono.git
If you are a Mono contributors with read/write privileges:
git clone [email protected]:mono/mono.git
Then, go into the mono directory, and configure:
cd mono
./autogen.sh --prefix=/usr/local
make
For people with non-standard installations of the auto* utils and of
pkg-config (common on misconfigured OSX and windows boxes), you could get
an error like this:
./configure: line 19176: syntax error near unexpected token `PKG_CHECK_MODULES(BASE_DEPENDENCIES,' ...
This means that you need to set the ACLOCAL_FLAGS environment var
when invoking autogen.sh, like this:
ACLOCAL_FLAGS="-I $acprefix/share/aclocal" ./autogen.sh --prefix=/usr/loca
where $acprefix is the prefix where aclocal has been installed.
This will automatically go into the mcs/ tree and build the
binaries there.
This assumes that you have a working mono installation, and that
there's a C# compiler named 'mcs', and a corresponding IL
runtime called 'mono'. You can use two make variables
EXTERNAL_MCS and EXTERNAL_RUNTIME to override these. e.g., you
can say
make EXTERNAL_MCS=/foo/bar/mcs EXTERNAL_RUNTIME=/somewhere/else/mono
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, an obvious choice
is to install the latest released packages of 'mono' for your
distribution and running autogen.sh; make; make install in the
mono module directory.
You can also try a slightly more risky approach: this may not work,
so start from the released tarball as detailed above.
This works by first getting the latest version of the 'monolite'
distribution, which contains just enough to run the 'mcs'
compiler. You do this with:
# Run the following line after ./autogen.sh
make get-monolite-latest
This will download and automatically gunzip and untar the
tarball, and place the files appropriately so that you can then
just run:
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe
And that will use the files downloaded by 'make get-monolite-latest.
Testing and Installation
------------------------
You can run (part of) the mono and mcs testsuites with the command:
make check
All tests should pass.
If you want more extensive tests, including those that test the
class libraries, you need to re-run 'configure' with the
'--enable-nunit-tests' flag, and try
make -k check
Expect to find a few testsuite failures. As a sanity check, you
can compare the failures you got with
http://go-mono.com/tests/displayTestResults.php
You can now install mono with:
make install
You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.
d. Configuration Options
------------------------
The following are the configuration options that someone
building Mono might want to use:
--with-sgen=yes,no
Generational GC support: Used to enable or disable the
compilation of a Mono runtime with the SGen garbage collector.
On platforms that support it, after building Mono, you
will have both a mono binary and a mono-sgen binary.
Mono uses Boehm, while mono-sgen uses the Simple
Generational GC.
--with-gc=[boehm, included, sgen, none]
Selects the default Boehm garbage collector engine to
use, the default is the "included" value.
included:
This is the default value, and its
the most feature complete, it will allow Mono
to use typed allocations and support the
debugger.
It is essentially a slightly modified Boehm GC
boehm:
This is used to use a system-install Boehm GC,
it is useful to test new features available in
Boehm GC, but we do not recommend that people
use this, as it disables a few features.
none:
Disables the inclusion of a garbage
collector.
--with-tls=__thread,pthread
Controls how Mono should access thread local storage,
pthread forces Mono to use the pthread APIs, while
__thread uses compiler-optimized access to it.
Although __thread is faster, it requires support from
the compiler, kernel and libc. Old Linux systems do
not support with __thread.
This value is typically pre-configured and there is no
need to set it, unless you are trying to debug a
problem.
--with-sigaltstack=yes,no
Experimental: Use at your own risk, it is known to
cause problems with garbage collection and is hard to
reproduce those bugs.
This controls whether Mono will install a special
signal handler to handle stack overflows. If set to
"yes", it will turn stack overflows into the
StackOverflowException. Otherwise when a stack
overflow happens, your program will receive a
segmentation fault.
The configure script will try to detect if your
operating system supports this. Some older Linux
systems do not support this feature, or you might want
to override the auto-detection.
--with-static_mono=yes,no
This controls whether `mono' should link against a
static library (libmono.a) or a shared library
(libmono.so).
This defaults to yes, and will improve the performance
of the `mono' program.
This only affects the `mono' binary, the shared
library libmono.so will always be produced for
developers that want to embed the runtime in their
application.
--with-xen-opt=yes,no
The default value for this is `yes', and it makes Mono
generate code which might be slightly slower on
average systems, but the resulting executable will run
faster under the Xen virtualization system.
--with-large-heap=yes,no
Enable support for GC heaps larger than 3GB.
This value is set to `no' by default.
--enable-small-config=yes,no
Enable some tweaks to reduce memory usage and disk footprint at
the expense of some capabilities. Typically this means that the
number of threads that can be created is limited (256), that the
maxmimum heap size is also reduced (256 MB) and other such limitations
that still make mono useful, but more suitable to embedded devices
(like mobile phones).
This value is set to `no' by default.
--with-ikvm-native=yes,no
Controls whether the IKVM JNI interface library is
built or not. This is used if you are planning on
using the IKVM Java Virtual machine with Mono.
This defaults to `yes'.
--with-profile4=yes,no
Whether you want to build the 4.x profile libraries
and runtime.
It defaults to `yes'.
--with-moonlight=yes,no
Whether you want to generate the Silverlight/Moonlight
libraries and toolchain in addition to the default
(1.1 and 2.0 APIs).
This will produce the `smcs' compiler which will reference
the Silverlight modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
--with-moon-gc=boehm,sgen
Select the GC to use for Moonlight.
boehm:
Selects the Boehm Garbage Collector, with the same flags
as the regular Mono build. This is the default.
sgen:
Selects the new SGen Garbage Collector, which provides
Generational GC support, using the same flags as the
mono-sgen build.
This defaults to `boehm'.
--with-libgdiplus=installed,sibling,<path>
This is used to configure where should Mono look for
libgdiplus when running the System.Drawing tests.
It defaults to `installed', which means that the
library is available to Mono through the regular
system setup.
`sibling' can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
Or you can specify a path to a libgdiplus.
--disable-shared-memory
Use this option to disable the use of shared memory in
Mono (this is equivalent to setting the MONO_DISABLE_SHM
environment variable, although this removes the feature
completely).
Disabling the shared memory support will disable certain
features like cross-process named mutexes.
--enable-minimal=LIST
Use this feature to specify optional runtime
components that you might not want to include. This
is only useful for developers embedding Mono that
require a subset of Mono functionality.
The list is a comma-separated list of components that
should be removed, these are:
aot:
Disables support for the Ahead of Time
compilation.
attach:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
com:
Disables COM support.
debug:
Drop debugging support.
decimal:
Disables support for System.Decimal.
full_messages:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
jit:
Removes the JIT engine from the build, this reduces
the executable size, and requires that all code
executed by the virtual machine be compiled with
Full AOT before execution.
large_code:
Disables support for large assemblies.
logging:
Disables support for debug logging.
pinvoke:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
portability:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
profiler:
Disables support for the default profiler.
reflection_emit:
Drop System.Reflection.Emit support
reflection_emit_save:
Drop support for saving dynamically created
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
shadow_copy:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
simd:
Disables support for the Mono.SIMD intrinsics
library.
ssa:
Disables compilation for the SSA optimization
framework, and the various SSA-based
optimizations.
--enable-llvm
--enable-loadedllvm
This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
See the http://www.mono-project.com/Mono_LLVM for the
full details and up-to-date information on this feature.
You will need to have an LLVM built that Mono can link
against,
The --enable-loadedllvm variant will make the llvm backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
--enable-big-arrays
This enables the use arrays whose indexes are larger
than Int32.MaxValue.
By default Mono has the same limitation as .NET on
Win32 and Win64 and limits array indexes to 32-bit
values (even on 64-bit systems).
In certain scenarios where large arrays are required,
you can pass this flag and Mono will be built to
support 64-bit arrays.
This is not the default as it breaks the C embedding
ABI that we have exposed through the Mono development
cycle.
--enable-parallel-mark
Use this option to enable the garbage collector to use
multiple CPUs to do its work. This helps performance
on multi-CPU machines as the work is divided across CPUS.
This option is not currently the default as we have
not done much testing with Mono.
--enable-dtrace
On Solaris and MacOS X builds a version of the Mono
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
--disable-dev-random
Mono uses /dev/random to obtain good random data for
any source that requires random numbers. If your
system does not support this, you might want to
disable it.
There are a number of runtime options to control this
also, see the man page.
--enable-nacl
This configures the Mono compiler to generate code
suitable to be used by Google's Native Client:
http://code.google.com/p/nativeclient/
Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
2. Using Mono
=============
Once you have installed the software, you can run a few programs:
* runtime engine
mono program.exe
* C# compiler
mcs program.cs
* CIL Disassembler
monodis program.exe
See the man pages for mono(1), mint(1), monodis(1) and mcs(2)
for further details.
3. Directory Roadmap
====================
docs/
Technical documents about the Mono runtime.
data/
Configuration files installed as part of the Mono runtime.
mono/
The core of the Mono Runtime.
metadata/
The object system and metadata reader.
mini/
The Just in Time Compiler.
dis/
CIL executable Disassembler
cli/
Common code for the JIT and the interpreter.
io-layer/
The I/O layer and system abstraction for
emulating the .NET IO model.
cil/
Common Intermediate Representation, XML
definition of the CIL bytecodes.
interp/
Interpreter for CLI executables (obsolete).
arch/
Architecture specific portions.
man/
Manual pages for the various Mono commands and programs.
samples/
Some simple sample programs on uses of the Mono
runtime as an embedded library.
scripts/
Scripts used to invoke Mono and the corresponding program.
runtime/
A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
../olive/
If the directory ../olive is present (as an
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
-542
View File
@@ -1,542 +0,0 @@
Mono is a software platform designed to allow developers to easily
create cross platform applications. It is an open source
implementation of Microsoft's .NET Framework based on the ECMA
standards for C# and the Common Language Runtime.
The Mono project is part of the [.NET Foundation](http://www.dotnetfoundation.org/)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mono/mono?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
1. [Compilation and Installation](#compilation-and-installation)
2. [Using Mono](#using-mono)
3. [Directory Roadmap](#directory-roadmap)
4. [Contributing to Mono](#contributing-to-mono)
5. [Reporting bugs](#reporting-bugs)
6. [Configuration Options](#configuration-options)
7. [Working with Submodules](#working-with-submodules)
**Build Status**
Officially supported architectures:
| ubuntu-1404-amd64 | ubuntu-1404-i386 | debian-8-armel | debian-8-armhf | debian-8-arm64 | windows-amd64 |
|------------------------------|-----------------------------|---------------------------|---------------------------|-----------------------------|----------------------------|
| [![ubuntu-1404-amd64][1]][2] | [![ubuntu-1404-i386][3]][4] | [![debian-8-armel][5]][6] | [![debian-8-armhf][7]][8] | [![debian-8-arm64][9]][10] | [![windows-amd64][11]][12] |
Community supported architectures:
| centos-s390x |
|---------------------------|
| [![centos-s390x][13]][14] |
[1]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-amd64/badge/icon
[2]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-amd64
[3]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-i386/badge/icon
[4]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-i386/
[5]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armel/badge/icon
[6]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armel/
[7]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armhf/badge/icon
[8]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armhf/
[9]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-arm64/badge/icon
[10]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-arm64/
[11]: https://ci.appveyor.com/api/projects/status/1e61ebdfpbiei58v/branch/master?svg=true
[12]: https://ci.appveyor.com/project/ajlennon/mono-817/branch/master
[13]: https://jenkins.mono-project.com/job/z/label=centos-s390x/badge/icon
[14]: https://jenkins.mono-project.com/job/z/label=centos-s390x
Compilation and Installation
============================
Building the Software
---------------------
Please see our guides for building Mono on
[Mac OS X](http://www.mono-project.com/docs/compiling-mono/mac/),
[Linux](http://www.mono-project.com/docs/compiling-mono/linux/) and
[Windows](http://www.mono-project.com/docs/compiling-mono/windows/).
Note that building from Git assumes that you already have Mono installed,
so please download and [install the latest Mono release](http://www.mono-project.com/download/)
before trying to build from Git. This is required because the Mono build
relies on a working Mono C# compiler to compile itself
(also known as [bootstrapping](http://en.wikipedia.org/wiki/Bootstrapping_(compilers))).
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, you can try a slightly
more risky approach: getting the latest version of the 'monolite' distribution,
which contains just enough to run the 'mcs' compiler. You do this with:
# Run the following line after ./autogen.sh
make get-monolite-latest
This will download and place the files appropriately so that you can then
just run:
make
The build will then use the files downloaded by `make get-monolite-latest`.
Testing and Installation
------------------------
You can run the mono and mcs test suites with the command: `make check`.
Expect to find a few test suite failures. As a sanity check, you
can compare the failures you got with [https://jenkins.mono-project.com/](https://jenkins.mono-project.com/).
You can now install mono with: `make install`
You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.
Using Mono
==========
Once you have installed the software, you can run a few programs:
* `mono program.exe` runtime engine
* `mcs program.cs` C# compiler
* `monodis program.exe` CIL Disassembler
See the man pages for mono(1), mcs(1) and monodis(1) for further details.
Directory Roadmap
=================
* `acceptance-tests/` - Optional third party test suites used to validate Mono against a wider range of test cases.
* `data/` - Configuration files installed as part of the Mono runtime.
* `docs/` - Technical documents about the Mono runtime.
* `external/` - Git submodules for external libraries (Newtonsoft.Json, ikvm, etc).
* `man/` - Manual pages for the various Mono commands and programs.
* `mcs/` - The class libraries, compiler and tools
* `class/` - The class libraries (like System.*, Microsoft.Build, etc.)
* `mcs/` - The Mono C# compiler written in C#
* `tools/` - Tools like gacutil, ikdasm, mdoc, etc.
* `mono/` - The core of the Mono Runtime.
* `arch/` - Architecture specific portions.
* `cil/` - Common Intermediate Representation, XML
definition of the CIL bytecodes.
* `dis/` - CIL executable Disassembler
* `io-layer/` - The I/O layer and system abstraction for
emulating the .NET IO model.
* `metadata/` - The object system and metadata reader.
* `mini/` - The Just in Time Compiler.
* `runtime/` - A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
* `samples/` -Some simple sample programs on uses of the Mono
runtime as an embedded library.
* `scripts/` - Scripts used to invoke Mono and the corresponding program.
Contributing to Mono
====================
Before submitting changes to Mono, please review the [contribution
guidelines](http://www.mono-project.com/community/contributing/).
Please pay particular attention to the [Important
Rules](http://www.mono-project.com/community/contributing/#important-rules)
section.
Reporting bugs
==============
To submit bug reports, please use [Xamarin's
Bugzilla](https://bugzilla.xamarin.com/)
Please use the search facility to ensure the same bug hasn't already
been submitted and follow our
[guidelines](http://www.mono-project.com/community/bugs/make-a-good-bug-report/)
on how to make a good bug report.
Configuration Options
=====================
The following are the configuration options that someone building Mono
might want to use:
* `--with-sgen=yes,no` - Generational GC support: Used to enable or
disable the compilation of a Mono runtime with the SGen garbage
collector.
* On platforms that support it, after building Mono, you will have
both a `mono` binary and a `mono-sgen` binary. `mono` uses Boehm,
while `mono-sgen` uses the Simple Generational GC.
* `--with-gc=[included, boehm, none]` - Selects the default Boehm
garbage collector engine to use.
* *included*: (*slightly modified Boehm GC*) This is the default
value for the Boehm GC, and it's the most feature complete, it will
allow Mono to use typed allocations and support the debugger.
* *boehm*: This is used to use a system-install Boehm GC, it is
useful to test new features available in Boehm GC, but we do not
recommend that people use this, as it disables a few features.
* *none*:
Disables the inclusion of a garbage collector.
* This defaults to `included`.
* `--with-cooperative-gc`
* If you pass this flag the Mono runtime is configured to only use
the cooperative mode of the garbage collector. If you do not pass
this flag, then you can control at runtime the use of the
cooperative GC mode by setting the `MONO_ENABLE_COOP` flag.
* `--with-tls=__thread,pthread`
* Controls how Mono should access thread local storage,
pthread forces Mono to use the pthread APIs, while
__thread uses compiler-optimized access to it.
* Although __thread is faster, it requires support from
the compiler, kernel and libc. Old Linux systems do
not support with __thread.
* This value is typically pre-configured and there is no
need to set it, unless you are trying to debug a problem.
* `--with-sigaltstack=yes,no`
* **Experimental**: Use at your own risk, it is known to
cause problems with garbage collection and is hard to
reproduce those bugs.
* This controls whether Mono will install a special
signal handler to handle stack overflows. If set to
`yes`, it will turn stack overflows into the
StackOverflowException. Otherwise when a stack
overflow happens, your program will receive a
segmentation fault.
* The configure script will try to detect if your
operating system supports this. Some older Linux
systems do not support this feature, or you might want
to override the auto-detection.
* `--with-static_mono=yes,no`
* This controls whether `mono` should link against a
static library (libmono.a) or a shared library
(libmono.so).
* This defaults to `yes`, and will improve the performance
of the `mono` program.
* This only affects the `mono' binary, the shared
library libmono.so will always be produced for
developers that want to embed the runtime in their
application.
* `--with-xen-opt=yes,no` - Optimize code for Xen virtualization.
* It makes Mono generate code which might be slightly
slower on average systems, but the resulting executable will run
faster under the Xen virtualization system.
* This defaults to `yes`.
* `--with-large-heap=yes,no` - Enable support for GC heaps larger than 3GB.
* This defaults to `no`.
* `--enable-small-config=yes,no` - Enable some tweaks to reduce memory usage
and disk footprint at the expense of some capabilities.
* Typically this means that the number of threads that can be created
is limited (256), that the maximum heap size is also reduced (256 MB)
and other such limitations that still make mono useful, but more suitable
to embedded devices (like mobile phones).
* This defaults to `no`.
* `--with-ikvm-native=yes,no` - Controls whether the IKVM JNI interface library is
built or not.
* This is used if you are planning on
using the IKVM Java Virtual machine with Mono.
* This defaults to `yes`.
* `--with-profile4=yes,no` - Whether you want to build the 4.x profile libraries
and runtime.
* This defaults to `yes`.
* `--with-libgdiplus=installed,sibling,<path>` - Configure where Mono
searches for libgdiplus when running System.Drawing tests.
* It defaults to `installed`, which means that the
library is available to Mono through the regular
system setup.
* `sibling` can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
* Or you can specify a path to a libgdiplus.
* `--disable-shared-memory`
* Use this option to disable the use of shared memory in
Mono (this is equivalent to setting the MONO_DISABLE_SHM
environment variable, although this removes the feature
completely).
* Disabling the shared memory support will disable certain
features like cross-process named mutexes.
* `--enable-minimal=LIST`
* Use this feature to specify optional runtime
components that you might not want to include. This
is only useful for developers embedding Mono that
require a subset of Mono functionality.
* The list is a comma-separated list of components that
should be removed, these are:
* `aot`:
Disables support for the Ahead of Time compilation.
* `attach`:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
* `com`:
Disables COM support.
* `debug`:
Drop debugging support.
* `decimal`:
Disables support for System.Decimal.
* `full_messages`:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
* `generics`:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
* `jit`:
Removes the JIT engine from the build, this reduces
the executable size, and requires that all code
executed by the virtual machine be compiled with
Full AOT before execution.
* `large_code`:
Disables support for large assemblies.
* `logging`:
Disables support for debug logging.
* `pinvoke`:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
* `portability`:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
* `profiler`:
Disables support for the default profiler.
* `reflection_emit`:
Drop System.Reflection.Emit support
* `reflection_emit_save`:
Drop support for saving dynamically created
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
* `shadow_copy`:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
* `simd`:
Disables support for the Mono.SIMD intrinsics
library.
* `ssa`:
Disables compilation for the SSA optimization
framework, and the various SSA-based optimizations.
* `--enable-llvm`
* `--enable-loadedllvm`
* This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
* See http://www.mono-project.com/docs/advanced/mono-llvm/ for the
full details and up-to-date information on this feature.
* You will need to have an LLVM built that Mono can link
against.
* The `--enable-loadedllvm` variant will make the LLVM backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
* `--enable-big-arrays` - Enable use of arrays with indexes larger
than Int32.MaxValue.
* By default Mono has the same limitation as .NET on
Win32 and Win64 and limits array indexes to 32-bit
values (even on 64-bit systems).
* In certain scenarios where large arrays are required,
you can pass this flag and Mono will be built to
support 64-bit arrays.
* This is not the default as it breaks the C embedding
ABI that we have exposed through the Mono development
cycle.
* `--enable-parallel-mark`
* Use this option to enable the garbage collector to use
multiple CPUs to do its work. This helps performance
on multi-CPU machines as the work is divided across CPUS.
* This option is not currently the default on OSX
as it runs into issues there.
* This option only applies to the Boehm GC.
* `--enable-dtrace`
* On Solaris and MacOS X builds a version of the Mono
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
* `--disable-dev-random`
* Mono uses /dev/random to obtain good random data for
any source that requires random numbers. If your
system does not support this, you might want to
disable it.
* There are a number of runtime options to control this
also, see the man page.
* `--enable-nacl`
* This configures the Mono compiler to generate code
suitable to be used by Google's Native Client:
http://code.google.com/p/nativeclient/
* Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
Working With Submodules
=======================
Mono references several external git submodules, for example
a fork of Microsoft's reference source code that has been altered
to be suitable for use with the Mono runtime.
This section describes how to use it.
An initial clone should be done recursively so all submodules will also be
cloned in a single pass:
$ git clone --recursive git@github.com:mono/mono
Once cloned, submodules can be updated to pull down the latest changes.
This can also be done after an initial non-recursive clone:
$ git submodule update --init --recursive
To pull external changes into a submodule:
$ cd <submodule>
$ git pull origin <branch>
$ cd <top-level>
$ git add <submodule>
$ git commit
By default, submodules are detached because they point to a specific commit.
Use `git checkout` to move back to a branch before making changes:
$ cd <submodule>
$ git checkout <branch>
# work as normal; the submodule is a normal repo
$ git commit/push new changes to the repo (submodule)
$ cd <top-level>
$ git add <submodule> # this will record the new commits to the submodule
$ git commit
To switch the repo of a submodule (this should not be a common or normal thing
to do at all), first edit `.gitmodules` to point to the new location, then:
$ git submodule sync -- <path of the submodule>
$ git submodule update --recursive
$ git checkout <desired new hash or branch>
The desired output diff is a change in `.gitmodules` to reflect the
change in the remote URL, and a change in /<submodule> where you see
the desired change in the commit hash.
License
=======
See the LICENSE file for licensing information, and the PATENTS.TXT
file for information about Microsoft's patent grant.
Mono Trademark Use Policy
=========================
The use of trademarks and logos for Mono can be found [here] (http://www.dotnetfoundation.org/legal/mono-tm).
Maintaining the Class Library Solution Files
============================================
Mono now ships with a solution file that can be used to build the
assemblies from an IDE. Either by opening the topmost `net_4_x.sln`
file, or to by loading one of the individual `csproj` files located in
each directory.
These are maintained by extracting the configuration information from
our Makefiles, which as of May 2016 remain the canonical location for
configuration information.
When changes are made to the Makefiles, a user would need to run the
following command to re-generate the solution files at the top level:
$ make update-solution-files
+120
View File
@@ -0,0 +1,120 @@
README.vsnet Last updated: 2006-02-01
SVN includes a Visual Studio .NET 2005 solution, mono.sln, and some
projects files to build most of the unmanaged parts in Mono.
The "mono.sln" solution file contains the VC projects files for:
* Embedded Samples
* test-invoke.vcproj
* test-metadata.vcproj
* teste.vcproj
* Libraries
* libgc.vcproj
* libmono.vcproj
* Tools
* genmdesc.vcproj
* monoburg.vcproj
* monodiet.vcproj
* monodis.vcproj
* monograph.vcproj
* pedump.vcproj
* mono.vcproj
REQUIREMENTS
* A working (i.e. where you could succesfully build mono) cygwin
(http://www.cygwin.com/) setup! This is required to:
* generate some files (via monoburg and genmdesc);
* build the class libraries; and
* test for regressions.
* Visual Studio .NET 2005. Previous Visual Studio versions may work or
requires, hopefully minimal, changes.
* VSDependencies.zip must be decompressed under the /mono/ directory
(otherwise you will need to edit all the projects files). This file can
be downloaded from http://www.go-mono.com/archive/VSDependencies.zip
LOCAL CHANGES
Sadly solution/projects files aren't easy to move from computers to
computers (well unless everyone follow the same naming convention) so
you'll likely have to changes some options in order to compile the
solution.
* each executed assembly (i.e. the EXE) must be able to find a
working mscorlib.dll (and all the other required assemblies).
This can be done in different ways. My preference is to use the
project "properties pages" in the "Configuration Properties
\Debugging\Environment" options and set MONO_PATH to the class
libraries directory build by cygwin (local) or on Linux
(remote).
e.g. MONO_PATH=z:\svn\mcs\class\lib\default\
allows me to use the class libs build under Linux, while
MONO_PATH=C:\cygwin\opt\mono\lib\mono\1.0
use the one built from cygwin (after a make install)
Some useful informations to adapt the solution/project files...
* My cygwin root dir is: c:\cygwin\
* My username is: poupou
* My mono install prefix is: /opt/mono
BUILDING
Once everything is installed (and edited) you can right-click on the
"mono" solution (in the "Solution Explorer"), select "Clean
Solution" (for the first time) then "Build Solution".
KNOWN ISSUES
[1] Most, BUT NOT ALL, the regressions tests pass under this build. The
failures seems limited to some mathematical differences and to code
relying on the stack walking functions. The hacks to replace the GCC
functions (__builtin_frame_address and __builtin_return_address) are
incomplete;
[2] The solution doesn't provide complete (i.e. from scratch) build. It
requires a working cygwin environment to create some files (e.g. via
genmdesc, monoburg). This isn't so bad as without cygwin you wouldn't be
able to test Mono properly (see REQUIREMENTS);
[3] Only the Debug target is configured properly (that would be easy to
fix, but would require turning off some optimizations like omitting
stack frames). Anyway there are other issues [1] to fix before switching
to Release and IMHO the _biggest_ advantage to VS.NET is it's debugger/
debugging tools;
[4] The C compiler emits _lots_ of warning during compilation. Some
warnings have been turned off for some projects (there was so much that
it slowed down compilation). You can bring them back (or hide more of
them) using the project "properties pages" windows, "Configuration
Properties\C/C++\Advanced\Disable Specific Warnings";
[5] Visual Studio 2005 should have all the latest header files required,
but if not (or if you're using an older version of VS) then install MS
Platform SDK (Windows Server 2003 is the latest) to ensure you have the
latest Windows header files. You can download it from:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
[6] Not everyone has VS.NET so it is possible you may have to add some
(new) files to the build from time to time. See "more informations" for
reporting those changes.
[7] Probably a lot more I didn't discover... or has changed since.
MORE INFORMATION
Please email <[email protected]> if you have any problem
and/or if there's something wrong/missing in the instructions.
An online version of this file is available at
http://www.mono-project.com/Compiling_Mono_VSNET
-6
View File
@@ -1,6 +0,0 @@
Makefile.in
Makefile
*.exe
*.dll
*.mdb
coreclr-testlist.txt
@@ -1,14 +0,0 @@
using System;
using System.IO;
using System.Reflection;
namespace System.Runtime.Loader
{
public static class AssemblyExtensions
{
public static Type[] GetTypes(this Assembly assembly)
{
return assembly.GetTypes ();
}
}
}
@@ -1,41 +0,0 @@
using System;
using System.IO;
using System.Reflection;
namespace System.Runtime.Loader
{
public abstract class AssemblyLoadContext
{
protected abstract Assembly Load(AssemblyName assemblyName);
protected Assembly LoadFromAssemblyPath(string assemblyPath)
{
if (assemblyPath == null)
throw new ArgumentNullException("assemblyPath");
if (!Path.IsPathRooted(assemblyPath))
throw new ArgumentException("Gimme an absolute path " + assemblyPath + " XXX " + Path.GetPathRoot(assemblyPath), "assemblyPath");
return Assembly.LoadFrom (assemblyPath);
}
public Assembly LoadFromAssemblyName(AssemblyName assemblyName)
{
// AssemblyName is mutable. Cache the expected name before anybody gets a chance to modify it.
string requestedSimpleName = assemblyName.Name;
Assembly assembly = Load(assemblyName);
if (assembly == null)
throw new FileLoadException("File not found", requestedSimpleName);
return assembly;
}
public static AssemblyName GetAssemblyName(string assemblyPath)
{
if (!File.Exists (assemblyPath))
throw new Exception ("file not found");
return new AssemblyName (Path.GetFileName (assemblyPath));
}
}
}
-23
View File
@@ -1,23 +0,0 @@
ACCEPTANCE_TESTS_PATH=external
ROSLYN_PATH=$(ACCEPTANCE_TESTS_PATH)/roslyn
CORECLR_PATH=$(ACCEPTANCE_TESTS_PATH)/coreclr
MSTESTSUITE_PATH=$(ACCEPTANCE_TESTS_PATH)/ms-test-suite
CLEANFILES = *.dll *.exe *.mdb
EXTRA_DIST=README.md SUBMODULES.json versions.mk roslyn.mk coreclr.mk ms-test-suite.mk
CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
with_mono_path = MONO_PATH=$(CLASS)
RUNTIME = $(with_mono_path) $(abs_top_builddir)/runtime/mono-wrapper --debug
MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe
ILASM = $(RUNTIME) $(CLASS)/ilasm.exe
include versions.mk
include roslyn.mk
include coreclr.mk
include ms-test-suite.mk
check-full: check-roslyn check-coreclr check-ms-test-suite
clean-local: clean-local-coreclr
-35
View File
@@ -1,35 +0,0 @@
Acceptance tests
================
This directory contains acceptance tests, which are third party test suites and frameworks that are used to validate Mono against a wider range of test cases that go beyond the Mono unit tests that run as part of CI.
In order to make checking out those test suites optional we don't use traditional git submodules, but instead clone them on demand when needed. The custom submodule repositories are checked out into the acceptance-tests/external/ directory.
## Usage
Running all test suites is possible via "make check-full". There are also targets for running individual test suites, see below.
Some of the test suites require an installed Mono (i.e. they don't work with the in-tree build), those will ask you to pass in the PREFIX variable pointing to the installation directory when invoking make. Note that this directory needs to be writable as we overwrite some files there as part of testing.
## Individual test suites and targets
* `make check-ms-test-suite` - Runs tests that were shared with Xamarin, those are not available publically and will be skipped when the repository is not accessible.
* `make check-roslyn` - Runs the Roslyn test suite.
* `make check-coreclr` - Runs the CoreCLR test suite.
* `make coreclr-runtest-coremanglib` - Runs only the CoreMangLib portion of the CoreCLR tests, those tests mostly target the BCL behavior.
* `make coreclr-runtest-basic` - Runs only the CoreCLR tests that target runtime behavior and stability.
* `make coreclr-compile-tests` - Convenience target that precompiles all the test cases in parallel.
* `make coreclr-gcstress` - Runs the CoreCLR GC stress tests.
## Updating submodules
The SUBMODULES.json file stores information about the submodules, and make targets are used to check out submodules, check their versions, and update the submodule information:
* `make validate-<module>` - Checks whenever `<module>` is checked out and matches the version in the info file.
* `make reset-<module>` - Clones `<module>` if neccesary and checks out the revision specified in the info file.
* `make bump-<module>` - Updates the revision stored in the info file for `<module>`.
* `make bump-current-<module>` - Updates the revision stored in the info file for `<module>` to the current revision.
* `make commit-bump-<module>` - Same as `make bump-<module>`, but commits the change.
* `make commit-bump-current-<module>` - Same as `make bump-current-<module>`, but commits the change.
Example: when making a change in the CoreCLR submodule (like disabling something on Mono), you'd commit the change there and then run `make bump-current-coreclr` or `make commit-bump-current-coreclr` to update the version in SUBMODULES.json.
-26
View File
@@ -1,26 +0,0 @@
[
{
"name": "roslyn",
"url": "git://github.com/dotnet/roslyn.git",
"rev": "322bd5b2bbf07df6a67de35cbcb2365484412f70",
"remote-branch": "origin/master",
"branch": "master",
"directory": "roslyn"
},
{
"name": "coreclr",
"url": "git://github.com/mono/coreclr.git",
"rev": "c7da48acf72c40c0c0ed1a80ebfacea21bb3a271",
"remote-branch": "origin/mono",
"branch": "mono",
"directory": "coreclr"
},
{
"name": "ms-test-suite",
"url": "[email protected]:xamarin/ms-test-suite.git",
"rev": "840653918efed24f00f5e166094f06354cae7255",
"remote-branch": "origin/master",
"branch": "master",
"directory": "ms-test-suite"
}
]
File diff suppressed because it is too large. Load diff
-2
View File
@@ -1,2 +0,0 @@
*
!.gitignore
-10
View File
@@ -1,10 +0,0 @@
check-ms-test-suite:
@if $(MAKE) validate-ms-test-suite RESET_VERSIONS=1; then \
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance build MCS="$(MCS) -t:library -warn:1 -r:nunit.framework" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-console.exe -nologo -exclude=MonoBug,BadTest" NUNIT_XML_RESULT=$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-conformance.xml || EXIT_CODE=1; \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup build MCS="$(MCS) -debug -warn:1" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup run MONO="$(RUNTIME)" || EXIT_CODE=1; \
exit $$EXIT_CODE; \
else \
echo "*** [ms-test-suite] Getting the repository failed, you probably don't have access to this Xamarin-internal resource. Skipping."; \
fi
-18
View File
@@ -1,18 +0,0 @@
check-roslyn:
@$(MAKE) validate-roslyn RESET_VERSIONS=1
@if [ -z $$PREFIX ]; then echo "You need to set PREFIX to the prefix of the Mono installation that should be used for testing Roslyn." && exit 1; fi
sed -i -e 's/\\4.5-api"/\\4.5"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
export MSBuildExtensionsPath=$$PREFIX/lib/mono/xbuild; \
MONO_DOTNET_PORTABLE_DIR=$$PREFIX/lib/mono/xbuild-frameworks/.NETPortable/; \
if [ ! -d "$$MONO_DOTNET_PORTABLE_DIR/v4.6" ]; then \
mkdir -p $$MONO_DOTNET_PORTABLE_DIR; \
curl -SL "http://download.mono-project.com/third-party/RoslynBuildDependencies.zip" > /tmp/RoslynBuildDependencies.zip; \
unzip -o /tmp/RoslynBuildDependencies.zip -d /tmp/RoslynBuildDependencies; \
cp -r /tmp/RoslynBuildDependencies/PortableReferenceAssemblies/* $$MONO_DOTNET_PORTABLE_DIR; \
fi; \
cd $(ROSLYN_PATH); \
sed -i -e 'N; s/bootstrapArg=".*\n.*"/bootstrapArg=""/g' cibuild.sh; \
sed -i -e 's#-xml Binaries/\$$BUILD_CONFIGURATION/xUnitResults/#-nunit $(abs_top_builddir)/acceptance-tests/TestResult-#g' cibuild.sh; \
./cibuild.sh --mono-path $$PREFIX/bin || EXIT_CODE=1; \
sed -i -e 's/\\4.5"/\\4.5-api"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
exit $$EXIT_CODE
-44
View File
@@ -1,44 +0,0 @@
.PHONY: validate-versions reset-versions
SUBMODULES_CONFIG_FILE = $(top_srcdir)/acceptance-tests/SUBMODULES.json
include $(top_srcdir)/scripts/submodules/versions.mk
$(eval $(call ValidateVersionTemplate,roslyn,ROSLYN))
$(eval $(call ValidateVersionTemplate,coreclr,CORECLR))
$(eval $(call ValidateVersionTemplate,ms-test-suite,MSTESTSUITE))
# Bump the given submodule to the revision given by the REV make variable
# If COMMIT is 1, commit the change
bump-roslyn: __bump-version-roslyn
bump-coreclr: __bump-version-coreclr
bump-ms-test-suite: __bump-version-ms-test-suite
# Bump the given submodule to the branch given by the BRANCH/REMOTE_BRANCH make variables
# If COMMIT is 1, commit the change
bump-branch-roslyn: __bump-branch-roslyn
bump-branch-coreclr: __bump-branch-coreclr
bump-branch-ms-test-suite: __bump-branch-ms-test-suite
# Bump the given submodule to its current GIT version
# If COMMIT is 1, commit the change
bump-current-roslyn: __bump-current-version-roslyn
bump-current-coreclr: __bump-current-version-coreclr
bump-current-ms-test-suite: __bump-current-version-ms-test-suite
commit-bump-roslyn:
$(MAKE) bump-roslyn COMMIT=1
commit-bump-coreclr:
$(MAKE) bump-coreclr COMMIT=1
commit-bump-ms-test-suite:
$(MAKE) bump-ms-test-suite COMMIT=1
commit-bump-current-roslyn:
$(MAKE) bump-current-roslyn COMMIT=1
commit-bump-current-coreclr:
$(MAKE) bump-current-coreclr COMMIT=1
commit-bump-current-ms-test-suite:
$(MAKE) bump-current-ms-test-suite COMMIT=1
+4 -5
View File
@@ -22,14 +22,14 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*|i?86-pc-mingw32*)
?86-pc-cygwin*|i?86-pc-cygwin*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*|arm-apple-darwin*)
i?86-apple-darwin*)
pic_options='-fno-common'
;;
*)
@@ -158,7 +158,6 @@ modeok=false
tagok=false
for arg in "$[]@"; do
case "$arg" in
--silent) ;;
--mode=compile) modeok=true ;;
--tag=CC|--tag=CXX) tagok=true ;;
--quiet) ;;
-79
View File
@@ -1,79 +0,0 @@
#
# Appveyor configuration file for CI build of Mono on Windows (under Cygwin)
#
# For further details see http://www.appveyor.com
#
#
# Custom environment variables
#
environment:
global:
CYG_ROOT: C:\cygwin
CYG_MIRROR: http://cygwin.mirror.constant.com
CYG_CACHE: C:\cygwin\var\cache\setup
CYG_BASH: C:\cygwin\bin\bash
#
# Cache Cygwin files to speed up build
#
cache:
- '%CYG_CACHE%'
#
# Do a shallow clone of the repo to speed up build
#
clone_depth: 1
#
# Initialisation prior to pulling the Mono repository
# Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
#
init:
- git config --global core.autocrlf input
#
# Install needed build dependencies
#
install:
- ps: 'Start-FileDownload "http://cygwin.com/setup-x86.exe" -FileName "setup-x86.exe"'
- 'setup-x86.exe --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages autoconf,automake,bison,gcc-core,gcc-g++,mingw-runtime,mingw-binutils,mingw-gcc-core,mingw-gcc-g++,mingw-pthreads,mingw-w32api,libtool,make,python,gettext-devel,gettext,intltool,libiconv,pkg-config,git,curl,libxslt > NUL 2>&1'
- '%CYG_BASH% -lc "cygcheck -dc cygwin"'
# Cygwin build script
#
# NOTES:
#
# The stdin/stdout file descriptor appears not to be valid for the Appveyor
# build which causes failures as certain functions attempt to redirect
# default file handles. Ensure a dummy file descriptor is opened with 'exec'.
#
build_script:
- 'echo Building...'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; ./autogen.sh --prefix=/usr/local --host=i686-pc-mingw32"'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make get-monolite-latest"'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make -j2"'
- 'echo Installing...'
- 'mkdir %APPVEYOR_BUILD_FOLDER%\install'
- '%CYG_BASH% -lc "export CYGWIN=winsymlinks:native; mount \"$APPVEYOR_BUILD_FOLDER\install\" /usr/local; cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make install; umount /usr/local"'
#
# Disable tests for now
#
test: off
#
# Only build the master branch
#
branches:
only:
- master
#
# NOTE: Currently this is the Mono installation tree. In future we will create an installation package artifact.
# It has to be relative to the project path. Thus we have installed to within the build tree.
#
artifacts:
- path: install
name: mono-binaries
type: zip
+18 -45
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# Ripped off from GNOME macros version
@@ -30,25 +30,25 @@ fi
DIE=1
}
if [ -z "$LIBTOOLIZE" ]; then
LIBTOOLIZE=`which glibtoolize 2>/dev/null`
if [ ! -x "$LIBTOOLIZE" ]; then
LIBTOOLIZE=`which libtoolize`
if [ -z "$LIBTOOL" ]; then
LIBTOOL=`which glibtool 2>/dev/null`
if [ ! -x "$LIBTOOL" ]; then
LIBTOOL=`which libtool`
fi
fi
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtoolize' installed to compile Mono."
echo "Get ftp://ftp.gnu.org/gnu/libtool/libtool-1.2.tar.gz"
echo "**Error**: You must have \`libtool' installed to compile Mono."
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
}
grep "^AM_GNU_GETTEXT" $srcdir/configure.ac >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`gettext' installed to compile Mono."
@@ -95,39 +95,15 @@ xlc )
esac
if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
$LIBTOOLIZE --force --copy
${LIBTOOL}ize --force --copy
fi
fi
#
# Plug in the extension module
#
has_ext_mod=false
ext_mod_args=''
for PARAM; do
if [[ $PARAM =~ "--enable-extension-module" ]] ; then
has_ext_mod=true
if [[ $PARAM =~ "=" ]] ; then
ext_mod_args=`echo $PARAM | cut -d= -f2`
fi
fi
done
if test x$has_ext_mod = xtrue; then
pushd ../mono-extensions/scripts
sh ./prepare-repo.sh $ext_mod_args || exit 1
popd
else
cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
fi
echo "Running aclocal -I m4 -I . $ACLOCAL_FLAGS ..."
aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
echo "Running aclocal -I . $ACLOCAL_FLAGS ..."
aclocal -I . $ACLOCAL_FLAGS || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
@@ -137,13 +113,13 @@ aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
echo "Running automake --gnu $am_opt ..."
automake --add-missing --gnu -Wno-portability -Wno-obsolete $am_opt ||
automake --add-missing --gnu -Wno-portability $am_opt ||
{ echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
@@ -160,11 +136,8 @@ if test -d $srcdir/eglib; then
echo Done running eglib/autogen.sh ...
fi
if test x$MONO_EXTRA_CONFIGURE_FLAGS != x; then
echo "MONO_EXTRA_CONFIGURE_FLAGS is $MONO_EXTRA_CONFIGURE_FLAGS"
fi
conf_flags="$MONO_EXTRA_CONFIGURE_FLAGS --enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
-7
View File
@@ -1,7 +0,0 @@
@echo off
cd mcs\jay
vcbuild jay.vcxproj
cd msvc\scripts
csc prepare.cs
prepare.exe ..\..\mcs core
msbuild net_4_x.sln
-4
View File
@@ -1,4 +0,0 @@
#!/bin/sh
(cd mcs/jay; make)
(cd msvc/scripts/; make prepare.exe; mono prepare.exe ../../mcs core)
msbuild net_4_x.sln
+227
View File
@@ -0,0 +1,227 @@
#!/bin/bash -e
CURDIR="`pwd`"
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
EXTRA_CROSS_DIR=
INSTALL_DESTDIR="$CURDIR/mono-win32"
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
ORIGINAL_PATH="$PATH"
export CPPFLAGS_FOR_EGLIB CFLAGS_FOR_EGLIB CPPFLAGS_FOR_LIBGC CFLAGS_FOR_LIBGC
function cleanup ()
{
if [ -d "$TEMPORARY_PKG_CONFIG_DIR" ]; then
rm -rf "$TEMPORARY_PKG_CONFIG_DIR"
fi
}
function check_pkg_config_dir ()
{
local DIR="$1"
local DIR_PREFIX="$2"
if [ ! -d "$DIR" ]; then
return
fi
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$DIR"/*.pc; do
if [ -f $pc ]; then
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$DIR_PREFIX;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
fi;
done
if [ -z "$CROSS_PKG_CONFIG_DIR" ]; then
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
}
function show_build_info ()
{
cat <<EOF
Installation prefix: $MONO_PREFIX
CPPFLAGS: ${CPPFLAGS:=not set}
LDFLAGS: ${LDFLAGS:=not set}
MONO_PATH: ${MONO_PATH:=not set}
EOF
}
function setup ()
{
local pcname
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/bin"
PATH=$CROSS_BIN_DIR:$PATH
MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'|tr -d '\('`
if [ -d ./.git ]; then
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2|tr -d '\)'|tr -d '\('`"
MONO_RELEASE="$MONO_VERSION-$MONO_GIT_BRANCH-$MONO_GIT_COMMIT"
else
MONO_RELEASE="$MONO_VERSION"
fi
MONO_PREFIX="$MONO_PREFIX/mono-$MONO_RELEASE"
NOCONFIGURE=yes
export NOCONFIGURE
check_pkg_config_dir "$CROSS_DIR/lib/pkgconfig" "$CROSS_DIR"
if [ -n "$EXTRA_CROSS_DIR" -a -d "$EXTRA_CROSS_DIR" ]; then
if [ -d "$EXTRA_CROSS_DIR/bin" ]; then
PATH="$EXTRA_CROSS_DIR/bin":$PATH
fi
check_pkg_config_dir "$EXTRA_CROSS_DIR/lib/pkgconfig" "$EXTRA_CROSS_DIR"
if [ -d "$EXTRA_CROSS_DIR/include" ]; then
if [ -z "$CPPFLAGS" ]; then
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\""
else
CPPFLAGS="-I \"$EXTRA_CROSS_DIR/include\" $CFLAGS"
fi
fi
if [ -d "$EXTRA_CROSS_DIR/lib" ]; then
if [ -z "$LDFLAGS" ]; then
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\""
else
LDFLAGS="-I \"$EXTRA_CROSS_DIR/lib\" $LDFLAGS"
fi
fi
if [ -d "$EXTRA_CROSS_DIR/share/aclocal" ]; then
if [ -z "$MONO_PATH" ]; then
MONO_PATH="\"$EXTRA_CROSS_DIR\""
else
MONO_PATH="\"$EXTRA_CROSS_DIR\":$MONO_PATH"
fi
fi
fi
export PATH MONO_PATH CPPFLAGS
show_build_info
}
function build ()
{
if [ -f ./Makefile ]; then
make distclean
fi
if [ -d ./autom4te.cache ]; then
rm -rf ./autom4te.cache
fi
if [ -f ./config.status ]; then
for f in `find -name config.status -type f`; do
rm $f
done
fi
./autogen.sh
BUILD="`./config.guess`"
if [ ! -d "$CURDIR/build-cross-windows" ]; then
mkdir "$CURDIR/build-cross-windows"
fi
cd "$CURDIR/build-cross-windows"
rm -rf *
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --build=$BUILD --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --with-tls=none --disable-mcs-build --disable-embed-check --enable-win32-dllmain=yes --with-libgc-threads=win32 --with-profile4=yes
make
cd "$CURDIR"
if [ ! -d "$CURDIR/build-cross-windows-mcs" ]; then
mkdir "$CURDIR/build-cross-windows-mcs"
fi
rm -rf autom4te.cache
unset PATH
PATH="$ORIGINAL_PATH"
export PATH
cd "$CURDIR/build-cross-windows-mcs"
rm -rf *
../configure --prefix=$MONO_PREFIX --enable-parallel-mark
make
}
function doinstall ()
{
if [ -d "$INSTALL_DIR" ]; then
rm -rf "$INSTALL_DIR"
fi
cd "$CURDIR/build-cross-windows"
make DESTDIR="$INSTALL_DESTDIR" USE_BATCH_FILES=yes install
if test -d $CURDIR/mcs; then
mcsdir=$CURDIR/mcs
else
mcsdir=$CURDIR/../mcs
fi
cd "$mcsdir/mcs"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "mcs profile $p installation failed"
done
cd "$mcsdir/class"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "class library profile $p installation failed"
done
cd "$mcsdir/tools"
for p in $PROFILES; do
make DESTDIR="$INSTALL_DESTDIR" PROFILE=$p install || echo "tools profile $p installation failed"
done
cd "$CURDIR/mono-win32"
rm -f "$CURDIR/mono-win32-$MONO_RELEASE".zip
zip -9r "$CURDIR/mono-win32-$MONO_RELEASE".zip .
}
function usage ()
{
cat <<EOF
Usage: build-mingw32.sh [OPTIONS]
where OPTIONS are:
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
-e DIR Sets the location of directory where additional cross develoment packages are installed [${EXTRA_CROSS_DIR:=none}]
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
-p PREFIX Prefix at which Mono is to be installed. Build will append the 'mono-X.Y' string to that path
EOF
exit 1
}
trap cleanup 0
pushd . > /dev/null
while getopts "d:m:e:p:" opt; do
case "$opt" in
d) CROSS_DIR="$OPTARG" ;;
m) MINGW="$OPTARG" ;;
e) EXTRA_CROSS_DIR="$OPTARG" ;;
p) MONO_PREFIX="$OPTARG" ;;
*) usage ;;
esac
done
setup
build
doinstall
show_build_info
popd > /dev/null
-50
View File
@@ -1,50 +0,0 @@
# Contributor Code of Conduct
As contributors and maintainers of this project, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating
documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free
experience for everyone, regardless of level of experience, gender, gender
identity and expression, sexual orientation, disability, personal appearance,
body size, race, ethnicity, age, religion, or nationality.
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing other's private information, such as physical or electronic
addresses, without explicit permission
* Other unethical or unprofessional conduct
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
By adopting this Code of Conduct, project maintainers commit themselves to
fairly and consistently applying these principles to every aspect of managing
this project. Project maintainers who do not follow or enforce the Code of
Conduct may be permanently removed from the project team.
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting a project maintainer at miguel@xamarin.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at
[http://contributor-covenant.org/version/1/3/0/][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/3/0/
-672
View File
@@ -1,672 +0,0 @@
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <[email protected]>, 1996
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# The first argument passed to this file is the canonical host specification,
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
# should be set by the caller.
#
# The set of defined variables is at the end of this script.
# Known limitations:
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
# than 256 bytes, otherwise the compiler driver will dump core. The only
# known workaround is to choose shorter directory names for the build
# directory and/or the installation directory.
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
shrext=.so
host="$1"
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
# Code taken from libtool.m4's _LT_CC_BASENAME.
for cc_temp in $CC""; do
case $cc_temp in
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
\-*) ;;
*) break;;
esac
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's _LT_COMPILER_PIC.
wl=
if test "$GCC" = yes; then
wl='-Wl,'
else
case "$host_os" in
aix*)
wl='-Wl,'
;;
darwin*)
case $cc_basename in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | cygwin* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
;;
irix5* | irix6* | nonstopux*)
wl='-Wl,'
;;
newsos6)
;;
linux* | k*bsd*-gnu)
case $cc_basename in
ecc*)
wl='-Wl,'
;;
icc* | ifort*)
wl='-Wl,'
;;
lf95*)
wl='-Wl,'
;;
pgcc | pgf77 | pgf90)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
*)
case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*)
wl='-Wl,'
;;
esac
;;
esac
;;
osf3* | osf4* | osf5*)
wl='-Wl,'
;;
rdos*)
;;
solaris*)
wl='-Wl,'
;;
sunos4*)
wl='-Qoption ld '
;;
sysv4 | sysv4.2uw2* | sysv4.3*)
wl='-Wl,'
;;
sysv4*MP*)
;;
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
wl='-Wl,'
;;
unicos*)
wl='-Wl,'
;;
uts4*)
;;
esac
fi
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
case "$host_os" in
cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
if test "$GCC" != yes; then
with_gnu_ld=no
fi
;;
interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes
;;
openbsd*)
with_gnu_ld=no
;;
esac
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
# Set some defaults for GNU ld with shared library support. These
# are reset later if shared libraries are not supported. Putting them
# here allows them to be overridden if necessary.
# Unlike libtool, we use -rpath here, not --rpath, since the documented
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
case "$host_os" in
aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# Samuel A. Falvo II <[email protected]> reports
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
;;
beos*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
cygwin* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
interix[3-9]*)
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
gnu* | linux* | k*bsd*-gnu)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
netbsd*)
;;
solaris*)
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
ld_shlibs=no
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
ld_shlibs=no
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
else
ld_shlibs=no
fi
;;
esac
;;
sunos4*)
hardcode_direct=yes
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
esac
if test "$ld_shlibs" = no; then
hardcode_libdir_flag_spec=
fi
else
case "$host_os" in
aix3*)
# Note: this linker hardcodes the directories in LIBPATH if there
# are no directories specified by -L.
hardcode_minus_L=yes
if test "$GCC" = yes; then
# Neither direct hardcoding nor static linking is supported with a
# broken collect2.
hardcode_direct=unsupported
fi
;;
aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
else
aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
break
fi
done
;;
esac
fi
hardcode_direct=yes
hardcode_libdir_separator=':'
if test "$GCC" = yes; then
case $host_os in aix4.[012]|aix4.[012].*)
collect2name=`${CC} -print-prog-name=collect2`
if test -f "$collect2name" && \
strings "$collect2name" | grep resolve_lib_name >/dev/null
then
# We have reworked collect2
:
else
# We have old collect2
hardcode_direct=unsupported
hardcode_minus_L=yes
hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator=
fi
;;
esac
fi
# Begin _LT_AC_SYS_LIBPATH_AIX.
echo 'int main () { return 0; }' > conftest.c
${CC} ${LDFLAGS} conftest.c -o conftest
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
if test -z "$aix_libpath"; then
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
fi
if test -z "$aix_libpath"; then
aix_libpath="/usr/lib:/lib"
fi
rm -f conftest.c conftest
# End _LT_AC_SYS_LIBPATH_AIX.
if test "$aix_use_runtimelinking" = yes; then
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
else
if test "$host_cpu" = ia64; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
fi
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# see comment about different semantics on the GNU ld section
ld_shlibs=no
;;
bsdi[45]*)
;;
cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec=' '
libext=lib
;;
darwin* | rhapsody*)
hardcode_direct=no
if test "$GCC" = yes ; then
:
else
case $cc_basename in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
fi
;;
dgux*)
hardcode_libdir_flag_spec='-L$libdir'
;;
freebsd1*)
ld_shlibs=no
;;
freebsd2.2*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
freebsd2*)
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd* | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
hpux9*)
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
hpux10*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
fi
;;
hpux11*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
case $host_cpu in
hppa*64*|ia64*)
hardcode_direct=no
;;
*)
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
esac
fi
;;
irix5* | irix6* | nonstopux*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
netbsd*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
newsos6)
hardcode_direct=yes
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
openbsd*)
if test -f /usr/libexec/ld.so; then
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
fi
else
ld_shlibs=no
fi
;;
os2*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
osf3*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
osf4* | osf5*)
if test "$GCC" = yes; then
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
# Both cc and cxx compiler support -rpath directly
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_separator=:
;;
solaris*)
hardcode_libdir_flag_spec='-R$libdir'
;;
sunos4*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_direct=yes
hardcode_minus_L=yes
;;
sysv4)
case $host_vendor in
sni)
hardcode_direct=yes # is this really true???
;;
siemens)
hardcode_direct=no
;;
motorola)
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
;;
sysv4.3*)
;;
sysv4*MP*)
if test -d /usr/nec; then
ld_shlibs=yes
fi
;;
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
;;
sysv5* | sco3.2v5* | sco5v6*)
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
hardcode_libdir_separator=':'
;;
uts4*)
hardcode_libdir_flag_spec='-L$libdir'
;;
*)
ld_shlibs=no
;;
esac
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec= # the last element of library_names_spec in libtool.m4
libname_spec='lib$name'
case "$host_os" in
aix3*)
library_names_spec='$libname.a'
;;
aix[4-9]*)
library_names_spec='$libname$shrext'
;;
amigaos*)
library_names_spec='$libname.a'
;;
beos*)
library_names_spec='$libname$shrext'
;;
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
cygwin* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
darwin* | rhapsody*)
shrext=.dylib
library_names_spec='$libname$shrext'
;;
dgux*)
library_names_spec='$libname$shrext'
;;
freebsd1*)
;;
freebsd* | dragonfly*)
case "$host_os" in
freebsd[123]*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;
esac
;;
gnu*)
library_names_spec='$libname$shrext'
;;
hpux9* | hpux10* | hpux11*)
case $host_cpu in
ia64*)
shrext=.so
;;
hppa*64*)
shrext=.sl
;;
*)
shrext=.sl
;;
esac
library_names_spec='$libname$shrext'
;;
interix[3-9]*)
library_names_spec='$libname$shrext'
;;
irix5* | irix6* | nonstopux*)
library_names_spec='$libname$shrext'
case "$host_os" in
irix5* | nonstopux*)
libsuff= shlibsuff=
;;
*)
case $LD in
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
*) libsuff= shlibsuff= ;;
esac
;;
esac
;;
linux*oldld* | linux*aout* | linux*coff*)
;;
linux* | k*bsd*-gnu)
library_names_spec='$libname$shrext'
;;
knetbsd*-gnu)
library_names_spec='$libname$shrext'
;;
netbsd*)
library_names_spec='$libname$shrext'
;;
newsos6)
library_names_spec='$libname$shrext'
;;
nto-qnx*)
library_names_spec='$libname$shrext'
;;
openbsd*)
library_names_spec='$libname$shrext$versuffix'
;;
os2*)
libname_spec='$name'
shrext=.dll
library_names_spec='$libname.a'
;;
osf3* | osf4* | osf5*)
library_names_spec='$libname$shrext'
;;
rdos*)
;;
solaris*)
library_names_spec='$libname$shrext'
;;
sunos4*)
library_names_spec='$libname$shrext$versuffix'
;;
sysv4 | sysv4.3*)
library_names_spec='$libname$shrext'
;;
sysv4*MP*)
library_names_spec='$libname$shrext'
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
library_names_spec='$libname$shrext'
;;
uts4*)
library_names_spec='$libname$shrext'
;;
esac
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
# How to pass a linker flag through the compiler.
wl="$escaped_wl"
# Static library suffix (normally "a").
libext="$libext"
# Shared library suffix (normally "so").
shlibext="$shlibext"
# Format of library name prefix.
libname_spec="$escaped_libname_spec"
# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct="$hardcode_direct"
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L="$hardcode_minus_L"
EOF
-4312
View File
File diff suppressed because it is too large. Load diff
+3167
View File
File diff suppressed because it is too large. Load diff
+15
View File
@@ -0,0 +1,15 @@
2010-05-17 Zoltan Varga <[email protected]>
* mono-2.pc.in (Libs): Remove glib dependencies.
2010-05-07 Zoltan Varga <[email protected]>
* mono-2.pc (Requires): Remove glib dependencies.
2010-04-02 Jb Evain <[email protected]>
* dotnet35.pc.in: add System.Data.Services.dll.
2010-03-08 Rodrigo Kumpera <[email protected]>
* mono.supp: Add hazard pointers supressions.
+22 -12
View File
@@ -1,44 +1,54 @@
SUBDIRS = net_2_0 net_4_0 net_4_5
SUBDIRS = net_2_0
if INSTALL_4_0
SUBDIRS += net_4_0
endif
monodir = $(sysconfdir)/mono
monolldbdir = $(libdir)/mono/lldb
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README \
browscap.ini mono.supp mono.d README ChangeLog \
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in \
reactive.pc.in xbuild12.pc \
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in \
net_1_1/machine.config \
gdb/mono-gdb.py \
gdb/gdb-python.diff \
lldb/mono.py \
lldb/monobt.py
gdb/gdb-python.diff
pkgconfigdir = $(libdir)/pkgconfig
if SUPPORT_SGEN
SGENPCFILE=monosgen-2.pc
SGENGDBFILE=mono-sgen-gdb.py
else
SGENPCFILE=
SGENGDBFILE=
endif
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mono-2.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
else
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc xbuild12.pc $(SGENPCFILE)
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc $(SGENPCFILE)
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE) mono-sgen-gdb.py
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc monosgen-2.pc mono-sgen-gdb.py
mono_DATA = config \
browscap.ini
monolldb_DATA = lldb/mono.py
gdbdir = $(bindir)
mono-sgen-gdb.py: gdb/mono-gdb.py
cp $< $@
gdb_DATA = gdb/mono-gdb.py mono-sgen-gdb.py
gdb_DATA = gdb/mono-gdb.py $(SGENGDBFILE)
-4
View File
@@ -1,4 +0,0 @@
Name: AspNetWebStack
Description: References Microsoft ASP.NET Web Stack
Version: @VERSION@
Libs: -r:@prefix@/lib/mono/gac/System.Web.Razor/2.0.0.0__31bf3856ad364e35/System.Web.Razor.dll -r:@prefix@/lib/mono/gac/System.Web.Http/4.0.0.0__31bf3856ad364e35/System.Web.Http.dll -r:@prefix@/lib/mono/gac/System.Web.WebPages/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.dll -r:@prefix@/lib/mono/gac/System.Web.WebPages.Razor/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Razor.dll -r:@prefix@/lib/mono/gac/System.Web.WebPages.Deployment/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Deployment.dll
+1 -1
View File
@@ -1,5 +1,5 @@
assemblies_dir=@prefix@/lib/mono
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.5.0__0738eb9f132ed756/Mono.Cecil.dll
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.4.0__0738eb9f132ed756/Mono.Cecil.dll
Name: Mono Internal -- Do not use.
Description: Mono Internal Libraries -- Do not use
+3 -8
View File
@@ -10,15 +10,12 @@
<dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
<dllmap dll="oci" target="libclntsh@libsuffix@" os="!windows"/>
<dllmap dll="db2cli" target="libdb2_36@libsuffix@" os="!windows"/>
<dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="MonoPosixHelper" target="libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="i:msvcrt" target="@LIBC@" os="!windows"/>
<dllmap dll="i:msvcrt.dll" target="@LIBC@" os="!windows"/>
<dllmap dll="sqlite" target="@SQLITE@" os="!windows"/>
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libgdk-x11-2.0" target="@GDKX11@" os="!windows"/>
<dllmap dll="libgtk-x11-2.0" target="@GTKX11@" os="!windows"/>
<dllmap dll="libXinerama" target="@XINERAMA@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
@@ -29,8 +26,6 @@
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32.dll" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus@libsuffix@" />
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" />
</configuration>
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Xml.Linq.dll
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll
+66
View File
@@ -0,0 +1,66 @@
2009-10-09 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
the GDB support mode in the runtime.
2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.
2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
correctly.
* mono-gdb.py: Update after the changes to dwarfwriter.c.
2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.
2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.
2009-02-03 Zoltan Varga <[email protected]>
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
* mono-gdb.py (stringify_class_name): Helper function to print base types
using their short name. Also add a prototype implementation of registering
the hooks from python code instead of needing the mono-gdbinit file.
* gdb-python.diff: Changes against the gdb archer branch at
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.
2009-02-03 Geoff Norton <[email protected]>
* mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
* mono-gdb.py: Find the gdbinit name from the executable name instead of
hardcoding mono
2009-01-29 Zoltan Varga <[email protected]>
* mono-gdb.py mono-gdbinit: Support files to help debugging mono/mono apps
using a python enabled gdb.
+20 -21
View File
@@ -15,7 +15,6 @@
# When attaching to a mono process, make sure you are in the same directory.
#
from __future__ import print_function
import os
class StringPrinter:
@@ -36,7 +35,7 @@ class StringPrinter:
while i < len:
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = "\u%X".format (val)
c = "\u%X" % val
else:
c = chr (val)
res.append (c)
@@ -53,7 +52,7 @@ def stringify_class_name(ns, name):
if ns == "":
return name
else:
return "{}.{}".format (ns, name)
return "%s.%s" % (ns, name)
class ArrayPrinter:
"Print a C# array"
@@ -66,7 +65,7 @@ class ArrayPrinter:
def to_string(self):
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "{} [{}]".format (stringify_class_name (self.class_ns, self.class_name [0:len (self.class_name) - 2]), int (length))
return "%s [%d]" % (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
class ObjectPrinter:
"Print a C# object"
@@ -96,7 +95,7 @@ class ObjectPrinter:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("{}".format (field.name))))
return (field.name, self.obj.cast (gdb.lookup_type ("%s" % (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
@@ -109,11 +108,11 @@ class ObjectPrinter:
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
gdb_type = gdb.lookup_type ("struct {}_{}".format (class_ns.replace (".", "_"), class_name))
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
print sys.exc_info ()[0]
print sys.exc_info ()[1]
return {}.__iter__ ()
def to_string(self):
@@ -129,16 +128,16 @@ class ObjectPrinter:
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.lookup_type ("struct {}.{}".format (class_ns, class_name))
gdb_type = gdb.lookup_type ("struct %s.%s" % (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "{}.{}".format (class_ns, class_name)
return "%s.%s" % (class_ns, class_name)
#return obj.cast (gdb_type)
return "{}.{}".format (class_ns, class_name)
return "%s.%s" % (class_ns, class_name)
return class_name
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
print sys.exc_info ()[0]
print sys.exc_info ()[1]
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.lookup_type ("guint64"))
@@ -154,9 +153,9 @@ class MonoMethodPrinter:
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"{}:{} ()\"".format (class_name, val ["name"].string ())
return "\"%s:%s ()\"" % (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"{}\"".format (gdb.parse_and_eval ("mono_method_full_name ({}, 1)".format (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
#return "\"%s\"" % (gdb.parse_and_eval ("mono_method_full_name (%s, 1)" % (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
@@ -169,9 +168,9 @@ class MonoClassPrinter:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"{}\"".format (class_name)
return "\"%s\"" % (class_name)
# This returns more info but requires calling into the inferior
#return "\"{}\"".format (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*){})->byval_arg)".format (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
#return "\"%s\"" % (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*)%s)->byval_arg)" % (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def lookup_pretty_printer(val):
t = str (val.type)
@@ -217,9 +216,9 @@ class MonoSupport(object):
new_size = os.stat ("xdb.s").st_size
if new_size > self.s_size:
sofile = "xdb.so"
gdb.execute ("shell as -o xdb.o xdb.s && ld -shared -o {} xdb.o".format (sofile))
gdb.execute ("shell as -o xdb.o xdb.s && ld -shared -o %s xdb.o" % sofile)
# FIXME: This prints messages which couldn't be turned off
gdb.execute ("add-symbol-file {} 0".format (sofile))
gdb.execute ("add-symbol-file %s 0" % sofile)
self.s_size = new_size
class RunHook (gdb.Command):
@@ -230,7 +229,7 @@ class RunHook (gdb.Command):
def invoke(self, arg, from_tty):
mono_support.run_hook ()
print ("Mono support loaded.")
print "Mono support loaded."
mono_support = MonoSupport ()
@@ -245,4 +244,4 @@ exec_file = gdb.current_objfile ().filename
if os.stat (exec_file).st_size != os.lstat (exec_file).st_size:
exec_file = os.readlink (exec_file)
exec_dir = os.path.dirname (exec_file)
gdb.execute ("source {}/{}-gdbinit".format (exec_dir, os.path.basename (exec_file)))
gdb.execute ("source %s/%s-gdbinit" % (exec_dir, os.path.basename (exec_file)))
+2 -2
View File
@@ -3,8 +3,8 @@
import sys
gdb.execute ("file %s".format (sys.argv [0]))
gdb.execute ("r --break *:* %s".format (" ".join (sys.argv [1:len (sys.argv)])))
gdb.execute ("file %s" % sys.argv [0])
gdb.execute ("r --break *:* %s" % " ".join (sys.argv[1:len(sys.argv)]))
while True:
try:
+80
View File
@@ -0,0 +1,80 @@
2010-06-28 Zoltan Varga <[email protected]>
* mono-gdb.py: Add pretty printers for more runtime data structures.
2009-10-13 Zoltan Varga <[email protected]>
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.
2009-10-12 Zoltan Varga <[email protected]>
* mono-gdb.py: Update this to gdb 7.0.
* mono-gdbinit: Removed, no longer needed.
2009-10-09 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
the GDB support mode in the runtime.
2009-04-14 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
2009-04-12 Zoltan Varga <[email protected]>
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
printer.
2009-04-10 Zoltan Varga <[email protected]>
* mono-gdb.py: Update to the latest archer api.
2009-04-07 Zoltan Varga <[email protected]>
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
2009-04-06 Zoltan Varga <[email protected]>
* test-xdb.py: New file, tester script for xdb.
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
correctly.
* mono-gdb.py: Update after the changes to dwarfwriter.c.
2009-04-05 Zoltan Varga <[email protected]>
* mono-gdb.py: Handle superclasses in the pretty printer.
2009-03-27 Zoltan Varga <[email protected]>
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
2009-03-20 Zoltan Varga <[email protected]>
* mono-gdb.py: Update for the latest python API on the archer branch.
2009-02-03 Zoltan Varga <[email protected]>
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
* mono-gdb.py (stringify_class_name): Helper function to print base types
using their short name. Also add a prototype implementation of registering
the hooks from python code instead of needing the mono-gdbinit file.
* gdb-python.diff: Changes against the gdb archer branch at
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.
2009-02-03 Geoff Norton <[email protected]>
* mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
* mono-gdb.py: Find the gdbinit name from the executable name instead of
hardcoding mono
2009-01-29 Zoltan Varga <[email protected]>
* mono-gdb.py mono-gdbinit: Support files to help debugging mono/mono apps
using a python enabled gdb.
+29 -51
View File
@@ -10,7 +10,6 @@
# - run mono under gdb, or attach to a mono process started with --debug=gdb using gdb.
#
from __future__ import print_function
import os
class StringPrinter:
@@ -31,7 +30,7 @@ class StringPrinter:
while i < len:
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = unichr (val)
c = "\u%X" % val
else:
c = chr (val)
res.append (c)
@@ -48,7 +47,7 @@ def stringify_class_name(ns, name):
if ns == "":
return name
else:
return "{}.{}".format (ns, name)
return "%s.%s" % (ns, name)
class ArrayPrinter:
"Print a C# array"
@@ -61,7 +60,7 @@ class ArrayPrinter:
def to_string(self):
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "{} [{}]".format (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
return "%s [%d]" % (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
class ObjectPrinter:
"Print a C# object"
@@ -91,7 +90,7 @@ class ObjectPrinter:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("{}".format (field.name))))
return (field.name, self.obj.cast (gdb.lookup_type ("%s" % (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
@@ -105,13 +104,13 @@ class ObjectPrinter:
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
try:
gdb_type = gdb.lookup_type ("struct {}_{}".format (class_ns.replace (".", "_"), class_name))
gdb_type = gdb.lookup_type ("struct %s_%s" % (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
return {}.__iter__ ()
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
print sys.exc_info ()[0]
print sys.exc_info ()[1]
return {}.__iter__ ()
def to_string(self):
@@ -127,16 +126,16 @@ class ObjectPrinter:
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.lookup_type ("struct {}.{}".format (class_ns, class_name))
gdb_type = gdb.lookup_type ("struct %s.%s" % (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "{}.{}".format (class_ns, class_name)
return "%s.%s" % (class_ns, class_name)
#return obj.cast (gdb_type)
return "{}.{}".format (class_ns, class_name)
return "%s.%s" % (class_ns, class_name)
return class_name
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
print sys.exc_info ()[0]
print sys.exc_info ()[1]
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.lookup_type ("guint64"))
@@ -152,9 +151,9 @@ class MonoMethodPrinter:
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"{}:{} ()\"".format (class_name, val ["name"].string ())
return "\"%s:%s ()\"" % (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"{}\"".format (gdb.parse_and_eval ("mono_method_full_name ({}, 1)".format (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
#return "\"%s\"" % (gdb.parse_and_eval ("mono_method_full_name (%s, 1)" % (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
@@ -167,21 +166,19 @@ class MonoClassPrinter:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
if klass ["generic_class"].cast (gdb.lookup_type ("guint64")) != 0:
class_name = "{}<{}>".format (class_name, str (klass ["generic_class"]["context"]["class_inst"]))
if add_quotes:
return "\"{}\"".format (class_name)
return "\"%s\"" % (class_name)
else:
return class_name
# This returns more info but requires calling into the inferior
#return "\"{}\"".format (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*){})->byval_arg)".format (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
#return "\"%s\"" % (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*)%s)->byval_arg)" % (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def to_string(self):
try:
return self.to_string_inner (True)
except:
#print (sys.exc_info ()[0])
#print (sys.exc_info ()[1])
#print sys.exc_info ()[0]
#print sys.exc_info ()[1]
return str(self.val.cast (gdb.lookup_type ("gpointer")))
class MonoGenericInstPrinter:
@@ -191,14 +188,12 @@ class MonoGenericInstPrinter:
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
inst = self.val.dereference ()
inst_len = inst ["type_argc"]
inst_args = inst ["type_argv"]
inst_str = ""
for i in range(0, inst_len):
print (inst_args)
print inst_args
type_printer = MonoTypePrinter (inst_args [i])
if i > 0:
inst_str = inst_str + ", "
@@ -222,14 +217,14 @@ class MonoGenericClassPrinter:
method_inst_str = ""
if int(method_inst.cast (gdb.lookup_type ("guint64"))) != 0:
method_inst_str = str(method_inst)
return "{}, [{}], [{}]>".format (container_str, class_inst_str, method_inst_str)
return "%s, [%s], [%s]>" % (container_str, class_inst_str, method_inst_str)
def to_string(self):
try:
return self.to_string_inner ()
except:
#print (sys.exc_info ()[0])
#print (sys.exc_info ()[1])
#print sys.exc_info ()[0]
#print sys.exc_info ()[1]
return str(self.val.cast (gdb.lookup_type ("gpointer")))
class MonoTypePrinter:
@@ -252,12 +247,12 @@ class MonoTypePrinter:
info = str(t ["data"]["generic_class"])
if info != "":
return "{{}, {}}".format (kind, info)
return "{%s, %s}" % (kind, info)
else:
return "{{}}".format (kind)
return "{%s}" % (kind)
except:
#print (sys.exc_info ()[0])
#print (sys.exc_info ()[1])
#print sys.exc_info ()[0]
#print sys.exc_info ()[1]
return str(self.val.cast (gdb.lookup_type ("gpointer")))
def to_string(self):
@@ -278,27 +273,12 @@ class MonoMethodRgctxPrinter:
inst_args = inst ["type_argv"]
inst_str = ""
for i in range(0, inst_len):
print (inst_args)
print inst_args
type_printer = MonoTypePrinter (inst_args [i])
if i > 0:
inst_str = inst_str + ", "
inst_str = inst_str + type_printer.to_string ()
return "MRGCTX[{}, [{}]]".format (klass_printer.to_string(), inst_str)
class MonoVTablePrinter:
"Print a MonoVTable structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
vtable = self.val.dereference ()
klass = vtable ["klass"]
klass_printer = MonoClassPrinter (klass)
return "vtable({})".format (klass_printer.to_string ())
return "MRGCTX[%s, [%s]]" % (klass_printer.to_string(), inst_str)
def lookup_pretty_printer(val):
t = str (val.type)
@@ -322,8 +302,6 @@ def lookup_pretty_printer(val):
return MonoGenericClassPrinter (val)
if t == "MonoMethodRuntimeGenericContext *":
return MonoMethodRgctxPrinter (val)
if t == "MonoVTable *":
return MonoVTablePrinter (val)
return None
def register_csharp_printers(obj):
@@ -349,6 +327,6 @@ XdbCommand ()
gdb.execute ("set environment MONO_XDEBUG gdb")
print ("Mono support loaded.")
print "Mono support loaded."
+2 -2
View File
@@ -3,8 +3,8 @@
import sys
gdb.execute ("file %s".format (sys.argv [0]))
gdb.execute ("r --break *:* %s".format (" ".join (sys.argv [1:len (sys.argv)])))
gdb.execute ("file %s" % sys.argv [0])
gdb.execute ("r --break *:* %s" % " ".join (sys.argv[1:len(sys.argv)]))
while True:
try:
-174
View File
@@ -1,174 +0,0 @@
#
# Author: Zoltan Varga ([email protected])
# License: MIT/X11
#
#
# This is a mono support mode for lldb
#
# Comments about the lldb python api:
# - there are no accessors, i.e. valobj["name"]
# - http://lldb.llvm.org/python_reference/index.html seems to be outdated
# - there is no autoload support, i.e. can't load this file automatically
# when 'mono' is the debugger target.
import lldb
# FIXME: Generate enums from runtime enums
MONO_TYPE_END = 0x00
MONO_TYPE_VOID = 0x01
MONO_TYPE_BOOLEAN = 0x02
MONO_TYPE_CHAR = 0x03
MONO_TYPE_I1 = 0x04
MONO_TYPE_U1 = 0x05
MONO_TYPE_I2 = 0x06
MONO_TYPE_U2 = 0x07
MONO_TYPE_I4 = 0x08
MONO_TYPE_U4 = 0x09
MONO_TYPE_I8 = 0x0a
MONO_TYPE_U8 = 0x0b
MONO_TYPE_R4 = 0x0c
MONO_TYPE_R8 = 0x0d
MONO_TYPE_STRING = 0x0e
MONO_TYPE_PTR = 0x0f
MONO_TYPE_BYREF = 0x10
MONO_TYPE_VALUETYPE = 0x11
MONO_TYPE_CLASS = 0x12
MONO_TYPE_VAR = 0x13
MONO_TYPE_ARRAY = 0x14
MONO_TYPE_GENERICINST= 0x15
MONO_TYPE_TYPEDBYREF = 0x16
MONO_TYPE_I = 0x18
MONO_TYPE_U = 0x19
MONO_TYPE_FNPTR = 0x1b
MONO_TYPE_OBJECT = 0x1c
MONO_TYPE_SZARRAY = 0x1d
MONO_TYPE_MVAR = 0x1e
primitive_type_names = {
MONO_TYPE_BOOLEAN : "bool",
MONO_TYPE_CHAR : "char",
MONO_TYPE_I1 : "sbyte",
MONO_TYPE_U1 : "byte",
MONO_TYPE_I2 : "short",
MONO_TYPE_U2 : "ushort",
MONO_TYPE_I4 : "int",
MONO_TYPE_U4 : "uint",
MONO_TYPE_I8 : "long",
MONO_TYPE_U8 : "ulong",
MONO_TYPE_R4 : "float",
MONO_TYPE_R8 : "double",
MONO_TYPE_STRING : "string"
}
#
# Helper functions for working with the lldb python api
#
def member(val, member_name):
return val.GetChildMemberWithName (member_name)
def string_member(val, member_name):
return val.GetChildMemberWithName (member_name).GetSummary ()[1:-1]
def isnull(val):
return val.deref.addr.GetOffset () == 0
def stringify_class_name(ns, name):
if ns == "System":
if name == "Byte":
return "byte"
if name == "String":
return "string"
if ns == "":
return name
else:
return "{0}.{1}".format (ns, name)
#
# Pretty printers for mono runtime types
#
def stringify_type (type):
"Print a MonoType structure"
ttype = member(type, "type").GetValueAsUnsigned()
if primitive_type_names.has_key (ttype):
return primitive_type_names [ttype]
else:
return "<MonoTypeEnum 0x{0:x}>".format (ttype)
def stringify_ginst (ginst):
"Print a MonoGenericInst structure"
len = int(member(ginst, "type_argc").GetValue())
argv = member(ginst, "type_argv")
res=""
for i in range(len):
t = argv.GetChildAtIndex(i, False, True)
if i > 0:
res += ", "
res += stringify_type(t)
return res
def print_type(valobj, internal_dict):
type = valobj
if isnull (type):
return ""
return stringify_type (type)
def print_class (valobj, internal_dict):
klass = valobj
if isnull (klass):
return ""
aname = member (member (member (klass, "image"), "assembly"), "aname")
basename = "[{0}]{1}".format (string_member (aname, "name"), (stringify_class_name (string_member (klass, "name_space"), string_member (klass, "name"))))
gclass = member (klass, "generic_class")
if not isnull (gclass):
ginst = member (member (gclass, "context"), "class_inst")
return "{0}<{1}>".format (basename, stringify_ginst (ginst))
return basename
def print_method (valobj, internal_dict):
method = valobj
if isnull (method):
return ""
klass = member (method, "klass")
return "{0}:{1}()".format (print_class (klass, None), string_member (valobj, "name"))
def print_domain(valobj, internal_dict):
domain = valobj
if isnull (domain):
return ""
target = domain.target
root = target.FindFirstGlobalVariable("mono_root_domain")
name = string_member (domain, "friendly_name")
if root.IsValid () and root.deref.addr.GetOffset () == root.deref.addr.GetOffset ():
return "[root]"
else:
return "[{0}]".format (name)
def print_object(valobj, internal_dict):
obj = valobj
if isnull (obj):
return ""
domain = member (member (obj, "vtable"), "domain")
klass = member (member (obj, "vtable"), "klass")
return print_domain (domain, None) + print_class (klass, None)
# Register pretty printers
# FIXME: This cannot pick up the methods define in this module, leading to warnings
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_method MonoMethod")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_class MonoClass")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_type MonoType")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_domain MonoDomain")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_object MonoObject")
lldb.debugger.HandleCommand ("type category enable mono")
# Helper commands for runtime debugging
# These resume the target
# Print the method at the current ip
lldb.debugger.HandleCommand ("command alias pip p mono_print_method_from_ip((void*)$pc)")
# Print the method at the provided ip
lldb.debugger.HandleCommand ("command regex pmip 's/^$/p mono_print_method_from_ip((void*)$pc)/' 's/(.+)/p mono_print_method_from_ip((void*)(%1))/'")
print "Mono support mode loaded."
-56
View File
@@ -1,56 +0,0 @@
import lldb
def print_frames(thread, num_frames, current_thread):
# TODO: Make output header similar to bt.
print '%c thread #%i' % ('*' if current_thread else ' ', thread.idx)
if current_thread:
selected_frame = thread.GetSelectedFrame()
for frame in thread.frames[:+num_frames]:
pc = str(frame.addr)
fmt = ' %c %s'
var = frame
if pc[0] == '0':
try:
framestr = frame.EvaluateExpression('(char*)mono_pmip((void*)%s)' % pc).summary[1:-1]
var = 'frame #%i: %s%s' % (frame.idx, pc, framestr)
except:
pass
print fmt % ('*' if current_thread and frame.idx == selected_frame.idx else ' ', var)
def monobt(debugger, command, result, dict):
opts = {'all_bt': False, 'num_frames': None}
if command == 'all':
opts['all_bt'] = True
elif command.isdigit():
opts['num_frames'] = int(command)
elif command != '':
print 'error: monobt [<number>|all]'
return
target = debugger.GetSelectedTarget()
process = target.process
if not process.IsValid():
print 'error: invalid process'
return
if opts['all_bt']:
for thread in process.threads:
print_frames(thread, len(thread), process.selected_thread == thread)
print ''
else:
thread = process.selected_thread
num_frames = len(thread) if opts['num_frames'] is None else opts['num_frames']
print_frames(thread, num_frames, True)
return None
def __lldb_init_module (debugger, dict):
# This initializer is being run from LLDB in the embedded command interpreter
# Add any commands contained in this module to LLDB
debugger.HandleCommand('command script add -f monobt.monobt monobt')
print '"monobt" command installed'
+6
View File
@@ -0,0 +1,6 @@
2009-02-19 Rodrigo Kumpera <[email protected]>
* LockTracerDecoder.cs: Initial version of the lock tracers decoder.
+10 -76
View File
@@ -102,35 +102,15 @@ Global locks:
Adding global locks is not to be taken lightly.
The current lock hierarchy:
loader lock (global)
domain lock (complex)
domain jit lock (complex)
marshal lock
loader lock
domain lock
domain jit lock
simple locks
Examples:
You can take the loader lock without holding a domain lock.
You can take the domain load while holding the loader lock
You cannot take the loader lock if only the domain lock is held.
You cannot take a domain lock if the loader lock is held.
You cannot take a domain lock while holding the lock to another domain.
TODO:
We have a few known ok violation. We need a way to whitelist them.
Known ok issues:
ERROR: tried to acquire lock DomainLock at mono_domain_code_reserve_align while holding DomainLock at mono_class_create_runtime_vtable: Hierarchy violation.
This is triggered when building the vtable of a non-root domain and fetching a vtable trampoline for an offset that has not been built. We'll take the root
domain lock while holding the other one.
This is ok since we never allow locking to have in the other direction, IOW, the root-domain lock is one level down from the other domain-locks.
WARNING: tried to acquire lock ImageDataLock at mono_image_init_name_cache while holding ImageDataLock at mono_class_from_name
WARNING: tried to acquire lock ImageDataLock at mono_image_init_name_cache while holding ImageDataLock at mono_image_add_to_name_cache
Both of those happen when filling up the name_cache, as it needs to alloc image memory.
This one is fixable by spliting mono_image_init_name_cache into a locked and an unlocked variants and calling them appropriatedly.
*/
public enum Lock {
@@ -140,12 +120,6 @@ public enum Lock {
DomainLock,
DomainAssembliesLock,
DomainJitCodeHashLock,
IcallLock,
AssemblyBindingLock,
MarshalLock,
ClassesLock,
LoaderGlobalDataLock,
ThreadsLock,
}
public class SimLock
@@ -165,7 +139,6 @@ public class SimLock
case Lock.DomainLock:
return 1;
case Lock.DomainJitCodeHashLock:
case Lock.MarshalLock:
return 2;
default:
return 3;
@@ -184,10 +157,6 @@ public class SimLock
get { return kind == Lock.LoaderLock; }
}
public bool IsResursiveLock {
get { return kind == Lock.LoaderLock || kind == Lock.DomainLock; }
}
/*locked is already owned by the thread, 'this' is the new one*/
bool Compare (SimThread thread, SimLock locked, out bool isWarning, out string msg)
{
@@ -243,24 +212,7 @@ public class SimLock
}
public override string ToString () {
switch (kind) {
case Lock.LoaderLock:
case Lock.IcallLock:
case Lock.AssemblyBindingLock:
case Lock.MarshalLock:
case Lock.ClassesLock:
case Lock.LoaderGlobalDataLock:
case Lock.ThreadsLock:
return String.Format ("{0}", kind);
case Lock.ImageDataLock:
case Lock.DomainLock:
case Lock.DomainAssembliesLock:
case Lock.DomainJitCodeHashLock:
return String.Format ("{0}[{1}]", kind, id);
default:
return String.Format ("Unknown({0})[{1}]", kind, id);
}
return String.Format ("{0}", kind);
}
}
@@ -324,15 +276,6 @@ public class Trace {
"mono_loader_unlock",
"mono_image_lock",
"mono_image_unlock",
"mono_icall_lock",
"mono_icall_unlock",
"add_record",
"mono_locks_lock_acquired",
"mono_locks_lock_released",
"mono_threads_lock",
"mono_threads_unlock",
"mono_domain_lock",
"mono_domain_unlock",
};
public Trace (string[] fields) {
@@ -383,10 +326,6 @@ public class Symbol : IComparable<Symbol>
public int CompareTo(Symbol other) {
return offset - other.offset;
}
public void AdjustSize (Symbol next) {
size = next.offset - this.offset;
}
}
public interface SymbolTable {
@@ -413,26 +352,21 @@ public class OsxSymbolTable : SymbolTable
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 7)
if (fields.Length < 4)
continue;
if (!fields [3].Equals ("FUN"))
if (!(fields [1].Equals ("g") || fields [1].Equals ("d")))
continue;
if (!fields [2].Equals ("*UND*"))
continue;
int offset = fields [0].ParseHex ();
string name = fields [6];
if (name.StartsWith ("_"))
name = name.Substring (1);
string name = fields [3];
if (offset != 0)
list.Add (new Symbol (offset, 0, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
for (int i = 1; i < table.Length; ++i) {
table [i - 1].AdjustSize (table [i]);
}
}
public string Translate (int offset) {
+1 -1
View File
@@ -6,4 +6,4 @@ includedir=${prefix}/include
Name: Mono.Cairo
Description: Cairo bindings for Mono
Version: @VERSION@
Libs: -r:Mono.Cairo
Libs: -r:${prefix}/lib/mono/2.0/Mono.Cairo.dll
+1 -1
View File
@@ -6,4 +6,4 @@ libdir=${exec_prefix}/lib
Name: Mono NUnit
Description: Mono's version of NUnit
Version: @VERSION@
Libs: -r:${libdir}/mono/4.5/nunit.core.dll -r:${libdir}/mono/4.5/nunit.core.interfaces.dll -r:${libdir}/mono/4.5/nunit.core.extensions.dll -r:${libdir}/mono/4.5/nunit.framework.dll -r:${libdir}/mono/4.5/nunit.framework.extensions.dll -r:${libdir}/mono/4.5/nunit.mocks.dll -r:${libdir}/mono/4.5/nunit.util.dll -r:${libdir}/mono/4.5/nunit-console-runner.dll
Libs: -r:${libdir}/mono/2.0/nunit.core.dll -r:${libdir}/mono/2.0/nunit.core.interfaces.dll -r:${libdir}/mono/2.0/nunit.core.extensions.dll -r:${libdir}/mono/2.0/nunit.framework.dll -r:${libdir}/mono/2.0/nunit.framework.extensions.dll -r:${libdir}/mono/2.0/nunit.mocks.dll -r:${libdir}/mono/2.0/nunit.util.dll -r:${libdir}/mono/2.0/nunit-console-runner.dll
+1 -1
View File
@@ -4,4 +4,4 @@ Sources=${assemblies_dir}/Options.cs
Name: Mono.Options
Description: Command Line Parsing Library
Version: 0.2.3
Version: 0.2.2
-36
View File
@@ -18,42 +18,6 @@ provider mono {
/* Garbage Collector (GC) */
probe gc__begin (int generation);
probe gc__end (int generation);
probe gc__requested (int generation, uintptr_t requested_size, int wait_to_finish);
probe gc__concurrent__start__begin (int generation);
probe gc__concurrent__update__finish__begin (int generation, long long num_major_objects_marked);
probe gc__sweep__begin (int generation, int full_sweep);
probe gc__sweep__end (int generation, int full_sweep);
probe gc__world__stop__begin ();
probe gc__world__stop__end ();
probe gc__world__restart__begin (int generation);
probe gc__world__restart__end (int generation);
probe gc__nursery__tlab__alloc (uintptr_t addr, uintptr_t len);
probe gc__nursery__obj__alloc (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__major__obj__alloc__large (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__major__obj__alloc__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__major__obj__alloc__degraded (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
/* Can be nursery->nursery, nursery->major or major->major */
probe gc__obj__moved (uintptr_t dest, uintptr_t src, int dest_gen, int src_gen, uintptr_t size, char *ns_name, char *class_name);
probe gc__nursery__swept (uintptr_t addr, uintptr_t len);
probe gc__major__swept (uintptr_t addr, uintptr_t len);
probe gc__obj__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation);
probe gc__finalize__enqueue (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation, int is_critical);
probe gc__finalize__invoke (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__weak__update (uintptr_t ref_addr, uintptr_t new_addr, uintptr_t size, char *ns_name, char *class_name, int track);
probe gc__global__remset__add (uintptr_t ref_addr, uintptr_t obj_addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__obj__cemented (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
};
#pragma D attributes Evolving/Evolving/Common provider mono provider
+4
View File
@@ -0,0 +1,4 @@
Name: Mono.Web
Description: Mono ASP.NET extension classes
Version: 2.0.0.0
Libs: -r:@prefix@/lib/mono/gac/Mono.Web/2.0.0.0__0738eb9f132ed756/Mono.Web.dll
-4
View File
@@ -214,16 +214,12 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
File renamed without changes.
+6
View File
@@ -0,0 +1,6 @@
2008-03-23 Dean Brettle <[email protected]>
* Compat.browser: added. Provides browser definitions with
compatible IDs.
File renamed without changes.
+2 -2
View File
@@ -1,6 +1,6 @@
monodir = $(sysconfdir)/mono/2.0/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
EXTRA_DIST = Compat.browser
mono_DATA = ../../Browsers/Compat.browser
mono_DATA = Compat.browser
+147
View File
@@ -0,0 +1,147 @@
2009-08-11 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
self-referencing types. Fixes bug #529353.
2009-08-05 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
2009-05-28 Atsushi Enomoto <[email protected]>
* machine.config: fix WCF diagnostics section name.
2009-03-31 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
be created using Response.Write, as the code expression in the
href attribute is otherwise treated verbatim. This is the same as
with .NET. Fixes bug #490497
2009-03-27 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: disable the test form
when only Soap is supported.
Bug #342073 fixed.
2009-01-23 Atsushi Enomoto <[email protected]>
* web.config : added .svc handler.
2009-01-07 Kornél Pál <[email protected]>
* DefaultWsdlHelpGenerator.aspx: Move <script> at the end of <head> that
will make Visual Studio recognize the web service disco reference.
Contributed under MIT/X11 license.
2008-12-03 Marek Habersack <[email protected]>
* machine.config: rename serviceModelHostingEnvironment to
serviceHostingEnvironment.
2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* machine.config: in 2.0, there's no <connectionManagement> section
here. Bug #445991 fixed.
2008-11-14 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
HttpWebRequest to avoid a deadlock if the web service uses Session.
Bug #444343 fixed.
2008-10-09 Gonzalo Paniagua Javier <[email protected]>
* web.config: default values for httpRuntime are different in 2.0
2008-10-09 Marek Habersack <[email protected]>
* web.config: added the default monoSettings section which works around
an incompatibility between mcs and csc, mentioned in bug #433806
* machine.config: added definition of the monoSettings section to
the system.web group
2008-10-06 Marek Habersack <[email protected]>
* machine.config: added entries to ignore the mobileControls and
deviceFilters sections.
2008-09-02 Marek Habersack <[email protected]>
* web.config: removed System.Web.Extensions.dll from the assemblies
(reverting r112073) - it would break all the ASP.NET applications
which use System.Web.Extensions other than 3.5.0.0
2008-09-06 Daniel Morgan <[email protected]>
* machine.config: added Mono.Data.SybaseClient
to DbProviderFactories section.
2008-09-02 Atsushi Enomoto <[email protected]>
* web.config: added System.Web.Extensions.dll to assemblies.
2008-08-28 Zoltan Varga <[email protected]>
* machine.config: Fix syntax error.
2008-03-23 Dean Brettle <[email protected]>
* Makefile.am: added Browsers/Compat.browser
2008-02-29 Marek Habersack <[email protected]>
* machine.config: added an entry to ignore the browserCaps section.
2007-12-15 Marek Habersack <[email protected]>
* web.config: compilation/compilers are no longer necessary.
2007-12-08 Marek Habersack <[email protected]>
* machine.config: updated the LocalSqlServer connection string to
match MS.NET and added a new connection string, LocalSqliteServer,
to be used by default on Unix.
Updated the AspNetSqlMembershipProvider definition to match
MS.NET.
* settings.map: added
* Makefile.am: added settings.map
2007-10-17 Atsushi Enomoto <[email protected]>
* web.config, machine.config: moved webSerices section from former
to latter.
2007-09-05 Atsushi Enomoto <[email protected]>
* machine.config : added WCF sectionGroups.
2007-09-04 Marek Habersack <[email protected]>
* machine.config: added an entry to ignore the <system.webServer>
section. Fixes bug #82535
2007-07-03 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: make head server-side, for the
service generator to run on sites which use stylesheet themes
configured in web.config. Fixes bug #81994
2007-05-01 Marek Habersack <[email protected]>
* machine.config: added standard data provider factories, or
otherwise the SqlDataSource tests will fail.
2007-04-27 Atsushi Enomoto <[email protected]>
* DefaultWsdlHelpGenerator.aspx :
ProfileViolations could be null, when there is no Binding. So,
don't omit null check.
Stop your bad habit of missing ChangeLog. Former changes (as long
as logged) can be seen in ../../ChangeLog.
-4
View File
@@ -197,16 +197,12 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
@@ -24,7 +24,7 @@
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
-6
View File
@@ -1,6 +0,0 @@
monodir = $(sysconfdir)/mono/4.0/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = ../../Browsers/Compat.browser
+9
View File
@@ -0,0 +1,9 @@
2009-08-06 Atsushi Enomoto <[email protected]>
* web.config: add WCF assemblies as references at compilation.
* machine.config: add some missing WCF sections (new in 3.5).
2009-07-24 Jb Evain <[email protected]>
* Initial import of the net_4_0 specific files.
+1 -1
View File
@@ -1,4 +1,4 @@
SUBDIRS = Browsers
SUBDIRS =
monodir = $(sysconfdir)/mono/4.0
-4
View File
@@ -214,16 +214,12 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
@@ -24,7 +24,7 @@
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-6
View File
@@ -1,6 +0,0 @@
monodir = $(sysconfdir)/mono/4.5/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = ../../Browsers/Compat.browser
File diff suppressed because it is too large. Load diff
-13
View File
@@ -1,13 +0,0 @@
SUBDIRS = Browsers
monodir = $(sysconfdir)/mono/4.5
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
-313
View File
@@ -1,313 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="configProtectedData" type="System.Configuration.ProtectedConfigurationSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.SystemDiagnosticsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="strongNames" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.runtime.serialization" type="System.Runtime.Serialization.Configuration.SerializationSectionGroup, System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="dataContractSerializer" type="System.Runtime.Serialization.Configuration.DataContractSerializerSection, System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
<section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="standardEndpoints" type="System.ServiceModel.Configuration.StandardEndpointsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="LocalSqliteServer" connectionString="Data Source=|DataDirectory|/aspnetdb.sqlite;version=3" providerName="Mono.Data.Sqlite"/>
</connectionStrings>
<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" keyContainerName="MonoFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" useMachineProtection="true" keyEntropy="" />
</providers>
</configProtectedData>
<system.net>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="ipc client" displayName="ipc client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc" type="System.Runtime.Remoting.Channels.Ipc.IpcChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc client" type="System.Runtime.Remoting.Channels.Ipc.IpcClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc server" type="System.Runtime.Remoting.Channels.Ipc.IpcServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<system.data>
<DbProviderFactories>
<add name="Mono Sqlite Data Provider" invariant="Mono.Data.SqliteClient"
description="Mono Framework Data Provider for SQLite (old version)"
type="Mono.Data.SqliteClient.SqliteFactory, Mono.Data.SqliteClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Mono Sqlite Provider" invariant="Mono.Data.Sqlite"
description="Mono Framework Data Provider for SQLite (new version)"
type="Mono.Data.Sqlite.SqliteFactory, Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Odbc Data Provider" invariant="System.Data.Odbc"
description=".Net Framework Data Provider for Odbc"
type="System.Data.Odbc.OdbcFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OleDb Data Provider" invariant="System.Data.OleDb"
description=".Net Framework Data Provider for OleDb"
type="System.Data.OleDb.OleDbFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
description=".Net Framework Data Provider for Oracle"
type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<add name="BasicProfile1_1"/>
</conformanceWarnings>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<membership>
<providers>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
<!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</membership>
<roleManager>
<providers>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="LocalSqlServer" />
<!-- <add name="AspNetSqlRoleProvider" type="Mainsoft.Web.Security.GenericRoleProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</roleManager>
<profile>
<providers>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
<endpointExtensions>
<add name="dynamicEndpoint" type="System.ServiceModel.Discovery.Configuration.DynamicEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="discoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.DiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpDiscoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpDiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="announcementEndpoint" type="System.ServiceModel.Discovery.Configuration.AnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpAnnouncementEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpAnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttpEndpoint" type="System.ServiceModel.Configuration.WebHttpEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webScriptEndpoint" type="System.ServiceModel.Configuration.WebScriptEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</endpointExtensions>
</extensions>
</system.serviceModel>
</configuration>
-48
View File
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlRoleProvider"
type="System.Web.Security.SqliteRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
</settingsMap>
-253
View File
@@ -1,253 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<!--
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
<!--
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />
<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />
</httpHandlers>
<httpModules>
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<!--
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
-->
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<!--
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
-->
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<!--
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
-->
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
<add name="Profile" type="System.Web.Profile.ProfileModule" />
<!--
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<pages>
<namespaces>
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.WebParts" assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.Expressions" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</controls>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<!-- <add assembly="mscorlib" /> -->
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<!-- <add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> -->
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Channels, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<!-- <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> -->
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
<add expressionPrefix="Resources"
type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="ConnectionStrings"
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="RouteUrl" type="System.Web.Compilation.RouteUrlExpressionBuilder"/>
<!--
<add expressionPrefix="RouteValue" type="System.Web.Compilation.RouteValueExpressionBuilder"/>
-->
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" />
<add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" />
<add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" />
<add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" />
<add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" />
<add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" />
<add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" />
<add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" />
<add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<!--
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
<add extension=".xoml" type="System.ServiceModel.Activation.WorkflowServiceBuildProvider, System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add extension=".xamlx" type="System.Xaml.Hosting.XamlBuildProvider, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel" userAgent="Unknown" />
</clientTarget>
<siteMap>
<providers>
<add name="AspNetXmlSiteMapProvider"
description="Default site map provider that reads in .sitemap xml files."
type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="Web.sitemap" />
</providers>
</siteMap>
</system.web>
</configuration>
-4
View File
@@ -1,4 +0,0 @@
Name: Reactive Extensions
Description: Reactive Extensions
Version: @VERSION@
Libs: -r:@prefix@/lib/mono/4.5/System.Reactive.Interfaces.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Core.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Linq.dll -r:@prefix@/lib/mono/4.5/System.Reactive.PlatformServices.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Providers.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Debugger.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Experimental.dll -r:@prefix@/lib/mono/4.5/System.Reactive.Runtime.Remoting.dll
-4
View File
@@ -1,4 +0,0 @@
Name: System.Web.Mvc3
Description: System.Web.Mvc - ASP.NET MVC v3
Version: 3.0.0.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Mvc/3.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
-7
View File
@@ -1,7 +0,0 @@
bindir=${pcfiledir}/../mono/xbuild/12.0/bin
Name: XBuild 12.0
Description: XBuild/MSBuild 12.0
Version: 12.0
Libs: -r:${bindir}/Microsoft.Build.Engine.dll -r:${bindir}/Microsoft.Build.Framework.dll -r:${bindir}/Microsoft.Build.Tasks.v12.0.dll -r:${bindir}/Microsoft.Build.Utilities.v12.0.dll -r:${bindir}/Microsoft.Build.dll
+133
View File
@@ -0,0 +1,133 @@
2010-04-06 Andreia Gaita <[email protected]>
* Makefile.am: fix distcheck - several targets get built on the
srcdir, which has no write permissions on make distcheck, so make
sure permissions are set
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the
file headers don't specify it
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
http://www.codeplex.com/htmlagilitypack in source form.
* AgilityPack.dll: Remove binary assembly, use source instead.
* docs.make Makefile.am README: Reflect above changes
2009-02-12 Zoltan Varga <[email protected]>
* Makefile.am (EXTRA_DIST): Remove removed files.
* README: Point to the documentation on the wiki.
* call-sites.txt: Remove this, its contents is in jit-trampolines.
* memory-management.txt thread-safety.txt aot-compiler.txt jit-regalloc
exception-handling.txt: Remove documents which are now on the wiki.
2009-02-11 Rodrigo Kumpera <[email protected]>
* thread-safety.txt: Improve the docs about image lock.
2009-02-11 Rodrigo Kumpera <[email protected]>
* thread-safety.txt: Document the new image lock.
2008-12-12 Mark Probst <[email protected]>
* mini-porting.txt: Added some details about function descriptors
and emulated opcodes.
2008-12-08 Jonathan Pryor <[email protected]>
* mono-file-formats.source, mono-tools.source: Place these under the
new "Commands and Files" node, and remove nay intermediate nodes.
2008-11-20 Jonathan Pryor <[email protected]>
* Makefile.am (sources_DATA): Add mono-file-formats.source,
mono-tools.source.
2008-11-20 Raja R Harinath <[email protected]>
Remove unnecessary rebuilds of the html directory
* docs.make (monoapi.zip): Make slightly more unforgiving, by
using '&&' instead of ';' to sequence commands.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
Likewise.
(convert.exe): Don't depend on Makefile.am or docs.make.
2008-11-19 Raja R Harinath <[email protected]>
Fix srcdir != builddir, and add idiom for multi-output commands
* docs.make (monoapi.zip): Handle the case where 'monoapi.tree'
exists but 'monoapi.zip' doesn't. IOW, we should rebuild
monoapi.zip with 'rm monoapi.zip; make'.
(mono-tools.zip, mono-file-formats.zip): Likewise.
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
Likewise.
(monoapi.tree): Don't use $< in an explicit rule.
(mono-tools.tree, mono-file-formats.tree): Likewise.
2008-11-18 Jonathan Pryor <[email protected]>
* Makefile.am (EXTRA_DIST): Add mono-file-formats{.config,.source} and
mono-tools{.config,.source} (fixes the build).
2008-11-18 Jonathan Pryor <[email protected]>
* docs.make, Makefile.am: Build mono-file-formats{.tree,.zip},
mono-tool{.tree,.zip} files.
* mono-file-formats.config, mono-tools.config: Alter paths to man
pages so that they're valid for building from mono/docs.
* monoapi.make: Rename to docs.make.
2008-11-01 Raja R Harinath <[email protected]>
* Makefile.am: Clean up for srcdir != builddir.
(deploy/.stamp): Compute location of 'mono-wrapper' and pass to exdoc.
* exdoc (mono-wrapper): Use $runtimedir to look for 'mono-wrapper'.
2008-10-31 Jonathan Pryor <[email protected]>
* check, Makefile.am (EXTRA_DIST): Rename to check-exports. This was
needed to fix `make distdir...`, because (1) with a file named
`check` which (2) was listed in $(EXTRA_DIST), while (3) `check` is
ALSO a .PHONY target, this caused make to look for the `check` file,
not find it due to (3), and then proceed to try to build convert.exe
from convert.cs...for reasons I don't care about. This obviously
can't work during `make distdir`, as mcs hasn't been built yet, thus
leading to pain, suffering, and a broken build.
2008-10-30 Jonathan Pryor <[email protected]>
* . (svn:ignore), deploy (svn:ignore): Ignore generated files.
* AgilityPack.dll, api-style.css, ChangeLog, check, check-coverage,
convert.cs, current-api, deploy, documented, exdoc, ignore,
mono-api-metadata.html, monoapi.source, produce-lists, public,
public-api, README, sources, toc.xml, TODO, wapi: Copy from
../mono/docscripts.
* exdoc: Use the in-tree mono program to run convert.exe.
* Makefile.am: Mention files to clean/distribute; extract
documentation (with exdoc) and then assemble documentation (with
monoapi.make's assemble target) for use by monodoc.
* monoapi.make: Added; Makefile to use mcs' buid/rules.make to compile
convert.cs and assemble documentation. (This is a separate file so
that we can include mcs' build/rules.make, which needs topdir set to
behave properly BUT must be $(mcs_topdir) from Makefile.am's
perspective.)
* monoapi.source: Add a /monodoc/node element for use with monodoc 2.2.
2006-11-19 Miguel de Icaza <[email protected]>
* exdoc: Move to use CSS instead of tables, this will break
GtkHTML rendering.
* ignore: Updated with more hidden APIs.
* Bunch of documentation work.
+40 -29
View File
@@ -14,12 +14,16 @@ ASSEMBLED_DOCS = \
EXTRA_DIST = \
abc-removal.txt \
api-style.css \
assembly-bundle \
check-exports \
check-coverage \
convert.cs \
current-api \
deploy \
docs.make \
documented \
embedded-api \
exceptions \
exdoc \
file-share-modes \
gc-issues \
@@ -31,29 +35,35 @@ EXTRA_DIST = \
jit-imt \
jit-thoughts \
jit-trampolines \
local-regalloc.txt \
magic.diff \
mini-doc.txt \
mono-api-metadata.html \
mono-file-formats.config\
mono-file-formats.source\
mono_handle_d \
mono-tools.config \
mono-tools.source \
monoapi.source \
new-regalloc \
object-layout \
opcode-decomp.txt \
precise-gc \
produce-lists \
public \
public-api \
README \
release-notes-1.0.html \
remoting \
ssapre.txt \
stack-alignment \
stack-overflow.txt \
threading \
toc.xml \
TODO \
tree-mover.txt \
unmanaged-calls
-include $(mcs_topdir)/build/config.make
CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
dist-hook:
$(mkdir_p) $(distdir)/sources
$(mkdir_p) $(distdir)/svgs
@@ -63,40 +73,41 @@ dist-hook:
cp HtmlAgilityPack/* $(distdir)/HtmlAgilityPack
clean-local:
-rm -Rf html
-rm -f deploy/* convert.exe* AgilityPack.dll*
-rm -f $(ASSEMBLED_DOCS)
TOOL_MAKE=$(MAKE) -f $(srcdir)/docs.make topdir=$(srcdir)/../mcs srcdir=$(srcdir)
-rm -Rf $(srcdir)/html
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe* $(srcdir)/AgilityPack.dll*
-cd $(srcdir) && rm -f $(ASSEMBLED_DOCS)
monoapi.zip: monoapi.tree
monoapi.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/toc.xml $(srcdir)/deploy/.stamp
-mkdir -p deploy
cp -f $(srcdir)/api-style.css deploy
$(TOOL_MAKE) $@
@test -f $@ || { rm -f $(srcdir)/monoapi.tree && $(MAKE) monoapi.tree; }
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp perms
cd $(srcdir) && cp -f api-style.css deploy
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-tools.zip: mono-tools.tree
@test -f $@ || { rm -f $(srcdir)/mono-tools.tree && $(MAKE) mono-tools.tree; }
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp perms
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-tools.tree: $(srcdir)/docs.make Makefile.am deploy/.stamp
$(TOOL_MAKE) $@
mono-file-formats.zip: mono-file-formats.tree perms
@test -f $@ || { rm -f $(srcdir)/mono-file-formats.tree && $(MAKE) mono-file-formats.tree; }
mono-file-formats.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-file-formats.zip: mono-file-formats.tree
mono-file-formats.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/deploy/.stamp
$(TOOL_MAKE) $@
deploy/.stamp: convert.exe Makefile.am
$(mkdir_p) html
$(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
$(mkdir_p) $(srcdir)/html
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
MONO_PATH=$(CLASS) perl $(srcdir)/exdoc -h $(srcdir) -t . $(srcdir)/../mono/*/*.c
cd $(srcdir) && MONO_PATH=$(mcs_topdir_from_srcdir)/class/lib/net_2_0 perl ./exdoc -h . ../mono/*/*.c
touch $@
extract: deploy/.stamp
extract: $(srcdir)/deploy/.stamp
convert.exe: convert.cs AgilityPack.dll
$(TOOL_MAKE) convert.exe
convert.exe: convert.cs AgilityPack.dll perms
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
AgilityPack.dll:
$(TOOL_MAKE) AgilityPack.dll
AgilityPack.dll: perms
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) AgilityPack.dll
.PHONY: perms
perms:
-@test -w $(srcdir) || chmod a+w $(srcdir)
+36 -176
View File
@@ -1,180 +1,40 @@
.mapi-docs {
line-height: 1.5;
padding-left: 2em;
padding-right: 2em;
}
.mapi-docs p {
max-width: 60em;
}
.mapi-docs .mapi-body {
max-width: 60em;
}
.mapi-docs code {
border: 1px solid rgba(214,214,214,1);
background-color: rgba(249,249,249,1);
padding: 0.1em 0.5em;
}
.mapi-description code {
font-family: "Consolas", "Courier", monospace;
border: 1px solid rgba(214,214,214,1);
background-color: rgba(249,249,249,1);
padding: 0.1em 0.2em;
}
h3 {
font-size: 18px;
padding-bottom: 4pt;
border-bottom: 2px solid #dddddd;
}
.api {
border: 1px solid;
padding: 10pt;
margin: 10pt;
}
.mapi-header {
padding: 0 0 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
border: 1px solid rgba(233,233,233,1);
background-color: rgba(249,249,249,1);
}
.api-entry {
border-bottom: none;
font-size: 18px;
}
.mapi-code {
padding: 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
border: 1px solid rgba(233,233,233,1);
background-color: rgba(249,249,249,1);
}
.prototype {
border: 1px solid;
background-color: #f2f2f2;
padding: 5pt;
margin-top: 5pt;
margin-bottom: 5pt;
}
.mapi-code:first-line {
line-height: 0px;
}
.mapi-entry code {
border: none;
background-color: transparent;
}
.header {
border: 1px solid;
padding: 0 0 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
}
.mapi-parameters {
border-collapse: collapse;
border-spacing: 0;
empty-cells: hide;
border: 0;
margin: 5px 0 26px;
}
.mapi-parameters td {
border: 1px solid rgba(214,214,214,1);
border-left-style: none;
padding: 5px 25px 5px 10px;
}
.mapi-parameters tr>td:last-child {
border-right: 0;
}
.mapi-parameters td:first-of-type {
text-align: right;
padding: 7px;
vertical-align: top;
word-break: normal;
width: 40px;
}
.mapi-parameters tr:last-child>td {
border-bottom: 0;
}
.mapi-parameters tr:first-child>td {
border-top: 0;
}
.mapi-parameters tr td:first-of-type {
text-align: right;
padding: 7px;
vertical-align: top;
word-break: normal;
width: 40px;
}
.mapi {
left: -25px;
margin: 0;
padding: 13px 25px 0;
position: relative;
width: 100%;
}
.mapi-description {
background: rgba(249,249,249,1);
border-bottom: 1px solid rgba(233,233,233,1);
left: -25px;
margin: 0;
padding: 13px 25px 0;
position: relative;
width: 100%;
}
.mapi-entry {
background: transparent;
}
.mapi-docs {
}
.mapi-prototype {
border-left: 5px solid rgba(205,233,244,1);
padding: .5em;
margin-top: 5pt;
margin-bottom: 5pt;
font-family: "Consolas", "Courier", monospace;
display: block;
overflow: auto;
background-color: #f9f9f9;
}
.mapi-declaration {
margin-top: 21px;
}
.mapi-section {
font-size: smaller;
font-weight: bold;
margin-top: 21px;
line-height: 1.5;
}
.mapi-strike {
text-decoration: line-through;
}
.mapi-deprecated {
color: red;
}
.mapi-ptr-container {
background: white;
border-bottom: 1px solid rgba(233,233,233,1);
left: -25px;
padding-left: 25px;
padding-right: 25px;
padding-bottom: 13px;
position: relative;
width: 100%;
}
.mapi-ptr {
background: rgba(249,249,249,1);
border-left: 1px solid rgba(233,233,233,1);
border-top: 1px solid rgba(233,233,233,1);
height: 12px;
left: 37px;
top: -7px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
width: 12px;
}
.mapi-height-container {
left: -25px;
padding: 0 25px;
position: relative;
width: 100%;
}
.code {
border: 1px solid;
padding: 0 0 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
}
+57
View File
@@ -0,0 +1,57 @@
HOWTO bundle assemblies inside the mono runtime.
Paolo Molaro ([email protected])
* Intent
Bundling assemblies inside the mono runtime may be useful for a number
of reasons:
* creating a standalone complete runtime that can be more easily
distributed
* having an application run against a known set of assemblies
that has been tested
Of course, there are drawbacks, too: if there has been fixes
to the assemblies, replacing them means recompiling the
runtime as well and if there are other mono apps, unless they
use the same mono binary, there will be less opportunities for
the operating system to optimize memory usage. So use this
feature only when really needed.
* Creating the Bundle
To bundle a set of assemblies, you need to create a file that
lists the assembly names and the relative files. Empty lines
and lines starting with # are ignored:
== cut cut ==
# Sample bundle template
mscorlib: /path/to/mscorlib/assembly.dll
myapp: /path/to/myapp.exe
== cut cut ==
Next you need to build the mono runtime using a special configure option:
./configure --with-bundle=/path/to/bundle/template
The path to the template should be an absolute path.
The script metadata/make-bundle.pl will take the specifie
assemblies and embed them inside the runtime where the loading
routines can find them before searching for them on disk.
* Open Issues
There are still two issues to solve:
* config files: sometimes they are needed but they are
not yet bundled inside the library ()
* building with the included libgc makes it not
possible to build a mono binary statically linked to
libmono: this needs to be fixed to make bundles
really useful.
+952
View File
@@ -0,0 +1,952 @@
dlfree
dlmalloc
dlmemalign
free_list_index_of
g_printerr
g_ptr_array_remove_fast
invoke_protected_memory_method
mini_debugger_init
mini_debugger_main
mini_debugger_set_attach_ok
mini_debug_running_inside_mdb
mini_emit_initobj
mini_emit_stobj
mono_add_internal_call
mono_aot_register_globals
mono_aot_register_module
mono_array_addr_with_size
mono_array_class_get
mono_array_clone
mono_array_element_size
mono_array_length
mono_array_new
mono_array_new_full
mono_array_new_specific
mono_assemblies_cleanup
mono_assembly_close
mono_assembly_get_image
mono_assembly_get_main
mono_assembly_get_object
mono_assembly_getrootdir
mono_assembly_load
mono_assembly_loaded
mono_assembly_loaded_full
mono_assembly_load_full
mono_assembly_name_free
mono_assembly_name_get_culture
mono_assembly_name_get_name
mono_assembly_name_get_pubkeytoken
mono_assembly_name_get_version
mono_assembly_name_new
mono_assembly_names_equal
mono_assembly_open
mono_bitset_alloc_size
mono_bitset_clear
mono_bitset_clear_all
mono_bitset_clone
mono_bitset_copyto
mono_bitset_count
mono_bitset_equal
mono_bitset_find_first
mono_bitset_find_first_unset
mono_bitset_find_last
mono_bitset_find_start
mono_bitset_foreach
mono_bitset_free
mono_bitset_intersection
mono_bitset_intersection_2
mono_bitset_invert
mono_bitset_mem_new
mono_bitset_new
mono_bitset_set
mono_bitset_set_all
mono_bitset_size
mono_bitset_sub
mono_bitset_test
mono_bitset_test_bulk
mono_bitset_union
mono_bounded_array_class_get
mono_breakpoint_clean_code
mono_check_corlib_version
mono_class_array_element_size
mono_class_data_size
mono_class_describe_statics
mono_class_enum_basetype
mono_class_from_generic_parameter
mono_class_from_mono_type
mono_class_from_name
mono_class_from_name_case
mono_class_from_typeref
mono_class_get
mono_class_get_byref_type
mono_class_get_element_class
mono_class_get_events
mono_class_get_event_token
mono_class_get_field
mono_class_get_field_from_name
mono_class_get_fields
mono_class_get_field_token
mono_class_get_flags
mono_class_get_full
mono_class_get_image
mono_class_get_interfaces
mono_class_get_method_from_name
mono_class_get_method_from_name_flags
mono_class_get_methods
mono_class_get_name
mono_class_get_namespace
mono_class_get_nested_types
mono_class_get_nesting_type
mono_class_get_parent
mono_class_get_properties
mono_class_get_property_from_name
mono_class_get_property_token
mono_class_get_rank
mono_class_get_type
mono_class_get_type_token
mono_class_inflate_generic_method
mono_class_inflate_generic_type
mono_class_init
mono_class_instance_size
mono_class_interface_offset
mono_class_is_assignable_from
mono_class_is_enum
mono_class_is_subclass_of
mono_class_is_valid_enum
mono_class_is_valuetype
mono_class_min_align
mono_class_name_from_token
mono_class_num_events
mono_class_num_fields
mono_class_num_methods
mono_class_num_properties
mono_class_value_size
mono_class_vtable
mono_cli_rva_image_map
mono_code_manager_commit
mono_code_manager_destroy
mono_code_manager_foreach
mono_code_manager_invalidate
mono_code_manager_new
mono_code_manager_new_dynamic
mono_code_manager_reserve
mono_code_manager_reserve_align
mono_code_manager_set_read_only
mono_code_manager_size
mono_compile_method
mono_config_for_assembly
mono_config_parse
mono_config_parse_memory
mono_config_string_for_assembly_file
mono_context_get
mono_context_get_desc
mono_context_set
mono_counters_cleanup
mono_counters_dump
mono_counters_enable
mono_counters_register
mono_custom_attrs_construct
mono_custom_attrs_free
mono_custom_attrs_from_assembly
mono_custom_attrs_from_class
mono_custom_attrs_from_event
mono_custom_attrs_from_field
mono_custom_attrs_from_index
mono_custom_attrs_from_method
mono_custom_attrs_from_param
mono_custom_attrs_from_property
mono_custom_attrs_get_attr
mono_custom_attrs_has_attr
mono_debug_add_method
_mono_debug_address_from_il_offset
mono_debug_close_image
mono_debug_close_mono_symbol_file
mono_debug_domain_create
mono_debug_domain_unload
mono_debug_find_method
mono_debug_free_source_location
mono_debugger_abort_runtime_invoke
mono_debugger_breakpoint_callback
mono_debugger_call_exception_handler
mono_debugger_check_breakpoints
mono_debugger_check_interruption
mono_debugger_check_runtime_version
mono_debugger_class_initialized
mono_debugger_event
mono_debugger_event_create_appdomain
mono_debugger_event_unload_appdomain
mono_debugger_extended_notification
mono_debugger_handle_exception
mono_debugger_insert_breakpoint
mono_debugger_insert_breakpoint_full
mono_debugger_insert_method_breakpoint
mono_debugger_lock
mono_debugger_method_has_breakpoint
MONO_DEBUGGER__notification_function
mono_debugger_register_class_init_callback
mono_debugger_remove_breakpoint
mono_debugger_remove_class_init_callback
mono_debugger_remove_method_breakpoint
mono_debugger_run_finally
mono_debugger_runtime_invoke
mono_debugger_thread_cleanup
mono_debugger_thread_created
_mono_debugger_throw_exception
mono_debugger_trampoline_compiled
_mono_debugger_unhandled_exception
mono_debugger_unlock
mono_debug_il_offset_from_address
mono_debug_list_add
mono_debug_list_remove
mono_debug_lookup_locals
mono_debug_lookup_method
mono_debug_lookup_method_addresses
mono_debug_lookup_source_location
mono_debug_open_image_from_memory
mono_debug_open_mono_symbols
mono_debug_print_stack_frame
mono_debug_print_vars
mono_debug_symfile_get_line_numbers
mono_debug_symfile_lookup_locals
mono_debug_symfile_lookup_location
mono_debug_symfile_lookup_method
mono_debug_using_mono_debugger
mono_declsec_flags_from_assembly
mono_declsec_flags_from_class
mono_declsec_flags_from_method
mono_declsec_get_assembly_action
mono_declsec_get_class_action
mono_declsec_get_demands
mono_declsec_get_inheritdemands_class
mono_declsec_get_inheritdemands_method
mono_declsec_get_linkdemands
mono_declsec_get_method_action
mono_digest_get_public_token
mono_disasm_code
mono_disasm_code_one
mono_dllmap_insert
mono_domain_assembly_open
mono_domain_create
mono_domain_create_appdomain
mono_domain_finalize
mono_domain_foreach
mono_domain_free
mono_domain_from_appdomain
mono_domain_get
mono_domain_get_by_id
mono_domain_get_id
mono_domain_has_type_resolve
mono_domain_is_unloading
mono_domain_owns_vtable_slot
mono_domain_set
mono_domain_set_internal
mono_domain_try_type_resolve
mono_domain_try_unload
mono_domain_unload
mono_emit_native_call
mono_environment_exitcode_get
mono_environment_exitcode_set
mono_error_cleanup
mono_error_get_error_code
mono_error_get_message
mono_error_init
mono_error_init_flags
mono_error_ok
mono_escape_uri_string
mono_event_get_add_method
mono_event_get_flags
mono_event_get_name
mono_event_get_object
mono_event_get_parent
mono_event_get_raise_method
mono_event_get_remove_method
mono_exception_from_name
mono_exception_from_name_domain
mono_exception_from_name_msg
mono_exception_from_name_two_strings
mono_exception_from_token
mono_exception_from_token_two_strings
mono_field_from_token
mono_field_full_name
mono_field_get_data
mono_field_get_flags
mono_field_get_name
mono_field_get_object
mono_field_get_offset
mono_field_get_parent
mono_field_get_type
mono_field_get_value
mono_field_get_value_object
mono_field_set_value
mono_field_static_get_value
mono_field_static_set_value
mono_file_map
mono_file_map_close
mono_file_map_fd
mono_file_map_open
mono_file_map_size
mono_file_unmap
mono_free
mono_free_bstr
mono_free_method
mono_free_verify_list
mono_gc_collect
mono_gc_collection_count
mono_gc_enable_events
mono_gc_get_generation
mono_gc_get_heap_size
mono_gc_get_used_size
mono_gchandle_free
mono_gchandle_get_target
mono_gchandle_new
mono_gchandle_new_weakref
mono_gc_invoke_finalizers
mono_gc_is_finalizer_thread
mono_gc_max_generation
mono_gc_out_of_memory
mono_gc_wbarrier_arrayref_copy
mono_gc_wbarrier_generic_nostore
mono_gc_wbarrier_generic_store
mono_gc_wbarrier_object_copy
mono_gc_wbarrier_set_arrayref
mono_gc_wbarrier_set_field
mono_gc_wbarrier_value_copy
mono_get_array_class
mono_get_boolean_class
mono_get_byte_class
mono_get_char_class
mono_get_config_dir
mono_get_corlib
mono_get_dbnull_object
mono_get_delegate_invoke
mono_get_double_class
mono_get_enum_class
mono_get_exception_appdomain_unloaded
mono_get_exception_argument
mono_get_exception_argument_null
mono_get_exception_argument_out_of_range
mono_get_exception_arithmetic
mono_get_exception_array_type_mismatch
mono_get_exception_bad_image_format
mono_get_exception_bad_image_format2
mono_get_exception_cannot_unload_appdomain
mono_get_exception_class
mono_get_exception_divide_by_zero
mono_get_exception_execution_engine
mono_get_exception_field_access
mono_get_exception_file_not_found
mono_get_exception_file_not_found2
mono_get_exception_index_out_of_range
mono_get_exception_invalid_cast
mono_get_exception_invalid_operation
mono_get_exception_io
mono_get_exception_method_access
mono_get_exception_missing_field
mono_get_exception_missing_method
mono_get_exception_not_implemented
mono_get_exception_not_supported
mono_get_exception_null_reference
mono_get_exception_out_of_memory
mono_get_exception_overflow
mono_get_exception_reflection_type_load
mono_get_exception_security
mono_get_exception_serialization
mono_get_exception_stack_overflow
mono_get_exception_synchronization_lock
mono_get_exception_thread_abort
mono_get_exception_thread_interrupted
mono_get_exception_thread_state
mono_get_exception_type_initialization
mono_get_exception_type_load
mono_get_int16_class
mono_get_int32_class
mono_get_int64_class
mono_get_intptr_class
mono_get_machine_config
mono_get_method
mono_get_method_full
mono_get_object_class
mono_get_root_domain
mono_get_sbyte_class
mono_get_single_class
mono_get_string_class
mono_get_thread_class
mono_get_trampoline_func
mono_get_uint16_class
mono_get_uint32_class
mono_get_uint64_class
mono_get_uintptr_class
mono_get_void_class
mono_g_hash_table_destroy
mono_g_hash_table_find
mono_g_hash_table_foreach
mono_g_hash_table_foreach_remove
mono_g_hash_table_insert
mono_g_hash_table_lookup
mono_g_hash_table_lookup_extended
mono_g_hash_table_new
mono_g_hash_table_new_full
mono_g_hash_table_new_type
mono_g_hash_table_remove
mono_g_hash_table_replace
mono_g_hash_table_size
mono_guid_to_string
mono_hazard_pointer_get
mono_image_addref
mono_image_close
mono_image_ensure_section
mono_image_ensure_section_idx
mono_image_fixup_vtable
mono_image_get_assembly
mono_image_get_entry_point
mono_image_get_filename
mono_image_get_guid
mono_image_get_name
mono_image_get_public_key
mono_image_get_resource
mono_image_get_strong_name
mono_image_get_table_info
mono_image_get_table_rows
mono_image_has_authenticode_entry
mono_image_is_dynamic
mono_image_loaded
mono_image_loaded_by_guid
mono_image_loaded_by_guid_full
mono_image_loaded_full
mono_image_load_file_for_image
mono_image_lookup_resource
mono_image_open
mono_image_open_from_data
mono_image_open_from_data_full
mono_image_open_from_data_with_name
mono_image_open_full
mono_image_rva_map
mono_images_cleanup
mono_image_strerror
mono_image_strong_name_position
mono_init
mono_init_from_assembly
mono_init_version
mono_install_assembly_load_hook
mono_install_assembly_postload_refonly_search_hook
mono_install_assembly_postload_search_hook
mono_install_assembly_preload_hook
mono_install_assembly_refonly_preload_hook
mono_install_assembly_refonly_search_hook
mono_install_assembly_search_hook
mono_install_runtime_cleanup
mono_install_threadpool_item_hooks
mono_install_threadpool_thread_hooks
mono_inst_name
mono_is_debugger_attached
mono_jit_cleanup
mono_jit_exec
mono_jit_info_get_code_size
mono_jit_info_get_code_start
mono_jit_info_get_method
mono_jit_info_table_find
mono_jit_init
mono_jit_init_version
mono_jit_parse_options
mono_jit_set_aot_only
mono_jit_set_trace_options
mono_ldstr
mono_ldtoken
mono_llvm_build_aligned_load
mono_llvm_build_alloca
mono_llvm_build_load
mono_llvm_create_ee
mono_llvm_dispose_ee
mono_llvm_dump_value
mono_llvm_optimize_method
mono_llvm_replace_uses_of
mono_load_remote_field
mono_load_remote_field_new
mono_local_deadce
mono_locks_dump
mono_lookup_internal_call
mono_lookup_pinvoke_call
mono_main
mono_marshal_string_to_utf16
mono_md5_final
mono_md5_get_digest
mono_md5_get_digest_from_file
mono_md5_init
mono_md5_update
mono_mempool_alloc
mono_mempool_alloc0
mono_mempool_contains_addr
mono_mempool_destroy
mono_mempool_empty
mono_mempool_get_allocated
mono_mempool_invalidate
mono_mempool_new
mono_mempool_new_size
mono_mempool_stats
mono_mempool_strdup
mono_metadata_blob_heap
mono_metadata_cleanup
mono_metadata_compute_size
mono_metadata_custom_attrs_from_index
mono_metadata_declsec_from_index
mono_metadata_decode_blob_size
mono_metadata_decode_row
mono_metadata_decode_row_col
mono_metadata_decode_signed_value
mono_metadata_decode_table_row
mono_metadata_decode_table_row_col
mono_metadata_decode_value
mono_metadata_encode_value
mono_metadata_events_from_typedef
mono_metadata_field_info
mono_metadata_field_info_with_mempool
mono_metadata_free_array
mono_metadata_free_inflated_signature
mono_metadata_free_marshal_spec
mono_metadata_free_method_signature
mono_metadata_free_mh
mono_metadata_free_type
mono_metadata_generic_class_is_valuetype
mono_metadata_get_constant_index
mono_metadata_get_inflated_signature
mono_metadata_get_marshal_info
mono_metadata_guid_heap
mono_metadata_implmap_from_method
mono_metadata_interfaces_from_typedef
mono_metadata_load_generic_params
mono_metadata_locate
mono_metadata_locate_token
mono_metadata_methods_from_event
mono_metadata_methods_from_property
mono_metadata_nested_in_typedef
mono_metadata_nesting_typedef
mono_metadata_packing_from_typedef
mono_metadata_parse_array
mono_metadata_parse_custom_mod
mono_metadata_parse_field_type
mono_metadata_parse_marshal_spec
mono_metadata_parse_method_signature
mono_metadata_parse_method_signature_full
mono_metadata_parse_mh
mono_metadata_parse_mh_full
mono_metadata_parse_param
mono_metadata_parse_signature
mono_metadata_parse_type
mono_metadata_parse_typedef_or_ref
mono_metadata_parse_type_full
mono_metadata_properties_from_typedef
mono_metadata_signature_alloc
mono_metadata_signature_dup
mono_metadata_signature_equal
mono_metadata_string_heap
mono_metadata_token_from_dor
mono_metadata_translate_token_index
mono_metadata_typedef_from_field
mono_metadata_typedef_from_method
mono_metadata_type_equal
mono_metadata_type_hash
mono_metadata_user_string
mono_method_body_get_object
mono_method_can_access_field
mono_method_can_access_method
mono_method_desc_free
mono_method_desc_from_method
mono_method_desc_full_match
mono_method_desc_match
mono_method_desc_new
mono_method_desc_search_in_class
mono_method_desc_search_in_image
mono_method_full_name
mono_method_get_class
mono_method_get_flags
mono_method_get_generic_container
mono_method_get_header
mono_method_get_index
mono_method_get_last_managed
mono_method_get_marshal_info
mono_method_get_name
mono_method_get_object
mono_method_get_param_names
mono_method_get_param_token
mono_method_get_signature
mono_method_get_signature_full
mono_method_get_token
mono_method_get_unmanaged_thunk
mono_method_has_marshal_info
mono_method_header_get_clauses
mono_method_header_get_code
mono_method_header_get_locals
mono_method_header_get_num_clauses
mono_method_signature
mono_method_verify
mono_mlist_alloc
mono_mlist_append
mono_mlist_get_data
mono_mlist_last
mono_mlist_length
mono_mlist_next
mono_mlist_prepend
mono_mlist_remove_item
mono_mlist_set_data
mono_mlist_set_next
mono_module_file_get_object
mono_module_get_object
mono_monitor_enter
mono_monitor_exit
mono_monitor_try_enter
mono_mprotect
mono_object_castclass_mbyref
mono_object_clone
mono_object_describe
mono_object_describe_fields
mono_object_get_class
mono_object_get_domain
mono_object_get_size
mono_object_get_virtual_method
mono_object_is_alive
mono_object_isinst
mono_object_isinst_mbyref
mono_object_new
mono_object_new_alloc_specific
mono_object_new_fast
mono_object_new_from_token
mono_object_new_specific
mono_object_unbox
mono_opcode_name
mono_opcode_value
mono_op_to_op_imm_noemul
mono_pagesize
mono_param_get_objects
mono_parse_default_optimizations
mono_path_canonicalize
mono_path_resolve_symlinks
mono_pe_file_open
mono_perfcounters_init
mono_personality
mono_pmip
mono_print_method_from_ip
mono_print_thread_dump
mono_print_thread_dump_from_ctx
mono_print_unhandled_exception
mono_profiler_coverage_get
mono_profiler_get_events
mono_profiler_install
mono_profiler_install_allocation
mono_profiler_install_appdomain
mono_profiler_install_assembly
mono_profiler_install_class
mono_profiler_install_code_buffer_new
mono_profiler_install_code_chunk_destroy
mono_profiler_install_code_chunk_new
mono_profiler_install_coverage_filter
mono_profiler_install_enter_leave
mono_profiler_install_exception
mono_profiler_install_gc
mono_profiler_install_gc_moves
mono_profiler_install_iomap
mono_profiler_install_jit_compile
mono_profiler_install_jit_end
mono_profiler_install_method_free
mono_profiler_install_method_invoke
mono_profiler_install_module
mono_profiler_install_monitor
mono_profiler_install_runtime_initialized
mono_profiler_install_statistical
mono_profiler_install_statistical_call_chain
mono_profiler_install_thread
mono_profiler_install_transition
mono_profiler_load
mono_profiler_set_events
mono_property_get_flags
mono_property_get_get_method
mono_property_get_name
mono_property_get_object
mono_property_get_parent
mono_property_get_set_method
mono_property_get_value
mono_property_hash_destroy
mono_property_hash_insert
mono_property_hash_lookup
mono_property_hash_new
mono_property_hash_remove_object
mono_property_set_value
mono_ptr_class_get
mono_raise_exception
mono_reflection_free_type_info
mono_reflection_get_custom_attrs
mono_reflection_get_custom_attrs_blob
mono_reflection_get_custom_attrs_by_type
mono_reflection_get_custom_attrs_data
mono_reflection_get_custom_attrs_info
mono_reflection_get_token
mono_reflection_get_type
mono_reflection_parse_type
mono_reflection_type_from_name
mono_register_bundled_assemblies
mono_register_machine_config
mono_replace_ins
mono_runtime_class_init
mono_runtime_cleanup
mono_runtime_delegate_invoke
mono_runtime_exec_main
mono_runtime_exec_managed_code
mono_runtime_get_main_args
mono_runtime_init
mono_runtime_invoke
mono_runtime_invoke_array
mono_runtime_is_shutting_down
mono_runtime_object_init
mono_runtime_quit
mono_runtime_run_main
mono_security_core_clr_require_elevated_permissions
mono_security_enable_core_clr
mono_security_set_core_clr_platform_callback
mono_sem_post
mono_sem_timedwait
mono_sem_wait
mono_set_break_policy
mono_set_defaults
mono_set_dirs
mono_set_is_debugger_attached
mono_set_signal_chaining
mono_sha1_final
mono_sha1_get_digest
mono_sha1_get_digest_from_file
mono_sha1_init
mono_sha1_update
mono_signature_explicit_this
mono_signature_get_call_conv
mono_signature_get_desc
mono_signature_get_param_count
mono_signature_get_params
mono_signature_get_return_type
mono_signature_hash
mono_signature_is_instance
mono_signature_vararg_start
mono_signbit_double
mono_signbit_float
mono_stack_walk
mono_stack_walk_no_il
mono_store_remote_field
mono_store_remote_field_new
mono_string_chars
mono_string_equal
mono_string_from_bstr
mono_string_from_utf16
mono_string_hash
mono_stringify_assembly_name
mono_string_intern
mono_string_is_interned
mono_string_length
mono_string_new
mono_string_new_len
mono_string_new_size
mono_string_new_utf16
mono_string_new_wrapper
mono_string_to_utf16
mono_string_to_utf8
mono_table_info_get_rows
mono_thread_attach
mono_thread_cleanup
mono_thread_create
mono_thread_current
mono_thread_detach
mono_thread_exit
mono_thread_get_main
mono_thread_get_undeniable_exception
mono_thread_hazardous_free_or_queue
mono_thread_hazardous_try_free_all
mono_thread_manage
mono_thread_new_init
mono_thread_set_main
mono_thread_set_manage_callback
mono_threads_get_default_stacksize
mono_threads_install_cleanup
mono_threads_request_thread_dump
mono_threads_set_default_stacksize
mono_thread_stop
mono_trace_set_level_string
mono_trace_set_mask_string
mono_type_create_from_typespec
mono_type_full_name
mono_type_generic_inst_is_valuetype
mono_type_get_array_type
mono_type_get_class
mono_type_get_desc
mono_type_get_modifiers
mono_type_get_name
mono_type_get_object
mono_type_get_ptr_type
mono_type_get_signature
mono_type_get_type
mono_type_get_underlying_type
mono_type_is_byref
mono_type_is_pointer
mono_type_is_reference
mono_type_is_struct
mono_type_is_valid_enum_basetype
mono_type_is_void
mono_type_size
mono_type_stack_size
mono_type_to_unmanaged
mono_unhandled_exception
mono_unicode_from_external
mono_unicode_to_external
mono_upgrade_remote_class_wrapper
mono_utf8_from_external
mono_utf8_validate_and_len
mono_utf8_validate_and_len_with_bounds
mono_valloc
mono_value_box
mono_value_copy
mono_value_copy_array
mono_value_describe_fields
mono_verify_corlib
mono_vfree
mono_vtable_get_static_field_data
mono_walk_stack
mono_win32_compat_CopyMemory
mono_win32_compat_FillMemory
mono_win32_compat_MoveMemory
mono_win32_compat_ZeroMemory
_ZN20MonoJITMemoryManager11AllocateGOTEv
_ZN20MonoJITMemoryManager12allocateStubEPKN4llvm11GlobalValueEjj
_ZN20MonoJITMemoryManager13allocateSpaceEij
_ZN20MonoJITMemoryManager13SetDlsymTableEPv
_ZN20MonoJITMemoryManager14allocateGlobalEjj
_ZN20MonoJITMemoryManager15endFunctionBodyEPKN4llvm8FunctionEPhS4_
_ZN20MonoJITMemoryManager17endExceptionTableEPKN4llvm8FunctionEPhS4_S4_
_ZN20MonoJITMemoryManager17setMemoryWritableEv
_ZN20MonoJITMemoryManager17startFunctionBodyEPKN4llvm8FunctionERj
_ZN20MonoJITMemoryManager19setMemoryExecutableEv
_ZN20MonoJITMemoryManager19startExceptionTableEPKN4llvm8FunctionERj
_ZN20MonoJITMemoryManager24deallocateMemForFunctionEPKN4llvm8FunctionE
_ZN20MonoJITMemoryManagerC1Ev
_ZN20MonoJITMemoryManagerC2Ev
_ZN20MonoJITMemoryManagerD0Ev
_ZN20MonoJITMemoryManagerD1Ev
_ZN20MonoJITMemoryManagerD2Ev
CloseHandle
closesocket
CopyFile
CreateDirectory
CreateEvent
CreateFile
CreateMutex
CreatePipe
CreateProcess
CreateProcessWithLogonW
CreateSemaphore
CreateThread
DeleteCriticalSection
DeleteFile
DuplicateHandle
EnumProcesses
EnumProcessModules
errno_to_WSA
ExitThread
FileTimeToSystemTime
FindClose
FindFirstFile
FindNextFile
FlushFileBuffers
FormatMessage
GetCurrentDirectory
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetDiskFreeSpaceEx
GetDriveType
GetExitCodeProcess
GetExitCodeThread
GetFileAttributes
GetFileAttributesEx
GetFileSize
GetFileTime
GetFileType
GetFileVersionInfo
GetFileVersionInfoSize
GetLastError
GetLogicalDriveStrings
GetModuleBaseName
GetModuleFileNameEx
GetModuleInformation
GetPriorityClass
GetProcessId
GetProcessTimes
GetProcessWorkingSetSize
GetStdHandle
GetSystemInfo
GetTempPath
GetThreadContext
GetTickCount
ImpersonateLoggedOnUser
InitializeCriticalSection
InitializeCriticalSectionAndSpinCount
ioctlsocket
LockFile
mono_once
mono_pthread_key_for_tls
MoveFile
OpenEvent
OpenMutex
OpenProcess
OpenSemaphore
OpenThread
PulseEvent
QueryPerformanceCounter
QueryPerformanceFrequency
QueueUserAPC
ReadFile
ReleaseMutex
ReleaseSemaphore
RemoveDirectory
ReplaceFile
ResetEvent
ResumeThread
RevertToSelf
SetCriticalSectionSpinCount
SetCurrentDirectory
SetEndOfFile
SetEvent
SetFileAttributes
SetFilePointer
SetFileTime
SetLastError
SetPriorityClass
SetProcessWorkingSetSize
ShellExecuteEx
SignalObjectAndWait
Sleep
SleepEx
SuspendThread
TerminateProcess
TlsAlloc
TlsFree
TlsGetValue
TlsSetValue
TransmitFile
TryEnterCriticalSection
UnlockFile
VerLanguageName
VerQueryValue
WaitForInputIdle
WaitForMultipleObjects
WaitForMultipleObjectsEx
WaitForSingleObject
WaitForSingleObjectEx
wapi_clear_interruption
wapi_current_thread_desc
wapi_interrupt_thread
wapi_self_interrupt
wapi_thread_clear_wait_handle
wapi_thread_set_wait_handle
WriteFile
WSACleanup
WSAGetLastError
WSAIoctl
WSARecv
WSASend
WSASetLastError
WSAStartup
+6 -14
View File
@@ -1,8 +1,3 @@
#
# This makefile is here because it uses the configuration from the
# in-place built mono to run and compile a few C# tools
#
thisdir = docs
SUBDIRS =
include $(topdir)/build/rules.make
@@ -12,28 +7,25 @@ ASSEMBLED_DOCS = \
mono-tools.tree mono-tools.zip \
monoapi.tree monoapi.zip
convert.exe: $(srcdir)/convert.cs AgilityPack.dll
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -out:$@ $< -r:AgilityPack.dll
convert.exe: convert.cs AgilityPack.dll
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
AgilityPack.dll:
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -target:library -out:$@ $(srcdir)/HtmlAgilityPack/*.cs
$(CSCOMPILE) -target:library -out:$@ HtmlAgilityPack/*.cs
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
monoapi.tree: $(srcdir)/toc.xml $(srcdir)/docs.make
monoapi.tree: toc.xml docs.make
$(MDOC) assemble -o monoapi -f hb $<
mono-tools.zip: mono-tools.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
mono-tools.tree: $(srcdir)/mono-tools.config $(srcdir)/docs.make
mono-tools.tree: mono-tools.config docs.make
$(MDOC) assemble -o mono-tools -f man $<
mono-file-formats.zip: mono-file-formats.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
mono-file-formats.tree: $(srcdir)/mono-file-formats.config $(srcdir)/docs.make
mono-file-formats.tree: mono-file-formats.config docs.make
$(MDOC) assemble -o mono-file-formats -f man $<
.doc-stamp:
+1023
View File
File diff suppressed because it is too large. Load diff
+37
View File
@@ -71,3 +71,40 @@ unwinding code.
catch handler: catch hanlders are always called from the stack unwinding
code. The exception object is passed in a local variable (cfg->exvar).
gcc support for Exceptions
==========================
gcc supports exceptions in files compiled with the -fexception option. gcc
generates DWARF exceptions tables in that case, so it is possible to unwind the
stack. The method to read those exception tables is contained in libgcc.a, and
in newer versions of glibc (glibc 2.2.5 for example), and it is called
__frame_state_for(). Another usable glibc function is backtrace_symbols() which
returns the function name corresponding to a code address.
We dynamically check if those features are available using g_module_symbol(),
and we use them only when available. If not available we use the LMF as
fallback.
Using gcc exception information prevents us from saving the LMF at each native
call, so this is a way to speed up native calls. This is especially valuable
for internal calls, because we can make sure that all internal calls are
compiled with -fexceptions (we compile the whole mono runtime with that
option).
All native function are able to call function without exception tables, and so
we are unable to restore all caller saved registers if an exception is raised
in such function. Well, its possible if the previous function already saves all
registers. So we only omit the the LMF if a function has an exception table
able to restore all caller saved registers.
One problem is that gcc almost never saves all caller saved registers, because
it is just unnecessary in normal situations. But there is a trick forcing gcc
to save all register, we just need to call __builtin_unwind_init() at the
beginning of a function. That way gcc generates code to save all caller saved
register on the stack.
+75 -107
View File
@@ -1,27 +1,17 @@
#!/usr/bin/perl
if ($ARGV[0] eq "-h"){
$sourcedir = $ARGV[1];
$dir = $sourcedir;
$dir = $ARGV[1];
$html = 1;
shift @ARGV;
shift @ARGV;
}
open (FILE, "$dir/api-style.css" || die "Did not find $dir/api-style.css");
while (<FILE>){
$css = $css . $_;
}
if ($ARGV[0] eq "-t"){
$dir = $ARGV[1];
shift @ARGV;
}
if ($html){
opendir (D, "$sourcedir/sources/") || die "Can not open $dir";
opendir (D, "$dir/sources/") || die "Can not open $dir";
while ($n = readdir (D)){
if ($n =~ /mono-api-.*\.html$/){
open (IN, "$sourcedir/sources/$n") || die "Can not open $n";
open (IN, "$dir/sources/$n") || die "Can not open $n";
$files[$filecount] = $n;
while (<IN>){
@files_content[$filecount] .= $_;
@@ -53,114 +43,109 @@ if ($html){
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$name</title>
<style type="text/css">
$css
<title>$name</title>
<style type="text/css">
h3 {
font-size: 18px;
padding-bottom: 4pt;
border-bottom: 2px solid #dddddd;
}
.api {
border: 1px solid;
padding: 10pt;
margin: 10pt;
}
.api-entry {
border-bottom: none;
font-size: 18px;
}
.prototype {
border: 1px solid;
background-color: #f2f2f2;
padding: 5pt;
margin-top: 5pt;
margin-bottom: 5pt;
}
.header {
border: 1px solid;
padding: 0 0 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
}
.code {
border: 1px solid;
padding: 0 0 5pt 5pt;
margin: 10pt;
white-space: pre;
font-family: monospace;
}
</style>
</head>
<body>
<div class="mapi-docs">
EOF
@a = split (/\n/, $files_content[$f]);
$strikeextra = "";
$api_shown = 0;
for ($ai = 0; $ai < $#a; $ai++){
$line = $a[$ai];
($api,$caption) = $line =~ /<h4><a name=\"api:(\w+)\">(\w+)<\/a><\/h4>/;
if ($api ne ""){
if ($api_shown == 1){
print OUT "</div> <!-- class=mapi -->\n\n";
if ($deprecated{$api}){
$strike = "mapi-strike";
$strikeextra = "</div><br><div class='mapi-deprecated'><b>Deprecated:</b> " . $deprecated{$api};
} else {
$strike = "";
$strikeextra = "";
}
print OUT "</div>";
}
$api_shown = 1;
$proto = $prototype{$api};
if ($proto eq ""){
$proto = "$api";
$proto = "Prototype: $api";
}
print OUT<<EOF;
<a name="api:$api"></a>
<div class="mapi">
<div class="mapi-entry $strike"><code>$api$strikeextra</code></div>
<div class="mapi-height-container">
<div class="mapi-ptr-container"></div>
<div class="mapi-description">
<div class="mapi-ptr"></div>
print OUT<<EOF;
<a name="api:$api"></a>
<div class="api">
<div class="api-entry">$api</div>
<div class="mapi-declaration mapi-section">Syntax</div>
<div class="mapi-prototype">$proto</div>
<p>
<div class="prototype">$proto</div>
<p>
EOF
$ppars = $arguments{$api};
if ($ppars ne "" && (!($ppars =~ /^[ \t]+$/))){
print OUT " <div class=\"mapi-section\">Parameters</div>\n";
print OUT " <table class=\"mapi-parameters\"><tbody>".${arguments{$api}}."</tbody></table>";
}
&opt_print ("Return value", $returns{$api}, 0);
&opt_print ("Description", $bodies{$api}, 0);
print OUT " </div><!--mapi-description-->\n </div><!--height container-->\n";
&opt_print ("Parameters", $arguments{$api}, 1);
&opt_print ("Returns", $returns{$api}, 1);
&opt_print ("Remarks", $bodies{$api}, 0);
print OUT "\n";
} else {
if ($line =~ /@API_IDX@/){
$apis_toc = &create_toc ($apis[$f]);
$line =~ s/\@API_IDX\@/$apis_toc/;
}
if ($line =~ /^<h4/){
print OUT "</div>\n";
if ($line =~ /^<h/){
print OUT "</div>";
$api_shown = 0;
}
if ($line =~ /`/){
}
print OUT "$line\n";
}
}
print OUT<<EOF;
</div>
</body>
</html>
EOF
close OUT;
system ("$ENV{runtimedir}/mono-wrapper convert.exe $dir/html/$name $dir/html/x-$name");
# clean up the mess that AgilityPack does, it CDATAs our CSS
open HACK, "$dir/html/x-$name" || die "Could not open $dir/html/x-$name";
open HACKOUT, ">$dir/deploy/$name" || die "Could not open output";
$line = 0;
$doprint = 0;
while (<HACK>){
print HACKOUT $last if ($doprint);
$line++;
s/^\/\/<!\[CDATA\[//;
s/^\/\/\]\]>\/\///;
# Remove the junk <span> wrapper generated by AgilityPack
if ($line==1){
s/<span>//;
}
if (/<style type/){
# Replace the CSS in the XHTML output with the original CSS
print HACKOUT $_;
print HACKOUT $css;
while (<HACK>){
last if (/<\/style>/);
}
}
$last = $_;
$doprint = 1;
print HACKOUT $_;
}
if (!($last =~ /span/)){
print HACKOUT $last;
}
#system ("cp.exe $dir/html/$name $dir/deploy/$name");
}
}
@@ -177,29 +162,17 @@ sub process_doc {
$returns = "";
$body = "";
$functions[$fn++] = $func;
$deprecated = 0;
# Process arguments
while (<>){
s/NULL/<code>NULL<\/code>/g;
s/TRUE/<code>TRUE<\/code>/g;
s/FALSE/<code>FALSE<\/code>/g;
if (/^ \*\*?\//){
$body =~ s/@(\w+)/<i>\1<\/i>/g;
$returns =~ s/@(\w+)/<i>\1<\/i>/g;
if (/^ \*\*?\//){
$body =~ s/[@#](\w+)/<i>\1<\/i>/g;
$returns =~ s/[@#](\w+)/<i>\1<\/i>/g;
$args =~ s/@(\w+)/<i>\1<\/i>/g;
$body =~ s/#(\w+)/<code>\1<\/code>/g;
$returns =~ s/#(\w+)/<code>\1<\/code>/g;
$args =~ s/#(\w+)/<code>\1<\/code>/g;
$returns =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
$args =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
$body =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
$body =~ s/\n/ /;
$bodies{$func} = $body;
$arguments{$func} = $args;
$deprecated{$func} = $deprecated;
$returns{$func} = $returns;
$proto = "";
while (<>){
@@ -216,20 +189,14 @@ sub process_doc {
}
chop;
s/^\ \*//;
$_ = "<p>" if (/^\s*$/);
$_ = "\n<p>" if (/^\s+$/);
if ($inbody == 0){
if (/\s*(\w+):(.*)/){
if ($1 eq "deprecated"){
$deprecated = $2;
} else {
#$args .= "<dt><i>$1:</i></dt><dd>$2</dd>";
$args .= "<tr><td><i>$1</i><td>$2</td></td></tr>";
}
$args .= "<dt><i>$1:</i></dt><dd>$2</dd>";
} else {
$body = "\t$_\n";
$inbody = 1;
}
} elsif ($inbody == 1) {
@@ -273,9 +240,6 @@ sub create_toc {
chop;
$p = $prototype{$line};
($ret, $xname, $args) = $p =~ /(.*)\n(\w+)[ \t](.*)/;
if ($xname eq ""){
$xname = $line;
}
$rspace = " " x ($type_size - length ($ret));
$nspace = " " x ($name_size - length ($xname));
@@ -319,7 +283,11 @@ sub opt_print {
my ($caption, $opttext, $quote) = @_;
if ($opttext ne "" && (!($opttext =~ /^[ \t]+$/))){
print OUT " <div class=\"mapi-section\">$caption</div>\n";
print OUT " <div>$opttext</div>\n";
print OUT "<b>$caption</b>\n";
if ($quote == 1){
print OUT "<blockquote>$opttext</blockquote>\n";
} else {
print OUT "<p>$opttext\n";
}
}
}
-347
View File
@@ -1,347 +0,0 @@
0359470b9f7a2fdaa75e4de12c9f83e78135034f refs/heads/master
f49164bf7658855390b2c19574b170f8728a99ff refs/heads/mono-2-10
f08f8a27bfe3aafda4e430ee2365dec73c1070d7 refs/heads/mono-2-6
746176a37123eda06ee6f9bd70736ac68a78e1aa refs/heads/winforms-clipboard-refactor
3215bf8472af3b66a836af6319bb9410fd84e2ff refs/remotes/origin/C5
0359470b9f7a2fdaa75e4de12c9f83e78135034f refs/remotes/origin/HEAD
773a66abc5e63cc1d2f111daeaa2848891dc8f61 refs/remotes/origin/INITIAL_IMPORT
06e3a751fc70f8b0bb0253dcc634e75b25d67fdc refs/remotes/origin/MCS_0_28
ea23d77f5d686ad196de315b7f251999f409fc8e refs/remotes/origin/MONO_0_28
3b7a7ac0ddf1a952d62a85fbbf7f9864b6de37b4 refs/remotes/origin/Mainsoft.System.Data
7f0542b133e5f1eee15f337e0263c14406091a7e refs/remotes/origin/NUNIT
4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 refs/remotes/origin/SAVANNAH_CVS
0fae05ddc83ee034344d50a6d4d618cfb10ee491 refs/remotes/origin/XIMIAN
7e9c74197c9275e89a6c3afc1cfdccfe4f4b9395 refs/remotes/origin/anonymous-methods
b7f7d992745ac1ad98451de3165d9219c5f9f9d0 refs/remotes/origin/anonymous-methods2
a3f972be9e1edf4ec9ae836ad5a6cf35519ec180 refs/remotes/origin/atsushi-200810
2972ef664b391dbdfa612c3ebd0ff55b8b75b5c7 refs/remotes/origin/cecil
dd0a3a7dd70d9f146f968a3114a481f14b2ea1a6 refs/remotes/origin/commit-to-changelog-tests
701861382d1f81fe4ca6f549128e5af5120ad34d refs/remotes/origin/dick/ia64-hpux
ae8eba8d480b8690a915bef3e4899bb98d17b875 refs/remotes/origin/dick/io-layer-files-backend
28e70d66a6d3d24f061e0ba049a8817ead44aeca refs/remotes/origin/dick/io-layer-no-daemon
9229d3a283f618a6a7fdadcfb9a1e66743a6ba2a refs/remotes/origin/jb/cl
121b690b280781fef910972ad6b825ec831ef3b1 refs/remotes/origin/jb/ml2
677178627ed6c3332bff5221d5019b56c5802a17 refs/remotes/origin/jb/reflection-corcompare
a7c74b39baed3961bc814e3508345404c5e03370 refs/remotes/origin/mainsoft/JSF
55afaffae7d224f35eacc1d9d505e662c4223897 refs/remotes/origin/mainsoft/cust_1_2.2
ee61dcd58e7960416c976a18ae025bc4b80713fa refs/remotes/origin/mainsoft/gh1.7
5144d4fd99a7230e317dac4af6b1d2f61d2800d6 refs/remotes/origin/mainsoft/gh2.2
adbed2a2b57bde136348a6b7cd465613b041ce69 refs/remotes/origin/mainsoft/gh2.2_customer2
d03df42d2f13c7e8b3790ff9b3e17975ffdb91af refs/remotes/origin/mainsoft/gh2.2_customer3
f219e12da4b39adcf08432833f3cd06b0b1343e1 refs/remotes/origin/mainsoft/gh2.2_customer4
050c809c8f9f0fa0099b3d5dcaf982a4d0c9cd54 refs/remotes/origin/mainsoft/gh2.2_customer5
7db3f555234c98b481cc7f46f6eb929787885ce8 refs/remotes/origin/mainsoft/gh2.5_customer2
e6b84059b9c42f02c8ac4ef0db12cb7eb88b1884 refs/remotes/origin/mainsoft/gh20
70dbb8d4c74bb6796023abb7aa68fbc678eaeb80 refs/remotes/origin/mainsoft/gh20_Customer2
242fec48e07877683a58350f10922c0f0184589f refs/remotes/origin/mainsoft/gh20_mcs_Customer1
6a59dd91941bb7c7aa026bd25bfec81d6eb1a2c8 refs/remotes/origin/mainsoft/gh20preview
4bb9f1004787e4b52fe4fdb430a5f194ee634073 refs/remotes/origin/mainsoft/gh20preview2
230e23e4f318414c51301127543c01c2005c05e4 refs/remotes/origin/mainsoft/gh3.0preview1
e63e087e0e70925e5d48d0ead2fe65394e5c582d refs/remotes/origin/mainsoft/solutions_2_2
7af82877276c7b88a44deb0e6f2072c50aa28c17 refs/remotes/origin/martin/anonymous-methods2
ba3d2d20235322022f8e875849dab960bfc21b6d refs/remotes/origin/martin/debugger-kahalo
48d03791a1c8abe1d596d879031206d993a83315 refs/remotes/origin/martin/debugger-plophos
0359470b9f7a2fdaa75e4de12c9f83e78135034f refs/remotes/origin/master
41ca39c136de914adeb30deba27ecbb987e05350 refs/remotes/origin/messaging-2008
1429f06a9e3baf56245ec2433dcdb77e76eba684 refs/remotes/origin/mono-1-0
e1eb581e8a9100a929827524d1d2f91bd5685739 refs/remotes/origin/mono-1-0-6
c064f9f178339e54686526a3dd8bfd0ae7b64006 refs/remotes/origin/mono-1-1-10
b28e8eb77161f75a676f160365a860455db15476 refs/remotes/origin/mono-1-1-11
ad29bc9c3105aad5031a2ec84f3c468844e7b49d refs/remotes/origin/mono-1-1-12
a4c46a87cfcea02ab73579c998ed4e67e858b3cf refs/remotes/origin/mono-1-1-13
3f85c6d6d4c066363ae9d6e4de1ae80b954b84eb refs/remotes/origin/mono-1-1-13-8
6a546f60cfc03dc0e4ae09c4463a40f2d5acd8d0 refs/remotes/origin/mono-1-1-14
6e9f255eec4cbd8c53623d52fa26877db451bc34 refs/remotes/origin/mono-1-1-15
812f508c35b2a7247b93e59447afca83452ebc38 refs/remotes/origin/mono-1-1-16
e69a3c507851f27ff9d47d99944ee381fbd8da3e refs/remotes/origin/mono-1-1-17
9fbea2d56a024540d07b680e3eeec3310ba71f86 refs/remotes/origin/mono-1-1-18
b27152cb9d5942cbe886629f6f127fe6d1941930 refs/remotes/origin/mono-1-1-4
d305ee9a95945be36cd4517ef440ce99833068a0 refs/remotes/origin/mono-1-1-5
14db55bb39fee489de084d070ae611dd3503336d refs/remotes/origin/mono-1-1-6
939994df00fc3e1372b9dc1243e261e2f6c6c133 refs/remotes/origin/mono-1-1-7
d5fb27af2b9c68ac7bbada72c342e5b4f3072ebe refs/remotes/origin/mono-1-1-8
4f71550049b0d43f7ae41359e6f38ffa29e1f3b3 refs/remotes/origin/mono-1-1-9
0f9718c237af839c290a4c494a34d78190b99dd5 refs/remotes/origin/mono-1-2
3bb68f1bddf41c5c387e28bbd0dba65df0cca0d3 refs/remotes/origin/mono-1-2-1
c20551c1942db667672b36a07856467caace2d92 refs/remotes/origin/mono-1-2-2
e68e73c7efe7a4e28028d3c0a8c43842caf6dc21 refs/remotes/origin/mono-1-2-3
3c2f76b3001523ae712dcba5b2311a196eb9399d refs/remotes/origin/mono-1-2-4
8bb489774f42a734947859a1742ee5710efd9b49 refs/remotes/origin/mono-1-2-5
7376efd124405d50e11524bed7e91bbcb6bfc91a refs/remotes/origin/mono-1-2-6
bb0cde85b1f31230be337328ebd83d412f6b9c90 refs/remotes/origin/mono-1-9
c115636e0f354c3217920614182a3dfec4337541 refs/remotes/origin/mono-1-9-1-1
a1f3cf39287ceaca189ae1b4c06ad1677c8988cf refs/remotes/origin/mono-2-0
7a0052ae2fa0b9ff2c0dc7b6053e0e7d7630d477 refs/remotes/origin/mono-2-10
852c512d416efb6ed34493571ee87abab7f72890 refs/remotes/origin/mono-2-2
b68a5046d67794cd702518f471c6facdbb2f3a2c refs/remotes/origin/mono-2-4
d161692a50d0164906d5c0ad6ee38db141b6f7b0 refs/remotes/origin/mono-2-4-0
d4aeca63be0e9200f726545d4f8fcacd6a1e2b3f refs/remotes/origin/mono-2-4-1
7cf6ebe0e0dc6e38851a07eaac14062b9a236a19 refs/remotes/origin/mono-2-4-2
906d87f3ff47bf9d1deb9f4db57e3900bd8659ee refs/remotes/origin/mono-2-4-3
f08f8a27bfe3aafda4e430ee2365dec73c1070d7 refs/remotes/origin/mono-2-6
756688b2b8a4988117a2c68cfdba17142284e729 refs/remotes/origin/mono-2-6-4
34096b448e97ec780b3788de2b3185691bc0b9ad refs/remotes/origin/mono-2-6-7
64f045b98659b3552ae2b46b6e4e56fc9dad76e2 refs/remotes/origin/mono-2-8
c7c906d69ac9e360ce3e7d517258b8eea2b962b2 refs/remotes/origin/monotouch-1-0
62121afbb28f0b62f100ec9a942d10c5e0f4814f refs/remotes/origin/monotouch-2-0
97c6f8c4c8d592360ec365777aedb15604ec53ca refs/remotes/origin/moon-2-99-0-1
91b722f1d4b469c10c46fad3396a876c4414c87b refs/remotes/origin/moon-2-99-0-2
79e05e9d6f8eca93467f104aed4fc19733e909a7 refs/remotes/origin/moon-2-99-0-3
ddacacca00cb69f829abf9b0fd52fd6b4076d2c4 refs/remotes/origin/moon-2-99-0-4
4309c0d96184c1675aef708f26a2a058b69e5eb8 refs/remotes/origin/moon-2-99-0-5
60905d3baaa5b6ba9763c3c8b01701bb01853773 refs/remotes/origin/moon-2-99-0-6
851c48f04a8019811231bc9bd6984b0779932dcd refs/remotes/origin/moon-2-99-0-7
a36dc89129d65c4b72e9291d0fce46e0e418196c refs/remotes/origin/moon-2-99-0-8
8fa5360efd91bc9e0bdd9399f6bd484b5ecfd16a refs/remotes/origin/moon-3-99-0-1
32b3b31f74ec411d02efba37d58433ade9fa6d98 refs/remotes/origin/moon-3-99-0-2
fa856a85b50d6adbac6b5d26b32bc608887551bc refs/remotes/origin/moon/1.9.0
348617482b380275d7057e547e806c9be05bdb72 refs/remotes/origin/moon/1.9.1
0d47d8081c828d4b032564a88046a99d0284e6fd refs/remotes/origin/moon/1.9.2
50275053ad48a673500d72dccedab51e5230ad0b refs/remotes/origin/moon/1.9.3
bd19dacb396738bad75ecc8aafc1d8fc0fd6d5cd refs/remotes/origin/moon/1.9.4
f77c706aeb62483bd50e1199f52e1dadd9c520dd refs/remotes/origin/moon/1.9.5
3a5a3cf1d3fd027974b9f8281c6a9c7a22b75029 refs/remotes/origin/moon/1.9.6
ee08a4d041bdb88f49a027ce1a4f7736751a32d5 refs/remotes/origin/moon/1.99.1
c7bb5af6fcf8d1e380a8ec440c4b535c912713e0 refs/remotes/origin/moon/1.99.2
82b4a5cf1336da4f3234e85754a8780c57bb566b refs/remotes/origin/moon/1.99.3
f0a462d9db712ffcad80365561307c06e3acef3f refs/remotes/origin/moon/1.99.4
43dff9dcbf68f1ede9a467c24361a8056440c16a refs/remotes/origin/moon/1.99.5
d4674914b900cba323c2cde86e185b57553fa224 refs/remotes/origin/moon/1.99.6
51bca79c227343ce3a839c4739590406032546f6 refs/remotes/origin/moon/1.99.7
e0eee654e3532610107089762f6c73e923b71036 refs/remotes/origin/moon/1.99.8
ce62f727587b0467218a77829b30d530ca7fb524 refs/remotes/origin/moon/1.99.9
aaa43cdb8ab054b33c23ba2a16475d4108acc1f4 refs/remotes/origin/moon/moon-2-0
a56625169c0ebfd4bdfe0636b04cf3f5c5c1e057 refs/remotes/origin/mwf-handle-branch
0546b514ee0115d7e4bc08d479b952aaa59e0591 refs/remotes/origin/post-1-1-7-4-locking-exp
091a1627fdf10e7e3a12d59138bb4036711d6bdd refs/remotes/origin/post-1-1-8-locking-exp
348617482b380275d7057e547e806c9be05bdb72 refs/remotes/origin/rhowell/1.9.1
bd19dacb396738bad75ecc8aafc1d8fc0fd6d5cd refs/remotes/origin/rhowell/1.9.4
b73887c83da66d0ba9402c9cfe94936a938361a2 refs/remotes/origin/sportsmodel-branch
db39bf49379457cda6efb712dc6b9d9f007e5c9c refs/remotes/origin/vargaz/mini-linear-il
acb9e21b28520b966f30b8575d61ca7ed952134b refs/remotes/origin/vargaz/mini-xp-local-regalloc
6dc86808d6e4e1811ef8746afbd67c1eefca4b44 refs/remotes/origin/wii
2435a146a292e5cbd17d775260e69f9ffe5bd961 refs/stash
3f313cb9ecff29967ddff9bf78004f49816e804d refs/tags/1-0-5
8ee804b1c9cc92fd7bea45adb1270f3d5bbcbdf5 refs/tags/1-1-3
2fb3bf579cca787c4bbe0c2bdccc17c8ac9a189c refs/tags/2.10
668fe4cb4bf709d52ab5660e9198ed2bbcc32289 refs/tags/2.10.1
a401067f098a6c3aa8b273e06e6ccbf14a589852 refs/tags/2.10.2
66187b25b69ab736c0ff93f0b3ebf35f660fb343 refs/tags/2.10.3
d34d67f35bc2a0a48af1c37ac6af4c926df7668c refs/tags/2.8
4f90aa334e08c3137db6e2267192c1c7a14ffb84 refs/tags/2.8-p3
dd287e742d072039b81f1e7351aab45621e60ed4 refs/tags/2.8-p5
b3911d9b59b06d5e39bfa30ea572fdb167c6d478 refs/tags/2.8-p6
15122fd0a5190afc168918bc8e840eb0d3296f38 refs/tags/2.8-rc1
662ad6ee1249ceb0b9873d02034d03fee429b616 refs/tags/2.8.1
47ae77b5608c6dc0e3e5497f857c450fba3a41cf refs/tags/2.8.2
3215bf8472af3b66a836af6319bb9410fd84e2ff refs/tags/C5_0_5
a4367a4aaaa4600954eb64dfd1cc4c433b5f0e3b refs/tags/GENERICS_BASE_MERGE_POINT
5df4e8d92d45ebd27fff80d1cb3317fc6177f1cb refs/tags/GMCS_MARTIN
69876c30ff2e33d15a79f94c8a5560c7066e4900 refs/tags/GMCS_MARTIN_2
b5e0d7eaf38a4e1ec031e91508c602c0e07c14ff refs/tags/MARTIN_PLAYGROUND_TAG
c47f6de70e6a9cfc31ded537d4610efa800302f2 refs/tags/MCS_0_10
6f9059cfb80914c1f48a93bc0efc08e6404c950e refs/tags/MCS_0_11
d7a0fa3525a4baf4da535c3f5c4a6afa61fc1af7 refs/tags/MCS_0_13
af150fc45b9f08337e3c5c517d1a9ae533844927 refs/tags/MCS_0_14
3baf6444e0ba460696c78ddf2e137517664d6d0f refs/tags/MCS_0_15
2060885a61b30e2557d9e938e681842a21be7fb2 refs/tags/MCS_0_16
8a70bb1d0e07b9bda44c4fab515414dd14d98d97 refs/tags/MCS_0_17
8f0db6b55168e6cdf83a94efd6a9c1e75ce4f141 refs/tags/MCS_0_18
1bce5f4a2aab71234fd0aa56f76c71467677281e refs/tags/MCS_0_19
f4d7c3d9ef6b3198ca3436b2a9f7aaa6adfada0b refs/tags/MCS_0_20
cfaea8bc95ea12af4694be8775172ca868ffbd46 refs/tags/MCS_0_21
62975301f29e09b9d989d86986aa43dcddab4338 refs/tags/MCS_0_22
cc6c8473d625470faf0a35975e743890e615484e refs/tags/MCS_0_23
9f09256d3c73b6906965b238779b9bff5b1a39a0 refs/tags/MCS_0_24
4a048a798ca68d31088227e8e9e324358bb9b5f7 refs/tags/MCS_0_25
2c2381e666b95479893c22cddc7e75099d15cb2a refs/tags/MCS_0_26
dd05ade67bd8b0a60a8ae6a5ce7501e9085b29bc refs/tags/MCS_0_27
6e43a5d927ef22ded84720ba9497b8f54f2ef8a4 refs/tags/MCS_0_29
77702ef90fa82d99e5c1f198b79ea8a988b46c79 refs/tags/MCS_0_30
5d657d7bc63e0bf93e6e4c463d71be239d1d6db4 refs/tags/MCS_0_31
b0784aa1318048429a5c94e704a7d3554f6ea2f7 refs/tags/MCS_0_4
d02373e837c4ab265cbbfc3c685670e04a162c25 refs/tags/MCS_0_6
c275f7585f42e64da71678dd2213c76cd2554f71 refs/tags/MCS_0_8
2ba6e3293b552a4be0947afd1d39d8450a4f8237 refs/tags/MCS_0_91
39c87c56fbaf6635cfe7a81285f4c0b8612f302f refs/tags/MCS_0_95
5f2542f7633db1be8a059fd1a1ee4201361d0fa8 refs/tags/MCS_0_96
3742db035a55aa33384cf90c49336ed3bc018c8c refs/tags/MCS_0_97
06d243aef744202bf37a0aa21de8c15bf427a85a refs/tags/MCS_1_0
251a5dabc98ac219c962f950dcef2489c90da2ad refs/tags/MCS_1_0_2
081f745091ca69547afa8c929862a2f5a533c206 refs/tags/MCS_1_0_3
c0ce58ee90ee63da82639d8cccd11f9b2b73d857 refs/tags/MCS_1_0_4
20f50bbc55de5f443511d3670d3b4f597d55e485 refs/tags/MCS_1_1_1
25d006bb42129274760a3bffba0c1289052c21c4 refs/tags/MCS_1_1_2
2f5e6232d1c49b739354a58a5bca5d150bcfdcc3 refs/tags/MCS_JULY_17
2c94e8b66e745c4b06312aafae63f85b8129d0b2 refs/tags/MONO_0_10
ca778a895886cd1f2f1e1dd354955b3e647e6fce refs/tags/MONO_0_11
4f02ecaa9dd5a59c7edce294d255efa58daf61d5 refs/tags/MONO_0_13
adb7ff32d1132ffae1c357388d78d61044931873 refs/tags/MONO_0_14
248504d80db5ae00ea6ab790c602db54db265bdb refs/tags/MONO_0_15
32e69fe2dd5f540b7afcc51260fdf80cd78ebc5d refs/tags/MONO_0_16
f64163bfd7a8049d46518c9ec4efeb5ce3fbb186 refs/tags/MONO_0_17
66332d9ef6f1bc809742c5d3f6410f28f33d717c refs/tags/MONO_0_18
8466b5c35a24c80437a4425608d63e96890c1ae1 refs/tags/MONO_0_19
52b84743694e5f3aa99a1175b151e4bf05d77843 refs/tags/MONO_0_20
46a6b24b434d1ffef5d880099e35872f89fe5a9d refs/tags/MONO_0_21
d32321a6f9da81443d439b33205911efb8229d47 refs/tags/MONO_0_22
8d12301369b39c5737b6eeba8ad47952ecf6482d refs/tags/MONO_0_23
23631f018af1aa50b3d2f7a26ac2ac02c10a9641 refs/tags/MONO_0_24
24ca06b662e3f2a6f7ea59941ea55bbc5e756eb6 refs/tags/MONO_0_25
0d77b961f51dbd9578cc4c0a71e00700d80331c7 refs/tags/MONO_0_26
3c95965b2e209ade91865de62f0a5c3477f83a6e refs/tags/MONO_0_27
395708bec98015ea736ec2c7140a638c72e02450 refs/tags/MONO_0_29
3a24638a9150b340a731bf94621d5abd4cb84211 refs/tags/MONO_0_3
34822afe22085dcdfa99db23ce024c95f39c5328 refs/tags/MONO_0_30
7f5304f8a86db6bdbd5acc97cbf3e94085bead41 refs/tags/MONO_0_31
08cc744ea34ddc11b5e66d62b5681963d3997365 refs/tags/MONO_0_4
ac6a0aff32ced61f3a858961fb0d27679bbd8504 refs/tags/MONO_0_5
9a80f7e7814c11e580621af662a60c5761bb112e refs/tags/MONO_0_6
5bafbfd3411626e5916657ff37179f11628dfdac refs/tags/MONO_0_7
dc0e724dcc70b038ed7d89a7d04baabe1fb9a6e9 refs/tags/MONO_0_8
885709d3bcac901227fac48c0efd63748b88afaa refs/tags/MONO_0_9
3cadc5c762015237c99861f093f8dc2f862133c2 refs/tags/MONO_0_91
a00b9074aa531be3c4a905da7a15786212f14f97 refs/tags/MONO_0_93
c055406f4431bf7695c29026845ac841eea3c1d9 refs/tags/MONO_0_94
920d6fe40d1df03aba5698e8bb1ccca5aa75b3d8 refs/tags/MONO_0_95
0cbb90c2046182f209495aa451ad4cba06bfcc06 refs/tags/MONO_0_96
ffa02af22854b2be49708684d2483a7c0624dda4 refs/tags/MONO_0_97
35e34e2d9dd04d14aea6358ff7ec55763f203fe8 refs/tags/MONO_0_99_2
6340550c2b181e5561266f61093bf581ca275314 refs/tags/MONO_1_0
72b6c41eebe173dfe7cb517deb05961f44dbfb8a refs/tags/MONO_1_0_1
1bae59437320c2cdbcda814b06f43993327ed5a5 refs/tags/MONO_1_0_2
13f4c1a27734a2815a42d3f8826dedfee4744fd1 refs/tags/MONO_1_0_3
408a59e440bbe3dd331ad8ebba505eabcef56157 refs/tags/MONO_1_0_4
8c2a6ff51b3864ee8cd7574d2c55da804fba188e refs/tags/MONO_1_1_1
679f766f0d8c4c56d6cbfe6348c84f6095b5304f refs/tags/MONO_1_1_2
0ed4ed7b6a21f51760f9a1d9a7b5eb4074e09fb2 refs/tags/MONO_BETA2
7f0542b133e5f1eee15f337e0263c14406091a7e refs/tags/NUNIT_1_11
4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 refs/tags/RHYS_20020821
e2b6cbaf2793354590a7fe542afe811aa03d0a2e refs/tags/cecil-0.6
cc871f21d86765c372ffd71615de2a5252ce2832 refs/tags/last-commit-with-compulsory-changelog-entry
3f313cb9ecff29967ddff9bf78004f49816e804d refs/tags/mono-1-0-5
c064f9f178339e54686526a3dd8bfd0ae7b64006 refs/tags/mono-1-1-10-1
2dbb2f7a7d72a49b068c3d17aa7cb04aaeeac735 refs/tags/mono-1-1-12-1
0e6e9da90b12ca5c445a3b1eaeb7581dc792c016 refs/tags/mono-1-1-13-1
24906dde223bd634fe2b5ec231ba399eb01ed85e refs/tags/mono-1-1-13-2
933491861325258994290ac573f66db398b2151c refs/tags/mono-1-1-13-3
fbc561d17c6310b2d9c94c37e673956f64956d2b refs/tags/mono-1-1-13-4
5555a9e8dabb3bb9d94d18cb10236e331ff6652c refs/tags/mono-1-1-13-5
33ab4bee8e165e330c6abd3385bb09357afd892a refs/tags/mono-1-1-13-6
6b2f395ce41d181672c1032c0bada5013589aa9d refs/tags/mono-1-1-13-7
7d44efe136a8b624639e244b407694012767d8b2 refs/tags/mono-1-1-13-8-1
3f85c6d6d4c066363ae9d6e4de1ae80b954b84eb refs/tags/mono-1-1-13-8-2
680b340f6d3d64c649c03a35a3946a969c75b9c8 refs/tags/mono-1-1-16-1
3f259856c6b748da5e9db392231bc4cf02067625 refs/tags/mono-1-1-17-1
e69a3c507851f27ff9d47d99944ee381fbd8da3e refs/tags/mono-1-1-17-2
97263cd3ede795aa9214ef6f511a6986caa1d10a refs/tags/mono-1-1-18-1
8ee804b1c9cc92fd7bea45adb1270f3d5bbcbdf5 refs/tags/mono-1-1-3
14db55bb39fee489de084d070ae611dd3503336d refs/tags/mono-1-1-6-2
0e3bb5c75d0e2e46654b01bf9cf2c564fcf36186 refs/tags/mono-1-1-7-1
9fe352c95dea8ef63bc54837a902297643ad95cb refs/tags/mono-1-1-7-10
3212bc410d77569c636eee658215f6ef26727022 refs/tags/mono-1-1-7-11
3a154ae091c27cacef8da21bbcd802c6b20a5fdc refs/tags/mono-1-1-7-12
2dd8006e8e79bb0b6695e83e8b9f8c75614b73cd refs/tags/mono-1-1-7-13
da175f964d6ff43a290436b99dea5c4c874f7d77 refs/tags/mono-1-1-7-14
ce91af0332902c2227985cf72e5267dc93f0082f refs/tags/mono-1-1-7-2
8dd4410b0519704c213252c27e12bc2c3d2f5644 refs/tags/mono-1-1-7-3
669e1211f916836ed1151d494ef6363f477c6875 refs/tags/mono-1-1-7-4
cb211e4e89523e37865b46c53bab8c13667904a5 refs/tags/mono-1-1-7-5
212070688ad11ff8d6db9c79a7a354e73dce0169 refs/tags/mono-1-1-7-6
475bb6ed37428ae214db51de76144ddfc461eab2 refs/tags/mono-1-1-7-7
4163439d14083fe6c88ba52d66d32f1c199e134a refs/tags/mono-1-1-7-8
db8b68eb75dd8a1773ea380c5ab299ecb96a02e8 refs/tags/mono-1-1-7-9
9e4af11a75bbde3b9aa45a8c8dc2a9d28c327ca7 refs/tags/mono-1-1-8-1
97f8625d1092a3087d2561e6a8fd5fec9548ddf8 refs/tags/mono-1-1-8-2
c9228135a78dc90b0fada472767b7501c10a10a1 refs/tags/mono-1-1-8-3
b29c6d9321ae353d5587552c5fd8a3990ef25b8d refs/tags/mono-1-1-9-1
c20187f291f7ab63b0039cc6ea1d0aec666357bc refs/tags/mono-1-1-9-2
434ed78f2343b3c7a2ceb2431bf6e6f3fda96b9d refs/tags/mono-1-2-2-1
6b2181df333da3201aa21e7aac7af0092a95f155 refs/tags/mono-1-2-3-1
e27148fde898ecd8b315ed811d69174ca770f3fe refs/tags/mono-1-2-3-50
ef21dfa4f165958a8d6e643e67fc2fbdc6a4b193 refs/tags/mono-1-2-5-1
97512982957dd59e98473df4de5d023831076ac8 refs/tags/mono-1-2-5-2
b80cb128d794441da87095b62dda79fc977b43a2 refs/tags/mono-1-2-5-p4
3099f3ce8d009126b71e2856744953b706b153b3 refs/tags/mono-1-2-5-p5
59c864c22a7ba865e3d641048f143eef3d78e3bb refs/tags/mono-1-9-1
65cf8c16c5248ce0e3ca9321422e3f3d47e44054 refs/tags/mono-1-9-1-p2
2b3bfcb002d9e7dc8b5bb9e93d5416fa3a7f4a24 refs/tags/mono-1-9-p3
e1eb581e8a9100a929827524d1d2f91bd5685739 refs/tags/mono-1.0.6
269d024dc2796fbffd5b2603cfce01199ddfa354 refs/tags/mono-1.1.10
b28e8eb77161f75a676f160365a860455db15476 refs/tags/mono-1.1.11
f2631aa17b0296460a815794f4c2c1d6dccc1cd3 refs/tags/mono-1.1.12
97c08a345189de79332e75268f5ac806caa800f8 refs/tags/mono-1.1.13
0aea5e52ca5def84eb4bea45a32c46c38382ce54 refs/tags/mono-1.1.13.8
6a546f60cfc03dc0e4ae09c4463a40f2d5acd8d0 refs/tags/mono-1.1.14
6e9f255eec4cbd8c53623d52fa26877db451bc34 refs/tags/mono-1.1.15
fda57d1297a00855038778e4b3c55125cd5b6f6d refs/tags/mono-1.1.16
f0eb908832c00425cb56a563c4d2c2253aa99801 refs/tags/mono-1.1.17
d973adf739079a754013a7aabaf062c6e8362d58 refs/tags/mono-1.1.18
f0cc7b722514f9a66636fbdc2ba46d2ad09290da refs/tags/mono-1.1.4
d305ee9a95945be36cd4517ef440ce99833068a0 refs/tags/mono-1.1.5
4a93eca61ace3b72e9c7d3241e22894ac6527751 refs/tags/mono-1.1.6
999eedbde2286858dee3a28b3de17cf7c7ee6aa3 refs/tags/mono-1.1.7
38ba17f8fba52022c8be480c4d0b7790502fcf5d refs/tags/mono-1.1.8
0c12971f275e1e95d86fcdb69bb3a16782c96c00 refs/tags/mono-1.1.9
d0f800d5aae075fbaec91be79776b05fea6d8b2b refs/tags/mono-1.2
7e26594b5acf982ca712d81018e01192f3698934 refs/tags/mono-1.2.1
3482a0b686b1717a6a7639bdde43123fda150a37 refs/tags/mono-1.2.2
203611f08d6864575fd244f513e8c800fe04538e refs/tags/mono-1.2.3
69353f911160fe45163b3514df295ee5bca196e3 refs/tags/mono-1.2.4
e659f8968d2943e94136787d0256de16d8c21dcc refs/tags/mono-1.2.5
040ba14063f6b9933ac89835e71bd813ca140dc7 refs/tags/mono-1.2.6
e80fe9efc2b64aacf06657cc8951c9739513069d refs/tags/mono-1.9
fa2352e7bba168ce21f63ccdb59cce70e69b0b98 refs/tags/mono-1.9.1.1
ad1e78b37d014bb15d5396736d9db71bb37a902c refs/tags/mono-2-0-1
94c037f620e2f32ca4d0925785e77345bf9436b3 refs/tags/mono-2-0-1-rc1
57dbdb3e42c98860392c8eeccbcbdf3df50ee461 refs/tags/mono-2-0-p1
d7b1a66b945f37e7a62ce28a2cbb4618dbca842b refs/tags/mono-2-0-p2
28021d9e5cc4e8837fb8e060e222e93ed5b6963e refs/tags/mono-2-0-rc1
d33e20924be8193235f574a1da78e7d44b229f21 refs/tags/mono-2-0-rc2
245f79b651af761ca0929d77f14c06e77e56b5fa refs/tags/mono-2-0-rc3
c43c7090b668525e8d6730206883b76b1cd7e8c1 refs/tags/mono-2-2-p1
50619fe4f49cc9358be684132ea197993d3748b1 refs/tags/mono-2-2-p2
dc330f3d57eb21109243f16df6ba7001a68bb963 refs/tags/mono-2-2-p3
08038cbf3b982239d9ed74f6181576a7caf308b4 refs/tags/mono-2-2-rc1
abb08d231bb68b63beb4f34f4c4bab8f3a607092 refs/tags/mono-2-4-2-1
b79738dc7f734a78039567ea35f4e6a7d319a227 refs/tags/mono-2-4-2-2
f79a3230c2f0a8d80b36cdbe067c53e36374a017 refs/tags/mono-2-4-2-3
f64925baf83a71bfffa278c15da8baf6a7d851c2 refs/tags/mono-2-4-2-3-rc1
7337b45f49fadaff8f310b5d432240128b82786d refs/tags/mono-2-4-2-3-rc2
f79a3230c2f0a8d80b36cdbe067c53e36374a017 refs/tags/mono-2-4-2-3-rc3
ab03b83eb4ed48e7f3d667c279ae60335d5c850d refs/tags/mono-2-4-2-p1
8e9b735376ea0dc09c1b0234e0ce8941f0e8dab9 refs/tags/mono-2-4-2-p2
01bbe61085220e441170e93e38c87368cf6726f1 refs/tags/mono-2-4-2-rc1
8a7c716e20f2aeadbe827b5d532fe36f69e74568 refs/tags/mono-2-4-2-rc2
6bf1e1ea5f2d2586bafdd14f1fe538e080a6d5ba refs/tags/mono-2-4-3-1
dc279e74dc85301bb23db6de78d537cb0da9fe9e refs/tags/mono-2-4-p1
c2752833c4c451a9cff77175801370c359b5850e refs/tags/mono-2-6
3a989e7d01e337d2c77bb3218effe39f9ed90a02 refs/tags/mono-2-6-1
53acd8e07620008e5354170ff2ad479db5d200cb refs/tags/mono-2-6-3
3a79ccf17838b6b1d0806cb123428ee065d3d30f refs/tags/mono-2-6-7
43e34e922109adb8cbf6aaaf1dbc1dce3350f88f refs/tags/mono-2-6-p1
1c102ac0d51469c9c4dd245b82ff8a3cc485a67e refs/tags/mono-2-6-rc1
e117097e1f1f8a3cddaac9fb71d86661b6a10b22 refs/tags/mono-2.0
470791b186ea8326f205f17ce2eadac2ff86a564 refs/tags/mono-2.2
27589b59b90f81fb88ab69eee320449c8cf65780 refs/tags/mono-2.4
8a7c716e20f2aeadbe827b5d532fe36f69e74568 refs/tags/mono-2.4.2
1a9965fb222300fafa0eda42cf33c9ab8ff90faf refs/tags/mono-2.4.3
c2752833c4c451a9cff77175801370c359b5850e refs/tags/mono-2.6
680b5eb2d695de54fe4eb3210c07722ef60e5a4b refs/tags/mono-2.6.4
6623fc543d66d06121d7c7cfbe9f5bfa3ed8cf3d refs/tags/mono-android-1-0
7dcae3becc62fdbd1934b5c8b0e924bfe9e72921 refs/tags/monotouch-1-3
781cdd1e28a8060fb31c16817bdff2024002e304 refs/tags/monotouch-1-4
51a238609c4c196985d2fcc3c1edf10442ff94de refs/tags/monotouch-1.0
fa856a85b50d6adbac6b5d26b32bc608887551bc refs/tags/moon-1.9.0
348617482b380275d7057e547e806c9be05bdb72 refs/tags/moon-1.9.1
0d47d8081c828d4b032564a88046a99d0284e6fd refs/tags/moon-1.9.2
1163a482f7430930bee670cf4c6721ecf9880974 refs/tags/moon-1.99.1
c7bb5af6fcf8d1e380a8ec440c4b535c912713e0 refs/tags/moon-1.99.2
d4674914b900cba323c2cde86e185b57553fa224 refs/tags/moon-1.99.6
ee08a4d041bdb88f49a027ce1a4f7736751a32d5 refs/tags/moon/1.99.1.1
19f1c05c5471440bebaa4b29753c831c6c876312 refs/tags/moon/2.0
a17f894b666841189aeffb3d2a172c63c9f4f0b6 refs/tags/moon/2.1
a17f894b666841189aeffb3d2a172c63c9f4f0b6 refs/tags/moon/2.2
a17f894b666841189aeffb3d2a172c63c9f4f0b6 refs/tags/moon/moon-2-3
4147a93068116c5ff6b872fd7cf877af3d4ec04a refs/tags/sportsmodel-base
b07fca3e4eb4ce853b265956eb399f5649220559 refs/tags/type-reflector_0_2
+208
View File
@@ -0,0 +1,208 @@
* Proposal for the local register allocator
The local register allocator deals with allocating registers
for temporaries inside a single basic block, while the global
register allocator is concerned with method-wide allocation of
variables.
The global register allocator uses callee-saved register for it's
purpouse so that there is no need to save and restore these registers
at call sites.
There are a number of issues the local allocator needs to deal with:
*) some instructions expect operands in specific registers (for example
the shl instruction on x86, or the call instruction with thiscall
convention, or the equivalent call instructions on other architectures,
such as the need to put output registers in %oX on sparc)
*) some instructions deliver results only in specific registers (for example
the div instruction on x86, or the call instructionson on almost all
the architectures).
*) it needs to know what registers may be clobbered by an instruction
(such as in a method call)
*) it should avoid excessive reloads or stores to improve performance
While which specific instructions have limitations is architecture-dependent,
the problem shold be solved in an arch-independent way to reduce code duplication.
The register allocator will be 'driven' by the arch-dependent code, but it's
implementation should be arch-independent.
To improve the current local register allocator, we need to
keep more state in it than the current setup that only keeps busy/free info.
Possible state information is:
free: the resgister is free to use and it doesn't contain useful info
freeable: the register contains data loaded from a local (there is
also info about _which_ local it contains) as a result from previous
instructions (like, there was a store from the register to the local)
moveable: it contains live data that is needed in a following instruction, but
the contents may be moved to a different register
busy: the register contains live data and it is placed there because
the following instructions need it exactly in that register
allocated: the register is used by the global allocator
The local register allocator will have the following interfaces:
int get_register ();
Searches for a register in the free state. If it doesn't find it,
searches for a freeable register. Sets the status to moveable.
Looking for a 'free' register before a freeable one should allow for
removing a few redundant loads (though I'm still unsure if such
things should be delegated entirely to the peephole pass).
int get_register_force (int reg);
Returns 'reg' if it is free or freeable. If it is moveable, it moves it
to another free or freeable register.
Sets the status of 'reg' to busy.
void set_register_freeable (int reg);
Sets the status of 'reg' to freeable.
void set_register_free (int reg);
Sets the status of 'reg' to free.
void will_clobber (int reg);
Spills the register to the stack. Sets the status to freeable.
After the clobbering has occurred, set the status to free.
void register_unspill (int reg);
Un-spills register reg and sets the status to moveable.
FIXME: how is the 'local' information represented? Maybe a MonoInst* pointer.
Note: the register allocator will insert instructions in the basic block
during it's operation.
* Examples
Given the tree (on x86 the right argument to shl needs to be in ecx):
store (local1, shl (local1, call (some_arg)))
At the start of the basic block, the registers are set to the free state.
The sequence of instructions may be:
instruction register status -> [%eax %ecx %edx]
start free free free
eax = load local1 mov free free
/* call clobbers eax, ecx, edx */
spill eax free free free
call mov free free
/* now eax contains the right operand of the shl */
mov %eax -> %ecx free busy free
un-spill mov busy free
shl %cl, %eax mov free free
The resulting x86 code is:
mov $fffc(%ebp), %eax
mov %eax, $fff0(%ebp)
push some_arg
call func
mov %eax, %ecx
mov $fff0(%ebp), %eax
shl %cl, %eax
Note that since shl could operate directly on memory, we could have:
push some_arg
call func
mov %eax, %ecx
shl %cl, $fffc(%ebp)
The above example with loading the operand in a register is just to complicate
the example and show that the algorithm should be able to handle it.
Let's take another example with the this-call call convention (the first argument
is passed in %ecx).
In this case, will_clobber() will be called only on %eax and %edx, while %ecx
will be allocated with get_register_force ().
Note: when a register is allocated with get_register_force(), it should be set
to a different state as soon as possible.
store (local1, shl (local1, this-call (local1)))
instruction register status -> [%eax %ecx %edx]
start free free free
eax = load local1 mov free free
/* force load in %ecx */
ecx = load local1 mov busy free
spill eax free busy free
call mov free free
/* now eax contains the right operand of the shl */
mov %eax -> %ecx free busy free
un-spill mov busy free
shl %cl, %eax mov free free
What happens when a register that we need to allocate with get_register_force ()
contains an operand for the next instruction?
instruction register status -> [%eax %ecx %edx]
eax = load local0 mov free free
ecx = load local1 mov mov free
get_register_force (ecx) here.
We have two options:
mov %ecx, %edx
or:
spill %ecx
The first option is way better (and allows the peephole pass to
just load the value in %edx directly, instead of loading first to %ecx).
This doesn't work, though, if the instruction clobbers the %edx register
(like in a this-call). So, we first need to clobber the registers
(so the state of %ecx changes to freebale and there is no issue
with get_register_force ()).
What if an instruction both clobbers a register and requires it as
an operand? Lets' take the x86 idiv instruction as an example: it
requires the dividend in edx:eax and returns the result in eax,
with the modulus in edx.
store (local1, div (local1, local2))
instruction register status -> [%eax %ecx %edx]
eax = load local0 mov free free
will_clobber eax, edx free mov free
force mov %ecx, %eax busy free free
set %edx busy free busy
idiv mov free free
Note: edx is set to free after idiv, because the modulus is not needed
(if it was a rem, eax would have been freed).
If we load the divisor before will_clobber(), we'll have to spill
eax and reload it later. If we load it just after the idiv, there is no issue.
In any case, the algorithm should give the correct results and allow the operation.
Working recursively on the isntructions there shouldn't be huge issues
with this algorithm (though, of course, it's not optimal and it may
introduce excessive spills or register moves). The advantage over the current
local reg allocator is that:
1) the number of spills/moves would be smaller anyway
2) a separate peephole pass could be able to eliminate reg moves
3) we'll be able to remove the 'forced' spills we currently do with
the return value of method calls
* Issues
How to best integrate such a reg allocator with the burg stuff.
Think about a call os sparc with two arguments: they got into %o0 and %o1
and each of them sets the register as busy. But what if the values to put there
are themselves the result of a call? %o0 is no problem, but for all the
next argument n the above algorithm would spill all the 0...n-1 registers...
* Papers
More complex solutions to the local register allocator problem:
http://dimacs.rutgers.edu/TechnicalReports/abstracts/1997/97-33.html
Combining register allocation and instruction scheduling:
http://citeseer.nj.nec.com/motwani95combining.html
More on LRA euristics:
http://citeseer.nj.nec.com/liberatore97hardness.html
Linear-time optimal code scheduling for delayedload architectures
http://www.cs.wisc.edu/~fischer/cs701.f01/inst.sched.ps.gz
Precise Register Allocation for Irregular Architectures
http://citeseer.nj.nec.com/kong98precise.html
Allocate registers first to subtrees that need more of them.
http://www.upb.de/cs/ag-kastens/compii/folien/comment401-409.2.pdf
+98
View File
@@ -0,0 +1,98 @@
=pod
=head1 Internal design document for the mono_handle_d
This document is designed to hold the design of the mono_handle_d and
not as an api reference.
=head2 Primary goal and purpose
The mono_handle_d is a process which takes care of the (de)allocation
of scratch shared memory and handles (of files, threads, mutexes,
sockets etc. see L<WapiHandleType>) and refcounts of the
filehandles. It is designed to be run by a user and to be fast, thus
minimal error checking on input is done and will most likely crash if
given a faulty package. No effort has been, or should be, made to have
the daemon talking to machine of different endianness/size of int.
=head2 How to start the daemon
To start the daemon you either run the mono_handle_d executable or try
to attach to the shared memory segment via L<_wapi_shm_attach> which
will start a daemon if one does not exist.
=head1 Internal details
The daemon works by opening a socket and listening to clients. These
clients send packages over the socket complying to L<struct
WapiHandleRequest>.
=head2 Possible requests
=over
=item WapiHandleRequest_New
Find a handle in the shared memory segment that is free and allocate
it to the specified type. To destroy use
L</WapiHandleRequest_Close>. A L<WapiHandleResponse> with
.type=WapiHandleResponseType_New will be sent back with .u.new.handle
set to the handle that was allocated. .u.new.type is the type that was
requested.
=item WapiHandleRequestType_Open
Increase the ref count of an already created handle. A
L<WapiHandleResponse> with .type=WapiHandleResponseType_Open will be sent
back with .u.new.handle set to the handle, .u.new.type is set to the
type of handle this is.
=item WapiHandleRequestType_Close
Decrease the ref count of an already created handle. A
L<WapiHandleResponse> with .type=WapiHandleResponseType_Close will be
sent back with .u.close.destroy set to TRUE if ref count for this
client reached 0.
=item WapiHandleRequestType_Scratch
Allocate a shared memory area of size .u.scratch.length in bytes. A
L<WapiHandleResponse> with .type=WapiHandleResponseType_Scratch will be
sent back with .u.scratch.idx set to the index into the shared
memory's scratch area where to memory begins. (works just like
malloc(3))
=item WapiHandleRequestType_Scratch
Deallocate a shared memory area, this must have been allocated before
deallocating. A L<WapiHandleResponse> with
.type=WapiHandleResponseType_ScratchFree will be sent back (works just
like free(3))
=back
=head1 Why a daemon
From an email:
Dennis: I just have one question about the daemon... Why does it
exist? Isn't it better performancewise to just protect the shared area
with a mutex when allocation a new handle/shared mem segment or
changing refcnt? It will however be a less resilient to clients that
crash (the deamon cleans up ref'd handles if socket closes)
Dick: It's precisely because with a mutex the shared memory segment
can be left in a locked state. Also, it's not so easy to clean up
shared memory without it (you can't just mark it deleted when creating
it, because you can't attach any more readers to the same segment
after that). I did some minimal performance testing, and I don't
think the daemon is particularly slow.
=head1 Authors
Documentaion: Dennis Haney
Implementation: Dick Porter
=cut
+68
View File
@@ -0,0 +1,68 @@
We need to switch to a new register allocator.
The current one is split in a global and a local register allocator.
The global one can assign only callee-saves registers and happens
on the tree-based internal representation: it assigns local variables
to hardware registers.
The local one happens on the linear representation on a per basic
block basis and assigns hard registers to virtual registers (which
hold temporary values during expression executions) and it deals also
with the platform-specific issues (fixed registers, call conventions).
Moving to a different register will help solve some of the performance
issues introduced by the above split, make the register more easily
portable and solve some of the issues generated by dealing with trees.
The general design ideas are below.
The new allocator should have a global view of all the method, so it can be
able to assign variables also to some of the volatile registers if possible,
even across basic blocks (this would improve performance).
The allocator would be driven by per-arch declarative data, so porting
should be easier: an architecture needs to specify register classes,
call convention and instructions requirements (similar to the gcc code).
The allocator should operate on the linear representation, this way it's
easier and faster to track usages more correctly. We need to assign virtual
registers on a per-method basis instead of per basic block. We can assign
virtual registers to variables, too. Note that since we fix the stack offset
of local vars only after this step (which happens after the burg rules are run),
some of the burg rules that try to optimize the code won't apply anymore:
the peephole code may need to be enhanced to do the optimizations instead.
We need to handle floating point registers in the global allocator, too.
The new allocator also needs to keep track precisely of which registers
contain references or managed pointers to allow us to move to a precise GC.
It may be worth to use a single increasing set of integers for the virtual
registers, with the class of the register stored separately (unless the
current local allocator which keeps interger and fp registers separate).
Since this is a large task, we need to do it in steps as much as possible.
The first is to run the register allocator _after_ the burg rules: this
requires a rewrite of the liveness code, too, to use linear indexes instead
of basic-block/tree number combinations. This can be done by:
*) allocating virtual regs to all the locals that can be register allocated
*) running the burg rules (some may require adjustments): the local virtual
registers are assigned starting from global-virt-regs+1, instead of the current
hardware-regs+1, so we can tell apart global and local virt regs.
*) running the liveness/whatever code is needed to allocate the global registers
*) allocate the rest of the local variables to stack slots
*) continue with the current local allocator
This work could take 2-3 weeks.
The next step is to define the kind of declarative data an architecture needs
and assigning virtual regs to all the registers and making the allocator
assign from the volatile registers, too.
Note that some of the code that is currently emitted in the arch-specific
code, will need to be emitted as instructions that the reg allocator
can inspect: think of a method that returns the first argument which is
received in a register: the current code copies it to either a local slot or
to a global reg in the prolog an copies it back to the return register
int he basic block, but since neither the regallocator nor the peephole code
knows about the prolog code, the first store cannot be optimized away.
The gcc code has some example of how to specify register classes in a
declarative way.
+113
View File
@@ -0,0 +1,113 @@
* How to handle complex IL opcodes in an arch-independent way
Many IL opcodes are very simple: add, ldind etc.
Such opcodes can be implemented with a single cpu instruction
in most architectures (on some, a group of IL instructions
can be converted to a single cpu op).
There are many IL opcodes, though, that are more complex, but
can be expressed as a series of trees or a single tree of
simple operations. Such simple operations are architecture-independent.
It makes sense to decompose such complex IL instructions in their
simpler equivalent so that we gain in several ways:
*) porting effort is easier, because only the simple instructions
need to be implemented in arch-specific code
*) we could apply BURG rules to the trees and do pattern matching
on them to optimize the expressions according to the host cpu
The issue is: where do we do such conversion from coarse opcodes to
simple expressions?
* Doing the conversion in method_to_ir ()
Some of these conversions can certainly be done in method_to_ir (),
but it's not always easy to decide which are better done there and
which in a different pass.
For example, let's take ldlen: in the mono implementation, ldlen
can be simply implemented with a load from a fixed position in the
array object:
len = [reg + maxlen_offset]
However, ldlen carries also semantics information: the result is the
length of the array, and since in the CLR arrays are of fixed size,
this information can be useful to later do bounds check removal.
If we convert this opcode in method_to_ir () we lost some useful
information for further optimizations.
In some other ways, decomposing an opcode in method_to_ir() may
allow for better optimizations later on (need to come up with an
example here ...).
* Doing the conversion in inssel.brg
Some conversion may be done inside the burg rules: this has the
disadvantage that the instruction selector is not run again on
the resulting expression tree and we could miss some optimization
(this is what effectively happens with the coarse opcodes in the old
jit). This may also interfere with an efficient local register allocator.
It may be possible to add an extension in monoburg that allows a rule
such as:
recheck: LDLEN (reg) {
create an expression tree representing LDLEN
and return it
}
When the monoburg label process gets back a recheck, it will run
the labeling again on the resulting expression tree.
If this is possible at all (and in an efficient way) is a
question for dietmar:-)
It should be noted, though, that this may not always work, since
some complex IL opcodes may require a series of expression trees
and handling such cases in monoburg could become quite hairy.
For example, think of opcode that need to do multiple actions on the
same object: this basically means a DUP...
On the other end, if a complex opcode needs a DUP, monoburg doesn't
actually need to create trees if it emits the instructions in
the correct sequence and maintains the right values in the registers
(usually the values that need a DUP are not changed...). How
this integrates with the current register allocator is not clear, since
that assigns registers based on the rule, but the instructions emitted
by the rules may be different (this already happens with the current JIT
where a MULT is replaced with lea etc...).
* Doing it in a separate pass.
Doing the conversion in a separate pass over the instructions
is another alternative. This can be done right after method_to_ir ()
or after the SSA pass (since the IR after the SSA pass should look
almost like the IR we get back from method_to_ir ()).
This has the following advantages:
*) monoburg will handle only the simple opcodes (makes porting easier)
*) the instruction selection will be run on all the additional trees
*) it's easier to support coarse opcodes that produce multiple expression
trees (and apply the monoburg selector on all of them)
*) the SSA optimizer will see the original opcodes and will be able to use
the semantic info associated with them
The disadvantage is that this is a separate pass on the code and
it takes time (how much has not been measured yet, though).
With this approach, we may also be able to have C implementations
of some of the opcodes: this pass would insert a function call to
the C implementation (for example in the cases when first porting
to a new arch and implemenating some stuff may be too hard in asm).
* Extended basic blocks
IL code needs a lot of checks, bounds checks, overflow checks,
type checks and so on. This potentially increases by a lot
the number of basic blocks in a control flow graph. However,
all such blocks end up with a throw opcode that gives control to the
exception handling mechanism.
After method_to_ir () a MonoBasicBlock can be considered a sort
of extended basic block where the additional exits don't point
to basic blocks in the same procedure (at least when the method
doesn't have exception tables).
We need to make sure the passes following method_to_ir () can cope
with such kinds of extended basic blocks (especially the passes
that we need to apply to all the methods: as a start, we could
skip SSA optimizations for methods with exception clauses...)
+79
View File
@@ -0,0 +1,79 @@
mono_array_clone
mono_array_clone_in_domain
mono_array_full_copy
mono_array_new
mono_array_new_full
mono_array_new_specific
mono_async_result_new
mono_class_get_allocation_ftn
mono_class_vtable
mono_compile_method
mono_delegate_ctor
mono_field_get_value
mono_field_get_value_object
mono_field_set_value
mono_field_static_get_value
mono_field_static_set_value
mono_get_constant_value_from_blob
mono_get_delegate_invoke
mono_install_compile_method
mono_install_free_method
mono_install_handler
mono_install_remoting_trampoline
mono_install_runtime_invoke
mono_install_trampoline
mono_ldstr
mono_load_remote_field
mono_load_remote_field_new
mono_message_init
mono_message_invoke
mono_method_call_message_new
mono_method_return_message_restore
mono_object_castclass_mbyref
mono_object_clone
mono_object_get_class
mono_object_get_domain
mono_object_get_virtual_method
mono_object_isinst
mono_object_isinst_mbyref
mono_object_new
mono_object_new_alloc_specific
mono_object_new_fast
mono_object_new_from_token
mono_object_new_specific
mono_object_unbox
mono_print_unhandled_exception
mono_property_get_value
mono_property_set_value
mono_raise_exception
mono_release_type_locks
mono_remote_class
mono_remote_class_vtable
mono_remoting_invoke
mono_runtime_class_init
mono_runtime_delegate_invoke
mono_runtime_exec_main
mono_runtime_exec_managed_code
mono_runtime_free_method
mono_runtime_get_main_args
mono_runtime_invoke
mono_runtime_invoke_array
mono_runtime_object_init
mono_runtime_run_main
mono_store_remote_field
mono_store_remote_field_new
mono_string_from_utf16
mono_string_intern
mono_string_is_interned
mono_string_new
mono_string_new_len
mono_string_new_size
mono_string_new_utf16
mono_string_new_wrapper
mono_string_to_utf16
mono_string_to_utf8
mono_type_initialization_init
mono_unhandled_exception
mono_upgrade_remote_class
mono_value_box
mono_wait_handle_new
+828
View File
@@ -0,0 +1,828 @@
dlfree
dlmalloc
dlmemalign
free_list_index_of
g_printerr
g_ptr_array_remove_fast
invoke_protected_memory_method
mini_debugger_init
mini_debugger_main
mini_debugger_set_attach_ok
mini_debug_running_inside_mdb
mini_emit_initobj
mini_emit_stobj
mono_add_internal_call
mono_aot_register_globals
mono_aot_register_module
mono_array_addr_with_size
mono_array_class_get
mono_array_clone
mono_array_element_size
mono_array_length
mono_array_new
mono_array_new_full
mono_array_new_specific
mono_assemblies_cleanup
mono_assembly_close
mono_assembly_get_image
mono_assembly_get_main
mono_assembly_get_object
mono_assembly_getrootdir
mono_assembly_load
mono_assembly_loaded
mono_assembly_loaded_full
mono_assembly_load_full
mono_assembly_name_free
mono_assembly_name_get_culture
mono_assembly_name_get_name
mono_assembly_name_get_pubkeytoken
mono_assembly_name_get_version
mono_assembly_name_new
mono_assembly_names_equal
mono_assembly_open
mono_bitset_alloc_size
mono_bitset_clear
mono_bitset_clear_all
mono_bitset_clone
mono_bitset_copyto
mono_bitset_count
mono_bitset_equal
mono_bitset_find_first
mono_bitset_find_first_unset
mono_bitset_find_last
mono_bitset_find_start
mono_bitset_foreach
mono_bitset_free
mono_bitset_intersection
mono_bitset_intersection_2
mono_bitset_invert
mono_bitset_mem_new
mono_bitset_new
mono_bitset_set
mono_bitset_set_all
mono_bitset_size
mono_bitset_sub
mono_bitset_test
mono_bitset_test_bulk
mono_bitset_union
mono_bounded_array_class_get
mono_breakpoint_clean_code
mono_check_corlib_version
mono_class_array_element_size
mono_class_data_size
mono_class_describe_statics
mono_class_enum_basetype
mono_class_from_generic_parameter
mono_class_from_mono_type
mono_class_from_name
mono_class_from_name_case
mono_class_from_typeref
mono_class_get
mono_class_get_byref_type
mono_class_get_element_class
mono_class_get_events
mono_class_get_event_token
mono_class_get_field
mono_class_get_field_from_name
mono_class_get_fields
mono_class_get_field_token
mono_class_get_flags
mono_class_get_full
mono_class_get_image
mono_class_get_interfaces
mono_class_get_method_from_name
mono_class_get_method_from_name_flags
mono_class_get_methods
mono_class_get_name
mono_class_get_namespace
mono_class_get_nested_types
mono_class_get_nesting_type
mono_class_get_parent
mono_class_get_properties
mono_class_get_property_from_name
mono_class_get_property_token
mono_class_get_rank
mono_class_get_type
mono_class_get_type_token
mono_class_inflate_generic_method
mono_class_inflate_generic_type
mono_class_init
mono_class_instance_size
mono_class_interface_offset
mono_class_is_assignable_from
mono_class_is_enum
mono_class_is_subclass_of
mono_class_is_valid_enum
mono_class_is_valuetype
mono_class_min_align
mono_class_name_from_token
mono_class_num_events
mono_class_num_fields
mono_class_num_methods
mono_class_num_properties
mono_class_value_size
mono_class_vtable
mono_cli_rva_image_map
mono_code_manager_commit
mono_code_manager_destroy
mono_code_manager_foreach
mono_code_manager_invalidate
mono_code_manager_new
mono_code_manager_new_dynamic
mono_code_manager_reserve
mono_code_manager_reserve_align
mono_code_manager_set_read_only
mono_code_manager_size
mono_compile_method
mono_config_for_assembly
mono_config_parse
mono_config_parse_memory
mono_config_string_for_assembly_file
mono_context_get
mono_context_get_desc
mono_context_set
mono_counters_cleanup
mono_counters_dump
mono_counters_enable
mono_counters_register
mono_custom_attrs_construct
mono_custom_attrs_free
mono_custom_attrs_from_assembly
mono_custom_attrs_from_class
mono_custom_attrs_from_event
mono_custom_attrs_from_field
mono_custom_attrs_from_index
mono_custom_attrs_from_method
mono_custom_attrs_from_param
mono_custom_attrs_from_property
mono_custom_attrs_get_attr
mono_custom_attrs_has_attr
mono_debug_add_method
_mono_debug_address_from_il_offset
mono_debug_close_image
mono_debug_close_mono_symbol_file
mono_debug_domain_create
mono_debug_domain_unload
mono_debug_find_method
mono_debug_free_source_location
mono_debugger_abort_runtime_invoke
mono_debugger_breakpoint_callback
mono_debugger_call_exception_handler
mono_debugger_check_breakpoints
mono_debugger_check_interruption
mono_debugger_check_runtime_version
mono_debugger_class_initialized
mono_debugger_event
mono_debugger_event_create_appdomain
mono_debugger_event_unload_appdomain
mono_debugger_extended_notification
mono_debugger_handle_exception
mono_debugger_insert_breakpoint
mono_debugger_insert_breakpoint_full
mono_debugger_insert_method_breakpoint
mono_debugger_lock
mono_debugger_method_has_breakpoint
MONO_DEBUGGER__notification_function
mono_debugger_register_class_init_callback
mono_debugger_remove_breakpoint
mono_debugger_remove_class_init_callback
mono_debugger_remove_method_breakpoint
mono_debugger_run_finally
mono_debugger_runtime_invoke
mono_debugger_thread_cleanup
mono_debugger_thread_created
_mono_debugger_throw_exception
mono_debugger_trampoline_compiled
_mono_debugger_unhandled_exception
mono_debugger_unlock
mono_debug_il_offset_from_address
mono_debug_list_add
mono_debug_list_remove
mono_debug_lookup_locals
mono_debug_lookup_method
mono_debug_lookup_method_addresses
mono_debug_lookup_source_location
mono_debug_open_image_from_memory
mono_debug_open_mono_symbols
mono_debug_print_stack_frame
mono_debug_print_vars
mono_debug_symfile_get_line_numbers
mono_debug_symfile_lookup_locals
mono_debug_symfile_lookup_location
mono_debug_symfile_lookup_method
mono_debug_using_mono_debugger
mono_declsec_flags_from_assembly
mono_declsec_flags_from_class
mono_declsec_flags_from_method
mono_declsec_get_assembly_action
mono_declsec_get_class_action
mono_declsec_get_demands
mono_declsec_get_inheritdemands_class
mono_declsec_get_inheritdemands_method
mono_declsec_get_linkdemands
mono_declsec_get_method_action
mono_digest_get_public_token
mono_disasm_code
mono_disasm_code_one
mono_dllmap_insert
mono_domain_assembly_open
mono_domain_create
mono_domain_create_appdomain
mono_domain_finalize
mono_domain_foreach
mono_domain_free
mono_domain_from_appdomain
mono_domain_get
mono_domain_get_by_id
mono_domain_get_id
mono_domain_has_type_resolve
mono_domain_is_unloading
mono_domain_owns_vtable_slot
mono_domain_set
mono_domain_set_internal
mono_domain_try_type_resolve
mono_domain_try_unload
mono_domain_unload
mono_emit_native_call
mono_environment_exitcode_get
mono_environment_exitcode_set
mono_error_cleanup
mono_error_get_error_code
mono_error_get_message
mono_error_init
mono_error_init_flags
mono_error_ok
mono_escape_uri_string
mono_event_get_add_method
mono_event_get_flags
mono_event_get_name
mono_event_get_object
mono_event_get_parent
mono_event_get_raise_method
mono_event_get_remove_method
mono_exception_from_name
mono_exception_from_name_domain
mono_exception_from_name_msg
mono_exception_from_name_two_strings
mono_exception_from_token
mono_exception_from_token_two_strings
mono_field_from_token
mono_field_full_name
mono_field_get_data
mono_field_get_flags
mono_field_get_name
mono_field_get_object
mono_field_get_offset
mono_field_get_parent
mono_field_get_type
mono_field_get_value
mono_field_get_value_object
mono_field_set_value
mono_field_static_get_value
mono_field_static_set_value
mono_file_map
mono_file_map_close
mono_file_map_fd
mono_file_map_open
mono_file_map_size
mono_file_unmap
mono_free
mono_free_bstr
mono_free_method
mono_free_verify_list
mono_gc_collect
mono_gc_collection_count
mono_gc_enable_events
mono_gc_get_generation
mono_gc_get_heap_size
mono_gc_get_used_size
mono_gchandle_free
mono_gchandle_get_target
mono_gchandle_new
mono_gchandle_new_weakref
mono_gc_invoke_finalizers
mono_gc_is_finalizer_thread
mono_gc_max_generation
mono_gc_out_of_memory
mono_gc_wbarrier_arrayref_copy
mono_gc_wbarrier_generic_nostore
mono_gc_wbarrier_generic_store
mono_gc_wbarrier_object_copy
mono_gc_wbarrier_set_arrayref
mono_gc_wbarrier_set_field
mono_gc_wbarrier_value_copy
mono_get_array_class
mono_get_boolean_class
mono_get_byte_class
mono_get_char_class
mono_get_config_dir
mono_get_corlib
mono_get_dbnull_object
mono_get_delegate_invoke
mono_get_double_class
mono_get_enum_class
mono_get_exception_appdomain_unloaded
mono_get_exception_argument
mono_get_exception_argument_null
mono_get_exception_argument_out_of_range
mono_get_exception_arithmetic
mono_get_exception_array_type_mismatch
mono_get_exception_bad_image_format
mono_get_exception_bad_image_format2
mono_get_exception_cannot_unload_appdomain
mono_get_exception_class
mono_get_exception_divide_by_zero
mono_get_exception_execution_engine
mono_get_exception_field_access
mono_get_exception_file_not_found
mono_get_exception_file_not_found2
mono_get_exception_index_out_of_range
mono_get_exception_invalid_cast
mono_get_exception_invalid_operation
mono_get_exception_io
mono_get_exception_method_access
mono_get_exception_missing_field
mono_get_exception_missing_method
mono_get_exception_not_implemented
mono_get_exception_not_supported
mono_get_exception_null_reference
mono_get_exception_out_of_memory
mono_get_exception_overflow
mono_get_exception_reflection_type_load
mono_get_exception_security
mono_get_exception_serialization
mono_get_exception_stack_overflow
mono_get_exception_synchronization_lock
mono_get_exception_thread_abort
mono_get_exception_thread_interrupted
mono_get_exception_thread_state
mono_get_exception_type_initialization
mono_get_exception_type_load
mono_get_int16_class
mono_get_int32_class
mono_get_int64_class
mono_get_intptr_class
mono_get_machine_config
mono_get_method
mono_get_method_full
mono_get_object_class
mono_get_root_domain
mono_get_sbyte_class
mono_get_single_class
mono_get_string_class
mono_get_thread_class
mono_get_trampoline_func
mono_get_uint16_class
mono_get_uint32_class
mono_get_uint64_class
mono_get_uintptr_class
mono_get_void_class
mono_g_hash_table_destroy
mono_g_hash_table_find
mono_g_hash_table_foreach
mono_g_hash_table_foreach_remove
mono_g_hash_table_insert
mono_g_hash_table_lookup
mono_g_hash_table_lookup_extended
mono_g_hash_table_new
mono_g_hash_table_new_full
mono_g_hash_table_new_type
mono_g_hash_table_remove
mono_g_hash_table_replace
mono_g_hash_table_size
mono_guid_to_string
mono_hazard_pointer_get
mono_image_addref
mono_image_close
mono_image_ensure_section
mono_image_ensure_section_idx
mono_image_fixup_vtable
mono_image_get_assembly
mono_image_get_entry_point
mono_image_get_filename
mono_image_get_guid
mono_image_get_name
mono_image_get_public_key
mono_image_get_resource
mono_image_get_strong_name
mono_image_get_table_info
mono_image_get_table_rows
mono_image_has_authenticode_entry
mono_image_is_dynamic
mono_image_loaded
mono_image_loaded_by_guid
mono_image_loaded_by_guid_full
mono_image_loaded_full
mono_image_load_file_for_image
mono_image_lookup_resource
mono_image_open
mono_image_open_from_data
mono_image_open_from_data_full
mono_image_open_from_data_with_name
mono_image_open_full
mono_image_rva_map
mono_images_cleanup
mono_image_strerror
mono_image_strong_name_position
mono_init
mono_init_from_assembly
mono_init_version
mono_install_assembly_load_hook
mono_install_assembly_postload_refonly_search_hook
mono_install_assembly_postload_search_hook
mono_install_assembly_preload_hook
mono_install_assembly_refonly_preload_hook
mono_install_assembly_refonly_search_hook
mono_install_assembly_search_hook
mono_install_runtime_cleanup
mono_install_threadpool_item_hooks
mono_install_threadpool_thread_hooks
mono_inst_name
mono_is_debugger_attached
mono_jit_cleanup
mono_jit_exec
mono_jit_info_get_code_size
mono_jit_info_get_code_start
mono_jit_info_get_method
mono_jit_info_table_find
mono_jit_init
mono_jit_init_version
mono_jit_parse_options
mono_jit_set_aot_only
mono_jit_set_trace_options
mono_ldstr
mono_ldtoken
mono_llvm_build_aligned_load
mono_llvm_build_alloca
mono_llvm_build_load
mono_llvm_create_ee
mono_llvm_dispose_ee
mono_llvm_dump_value
mono_llvm_optimize_method
mono_llvm_replace_uses_of
mono_load_remote_field
mono_load_remote_field_new
mono_local_deadce
mono_locks_dump
mono_lookup_internal_call
mono_lookup_pinvoke_call
mono_main
mono_marshal_string_to_utf16
mono_md5_final
mono_md5_get_digest
mono_md5_get_digest_from_file
mono_md5_init
mono_md5_update
mono_mempool_alloc
mono_mempool_alloc0
mono_mempool_contains_addr
mono_mempool_destroy
mono_mempool_empty
mono_mempool_get_allocated
mono_mempool_invalidate
mono_mempool_new
mono_mempool_new_size
mono_mempool_stats
mono_mempool_strdup
mono_metadata_blob_heap
mono_metadata_cleanup
mono_metadata_compute_size
mono_metadata_custom_attrs_from_index
mono_metadata_declsec_from_index
mono_metadata_decode_blob_size
mono_metadata_decode_row
mono_metadata_decode_row_col
mono_metadata_decode_signed_value
mono_metadata_decode_table_row
mono_metadata_decode_table_row_col
mono_metadata_decode_value
mono_metadata_encode_value
mono_metadata_events_from_typedef
mono_metadata_field_info
mono_metadata_field_info_with_mempool
mono_metadata_free_array
mono_metadata_free_inflated_signature
mono_metadata_free_marshal_spec
mono_metadata_free_method_signature
mono_metadata_free_mh
mono_metadata_free_type
mono_metadata_generic_class_is_valuetype
mono_metadata_get_constant_index
mono_metadata_get_inflated_signature
mono_metadata_get_marshal_info
mono_metadata_guid_heap
mono_metadata_implmap_from_method
mono_metadata_interfaces_from_typedef
mono_metadata_load_generic_params
mono_metadata_locate
mono_metadata_locate_token
mono_metadata_methods_from_event
mono_metadata_methods_from_property
mono_metadata_nested_in_typedef
mono_metadata_nesting_typedef
mono_metadata_packing_from_typedef
mono_metadata_parse_array
mono_metadata_parse_custom_mod
mono_metadata_parse_field_type
mono_metadata_parse_marshal_spec
mono_metadata_parse_method_signature
mono_metadata_parse_method_signature_full
mono_metadata_parse_mh
mono_metadata_parse_mh_full
mono_metadata_parse_param
mono_metadata_parse_signature
mono_metadata_parse_type
mono_metadata_parse_typedef_or_ref
mono_metadata_parse_type_full
mono_metadata_properties_from_typedef
mono_metadata_signature_alloc
mono_metadata_signature_dup
mono_metadata_signature_equal
mono_metadata_string_heap
mono_metadata_token_from_dor
mono_metadata_translate_token_index
mono_metadata_typedef_from_field
mono_metadata_typedef_from_method
mono_metadata_type_equal
mono_metadata_type_hash
mono_metadata_user_string
mono_method_body_get_object
mono_method_can_access_field
mono_method_can_access_method
mono_method_desc_free
mono_method_desc_from_method
mono_method_desc_full_match
mono_method_desc_match
mono_method_desc_new
mono_method_desc_search_in_class
mono_method_desc_search_in_image
mono_method_full_name
mono_method_get_class
mono_method_get_flags
mono_method_get_generic_container
mono_method_get_header
mono_method_get_index
mono_method_get_last_managed
mono_method_get_marshal_info
mono_method_get_name
mono_method_get_object
mono_method_get_param_names
mono_method_get_param_token
mono_method_get_signature
mono_method_get_signature_full
mono_method_get_token
mono_method_get_unmanaged_thunk
mono_method_has_marshal_info
mono_method_header_get_clauses
mono_method_header_get_code
mono_method_header_get_locals
mono_method_header_get_num_clauses
mono_method_signature
mono_method_verify
mono_mlist_alloc
mono_mlist_append
mono_mlist_get_data
mono_mlist_last
mono_mlist_length
mono_mlist_next
mono_mlist_prepend
mono_mlist_remove_item
mono_mlist_set_data
mono_mlist_set_next
mono_module_file_get_object
mono_module_get_object
mono_monitor_enter
mono_monitor_exit
mono_monitor_try_enter
mono_mprotect
mono_object_castclass_mbyref
mono_object_clone
mono_object_describe
mono_object_describe_fields
mono_object_get_class
mono_object_get_domain
mono_object_get_size
mono_object_get_virtual_method
mono_object_is_alive
mono_object_isinst
mono_object_isinst_mbyref
mono_object_new
mono_object_new_alloc_specific
mono_object_new_fast
mono_object_new_from_token
mono_object_new_specific
mono_object_unbox
mono_opcode_name
mono_opcode_value
mono_op_to_op_imm_noemul
mono_pagesize
mono_param_get_objects
mono_parse_default_optimizations
mono_path_canonicalize
mono_path_resolve_symlinks
mono_pe_file_open
mono_perfcounters_init
mono_personality
mono_pmip
mono_print_method_from_ip
mono_print_thread_dump
mono_print_thread_dump_from_ctx
mono_print_unhandled_exception
mono_profiler_coverage_get
mono_profiler_get_events
mono_profiler_install
mono_profiler_install_allocation
mono_profiler_install_appdomain
mono_profiler_install_assembly
mono_profiler_install_class
mono_profiler_install_code_buffer_new
mono_profiler_install_code_chunk_destroy
mono_profiler_install_code_chunk_new
mono_profiler_install_coverage_filter
mono_profiler_install_enter_leave
mono_profiler_install_exception
mono_profiler_install_gc
mono_profiler_install_gc_moves
mono_profiler_install_iomap
mono_profiler_install_jit_compile
mono_profiler_install_jit_end
mono_profiler_install_method_free
mono_profiler_install_method_invoke
mono_profiler_install_module
mono_profiler_install_monitor
mono_profiler_install_runtime_initialized
mono_profiler_install_statistical
mono_profiler_install_statistical_call_chain
mono_profiler_install_thread
mono_profiler_install_transition
mono_profiler_load
mono_profiler_set_events
mono_property_get_flags
mono_property_get_get_method
mono_property_get_name
mono_property_get_object
mono_property_get_parent
mono_property_get_set_method
mono_property_get_value
mono_property_hash_destroy
mono_property_hash_insert
mono_property_hash_lookup
mono_property_hash_new
mono_property_hash_remove_object
mono_property_set_value
mono_ptr_class_get
mono_raise_exception
mono_reflection_free_type_info
mono_reflection_get_custom_attrs
mono_reflection_get_custom_attrs_blob
mono_reflection_get_custom_attrs_by_type
mono_reflection_get_custom_attrs_data
mono_reflection_get_custom_attrs_info
mono_reflection_get_token
mono_reflection_get_type
mono_reflection_parse_type
mono_reflection_type_from_name
mono_register_bundled_assemblies
mono_register_machine_config
mono_replace_ins
mono_runtime_class_init
mono_runtime_cleanup
mono_runtime_delegate_invoke
mono_runtime_exec_main
mono_runtime_exec_managed_code
mono_runtime_get_main_args
mono_runtime_init
mono_runtime_invoke
mono_runtime_invoke_array
mono_runtime_is_shutting_down
mono_runtime_object_init
mono_runtime_quit
mono_runtime_run_main
mono_security_core_clr_require_elevated_permissions
mono_security_enable_core_clr
mono_security_set_core_clr_platform_callback
mono_sem_post
mono_sem_timedwait
mono_sem_wait
mono_set_break_policy
mono_set_defaults
mono_set_dirs
mono_set_is_debugger_attached
mono_set_signal_chaining
mono_sha1_final
mono_sha1_get_digest
mono_sha1_get_digest_from_file
mono_sha1_init
mono_sha1_update
mono_signature_explicit_this
mono_signature_get_call_conv
mono_signature_get_desc
mono_signature_get_param_count
mono_signature_get_params
mono_signature_get_return_type
mono_signature_hash
mono_signature_is_instance
mono_signature_vararg_start
mono_signbit_double
mono_signbit_float
mono_stack_walk
mono_stack_walk_no_il
mono_store_remote_field
mono_store_remote_field_new
mono_string_chars
mono_string_equal
mono_string_from_bstr
mono_string_from_utf16
mono_string_hash
mono_stringify_assembly_name
mono_string_intern
mono_string_is_interned
mono_string_length
mono_string_new
mono_string_new_len
mono_string_new_size
mono_string_new_utf16
mono_string_new_wrapper
mono_string_to_utf16
mono_string_to_utf8
mono_table_info_get_rows
mono_thread_attach
mono_thread_cleanup
mono_thread_create
mono_thread_current
mono_thread_detach
mono_thread_exit
mono_thread_get_main
mono_thread_get_undeniable_exception
mono_thread_hazardous_free_or_queue
mono_thread_hazardous_try_free_all
mono_thread_manage
mono_thread_new_init
mono_thread_set_main
mono_thread_set_manage_callback
mono_threads_get_default_stacksize
mono_threads_install_cleanup
mono_threads_request_thread_dump
mono_threads_set_default_stacksize
mono_thread_stop
mono_trace_set_level_string
mono_trace_set_mask_string
mono_type_create_from_typespec
mono_type_full_name
mono_type_generic_inst_is_valuetype
mono_type_get_array_type
mono_type_get_class
mono_type_get_desc
mono_type_get_modifiers
mono_type_get_name
mono_type_get_object
mono_type_get_ptr_type
mono_type_get_signature
mono_type_get_type
mono_type_get_underlying_type
mono_type_is_byref
mono_type_is_pointer
mono_type_is_reference
mono_type_is_struct
mono_type_is_valid_enum_basetype
mono_type_is_void
mono_type_size
mono_type_stack_size
mono_type_to_unmanaged
mono_unhandled_exception
mono_unicode_from_external
mono_unicode_to_external
mono_upgrade_remote_class_wrapper
mono_utf8_from_external
mono_utf8_validate_and_len
mono_utf8_validate_and_len_with_bounds
mono_valloc
mono_value_box
mono_value_copy
mono_value_copy_array
mono_value_describe_fields
mono_verify_corlib
mono_vfree
mono_vtable_get_static_field_data
mono_walk_stack
mono_win32_compat_CopyMemory
mono_win32_compat_FillMemory
mono_win32_compat_MoveMemory
mono_win32_compat_ZeroMemory
_ZN20MonoJITMemoryManager11AllocateGOTEv
_ZN20MonoJITMemoryManager12allocateStubEPKN4llvm11GlobalValueEjj
_ZN20MonoJITMemoryManager13allocateSpaceEij
_ZN20MonoJITMemoryManager13SetDlsymTableEPv
_ZN20MonoJITMemoryManager14allocateGlobalEjj
_ZN20MonoJITMemoryManager15endFunctionBodyEPKN4llvm8FunctionEPhS4_
_ZN20MonoJITMemoryManager17endExceptionTableEPKN4llvm8FunctionEPhS4_S4_
_ZN20MonoJITMemoryManager17setMemoryWritableEv
_ZN20MonoJITMemoryManager17startFunctionBodyEPKN4llvm8FunctionERj
_ZN20MonoJITMemoryManager19setMemoryExecutableEv
_ZN20MonoJITMemoryManager19startExceptionTableEPKN4llvm8FunctionERj
_ZN20MonoJITMemoryManager24deallocateMemForFunctionEPKN4llvm8FunctionE
_ZN20MonoJITMemoryManagerC1Ev
_ZN20MonoJITMemoryManagerC2Ev
_ZN20MonoJITMemoryManagerD0Ev
_ZN20MonoJITMemoryManagerD1Ev
_ZN20MonoJITMemoryManagerD2Ev
+16
View File
@@ -0,0 +1,16 @@
<h1>Mono 1.0 Release Notes</h1>
<h2>What does Mono Include</h2>
<h2>Missing functionality</h2>
<p>COM support.
<p>EnterpriseServices are non-existant.
<p>Windows.Forms is only available as a preview, it is not
completed nor stable.
<h3>Assembly: System.Drawing</h3>
<p>System.Drawing.Printing is not supported.
+7 -66
View File
@@ -1,75 +1,33 @@
<h2>Assemblies</h2>
<p>Code in .NET and Mono is distributed in assemblies, there
are shipped typically in files with the extension .exe or
.dll, and they are files that extend
the <a href="https://en.wikipedia.org/wiki/Portable_Executable">Portable
Executable</a> file format to include the Common Intermediate
Language metadata and portable code.
<p>Assemblies are typically loaded either from a given file
path, or using an <a href="#assembly-name">Assembly Name</a>
to load them from the Global Assembly Cache.
<p>The Mono Assembly API contains method for dealing with
<a href="#assembly-name">assembly
names</a>, <a href="cil_assembly_load">loading assemblies</a>,
<a href="#working">accessing assembly
components</a>, <a href="#modules">modules</a> and
some <a href="#advanced">advanced</a> features.
<p>Assemblies contain one or
more images, the actual vessels for your code.
The <a href="mono-api-image.html">Image API</a> documents the
functions that operate on <code>MonoImage *</code>.
<h3>Synopsis</h3>
<div class="mapi-header">
<div class="header">
#include &lt;metadata/assembly.h&gt;
typedef struct _MonoImage MonoImage;
typedef struct _MonoAssembly MonoAssembly;
@API_IDX@
</div>
<a name="cil_assembly_load"/></a>
<a name="cil_assembly_load"/>
<h3>Assembly Loading</h3>
<h4><a name="api:mono_assembly_open">mono_assembly_open</a></h4>
<h4><a name="api:mono_assembly_close">mono_assembly_close</a></h4>
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
<h4><a name="api:mono_assembly_load">mono_assembly_load</a></h4>
<h4><a name="api:mono_assembly_load_full">mono_assembly_load_full</a></h4>
<h4><a name="api:mono_assembly_loaded">mono_assembly_loaded</a></h4>
<h4><a name="api:mono_assembly_load_from">mono_assembly_load_from</a></h4>
<h4><a name="api:mono_assembly_load_from_full">mono_assembly_load_from_full</a></h4>
<h4><a name="api:mono_assembly_load_with_partial_name">mono_assembly_load_with_partial_name</a></h4>
<h4><a name="api:mono_assembly_open">mono_assembly_open</a></h4>
<h4><a name="api:mono_assembly_open_full">mono_assembly_open_full</a></h4>
<h4><a name="api:mono_set_assemblies_path">mono_set_assemblies_path</a></h4>
<h4><a name="api:mono_set_rootdir">mono_set_rootdir</a></h4>
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
<a name="working"/>
<h3>Working with Assemblies</h3>
<h4><a name="api:mono_assembly_fill_assembly_name">mono_assembly_fill_assembly_name</a></h4>
<h4><a name="api:mono_assembly_foreach">mono_assembly_foreach</a></h4>
<h4><a name="api:mono_assembly_get_image">mono_assembly_get_image</a></h4>
<h4><a name="api:mono_assembly_get_main">mono_assembly_get_main</a></h4>
<h4><a name="api:mono_assembly_get_name">mono_assembly_get_name</a></h4>
<h4><a name="api:mono_assembly_getrootdir">mono_assembly_getrootdir</a></h4>
<h4><a name="api:mono_assembly_get_assemblyref">mono_assembly_get_assemblyref</a></h4>
<h4><a name="api:mono_assembly_loaded_full">mono_assembly_loaded_full</a></h4>
<h4><a name="api:mono_assembly_load_reference">mono_assembly_load_reference</a></h4>
<h4><a name="api:mono_assembly_load_references">mono_assembly_load_references</a></h4>
<h4><a name="api:mono_assembly_load_module">mono_assembly_load_module</a></h4>
<h4><a name="api:mono_assembly_invoke_load_hook">mono_assembly_invoke_load_hook</a></h4>
<h4><a name="api:mono_assembly_invoke_search_hook">mono_assembly_invoke_search_hook</a></h4>
<h4><a name="api:mono_assembly_set_main">mono_assembly_set_main</a></h4>
<h4><a name="api:mono_assembly_setrootdir">mono_assembly_setrootdir</a></h4>
<h4><a name="api:mono_register_config_for_assembly">mono_register_config_for_assembly</a></h4>
<h4><a name="api:mono_register_symfile_for_assembly">mono_register_symfile_for_assembly</a></h4>
<a name="assembly-name"></a>
<h3>Assembly Names</h3>
<p>The MonoAssemblyName contains the full identity of an
@@ -80,16 +38,10 @@ typedef struct _MonoAssembly MonoAssembly;
href="http://www.mono-project.com/monodoc/T:System.Reflection.AssemblyName">System.Reflection.AssemblyName</a>
managed type.
<h4><a name="api:mono_assembly_name_new">mono_assembly_name_new</a></h4>
<h4><a name="api:mono_assembly_name_get_name">mono_assembly_name_get_name</a></h4>
<h4><a name="api:mono_assembly_name_get_culture">mono_assembly_name_get_culture</a></h4>
<h4><a name="api:mono_assembly_name_get_version">mono_assembly_name_get_version</a></h4>
<h4><a name="api:mono_assembly_name_get_pubkeytoken">mono_assembly_name_get_pubkeytoken</a></h4>
<h4><a name="api:mono_assembly_name_free">mono_assembly_name_free</a></h4>
<h4><a name="api:mono_stringify_assembly_name">mono_stringify_assembly_name</a></h4>
<h4><a name="api:mono_assembly_names_equal">mono_assembly_names_equal</a></h4>
<a href="modules"/>
<h3>Modules</h3>
<p>An assembly is made up of one or more modules.
@@ -97,14 +49,3 @@ typedef struct _MonoAssembly MonoAssembly;
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
<a href="advanced"/>
<h3>Advanced</h3>
<h4><a name="api:mono_install_assembly_load_hook">mono_install_assembly_load_hook</a></h4>
<h4><a name="api:mono_install_assembly_search_hook">mono_install_assembly_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_refonly_search_hook">mono_install_assembly_refonly_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_preload_hook">mono_install_assembly_preload_hook</a></h4>
<h4><a name="api:mono_install_assembly_refonly_preload_hook">mono_install_assembly_refonly_preload_hook</a></h4>
<h4><a name="api:mono_install_assembly_postload_search_hook">mono_install_assembly_postload_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_postload_refonly_search_hook">mono_install_assembly_postload_refonly_search_hook</a></h4>
+15 -71
View File
@@ -1,108 +1,52 @@
<h2>Class Operations</h2>
<p>The operations on <code>MonoClass*</code> allow you to
query a number of properties of a .NET class from the C API.
<p>This page contains information
for <a href="#class-getting">how to obtain a MonoClass*</a>,
how to <a href="#class-work">probe for different
features of a MonoClass*</a> and APIs
to <a href="#class-members">access class members</a> and
<a href="#class-fields">access fields</a>. To access
methods, see the <a href="mono-api-methods.html">method
documentation API</a>.
<a name="class-getting"></a>
<h3>Getting a MonoClass</h3>
<p>You typically would obtain a <code>MonoClass*</code>
pointer by using a combination of the <code>MonoImage*</code>
where the type is located, the namespace and name using the
<code><a href="api:mono_class_from_name">mono_class_from_name</a></code>
or
the <code><a href="api:mono_class_from_name_case">mono_class_from_name_case</a></code>
APIs or by using
the <code><a href="api:mono_class_from_typeref">mono_class_from_typeref</a></code>
or <code><a href="api:mono_class_from_typeref">mono_class_from_typeref_checked</a></code>
methods.
<p>For low-level access, you can get the <code>MonoClass
*</code> from an image and an ECMA type token relative to
the <code>MonoImage*</code> by using <a href="api:mono_class_get">mono_class_get</a>.
<h4><a name="api:mono_class_get">mono_class_get</a></h4>
<h4><a name="api:mono_class_from_mono_type">mono_class_from_mono_type</a></h4>
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
<h4><a name="api:mono_class_from_typeref_checked">mono_class_from_typeref_checked</a></h4>
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
<h3>Working with a MonoClass</h3>
<h4><a name="api:mono_class_array_element_size">mono_class_array_element_size</a></h4>
<h4><a name="api:mono_class_data_size">mono_class_data_size</a></h4>
<h4><a name="api:mono_class_enum_basetype">mono_class_enum_basetype</a></h4>
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
<h4><a name="api:mono_class_from_mono_type">mono_class_from_mono_type</a></h4>
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
<h4><a name="api:mono_class_get_byref_type">mono_class_get_byref_type</a></h4>
<h4><a name="api:mono_class_get_element_class">mono_class_get_element_class</a></h4>
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
<h4><a name="api:mono_class_get_event_token">mono_class_get_event_token</a></h4>
<h4><a name="api:mono_class_get_field_from_name">mono_class_get_field_from_name</a></h4>
<h4><a name="api:mono_class_get_field">mono_class_get_field</a></h4>
<h4><a name="api:mono_class_get_fields">mono_class_get_fields</a></h4>
<h4><a name="api:mono_class_get_field_token">mono_class_get_field_token</a></h4>
<h4><a name="api:mono_class_get_flags">mono_class_get_flags</a></h4>
<h4><a name="api:mono_class_get_full">mono_class_get_full</a></h4>
<h4><a name="api:mono_class_get_image">mono_class_get_image</a></h4>
<h4><a name="api:mono_class_get_interfaces">mono_class_get_interfaces</a></h4>
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
<h4><a name="api:mono_class_get">mono_class_get</a></h4>
<h4><a name="api:mono_class_get_name">mono_class_get_name</a></h4>
<h4><a name="api:mono_class_get_namespace">mono_class_get_namespace</a></h4>
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
<h4><a name="api:mono_class_get_nesting_type">mono_class_get_nesting_type</a></h4>
<h4><a name="api:mono_class_get_parent">mono_class_get_parent</a></h4>
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
<h4><a name="api:mono_class_get_property_token">mono_class_get_property_token</a></h4>
<h4><a name="api:mono_class_get_rank">mono_class_get_rank</a></h4>
<h4><a name="api:mono_class_get_type">mono_class_get_type</a></h4>
<h4><a name="api:mono_class_get_type_token">mono_class_get_type_token</a></h4>
<h4><a name="api:mono_class_implements_interface">mono_class_implements_interface</a></h4>
<h4><a name="api:mono_class_inflate_generic_method">mono_class_inflate_generic_method</a></h4>
<h4><a name="api:mono_class_inflate_generic_type">mono_class_inflate_generic_type</a></h4>
<h4><a name="api:mono_class_init">mono_class_init</a></h4>
<h4><a name="api:mono_class_instance_size">mono_class_instance_size</a></h4>
<h4><a name="api:mono_class_is_assignable_from">mono_class_is_assignable_from</a></h4>
<h4><a name="api:mono_class_is_delegate">mono_class_is_delegate</a></h4>
<h4><a name="api:mono_class_is_enum">mono_class_is_enum</a></h4>
<h4><a name="api:mono_class_is_subclass_of">mono_class_is_subclass_of</a></h4>
<h4><a name="api:mono_class_is_valuetype">mono_class_is_valuetype</a></h4>
<h4><a name="api:mono_class_min_align">mono_class_min_align</a></h4>
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
<h4><a name="api:mono_class_num_events">mono_class_num_events</a></h4>
<h4><a name="api:mono_class_num_fields">mono_class_num_fields</a></h4>
<h4><a name="api:mono_class_num_methods">mono_class_num_methods</a></h4>
<h4><a name="api:mono_class_num_properties">mono_class_num_properties</a></h4>
<h4><a name="api:mono_class_value_size">mono_class_value_size</a></h4>
<h4><a name="api:mono_class_vtable">mono_class_vtable</a></h4>
<a name="class-members"></a>
<h3>Getting Class Members</h3>
<h4><a name="api:mono_class_get_fields">mono_class_get_fields</a></h4>
<h4><a name="api:mono_class_get_field_from_name">mono_class_get_field_from_name</a></h4>
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
<h4><a name="api:mono_class_get_method_from_name_flags">mono_class_get_method_from_name_flags</a></h4>
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
<a name="class-fields"></a>
<h3>Fields</h3>
<h4><a name="api:mono_field_get_data">mono_field_get_data</a></h4>
<h4><a name="api:mono_field_get_offset">mono_field_get_offset</a></h4>
<h4><a name="api:mono_field_full_name">mono_field_full_name</a></h4>
<h3>Method Accessibility</h3>
<h4><a name="api:mono_method_can_access_field">mono_method_can_access_field</a></h4>
<h4><a name="api:mono_method_can_access_method">mono_method_can_access_method</a></h4>
<p>
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
+10
View File
@@ -0,0 +1,10 @@
<h3>Code manager</h3>
<h4><a name="api:mono_code_manager_commit">mono_code_manager_commit</a></h4>
<h4><a name="api:mono_code_manager_destroy">mono_code_manager_destroy</a></h4>
<h4><a name="api:mono_code_manager_foreach">mono_code_manager_foreach</a></h4>
<h4><a name="api:mono_code_manager_invalidate">mono_code_manager_invalidate</a></h4>
<h4><a name="api:mono_code_manager_new_dynamic">mono_code_manager_new_dynamic</a></h4>
<h4><a name="api:mono_code_manager_new">mono_code_manager_new</a></h4>
<h4><a name="api:mono_code_manager_reserve">mono_code_manager_reserve</a></h4>
Loaded 100 of 44454 files, more files were not shown because too many files have changed in this diff. Show more