mono.git
13 years agoMerge branch 'master' of github.com:mono/mono
Jonathan Pobst [Mon, 20 Sep 2010 16:28:39 +0000 (11:28 -0500)]
Merge branch 'master' of github.com:mono/mono

13 years agoDon't check inferred dynamic type arguments against best candidate constraints.
Marek Safar [Mon, 20 Sep 2010 15:08:46 +0000 (16:08 +0100)]
Don't check inferred dynamic type arguments against best candidate constraints.

13 years agoMore missing conversions between object and dynamic
Marek Safar [Mon, 20 Sep 2010 11:22:57 +0000 (12:22 +0100)]
More missing conversions between object and dynamic

13 years agoIgnor test since its fix has been reverted
Jb Evain [Mon, 20 Sep 2010 15:12:04 +0000 (17:12 +0200)]
Ignor test since its fix has been reverted

13 years agoRevert "[Fix] Fix the default binder when selecting params methods."
Jb Evain [Mon, 20 Sep 2010 15:04:58 +0000 (17:04 +0200)]
Revert "[Fix] Fix the default binder when selecting params methods."

This reverts commit 6a7443d8089c92f722d87c81f6c7d22c2c0deafb.

13 years ago[monodis] Ensure we don't try to free uninitialized memory.
Alan McGovern [Mon, 20 Sep 2010 13:03:42 +0000 (14:03 +0100)]
[monodis] Ensure we don't try to free uninitialized memory.

13 years ago[640285] Initialize this in current block instead of original block
Marek Safar [Mon, 20 Sep 2010 08:34:07 +0000 (09:34 +0100)]
[640285] Initialize this in current block instead of original block

13 years agoParse secondary static like expression as a non-cast
Marek Safar [Mon, 20 Sep 2010 08:04:25 +0000 (09:04 +0100)]
Parse secondary static like expression as a non-cast

13 years agoAvoid a superfluous copy.
Rodrigo Kumpera [Thu, 16 Sep 2010 20:44:13 +0000 (17:44 -0300)]
Avoid a superfluous copy.

        * sgen-marksweep.c (major_scan_card_table): Avoid an extra
        copy under overlapping card.

13 years agoCleanup definitions and clearly states what are the tunables.
Rodrigo Kumpera [Thu, 16 Sep 2010 20:33:35 +0000 (17:33 -0300)]
Cleanup definitions and clearly states what are the tunables.

* sgen-cardtable.h: Auto detect the need for
SGEN_HAVE_OVERLAPPING_CARDS.

* sgen-cardtable.h: Add CARD_TABLE_BITS and make CARD_COUNT_BITS
depend on it.

* sgen-cardtable.h: Document which and how each tunable affect
runtime of sgen.

13 years agoFix los scanning with overlapping cards.
Rodrigo Kumpera [Thu, 16 Sep 2010 20:32:32 +0000 (17:32 -0300)]
Fix los scanning with overlapping cards.

* sgen-cardtable.c (sgen_cardtable_scan_object): If the
card range overflows the cardtable, split the scanning in
two steps.

13 years agoUse card pointer as induction variable.
Rodrigo Kumpera [Thu, 16 Sep 2010 19:43:11 +0000 (16:43 -0300)]
Use card pointer as induction variable.

* sgen-cardtable.c (sgen_cardtable_scan_object): Use
the card pointer as the loop induction variable so
it's easier handle overlapping cards and overflow.

13 years agoFix overlapping support for copy/clear functions.
Rodrigo Kumpera [Thu, 16 Sep 2010 18:26:23 +0000 (15:26 -0300)]
Fix overlapping support for copy/clear functions.

* sgen-cardtable.c: The copy/clear functions may write
into invalid memory if a block lives across the edges
of the cardtable address range.

13 years agoFix OP_CARDTABLE to support overlapping cards.
Rodrigo Kumpera [Thu, 16 Sep 2010 17:11:18 +0000 (14:11 -0300)]
Fix OP_CARDTABLE to support overlapping cards.

* cpu-x86.md: Increase the max size of OP_CARDTABLE.

* mini-x86.c (mono_arch_output_basic_block): If a mask
is returned, emit code for it.

13 years agoDocument some cardtable requirements and add an assert.
Rodrigo Kumpera [Wed, 15 Sep 2010 23:50:53 +0000 (20:50 -0300)]
Document some cardtable requirements and add an assert.

13 years agoAdd store_mem_imm to the x86 machine description. Fixes #640377.
Zoltan Varga [Sun, 19 Sep 2010 17:43:52 +0000 (19:43 +0200)]
Add store_mem_imm to the x86 machine description. Fixes #640377.

13 years agoMove the setting of mono_lmf, mono_lmf_addr and mono_jit_tls into separate functions...
Zoltan Varga [Sat, 18 Sep 2010 05:50:19 +0000 (07:50 +0200)]
Move the setting of mono_lmf, mono_lmf_addr and mono_jit_tls into separate functions to reduce the number of #ifdefs.

13 years agoMake MonoThreadCleanupFunc take an InternalThread instead of a Thread.
Zoltan Varga [Sat, 18 Sep 2010 05:47:37 +0000 (07:47 +0200)]
Make MonoThreadCleanupFunc take an InternalThread instead of a Thread.
Move its definition to threads-types.h since it is not public API. Use this
to remove the workaround in thread_cleanup () so the JIT info for threads is
properly cleaned up at shutdown.

13 years agoFix escaping on relative URI
Sebastien Pouliot [Fri, 17 Sep 2010 19:26:33 +0000 (15:26 -0400)]
Fix escaping on relative URI

* System/Uri.cs: While parsing only escape the path for absolute URI.
Do not unescape relative URI in ToString and avoid calling
AppendQueryAndFragment on them (relative) since both are not parsed as
such.

* Test/System/UriTest2.cs: Add test case to show that a relative URI is
NOT escaped by ToString

13 years agoAdd support for IPv6 in System.Uri.DnsSafeHost
Sebastien Pouliot [Fri, 17 Sep 2010 18:10:25 +0000 (14:10 -0400)]
Add support for IPv6 in System.Uri.DnsSafeHost

* System/Uri.cs: Fix DnsSafeHost for IPv6 addresses, removing the []
brackets and adding, when available, the scope id

* Test/System/UriTest2.cs: Add DnsSafeHost test cases for IPv6 address,
one without scope id, another with a scope id

13 years agoFix Uri when a colon ':' is not followed by a port number
Sebastien Pouliot [Fri, 17 Sep 2010 15:47:20 +0000 (11:47 -0400)]
Fix Uri when a colon ':' is not followed by a port number

* System/Uri.cs: Fix parsing the port/host when a ':' is present without
a port number on non-file:// URI

* Test/System/UriTest2.cs: Add test cases where an URI contains a ':'
but is not followed by a port number

13 years agoFix typo (host vs hostName) in one of UriBuilder ctor
Sebastien Pouliot [Fri, 17 Sep 2010 13:57:02 +0000 (09:57 -0400)]
Fix typo (host vs hostName) in one of UriBuilder ctor

* System/UriBuilder.cs: Fix typo from previous change

* Test/System/UriBuilderTest.cs: Add regression test for that .ctor

13 years agoUriBuilder is more forgiving (than Uri) when parsing string uri
Sebastien Pouliot [Fri, 17 Sep 2010 13:17:31 +0000 (09:17 -0400)]
UriBuilder is more forgiving (than Uri) when parsing string uri

* System/UriBuilder.cs: Refactor constructors to share Initialization
methods. Allow a second chance to .ctor(string) to parse an URI by
assuming it's an HTTP URI

* Test/System/UriBuilderTest.cs: Add test case with string URI that do
not provide a scheme - UriBuilder will default them to http:// even if
Uri would not parse them

13 years agoFix case where 'incomplete' IPv6 address are used in UriBuilder
Sebastien Pouliot [Fri, 17 Sep 2010 12:43:39 +0000 (08:43 -0400)]
Fix case where 'incomplete' IPv6 address are used in UriBuilder

* System/UriBuilder.cs: Fix Host property to add the missing brackets
on IPv6 address (if missing from input)

* Test/System/UriBuilderTest.cs: Add test cases with incomplete IPv6
addresses. Add test case with a relative Uri used in UriBuilder ctor

13 years agoUpdate UriBuilder.Path once the Uri has been created
Sebastien Pouliot [Fri, 17 Sep 2010 11:55:39 +0000 (07:55 -0400)]
Update UriBuilder.Path once the Uri has been created

* System/UriBuilder.cs: Update UriBuilder.Path once the Uri has been
created using Uri.AbsolutePath

* Test/System/UriBuilderTest.cs: Add test case with path missing the
initial / which shows the UriBuilder.Path property is being updated
after the creation of the Uri instance.

13 years ago3.5 version of Sys.Web.Ext is gone
Andrew Jorgensen [Fri, 17 Sep 2010 18:21:44 +0000 (12:21 -0600)]
3.5 version of Sys.Web.Ext is gone

13 years agoProtocolMapping needed config section, default items and support in ServiceHostBase.
Atsushi Eno [Fri, 17 Sep 2010 15:23:37 +0000 (00:23 +0900)]
ProtocolMapping needed config section, default items and support in ServiceHostBase.

13 years agoRevert my last patch
Gonzalo Paniagua Javier [Fri, 17 Sep 2010 14:52:31 +0000 (10:52 -0400)]
Revert my last patch

Not only it didn't fix anything but it broke a test.

13 years agoUser operators are resolved in a batch, pick up the foremost
Marek Safar [Fri, 17 Sep 2010 14:45:12 +0000 (15:45 +0100)]
User operators are resolved in a batch, pick up the foremost

13 years agoMake the dynamic sites container name really unique
Marek Safar [Fri, 17 Sep 2010 14:41:19 +0000 (15:41 +0100)]
Make the dynamic sites container name really unique

13 years agoFixes preference of a user-defined conversion operators over lifted conversion operators
Marek Safar [Fri, 17 Sep 2010 12:36:53 +0000 (13:36 +0100)]
Fixes preference of a user-defined conversion operators over lifted conversion operators

13 years agoFixes cloning of a variable declarator.
Marek Safar [Fri, 17 Sep 2010 10:16:43 +0000 (11:16 +0100)]
Fixes cloning of a variable declarator.

13 years agoImplement predefined binary enum operators involving an implicit user conversion
Marek Safar [Fri, 17 Sep 2010 10:06:40 +0000 (11:06 +0100)]
Implement predefined binary enum operators involving an implicit user conversion

13 years agoRecover wrong invalid character constants.
Marek Safar [Thu, 16 Sep 2010 12:31:52 +0000 (13:31 +0100)]
Recover wrong invalid character constants.

13 years agoChanged mode of a few files from 755 to 644
Marek Habersack [Fri, 17 Sep 2010 08:33:07 +0000 (10:33 +0200)]
Changed mode of a few files from 755 to 644

13 years agoFix typo in Makefile causing build breakage
Rolf Bjarne Kvinge [Fri, 17 Sep 2010 08:32:27 +0000 (10:32 +0200)]
Fix typo in Makefile causing build breakage

13 years agoAdd working .svc handler in 4.0 web.config, fix standard endpoint handling and get...
Atsushi Eno [Fri, 17 Sep 2010 07:00:16 +0000 (16:00 +0900)]
Add working .svc handler in 4.0 web.config, fix standard endpoint handling and get xsp4 working.

13 years agoMerge branch 'master' of github.com:mono/mono
Atsushi Eno [Fri, 17 Sep 2010 03:34:58 +0000 (12:34 +0900)]
Merge branch 'master' of github.com:mono/mono

13 years agoMore .spec reorgs
Andrew Jorgensen [Thu, 16 Sep 2010 23:12:12 +0000 (17:12 -0600)]
More .spec reorgs

13 years agoOnly build one version of libmonoruntimemoon.la (the convenience lib)
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 22:18:40 +0000 (00:18 +0200)]
Only build one version of libmonoruntimemoon.la (the convenience lib)

13 years agoAdd a configure option to disable building the shared libmono library
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 22:17:39 +0000 (00:17 +0200)]
Add a configure option to disable building the shared libmono library

13 years agoDisable assembly remapping for moonlight
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 10:20:01 +0000 (12:20 +0200)]
Disable assembly remapping for moonlight

13 years agoAdd configure option for disabling assembly remapping
Rolf Bjarne Kvinge [Wed, 15 Sep 2010 10:19:28 +0000 (12:19 +0200)]
Add configure option for disabling assembly remapping

13 years agoUpdate UriBuilder.Host once the Uri has been created
Sebastien Pouliot [Thu, 16 Sep 2010 21:29:55 +0000 (17:29 -0400)]
Update UriBuilder.Host once the Uri has been created

* System/UriBuilder.cs: Update UriBuilder.Host once the Uri has been
created

* Test/System/UriBuilderTest.cs: Add test case with IPv6 host (address)
which shows the UriBuilder.Host property is being updated after the
creation of the Uri instance.

13 years agoFix known (NotWorking) test cases for UriBuilder and drop NET_2_0 defines
Sebastien Pouliot [Thu, 16 Sep 2010 20:35:47 +0000 (16:35 -0400)]
Fix known (NotWorking) test cases for UriBuilder and drop NET_2_0 defines

* System/Uri.cs: Add EscapeCommonHexBracketsQuery constant since ? also
needs to be escaped from UriBuilder
* System/UriBuilder.cs: Fix Equals (escaping '?') and UserInfo. Fix NRE
in ctor that was fixed in FX4. Drop NET_2_0 defines.

* Test/System/UriBuilderTest.cs: Drop NET_2_0 defines and add new ones
for NET_4_0. Add more asserts in the test cases that were failing.

13 years agoFix line endings
Sebastien Pouliot [Thu, 16 Sep 2010 20:17:39 +0000 (16:17 -0400)]
Fix line endings

* System/UriBuilder.cs: Fix line endings

13 years agoFix path reduction when %2e are used in an URI
Sebastien Pouliot [Thu, 16 Sep 2010 18:35:32 +0000 (14:35 -0400)]
Fix path reduction when %2e are used in an URI

* System/Uri.cs (Reduce): Process %2E while reducing a path. Avoid, when
possible, the creation of StringBuilder and replace ArrayList with
generics

* Test/System/UriTest2.cs: Add test case where %2e and %2E are used

13 years agoFix (existing and) remaining NotWorking tests for System.Uri
Sebastien Pouliot [Thu, 16 Sep 2010 15:49:21 +0000 (11:49 -0400)]
Fix (existing and) remaining NotWorking tests for System.Uri

* System/Uri.cs: Fix TryCreate overloads wrt NotWorking unit tests

* Test/System/UriTest2.cs: Remove NET_2_0 and ONLY_1_1 defines from tests
* Test/System/UriTest3.cs: Remove NET_2_0 and [Category("NotWorking")]
from tests. Merge MakeRelativeUri_Uri_Null_[MS|Mono] together since the
(reported) issue was fixed in NET_4_0

13 years agoFixes to System.Uri wrt 'file' scheme
Sebastien Pouliot [Thu, 16 Sep 2010 14:37:50 +0000 (10:37 -0400)]
Fixes to System.Uri wrt 'file' scheme

* System/Uri.cs: Fix 'file' URI since they can't have a query

* Test/System/UriTest2.cs: Add new test case for 'file' URIs and
some asserts on "custom" URI (which do support queries)

13 years agoFix typo. It has been there for 4 years.
Gonzalo Paniagua Javier [Thu, 16 Sep 2010 17:12:41 +0000 (13:12 -0400)]
Fix typo. It has been there for 4 years.

Why on earth this wasn't found earlier? $20 reward to whoever gives a
plausible explanation.

13 years agoBuild monodoc before mdoc.
Jonathan Pryor [Thu, 16 Sep 2010 17:09:56 +0000 (13:09 -0400)]
Build monodoc before mdoc.

mdoc deps on monodoc.  Doh!

13 years agoMake mdoc a 2.0 app, not a 4.0 app.
Jonathan Pryor [Thu, 16 Sep 2010 16:23:55 +0000 (12:23 -0400)]
Make mdoc a 2.0 app, not a 4.0 app.

The problem is build sanity: it's possible to disable the 4.0 profile
(--with-profile4=no) while not disabling documentation building
(--with-mcs-docs=yes is the default).  The result would be a 4.0-less
build, and thus no mdoc, and thus no mdoc to assemble the documentation,
and thus a build break as we attempted to use an app during the build
which didn't exist.

Oops.

mdoc doesn't need to be a 4.0 app anyway...

13 years agoReuse the same delegate for checking if the runtime is shutting down.
Miguel de Icaza [Thu, 16 Sep 2010 15:51:14 +0000 (11:51 -0400)]
Reuse the same delegate for checking if the runtime is shutting down.

Instead of creating a new delegate every time that WaitAny is invoked,
reuse the same delegate.   We also keep a permanent reference to prevent
this delegate being collected.

Thsi should fix 592981

13 years agoAdd ProtocolMapping support.
Atsushi Eno [Thu, 16 Sep 2010 14:23:44 +0000 (23:23 +0900)]
Add ProtocolMapping support.

13 years ago[639603] Don't emit statements as expressions when they don't support it.
Marek Safar [Thu, 16 Sep 2010 11:30:27 +0000 (12:30 +0100)]
[639603] Don't emit statements as expressions when they don't support it.

13 years ago[639407] Clean up more static stuff to fix repl instances.
Marek Safar [Thu, 16 Sep 2010 11:17:33 +0000 (12:17 +0100)]
[639407] Clean up more static stuff to fix repl instances.

13 years agoImplement some additional logic around AddServiceEndpoint() to achive standard endpoi...
Atsushi Eno [Thu, 16 Sep 2010 08:58:11 +0000 (17:58 +0900)]
Implement some additional logic around AddServiceEndpoint() to achive standard endpoint support.

13 years agoReturn new instance.
Atsushi Eno [Thu, 16 Sep 2010 08:57:38 +0000 (17:57 +0900)]
Return new instance.

13 years agoContract is settable in 4.0.
Atsushi Eno [Thu, 16 Sep 2010 08:56:57 +0000 (17:56 +0900)]
Contract is settable in 4.0.

13 years agoAdd the trickiest line that had me; AddElementName is not on ConfigurationProperty...
Atsushi Eno [Thu, 16 Sep 2010 08:55:38 +0000 (17:55 +0900)]
Add the trickiest line that had me; AddElementName is not on ConfigurationProperty here.

13 years agoRemove 2 extra calls to gettimeofday.
Gonzalo Paniagua Javier [Thu, 16 Sep 2010 03:53:04 +0000 (23:53 -0400)]
Remove 2 extra calls to gettimeofday.

13 years agoRemove weak links for monitors.
Mark Probst [Thu, 26 Aug 2010 07:12:45 +0000 (09:12 +0200)]
Remove weak links for monitors.

mono_runtime_cleanup() calls mono_monitor_cleanup(), which frees the
memory associated with monitors.  Some of them still have weak links
registered, which leads to a crash when calling mono_domain_free()
later on.

13 years ago[sgen] Avoid doing an unnecessary gettimeofday().
Mark Probst [Wed, 15 Sep 2010 23:30:32 +0000 (01:30 +0200)]
[sgen] Avoid doing an unnecessary gettimeofday().

13 years agoAdd System.Net (4.0 and 2.0) to mono-core in .spec
Andrew Jorgensen [Wed, 15 Sep 2010 23:28:57 +0000 (17:28 -0600)]
Add System.Net (4.0 and 2.0) to mono-core in .spec

13 years agoFix System.Uri wrt 'ftp' scheme
Sebastien Pouliot [Wed, 15 Sep 2010 21:01:45 +0000 (17:01 -0400)]
Fix System.Uri wrt 'ftp' scheme

* System/Uri.cs: Fix 'ftp' support, mostly same fixes as 'nntp'

* Test/System/UriTest2.cs: Add new test case for 'ftp' including
dealing with custom port and user/password data.

13 years agoFix System.Uri wrt 'nntp://' URIs
Sebastien Pouliot [Wed, 15 Sep 2010 19:42:35 +0000 (15:42 -0400)]
Fix System.Uri wrt 'nntp://' URIs

* System/Uri.cs: Fix 'nntp' support which is close to 'news' (no query)
but still has an Host, Autority, Port...

* Test/System/UriTest2.cs: Add test cases for 'nntp://'

13 years agoRemove more code (after shortcut) on 'news:' Uri
Sebastien Pouliot [Wed, 15 Sep 2010 18:33:57 +0000 (14:33 -0400)]
Remove more code (after shortcut) on 'news:' Uri

* System/Uri.cs: Remove condition/code wrt 'news:' that occurs after
the new "shortcut".

13 years agoMultiple fixes for URI using 'news:' scheme
Sebastien Pouliot [Wed, 15 Sep 2010 18:12:49 +0000 (14:12 -0400)]
Multiple fixes for URI using 'news:' scheme

* System/Uri.cs: Make it easier to reuse EscapeString without adding new
boolean parameters. Shortcut parsing for 'news' since it's simpler (no
query, host, authority...) Avoid creating StringBuilder instance when
[un]escape-ing empty strings
* System/UriBuilder.cs: Adjust for EscapeString API change
* System/UriParser.cs: Fix default news port and adjust for EscapeString
API change

* Test/System/UriTest2.cs: Add test case for 'news:' showing the lack
of Query and Port (but support for Fragment) and the escape-ing
differences.

13 years agoFix Uri.Segments property so the internal, cached, array cannot be modified
Sebastien Pouliot [Wed, 15 Sep 2010 13:11:56 +0000 (09:11 -0400)]
Fix Uri.Segments property so the internal, cached, array cannot be modified

* System/Uri.cs: Keep the cached 'segments' as a List<string> and return
a new array (ToArray) when the Segment propery is called.

* Test/System/UriTest.cs: Add test case to show that the segments cannot
be modified by accessing the elements of the Segment property.

13 years agoFix Uri.ToString when forward slashes are used
Sebastien Pouliot [Wed, 15 Sep 2010 12:23:18 +0000 (08:23 -0400)]
Fix Uri.ToString when forward slashes are used

* System/Uri.cs: Fix ToString (Unescape) to ignore '\\' and let it be
outputed as %5C
* Test/System/UriTest2.cs: Add test case for above

13 years agoFix Uri/Segments wrt driver letters nad (forward) slashes
Sebastien Pouliot [Wed, 15 Sep 2010 11:54:54 +0000 (07:54 -0400)]
Fix Uri/Segments wrt driver letters nad (forward) slashes

* System/Uri.cs: Reimplement Segment property to reduce copying and
string allocations. Fix case with slashes (separate, not single,
segments)

* Test/System/UriTest2.cs: Add test cases for segments on an URI that
contains a drive letter and (forward) slashes.

13 years agoRevert
Miguel de Icaza [Wed, 15 Sep 2010 21:17:12 +0000 (17:17 -0400)]
Revert

13 years ago[xbuild] Use files referenced by resx for dependency check.
Ankit Jain [Wed, 15 Sep 2010 19:24:25 +0000 (00:54 +0530)]
[xbuild] Use files referenced by resx for dependency check.

For .resx resource files, check files referenced by the resx
file also, to determine whether to resgen it or not.

IsResgenRequired () has been taken from MonoDevelop
(main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MD1/MD1DotNetProjectHandler.cs)

13 years ago[xbuild] Fix case sensitive environment variables for ToolTask.
Ankit Jain [Wed, 15 Sep 2010 19:11:21 +0000 (00:41 +0530)]
[xbuild] Fix case sensitive environment variables for ToolTask.

Use ProcessStringDictionary in ToolTask for EnvironmentVariables,
as this retains the original case of the keys. Without this
environment vars would all be passed as lowercase!

This was removed in a previous patch by mistake.

13 years agoMake the thread-id field be of the proper size on 64 bit machines.
Miguel de Icaza [Wed, 15 Sep 2010 18:24:49 +0000 (14:24 -0400)]
Make the thread-id field be of the proper size on 64 bit machines.

This error was found by Gonzalo when he was looking at another problem
when thread IDs overflowed ints.

Currently we use gpointers in the io-layer for the threadid, but we were
only exposing the value as an int32.   The good news is that the code is
not really used right now, but could cause problems in the future as we
extend Process.

13 years ago[xbuild] Fix references to Microsoft.Build.* assemblies for 3.5 .
Ankit Jain [Wed, 15 Sep 2010 17:18:35 +0000 (22:48 +0530)]
[xbuild] Fix references to Microsoft.Build.* assemblies for 3.5 .

13 years agoRemove copying of misplaced duplicate of System.Web.Extensions.Design.dll
Marek Safar [Wed, 15 Sep 2010 18:01:01 +0000 (19:01 +0100)]
Remove copying of misplaced duplicate of System.Web.Extensions.Design.dll

13 years agoFix a few CRLF issues
Raja R Harinath [Wed, 15 Sep 2010 17:38:42 +0000 (23:08 +0530)]
Fix a few CRLF issues

13 years ago[xbuild] Add ToolTask.EnvironmentVariables property.
Ankit Jain [Wed, 15 Sep 2010 16:16:40 +0000 (21:46 +0530)]
[xbuild] Add ToolTask.EnvironmentVariables property.

* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
(EnvironmentVariables): New.
(ExecuteTool): Merge EnvironmentVariables with
EnvironmentOverride
* class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs
(Resgen.Execute): Use EnvironmentVariables to set MONO_IOMAP=drive .

13 years ago[xbuild] Fix a race condition in ToolTask.
Ankit Jain [Wed, 15 Sep 2010 13:39:34 +0000 (19:09 +0530)]
[xbuild] Fix a race condition in ToolTask.

 * class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
 (ExecuteTool): When StartProcess returns, the process has already .Start()'ed
 If we subscribe to the output events after that, then for processes that
 finish executing before we can subscribe, we won't get the output/error
 events at all! So, pass the handlers to StartProcess itself, so that
 they get added before the process is started.

13 years ago[637935] Fixed 3.5 version of msbuild dlls to reference 3.5 version of the engine
Marek Safar [Wed, 15 Sep 2010 16:39:53 +0000 (17:39 +0100)]
[637935] Fixed 3.5 version of msbuild dlls to reference 3.5 version of the engine

MONO_PATH does not work for subsequent dlls, so have to workaround it by
using full path for dlls in 3.5 profile which does not have it's own
mscorlib

13 years agomono-configuration-crypto is a 4.0 assembly, not 2.0
Andrew Jorgensen [Wed, 15 Sep 2010 16:31:05 +0000 (10:31 -0600)]
mono-configuration-crypto is a 4.0 assembly, not 2.0

13 years agoFix the embedded mono on OSX code to support a symlinked mono into the framework.
Geoff Norton [Wed, 15 Sep 2010 16:24:24 +0000 (12:24 -0400)]
Fix the embedded mono on OSX code to support a symlinked mono into the framework.

The embedding code looks at the executable name, and builds the embedding profile
from that, however the default install has a /usr/bin/mono symlink pointing to
/Library/Frameworks/Mono.framework.  We now resolve the symlink before allowing
the embedding code to proceed.

13 years agoThere are actually some 3.5 only dlls, thanks to ankit for poiting out.
Marek Safar [Wed, 15 Sep 2010 15:25:18 +0000 (16:25 +0100)]
There are actually some 3.5 only dlls, thanks to ankit for poiting out.

13 years agoEnsure that the GC doesn't collect the delegate we pass off to native code.
Jonathan Pryor [Wed, 15 Sep 2010 14:37:36 +0000 (10:37 -0400)]
Ensure that the GC doesn't collect the delegate we pass off to native code.

(Hopefully) Fixes #592981.

This is esoteric, with no test case, so I can only assume that the cause for
the crash reported in #592981 is that Boehm is collecting the shutting_down
delegate reference while we're still in native code (which sounds more like a
Boehm bug, as it shouldn't be collecting memory while we're in a P/Invoke).

Hopefully making the delegate more explicit and using GC.KeepAlive() will keep
the delegate from being collected by the GC during the P/Invoke call.

13 years agoRemoved class from net_3_5 subdirs
Marek Safar [Wed, 15 Sep 2010 14:22:23 +0000 (15:22 +0100)]
Removed class from net_3_5 subdirs

13 years agoDocumentation for a few garbage collector APIs.
Paolo Molaro [Wed, 15 Sep 2010 13:24:04 +0000 (15:24 +0200)]
Documentation for a few garbage collector APIs.

13 years ago UCONTEXT_REG_RCX was defined twice on OpenBSD, and RBX was missing. Fix that.
Zoltan Varga [Wed, 15 Sep 2010 13:04:20 +0000 (15:04 +0200)]
 UCONTEXT_REG_RCX was defined twice on OpenBSD, and RBX was missing. Fix that.

13 years agoFix monotouch bootstrap.
Rodrigo Kumpera [Wed, 15 Sep 2010 12:56:04 +0000 (09:56 -0300)]
Fix monotouch bootstrap.

* Type.cs (GetTypeCodeImpl): If the type is a TypeBuilder
call into specific code.

* TypeBuilder.cs (GetTypeCodeInternal): New method that
handles enums correctly.

This change is required because calling into the runtime
with incomplete TypeBuilders cause the runtime to crash.

13 years agoRecover wrong embedded statement syntax
Marek Safar [Wed, 15 Sep 2010 12:43:36 +0000 (13:43 +0100)]
Recover wrong embedded statement syntax

13 years agoNew test.
Marek Safar [Wed, 15 Sep 2010 12:43:04 +0000 (13:43 +0100)]
New test.

13 years agoRemove net_3_5 dirs to fix 4.0 dependency and not to build some dlls twice
Marek Safar [Wed, 15 Sep 2010 12:02:42 +0000 (13:02 +0100)]
Remove net_3_5 dirs to fix 4.0 dependency and not to build some dlls twice

13 years agomono_trace already adds a newline to trace messages, don't add another one
Rolf Bjarne Kvinge [Fri, 10 Sep 2010 10:06:29 +0000 (12:06 +0200)]
mono_trace already adds a newline to trace messages, don't add another one

13 years ago[639403] Fixes the endless recursion with hacked EOF
Marek Safar [Wed, 15 Sep 2010 09:23:01 +0000 (10:23 +0100)]
[639403] Fixes the endless recursion with hacked EOF

13 years agoEncode correctly all constants into a payload
Marek Safar [Tue, 14 Sep 2010 18:15:31 +0000 (19:15 +0100)]
Encode correctly all constants into a payload

13 years agobuilt a separate libmonoruntime for moonlight, so we can do -DMOONLIGHT just in the...
Chris Toshok [Wed, 15 Sep 2010 05:58:25 +0000 (22:58 -0700)]
built a separate libmonoruntime for moonlight, so we can do -DMOONLIGHT just in the moonlight lib instead of globally.

13 years agoif we're building with moonlight enabled, don't build mdb.
Chris Toshok [Thu, 9 Sep 2010 20:33:13 +0000 (13:33 -0700)]
if we're building with moonlight enabled, don't build mdb.

13 years ago[xbuild] Fix handling of tool output.
Ankit Jain [Tue, 14 Sep 2010 23:06:59 +0000 (04:36 +0530)]
[xbuild] Fix handling of tool output.

The *StreamChanged event for ProcessWrapper may get parts of
long lines, so process the complete ones that we have (for matching
error/warning), and save rest for processing when the rest of it
is received.

Also, don't ignore empty lines.

* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs

13 years agoGetProcessById now works on the Mac too
Gonzalo Paniagua Javier [Tue, 14 Sep 2010 22:24:49 +0000 (18:24 -0400)]
GetProcessById now works on the Mac too

Ditto.
This should fix MD problems when SHM is disabled.

13 years agoCorrectly handle the (uncommon) 4 slashes //// case in Uri
Sebastien Pouliot [Tue, 14 Sep 2010 20:54:38 +0000 (16:54 -0400)]
Correctly handle the (uncommon) 4 slashes //// case in Uri

* System/Uri.cs: Handle multiple starting slash correctly
* Test/System/UriTest2.cs: Add test cases with multiple slashes