Compare commits

...
1936 Commits
Author SHA1 Message Date
Geoff Norton 3b5c655c05 Fix the build on windows 2010-10-05 15:59:29 -04:00
Michael Hutchinson 3b6f5c3308 [io-layer] Cope with pids > 16 bits
Fixes an issue in Process where "pseudo-handles" for processes with
pids > 16 bits would overflow and start getting treated as normal
handles. This would frequently segfault MonoDevelop on MacOS.
2010-10-05 13:38:52 -04:00
Geoff Norton 579a0ca72b Its possible that we're calling Process_free_internal on a pseudo-handle.
When we are not using SHM we use psuedo handles to return processes from pids,
however we dont guard against pseudo-handles in CloseProcess, which could lead to
calling unref on a fake handle.
2010-10-05 13:02:07 -04:00
Marek Habersack 577dfd5d78 [asp.net] Fix for bug #643298. A typo prevented the EnableViewStateMac from being recognized in the Page directive. 2010-10-05 08:04:46 +02:00
Miguel de Icaza 57dae7a311 Retval is not a reserved keyword, fixes 643345 2010-10-03 12:31:14 -04:00
Zoltan Varga a21c08a924 Check the debugger_thread_exited condition in a loop to guard against spurious wakeups. Fixes #642780. 2010-10-01 23:53:09 +02:00
Zoltan Varga e763cd5010 Fix code buffer reallocation check for OP_SWITCH on arm. 2010-10-01 16:27:51 +02:00
Zoltan Varga 964d3433d8 Fix a deadlock introduced by 5c2e3bf7 by using a separate low level lock to procect access to the file_share_hash hash table. Fixes #642985. 2010-10-01 10:03:27 +02:00
Gonzalo Paniagua Javier 89f92560a1 Invoke the callback in separate threads
The callbacks need to be invoked in different threads to avoid clogging
	the IO pool.

	Fixes bug #639656.
2010-09-30 01:41:22 -04:00
Marek Safar b1752875e8 [642437] Nested types have to check type arguments only and not full class 2010-09-29 09:06:09 -06:00
Alan McGovern 2a308efd0a [System.ServiceModel] Fix a few potential exceptions in background threads
Pass the listener as it's own async state so that we avoid potential null derefs in the callback. Also wrap the BeginAccept and EndAccept calls in their own try/catches in case they throw an exception.
2010-09-29 08:46:52 -06:00
Jérémie Laval bff2b8d6c4 [ReaderWriterLockSlim] Fix state corruption and race in a special interleaving.
Fix possible state corruption in the case where Upgradeable wasn't reactivating its read bit after a downgrade and set events accordingly. Fix possible race where a write process wannabe could step in the middle of Upgradeable actually upgrading to write mode.

Conflicts:

	mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs
2010-09-29 15:45:21 +01:00
Marek Habersack 9f2d34d689 [asp.net] Remove lock recursion in Cache.ExpireItems 2010-09-28 22:36:04 +02:00
Atsushi Eno 37edaa18f7 TCP channel listener: remove extra complication (threads) in the previous change. 2010-09-28 10:57:39 -06:00
Atsushi Eno 77d12442c4 Rework TCP listening model, and fix AcceptTcpClient() to not drop timed out requests that actually steals next requests in the air. 2010-09-28 10:57:38 -06:00
Jérémie Laval 3ad4bb8e3d Turn Is*LockHeld properties into thread-specific values in ReaderWriterLockSlim. Add corresponding unit tests. 2010-09-28 13:24:25 +01:00
Marek Habersack 67c7faf279 [asp.net] Get rid of a possible (although unlikely) race condition when acquiring locks
The patch removes a small race condition where a boolean flag is set after acquiring a lock to
indicate to code executing in the finally {} block that it should release the lock. The boolean
variable is now removed and the lock is released unconditionally. It carries a potential to
throw an exception when the lock is not held, but it's better than to fail to release it and
lead the application to a deadlock.
2010-09-28 13:32:15 +02:00
Jackson Harper 7757931e8e On 64bit this is turning into a 16 byte struct, this works around the issue. 2010-09-24 00:26:29 -04:00
Andrew Jorgensen 5a55034e93 move DynamicData to mvc because it depends on Extensions 2010-09-23 14:18:16 -06:00
Gonzalo Paniagua Javier bab18ab6d2 epoll_ctl takes an int, not IntPtr
Ditto.
2010-09-23 15:02:32 -04:00
Gonzalo Paniagua Javier 4c601b8522 EpollEvent size adjustment
EpollEvent has to be one uint32 plus one int64, i.e. 12 bytes long.
	Manos libres now.
2010-09-22 18:15:57 -04:00
Jérémie Laval 36e827b0be Also set readerDoneEvent when exiting an upgradeable lock and reader condition is correct.
It could cause a deadlock when a writer tested the rwlock value before RwRead was removed and another Upgradeable operation happened at the same time.
2010-09-22 11:10:56 +01:00
Marek Safar e137468dc6 [640722] Consider delegate parameters when checking member hiding 2010-09-21 10:22:11 -06:00
Marek Safar aa92238b98 [640709] Don't reuse method parameters for base proxy, they can be hoisted 2010-09-21 10:21:46 -06:00
Marek Safar 093a537205 [640699] Reduced compound expressions need explicit conversion too. 2010-09-21 10:09:36 -06:00
Andrew Jorgensen fe1653eae0 put the x11 devel package back in buildrequires and a couple other spec fixes 2010-09-20 17:25:14 -06:00
Rodrigo Kumpera 58f029f2d1 Report the broken type name instead of assembly's. 2010-09-20 14:54:25 -03:00
Rodrigo Kumpera f16036819a Use List<Exception> instead of ArrayList to make things prettier. 2010-09-20 14:44:56 -03:00
Rodrigo Kumpera 784d21f5fd Fix AssemblyBuilder::GetTypes () with unfinished types.
* AssemblyBuilder.cs (GetTypes): Raise ReflectionTypeLoadException
	if any type was not finished.

	* AssemblyBuilderTest.cs: Add test for GetTypes () and incomplete
	TypeBuilders'.

	Fixes #640288
2010-09-20 14:36:41 -03:00
Andrew Jorgensen c101a18be3 errant file 2010-09-17 12:20:56 -06:00
Marek Safar f038e86294 [639603] Don't emit statements as expressions when they don't support it. 2010-09-17 12:09:26 -06:00
Gonzalo Paniagua Javier ef47ac3d22 Revert my last patch
Not only it didn't fix anything but it broke a test.
2010-09-17 09:48:59 -06:00
Atsushi Eno 95617646ba Add working .svc handler in 4.0 web.config. 2010-09-17 09:47:46 -06:00
Atsushi Eno 652ff412d2 (merge master 3a7d8b3) Avoid crash for use of deprecated InstallTrackingHandler in Snow Leopard. 2010-09-17 12:42:08 +09:00
Andrew Jorgensen 8ca77a27fa More .spec reorgs 2010-09-16 17:12:57 -06:00
Gonzalo Paniagua Javier 3b8eeb54d3 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.
2010-09-16 15:10:58 -04:00
Marek Safar 6e23108f39 [639407] Clean up more static stuff to fix repl instances. 2010-09-16 12:06:42 -06:00
Miguel de Icaza 052fd53f21 Revert 2010-09-15 17:18:41 -04:00
Rodrigo Kumpera 164ba0d204 Fix a sgen shutdown crash.
* threads.c (mono_thread_suspend_all_other_threads): wait_data
	must not be malloc'd since it holds managed pointers. Alloc
	it on stack since the struct is about 512/1024 bytes long.

	* threads.c (mono_thread_manage): Ditto.

	* threads.c (mono_threads_request_thread_dump): Ditto.
2010-09-15 17:39:44 -03:00
Marek Safar 8853b1acb3 [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
2010-09-15 13:07:21 -06:00
Miguel de Icaza d2bc3285b1 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.
2010-09-15 14:28:58 -04:00
Ankit Jain 019cca88ce [xbuild] Fix references to Microsoft.Build.* assemblies for 3.5 . 2010-09-15 12:15:10 -06:00
Andrew Jorgensen b2ac405dbb mono-configuration-crypto is a 4.0 assembly, not 2.0 2010-09-15 10:39:11 -06:00
Rodrigo Kumpera 24ef405181 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.
2010-09-15 12:26:12 -04:00
Geoff Norton e2aecacc87 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.
2010-09-15 12:25:57 -04:00
Marek Safar d6038fc397 [639403] Fixes the endless recursion with hacked EOF 2010-09-15 09:07:12 -06:00
Gonzalo Paniagua Javier 0d7b33cbc9 GetProcessById now works on the Mac too
Ditto.
	This should fix MD problems when SHM is disabled.
2010-09-14 18:25:36 -04:00
Marek Safar f40fc6829d Initialize all core types 2010-09-14 16:15:39 -06:00
Gonzalo Paniagua Javier eb12be05d9 From master 2010-09-14 16:00:04 -04:00
Jérémie Laval f68a0cd137 Allow recursive Write + n * Read lock pattern for ReaderWriterLockSlim and add corresponding unit test 2010-09-14 16:00:04 -04:00
Jérémie Laval 815ec755b4 Generalize ThreadLockState to include recursive count informations and update them accordingly in the different Enter/Exit methods 2010-09-14 16:00:04 -04:00
Jérémie Laval f751095363 Split ReaderWriterLockSlim helper classes into their own files 2010-09-14 16:00:04 -04:00
Marek Safar 30f3260cc1 Finish predefined attributes instance access to allow compile time dynamic support in repl.
Fixes 639010
2010-09-14 11:27:01 -06:00
Geoff Norton 50a2d76b29 Fix a typo in my last commit 2010-09-13 19:59:19 -04:00
Geoff Norton 006d9f248d The tid is passed around internally as a unsigned value.
We were having a crash on OSX due to thread->tid not equalling the
passed tid due to a signedness issue.
2010-09-13 18:43:36 -04:00
Geoff Norton f16e13ead3 Mono 2.8 has a few more usages of the old type 2010-09-13 18:38:09 -04:00
Zoltan Varga 904b7563aa Bump minor version to 2 to be compatible with the runtime. 2010-09-13 15:32:28 -06:00
Geoff Norton 05378ccef9 Fix the build when compiling without shared handle support entirely
The wapi init functions call this even when shared is compiled out,
lets just return FALSE to get into the right codepaths.
2010-09-13 14:46:11 -04:00
Geoff Norton 911929eed1 Rename major -> major_collector and drop unguarded usage of ucontext_t.
Android defines a variable called "major" in its headers, lets rename
major -> major_collector to work around the conflict.

Not every architecture/platform has ucontext_t, so lets not strongly
type our contexts to that and let the macros do their job.
2010-09-13 14:45:55 -04:00
Zoltan Varga ae557e488d Avoid freeing the allocated monitors on shutdown, it seems to cause crashes
when running with SGEN, since SGEN writes to those arrays in:

==29095==    at 0x6844E5: add_or_remove_disappearing_link (sgen-gc.c:4143)
==29095==    by 0x6845F8: mono_gc_register_disappearing_link (sgen-gc.c:4167)
==29095==    by 0x67DE35: clear_domain_process_object (sgen-gc.c:1384)
==29095==    by 0x67DEA3: clear_domain_process_major_object_callback (sgen-gc.c:1400)
==29095==    by 0x6DE2DC: major_iterate_objects (sgen-marksweep.c:692)
==29095==    by 0x67E00B: mono_gc_clear_domain (sgen-gc.c:1459)
2010-09-10 16:58:05 -06:00
Geoff Norton d88e223dd4 Forward port this change for MonoVS 2010-09-10 14:55:45 -06:00
Geoff Norton 1867fd1486 fix typo
svn path=/branches/mono-2-6/mono/; revision=148851
2010-09-10 14:55:43 -06:00
Geoff Norton 1f42b9026c 2009-12-14 Geoff Norton <[email protected]>
* debugger-agent.c: The end_runtime_invoke guard isn't working
        on AMD64 as __builtin_frame_address (1) returns NULL.  Disable the
        behaviour by default, and make it runtime configurable.

svn path=/branches/mono-2-6/mono/; revision=148421
2010-09-10 14:55:41 -06:00
Miguel de Icaza 4b649e0805 [Fix] Correct fix for the g_shell_parse_argv bug
Simplifies the code a little bit by eliminating the in_quote variable,
but also fixes the rules to follow the requirements from the
"Shell Command Language" specification on the Unix03 site:

http://opengroup.org/onlinepubs/007908775/xcu/chap2.html#tag_001_002

In particular, the interpretation of the backslash inside double quotes
is limited to a handful of characters.   Notice that this differs from
the glib implementation which is not correct either.
2010-09-10 01:04:15 -04:00
Miguel de Icaza 2ce8ebda5f [Fix] Allow escape characters inside quoted text, and do not let nested quote reset the quoting state
This should fix #637680
2010-09-09 19:48:41 -04:00
Andrew Jorgensen 3b7c1f8741 Various cleanup and addition 2010-09-09 09:57:59 -06:00
Zoltan Varga faa1dd5646 Add a few more remaps. 2010-09-07 15:50:00 -06:00
Zoltan Varga 21b9ee9deb Remap g_strdupv too. 2010-09-07 15:49:59 -06:00
Marek Habersack db99cebd57 [asp.net] Fix for bug #636709. ClientID must be reset when ID is assigned. 2010-09-07 23:21:26 +02:00
Marek Habersack a8c3708337 [asp.net] Fix for bug #636475. A typo caused ads not to be matched in ChooseAd
The second loop over the ads hashtable must not reject an app if the keyword filter is empty.
2010-09-07 22:11:41 +02:00
Gonzalo Paniagua Javier b40cb0cc14 Add wsdl help generator to the 4.0 files
Ditto.

	Fixes bug #636841.
2010-09-07 14:32:44 -04:00
Gonzalo Paniagua Javier 5640b0a889 Remove Content-Length header when not needed
If we are redirecting to a GET from a POST, the Content-Length header
	might have stale data and it will be sent. Some servers, instead of
	ignoring it, keep waiting for the data to be sent (for a GET!).

	Fixes bug #636219.
2010-09-01 16:07:04 -06:00
Gonzalo Paniagua Javier 693cbe7207 Use the request itself as the key for the cache.
We were usign teh URL, but that might not be unique among several
	requests that need to be authenticated using NTLM. This led to
	different requests sharing the same authentication session which fails
	miserably.

	Bug #631315 fixed.
2010-09-01 16:07:03 -06:00
Gonzalo Paniagua Javier 93d6cc3bf9 Avoid sending data in the challenge phase of NTLM
If there's a POST/PUT request that gets a NTLM 401, we save the data
	and don't send it again until after the challenge phase. Ie, instead of
	sending all the data 3 times, we only send it at most twice.
2010-09-01 16:07:02 -06:00
Ankit Jain 0474947f86 [xbuild] Update man page to add "/tv:" option.
Add option to specify toolsversion from the command line,
to the man page.
2010-09-01 15:34:14 -06:00
Ankit Jain 0013378bfa [xbuild] Unsubscribe events on ConsoleLogger.Shutdown ()
Reported by Lluis Sanchez.
2010-09-01 15:34:03 -06:00
Geoff Norton 0e5aff05c4 Fix build of mono-basic on ppc64
OP_BREAK can take up to 40 bytes on ppc64
2010-09-01 12:15:25 -06:00
Jonathan Pryor 38a79cb7b8 [mdoc-update] Only check for duplicate elements, not duplicate nodes.
The duplicate-element checking algorithm wasn't restricted to just elements;
consequently, an 'invalid token' exception was generated from XPath because we
were trying to call XmlNode.SelectNodes("#text"), and '#' isn't valid.  Oops.

Fixes building gendarme from mono-tools.
2010-09-01 09:12:12 -06:00
Andrew Jorgensen fc767570a8 Version 2.8 2010-08-31 16:38:26 -06:00
Andrew Jorgensen 50e387c57f aot-compiler was not getting included in dist
dist-local: dist-default fixes dist of this dir
2010-08-31 15:40:47 -06:00
Zoltan Varga 965b836b4e Reenable system AOT on x86/amd64 which accidently got disabled. 2010-08-31 22:16:13 +02:00
Zoltan Varga 095ee7dfff Merge branch 'master' of github.com:mono/mono 2010-08-31 19:49:25 +00:00
Zoltan Varga 77be688eac Align structures on the stack to 4/8 bytes on ppc. 2010-08-31 19:48:51 +00:00
Zoltan Varga a8d61c4514 Really disable AOT on platforms which doesn't support it. 2010-08-31 21:05:53 +02:00
Jonathan Pryor 52a6e46a65 [mdoc-update-ecma-xml] Sort libraries and types.
This should help with any comparison tools as we ensure that libraries and
types are in a consistent order.
2010-08-31 14:51:44 -04:00
Jonathan Pryor 93fafa4d88 Remove unused code. 2010-08-31 14:51:44 -04:00
Jonathan Pryor 4b587909a9 [mdoc-update-ecma-xml] Do updates in-memory before writing.
Previously, in a (misguided) effort to reduce memory requirements, I loaded
the source document into an XDocument, then wrote it piecemeal to an output
XmlWriter.

  - Pro: only one document needed to be kept in memory, and additional
    memory was only needed to write replacement //Type nodes.

  - Con: since the output document isn't kept in memory, we can't do any
    post-processing before writing.

Unfortunately, post-processing is what I want to do: I want to order the
//Type elements by //Type/@Name, which means I need the entire document in
memory _anyway_.

Sorting //Type elements is for the next patch; this just migrates to the "do
everything in-memory" logic.
2010-08-31 14:51:43 -04:00
Jonathan Pryor e5e4f2805c [mdoc-update-ecma-xml] Generate additional //Type/AssemblyInfo data.
Generate the //Type/AssemblyInfo/AssemblyPublicKey and
//Type/AssemblyInfo/AssemblyCulture elements based on the values stored in
the index.xml file (which is why we updated mdoc-update to store this).

If index.xml doesn't contain the //AssemblyCulture element, input a default
<AssemblyCulture>neutral</AssemblyCulture> element.
2010-08-31 14:51:43 -04:00
Jonathan Pryor be73c4f448 [mdoc] Enhance monodoc-ecma.xsd to support XML used by .NET inline docs.
With these changes, we can import the .NET 4.0 reference assembly
documentation and validate the output w/o getting any errors.

Yes, this means we now accept several elements that aren't part of the ECMA
standard, but at least the primary source of information for ECMA will sanely
validate...
2010-08-31 14:51:43 -04:00
Jonathan Pryor 3f1832301b [mdoc-update] Support importing //returns & // value for "void" methods.
Screwy docs be screwy, but crashing is worse than importing odd docs.
2010-08-31 14:51:42 -04:00
Jonathan Pryor 22cf3f31e9 [mdoc-update] Fix location of //Member/Attributes on properties, events.
The //Member/Attributes element would "move" from after //Member/AssemblyInfo
to the last element within //Member when updating properties and events.  This
would result in overly large diff's when no other changes occurred, and
results in 'mdoc validate' stating that the file is invalid.
2010-08-31 14:51:42 -04:00
Jonathan Pryor 937ac441ce [mdoc-update] Normalize //returns and //value when importing XML docs.
Some source XML documentation uses //returns when it should use //value, so
normalize these values on import so we don't get both by mistake.
2010-08-31 14:51:42 -04:00
Jonathan Pryor 5b31dbc492 [mdoc-update] Try to avoid importing the same element multiple times.
This way if we import the same documentation file multiple times we won't get
duplicate elements into the XML files.
2010-08-31 14:51:42 -04:00
Jonathan Pryor 2cdb08e9d9 [mdoc-update] Don't generate //AssemblyCulture if it's neutral.
This prevents a file format change for most use cases, and reduces file size
diffs when updating assemblies.
2010-08-31 14:51:41 -04:00
Jonathan Pryor 51404c32a3 [mdoc-update] Generate //AssemblyPublicKey && //AssemblyCulture in index.xml.
This is so that `mdoc update-ecma-xml` can use this information when
generating the /Library/Types/Type elements, as //AssemblyPublicKey and
//AssemblyCulture are currently missing from `mdoc update-ecma-xml` output.
2010-08-31 14:51:41 -04:00
Jonathan Pryor b7e9d1dc50 [update-ecma-xml] Generate //Type/MemberOfLibrary and //Type/TypeExcluded.
These elements are needed for some ECMA processes.
2010-08-31 14:51:41 -04:00
Jonathan Pryor 44d5763e6f [update-ecma-xml] Generate the //Type/@FullNameSP attribute if not present.
This is required by the ECMA DTD.
2010-08-31 14:51:40 -04:00
Rodrigo Kumpera f0d14a8091 Fix AOT under x86.
* method-to-ir.c (emit_write_barrier): If aot-compiling on
	an arch with OP_CARD_TABLE_WBARRIER support, fallback to
	the IR based cardtable barrier instead of going with the
	remset one.
2010-08-31 15:35:52 -03:00
David Stone 5a4017e70d Add System.ComponentModel.DisplayAttribute 2010-08-31 19:40:14 +02:00
Rodrigo Kumpera 111aa402a0 Fix corlib self referencing bug.
In mcs/class/corlib/System.Reflection.Emit:

	* TypeBuilder.cs (DefineDefaultConstructor): If the resolved
	type is either typeof (object) or typeof (ValueType) we backout
	to the non resolved type as it might be one of the corlib's
	typebuilders.

In mcs/mcs:

	* rootcontext.cs (CloseTypes): Only apply the enum hack for
	corlib here.

	* rootcontext.cs (EmitCode): Do the corlib basic type hack
	here before types are emitted. This is required since EmitType
	produce type initializers, which derive from ValueType and must
	be able to see the TypeBuilder version of it.
2010-08-31 14:43:42 -03:00
Zoltan Varga 5874c412f9 Disable system aot on darwin. 2010-08-31 19:27:46 +02:00
Zoltan Varga 741209f327 Enable aot-ing of mscorlib+gmcs on all architectures where AOT is supported. 2010-08-31 19:27:46 +02:00
Atsushi Eno 89eda8dfe3 implement Find operation in request-reply contract in Discovery Service, using FindRequestContext. 2010-09-01 02:20:26 +09:00
Marek Safar 7680ad2da1 Add support for indirect pointer type constants. 2010-08-31 18:18:23 +01:00
Sebastien Pouliot 5273386864 Multiple fixes for WebClient (from NCL tests)
* mcs/class/System.Net/System.Net/InternalWebRequestStreamWrapper.cs:
Ensure WebClient.WriteStreamClosedCallback is never called more than
once (even if the stream was closed by the caller). Supply the length
of the data that was written to the stream to WebClient.

* mcs/class/System.Net/System.Net/WebClient_2_1.cs: Keep an Uri of
BaseAddress handy since we'll need it later. Ensure OnWriteStreamClosed
is at least called once (inside finally). Emit UploadProgressChanged
(instead of Download*) when uploading.

* mcs/class/System.Net/System.Net/WebRequest_2_1.cs: Change text for
InvalidOperationException when the URI is not absolute (some MS tests
check for, case-sensitive, "URI").
2010-08-31 13:17:22 -04:00
Andrew Jorgensen 12cbc5dd1a Revert "Make the 'LABELS' make variable the same as the 'TEST_HARNESS_VERBOSE' variable, because it is easier to remember and type."
Not compatible with the version of make we are using on windows:
 *** only one `else' per conditional.
This reverts commit fb1ba2f139.
2010-08-31 11:02:20 -06:00
Jérémie Laval cf6cb84548 Fix non 4.0 build of ReaderWriterLockSlim.
It needs to be cleaned up though.
2010-08-31 17:51:35 +01:00
Zoltan Varga 3b3e5af954 AOT mscorlib along with gmcs. 2010-08-31 18:39:39 +02:00
Jérémie Laval fcf6cc6955 Add unit tests for recursive acquire of a Write or Upgradeable lock from a Read lock state 2010-08-31 17:01:41 +01:00
Jérémie Laval 0348e24eb7 Add unit test for ReaderWriterLockSlim basic recursion support. 2010-08-31 17:01:40 +01:00
Jérémie Laval f77f094d46 Enable basic recursion support in ReaderWriterLockSlim. Works when reacquiring lock of the same type. 2010-08-31 17:01:39 +01:00
Jérémie Laval a13cb7d229 Use ManualResetEventSlim instances to wait for lock changes instead of hardcoded Thread.Sleep calls in ReaderWriterLockSlim. 2010-08-31 17:01:39 +01:00
Jérémie Laval f706ec1dd4 Remove unused bit position constants in ReaderWriterLockSlim 2010-08-31 17:01:39 +01:00
Jérémie Laval ed5833ed6a Tune thread count in ReaderWriterLockSlim unit tests 2010-08-31 17:01:38 +01:00
Jérémie Laval 5d3ce7655d Fix ReaderWriterLockSlim unit tests.
In the latest revision of the framework, ReaderWriterLockSlim is totally fair and thus a call to TryEnterReadLock musn't succeed when writers are waiting to get the lock before them (and when the lock is currently in read mode).
2010-08-31 17:01:37 +01:00
Jérémie Laval 15a738f32f Fix ReaderWriterLockSlim unit tests.
As stated by MSDN, to be fully downgraded to a read lock state a call to ExitUpgradableReadLock must be issued straight after EnterReadLock.
2010-08-31 17:01:37 +01:00
Jérémie Laval dbf53c74c4 Finish reimplementation of ReaderWriterLockSlim so that it pass unit tests. 2010-08-31 17:01:36 +01:00
Jérémie Laval 8b7268a75a Factorize tatas pattern in TryRelaxedSet method in AtomicBoolean, add AtomicBoolean to the compilation file list for System.Core 2010-08-31 17:01:36 +01:00
Jérémie Laval 8297cbde16 Refactor ThreadLockState acquisition into a real per-thread, per-rwlock-instance value 2010-08-31 17:01:35 +01:00
Jérémie Laval 16e2f091f0 Rework ReaderWriterLockSlim to use simpler Interlocked arithmetic. 2010-08-31 17:01:35 +01:00
Rolf Bjarne Kvinge ff363ea039 Trim the uri in UriParser::GetComponents, just like we do in Uri::Parse 2010-08-31 17:18:48 +02:00
Rolf Bjarne Kvinge cbafcd2122 Make moonlight build again 2010-08-31 16:18:45 +02:00
Zoltan Varga c46fb6aca2 Add AOT support for GC inline write barriers. 2010-08-31 16:12:36 +02:00
Ankit Jain a9c2c5da15 [xbuild] Task 'Touch' should pass even if the file already exists.
Microsoft.Build.Tasks/Microsoft.Build.Tasks/Touch.cs:
	Task should 'succeed' even if the files already exist.
2010-08-31 17:31:31 +05:30
Ankit Jain cfe8febce1 [xbuild] Quote filenames for resgen.
Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs:
	Quote filenames passed to resgen.
2010-08-31 17:29:31 +05:30
Ankit Jain 5cb32413f9 [xbuild] Fix 635767. Support enums for task property Outputs.
Add support for task properties to be enums, when publishing
Output.
2010-08-31 17:13:20 +05:30
Marek Safar 9fc6e660f4 Merge branch 'master' of github.com:mono/mono 2010-08-31 10:43:40 +01:00
Marek Safar 6df0de7250 [635714] Inconsistent accessibility between nested private and protected internal types 2010-08-31 10:41:15 +01:00
Atsushi Eno b09eb4b04c Avoid NRE when converting contract-based instances to contract-neutral objects. Add Windows async workaround all around to not block further hacking. 2010-08-31 17:41:15 +09:00
Marek Safar 16bc3754c3 Don't use break in jay 2010-08-31 09:11:51 +01:00
Marek Safar 15d4b629f1 Don't generate tracing for the parser, it slows it down unnecessary 2010-08-31 08:33:57 +01:00
Marek Safar dd5c8fd560 Add more rules for static initializers 2010-08-31 08:33:56 +01:00
Marek Safar 17e20d8a72 Wrap any non-trivial rule into a method, speeds up the parser by 10-20%. 2010-08-31 08:33:56 +01:00
Marek Safar 45f89e6fd6 Removed misused break, format long comment 2010-08-31 08:33:55 +01:00
Carlos Alberto Cortez 082626b239 Actually make use of SerializationBinder.BindToName for BinaryFormatter.
* ObjectWriter.cs: Actually take SerializationBinder.BindToName
	into account when serializing data.
2010-08-30 23:59:37 +02:00
Carlos Alberto Cortez ee8a16c7d0 Add tests for SerializationBinder.BindToName usage with BinaryFormatter.
* BinaryFormatterTest.cs: Add tests for
	SerializationBinder.BindToName usage with BinaryFormatter.
2010-08-30 23:59:37 +02:00
Rolf Bjarne Kvinge 390e5cd0f8 Uri: fix path component of merged uris with parent directory references above the root directory 2010-08-31 01:55:47 +02:00
Zoltan Varga cd3af9d34c Fix make dist. 2010-08-31 01:31:24 +02:00
Zoltan Varga ee0040c240 Fix the ppc build. 2010-08-31 01:30:56 +02:00
Zoltan Varga 54f9da6c7d Fix the order of the arguments to the ppc_store macros. 2010-08-31 01:29:18 +02:00
Andrew Jorgensen 2e58c906ad Relatively major overhaul of the .spec file
Cleanup of legacy conditionals, addition of llvm and sgen conditionals
2010-08-30 16:12:43 -06:00
Rodrigo Kumpera 7e461aeb22 Merge branch 'sgen_cardtable_64bits_support' 2010-08-30 18:15:43 -03:00
Rodrigo Kumpera 11dc0ef1e5 Remove leftover from testing. 2010-08-30 17:50:42 -03:00
Rodrigo Kumpera 6aadaa3d79 Fix a of by one error.
* sgen-cardtable.c (cards_in_range): This should
	take into account the first card.
2010-08-30 17:50:42 -03:00
Rodrigo Kumpera 21fb75cd0b Fix cardtable code under amd64.
* method-to-ir.c (emit_write_barrier): Amd64 can't use
	big immediates (> 32bits) with ALU operations so
	we assert if the cardtable ends been allocated in a high
	address.
2010-08-30 17:50:41 -03:00
Rodrigo Kumpera 8387129b7f Enable cardtable on 64bits targets. 2010-08-30 17:50:41 -03:00
Rodrigo Kumpera 39950b8c33 Don't scan blocks without references. 2010-08-30 17:50:41 -03:00
Rodrigo Kumpera 6d32017452 Improve check consistency assertion. 2010-08-30 17:50:41 -03:00
Rodrigo Kumpera 26405121bc Add support for card overlapping.
* sgen-cardtable.c: In order to support cardtables with 64bits we
	allow cards to overlap each other. Cards are copied to a shadow
	cardtable at the beginning of the scanning.

	* gc-internals.h: Change signature of mono_gc_get_card_table to
	return the card table mask.

	* mini.h: Add PAND_IMM.

	* method-to-ir.c: Handle card table masks.

	* mini-x86.c: Ditto.
2010-08-30 17:50:41 -03:00
Rodrigo Kumpera e286e384e2 Extract card scanning code.
* sgen-cardtable.c: Add functions that test if a given
	card or range or cards should be scanned. Those function
	make sure the card are clear on return.

	* sgen-gc.h: Export new functions.

	* sgen-los.c: Use to new functions.

	* sgen-marksweep.c: Ditto.
2010-08-30 17:50:40 -03:00
Rodrigo Kumpera d7b120ec23 Replace clear_card functions with block enumeration API.
* sgen-cardtable.c: Use live block enumeration API
	to clean blocks instead of a custom API.

	* sgen-los.c: Add los_iterate_live_block_ranges.

	* sgen-marksweep.c: Add major_iterate_live_block_ranges.

	* sgen-gc.h: Adjust for new function.
2010-08-30 17:50:40 -03:00
Zoltan Varga b264c465aa Avoid loading the LLVM backend if llvm is not requested at runtime. 2010-08-30 22:19:00 +02:00
Andrew Jorgensen 4591f01c18 Remove obsolete Microsoft.Vsa and Microsoft.JScript 2010-08-30 13:34:03 -06:00
Atsushi Eno d36e4ab4aa Fix a couple of Hello/Probe serialization issues. 2010-08-30 22:27:58 +09:00
Atsushi Eno 6eb3340e2b Uri was also not supported in Read*ContentAs(). 2010-08-30 22:26:03 +09:00
Atsushi Eno ebeab788ab Add TimeSpan support in Read*ContentAs() methods. 2010-08-30 18:41:57 +09:00
Atsushi Eno a8afc691d1 Fix bogus discovery contract wrapper names. 2010-08-30 18:22:47 +09:00
Atsushi Eno dbfe965d11 Add not-working code for TransferMode support. 2010-08-30 18:15:26 +09:00
Atsushi Eno 07de5988e2 Add workaround for bug #633945. On Windows async operation does not work. 2010-08-30 18:14:07 +09:00
Zoltan Varga 550c6f704a Remove obsolete LLVM passes. 2010-08-29 02:20:36 +02:00
Zoltan Varga 798169e0d9 Get rid of filter clauses in runtime invoke wrappers. This increases their size slighly, but allows them to be compiled by LLVM. 2010-08-28 19:52:50 +02:00
Zoltan Varga 12cea8f412 Get rid of MONO_ARCH_HAVE_THROW_CORLIB_EXCEPTION. 2010-08-28 19:03:44 +02:00
Jonathan Pryor 6445c9afe3 [mdoc-validate] Support & validate the ECMA XML dialect.
This required adding some elements from the ECMA DTD.

We also add trivial XSLT support for things like <leq/> to ≤, etc.
2010-08-27 23:04:59 -04:00
Jonathan Pryor 69e5d82634 [update-ecma-xml] Don't generate <Type/>s for types we've already generated.
Fixes a duplicate System.Action within CLILibraryTypes.Updated.xml.
2010-08-27 23:04:59 -04:00
Zoltan Varga 9f212b6c6a Print the unimplemented interface method warnings using the mono_trace ()
infrastructure.
2010-08-28 03:47:04 +02:00
Zoltan Varga 989d2becc7 Avoid the loading of metadata for IMT calls from AOT code too. 2010-08-28 03:40:44 +02:00
Zoltan Varga f16fb1134f Reorganize the vtable slot patching code a bit. 2010-08-28 03:23:18 +02:00
Zoltan Varga 634194d3d3 Remove a redundant if (). 2010-08-28 02:55:38 +02:00
Zoltan Varga 9faac2d634 Avoid allocating empty arrays in ves_icall_Type_GetInterfaces (). 2010-08-28 02:43:19 +02:00
Zoltan Varga 52eb995b42 Use the klass pointer instead of the klass name when computing the hash in mymono_metadata_type_hash (), since it is much faster. 2010-08-28 02:43:19 +02:00
Zoltan Varga 757d926182 Add a g_hash_table_print_stats () helper function. 2010-08-28 02:43:19 +02:00
Zoltan Varga 0e3ec6d384 Optimize g_utf8_to_utf16 for the common case of ASCII strings. 2010-08-28 02:43:19 +02:00
Gonzalo Paniagua Javier dff680e41a Call SetEndOfSendNotification
We have to call SetEndOfSendNotification() as soon as the context is ready.
	Fixes bug #632253.
2010-08-27 17:36:19 -04:00
Gonzalo Paniagua Javier 231f4decce Add env.var. to control revocation mode.
Added a new environment variable, MONO_X509_REVOCATION_MODE that lets
        the user choose the default validation mode for X509 chains.
2010-08-27 16:58:23 -04:00
Zoltan Varga 256fa2065e Improve the hashing of MonoTypes representing type variables. 2010-08-27 22:07:15 +02:00
Zoltan Varga 536d37a44b Add a mono_g_hash_table_print_stats () function to print hash table stats. 2010-08-27 22:07:15 +02:00
Jonathan Pryor c20627ec1e [mdoc] Add response file support to all mdoc commands.
...because it's so much easier dealing with 77 arguments for
mdoc-update-ecma-xml when I can use a text editor instead of bash...
2010-08-27 15:59:19 -04:00
Jonathan Pryor 00732aa24c [update-ecma-xml] Implement support for updating an existing file.
First, we refactor out the "overwrite only if content has changed" logic in
monodocer into MdocFile.UpdateFile() so that we can reuse this same logic.

After that, it's primary all about MDocUpdateEcmaXml.UpdateExistingLibraries():
scan through the document looking for libraries we're interested in.  If we
encounter one we don't care about, copy directly.  If we do, enumerate it's
contents looking for types we care about, and either copy the old version
as-is if we don't care, or copy over the mdoc(5) version if we do.
2010-08-27 15:59:19 -04:00
Jonathan Pryor e4d70c0a12 [update-ecma-xml] Fix nested type documentation lookup.
Attempting to load docs for e.g. System.Environment.SpecialFolder resulted in
an infinite loop.  Oops.  Also support "global" types.
2010-08-27 15:59:19 -04:00
Jonathan Pryor b67de18788 Add 'mdoc update-ecma-xml' command.
This is for ECMA support: it's intended to take an existing
CLILibraryTypes.xml file (from the ECMA 335 standard) and update the specified
types within it.  If no existing file is specified, it'll generate a new one
based on command-line arguments.

Update support is currently lacking, but it'll generate a new document with:

	mono mdoc.exe update-ecma-xml -o - \
	--library BCL --type=System.Environment Test/en.expected
2010-08-27 15:59:19 -04:00
Zoltan Varga 65b66d3252 Install the generated gmcs.exe.so. 2010-08-27 21:24:03 +02:00
Zoltan Varga 16641e9c67 Delete gmcs.exe.so on make clean. 2010-08-27 21:11:45 +02:00
Zoltan Varga bc39f3613f Use $(PROFILE)/gmcs.exe as INTERNAL_GMCS for consistency. 2010-08-27 21:09:14 +02:00
Zoltan Varga 670d626034 Add a new directory which is used for AOTing the c# compiler before compiling most of the class libs. This cuts the mcs build time by about 30%. 2010-08-27 20:58:08 +02:00
Sebastien Pouliot 58907842f3 Fix public key in [InternalsVisibleTo] attribute
mcs/class/System.ServiceModel.Web/Assembly/AssemblyInfo.cs: Use the
Silverlight public key (instead of the regular FX public key) for
NET_2_1
2010-08-27 14:32:20 -04:00
Atsushi Eno c893d9c638 ISerializable type didn't iterate all base types to pick up all target fields. 2010-08-28 02:07:56 +09:00
Atsushi Eno 57c4337d79 Use XmlConvert.EncodeLocalName() to not introduce xml syntax violation for not-WF member names. 2010-08-28 01:49:04 +09:00
Atsushi Eno 8bb3e10851 XmlWriterSettings could be null. 2010-08-28 01:47:57 +09:00
Jérémie Laval 40b3724b7b [PLinq] Remove the scwl noise in ParallelEnumerable TestOrderByAgeAscendingTheByNameDescending test 2010-08-27 17:29:59 +01:00
Jérémie Laval 81ccbeb56c Move the predicate call under launched.TrySet protection in Task's ContinueWithCore
Sometimes the predicate was also called multiple time generating exception that weren't caught by the general Task handler and thus swallowed by the runtime causing Thread shutdown and ultimately deadlocks.
2010-08-27 17:29:59 +01:00
Zoltan Varga fb1ba2f139 Make the 'LABELS' make variable the same as the 'TEST_HARNESS_VERBOSE' variable, because it is easier to remember and type. 2010-08-27 17:36:10 +02:00
Jérémie Laval e7a3630701 Increase the number of repeated run in stress test. 2010-08-27 15:59:37 +01:00
Jérémie Laval 483b2986db Allow at max one Remove operation to fail in tests.
Some concurrent collections don't necessarily guarantee that a call to Dequeue/Pop/equivalent will succeed even in the case there are elements in the collection. When one of such operation fail in test, retry it immediately to check for that sort of cases.
2010-08-27 15:03:39 +01:00
Jérémie Laval 0b053ef9fb Don't PopTop from our personnal bag in ConcurrentBag. 2010-08-27 15:03:39 +01:00
Marek Safar fba68ed71f Implement dynamic sites for hoisted mvar types 2010-08-27 14:56:16 +01:00
Marek Safar 237586191e Check also modifier for identical ref/out parameters 2010-08-27 14:56:16 +01:00
Jérémie Laval 2123348905 Change the way continuation delegates are stored and processed in Task. Fix random the random hangs. 2010-08-27 14:07:34 +01:00
Atsushi Eno cdedbcb1a0 Add integrated test case. 2010-08-27 18:37:42 +09:00
Atsushi Eno fb7ace5519 They are system endpoints. 2010-08-27 18:31:34 +09:00
Marek Safar 957271b539 Fixes build 2010-08-27 08:50:17 +01:00
Marek Safar 92a19789c8 Don't convert ByRef parameters 2010-08-27 08:42:56 +01:00
Marek Safar 6d33949e8e Consider parameter constraints when choosing applicable method candidate 2010-08-27 08:42:56 +01:00
Marek Safar 11b8635b0b Always build type from compiler type when flagged 2010-08-27 08:42:55 +01:00
Marek Safar 771b2b5468 Merge branch 'master' of github.com:mono/mono 2010-08-27 08:42:49 +01:00
Marek Safar d310a5b5bf New test 2010-08-27 08:42:15 +01:00
Atsushi Eno 3cd82bb935 Add IsSystemEndpoint property and treat system endpoints as non-service. 2010-08-27 16:34:53 +09:00
Zoltan Varga 5c2e3bf772 Store information about file shares in a hash table instead of a 4MB array if
SHM is disabled. Fixes #634529.
2010-08-26 23:48:49 +02:00
Jérémie Laval ec820e9208 [PLinq] Add Cancellation checks even deeper. Introduce merge token.
Merge token are simply the combined cancellation source of user (i.e. token supplied with PLinq operator WithCancellation) and internal tokens (supplied with WithImplementerToken).
2010-08-26 22:28:06 +01:00
Andrew Jorgensen bb580b82a0 Fix the changelog script to work in MonkeyWrench
* Makefile.am: Check for GIT_DIR if defined (rather than .git)
* commits-to-changelog.py: BUILD_REVISION rather than HEAD if defined
2010-08-26 13:29:23 -06:00
Gonzalo Paniagua Javier beabbf7a78 Fix the build 2010-08-26 15:08:23 -04:00
Gonzalo Paniagua Javier 07b765483e Add more info for -z parameter
Mention that zlib development package is needed for that option to
	work.
2010-08-26 15:07:02 -04:00
Gonzalo Paniagua Javier 353c3dffb9 Free allocated unmanaged memory.
Ditto.
2010-08-26 15:01:15 -04:00
Gonzalo Paniagua Javier 5df31fb787 Translate socket error to match .NET
send(2) does not return ETIMEDOUT for a blocking socket with a write
	timeout set, which causes the wrong error code to be reported to the
	managed world.
	Fixes bug #599488.
2010-08-26 14:10:56 -04:00
Andrew Jorgensen ba16e5e474 Bump version to 2.8.1
2.8.ODD will mean git master and 2.8.EVEN will mean a release branch
2010-08-26 09:51:57 -06:00
Andrew Jorgensen bef550c29f Add the mono-api-info man page 2010-08-26 08:51:50 -06:00
Zoltan Varga 4b82cc1f29 Avoid warnings on machines with cpus > 16. 2010-08-26 16:18:14 +02:00
Atsushi Eno 339ce7172f Add timeout in duplex (UDP) client. Set Via URI to not raise scheme mismatch. 2010-08-26 23:16:53 +09:00
Marek Safar 950de73201 Jagged arrays have to be imported not created 2010-08-26 12:21:01 +01:00
Marek Safar 9d9af0c547 Run event type detection on actual and not context type 2010-08-26 12:21:00 +01:00
Jérémie Laval 6c0fa71d33 [PLinq] Reactivate a bunch more of unit tests 2010-08-26 12:05:44 +01:00
Jérémie Laval f5308fd554 [PLinq] Add a more specialized visitor object for checking query ordering. 2010-08-26 11:55:44 +01:00
Jérémie Laval 0c4a6bd8d6 [PLinq] Implement SelectMany ordered mode 2010-08-26 11:26:42 +01:00
Jérémie Laval 189a1d07a2 [PLinq] Add SelectMany unit tests 2010-08-26 11:26:42 +01:00
Jérémie Laval 5270c2f3a3 [PLinq] Refactor underlying enumerator management in OrderingEnumerator 2010-08-26 11:26:41 +01:00
Carlos Alberto Cortez e73e1cf631 Add a new test for SerializationInfo.SetType.
* SerializationInfoTest.cs: Add a SetType test.
2010-08-26 11:41:29 +02:00
Carlos Alberto Cortez 56d739fc70 Set 4.0 members in SerializationInfo.SetType.
* SerializationInfo.cs: Set/reset the new 4.0 members in SetType
	based on the new type.
2010-08-26 11:41:28 +02:00
Jérémie Laval ac405597eb [PLinq] Add dummy GetEnumerator override in OrderedParallelQuery to make gui-compare happy 2010-08-26 13:49:11 +01:00
Jérémie Laval 77ef827491 [PLinq] Enable First and FirstOrDefault unit tests 2010-08-26 13:45:50 +01:00
Jérémie Laval 0da162b9f2 [PLinq] Include Cancellation checks deeper in the pipeline processing 2010-08-26 13:45:50 +01:00
Atsushi Eno 62007163b8 Prepare duplex client types for Adhoc mode for DiscoveryClient. 2010-08-26 20:36:18 +09:00
Atsushi Eno 4e8da6fb49 Add missing constructors (new in 4.0 ones as well as old 3.0 ones). 2010-08-26 20:33:15 +09:00
Marek Safar 81155080b3 Import private event backing fields in dynamic context 2010-08-26 10:40:10 +01:00
Marek Safar a922e63a52 Special case unbox SLE conversion 2010-08-26 08:55:49 +01:00
Marek Safar fbc2a97fbe Maintain only one place with dynamic explicit conversions 2010-08-26 08:55:49 +01:00
Marek Safar 403e11dc09 Defer null check to resolver 2010-08-26 08:55:48 +01:00
Andrew Jorgensen 6bc2424dd9 Remove mono-abi-info from the .spec file 2010-08-25 16:03:46 -06:00
Sebastien Pouliot 64c1e80dbc Multiple compatibility fixes for web headers on Moonlight
* HttpWebRequest_2_1.cs: Avoid using AllKeys (unneeded allocations)
* WebClient_2_1.cs: Copy headers to WebRequest (some special cases are
now considered) then clear them. Expose SecurityException (unwrapped)
and closely match SL4 exceptions (including inner exceptions).
* WebHeaderCollection_2_1.cs: Add missing validations on header names
and values (from original WebHeaderCollection.cs + small fix)
2010-08-25 15:58:27 -04:00
Andrew Jorgensen 29b874804b Add sgen-cardtable.c to sgen_sources (for dist) 2010-08-25 12:37:50 -06:00
Rodrigo Kumpera 8cec2268c8 Add test for #633671 2010-08-25 14:21:59 -03:00
Rodrigo Kumpera 3c7184af64 Fix value returned by PropertyInfo::DeclaringType
in mcs/class/corlib/System.Reflection:

	* MonoProperty.cs: Don't share the same field with
	DeclaringType and ReflectedType.

in mcs/class/corlib/System:

	* Environment.cs: Dump corlib version.

in mono/metadata:

	* appdomain.c: Bump corlib version.

	* object-internals.h: Add new field to MonoPropertyInfo.

	* icall.c (ves_icall_get_property_info): Store the
	declaring type into the new field.

	Fixes #633671
2010-08-25 14:21:59 -03:00
Gonzalo Paniagua Javier 70a54d10a7 Add --quiet-build (on by default) 2010-08-25 12:30:57 -04:00
Gonzalo Paniagua Javier b6467c499d Ignore removed ChangeLog files
If a ChangeLog has been removed, don't try to open the file.
2010-08-25 11:29:59 -04:00
Zoltan Varga bd6a37183b Fix a warning. 2010-08-25 17:22:18 +02:00
Mark Probst 34a3e9678c [sgen] Fix build. 2010-08-25 17:12:23 +02:00
Jonathan Pryor 50a551391c Flush updated expected output due to compiler /doc improvements.
'gmcs /doc' now properly generates explicitly implemented interface member
//member/@name values, so mdoc-update can now find them for the import.  Yay!
2010-08-25 08:54:15 -04:00
Jonathan Pryor 749767503e Fix explicitly-implemented interface member cref generation.
The //member/@name for explicitly implemented interface members needs to
contain the fully-qualified interface name, including type parameters (if
necessary), so we need to generate
"M:Container`2.Element.System#ICloneable#Clone", not
"M:Container`2.Element.ICloneable.Clone".

Furthermore, explicitly implemented generic interface methods within a generic
type were always getting the type parameter count appended to them (which
somewhat makes sense, as they're on a generic type...) which is counter to what
CSC generates, e.g. we need to generate
"P:Container`2.System#Collections#Generic#IList&lt;TValue&gt;#Item(System.Int32)"
not "P:Container`2.IList`1.Item``1(System.Int32)".
2010-08-25 08:54:13 -04:00
Jérémie Laval 68c86d5333 [PLinq] Use default comparer instead of throwing an ANE in PLinq operators 2010-08-25 13:17:42 +01:00
Marek Safar 37304aef77 Show better message when assigning to the type 2010-08-25 12:36:59 +01:00
Atsushi Eno 1c820a5f17 flush pending DiscoveryClientBindingElement work. 2010-08-25 19:01:42 +09:00
Jérémie Laval 427a08307e [PLinq] Add GroupBy unit tests 2010-08-25 10:54:16 +01:00
Marek Safar 1b2d2d3e6c Import private members too when using dynamic context 2010-08-25 10:21:13 +01:00
Marek Safar 279e100901 Import all delegates as sealed 2010-08-25 10:21:13 +01:00
Marek Safar e4af525f15 Probing dynamic compatibility is identical to object 2010-08-25 10:21:12 +01:00
Mark Probst efe4cb4270 [sgen] Inline card table wbarrier with nursery check.
Our previous inline card table write barrier did not perform
any checks on the pointers, which means that it marked cards
for the major heap even if the references stored there were
not to nursery objects.  Doing that is slightly faster in the
mutator but the nursery collections might take a lot longer
because objects might have to scanned unnecessarily.

This patch implements an inline write barrier that also
performs a nursery check.  To that end we introduce a new
IL opcode, OP_CARD_TABLE_WBARRIER.

It is currently only implemented on x86.  For architectures
that don't support it (yet), we automatically regress to the
old, non-checking write barrier.
2010-08-25 10:47:24 +02:00
Atsushi Eno 2d69022c2b Avoid NRE when ServiceEndpoint neither have Binding nor Contract. 2010-08-25 17:28:23 +09:00
Mark Probst 376acf5958 [sgen] Properly update heap boundaries for fixed-heap mark&sweep.
We didn't update the heap boundaries correctly in the fixed-heap
mark&sweep collector, which could lead to pins being lost.
2010-08-25 06:06:12 +02:00
Mark Probst 6d5c3cbc13 [sgen] Make binary protocol thread-safe for real.
There was still an issue with thread-safety of binary protocols: If
the world was stopped while a thread was in the process of using a
binary protocol buffer, the GC would write all buffers to the file and
release the memory, making the thread crash once it restarted.

We fix this here by keeping a count of how many threads currently use
the buffers.  If they are in use when we try to save and free them, we
don't.  They'll be saved and freed eventually.
2010-08-25 06:06:12 +02:00
Atsushi Eno 334bf98838 ongoing DiscoveryClientBindingElement implementation. 2010-08-25 13:02:46 +09:00
Rodrigo Kumpera 3f882f607c Add regression test for 633291. 2010-08-24 16:38:35 -03:00
Rodrigo Kumpera e9d77ca1ac Fix EH handling corner case.
* mini.c (create_jit_info): Handle the case where the basic
	block right after a try block is dead. For example:
	.try {
		....
		leave ...
	}
	nop //HERE
	.catch {
		...
	}

	The above nop is dead code and the branch opts will nullify it
	which caused the code in create_jit_info to assert when
	calculating the try block lenght.

	This is a very rare case since only obfuscators or broken
	compilers would put instruction between the try and handler
	blocks.

	The fix is to simply iterate over all CIL addresses of the
	try block in reverse order looking for the first block which
	was not removed.

	Fixes 633291
2010-08-24 16:38:35 -03:00
Zoltan Varga d4927adac2 Do some refactoring in the local register allocator.
Rename a few functions to better reflect their purpose, Use free_up_hreg in
more places.
2010-08-24 21:19:53 +02:00
Zoltan Varga e3bf1cc955 Fix a problem introduced by the last CAS regalloc change. 2010-08-24 20:56:23 +02:00
Robert Nagy d8e166985b Make sgen compile on OpenBSD, by adding the missing stuff 2010-08-25 02:37:26 +08:00
Gonzalo Paniagua Javier f76a4bf89c Fix permissions 2010-08-24 14:32:21 -04:00
Jérémie Laval 7c5522b789 [PLinq] Implement GroupBy operator 2010-08-24 17:38:18 +01:00
Jérémie Laval 49cc37b69b [PLinq] Turn Wrap into an extension method 2010-08-24 17:38:18 +01:00
Jérémie Laval 6381f3eeeb Correctly support calling lazily factory lambdas in ConcurrentDictionary. 2010-08-24 17:38:17 +01:00
Zoltan Varga 77711b43a8 Revert "Close mscorlib on shutdown to avoid leaking it."
This was only needed because of the buggy assemblyref in mscorlib to itself.

This reverts commit 77d0ee57ab.
2010-08-24 17:57:19 +02:00
Zoltan Varga 77fc05a245 Fix the generation of debug information in AOT files which got broken by
the last change to dwarfwriter.c.
2010-08-24 17:20:59 +02:00
Zoltan Varga 78d79abbce Remove obsolete profiles. 2010-08-24 17:20:59 +02:00
Zoltan Varga 45edc5e3ce Disable W1699 in the basic profile too. 2010-08-24 17:20:58 +02:00
Zoltan Varga 8cc1d329d7 Update the message in the mcs dir-check. 2010-08-24 17:20:58 +02:00
Jérémie Laval 362842b50a [PLinq] Really add QueryJoinNode 2010-08-24 15:56:28 +01:00
Jérémie Laval d1624718c8 [PLinq] Add test for Join operator 2010-08-24 14:09:09 +01:00
Jérémie Laval a6815ab804 [PLinq] Plug in QueryJoinNode for Join operator 2010-08-24 14:09:08 +01:00
Jérémie Laval 342a8ea2fc Use Interlocked.Read (long) call directly in CyclicDeque.
Since the call is also implemented as a simple long load operation in the runtime when on x86-64 there is no need to do the differentiation in managed code.
2010-08-24 14:09:08 +01:00
Jonathan Pryor d373d09908 Flush expected output for mdoc unit tests.
No mdoc changes, but since 'mdoc update --exceptions=all' scans across
assemblies, and since System.Delegate.Combine() now throws additional
exceptions (according to our IL scanning algorithm), the expected output
differs, leading to false negatives about regressions.

Furthermore, 'gmcs /doc' has been fixed (it used to cause a compilation
error) and improved, so more XML documentation is now imported because gmcs is
generating the correct XML documentation crefs.  (Go gmcs, go!)
2010-08-24 08:54:21 -04:00
Jonathan Pryor 141de3ec3c Improve XML documentation support for generic type parameters.
Fixes #624242

This also allows master 'gmcs /doc' to build OpenTK, gitorious.org/cadenza,
and build the mcs/tools/mdoc unit tests w/o compilation error.

The bug was caused by a NotSupportedException when calling ArrayContainer.Name
within DocUtil.GetSignatureForDoc(TypeSpec).  This is directly fixed by
checking explicitly for ArrayContainer.

Another bug fixed was wrt type parameter indexing in nested types, hence
"counting" the number of type parameters declared in all declaring types.
2010-08-24 08:54:20 -04:00
Marek Safar 2bea67a422 More variance best candidate tweaks 2010-08-24 13:50:21 +01:00
Marek Safar 508ac5bcb7 [633674] Consider nested inflated types when mutating fields and methods 2010-08-24 13:50:20 +01:00
Atsushi Eno 7e69bd34a9 Ongoing discovery client and service implementation. 2010-08-24 20:22:09 +09:00
Marek Safar 8572c68bcf [633277] Import type parameters used as type parameter constraints 2010-08-24 10:59:20 +01:00
Atsushi Eno 0b9920d851 Fire AnnouncementService events when messages are arrived. 2010-08-24 18:57:45 +09:00
Atsushi Eno a92d72cf78 Disable separate loop for HttpListener context acquisition. It prevents HttpStandaloneChannelListener from closing itself. 2010-08-24 18:33:12 +09:00
Marek Safar f2b4cc9351 Recreate proxy parameters for imported methods 2010-08-24 10:17:57 +01:00
Marek Safar 0c64be5b31 Fixes bootstrap corlib build 2010-08-24 09:02:38 +01:00
Marek Safar f40b115020 Dynamic shares object members internally 2010-08-24 08:26:21 +01:00
Marek Safar 525e35d89c Fixed type inference between upper and lower bounds 2010-08-24 08:26:21 +01:00
Marek Safar 215677b1f8 Add explicit variant delegates conversion 2010-08-24 08:26:20 +01:00
Miguel de Icaza a4d2765986 Add the Sgen license text to the new sgen files 2010-08-23 21:21:23 -04:00
Marek Habersack e5ec9150cb [asp.net] Fix for bug #633756. Children processed as properties must be instantiated before using.
When a server-side control processes its children (in the markup) as properties, it needs to instantiate
an object of the property type and assign it to the appropriate property of the control. Failing to do so
will cause markup which references properties to fail in certain cases (for instance when the control's
property type is a class and it is not instantiated by the control's constructor).
2010-08-24 01:02:47 +02:00
Zoltan Varga 0f1a4ce344 Disable W1699. 2010-08-24 00:32:13 +02:00
Zoltan Varga 10b55da9e1 Add a CAS regalloc test. 2010-08-24 00:25:24 +02:00
Zoltan Varga 76b85002dd More CAS regalloc fixes.
Set sreg_masks [j] correctly for CAS, spill sreg1/2 if they are assigned to
dest_sreg. Set dest:a for the CAS opcodes on amd64.
2010-08-24 00:25:23 +02:00
Mark Probst 6d88a963b7 Merge branch 'cardtable-inline-nofix' 2010-08-23 23:10:01 +02:00
Mark Probst 3e7df6c1b7 [Documentation] Update man page with write barrier setting. 2010-08-23 23:09:55 +02:00
Mark Probst f6f7a846f1 [sgen] Shorter IR for inlined write barrier. 2010-08-23 23:09:54 +02:00
Mark Probst 8ca39dae97 [sgen] Inline card table write barrier.
If the card table write barrier is used, emit it inline.
It's a quick address calculation and a single store, so
it's much more efficient than our old write barrier.
2010-08-23 23:09:54 +02:00
Mark Probst fddb2fffb8 [mini] Factor out function for emitting write barriers. 2010-08-23 23:09:54 +02:00
Rodrigo Kumpera 33defb21a5 [sgen] Use cardtable for all wbarriers, not just generic store. 2010-08-23 23:09:53 +02:00
Rodrigo Kumpera 4e9fc98e20 [sgen] Use mincore to dump faulted pages in the cardtable.
Debug printing code, currently disabled.
2010-08-23 23:09:53 +02:00
Rodrigo Kumpera 87b454d4aa [sgen] Direct card table implementation.
This is a direct card table, meaning there is only card table
level, which makes it very simple and efficient.  It only works
on 32 bits at this point, and only for Mark&Sweep.
2010-08-23 23:09:52 +02:00
Robert Nagy cded72039c remove unused variable 2010-08-24 04:50:06 +08:00
Zoltan Varga ab27a56c78 Fix an assert introduced by the previous change on platforms without linux shared memory. 2010-08-23 21:48:03 +02:00
Zoltan Varga 2251a186ed Another attempt at fixing the CAS regalloc problems.
Move the CAS related code out of the
if (rs->ifree_mask & (regmask (dest_sreg))) {
section so it is executed even if the fixed sreg is already assigned.
2010-08-23 21:47:31 +02:00
Rodrigo Kumpera 1e7dff992a Type is sealed, forgot to make it so. 2010-08-23 16:37:25 -03:00
Rodrigo Kumpera 16747ada5b Implement System.Runtime.InteropServices.TypeIdentifierAttribute. 2010-08-23 16:03:25 -03:00
Rodrigo Kumpera 2232e23635 Fix some loader error leaks.
* method-to-ir.c (mono_method_to_ir): Check
	mono/mini_get_method for loader errors.

	Fixes #633287
2010-08-23 16:03:24 -03:00
Rodrigo Kumpera fd2430faad Fix some loader error leaks.
* verify.c (mono_type_is_valid_in_context): Cleanup
	any loader error before continuing.

	* verify.c (verifier_load_field): Ditto.

	* verify.c (verifier_load_method): Ditto.

	* verify.c (verifier_load_type): Ditto.
2010-08-23 16:03:24 -03:00
Zoltan Varga c4dee0ccfb Add support for --debug=casts to the mono_object_castclass () JIT icall. Fixes 2010-08-23 19:06:39 +02:00
Andrés G. Aragoneses 744d29e756 [tools] Merge mono-abi-info tool into a "--abi" flag for mono-api-info
This commit also includes a brief (help welcome!) man page for
mono-api-info that explains its usage.
2010-08-23 22:42:30 +08:00
Marek Safar 90c3c6a594 Fixed typo in T14 argument 2010-08-23 15:18:31 +01:00
Marek Safar eb9a4272cc Fixed moving of named params arguments 2010-08-23 15:18:31 +01:00
Robert Nagy ceca1e7817 Use struct sockpeercred instead of struct ucred on OpenBSD 2010-08-23 20:58:39 +08:00
Robert Nagy e78758efcd Cast void *sigctx to ucontext_t * to avoid compile
time errors at least on OpenBSD
2010-08-23 20:58:38 +08:00
Robert Nagy d8ffc78eb8 Cast void *sigctx to ucontext_t * to avoid compile
time errors at least on OpenBSD
2010-08-23 20:58:37 +08:00
Robert Nagy 376c74b492 fix openbsd CPPFLAGS and check for sys/param.h 2010-08-23 20:58:36 +08:00
Atsushi Eno 8c79756680 Hello message does not have ProbeMatchType, so it is optional. 2010-08-23 21:55:00 +09:00
Atsushi Eno d015dafabc ongoing Announcement fixes. Now it accepts messages from .NET AnnouncementClient (does not process them yet). 2010-08-23 21:03:54 +09:00
Carlos Alberto Cortez e95ea2b4b3 Simplify the ObjectWriter .ctor and update call sites.
* ObjectWriter.cs: Make the .ctor take a single BinaryFormatter
	parameter and get the information from there. This should make
	it easier to do some 4.0 new assignations, instead of adding yet
	another parameter (also, ObjectReader is doing exactly what we
	are doing here now).
	* BinaryFormatter.cs:
	* MessageFormatter.cs: Update call sites.
2010-08-23 07:30:40 +02:00
Carlos Alberto Cortez c606b22cd8 Add 4.0 FormatterServices.IGetSurrogateForCyclicalReference.
* FormatterServices.cs: Add 4.0 GetSurrogateForCyclicalReference
	method.
2010-08-23 07:30:40 +02:00
Carlos Alberto Cortez 2d5a6a0704 Remove NET_1_1 directive from FormatterServices.cs.
* FormatterServices.cs: Remove NET_1_1 directive, since it's
	useless for us now.
2010-08-23 07:30:40 +02:00
Marek Safar 9827b74a95 Custom attribute itself can be used to specify optional parameter 2010-08-23 09:10:48 +01:00
Miguel de Icaza 9505b933e7 Updated copyrights to SGen files that were missing it 2010-08-22 11:52:45 -04:00
Mark Probst 99ec493256 [mini] Write barrier liveness fix.
We were keeping the wrong register alive in
mono_emit_wb_aware_memcpy().  It needs to be the value, not the
destination pointer.
2010-08-21 23:38:19 +02:00
Zoltan Varga 1e003ca8a9 Avoid accessing rs->vassign [ins->dreg] if the instruction has no dreg. 2010-08-21 21:15:52 +02:00
Zoltan Varga b0bb97d691 Fix invoking of gshared methods in marshalbyref objects. Fixes #632316. 2010-08-21 19:15:01 +02:00
Zoltan Varga 28cc29b5ff Avoid freeing an NULL hashtable. 2010-08-21 19:15:01 +02:00
Gonzalo Paniagua Javier 0cf20bb73c Try to make delegate2 test always pass
This test is failing randomly in windows and linux.
	Adding the .config file in windows makes it work.
2010-08-21 12:23:44 -04:00
Marek Habersack a730b9b7c7 Implemented the StringLengthAttribute 2010-08-21 00:45:46 +02:00
Marek Habersack 0be4c2ba14 All ValidationAttribute and RangeAttribute 3.5 and 4.0 tests run without errors now. 2010-08-20 23:50:41 +02:00
Zoltan Varga d763475696 Fix a crash in mono_field_get_value_object () after the field->type changes. 2010-08-20 21:24:40 +02:00
Gonzalo Paniagua Javier 104b552fa8 No more warnings building eglib.
Ditto.
2010-08-20 13:10:56 -04:00
Gonzalo Paniagua Javier 66a5337a5b eglib build is now 'quiet' by default
Ditto.
2010-08-20 12:52:02 -04:00
Zoltan Varga 72f496ec68 An attempt to fix the register allocation problems for CAS on x86. 2010-08-20 18:22:01 +02:00
Zoltan Varga d18d2ec4a2 Update get-cygwin-deps.sh after a filename change. 2010-08-20 18:05:15 +02:00
Marek Safar 99c94ac7ea Add workaound for 2.6 bootstrap 2010-08-20 16:49:58 +01:00
Marek Safar b8e1580712 Prefer dynamic over other types when used with type inference. 2010-08-20 16:49:57 +01:00
Mark Probst 00233209ea [scripts] Don't use saxutils in mono-heapviz.
Some Pythons don't have saxutils.DefaultHandler, so
don't use it.
2010-08-20 16:57:28 +02:00
Geoff Norton 42bb87da50 Ensure that we only reflect into monotouch if the type exists.
There is a possible crash using this profile if the monotouch.dll
isn't loaded into the process space.  We will null guard the
type and only call start_wwan if its present.
2010-08-20 10:54:07 -04:00
Jérémie Laval 5d41d6b47f [PLinq] Make QueryCheckerVisitor aware of Take query node.
QueryCheckerVisitor can then eventually decide if it's pertinent to run the query in parallel and set accordingly a boolean value (though not used by the engine at the moment).
2010-08-20 14:48:21 +01:00
Jérémie Laval f00afa22f2 [PLinq] Add implementation of Take/TakeWhile operators (including corresponding query node and unit tests) 2010-08-20 14:48:21 +01:00
Zoltan Varga 78a919c4b7 Add an option for running the runtime tests under valgrind. 2010-08-20 15:44:36 +02:00
Zoltan Varga 25f97426c7 Fix the reading of uninitialized data in the SSA code. 2010-08-20 15:10:20 +02:00
Zoltan Varga f2033416c4 Avoid freeing type_initialization_hash () for now because of shutdown races. 2010-08-20 15:09:54 +02:00
Zoltan Varga 2a6cca583e Free the handle data in handles_cleanup(). 2010-08-20 15:09:39 +02:00
Zoltan Varga 653f2a1cc0 Fix another bunch of shutdown leaks. 2010-08-20 14:55:36 +02:00
Zoltan Varga 11a4a517ff Cleanup generic sharing data structures correctly. 2010-08-20 14:16:28 +02:00
Zoltan Varga e1be1a27fb Add a 'mono_remove_image_unload_hook' function, store image unload hooks as a GSList. 2010-08-20 14:15:49 +02:00
Zoltan Varga 746988786f Free a few hash tables in object.c. 2010-08-20 14:15:35 +02:00
Zoltan Varga fea52cb552 Avoid leaking 'generic_array_method_info' by allocating it from the mscorlib
mempool.
2010-08-20 14:15:07 +02:00
Zoltan Varga a56a68f231 Free the wsq data even if the thread pool was not started. 2010-08-20 13:36:06 +02:00
Zoltan Varga a515e1f1a5 Avoid a crash in if image->references [i] is REFERENCE_MISSING. 2010-08-20 13:35:43 +02:00
Zoltan Varga c7e13fa14f Free rgctx_lazy_fetch_trampoline_hash at shutdown. 2010-08-20 13:18:25 +02:00
Zoltan Varga 0ec41e0195 Fix memory leaks in io-layer. Avoid starting the collection thread if SHM is disabled. 2010-08-20 13:12:56 +02:00
Zoltan Varga e990b6fd6d Free the global dllmap at shutdown. 2010-08-20 13:06:12 +02:00
Marek Safar c38c0d9266 Create dynamic sites in the scope where used to overcome visibility issues 2010-08-20 11:57:57 +01:00
Atsushi Eno 69f6ed13fb When closing the listeners, TryDequeueRequest() could be somehow invoked after the listener entry was removed, so expect null search result. 2010-08-20 18:47:57 +09:00
Marek Safar 30b6c7293e [633037] Resolve instance expression of dynamic members 2010-08-20 08:54:09 +01:00
Marek Safar bb14505712 Fixes delegate creation with dynamic parameters 2010-08-20 08:26:01 +01:00
Marek Safar de7b2843eb More dynamic conversion fixes 2010-08-20 08:26:01 +01:00
Marek Safar d03f1e2e50 Optimize few common paths 2010-08-20 08:26:00 +01:00
Atsushi Eno fa9bc4f278 ongoing DiscoveryClient work. May need further contract fixes. 2010-08-20 09:50:43 +09:00
Marek Habersack 3e5333e1c3 Implemented the RangeAttribute class. 2010-08-20 02:23:06 +02:00
Zoltan Varga 6f25349c0b Avoid leaking 'image_sets' in metadata.c. 2010-08-20 00:46:14 +02:00
Zoltan Varga 8eff375185 Don't return malloc-ed memory from g_get_charset (). 2010-08-20 00:45:30 +02:00
Zoltan Varga 2946c2ae15 Fix some AOT memory leaks. 2010-08-20 00:45:11 +02:00
Zoltan Varga 48a15f0980 Fix a bunch of shutdown leaks in the JIT+LLVM backend. 2010-08-20 00:03:09 +02:00
Gonzalo Paniagua Javier 42932bf97e Quote arguments in Environment.CommandLineArgs
Arguments with spaces need to be quoted. If the argument contains
	spaces and quotes itself, these quotes are escaped.
	Fixes bug #632657.
2010-08-19 17:23:22 -04:00
Zoltan Varga 77d0ee57ab Close mscorlib on shutdown to avoid leaking it. 2010-08-19 22:44:45 +02:00
Zoltan Varga 29790524ca Handle some members of mono_jit_stats using the counters API, so the compiled/AOT/LLVM stats are in one place in the stats output. 2010-08-19 21:53:09 +02:00
Zoltan Varga 3cd532a6c6 Allow LLVM compiled AOT code to be loaded into a non-LLVM runtime. 2010-08-19 21:38:51 +02:00
Zoltan Varga 93f409491b Add more trampoline stats. 2010-08-19 21:29:44 +02:00
Zoltan Varga 6be1ec7e91 Compute methods_with_llvm/without_llvm correctly even if --llvm is not given. 2010-08-19 20:14:46 +02:00
Jérémie Laval 0e91816c02 Adapt deep sleep operation in BlockingCollection and fix Try* method (simplest form) behavior 2010-08-19 18:47:45 +01:00
Jérémie Laval e582a526ff Add some documentation to BlockingCollection 2010-08-19 18:45:08 +01:00
Jérémie Laval 9e35d37fb6 Little 4.0 API signature tweaks 2010-08-19 17:27:00 +01:00
Jérémie Laval eca3c60701 [PLinq] Replace calls to ToArray by ToList in query nodes to avoid the unnecessary copying and double array creation 2010-08-19 16:20:50 +01:00
Jérémie Laval 95a29762ad [PLinq] Remove unnecessary iteration of the internal dictionary in OrderedEnumerator and use deep sleeping 2010-08-19 16:07:05 +01:00
Jérémie Laval da356a6008 Remove timed deep sleep in ManualResetEventSlim and instead combine several WaitHandle to wait on 2010-08-19 16:07:05 +01:00
Jérémie Laval ae00b72a0c Update Task unit tests to reflect behavior change with cancellation 2010-08-19 16:07:04 +01:00
Jb Evain f3b13eb8fb [Fix] HashSet: fix different sets operations. Fixes #572084 2010-08-19 16:52:15 +02:00
Jb Evain c69b9183f1 Add test for #572084, issue with SymmetricWith and duplicate items 2010-08-19 16:52:14 +02:00
Marek Safar 037f89fc77 [520151] Fail on invalid directive inside pre-processed block 2010-08-19 13:01:55 +01:00
Marek Safar 0a533b2407 Refactor preprocessor parsing to use less string operations. 2010-08-19 13:01:54 +01:00
Jb Evain d591966d45 [Fix] Enumerable.Except: return a duplicate free set. Fix bug #611821. 2010-08-19 12:37:24 +02:00
Jb Evain ad42775d82 Add test for #611821 2010-08-19 12:34:38 +02:00
Jb Evain e7c29d969f [Fix] update the System.ServiceModel assembly version 2010-08-19 11:59:38 +02:00
Atsushi Eno dfbf940b82 Made a couple of listener channel fixes. 2010-08-19 18:52:36 +09:00
Atsushi Eno ef42ce9cd7 Use expected MessageVersion for OutgoingMessageHeaders (and raise errors whenever expected). 2010-08-19 18:50:43 +09:00
Atsushi Eno d694a6108b TargetInvocationException is often unexpected. Throw InnerException if applicable. 2010-08-19 15:23:44 +09:00
Atsushi Eno f68d656382 UdpClient.Receive() often returns null. Not sure this undocumented behavior is correct, but workaround anyways. 2010-08-19 15:00:26 +09:00
Geoff Norton e3f98d2cbe Fix GetDelegateForFunctionPointer for generic types
MSFT .NET throws an ArgumentException if you attempt to call
GetDelegateForFunctionPointer for a generic type.
2010-08-18 22:10:13 -04:00
Mark Mason 0c1b034f96 Simplify test for MIPS imm16 operands.
Code contributed under the MIT/X11 license.
2010-08-19 07:15:06 +08:00
Mark Mason 9b5642e7f2 Support for large stackframes on MIPS.
Increase the sizes of the various load/store opcodes in order
to support the expansion when large stack frames (>32k) are
produced. Update prologue and epilogue code to generate the
frame in two steps.

Code contributed under the MIT/X11 license.
2010-08-19 07:15:05 +08:00
Mark Mason b1da9b08e8 Make long_branch a runtime switch. Factor mips_call() code generation.
Code contributed under the MIT/X11 license.
2010-08-19 07:15:05 +08:00
Mark Mason 8f648b5834 Fix codegen for LOAD*_MEMBASE, add assert to catch mangled spill loads.
Code contributed under the MIT/X11 license.
2010-08-19 07:15:04 +08:00
Alex Fort cba8194c9a [Fix] SetConsoleMode on the input handle, not the output handle, fixing #632009
Because we were using the wrong handle in SetConsoleMode, newlines were breaking when TreatControlCAsInput was enabled. This no longer happens now that we're setting the correct mode on the input handle instead of the output handle.
2010-08-19 06:16:29 +08:00
Ankit Jain 933e173912 [xbuild] Evaluate Import only if its condition evaluates to true. 2010-08-19 02:25:11 +05:30
Ankit Jain badaf05563 [xbuild] Support extra paths for MSBuildExtensionsPath32/64 .
Support extra search paths via env variables for
MSBuildExtensionsPath32/64 also.

Update man page.
2010-08-19 02:25:10 +05:30
Ankit Jain b23d43110c [xbuild] Add reserved property MSBuildExtensionsPath64 . 2010-08-19 02:25:10 +05:30
Gonzalo Paniagua Javier 3412e4a3a5 Merge branch 'work' 2010-08-18 13:13:52 -04:00
Gonzalo Paniagua Javier d69355e086 Ignore TestResult.xml too 2010-08-18 13:13:26 -04:00
Ankit Jain 1e52bdfb89 [xbuild] Update man page. 2010-08-18 22:12:14 +05:30
Ankit Jain 6b55ab7b8a [xbuild] Add env var to dump details of reference resolution.
If xbuild is unable to resolve a reference, then it dumps details of
why it failed. This adds a env var XBUILD_LOG_REFERENCE_RESOLVER,
which if set, logs those details of why a particular search path
was used to resolve the reference.

Update the man page also.
2010-08-18 21:41:08 +05:30
Zoltan Varga 7fae19d5b5 Fix building with MSVC. 2010-08-18 17:52:07 +02:00
Zoltan Varga e3f0485408 Fix building with MSVC. 2010-08-18 17:50:46 +02:00
Zoltan Varga 88591cb682 Fix handling of stdio in g_spawn_async_with_pipes (). 2010-08-18 17:48:35 +02:00
Jérémie Laval 3025b41c62 Fix cancellation tracking and reporting in Task. 2010-08-18 14:34:07 +01:00
Marek Habersack e7c954dbc0 [asp.net] Fix for bug #621837. Rewriting a path must take path info into account.
When HttpContext.RewritePath is used, the path info of the new path must be taken
into account and the HttpRequest.Path propert must contain it.
2010-08-18 15:31:56 +02:00
Atsushi Eno c937590d18 Use correct Uri to connect in UDP client. 2010-08-18 22:02:01 +09:00
Zoltan Varga 1632ba32d2 Bump the size of the epoll threads to 256k on 64 bit systems to avoid problems on ppc64 with 64k page sizes. 2010-08-18 14:35:19 +02:00
Zoltan Varga 981abf44e0 Add an assert to protect against the altstack clobbering the current stack. 2010-08-18 14:35:19 +02:00
Marek Safar a4f92cb2f8 Reduce memory footprint 2010-08-18 13:32:32 +01:00
Marek Safar e1f2c25e21 Updated error message 2010-08-18 13:32:31 +01:00
Marek Safar 4fe49cd367 When merging sessions error messages don't get confused by warnings. 2010-08-18 13:32:31 +01:00
Marek Safar f83c6573c0 Cannot skip on the first type match for multiple inheritances 2010-08-18 13:32:30 +01:00
Marek Safar d48018f039 Defer checks until all base types are ready 2010-08-18 13:32:30 +01:00
Atsushi Eno 08b113d92b Several fixes to get client Via URI used correctly. 2010-08-18 21:00:14 +09:00
Atsushi Eno 7fd070676f Do not overwrite Via URI on ClientRuntime after applying behaviors. 2010-08-18 20:58:16 +09:00
Zoltan Varga 6bd1461883 Fix running of tests under net 4.0. 2010-08-18 12:00:20 +02:00
Jérémie Laval ccea4ec859 [PLinq] Tune SkipWhile operator, re-enable its unit tests 2010-08-18 10:33:17 +01:00
Jérémie Laval f6d5a369e7 [PLinq] Re-enable tests that were previously [Ignore]'ed 2010-08-18 10:11:10 +01:00
Atsushi Eno 9f0b95f19e Implemented basic UDP transport. 2010-08-18 17:40:12 +09:00
Jérémie Laval 96a8f92359 [PLinq] Reflect directory hierarchy change on namespace names 2010-08-18 09:25:25 +01:00
Zoltan Varga 82f1cb6937 Fix the corlib tests build. 2010-08-18 04:36:28 +02:00
Jérémie Laval 4804017744 Update file hierarchy change in System too 2010-08-17 23:34:27 +01:00
Alex Fort d25646565c Discard modifier key presses from ReadKey
Modifier key presses were still being recorded by ReadKey, such as Control, Alt and Shift. This adds a method to ensure that doesn't happen anymore.
2010-08-17 17:22:08 -04:00
Miguel de Icaza 5a3fb39ca6 Copyright fix: the owner is Chris, not Novell 2010-08-17 13:22:59 -04:00
Jb Evain 8c411d7bf3 Add test for dynamic methods with invalid unicode name 2010-08-17 19:18:00 +02:00
Jérémie Laval 7092d34dde Flatten file hierarchy in System.Threading.Tasks 2010-08-17 18:07:18 +01:00
Jérémie Laval d3048467db [PLinq] Move NET_4_0 define check under licence text 2010-08-17 18:01:15 +01:00
Jérémie Laval 1ee5e87351 [PLinq] Tidy up file hierarchy in System.Linq 2010-08-17 18:01:14 +01:00
Atsushi Eno f5b2a8f6c5 Add ServiceDiscoveryBehavior hosting test case. 2010-08-18 01:12:15 +09:00
Jérémie Laval 7704dbed38 [PLinq] Fix and improve Skip operator and use two different versions of the predicate depending on the relative order of the query.
This actually make the operator complies to the behavior described in MSDN "Order Preservation" table.
2010-08-17 17:01:07 +01:00
Jérémie Laval 3f5fd68ddb [PLinq] Fix ToArray and ToList operator to also conservatively keep order when an explicit order guard is in the query. 2010-08-17 17:01:06 +01:00
Jérémie Laval 1bf7f30b92 [PLinq] Fix ProcessAndAggregate to correctly initialize its seed with all workers when no seedFunc is supplied. 2010-08-17 17:01:05 +01:00
Jérémie Laval 5bf52e5550 [PLinq] Add a IsOrdered internal operator that naively says if the current node is behind an ordered guard.
This is necessary for some PLinq operator that can provide a better optimized version of themselves when there is no ordering constraint whithout having to create yet another query node. Note that the method can be optimized with a more specialized version of the visitor.
2010-08-17 17:01:05 +01:00
Jérémie Laval bc3a2bc285 [PLinq] Remove unused Process overload. 2010-08-17 17:01:05 +01:00
Jérémie Laval bd0ee9281f Increment Barrier's phase number before signaling to threads that they can proceed. 2010-08-17 17:01:04 +01:00
Jérémie Laval 24e47be05e Move the count increment at a semantically more correct place in ConcurrentQueue 2010-08-17 17:01:04 +01:00
Jérémie Laval c8fd34ce9c [PLinq] Add more twist to unit tests by forcing use of a standard IEnumerable. 2010-08-17 17:01:04 +01:00
Jérémie Laval 465643e3c2 Fix whitespace mess in ParallelEnumerable methods. 2010-08-17 17:01:03 +01:00
Jérémie Laval 1bb7275e38 [PLinq] Fix visitor behavior when on a QueryOrderGuardNode.
Previously the case of Unordered wasn't taken in account and the control flow wasn't properly forwarded to the following nodes in the query# Please enter the commit message for your changes. Lines starting
2010-08-17 17:01:03 +01:00
Jérémie Laval b0bc8ddc33 [PLinq] Switch to the more reliable ToListOrdered operator in QueryReverseNode.
Using ToArray directly, even though incorrect, was working by a twist of fate in that the mostly-standard partitioner and ToArray operator were based on the same assumptions.
2010-08-17 17:01:03 +01:00
Jérémie Laval bc37c80cde [PLinq] Terminate directly when all the necessary values have been correctly staged in OrderingEnumerator. 2010-08-17 17:01:02 +01:00
Jérémie Laval 7b1551ca3c [PLinq] Enclose operator processing in a try/finally block so that upon Dispose'ing the iterator a cleanup path is also called.
This prevent some other operator from deadlocking by e.g. removing participant in barrier that ordered operator may use.
2010-08-17 17:01:02 +01:00
Jérémie Laval b0c2cffb4d [PLinq] Cleanup code in QueryNodes.
Switch from manually creating result sets to creating them with a Linq query. Replaced some type with var. Split indexed and non indexed call in two different virtual method call.
2010-08-17 17:01:01 +01:00
Atsushi Eno dfe40a5745 Request-reply channel factory should not reject one-way operation. It should just ignore the void reply. 2010-08-18 00:13:21 +09:00
Jérémie Laval 19506f7f42 Avoid waiting in an endless loop in ThreadWorker.
In some rare case where a ThreadWorker have taken more than one item (and thus there are items to steal) another ThreadWorker that hadn't seen this extra work would go to sleep indefinitely and cause deadlock if the first Task executed was depending on another Task to be launched.
2010-08-17 16:07:20 +01:00
Miguel de Icaza 7bb9b59c37 Copyright: the actual owner is Chris Bacon, not Novell, fix this 2010-08-17 10:55:06 -04:00
Marek Safar f594edd742 New tests 2010-08-17 15:34:18 +01:00
Marek Safar d01dd3f3e4 Move lambda return type inference context out of BlockContext 2010-08-17 15:34:18 +01:00
Marek Safar 7843f6271e [614924] Use proper best type expression for implicit array 2010-08-17 15:34:18 +01:00
Marek Safar 3a5ab11813 Clean up unused code 2010-08-17 15:34:17 +01:00
Marek Safar c632c5ee8f Crash with better error message for missing references. 2010-08-17 15:34:17 +01:00
Jb Evain b90274ef73 update ignore files 2010-08-17 14:09:44 +02:00
Atsushi Eno b8c7189926 implement ServiceDiscoveryBehavior and EndpointDiscoveryBehavior. 2010-08-17 19:58:48 +09:00
Atsushi Eno a8f81d638e Do not expect non-null ChannelDispatcherBase.Listener property. 2010-08-17 19:37:54 +09:00
Zoltan Varga 0dd9dfc1e6 Get rid of some #ifdef EGLIB_MAJORs. 2010-08-17 12:24:07 +02:00
Zoltan Varga a64b222cc2 Remove support for building with system glib. 2010-08-17 09:38:07 +02:00
Zoltan Varga 58a94f20ab Disable the InternalAllocateStr optimization when in shared mode. 2010-08-17 08:50:38 +02:00
Atsushi Eno 07969e8e8c Flush DiscoveryProxy work. 2010-08-17 14:59:20 +09:00
Zoltan Varga 34a813cdc6 Enable support for --break-at-bb on x86 too. 2010-08-17 07:54:26 +02:00
Elijah Taylor 3c88e47f3e Disable sockets and a few other things when using NACL. 2010-08-17 07:30:38 +02:00
Elijah Taylor 9ff986be78 Allow mscorlib to be loaded from disk when using NACL. 2010-08-17 07:30:37 +02:00
Elijah Taylor 63bc1ed6d0 Disable sockets and locking when using NACL. 2010-08-17 07:30:37 +02:00
Zoltan Varga 9c9a3a1b23 Disable building of ikvm-native and define DISABLE_SOCKETS when using NACL. 2010-08-17 07:30:37 +02:00
Carlos Alberto Cortez 5a6c11dffb Add new file SerializationBinderTest.cs.
* SerializationBinderTest.cs: New test file.
2010-08-16 16:27:05 +02:00
Carlos Alberto Cortez aec751f6f4 Add SerializationBinderTest.cs to our test sources.
* corlib_test.dll.sources: Add SerializationBinderTest.cs.
2010-08-16 16:27:04 +02:00
Carlos Alberto Cortez e6a65850ca Add 4.0 SerializationBinder.BindToName.
* SerializationBinder.cs: Add 4.0 BindToName.
2010-08-16 16:27:04 +02:00
Carlos Alberto Cortez ae7122c36b Add SerializationInfoTest.cs to our list of test sources.
* corlib_test.dll.sources: Add SerializationInfoTest.cs.
2010-08-16 16:27:04 +02:00
Carlos Alberto Cortez ddf4f5eccb Add new SerializationInfoTest.cs file.
* SerializationInfoTest.cs: New file, to contain some tests for
	the new 4.0 properties.
2010-08-16 16:27:03 +02:00
Carlos Alberto Cortez 95287e33ba Add all the new 4.0 properties of SerializationInfo.
* SerializationInfo.cs: Add 4.0 ObjectType,
	IsAssemblyNameSetExplicit and IsFullTypeNameSetExplicit.
2010-08-16 16:27:03 +02:00
Rodrigo Kumpera 7f664631b0 Merge branch 'mono_class_field_lazy_loading' 2010-08-16 15:41:10 -03:00
Zoltan Varga 0d4b35b75b Fix storer4/r8_memindex opcode metadata. 2010-08-16 20:25:20 +02:00
Rodrigo Kumpera 3b5ff66740 Handle field's type lazy loading.
* icall.c (ves_icall_System_MonoMethodInfo_get_retval_marshal):
	Init the class prior to accessing the type.
2010-08-16 14:55:55 -03:00
Rodrigo Kumpera e13d9514e4 Handle MonoClassField::type lazy loading.
* icall.c (ves_icall_System_Reflection_FieldInfo_GetTypeModifier):
	Use function that handle lazy loading.
2010-08-16 14:55:54 -03:00
Rodrigo Kumpera 329fd94f12 Handle lazy loading of type.
* MonoField.cs: Don't access ::type directly since it might be
	lazily loaded.
2010-08-16 14:55:54 -03:00
Rodrigo Kumpera 3c9c5fdb90 Lazy load FIeldInfo::FieldType from the managed side.
* MonoField.cs (FieldType): Lazy load the field type if
	null.

	* icall.c (ves_icall_MonoField_ResolveType): New icall
	to lazy resolve a field.

	* icall-def.h: Ditto.

	* reflection.c (mono_field_get_object): Eager load a field's
	flags since this simplifies a lot the managed side that doesn't
	have to handle loading it if not present.
2010-08-16 14:55:54 -03:00
Rodrigo Kumpera d6cdd9715e Make nested type loading lazier.
* class.c (mono_class_get_nested_types): Don't init
	the class.

	* icall.c (ves_icall_Type_GetNestedType): Ditto.
2010-08-16 14:55:54 -03:00
Rodrigo Kumpera 1a42aaff26 Make MonoType::GetFields lazier.
* class-internals.h: Add mono_field_is_deleted_with_flags
	which takes the flag as an argument instead of using the
	value on type->attrs.

	* reflection.c (mono_field_get_object): Check if field->type
	is present before using it.

	* icall.c (ves_icall_Type_GetFields_internal): Do things
	lazier by not depending on a field's type been loaded.
2010-08-16 14:55:53 -03:00
Rodrigo Kumpera 9e36326300 Add lazy variant of mono_class_get_fields.
* class.c (mono_class_get_fields_lazy): Lazy variant
	of mono_class_get_fields that returns fields with only
	minimal information loaded (name and parent).
2010-08-16 14:55:53 -03:00
Rodrigo Kumpera 50257c50a4 plit field loading. Fix some error handling.
* class.c (mono_class_setup_basic_field_info): Loads minimal
        info about a field, right now just name.

        * class.c (mono_class_setup_fields): Use new functions to
        load everything.

        * class.c (mono_field_resolve_type): Init the error struct
        and set it on case of a class failure.
2010-08-16 14:55:53 -03:00
Rodrigo Kumpera 8920aab1d6 Support lazy loading a field attributes too.
* class.c (mono_field_get_flags): Since the field type
	is lazy loaded we avoid loading it here since some
	reflection operations depends on flags but require lazy
	loading of type.
2010-08-16 14:55:52 -03:00
Rodrigo Kumpera 0682c84e05 Add lazy loading of MonoClassField::type
* class.c (mono_field_get_type): Lazy load ::type.

	* class (mono_field_get_type_checked): Ditto.
2010-08-16 14:55:52 -03:00
Rodrigo Kumpera 8ddb7ca27b Add mono_field_get_type_checked.
* class.c: Add trivial implementation of
	mono_field_get_type_checked.

	* class-internals.h: Export new function.
2010-08-16 14:55:52 -03:00
Marek Safar 037ae2699a [570422] Cannot return from iterators 2010-08-16 17:50:25 +01:00
Zoltan Varga 34ac134444 Call generic class init trampolines before calling gshared .ctors. Fixes 2010-08-16 16:02:49 +02:00
Marek Safar 8d4ea82fc4 [472007] Add warning about obsolete security attributes 2010-08-16 14:51:30 +01:00
Marek Safar cbec2fb906 [408516] No implicit user conversion from or to interfaces 2010-08-16 13:54:10 +01:00
Marek Safar 79f07ceecc [379537] Mark fields assigned in named argumets as used. 2010-08-16 13:54:10 +01:00
Atsushi Eno 6aab0863cc Implement discovery contract interfaces in DiscoveryService. 2010-08-16 21:18:20 +09:00
Atsushi Eno f29ae1c85a ContractDescription aren't compared decently. Compare their types instead. 2010-08-16 21:03:50 +09:00
Marek Safar df0b3543b8 [319462] Add more call optimizations 2010-08-16 11:31:47 +01:00
Zoltan Varga 861d0bb51a Fix running with stock LLVM. 2010-08-16 10:49:26 +02:00
Atsushi Eno 6dadc2bfb5 Add contract existence check when calling AddServiceEndpoint(ServiceEndpoint). 2010-08-16 16:19:08 +09:00
Atsushi Eno b54fe3d458 Add simplex Discovery contract interfaces. 2010-08-16 15:09:29 +09:00
Carlos Alberto Cortez 9a3dedf299 [fix] #625214: Allow DataGridView navigation even if ScrollBars is None.
* DataGridView.cs: When refreshing the scrolling info,
	set the values for the internal scrollbars even if we are forced
	to not display them, since they are used to compute the
	navigation, which should be available *always*.
2010-08-16 01:01:22 +02:00
Thomas Goldstein 812d176bb0 New Test for #620326.
* ListControlTest.cs: New test for #620326 - actual values being
	passed in the Format event.
2010-08-16 01:01:22 +02:00
Thomas Goldstein c809b89512 [fix] #620326: Use the actual value of the items in the Format event.
* ListControl.cs: Use the actual value of the items in the
	Format event, just as .net does. Fixes #620326.
2010-08-16 01:01:22 +02:00
Carlos Alberto Cortez 35573669ab Augment our ListView selection events test.
* ListViewEventTest.cs: Another test for items added using AddRange
	that are already selected.
2010-08-16 01:01:22 +02:00
Mark Strobert e405d6fa2f New test case for #621749.
* ListViewEventTest.cs: New test case for #621749,
	for already selected items being inserted to
	ListViewItemCollection.
2010-08-16 01:01:21 +02:00
Carlos Alberto Cortez 7d1a218f94 [fix] #621749: Update selection when adding/inserting a ListViewItem.
* ListViewItem.cs:
	* ListView.cs: Force an update in the selection if a new
	added/inserted item to ListViewItemCollection is already
	selected.
2010-08-16 01:01:21 +02:00
Carlos Alberto Cortez b6eb8bd810 Remove all NET_2_0 directives for ListViewItem.
* ListViewItem.cs: Remove all the NET_2_0 directives since
	we don't need them anymore.
2010-08-16 01:01:21 +02:00
Carlos Alberto Cortez efac449236 [fix] #621475: Properly clear selection when setting Text to empty.
* TextBoxBase.cs: In Text property always call
	Document.SetSelectionToCaret just like we do in other places
	calling Document.Empty(). This way we don't leave our selection
	stuff in an inconsistent state.
2010-08-16 01:01:21 +02:00
Gonzalo Paniagua Javier abfb8d34ea Formatting 2010-08-13 17:27:56 -04:00
Alex Fort 6e0388c831 [Fix] Keep looping in ReadKey until we get the actual right EventType, fixing bug #322414 and related.
Instead of a do/while loop, just keep looping until both KeyDown is true, and EventType == 1. It seems that sometimes when EventType == 1, KeyDown wasn't true but it would stop looping anyway. This caused mouse presses, context menu changes, and focus changes to register as key presses. With the new infinite loop, only actual key presses will be registered.
2010-08-13 17:00:37 -04:00
Atsushi Eno bdb7f28063 forgot to add some files. 2010-08-14 04:46:43 +09:00
Marek Safar f9c59243e9 [627488] Inflate inherited base method constraints with MVAR arguments 2010-08-13 19:41:41 +01:00
Marek Safar d45831eb84 Merge branch 'marek' 2010-08-13 19:27:26 +01:00
Marek Safar 933472264d Remove Mono.Options.dll dependency 2010-08-13 19:26:42 +01:00
Marek Safar 5e768aedad Merge branch 'marek' 2010-08-13 18:06:28 +01:00
Marek Safar 9d4a9d6b32 Fixed crlf issue 2010-08-13 18:05:58 +01:00
Marek Safar 7935322044 Merge branch 'master' of github.com:mono/mono 2010-08-13 18:05:03 +01:00
Marek Safar 30e32960e8 Fixed crlf issue 2010-08-13 18:04:32 +01:00
Andrew Jorgensen e9ea3c5b71 Add ccrewrite manpage to spec 2010-08-13 10:59:37 -06:00
Marek Safar a77ca1f176 Clean up lf 2010-08-13 17:57:08 +01:00
Marek Safar 2421ac2916 New test 2010-08-13 17:49:32 +01:00
Marek Safar f39657d215 Not all nested generic types are allowed for typeof expression. 2010-08-13 17:49:31 +01:00
Marek Safar a67a94a662 Check inaccessible type arguments 2010-08-13 17:49:30 +01:00
Andrew Jorgensen e263257c00 Add ccrewrite wrapper 2010-08-13 10:37:31 -06:00
Ankit Jain cae63f0de3 [xbuild] Fix a string format issue with guid.
Make sure that the format string doesn't have guid in
"{...}" format or String.Format gets confused.
2010-08-13 21:44:10 +05:30
Ankit Jain 785905d0f1 [xbuild] Handle references to vc*proj projects.
If a project references an unsupported project, like a .vcproj or
.vcxproj, then raise the appropriate warning for that.
2010-08-13 21:44:10 +05:30
Jérémie Laval cd34013c1c Disable two faulty tests that timeout the build bot. 2010-08-13 17:15:26 +01:00
Jérémie Laval 2abec426fe Move NET_4_0 define checks at the right position under the licence text 2010-08-13 16:25:20 +01:00
Atsushi Eno 3a66a1bfdc ongoing DiscoveryEndpoint work. 2010-08-14 00:03:36 +09:00
Zoltan Varga 0ade7b56ea Only do a null check in LDFLDA if the address is an object reference. 2010-08-13 16:54:06 +02:00
Rodrigo Kumpera 6963bb4a65 Make reflection lazier.
* reflection.c (mono_reflection_get_type_internal): Don't
	mono_class_init the resulting classes.
2010-08-13 11:44:23 -03:00
Rodrigo Kumpera 5e9d48ad70 Avoid initing the class in more cases. Cleanup error handling a bit.
* class.c (mono_class_get_methods): Don't mono_class_init
	the type.

	* class.c (mono_class_get_properties): Ditto.

	* class.c (mono_class_get_events): Ditto.

	* icall.c (ves_icall_Type_GetMethodsByName): Ditto.

	* icall.c (ves_icall_Type_GetConstructors_internal): Ditto.

	* icall.c (ves_icall_Type_GetPropertiesByName): Don't
	mono_class_init the types. Move error handling to a label
	at the end of the function.

	* icall.c (ves_icall_Type_GetEvents_internal): Ditto.
2010-08-13 11:44:23 -03:00
Chris Bacon a50db3cf83 Added ccrewrite.1 man page to makefile 2010-08-13 22:28:24 +08:00
Chris Bacon 7d907df23c Added man page for ccrewrite 2010-08-13 22:28:23 +08:00
Jérémie Laval 61b99b2cb5 Change #if line position in BarrierPostPhaseException to be below licence text 2010-08-13 14:36:12 +01:00
Jérémie Laval 95606933a5 Add BarrierPostPhaseException and use it when executing post-phase delegate in Barrier. 2010-08-13 14:19:05 +01:00
Marek Safar 9378b2d95c Add ccrewrite script 2010-08-13 12:46:08 +01:00
Marek Safar ab3ce9255a Merge CodeContracts 2010-08-13 12:33:41 +01:00
Marek Safar 0b15a5adde Merge remote branch 'chrisdunelm/master' 2010-08-13 12:33:00 +01:00
Jérémie Laval 8164c60b5d Add BOOTSTRAP_NET_4_0 define check in LazyInitializer (since it's now used in ManualResetEventSlim). 2010-08-13 12:00:43 +01:00
Zoltan Varga 7972257522 Add a null check to LDFLDA, the spec requires it. 2010-08-13 12:37:01 +02:00
Jérémie Laval eb4c91f411 Port ConcurrentBag to use ConcurrentDictionary.
ConcurrentDictionary is now used to store the per-thread CyclicDeque instances instead of maintaining a growing array ourselves. Add hints are still used.
2010-08-13 11:32:39 +01:00
Jérémie Laval 81a9446314 Correct typo in Barrier test fixture name 2010-08-13 11:32:38 +01:00
Jérémie Laval 5d71d5d42a Port Barrier to use ManualResetEventSlim for its waiting operations.
It replaces the simpler spinning on a boolean value while still being used in the same copying way in the algorithm.
2010-08-13 11:32:38 +01:00
Jérémie Laval 96153abf73 Port CountdownEvent to use a ManualResetEventSlim for all its waiting operations and use it as the native handle too. 2010-08-13 11:32:37 +01:00
Jérémie Laval 20013c65dd Force usage of 2 threads in one of ManualResetEventSlim unit test. It has no sense for more than that. 2010-08-13 11:32:36 +01:00
Jérémie Laval 5a6df750a7 Lazy initialization of ManualResetEventSlim's underlying kernel object.
It avoids allocating kernel ressources when the standard fast path is used which is the main goal of this type.
2010-08-13 11:32:35 +01:00
Marek Safar fffb42c849 Implicit conversions between dynamic and object is allowed for managed
types only
2010-08-13 11:17:30 +01:00
jbevain d39c7e0a82 [Fix] emit the proper metadata version for net_4_0 assemblies 2010-08-13 12:11:45 +02:00
Chris Bacon b3c1e1531a Removed code that is no longer required due to change to Cecil 0.6.* 2010-08-13 10:14:57 +01:00
Atsushi Eno 4ab93d2bcc ongoing announcement and discovery work as well as several bugfixes. 2010-08-13 16:31:54 +09:00
Atsushi Eno e8cd1bd1ae ChannelDispatcherBase could be non-ChannelDispatcher. In WCF Discovery such type actually seems to exist, so it's not theoretical anymore. 2010-08-13 16:07:42 +09:00
Marek Habersack fe4db38920 [asp.net] Scripts may be requested also from pages without associated ScriptManager
Make sure ScriptManager exists in the current page before attempting to use it.
2010-08-13 02:15:32 +02:00
Marek Habersack 8d39b158e5 [asp.net] Fix for bug #626829. Nodes need to be re-populated on postback, with populate on demand active
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.

Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
2010-08-13 00:12:23 +02:00
Marek Habersack ebbcc1c9f9 [asp.net] Client-side callbacks must use new names for the target and argument fields
__CALLBACKTARGET and __CALLBACKARGUMENT have been renamed to __CALLBACKID and __CALLBACKPARAM, respectively,
recently and this script didn't get update for the change causing callbacks not to work on master.
2010-08-13 00:12:23 +02:00
Andrew Jorgensen f9a1ed0bf2 Add mono-abi-info and Mono.CodeContracts to spec 2010-08-12 16:04:22 -06:00
Zoltan Varga e84014dc67 Avoid passing uninitialized memory to get_call_info () in the x86 backend. 2010-08-12 22:36:01 +02:00
Zoltan Varga 44d329d707 Revert "Speculatively revert 9b3b838d43 (BRANCH_CONST = 100 -> 10) to see if that fixes the buildbot tests on x86."
This reverts commit 99395459ee.
2010-08-12 21:42:23 +02:00
Rodrigo Kumpera c071d01160 Fix a loader error leak and make some System.Type methods lazier.
* icall.c (ves_icall_MonoType_get_Module): Don't mono_class_init
	the type as it's not needed.

	* icall.c (ves_icall_MonoType_get_Assembly): Ditto.

	* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
	mono_reflection_get_type can return a non-null type and set a
	loader error. Don't leak it.

Fixes #630773
2010-08-12 16:21:29 -03:00
Chris Bacon 95d6ec7d53 Merge remote branch 'upstream/master' 2010-08-12 19:56:19 +01:00
Chris Bacon 5c6ec9cf11 Moved back to Cecil version 0.6.*
PDB files are not supported any more.
Symbol writing is not supported.
2010-08-12 19:47:09 +01:00
Zoltan Varga 99395459ee Speculatively revert 9b3b838d43 (BRANCH_CONST = 100 -> 10) to see if that fixes the buildbot tests on x86. 2010-08-12 20:15:28 +02:00
Zoltan Varga 1f358c1ec2 Bump corlib version because of the CustomAttributeData:.ctor() signature change. 2010-08-12 20:15:28 +02:00
Marek Safar f3e1edc6e4 Optimize little bit cloning operations. 2010-08-12 15:33:24 +01:00
Marek Safar 64e23ecf50 Speed up Array.Resize 2010-08-12 15:33:24 +01:00
Marek Safar f1ebf48296 New test. 2010-08-12 15:33:23 +01:00
Atsushi Eno f654bd55b9 Do not try to create InnerChannel when not necessary. Add more AnnouncementClient tests. 2010-08-12 22:41:40 +09:00
Atsushi Eno 6cb98a2c72 Do not try to create InnerChannel while retrieving State. It tries to change the state itself and moreover causes invalid operations. 2010-08-12 22:38:11 +09:00
Chris Bacon 161f36122e Tidy up 2010-08-12 14:28:35 +01:00
Chris Bacon 8d373d7da5 Merge remote branch 'upstream/master' 2010-08-12 14:22:15 +01:00
Chris Bacon ee9281a296 Minor updates 2010-08-12 14:19:53 +01:00
Jérémie Laval a1c451ecae Add comments on some of SplitOrderedList's methods. 2010-08-12 13:30:10 +01:00
Jérémie Laval 51ad8f59b5 When hard node deletion fails in SplitOrderedList, restart the process from the saved start point instead of straight from the head. 2010-08-12 13:30:08 +01:00
Jérémie Laval 996bc50d33 Cache new segment array creation in SplitOrderedList to reuse it in case CAS fails. 2010-08-12 13:30:06 +01:00
Jérémie Laval a8d3c50482 Tweak SplitOrderedList MaxLoad value (i.e. less pair per bucket). 2010-08-12 13:30:04 +01:00
Jérémie Laval 33e1b5ecb3 Fix GetParent method in SplitOrderedList, it wasn't returning a meaningful value. 2010-08-12 13:30:03 +01:00
Jérémie Laval b7fca3da5a Add additional unit test for ConcurrentDictionary to validate behavior with the new SplitOrderedList backend. 2010-08-12 13:30:01 +01:00
Jérémie Laval de38c28f66 Port ConcurrentDictionary to use SplitOrderedList class. 2010-08-12 13:29:59 +01:00
Jérémie Laval f165930abf Add auxiliary methods to SplitOrderedList to allow better integration with ConcurrentDictionary API.
Several method in ConcurrentDictionary do a combination of two actions or two different actions depending on a test. These additional methods to the standard SplitOrderedList operation set are for these.
2010-08-12 13:29:58 +01:00
Jérémie Laval 439e3852de Add SplitOrderedList to the build system 2010-08-12 13:29:57 +01:00
Jérémie Laval 0f2c3bd0a4 Fixicate SplitOrderedList and tune default values 2010-08-12 13:29:55 +01:00
Jérémie Laval e5bd24cd2e Compilable implementation of SplitOrderList 2010-08-12 13:29:54 +01:00
Jérémie Laval 3293041824 Add new split ordered list type based on the eponymous data structure.
This data structure is to be used internally by ConcurrentDictionary. Theory from paper "Split-Ordered Lists: Lock-Free Extensible Hash Tables" and "A Pragmatic Implementation of Non-Blocking Linked-Lists".
2010-08-12 13:29:52 +01:00
Chris Bacon e5b22dca47 Minor changes 2010-08-12 12:09:41 +01:00
Chris Bacon aa9a2d7ce7 Improvements as suggested by Marek 2010-08-12 11:50:10 +01:00
Atsushi Eno 17e4173f97 ongoing AnnouncementClient implementation. 2010-08-12 19:33:46 +09:00
Zoltan Varga 711a9696de Add a FIXME to abcrem. 2010-08-12 11:32:53 +02:00
Marek Habersack 06dba14e80 [asp.net] Fix for bug #617746. GridRow must auto-bind only properties directly declared in item type
When GridView auto-generates columns it uses reflection to retrieve list of public properties present
in the item type. Only the properties that have bindable type and are declared directly in the item
type must be considered for column auto-generation.
2010-08-12 11:10:51 +02:00
Atsushi Eno 5d72c8a3a2 ChannelFactory<T> and ClientBase<T> do not reject ServiceEndpoint with null Binding or Address. 2010-08-12 18:04:23 +09:00
Atsushi Eno 38dc0a85ca Add new constructors in 4.0. 2010-08-12 16:50:48 +09:00
Zoltan Varga 8d84837615 Fix infinite loop in mono_class_get_nested_types () if a nested type fails to load. Fixes # 630041. Add a test. 2010-08-12 02:37:23 +02:00
Rodrigo Kumpera c573988767 Add some error handling to custom attribute loading.
* reflection.c (mono_reflection_resolve_custom_attribute_data):
	Check for loader and type load errors.
2010-08-11 18:34:43 -03:00
Rodrigo Kumpera 2913acfc8f Lazy load custom attribute data arguments.
in mcs/class/corlib/System.Reflection:

	* CustomAttributeData.cs: This now receives only the information
	required to later load argument data. This information is stored
	in a new field that is later discarded.

in mono/mono/metadata:

	* icall-def.h: Add new icall from CustomAttributeData.

	* object-internals.h: Add new reflection.c function.

	* reflection.c (mono_reflection_get_custom_attrs_info): Don't
	init the class when retrieving custom attributes since we must
	handle broken types.

	* reflection.c (create_custom_attr_data): Don't resolve cattr
	arguments eagerly. Instead pass enough information to
	CustomAttributeData so it can later on create them.

	* reflection.c (mono_reflection_resolve_custom_attribute_data):
	new icall used to create the cattr data arguments.

	This is required to match MS behavior and fix some of the issues
	triggered by trying to compile MD.

	Fixes #630074
2010-08-11 18:34:43 -03:00
Marek Habersack 4f20ce19f2 [asp.net] Partial fix for bug #575600. Support opening another app configuration.
WebConfigurationHost now supports one more parameter passed to it in InitForConfiguration -
a boolean telling whether the configuration being initialized belongs to another app. If it is
true then the virtual path passed to InitForConfiguration is used as the application virtual
path. This has the effect that IsDefinitionAllowed doesn't throw an exception when a configuration
element with the MachineToApplication level is parsed.
WebConfigurationManager.FindWebConfig checks whether the path passed to it belongs to this application
which allows the mechanism described in the first paragraph to work.
2010-08-11 22:23:49 +02:00
Marek Habersack cdb7126dfc [asp.net] Partial fix for bug #575600. Convert virtual path to absolute only if necessary in HttpRequest.MapPath
Also added two tests for HttpRequest.MapPath which check cases when the baseVirtualDir
is not rooted.
2010-08-11 22:20:04 +02:00
Chris c55938a5fa Added ccrewrite library, tool and tests. 2010-08-11 20:35:08 +01:00
Atsushi Eno 065e49ce40 ongoing UdpAnnouncementEndpoint work. 2010-08-12 03:32:44 +09:00
Atsushi Eno f0dbe37b97 ongoing AnnouncementService work. 2010-08-12 02:26:58 +09:00
Atsushi Eno c862c45059 add new AddServiceEndpoint() overload in 4.0. 2010-08-12 02:25:33 +09:00
Gonzalo Paniagua Javier eb2a5490f2 Adapt to new exception in threadpool behavior.
Since an exception in the threadpool can kill the application,
	silently ignore it when we know it is not harmful.
2010-08-11 13:15:39 -04:00
Robert Jordan 0617642a95 [Fix] Handle the portName argument/property properly.
Some of IpcServerChannel's ctors did not keep track of the original
IPC port name correctly. This led to a non-functional GetUrlsForUri
method.
2010-08-12 00:53:27 +08:00
Atsushi Eno 962df5f693 Fix infinite loop in .ctor. Use simpler way to check IPv4 availability. 2010-08-11 23:40:50 +09:00
Atsushi Eno 0ac3ae2806 Fix pinvoked function name and marshaling of MIB stats. 2010-08-11 23:24:06 +09:00
Atsushi Eno ab61151740 flush ongoing hack. add UDP transport. Headers on configuration sources. 2010-08-11 18:40:49 +09:00
Jb Evain 040f24a7df [hygiene] simplify the code dealing with internal collections
Initialize the objets with the provided source at construction time
like SL does, and thus avoid dealing with two different sources.
2010-08-11 11:23:35 +02:00
Jb Evain fbe3813fb2 fix the System.Json build 2010-08-11 10:43:49 +02:00
Jb Evain 2fc10ac052 fix the net_2_1 build 2010-08-11 10:43:49 +02:00
Jb Evain d70431b09a revert 21dd2b0200 as it breaks the monotouch build 2010-08-11 10:43:48 +02:00
Atsushi Eno 439b0f3eb8 ongoing endpoint implementation. 2010-08-11 17:23:07 +09:00
Gonzalo Paniagua Javier 15ed0070c4 New threadpool exception test
Add new test for a threadpool thread that is in a domain
	that will be unloaded.
2010-08-10 20:19:03 -04:00
Gonzalo Paniagua Javier 6e9eba02bf AppDomainUnloadedException ignored.
AppDomainUnloadedException is also ignored when thrown in a threadpool
	thread.
2010-08-10 20:19:02 -04:00
Marek Habersack 4dcbe7950b [asp.net] HttpContext.RewritePath makes sure the passed path is in canonical form.
When HttpContext.RewritePath is passed a virtual path with more than one leading slash it
results in HttpApplication.GetHandler not being able to locate the appropriate handler.
Patch adds code to convert the passed virtual path to a canonical form.
Additionally, HttpApplication.Pipeline () now throws an exception when no handler can be
determined for the current request.
2010-08-11 01:15:09 +02:00
Marek Habersack 762b27f65f [runtime] Fix for bug #624914. Runtime has to remap System.Config 2.0 to 4.0
The bug was caused by the runtime loading two copies of System.Configuration -
one for the 4.0 profile (loaded by xsp4 itself) and another for the 2.0 profile
(loaded as a reference for BlogEngine.Core.dll) and for that reason, the static
class System.Configuration.ConfigurationManager was instantiated twice in the
BlogEngine application's AppDomain which, in effect, led to the exception since
the configuration system wasn't reset from the default one to the system.web-specific
one. The commit makes runtime remap System.Configuration 2.0 to 4.0.

Thanks to Zoltan Varga for catching the issue.
2010-08-10 23:52:42 +02:00
Zoltan Varga 6a1311fb68 Remove some debug stuff. 2010-08-10 23:47:41 +02:00
Marek Habersack 7d5d241975 [asp.net] Fix for bug #629990 In-Proc session state must remove cache prefix from item key
When the in-proc session handler puts items in the internal cache, it prefixes them with the
@@@InProc@ prefix to make sure they don't conflict with other values stored there. The handler
has been failing so far to remove that prefix when triggering the session end event. This commit
fixes the issue.
2010-08-10 21:56:21 +02:00
Zoltan Varga 4a6509c705 [llvm] Do a zero extension for bool/char too when loading a volatile variable. 2010-08-10 20:53:23 +02:00
Andrés G. Aragoneses c508a786c1 Added new ABI mode to mono-api-info tool, wrapped in a mono-abi-info script.
2010-08-05  Andrés G. Aragoneses  <[email protected]>

* mcs/tools/corcompare/mono-api-info.cs: Implemented new mode to show ABI.
* mcs/tools/corcompare/Makefile: added mono-abi-info autofoo.
* scripts/.gitignore: added mono-abi-info.
* scripts/Makefile.am: added mono-abi-info autofoo.
2010-08-10 14:36:27 -04:00
Gonzalo Paniagua Javier 197285ca29 Fix nullref.
* XslFunctions.cs: avoid nullref in simple transformation.
	Fixes bug #629714.
2010-08-10 13:03:21 -04:00
Atsushi Eno 60d557393c implement MessageEncodingBindingElement.GetProperty<T>(). 2010-08-11 01:38:43 +09:00
Gonzalo Paniagua Javier 49afdb7c77 Fixed parsing of content-type parameters.
* ContentType.cs: correctly parse values inside double-quotes.
	Fixes bug #625026.
2010-08-10 11:37:29 -04:00
Marek Safar 6df2362ef3 [629383] Inflate generic type of default expression 2010-08-10 15:18:31 +01:00
Marek Safar d6eb216008 [629390] Avoid crash on the sole type expressions used for extension methods 2010-08-10 13:27:27 +01:00
Atsushi Eno 9965c16abe Cosmetic corcompare fix. 2010-08-10 21:04:48 +09:00
Atsushi Eno 01a7994985 Merge branch 'master' of github.com:mono/mono 2010-08-10 20:23:15 +09:00
Atsushi Eno f4aff310cf EncoderFallback support in UTF8Encoding. Fixed bug #565129 and regression in d961246.
Patch mostly by JB Evain.
2010-08-10 20:22:52 +09:00
Marek Safar dbff171e32 Also check for generic arguments of dynamic arrays 2010-08-10 12:20:30 +01:00
Marek Safar 520e93515c [629742] Iterators can be of dynamic type 2010-08-10 12:19:52 +01:00
Marek Safar e4aeffa5ef Add Mono code contracts skeletons. 2010-08-10 09:47:09 +01:00
Marek Safar 5e5a413318 Migrate more code to public API for 4.0 2010-08-10 09:47:09 +01:00
Mark Probst da04806b3a [Documentation] Explain nursery size a bit in man page. 2010-08-10 04:20:23 +02:00
Carlos Alberto Cortez f6eec0d811 [fix] #626034: Properly handle Form.Dispose to not close other visible forms.
* Application.cs: At the end of the message loop in RunLoop
	don't break the loop if the Form handle has been destroyed already -
	which means that we *need* to wait for WM_QUIT and handle it
	properly instead, so it doesn't end up affecting other forms.
2010-08-09 23:30:07 +02:00
Zoltan Varga 615ce3d0a8 Avoid an #ifndef HAVE_SGEN_GC inside MonoDomain, so the layout remains the same
for all GCs.
2010-08-10 00:45:42 +02:00
Zoltan Varga e3116a6348 Turn off the monitor enter/exit trampolines under SGEN using a runtime check instead of a compile time one. 2010-08-10 00:38:51 +02:00
Zoltan Varga fc067ee3bf Emit boxed versions of primitive types in xdebug. 2010-08-10 00:23:38 +02:00
Mark Probst 11096d7101 [sgen] Fix OBS warning.
Add a dummy return to workers_thread_func() to make OBS happy.
2010-08-10 00:21:50 +02:00
Gonzalo Paniagua Javier 142eef3161 Fix the boundary in UploadFile().
* WebClient.cs: the last delimiter has 2 hyphens appended to the boundary to signal it is indeed the last one.
	Fixes bug #554817.
2010-08-09 18:01:05 -04:00
Zoltan Varga 17d4b66b8c Avoid exceptions in gdb when encountering unknown struct types. 2010-08-09 23:44:49 +02:00
Zoltan Varga 70f1755ed9 Generate xdebug info for monitor enter/exit trampolines. 2010-08-09 23:37:27 +02:00
Zoltan Varga e7cd27370c Remove the few remaining compile time GC dependencies. 2010-08-09 23:22:42 +02:00
Andrew Jorgensen 489c555aff Add sgen-workers.c to sgen_sources
* Makefile.am: Add sgen-workers.c to sgen_sources
2010-08-09 14:32:23 -06:00
Mark Probst 559bce83be [sgen] Sleep a little while busy-waiting for the gray queue distribution.
In the parallel collector, the main GC thread needs to distribute all
remaining entries in the gray queue to the worker threads.  Since the
distribution pool is limited in size we need to wait on it, which at
this point is only possible with busy-waiting.  Since we don't want to
use up CPU resources and hog the cache lines we wait 2ms between
distribution attempts.
2010-08-09 22:11:31 +02:00
Zoltan Varga f61961c036 Avoid registering roots inside the MonoDomain structure when using Boehm, since
it is GC_MALLOC-ed, and Boehm doesn't like that.
2010-08-09 21:55:25 +02:00
Laurent Etiemble 0f1b1c1988 Fix #560060 - Embedded "app.config" is not read when used inside a bundle.
* mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs: Add new internal call to retrieve embedded application config. First
	check if an embedded configuration exists before looking up on the
	filesystem.

	* mono/metadata/icall-def.h: Add entry for retrieving embedded application
	configuration.

	* mono/metadata/icall.c: Add function to retrieve embedded application
	configuration if one has been registered with the runtime.
2010-08-09 21:21:33 +02:00
Zoltan Varga d87fc19ff4 Fix a typo. 2010-08-09 20:20:29 +02:00
Zoltan Varga 87d9569165 Ignore mono_use_llvm when JITting in a runtime compiled without LLVM support. 2010-08-09 20:05:34 +02:00
Zoltan Varga 9a922b0bd7 Update the comments for mono_use_llvm. 2010-08-09 19:58:54 +02:00
Zoltan Varga 1c65751376 Call BeginErrorReadLine()/BeginOutputReadLine() in a Process test so it runs on windows too. 2010-08-09 19:43:38 +02:00
Andrew Jorgensen 4224b111fe Bump version to 2.7.1 2010-08-09 11:30:31 -06:00
Andrew Jorgensen 4ebb9ced1e Add System.ServiceModel.Discovery to .spec
* mono-core.spec.in: Add System.ServiceModel.Discovery
2010-08-09 11:30:31 -06:00
Gonzalo Paniagua Javier 339909fd3f Proper tracking of ICMP requests and responses.
* Ping.cs: generates a random ICMP Identifier field per Echo to help
	match up pings and their responses. Now has valid TTL and timeouts apply to
	the correct pings.  Also fixed bugs were received Sequence and
	Identifier would be corrupt for values >255, and fixed corruption of
	the Data field.
	Patch by Michael Walsh that fixes bug #627330.
2010-08-09 13:23:15 -04:00
Miguel de Icaza 6184a16a49 Update README 2010-08-09 12:36:31 -04:00
Zoltan Varga 2072ecbf4f Avoid printing the output of /bin/ls in a Process test. 2010-08-09 18:29:01 +02:00
Zoltan Varga 732fad3b05 Remove some hash code tests which can fail. 2010-08-09 18:22:55 +02:00
Gonzalo Paniagua Javier 1af583b6d1 Ignore a few more files. 2010-08-09 12:14:05 -04:00
Elijah Taylor c4f82851d4 Add dummy implementation of g_module functions for NACL. 2010-08-09 17:50:14 +02:00
Elijah Taylor 52234b8661 Add a test for running the regression tests in a full-aot+static environment. 2010-08-09 17:49:20 +02:00
Elijah Taylor 936d7d3e89 Don't use mmap/munmap under NACL. 2010-08-09 17:44:08 +02:00
Elijah Taylor 467b5dfe2f Use 32 as the min alignment when running under NACL. 2010-08-09 17:43:41 +02:00
Elijah Taylor b97dfc8909 Add support to the x86 backend for generating code compatible with Google
Native Client codegen requirements.
2010-08-09 17:41:51 +02:00
Elijah Taylor 68908a39a1 Add hooks to the codegen macros to support NACL codegen. 2010-08-09 17:40:18 +02:00
Elijah Taylor 1385620d12 Add configure support for Google Native Client (NACL). 2010-08-09 17:39:50 +02:00
Zoltan Varga 81fea2952f Disable the elimination of MONO_INST_FAULT in ABCREM, LLVM can move the non-faulting loads to before the faulting loads which they depend on. 2010-08-09 16:07:38 +02:00
Marek Habersack 09babb5146 [asp.net] Fix for bug #628683. Do not ignore whitespace between <%: %> blocks 2010-08-09 16:03:41 +02:00
Jb Evain b7a32c0baa Fix typo 2010-08-09 15:45:53 +02:00
Atsushi Eno 8a701b606e oops, they should not write wrapper element twice. 2010-08-09 21:43:08 +09:00
Marek Habersack 9d89339d8a [asp.net] Fix for bug #618481. AsyncPostBackTrigger.OnEvent must call Owner.Update only for conditionally updated panels
If the owner UpdatePanel has its UpdateMode set to Always, do not call Update () as it will cause an InvalidOperationException
to be thrown.
2010-08-09 14:30:29 +02:00
Marek Habersack ee93d927ff [asp.net] AsyncPostBackTrigger.HasTriggered must use FindTargetControl ()
When a postback is made to the server, AsyncPostBackTrigger.HasTriggered must use FindTargetControl (true)
to find the associated control and see if its UniqueID matches the one of the control which originated
the postback. The target control may (and most probably is) outside the control panel and looking for it
only in the collection of child controls will make some sites fail to update content on async postback.
2010-08-09 14:12:54 +02:00
Marek Habersack d43011f895 [asp.net,bugfix] Fix for bug #620456. AsyncPostBackTrigger must look for target control in naming containers
AsyncPostBackTrigger must search for the associated control in the naming containers during intialization
because its ControlID property is initialized with the unique name of the target control.
2010-08-09 14:12:53 +02:00
atsushieno 78ad555639 finished Discovery serialization stuff. 2010-08-09 21:00:26 +09:00
atsushieno 136ef9f630 ongoing Sys.SM.Discovery serialization implementation. 2010-08-09 17:46:12 +09:00
atsushieno c7d49e94be Parse list type, and parse QName without prefix, as expected. 2010-08-09 17:43:40 +09:00
Zoltan Varga e739c40869 Use faulting load for loading the vtable in CEE_LDELEMA. 2010-08-09 00:49:30 +02:00
Carlos Alberto Cortez c0b8f54a06 [fix] #620618: Make sure the header in ListView is always on top.
* ListView.cs: When using Details view re-populate our implicit
	control collection to our header control is always on top. We
	could try to just use BringToFront but since these controls are
	implicit, we are not gracefully handling them.
2010-08-08 18:47:21 +02:00
Carlos Alberto Cortez b4830accee New test for ListView.Dispose firing extra Layout events.
* ListViewTest.cs: New test to make sure Dispose is not
	generating extra Layout events.
2010-08-08 18:47:21 +02:00
Carlos Alberto Cortez b8835e7a9a [fix] #622318: ListView.Dispose should not call dispose on its implicit scrollbars.
* ListView.cs: Don't call Dispose for our implicit scrollbars,
	as the default Control.Dispose impl is already disposing all the
	implicit controls. This was generating extra Layout
	events when disposing.
2010-08-08 18:47:21 +02:00
Mark Probst 538e1a3a83 [sgen] Fixed heap for Mark&Sweep.
This is a new variant of Mark&Sweep which uses a pre-allocated
fixed-size heap instead of a dynamically grown, segmented one.  The
main advantage of this heap organization is that it takes only one
pointer comparison to determine whether an object is on the small
object heap or in the LOS, instead of inspecting the object's size,
which requires three loads.  Since that determination is required for
every marked object, speeding it up can improve performance
significantly.
2010-08-08 16:32:59 +02:00
Mark Probst e9e91d9779 [sgen] Fix sgen-grep-binprot.
The refactoring that occurred with addition of parallel mark left
sgen-grep-binprot in an uncompilable state.  Fix.
2010-08-08 15:14:26 +02:00
Mark Probst 5240533e2b [sgen] Fixes.
The parallel mark merge was missing a header and included an erroneous
call to workers_init().
2010-08-08 02:25:22 +02:00
Zoltan Varga de081a8af0 Fix Math.Log (2, 1). Fixes #626944. 2010-08-07 22:23:35 +02:00
Zoltan Varga d65a53fe4d Move wapi shutdown to mono_cleanup () as TlsGetValue()/TlsSetValue() is used
during shutdown.
2010-08-07 22:23:35 +02:00
Zoltan Varga 77daefe053 Disable all profiler events after profiler shutdown.
* profiler.c (mono_profiler_shutdown): Disable all profiler events.
2010-08-07 22:23:35 +02:00
Mark Probst e4b9b88020 Merge branch 'parallel-mark' 2010-08-07 21:07:06 +02:00
Mark Probst e16f902c97 [sgen] Separate mark function for parallel vs non-parallel mark&sweep.
Revive the old serial mark function for serial Mark&Sweep
because it's simpler and faster.
2010-08-07 21:06:22 +02:00
Mark Probst f754ab71a3 [sgen] Make parallel vs non-parallel mark&sweep selectable.
Make the parallel Mark&Sweep collector selectable with the "major"
option of the "MONO_GC_PARAMS" variable as "marksweep-par".  The
serial Mark&Sweep collector remains the default as "marksweep".
2010-08-07 21:06:22 +02:00
Mark Probst 714c889e5a [sgen] One internal allocator per worker thread, to get rid of locking.
Previously we used one internal allocator.  That was not a problem as
long as SGen was single-threaded.  With parallel mark, however, we
needed a lock for the internal allocator to make it work.  This patch
makes each worker thread use its own internal allocator instead, so we
don't have to lock anymore.

One problem introduced by this approach is that the allocator from
which a gray queue section was allocated is not known at the point where
the section is freed, because it might have been sent off to a different
worker thread.  To solve this we have a "delayed" free function, which
determines the correct internal allocator from the internal allocator
block (which is aligned).  The section is then added to a delayed free
queue of that allocator which is processed at some point by that
allocator's worker thread.

Note that the section cannot be freed by the thread that calls the
delayed free function because that would result in the possibility of
the "ABA" problem occuring.
2010-08-07 21:06:22 +02:00
Mark Probst b0daad9a2a [sgen] Heavy statistics for the shared buffer. 2010-08-07 21:06:21 +02:00
Mark Probst b94efec6e3 [sgen] Parallel mark.
Make the mark phase of the Mark&Sweep collector parallel.
At GC initialization we start a number of worker threads (as much
as the machine has cores) between which the objects in the gray
queue are distributed for marking.
2010-08-07 21:06:20 +02:00
Mark Probst 8c1fb6f83a [sgen] Fix SGEN_ATOMIC_ADD. 2010-08-07 21:06:20 +02:00
Miguel de Icaza 911451dc98 Merge branch 'master' of github.com:mono/mono 2010-08-07 12:57:27 -04:00
Miguel de Icaza 94db108096 Do not mandate that pkg-config is installed, it is only used for the comparative test suite 2010-08-07 12:57:18 -04:00
Carlos Alberto Cortez e18677b72b Implement SafeRegistryHandle.ReleaseHandle and update call sites.
* Microsoft.Win32.SafeHandles/SafeRegistryHandle.cs: Implement
	ReleaseHandle by pinvoking RegCloseKey if we are on windows, and
	nothing otherwise.

	* Microsoft.Win32/Win32RegistryApi.cs:
	* Microsoft.Win32/RegistryKey.cs: Don't call SafeHandle.Close
	from our public api, and do it instead un the windows layer, as
	we only support it there for now.
2010-08-07 10:19:49 +02:00
Zoltan Varga 86a4ee0767 Avoid loading AOT images compiled against Boehm in an SGEN runtime, and vice versa. Use 'amodule' instead of 'aot_module' in more places. 2010-08-07 03:40:25 +02:00
Atsushi Eno 9ce5fb9f77 implement FindCriteria serialization (deserialization is not yet). 2010-08-07 09:23:59 +09:00
Mark Mason 2649a3ba7f Finish implementation of OP_IMUL_OVF_UN.
This and earlier changes contributed under MIT/X11 license.
2010-08-07 01:43:24 +02:00
Mark Mason b0a3864af7 Add missing memindex opcodes. Implement IMT thunks for MIPS 2010-08-07 01:43:24 +02:00
Mark Mason 7f011043e8 Implement this as first argument to function calls. 2010-08-07 01:43:24 +02:00
Mark Mason 828f5efe7c Initial IMT for MIPS. Fix the first arg to trampoline functions 2010-08-07 01:43:24 +02:00
Mark Mason 91a53964a4 Add IMT for MIPS. Fix MIPS branch opcodes. Fix *_OVF expansions. Cleanups to trampoline handling. 2010-08-07 01:43:23 +02:00
Marek Habersack 51e6b86309 [asp.net,4.0] Added support for setting default base types for various kinds of resources.
ASP.NET 4.0 allows one to set base types for Pages, User Controls, Application and PageParserFilter
from the pre-application start method(s). This commit implements support for this mechanism.

* ApplicationFileParser.cs: added override of DefaultBaseType property which checks whether
  PageParser.DefaultApplicationBaseType is set and, if yes, uses it to set application base type
  if there's no custom Global.asax
* PageParser.cs: implemented the EnableLongStringsAsResources, DefaultPageBaseType, DefaultApplicationBaseType,
  DefaultPageParserFilterType and DefaultUserControlBaseType properties.
* TemplateParser.cs: if PageParser.DefaultPageParserFilterType is set, use it as the default type to create instance
  of the page parser filter
* Added tests for the new properties.
* Added support in standalone runner for setting custom application domain data on domain creation, just before
  the test is ran.
2010-08-06 22:27:08 +02:00
Marek Habersack 3a84414136 [asp.net] Made TemplateParser.CompileIntoType internal
This method was present only in 1.0 and 1.1 profiles. It's made internal because
we use it throughout our code.
2010-08-06 22:27:08 +02:00
Zoltan Varga a4459927f3 Reenable LLVM+AOT again, the latest LLVM branch code works fine. 2010-08-06 22:13:38 +02:00
Zoltan Varga cdc3f3bef7 Fix building with latest LLVM head. 2010-08-06 22:13:37 +02:00
Marek Safar 0626451bae Avoid a crash when using attributes and only partial method definition exists. 2010-08-06 19:28:11 +01:00
Marek Safar af6e004551 Implement dynamic dispatch for element initializers. 2010-08-06 19:28:11 +01:00
Marek Safar d6024e61cc Add more sanity checks for dynamic attributes. 2010-08-06 19:28:10 +01:00
Marek Safar 9621b36f8a Restrict allowed modifiers for struct members. 2010-08-06 19:28:10 +01:00
Jb Evain eff8380b9b DelegateTest.ClosedOverNullReferenceInstanceMethod: remove NotWorking attribute 2010-08-06 18:24:40 +02:00
Jb Evain 81d23f19f7 [fix] #475962: delegates to instance methods closed over null
* marshal.c (mono_marshal_get_delegate_invoke): add support for
delegates pointing to instance methods that are closed over null.
Managed side of the feature is in 2ec0ab59fe.
2010-08-06 18:23:49 +02:00
Jonathan Pryor 90e8581201 Remove System.Configuration.ConfigurationErrorsExceptions from startup.
If an app uses e.g. System.Diagnostics.Trace (and the Trace methods are
actually invoked, e.g. by building with -d:TRACE and using Trace.WriteLine()),
at least one System.Configuration.ConfigurationErrorsException was being
generated as part of startup (one from parsing machine.config, and an optional
second exception from parsing AppName.exe.config).

The exception was caught, so it didn't break anything, but it was still
undesirable.

The cause of the exception is as follows: The <system.diagnostics/>
configuration section is processed by DiagnosticsConfigurationHandler, which
is an IConfigurationSectionHandler implementation.  In .NET 2.0, configuration
file processing was moved to use System.Configuration.ConfigurationSection
implementations, which would delegate to IConfigurationSectionHandlers if/when
specified.

However, before ConfigurationSection.GetRuntimeObject() calls into
DiagnosticsConfigurationHandler, it would indirectly call
ConfigurationElement.DeserializeElement() to process the e.g.
<system.diagnostics/> element, which would throw as ConfigurationElement was
hitting "unrecognized" XML elements (as ConfigurationElement doesn't know about
DiagnosticsConfigurationHandler-specific XML).  This would result in a
ConfigurationErrorsException, which would be caught in GetRuntimeObject(),
then DiagnosticsConfigurationHandler.Create() would be invoked (doing the
"actual" <system.diagnostics/> parsing, allowing Trace to work, etc.

The fix taken here is to avoid calling
ConfigurationElement.DeserializeElement() if there's an
IConfigurationSectionHandler present, as it doesn't make sense to parse the
same section with two different handlers.
2010-08-06 11:56:26 -04:00
Mark Probst d3f444e950 [sgen] Initialize interruption lock. 2010-08-06 17:50:53 +02:00
Jb Evain b87bd5ff29 [Perf] avoid an exception when reading a non existent app configuration
Make implementors of IInternalConfigurationHost.OpenStreamForRead return null instead of throwing an exception when there's no usable configuration file and deal with null at the call site.
2010-08-06 17:27:40 +02:00
Atsushi Eno ba91a20909 support Uri in WriteValue(). 2010-08-06 21:59:27 +09:00
Marek Safar 3be111b06d More fixes for equality comparison between G<object> and G<dynamic>. 2010-08-06 12:49:20 +01:00
Marek Safar 4a028e09b8 Removed duplicate variant conversion. 2010-08-06 12:49:19 +01:00
Jb Evain 93e0e07963 Test that we can call GetMethodBody on a method defined in a dynamic module. 2010-08-06 13:07:17 +02:00
Jb Evain b6b626da91 mono_method_body_get_object: implement support for methods defined in dynamic modules. Fixes #628660. 2010-08-06 13:07:17 +02:00
Atsushi Eno 04e5584503 Implement DiscoveryMessageSequence* types serialization. 2010-08-06 19:47:22 +09:00
Atsushi Eno 3a260031d7 fix exception type and make nunit tests pass. 2010-08-06 19:45:56 +09:00
Atsushi Eno d7f0384e44 For IXmlSerializable types it should first try static GetSchema() for QName. WS-DD uses it. 2010-08-06 19:43:20 +09:00
Atsushi Eno c8935e97b6 KnownTypes should return the actual types. 2010-08-06 19:41:35 +09:00
Atsushi Eno 3fc618dc7a ongoing sys.sm.discovery work. 2010-08-06 14:22:12 +09:00
Zoltan Varga c23c6d0bb6 Name the LLVM argument variables arg_<real arg name>. 2010-08-06 01:32:20 +02:00
Marek Habersack 8731e553a7 [asp.net,4.0] Added support for declarative per-user control output cache provider selection
This adds support for the ProviderName attribute of the OutputCache directive in user controls.
Also implemented missing support for SqlDependency attribute.

* TemplateControlCompiler.cs: StaticPartialCachingControl instantiation now uses the constructor overloads
  which accept sqlDependency (2.0+) and providerName (4.0+)
* UserControlCompiler.cs: added code to output PartialCachingAttribute which accepts sqlDependency (2.0+) and
  ProviderName (4.0+) arguments
* PartialCachingAttribute.cs added the 4.0 ProviderName property
* StaticPartialCachingControl.cs: implemented two missing constructors (one 2.0 and the other 4.0)
  Added a missing BuildCachedControl overload which accepts providerName (4.0)
* TemplateParser.cs: factored out OutputCache attribute processing to a separate internal virtual method.
* UserControlParser.cs: added support for the ProviderName attribute of the OutputCache directive.
2010-08-06 01:27:34 +02:00
Marek Habersack 80244984a0 [asp.net,4.0] added ability to store cached user controls in specified output cache provider
This commit implements the ability to programmatically set the name of the output cache provider
to hold cached control data.

* OutputCache.cs: added DefaultProvider internal property to return whatever default provider is
  configured.
  Added GetProvider() method to return instance of a named provider
* BasePartialCachingControl.cs: cache key and cached data are store in instance fields.
  Added 4.0 internal property ProviderName which names the output cache provider to use for storage.
  Removed OnInit from 4.0 profile, replaced with an override of Control's InitRecursive. Control is
  created only when cached data is not found in the provider.
* Control.cs: made InitRecursive virtual for the benefit of BasePartialCachingControl above.
* ControlCachePolicy.cs: added 4.0 property ProviderName
2010-08-06 01:27:34 +02:00
Zoltan Varga 1b47b01203 Fix the placement of the .rodata section, it should come after the .text
section.
2010-08-06 01:17:37 +02:00
Gonzalo Paniagua Javier 2adf0eef34 Silently ignore ThreadAbortException in the tpool.
* threadpool.c: ignore ThreadAbortException when it is unhandled in a
	threadpool thread.
2010-08-05 14:21:57 -04:00
Gonzalo Paniagua Javier c5485ce286 Don't display the exception when unloading.
* HttpRuntime.cs: don't display the abort exception received by the
	thread unloading the domain.
2010-08-05 14:21:56 -04:00
Gonzalo Paniagua Javier f64f658968 Synchronize WSQ create, destroy and clean up.
* threadpool.c: the calls to wsq_create, wsq_destroy and wsq_cleanup
	are inside a lock now to avoid race conditions upon shut down. Fixes
	bug #625359.
2010-08-05 14:21:56 -04:00
Gonzalo Paniagua Javier 35343239bf -1 == NO_KEY and check return value of TlsSetValue
* mono-wsq.c: replaced -1 with a #define. Check the return value of
	TlsSetValue when creating a new queue.
2010-08-05 14:21:56 -04:00
Gonzalo Paniagua Javier c2aa104e84 TlsGetValue/TlsSetValue match winapi closely.
* wthreads.c: upper bound is checked, SetLastError is called from
	TlsGetValue() as documented.
2010-08-05 14:21:56 -04:00
Raja R Harinath ac0992ece7 * mono/tests/appdomain-unload.cs (Main): Pass along arguments to TestDriver. 2010-08-05 23:43:24 +05:30
Zoltan Varga b1840c162c Disable system aot when LLVM is enabled for now. 2010-08-05 17:07:07 +02:00
Zoltan Varga 13b3a24aea Fix the box+brtrue optimization for LLVM, add a box+brfalse case too. 2010-08-05 17:04:09 +02:00
Marek Safar 2b580eaaf0 Add more files to ignore list 2010-08-05 15:22:27 +01:00
Marek Safar 5da7b58b12 Resolve ambiguity between optional and params parameter. Fixes #582360, #625353 2010-08-05 15:22:27 +01:00
Marek Habersack 7e0a0a69f0 Revert "EncoderFallback support in UTF8Encoding. Fixed bug #565129."
This reverts commit d961246014 because it breaks 2 tests in
System.Web on 2.0 and 4 on 4.0 profile.
2010-08-05 15:32:58 +02:00
Marek Habersack 2b02fff231 [asp.net] use auto-generated backing fields for all properties 2010-08-05 15:24:49 +02:00
Marek Habersack 6ab66d483e [asp.net] implemented several missing properties in BoundPropertyEntr
* BoundPropertyEntry.cs: implemented the ControlID, ControlType, ExpressionBuilder, FieldName,
  FormatString, ParsedExpressionData, ReadOnlyProperty and TwoWayBound properties (2.0+)
2010-08-05 15:19:37 +02:00
Ankit Jain 021b8db149 [xbuild] Handle multi-line output from tool.
Output received from the process can be multiline, split and process
it.
2010-08-05 17:35:05 +05:30
Ankit Jain 4c37debc11 [xbuild] Fix #628525. Fix incremental rebuild.
When doing a rebuild for an already built project, the common
files (CopyLocal) should not be deleted by a project, as
other projects might be depending on them. This becomes a problem
when a common output dir is used.
2010-08-05 17:34:57 +05:30
Raja R Harinath 3521888347 update {tests,errors}/known-issues-?mcs 2010-08-05 17:12:34 +05:30
Mark Probst b45b940d7e [Documentation] Document SGen environment variables.
Document the MONO_GC_PARAMS variable in the man page and the "major"
option of this variable in the error message.
2010-08-05 11:17:20 +02:00
Zoltan Varga 9cb4a1af6b Disable box+brtrue optimization for LLVM for now. 2010-08-05 01:25:20 +02:00
Mark Probst 7d1d281daa [dist] Only run the commit-to-changelog script if there's a repository.
Since "make dist" should also work from a tarball we must only call
the commit-to-changelog script if there's a git repository present.
If we're already in a disted tree, the script has already run.
2010-08-05 00:13:06 +02:00
Mark Probst 934e057068 [scripts] commit-to-changelog fails if git is too old
We need a git that supports the %B format specifier, which seems to be
1.7.2.  Fail if it's not supported.
2010-08-05 00:01:28 +02:00
Mark Probst daf44148ad [scripts] commit-to-changelog fails if git fails
The commit-to-changelog script now fails if git fails for whatever
reason.  The most important reasons would be that git isn't installed,
and that the script is called without a repository.
2010-08-05 00:01:27 +02:00
Rodrigo Kumpera 11a85794e3 Add test for using generic arguments from other methods.
* MethodBuilderTest.cs: Add test for generic arguments
	used are parameter of a method builder.
2010-08-04 18:40:24 -03:00
Rodrigo Kumpera b3ef66a99c Handle arguments with generic parameters from other methods.
* reflection.c (reflection_methodbuilder_to_mono_method):
	Handle the case where a method parameter is defined using
	a generic argument of another method. The resulting signature
	must use the generic arguments of the method it belongs and
	not from others.
	This fixes one issue found while testing IronRuby 1.1.
2010-08-04 18:40:24 -03:00
Andrew Jorgensen fe7a32634b Don't call commit-to-changelog until after mcs is dist'd 2010-08-04 15:07:52 -06:00
Andrew Jorgensen 6ca5a3b760 Fix "make dist" for the .po files
* POTFILES.in: mcs lives under mono now, so the ../ gets dropped
2010-08-04 14:39:27 -06:00
Andrew Jorgensen b19b8c22fa Fix tarball build (sgen-major-*-object.h)
* Makefile.am (libmonoruntime_la_SOURCES): Add sgen-major-*-object.h
2010-08-04 13:58:23 -06:00
Marek Habersack b0f59ebc86 [asp.net] implemented BaseTemplateParser.{GetReferencedType,GetUserControlType} methods
* BuildProvider.cs: factored out build provider type retrieval code to a separate method
* BuildProviderCollection.cs: factored out build provider type retrieval code to a separate method
* BuildManagerDirectoryBuilder.cs: system.web/compilation section is not an application section - it can
  be defined in web.config on any level.
2010-08-04 21:50:33 +02:00
Rodrigo Kumpera 7b51830ad8 Merge branch 'improve_signature_parsing_error_messages' 2010-08-04 16:31:59 -03:00
Rodrigo Kumpera 2bc36b61df Improve error message for signature load failure.
* loader.c (mono_method_signature): Print type and
	method name in case of signature parsing error.
2010-08-04 16:30:45 -03:00
Rodrigo Kumpera e8f084cc3b Improve error reporting of bad signatures.
* metadata-verify.c (mono_method_signature_checked): Change
	signature to take a MonoError* instead of a GList** to make
	it easier to the runtime to get error messages out of the
	metadata verifier.

	* verify-internals.h: Change signature.

	* loader.c (mono_method_signature_checked): Pass the current
	MonoError to mono_method_signature_checked to get better
	error messages.
2010-08-04 16:25:20 -03:00
Rodrigo Kumpera 64e8377b8f Change type of a given parameter.
* metadata-verify.c (init_verify_context): Change parameter
	from GList** to gboolean so it can be used with functions that
	don't receive a GList** argument.
2010-08-04 15:53:28 -03:00
Andrew Jorgensen 67fae266a1 Fix dist (sgen-protocol.h)
* Makefile.am (libmonoruntime_la_SOURCES): Add sgen-protocol.h
2010-08-04 12:53:08 -06:00
Marek Habersack 6950d09c38 [asp.net, 4.0] Added support for RepeatLayout lists to the list controls. 2010-08-04 20:20:30 +02:00
Miguel de Icaza 56cf5b262b [Documentation] Embed rationale for change in the source code 2010-08-04 14:17:25 -04:00
Rodrigo Kumpera 856246b15e Fix a crash on appdomain unload stress.
* mini-exceptions.c (mono_install_handler_block_guard): Guard against a
	null MonoJitTlsData. This can happens if the thread receives the
	interrupt signal before the JIT has time to initialize its
	TLS data for the given thread.
2010-08-04 14:57:28 -03:00
Jérémie Laval c76a103c34 Rename ThreadLocal unit tests to reflect API name change (was ThreadLazy). 2010-08-04 19:27:10 +02:00
Jérémie Laval f469599711 Include set accessor in ThreadLocal's Value property. Catch possible exception in the initialization function and re-throw it accordingly. Track circular calling of Value property. Add corresponding unit-tests. 2010-08-04 19:27:09 +02:00
Marek Habersack afb4f9ed47 Merge branch 'aspnet4'
* aspnet4:
  [asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo
2010-08-04 18:56:08 +02:00
Marek Habersack a131f24eae [asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo
Also added auto-generated tests for the new layouts and updated the test generator to account
for the new layouts in 4.0.
2010-08-04 18:54:53 +02:00
Ankit Jain cb789ddaa1 [xbuild] Ignore missing imports when parsing solution file.
When loading projects specified in the solution file, to find
their dependencies, missing imports cause an exception to be
thrown and so the deps are not available in the project instance.
2010-08-04 21:58:22 +05:30
Marek Safar e2a9066c3f Ambiguous enumerator pattern means that we can still try to apply
interface matching rules. Fixes #620154
2010-08-04 15:46:11 +01:00
Marek Safar ff97a18225 Use TypeSpecComparer.Default comparer for dynamic ref/out arguments. 2010-08-04 15:46:10 +01:00
Marek Habersack 65f831d5a7 Make sure configuration is not null before using it. 2010-08-04 16:08:05 +02:00
Jb Evain ff3ff33eed mono_custom_attrs_from_param: return null if the method defining the parameter can not be found in the MethodDef table to avoid false positives 2010-08-04 15:46:19 +02:00
Jb Evain 344b2e9d65 mono_method_get_index: return zero for constructed array methods as they don't exist in the MethodDef table 2010-08-04 15:46:18 +02:00
Jb Evain f2748f7d9f Add test ensuring that parameters of constructed array methods define no custom attribute 2010-08-04 15:46:18 +02:00
Marek Safar 315d6800df Merge branch 'master' of github.com:mono/mono 2010-08-04 12:30:43 +01:00
Marek Safar 4f0e271651 Add special compiler define RUN_ONDOTNET. Fixes #624942 2010-08-04 12:27:21 +01:00
Ankit Jain df7c9081e8 [xbuild] Override global properties before project Load.
MSBuild task can override properties for a project, and these
should be applied before the project file is loaded. This is to
allow the properties to be available for Imports. Eg.

 <Import Project="$(SolutionDir)\foo.targets"/>

$(SolutionDir) is generally set by the MSBuild task in a .sln.proj
file.
Bug reported by JB Evain.

    * Microsoft.Build.BuildEngine/Engine.cs:
    Apply global properties before the project load.

    * Test/*/EngineTest.cs (TestGlobalPropertiesImport*): New tests.
2010-08-04 16:38:56 +05:30
atsushieno 71992148d7 implement missing configuration members in Sys.SM.Web. 2010-08-04 19:21:03 +09:00
atsushieno ad9dcaa397 implemented some Sys.SM.Discovery types. 2010-08-04 18:52:09 +09:00
Marek Safar 5495bffa21 Add escaping for legacy keyword. 2010-08-04 10:28:18 +01:00
Marek Safar 1d47c54991 Member names cannot be the same as their enclosing type. Fixes #627296 2010-08-04 08:24:17 +01:00
Jb Evain 6f103145b4 DynamicConversion: properly order the arguments to Binder.Convert 2010-08-04 09:17:19 +02:00
Jb Evain c40a4168a2 Microsoft.CSharp.RuntimeBinder.Binder::Convert: fix parameter ordering to match .net 4.0 2010-08-04 09:16:35 +02:00
atsushieno f2da635a51 Add System.ServiceModel.Discovery (now that it builds fine). 2010-08-04 15:48:25 +09:00
atsushieno e65902f925 Merge branch 'master' of github.com:mono/mono into atsushi 2010-08-04 15:38:40 +09:00
atsushieno d961246014 EncoderFallback support in UTF8Encoding. Fixed bug #565129.
Patch mostly by JB Evain.
2010-08-04 15:32:54 +09:00
Raja R Harinath cc50d3ac37 Implement envelope sender semantics in SmtpClient
* System.Net.Mail/SmtpClient.cs (SendCore): Compute envelope sender
separately from the 'From: ' header.
* Test/System.Net.Mail/SmtpClientTest.cs (Deliver_Envelope): New.
2010-08-04 09:57:08 +05:30
Raja R Harinath 57f8ebd654 Add a dummy SmtpServer to talk to our SmtpClient in unit tests
* SmtpServer.cs: New.
* SmtpClientTest.cs (Deliver): New.  Use it.
2010-08-04 09:57:08 +05:30
Mark Probst 0a1d58da93 Merge branch 'selectable-major' 2010-08-04 03:56:17 +02:00
Mark Probst e78891dff7 [sgen] Fix binary protocol.
The major collector refactoring left the binary protocol broken.  Fix
it.
2010-08-04 03:56:11 +02:00
Mark Probst e56a2c7bfb [sgen] Fix heavy statistics.
The major collector refactoring left heavy statistics broken.  A few
heavy statistics counters are defined in sgen-gc.c but used in the
major collectors.  We're now exporting them.  Another possibility
would have been to define them in both major collectors, but since
this is only a debug feature that's not normally compiled in, we don't
care.
2010-08-04 03:56:10 +02:00
Mark Probst 3b5657cad9 [sgen] Inline mono_sgen_par_object_get_size().
Define mono_sgen_par_object_get_size() as an inline function in
sgen-gc.h.
2010-08-04 03:56:10 +02:00
Mark Probst 4c4227a650 [sgen] Put all scan and copy functions into the major collectors.
Let the major collectors define their own versions of all the scan
and copy functions, too.  We avoid indirect calls and allow more
inlining.
2010-08-04 03:56:09 +02:00
Mark Probst 2f3f478a0c [sgen] Put major_scan_object() into the major collectors.
Make the major collectors define their own versions of
major_scan_object() by including a small header file.  This
avoids indirect calls to major_copy_or_mark_object() and
allows inlining.
2010-08-04 03:56:09 +02:00
Mark Probst 35d164c8a7 [sgen] Make major collector configurable via MONO_GC_PARAMS.
We can now tell SGen which major collector to use by setting
the "major" parameter in MONO_GC_PARAMS to either "copying" or
"marksweep".
2010-08-04 03:56:09 +02:00
Mark Probst 7233d9b637 [sgen] Major collectors in their own compilation units.
SGen's two major collector, copying and mark&sweep, are now
in their own separate compilation units, communicating with
SGen through an internal API.
2010-08-04 03:56:08 +02:00
Zoltan Varga f7fdedb89e Avoid creating the namedSlots array in the static cctor, so it is not
constructed at runtime shutdown.
2010-08-04 03:44:53 +02:00
Zoltan Varga b4d94f429b Increase a buf size.
2010-08-04  Zoltan Varga  <[email protected]>

	* aot-compiler.c (emit_extra_methods): Increase a buf size.
2010-08-04 03:40:19 +02:00
Zoltan Varga 976c80c04a Avoid returning non MonoMethod's.
* marshal.c (mono_marshal_method_from_wrapper): Avoid returning non MonoMethod's.
2010-08-04 03:40:19 +02:00
Mark Probst 0515d3c4db [ppc] Fix build.
calculate_sizes() needs a generic sharing context, so we pass it in.
2010-08-04 01:21:48 +02:00
Zoltan Varga 889b6d8cc1 Add mini-llvm-cpp.h.
* Makefile.am (common_sources): Add mini-llvm-cpp.h.
2010-08-04 01:11:02 +02:00
Jérémie Laval af30815fc9 Add missing BOOTSTRAP_NET_4_0 define check in ManualResetEventSlim (as BlockingCollection now depends on that type). 2010-08-04 00:48:19 +02:00
Jérémie Laval 3e4304d36e Fix two minor exception misusages in BlockingCollection. 2010-08-03 21:54:37 +02:00
Jérémie Laval a0448d4148 [Fix] Add deep-sleep to BlockingCollection using two ManualResetEventSlim for signaling when waiting in "collection-is-full-while-adding" and "collection-is-empty-while-taking" scenarios. Should definitely fix #624849. 2010-08-03 21:54:36 +02:00
Jérémie Laval fc315f7699 Sanitize use of CancellationToken in BlockingCollection. 2010-08-03 21:54:36 +02:00
Jérémie Laval 1fc14ca95c Add a coherence subtest to SemaphoreSlim unit tests to enforce that only the correct number of thread are allowed to run concurrently. 2010-08-03 21:54:35 +02:00
Jérémie Laval cbeba40192 Use SemaphoreSlim underlying kernel-based event to sleep deeper when too much time has already been spent spinning.
Same rationale change than ealier ManualResetEventSlim commit.
2010-08-03 21:54:35 +02:00
Jérémie Laval 69c10af204 Correctly uses CancellationToken's ThrowIfCancellationRequested method in SemaphoreSlim and throw OperationCanceledException instead of returning false. 2010-08-03 21:54:34 +02:00
Jérémie Laval ecd6b2b7db Correctly set SemaphoreSlim underlying kernel-based event state when it's changing state itself. 2010-08-03 21:54:33 +02:00
Jérémie Laval bc9c912418 Correctly use ManualResetEventSlim's kernel-based counterpart to deep sleep when too much has already been spent spinning.
Instead of using solely SpinWait's SpinOnce method after ManualResetEventSlim's spinCount is reached, it now uses ManualResetEvent's WaitOne method. Various other checks like CancellationToken canceled state are still verified during that time albeit slower.
2010-08-03 21:54:32 +02:00
Jérémie Laval 21b8c50c28 Use directly CancellationToken's ThrowIfCancellationRequested in ManualResetEventSlim 2010-08-03 21:54:31 +02:00
Jérémie Laval 92efe8deb3 Use kernel-event in ThreadWorker and Scheduler to sync new arrival of work to do.
Instead of shutting down the thread when there is no more work to do, each ThreadWorker will now block on an EventWaitHandler and be awoken later by Scheduler.
2010-08-03 21:54:31 +02:00
Jérémie Laval d6078fde3d Revert stalling changes introduced in SpinWait. Add a guard for ntime overflow.
The deeper-sleep stalling code path is now delegated to the concerned types rather than being directly inside SpinWait.
2010-08-03 21:54:30 +02:00
Marek Safar ffd6ceec95 Report CS0243 before CS0578. Fixes #624650 2010-08-03 17:23:29 +01:00
Marek Safar c4e1412b7a Add more cases for 4.0 identity comparison. Fixes #624183 2010-08-03 17:12:55 +01:00
Andrés G. Aragoneses fb7b64647c Add the name="..." notation to the field examples too (besides the signature="..." one). 2010-08-03 23:49:07 +08:00
Marek Habersack cfa15a27ef Removed a few ONLY_1_1 ifdefs 2010-08-03 17:25:10 +02:00
Marek Habersack 69cc95ccc4 Test commit - please ignore 2010-08-03 16:58:43 +02:00
Jb Evain 38e6f63660 Add tests for delegates closed over null 2010-08-03 16:44:22 +02:00
Jb Evain 2ec0ab59fe Delegate.CreateDelegate: add support for delegates closed over null for instance methods 2010-08-03 16:44:22 +02:00
Marek Habersack 6f57642799 Removed 1.1 code and NET_2_0 ifdefs 2010-08-03 15:28:51 +02:00
Marek Safar b9ba213889 Fixed equality match between object and dynamic for ref/out parameters. 2010-08-03 12:49:45 +01:00
Marek Safar 983f0c3402 Updated known issues 2010-08-03 10:29:17 +01:00
Marek Safar 5f5b429af4 Merge branch 'master' of github.com:mono/mono 2010-08-03 10:29:12 +01:00
Marek Safar e3aea2a740 Implemented as operator over dynamic expression. Fixes #624194 2010-08-03 10:25:01 +01:00
Ankit Jain 8b469d22cc [xbuild] Add $(TargetFrameworkDirectory) for msbuild compatibility.
* xbuild/xbuild/*/Microsoft.Common.targets: Rename item
@(TargetFrameworkDirectories) to @(_TargetFrameworkDirectories)
to *mark* it as private, and use the new $(TargetFrameworkDirectory)
property instead. Reported by mhutch.
* xbuild/xbuild/*/Microsoft.Silverlight.Common.targets: Update
to track the changes.
2010-08-03 14:19:53 +05:30
Ankit Jain 98141da1b4 [xbuild]When invoking resgen, set MONO_IOMAP only if its not already set.
Microsoft.Build.Tasks/Microsoft.Build.Tasks/GenerateResource.cs: Set
MONO_IOMAP only if its unset, allowing it to be set from command line etc.
2010-08-03 13:45:02 +05:30
Marek Safar ea0060c026 Add verifier assistance for coalescing operator. Fixes #619192 2010-08-02 23:13:43 +01:00
Marek Safar a4f8a44006 Add verifier required boxing of reference type of fields left expression 2010-08-02 23:13:43 +01:00
Zoltan Varga 66bbdc2093 Get rid of mono_arch_get_vcall_slot ().
2010-08-02  Zoltan Varga  <[email protected]>

	* tramp-amd64.c (get_vcall_slot): Move mono_arch_get_vcall_slot () here, since it
	is only used by this file.

	* tramp-x86.c: Ditto.

	* mini-trampolines.c mini-<ARCH>.c: Get rid of mono_arch_get_vcall_slot (), all
	architectures should support MONO_ARCH_THIS_AS_FIRST_ARG now.
2010-08-02 23:35:33 +02:00
Carlos Alberto Cortez 43913024ec Make RegistryKey.Dispose public.
* RegistryKey.cs: Dispose is public in 4.0.
2010-08-02 22:31:50 +02:00
Carlos Alberto Cortez aa37992d7f New test for 4.0 RegistryKey.Handle property.
* RegistryKeyTest.cs: New test for Handle - activated only for
	windows now, as we don't have it implemented in unix.
2010-08-02 22:31:50 +02:00
Carlos Alberto Cortez d80ef03fda Add None to RegistryValueKind enumeration.
* RegistryValueKind.cs: Add None as part of the 4.0 update.
2010-08-02 22:31:49 +02:00
Carlos Alberto Cortez 44dbdaa1f9 Implement 4.0 RegistryKey.Handle property.
* RegistryKey.cs: Implement Handle, but only for Windows, since
	we don't have any unmanaged api to access the registry - and our
	unix impl is fully managed anyway. Also rename our internal
	Handle property to InternalHandle.

	* Win32RegistryApi.cs:
	* UnixRegistryApi.cs:
	* IRegistryApi.cs: Add a GetHandle method, and update calls to
	RegistryKey.Handle to use InternalHandle instead.
2010-08-02 22:31:49 +02:00
Carlos Alberto Cortez 0246781163 Implement 4.0 simple overloads of some RegistryKey methods.
* RegistryKey.cs: Implement the simple overloads of OpenBaseKey,
	OpenRemoteBaseKey, FromHandle that take a RegistryView
	parameter, which we ignore, as well as adding View property.
2010-08-02 22:31:49 +02:00
Carlos Alberto Cortez b9d03e4fde New tests for RegistryKey.FromHandle.
* RegistryKeyTest.cs: New tests for FromHandle,
	as well as the needed bits to get the key handle from
	the unmanaged world.
2010-08-02 22:31:49 +02:00
Carlos Alberto Cortez 9a9d3ad6f3 Implement RegistryKey.FromHandle.
* Win32RegistryApi.cs:
	* RegistryKey.cs: Implement RegistryKey.FromHandle method,
	supported only on Windows as there is not any unmanaged
	convention to retrieve a handle for a given key.

	* Win32ResultCode.cs: Add InvalidHandle code.

	* UnixRegistryApi.cs:
	* IRegistryApi.cs: Update overloads.
2010-08-02 22:31:49 +02:00
Zoltan Varga 4a9af53412 Remove some obsolete comments. 2010-08-03 00:20:09 +02:00
Zoltan Varga 87ea4e33e8 Add a missing unlock.
2010-08-03  Zoltan Varga  <[email protected]>

	* loader.c (mono_method_get_header): Add a missing unlock.
2010-08-03 00:20:09 +02:00
Zoltan Varga 60a7e41afb 2010-08-02 Zoltan Varga <[email protected]>
* exceptions-sparc.c (mono_arch_get_throw_corlib_exception): Fix the sparc build.
2010-08-02 21:32:20 +02:00
Zoltan Varga b80b1cf567 2010-08-02 Zoltan Varga <[email protected]>
* test/test.c (FAILED): Fix linking on systems without vasprintf.
2010-08-02 21:22:39 +02:00
Zoltan Varga 8da719a804 2010-08-02 Zoltan Varga <[email protected]>
* configure.ac: Define _POSIX_PTHREAD_SEMANTICS on solaris to get posix compliant
	versions of some functions.
2010-08-02 21:13:37 +02:00
Zoltan Varga 93d28e417d 2010-08-02 Zoltan Varga <[email protected]>
* mini-sparc.c: Change the calling convention to pass this as first as on other
	architectures. Remove some dead code from the get_vcall_slot().
2010-08-02 20:52:39 +02:00
Marek Safar 84d34dfff1 Emit address load for compound struct references assignment. Fixed #620362 2010-08-02 18:49:24 +01:00
Marek Safar 7427251ee0 Initialize anonymous methods story for all sections inside switch block. Fixes #624324 2010-08-02 17:41:41 +01:00
Marek Safar 9ca5c25715 Actually test the call 2010-08-02 17:41:41 +01:00
Marek Safar 06bc234970 Replace MOONLIGHT with NET_2_1 2010-08-02 17:41:41 +01:00
Mark Probst d224cf2f34 [commit-to-changelog] Bugfix.
The commit-to-changelog script would crash for commits that already
contain ChangeLog entries.
2010-08-02 14:36:56 +02:00
atsushieno 89f62d1b87 Merge branch 'master' of github.com:mono/mono into atsushi 2010-08-02 19:47:42 +09:00
atsushieno 7b0fc4ef0b Fix a bunch of compilation errors now that I can get. 2010-08-02 19:46:28 +09:00
Marek Safar 6d6df7cbc8 Workaround unusual moonlight setup 2010-08-02 11:36:21 +01:00
atsushieno 1a609e05e8 Add build fix (not sure if it is correct; MSDN does not tell it exists.) 2010-08-02 18:18:16 +09:00
Gonzalo Paniagua Javier ef7fe38fa1 Add tests. Make appdomain-unload work again
* Makefile.am: added 2 new tests
	* threadpool-exceptions6.cs: new thread.abort inside the threadpool
	test.
	* appdomain-unload.exe.config: this test does not work in .NET without
	having the legacy unhandled exception mode enabled.
2010-08-01 22:36:29 -04:00
Carlos Alberto Cortez b7ac9aecb9 New test for the 4.0 DeleteSubKeyTree overload.
* RegistryKeyTest.cs: New test for the 4.0 overload of
	DeleteSubKeyTree that takes a boolean to throw an exc.
2010-08-01 23:01:38 +02:00
Carlos Alberto Cortez 30932a0be2 Implement 4.0 DeleteSubKeyTree overload.
* RegistryKey.cs: Implement the 4.0 overload of DeleteSubKeyTree
	that takes a boolean to throw an exception if the key is not
	found. Just expose our already existing method as an internal
	overload for 2.0.
2010-08-01 22:45:27 +02:00
Zoltan Varga f0d235f833 2010-08-02 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Use a bigger set of optimization passes
	by default.
2010-08-02 02:10:28 +02:00
Zoltan Varga ffa74cb97e Revert "Fix building the LLVM backend with recent LLVM SVN versions."
This reverts commit 3c53388c59.

The LLVM version which required this change is broken, so revert this change
along with reverting the 'mono' branch in the mono/llvm repo to a working version.
2010-08-02 01:29:50 +02:00
Raja R Harinath eef99c6b19 Re-enable 'crlf' attributes on *.cs
This fixes EOL conversions flagged by git 1.7.1 core.autocrlf=true.  At this
point, neither git 1.7.1 nor 1.7.2 show any automatic CRLF normalization.
I think we're ready for another experiment.

There seems to be a difference in the handling of mixed line-ending files
between git 1.7.2 and older versions, when core.autocrlf is set to true.
2010-08-02 00:12:34 +05:30
Gonzalo Paniagua Javier dd0874f5be New threadpool + exception test. 2010-08-01 14:31:56 -04:00
Zoltan Varga 3c53388c59 Fix building the LLVM backend with recent LLVM SVN versions.
2010-08-01  Zoltan Varga  <[email protected]>

	* mini-llvm-cpp.cpp (MonoJITMemoryManager): Fix building with recent LLVM SVN versions.
2010-08-01 15:01:40 +02:00
Marek Safar fc1e2c18a2 Update SymbolWriter to use generics collections 2010-08-01 10:22:12 +01:00
Marek Safar 9fd1adaac7 Import abstract members as abstract only, Fixes #617970. 2010-08-01 10:22:07 +01:00
Marek Safar bb57c7a7ab Add my old sync script 2010-08-01 10:22:01 +01:00
Gonzalo Paniagua Javier 93a12ba4e6 Merge remote branch 'tgiphil/master'; commit 'c9bc218cd3ccfa17532a' 2010-08-01 01:38:42 -04:00
Martin Baulig 9232c1d0bf Kill mono_debugger_get_thread_abort_signal().
* mini/debug-debugger.c
  (MONO_DEBUGGER__debugger_info): Add 'thread_abort_signal', pointing
  to a field store the signal number on startup.

* metadata/mono-debug.h: Bump debugger version to 81.6.
2010-07-31 18:53:37 +02:00
Jérémie Laval 4e63b65420 [Fix] Adjust SpinWait values to stall the thread earlier. Fix #624849. 2010-07-31 12:48:19 +02:00
tgiphil 95149da03e Merge branch 'master' of http://github.com/mono/mono 2010-07-30 20:21:11 -07:00
Rodrigo Kumpera da58ce5fd3 Verify the token for ldtoken.
* verify.c (do_load_token): Verify table and index
	of the source token.

	Fixes #560348
2010-07-30 17:16:14 -03:00
Rodrigo Kumpera a330f28c39 Fix verifier test suite.
2010-07-30 Rodrigo Kumpera  <[email protected]>

	* Makefile: Fix build.
2010-07-30 17:16:14 -03:00
Marek Safar 618923dab7 Allow Delegate.Combine/Remove with right null. Fixes #627044 2010-07-30 21:02:09 +01:00
Mark Probst 114deba78d Merge branch 'commit-to-changelog' 2010-07-30 20:59:20 +02:00
Mark Probst f6a12f0096 Don't generate empty ChangeLog entries, insert the whole message instead.
The commits-to-changelog script previously generated ChangeLog entries
with a FIXME if it couldn't find anything applicable for that
particular ChangeLog.  Since we want to use the script for "make dist"
it shouldn't do this.  Instead it now just inserts the whole commit
message in those ChangeLogs.
2010-07-30 20:58:57 +02:00
Mark Probst ab9b34d79f "make dist" updates the ChangeLogs automatically.
When creating a distribution "make dist" now uses the
commits-to-changelog script to automatically update all
ChangeLog files since the last commit marked with the
"last-commit-with-compulsory-changelog-entry" tag.
2010-07-30 20:58:57 +02:00
Mark Probst 7ed3c6305f commits-to-changelog script.
This script converts git commit messages to ChangeLog entries.  That
will hopefully allow us to forego adding ChangeLog entries in our
commits, which always leads to merge conflicts.
2010-07-30 20:58:57 +02:00
Carlos Alberto Cortez cc871f21d8 Add tests for GetSubKeyNames and DeleteSubKey rotines with volatile keys.
* RegistryKeyTest.cs: New tests for volatile keys children
	handling.
2010-07-30 16:26:51 +02:00
Carlos Alberto Cortez 9401558821 Move subkey info routines into KeyHandler to handle volatile keys.
* UnixRegistryApi.cs: Move GetSubKeyCount and GetSubKeyNames to
	KeyHandler, so we can properly track volatile subkeys there
	*without* exposing any impl details.
2010-07-30 16:13:22 +02:00
Marek Safar 3f6f46567b Run extension methods overload resolver always in same overloader context as original methodgroup 2010-07-30 19:31:48 +01:00
Jb Evain d779e8a85a Delegate.Remove: throw when passing delegates of incompatible types 2010-07-30 17:42:15 +02:00
Jb Evain 5f677edab3 Add test for incompatible types in Delegate.Remove 2010-07-30 17:42:14 +02:00
atsushieno 6ea50e7692 Merge branch 'atsushi' 2010-07-30 23:21:29 +09:00
atsushieno fc24202dba Add a bunch of configuration types. 2010-07-30 23:20:32 +09:00
atsushieno 8a0d253079 add 4.0 standard endpoint configuration types. 2010-07-30 23:16:31 +09:00
Gonzalo Paniagua Javier 030784fc14 Added missing files and sorted alphabetically. 2010-07-30 02:37:24 -04:00
Gonzalo Paniagua Javier d56170f118 .NET2 handling of exceptions in ThreadPool threads
* mono/tests/threadpool-exceptions[1-4].cs: new tests
	* mono/tests/threadpool.cs: fix typo.
	* mono/metadata/threadpool.c: starting in .NET 2.0, unhandled exceptions
	in the threadpool can cause a crash in a running program. From now on,
	we are compatible.
2010-07-30 01:54:01 -04:00
Gonzalo Paniagua Javier 6a4600c8ec Adapt to changes in exceptions policy for TP.
These exception were being thrown, sometimes, in a threadpool thread and then
ignored.
2010-07-30 01:54:00 -04:00
Gonzalo Paniagua Javier 15e374568f Throw exceptions from threadpool work items.
Until now exceptions thrown from a threadpool work item were ignored.
From now on they will propagate to the domain's UnhandledException event
and then to the root AppDomain. If they are not handled, they will cause
the program to abort.
2010-07-30 01:54:00 -04:00
Mark Probst c88460ab89 Fix SGen compiler warnings on AMD64.
2010-07-30  Mark Probst  <[email protected]>

	* sgen-archdep.h (ARCH_COPY_SIGCTX_REGS): Add casts to fix
	compiler warnings on AMD64.
2010-07-30 00:33:06 +02:00
Marek Safar e1f34e3c94 A fix for #619919
Merge branch 'marek'
2010-07-29 20:13:26 +01:00
Rodrigo Kumpera 124975872a Add regression test for #626441.
2010-07-29 Rodrigo Kumpera  <[email protected]>

	* MethodBuilderTest.cs: Add test for #626441.
2010-07-29 16:07:05 -03:00
Rodrigo Kumpera 4e1e020d45 Fixes crash when SRE code calls a vararg method.
2010-07-29 Rodrigo Kumpera  <[email protected]>

	Add support for calling vararg methods from SRE code.
	This requires storing per-memberref signatures so
	the JIT can know how many varargs parameters are
	been passed.

	* loader.c (mono_method_get_signature_full): If the
	image is dynamic call mono_reflection_lookup_signature
	to lookup the signature.

	* reflection.c (mono_image_create_method_token): Save
	the method object into the MonoDynamicImage::tokens.
	Create a signature struct for MethodBuilders.
	Save the signature into vararg_aux_hash so it can be
	retrieved later.

	* reflection.c (mono_reflection_lookup_signature): New
	function. Check vararg_aux_hash for a signature before
	returning method's own signature.

	* metadata-internals.h (MonoDynamicImage): Add new
	vararg_aux_hash hashtable.

	* object-internals.h: Add mono_reflection_lookup_signature.

	Fixes #626441
2010-07-29 16:06:21 -03:00
Marek Safar a73175b039 Refactor EventExpr to use enhanced base member access resolution 2010-07-29 19:55:28 +01:00
Marek Safar 0386807cf8 Implement hoisted base member access expression 2010-07-29 16:14:24 +01:00
Jérémie Laval e5638be38c Switch from per-thread SpinWait instance to per-method-call instance 2010-07-29 12:52:10 +02:00
Jérémie Laval 99e736d451 Add a SpinWait step when waiting on a task. Fix 100% CPU bother.
After some time the call to SpinWait.SpinOnce will fall back to the more stalling Thread.Sleep (1) call.
2010-07-29 11:49:58 +02:00
Jérémie Laval cba2d8a23d Fix macro indentation in Thread_Yield icall 2010-07-29 11:49:57 +02:00
Jérémie Laval df58140e37 SpinWait now sleep more in depth after a certain threshold and uses Thread.Yield method. 2010-07-29 11:49:56 +02:00
Jérémie Laval 46cf9afdba Introduce a spin count limit in SpinWait 2010-07-29 11:49:56 +02:00
Jérémie Laval 0856ee3930 Add Yield method to Thread (4.0 profile).
Yield is an internal call that simply calls wapi SwitchToThread function.
On !Windows system, this functions use POSIX sched_yield function.
2010-07-29 11:49:55 +02:00
Andrew Jorgensen 48179958c5 Add System.Runtime.DurableInstancing and sgen to spec 2010-07-28 16:03:36 -06:00
Rodrigo Kumpera 8110b1d1c0 Properly handle stackoverflow on ARGLIST opcode.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* verify.c (mono_method_verify): Don't move forward
	with verification if a stack overflow is detected for
	the ARGLIST opcode.

	Fixes #601953
2010-07-28 17:25:19 -03:00
Rodrigo Kumpera abafd50117 Fail array of invalid types.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* class.c (mono_bounded_array_class_get): Fail arrays
	of void or typedbyref. Those two types are not allowed
	to be used with arrays. Failing them is easier and less
	error prone than returning NULL.

	Fixes #603279
2010-07-28 17:02:09 -03:00
Rodrigo Kumpera 34ef7edb73 Dont assert on invalid delegate type.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* object.c (mono_get_delegate_invoke): Don't assert if
	the Invoke method is not found. This can happen with
	broken types and it's the caller resposibility to deal
	with a null return.

	Fixes #553403
2010-07-28 16:14:39 -03:00
Rodrigo Kumpera a8cc6d1402 [runtime] Handle images with null assembly.
2010-07-28 Rodrigo Kumpera  <[email protected]>

	* class.c (mono_assembly_name_from_token): Handle
	images with null assembly. This can happen with resource
	or broken assemblies.

	Fixes #623586.
2010-07-28 15:05:41 -03:00
atsushieno dccbaddcf2 Merge branch 'atsushi' 2010-07-29 01:12:41 +09:00
atsushieno 6086b7bab6 Fix LocalClientSecuritySettingsElement.Property, and other couple of API fixes. 2010-07-29 01:06:53 +09:00
Paolo Molaro 85c8fd35cd Merge branch 'monitor-enter-bool-fix' into upstream-master 2010-07-28 18:00:47 +02:00
Paolo Molaro f5dc567551 Test the Enter(object, ref bool) overload. 2010-07-28 17:47:14 +02:00
Paolo Molaro 62ca1b84eb Ensure the Monitor.Enter() fastpath doesn't apply to Enter(o,ref taken). 2010-07-28 17:31:54 +02:00
atsushieno cf51c0a93e Merge branch 'atsushi' 2010-07-29 00:11:13 +09:00
atsushieno 526f29729f Implement several ToString() methods. 2010-07-29 00:04:43 +09:00
atsushieno 7d4887f1e9 add another WS-SC test (cosmetic). 2010-07-28 23:59:31 +09:00
Marek Safar 7905bacfc2 Merge branch 'marek' 2010-07-28 15:32:30 +01:00
Marek Safar cf99a95c88 Don't crash when resolving invalid constant expressions 2010-07-28 15:31:35 +01:00
Raja R Harinath 527c363398 Step back a bit on enabling default CRLF handling. 2010-07-28 19:18:04 +05:30
Raja R Harinath e4703ee792 Add a few .gitignore entries to reduce noise 2010-07-28 19:17:33 +05:30
Marek Safar e5f5af3844 New tests 2010-07-28 13:53:46 +01:00
Marek Safar 721332be80 Updated 2010-07-28 13:20:59 +01:00
atsushieno 80c6b2640e Implement some WS-SecureConv parameter check and enabled some tests. 2010-07-28 21:13:56 +09:00
atsushieno 72a6cbf3f9 SecurityTokenRequirement.TryGetValue() returns false if the value exists as null. 2010-07-28 21:10:56 +09:00
Marek Safar dd525cc557 Merge branch 'marek' 2010-07-28 11:32:31 +01:00
Marek Safar caaf702ff8 Update to latest mcs 2010-07-28 11:30:28 +01:00
Marek Safar 809b404a88 Merge branch 'marek' 2010-07-28 10:23:49 +01:00
atsushieno df103e536d Merge branch 'atsushi' 2010-07-28 18:02:33 +09:00
atsushieno 5a73102e40 Handle ListenUri to get correct Uri (especially when relative). Reject wrong behaviorConfiguration. 2010-07-28 18:00:25 +09:00
Marek Safar 700635eecf Major name lookup fixes 2010-07-28 09:59:15 +01:00
atsushieno 8724d770fc Remove invalid comments. 2010-07-28 17:58:38 +09:00
atsushieno 0c667b10bf Fill Description names, and remove extra code. 2010-07-28 17:56:30 +09:00
Marek Safar 491b93da3e New tests 2010-07-28 09:44:23 +01:00
jbevain a5d0f3661c fix crlf 2010-07-28 10:31:53 +02:00
jbevain f8607d5ff5 System.Reflection.Assembly.IsFullyTrusted: add stub.
2010-07-28  Jb Evain  <[email protected]>

	* Assembly.cs: add IsFullyTrusted stub.
2010-07-28 10:01:35 +02:00
vvaradhan 5b5d0dc864 2010-07-28 Veerapuram Varadhan <[email protected]>
** Fixes #584833
	* SqlCommand.cs (DeriveParameters): Support procedure name
	nomenclature of the form <database>.<user>.<procname> .
2010-07-28 12:52:03 +05:30
Rodrigo Kumpera 8195c85630 Don't crash with null strings during error handling.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* class.c (concat_two_strings_with_zero): Guard against
	null strings.

	Modified version of patch by Sebastien Pouliot.

	Fixes #623653.
2010-07-27 19:00:10 -03:00
Rodrigo Kumpera 9add510f57 Avoid to crash on module index equal or smaller than zero.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* image.c (mono_image_load_module): Handle the case of
	module index equal or smaller than zero. It is possible
	to embed a valid zero index into metadata so this case
	must be explicitly handled.

	Patch by Sebastien Pouliot.

	Fixes #623581.
2010-07-27 19:00:10 -03:00
Mark Mason 04c470e94b Fix compilation errors 2010-07-28 03:36:19 +08:00
Rodrigo Kumpera dda591c86a Add some non standard bits to metadata verifier.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* metadata-verify.c (INVALID_IMPLMAP_FLAGS_BITS): Add non standard
	bits for best fit on/off (4,5) and throw on unmappable on/off (12/13).

	Fixes #622221.
2010-07-27 16:43:40 -03:00
Ankit Jain ca4654caa4 xbuild: Use '*mcs.bat' on windows and '*mcs' on other platforms. 2010-07-28 00:55:10 +05:30
Andreia Gaita 778694e1b8 Add support for deserializing Char types
* JsonSerializationReader.cs: Add Char type to the switch. Reads the
  content as a string and validates its length
2010-07-27 20:12:02 +01:00
Andreia Gaita 4a6ea9c095 Add serialization support for generic IDictionary objects
* JsonSerializationReader.cs, JsonSerializationWriter.cs:
  Add a special case for IDictionary, since KeyValuePair objects
  have private setters and can't be processed via the normal
  object code path.
2010-07-27 20:08:15 +01:00
Rodrigo Kumpera 5b4ae078b3 Emit verifiable code for SWF test suite.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* EventLogger.cs: Emit verifiable code. This was blocking the
	SWF test suite from running under the verifier.
2010-07-27 16:00:27 -03:00
Rodrigo Kumpera 5bfcc61e13 Improve verifier error message.
2010-07-27 Rodrigo Kumpera  <[email protected]>

	* verify.c (do_invoke_method): Improve error message.
2010-07-27 16:00:27 -03:00
Geoff Norton 54e6ebc4e5 Dont track unneeded registers for amd64.
2010-07-27  Geoff Norton  <[email protected]>

        * darwin_stop_world.c: Dont track unneeded registers for amd64.
2010-07-27 13:14:43 -04:00
Geoff Norton 5ab9464505 Fix sgen on amd64-darwin and amd64-linux
In metadata:

2010-07-27  Geoff Norton  <[email protected]>

        * sgen-archdep.h: Ensure we store the registers we actually
        need to scan.

In utils:

2010-07-27  Geoff Norton  <[email protected]>

        * mono-sigcontext.h: Extend the macro's for darwin and linux
        to expose r8-r11 as well.
2010-07-27 13:11:51 -04:00
Rodrigo Kumpera 5a0fe7330e 2010-07-27 Rodrigo Kumpera <[email protected]>
* verify.c (mono_generic_param_is_constraint_compatible): Don't
	fail a contraint check even if the candidate has no constraints.
	All constraints might resolve to the candidate itself so it can
	have none.

	Fixes #622225.
2010-07-27 13:50:36 -03:00
Atsushi Eno 2291d400db 2010-07-27 Atsushi Enomoto <[email protected]>
* FederatedMessageSecurityOverHttp.cs, OptionalReliableSession.cs,
	  ReliableSession.cs, WSFederationHttpBinding.cs:
	  filled couple of missing members.

	* ClaimTypeElement.cs
	  ClaimTypeElementCollection.cs
	  FederatedMessageSecurityOverHttpElement.cs
	  StandardBindingOptionalReliableSessionElement.cs
	  StandardBindingReliableSessionElement.cs
	  WSFederationHttpBindingElement.cs
	  WSFederationHttpSecurityElement.cs
	  WSHttpBindingBaseElement.cs : implemented ApplyConfiguration and
	  add/fix descendants' members.
2010-07-27 20:09:30 +09:00
Atsushi Eno b5b0061a08 2010-07-27 Atsushi Enomoto <[email protected]>
* FederatedMessageSecurityOverHttpElement.cs : use correct converter.
	* WSFederationHttpBindingCollectionElement.cs : remove extra members.
	* WSDualHttpBindingElement.cs, WSFederationHttpBindingElement.cs :
	  fill base properties expectedly.
2010-07-27 18:59:07 +09:00
Atsushi Eno 23a0c9183e 2010-07-27 Atsushi Enomoto <[email protected]>
* WSDualHttpBindingElement.cs, WSFederationHttpBindingElement.cs :
	  BindingElementType is not a configuration property.
2010-07-27 18:35:31 +09:00
Atsushi Eno 035a58b8ab 2010-07-27 Atsushi Enomoto <[email protected]>
* ConfigurationPropertyCollection.cs, PropertyInformation.cs:
	  add null check to detect bogus configuration early.
2010-07-27 18:29:09 +09:00
Atsushi Eno 2cecb9e592 2010-07-27 Atsushi Enomoto <[email protected]>
* X509CertificateRecipientClientCredential.cs,
	  X509CertificateRecipientServiceCredential.cs :
	  implement x509 store support.
2010-07-27 18:10:31 +09:00
Atsushi Eno 07039ffa47 2010-07-27 Atsushi Enomoto <[email protected]>
* ConfigUtil.cs : the error message can be less ambiguous.
2010-07-27 17:56:19 +09:00
Atsushi Eno c8a4cb5764 2010-07-26 Atsushi Enomoto <[email protected]>
* ConfigUtil.cs, ServiceCredentialsElement.cs :
	  implement x509 store support.

	* X509CertificateInitiatorClientCredential.cs,
	  X509CertificateInitiatorServiceCredential.cs :
	  implement x509 store support.
2010-07-27 00:46:34 +09:00
Atsushi Eno 9b8f7510ac 2010-07-26 Atsushi Enomoto <[email protected]>
* SamlSubject.cs : add missing .ctor().
2010-07-26 21:28:59 +09:00
Jb Evain 48f763576b Add test for bug #625367 2010-07-26 13:04:52 +02:00
Jb Evain 8e47921f04 Properly call methods on enumerations in compiled expression trees.
2010-07-26  Jb Evain  <[email protected]>

	* EmitContext.cs: Properly call methods on enumerations.
	Fixes #625367.
2010-07-26 13:04:19 +02:00
Jb Evain b48826ee8d reuse code to initialize nullable values 2010-07-26 13:03:47 +02:00
Carlos Alberto Cortez 93cf36c2ce Merge branch 'master' of git://github.com/mono/mono 2010-07-25 23:01:24 +02:00
Carlos Alberto Cortez 6c9d0f384b 2010-07-25 Carlos Alberto Cortez <[email protected]>
* UnixRegistryApi.cs: From the static ctor of KeyHandler remove the
	volatile keys directory if the last registered boot time has changed.
	This way we *actually* have our volatile keys removed if the system as
	rebooted.
2010-07-25 22:57:01 +02:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Mark Probst 5c94b81517 Only compile sgen-internal.c if HAVE_SGEN_GC is defined.
2010-07-25  Mark Probst  <[email protected]>

	* sgen-internal.c: Only compile this if HAVE_SGEN_GC is defined.
2010-07-25 22:46:50 +02:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Zoltan Varga a8101ead57 2010-07-25 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Fix a warning.
2010-07-25 12:32:01 +02:00
Zoltan Varga f6d5052ca1 2010-07-25 Zoltan Varga <[email protected]>
* configure.ac src/eglib-config.h.in src/eglib-config.hw: Define G_GINT64_FORMAT.
2010-07-25 12:32:00 +02:00
Mark Probst 8deb8d6135 Make the internal allocator fast.
2010-07-24  Mark Probst  <[email protected]>

	* sgen-internal.c, sgen-gc.h, sgen-major-copying.c: Make the
	internal allocator fast by keeping free-lists of chunks, not only
	within chunks.  Align the chunks, so that on freeing we can get
	the chunk without searching.
2010-07-24 23:18:05 +02:00
Mark Probst b3e4c83c91 Functions for allocing fixed-size blocks in internal allocator.
2010-07-24  Mark Probst  <[email protected]>

	* sgen-internal.c, sgen-gc.c, sgen-gc.h, sgen-gray.c,
	sgen-major-copying.c, sgen-marksweep.c, sgen-pinning-stats.c,
	sgen-pinning.c: Allocate fixed-size structs without specifying the
	size, instead registering it once with its type.
	Dynamically-sized need their size specified when being freed.
2010-07-24 23:15:08 +02:00
Mark Probst de95666b9d Make major copying allocator use the internal allocator via public API.
2010-07-24  Mark Probst  <[email protected]>

	* sgen-major-copying.c, sgen-internal.c, sgen-gc.c, sgen-gc.h,
	sgen-pinning.c: Copying major collector doesn't mess around with
	internals of the internal allocator anymore, instead using public
	functions.
2010-07-24 23:08:10 +02:00
Mark Probst 76df95c083 Separate internal allocator in its own C file.
2010-07-24  Mark Probst  <[email protected]>

	* sgen-internal.c: Internal allocator in its own module.

	* sgen-gc.c, sgen-gc.h, sgen-gray.c, sgen-los.c,
	sgen-major-copying.c, sgen-marksweep.c, sgen-pinning.c,
	sgen-pinning-stats.c: Remove internal allocator and call the
	public functions now.

	* Makefile.am: Added new file.
2010-07-24 23:03:36 +02:00
Geoff Norton 6e99bc9d12 Test 2010-07-24 14:13:48 -04:00
Geoff Norton 839fb7a61e 2010-07-24 Geoff Norton <[email protected]>
* mini-darwin.c: Having reviewed xnu-1504.7.4 it is safe to call fork directly
	here, it seems the old implementation was a hold over from the linux behaviour
	This fixed gdb backtrace on amd64 and ppc.
2010-07-24 14:06:32 -04:00
Zoltan Varga 72889c7c33 2010-07-24 Zoltan Varga <[email protected]>
* sgen-archdep.h (ARCH_COPY_SIGCTX_REGS): Fix warnings on amd64.
2010-07-24 19:08:18 +02:00
Zoltan Varga 0cd0b4721d 2010-07-24 Zoltan Varga <[email protected]>
* mini-s390x.c: Change the calling convention to pass this as first as on other
	architectures. Remove some dead code from the get_vcall_slot().
2010-07-24 18:47:14 +02:00
Sanjoy Das 8c22342318 Remove warnings in sgen-gc.h.
2010-07-24  Sanjoy Das <[email protected]>

	* sgen-gc.h: Removed 'foo defined but not used' warnings for the
	  *_signal_num variables.
2010-07-24 14:16:42 +02:00
Ankit Jain 55046d0e68 xbuild: Collect and dump timing information.
* ConsoleLogger.cs: Collect and dump timing information.
2010-07-24 06:12:40 +05:30
tgiphil 1f962542e9 Merge branch 'master' of github.com:tgiphil/mono 2010-07-23 16:25:18 -07:00
Ankit Jain ba164d97b4 * ConsoleLogger.cs: Honor LoggerVerbosity.Quiet . 2010-07-24 07:24:17 +08:00
Zoltan Varga ca475791a6 2010-07-23 Zoltan Varga <[email protected]>
* file-io.c (ves_icall_System_IO_MonoIO_Read): Add a null check.
	(ves_icall_System_IO_MonoIO_Write): Ditto.
2010-07-24 07:24:16 +08:00
Gonzalo Paniagua Javier 89c748d71f TEST 5 2010-07-24 07:24:15 +08:00
Gonzalo Paniagua Javier 82905920b8 TEST 4 2010-07-24 07:24:14 +08:00
Zoltan Varga 238c495a64 2010-07-23 Zoltan Varga <[email protected]>
* loader.c (mono_loader_cleanup): Delete loader_mutex, the shutdown races should
	be fixed now.
2010-07-24 07:24:13 +08:00
Gonzalo Paniagua Javier 988c4e0923 TEST 3 2010-07-24 07:24:12 +08:00
Gonzalo Paniagua Javier fdb9a8042b TEST 2 2010-07-24 07:24:11 +08:00
Gonzalo Paniagua Javier c8565c22ed TEST 2010-07-24 07:24:10 +08:00
Sebastien Pouliot f7a51c151d simplify code for Moonlight profile 2010-07-24 07:24:09 +08:00
Sebastien Pouliot 755030134a Fix check order and throw NSE on invalid headers 2010-07-24 07:24:08 +08:00
vvaradhan 9d90832042 2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes #623451
	* DataColumnCollection.cs (MoveColumn): Fix shifting of
	DataColumn according to the direction of movement.
2010-07-24 07:24:06 +08:00
Marek Habersack 6115cce22e 2010-07-23 Marek Habersack <[email protected]>
* ClientScriptManager.cs: 4.0 adds a class="aspNetHidden"
	attribute to the div element surrounding the hidden elements.
2010-07-24 07:24:06 +08:00
Paolo Molaro d4b2b0980f Funcs.cs: Fixed typo in Func`15.
Fri Jul 23 16:46:38 CEST 2010 Paolo Molaro <[email protected]>

	* Funcs.cs: Fixed typo in Func`15.
2010-07-24 07:24:05 +08:00
Atsushi Eno 7461cec07b 2010-07-23 Atsushi Enomoto <[email protected]>
* RelaxngPattern.cs : inherit XmlResolver to parsed rng component.
	  Fixed bug #622630.
2010-07-24 07:24:04 +08:00
Veerapuram Varadhan e4895c612d 2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes #565616 - Based on Patch by Hubert FONGARNAND
	* DataContainer.cs (GetContainerData): If typecode is string,
	call Convert.ToString() irrespective of whether value is
	IConvertible or not.
2010-07-24 07:24:02 +08:00
Marek Habersack 8abcb15931 2010-07-23 Marek Habersack <[email protected]>
* MenuItemBindingCollection.cs: added the OnClear,
	OnRemoveComplete and OnValidate methods (2.0+)
2010-07-24 07:24:01 +08:00
Marek Habersack 01ffeb842b 2010-07-23 Marek Habersack <[email protected]>
* TreeNodeStyleCollection.cs: added the OnInsert method (2.0+)

	* TreeNodeBindingCollection.cs: added the OnClear,
	OnRemoveComplete and OnValidate methods (2.0+)
2010-07-24 07:24:00 +08:00
Marek Habersack 250c7b2176 2010-07-23 Marek Habersack <[email protected]>
* ValidationSummary.cs: implemented OnInit (4.0)
2010-07-24 07:23:59 +08:00
Marek Habersack d5b2b00ddd 2010-07-23 Marek Habersack <[email protected]>
* WizardStepBase.cs: added the LoadViewState, OnLoad and
	RenderChildren methods (2.0+)
2010-07-24 07:23:58 +08:00
tgiphil e44022ec89 Merge branch 'master' of git://github.com/mono/mono 2010-07-23 16:21:44 -07:00
Atsushi Eno 100065834c 2010-07-23 Atsushi Enomoto <[email protected]>
* ContractAssertTest.cs
	  ContractAssumeTest.cs
	  ContractHelperTest.cs
	  ContractMustUseRewriterTest.cs:
	  Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
2010-07-24 07:20:39 +08:00
Ankit Jain b7c6920e0b * ConsoleLogger.cs: Honor LoggerVerbosity.Quiet . 2010-07-24 02:23:04 +05:30
Zoltan Varga f2bcdce076 2010-07-23 Zoltan Varga <[email protected]>
* file-io.c (ves_icall_System_IO_MonoIO_Read): Add a null check.
	(ves_icall_System_IO_MonoIO_Write): Ditto.
2010-07-23 21:44:54 +02:00
Gonzalo Paniagua Javier c2eb3d14d5 TEST 5 2010-07-23 14:58:11 -04:00
Gonzalo Paniagua Javier 4aadee8502 Merge branch 'master' of github.com:mono/mono 2010-07-23 14:57:37 -04:00
Gonzalo Paniagua Javier ea31429bbd TEST 4 2010-07-23 14:57:19 -04:00
Zoltan Varga 90fecc7a82 Merge branch 'master' of github.com:mono/mono 2010-07-23 20:50:42 +02:00
Zoltan Varga 81eb86d0be 2010-07-23 Zoltan Varga <[email protected]>
* loader.c (mono_loader_cleanup): Delete loader_mutex, the shutdown races should
	be fixed now.
2010-07-23 20:50:26 +02:00
Gonzalo Paniagua Javier a4e52d41cc TEST 3 2010-07-23 14:45:16 -04:00
Gonzalo Paniagua Javier 67e908c3a1 TEST 2 2010-07-23 14:36:40 -04:00
Gonzalo Paniagua Javier 911b3ef3b3 TEST 2010-07-23 14:27:09 -04:00
Sebastien Pouliot b92618bf11 simplify code for Moonlight profile 2010-07-23 14:10:47 -04:00
Sebastien Pouliot 6e6d592880 Fix check order and throw NSE on invalid headers 2010-07-23 14:01:39 -04:00
vvaradhan 4613d5956f 2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes #623451
	* DataColumnCollection.cs (MoveColumn): Fix shifting of
	DataColumn according to the direction of movement.
2010-07-23 22:28:47 +05:30
Marek Habersack ccc84ffa23 Merge branch 'master' of github.com:mono/mono
* 'master' of github.com:mono/mono:
  Funcs.cs: Fixed typo in Func`15.
2010-07-23 18:41:15 +02:00
Marek Habersack 4e74254594 2010-07-23 Marek Habersack <[email protected]>
* ClientScriptManager.cs: 4.0 adds a class="aspNetHidden"
	attribute to the div element surrounding the hidden elements.
2010-07-23 18:40:02 +02:00
Paolo Molaro 90e5a65c08 Funcs.cs: Fixed typo in Func`15.
Fri Jul 23 16:46:38 CEST 2010 Paolo Molaro <[email protected]>

	* Funcs.cs: Fixed typo in Func`15.
2010-07-23 18:14:57 +02:00
Atsushi Eno 4cddaa26bb Merge branch 'master' of github.com:mono/mono 2010-07-24 00:10:43 +09:00
Atsushi Eno a9285d9d8d 2010-07-23 Atsushi Enomoto <[email protected]>
* RelaxngPattern.cs : inherit XmlResolver to parsed rng component.
	  Fixed bug #622630.
2010-07-23 23:42:47 +09:00
Veerapuram Varadhan 2ec0a00139 2010-07-23 Veerapuram Varadhan <[email protected]>
** Fixes #565616 - Based on Patch by Hubert FONGARNAND
	* DataContainer.cs (GetContainerData): If typecode is string,
	call Convert.ToString() irrespective of whether value is
	IConvertible or not.
2010-07-23 18:55:50 +05:30
Marek Habersack ef8bb0b9b4 2010-07-23 Marek Habersack <[email protected]>
* MenuItemBindingCollection.cs: added the OnClear,
	OnRemoveComplete and OnValidate methods (2.0+)
2010-07-23 13:28:15 +02:00
Marek Habersack 27d696405b 2010-07-23 Marek Habersack <[email protected]>
* TreeNodeStyleCollection.cs: added the OnInsert method (2.0+)

	* TreeNodeBindingCollection.cs: added the OnClear,
	OnRemoveComplete and OnValidate methods (2.0+)
2010-07-23 13:21:48 +02:00
Marek Habersack 1c220d32cf 2010-07-23 Marek Habersack <[email protected]>
* ValidationSummary.cs: implemented OnInit (4.0)
2010-07-23 13:16:09 +02:00
Marek Habersack b14c13d360 2010-07-23 Marek Habersack <[email protected]>
* WizardStepBase.cs: added the LoadViewState, OnLoad and
	RenderChildren methods (2.0+)
2010-07-23 13:10:23 +02:00
Atsushi Eno 7aeb07d12f 2010-07-23 Atsushi Enomoto <[email protected]>
* ContractAssertTest.cs
	  ContractAssumeTest.cs
	  ContractHelperTest.cs
	  ContractMustUseRewriterTest.cs:
	  Mark couple of runtime breaking tests (on .NET 4.0) as [Ignore].
2010-07-23 16:00:51 +09:00
tgiphil c9bc218cd3 Moved ValidateRules method in TimeZoneInfo.cs outside of LIBC since a caller outside of LIBC calls the method. Fixes compile error when LIBC is not defined. 2010-07-22 17:54:26 -07:00
tgiphil 51da9f8bd8 Merge branch 'master' of git://github.com/mono/mono 2010-07-22 17:45:49 -07:00
Zoltan Varga 2dbe00beba 2010-07-23 Zoltan Varga <[email protected]>
* xdebug.c (mono_save_trampoline_xdebug_info): Call
	mono_loader_lock/unlock_if_inited () to avoid asserts on some platforms during
	startup.
2010-07-23 08:32:57 +08:00
Zoltan Varga c4cc75858b 2010-07-23 Zoltan Varga <[email protected]>
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
	during startup before the loader lock is initialized.
	(mono_loader_unlock_if_inited): Ditto.
2010-07-23 08:32:56 +08:00
Zoltan Varga 505edd45ea 2010-07-23 Zoltan Varga <[email protected]>
* xdebug.c (mono_save_trampoline_xdebug_info): Call
	mono_loader_lock/unlock_if_inited () to avoid asserts on some platforms during
	startup.
2010-07-23 01:55:44 +02:00
Zoltan Varga 6143425b51 2010-07-23 Zoltan Varga <[email protected]>
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
	during startup before the loader lock is initialized.
	(mono_loader_unlock_if_inited): Ditto.
2010-07-23 01:54:53 +02:00
Marek Habersack 79ce200bf1 2010-07-23 Marek Habersack <[email protected]>
* Makefile.am (version.h): generate version using GIT commit info,
	removed the old svn and git-svn code.
2010-07-23 01:29:32 +02:00
Ankit Jain 93bbff13b6 Emit tool's output as it is received, instead of waiting for it to end.
* ToolTask.cs: Don't wait for the process to end, before emitting
it's stdout/stderr, emit as it is received. This helps with time
consuming tools.
2010-07-23 03:37:23 +05:30
jbevain 9b3b838d43 Reduce the branch inlining cost from 100 to 10.
2010-07-22  Jb Evain  <[email protected]>

	* method-to-ir.c (BRANCH_COST): change from 100 to 10.
2010-07-22 22:41:25 +02:00
Marek Habersack 6b5f7a99e8 2010-07-22 Marek Habersack <[email protected]>
* MenuItemBinding.cs:
	Implemented ToString (4.0)

svn path=/trunk/mcs/; revision=160737
2010-07-22 12:46:46 +00:00
Marek Habersack 038c93f82f 2010-07-22 Marek Habersack <[email protected]>
* MenuItemBinding.cs: made code a bit more compact.

svn path=/trunk/mcs/; revision=160736
2010-07-22 12:46:38 +00:00
Marek Habersack f450da9e65 2010-07-22 Marek Habersack <[email protected]>
* MenuRenderingMode.cs: added (4.0)

	* Menu.cs: added the IncludeStyleBlock and RenderingMode 4.0
	properties (not used in the code yet).

svn path=/trunk/mcs/; revision=160723
2010-07-22 10:38:45 +00:00
Paolo Molaro 65558878a4 Thu Jul 22 11:05:04 CEST 2010 Paolo Molaro <[email protected]>
* Module.cs: added == and != operators for 4.0.


svn path=/trunk/mcs/; revision=160714
2010-07-22 09:05:43 +00:00
Ankit Jain f9b2939b3f * xbuild/Microsoft.Silverlight.Common.targets(GenerateMoonlightManifest):
Set Inputs/Outputs for the target.

svn path=/trunk/mcs/; revision=160704
2010-07-22 00:15:48 +00:00
Ankit Jain 87eeb30ea7 * xbuild/Microsoft.CSharp.targets (CoreCompile): Add
$(MSBuildAllProjects) to inputs.
* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Likewise.

svn path=/trunk/mcs/; revision=160703
2010-07-22 00:15:30 +00:00
Ankit Jain e51addb516 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConsoleLogger.cs: Add support for parameter 'NoItemAndPropertyList'.

In tools/xbuild:
	* Parameters.cs (ProcessConsoleLoggerParameters): Correctly split arg.

svn path=/trunk/mcs/; revision=160702
2010-07-21 23:41:04 +00:00
Ankit Jain 483b5d3676 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Project.cs: Add reserved properties MSBuildProjectFullPath
	and MSBuildProjectExtension .

In tools/xbuild:

	* xbuild/*/Microsoft.Common.targets: Set MSBuildAllProjects property.
	* xbuild/Microsoft.CSharp.targets: Likewise.

svn path=/trunk/mcs/; revision=160701
2010-07-21 23:40:32 +00:00
Miguel de Icaza c749bc8cf3 2010-07-21 Miguel de Icaza <[email protected]>
* HttpApplication.cs, HttpRuntime.cs, HttpApplicationFactory.cs:
	Prepare for the runtime change that will terminate threadpool

svn path=/trunk/mcs/; revision=160700
2010-07-21 22:53:58 +00:00
Miguel de Icaza 19e2aec347 2010-07-21 Miguel de Icaza <[email protected]>
* Array.cs: Fixes a couple of other cases where we were missing
	the handling for null values, fixes a broken case of null
	handling. 


svn path=/trunk/mcs/; revision=160699
2010-07-21 21:47:44 +00:00
Geoff Norton 3b6a608702 2010-07-21 Geoff Norton <[email protected]>
* sgen-archdep.h: Fix the build on amd64-darwin.

svn path=/trunk/mono/; revision=160688
2010-07-21 18:38:29 +00:00
Paolo Molaro a7cef9ef42 Wed Jul 21 16:00:08 CEST 2010 Paolo Molaro <[email protected]>
* SecurityRuleSet.cs: this enum is actually a byte, the msdn docs are
	wrong.


svn path=/trunk/mcs/; revision=160679
2010-07-21 14:01:13 +00:00
Jackson Harper 41816d0a4a * Syscall.cs: Add bindings to the various epoll
functions. (epoll_create, epoll_ctl, epoll_wait).


svn path=/trunk/mcs/; revision=160676
2010-07-21 13:41:47 +00:00
Sebastien Pouliot 9c8cb87fe3 In .:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* Makefile: Ensure SECURITY_DEP gets defined in our moonlight
	raw profile

In System.Net:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* ServicePointManager.cs: Add special validation for Moonlight
	* WebConnection.cs: Change a define to NET_2_1

In System.Net.Security:
2010-07-21  Sebastien Pouliot  <[email protected]>

	* LocalCertificateSelectionCallback.cs:
	* SslStream.cs:
		Don't use alias in moonlight build (not needed and breaks
		compilation otherwise)


svn path=/trunk/mcs/; revision=160675
2010-07-21 13:36:35 +00:00
Sebastien Pouliot b647abaadc 2010-07-21 Sebastien Pouliot <[email protected]>
* CryptoConfig_2_1.cs: Ensure Aes[Managed] can be created from
	our managed SSL/TLS implementation


svn path=/trunk/mcs/; revision=160673
2010-07-21 13:28:22 +00:00
Marek Habersack 84cf768d2d 2010-07-21 Marek Habersack <[email protected]>
* Wizard.cs: made rendering 100% compliant with .NET (button IDs,
	2.0+)
	Implemented LayoutTemplate (4.0+)

	* LinkButton.cs: render id first

	* CreateUserWizard.cs: CreateUserNavigationContainer.UpdateState
	doesn't add a previous button if we're on the first step.

svn path=/trunk/mcs/; revision=160657
2010-07-21 12:58:22 +00:00
Marek Habersack dc152b5477 2010-07-20 Marek Habersack <[email protected]>
* StyleCollection.cs: added

svn path=/trunk/mcs/; revision=160656
2010-07-21 12:58:13 +00:00
Jb Evain 80aab3b7ea 2010-07-21 Jb Evain <[email protected]>
* AppDomain.cs: add IsFullyTrusted stub.


svn path=/trunk/mcs/; revision=160643
2010-07-21 09:03:28 +00:00
Ankit Jain c4f72c4c24 * xbuild/Microsoft.Silverlight.Common.targets: Set AssemblySearchPaths
to the default value except PkgConfig and GAC. Suggested by Rolf.

svn path=/trunk/mcs/; revision=160641
2010-07-21 02:27:08 +00:00
Sebastien Pouliot 451cfe2509 2009-07-20 Sebastien Pouliot <[email protected]>
* TestGraphics.cs: Add test case for #556181


svn path=/trunk/mcs/; revision=160639
2010-07-21 01:32:51 +00:00
Miguel de Icaza 5685900d9e 2010-07-20 Miguel de Icaza <[email protected]>
* Array.cs: fast path for the case where the pivot is null;
	Fixes the crash on the build.

svn path=/trunk/mcs/; revision=160636
2010-07-20 21:33:20 +00:00
Zoltan Varga 9c6f4da492 2010-07-20 Zoltan Varga <[email protected]>
* method-to-ir.c (op_to_op_src2_membase): Reorganize the amd64 op->op membase
	code, it was missing a few 'break's.

svn path=/trunk/mono/; revision=160633
2010-07-20 21:20:35 +00:00
Zoltan Varga 23d1b29c19 Fix a warning.
svn path=/trunk/mono/; revision=160631
2010-07-20 18:59:57 +00:00
Zoltan Varga b7e0da1d7f 2010-07-20 Zoltan Varga <[email protected]>
* src/glib.h (G_LIKELY): Implement these for gcc properly.

svn path=/trunk/mono/; revision=160630
2010-07-20 18:59:52 +00:00
Miguel de Icaza 183e538e52 2010-07-20 Miguel de Icaza <[email protected]>
* parser.cs (ParseEscape): Now parses with some context, whether
	we are parsing inside a character range which can not contain
	back-references or when we are parsing on a string context which
	can contain back references.

	This fixes bug #577346 which exposed a bug parsing this:

	new Regex("[\\177-\\377]")



svn path=/trunk/mcs/; revision=160626
2010-07-20 17:31:31 +00:00
Sebastien Pouliot e1a5014726 2010-07-20 Sebastien Pouliot <[email protected]>
* NoAccessPolicy.cs: Set default to SecurityException each time
	IsAllowed is called since we share a single instance of this type


svn path=/trunk/mcs/; revision=160611
2010-07-20 14:39:59 +00:00
Jb Evain 69aa941ceb document patch
svn path=/trunk/mcs/; revision=160609
2010-07-20 14:02:49 +00:00
Jb Evain 7258f3397f re introduce 153628
svn path=/trunk/mcs/; revision=160608
2010-07-20 14:01:42 +00:00
Zoltan Varga bcb6b542ab 2010-07-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_inst_for_method): Add Array.GetLength/GetLowerBound ().
	Fixes #618176.

svn path=/trunk/mono/; revision=160597
2010-07-19 23:51:35 +00:00
Sebastien Pouliot 00b07a5a18 2010-07-19 Sebastien Pouliot <[email protected]>
* ClientCredentials.cs: Fix NET_2_1 builds


svn path=/trunk/mcs/; revision=160590
2010-07-19 21:12:46 +00:00
Miguel de Icaza 8131f6f1e3 2010-07-19 Miguel de Icaza <[email protected]>
* src/gmisc-win32.c (g_getenv): Distinguish between variable not
	found and an empty variable.  

	This should fix 566152

svn path=/trunk/mono/; revision=160589
2010-07-19 20:49:04 +00:00
Sebastien Pouliot eeeaf44f44 2010-07-19 Sebastien Pouliot <[email protected]>
* BaseDomainPolicy.cs:
	* ICrossDomainPolicy.cs:
	* NoAccessPolicy.cs:
	* PolicyDownloadPolicy.cs:
	* SiteOfOriginPolicy.cs:
		Allow throwing something else than a SecurityException
		which is pretty rare but we got a DRT for it


svn path=/trunk/mcs/; revision=160586
2010-07-19 20:30:10 +00:00
Sebastien Pouliot 070d7e4c66 2010-07-19 Sebastien Pouliot <[email protected]>
* Icon.cs: Remove width==height check when deserializing (uncommon
	but valid icons). Fix bug #581400


svn path=/trunk/mcs/; revision=160580
2010-07-19 18:15:13 +00:00
Geoff Norton 4c4d86786a Forward port this
svn path=/trunk/mono/; revision=160576
2010-07-19 17:17:53 +00:00
Carlos Alberto Cortez 7d34eee270 2010-07-19 Carlos Alberto Cortez <[email protected]>
* UnixRegistryApi.cs: Remove the in-memmory approach to volatile keys,
	as it becomes trickier to handle deep hiearchies, subkeys and values
	in some scenarios. So for now we keep them in disk, we in an
	alternative directory, so we can cleam them properly later.


svn path=/trunk/mcs/; revision=160574
2010-07-19 16:12:47 +00:00
Marek Habersack 55baf957fd 2010-07-19 Marek Habersack <[email protected]>
* SqlDataSourceView.cs: added the RaiseUnsupportedCapabilityError
	method (2.0+)

	* RoleGroupCollection.cs: added OnValidate (undocumented) overload

	* ParameterCollection.cs: added missing Add method overload (2.0+)

	* LiteralControlBuilder.cs: added the AppendLiteralString method
	override (2.0+)

svn path=/trunk/mcs/; revision=160569
2010-07-19 13:05:30 +00:00
Marek Habersack 3541a80273 2010-07-19 Marek Habersack <[email protected]>
* DataKey.cs: implemented IEquatable interface methods (4.0)

svn path=/trunk/mcs/; revision=160568
2010-07-19 13:05:21 +00:00
Marek Habersack aed4e7aea0 2010-07-19 Marek Habersack <[email protected]>
* XmlDataSource.cs: implemented CacheKeyContext property (4.0)

svn path=/trunk/mcs/; revision=160567
2010-07-19 13:05:12 +00:00
Marek Habersack 629cd06c70 2010-07-19 Marek Habersack <[email protected]>
* MultilineStringConverter.cs: implemented

svn path=/trunk/mcs/; revision=160566
2010-07-19 13:05:03 +00:00
Geoff Norton 75d158efe8 Fix for monotouch
svn path=/trunk/mcs/; revision=160558
2010-07-19 01:41:34 +00:00
Zoltan Varga 489ecb0aec 2010-07-19 Zoltan Varga <[email protected]>
* src/glib.h (G_MAXUINT64): Define this. Fixes #623293.

	* src/eglib-config.hw: Define UINT64_MAX.

svn path=/trunk/mono/; revision=160556
2010-07-19 00:19:02 +00:00
Miguel de Icaza 68622b622a 2010-07-17 Miguel de Icaza <[email protected]>
* Array.cs: Fix for bug #622101, this reverts portions of the
	broken patch that was introduced as part of the fix for #351638
	which was mostly a set of optimizations, but some were just
	wrong. 



svn path=/trunk/mcs/; revision=160527
2010-07-17 20:38:39 +00:00
Sebastien Pouliot f0cf4c78c7 2010-07-16 Sebastien Pouliot <[email protected]>
* Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
	to big for XGetImage to return. Fix bug #582823


svn path=/trunk/mcs/; revision=160507
2010-07-16 23:51:18 +00:00
Gonzalo Paniagua Javier fc98a0f2bc 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: ignore values set in CachePolicy and
	UseDefaultCredentials instead of throwing NIEX.


svn path=/trunk/mcs/; revision=160504
2010-07-16 19:02:59 +00:00
Zoltan Varga 250aa8f8b9 2010-07-16 Zoltan Varga <[email protected]>
* mini-arm.c: Fix the arm build by passing a MonoGenericSharingContext to get_call_info.

svn path=/trunk/mono/; revision=160502
2010-07-16 18:49:03 +00:00
Gonzalo Paniagua Javier db34826ca2 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* src/gmisc-unix.c: include config.h. Fixes bug #609632.
	Use getpwuid_r instead of getpwent_r.


svn path=/trunk/mono/; revision=160501
2010-07-16 18:32:53 +00:00
Marek Habersack 0d77ff9eae 2010-07-16 Marek Habersack <[email protected]>
* FolderLevelBuildProviderAppliesTo.cs,
	FolderLevelBuildProviderAppliesToAttribute.cs: added

svn path=/trunk/mcs/; revision=160500
2010-07-16 17:40:53 +00:00
Atsushi Eno c47f62c611 fill missing members in Mtom / ongoing sslnego WS-Trust work.
svn path=/trunk/mcs/; revision=160499
2010-07-16 17:31:30 +00:00
Marek Habersack d99a93fab8 2010-07-16 Marek Habersack <[email protected]>
* PasswordRecovery.cs: implemented RenderOuterTable
	(4.0)

svn path=/trunk/mcs/; revision=160498
2010-07-16 17:26:43 +00:00
Marek Habersack 930ed3afae 2010-07-16 Marek Habersack <[email protected]>
* Login.cs: implemented RenderOuterTable (4.0)

svn path=/trunk/mcs/; revision=160497
2010-07-16 17:26:35 +00:00
Marek Habersack cad200568e 2010-07-16 Marek Habersack <[email protected]>
* FormViewRow.cs: added internal property RenderJustCellContents
	which makes the control render only its children (4.0)

	* FormView.cs: implemented RenderOuterTable property and the
	ModifiedOuterTableStylePropertyName method (4.0)

svn path=/trunk/mcs/; revision=160496
2010-07-16 17:26:21 +00:00
Sebastien Pouliot 6be3c20a61 2010-07-16 Sebastien Pouliot <[email protected]>
* MD2Managed.cs:
	* MD4Managed.cs:
		Increment ibStart in HashCore


svn path=/trunk/mcs/; revision=160490
2010-07-16 15:41:59 +00:00
Ankit Jain 6b7f5d3a02 * xbuild/Microsoft.Silverlight.Common.targets: Set Inputs/Outputs
for GenerateXap target.

svn path=/trunk/mcs/; revision=160489
2010-07-16 15:35:18 +00:00
Ankit Jain 3cfd7e93b0 * XamlG.cs (Execute): Fix earlier commit, include the filename.
svn path=/trunk/mcs/; revision=160488
2010-07-16 15:34:57 +00:00
Miguel de Icaza aa4c883087 Flush
svn path=/trunk/mcs/; revision=160487
2010-07-16 15:17:38 +00:00
Miguel de Icaza 373cc83ce0 Flush
svn path=/trunk/mcs/; revision=160486
2010-07-16 15:17:05 +00:00
Ankit Jain 200c50208f * Respack.cs (Execute): Skip if output file is up-to-date wrt
the input files. Bug reported by Rolf.

svn path=/trunk/mcs/; revision=160485
2010-07-16 14:56:38 +00:00
Ankit Jain 7ce1cfaaea * XamlG.cs: Fix arg to XamlGCompiler, to use path relative to project
dir. Bug uncovered by Rolf.

svn path=/trunk/mcs/; revision=160484
2010-07-16 14:29:12 +00:00
Ankit Jain 4142d8b256 * AbsoluteToRelativePath: New.
* RelativeToAbsolutePath: New. Taken from monodevelop.
* GetReservedMetadata: Correctly handle 'RelativeDir' .

svn path=/trunk/mcs/; revision=160483
2010-07-16 14:27:14 +00:00
Zoltan Varga 1dac96921f 2010-07-16 Zoltan Varga <[email protected]>
* configure.in: Remove the 'LLVM backend is experimental' warning.

svn path=/trunk/mono/; revision=160475
2010-07-16 10:34:38 +00:00
Zoltan Varga 4e0fc80078 2010-07-16 Zoltan Varga <[email protected]>
* mini-llvm.c: Add more SIMD instructions.

svn path=/trunk/mono/; revision=160474
2010-07-16 10:34:32 +00:00
Zoltan Varga d30409ea72 2010-07-16 Zoltan Varga <[email protected]>
* object.c (mono_print_unhandled_exception): Fix a warning.

svn path=/trunk/mono/; revision=160473
2010-07-16 08:39:18 +00:00
Chris Bacon bc7b393a5b Add documentation for System.Diagnostics.Contracts namespace.
svn path=/trunk/mcs/; revision=160472
2010-07-16 08:28:50 +00:00
Zoltan Varga 7b9a6bc0bd Fix a typo.
svn path=/trunk/mono/; revision=160471
2010-07-16 08:16:50 +00:00
Gonzalo Paniagua Javier 06d4fb790e 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: fixes bug #622398 for real in OSX.
	This was preventing the WSQ from working.


svn path=/trunk/mono/; revision=160469
2010-07-16 05:10:35 +00:00
Miguel de Icaza abfc2079cb Small bug fix
svn path=/trunk/mcs/; revision=160467
2010-07-16 04:44:17 +00:00
Gonzalo Paniagua Javier 3bc0b5ab98 revert. Not needed
svn path=/trunk/mono/; revision=160466
2010-07-16 03:52:00 +00:00
Miguel de Icaza 6beba62f43 Move
svn path=/trunk/mcs/; revision=160464
2010-07-16 02:42:34 +00:00
Miguel de Icaza 12e1977084 Update man
svn path=/trunk/mono/; revision=160463
2010-07-15 22:34:31 +00:00
Miguel de Icaza 4d381dc349 2010-07-15 Miguel de Icaza <[email protected]>
* mini.c: Allow "casts" to be passed on MONO_DEBUG as well.

svn path=/trunk/mono/; revision=160462
2010-07-15 22:33:14 +00:00
Gonzalo Paniagua Javier 1a3b1e2cc7 2010-07-15 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: use a monitor thread to start up new ones when needed.
	Fixes bug #622398.


svn path=/trunk/mono/; revision=160461
2010-07-15 22:11:19 +00:00
Marek Habersack 1d1d22eab5 2010-07-15 Marek Habersack <[email protected]>
* WebControl.cs: implemented verifying that no inline style
	property is set for controls which support the RenderOuterTable
	property (4.0)

	* IRenderOuterTable.cs: internal helper interface for controls
	which support the RenderOuterTable property (for now only
	ChangePassword, 3 more to come)

	* ChangePassword.cs: implemented RenderOuterTable property and the
	corresponding behavior of not rendering surrounding table when the
	property is set to false (4.0).
	Modified BaseChangePasswordContainer to not inherit from Table
	anymore. Table is an instance variable (always used as the
	template container in 2.0) which is optionally (and by default)
	used to contain the templates.

svn path=/trunk/mcs/; revision=160459
2010-07-15 19:30:33 +00:00
Zoltan Varga 6ba9773a26 2010-07-15 Zoltan Varga <[email protected]>
* mini-ia64.c: Change the calling convention to pass this as first as on other
	architectures. Remove some dead code from the get_vcall_slot() and the implementation
	of the CALL_MEMBASE opcodes as a result.

svn path=/trunk/mono/; revision=160458
2010-07-15 19:01:04 +00:00
Zoltan Varga f781d3428f 2010-07-15 Zoltan Varga <[email protected]>
* wthreads.c (CreateThread): Avoid an assert if the stack size specified by the
	caller is smaller than the system minimum.

svn path=/trunk/mono/; revision=160457
2010-07-15 19:00:55 +00:00
Sebastien Pouliot e3a9837c8f 2010-07-15 Sebastien Pouliot <[email protected]>
* LinearGradientBrushTest.cs: Add test case for #537396 (empty rects)


svn path=/trunk/mcs/; revision=160455
2010-07-15 18:40:52 +00:00
Miguel de Icaza f3a37dadfe Add Punycode encoder, to be used one day by Uri.cs
svn path=/trunk/mcs/; revision=160452
2010-07-15 18:38:11 +00:00
Atsushi Eno d6e2b55290 batch commit from local git changes.
svn path=/trunk/mcs/; revision=160451
2010-07-15 17:09:35 +00:00
Atsushi Eno 869cebe2c7 updated to the latest code from Mono.Security.
svn path=/trunk/mcs/; revision=160450
2010-07-15 17:09:00 +00:00
Marek Habersack f2f50f05da 2010-07-15 Marek Habersack <[email protected]>
* PlaceHolder.cs, View.cs, WizardStepBase: added EnableTheming
	property

	* MultiViewControlBuilder.cs: added

More 2.0/4.0 metadata updates

svn path=/trunk/mcs/; revision=160448
2010-07-15 16:51:09 +00:00
Paolo Molaro f331291102 Thu Jul 15 18:44:44 CEST 2010 Paolo Molaro <[email protected]>
* reflection.c, class-internals.h, class.c, icall.c: support
	reflection of default constant value for Re.Emit properties.


svn path=/trunk/mono/; revision=160447
2010-07-15 16:47:18 +00:00
Raja R Harinath d755aa7d33 Apply CategoryAttribute fix to XamlDirectiveTest.cs too
svn path=/trunk/mcs/; revision=160443
2010-07-15 15:38:20 +00:00
Miguel de Icaza 807567a42b 2010-07-14 Miguel de Icaza <[email protected]>
* reflection.c (load_cattr_value): Add support for encoding
	DateTime constants into the blob.    Turns out that this is
	required by .NET, it was only documented post 1.0.

	* icall.c (ves_icall_type_GetTypeCodeInternal): Guard test for
	System.Decimal and System.DateTime inside a mono_is_corlib_image
	call.   A sample program showed that we could return the wrong
	TypeCode just by creating a class with those names. 

	* class.c (mono_is_corlib_image): Exposed this to other metadata/
	code.



svn path=/trunk/mono/; revision=160402
2010-07-15 04:51:52 +00:00
Miguel de Icaza 1c1baca891 2010-07-15 Miguel de Icaza <[email protected]>
* FieldBuilderTest.cs: Add new test that exercises encoding
	datetime constants with SetConstant.

svn path=/trunk/mcs/; revision=160401
2010-07-15 04:51:01 +00:00
Atsushi Eno 4eab24ede7 remove extra package line and add it to each profile directory.
svn path=/trunk/mcs/; revision=160400
2010-07-15 03:56:26 +00:00
Atsushi Eno debe6db8b6 this too.
svn path=/trunk/mcs/; revision=160399
2010-07-15 03:53:36 +00:00
Atsushi Eno 3d3091250d this too.
svn path=/trunk/mcs/; revision=160398
2010-07-15 03:53:18 +00:00
Atsushi Eno 8e91e06a04 add new 2.1-only directory.
svn path=/trunk/mcs/; revision=160397
2010-07-15 03:52:53 +00:00
Miguel de Icaza e40bb6a9ad An extra test, to give me peace of mind
svn path=/trunk/mcs/; revision=160392
2010-07-14 23:30:51 +00:00
Miguel de Icaza 5072fbdece 2010-07-14 Miguel de Icaza <[email protected]>
* DateTime.cs: This is the Retina Display of DateTime structs.
	Unlike our previous Chubby DateTime that took 16 bytes of memory,
	this slim version of DateTime only uses 8 bytes.

	This fixes a couple of bugs 592221 and 622127.   Additionally, it
	turns out that the original Microsoft documentation did not spell
	this out, but newer versions of the docs state that SetConstant on
	a FieldBuilder should be capable of serializing DateTimes (which
	is where this issue came from).

	This is necessary to fix two crashers exposed by the CLR test
	suite. 

svn path=/trunk/mcs/; revision=160391
2010-07-14 23:30:31 +00:00
Miguel de Icaza 923989fc62 2010-07-14 Miguel de Icaza <[email protected]>
* tests.make: Do not run the tests under the verifier until the
	verifier bug is fixed so at least we can see what is going on in
	our buildbots.

svn path=/trunk/mcs/; revision=160388
2010-07-14 21:52:25 +00:00
Sebastien Pouliot a36dc89129 2010-07-14 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Fix IEnumerable.GetEnumerator


svn path=/trunk/mcs/; revision=160387
2010-07-14 21:46:36 +00:00
Gonzalo Paniagua Javier 1814e5864d 2010-07-14 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: allow values out of range as MS does.


svn path=/trunk/mcs/; revision=160379
2010-07-14 20:30:22 +00:00
Marek Habersack f9aca58e82 4.0/2.0 metadata updates + some test updates
svn path=/trunk/mcs/; revision=160378
2010-07-14 19:46:01 +00:00
Atsushi Eno cee551a2f4 2010-07-14 Atsushi Enomoto <[email protected]>
* WebMessageEncoder.cs : support Raw message in ReadMessage() too.
	  Allow null content type.

	* WebMessageFormatter.cs : do not depend on WebOperationContext.
	  add support for Raw format request.

	* WebMessageEncodingBindingElementTest.cs : add test for null
	  content type for ReadMessage() (allowed),

	* WebHttpBehaviorTest.cs : add test for deserializing Raw request
	  message too.


svn path=/trunk/mcs/; revision=160377
2010-07-14 18:24:54 +00:00
Atsushi Eno 64372ac47a 2010-07-14 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs, MessageEncoder.cs:
	  The default content type value is null, not the ContentType value.

	* HttpReplyChannel.cs : pass HTTP ContentType header value to
	  MessageEncoder.ReadMessage().


svn path=/trunk/mcs/; revision=160376
2010-07-14 18:20:24 +00:00
Marek Habersack 23d67b3f07 2010-07-14 Marek Habersack <[email protected]>
* Menu.cs: fixed skip link rendering (no child controls are added
	in the process, writing directly to HtmlTextWriter). Fixes tests
	for 4.0
	If StaticSubMenuIndent equals Unit.Empty on 4.0, default to using
	16px as the value of the margin-left CSS attribute.

Fixed all failing tests (both 2.0 and 4.0)

svn path=/trunk/mcs/; revision=160369
2010-07-14 15:55:09 +00:00
Marek Safar 6b29e29967 Don't print null on exit
svn path=/trunk/mcs/; revision=160362
2010-07-14 15:05:28 +00:00
Sebastien Pouliot 78892e306e 2010-07-14 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Don't abort (only warn) if we cannot find 
	a caller for relfecting code (transparent is assumed). Fix
	get_method_access_exception to accept a NULL caller.


svn path=/trunk/mono/; revision=160361
2010-07-14 14:55:32 +00:00
Marek Safar e7c6c4ac85 Allow completion without prefix
svn path=/trunk/mcs/; revision=160360
2010-07-14 14:54:54 +00:00
Marek Safar ea8490ff75 New tests.
svn path=/trunk/mcs/; revision=160357
2010-07-14 13:57:14 +00:00
Marek Safar 563589c779 2010-07-14 Marek Safar <[email protected]>
* namespace.cs, import.cs: When importing nested type via type
	arguments set their parent type correctly (Fixes #622051).


svn path=/trunk/mcs/; revision=160356
2010-07-14 13:55:00 +00:00
Marek Safar d094687a02 2010-07-14 Marek Safar <[email protected]>
A fix for bug #622104
	* attribute.cs: Add default lookup flags.
	

svn path=/trunk/mcs/; revision=160348
2010-07-14 10:48:08 +00:00
Atsushi Eno 74ec2c95ef 2010-07-14 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : add support for Raw format.

	* WebMessageEncoder.cs : support Raw message. Fixed bug #619542.

	* WebHttpBehaviorTest.cs : add test for bug #619542 (not sure if it
	  works on mono; run-test is broken in trunk. Verified under .NET).


svn path=/trunk/mcs/; revision=160341
2010-07-14 08:43:31 +00:00
Jb Evain 16194ffee8 style
svn path=/trunk/mcs/; revision=160338
2010-07-14 08:17:12 +00:00
Jb Evain 7765cb325a 2010-07-14 Jb Evain <[email protected]>
* Enumerable.cs (Union): fix HashSet.Contains call.

svn path=/trunk/mcs/; revision=160337
2010-07-14 08:16:50 +00:00
Miguel de Icaza a83d14764d 2010-07-13 Miguel de Icaza <[email protected]>
* mini.c: LLVM is disabled by default on LLVM builds.  You can use
	the MONO_ENV_OPTIONS to set the --llvm flag.

svn path=/trunk/mono/; revision=160332
2010-07-14 03:18:50 +00:00
Mark Probst 6cf0dece8d 2010-07-14 Mark Probst <[email protected]>
* sgen-gc.c: Heavy statistics on the internal allocator.

svn path=/trunk/mono/; revision=160330
2010-07-14 01:16:25 +00:00
Geoff Norton b86795d86b Only posix/mach semaphores return a value
svn path=/trunk/mono/; revision=160324
2010-07-14 00:44:06 +00:00
Mark Probst c399316d94 2010-07-13 Mark Probst <[email protected]>
* sgen-marksweep.c, sgen-gc.h: Keep track of num_empty_blocks
	properly and in a thread-safe way.

svn path=/trunk/mono/; revision=160319
2010-07-13 22:53:16 +00:00
Miguel de Icaza 3ebe73571f Update
svn path=/trunk/mcs/; revision=160318
2010-07-13 22:03:59 +00:00
Mark Probst 036d57bd7e 2010-07-13 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c: Make object marking thread-safe.

svn path=/trunk/mono/; revision=160317
2010-07-13 21:30:35 +00:00
Mark Probst aa2825150d 2010-07-13 Mark Probst <[email protected]>
* sgen-gc.c: Versions of safe_object_get_size() and
	copy_object_no_checks() that work without the object's vtable
	intact, by passing the correct vtable as an argument.

svn path=/trunk/mono/; revision=160316
2010-07-13 21:30:06 +00:00
Mark Probst aac352ed5d 2010-07-13 Mark Probst <[email protected]>
* sgen-marksweep.c: Make allocation of major sections thread-safe.

svn path=/trunk/mono/; revision=160315
2010-07-13 21:29:34 +00:00
Michael Hutchinson 43c8558607 Make mono-debug.h properly safe for public use.
svn path=/trunk/mono/; revision=160313
2010-07-13 20:39:57 +00:00
Marek Habersack b58d43fc4c 2010-07-13 Marek Habersack <[email protected]>
* BoundField.cs: implemented HtmlEncodeFormatString property
	(3.5+) and modified the way FormatDataValue works accordingly.

svn path=/trunk/mcs/; revision=160312
2010-07-13 19:54:34 +00:00
Gonzalo Paniagua Javier 5e8455db10 2010-07-13 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.h:
	* mono-semaphore.c: use io-layer wait functions in OSX.


svn path=/trunk/mono/; revision=160310
2010-07-13 19:25:39 +00:00
Marek Habersack 9b6ca247de 2010-07-13 Marek Habersack <[email protected]>
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
	is not part of the official API. MultiSelect capability validation
	is performed using an internal virtual method MultiSelectOk ().

	* BaseDataList.cs: OnPagePreLoad is not part of the official API

	* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
	ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
	property.

svn path=/trunk/mcs/; revision=160305
2010-07-13 17:45:17 +00:00
Marek Habersack 3e86dae309 2010-07-13 Marek Habersack <[email protected]>
* Control.cs: moved 4.0 ClientID code to a separate method, so
	that the ID_SET flag isn't set when necessary.

2010-07-13  Marek Habersack  <[email protected]>

	* Wizard.cs: wizard table doesn't contain any instances of
	HtmlAnchor or Image controls. Moved rendering of the skip link
	anchor to the TableCellNamingContainer class, which does that in
	RenderChildren by directly writing to the passed writer. Fixes 4.0
	rendering and all the failing Wizard tests.

svn path=/trunk/mcs/; revision=160304
2010-07-13 16:34:23 +00:00
Veerapuram Varadhan f1ec39f98c 2010-07-13 Veerapuram Varadhan <[email protected]>
** Fixes #613845
	* Tds70.cs (WriteParameterInfo): Round money values to 4
	* decimals.

svn path=/trunk/mcs/; revision=160302
2010-07-13 15:55:33 +00:00
Carlos Alberto Cortez 502ea8c6bd 2010-07-13 Carlos Alberto Cortez <[email protected]>
* RegistryKeyTest.cs: New tests for volatile keys.


svn path=/trunk/mcs/; revision=160301
2010-07-13 14:48:01 +00:00
Carlos Alberto Cortez 5cf380806d 2010-07-13 Carlos Alberto Cortez <[email protected]>
* RegistryKey.cs: Call the proper UnixRegistryApi.CreateSubKey overload.
	* UnixRegistryApi.cs: Implement basic support for volatile keys, by
	storing them in memory instead of disk. We lack the support to have
	them available to other processes - and given the fact that a
	workaround would be gross, just don't implement that now.


svn path=/trunk/mcs/; revision=160300
2010-07-13 14:45:17 +00:00
Jb Evain 73c7b851cf 2010-07-13 Jb Evain <[email protected]>
* Enumerable.cs (Except): fix HashSet.Contains call.
	Fixes #621911.


svn path=/trunk/mcs/; revision=160298
2010-07-13 14:35:56 +00:00
Veerapuram Varadhan a85b808564 2010-07-12 Veerapuram Varadhan <[email protected]>
** Fixes #569543
	* Tds70.cs (ExecPrepared): Revert back to old changes.
	* Tds80.cs (ExecPrepared): Override for Tds 8 version that
	optimizes network bandwidth.

svn path=/trunk/mcs/; revision=160281
2010-07-13 08:51:45 +00:00
Atsushi Eno 1295890cb1 2010-07-13 Atsushi Enomoto <[email protected]>
* driver.c : windows build fix for --with-moonlight.


svn path=/trunk/mono/; revision=160280
2010-07-13 06:13:39 +00:00
Mark Probst 741893e5db 2010-07-13 Mark Probst <[email protected]>
* sgen-gc.c, sgen-gc.h, sgen-los.c, sgen-major-copying.c,
	sgen-marksweep.c: Update the heap boundaries thread-safe and lock
	free if parallel mark is enabled.

svn path=/trunk/mono/; revision=160279
2010-07-13 03:01:07 +00:00
Mark Probst e3f5186406 2010-07-13 Mark Probst <[email protected]>
* sgen-gc.c, sgen-gc.h, sgen-major-copying.c: Lock the internal
	allocator if parallel mark (not committed yet) is enabled.

svn path=/trunk/mono/; revision=160278
2010-07-13 02:25:19 +00:00
Rodrigo Kumpera e1d2043803 2010-07-12 Rodrigo Kumpera <[email protected]>
* reflection.c (inflate_mono_method): Handle dynamic
	generic instances that have method.count set but
	methods not. Fixes another crash from boo's test suite.

svn path=/trunk/mono/; revision=160277
2010-07-13 01:28:05 +00:00
Rodrigo Kumpera 6ba35f2330 2010-07-12 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoMethod_get_base_method): If
	the method slot is bigger than the class vtable, return
	the original method. Makes booc work again.

svn path=/trunk/mono/; revision=160268
2010-07-12 22:01:35 +00:00
Rodrigo Kumpera d8afff4c8a 2010-07-12 Rodrigo Kumpera <[email protected]>
* verify.c (mono_generic_param_is_constraint_compatible):
	The candidate type itself might satisty the required
	constraints.

	Fixes #621599.

svn path=/trunk/mono/; revision=160261
2010-07-12 17:21:14 +00:00
Rodrigo Kumpera e92989e22b 2010-07-12 Rodrigo Kumpera <[email protected]>
* valid_generic_arg_satisty_constraint_compat_check.cs:
	Regression test for #621599.

svn path=/trunk/mono/; revision=160260
2010-07-12 17:21:05 +00:00
Rodrigo Kumpera c0da3aa336 2010-07-12 Rodrigo Kumpera <[email protected]>
* bug-389886-3.cs: New regression test.

svn path=/trunk/mono/; revision=160259
2010-07-12 17:20:57 +00:00
Rodrigo Kumpera d229e91f63 2010-07-12 Rodrigo Kumpera <[email protected]>
* reflection.c (fix_partial_generic_class): Inflate the
	generic instance parent in case it was changed after
	MonoGenericClass was instantiated.

	Fixes one of the issues from #389886.

svn path=/trunk/mono/; revision=160257
2010-07-12 15:55:36 +00:00
Marek Safar c383c6dfac 2010-07-12 Marek Safar <[email protected]>
* tests.make: Run all tests under verifier.


svn path=/trunk/mcs/; revision=160256
2010-07-12 15:22:11 +00:00
Rolf Bjarne Kvinge 119386440c 2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* NetworkChange_2_1.cs: Don't leak exceptions to native code.

svn path=/trunk/mcs/; revision=160255
2010-07-12 14:57:39 +00:00
Rolf Bjarne Kvinge 951e11a011 In man:
2010-07-12  Rolf Bjarne Kvinge  <[email protected]>

	* mono.1: Document MONO_DEBUG's new reverse-pinvoke-exceptions option.

In mono/mini:
2010-07-12  Rolf Bjarne Kvinge  <[email protected]>

	* mini.c|h:
	* mini-exceptions.c: Add an option to MONO_DEBUG for tracking down exceptions
	that reach native code from a reverse pinvoke.

svn path=/trunk/mono/; revision=160250
2010-07-12 14:53:15 +00:00
Marek Safar d2cf197fe9 Clean up 2 warnings
svn path=/trunk/mcs/; revision=160247
2010-07-12 14:22:44 +00:00
Atsushi Eno 66cda586dc 2010-07-12 Atsushi Enomoto <[email protected]>
* InputOrReplyProcessor.cs : remove SecurityHandler. WS-Trust must
	  be handled before endpoint dispatching (it must not pass contract
	  filter) and doesn't make sense to be here.
	* SecurityHandler.cs : move to old-code.

	* SecurityReplyChannel.cs : handle WS-Trust message here.
	* SecurityRequestContext.cs : so, do not pass those messages here.

	* SslSecurityTokenAuthenticator.cs,
	  AuthenticatorCommunicationObject.cs,
	  SecureConversationSecurityTokenAuthenticator.cs :
	  add timeout argument to negotication requests.

	* System.ServiceModel.dll.sources: remove SecurityHandler.cs


svn path=/trunk/mcs/; revision=160244
2010-07-12 13:17:58 +00:00
Jb Evain 55284eb83a 2010-07-12 Jb Evain <[email protected]>
* Complex.cs: implement IFormattable.


svn path=/trunk/mcs/; revision=160241
2010-07-12 12:09:52 +00:00
Marek Safar 8e48a532fb 2010-07-12 Marek Safar <[email protected]>
* generic.cs: Don't use Report directly.
	
	* expression.cs, ecore.cs: UserOperatorCall uses MethodSpec without
	MethodGroupExpr, will be simplified later.


svn path=/trunk/mcs/; revision=160236
2010-07-12 11:11:34 +00:00
Atsushi Eno 236256cca3 move MessageSecurityBindingSupport.cs too.
svn path=/trunk/mcs/; revision=160235
2010-07-12 10:54:22 +00:00
Atsushi Eno 6da7552dd2 more internal namespace moving.
svn path=/trunk/mcs/; revision=160234
2010-07-12 10:46:21 +00:00
Atsushi Eno ef8c21e0d3 (forgot to add new ChangeLog)
2010-07-12  Atsushi Enomoto  <[email protected]>

	* SecurityRequestContext.cs : revert extra and bogus changes I had
	  locally.


svn path=/trunk/mcs/; revision=160233
2010-07-12 10:27:31 +00:00
Atsushi Eno 4df7955884 moved bunch of security internal classes to System.ServiceModel.Channels.Security directory.
svn path=/trunk/mcs/; revision=160232
2010-07-12 10:20:16 +00:00
Atsushi Eno b7cb691f5f 2010-07-12 Astushi Enomoto <[email protected]>
* Dummy_2_1.cs : add internal namespaces.
	* System.ServiceModel.dll.sources: add SecurityReplyChannel.cs

	* SecurityReplyChannel.cs : split from SecurityChannelListener.cs.
	* AsymmetricSecurityBindingElement.cs
	  WSSecurityMessageHeader.cs
	  SecureMessageDecryptor.cs
	  SecureMessageGenerator.cs
	  SecurityChannelListener.cs
	  SecurityRequestContext.cs
	  WSEncryptedXml.cs
	  SecurityRequestChannel.cs
	  SymmetricSecurityBindingElement.cs
	  SecurityOutputChannel.cs
	  SecurityChannelFactory.cs
	  WSSignedXml.cs
	  SecurityBindingElement.cs : change namespace to move to internal
	  namespace directory.


svn path=/trunk/mcs/; revision=160230
2010-07-12 10:08:08 +00:00
Atsushi Eno d46518eef2 2010-07-12 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : apply ErrorHandlers to IInputChannel too.


svn path=/trunk/mcs/; revision=160228
2010-07-12 09:43:24 +00:00
Zoltan Varga 9b44d53fad 2010-07-11 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Kill some duplicated code.

svn path=/trunk/mono/; revision=160207
2010-07-11 19:56:18 +00:00
Zoltan Varga 3a365a8ec1 2010-07-11 Zoltan Varga <[email protected]>
* mini-<ARCH>.c (get_call_info): Call mini_type_get_underlying_type () before passing
	a type to MONO_TYPE_IS_REFERENCE (), since the latter can't handle VAR/MVAR.
	Fixes #620864.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=160206
2010-07-11 19:38:49 +00:00
Rodrigo Kumpera a2dabd6a17 2010-07-11 Rodrigo Kumpera <[email protected]>
* mini.c (mono_jit_compile_method_inner): Don't bomb out if we don't
	support a given runtime implemented method.

svn path=/trunk/mono/; revision=160205
2010-07-11 16:46:16 +00:00
Carlos Alberto Cortez 90189d95c6 2010-07-11 Carlos Alberto Cortez <[email protected]>
* RegistryKey.cs: Add 4.0 CreateSubKey overloads taking a RegistryOptions
	parameter.
	* IRegistryApi.cs: Add a new overload for CreateSubKey for the 4.0
	profile. Not nice, but better than to change the signature for each
	profile.
	* Win32RegistryApi.cs: Properly recognize a handle where a volatile
	key is requested.
	* UnixRegistryApi.cs: Stubbed.


svn path=/trunk/mcs/; revision=160203
2010-07-11 13:09:17 +00:00
Jonathan Pryor ac293bc473 * Makfile.am (test-process-exit): Expected output is in $srcdir.
svn path=/trunk/mono/; revision=160202
2010-07-11 02:43:43 +00:00
Veerapuram Varadhan 28800e2439 2010-07-10 Veerapuram Varadhan <[email protected]>
** Fixes 620860
	* Tds70.cs (Precision): New virtual property to handle Precision
	values across different Tds versions.
	(WriteParameterInfo): Use defined Precision property instead of
	constant value.  Also handle Ulong and long max/min values
properly.
	* Tds80.cs (Precision): Override property to provide Tds 8
precision value.

svn path=/trunk/mcs/; revision=160199
2010-07-10 10:35:56 +00:00
Ankit Jain 0b05e5c58e * Csc.cs: Quote -define: arguments.
svn path=/trunk/mcs/; revision=160198
2010-07-10 10:03:36 +00:00
Mark Probst 542da29e24 2010-07-10 Mark Probst <[email protected]>
* sgen-gray.c: Store only a pointer to one end of the gray queue.

svn path=/trunk/mono/; revision=160197
2010-07-10 01:59:24 +00:00
Rodrigo Kumpera b695955cc8 2010-07-10 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature_checked): Release the domain
	lock on failure.

svn path=/trunk/mono/; revision=160195
2010-07-10 01:21:41 +00:00
Rodrigo Kumpera 6c2a365ac1 2010-07-10 Rodrigo Kumpera <[email protected]>
* loader.c (mono_get_method_constrained): Properly unlock the
	domain lock on failure. Use checked variant of
	inflate_generic_signature.

svn path=/trunk/mono/; revision=160193
2010-07-10 01:15:55 +00:00
Rodrigo Kumpera 5507009680 2010-07-10 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature_checked): Use checked
	variant of inflate_generic_signature.

	Fixes #606353.

svn path=/trunk/mono/; revision=160192
2010-07-10 01:15:47 +00:00
Mark Probst faa646abcc Store forwarding address in the same word as the forwarding bit.
svn path=/trunk/mono/; revision=160191
2010-07-10 00:48:26 +00:00
Mark Probst f92e1fed43 2010-07-10 Mark Probst <[email protected]>
* gc.c, gc-internal.h, sgen-gc.c, sgen-gc.h, sgen-os-mach.c: An
	interface to register our Mach exception thread which will not be
	suspended by stop-the-world.

2010-07-10  Mark Probst  <[email protected]>

	* mini-darwin.c: Register the exception thread with the GC.

svn path=/trunk/mono/; revision=160190
2010-07-10 00:41:19 +00:00
Rodrigo Kumpera 88760c1abb 2010-07-10 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_metadata_parse_type_internal): Don't use
	cannonical types when a transient type was requested.

	Fixes #608626.

svn path=/trunk/mono/; revision=160189
2010-07-10 00:30:12 +00:00
Marek Habersack f2783a3286 Another 4.0 test update
svn path=/trunk/mcs/; revision=160188
2010-07-10 00:25:23 +00:00
Marek Habersack 66f503db3e 2010-07-10 Marek Habersack <[email protected]>
* Control.cs: when setting ClientIDMode remember the value when
	setting the property for the first time.

svn path=/trunk/mcs/; revision=160187
2010-07-10 00:25:15 +00:00
Marek Habersack 77aff7f68b Removed debugging code
svn path=/trunk/mcs/; revision=160186
2010-07-10 00:25:07 +00:00
Marek Habersack b5de6386ee 2010-07-09 Marek Habersack <[email protected]>
* HtmlInputButton.cs: if ServerClick handler is found, do NOT
	attribute-encode the onclick attribute.

svn path=/trunk/mcs/; revision=160185
2010-07-10 00:24:59 +00:00
Mark Probst b93ad36abe 2010-07-10 Mark Probst <[email protected]>
* sgen-gray.c, sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c:
	All functions that touch the gray queue directly or indirectly now
	take it as an argument.

svn path=/trunk/mono/; revision=160184
2010-07-10 00:17:13 +00:00
Mark Probst 5c3b348415 2010-07-10 Mark Probst <[email protected]>
* sgen-gray.c, sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c:
	Put the gray queue data into a struct and pass it around.

svn path=/trunk/mono/; revision=160183
2010-07-09 23:58:30 +00:00
Rodrigo Kumpera f1154909d1 2010-07-09 Rodrigo Kumpera <[email protected]>
* class.c (mono_method_can_access_method_full): Handle type
	accessibility with very deep nested types.

	* class.c (mono_method_can_access_field_full): Ditto.

	Fixes #619300.

svn path=/trunk/mono/; revision=160181
2010-07-09 23:13:53 +00:00
Rodrigo Kumpera f7aa22c61f 2010-07-09 Rodrigo Kumpera <[email protected]>
* valid_deep_nested_type_visibility.cs: Regression test
	for #619300.

svn path=/trunk/mono/; revision=160180
2010-07-09 23:13:45 +00:00
Mark Probst 5b5086d0b3 2010-07-10 Mark Probst <[email protected]>
* sgen-gc.c, sgen-los.c, sgen-major-copying.c, sgen-marksweep.c,
	sgen-scan-object.h: Use a macro for rounding up sizes and
	addresses to ALLOC_ALIGN.

svn path=/trunk/mono/; revision=160179
2010-07-09 22:59:55 +00:00
Zoltan Varga 528a94c642 2010-07-10 Zoltan Varga <[email protected]>
* mini-llvm.c (set_metadata_flag): Set metadata flags only when using the LLVM
	mono branch.

svn path=/trunk/mono/; revision=160177
2010-07-09 22:48:07 +00:00
Zoltan Varga dc4f99fe10 Fix the previous change.
svn path=/trunk/mono/; revision=160162
2010-07-09 22:05:05 +00:00
Zoltan Varga afbbdccbbf 2010-07-09 Zoltan Varga <[email protected]>
* mini.h (MONO_INST_HAS_CONSTANT_LOAD): New instruction flag marking loads which load
	from constant memory.

	* ir-emit.h: Clean up the _FAULT macros a bit.

	* decompose.c: Mark some loads as constant.

	* mini-llvm.c: Pass the constant-ness of loads to LLVM using custom metadata.

svn path=/trunk/mono/; revision=160161
2010-07-09 22:00:13 +00:00
Miguel de Icaza e673df2bae 2010-07-09 Miguel de Icaza <[email protected]>
* driver.c (mini_usage): Change the name of the --sgen flag to be
	--gc=sgen and also support --gc=boehm.   These flags can also be
	set on MONO_ENV_OPTIONS to propagate this to children processes. 

	* main.c: Remove the MONO_VM_OPTIONS environment variable that
	only supported "sgen" and "llvm" config options and instead parse
	the MONO_ENV_OPTIONS as options that are parsed by the command
	line parser.   Any command line option that Mono supports can be
	passed in this environment variable.



svn path=/trunk/mono/; revision=160160
2010-07-09 21:40:36 +00:00
Gonzalo Paniagua Javier 4e6e02a348 2010-07-09 Gonzalo Paniagua Javier <[email protected]>
* TimeZoneInfo.cs: avoid nullref when there are no adjustment rules.
	Fixes bug #619811.


svn path=/trunk/mcs/; revision=160159
2010-07-09 21:37:48 +00:00
Geoff Norton b3bd15ac29 Revert
svn path=/trunk/mcs/; revision=160156
2010-07-09 20:48:27 +00:00
Geoff Norton 21dd2b0200 Fix the monotouch build
svn path=/trunk/mcs/; revision=160155
2010-07-09 20:41:50 +00:00
Gonzalo Paniagua Javier 25ed0d0929 2010-07-09 Gonzalo Paniagua Javier <[email protected]>
* file-io.c: fix GetFileSystemEntries for patterns containing
	directories.


svn path=/trunk/mono/; revision=160152
2010-07-09 20:05:39 +00:00
Zoltan Varga e38a9b66cc 2010-07-09 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Run abcrem uncoditionally when LLVM is used since
	it can now eliminate more than just bounds checks.

	* ir-emit.h: Add MAY_FAULT versions of the LOAD_MEMBASE macros which take
	an extra 'fault' argument.

	* method-to-ir.c: Set the MONO_INST_FAULT of the array opcodes which are decomposed
	later.

	* decompose.c: Propagate the MONO_INST_FAULT flag from the array opcodes to their
	decomposition.

	* mini-llvm.c: Remove support for the X86/AMD64 COMPARE_MEMBASE opcodes, they are
	no longer generated when LLVM is used.

	* abcremoval.c: Eliminate MONO_INST_FAULT flags if possible.

svn path=/trunk/mono/; revision=160151
2010-07-09 19:54:26 +00:00
Andrew Jorgensen 06cd458e61 fix an embarassing typo
svn path=/trunk/mcs/; revision=160149
2010-07-09 18:31:54 +00:00
Atsushi Eno ec25baadc3 2010-07-09 Atsushi Enomoto <[email protected]>
* PostReceiveRequestHandler.cs : don't replace correctly passed-by-
	  reference Message with wrong, consumed Message.


svn path=/trunk/mcs/; revision=160148
2010-07-09 18:16:33 +00:00
Atsushi Eno 7dc8ce4629 2010-07-09 Atsushi Enomoto <[email protected]>
* SecurityRequestContext.cs : remove extraneous buffering.


svn path=/trunk/mcs/; revision=160147
2010-07-09 18:13:27 +00:00
Miguel de Icaza b11f100e62 minimal docs for MONO_LLVM
svn path=/trunk/mono/; revision=160146
2010-07-09 17:08:55 +00:00
Atsushi Eno 9eed92664c 2010-07-09 Atsushi Enomoto <[email protected]>
* XmlNodeReaderImpl.cs : in GetNamespacesInScope(), avoid NREs under
	  "no current node" situation. Also, look for attributes on iterated
	  nodes, not current ones.


svn path=/trunk/mcs/; revision=160145
2010-07-09 16:51:34 +00:00
Atsushi Eno 653633491b 2010-07-09 Atsushi Enomoto <[email protected]>
* SecureMessageDecryptor.cs : avoid duplicate copy of headers into
	  the decrypted message.


svn path=/trunk/mcs/; revision=160144
2010-07-09 16:34:18 +00:00
Atsushi Eno 642ee8319d 2010-07-09 Atsushi Enomoto <[email protected]>
* SignedXml.cs : avoid using LoadXml() to load xml element as in
	  literal string. Use ImportNode() instead.
	  Copy namespaces for a referenced node found in envelope document too.


svn path=/trunk/mcs/; revision=160143
2010-07-09 16:24:09 +00:00
Atsushi Eno e482c4db5e 2010-07-09 Atsushi Enomoto <[email protected]>
* Message.cs, MessageBufferImpl.cs, MessageImpl.cs: preserve and
	  output attributes prefixes, to copy Body/@wsu:Id to successfully
	  verify the xmldsig.


svn path=/trunk/mcs/; revision=160142
2010-07-09 16:19:19 +00:00
Andrew Jorgensen 90ab27b938 Fix make dist (IntAllocator.cs)
svn path=/trunk/mcs/; revision=160141
2010-07-09 16:14:30 +00:00
Miguel de Icaza e689b1b36b Clarify
svn path=/trunk/mono/; revision=160140
2010-07-09 15:27:05 +00:00
Zoltan Varga b7f0d9d87a Fix build with older LLVM versions.
svn path=/trunk/mono/; revision=160136
2010-07-09 15:16:25 +00:00
Zoltan Varga 785760146f 2010-07-09 Zoltan Varga <[email protected]>
* ir-emit.h mini-llvm.c: Fix support for explicit-null-checks + LLVM.

svn path=/trunk/mono/; revision=160135
2010-07-09 15:04:11 +00:00
Mark Probst 1883b1115e 2010-07-09 Mark Probst <[email protected]>
* sgen-marksweep.c (major_finish_major_collection): Don't free
	major heap blocks on 32 bit platforms because it can lead to
	address space fragmentation.  We'll figure this out later.

svn path=/trunk/mono/; revision=160134
2010-07-09 15:03:02 +00:00
Ankit Jain 800dc19c6c Correctly handle precedence of ToolsVersion value coming
from various points.
In class/Microsoft.Build.Engine:

	* Microsoft.Build.Engine.dll.sources: Add
	UnknownToolsVersionException.cs

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	Correctly handle precedence of ToolsVersion value coming
	from various points.
	* BuildEngine.cs (BuildProjectFile): Restore project.ToolsVersion .
	* Engine.cs: Likewise. Also validate DefaultToolsVersion .
	* Project.cs: Handle invalid tools version specified in the project
	file, and fall back to engine's version.
	* MSBuild.cs: Fix the precedence order, and validate.
	* UnknownToolsVersionException.cs: New.

In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks.dll.sources: Use
	UnknownToolsVersionException.cs from Engine.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* MessageTest (TestExecution): Additional messages with 'low'
	importance get emitted, so don't expect sequential messages.

In tools/xbuild:

	* Main.cs: Use tools version specified on the command line, if
	any.
	* xbuild.exe.sources: Include UnknownToolsVersionException.cs from
	MS.B.Engine

svn path=/trunk/mcs/; revision=160133
2010-07-09 14:56:14 +00:00
Carlos Alberto Cortez 6c8393b6a7 2010-07-09 Carlos Alberto Cortez <[email protected]>
* Win32RegistryApi.cs: Use RegCreateKeyEx instead of RegCreateKey, as
	we need it to further support both the missing bits and the 4.0
	features.


svn path=/trunk/mcs/; revision=160130
2010-07-09 14:41:04 +00:00
Marek Safar 88a1dd8d75 New test.
svn path=/trunk/mcs/; revision=160129
2010-07-09 13:39:36 +00:00
Marek Safar ace9962f7e 2010-07-09 Marek Safar <[email protected]>
* property.cs, parameters.cs: Inflated IndexerSpec parameters.
	
	* import.cs: Don't build unused parameters.


svn path=/trunk/mcs/; revision=160128
2010-07-09 13:39:10 +00:00
Atsushi Eno 6c620fbb6e 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageFault.cs : MessageFault from Message could have empty
	  detail. Have it return HasDetail as expected.


svn path=/trunk/mcs/; revision=160127
2010-07-09 13:03:19 +00:00
Atsushi Eno 46dc4571d5 2010-07-09 Atsushi Enomoto <[email protected]>
* SecurityRequestChannel.cs : do not try to decrypt faults, they
	  are not encrypted.


svn path=/trunk/mcs/; revision=160126
2010-07-09 13:01:59 +00:00
Atsushi Eno b177dfdc22 2010-07-09 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : do not swallow exception during
	  RequestContext.get_RequestMessage() and thus return SOAP Fault for
	  MessageSecurityException to the client.


svn path=/trunk/mcs/; revision=160122
2010-07-09 12:36:21 +00:00
Atsushi Eno ba9b744df1 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : to clone raw xml completely, avoid using 
	  ReadOuterXml() and text reader but use XmlNodeReader instaed.
	* Message.cs : avoid extraneous xmlns:u attribute.


svn path=/trunk/mcs/; revision=160120
2010-07-09 11:33:07 +00:00
Rolf Bjarne Kvinge ccec9bcaca 2010-07-09 Rolf Bjarne Kvinge <[email protected]>
* driver.c: Moonlight: Force line buffering for stdout.

svn path=/trunk/mono/; revision=160111
2010-07-09 09:44:32 +00:00
Atsushi Eno b1e89864e1 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaderInfo.cs: add internal Prefix
	  property and copy them from source to destination.


svn path=/trunk/mcs/; revision=160107
2010-07-09 09:17:26 +00:00
Atsushi Eno 25d38015d6 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : When XmlReaderMessage was writing its contents,
	  it was dropping body attributes, including wsu:Id for WS-Security.


svn path=/trunk/mcs/; revision=160105
2010-07-09 07:35:11 +00:00
Atsushi Eno 8d3ff9480e 2010-07-09 Atsushi Enomoto <[email protected]>
* SecureMessageGenerator.cs : MessageBuffer was missing copy of
	  Body wsu:Id attribute.
	* HttpRequestChannel.cs : remove comment for resolved issue.


svn path=/trunk/mcs/; revision=160102
2010-07-09 05:37:14 +00:00
Atsushi Eno 872ac7fb67 2010-07-09 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : move another old code.


svn path=/trunk/mcs/; revision=160099
2010-07-09 04:40:34 +00:00
Mark Probst 6acccf06ad 2010-07-09 Mark Probst <[email protected]>
* sgen-marksweep.c, sgen-gc.c, sgen-major-copying.c: Free major
	heap blocks for mark&sweep eventually.

svn path=/trunk/mono/; revision=160098
2010-07-09 04:07:13 +00:00
Zoltan Varga 1aaa102c22 2010-07-09 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_load): Revert the last changes, the load/store intrinsics
	are only callable using invoke.

svn path=/trunk/mono/; revision=160097
2010-07-09 02:40:24 +00:00
Mark Probst 8579e22a23 2010-07-09 Mark Probst <[email protected]>
* sgen-protocol.c: Fix build when binary protocol is disabled.

svn path=/trunk/mono/; revision=160096
2010-07-09 02:34:46 +00:00
Mark Probst 4efc44196a 2010-07-09 Mark Probst <[email protected]>
* sgen-protocol.c, sgen-gc.c: Make binary protocol lock-freely
	thread-safe.

svn path=/trunk/mono/; revision=160095
2010-07-09 01:30:33 +00:00
Zoltan Varga 2e93b1f599 2010-07-09 Zoltan Varga <[email protected]>
* mini-llvm.c (process_bb): Use emit_load () in one more place.

svn path=/trunk/mono/; revision=160093
2010-07-09 00:39:27 +00:00
Zoltan Varga e1a3b03894 2010-07-09 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (force_pass_linking): Link in more function passes so
	MONO_LLVM=xxx is actually usable.

svn path=/trunk/mono/; revision=160090
2010-07-08 23:20:58 +00:00
Zoltan Varga fc8f6ba3b2 2010-07-09 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_load): Use the mono specific load intrinsics even outside clauses
	since LLVM might be able to hoist them out of loops.
	(emit_store): Ditto.

svn path=/trunk/mono/; revision=160089
2010-07-08 22:45:15 +00:00
Neale Ferguson 864fa837dd Enable sgen support for s390x
svn path=/trunk/mono/; revision=160087
2010-07-08 21:38:52 +00:00
Gonzalo Paniagua Javier 5e3495a34e 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* ThemeWin32Classic.cs: implement ResetDefaults.
	Fixes bug #581956.


svn path=/trunk/mcs/; revision=160085
2010-07-08 21:25:17 +00:00
Gonzalo Paniagua Javier cd45fc688f 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: handle compressed streams when automatic decompression
	is turned on by a class derived from WebClient.


svn path=/trunk/mcs/; revision=160084
2010-07-08 21:04:45 +00:00
Gonzalo Paniagua Javier d304733407 2010-07-08 Gonzalo Paniagua Javier <[email protected]>
* DateTime.cs: allow between 1 and 7 digits after the dot.
	Fixes bug #594559.


svn path=/trunk/mcs/; revision=160078
2010-07-08 19:06:56 +00:00
Rodrigo Kumpera 7c363cd8b0 2010-07-08 Rodrigo Kumpera <[email protected]>
* pedump.c (verify_image_file): Initialize the vtable as well.

svn path=/trunk/mono/; revision=160074
2010-07-08 18:50:30 +00:00
Zoltan Varga 5e1861c5ae 2010-07-08 Zoltan Varga <[email protected]>
* xdebug.c (mono_save_trampoline_xdebug_info): Make this receive a MonoTrampInfo.

	* tramp-<ARCH>.c: Move the calls to save_trampoline_xdebug_info () into
	mini-trampolines.c/mini-exceptions.c. Use a more human readable name for
	generic trampolines+rgctx fetch trampolines.

svn path=/trunk/mono/; revision=160073
2010-07-08 18:36:11 +00:00
Rodrigo Kumpera b4ada90cdc 2010-07-08 Rodrigo Kumpera <[email protected]>
* assembly.c (mono_assembly_load_reference): Replace a g_warning
	with a mono_trace calls. This makes compiling MD a lot less
scary.

svn path=/trunk/mono/; revision=160072
2010-07-08 18:29:24 +00:00
Geoff Norton f190c9b28f 2010-07-08 Geoff Norton <[email protected]>
* genmdesc.pl: nacl is not a new inst slot, it just modifies the size slot.

svn path=/trunk/mono/; revision=160068
2010-07-08 16:18:43 +00:00
Marek Habersack e4aea66ffa More 4.0 test fixes
svn path=/trunk/mcs/; revision=160057
2010-07-08 13:10:45 +00:00
Marek Habersack 3bb5c24183 2010-07-08 Marek Habersack <[email protected]>
* CheckBoxList.cs: RepeatLayout property update for new values of
	the RepeatLayout enum in 4.0

svn path=/trunk/mcs/; revision=160056
2010-07-08 13:10:35 +00:00
Marek Habersack 0d5fccd5a9 2010-07-08 Marek Habersack <[email protected]>
* TreeView.cs: in 4.0, checkbox renders the value of the current
	node's ToolTip, if anything, and not Text.

svn path=/trunk/mcs/; revision=160055
2010-07-08 13:10:25 +00:00
Marek Habersack d10fed112a 2010-07-08 Marek Habersack <[email protected]>
* RepeatLayout.cs: added two new members, UnorderedList and
	OrderedList (4.0)

svn path=/trunk/mcs/; revision=160054
2010-07-08 13:10:16 +00:00
Marek Habersack 9bd54de080 2010-07-08 Marek Habersack <[email protected]>
* ImageMap.cs: implemented missing Enabled property (2.0+)
	RaisePostBackEvent must be protected and virtual (2.0+)
	NavigateUrl is ignored if the control is disabled (4.0)

svn path=/trunk/mcs/; revision=160053
2010-07-08 13:10:06 +00:00
Marek Habersack aa965a9bf3 Another 4.0 test update
svn path=/trunk/mcs/; revision=160052
2010-07-08 13:09:56 +00:00
Marek Habersack cb9a9f28e2 4.0 test update
svn path=/trunk/mcs/; revision=160051
2010-07-08 13:09:46 +00:00
Marek Habersack 203ea304e7 2010-07-08 Marek Habersack <[email protected]>
* Control.cs: if generating a predictable ID and the current
	control is a naming container, ensure that an ID is generated if
	not specified by user.

svn path=/trunk/mcs/; revision=160050
2010-07-08 13:09:32 +00:00
Marek Safar cf9bc52607 Removed unused overload
svn path=/trunk/mcs/; revision=160045
2010-07-08 12:07:48 +00:00
Marek Habersack 402a4d9fac 2010-07-08 Marek Habersack <[email protected]>
* ScriptModule.cs: PostAcquireRequestState must check if the
	current context and the current handler aren't null before
	attempting to use them.

svn path=/trunk/mcs/; revision=160044
2010-07-08 10:59:23 +00:00
Jb Evain 5476e948bd 2010-07-08 Jb Evain <[email protected]>
* Complex.cs: implement the different ToString overrides.


svn path=/trunk/mcs/; revision=160043
2010-07-08 10:35:27 +00:00
Atsushi Eno e463b86247 2010-07-08 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : remove extra Action handling and old comment.


svn path=/trunk/mcs/; revision=160042
2010-07-08 10:32:23 +00:00
Atsushi Eno e9f74b8a85 2010-07-08 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : support ErrorHandlers.


svn path=/trunk/mcs/; revision=160041
2010-07-08 10:30:40 +00:00
Atsushi Eno 1451ae1956 2010-07-08 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : Set an a default DispatchOperation to throw 
	  EndpointNotFoundException instead of raising null Invoker error.
	  And add error handler that converts the exception to HTTP 404.


svn path=/trunk/mcs/; revision=160040
2010-07-08 10:29:45 +00:00
Jb Evain 7c2eea4585 2010-07-08 Jb Evain <[email protected]>
* Complex.cs: Fix Phase. Implement Acos, Asin, Atan, Exp,
	Log, Log10, Pow and Sqrt.


svn path=/trunk/mcs/; revision=160039
2010-07-08 10:22:16 +00:00
Marek Safar 1014444429 2010-07-08 Marek Safar <[email protected]>
* expression.cs (Invocation): Don't recreate simple-name expression.


svn path=/trunk/mcs/; revision=160038
2010-07-08 09:53:53 +00:00
Atsushi Eno a80f043367 2010-07-08 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=160037
2010-07-08 08:42:12 +00:00
Atsushi Eno 8d848a9a34 2010-07-08 Atsushi Enomoto <[email protected]>
* KeyNameIdentifierClause.cs : warning cleanup and implement.


svn path=/trunk/mcs/; revision=160035
2010-07-08 08:37:05 +00:00
Atsushi Eno 57efbb933e couple of warning cleanups.
svn path=/trunk/mcs/; revision=160034
2010-07-08 08:17:17 +00:00
Geoff Norton e60a44cb31 fix the build
svn path=/trunk/mono/; revision=160032
2010-07-08 02:45:41 +00:00
Geoff Norton afe1de625c 2010-07-07 Geoff Norton <[email protected]>
* sgen-gc.h:  Not every system has sys/signal.h.  Prefer the posix
        header.

svn path=/trunk/mono/; revision=160031
2010-07-08 02:45:38 +00:00
Rodrigo Kumpera f1242f032b 2010-07-08 Rodrigo Kumpera <[email protected]>
* verify.c (do_stobj): Improve error message.

svn path=/trunk/mono/; revision=160030
2010-07-08 00:42:11 +00:00
Mark Probst 677654e193 2010-07-08 Mark Probst <[email protected]>
* sgen-gc.c (OBJ_COMPLEX_ARR_FOREACH_PTR): Don't load the vtable
	from the object because it might have pinned/forwarding bits set.

svn path=/trunk/mono/; revision=160028
2010-07-07 22:32:54 +00:00
Marek Safar 9d3681ac74 New test.
svn path=/trunk/mcs/; revision=160015
2010-07-07 16:56:49 +00:00
Marek Safar c6b0cc1d23 2010-07-07 Marek Safar <[email protected]>
* ecore.cs: Don't report NRE warning for lifted null.


svn path=/trunk/mcs/; revision=160014
2010-07-07 16:55:07 +00:00
Zoltan Varga 89a8a20a7f 2010-07-07 Zoltan Varga <[email protected]>
* tramp-arm.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Add xdebug info.

svn path=/trunk/mono/; revision=160011
2010-07-07 15:51:33 +00:00
Zoltan Varga 1b71064317 2010-07-07 Zoltan Varga <[email protected]>
* method-to-ir.c (emit_imt_argument): Call add_outarg_reg even if MONO_ARCH_IMT_REG
	is not defined in the LLVM case to keep the imt arg alive.

svn path=/trunk/mono/; revision=160007
2010-07-07 13:30:51 +00:00
Carlos Alberto Cortez 508ef19c50 2010-07-07 Carlos Alberto Cortez <[email protected]>
4.0 updates.

	* ResourceManager.cs: Mark ResourceSets as obsolete.
	* ResourceReader.cs: New public Dispose method.


svn path=/trunk/mcs/; revision=160005
2010-07-07 13:20:13 +00:00
Jérémie Laval c9d1224910 2010-07-07 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/:
   * Parallel.cs: Fix Parallel.Invoke to use all data supplied in
   ParallelOptions
   * ParallelOptions.cs: Use CancellationToken.None for initialization

svn path=/trunk/mcs/; revision=160004
2010-07-07 13:14:27 +00:00
Marek Habersack 6d0b03285c 2010-07-07 Marek Habersack <[email protected]>
* TreeView.cs:
	When using registered CSS classes, the node style must use them in
	reverse order.

More 4.0 test updates (disabled some Menu tests until its rendering is updated)

svn path=/trunk/mcs/; revision=160003
2010-07-07 13:04:50 +00:00
Marek Safar 83f224b8d4 New tests.
svn path=/trunk/mcs/; revision=160000
2010-07-07 11:44:56 +00:00
Marek Safar 7983849b4a New tests.
svn path=/trunk/mcs/; revision=159999
2010-07-07 11:44:41 +00:00
Marek Safar 20f49d979c 2010-07-07 Marek Safar <[email protected]>
* typemanager.cs, convert.cs, expression.cs: Another reference
	equality implementation attack (Fixes #620025, #579058).
	

svn path=/trunk/mcs/; revision=159998
2010-07-07 11:43:53 +00:00
Marek Habersack fd8812fabf This code must be enabled for 2.0 as well
svn path=/trunk/mcs/; revision=159997
2010-07-07 11:29:34 +00:00
Marek Habersack a670985119 2010-07-07 Marek Habersack <[email protected]>
* TreeView.cs: 4.0 rendering changes.

Another batch of 4.0 test updates

svn path=/trunk/mcs/; revision=159996
2010-07-07 11:29:23 +00:00
Marek Habersack 0967be60db 2010-07-06 Marek Habersack <[email protected]>
* HyperLink.cs: the associated image is not rendered using the
	Image control.

4.0 updates for several tests (HTML rendering changes)

svn path=/trunk/mcs/; revision=159995
2010-07-07 11:29:09 +00:00
Carlos Alberto Cortez 61a51b524e 2010-07-07 Carlos Alberto Cortez <[email protected]>
* ResourceWriterTest.cs: In our new AddResource_Stream_Default test
	store the resource file under Test/resources/, instead of the base
	dir, so we avoid filling the dir with not needed files.


svn path=/trunk/mcs/; revision=159992
2010-07-07 11:12:34 +00:00
Veerapuram Varadhan e26ac7423d Ugh.. ugh.. final fix for handling MinValue for DateTime.
svn path=/trunk/mcs/; revision=159988
2010-07-07 07:07:30 +00:00
Veerapuram Varadhan 6c343f2ad4 More fix for handling SqlServer DateTime MinValue
svn path=/trunk/mcs/; revision=159986
2010-07-07 06:47:18 +00:00
Veerapuram Varadhan 22dafebb5c 2010-07-07 Veerapuram Varadhan <[email protected]>
** Fixes #609109 - DateTime part
	* TdsComm.cs (Append[DateTime]): More fix for handling SqlServer
	* MinValue for DateTime.

svn path=/trunk/mcs/; revision=159985
2010-07-07 06:30:55 +00:00
Zoltan Varga df08e13a32 Remove some obsolete FIXMEs.
svn path=/trunk/mono/; revision=159983
2010-07-06 21:51:38 +00:00
Zoltan Varga 049c5cb838 2010-07-06 Zoltan Varga <[email protected]>
* exceptions-<ARCH>.c mini-llvm.c: Clean up the naming of the llvm related trampoline
	functions, now its 'llvm_<FOO>_trampoline'.

svn path=/trunk/mono/; revision=159982
2010-07-06 21:47:06 +00:00
Gonzalo Paniagua Javier e497bb1b59 2010-07-06 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: allow the exit callback to be used more than once. Fixes
	bug #614909.



svn path=/trunk/mcs/; revision=159980
2010-07-06 18:39:07 +00:00
Zoltan Varga 6bc973d9c7 2010-07-06 Zoltan Varga <[email protected]>
* Makefile.am (sgen_sources): Add missing sgen files.

svn path=/trunk/mono/; revision=159976
2010-07-06 17:37:19 +00:00
Atsushi Eno 1632203a41 2010-07-06 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : it had been failing to retrieve correct
	  encoding due to insufficient buffer reading. Fixed bug #615499.


svn path=/trunk/mcs/; revision=159967
2010-07-06 15:53:46 +00:00
Atsushi Eno 8749aa56f1 2010-07-06 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentWriter2.cs : implement some writer methods.

	(I think it was slipped down from some bugfixes, but not sure.)


svn path=/trunk/mcs/; revision=159966
2010-07-06 15:52:35 +00:00
Veerapuram Varadhan d0a6cecb4f 2010-07-06 Veerapuram Varadhan <[email protected]>
** Fixes #609109
	* TdsComm.cs (Append[DateTime]): Handle datetime values sanely
	that are less than epoch.
	(Append[string]): Fix boundary checking for availability of
	enough buffer

svn path=/trunk/mcs/; revision=159962
2010-07-06 15:12:32 +00:00
Miguel de Icaza 5c6abcfe6a Update
svn path=/trunk/mono/; revision=159960
2010-07-06 14:41:25 +00:00
Atsushi Eno 1cf4ad6e68 2010-07-06 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : add OnDeserializing/OnDeserialized support.


svn path=/trunk/mcs/; revision=159959
2010-07-06 14:13:06 +00:00
Atsushi Eno 3e59168e9d 2010-07-06 Atsushi Enomoto <[email protected]>
* TypeMap.cs :
	  Do not try to add static members as serialization targets.
	  Support OnDeserializing and OnDeserialized. Fixed bug #615800.

	* DataContractJsonSerializerTest.cs : add test for bug #615800.


svn path=/trunk/mcs/; revision=159958
2010-07-06 13:41:08 +00:00
Atsushi Eno b79dda6c6d 2010-07-06 Atsushi Enomoto <[email protected]>
* JsonSerializationWriter.cs : it cannot serialize DateTime in
	  double, which causes crash in deserializer.


svn path=/trunk/mcs/; revision=159945
2010-07-06 09:21:34 +00:00
Atsushi Eno 6ce2b49f94 2010-07-06 Atsushi Enomoto <[email protected]>
* TypeMap.cs : when an object is null, return null, not just an 
	  uninitialized object.

	* DataContractJsonSerializerTest.cs : add test for bug #615801.


svn path=/trunk/mcs/; revision=159944
2010-07-06 09:08:57 +00:00
Atsushi Eno 4efe543e9f 2010-07-06 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializer_2_1.cs : add extra methods for
	  Sys.SM.Web.Extensions build.

	* WebMessageFormatter.cs : add NET_2_1 profile build.

	* AssemblyInfo.cs : InternalVisibleTo System.ServiceModel.Web.Extensions.


svn path=/trunk/mcs/; revision=159943
2010-07-06 08:59:28 +00:00
Atsushi Eno 13e5341363 2010-07-06 Atsushi Enomoto <[email protected]>
* JsonReader.cs : do not keep Attribute state once Read() is called.


svn path=/trunk/mcs/; revision=159942
2010-07-06 08:53:58 +00:00
Atsushi Eno cf52630eec 2010-07-06 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs : null via uri parameter is not allowed.

	* ClientRuntimeChannel.cs : give non-null Via uri.

	* HttpTransportBindingElementTest.cs : add test for
	  ChannelFactoryBase`1.CreateChannel() with null via uri.


svn path=/trunk/mcs/; revision=159934
2010-07-06 04:24:32 +00:00
Carlos Alberto Cortez 69d631c7ae * ResourceWriter.cs: Implement 4.0 TypeNameConverter.
2010-07-05  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=159933
2010-07-06 03:56:45 +00:00
Zoltan Varga de04176ec8 2010-07-06 Zoltan Varga <[email protected]>
* bug-81691.cs: Fix this test by catching FileNotFoundException as well.

svn path=/trunk/mono/; revision=159932
2010-07-06 02:42:14 +00:00
Carlos Alberto Cortez 7e8bee4848 2010-07-05 Carlos Alberto Cortez <[email protected]>
* ResourceWriterTest.cs: New tests for our new 4.0 AddResource
	overloads.


svn path=/trunk/mcs/; revision=159931
2010-07-06 01:12:10 +00:00
Carlos Alberto Cortez f6e6eb0387 2010-07-05 Carlos Alberto Cortez <[email protected]>
* ResourceWriter.cs: Implement 4.0 AddResource overloads taking a
	Stream, as well as implement the same support in our AddResource that
	takes an object too.


svn path=/trunk/mcs/; revision=159930
2010-07-06 01:10:45 +00:00
Zoltan Varga 45d80a27fa 2010-07-06 Zoltan Varga <[email protected]>
* method-to-ir.c (emit_imt_argument): Fix llvm support.

	* mini-llvm.c: Use only one mono specific LLVM calling convention since imt/rgctx
	cannot be passed in the same call.

svn path=/trunk/mono/; revision=159929
2010-07-05 23:28:56 +00:00
Zoltan Varga dd1d2fb3d6 2010-07-06 Zoltan Varga <[email protected]>
* mini-amd64.h mini-amd64.c tramp-amd64.c aot-compiler.c: Change the IMT
	register to be the same as the RGCTX register, the two can't be used together on
	the same call.

svn path=/trunk/mono/; revision=159928
2010-07-05 23:02:55 +00:00
Miguel de Icaza c15c95faa2 2010-07-05 Miguel de Icaza <[email protected]>
* driver.c (mono_main), main.c: Add support for MONO_VM_CONFIG
	that allows the user to force the VM to use llvm or sgen.

svn path=/trunk/mono/; revision=159927
2010-07-05 22:58:13 +00:00
Zoltan Varga d9e45def61 2010-07-05 Zoltan Varga <[email protected]>
* exceptions-ppc.c (mono_arch_handle_exception): Resume from the signal handler
	before processing the exception on PPC too.

svn path=/trunk/mono/; revision=159923
2010-07-05 20:21:10 +00:00
Zoltan Varga f88d67b2c3 2010-07-05 Zoltan Varga <[email protected]>
* mini-ppc.h (MONO_CONTEXT_SET_SP): Define this to fix the PPC build.

	* mini-ppc.c tramp-ppc.c aot-compiler.c: Change the managed calling convention so
	'this' is always passed as the first argument, before the vtype ret arg. This
	simplifies get_this_arg_reg () and LLVM integration.

svn path=/trunk/mono/; revision=159922
2010-07-05 19:51:07 +00:00
Gonzalo Paniagua Javier 1ae7d82d80 2010-07-05 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: avoid endless loop when a bad length is
	received for AF_PACKET. Fixes bug #601783.


svn path=/trunk/mcs/; revision=159921
2010-07-05 18:30:41 +00:00
Gonzalo Paniagua Javier 9acb9d16d7 2010-07-05 Gonzalo Paniagua Javier <[email protected]>
* TimeSpan.cs: two consecutive colons produce an error now.
	Fixes bug #598467.


svn path=/trunk/mcs/; revision=159919
2010-07-05 18:22:25 +00:00
Atsushi Eno cb97b9bb02 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs, HttpChannelListener.cs, HttpReplyChannel.cs:
	  rename unnecessary "Standalone" (removed).

	* HttpTransportbindingElement.cs : remove "Standalone".


svn path=/trunk/mcs/; revision=159916
2010-07-05 17:39:40 +00:00
Atsushi Eno e424c5b0de move old code to temporary dir (keep them for a while for reference.)
svn path=/trunk/mcs/; revision=159915
2010-07-05 17:33:04 +00:00
Marek Safar 51b3cc059b New test.
svn path=/trunk/mcs/; revision=159914
2010-07-05 17:31:51 +00:00
Atsushi Eno ab39e8acac 2010-07-05 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs :
	  moved IChannelDispatcherBoundListener from HttpChannelListener.cs.

	* SvcHttpHandler.cs : removed old code and #if blocks.

	* HttpStandaloneReplyChannel.cs
	  HttpStandaloneRequestContext.cs
	  HttpStandaloneChannelListener.cs
	  HttpReplyChannel.cs
	  HttpRequestContext.cs
	  HttpChannelListener.cs : renamed former 3 files to latter 3 files.

	* System.ServiceModel.dll.sources :
	  renamed new HTTP channel listener implementation sources, and
	  removed old sources.



svn path=/trunk/mcs/; revision=159913
2010-07-05 17:29:24 +00:00
Marek Safar e0b4d66ef7 New test.
svn path=/trunk/mcs/; revision=159912
2010-07-05 17:29:06 +00:00
Marek Safar ac10cafefd 2010-07-05 Marek Safar <[email protected]>
* context.cs, expression.cs, ecore.cs: BaseThis is fully based on
	this expression (Fixes #619904).


svn path=/trunk/mcs/; revision=159911
2010-07-05 17:28:32 +00:00
Miguel de Icaza 41e9792011 Document MONO_GC_DEBUG
svn path=/trunk/mono/; revision=159910
2010-07-05 17:08:18 +00:00
Jb Evain 0e56955676 2010-07-05 Jb Evain <[email protected]>
* TypeTest.cs: prefixed TypedReference with global:: to
	remove confusion with the test suite namespace.


svn path=/trunk/mcs/; revision=159909
2010-07-05 16:58:13 +00:00
Marek Safar 86a8848f59 More tests.
svn path=/trunk/mcs/; revision=159908
2010-07-05 14:49:00 +00:00
Atsushi Eno 10e67ce38f 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpChannelListenerEntry.cs,
	  HttpContextInfo.cs, HttpListenerManager.cs,
	  HttpStandaloneRequestContext.cs, HttpListenerManagerTable.cs:
	  Fixed wsdl support in the new codebase, so enabled it again, and
	  made significant changes for ASP.NET integration. Now ASP.NET
	  implementation switched to the new one.

	* SvcHttpHandler.cs : add required code for new ASP.NET HTTP stack.
	  Support for new and old stack (both) are temporarily enabled.
	* HttpTransportBindingElement.cs : switch to new ASP.NET stack.


svn path=/trunk/mcs/; revision=159907
2010-07-05 14:48:32 +00:00
Marek Safar 559e30db3f 2010-07-05 Marek Safar <[email protected]>
* membercache.cs, class.cs: Don't use base member to check for
	property or indexer base implementation.


svn path=/trunk/mcs/; revision=159906
2010-07-05 14:47:35 +00:00
Martin Baulig 8db78c55e9 Add mono_debugger_get_thread_abort_signal() helper function.
2010-06-07  Martin Baulig  <[email protected]>

	* mono-debug-debugger.c (mono_debugger_get_thread_abort_signal):
	New helper function since mono_thread_get_abort_signal() is now
	internal.

svn path=/trunk/mono/; revision=159904
2010-07-05 14:35:02 +00:00
Martin Baulig b21f9454d1 Kill glib dependencies from debug-mono.h and debug-mono-symfile.h.
2010-06-07  Martin Baulig  <[email protected]>

	* mono-debug.h, debug-mono-symfile.h: Kill glib dependencies.

svn path=/trunk/mono/; revision=159903
2010-07-05 14:34:53 +00:00
Marek Safar ff74adfb79 New tests.
svn path=/trunk/mcs/; revision=159902
2010-07-05 14:24:16 +00:00
Martin Baulig 03d702d0bc Apply r159782 from the mono-2-6-branch.
2010-07-05  Martin Baulig  <[email protected]>

	* exceptions-x86.c (mono_arch_handle_exception): Port this to
	Windows; apply my patch from r159782 in the mono-2-6 branch.

svn path=/trunk/mono/; revision=159901
2010-07-05 14:06:09 +00:00
Marek Safar a7fef32033 Add missing Clone
svn path=/trunk/mcs/; revision=159898
2010-07-05 12:44:56 +00:00
Rolf Bjarne Kvinge ccbb02392e 2010-07-05 Rolf Bjarne Kvinge <[email protected]>
* AssemblyInfo.cs: Re-remove [StringFreezing], [DefaultDependency] and
	[InternalsVisibleTo] from NET_2_1 builds.

svn path=/trunk/mcs/; revision=159895
2010-07-05 12:01:21 +00:00
Rolf Bjarne Kvinge 4b706ac6cb In .:
2010-07-05  Rolf Bjarne Kvinge  <[email protected]>

	* configure.in: Restore the AM_CONDITIONAL debugger supported, we need it to
	include/exclude assembler files from the build in the makefile.

In mono/mini:
2010-07-05  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile.am: Don't build the debug assembler files if we're building without
	debugger support.

svn path=/trunk/mono/; revision=159885
2010-07-05 10:50:44 +00:00
Dick Porter c432505b9a 2010-07-05 Dick Porter <[email protected]>
* MenuAPI.cs: Only handle mnemonic key shortcuts when the context
	menu is visible.  Fixes bug 616739.


svn path=/trunk/mcs/; revision=159883
2010-07-05 10:38:25 +00:00
Marek Safar 77ee210901 More tests.
svn path=/trunk/mcs/; revision=159882
2010-07-05 09:43:44 +00:00
Atsushi Eno a10ecfd718 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs
	  HttpContextInfo.cs
	  HttpListenerManager.cs
	  HttpStandaloneRequestContext.cs
	  HttpListenerManagerTable.cs : revert previous changes, regression
	  on wsdl support.


svn path=/trunk/mcs/; revision=159881
2010-07-05 09:31:51 +00:00
Zoltan Varga 284a6ad5ff 2010-07-05 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_unbox_trampoline): Fix this after the callconv changes.

svn path=/trunk/mono/; revision=159868
2010-07-04 22:31:28 +00:00
Gonzalo Paniagua Javier 9b948ac91d 2010-07-04 Gonzalo Paniagua Javier <[email protected]>
* Process.cs: ignore processes that finish while we are looking for
	processes by name. Fixes bug #596779.


svn path=/trunk/mcs/; revision=159866
2010-07-04 21:31:42 +00:00
Zoltan Varga 4311701c3a 2010-07-04 Zoltan Varga <[email protected]>
* tramp-arm.c (mono_arch_create_generic_trampoline): Fix the max trampoline
	length.

svn path=/trunk/mono/; revision=159865
2010-07-04 21:04:42 +00:00
Zoltan Varga edc62eb6c8 2010-07-04 Zoltan Varga <[email protected]>
* mini-arm.h (MonoContext): Get rid of the 'ebp' field, use
	regs [ARMREG_FP] instead.

svn path=/trunk/mono/; revision=159864
2010-07-04 20:38:50 +00:00
Zoltan Varga bcd4824637 2010-07-04 Zoltan Varga <[email protected]>
* unwind.c (decode_lsda): Use read32 for reading 32 bit quantities.

	* tramp-arm.c (mono_arch_create_generic_trampoline): Save the original sp to
	lmf->iregs [ARMREG_IP] to be consistent with mono_arch_emit_prolog ().

	* mini-arm.h (MonoLMF): Remove unused fregs field, add comments for other fields.

	* exceptions-arm.c: Clean up the handling of LMFs. Add LLVM exception trampolines.

svn path=/trunk/mono/; revision=159863
2010-07-04 20:07:56 +00:00
Gonzalo Paniagua Javier 5a5e8943f7 2010-07-04 Gonzalo Paniagua Javier <[email protected]>
* metadata/file-io.c: don't prepend anything to the names returned
	from FindFirst/FindNext.
	* io-layer/io.c: don't strip out directory paths in the pattern.

	Second half of the fix for 580090.


svn path=/trunk/mono/; revision=159861
2010-07-04 16:47:49 +00:00
Gonzalo Paniagua Javier 45db947ccc 2010-05-27 William Holmes <[email protected]>
* Directory.cs (ValidateDirectoryListing): Removing an unnecessary
	Path.Combine call. Part of the fix for bug #580090.

	Code is contributed under MIT/X11 license.


svn path=/trunk/mcs/; revision=159860
2010-07-04 16:41:33 +00:00
Gonzalo Paniagua Javier 14ae10e4e3 2010-05-27 William Holmes <[email protected]>
* DirectoryTest.cs: Adding test for bug 580090.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mcs/; revision=159859
2010-07-04 16:39:26 +00:00
Zoltan Varga eb5c29ca34 Fix the build.
svn path=/trunk/mono/; revision=159858
2010-07-04 00:50:48 +00:00
Zoltan Varga 82a755f67e 2010-07-04 Zoltan Varga <[email protected]>
* mini-arm.c: Always use V5 for passing IMT/RGCTX when running under LLVM.

	* method-to-ir.c (emit_imt_argument): Fix LLVM support for architectures
	without IMT_REG defined (ARM).

	* exceptions-arm.c: Add LLVM throw exception trampolines, add xdebug info for
	the trampolines.

svn path=/trunk/mono/; revision=159857
2010-07-04 00:48:13 +00:00
Zoltan Varga 887afbd7cc 2010-07-03 Zoltan Varga <[email protected]>
* mini-llvm.c (process_bb): Disable OP_MEMORY_BARRIER on arm.

svn path=/trunk/mono/; revision=159856
2010-07-03 17:24:37 +00:00
Marek Safar a27debbd1d eol-style
svn path=/trunk/mcs/; revision=159854
2010-07-03 16:01:57 +00:00
Marek Safar 906905c598 New test.
svn path=/trunk/mcs/; revision=159852
2010-07-03 15:42:27 +00:00
Veerapuram Varadhan 1a8f87e3dd 2010-07-03 Veerapuram Varadhan <[email protected]>
** Fixes #609935
	* TdsMetaParameter.cs (Prepare): Use GetActualSize() instead of
	Size property to calculate the length of a nvarchar param.

svn path=/trunk/mcs/; revision=159851
2010-07-03 15:37:35 +00:00
Marek Safar 20f394737a 2010-07-03 Marek Safar <[email protected]>
* membercache.cs: Copy Membercache member state flags for 2 stage
	inflate (Fixes #619555).
	
	* ecore.cs: Use resolved accessors everywhere.
	

svn path=/trunk/mcs/; revision=159850
2010-07-03 15:33:19 +00:00
Geoff Norton fb6e130622 Fix the build
svn path=/trunk/mono/; revision=159848
2010-07-03 15:06:41 +00:00
Michael Hutchinson 7d263c41fd Export mono_object_to_string and mono_string_to_utf8_checked.
svn path=/trunk/mono/; revision=159844
2010-07-02 22:02:32 +00:00
Michael Hutchinson aa958b755b 2010-07-02 Michael Hutchinson <[email protected]>
* object-internals.h, object.h: Make mono_string_to_utf_8_checked 
	public, as mono_string_to_utf_8 is deprecated.

	* object.(c|h): Added mono_object_to_string, a public helper function 
	that calls ToString on a MonoObject and returns a MonoString.

	* object.c (mono_print_unhandled_exception): Use mono_object_to_string.

svn path=/trunk/mono/; revision=159843
2010-07-02 21:41:02 +00:00
Michael Hutchinson de12b156aa 2010-07-02 Michael Hutchinson <[email protected]>
* Makefile.am: Add mono-error.h to public headers.
	* mono-error.h: Use public version of API.

svn path=/trunk/mono/; revision=159842
2010-07-02 21:39:06 +00:00
Marek Habersack d8838a6414 This commit introduces a few 4.0 rendering changes which break some tests. The broken tests
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.

    2010-07-02  Marek Habersack  <[email protected]>

    	* TemplateControlParser.cs: added support for ClientIDMode
    	property

    	* Control.cs: implemented 4.0 features - ClientIDMode and
    	RenderingCompatibility.

    	* ClientIDMode.cs, IDataKeysControl.cs: added

    2010-07-02  Marek Habersack  <[email protected]>

    	* Menu.cs: 4.0 API updates.

    	* GridView.cs: implemented 4.0 properties -
    	SortedAscendingCellStyle, SortedAscendingHeaderStyle,
    	SortedDescendingCellStyle, SortedDescendingHeaderStyle,
    	ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
    	along with associated rendering changes.

    	* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
    	renamed ShowPage to SetPageIndex and made it public.
    	Added 4.0 interfaces to inheritance list and implemented them.

    	* DataKeyArray.cs: added internal constructor which accepts IList
    	instead of ArrayList. Changed the 'keys' field type to IList.

    	* ContainedTable.cs: the 'id' attribute must be rendered last.

    	* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
    	TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.

    	* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
    	Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
    	Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
    	added new 4.0 property, SupportsDisabledAttribute.

    2010-07-02  Marek Habersack  <[email protected]>

    	* VersionConverter.cs: added support for checking whether the
    	passed version is equal or more than a specified minimal version.

    	* PagesSection.cs: added two 4.0 properties - ClientIDMode and
    	ControlRenderingCompatibilityVersion

    2010-07-02  Marek Habersack  <[email protected]>

    	* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
    	property

    	* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
    	must call the base implementation.

svn path=/trunk/mcs/; revision=159826
2010-07-02 19:12:31 +00:00
Michael Hutchinson a06739b80c Fix Windows build by adding mono-publib.c to MSVC project.
svn path=/trunk/mono/; revision=159822
2010-07-02 16:58:10 +00:00
Atsushi Eno f8bdb655cb 2010-07-02 Atsushi Enomoto <[email protected]>
* MessageProcessingContext.cs : update possibly-updated ReplyMessage
	  to send, by message inspectors. Fix by Clovis Ribeiro, should fix
	  bug #619534.


svn path=/trunk/mcs/; revision=159820
2010-07-02 16:28:03 +00:00
Atsushi Eno cd0e019d14 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpStandaloneRequestContext.cs:
	  add more code that the asp.net stuff will become like.

	* SvcHttpHandlerFactory.cs : remove unused code.
	* SvcHttpHandler.cs : ditto. Add some code for what new asp.net
	  support will look like.


svn path=/trunk/mcs/; revision=159818
2010-07-02 16:10:21 +00:00
Atsushi Eno b0d401fcc4 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpListenerManager.cs,
	  HttpStandaloneRequestContext.cs :
	  refactoring, to add ASP.NET implementation. (not in use yet)


svn path=/trunk/mcs/; revision=159817
2010-07-02 15:47:08 +00:00
Zoltan Varga 008b7d4f5a 2010-07-02 Zoltan Varga <[email protected]>
* mini.h: Applied patch from Elijah Taylor ([email protected]). Fix some
	definitions to match their declarations and vice-versa.

svn path=/trunk/mono/; revision=159816
2010-07-02 14:40:34 +00:00
Zoltan Varga 2bf78ef9c5 2010-07-02 Zoltan Varga <[email protected]>
* src/glib.h: Define gboolean as int32_t to match mono_bool.

svn path=/trunk/mono/; revision=159814
2010-07-02 14:38:47 +00:00
Atsushi Eno e7fa8d1320 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpContextInfo.cs, HttpListenerManager.cs,
	  HttpListenerManagerTable.cs : add implementation for ASP.NET, not
	  in use yet.


svn path=/trunk/mcs/; revision=159811
2010-07-02 11:29:23 +00:00
Marek Safar 89505e0582 2010-07-02 Marek Safar <[email protected]>
A fix for bug #360820
	* membercache.cs, property.cs: Check accessors of base property and
	not the closest one.


svn path=/trunk/mcs/; revision=159810
2010-07-02 11:18:25 +00:00
Carlos Alberto Cortez ff5578c959 2010-07-02 Carlos Alberto Cortez <[email protected]>
* ThemeWin32Classic.cs: The images drawn in the column header must be
	vertically centered. Fixes #616432.
	Patch by Thomas Goldstein ([email protected]).


svn path=/trunk/mcs/; revision=159805
2010-07-02 10:55:16 +00:00
Marek Safar 638f8c4d0e 2010-07-02 Marek Safar <[email protected]>
* modifiers.cs, membercache.cs, import.cs, class.cs: Moved imported
	override method checks into import.

	* expression.cs: Removed redundant check.


svn path=/trunk/mcs/; revision=159804
2010-07-02 09:39:36 +00:00
Neale Ferguson 39a9450fc6 Add definitions to sgen-archdep so that sgen will build cleanly
Eliminate a couple of warnings

svn path=/trunk/mono/; revision=159802
2010-07-02 01:48:38 +00:00
Atsushi Eno 2cb30316fb 2010-07-02 Atsushi Enomoto <[email protected]>
* Message.cs, MessageImpl.cs, MessageBufferImpl.cs : remove BodyId.
	  XML attributes on s:Body are handled appropriately, not limited to
	  wsu:Id. Added several required overrides to Message and
	  MessageBuffer implementation classes.
	* SecureMessageGenerator.cs : so, don't use BodyId. Treat it as a
	  specific case but still fallback.


svn path=/trunk/mcs/; revision=159800
2010-07-01 22:55:20 +00:00
Atsushi Eno 8acbbc998a 2010-07-02 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentBuilder2.cs : update in sync with sys.xml.


svn path=/trunk/mcs/; revision=159798
2010-07-01 22:51:33 +00:00
Marek Safar ce1a0eb9f4 New test.
svn path=/trunk/mcs/; revision=159776
2010-07-01 14:44:31 +00:00
Zoltan Varga d93d002e8b 2010-07-01 Zoltan Varga <[email protected]>
* filewatcher.h filewatcher.h decimal.c threads-types.h: Applied patch
	from Elijah Taylor ([email protected]). Fix some definitions to
	match their declarations and vice-versa.

svn path=/trunk/mono/; revision=159774
2010-07-01 14:34:11 +00:00
Paolo Molaro 8543ba4ee5 Wed Jun 30 12:08:36 CEST 2010 Paolo Molaro <[email protected]>
* class-internals.h, domain-internals.h: mark functions that are
	needed by the llvm module.


svn path=/trunk/mono/; revision=159768
2010-07-01 12:33:40 +00:00
Marek Safar 4a962f78ee Removed explicit casts
svn path=/trunk/mcs/; revision=159760
2010-07-01 08:04:05 +00:00
Marek Habersack 7ced145474 2010-07-01 Marek Habersack <[email protected]>
* WebRequest.cs: DefaultCachePolicy and CachePolicy return a
	NoCacheNoStore policy in all cases now. Workaround for bug #583934

svn path=/trunk/mcs/; revision=159758
2010-07-01 07:58:51 +00:00
Zoltan Varga c4e817e54c 2010-07-01 Zoltan Varga <[email protected]>
* Makefile.am (common_sources): Add mini-llvm.h.

svn path=/trunk/mono/; revision=159754
2010-07-01 00:16:35 +00:00
Zoltan Varga 5ca54a1c7f 2010-07-01 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_decode_fde): Fix the decoding of the lsda offset.

svn path=/trunk/mono/; revision=159752
2010-06-30 23:46:51 +00:00
Rodrigo Kumpera 1d73b15a3b 2010-06-30 Rodrigo Kumpera <[email protected]>
* assembly.c (framework_assemblies): Add 3.5 assemblies.

	* domain-internals.h (MonoRuntimeInfo): Increase version_sets
	by one to have room to remap 3.5 assemblies.

	* domain.c (supported_runtimes): Add 3.5 remapping information.

svn path=/trunk/mono/; revision=159744
2010-06-30 18:24:29 +00:00
Rodrigo Kumpera a78fd38885 2010-06-30 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_create_token): Handle a
	FieldBuilder from a different assembly.

	Fixes #611836.

svn path=/trunk/mono/; revision=159743
2010-06-30 17:36:59 +00:00
Rodrigo Kumpera 584f3ea026 2010-06-30 Rodrigo Kumpera <[email protected]>
* verify.c (do_store_static_field): Improve error
	message.

svn path=/trunk/mono/; revision=159742
2010-06-30 17:36:51 +00:00
Jonathan Pryor eebeb0aeab Doc stub flush for the net_4_0 profile.
svn path=/trunk/mcs/; revision=159740
2010-06-30 16:05:31 +00:00
Zoltan Varga 7b6769ea2d 2010-06-30 Zoltan Varga <[email protected]>
* mini.c (mini_cleanup): Avoid calling mono_runtime_shutdown () if cross
	compiling.

svn path=/trunk/mono/; revision=159735
2010-06-30 15:19:46 +00:00
Marek Safar a4d24d94ba Fixed.
svn path=/trunk/mcs/; revision=159733
2010-06-30 14:51:01 +00:00
Marek Safar 6bae42351a 2010-06-30 Marek Safar <[email protected]>
* nullable.cs, expression.cs, statement.cs, method.cs, ecore.cs,
	delegate.cs, cs-parser.jay, visit.cs: Use MemberAccess to resolve
	base access expression, it has all bits done correctly.


svn path=/trunk/mcs/; revision=159732
2010-06-30 14:50:48 +00:00
Marek Safar f90ea276a7 2010-06-30 Marek Safar <[email protected]>
* support.cs: Removed unused code.
	
	* ecore.cs: Don't use memberlookup for operators.


svn path=/trunk/mcs/; revision=159723
2010-06-30 10:32:06 +00:00
Paolo Molaro a4b67315f8 Wed Jun 30 12:10:57 CEST 2010 Paolo Molaro <[email protected]>
* Makefile.am, mini-llvm.h, mini-unwind.h, mini.c, mini.h, xdebug.c:
	implemt the option of loading the llvm backend from a module so
	that we can have a single binary and the bloat from llvm is
	only experienced when it is actually loaded.


svn path=/trunk/mono/; revision=159722
2010-06-30 10:13:49 +00:00
Paolo Molaro 9a4804446d Wed Jun 30 12:06:33 CEST 2010 Paolo Molaro <[email protected]>
* mono-compiler.h: define MONO_LLVM_INTERNAL for internal functions
	that may be needed by the llvm backend module.


svn path=/trunk/mono/; revision=159721
2010-06-30 10:07:29 +00:00
Marek Safar d480bc52c5 typing too much today
svn path=/trunk/mcs/; revision=159720
2010-06-30 10:06:04 +00:00
Paolo Molaro 20a92e5974 Wed Jun 30 12:05:21 CEST 2010 Paolo Molaro <[email protected]>
* configure.in: added option to load llvm from a module.


svn path=/trunk/mono/; revision=159719
2010-06-30 10:05:52 +00:00
Paolo Molaro ea4c3b8055 Wed Jun 30 12:02:39 CEST 2010 Paolo Molaro <[email protected]>
* mini-llvm.c: remove direct access to mono_defaults.


svn path=/trunk/mono/; revision=159718
2010-06-30 10:03:29 +00:00
Marek Safar ecfd461c21 2010-06-30 Marek Safar <[email protected]>
* typemanager.cs, membercache.cs, convert.cs, expression.cs,
	ecore.cs: Replace remaining MethodLookup with correct user operator
	lookup (to do correct deep lookup). Clean up most of outstanding
	quirks in binary operator overload resolution.


svn path=/trunk/mcs/; revision=159717
2010-06-30 09:35:47 +00:00
Marek Habersack 2da2a2318d Fix the build
svn path=/trunk/mcs/; revision=159715
2010-06-30 07:14:36 +00:00
Atsushi Eno 8a15a405a9 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlDefaultWriter.cs : add state management support. 
	* XmlWriter.cs : use above feature for "null Settings in source
	  writer" case. This brings some minor .NET compatibility and
	  should fix bug #607697.

	* XmlWriterTests.cs : remove NotWorking everywhere.


svn path=/trunk/mcs/; revision=159714
2010-06-30 07:05:11 +00:00
Atsushi Eno 08afe91b30 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
	  and corcompare).
	* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
	  wrapping writer instance.
	  If there was no Settings specified, return null.

	* System.Xml.dll.sources,
	  moonlight_raw_System.Xml.dll.sources,
	  monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.

	* XmlWriterTests.cs : add a bit more assertions.
	  Remove NotWorking from some tests.


svn path=/trunk/mcs/; revision=159712
2010-06-30 06:40:47 +00:00
Atsushi Eno 9d67c2d74c 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : more notes and assertions.


svn path=/trunk/mcs/; revision=159707
2010-06-30 01:19:44 +00:00
Atsushi Eno f0c4bb76e4 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : more notes and tests.


svn path=/trunk/mcs/; revision=159706
2010-06-30 00:19:44 +00:00
Atsushi Eno f0556afd00 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : refine failure conditions.


svn path=/trunk/mcs/; revision=159705
2010-06-29 23:20:44 +00:00
Atsushi Eno 43a5b77995 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : add test matrix for understanding things.
	  Make those test names consistent. Mark as NotWorking.


svn path=/trunk/mcs/; revision=159704
2010-06-29 22:51:10 +00:00
Atsushi Eno f6680503dd 2010-06-30 Atsushi Enomoto <[email protected]>
* Makefile: move back Mvc2.


svn path=/trunk/mcs/; revision=159703
2010-06-29 22:27:28 +00:00
Atsushi Eno 3bcfb7aea5 2010-06-30 Atsushi Enomoto <[email protected]>
* Makefile: add S.R.DurableInstancing dir to 4.0.


svn path=/trunk/mcs/; revision=159702
2010-06-29 22:24:11 +00:00
Atsushi Eno aef2ed33aa I had some hack in this library too.
svn path=/trunk/mcs/; revision=159701
2010-06-29 22:22:37 +00:00
Rodrigo Kumpera 0e6303dd46 2010-06-29 Rodrigo Kumpera <[email protected]>
* assembly.c: Revert r159692 since it breaks loading 3.5
	assemblies under 2.0.

svn path=/trunk/mono/; revision=159699
2010-06-29 22:03:52 +00:00
Rodrigo Kumpera 6342641c78 2010-06-29 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add tests for #612780.

svn path=/trunk/mcs/; revision=159695
2010-06-29 20:58:15 +00:00
Rodrigo Kumpera 07264dff70 2010-06-29 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_make_array_type): Raise a TLE if a
	TypedByRef is passed.

	* icall.c (ves_icall_Type_make_byref_type): Ditto.

	* icall.c (ves_icall_Type_MakePointerType): Ditto.

	Fixes #612780.

svn path=/trunk/mono/; revision=159694
2010-06-29 20:56:20 +00:00
Zoltan Varga 8f37a7548b 2010-06-29 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_get_vcall_slot): This is no longer used on ARM, so make it
	a no-op.

svn path=/trunk/mono/; revision=159693
2010-06-29 20:23:45 +00:00
Rodrigo Kumpera 2640869903 2010-06-29 Rodrigo Kumpera <[email protected]>
* assembly.c: Add a few more assemblies to the list of framework
	assemblies.

	Fixes #617714.

svn path=/trunk/mono/; revision=159692
2010-06-29 20:18:52 +00:00
Geoff Norton 5cc7032af7 2010-06-29 Geoff Norton <[email protected]>
* atomics.h: Implement armv6+ variants of our atomics.


svn path=/trunk/mono/; revision=159691
2010-06-29 19:54:35 +00:00
Geoff Norton 4f3439fdbb 2010-06-29 Geoff Norton <[email protected]>
* include/private/gc_locks.h: Implement armv6+ variants of
	GC_test_and_set

svn path=/trunk/mono/; revision=159690
2010-06-29 19:53:51 +00:00
Rodrigo Kumpera c92f6fd23e 2010-06-09 Rodrigo Kumpera <[email protected]>
* Actions.cs: Add missing v4 type forwarding.

svn path=/trunk/mcs/; revision=159689
2010-06-29 19:50:49 +00:00
Zoltan Varga 78ab602d04 2010-06-29 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_vcall_trampoline): Fix a warning.

	* mini-x86.c (mono_arch_get_vcall_slot): Remove most cases as the only caller
	is now mono_arch_nullify_class_init_trampoline ().
	(mono_arch_output_basic_block): Remove the special casing from the CALL_MEMBASE
	opcodes, they are no longer needed.

svn path=/trunk/mono/; revision=159688
2010-06-29 19:44:51 +00:00
Zoltan Varga 1d7ff7b74a 2010-06-29 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_vcall_slot): Remove most cases as the only caller is
	now mono_arch_nullify_class_init_trampoline ().
	(mono_arch_output_basic_block): Remove the special casing from the CALL_MEMBASE
	opcodes, they are no longer needed.

svn path=/trunk/mono/; revision=159687
2010-06-29 19:33:21 +00:00
Zoltan Varga ded486fab7 2010-06-29 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_vcall_trampoline): Use the LLVM method of obtaining the
	vtable on platforms which support it.

svn path=/trunk/mono/; revision=159686
2010-06-29 19:33:14 +00:00
Zoltan Varga 4fb27f76a8 2010-06-29 Zoltan Varga <[email protected]>
* driver.c: Print the full LLVM version we are compiled against in --version.

svn path=/trunk/mono/; revision=159685
2010-06-29 18:45:41 +00:00
Zoltan Varga 7c4a8f6366 2010-06-29 Zoltan Varga <[email protected]>
* configure.in: Add a define for the full LLVM version to config.h.

svn path=/trunk/mono/; revision=159684
2010-06-29 18:45:34 +00:00
Marek Safar 04070dfd06 Fixed typo
svn path=/trunk/mcs/; revision=159680
2010-06-29 17:22:49 +00:00
Zoltan Varga 7e84545033 2010-06-29 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_exception_debug_info): Separate the LLVM and non-LLVM code
	a bit better. Decode nesting information to fix eh support for llvm+aot.

	* aot-compiler.c (emit_exception_debug_info): Encode nesting information for LLVM
	methods.

svn path=/trunk/mono/; revision=159679
2010-06-29 17:16:12 +00:00
Zoltan Varga a32da5ed83 2010-06-29 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_cleanup): Dispose the aot module too.

svn path=/trunk/mono/; revision=159674
2010-06-29 16:01:39 +00:00
Sebastien Pouliot 7fdcbd4b3c 2010-06-29 Sebastien Pouliot <[email protected]>
* ComplexBindingPropertiesAttribute.cs:
	* DefaultBindingPropertyAttribute.cs:
	* DefaultEventAttribute.cs:
	* DefaultPropertyAttribute.cs:
		Fix GetHashCode so that values are equals if Equals 
		return true
	* DesignTimeVisibleAttribute.cs: Fix default value for Visible.


svn path=/trunk/mcs/; revision=159667
2010-06-29 15:05:25 +00:00
Sebastien Pouliot 9982c34eef Fix Attribute.GetHashCode to match MS behavior (needed for Moonlight)
svn path=/trunk/mcs/; revision=159666
2010-06-29 15:02:14 +00:00
Zoltan Varga b259575803 2010-06-29 Zoltan Varga <[email protected]>
* Makefile.am: Disable bug-459094.exe it creates a very deep directory hierarchy
	without cleaning it up.

svn path=/trunk/mono/; revision=159664
2010-06-29 14:51:59 +00:00
Sebastien Pouliot 70064ced0b In System.Net:
2010-06-29  Sebastien Pouliot  <[email protected]>

	* ServicePointManager.cs: Remove NET_2_0 defines around 
	RemoteCertificateValidationCallback

In System.Net.Security:
2010-06-29  Sebastien Pouliot  <[email protected]>

	* RemoteCertificateValidationCallback.cs: Remove SECURITY_DEP use


svn path=/trunk/mcs/; revision=159663
2010-06-29 14:13:01 +00:00
Marek Safar b3c34dfbcc 2010-06-29 Marek Safar <[email protected]>
* import.cs: Operators must have between 1 and 2 parameters.
	
	* method.cs: Switch destructor to direct membercache lookup


svn path=/trunk/mcs/; revision=159662
2010-06-29 13:28:01 +00:00
Marek Safar f79c276ef4 Cleanup MethodGroupExpr bits
svn path=/trunk/mcs/; revision=159660
2010-06-29 11:40:51 +00:00
Marek Safar 1f0bb30c18 2010-06-29 Marek Safar <[email protected]>
* driver.cs, expression.cs: Use Membercache for StringConcat when
	it got all what is needed.


svn path=/trunk/mcs/; revision=159653
2010-06-29 10:17:44 +00:00
Raja R Harinath a7faae2bde Use a slightly more portable way to resolve the CategoryAttribute ambiguity.
svn path=/trunk/mcs/; revision=159652
2010-06-29 09:10:50 +00:00
Marek Safar 6d4a4e8e31 2010-06-29 Marek Safar <[email protected]>
* List.cs: Optimize IEnumerable<T> ctor.


svn path=/trunk/mcs/; revision=159651
2010-06-29 08:29:01 +00:00
Marek Safar 103ab6db25 Removed NET_1_x
svn path=/trunk/mcs/; revision=159650
2010-06-29 08:15:24 +00:00
Marek Safar 2a4976947b New test.
svn path=/trunk/mcs/; revision=159649
2010-06-29 08:14:23 +00:00
Marek Safar 249a4d148d 2010-06-29 Marek Safar <[email protected]>
* membercache.cs, expression.cs, statement.cs, doc.cs, ecore.cs:
	Changed FindMembers to allocate a new list only when a filter is
	used. Saves decent chunk of memory and should save even more in the
	future when the filter is not used that often.
	

svn path=/trunk/mcs/; revision=159648
2010-06-29 08:14:09 +00:00
Raja R Harinath 56c2a1dc07 Mitigate a possible source of unbounded memory growth
* interpreter.cs (Backtrack): Move mark_start back, and invalidate
discarded marks.

svn path=/trunk/mcs/; revision=159647
2010-06-29 07:20:12 +00:00
Raja R Harinath e587d2b7ea Make trace output resemble assembler listing
* compiler.cs (LinkRef.ToString) [TRACE_REGEX]: Add pretty-printer
in TRACE_REGEX mode.
(TraceRegexp): Indent the output.
(TraceRegexpLabel): New.  Prints out a line label.
(EmitCount): Don't trace.  All callers are traced.
(ResolveLink): Trace line labels.

svn path=/trunk/mcs/; revision=159646
2010-06-29 07:19:50 +00:00
Andreia Gaita 99ae6a6831 2010-06-29 Andreia Gaita <[email protected]>
* XmlWriterTests.cs : added tests for bug #607967

svn path=/trunk/mcs/; revision=159643
2010-06-29 00:44:46 +00:00
Zoltan Varga 480b30d72f 2010-06-29 Zoltan Varga <[email protected]>
* mini-arm.c (get_call_info): Change the managed calling convention so 'this'
	is always passed as the first argument, before the vtype ret arg. This simplifies
	get_this_arg_reg () and LLVM integration.

svn path=/trunk/mono/; revision=159642
2010-06-29 00:21:40 +00:00
Zoltan Varga 21f0e1781d 2010-06-29 Zoltan Varga <[email protected]>
* Makefile.am (bug-81691.exe): Fix the dependencies of this test.

svn path=/trunk/mono/; revision=159641
2010-06-28 23:42:00 +00:00
Zoltan Varga eeb7b607c7 2010-06-28 Zoltan Varga <[email protected]>
* class.c (mono_class_get_vtable_entry): Avoid a crash if mono_class_setup_vtable ()
	fails.

svn path=/trunk/mono/; revision=159637
2010-06-28 22:28:27 +00:00
Gonzalo Paniagua Javier 621f60bb2e new address
svn path=/trunk/mcs/; revision=159636
2010-06-28 22:15:51 +00:00
Gonzalo Paniagua Javier 2ca7fdcc4c 2010-06-28 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: verify the last IPv4 digit too.
	Fixes bug #612135.


svn path=/trunk/mcs/; revision=159635
2010-06-28 22:15:34 +00:00
Zoltan Varga b1919d32d0 Fix the x86 build.
svn path=/trunk/mono/; revision=159623
2010-06-28 21:14:47 +00:00
Chris Bacon 5017d8c2b0 2010-06-28 Chris Bacon <[email protected]>
* System.Diagnostics.Contracts tests added.


svn path=/trunk/mcs/; revision=159622
2010-06-28 21:09:57 +00:00
Zoltan Varga 19e782ddbf 2010-06-28 Zoltan Varga <[email protected]>
* Makefile.am (patch-libtool): Fix this up after the dolt changes.

svn path=/trunk/mono/; revision=159621
2010-06-28 21:04:57 +00:00
Zoltan Varga 3c19b026e4 2010-06-28 Zoltan Varga <[email protected]>
* mini-trampolines.c mini.c: Rework the virtual call handling code by using a separate
	vtable trampoline for each vtable slot for both the LLVM and non-LLVM cases. Move
	most of the vcall specific code to mono_vcall_trampoline () from
	common_call_trampoline ().

svn path=/trunk/mono/; revision=159620
2010-06-28 21:04:50 +00:00
Gonzalo Paniagua Javier 7a5370dcc4 2010-06-28 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: support PLAIN authentication and throw if LOGIN and
	PLAIN are not supported. Fixes bug #607249.


svn path=/trunk/mcs/; revision=159619
2010-06-28 21:00:00 +00:00
Atsushi Eno fb9c6ac4ff should be !NET_2_1.
svn path=/trunk/mcs/; revision=159612
2010-06-28 16:56:34 +00:00
Atsushi Eno 8afd108177 2010-06-28 Astushi Enomoto <[email protected]>
* HTTP_listener_notes.txt : updated, things became much better.


svn path=/trunk/mcs/; revision=159608
2010-06-28 15:16:08 +00:00
Alan McGovern 86d9d25ed3 Add an ifdef for moonlight compilation
svn path=/trunk/mcs/; revision=159604
2010-06-28 14:39:05 +00:00
Marek Safar 9f075fd34a Clenup few checks.
svn path=/trunk/mcs/; revision=159601
2010-06-28 12:48:06 +00:00
Robert Jordan 67355837e2 2010-06-28 Robert Jordan <[email protected]>
* mono.def: Add mono_free symbol (exposed by mono-publib.h).


svn path=/trunk/mono/; revision=159599
2010-06-28 11:27:42 +00:00
Alan McGovern a1cf985e3c 2010-06-28 Alan McGovern <[email protected]>
* UriTypeConverter.cs: Fix some regressed tests and add a new test
        for when ConvertFrom is called with String.Empty.


svn path=/trunk/mcs/; revision=159598
2010-06-28 11:02:45 +00:00
Marek Safar f37c6abd24 2010-06-28 Marek Safar <[email protected]>
* field.cs, property.cs, assign.cs, const.cs, expression.cs,
	ecore.cs, class.cs, cs-parser.jay, enum.cs: Don't use intermediate
	structure for simple type fields (saves memory and makes few things
	simpler). Clean up some hacks mostly for events.
	

svn path=/trunk/mcs/; revision=159595
2010-06-28 09:57:47 +00:00
Marek Safar 3b99fbd97a New tests.
svn path=/trunk/mcs/; revision=159594
2010-06-28 09:57:26 +00:00
Alan McGovern 3b9d9f8f1b 2010-06-28 Alan McGovern <[email protected]>
* UriTypeConverter.cs: Converting String.Empty should return null
        instead of a Uri instance. Null values and unconvertable values
        need to throw NotSupportedExceptions for moonlight too.


svn path=/trunk/mcs/; revision=159593
2010-06-28 09:27:18 +00:00
Alan McGovern b107c00712 2010-06-25 Alan McGovern <[email protected]>
* TypeConverter_2_1.cs: Implement ConvertToString as per docs and
        moonlight tests.


svn path=/trunk/mcs/; revision=159592
2010-06-28 09:25:53 +00:00
Raja R Harinath 1dc4bea327 Revert "processed with astyle" (SVN r159583)
svn path=/trunk/mcs/; revision=159587
2010-06-28 06:39:43 +00:00
Zoltan Varga 7978f18689 2010-06-28 Zoltan Varga <[email protected]>
* mono-gdb.py: Add pretty printers for more runtime data structures.

svn path=/trunk/mono/; revision=159586
2010-06-27 22:34:46 +00:00
Zoltan Varga 5c0b87d424 2010-06-27 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Remove the code which created static
	rgctx trampolines when called from LLVM, they won't work for dynamic rgctx arguments
	if the callsite is patched.

	* mini-llvm.c (process_call): Disable calls which need an rgctx arg if not using
	the llvm branch.

svn path=/trunk/mono/; revision=159585
2010-06-27 22:34:40 +00:00
Zoltan Varga 0ce86ac92c 2010-06-27 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Fix the name of
	the trampoline in the xdebug info.

svn path=/trunk/mono/; revision=159584
2010-06-27 20:41:04 +00:00
C.J. Adams-Collier 56886b8c11 processed with astyle
svn path=/trunk/mcs/; revision=159583
2010-06-27 20:11:26 +00:00
Michael Barker af391a169e 2010-06-27 Michael Barker <[email protected]>
* docs/specs/Makefile: Added uninstall-local	

svn path=/trunk/mcs/; revision=159582
2010-06-27 13:33:46 +00:00
Marek Habersack 3a9552ed93 2010-06-27 Marek Habersack <[email protected]>
* HttpUtility.cs: if IHtmlString instance is passed to HtmlEncode
	(object), use IHtmlString.ToHtmlString () to return the value
	without encoding it.

svn path=/trunk/mcs/; revision=159581
2010-06-27 10:12:48 +00:00
Zoltan Varga 887f8af239 2010-06-27 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Make the last change work for LLVM
	as well.

svn path=/trunk/mono/; revision=159580
2010-06-26 22:00:58 +00:00
Zoltan Varga 99e3628d19 2010-06-26 Zoltan Varga <[email protected]>
* mini-llvm.c: Fix a few problems exposed by make check.

svn path=/trunk/mono/; revision=159579
2010-06-26 17:46:19 +00:00
Mark Probst 3ce61c7b94 2010-06-25 Mark Probst <[email protected]>
* mini-trampolines.c (common_call_trampoline): An ugly hack to
	work around a potentially very hard to fix problem with inflating
	generic methods.

2010-06-25  Mark Probst  <[email protected]>

	* class.c (mono_class_inflate_generic_method_full_checked): Added
	a comment regarding a hack in mini-trampolines.c.

2010-06-26  Mark Probst  <[email protected]>

	* bug-616463.cs: New test.

	* Makefile.am: Test added to generic tests.

This is a corrected re-commit of r159532.

svn path=/trunk/mono/; revision=159578
2010-06-26 17:01:45 +00:00
Zoltan Varga 3c264b7e70 2010-06-26 Zoltan Varga <[email protected]>
* configure.in: Make sgen_supported default to false to fix non-x86 builds.

svn path=/trunk/mono/; revision=159577
2010-06-26 13:41:37 +00:00
Zoltan Varga c8a826a7f4 2010-06-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_wb_aware_memcpy): Remove the workaround as the core
	problem has been fixes.

svn path=/trunk/mono/; revision=159576
2010-06-26 03:09:30 +00:00
Zoltan Varga d1209214f6 2010-06-26 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_wbarrier_value_copy_bitmap): Use SIZEOF_VOID_P instead of
	sizeof(SIZEOF_VOID_P) which is 4.

svn path=/trunk/mono/; revision=159575
2010-06-26 03:09:23 +00:00
Zoltan Varga 8fb8a194d3 Add some comments about why some structures are allocated from GC memory.
svn path=/trunk/mono/; revision=159574
2010-06-26 02:47:53 +00:00
Zoltan Varga 8a4d911c64 2010-06-26 Zoltan Varga <[email protected]>
* gc.c (mono_gc_init): Move the GC disabled check to *-gc.c.

svn path=/trunk/mono/; revision=159573
2010-06-26 00:03:49 +00:00
Zoltan Varga 2d753d2633 2010-06-25 Zoltan Varga <[email protected]>
* Makefile.am: Add an 'SGEN' make variable to allow tests to be run with SGEN.

svn path=/trunk/mono/; revision=159563
2010-06-25 19:08:22 +00:00
Zoltan Varga a511f46867 2010-06-25 Zoltan Varga <[email protected]>
* Makefile.am: Add an 'SGEN' make variable to allow tests to be run with SGEN.

svn path=/trunk/mono/; revision=159562
2010-06-25 19:08:15 +00:00
Zoltan Varga 429523e251 Fix a warning.
svn path=/trunk/mono/; revision=159561
2010-06-25 18:55:57 +00:00
Zoltan Varga 4a1840125c 2010-06-25 Zoltan Varga <[email protected]>
* mini-gc.c (mini_gc_init_cfg): Use mono_gc_is_moving () instead of HAVE_SGEN_GC.
	It might be be better to define a MonoGCJitOptions structure later and have the
	GC return that.

svn path=/trunk/mono/; revision=159560
2010-06-25 18:53:09 +00:00
Zoltan Varga bb2a7d8a71 2010-06-25 Zoltan Varga <[email protected]>
* mini-darwin.c: Don't undefine pthread_ calls for SGEN, they are no longer defined.

svn path=/trunk/mono/; revision=159559
2010-06-25 18:35:45 +00:00
Zoltan Varga e85be2b7c1 2010-06-25 Zoltan Varga <[email protected]>
* gc_wrapper.h: Avoid redefining pthread_ calls for SGEN, no longer needed.

svn path=/trunk/mono/; revision=159558
2010-06-25 18:35:08 +00:00
Zoltan Varga 65c99bb591 2010-06-25 Zoltan Varga <[email protected]>
* Makefile: Don't build an sgen aware version, it is no longer needed.

svn path=/trunk/mono/; revision=159557
2010-06-25 18:31:59 +00:00
Zoltan Varga df45fdacf5 2010-06-25 Zoltan Varga <[email protected]>
* wait.c handles.c wthreads.c: Call the mono_gc_ wrapper functions of some pthread
	apis. This breaks the compile time dependency between io-layer and the GC.

svn path=/trunk/mono/; revision=159556
2010-06-25 18:27:20 +00:00
Zoltan Varga 3436617e55 2010-06-25 Zoltan Varga <[email protected]>
* null-gc.c boehm-gc.c: Define the mono_gc_ pthread wrapper functions for these
	GCs too.

svn path=/trunk/mono/; revision=159555
2010-06-25 18:27:14 +00:00
Zoltan Varga bffb1eac74 2010-06-25 Zoltan Varga <[email protected]>
* gc_wrapper.h: Define the mono_gc_ wrappers for Boehm too, runtime code should
	call these instead of the pthread_ variants.

svn path=/trunk/mono/; revision=159554
2010-06-25 18:27:07 +00:00
Zoltan Varga f2c97b7c5f 2010-06-25 Zoltan Varga <[email protected]>
* Array.cs (SortImpl): Fix the 'fast path' which used 'as' to cast objects so
	it never sorted the items array if it was not a object[]. Fixes #616416.

svn path=/trunk/mcs/; revision=159551
2010-06-25 17:33:23 +00:00
Zoltan Varga 71e72f157a 2010-06-25 Zoltan Varga <[email protected]>
* *-gc.c (mono_gc_wbarrier_value_copy_bitmap): Implement this for all GCs.

svn path=/trunk/mono/; revision=159550
2010-06-25 17:26:03 +00:00
Zoltan Varga 35a75991e6 Revert "2010-06-25 Mark Probst <[email protected]>"
This reverts commit e2642bcfd2edf769c190a6348a0bd7a182e31be1.

Reverted this because it breaks the build.

svn path=/trunk/mono/; revision=159548
2010-06-25 17:07:16 +00:00
Carlos Alberto Cortez 68a2074700 2010-06-25 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: Use TabControl.Font instead of the values of
	TabPage.Font.
	Fixes bits of #551032.


svn path=/trunk/mcs/; revision=159547
2010-06-25 16:44:02 +00:00
Carlos Alberto Cortez 4952f479c0 2010-06-25 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: Use TabControl.Font to draw instead of
	TabPage.Font values.
	Fixes bits of #551032.


svn path=/trunk/mcs/; revision=159546
2010-06-25 16:40:56 +00:00
Carlos Alberto Cortez 511b8280a8 2010-06-25 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: Don't use the Font property of our TabPages - use our
	own Font property instead, as .Net does.
	Fixes some bits of #551032.


svn path=/trunk/mcs/; revision=159544
2010-06-25 16:22:37 +00:00
Marek Safar ac230566e6 2010-06-25 Marek Safar <[email protected]>
* statement.cs, cs-parser.jay: Don't create expensive block for
	simple statements.


svn path=/trunk/mcs/; revision=159539
2010-06-25 07:35:58 +00:00
Zoltan Varga 01c47efef6 2010-06-25 Zoltan Varga <[email protected]>
* debugger-agent.c (get_objref): Implement support for sgen.

svn path=/trunk/mono/; revision=159538
2010-06-25 04:37:55 +00:00
Zoltan Varga 271d12f92d 2010-06-25 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_is_moving): New function returning whenever this GC can move
	objects.

svn path=/trunk/mono/; revision=159537
2010-06-25 04:37:47 +00:00
Atsushi Eno 3c3234babe 2010-06-25 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs : don't use Name, use LocalName. Fixed bug #617264.


svn path=/trunk/mcs/; revision=159536
2010-06-25 03:34:58 +00:00
Zoltan Varga dbe779cd44 2010-06-25 Zoltan Varga <[email protected]>
* driver.c: Remove the unused gc_wrapper.h include.

svn path=/trunk/mono/; revision=159535
2010-06-25 01:07:57 +00:00
Zoltan Varga a5bcfe2fcf 2010-06-25 Zoltan Varga <[email protected]>
* driver.c (mono_main): Delegate the --desktop mode optimizations to the GC
	implementation.

svn path=/trunk/mono/; revision=159534
2010-06-25 00:44:13 +00:00
Zoltan Varga 9c2e826fa7 2010-06-25 Zoltan Varga <[email protected]>
* *-gc.c (mono_gc_set_desktop_mode): New function setting up the GC to work in
	desktop mode.

svn path=/trunk/mono/; revision=159533
2010-06-25 00:44:06 +00:00
Mark Probst c3dbcd67ad 2010-06-25 Mark Probst <[email protected]>
* mini-trampolines.c (common_call_trampoline): An ugly hack to
	work around a potentially very hard to fix problem with inflating
	generic methods.

	I feel ashamed.

2010-06-25  Mark Probst  <[email protected]>

	* class.c (mono_class_inflate_generic_method_full_checked): Added
	a comment regarding a hack in mini-trampolines.c.

svn path=/trunk/mono/; revision=159532
2010-06-25 00:32:34 +00:00
Zoltan Varga e6e8ba3b06 2010-06-25 Zoltan Varga <[email protected]>
* driver.c (mono_main): Use mono_gc_get_description () to print the GC name.

svn path=/trunk/mono/; revision=159531
2010-06-25 00:28:47 +00:00
Zoltan Varga 080e89ec3a 2010-06-25 Zoltan Varga <[email protected]>
* *-gc.c (mono_gc_get_description): New function returning a human readable
	description of the current GC.

svn path=/trunk/mono/; revision=159530
2010-06-25 00:28:38 +00:00
Zoltan Varga 70f706914a 2010-06-25 Zoltan Varga <[email protected]>
* mini-gc.c (mini_gc_init_cfg): New function to initialize GC specific flags
	in MonoCompile.

	* method-to-ir.c mini.c: Remove usage of HAVE_SGEN_GC and use runtime checks
	instead.

svn path=/trunk/mono/; revision=159529
2010-06-25 00:11:58 +00:00
Zoltan Varga 8baa30a90b 2010-06-25 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Fix this up after the build changes.

svn path=/trunk/mono/; revision=159528
2010-06-24 23:35:46 +00:00
Miguel de Icaza 37e1d26f04 Change the path
svn path=/trunk/mono/; revision=159527
2010-06-24 23:18:19 +00:00
Miguel de Icaza bd731b11b6 Fix windows build
svn path=/trunk/mono/; revision=159526
2010-06-24 23:02:56 +00:00
Miguel de Icaza 907d20f2d5 Remove
svn path=/trunk/mono/; revision=159525
2010-06-24 22:17:29 +00:00
Miguel de Icaza c0d2f8ffd5 Fix after moving the file
svn path=/trunk/mono/; revision=159517
2010-06-24 18:44:55 +00:00
Miguel de Icaza 0ca24d9297 2010-06-23 Miguel de Icaza <[email protected]>
* configure.in: By default, we will now also buils an SGen-aware
       VM by default.   This can be turned off by using the
       --with-sgen=no command line option.

2010-06-23  Miguel de Icaza  <[email protected]>

       * Makefile.am: Add support for building a sgen-aware versions of
       the libraries: libmonoruntimesgen.la
libmonoruntimesgen-static.la,
       they share all the components of the default, but use a differen
       set of CFLAGS to enable SGEN instead.

2010-06-23  Miguel de Icaza  <[email protected]>

       * Makefile.am: Build the mono-sgen binary a Mono VM with the Sgen
       GC enabled as well as libmono-sgen-2.0 and libomonosgen-static

       * metadata: Move the mono-hash code here, as mono-hash is GC
        aware, but the mono/utils directory is not



svn path=/trunk/mono/; revision=159514
2010-06-24 18:21:12 +00:00
Rodrigo Kumpera ca0976c435 2010-06-24 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_emit_wb_aware_memcpy): Don't emit bitmap
	wb for now on 64bits systems while issues with valuetype returns
	are not fixed.

svn path=/trunk/mono/; revision=159513
2010-06-24 18:00:55 +00:00
Zoltan Varga 4b5fba065a 2010-06-24 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add support for using a standard set of
	passes by calling createStandardFunctionPasses ().

svn path=/trunk/mono/; revision=159507
2010-06-24 16:21:29 +00:00
Carlos Alberto Cortez 386f450740 * TabControl.cs: Call Invalidate when removing a tab page. We were
depending on the redraw routines of SelectedIndex, which could be not
	enough to detect the real affected area.

2010-06-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=159505
2010-06-24 15:59:25 +00:00
Carlos Alberto Cortez 39ef8cd13f 2010-06-24 Carlos Alberto Cortez <[email protected]>
* TabControlTest.cs: New test to assert that getting focus is not
	setting SelectedTabIndex.


svn path=/trunk/mcs/; revision=159504
2010-06-24 15:39:52 +00:00
Carlos Alberto Cortez 37d7860697 2010-06-24 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: Don't set SelectedTabIndex when getting the focus *at
	all*.
	Fixes #613765.


svn path=/trunk/mcs/; revision=159503
2010-06-24 15:38:55 +00:00
Marek Safar 368d2989d8 2010-06-24 Marek Safar <[email protected]>
* statement.cs, report.cs: Rethrow internal error when reporting is
	disabled.
	
	* ecore.cs: Check for identical name only when simple name is set.
	Fixes #616667
	

svn path=/trunk/mcs/; revision=159502
2010-06-24 14:38:46 +00:00
Marek Safar 451dc55379 More tests.
svn path=/trunk/mcs/; revision=159501
2010-06-24 14:21:32 +00:00
Marek Safar 933f740628 2010-06-24 Marek Safar <[email protected]>
A fix for bug #616809
	* generic.cs, expression.cs, ecore.cs: Added a new type expression
	for open generic type to pass unbound type arguments to typeof
	expression.


svn path=/trunk/mcs/; revision=159500
2010-06-24 14:08:19 +00:00
Dick Porter dcceb6e292 2010-06-24 Dick Porter <[email protected]>
* Fix NullReferenceException when keyboard shortcut activates
	disabled context menu item.  Fixes bug 615940.


svn path=/trunk/mcs/; revision=159498
2010-06-24 14:01:36 +00:00
Marek Habersack 7e02dfbdc9 Fixes to a bunch of unit tests which would fail when running on .NET and few updates to
our system.web controls.

svn path=/trunk/mcs/; revision=159495
2010-06-24 12:55:00 +00:00
Atsushi Eno b1be2aea6f 2010-06-24 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs :
	  Use new HTTP channel listener implementation.

	* ChannelDispatcher.cs : enable service throttling again.
	  This time Http(Listener), ASP.NET and TCP listeners all work.

	* System.ServiceModel.dll.sources :
	  add new HTTP channel listener implementation sources.

	  Old sources will be kept for a while, won't entirely vanish as
	  ASP.NET support will live there.


svn path=/trunk/mcs/; revision=159491
2010-06-24 12:07:13 +00:00
Atsushi Eno 4bf24b88db 2010-06-24 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : finish pending wait handle when closing
	  a listener. Fixed the issue on closing host/listener/channels.


svn path=/trunk/mcs/; revision=159490
2010-06-24 11:58:49 +00:00
Atsushi Eno 6667c8e584 2010-06-24 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs : do not try to enter close loop
	  between request context and this.


svn path=/trunk/mcs/; revision=159489
2010-06-24 11:53:20 +00:00
Atsushi Eno 13f5810710 2010-06-24 Atsushi Enomoto <[email protected]>
* MetadataExchangeBindingsTest.cs : make sure that the target port
	  of the Uri is available (as some other tests do).


svn path=/trunk/mcs/; revision=159487
2010-06-24 11:24:45 +00:00
Marek Safar 52607edd8b New tests.
svn path=/trunk/mcs/; revision=159482
2010-06-24 10:32:45 +00:00
Marek Safar b736f1c769 New test.
svn path=/trunk/mcs/; revision=159481
2010-06-24 10:32:33 +00:00
Marek Safar 4dbfd3d405 2010-06-24 Marek Safar <[email protected]>
* statement.cs: Foreach collection implementation refactoring to
	search for GetEnumerator more preciselly. Fixes #431453 and more
	unreported bugs.

	* linq.cs, decl.cs, ecore.cs, delegate.cs: Update methodgroup api.


svn path=/trunk/mcs/; revision=159480
2010-06-24 10:32:15 +00:00
Marek Safar 603f1a0a26 flush
svn path=/trunk/mcs/; revision=159479
2010-06-24 08:29:01 +00:00
Miguel de Icaza 1f04e7d318 Delete
svn path=/trunk/mono/; revision=159475
2010-06-24 05:18:22 +00:00
Miguel de Icaza e15bf3b239 Revert my changes, they break the build
svn path=/trunk/mono/; revision=159474
2010-06-24 02:22:43 +00:00
Miguel de Icaza 5a4a534327 Add this dep back
svn path=/trunk/mono/; revision=159473
2010-06-24 01:53:32 +00:00
Geoff Norton 6d294978b6 Fix the build
svn path=/trunk/mono/; revision=159472
2010-06-24 01:16:42 +00:00
Miguel de Icaza 621cde064a Update man page
svn path=/trunk/mono/; revision=159469
2010-06-24 00:13:13 +00:00
Miguel de Icaza ff4f943454 2010-06-23 Miguel de Icaza <[email protected]>
* configure.in: By default, we will now also buils an SGen-aware
	VM by default.   This can be turned off by using the
	--with-sgen=no command line option.

2010-06-23  Miguel de Icaza  <[email protected]>

	* Makefile.am: Add support for building a sgen-aware versions of
	the libraries: libmonoruntimesgen.la libmonoruntimesgen-static.la,
	they share all the components of the default, but use a differen
	set of CFLAGS to enable SGEN instead.

2010-06-23  Miguel de Icaza  <[email protected]>

	* Makefile.am: Build the mono-sgen binary a Mono VM with the Sgen
	GC enabled as well as libmono-sgen-2.0 and libomonosgen-static



svn path=/trunk/mono/; revision=159468
2010-06-24 00:11:13 +00:00
Michael Barker 48eb257d5c 2010-06-23: Michael Barker <[email protected]>
* Upgrade to RabbitMQ.Client 1.8.

svn path=/trunk/mcs/; revision=159465
2010-06-23 21:39:05 +00:00
Miguel de Icaza 02b9e5cdc0 2010-06-23 Miguel de Icaza <[email protected]>
* configure.in: Remove redundant setting of variables in non-Boehm
	cases.

svn path=/trunk/mono/; revision=159463
2010-06-23 21:05:32 +00:00
Miguel de Icaza a7c7254f0e 2010-06-23 Miguel de Icaza <[email protected]>
* configure.in: First pass at supporting the compilation of both

svn path=/trunk/mono/; revision=159462
2010-06-23 21:00:58 +00:00
Miguel de Icaza 44d7d2e14f 2010-06-23 Miguel de Icaza <[email protected]>
* configure.in: First pass at supporting the compilation of both
	the Boehm-powered Mono VM and the Sgen-powered one.

	The Boehm configuration flags are no longer part of the config.h
	that we generate, but instead they are part of the CFLAGS
	variables that are used for the following components:

		* io-layer/ because it uses the pthread APIs that are
		wrapped by using utils/gc_wrapper.h

		* metatada/ because we have plenty of GC-specific code

		* mini/ the VM itself

	The patch currently only changes the way that Boehm is compiled,
	no changes for Sgen have been done yet.

	We now pass Boehm CFLAG settings as "BOEHM_DEFINES" which need to
	be added to the three Makefiles above.

	When building the bundled and modified libgc, we also need to pass
	MONO_DEBUGGER_SUPPORTED as it triggers some special features in
	the libgc.

	Simplify the build also by removing the AM_CONDITIONAL debugger
	supported, we now merely check this on the source file and wrap
	the entire debug-debugger.c in an ifdef.

2010-06-23  Miguel de Icaza  <[email protected]>

	* Makefile.am: Put the BOEHM defines in the CFLAGS definition. 

	* domain-internals.h (MonoJitInfo): this structure used to have
	different sizes depending on the GC that was configured (Boehm vs
	SGen).   I have removed this difference for the sake of avoiding
	the complexity of dealing with the mono/arch directory requiring
	GC-specific changes to their Makefiles.

2010-06-23  Miguel de Icaza  <[email protected]>

	* debug-debugger.c: Wrap the entire file with an #ifdef
	MONO_DEBUGGER_SUPPORTED to simplify the build.

	* Makefile.am: Fix the opcodes build issue by including the
	source, not by including the .lo file directly

	Always bring the MDB sources into the build, to drop the
	dependency on the AM_CONDITIONAL from configure.in as the hard
	debugger supports Boehm, but not Sgen, this simplifies the build. 

	* Renamed the *.s files into *.S
	


svn path=/trunk/mono/; revision=159461
2010-06-23 20:59:38 +00:00
Sebastien Pouliot 9ce5913617 2010-06-23 Sebastien Pouliot <[email protected]>
* XmlFormatterDeserializer.cs: Fix some issues in Moonlight when 
	some referenced assemblies cannot be found or loaded


svn path=/trunk/mcs/; revision=159460
2010-06-23 20:54:56 +00:00
Veerapuram Varadhan 3ee06f75d7 2010-06-23 Veerapuram Varadhan <[email protected]>
** Fixes #581679
	* DataRelationCollection.cs (Add, Remove): Use DataRelation obj
	instead of this when raising OnCollectionChang(ing, ed) events.

svn path=/trunk/mcs/; revision=159447
2010-06-23 18:59:31 +00:00
Marek Habersack 270c815561 Fix make dist
svn path=/trunk/mcs/; revision=159442
2010-06-23 18:06:20 +00:00
Jonathan Pobst b1ef847f07 Fix warning, which fixes msvc build.
svn path=/trunk/mono/; revision=159441
2010-06-23 17:29:56 +00:00
Atsushi Eno 183105f179 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpStandaloneChannelListener.cs
	  HttpStandaloneReplyChannel.cs
	  HttpStandaloneRequestContext.cs
	  HttpListenerManagerTable.cs
	  HttpChannelListenerEntry.cs
	  HttpContextInfo.cs
	  HttpListenerManager.cs :
	  Refresh implementation for HTTP channel listener in new namespace,
	  which works fine with throttling.

	  It still has some issue in closing channels or listeners, so it
	  does not replace existing implementation yet.


svn path=/trunk/mcs/; revision=159439
2010-06-23 17:09:10 +00:00
Marek Safar b34ee5f606 2010-06-23 Marek Safar <[email protected]>
* cs-parser.jay: Track more locations.


svn path=/trunk/mcs/; revision=159418
2010-06-23 09:38:39 +00:00
Atsushi Eno 408494cfcb 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : cosmetic code formatting fix.


svn path=/trunk/mcs/; revision=159412
2010-06-23 08:17:16 +00:00
Atsushi Eno 4ed002957c 2010-06-23 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : Reduced not a few lines of code,
	  now that we know wsdl and help do not have to be differentiated,
	  this extension support can be a lot simpler.

	* HttpListenerManager.cs :
	  No need to get messed around MetadataPublishingInfo anymore.


svn path=/trunk/mcs/; revision=159411
2010-06-23 08:03:17 +00:00
Atsushi Eno fed51b507c 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : remove extra different code paths for
	  channel dispatchers with or without mex endpoints.


svn path=/trunk/mcs/; revision=159410
2010-06-23 07:46:06 +00:00
Atsushi Eno 130915150a 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : simplify FilterHttpContext().

	* ServiceMetadataExtension.cs : add Instance field for simplification.


svn path=/trunk/mcs/; revision=159409
2010-06-23 07:42:16 +00:00
Marek Safar 41aea50b9c Removed runtime crash workaround
svn path=/trunk/mcs/; revision=159408
2010-06-23 07:26:37 +00:00
Zoltan Varga d49f2d052f 2010-06-23 Zoltan Varga <[email protected]>
* mini.h (MONO_INS_HAS_NO_SIDE_EFFECT): Add OP_LDADDR.

svn path=/trunk/mono/; revision=159407
2010-06-23 02:15:02 +00:00
Ankit Jain 8f9a0e9246 Fix dependency specification for CoreCompile target. Log better messages
for dependency checks for targets.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	* TargetBatchingImpl.cs (BuildTargetNeeded): Fix var names to
	correctly reflect what they track. Log messages when skipping
	or building a target.

In tools/xbuild:

	* xbuild/Microsoft.CSharp.targets (CoreCompile): Fix inputs.
	* xbuild/Microsoft.VisualBasic.targets (CoreCompile): Fix inputs.

svn path=/trunk/mcs/; revision=159406
2010-06-23 01:08:04 +00:00
Mark Probst 883486a652 2010-06-23 Mark Probst <[email protected]>
* sgen-gc.c, sgen-los.c, sgen-marksweep.c: Fix warnings.

svn path=/trunk/mono/; revision=159405
2010-06-23 00:22:01 +00:00
Rodrigo Kumpera 6170423716 2010-06-22 Rodrigo Kumpera <[email protected]>
* src/ghashtable.c: Add code to sanity check the
	hashtable contents. This is invaluable, for example,
	to catch bugs where a key hashcode changes after
	insertion.

svn path=/trunk/mono/; revision=159385
2010-06-22 22:22:02 +00:00
Rodrigo Kumpera 6bd047500e 2010-06-22 Rodrigo Kumpera <[email protected]>
* metadata.c (mono_metadata_type_hash): Don't hash
	the type kind for dynamic types since it can change.

svn path=/trunk/mono/; revision=159384
2010-06-22 22:21:53 +00:00
Zoltan Varga bc26337899 2010-06-22 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Don't mark loads from OP_LDADDR with
	MONO_INST_FAULT.

svn path=/trunk/mono/; revision=159383
2010-06-22 21:42:15 +00:00
Zoltan Varga 02326dad0a 2010-06-22 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Recalculate MONO_INST_INDIRECT flags to
	allow better optimization if the OP_LDADDR which caused the flag to be set was
	optimized away.

svn path=/trunk/mono/; revision=159381
2010-06-22 21:20:18 +00:00
Gonzalo Paniagua Javier e3f52fab95 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* UriTest.cs: exclude 2 tests in 4.0.


svn path=/trunk/mcs/; revision=159378
2010-06-22 21:19:06 +00:00
Gonzalo Paniagua Javier 36cb78a3ce 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* Uri.cs: change of behavior un 4.0.
	Fixes bug #602411.


svn path=/trunk/mcs/; revision=159377
2010-06-22 21:18:33 +00:00
Marek Safar 761a596b39 Better error recovery.
svn path=/trunk/mcs/; revision=159376
2010-06-22 20:35:53 +00:00
Gonzalo Paniagua Javier 55671bd0b2 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: we need to read the output to give the process time
	to start. Fixes bug #591136.


svn path=/trunk/mcs/; revision=159372
2010-06-22 20:10:26 +00:00
Miguel de Icaza a3a9a274da Update
svn path=/trunk/mono/; revision=159367
2010-06-22 19:00:56 +00:00
Zoltan Varga 7b7e7a3233 2010-06-22 Zoltan Varga <[email protected]>
* exceptions-amd64.c (get_throw_trampoline): Align the stack properly.

svn path=/trunk/mono/; revision=159365
2010-06-22 18:36:56 +00:00
Zoltan Varga e0e1de9907 2010-06-22 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_exceptions): Pass only the type token index, not
	the type token.

svn path=/trunk/mono/; revision=159364
2010-06-22 17:32:03 +00:00
Zoltan Varga 6ca24bba7e 2010-06-22 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_entry_bb): Save the this argument only in gshared methods.

svn path=/trunk/mono/; revision=159363
2010-06-22 17:29:14 +00:00
Geoff Norton d12b67cf25 fix the build
svn path=/trunk/mono/; revision=159359
2010-06-22 16:30:31 +00:00
Geoff Norton e713f55a51 2010-06-22 Geoff Norton <[email protected]>
* mach-support-arm.c: Add arm support.

svn path=/trunk/mono/; revision=159358
2010-06-22 16:30:28 +00:00
Geoff Norton 5ae226cc26 in utils:
2010-06-22 Geoff Norton  <[email protected]>

        * mach-support-*.(c|h): We cannot allocate from the gc, so make
        these functions alloc-less.

in metadata:

2010-06-22 Geoff Norton  <[email protected]>

        * sgen-os-mach.c: We cannot call malloc from the gc, so we need to use
        alloca instead to prevent a deadlock.

svn path=/trunk/mono/; revision=159356
2010-06-22 16:19:33 +00:00
Marek Safar 2fa24c5ff4 2010-06-22 Marek Safar <[email protected]>
* cs-tokenizer.cs, location.cs, cs-parser.jay: Track more locations.


svn path=/trunk/mcs/; revision=159355
2010-06-22 16:14:27 +00:00
Marek Safar adaebf27ed 2010-06-22 Chris Bacon <[email protected]>
* System.Diagnostics.Contract.Internal: New file.
	

svn path=/trunk/mcs/; revision=159352
2010-06-22 15:44:28 +00:00
Geoff Norton 7824b5a8a6 2010-06-22 Geoff Norton <[email protected]>
* domain.c: Allow gettings the tls key, since we need it for
        cross thread tls poking in sgen-mach
        * sgen-gc.(c|h), gc-internal.h: Rework sgen into having some functions
        in external files for platform specific STW support.
        * sgen-os-mach.c: Add a new mach kernel backend implementation of STW.
        * sgen-os-posix.c: Move the existing posix signal based STW here.

svn path=/trunk/mono/; revision=159349
2010-06-22 14:58:55 +00:00
Geoff Norton 80452c5963 2010-06-22 Geoff Norton <[email protected]>
* Makefile.am
	* mach-support-amd64.c
	* mach-support-x86.c
	* mach-support.c
	* mach-support.h: Added a new suite of helpers for managing threads
	on mach based kernels.

svn path=/trunk/mono/; revision=159348
2010-06-22 14:58:51 +00:00
Jb Evain 0b00864125 2010-06-22 Jb Evain <[email protected]>
* Queryable.cs: properly set the constants types in the queryable
	expression tree.


svn path=/trunk/mcs/; revision=159337
2010-06-22 13:30:05 +00:00
Marek Habersack 221a24b979 - 1.1 code removal
- coding style
- minor optimizations

svn path=/trunk/mcs/; revision=159333
2010-06-22 12:26:13 +00:00
Jb Evain 93413c9cb9 fixicate
svn path=/trunk/mcs/; revision=159331
2010-06-22 12:22:03 +00:00
Jb Evain 7d3defbb7b 2010-06-22 Jb Evain <[email protected]>
* EnumerableQuery_T.cs
	* QueryableEnumerable.cs:
		override ToString.


svn path=/trunk/mcs/; revision=159329
2010-06-22 12:13:26 +00:00
Dick Porter fe7af27250 2010-06-22 Dick Porter <[email protected]>
* TextControl.cs, XplatUIX11.cs, XplatUICarbon.cs: Expand paint
	regions slightly so that the full extents of text get painted.
	Fixes bug 464464.


svn path=/trunk/mcs/; revision=159327
2010-06-22 12:07:25 +00:00
Atsushi Eno c1f2ac4419 more eol-style:native.
svn path=/trunk/mcs/; revision=159323
2010-06-22 09:28:08 +00:00
Atsushi Eno 82f4754a64 propset eol-style:native.
svn path=/trunk/mcs/; revision=159322
2010-06-22 09:19:27 +00:00
Jb Evain 70c620e57d update
svn path=/trunk/mcs/; revision=159321
2010-06-22 09:18:44 +00:00
Jb Evain 3249656c6c 2010-06-22 Jb Evain <[email protected]>
* GuidTest.cs: add tests for #616050.


svn path=/trunk/mcs/; revision=159320
2010-06-22 09:13:33 +00:00
Jb Evain 08fdb3fb9a 2010-06-22 Jb Evain <[email protected]>
* Guid.cs: properly throw if the parsed guid has more data after
	parsing a correct guid. Fixes #616050.


svn path=/trunk/mcs/; revision=159319
2010-06-22 09:13:08 +00:00
Atsushi Eno 607b85ba51 2010-06-22 Atsushi Enomoto <[email protected]>
* WebMessageEncodingBindingElement.cs : return MessageVersion in
	  GetProperty<T>(). Fixed WebHttpBinding working.

	* WebMessageEncodingBindingElementTest.cs : add test for
	  GetProperty<MessageVersion>().


svn path=/trunk/mcs/; revision=159316
2010-06-22 08:59:54 +00:00
Marek Safar 6e4a8c823e Add few more accessors
svn path=/trunk/mcs/; revision=159315
2010-06-22 08:55:35 +00:00
Atsushi Eno 6764dbe11c 2010-06-22 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : do not overwrite existing properties
	  which may have been set by preceding behaviors. Fix WSDL output.
	* EnvelopeVersion.cs : fix name and namespace for None property.

	* HttpListenerManager.cs : add some comments.

	* DispatchRuntimeTest.cs : add another line of assertion.


svn path=/trunk/mcs/; revision=159313
2010-06-22 08:46:23 +00:00
Jb Evain 5af7b13766 2010-06-22 Jb Evain <[email protected]>
* ModuleBuilder.cs
	* AssemblyBuilder.cs:
		properly override the new net_4_0 methods in moonlight.


svn path=/trunk/mcs/; revision=159312
2010-06-22 08:18:42 +00:00
Atsushi Eno cff92256e5 2010-06-21 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : use MessageVersion.None for GET messages.
	* HttpChannelListener.cs : remove extra field.
	* HttpListenerManager.cs : check HelpUrl existence (avoid NRE).
	* HttpRequestContext.cs : reduce internal field.


svn path=/trunk/mcs/; revision=159310
2010-06-22 04:03:25 +00:00
Zoltan Varga 868fea0957 2010-06-22 Zoltan Varga <[email protected]>
* mini-llvm.c: Fix a couple memory leaks. Get rid of a few #ifdefs.

svn path=/trunk/mono/; revision=159309
2010-06-22 03:18:53 +00:00
Carlos Alberto Cortez e38c8b8fc4 * TreeNode.cs: Clone should detect the type of the current instance
and properly create the correct object.
	Fixes #613708.

2010-06-21  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=159303
2010-06-22 00:03:08 +00:00
Zoltan Varga f3b6580974 2010-06-22 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Call patch_callsite ()
	to handle the code sequence generated for non-near calls. Fixes #616056.

svn path=/trunk/mono/; revision=159301
2010-06-21 22:40:34 +00:00
Rodrigo Kumpera 9b460752ba 2010-06-21 Rodrigo Kumpera <[email protected]>
* compiler.cs: Use conditional compilation to enable
	tracing to avoid code bloat.

svn path=/trunk/mcs/; revision=159300
2010-06-21 22:01:57 +00:00
Marek Habersack afeab3ef73 - 1.1 code removal
- coding style
- minor optimizations

svn path=/trunk/mcs/; revision=159296
2010-06-21 21:01:26 +00:00
Zoltan Varga c9b4f64cb3 Fix a warning.
svn path=/trunk/mono/; revision=159295
2010-06-21 20:52:57 +00:00
Zoltan Varga 479abd16a9 2010-06-21 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_find_jit_info_ext): Adjust eip in the lmf case too.

svn path=/trunk/mono/; revision=159294
2010-06-21 20:52:50 +00:00
Rodrigo Kumpera 8f2c8508de 2010-06-21 Rodrigo Kumpera <[email protected]>
* RegexBugs.cs: Regression test for #610587.

svn path=/trunk/mcs/; revision=159293
2010-06-21 20:36:17 +00:00
Rodrigo Kumpera 37ab7f11e3 2010-06-21 Rodrigo Kumpera <[email protected]>
* parser.cs: Handle repetition of position assertions.

	Fixes #610587.

svn path=/trunk/mcs/; revision=159287
2010-06-21 20:18:20 +00:00
Rodrigo Kumpera fc322e9315 2010-06-21 Rodrigo Kumpera <[email protected]>
* compiler.cs: Add new internal flag to switch on regexp
	* tracing.
	The code is a statc readonly variable so the JIT can eliminate
	all tracing code during normal runs.

svn path=/trunk/mcs/; revision=159286
2010-06-21 20:18:11 +00:00
Marek Habersack 2d668e9583 2010-06-21 Marek Habersack <[email protected]>
* BaseValidator.cs, BulletedList.cs, Calendar.cs, CheckBox.cs,
    	CheckBoxList.cs, DataGrid.cs, DropDownList.cs, GridView.cs,
    	HyperLink.cs, ImageButton.cs, LinkButton.cs, ListBox.cs,
    	ListControl.cs, Menu.cs, RadioButton.cs, RadioButtonList.cs,
    	RepeatInfo.cs, Repeater.cs, TextBox.cs, TreeView.cs,
    	ValidationSummary.cs, WebControl.cs: use WebControl.IsEnabled
    	instead of Enabled wherever necessary.

svn path=/trunk/mcs/; revision=159280
2010-06-21 18:41:51 +00:00
Zoltan Varga 4ea6676e99 2010-06-21 Zoltan Varga <[email protected]>
* marshal.c (mono_array_to_lparray): Allow MONO_TYPE_PTR. Fixes #615952.

svn path=/trunk/mono/; revision=159278
2010-06-21 18:24:10 +00:00
Carlos Alberto Cortez 56ed81f3b7 2010-06-21 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When setting SelectedIndex and the new selected tab
	bounds are obscured by the scrollers, take into account the self tab
	when looking for the proper bounds to adjust the slider. This is specially
	important when we need to adjust the slider pos for the *last* tab page.
	Fixes #615382.


svn path=/trunk/mcs/; revision=159277
2010-06-21 18:21:41 +00:00
Zoltan Varga 019dee7008 2010-06-21 Zoltan Varga <[email protected]>
* exceptions-x86.c: Add a resume_unwind trampoline for LLVM.

svn path=/trunk/mono/; revision=159276
2010-06-21 18:15:57 +00:00
Marek Safar e3b523af81 2010-06-21 Marek Safar <[email protected]>
* cs-tokenizer.cs, anonymous.cs, expression.cs, statement.cs,
	support.cs, location.cs, cs-parser.jay: Some work on full ast mode.


svn path=/trunk/mcs/; revision=159275
2010-06-21 18:04:48 +00:00
Zoltan Varga e0447a8328 2010-06-21 Zoltan Varga <[email protected]>
* mini-llvm.c (exception_cb): For nested clauses, add the same try range to the
	nesting clause too.
	(mono_llvm_check_method_supported): Enable llvm for methods with nested clauses.
	(mono_llvm_emit_method): Instead of calling 'mono_resume_unwind' directly, call a
	trampoline which saves the context, so changes made to callee saved registers in
	finally clauses are visible to a nesting catch clause.

	* exceptions-amd64.c: Add a resume_unwind trampoline for LLVM.

	* mini-exceptions.c (mono_handle_exception_internal): Fix support for nested clauses
	in LLVM compiled code.
	(mono_handle_exception_internal): Add a 'ctx' argument containing the state after
	the finally handler has ran.

	* mini.h (ResumeState): New structure containing information required to resume
	exception handling after executing LLVM compiled finally clauses.

svn path=/trunk/mono/; revision=159274
2010-06-21 17:51:36 +00:00
Zoltan Varga 519daf43f5 2010-06-21 Zoltan Varga <[email protected]>
* exceptions-amd64.c (get_throw_trampoline): Clean up the amd64 throw trampolines a
	bit, by passing all the registers as one argument.

svn path=/trunk/mono/; revision=159271
2010-06-21 16:55:13 +00:00
Atsushi Eno 975c8846f8 2010-06-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : raise an error if IChannelListener is
	  already opened when it's opening.


svn path=/trunk/mcs/; revision=159267
2010-06-21 13:56:53 +00:00
Jb Evain 5b99e77cb2 2010-06-21 Jb Evain <[email protected]>
* MonoModule.cs
	* Assembly.cs
	* MonoAssembly.cs
	* Module.cs:
		Make Assembly and Module abstract on Moonlight too.


svn path=/trunk/mcs/; revision=159266
2010-06-21 13:25:24 +00:00
Rodrigo Kumpera 337202904d 2010-06-21 Rodrigo Kumpera <[email protected]>
* Environment.cs: bump up corlib version.

svn path=/trunk/mcs/; revision=159265
2010-06-21 13:17:41 +00:00
Rodrigo Kumpera 9e229128b2 2010-06-21 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilderTest.cs: Fix test
	under v4.

svn path=/trunk/mcs/; revision=159264
2010-06-21 13:17:32 +00:00
Rodrigo Kumpera 285afc2f05 2010-06-21 Rodrigo Kumpera <[email protected]>
* Type.cs (StructLayoutAttribute): This raises on v4.

	* MonoType.cs (StructLayoutAttribute): Implement this
	under v4.

svn path=/trunk/mcs/; revision=159263
2010-06-21 13:17:23 +00:00
Rodrigo Kumpera 97dde77036 2010-06-21 Rodrigo Kumpera <[email protected]>
* ConditionalWeakTableTest.cs: Make test more resilient.

svn path=/trunk/mcs/; revision=159262
2010-06-21 13:17:13 +00:00
Rodrigo Kumpera 84fab7762f 2010-06-21 Rodrigo Kumpera <[email protected]>
* object-internals.h: Map new PropertyBuilder fields.

	* reflection.c (property_encode_signature): Emit an instance
	signature if property's callconv is hasthis.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=159261
2010-06-21 13:17:10 +00:00
Jb Evain 1f79a557b1 2010-06-21 Jb Evain <[email protected]>
* CharUnicodeInfo.cs: make static.


svn path=/trunk/mcs/; revision=159260
2010-06-21 12:48:06 +00:00
Jb Evain 7d6e33a820 2010-06-21 Jb Evain <[email protected]>
* CultureNotFoundException.cs: add it to Moonlight.


svn path=/trunk/mcs/; revision=159259
2010-06-21 12:46:49 +00:00
Jb Evain 186420de1f add CultureNotFoundException
svn path=/trunk/mcs/; revision=159258
2010-06-21 12:45:12 +00:00
Jb Evain 1817ef1708 2010-06-21 Jb Evain <[email protected]>
* TimeSpan.cs: add the net_4_0 parsing code in Moonlight.


svn path=/trunk/mcs/; revision=159257
2010-06-21 12:39:15 +00:00
Jb Evain d808b77558 2010-06-21 Jb Evain <[email protected]>
* TimeSpanStyles.cs: add to Moonlight.


svn path=/trunk/mcs/; revision=159256
2010-06-21 12:38:39 +00:00
Jb Evain 6a1488c119 add TimeSpanStyles
svn path=/trunk/mcs/; revision=159255
2010-06-21 12:38:09 +00:00
Jb Evain e255ce82d3 2010-06-21 Jb Evain <[email protected]>
* Guid.cs: bring Parse/ParseExact/TryParse/TryParseExact in
	Moonlight as well.


svn path=/trunk/mcs/; revision=159254
2010-06-21 12:34:59 +00:00
Jb Evain 6af4be168d 2010-06-21 Jb Evain <[email protected]>
* TypeAccessException.cs: TypeAccessException is part of moonlight 4.


svn path=/trunk/mcs/; revision=159253
2010-06-21 12:33:47 +00:00
Jb Evain f0ef60b13d bring TypeAccess in
svn path=/trunk/mcs/; revision=159252
2010-06-21 12:33:10 +00:00
Marek Habersack 91eeb59971 2010-06-21 Marek Habersack <[email protected]>
* HtmlControl.cs: PreProcessRelativeReference deos not
    	atribute-encode the attribute value. Fixes bug #596430

    2010-06-21  Marek Habersack  <[email protected]>

    	* HtmlImageTest.cs: fixed an invalid test.

svn path=/trunk/mcs/; revision=159250
2010-06-21 12:31:12 +00:00
Jb Evain af295470d6 2010-06-21 Jb Evain <[email protected]>
* Version.cs: bring Parse/TypeParse in for moonlight.


svn path=/trunk/mcs/; revision=159249
2010-06-21 12:27:27 +00:00
Jb Evain e8fb1605dc 2010-06-21 Jb Evain <[email protected]>
* Array.cs: implement IStructuralComparable and IStructuralEquatable
	on moonlight as well.


svn path=/trunk/mcs/; revision=159248
2010-06-21 12:23:47 +00:00
Jonathan Chambers 6fd8654e4a 2010-06-21 Jonathan Chambers <[email protected]>
* Add more projects for net_2_0 profile build, and add commented section with all the projects left.

svn path=/trunk/mcs/; revision=159247
2010-06-21 12:19:53 +00:00
Atsushi Eno cdd5a1cb61 2010-06-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : remove TODOs and unused code.
	  Remove comment that is not true.


svn path=/trunk/mcs/; revision=159245
2010-06-21 12:02:08 +00:00
Atsushi Eno 88c7ce630f 2010-06-21 Atsushi Enomoto <[email protected]>
* EndpointAddress.cs : implement remaining ReadFrom() overloads.
	* ServiceHostBase.cs : remove extra TODOs.

	* EndpointAddressTest.cs : add more ReadFrom() tests.


svn path=/trunk/mcs/; revision=159244
2010-06-21 11:49:11 +00:00
Jb Evain 39bc3d7551 2010-06-21 Jb Evain <[email protected]>
* TimeZoneInfo.cs: fix the moonlight and monotouch build.


svn path=/trunk/mcs/; revision=159234
2010-06-21 10:03:44 +00:00
Atsushi Eno d24448c5b9 2010-06-21 Atsushi Enomoto <[email protected]>
* ServiceThrottle.cs : take ChannelDispatcher to validate setters.

	* ServiceThrottlingBehavior.cs : pass channel dispatcher for .ctor.

	* ServiceHostBase.cs : remove extra throttling field.


svn path=/trunk/mcs/; revision=159232
2010-06-21 07:44:07 +00:00
Carlos Alberto Cortez 58776ecf63 2010-06-20 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: Actually draw the focus rectangle - TabControl
	ignores the value of ShowFocusCues. Also, properly compute the bounds
	for the focus rectangle, since it should include the padding of the
	tab page.
	Fixes bits of #515045.


svn path=/trunk/mcs/; revision=159231
2010-06-21 01:34:14 +00:00
Carlos Alberto Cortez 36382bd4a3 * TabControl.cs: Show the tooltip depending on the value
of ShowTooltips.
	Fixes #615376.

2010-06-20  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=159230
2010-06-20 23:02:53 +00:00
Carlos Alberto Cortez 0fd01a2595 2010-06-20 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: Implement ToolTip support for our tab pages.
	Fixes part of #515045.


svn path=/trunk/mcs/; revision=159229
2010-06-20 22:30:36 +00:00
Jb Evain 3ca48ea0b1 2010-06-20 Jb Evain <[email protected]>
* metadata-verify.c: do not consider the assembly invalid if it
	doesn't have a #Blob stream as resource assemblies don't
	necessarily have one.


svn path=/trunk/mono/; revision=159181
2010-06-20 13:14:29 +00:00
Jonathan Pobst 7ed93d2a5e 2010-06-19 Jonathan Pobst <[email protected]>
* FontDialog.cs: Make the 16 colors in the color drop down
	match .Net.  Patch by Thomas Goldstein ([email protected]).
	[Fixes bug #506726]

svn path=/trunk/mcs/; revision=159180
2010-06-19 20:27:37 +00:00
Jonathan Pobst 6d3a2d3da3 2010-06-19 Jonathan Pobst <[email protected]>
* FontDialog.cs: Show all 16 colors in the color drop down
	to match .Net.  Patch by Thomas Goldstein ([email protected]).
	[Fixes bug #508523]

svn path=/trunk/mcs/; revision=159179
2010-06-19 20:18:16 +00:00
Zoltan Varga 60153ded99 2010-06-19 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_generic_trampoline): Increase the buf len a little,
	to avoid an assert.

svn path=/trunk/mono/; revision=159169
2010-06-19 00:59:57 +00:00
Marek Habersack 0d8074909c 2010-06-19 Marek Habersack <[email protected]>
* FormsAuthentication.cs: Authenticate must compare stored and
	newly hashed passwords case-insensitively. Fixes bug #601727

svn path=/trunk/mcs/; revision=159166
2010-06-19 00:16:36 +00:00
Miguel de Icaza daf9939128 2010-06-18 Vincent Povirk <[email protected]>
* TimeZoneInfo.cs: Applied patch from Vincent Povirk that adds
        support for reading time zone information on windows.

        This patch makes TimeZoneInfo.GetSystemTimeZones and
        FindSystemTimeZoneById work based on the registry on non-Unix
        platforms, if the appropriate registry key exists. Mono currently
        reads from /usr/share/zoneinfo, which doesn't exist on Windows.

        This should fix bug 606084.

        It won't fix the Local property on Windows. I think that requires
        a Windows API call to get the id of the local timezone.

        This was modified from the previous version to not check the
        registry on Unix platforms. (Sorry it took me so long to do
        this. I have very little time to spend on Mono-related work.)


svn path=/trunk/mcs/; revision=159163
2010-06-18 23:36:52 +00:00
Marek Habersack e179e50323 2010-06-19 Marek Habersack <[email protected]>
* DataPager.cs: when rendering the ID attribute, use ClientID

    2010-06-18  Marek Habersack  <[email protected]>

    	* NumericPagerField.cs: CreateDataPagers outputs correct page
    	number in query mode. Fixes bug #615315
    	Rendering changes to match .NET

    	* DataPagerField.cs: if query string has been handled and query
    	mode is in effect, return true. Fixes bug #615315

svn path=/trunk/mcs/; revision=159161
2010-06-18 23:01:39 +00:00
Rodrigo Kumpera 80430fed7b 2010-06-18 Rodrigo Kumpera <[email protected]>
* ConditionalWeakTableTest.cs: Fix another test.

svn path=/trunk/mcs/; revision=159159
2010-06-18 22:18:56 +00:00
Rodrigo Kumpera 13273ae066 2010-06-08 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Fix test for variant iface.

svn path=/trunk/mcs/; revision=159158
2010-06-18 22:18:47 +00:00
Rodrigo Kumpera 92d33f2fca 2010-06-18 Rodrigo Kumpera <[email protected]>
* ConditionalWeakTableTest.cs: Fix it.

svn path=/trunk/mcs/; revision=159157
2010-06-18 22:18:37 +00:00
Zoltan Varga 9b7d05248e 2010-06-18 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_klass_info): Mark unloadable classes properly.

svn path=/trunk/mono/; revision=159156
2010-06-18 21:13:51 +00:00
Zoltan Varga 0da78501a4 Fix a warning.
svn path=/trunk/mono/; revision=159155
2010-06-18 20:51:41 +00:00
Zoltan Varga 05269b931c 2010-06-18 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Fix LLVM support.

	* mini-llvm.c: When emitting OP_CALL_HANDLER, avoid branching directly to the landing
	pad, branch to a new bblock instead.

svn path=/trunk/mono/; revision=159154
2010-06-18 20:51:35 +00:00
Neale Ferguson 59b79c6719 Cleanup exception handling (no need for "By Name" anymore) and fix s390x
IMT jump logic.

svn path=/trunk/mono/; revision=159151
2010-06-18 20:41:43 +00:00
Zoltan Varga 2efab0e6a5 2010-06-18 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_method_code): Use cfg->header instead of the header of
	orig_method.

	* exceptions-amd64.c (mono_arch_exceptions_init): Fix fullaot support.

svn path=/trunk/mono/; revision=159148
2010-06-18 19:57:52 +00:00
Chris Toshok 9648189ae6 2010-06-18 Chris Toshok <[email protected]>
patch from Jacob Berkman:

	* src/glib.h (g_mkdir): #define to mkdir
	(g_ascii_strtoull): #define to strtoull

	* src/gmodule.h: add G_BEGIN/END_DECLS

	* src/gstr.c (g_strdupv): new function.

svn path=/trunk/mono/; revision=159147
2010-06-18 18:43:31 +00:00
Atsushi Eno f58223b1e8 2010-06-18 Atsushi Enomoto <[email protected]>
* Rss20ItemFormatter.cs : enabled DateTimeOffset parsing.
	  Fixed bug #615332, patch by Carlos Martin.


svn path=/trunk/mcs/; revision=159145
2010-06-18 17:53:42 +00:00
Gonzalo Paniagua Javier 8182125b3c 2010-06-18 Gonzalo Paniagua Javier <[email protected]>
* Uri.cs: fix serialization for relative URIs. Patch from Greg
	Smolyn. Fixes bug #615320.


svn path=/trunk/mcs/; revision=159143
2010-06-18 17:23:32 +00:00
Atsushi Eno 880083beeb 2010-06-18 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : Do not build more than one ChannelDispatcher
	  for a Binding. Then check duplicate listen URIs, excluding mex ones.

	* ChannelDispatcher.cs : add simple bool field to mark for mex channel.

	* ServiceMetadataExtension.cs : use simple ChannelDispatcher.IsMex field.

	* ServiceHostTest.cs : improved endpoint tests and enabled them.

	* ChannelDispatcherTest.cs : had to disable a test that regressed from
	  validating duplicate listen URI. Possible remedy is described too.


svn path=/trunk/mcs/; revision=159140
2010-06-18 15:33:40 +00:00
Zoltan Varga 97a34b2854 2010-06-18 Zoltan Varga <[email protected]>
* mini-llvm.c (process_bb): Add support for OP_SQRT when using the LLVM mono branch.

svn path=/trunk/mono/; revision=159139
2010-06-18 14:38:03 +00:00
Marek Safar cdd762470d New tests.
svn path=/trunk/mcs/; revision=159138
2010-06-18 14:19:33 +00:00
Marek Safar c65bc1b5ea 2010-06-18 Marek Safar <[email protected]>
* convert.cs, typespec.cs, method.cs: Fixed few more dynamic
	conversion.


svn path=/trunk/mcs/; revision=159137
2010-06-18 14:19:12 +00:00
Marek Safar ba4d3069b2 Updated.
svn path=/trunk/mcs/; revision=159136
2010-06-18 14:16:34 +00:00
Ankit Jain d5b17a8615 Fix bug #615420.
* xbuild/Microsoft.CSharp.targets: Choose the compiler
based on TargetFrameworkVersion instead of ToolsVersion.

svn path=/trunk/mcs/; revision=159135
2010-06-18 13:04:38 +00:00
Rolf Bjarne Kvinge f5ae66d5dd 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* AssemblyInfo.cs: We need to be friends with System.Core now too.

svn path=/trunk/mcs/; revision=159132
2010-06-18 10:57:22 +00:00
Marek Safar da6c8aa160 New tests.
svn path=/trunk/mcs/; revision=159131
2010-06-18 10:24:49 +00:00
Marek Safar b832923bdf 2010-06-18 Marek Safar <[email protected]>
* typemanager.cs, namespace.cs: Report more predefined types and
	imported types collision types as a warning.
	Fixes #537414, #601157


svn path=/trunk/mcs/; revision=159130
2010-06-18 10:24:26 +00:00
Atsushi Eno f5d38f374f 2010-06-18 Atsushi Enomoto <[email protected]>
* ServiceHostTest.cs : fix AddServiceEndpoint tests to make sense.
	  They are mostly not working. Enable working one.

	* TcpTransportBindingElementTest.cs : rename misleading test.


svn path=/trunk/mcs/; revision=159122
2010-06-18 08:50:26 +00:00
Marek Safar 8b58be3496 New tests.
svn path=/trunk/mcs/; revision=159121
2010-06-18 07:20:25 +00:00
Marek Safar ab7a1d6bb8 2010-06-18 Marek Safar <[email protected]>
* generic.cs: Overrides base method constraint can use method type
	parameter.

	* import.cs: Removed redundant cache.


svn path=/trunk/mcs/; revision=159120
2010-06-18 07:20:13 +00:00
Marek Habersack 25838dee95 2010-06-18 Marek Habersack <[email protected]>
* TestRunner.cs, TestWorkerRequest.cs: added support for POST
	requests.

	* StandaloneTest.cs: added support for POST requests. Run items
	are executed in sequence and their results are preserved for the
	next run. If the next run is a POST one, form data is extracted
	from the previous response and used to generate POST data for the
	current one.
	Added a new property, FailedUrlCallbackName, which contains the
	fully qualified method name of the test callback which failed.
	Callback is no longer required to be present.

2010-06-18  Marek Habersack  <[email protected]>

	* FormViewUpdateParameters_Bug607722.cs: added two POST phases -
	Edit and Update.

2010-06-18  Marek Habersack  <[email protected]>

	* standalone-runner.cs: added new command line parameter, --test,
	which selects a single test to run instead of the entire suite. It
	should be passed a fully qualified (without assembly name) type
	name of the test class.

svn path=/trunk/mcs/; revision=159114
2010-06-17 23:49:37 +00:00
Rolf Bjarne Kvinge 41f0288a89 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* MoonIsolatedStorageFile.cs: Add IsEnabled.

svn path=/trunk/mcs/; revision=159113
2010-06-17 23:47:17 +00:00
Rolf Bjarne Kvinge 1302ff5653 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* FileStream.cs: Include a required ctor in NET_2_1 so that it compiles.

svn path=/trunk/mcs/; revision=159112
2010-06-17 23:47:06 +00:00
Rolf Bjarne Kvinge 754903d2cf In class/System.Core:
2010-06-18  Rolf Bjarne Kvinge  <[email protected]>

	* System.Core/Dummy.cs:
	* moonlight_raw_System.Core.dll.sources: Add an internal dummy class to create
	the System.Core namespace.

	* Makefile:
	* moonlight_raw_System.Core.dll.sources: Include the dlr in Moonlight.

In class/System.Core/System.Linq:
2010-06-18  Rolf Bjarne Kvinge  <[email protected]>

	* EnumerableQuery.cs:
	* EnumerableQuery_T.cs:
	* EnumerableExecutor.cs:
	* EnumerableExecutor_T.cs: Include in Moonlight.

	* Enumerable.cs: Moonlight too needs Zip.

In class/System.Core/System.Runtime.CompilerServices:
2010-06-18  Rolf Bjarne Kvinge  <[email protected]>

	* ExecutionScope.cs: This class exists in Moonlight, but isn't supported.

	* StrongBox_T.cs:
	* DynamicAttribute.cs: Include in Moonlight.

svn path=/trunk/mcs/; revision=159111
2010-06-17 23:46:55 +00:00
Rolf Bjarne Kvinge ab0f056e62 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* StringBuilder.cs: Moonlight needs Clear too.

svn path=/trunk/mcs/; revision=159110
2010-06-17 23:46:43 +00:00
Rolf Bjarne Kvinge 3c7f1a5e26 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* src/eglib-remap.h: Remap g_ptr_array_remove_fast too.

svn path=/trunk/mono/; revision=159107
2010-06-17 23:16:37 +00:00
Geoff Norton 5f0a9831be 2010-06-17 Geoff Norton <[email protected]>
* sgen-archdep.h: sgen support for arm linux and darwin.


svn path=/trunk/mono/; revision=159106
2010-06-17 20:45:09 +00:00
Geoff Norton e04f335738 2010-06-17 Geoff Norton <[email protected]>
* mini-arm.h:
        * exceptions-arm.c: Move the UCONTEXT macros to mono-sigcontext.h so they 
        can be used by sgen.


svn path=/trunk/mono/; revision=159105
2010-06-17 20:44:26 +00:00
Geoff Norton 4aea99662e 2010-06-17 Geoff Norton <[email protected]>
* mono-sigcontext.h: Add arm variants.


svn path=/trunk/mono/; revision=159104
2010-06-17 20:42:47 +00:00
Zoltan Varga d717176fd5 2010-06-17 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_klass_info): Handle type load exceptions.

	* method-to-ir.c (mono_method_to_ir): Avoid a crash if mono_method_get_header ()
	fails.

svn path=/trunk/mono/; revision=159103
2010-06-17 20:39:52 +00:00
Zoltan Varga 6ff3c339ae 2010-06-17 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_header): Avoid a crash if the declaring method
	has a faulty header.

svn path=/trunk/mono/; revision=159102
2010-06-17 20:39:45 +00:00
Zoltan Varga 6499036590 2010-06-17 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_x86_throw_corlib_exception): Negate the decrement of
	the ip done by throw_exception (), it is not needed for corlib exceptions.

svn path=/trunk/mono/; revision=159101
2010-06-17 20:17:19 +00:00
Zoltan Varga 16b8410bc5 2010-06-17 Zoltan Varga <[email protected]>
* VirtualMachine.cs Connection.cs: Group events received together into an EventSet,
	like it is done in JDI. Add a GetNextEventSet () method.

svn path=/trunk/mcs/; revision=159084
2010-06-17 19:40:43 +00:00
Rodrigo Kumpera 4dda6ba1e0 2010-06-17 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (mono_gc_wbarrier_value_copy_bitmap): Work in a similar
	way to mono_gc_wbarrier_value_copy but takes a bitmap that
	indicates which slots need a write barrier.

2010-06-17 Rodrigo Kumpera  <[email protected]>

	* method-to-ir.c (mono_emit_wb_aware_memcpy): Simplify this function.
	Call new jit icall mono_gc_wbarrier_value_copy_bitmap for vt wbarrier
	of size > 5 words. This support fast barriers for value types up to
	256/512 bytes which	beyond that the copying itself is the major issue.

	* method-to-ir.c (mini_emit_stobj): The intrinsic version is safe
	for gsharing, so use it.

	This eliminate all calls to mono_value_copy from managed code in
	gmcs, fsharp and ipy.

	This gives a 2% perf boost on ipy and 1% on gmcs over previous patches.

	Even thou a lot of mono_value_copy calls were eliminated from fsharp,
	performance kept

	* mini.c (mini_init): Register new icall.

svn path=/trunk/mono/; revision=159083
2010-06-17 19:24:18 +00:00
Rodrigo Kumpera e3cb42209b 2010-06-17 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_emit_wb_aware_memcpy): Handle nested valuetypes.
	This eliminates 2% of mono_value_copy calls on ipy and 12% on fsharp.

svn path=/trunk/mono/; revision=159082
2010-06-17 19:24:09 +00:00
Rodrigo Kumpera eb2cd968ff 2010-06-17 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mini_emit_stobj): Don't call mono_value_copy for small
	value types as the overhead is huge. Manually expand it up to 5 words to
	avoid code bloat.

	This improves gmcs times by 5% and unmodified binary-tree by 78%. The later
	is an exception that performance is dominated by mono_value_copy.

	This puts sgen about 5% ahead of boehm in terms of wall-clock on a Core2Quad.

svn path=/trunk/mono/; revision=159081
2010-06-17 19:24:01 +00:00
Marek Safar 81dfccbd14 2010-06-17 Marek Safar <[email protected]>
* generic.cs: Propagate type only inflate downwards.


svn path=/trunk/mcs/; revision=159078
2010-06-17 17:36:57 +00:00
Geoff Norton 7764ea4e03 fix the mac ppc build
svn path=/trunk/mono/; revision=159077
2010-06-17 17:21:53 +00:00
Carlos Alberto Cortez 89aed1cdd9 2010-06-17 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When calculating the size of our tabs use
	MinimumTabWidth only if SizeMode is other than Fixed.
	Patch by Thomas Goldstein ([email protected]).


svn path=/trunk/mcs/; revision=159076
2010-06-17 17:11:30 +00:00
Miguel de Icaza 79a72debb1 2010-06-17 Miguel de Icaza <[email protected]>
* DataConverter.cs: On bracketed cases, save the position as well,
	like we do in the repeat case without brackets.  Fixes #595929

svn path=/trunk/mcs/; revision=159075
2010-06-17 16:29:13 +00:00
Zoltan Varga 0f6fdfc751 2010-06-17 Zoltan Varga <[email protected]>
* mini-llvm.c (process_call): Disable LLVM for calls to generic class init
	trampolines on x86, since those have their own cconv.

svn path=/trunk/mono/; revision=159074
2010-06-17 14:39:20 +00:00
Zoltan Varga 835a6deedd 2010-06-17 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_exceptions_init): Implement the llvm throw corlib
	exception trampolines.

	* tramp-x86.c: Add xdebug info for a few trampolines.

	* mini-llvm.c: Set the name of the arguments.

svn path=/trunk/mono/; revision=159073
2010-06-17 14:33:34 +00:00
Atsushi Eno 995bc567f8 2010-06-17 Atsushi Enomoto <[email protected]>
* MtomMessageEncodingBindingElement.cs: it's base is abstract, use 
	  context.GetInnerProperty<T>().


svn path=/trunk/mcs/; revision=159068
2010-06-17 11:34:55 +00:00
Atsushi Eno f5456a249a 2010-06-17 Atsushi Enomoto <[email protected]>
* Binding.cs : enable simpler MessageVersion code (issued got fixed).
	* MtomMessageEncodingBindingElement.cs, TransportBindingElement.cs,
	  TextMessageEncodingBindingElement.cs : return MessageVersion in
	  GetProperty<T>().

	* HttpTransportBindingElementTest.cs, CustomBindingTest.cs :
	  anohter couple of MessageVersion tests.


svn path=/trunk/mcs/; revision=159066
2010-06-17 11:24:58 +00:00
Marek Safar ee29984d28 New tests.
svn path=/trunk/mcs/; revision=159063
2010-06-17 11:02:14 +00:00
Marek Safar 1b975aec04 2010-06-17 Marek Safar <[email protected]>
A fix for bug #614955
	* method.cs: Do not reject binary dynamic operators.


svn path=/trunk/mcs/; revision=159062
2010-06-17 11:01:07 +00:00
Atsushi Eno 1f4684cd40 2010-06-17 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : retrieve MessageVersion and raise an error
	  if there is none. (Check this earlier than building a listener.)

	* ChannelDispatcher.cs : MessageVersion check is moved to
	  ServiceHostBase.

	* ServiceMetadataExtension.cs : overwrite MessageVersion to use None.
	  (The only special case I found for ChannelDispatcher.MessageVersion.)

	* CustomBindingTest.cs : add tests for MessageVersion check on Open().

	* MetadataExchangeBindingsTest.cs : make sure that special casing of
	  MessageVersion does not happen at this layer.


svn path=/trunk/mcs/; revision=159061
2010-06-17 10:48:55 +00:00
Atsushi Eno 2a864db5d5 2010-06-17 Atsushi Enomoto <[email protected]>
* Binding.cs : add commented-out code for MessageVersion replacement.
	* TransactionFlowBindingElement.cs : implement (almost dummy).


svn path=/trunk/mcs/; revision=159060
2010-06-17 10:48:06 +00:00
Marek Safar 8c43adc465 2010-06-17 Marek Safar <[email protected]>
* typespec.cs: Internal types have no generic parameters.
	Fixes #615022.


svn path=/trunk/mcs/; revision=159059
2010-06-17 10:45:48 +00:00
Marek Safar 4b26d81007 2010-06-17 Marek Safar <[email protected]>
A fix for bug #614955
	* cs-parser.jay: Correctly set expression mode for default parameter
	values.


svn path=/trunk/mcs/; revision=159058
2010-06-17 10:33:08 +00:00
Marek Safar eb0ba61d13 Add dynamic transform for base types
svn path=/trunk/mcs/; revision=159057
2010-06-17 10:12:03 +00:00
Marek Safar 1682b382d4 2010-06-17 Marek Safar <[email protected]>
A fix for bug #615023
	* ecore.cs: Resolve dynamic namespace and keyword collision in the
	favour of the keyword.


svn path=/trunk/mcs/; revision=159056
2010-06-17 09:25:39 +00:00
Marek Safar 90ac8a7cab typo
svn path=/trunk/mcs/; revision=159055
2010-06-17 09:01:42 +00:00
Marek Safar 0a615a1dec 2010-06-17 Marek Safar <[email protected]>
A fix for bug #614917
	* convert.cs: Allow more undocumented 0 like values to enum type 
	conversions.


svn path=/trunk/mcs/; revision=159054
2010-06-17 08:54:17 +00:00
Marek Safar c13b05a44a New tests.
svn path=/trunk/mcs/; revision=159051
2010-06-17 07:19:57 +00:00
Marek Safar fb0c9e80c5 2010-06-17 Marek Safar <[email protected]>
* generic.cs, method.cs: Inflate copied type parameters from base
	class or explicit interfaces.
	
	* convert.cs: Fixed conversion between two type parameters.
	Fixes #614471


svn path=/trunk/mcs/; revision=159050
2010-06-17 07:19:22 +00:00
Marek Habersack 63cc5053cc 2010-06-17 Marek Habersack <[email protected]>
* RootBuilder.cs: both LINK and META HTML tags must be represented
	as instances of HtmlGenericControl. Fixes bug #603541

svn path=/trunk/mcs/; revision=159046
2010-06-17 00:56:12 +00:00
Zoltan Varga c5b94fae57 2010-06-17 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_cond_system_exception): Pass the ip of to throw_corlib_trampoline
	using a block address if using the LLVM mono branch.

	* exceptions-amd64.c (mono_arch_exceptions_init): Add new LLVM throw corlib exception
	trampolines.

svn path=/trunk/mono/; revision=159044
2010-06-17 00:28:24 +00:00
Miguel de Icaza 4fe8fb883b 2010-06-16 Miguel de Icaza <[email protected]>
* Random.cs: Do not call Math.Abs blindly when we get an int
	value, as Math.Abs (Int32.MinValue) throws an overflow exception,
	and our constructor uses Environment.TickCount which means that
	eventually we will get a crash. 

	Fixes #605797

svn path=/trunk/mcs/; revision=159042
2010-06-16 23:39:02 +00:00
Miguel de Icaza 923d1f3bfc Fix for 607585
svn path=/trunk/mcs/; revision=159041
2010-06-16 23:28:09 +00:00
Marek Habersack 23c3114ca3 2010-06-16 Marek Habersack <[email protected]>
* FormView.cs: row values must be retrieved with inclusion of
    	keys. Fixes bug #607722

svn path=/trunk/mcs/; revision=159037
2010-06-16 21:49:55 +00:00
Gonzalo Paniagua Javier d40bb3a606 2010-06-16 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: DELETE allows an entity body.
	Fixes bug #614483.


svn path=/trunk/mcs/; revision=159036
2010-06-16 20:24:45 +00:00
Marek Safar 9755688993 removed debugging leftover
svn path=/trunk/mcs/; revision=159027
2010-06-16 15:21:49 +00:00
Marek Safar 3dd00bd44b 2010-06-16 Marek Safar <[email protected]>
* membercache.cs, convert.cs: Correctly resize an array used by
	GetUserOperator.


svn path=/trunk/mcs/; revision=159026
2010-06-16 15:13:28 +00:00
Marek Safar 609355a8a8 New test.
svn path=/trunk/mcs/; revision=159024
2010-06-16 14:28:32 +00:00
Marek Safar 36215d9d34 2010-06-16 Marek Safar <[email protected]>
* CSharpInvokeMemberBinder.cs: Construct MemberAccess for simple
	name expressions.


svn path=/trunk/mcs/; revision=159023
2010-06-16 14:27:57 +00:00
Marek Safar 0f7c4f5be5 2010-06-15 Marek Safar <[email protected]>
A fix for bug #599601
	* dynamic.cs, ecore.cs: A new flag for dynamic resolver to ignore
	generated member access left expression.


svn path=/trunk/mcs/; revision=159022
2010-06-16 14:22:57 +00:00
Atsushi Eno a5eefdf642 2010-06-16 Atsushi Enomoto <[email protected]>
* Atom10ItemFormatter.cs : Fix reading of "source" element to not
	  expect feed element (ReadFrom() expects it). Fixed bug #614596.


svn path=/trunk/mcs/; revision=159019
2010-06-16 12:42:09 +00:00
Carlos Alberto Cortez 9203abab62 2010-06-16 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: New test for two instances calling
	Remove.


svn path=/trunk/mcs/; revision=159018
2010-06-16 12:20:46 +00:00
Carlos Alberto Cortez f8cd3fd6db 2010-06-16 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Remove should catch all the exceptions
	caused by DirectoryInfo.Delete and throw an IsolatedStorageException
	instead.


svn path=/trunk/mcs/; revision=159017
2010-06-16 12:20:38 +00:00
Atsushi Eno 944d6f7146 2010-06-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : do not try to parse xml:base="".
	  Fixed bug #608391.

2010-06-16  Atsushi Enomoto  <[email protected]>

	* XmlTextReaderTests.cs : added test for bug #608391.


svn path=/trunk/mcs/; revision=159013
2010-06-16 11:24:09 +00:00
Marek Safar 79d0dbe63d 2010-06-16 Marek Safar <[email protected]>
* expression.cs: Dispatch dynamic invocation solely on left
	expression type.


svn path=/trunk/mcs/; revision=159010
2010-06-16 10:38:54 +00:00
Marek Safar d660494ca0 Comment.
svn path=/trunk/mcs/; revision=159009
2010-06-16 10:35:33 +00:00
Marek Safar 96a4b6bf3e Removed mscorlib 4 check for dynamic
svn path=/trunk/mcs/; revision=159008
2010-06-16 09:33:45 +00:00
Marek Safar 4a471d2e98 update
svn path=/trunk/mcs/; revision=159007
2010-06-16 08:53:28 +00:00
Marek Safar e1d057dca6 Track mcs changes
svn path=/trunk/mcs/; revision=159006
2010-06-16 08:38:57 +00:00
Marek Safar 9dce5cd0ef New test.
svn path=/trunk/mcs/; revision=159005
2010-06-16 08:32:10 +00:00
Marek Safar 27d75d3ee8 2010-06-16 Marek Safar <[email protected]>
* expression.cs, statement.cs: Always persist explicit cast
	semantic at expression level.


svn path=/trunk/mcs/; revision=159004
2010-06-16 08:29:53 +00:00
Ankit Jain 2a30dc3706 * SolutionParser.cs (ParseSolution): Use ProjectReference's
filename to locate if no guid is specified or project can't
be found by the guid.

svn path=/trunk/mcs/; revision=158985
2010-06-15 22:55:16 +00:00
Jonathan Chambers a3ef4c8294 2010-06-15 Jonathan Chambers <[email protected]>
* Tds.cs: Add {} around default switch case.
	* OdbcDataReader.cs: Remove unneeded cast on ref parameter

svn path=/trunk/mcs/; revision=158984
2010-06-15 22:48:09 +00:00
Jonathan Chambers 37d8cf2f6b 2010-06-15 Jonathan Chambers <[email protected]>
* Add more projects for net_2_0 profile build.

svn path=/trunk/mcs/; revision=158981
2010-06-15 22:24:14 +00:00
Gonzalo Paniagua Javier f4ce05c1ce 2010-06-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: 307 does not change request method.


svn path=/trunk/mcs/; revision=158980
2010-06-15 21:58:30 +00:00
Zoltan Varga c425f1597d 2010-06-15 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_get_cie_program): Define this for powerpc too.

svn path=/trunk/mono/; revision=158975
2010-06-15 20:43:43 +00:00
Zoltan Varga e4d6c14d9e 2010-06-15 Zoltan Varga <[email protected]>
* mini-llvm.c (process_bb): Add a missing CHECK_FAILURE.

svn path=/trunk/mono/; revision=158971
2010-06-15 20:09:51 +00:00
Zoltan Varga 8351d72278 2010-06-15 Zoltan Varga <[email protected]>
* mini.c (mini_init): Remove some of the llvm restrictions, they are no longer needed.

	* method-to-ir.c (mono_method_to_ir): Enable fast virtual calls when using llvm.

	* mini-trampolines.c (mono_llvm_vcall_trampoline): Rewrite this to use one vtable
	trampoline per vtable slot index. The slot, along with the 'this' argument is enough
	to identify the vtable slot address plus the method which needs to be compiled.

	* mini.c (mini_get_vtable_trampoline): Use one vtable trampoline per vtable slot when
	using llvm.

svn path=/trunk/mono/; revision=158965
2010-06-15 19:52:56 +00:00
Zoltan Varga ee42c2e538 2010-06-15 Zoltan Varga <[email protected]>
* mini-x86.c (get_call_info_internal): Change the managed calling convention so
	'this' is always passed as the first argument, before the vtype ret arg. This
	simplifies get_this_arg_reg () and LLVM integration.

svn path=/trunk/mono/; revision=158963
2010-06-15 19:34:56 +00:00
Zoltan Varga b613d3e9f4 2010-06-15 Zoltan Varga <[email protected]>
* mini-amd64.c (get_call_info): Fix the handling of MONO_TYPE_TYPEDBYREF after
	the latest changes.

svn path=/trunk/mono/; revision=158962
2010-06-15 19:34:49 +00:00
Zoltan Varga b873036d76 Revert part of r158956.
svn path=/trunk/mono/; revision=158961
2010-06-15 18:38:55 +00:00
Zoltan Varga 1bb6dd847b 2010-06-15 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_generic_trampoline): Emit unwind info for
	these trampolines.

	* mini-x86.c (mono_arch_get_cie_program): Implement this for x86.

svn path=/trunk/mono/; revision=158960
2010-06-15 18:37:13 +00:00
Zoltan Varga b6b35940a5 2010-06-15 Zoltan Varga <[email protected]>
* mini-llvm.c: Fix compilation with llvm 2.6.

svn path=/trunk/mono/; revision=158958
2010-06-15 17:36:32 +00:00
Marek Safar b0ce5b49b2 2010-06-15 Marek Safar <[email protected]>
* expression.cs, attribute.cs: Enable generic type parameters
	attribute check.


svn path=/trunk/mcs/; revision=158957
2010-06-15 17:05:51 +00:00
Zoltan Varga 3fd0cfabea 2010-06-15 Zoltan Varga <[email protected]>
* mini-amd64.c (CallInfo): Fix the position of the vret_arg_index field.
	(get_call_info): Don't place the vret arg second when using varargs, since the
	sig cookie could come before it.

svn path=/trunk/mono/; revision=158956
2010-06-15 17:05:02 +00:00
Zoltan Varga 21e69a790b Fix another compilation problem.
svn path=/trunk/mono/; revision=158955
2010-06-15 17:00:16 +00:00
Zoltan Varga 98115197df 2010-06-15 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Fix the build if LLVM_MONO_BRANCH is not
	defined.

svn path=/trunk/mono/; revision=158953
2010-06-15 16:46:49 +00:00
Veerapuram Varadhan e394c58e7b 2010-06-15 Veerapuram Varadhan <[email protected]>
** Fixes #613087
	* Tds.cs (ProcessLoginAck): Fix server version being compared in
	the switch-case.
	* Tds70.cs (BuildPreparedParameters, BuildProcedureCall): Set
	* default
	precision to 18 as used by MS.Net when connecting to SqlServer
7.0.
	(BuildExec, ExecRPC): Marked protected in order to be used by
Tds80
	and henceforth.
	* Tds80.cs (Execute): Separated from Tds70 to include Tds80
	* changes.

svn path=/trunk/mcs/; revision=158951
2010-06-15 16:12:36 +00:00
Zoltan Varga d14655eba0 2010-06-15 Zoltan Varga <[email protected]>
* mini-amd64.c (get_call_info): Change the managed calling convention so 'this'
	is always passed as the first argument, before the vtype ret arg. This simplifies
	get_this_arg_reg () and LLVM integration.

svn path=/trunk/mono/; revision=158950
2010-06-15 15:04:29 +00:00
Zoltan Varga fe2f72dfcc 2010-06-15 Zoltan Varga <[email protected]>
* src/gunicode.c: Applied patch from Hib Eris <[email protected]>. use "windows.h"
	instead of "Windows.h".

svn path=/trunk/mono/; revision=158949
2010-06-15 15:01:12 +00:00
Zoltan Varga 361d04695e 2010-06-15 Zoltan Varga <[email protected]>
* dtest.cs dtest-app.cs: Removed, moved to mcs/Mono.Debugger.Soft.

svn path=/trunk/mono/; revision=158948
2010-06-15 14:57:42 +00:00
Zoltan Varga cdb4328dfc 2010-06-15 Zoltan Varga <[email protected]>
* *: Add testing infrastructure by moving the tests from mono/tests.

svn path=/trunk/mcs/; revision=158947
2010-06-15 14:56:29 +00:00
Marek Safar 818b1e2d26 New tests.
svn path=/trunk/mcs/; revision=158946
2010-06-15 14:53:52 +00:00
Jonathan Pryor 45fac3fa04 * System/Convert.cs: Instead of manually checking for NaN, Infinity,
etc., use `checked` expressions to generate OverflowExceptions.  
	  Ensure that OverflowExceptions are generated for needed types.  
	  Fixes #596339
	* Test/System/ConvertTest.cs: Add tests for #596339.

svn path=/trunk/mcs/; revision=158945
2010-06-15 13:55:05 +00:00
Marek Safar f38dac6c21 2010-06-15 Marek Safar <[email protected]>
A fix for bug #612146
	* generic.cs: Don't use fixed array for inflated type parameter
	interface constraints.


svn path=/trunk/mcs/; revision=158944
2010-06-15 13:12:48 +00:00
Zoltan Varga 245d910458 2010-06-15 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Disable the TestGlobalMethods () test since it's been failing
	for a long time.

svn path=/trunk/mcs/; revision=158939
2010-06-15 11:37:29 +00:00
Ankit Jain afdaa99dd4 * xbuild/*/Microsoft.Common.targets (AssemblySearchPaths): Add
$(ReferencePath) to the search paths. This can be used to add or
override assembly search paths.

svn path=/trunk/mcs/; revision=158937
2010-06-15 10:56:32 +00:00
Marek Safar 7674f7142c 2010-06-15 Marek Safar <[email protected]>
* typespec.cs: ElementTypeSpec has to use its own ITypeDefinition.
	
	* report.cs: Unwrap elements for related symbols reporting.


svn path=/trunk/mcs/; revision=158935
2010-06-15 10:27:34 +00:00
Marek Safar 692085ad27 Fixes build
svn path=/trunk/mcs/; revision=158934
2010-06-15 10:08:45 +00:00
Marek Safar 826e589a04 2010-06-15 Marek Safar <[email protected]>
A fix for bug #612796
	* cs-tokenizer.cs: Offset correctly keywords the first character
	comparison.
	

svn path=/trunk/mcs/; revision=158927
2010-06-15 09:15:26 +00:00
Atsushi Eno 2eb86de94d 2010-06-15 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : accept TCP channel on ReceiveRequest(). This
	  fixes standalone tcp-transport/sample[svc|cli]5.exe test in olive
	  (but not TcpTransportBindingElementTest.SimpleDuplexStreamed.)

	* TcpTransportBindingElementTest.cs : add connection tests (imported
	  from standalone olive tests), one is disabled for breakage.


svn path=/trunk/mcs/; revision=158924
2010-06-15 08:43:10 +00:00
Marek Safar 70d76c00e5 New test
svn path=/trunk/mcs/; revision=158922
2010-06-15 07:57:26 +00:00
Marek Safar cf2e2a943c 2010-06-15 Marek Safar <[email protected]>
A fix for bug #613397
	* expression.cs: Removed too aggressive object initializers
	optimization.
	

svn path=/trunk/mcs/; revision=158921
2010-06-15 07:57:13 +00:00
Marek Safar 6aa77c54bb Removed extra cast
svn path=/trunk/mcs/; revision=158920
2010-06-15 07:47:32 +00:00
Marek Safar c23719bc81 flush comments
svn path=/trunk/mcs/; revision=158917
2010-06-15 07:25:46 +00:00
Marek Safar 03ef541ddb Imported accessors cannot have type parameters.
svn path=/trunk/mcs/; revision=158916
2010-06-15 07:15:58 +00:00
Marek Safar f0165100ff Updated.
svn path=/trunk/mcs/; revision=158915
2010-06-15 07:09:56 +00:00
Marek Safar a424964df7 New test.
svn path=/trunk/mcs/; revision=158914
2010-06-15 07:09:33 +00:00
Marek Safar 7b25356ada 2010-06-15 Marek Safar <[email protected]>
* parameter.cs, property.cs, membercache.cs, decl.cs, iterators.cs,
	anonymous.cs, expression.cs, support.cs, method.cs, pending.cs,
	class.cs, cs-parser.jay: Simplify parsing of accessors by removing
	any intermediate steps and fake nodes, also saves few MBs of memory.



svn path=/trunk/mcs/; revision=158913
2010-06-15 07:09:13 +00:00
Atsushi Eno 9afba05efd 2010-05-28 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : lock read and write respectively.
	  Finally fixed bug #567672 ('IsOneWay=false' case).

	* CallbackBehaviorAttributeTest.cs : added test for bug #567672
	  ('IsOneWay=false' case).


svn path=/trunk/mcs/; revision=158912
2010-06-15 05:45:38 +00:00
Marek Habersack 7eedf1309c 2010-06-15 Marek Habersack <[email protected]>
* ResourceExpressionBuilder.cs: cast the return value of
	GetLocalResourceObject to appropriate type. Fixes bug #607766

	* TemplateControlCompiler.cs: made CreateConvertToCall internal
	static, so that it can be used from ResourceExpressionBuilder

svn path=/trunk/mcs/; revision=158909
2010-06-15 01:11:02 +00:00
Marek Habersack 6828b3a1c8 2010-06-15 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: fail gracefully if control to validate
	is not found (webForm.ValidatorGetValue and
	webForm.Page_ClientValidate). Fixes bug #609478

svn path=/trunk/mcs/; revision=158905
2010-06-14 23:25:07 +00:00
Rodrigo Kumpera 3cdd183cd5 2010-06-14 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Add support for .ctor intrinsics.

	* method-to-ir.c (mini_emit_inst_for_ctor): New function for .ctor intrinsics.
	For now just call simd intrinsics. This makes "x[0] = new Vector4f (10)"
	translate into much nicer code.

svn path=/trunk/mono/; revision=158903
2010-06-14 21:27:32 +00:00
Geoff Norton f90c1d2480 oops
svn path=/trunk/mono/; revision=158898
2010-06-14 19:31:02 +00:00
Zoltan Varga 759b2ca4ce 2010-06-14 Zoltan Varga <[email protected]>
* mini-llvm.c (sig_to_llvm_sig_full): Add a 'sinfo' out argument which returns
	parameter index information. Use this to simplify a lot of code.

svn path=/trunk/mono/; revision=158895
2010-06-14 18:13:15 +00:00
Geoff Norton cb8866ba83 2010-06-14 Geoff Norton <[email protected]>
* dyn_load.c: Fix one other place where l_addr could be null on
	bionic.

svn path=/trunk/mono/; revision=158891
2010-06-14 17:39:53 +00:00
C.J. Adams-Collier 33142e1b47 first pass at adding RegexOption.Compiled to constructor in tests
svn path=/trunk/mcs/; revision=158888
2010-06-14 17:36:45 +00:00
C.J. Adams-Collier 44575f21f6 added some noise to the gitignore filter
svn path=/trunk/mcs/; revision=158887
2010-06-14 17:36:25 +00:00
Sebastien Pouliot 70447669c9 2010-06-16 Sebastien Pouliot <[email protected]>
* certmgr.cs: Fix case where DSA is used in SSL certificate (rare 
	enough that this was never found/reported). Suggest novell's 
	bugzilla (instead of ximian)


svn path=/trunk/mcs/; revision=158883
2010-06-14 17:23:38 +00:00
Jonathan Pryor 579187dec3 * Makefile.am (EXTRA_DIST): Add runtime.h.
svn path=/trunk/mono/; revision=158882
2010-06-14 14:59:57 +00:00
Zoltan Varga bdb0ce2001 2010-06-14 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_decode_fde): Handle augmentions using a loop.

svn path=/trunk/mono/; revision=158880
2010-06-14 14:39:47 +00:00
Zoltan Varga 8f31d9f037 2010-06-14 Zoltan Varga <[email protected]>
* object.c (build_imt_slots): Don't crash if callbacks.get_imt_trampoline is not set.

svn path=/trunk/mono/; revision=158879
2010-06-14 14:39:40 +00:00
Sebastien Pouliot 59d527b123 2010-06-14 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Track latest SL4 release


svn path=/trunk/mcs/; revision=158874
2010-06-14 12:31:41 +00:00
Atsushi Eno b93ea71419 2010-06-14 Atsushi Enomoto <[email protected]>
* NetTcpBinding.cs : remove pointless EnvelopeVersion field.
	* ClientRuntimeChannel.cs : disable MessageId output. It does not
	  happen on TCP transport. Added FIXME comment to verify this.

	  This fix makes non-first-time calls from mono client working.


svn path=/trunk/mcs/; revision=158872
2010-06-14 12:12:03 +00:00
Atsushi Eno da02d7672c 2010-06-14 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs, MessageProcessingContext.cs :
	  ChannelDispatcher may be null, so check its availability before
	  using it. Don't use it, when possible.
	* DispatchOperation.cs : remove unused member.


svn path=/trunk/mcs/; revision=158871
2010-06-14 11:45:04 +00:00
Atsushi Eno dc3a99c440 2010-06-14 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : do not create XmlSchemaInfo instance every time
	  it validates a node.

	* XmlSchemaValidator.cs : limit validity initialization. In some
	  cases it failed to set Invalid.


svn path=/trunk/mcs/; revision=158867
2010-06-14 07:35:04 +00:00
Atsushi Eno f577f78eec 2010-06-14 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : fill Validity. Fixed bug #613682.


svn path=/trunk/mcs/; revision=158866
2010-06-14 06:55:54 +00:00
Atsushi Eno e84398552b Fix bug #612191, patch by Carlos Martin.
svn path=/trunk/mcs/; revision=158865
2010-06-14 06:20:36 +00:00
Geoff Norton 262b1c435b 2010-05-13 Geoff Norton <[email protected]>
* fakepoll.h: Added for OSX
	* serial.c:
	* signal.c: poll on OSX is broken, so we use a select based
	implementation instead.

svn path=/trunk/mono/; revision=158861
2010-06-13 21:59:48 +00:00
Zoltan Varga 021d7026a1 Fix some warnings.
svn path=/trunk/mono/; revision=158856
2010-06-13 04:00:43 +00:00
Zoltan Varga b6dbd81bc9 2010-06-12 Zoltan Varga <[email protected]>
* aot-compiler.c (compile_method): Add a 'depth' parameter to add_generic_class too
	to fix infinite generic recursion. Fixes #612702.

svn path=/trunk/mono/; revision=158853
2010-06-12 18:16:14 +00:00
Jonathan Chambers 70578b3d74 2010-06-11 Jonathan Chambers <[email protected]>
* X509Certificate2Collection.cs: Add {} around default switch case.
	* HttpListenerRequest.cs: Assign default value to variable before using.

svn path=/trunk/mcs/; revision=158852
2010-06-12 01:07:30 +00:00
Jonathan Chambers 8c5f97d5a4 2010-06-10 Jonathan Chambers <[email protected]>
* Add System.Security.csproj and new configurations for Mono.Security and System.

svn path=/trunk/mcs/; revision=158846
2010-06-11 21:18:35 +00:00
Jonathan Pobst 0a47521aba Fix msvc build.
svn path=/trunk/mono/; revision=158845
2010-06-11 21:13:40 +00:00
Jonathan Chambers fea103462f 2010-06-10 Jonathan Chambers <[email protected]>
* Fix jay steps in System.Xml

svn path=/trunk/mcs/; revision=158842
2010-06-11 19:43:11 +00:00
Jonathan Chambers 07129ffcb2 2010-06-10 Jonathan Chambers <[email protected]>
* Add start of building net_2_0 profile to MSBuild based build.


svn path=/trunk/mcs/; revision=158840
2010-06-11 17:17:16 +00:00
Jonathan Pryor cf4dbf2579 * Monodoc/ecma-provider.cs: Reduce memory requirements when assembling
ECMA documentation.  The problem was that we parse all the XML files
	  in order to extract //summary and //remarks members, and then stored
	  the XmlNodes for these members.  XmlNode keeps a ref to the creating
	  XmlDocument, thus keeping the XmlNode around requires keeping the
	  entire XmlDocument around; result: ~350+MB RAM is needed to assemble
	  netdocs.zip (in ../../docs).  To fix, import the XmlNodes that we
	  actually care about into an otherwise empty XmlDocument, so that we 
	  only save the nodes we need. Result: ~32MB RAM is needed.
	  Fixes #602560.

svn path=/trunk/mcs/; revision=158835
2010-06-11 15:14:36 +00:00
Pete Johanson 425ddf78de 2010-06-11 Pete Johanson <[email protected]>
* Makefile: Don't use the mono key for signing.
        * Assembly/AssemblyInfo.cs: Use the ECMA key for signing.


svn path=/trunk/mcs/; revision=158834
2010-06-11 14:54:28 +00:00
Marek Safar 8ebf989fc7 2010-06-11 Marek Safar <[email protected]>
* modifiers.cs, rootcontext.cs, location.cs, cs-parser.jay: More
	precise modifiers parsing.


svn path=/trunk/mcs/; revision=158833
2010-06-11 14:01:20 +00:00
Zoltan Varga 8f042c28c9 2010-06-11 Zoltan Varga <[email protected]>
* object.c (mono_method_add_generic_virtual_invocation): Fix the computation of the
	IMT slot which is passed to callbacks.get_imt_trampoline.

svn path=/trunk/mono/; revision=158819
2010-06-11 00:43:45 +00:00
Zoltan Varga b2bc7dd011 2010-06-11 Zoltan Varga <[email protected]>
* object.c: Use a callback to create IMT trampolines, allowing the usage of one
	imt trampoline per imt slot when using LLVM.

svn path=/trunk/mono/; revision=158816
2010-06-10 22:28:52 +00:00
Zoltan Varga 23660f406d 2010-06-11 Zoltan Varga <[email protected]>
* object.c: Use a callback to create IMT trampolines, allowing the usage of one
	imt trampoline per imt slot when using LLVM.

svn path=/trunk/mono/; revision=158815
2010-06-10 22:28:46 +00:00
Jonathan Pryor dcee87076c * mini/mini.c (mini_cleanup): Call mono_runtime_shutdown().
Fixes #438454.
	* metdata/object.c (mono_runtime_run_main): Move 
	  fire_process_exit_event() into runtime.c:mono_runtime_shutdown().
	* metdata/runtime.c: Added; adds mono_runtime_shutdown(), which invokes
	  the AppDomain.ProcessExit event in all AppDomains.
	* tests/Makefile.am: Add test-process-exit target.
	* tests/bug-438454.cs: Added; test case for #438454.
	* tests/bug-438454.exe.stdout.expected: Added; expected output when
	  executing bug-438454.exe, to test the ordering of the
	  AppDomain.ProcessExit event wrt ThreadPool disposal.

svn path=/trunk/mono/; revision=158809
2010-06-10 21:01:08 +00:00
Marek Safar 72e4b41287 Fixes build.
svn path=/trunk/mcs/; revision=158807
2010-06-10 18:37:08 +00:00
Jonathan Pryor 6607f4df1e Fix date. oops.
svn path=/trunk/mcs/; revision=158792
2010-06-10 15:09:38 +00:00
Jonathan Pryor f4fb5f6c4f * Mono.Documentation/monodocs2html.cs: Regenerate all index.{opts.ext}
files if any of the source .xml files have changed.  This allows
	  new <summary/> values to be inserted into the index.{opts.ext}
	  files, instead of the index files being "stale".  Fixes #573121.

svn path=/trunk/mcs/; revision=158790
2010-06-10 15:08:35 +00:00
Zoltan Varga 0b15e41ae1 Clear unloaded types on appdomain unload.
svn path=/trunk/mono/; revision=158759
2010-06-10 03:13:18 +00:00
Jonathan Pryor 36792c1664 Remove debugging code.
svn path=/trunk/mcs/; revision=158753
2010-06-09 20:40:40 +00:00
Jonathan Pryor c0f82831a8 * Options.cs: Remove use of 'var' so that C# 2.0 can be used.
svn path=/trunk/mcs/; revision=158752
2010-06-09 20:38:44 +00:00
Jonathan Pryor 208ec7f48b * Mono.Options_test.dll.sources: Add additional sources.
* Mono.Options/Options.cs: Fix RemoveItem() and SetItem() so that 
	  removing by index and using the numeric indexer work as expected.
	* Test/Mono.Options/OptionSetTest.cs: Make OptionSetTest inherit from 
	  ListContract so that the IList<T> and ICollection<T> interfaces are 
	  fully tested.
	* Test/Mono.Options/BaseRocksFixture.cs, 
	  Test/Mono.Options/CollectionContract.cs, 
	  Test/Mono.Options/ListContract.cs: Added; interface contract tests 
	  from Cadenza.

svn path=/trunk/mcs/; revision=158750
2010-06-09 20:28:01 +00:00
Jonathan Pryor 79e8435e20 * System.Collections.ObjectModel/KeyedCollection.cs: Make
KeyedCollection.InsertItem() exception safe, so that if the index is 
	  invalid (negative or too large) we don't add the entry to the 
	  underlying Dictionary.
	* Test/System.Collections.ObjectModel/KeyedCollectionTest.cs: Verify 
	  exception safety of Insert().

svn path=/trunk/mcs/; revision=158748
2010-06-09 20:19:58 +00:00
Marek Safar 4071a344bd Updated.
svn path=/trunk/mcs/; revision=158744
2010-06-09 19:12:35 +00:00
Marek Safar b2a3a00a75 2010-06-09 Marek Safar <[email protected]>
* cs-tokenizer.cs, anonymous.cs, expression.cs, cs-parser.jay:
	Fixed few shift/reduce conflicts.


svn path=/trunk/mcs/; revision=158743
2010-06-09 19:03:25 +00:00
Marek Safar 55c4f6f6cf Fixed more missing locations
svn path=/trunk/mcs/; revision=158736
2010-06-09 12:40:17 +00:00
Marek Safar 066c53aa88 More locations missing
svn path=/trunk/mcs/; revision=158735
2010-06-09 12:40:05 +00:00
Marek Safar f8d7b54c7b 2010-06-09 Marek Safar <[email protected]>
* typemanager.cs, parameter.cs, dynamic.cs, typespec.cs,
	expression.cs, ecore.cs, cs-parser.jay: Fully parse composed type
	specifiers and stop using string in AST.


svn path=/trunk/mcs/; revision=158732
2010-06-09 10:43:06 +00:00
Marek Safar 528a59ecbe Fixes build.
svn path=/trunk/mcs/; revision=158731
2010-06-09 08:58:39 +00:00
Marek Safar 1825e49c3d fixes build
svn path=/trunk/mcs/; revision=158730
2010-06-09 08:56:51 +00:00
Jonathan Chambers 0f73abefc9 2010-06-08 Jonathan Chambers <[email protected]>
* Add gacutil and sn to basic profile build.

svn path=/trunk/mcs/; revision=158725
2010-06-09 03:32:14 +00:00
Jonathan Chambers 0fd760ec5d 2010-06-08 Jonathan Chambers <[email protected]>
* Build jay and run before gmcs and System.Xml. The basic profile should build now.

svn path=/trunk/mcs/; revision=158724
2010-06-09 02:41:00 +00:00
Ankit Jain da3d13a52a * ToolTask.cs: Don't check for tool's existence, as we might
not have the full path.

svn path=/trunk/mcs/; revision=158680
2010-06-08 20:20:19 +00:00
Carlos Alberto Cortez 3648983129 2010-06-08 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Ugh, accidentally forgot to commit the changes for
	in the previous commit.


svn path=/trunk/mcs/; revision=158673
2010-06-08 17:04:16 +00:00
Jonathan Pryor 9d1a973059 * Mono.Options/Options.cs: Don't overly split option values, only split
to obtain the maximum number of desired values.  This better supports 
	  e.g. DOS paths in multi-value values, e.g. '-DPATH=C:\tmp' would now 
	  create the values {"PATH", "C:\tmp"} instead of {"PATH", "C", "\tmp"}.
	* Test/Mono.Options/OptionSetTest.cs: Add tests for constrained value 
	  splitting.

svn path=/trunk/mcs/; revision=158672
2010-06-08 17:01:47 +00:00
Jonathan Pryor 71d1db748c * System/String.cs: Fix String.Split(String[],int,StringSplitOptions)
so that:
	  - it properly obeys the 'count' parameter; Fixes #601772.
	  - "...".Split(new[]{"."}, 2, StringSplitOptions.RemoveEmptyEntries).Length==0
	  - "A..".Split (new String[] { "." }, 2, StringSplitOptions.RemoveEmptyEntries) == new[]{"A"}
	  - Remove duplicative array handling code by using List<String>.
	* Test/System/StringTest.cs: Add tests for #601772 (i.e. take 
	  SplitStringChars(), change all the chars to Strings, and things 
	  should work).

svn path=/trunk/mcs/; revision=158670
2010-06-08 15:26:10 +00:00
Zoltan Varga ca56169a25 2010-06-08 Zoltan Varga <[email protected]>
* liveness.c (visit_bb): Make the component vregs of long vars volatile as well.
	Fixes #612206.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=158668
2010-06-08 15:17:06 +00:00
Marek Safar ba8a0bab9e Fixed more wrong locations.
svn path=/trunk/mcs/; revision=158667
2010-06-08 15:05:44 +00:00
Marek Safar abb8731dfa Removed unused class
svn path=/trunk/mcs/; revision=158666
2010-06-08 14:36:56 +00:00
Jonathan Chambers cd004d49dc 2010-06-07 Jonathan Chambers <[email protected]>
* Copy *.dll.sources to *.dll.msbuild.sources during build to change '/' to '\' for Windows.

svn path=/trunk/mcs/; revision=158620
2010-06-08 03:12:52 +00:00
Carlos Alberto Cortez 36c7d7e3cb * IsolatedStorageFileTest.cs: New test for GetUserStoreForSite.
2010-06-07  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158613
2010-06-08 00:00:34 +00:00
Carlos Alberto Cortez fa59c4519d * IsolatedStorageFile.cs: GetUserStoreForSite is only throwing a
NotSupportedException.
	* IsolatedStorageFileStream.cs: Implement Flush by calling the base impl.

2010-06-07  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158612
2010-06-07 23:59:34 +00:00
Marek Safar e4651705e3 2010-06-07 Marek Safar <[email protected]>
* typemanager.cs, eval.cs, iterators.cs, anonymous.cs, expression.cs
	method.cs, class.cs, delegate.cs, cs-parser.jay, driver.cs, visit.cs
	enum.cs: Hold location of predefined types.
	

svn path=/trunk/mcs/; revision=158598
2010-06-07 18:59:55 +00:00
Carlos Alberto Cortez 943e8bd67d * IsolatedStorageFileTest.cs: New test for DeleteFile.
2010-06-07  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158594
2010-06-07 17:46:29 +00:00
Carlos Alberto Cortez 1535508307 * IsolatedStorageFile.cs: Remove and DeleteFile must report any
error found in our System.IO classes as IsolatedStorageException.

2010-06-07  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158593
2010-06-07 17:45:40 +00:00
Jonathan Chambers cc2db802be 2010-06-07 Jonathan Chambers <[email protected]>
* Add start of MSBuild based build.

svn path=/trunk/mcs/; revision=158592
2010-06-07 16:39:50 +00:00
Jonathan Chambers bfd65fd818 2010-06-07 Jonathan Chambers <[email protected]>
* Add start of MSBuild based build.

svn path=/trunk/mcs/; revision=158591
2010-06-07 16:39:11 +00:00
Carlos Alberto Cortez 3583a493d4 2010-06-07 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: Update our tests to catch/report the new
	exceptions fired in 4.0, as well as a new test to assert that
	GetDirectoryNames fires an ArgumentException if '..' is passed as part
	of the path.


svn path=/trunk/mcs/; revision=158590
2010-06-07 15:01:11 +00:00
Carlos Alberto Cortez 6b07b11036 2010-06-07 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Update the exceptions we are firing in 4.0
	for CreateDirectory, GetFileNames and GetDirectoryNames.


svn path=/trunk/mcs/; revision=158589
2010-06-07 15:01:00 +00:00
Marek Safar da67bddfba Fix completion results.
svn path=/trunk/mcs/; revision=158584
2010-06-07 09:05:27 +00:00
Marek Safar 7cdadb7ec6 New test.
svn path=/trunk/mcs/; revision=158583
2010-06-07 08:36:17 +00:00
Marek Safar ae7f42f5b3 2010-06-07 Marek Safar <[email protected]>
A fix for bug #610878
	* pending.cs: Clone cached list before modifying.


svn path=/trunk/mcs/; revision=158582
2010-06-07 08:35:01 +00:00
Zoltan Varga 47c1469b8a 2010-06-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_check_method_supported): Only disable llvm for nested clauses.

svn path=/trunk/mono/; revision=158572
2010-06-06 20:59:33 +00:00
Zoltan Varga 6e5203b809 2010-06-06 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Move the LLVM checks to a function in mini-llvm.c.

svn path=/trunk/mono/; revision=158571
2010-06-06 20:48:14 +00:00
Zoltan Varga fae9d436fe 2010-06-06 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Don't set *exc to NULL, it is now
	done by the caller.

svn path=/trunk/mono/; revision=158570
2010-06-06 20:35:26 +00:00
Zoltan Varga 48bf0a3851 2010-06-06 Zoltan Varga <[email protected]>
* mini.c (mono_jit_runtime_invoke): Initialize *exc to NULL before calling the wrapper,
	so it doesn't have to do it.

svn path=/trunk/mono/; revision=158569
2010-06-06 20:35:20 +00:00
Carlos Alberto Cortez eac37095c0 2010-06-06 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageSecurityState.cs: Make our .ctor internal - so we
	don't expose a public .ctor at all.


svn path=/trunk/mcs/; revision=158568
2010-06-06 18:29:18 +00:00
Carlos Alberto Cortez d03437b48f 2010-06-06 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: Include check for paths outside our
	storage root in our tests for MoveFile, MoveDirectory and CopyFile.


svn path=/trunk/mcs/; revision=158567
2010-06-06 18:22:51 +00:00
Carlos Alberto Cortez 6d55768aa7 2010-06-06 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Our 4.0 methods receiving a path should
	either return false or throw an IsolatedStorageException if the path
	refers to a directory outside the storage root.


svn path=/trunk/mcs/; revision=158566
2010-06-06 18:21:35 +00:00
Zoltan Varga 9229d3a283 2010-06-06 Zoltan Varga <[email protected]>
* helpers.c (mono_disassemble_code): Flush stdout, so the output from the spawned
	process does not mix with ours.

svn path=/trunk/mono/; revision=158553
2010-06-06 00:48:58 +00:00
Zoltan Varga a42951a461 2010-06-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Refactor this giant function into smaller
	ones.

svn path=/trunk/mono/; revision=158551
2010-06-06 00:44:27 +00:00
Zoltan Varga c2e2ee0995 2010-06-06 Zoltan Varga <[email protected]>
* mini-llvm.c method-to-ir.c ir-emit.h: When using the llvm mono branch, allow
	loads/stores which can throw exceptions inside clauses.

svn path=/trunk/mono/; revision=158550
2010-06-06 00:05:10 +00:00
Zoltan Varga c389037255 2010-06-05 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Fix support for finally clauses with more than
	one ENDFINALLY.

	* mini.c (mini_init): Register mono_resume_unwind as an icall.

svn path=/trunk/mono/; revision=158547
2010-06-05 20:33:49 +00:00
Zoltan Varga 12efdadb8e Move the general info into ns-...xml so monodoc can display it.
svn path=/trunk/mcs/; revision=158544
2010-06-05 19:01:26 +00:00
Zoltan Varga 246d17e038 Reflect namespace changes.
svn path=/trunk/mcs/; revision=158543
2010-06-05 18:50:52 +00:00
Zoltan Varga 0d290517b3 Reflect the namespace change.
svn path=/trunk/mcs/; revision=158542
2010-06-05 18:44:11 +00:00
Zoltan Varga e6b6e35669 2010-06-05 Zoltan Varga <[email protected]>
* docs/Makefile (MONO_DIRS): Add Mono.Debugger.Soft.

svn path=/trunk/mcs/; revision=158541
2010-06-05 18:42:41 +00:00
Zoltan Varga 5e77341c17 Move the documentation to Documentation/en.
svn path=/trunk/mcs/; revision=158540
2010-06-05 18:42:28 +00:00
Mark Probst b10f025f3c 2010-06-05 Mark Probst <[email protected]>
* sgen-los.c: Keep bitmaps on chunk usage in LOS sections to speed
        up freeing.

svn path=/trunk/mono/; revision=158530
2010-06-05 09:50:43 +00:00
Mark Probst d2de7cc9a7 2010-06-05 Mark Probst <[email protected]>
* sgen-gc.c, sgen-los.c: New LOS allocator that allocates large
        segments of memory at once, to reduce the number of mmap/munmap
        calls.

svn path=/trunk/mono/; revision=158529
2010-06-05 09:45:31 +00:00
Mark Probst 21e4378b0f 2010-06-05 Mark Probst <[email protected]>
* sgen-gc.c, sgen-protocol.c, sgen-protocol.h: Protocol degraded
        allocations and distinguish between normal, degraded and pinned
        allocations.

2010-06-05  Mark Probst  <[email protected]>

        * tools/sgen/sgen-grep-binprot.c: Updated for degraded and pinned
        allocations.

svn path=/trunk/mono/; revision=158528
2010-06-05 08:47:48 +00:00
Mark Probst d9687a8c5f 2010-06-05 Mark Probst <[email protected]>
* sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c: Make degraded
        allocations count toward major collections and trigger major
        collections from degraded allocations if appropriate.

svn path=/trunk/mono/; revision=158527
2010-06-05 08:29:32 +00:00
Mark Probst 53643c1db7 2010-06-05 Mark Probst <[email protected]>
* sgen-marksweep.c (ms_get_empty_block): Update heap boundaries.

svn path=/trunk/mono/; revision=158526
2010-06-05 08:21:25 +00:00
Mark Probst 21243e5563 2010-06-05 Mark Probst <[email protected]>
* sgen-gc.c: Enable mark&sweep again.

svn path=/trunk/mono/; revision=158501
2010-06-05 01:30:41 +00:00
Mark Probst 84d0da0861 2010-06-05 Mark Probst <[email protected]>
* sgen-gc.c: Increase the maximum small object size to 8000 bytes.

svn path=/trunk/mono/; revision=158499
2010-06-05 01:18:32 +00:00
Mark Probst b74a8fe12d 2010-06-05 Mark Probst <[email protected]>
* sgen-gc.c, sgen-major-copying.c, sgen-marksweep.c: Have only one
        major heap allowance for minor collections, instead of two
        separate ones for small and large objects.  This reduces the
        number of major collections.

svn path=/trunk/mono/; revision=158498
2010-06-05 01:16:36 +00:00
Marek Habersack 96b54e28f0 2010-06-05 Marek Habersack <[email protected]>
* PageRouteHandler.cs: implemented

2010-06-05  Marek Habersack  <[email protected]>

	* UrlRoutingModule.cs: 4.0 doesn't do the UrlRouting.axd magic, it
	simply remaps the current handler to the one obtained from the
	route.

2010-06-05  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: expression evaluation results are
	wrapped in a Convert.ConvertTo* call or a typecast.

	* RouteValueExpressionBuilder.cs: implemented

	* RouteUrlExpressionBuilder.cs: added missing custom attributes

svn path=/trunk/mcs/; revision=158497
2010-06-04 22:47:30 +00:00
Marek Habersack 4bcb71eec8 WIP: page routing
svn path=/trunk/mcs/; revision=158496
2010-06-04 22:47:15 +00:00
Marek Habersack bef65db6a2 2010-05-29 Marek Habersack <[email protected]>
* mono-dl.c (mono_dl_build_path): modify the logic to try the
    	use the passed name to build the path without suffix on the first
    	run (handles situations like "somelib.so.1.0" ->
    	"libsomelib.so.1.0") and, on subsequent run, append the platform
    	suffix(es) (handles situations like "libsomething" ->
    	"libsomething.so"). Fixes bugs #588143 and #610009

svn path=/trunk/mono/; revision=158490
2010-06-04 19:26:12 +00:00
Marek Safar ab0b3a864d 2010-06-04 Marek Safar <[email protected]>
* convert.cs, typespec.cs, expression.cs: Start using array member
	kind.
	
	* import.cs, report.cs: Report better error message for runtime
	reflection bugs.



svn path=/trunk/mcs/; revision=158487
2010-06-04 17:40:42 +00:00
Jb Evain b672376504 2010-06-04 Jb Evain <[email protected]>
* ConditionalWeakTable.cs: make sure we use positive indexes.


svn path=/trunk/mcs/; revision=158486
2010-06-04 16:27:11 +00:00
Marek Habersack ac432afc78 2010-06-04 Marek Habersack <[email protected]>
* icall.c (ves_icall_MonoType_GetEvent): be case insensitive is
	the BFLAGS_IgnoreCase is raised

svn path=/trunk/mono/; revision=158484
2010-06-04 16:14:35 +00:00
Carlos Alberto Cortez 59380ef8ce 2010-06-04 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: New test case for Remove.


svn path=/trunk/mcs/; revision=158479
2010-06-04 15:26:35 +00:00
Carlos Alberto Cortez cb9c0127a4 2010-06-04 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: In CheckOpen check that the directory for
	the current storage is still valid, and throw an exception if needed.
	Also, in the static Remove method call Directory.Delete only if the
	directory exists, to avoid throwing an exception there.


svn path=/trunk/mcs/; revision=158478
2010-06-04 15:26:27 +00:00
Zoltan Varga ac1a3427ab 2010-06-04 Zoltan Varga <[email protected]>
* dtest.cs dtest-app.cs: Add tests for StackFrame.GetVisibleVariables ().

svn path=/trunk/mono/; revision=158476
2010-06-04 14:42:36 +00:00
Zoltan Varga 91acaa89b6 2010-06-04 Zoltan Varga <[email protected]>
* StackFrame.cs (GetVisibleVariables): New method to return the set of variables
	visible at the current stack frame.

svn path=/trunk/mcs/; revision=158474
2010-06-04 14:40:54 +00:00
Jb Evain 5af967c953 update MEF to preview 9
svn path=/trunk/mcs/; revision=158472
2010-06-04 14:04:42 +00:00
Jb Evain 005d57a46e 2010-06-04 Jb Evain <[email protected]>
* Exception.cs: add stub for SerializeObjectState.


svn path=/trunk/mcs/; revision=158471
2010-06-04 14:03:06 +00:00
Jb Evain d47a66b4d1 2010-06-04 Jb Evain <[email protected]>
* monotouch_System.Web.Services.dll.sources: add HttpEncoder from
	System.Web. Fixes the build.


svn path=/trunk/mcs/; revision=158470
2010-06-04 14:02:08 +00:00
Jb Evain 065ef48c9e 2010-06-04 Jb Evain <[email protected]>
* HttpEncoder.cs: only net_4_0 uses System.Web.Configuration.


svn path=/trunk/mcs/; revision=158469
2010-06-04 14:01:38 +00:00
Marek Safar 64a55b9a1c Fixed.
svn path=/trunk/mcs/; revision=158468
2010-06-04 13:27:02 +00:00
Marek Safar 14510dfe8f 2010-06-04 Marek Safar <[email protected]>
* membercache.cs, convert.cs, nullable.cs, expression.cs: Optimize
	user defined conversion probing and simplify user conversion for
	nullabe types. Fixes #610940.


svn path=/trunk/mcs/; revision=158467
2010-06-04 13:17:47 +00:00
Atsushi Eno 3a5274bacd 2010-06-04 Atsushi Enomoto <[email protected]>
* CallbackBehaviorAttributeTest.cs : test recent changes on operation
	  descriptions, message directions, client operations and so on.


svn path=/trunk/mcs/; revision=158457
2010-06-04 09:38:03 +00:00
Atsushi Eno eed5cddbae 2010-06-04 Atsushi Enomoto <[email protected]>
* OperationDescription.cs : add contract origin flags to identify
	  which operation should be used for client operations (and dispatch
	  too in the future).
	* MessageDescription.cs : add IsRequest flag to indicate if it is
	  for request or not.
	* ServiceContractGenerator.cs, ContractDescriptionGenerator.cs :
	  make use of above changes.
	* ContractDescription.cs : don't create extraneous ClientOperations
	  in irrelevant message direction.

	* EndpointDispatcher.cs, BaseMessagesFormatter.cs:
	  Now MessageDescription.Direction is differentiated from "IsRequest"
	  property, to precisely identify request/reply in callbacks. Also
	  now we don't have to create extraneous ContractDescription for
	  callbacks.

	* DuplexClientRuntimeChannel.cs : do not create and use extraneous
	  ContractDescription for callback contract. Non-callback ones now
	  works fine.

	This fixes service part of bug #567672, IsOneWay = true case.


svn path=/trunk/mcs/; revision=158454
2010-06-04 08:40:36 +00:00
Ankit Jain 6f3f4932a7 * Import.cs (EvaluateProjectPath): Add a hack to support multiple
msbuild extension paths. Paths can be specified via the environment
variable - $MSBuildExtensionsPath . ~/.config/xbuild/tasks is also
checked for extensions, besides the default location.
This explicitly looks for a "$(MSBuildExtensionsPath)" in the import
expression and tries to replace that with possible paths, till it
finds the file. In rest of the project, the property would resolve
to its single default value.

svn path=/trunk/mcs/; revision=158433
2010-06-03 21:56:33 +00:00
Sebastien Pouliot 448edff49a 2010-06-03 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Don't open internals to System.ServiceModel.Routing
	for Moonlight build


svn path=/trunk/mcs/; revision=158424
2010-06-03 17:28:14 +00:00
Zoltan Varga f1c4cfc577 2010-06-03 Zoltan Varga <[email protected]>
* dwarfwriter.c: Update after the mono_debug_lookup_locals () changes.

	* debugger-agent.c (method_commands_internal): Ditto. Return scope information for
	locals.

svn path=/trunk/mono/; revision=158421
2010-06-03 17:24:57 +00:00
Zoltan Varga df54984ae3 2010-06-03 Zoltan Varga <[email protected]>
* debug-mono-symfile.c (mono_debug_symfile_lookup_locals): Rewrite this so it returns
	all information in a single structure. Return information about scopes as well.

	* mono-debug.c (mono_debug_lookup_locals): Ditto.

svn path=/trunk/mono/; revision=158420
2010-06-03 17:24:50 +00:00
Zoltan Varga 5d45d99e57 Revert a change commited by mistake.
svn path=/trunk/mono/; revision=158418
2010-06-03 16:54:38 +00:00
Jérémie Laval fe983225ad 2010-06-03 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * ConcurrentBag.cs: Add a add hint cache for faster steal retrieval.
   Initialize lazily the underlying CyclicDeque.

In class/corlib/Test/System.Collections.Concurrent/:
   * CollectionStressTestHelper.cs: Bump remove test repeat to 1000.
   Use a local variable for tracking status and only update the global one
   at the end.

svn path=/trunk/mcs/; revision=158417
2010-06-03 16:51:22 +00:00
Zoltan Varga 0f6465866b 2010-06-03 Zoltan Varga <[email protected]>
* debugger-agent.c (appdomain_unload): Clear all breakpoint instances in the dying
	appdomain.

svn path=/trunk/mono/; revision=158415
2010-06-03 16:40:50 +00:00
Atsushi Eno 3966750e29 2010-06-03 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : Now callback contract methods are
	  also reflected into OperationDescription as well as those from non-
	  callback contract. Callback methods have reverse MessageDirection,
	  so adjust them.
	* ContractDescription.cs, ServiceEndpoint.cs, TypedMessageConverter.cs :
	  A bit of renaming / reflect method call changes.

	* EndpointDispatcher.cs, DispatchRuntime.cs, ClientRuntime.cs :
	  now Callback[Dispatch|Client]Runtime properties are always filled
	  so that users can configure the callback runtimes (not sure such
	  configured runtimes work fine yet, but it is a required step).
	* InputOrReplyRequestProcessor.cs : instead of HasCallbackRuntime
	  hack, use CallbackClientRuntime.CallbackContractType for checking
	  callback existence.

	* ClientProxyGenerator.cs : CreateProxyType now carefully considers
	  requested proxy type, contract type and callback contract type.
	  i.e. now the resulting proxy has implemented methods for callbacks
	  that are also filled at ContractDescription.
	* ClientRuntimeChannel.cs : reflect some method call changes.


svn path=/trunk/mcs/; revision=158412
2010-06-03 16:33:31 +00:00
Sebastien Pouliot 522a6f72a3 2010-06-03 Sebastien Pouliot <[email protected]>
* SerializationMap.cs: NET_2_1 needs cast too


svn path=/trunk/mcs/; revision=158410
2010-06-03 15:55:57 +00:00
Sebastien Pouliot 4091aeb5dc 2010-06-03 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorage.cs: Make class internal so we can access it
	from System.Window.dll to adjust quotas


svn path=/trunk/mcs/; revision=158407
2010-06-03 15:28:59 +00:00
Ankit Jain d19aa0fed0 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Engine.cs (GetLoadedProject): Return null if project not found.
	Based on a patch by Dale Ragan <[email protected]> .

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* EngineTest.cs (TestGetLoadedProject1):
	Patch by Dale Ragan <[email protected]> .

svn path=/trunk/mcs/; revision=158400
2010-06-03 12:55:04 +00:00
Jb Evain 10efe7ca96 2010-06-03 Jb Evain <[email protected]>
* Assembly.cs: add net_4_0's PermissionSet property.


svn path=/trunk/mcs/; revision=158396
2010-06-03 10:56:08 +00:00
Jb Evain f342142c07 2010-06-03 Jb Evain <[email protected]>
* AppDomain.cs: add net_4_0's PermissionSet property.


svn path=/trunk/mcs/; revision=158395
2010-06-03 10:55:37 +00:00
Jb Evain 83dc82203d disable broken tests on net_4_0
svn path=/trunk/mcs/; revision=158391
2010-06-03 10:08:38 +00:00
Jb Evain 6632706621 update version number
svn path=/trunk/mcs/; revision=158390
2010-06-03 10:02:01 +00:00
Jb Evain 19521a7718 add SafeSerializationEventArgs
svn path=/trunk/mcs/; revision=158389
2010-06-03 09:41:46 +00:00
Jb Evain 59007a0dcc 2010-06-03 Jb Evain <[email protected]>
* SafeSerializationEventArgs.cs: add new type in net_4_0.


svn path=/trunk/mcs/; revision=158388
2010-06-03 09:41:32 +00:00
Jb Evain 4722599809 add ISafeSerializationData
svn path=/trunk/mcs/; revision=158387
2010-06-03 09:34:41 +00:00
Jb Evain 3017bd9c81 2010-06-03 Jb Evain <[email protected]>
* ISafeSerializationData.cs: add new interface in net_4_0.


svn path=/trunk/mcs/; revision=158386
2010-06-03 09:34:24 +00:00
Marek Safar c1de2295f7 New test.
svn path=/trunk/mcs/; revision=158384
2010-06-03 07:41:06 +00:00
Marek Safar 6ec568e946 2010-06-03 Marek Safar <[email protected]>
A fix for bug #610919
	* parameter.cs, property.cs, cs-parser.jay: Use independent implicit
	parameters for explicit event accessors. Anonymous method capturing
	won't otherwise work for event implicit parameter.


svn path=/trunk/mcs/; revision=158383
2010-06-03 07:34:45 +00:00
Atsushi Eno 0e452537e7 2010-06-03 Atsushi Enomoto <[email protected]>
* BackupEndpointCollection.cs
	  BackupEndpointElement.cs
	  BackupListCollection.cs
	  FilterElement.cs
	  FilterElementCollection.cs
	  FilterTableEntryCollection.cs
	  FilterTableEntryElement.cs
	  NamespaceElement.cs
	  NamespaceElementCollection.cs
	  RoutingExtensionElement.cs
	  RoutingSection.cs
	  SoapProcessingExtensionElement.cs : implement to get working.


svn path=/trunk/mcs/; revision=158382
2010-06-03 06:32:09 +00:00
Atsushi Eno f59b0d7eb6 2010-06-03 Atsushi Enomoto <[email protected]>
* AssemblyInfo.cs : add InternalVisibleTo(sys.sm.routing).


svn path=/trunk/mcs/; revision=158381
2010-06-03 06:30:37 +00:00
Marek Habersack c8e70f1fc5 2010-06-03 Marek Habersack <[email protected]>
* Parameter.cs, ControlParameter.cs, SessionParameter.cs,
	CookieParameter.cs, FormParameter.cs, ProfileParameter.cs,
	QueryStringParameter.cs: Evaluate is 'protected internal virtual'
	in 4.0.

	* RouteParameter.cs: implemented.

svn path=/trunk/mcs/; revision=158371
2010-06-02 23:12:20 +00:00
Marek Habersack 4a49acbd3b 2010-06-02 Marek Habersack <[email protected]>
* ViewStateMode.cs: added

	* Control.cs: implemented 4.0 ViewStateMode

svn path=/trunk/mcs/; revision=158368
2010-06-02 21:36:29 +00:00
Marek Habersack 0ada47adf6 2010-06-02 Marek Habersack <[email protected]>
* Page.cs: implemented 4.0 properties AutoPostBackControl and
	RouteData

svn path=/trunk/mcs/; revision=158367
2010-06-02 21:36:20 +00:00
Geoff Norton 3c1d95a53e 2010-06-02 Geoff Norton <[email protected]>
* appdomain.c: If we are running with IOMAP we might
        have been provided a string that isn't case-aware for our file-
        system, so we need to use io-portability to check if the file
        exists, rather than a simple glib test.

        Fixes #608849

svn path=/trunk/mono/; revision=158366
2010-06-02 20:57:42 +00:00
Marek Habersack 6a4765982a Don't link against System.Design
svn path=/trunk/mcs/; revision=158361
2010-06-02 19:24:32 +00:00
Marek Habersack 15e158a0e1 - updated obsolete types/members
- added missing type/member attributes
- use generic types in Page wherever possible

svn path=/trunk/mcs/; revision=158360
2010-06-02 19:04:08 +00:00
Marek Safar 78dae268df flush
svn path=/trunk/mcs/; revision=158359
2010-06-02 18:53:16 +00:00
Marek Safar b1f36241f0 New tests.
svn path=/trunk/mcs/; revision=158358
2010-06-02 18:51:21 +00:00
Marek Safar c21996da71 2010-06-02 Marek Safar <[email protected]>
A fix for bug #610088
	* nullable.cs, expression.cs, statement.cs, method.cs, ecore.cs:
	Ignore overrides for base overload resolution as for non-base
	expressions and convert the best candidate to closest override
	afterwards.
	

svn path=/trunk/mcs/; revision=158357
2010-06-02 18:50:58 +00:00
Carlos Alberto Cortez 999644f3ce 2010-06-02 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: Augment our test cases for MoveFile and
	MoveDirectory.


svn path=/trunk/mcs/; revision=158356
2010-06-02 18:30:45 +00:00
Carlos Alberto Cortez 347e1a2ac6 2010-06-02 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Check for empty paths and existing paths in
	both MoveFile and MoveDirectory, just as we do in CopyFile. Finally
	cover our IO calls with a try-catch block, so all the IOException
	instances are reported as IsolatedStorageException.


svn path=/trunk/mcs/; revision=158355
2010-06-02 18:30:40 +00:00
Marek Safar eb54cab964 New tests.
svn path=/trunk/mcs/; revision=158351
2010-06-02 16:30:12 +00:00
Rodrigo Kumpera 2b69d64926 2010-06-02 Rodrigo Kumpera <[email protected]>
* invalid_generic_constraints_with_loop.il:
	* valid_dependent_generic_constraint_and_boxing.il:
		Regression tests for #610625.

svn path=/trunk/mono/; revision=158343
2010-06-02 14:34:25 +00:00
Rodrigo Kumpera a4d7311195 2010-06-02 Rodrigo Kumpera <[email protected]>
* verify.c (verify_generic_parameters): Verify if
	there are not loops in constraints.

svn path=/trunk/mono/; revision=158342
2010-06-02 14:34:17 +00:00
Rodrigo Kumpera 56787aa4e6 2010-06-02 Rodrigo Kumpera <[email protected]>
* verify.c (is_compatible_boxed_valuetype): Constaints
	must be recursively checked if one generic argument
	has a constraint on another.

	Fixes #610625.

svn path=/trunk/mono/; revision=158341
2010-06-02 14:34:09 +00:00
Marek Habersack f9722ebc36 2010-06-02 Marek Habersack <[email protected]>
* DefaultHttpHandler.cs: implemented, so that static file requests
	work again in 4.0

svn path=/trunk/mcs/; revision=158329
2010-06-02 10:53:56 +00:00
Atsushi Eno 79293409b6 2010-06-02 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : fix PeerNodeAddress serialization regression.


svn path=/trunk/mcs/; revision=158324
2010-06-02 09:48:18 +00:00
Atsushi Eno b4b4b59a8f 2010-06-02 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : reset name in Reset().
	   Fixed bug #599479.

	* XmlObjectSerializerTest.cs : enable binary reader test for #601785.


svn path=/trunk/mcs/; revision=158317
2010-06-02 07:42:42 +00:00
Zoltan Varga b291f31d30 2010-06-02 Zoltan Varga <[email protected]>
* method-to-ir.c (set_rgctx_arg): New helper function to remove some duplicate code.
	Use a separate generic class init trampoline for llvm, since it needs a different
	signature.

	* unwind.c (mono_unwind_decode_fde): Make this decode the mono specific LSDA which
	includes the location of this/rgctx.

	* mini-llvm.c aot-runtime.c: Enable generic sharing for llvm if using the LLVM mono
	branch.

svn path=/trunk/mono/; revision=158309
2010-06-02 02:23:28 +00:00
Zoltan Varga d0ae79b4dc 2010-06-02 Zoltan Varga <[email protected]>
* configure.in: Check whenever we are using mono's LLVM branch.

svn path=/trunk/mono/; revision=158308
2010-06-02 02:23:18 +00:00
Marek Habersack 0b08553dbc 2010-06-01 Marek Habersack <[email protected]>
* HtmlHead.cs: added code to render description and keywords metas
	if the corresponding HtmlMeta controls aren't found and the user
	set either Description or Keywords properties.

2010-06-01  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: added new virtual method,
	AddStatementsToInitMethodBottom and renamed
	AddStatementsToInitMethod to AddStatementsToInitMethodTop.

	* PageCompiler.cs: code to set Meta{Description,Keywords}
	properties, if present.

2010-06-01  Marek Habersack  <[email protected]>

	* PageParser.cs: added support for MetaDescription and
	MetaKeywords main directive attributes

	* Page.cs: implemented MetaDescription and MetaKeywords
	4.0 properties.

svn path=/trunk/mcs/; revision=158303
2010-06-01 22:01:28 +00:00
Marek Habersack f8d637595c 2010-06-01 Marek Habersack <[email protected]>
* HttpUtility.cs: moved chunks of code to the new
	System.Web.Util.HttpEncoder class.

	* HttpResponseHeader.cs: encode header names and values using
	HttpEncoder.

	* HttpRequest.cs: added internal method Validate, to validate the
	request in 4.0 profile.

	* HttpHeaderCollection.cs: added. A helper class to encode header
	names/values on add.

	* HttpApplication.cs: Pipeline () validates request by calling
	HttpRequest.Validate in the 4.0 profile.

2010-06-01  Marek Habersack  <[email protected]>

	* HttpEncoder.cs: added. A 4.0 type but also used in 2.0 profile,
	internally.

2010-06-01  Marek Habersack  <[email protected]>

	* HttpRuntimeSection.cs: added 4.0 properties
	MaxQueryLengthString, MaxUrlLength, EncoderType and
	RelaxedUrlToFileSystemMapping.

svn path=/trunk/mcs/; revision=158300
2010-06-01 19:39:19 +00:00
Geoff Norton 652973a8d1 2010-06-01 Geoff Norton <[email protected]>
* sockets.c: Don't call poll directly, use mono_poll.

svn path=/trunk/mono/; revision=158299
2010-06-01 19:33:48 +00:00
Geoff Norton 5a23e0b04c 2010-06-01 Geoff Norton <[email protected]>
* mono-poll.c: poll() is broken on osx in several cases, so we use a select
        based mono_poll() instead.

svn path=/trunk/mono/; revision=158298
2010-06-01 19:33:44 +00:00
Marek Safar d395f2f3a0 updated
svn path=/trunk/mcs/; revision=158279
2010-06-01 14:52:34 +00:00
Marek Safar 76812f9e05 2010-06-01 Marek Safar <[email protected]>
A fix for bug #610139
	* generic.cs, convert.cs: Recursively check effective base interface


svn path=/trunk/mcs/; revision=158277
2010-06-01 14:11:05 +00:00
Marek Safar f407d37371 New test.
svn path=/trunk/mcs/; revision=158276
2010-06-01 13:23:38 +00:00
Marek Safar ade2c76b12 2010-06-01 Marek Safar <[email protected]>
* statement.cs: Handle nullable types and type parameters in using
	statement, avoid boxing value types. Also fixes #571010


svn path=/trunk/mcs/; revision=158275
2010-06-01 13:23:09 +00:00
Marek Safar 08392cee04 Updated.
svn path=/trunk/mcs/; revision=158265
2010-06-01 10:16:04 +00:00
Marek Safar 271bb4096a 2010-06-01 Marek Safar <[email protected]>
* convert.cs, expression.cs: Emit unbox for underlying nullable
	type boxing cast.


svn path=/trunk/mcs/; revision=158264
2010-06-01 10:15:49 +00:00
Martin Baulig 3380d3c0c9 #608721: Fix a crash on exit.
2010-05-31  Martin Baulig  <[email protected]>

	Fix #608271.

	* debugger-agent.c (breakpoints_cleanup): Iterate over `event_requests', call
	clear_breakpoint() on all breakpoint events and remove them from the list.

svn path=/trunk/mono/; revision=158262
2010-06-01 10:08:52 +00:00
Atsushi Eno a0e53fd493 2010-06-01 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : added test for bug #601785, based on
	  the test by Raja Harinath.


svn path=/trunk/mcs/; revision=158252
2010-06-01 04:49:17 +00:00
Atsushi Eno 834745324f 2010-06-01 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for IXmlSerializable it uses CreateInstance()
	  instead of GetUninitializedObject(). Fixed bug #601785.


svn path=/trunk/mcs/; revision=158251
2010-06-01 04:41:20 +00:00
Zoltan Varga 5c88385fa0 Enable llvm+clauses for num_clauses == 1.
svn path=/trunk/mono/; revision=158244
2010-06-01 01:34:22 +00:00
Zoltan Varga dfe56edd96 Fix the build.
svn path=/trunk/mono/; revision=158242
2010-06-01 01:09:59 +00:00
Zoltan Varga 4132c3126a Disable llvm+exceptions, some tests still fail.
svn path=/trunk/mono/; revision=158241
2010-06-01 01:07:22 +00:00
Zoltan Varga 78466d105a 2010-06-01 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Enable llvm+exceptions on LLVM SVN.

	* mini-llvm.c (emit_cond_system_exception): Disable llvm when this occurs in a
	clause.

svn path=/trunk/mono/; revision=158240
2010-06-01 01:03:35 +00:00
Geoff Norton d09ffbad97 2010-05-31 Geoff Norton <[email protected]>
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
	linker entry on some systems (Android/Bionic based libc's)

svn path=/trunk/mono/; revision=158239
2010-06-01 00:39:19 +00:00
Marek Safar 76f80e036c Optimize temporary variables which gmcs does not handle
svn path=/trunk/mcs/; revision=158235
2010-05-31 22:13:09 +00:00
Rodrigo Kumpera 8162748217 2010-05-31 Rodrigo Kumpera <[email protected]>
* LazyTest.cs: Add a test that actually test something.

svn path=/trunk/mcs/; revision=158230
2010-05-31 19:40:22 +00:00
Rodrigo Kumpera 30231239b7 2010-05-31 Rodrigo Kumpera <[email protected]>
* Lazy.cs: Remove some stupid leftover from previous changes.

svn path=/trunk/mcs/; revision=158229
2010-05-31 19:40:13 +00:00
Miguel de Icaza 9a2ea72502 2010-05-31 Miguel de Icaza <[email protected]>
* console-unix.c (terminal_get_dimensions): Fix my previous
	botched commit and return the actual value obtained from the ioctl.

svn path=/trunk/mono/; revision=158227
2010-05-31 18:28:22 +00:00
Zoltan Varga 0bca6151a8 2010-05-31 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_decode_fde): The FDE only has an augmention if the CIE
	says so.

	* aot-runtime.c (decode_eh_frame): Fix an assert condition.

svn path=/trunk/mono/; revision=158226
2010-05-31 17:49:07 +00:00
Carlos Alberto Cortez 4a18b84d75 2010-05-31 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageTest.cs:
	* IsolatedStorageFileTest.cs: New tests for AvailableFreeSpace, Quota,
	UsedSize and IncreaseQuotaTo.


svn path=/trunk/mcs/; revision=158224
2010-05-31 15:57:12 +00:00
Carlos Alberto Cortez 9238181d94 2010-05-31 Carlos Alberto Cortez <[email protected]>
* IsolatedStorage.cs:
	* IsolatedStorageFile.cs: Implement AvailableFreeSpace, Quota,
	UsedSize and IncreaseQuotaTo.


svn path=/trunk/mcs/; revision=158223
2010-05-31 15:54:26 +00:00
Robert Jordan e650f53e6b 2010-05-31 Robert Jordan <[email protected]>
* configure.in: Windows: mcs_topdir_from_srcdir must not be
	converted to a Win32 path unless it's already a cygwin path.
	Fixes --with-mcs-docs for in-tree mcs builds.


svn path=/trunk/mono/; revision=158211
2010-05-31 13:07:28 +00:00
Jb Evain a1105e0884 2010-05-31 Jb Evain <[email protected]>
Merge the MonoTouch Linker branch.

	* Mono.Linker/TypeParser.cs: add a type parser.

	* Mono.Linker.Steps/MarkStep.cs: properly mark types used
	with typeof in custom attributes

	* Mono.Linker/LinkContext.cs: remove dead code.

	* monolinker.exe.sources: add TypeParser.cs

svn path=/trunk/mcs/; revision=158209
2010-05-31 12:49:29 +00:00
Zoltan Varga 5dfa9fc787 2010-05-31 Zoltan Varga <[email protected]>
* aot-compiler.c (patch_to_string): New debugging helper function.

svn path=/trunk/mono/; revision=158207
2010-05-31 12:31:50 +00:00
Zoltan Varga 3e40ad28a9 Fix a warning.
svn path=/trunk/mono/; revision=158202
2010-05-31 12:04:47 +00:00
Atsushi Eno 0c939881ae 2010-05-31 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs,
	  DataContractSerializer.cs :
	  support DataContractSerializer.PreserveObjectReferences. z:Ref
	  attributes are used not only for objects with IsReference=true.
	  Fixed bug #610036.

	* XmlObjectSerializerTest.cs : test PreserveObjectReferences too.


svn path=/trunk/mcs/; revision=158201
2010-05-31 11:31:04 +00:00
Atsushi Eno 29cb0e4f69 2010-05-31 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : contract namespace
	  should be still considered even if contract (local) name is null.
	  Fix crash for generic derived type of dictionary. Fixed the
	  primary (crasher) part of bug #610036.

	* XmlObjectSerializerTest.cs : add test for bug #610036.


svn path=/trunk/mcs/; revision=158197
2010-05-31 10:32:30 +00:00
Atsushi Eno b6ed814f4c 2010-05-31 Atsushi Enomoto <[email protected]>
* ClientCredentialsElement.cs, HttpDigestClientElement.cs,
	  ConfigUtil.cs : implement ClientCredentialsElement.CreateBehavior().


svn path=/trunk/mcs/; revision=158188
2010-05-31 07:06:56 +00:00
Robert Jordan c711d0aa86 2010-05-31 Robert Jordan <[email protected]>
* mono.def : Remove unimplemented symbols.


svn path=/trunk/mono/; revision=158177
2010-05-31 00:57:53 +00:00
Robert Jordan b864f82d06 2010-05-31 Robert Jordan <[email protected]>
* mono.def: Regenerate with create-windef.pl.

	* create-windef.pl: Track 2.0 API changes.


svn path=/trunk/mono/; revision=158176
2010-05-31 00:47:46 +00:00
Robert Jordan 7fb48dc27f 2010-05-31 Robert Jordan <[email protected]>
* pinvoke2.cs (test_0_calli_dynamic): Use the cdecl version
	of mono_test_marshal_inout_array. Fixes the test when compiled
	with MSC (and GCC where it worked by accident).

	* libtest.c (mono_test_marshal_inout_array_cdecl):
	New. cdecl wrapper for the function with the same name.

svn path=/trunk/mono/; revision=158175
2010-05-31 00:01:53 +00:00
Robert Jordan fd9df62dde 2010-05-31 Robert Jordan <[email protected]>
* libtest.c (mono_test_marshal_lookup_symbol): Export as STDCALL because
	it's DllImported from pinvoke2.


svn path=/trunk/mono/; revision=158174
2010-05-30 22:53:40 +00:00
Zoltan Varga ea3aedda2b Add a comment stating why llvm+exceptions is disabled for now.
svn path=/trunk/mono/; revision=158171
2010-05-30 21:26:48 +00:00
Zoltan Varga f828de8113 2010-05-30 Zoltan Varga <[email protected]>
* exceptions-amd64.c (get_throw_trampoline): Fix the xdebug name of the corlib
	trampoline.

	* exceptions-x86.c (mono_arch_exceptions_init): Create an llvm rethrow trampoline too.

	* mini-llvm.c (mono_llvm_emit_method): Implement OP_RETHROW.

	* method-to-ir.c (mono_method_to_ir): Emit a OP_NOT_REACHED after a rethrow.

svn path=/trunk/mono/; revision=158170
2010-05-30 17:36:27 +00:00
Zoltan Varga 72837fd6e8 2010-05-30 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_call): Compute the containing try clause correctly for nested
	clauses.

svn path=/trunk/mono/; revision=158169
2010-05-30 17:21:41 +00:00
Zoltan Varga ad808e5f2e 2010-05-30 Zoltan Varga <[email protected]>
* mini.c (create_jit_info): Print EH clause info for LLVM too.

svn path=/trunk/mono/; revision=158168
2010-05-30 17:18:47 +00:00
Robert Jordan 3cf4f703f9 remove eol-style:native because it confuses cygwin when the working
copy is checked out with a Windows SVN client.
This is on par with ../autogen.sh and all other mono scripts.

svn path=/trunk/mono/; revision=158162
2010-05-29 19:35:54 +00:00
Robert Jordan c865cdf96d In Test:
2010-05-29  Robert Jordan  <[email protected]>

	* IpcChannelTest.cs: Add test for bug #609381.

In System.Runtime.Remoting.Channels.Ipc.Win32:
2010-05-29  Robert Jordan  <[email protected]>

	* IpcChannelHelper.cs (copy): Take into account that the remoting
	stack is internally using MemoryStreams all over the place.
	Fixes bug #609381 as a side effect.

	* IpcChannel.cs (.ctor): Create an IpcClientChannel as well.


svn path=/trunk/mcs/; revision=158161
2010-05-29 16:37:13 +00:00
Marek Safar 7a9955aade New test.
svn path=/trunk/mcs/; revision=158160
2010-05-29 13:21:49 +00:00
Marek Safar 184f167de9 2010-05-29 Marek Safar <[email protected]>
A fix for bug #610126
	* expression.cs: Don't use branch optimization for types bigger than
	int.


svn path=/trunk/mcs/; revision=158159
2010-05-29 13:17:48 +00:00
Gonzalo Paniagua Javier 480f1b9dca 2010-05-29 Gonzalo Paniagua Javier <[email protected]>
* Test/System/UriTest.cs:
	* System/Uri.cs: Leave consecutive slashes in 'path' alone.
	Fix for bug #606142. Backport once tested.


svn path=/trunk/mcs/; revision=158150
2010-05-29 06:09:41 +00:00
5052 changed files with 232081 additions and 43507 deletions

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
# ensure LF endings on all checkouts
configure.in crlf=input
# ensure native line endings on checkout
*.c crlf
*.h crlf
*.cs crlf
*.sh crlf
.gitattributes crlf
ChangeLog crlf
*akefile* crlf
*.sources crlf
# don't do anything to line-endings. Let CRLFs go into the repo, and CRLF on checkout
*.bat -crlf
*.sln -crlf
*.*proj* -crlf
# CRLF Handling
# -------------
#
# The ideal situation would be to do no EOL normalization. Each file
# would have a default EOL, and tools on Windows and Linux would handle
# both EOL formats.
#
# We're not in the ideal world. A popular editor on Windows (possibly
# Visual Studio) silently introduces EOL corruption -- it displays an
# LF-file normally, but any newly added lines have CRLF. On Linux,
# Emacs and versions of VI handle LF-files and CRLF-files properly.
# However, emacs doesn't like files with both LF and CRLF EOLs. Editing
# the file without additional action will increase the EOL corruption
# in the file.
#
# Another vector for mixed EOLs is scripts. We mostly don't have scripts
# that add new lines -- so we rarely see this. However, one major event
# in the tree was the addition of copyright headers using a script. That
# script introduced EOL corruption.
#
# Any automated EOL normalization of files already in the repository will
# cause difficulties in traversing histories, assigning blame, etc. So, we
# don't want to change what's in the repository significantly, even if it
# causes trouble.
#
# What we do now:
#
# a) we ensure that there's no further corruption of LF-files. So, we use
# git's 'crlf' attribute on those files to ensure that things are fine
# when we work on Windows. We could use 'crlf=input', but it doesn't buy
# us much -- we might as well be working with consistent EOLs for files in
# working directories as well as in the repository
#
# b) if the file already of CRLFs, we don't do any normalization. We use '-crlf'
# so that git doesn't do any EOL-conversion of the file. As I said, this
# is mostly harmless on Linux. We can't mark these files as 'crlf' or use
# the new (git 1.7.2) 'eol=crlf' attribute, since it changes the contents
# _inside_ the repository [1], and hence makes history traversal annoying.
# So, we live with occasional EOL corruption.
#
# c) We can handle mixed-EOL files on a case-by-case basis, converting them to
# LF- or CRLF-files based on which causes fewer lines to change
#
# d) We try to ensure no further headaches, by declaring EOL normalization on
# code files, and Unix-flavoured files, like shell-scripts, makefiles, etc.
#
# [1] GIT use LFs as the normalized internal representation.
+86
View File
@@ -1,3 +1,89 @@
2010-08-05 Andrés G. Aragoneses <[email protected]>
* scripts/.gitignore: added mono-abi-info.
* scripts/Makefile.am: added mono-abi-info autofoo.
2010-07-16 Zoltan Varga <[email protected]>
* configure.in: Remove the 'LLVM backend is experimental' warning.
2010-07-08 Neale Ferguson <[email protected]>
* configure.in: Add sgen_supported=true for s390x.
2010-07-05 Rolf Bjarne Kvinge <[email protected]>
* configure.in: Restore the AM_CONDITIONAL debugger supported, we need it to
include/exclude assembler files from the build in the makefile.
2010-06-29 Zoltan Varga <[email protected]>
* configure.in: Add a define for the full LLVM version to config.h.
2010-06-26 Zoltan Varga <[email protected]>
* configure.in: Make sgen_supported default to false to fix non-x86 builds.
2010-06-25 Zoltan Varga <[email protected]>
* scripts/patch-quiet.sh: Fix this up after the build changes.
2010-06-23 Miguel de Icaza <[email protected]>
* configure.in: By default, we will now also buils an SGen-aware
VM by default. This can be turned off by using the
--with-sgen=no command line option.
Two binaries are produced now: mono and mono-sgen
--- First Pass ---
* configure.in: Remove redundant setting of variables in non-Boehm
cases.
First pass at supporting the compilation of both
the Boehm-powered Mono VM and the Sgen-powered one.
The Boehm configuration flags are no longer part of the config.h
that we generate, but instead they are part of the CFLAGS
variables that are used for the following components:
* io-layer/ because it uses the pthread APIs that are
wrapped by using utils/gc_wrapper.h
* metatada/ because we have plenty of GC-specific code
* mini/ the VM itself
The patch currently only changes the way that Boehm is compiled,
no changes for Sgen have been done yet.
We now pass Boehm CFLAG settings as "BOEHM_DEFINES" which need to
be added to the three Makefiles above.
When building the bundled and modified libgc, we also need to pass
MONO_DEBUGGER_SUPPORTED as it triggers some special features in
the libgc.
Simplify the build also by removing the AM_CONDITIONAL debugger
supported, we now merely check this on the source file and wrap
the entire debug-debugger.c in an ifdef.
2010-06-05 Mark Probst <[email protected]>
* tools/sgen/sgen-grep-binprot.c: Updated for degraded and pinned
allocations.
2010-06-02 Zoltan Varga <[email protected]>
* configure.in: Check whenever we are using mono's LLVM branch.
2010-05-31 Robert Jordan <[email protected]>
* configure.in: Windows: mcs_topdir_from_srcdir must not be
converted to a Win32 path unless it's already a cygwin path.
Fixes --with-mcs-docs for in-tree mcs builds.
2010-05-28 Robert Jordan <[email protected]>
* configure.in: Fix mcs_topdir* for the Windows build.
+5
View File
@@ -61,6 +61,11 @@ For comments, corrections and updates, please contact [email protected]
by third party projects, follows the same spirit than the
Boehm GC.
** mono/arch/*/XXX-codegen.h
This are C macros that are useful when generating native
code on various platforms. This code is MIT X11 licensed.
** mcs/mcs, mcs/gmcs
The C# Compilers (1.0 and 2.0)
+5 -3
View File
@@ -1,10 +1,10 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
MOONLIGHT_SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib mono $(ikvm_native_dir) data
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples web 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 web tools msvc docs
@@ -12,7 +12,7 @@ else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples web 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 web tools msvc docs
@@ -24,9 +24,11 @@ EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LIC
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
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
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
+28 -7
View File
@@ -172,11 +172,20 @@ This is Mono.
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 garbage collector engine to use, the
default is the "included" value.
Selects the default Boehm garbage collector engine to
use, the default is the "included" value.
included:
This is the default value, and its
@@ -192,10 +201,6 @@ This is Mono.
Boehm GC, but we do not recommend that people
use this, as it disables a few features.
sgen:
The under-development Generational GC for
Mono, do not use this in production.
none:
Disables the inclusion of a garbage
collector.
@@ -408,6 +413,7 @@ This is Mono.
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
@@ -418,7 +424,11 @@ This is Mono.
full details and up-to-date information on this feature.
You will need to have an LLVM built that Mono can link
against
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
@@ -463,6 +473,15 @@ This is Mono.
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
=============
@@ -547,3 +566,5 @@ This is Mono.
directory is automatically configured to share the
same prefix than this module gets.
+117 -87
View File
@@ -6,7 +6,7 @@ AC_CANONICAL_SYSTEM
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,2.7)
AM_INIT_AUTOMAKE(mono,2.8)
AM_MAINTAINER_MODE
API_VER=2.0
@@ -26,6 +26,7 @@ dnl
gc_headers=no
gc=included
gc_msg="included Boehm"
use_included_gc=no
libgc_configure_args=
@@ -66,6 +67,7 @@ AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
has_dtrace=no
parallel_mark=yes
ikvm_native=yes
case "$host" in
powerpc*-*-linux*)
@@ -155,7 +157,7 @@ case "$host" in
;;
*-*-*openbsd*)
host_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
@@ -181,6 +183,21 @@ case "$host" in
AOT_SUPPORTED="yes"
use_sigposix=yes
;;
*-*-nacl*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libdl=
libgc_threads=pthreads
AOT_SUPPORTED="yes"
gc_default=boehm
use_sigposix=yes
ikvm_native=no
AC_DEFINE(DISABLE_SOCKETS,1,[Disable sockets support])
;;
*-*-hpux*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
@@ -349,7 +366,7 @@ fi
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h)
AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h)
AC_CHECK_HEADERS(sys/user.h, [], [],
@@ -478,10 +495,14 @@ mcs_topdir=$(cd "$srcdir/$mcsdir" && pwd)
mcs_topdir_from_srcdir='$(top_builddir)'/$mcsdir
fi
# Convert paths to Windows syntax.
# Convert mcs_topdir* paths to Windows syntax.
if test x$cross_compiling$host_win32 = xnoyes; then
mcs_topdir=$(cygpath -m -a $mcs_topdir)
mcs_topdir_from_srcdir=$(cygpath -m -a $mcs_topdir_from_srcdir)
mcs_topdir=$(cygpath -m $mcs_topdir)
case $mcs_topdir_from_srcdir in
/cygdrive/*)
mcs_topdir_from_srcdir=$(cygpath -m $mcs_topdir_from_srcdir)
;;
esac
fi
## Maybe should also disable if mcsdir is invalid. Let's punt the issue for now.
@@ -544,8 +565,6 @@ AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
[], [with_glib=embedded])
eglib_dir=
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
@@ -557,39 +576,13 @@ embedded)
BUILD_GLIB_LIBS="$GLIB_LIBS"
GMODULE_CFLAGS="$GLIB_CFLAGS"
GMODULE_LIBS="$GLIB_LIBS"
eglib_dir=eglib
;;
system)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo "cross_compiling=$cross_compiling"
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
## Versions of dependencies
GLIB_REQUIRED_VERSION=2.4.0
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
else
AC_MSG_ERROR([You need at least glib-2.0 $GLIB_REQUIRED_VERSION])
fi
AC_MSG_ERROR([--with-glib=system is no longer supported as of Mono 2.8])
;;
*)
AC_MSG_ERROR([Invalid argument to --with-glib.])
esac
AM_CONDITIONAL(EGLIB_BUILD, test x$with_glib = xembedded)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
@@ -597,7 +590,6 @@ AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
AC_SUBST(eglib_dir)
if test x$cross_compiling$host_win32 = xnoyes; then
AC_MSG_CHECKING(for cygwin glib2-dev package)
@@ -620,7 +612,7 @@ if test x$cross_compiling$host_win32 = xnoyes; then
AC_MSG_RESULT(ok)
fi
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Defaults to included],[gc=$with_gc],[gc=$gc_default])
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Controls the Boehm GC config, default=included],[gc=$with_gc],[gc=$gc_default])
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
@@ -831,6 +823,9 @@ if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
fi
dnl
dnl Boehm GC configuration
dnl
LIBGC_CFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
@@ -847,29 +842,28 @@ case "x$gc" in
AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
fi
AC_DEFINE(HAVE_BOEHM_GC, 1, [Have Boehm GC])
AC_SUBST(HAVE_BOEHM_GC)
LIBGC_LIBS="-lgc $libdl"
LIBGC_STATIC_LIBS="$LIBGC_LIBS"
libmono_ldflags="$libmono_ldflags -lgc"
BOEHM_DEFINES="-DHAVE_BOEHM_GC"
# AC_CHECK_FUNCS does not work for some reason...
AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
if test "x$found_gcj_malloc" = "xyes"; then
AC_DEFINE(HAVE_GC_GCJ_MALLOC, 1, [Have GC_gcj_malloc])
AC_DEFINE_UNQUOTED(USED_GC_NAME, "System Boehm (with typed GC)", [GC description])
BOEHM_DEFINES="-DHAVE_GC_GCJ_MALLOC $BOEHM_DEFINES"
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "System Boehm (with typed GC)", [GC description])
gc_msg="System Boehm with typed GC"
else
AC_DEFINE_UNQUOTED(USED_GC_NAME, "System Boehm (no typed GC)", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "System Boehm (no typed GC)", [GC description])
gc_msg="System Boehm (without typed GC)"
fi
AC_CHECK_LIB(gc, GC_enable, found_gc_enable="yes",,$libdl)
if test "x$found_gc_enable" = "xyes"; then
AC_DEFINE(HAVE_GC_ENABLE, 1, [Have 'GC_enable'])
BOEHM_DEFINES="-DHAVE_GC_ENABLE $BOEHM_DEFINES"
fi
;;
xincluded)
found_boehm=yes
gc_headers=yes
use_included_gc=yes
libgc_dir=libgc
@@ -877,35 +871,24 @@ case "x$gc" in
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
AC_DEFINE(HAVE_BOEHM_GC, 1, [Have Boehm GC])
AC_SUBST(HAVE_BOEHM_GC)
BOEHM_DEFINES="-DHAVE_BOEHM_GC -DHAVE_GC_H -DUSE_INCLUDED_LIBGC -DHAVE_GC_GCJ_MALLOC -DHAVE_GC_ENABLE"
AC_DEFINE(HAVE_GC_H, 1, [Have gc.h])
AC_DEFINE(USE_INCLUDED_LIBGC, 1, [Use included libgc])
# The included libgc contains GCJ support
AC_DEFINE(HAVE_GC_GCJ_MALLOC, 1, [Have GC_gcj_malloc])
AC_DEFINE(HAVE_GC_ENABLE, 1, [Have GC_enable])
gc_msg="bundled Boehm GC with typed GC"
if test x$enable_parallel_mark = xyes; then
AC_DEFINE_UNQUOTED(USED_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
gc_msg="$gc_msg and parallel mark"
else
AC_DEFINE_UNQUOTED(USED_GC_NAME, "Included Boehm (with typed GC)", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC)", [GC description])
fi
;;
xsgen)
found_boehm=no
gc_headers=no
use_included_gc=no
AC_DEFINE(HAVE_SGEN_GC,1,[Using the simple generational GC.])
AC_DEFINE(HAVE_MOVING_COLLECTOR,1,[The GC can move objects.])
AC_DEFINE(HAVE_WRITE_BARRIERS,1,[The GC needs write barriers.])
AC_DEFINE_UNQUOTED(USED_GC_NAME, "Simple generational", [GC description])
AC_MSG_WARN("Use --with-sgen instead, --with-gc= controls Boehm configuration")
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
AC_DEFINE_UNQUOTED(USED_GC_NAME, "none", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
;;
*)
@@ -915,7 +898,6 @@ esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
fi
@@ -924,6 +906,7 @@ AC_SUBST(LIBGC_CFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(LIBGC_STATIC_LIBS)
AC_SUBST(libgc_dir)
AC_SUBST(BOEHM_DEFINES)
dnl
dnl End of libgc checks
@@ -989,7 +972,7 @@ if test x$target_win32 = xno; then
dnl ******************************************************************
dnl *** Checks for the IKVM JNI interface library ***
dnl ******************************************************************
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library (defaults to yes)],[with_ikvm_native=$withval],[with_ikvm_native=yes])
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library (defaults to yes)],[with_ikvm_native=$withval],[with_ikvm_native=$ikvm_native])
ikvm_native_dir=
if test x$with_ikvm_native = xyes; then
@@ -1539,7 +1522,7 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
AC_TRY_LINK([#include <math.h>],
[ finite(0.0); ],
AC_DEFINE(HAVE_FINITE, 1, [Have finite]) AC_MSG_RESULT(yes),
AC_DEFINE(HAVE_FINITE, 1, [Have finite in -lm]) AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)))
fi
AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h)
@@ -2004,11 +1987,28 @@ fi
AM_CONDITIONAL(ENABLE_DTRACE, [test x$enable_dtrace = xyes])
AM_CONDITIONAL(DTRACE_G_REQUIRED, [test x$dtrace_g = xyes])
dnl **************
dnl *** NaCl ***
dnl **************
AC_ARG_ENABLE(nacl_codegen, [ --enable-nacl-codegen Enable Native Client code generation], enable_nacl_codegen=$enableval, enable_nacl_codegen=no)
AM_CONDITIONAL(NACL_CODEGEN, test x$enable_nacl_codegen != xno)
if test "x$enable_nacl_codegen" = "xyes"; then
MONO_NACL_ALIGN_MASK_OFF=1
CPPFLAGS="$CPPFLAGS -D__native_client_codegen__"
AC_DEFINE(TARGET_NACL, 1, [...])
else
MONO_NACL_ALIGN_MASK_OFF=0
fi
AC_SUBST(MONO_NACL_ALIGN_MASK_OFF)
dnl **************
dnl *** LLVM ***
dnl **************
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the experimental LLVM back-end], enable_llvm=$enableval, enable_llvm=no)
AC_ARG_ENABLE(loadedllvm,[ --enable-loadedllvm Load the LLVM back-end dynamically], enable_llvm=$enableval && enable_loadedllvm=$enableval, enable_loadedllvm=no)
if test "x$enable_llvm" = "xyes"; then
AC_PATH_PROG(LLVM_CONFIG, llvm-config, no)
@@ -2029,9 +2029,14 @@ if test "x$enable_llvm" = "xyes"; then
llvm_version=`$LLVM_CONFIG --version`
major_version=`echo $llvm_version | cut -c 1`
minor_version=`echo $llvm_version | cut -c 3`
if echo $llvm_version | grep -q 'mono'; then
AC_DEFINE(LLVM_MONO_BRANCH, 1, [Whenever we are using the mono branch of LLVM])
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MONO_BRANCH"
fi
AC_DEFINE_UNQUOTED(LLVM_MAJOR_VERSION, $major_version, [Major version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_MINOR_VERSION, $minor_version, [Minor version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_VERSION, "$llvm_version", [Full version of LLVM libraties])
# Have to pass these on the command line since mini-llvm-cpp.h already includes
# llvm's config.h
@@ -2045,6 +2050,10 @@ if test "x$enable_llvm" = "xyes"; then
fi
AM_CONDITIONAL(ENABLE_LLVM, [test x$enable_llvm = xyes])
if test "x$enable_loadedllvm" = "xyes"; then
AC_DEFINE(MONO_LLVM_LOADED, 1, [The LLVM back end is dynamically loaded])
fi
AM_CONDITIONAL(LOADED_LLVM, [test x$enable_loadedllvm = xyes])
TARGET="unknown"
ACCESS_UNALIGNED="yes"
@@ -2061,6 +2070,7 @@ sizeof_register="SIZEOF_VOID_P"
jit_wanted=false
interp_wanted=false
sgen_supported=false
case "$host" in
# mips-sgi-irix5.* | mips-sgi-irix6.*)
# TARGET=MIPS;
@@ -2119,6 +2129,9 @@ case "$host" in
haiku*)
LIBC=libroot.so
;;
linux*|darwin*|openbsd*)
sgen_supported=true
;;
esac
;;
x86_64-*-* | amd64-*-*)
@@ -2126,6 +2139,11 @@ case "$host" in
arch_target=amd64;
JIT_SUPPORTED=yes
jit_wanted=true
case $host_os in
linux*|darwin*|openbsd*)
sgen_supported=true
;;
esac
;;
ia64-*-*)
TARGET=IA64
@@ -2208,6 +2226,11 @@ case "$host" in
arch_target=ppc;
JIT_SUPPORTED=yes
jit_wanted=true
case $host_os in
linux*|darwin*)
sgen_supported=true
;;
esac
;;
arm*-darwin*)
TARGET=ARM;
@@ -2216,6 +2239,7 @@ case "$host" in
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -DARM_FPU_NONE=1"
jit_wanted=true
sgen_supported=true
;;
arm*-linux*)
TARGET=ARM;
@@ -2223,6 +2247,7 @@ case "$host" in
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
jit_wanted=true
sgen_supported=true
;;
s390-*-linux*)
TARGET=S390;
@@ -2230,6 +2255,7 @@ case "$host" in
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=yes
jit_wanted=true
sgen_supported=true
# Required CFLAGS for s390[x]. USE_STRING_INLINES is automatic with gcc 4.1
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
;;
@@ -2239,6 +2265,7 @@ case "$host" in
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=yes
jit_wanted=true
sgen_supported=true
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
;;
esac
@@ -2317,6 +2344,23 @@ if test "x$have_deprecated" = "xyes"; then
AC_DEFINE(HAVE_DEPRECATED, 1, [Support for the deprecated attribute])
fi
dnl
dnl Simple Generational checks (sgen)
dnl
SGEN_DEFINES=
AC_ARG_WITH(sgen, [ --with-sgen=yes,no Extra Generational GC, default=yes],[buildsgen=$with_sgen],[buildsgen=yes])
if test x$buildsgen = xyes; then
if $sgen_supported; then
SGEN_DEFINES="-DHAVE_SGEN_GC -DHAVE_MOVING_COLLECTOR -DHAVE_WRITE_BARRIERS"
gc_msg="sgen and $gc_msg"
else
buildsgen=no
AC_MSG_WARN("Sgen is not supported on this platform")
fi
fi
AC_SUBST(SGEN_DEFINES)
AM_CONDITIONAL(SUPPORT_SGEN, test x$buildsgen = xyes)
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT (defaults to no)],[
if test x$withval = xyes; then
jit_wanted=true
@@ -2441,10 +2485,11 @@ fi
AC_MSG_CHECKING(if the Mono Debugger is supported on this platform)
if test "x$mono_debugger_supported" = "xyes"; then
AC_DEFINE(MONO_DEBUGGER_SUPPORTED,1,[The Mono Debugger is supported on this platform])
BOEHM_DEFINES="$BOEHM_DEFINES -DMONO_DEBUGGER_SUPPORTED"
NESTED_LIBGC_FLAGS="-DMONO_DEBUGGER_SUPPORTED"
fi
AC_MSG_RESULT($mono_debugger_supported)
AM_CONDITIONAL(MONO_DEBUGGER_SUPPORTED, test x$mono_debugger_supported = xyes)
AC_MSG_RESULT($mono_debugger_supported)
if test "x$with_tls" = "x__thread"; then
AC_DEFINE(HAVE_KW_THREAD, 1, [Have __thread keyword])
@@ -2493,7 +2538,7 @@ case "x$gc" in
# The problem with this approach, is that during a reconfigure, the main
# configure scripts gets invoked with these arguments, so we use separate
# variables understood by libgc's configure to pass CPPFLAGS and CFLAGS.
LIBGC_CPPFLAGS=$CPPFLAGS
LIBGC_CPPFLAGS="$CPPFLAGS $NESTED_LIBGC_FLAGS"
if test x$TARGET = xSPARC -o x$TARGET = xSPARC64; then
LIBGC_CPPFLAGS=`echo $LIBGC_CPPFLAGS | sed -e 's/-D_FILE_OFFSET_BITS=64//g'`
fi
@@ -2869,7 +2914,7 @@ fi
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
fi
if test x$TARGET = xAMD64 -a x$host_win32 = xno -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
if test x$host_win32 = xno -a x$platform_darwin != xyes -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
fi
@@ -2908,7 +2953,7 @@ echo "
olive source: $olive_topdir
Engine:
GC: $gc
GC: $gc_msg
GLIB: $with_glib
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
@@ -2917,7 +2962,7 @@ echo "
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
LLVM Back End: $enable_llvm
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)
Libraries:
Moon Profile: $with_moonlight
@@ -2930,18 +2975,3 @@ echo "
if test x$with_static_mono = xno -a "x$host_win32" != "xyes"; then
AC_MSG_WARN(Turning off static Mono is a risk, you might run into unexpected bugs)
fi
if test x$gc = xsgen; then
echo IMPORTANT:
echo IMPORTANT: You have selected an experimental, work-in-progress
echo IMPORTANT: GC engine. This GC engine is currently not supported
echo IMPORTANT: and is not yet ready for use.
echo IMPORTANT:
echo IMPORTANT: There are known problems with it, use at your own risk.
fi
if test x$enable_llvm = xyes; then
echo IMPORTANT:
echo IMPORTANT: The LLVM Back End is experimental and has known problems.
echo IMPORTANT:
fi
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation (.NET Framework 3.5 compatibility)
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.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.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.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 -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
+4
View File
@@ -1,3 +1,7 @@
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.
+125 -4
View File
@@ -103,8 +103,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 %s_%s" % (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
try:
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]
@@ -158,15 +161,125 @@ class MonoClassPrinter:
def __init__(self, val):
self.val = val
def to_string(self):
def to_string_inner(self, add_quotes):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"%s\"" % (class_name)
if add_quotes:
return "\"%s\"" % (class_name)
else:
return class_name
# This returns more info but requires calling into the inferior
#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]
return str(self.val.cast (gdb.lookup_type ("gpointer")))
class MonoGenericInstPrinter:
"Print a MonoGenericInst structure"
def __init__(self, val):
self.val = val
def to_string(self):
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
type_printer = MonoTypePrinter (inst_args [i])
if i > 0:
inst_str = inst_str + ", "
inst_str = inst_str + type_printer.to_string ()
return inst_str
class MonoGenericClassPrinter:
"Print a MonoGenericClass structure"
def __init__(self, val):
self.val = val
def to_string_inner(self):
gclass = self.val.dereference ()
container_str = str(gclass ["container_class"])
class_inst = gclass ["context"]["class_inst"]
class_inst_str = ""
if int(class_inst.cast (gdb.lookup_type ("guint64"))) != 0:
class_inst_str = str(class_inst)
method_inst = gclass ["context"]["method_inst"]
method_inst_str = ""
if int(method_inst.cast (gdb.lookup_type ("guint64"))) != 0:
method_inst_str = str(method_inst)
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]
return str(self.val.cast (gdb.lookup_type ("gpointer")))
class MonoTypePrinter:
"Print a MonoType structure"
def __init__(self, val):
self.val = val
def to_string_inner(self, csharp):
try:
t = self.val.dereference ()
kind = str (t ["type"]).replace ("MONO_TYPE_", "").lower ()
info = ""
if kind == "class":
p = MonoClassPrinter(t ["data"]["klass"])
info = p.to_string ()
elif kind == "genericinst":
info = str(t ["data"]["generic_class"])
if info != "":
return "{%s, %s}" % (kind, info)
else:
return "{%s}" % (kind)
except:
#print sys.exc_info ()[0]
#print sys.exc_info ()[1]
return str(self.val.cast (gdb.lookup_type ("gpointer")))
def to_string(self):
return self.to_string_inner (False)
class MonoMethodRgctxPrinter:
"Print a MonoMethodRgctx structure"
def __init__(self, val):
self.val = val
def to_string(self):
rgctx = self.val.dereference ()
klass = rgctx ["class_vtable"].dereference () ["klass"]
klass_printer = MonoClassPrinter (klass)
inst = rgctx ["method_inst"].dereference ()
inst_len = inst ["type_argc"]
inst_args = inst ["type_argv"]
inst_str = ""
for i in range(0, inst_len):
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[%s, [%s]]" % (klass_printer.to_string(), inst_str)
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
@@ -179,6 +292,14 @@ def lookup_pretty_printer(val):
return MonoMethodPrinter (val)
if t == "MonoClass *":
return MonoClassPrinter (val)
if t == "MonoType *":
return MonoTypePrinter (val)
if t == "MonoGenericInst *":
return MonoGenericInstPrinter (val)
if t == "MonoGenericClass *":
return MonoGenericClassPrinter (val)
if t == "MonoMethodRuntimeGenericContext *":
return MonoMethodRgctxPrinter (val)
return None
def register_csharp_printers(obj):
+1
View File
@@ -0,0 +1 @@
/Compat.browser -crlf
File diff suppressed because it is too large. Load diff
+2
View File
@@ -4,9 +4,11 @@ monodir = $(sysconfdir)/mono/4.0
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
+9 -9
View File
@@ -74,15 +74,15 @@
<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=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.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" />
</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" />
+1
View File
@@ -76,6 +76,7 @@
<!--
<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"/>
+1
View File
@@ -8,3 +8,4 @@
/mono-file-formats.zip
/mono-tools.tree
/mono-tools.zip
/AgilityPack.dll*
+30
View File
@@ -0,0 +1,30 @@
/EncodingFoundException.cs -crlf
/HtmlAttribute.cs -crlf
/HtmlAttributeCollection.cs -crlf
/HtmlCmdLine.cs -crlf
/HtmlCommentNode.cs -crlf
/HtmlConsoleListener.cs -crlf
/HtmlDocument.cs -crlf
/HtmlElementFlag.cs -crlf
/HtmlEntity.cs -crlf
/HtmlNameTable.cs -crlf
/HtmlNode.cs -crlf
/HtmlNodeCollection.cs -crlf
/HtmlNodeNavigator.cs -crlf
/HtmlNodeType.cs -crlf
/HtmlParseError.cs -crlf
/HtmlParseErrorCode.cs -crlf
/HtmlTextNode.cs -crlf
/HtmlWeb.cs -crlf
/HtmlWebException.cs -crlf
/IOLibrary.cs -crlf
/LICENSE -crlf
/MixedCodeDocument.cs -crlf
/MixedCodeDocumentCodeFragment.cs -crlf
/MixedCodeDocumentFragment.cs -crlf
/MixedCodeDocumentFragmentList.cs -crlf
/MixedCodeDocumentFragmentType.cs -crlf
/MixedCodeDocumentTextFragment.cs -crlf
/NameValuePair.cs -crlf
/NameValuePairList.cs -crlf
/crc32.cs -crlf
+57
View File
@@ -1,3 +1,60 @@
2010-07-25 Zoltan Varga <[email protected]>
* configure.ac src/eglib-config.h.in src/eglib-config.hw: Define G_GINT64_FORMAT.
2010-07-20 Zoltan Varga <[email protected]>
* src/glib.h (G_LIKELY): Implement these for gcc properly.
2010-07-19 Miguel de Icaza <[email protected]>
* src/gmisc-win32.c (g_getenv): Distinguish between variable not
found and an empty variable.
This should fix 566152
2010-07-19 Zoltan Varga <[email protected]>
* src/glib.h (G_MAXUINT64): Define this. Fixes #623293.
* src/eglib-config.hw: Define UINT64_MAX.
2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* src/gmisc-unix.c: include config.h. Fixes bug #609632.
Use getpwuid_r instead of getpwent_r.
2010-07-02 Zoltan Varga <[email protected]>
* src/glib.h: Define gboolean as int32_t to match mono_bool.
2010-06-22 Rodrigo Kumpera <[email protected]>
* src/ghashtable.c: Add code to sanity check the
hashtable contents. This is invaluable, for example,
to catch bugs where a key hashcode changes after
insertion.
2010-06-18 Chris Toshok <[email protected]>
patch from Jacob Berkman:
* src/glib.h (g_mkdir): #define to mkdir
(g_ascii_strtoull): #define to strtoull
* src/gmodule.h: add G_BEGIN/END_DECLS
* src/gstr.c (g_strdupv): new function.
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* src/eglib-remap.h: Remap g_ptr_array_remove_fast too.
2010-06-15 Zoltan Varga <[email protected]>
* src/gunicode.c: Applied patch from Hib Eris <[email protected]>. use "windows.h"
instead of "Windows.h".
2010-05-25 Zoltan Varga <[email protected]>
* Applied patch from Burkhard Linke ([email protected]). Fix
+23 -8
View File
@@ -49,6 +49,12 @@ case $host in
;;
esac
case $host in
*-*-solaris*)
CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
;;
esac
case $target in
arm*-darwin*)
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
@@ -72,7 +78,7 @@ AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r rewinddir vasprintf)
AC_CHECK_FUNCS(strndup strlcpy getpwuid_r strtok_r rewinddir vasprintf)
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv")
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
@@ -114,6 +120,7 @@ if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
else
GPOINTER_TO_INT="((gint) (ptr))"
GPOINTER_TO_UINT="((guint) (ptr))"
@@ -122,12 +129,10 @@ else
GSIZE="int"
GSIZE_FORMAT='"u"'
G_GUINT64_FORMAT='"llu"'
G_GINT64_FORMAT='"lld"'
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
@@ -145,13 +150,17 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
dnl
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
have_glib=false
if test "x$PKG_CONFIG" != "xno"; then
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
@@ -159,6 +168,12 @@ AC_SUBST(GUINT_TO_POINTER)
AC_SUBST(GSIZE)
AC_SUBST(GSIZE_FORMAT)
AC_SUBST(G_GUINT64_FORMAT)
AC_SUBST(G_GINT64_FORMAT)
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find src test -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
+1
View File
@@ -8,3 +8,4 @@
/semantic.cache
/.project
/.cproject
/eglib-config.h
+9
View File
@@ -24,9 +24,18 @@ typedef signed @GSIZE@ gssize;
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
#define G_GINT64_FORMAT @G_GINT64_FORMAT@
#if @G_HAVE_ISO_VARARGS@ == 1
#define G_HAVE_ISO_VARARGS
#endif
#if defined (__native_client__)
#define sem_trywait(x) sem_wait(x)
#define sem_timedwait(x,y) sem_wait(x)
#define getdtablesize() (32768)
#undef G_BREAKPOINT
#define G_BREAKPOINT()
#endif
#endif
+2
View File
@@ -27,6 +27,7 @@ typedef int pid_t;
#define G_SEARCHPATH_SEPARATOR ';'
#define G_GSIZE_FORMAT "d"
#define G_GUINT64_FORMAT "d"
#define G_GINT64_FORMAT "d"
#define GPOINTER_TO_INT(ptr) ((gint)(intptr_t) (ptr))
#define GPOINTER_TO_UINT(ptr) ((guint)(intptr_t) (ptr))
#define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
@@ -37,6 +38,7 @@ typedef int pid_t;
#define INT64_MAX 9223372036854775807i64
#define INT64_MIN (~INT64_MAX)
#define UINT32_MAX 0xffffffffU
#define UINT64_MAX 0xffffffffffffffffULL
#define STDOUT_FILENO (int)(intptr_t)stdout
#define STDERR_FILENO (int)(intptr_t)stderr
+4
View File
@@ -50,6 +50,7 @@
#define g_hash_table_new_full monoeg_g_hash_table_new_full
#define g_hash_table_remove monoeg_g_hash_table_remove
#define g_hash_table_size monoeg_g_hash_table_size
#define g_hash_table_print_stats monoeg_g_hash_table_print_stats
#define g_int_equal monoeg_g_int_equal
#define g_int_hash monoeg_g_int_hash
#define g_list_alloc monoeg_g_list_alloc
@@ -99,12 +100,14 @@
#define g_pattern_spec_new monoeg_g_pattern_spec_new
#define g_print monoeg_g_print
#define g_printf monoeg_g_printf
#define g_printerr monoeg_g_printerr
#define g_propagate_error monoeg_g_propagate_error
#define g_ptr_array_add monoeg_g_ptr_array_add
#define g_ptr_array_foreach monoeg_g_ptr_array_foreach
#define g_ptr_array_free monoeg_g_ptr_array_free
#define g_ptr_array_new monoeg_g_ptr_array_new
#define g_ptr_array_remove monoeg_g_ptr_array_remove
#define g_ptr_array_remove_fast monoeg_g_ptr_array_remove_fast
#define g_ptr_array_remove_index monoeg_g_ptr_array_remove_index
#define g_ptr_array_remove_index_fast monoeg_g_ptr_array_remove_index_fast
#define g_ptr_array_set_size monoeg_g_ptr_array_set_size
@@ -165,6 +168,7 @@
#define g_strerror monoeg_g_strerror
#define g_strescape monoeg_g_strescape
#define g_strfreev monoeg_g_strfreev
#define g_strdupv monoeg_g_strdupv
#define g_string_append monoeg_g_string_append
#define g_string_append_c monoeg_g_string_append_c
#define g_string_append_len monoeg_g_string_append_len
+78
View File
@@ -133,6 +133,51 @@ g_hash_table_new_full (GHashFunc hash_func, GEqualFunc key_equal_func,
return hash;
}
#if 0
static void
dump_hash_table (GHashTable *hash)
{
int i;
for (i = 0; i < hash->table_size; i++) {
Slot *s;
for (s = hash->table [i]; s != NULL; s = s->next){
guint hashcode = (*hash->hash_func) (s->key);
guint slot = (hashcode) % hash->table_size;
printf ("key %p hash %x on slot %d correct slot %d tb size %d\n", s->key, hashcode, i, slot, hash->table_size);
}
}
}
#endif
#ifdef SANITY_CHECK
static void
sanity_check (GHashTable *hash)
{
int i;
for (i = 0; i < hash->table_size; i++) {
Slot *s;
for (s = hash->table [i]; s != NULL; s = s->next){
guint hashcode = (*hash->hash_func) (s->key);
guint slot = (hashcode) % hash->table_size;
if (slot != i) {
dump_hashcode_func = 1;
hashcode = (*hash->hash_func) (s->key);
dump_hashcode_func = 0;
g_error ("Key %p (bucket %d) on invalid bucket %d (hashcode %x) (tb size %d)", s->key, slot, i, hashcode, hash->table_size);
}
}
}
}
#else
#define sanity_check(HASH) do {}while(0)
#endif
static void
do_rehash (GHashTable *hash)
{
@@ -172,6 +217,7 @@ rehash (GHashTable *hash)
if (!(diff * 0.75 > hash->table_size * 2))
return;
do_rehash (hash);
sanity_check (hash);
}
void
@@ -182,6 +228,7 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
GEqualFunc equal;
g_return_if_fail (hash != NULL);
sanity_check (hash);
equal = hash->key_equal_func;
if (hash->in_use >= hash->threshold)
@@ -198,6 +245,7 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
if (hash->value_destroy_func != NULL)
(*hash->value_destroy_func) (s->value);
s->value = value;
sanity_check (hash);
return;
}
}
@@ -207,6 +255,7 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
s->next = hash->table [hashcode];
hash->table [hashcode] = s;
hash->in_use++;
sanity_check (hash);
}
guint
@@ -236,6 +285,7 @@ g_hash_table_lookup_extended (GHashTable *hash, gconstpointer key, gpointer *ori
guint hashcode;
g_return_val_if_fail (hash != NULL, FALSE);
sanity_check (hash);
equal = hash->key_equal_func;
hashcode = ((*hash->hash_func) (key)) % hash->table_size;
@@ -292,6 +342,7 @@ g_hash_table_remove (GHashTable *hash, gconstpointer key)
guint hashcode;
g_return_val_if_fail (hash != NULL, FALSE);
sanity_check (hash);
equal = hash->key_equal_func;
hashcode = ((*hash->hash_func)(key)) % hash->table_size;
@@ -308,10 +359,12 @@ g_hash_table_remove (GHashTable *hash, gconstpointer key)
last->next = s->next;
g_free (s);
hash->in_use--;
sanity_check (hash);
return TRUE;
}
last = s;
}
sanity_check (hash);
return FALSE;
}
@@ -324,6 +377,7 @@ g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data)
g_return_val_if_fail (hash != NULL, 0);
g_return_val_if_fail (func != NULL, 0);
sanity_check (hash);
for (i = 0; i < hash->table_size; i++){
Slot *s, *last;
@@ -353,6 +407,7 @@ g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data)
}
}
}
sanity_check (hash);
if (count > 0)
rehash (hash);
return count;
@@ -367,6 +422,7 @@ g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data)
g_return_val_if_fail (hash != NULL, 0);
g_return_val_if_fail (func != NULL, 0);
sanity_check (hash);
for (i = 0; i < hash->table_size; i++){
Slot *s, *last;
@@ -392,6 +448,7 @@ g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data)
}
}
}
sanity_check (hash);
if (count > 0)
rehash (hash);
return count;
@@ -422,6 +479,27 @@ g_hash_table_destroy (GHashTable *hash)
g_free (hash);
}
void
g_hash_table_print_stats (GHashTable *table)
{
int i, max_chain_index, chain_size, max_chain_size;
Slot *node;
max_chain_size = 0;
max_chain_index = -1;
for (i = 0; i < table->table_size; i++) {
chain_size = 0;
for (node = table->table [i]; node; node = node->next)
chain_size ++;
if (chain_size > max_chain_size) {
max_chain_size = chain_size;
max_chain_index = i;
}
}
printf ("Size: %d Table Size: %d Max Chain Length: %d at %d\n", table->in_use, table->table_size, max_chain_size, max_chain_index);
}
gboolean
g_direct_equal (gconstpointer v1, gconstpointer v2)
{
+12 -2
View File
@@ -43,7 +43,6 @@ G_BEGIN_DECLS
/*
* Basic data types
*/
typedef int gboolean;
typedef int gint;
typedef unsigned int guint;
typedef short gshort;
@@ -68,6 +67,7 @@ typedef unsigned __int64 guint64;
typedef float gfloat;
typedef double gdouble;
typedef unsigned __int16 gunichar2;
typedef int gboolean;
#else
/* Types defined in terms of the stdint.h */
typedef int8_t gint8;
@@ -81,6 +81,7 @@ typedef uint64_t guint64;
typedef float gfloat;
typedef double gdouble;
typedef uint16_t gunichar2;
typedef int32_t gboolean;
#endif
#endif
@@ -99,6 +100,7 @@ typedef uint16_t gunichar2;
#define G_MININT32 INT32_MIN
#define G_MININT64 INT64_MIN
#define G_MAXINT64 INT64_MAX
#define G_MAXUINT64 UINT64_MAX
#define G_LITTLE_ENDIAN 1234
#define G_BIG_ENDIAN 4321
@@ -137,6 +139,7 @@ static inline gpointer g_malloc0 (gsize x) {if (x) return calloc(1,x); else retu
gpointer g_memdup (gconstpointer mem, guint byte_size);
static inline gchar *g_strdup (const gchar *str) { if (str) {return strdup (str);} return NULL; }
gchar **g_strdupv (gchar **str_array);
typedef struct {
gpointer (*malloc) (gsize n_bytes);
@@ -198,6 +201,7 @@ gboolean g_hash_table_remove (GHashTable *hash, gconstpointer ke
guint g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data);
guint g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data);
void g_hash_table_destroy (GHashTable *hash);
void g_hash_table_print_stats (GHashTable *table);
guint g_spaced_primes_closest (guint x);
@@ -289,6 +293,7 @@ gint g_ascii_xdigit_value (gchar c);
#else
#define g_strcasecmp strcasecmp
#define g_ascii_strcasecmp strcasecmp
#define g_ascii_strtoull strtoull
#define g_strncasecmp strncasecmp
#define g_strstrip(a) g_strchug (g_strchomp (a))
#endif
@@ -603,9 +608,13 @@ gint g_unichar_xdigit_value (gunichar c);
#define CLAMP(a,low,high) (((a) < (low)) ? (low) : (((a) > (high)) ? (high) : (a)))
#endif
/* FIXME: Implement these two for gcc */
#if defined(__GNUC__) && (__GNUC__ > 2)
#define G_LIKELY(expr) (__builtin_expect ((expr) != 0, 1))
#define G_UNLIKELY(expr) (__builtin_expect ((expr) != 0, 0))
#else
#define G_LIKELY(x) (x)
#define G_UNLIKELY(x) (x)
#endif
/*
* Unicode conversion
@@ -768,6 +777,7 @@ GDir *g_dir_open (const gchar *path, guint flags, GError **error);
const gchar *g_dir_read_name (GDir *dir);
void g_dir_rewind (GDir *dir);
void g_dir_close (GDir *dir);
#define g_mkdir mkdir
/*
* GMarkup
+7 -15
View File
@@ -26,6 +26,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <stdlib.h>
#include <glib.h>
#include <pthread.h>
@@ -81,27 +82,18 @@ g_get_home_dir (void)
if (home_dir == NULL){
pthread_mutex_lock (&home_lock);
if (home_dir == NULL){
#ifdef HAVE_GETPWENT_R
struct passwd pwbuf, *track;
#ifdef HAVE_GETPWUID_R
struct passwd pw;
struct passwd *result;
char buf [4096];
uid_t uid;
uid = getuid ();
setpwent ();
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
if (pwbuf.pw_uid == uid){
home_dir = g_strdup (pwbuf.pw_dir);
break;
}
}
endpwent ();
if (getpwuid_r (getuid (), &pw, buf, 4096, &result) == 0)
home_dir = g_strdup (pw.pw_dir);
#endif
if (home_dir == NULL)
home_dir = g_getenv ("HOME");
pthread_mutex_unlock (&home_lock);
}
pthread_mutex_unlock (&home_lock);
}
return home_dir;
}
+5
View File
@@ -51,6 +51,11 @@ g_getenv(const gchar *variable)
retval = GetEnvironmentVariableW (var, buffer, buffer_size);
}
val = u16to8 (buffer);
} else {
if (GetLastError () != ERROR_ENVVAR_NOT_FOUND){
val = g_malloc (1);
*val = 0;
}
}
g_free(var);
g_free(buffer);
+38
View File
@@ -31,6 +31,42 @@
#include <glib.h>
#include <gmodule.h>
#if defined(__native_client__)
GModule *
g_module_open (const gchar *file, GModuleFlags flags)
{
printf("dlopen() not supported on Native Client.\n");
return NULL;
}
gboolean
g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
{
return FALSE;
}
const gchar*
g_module_error(void)
{
return "dlopen not supported on Native Client.";
}
gboolean
g_module_close (GModule *module)
{
return FALSE;
}
gchar*
g_module_build_path (const gchar *directory, const gchar *module_name)
{
return NULL;
}
#else
#ifdef G_OS_UNIX
#include <dlfcn.h>
@@ -286,3 +322,5 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
#endif /* __native_client__ */
+4
View File
@@ -10,6 +10,8 @@
#define G_MODULE_EXPORT
#endif
G_BEGIN_DECLS
/*
* Modules
*/
@@ -30,4 +32,6 @@ gchar * g_module_build_path (const gchar *directory, const gchar *module_name);
extern char *gmodule_libprefix;
extern char *gmodule_libsuffix;
G_END_DECLS
#endif
+1
View File
@@ -153,5 +153,6 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
g_assert_not_reached ();
}
+17 -9
View File
@@ -33,7 +33,6 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
{
gchar *ptr;
gchar c;
gboolean in_quote = FALSE;
gboolean escaped = FALSE;
gchar quote_char = '\0';
GString *str;
@@ -42,18 +41,28 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
ptr = (gchar *) cmdline;
while ((c = *ptr++) != '\0') {
if (escaped) {
escaped = FALSE;
if (!g_ascii_isspace (c))
/*
* \CHAR is only special inside a double quote if CHAR is
* one of: $`"\ and newline
*/
if (quote_char == '\"'){
if (!(c == '$' || c == '`' || c == '"' || c == '\\'))
g_string_append_c (str, '\\');
g_string_append_c (str, c);
} else if (in_quote) {
} else {
if (!g_ascii_isspace (c))
g_string_append_c (str, c);
}
escaped = FALSE;
} else if (quote_char) {
if (c == quote_char) {
in_quote = FALSE;
quote_char = '\0';
g_ptr_array_add (array, g_string_free (str, FALSE));
str = g_string_new ("");
} else {
} else if (c == '\\'){
escaped = TRUE;
} else
g_string_append_c (str, c);
}
} else if (g_ascii_isspace (c)) {
if (str->len > 0) {
g_ptr_array_add (array, g_string_free (str, FALSE));
@@ -62,7 +71,6 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
} else if (c == '\\') {
escaped = TRUE;
} else if (c == '\'' || c == '"') {
in_quote = TRUE;
quote_char = c;
} else {
g_string_append_c (str, c);
@@ -76,7 +84,7 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
return -1;
}
if (in_quote) {
if (quote_char) {
if (error)
*error = g_error_new (G_LOG_DOMAIN, 0, "Unfinished quote.");
g_string_free (str, TRUE);
+5 -3
View File
@@ -35,7 +35,9 @@
#include <glib.h>
#ifdef HAVE_UNISTD_H
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <unistd.h>
#endif
@@ -64,7 +66,7 @@
#define NO_INTR(var,cmd) do { (var) = (cmd); } while ((var) == -1 && errno == EINTR)
#define CLOSE_PIPE(p) do { close (p [0]); close (p [1]); } while (0)
#ifdef __APPLE__
#if defined(__APPLE__) && !defined (__arm__)
/* Apple defines this in crt_externs.h but doesn't provide that header for
* arm-apple-darwin9. We'll manually define the symbol on Apple as it does
* in fact exist on all implementations (so far)
@@ -381,10 +383,10 @@ g_spawn_async_with_pipes (const gchar *working_directory,
}
if (standard_input) {
dup2 (in_pipe [0], STDERR_FILENO);
dup2 (in_pipe [0], STDIN_FILENO);
} else if ((flags & G_SPAWN_CHILD_INHERITS_STDIN) == 0) {
fd = open ("/dev/null", O_RDONLY);
dup2 (fd, STDERR_FILENO);
dup2 (fd, STDIN_FILENO);
}
if ((flags & G_SPAWN_LEAVE_DESCRIPTORS_OPEN) != 0) {
+15
View File
@@ -63,6 +63,21 @@ g_strfreev (gchar **str_array)
g_free (orig);
}
gchar **
g_strdupv (gchar **str_array)
{
guint length;
gchar **ret;
guint i;
length = g_strv_length(str_array);
ret = g_new0(gchar *, length + 1);
for (i = 0; str_array[i]; i++) {
ret[i] = g_strdup(str_array[i]);
}
ret[length] = NULL;
return ret;
}
guint
g_strv_length(gchar **str_array)
{
+4 -3
View File
@@ -42,7 +42,7 @@
#if defined(_MSC_VER) || defined(G_OS_WIN32)
/* FIXME */
# define CODESET 1
# include <Windows.h>
# include <windows.h>
# ifdef _MSC_VER
typedef int iconv_t;
# endif
@@ -302,10 +302,11 @@ g_get_charset (G_CONST_RETURN char **charset)
is_utf8 = FALSE;
#else
if (my_charset == NULL){
/* These shouldn't be heap allocated */
#if HAVE_LANGINFO_H
my_charset = g_strdup (nl_langinfo (CODESET));
my_charset = nl_langinfo (CODESET);
#else
my_charset = g_strdup ("UTF-8");
my_charset = "UTF-8";
#endif
is_utf8 = strcmp (my_charset, "UTF-8") == 0;
}
+119 -96
View File
@@ -55,98 +55,6 @@ g_utf8_strdown (const gchar *str, gssize len)
return (gchar*)utf8_case_conv (str, len, FALSE);
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
for (in_pos = 0; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
static glong
utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **error)
{
@@ -156,13 +64,24 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
guint32 codepoint;
glong in_pos, ret;
mb_size = 0;
mb_remain = 0;
overlong = 0;
if (len < 0)
len = strlen (str);
in_pos = 0;
ret = 0;
for (in_pos = 0; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
/* Common case */
for (in_pos = 0; in_pos < len && str [in_pos] < 0x80; in_pos++)
ret ++;
if (in_pos == len)
return ret;
mb_size = 0;
mb_remain = 0;
overlong = 0;
for (; in_pos < len; in_pos++) {
ch = str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
@@ -271,6 +190,110 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
return ret;
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (len < 0)
len = strlen (str);
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
/* Common case */
for (in_pos = 0; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (ch >= 0x80)
break;
ret [out_pos++] = ch;
}
for (; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
gchar*
g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error)
{
+2
View File
@@ -8,3 +8,5 @@
/semantic.cache
/.project
/.cproject
/test-eglib
/test-glib
+1 -1
View File
@@ -3,7 +3,7 @@
#include <glib.h>
#include "test.h"
#define do_bad_test(s) do { char *r = markup_test (s); if (r == NULL) return FAILED ("Failed on test " # s); else free (r); } while (0)
#define do_bad_test(s) do { char *r = markup_test (s); if (r == NULL) return FAILED ("Failed on test " # s); else g_free (r); } while (0)
#define do_ok_test(s) do { char *r = markup_test (s); if (r != NULL) return FAILED ("Could not parse valid " # s); } while (0)
static char *
+1 -1
View File
@@ -94,7 +94,7 @@ test_buildpath ()
g_free (s);
/* Null */
s = g_build_path ("/", NULL);
s = g_build_path ("/", NULL, NULL);
if (s == NULL)
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
+34
View File
@@ -226,6 +226,39 @@ test_shell_argv3 ()
return OK;
}
// This was the 2.8 showstopper error
RESULT
test_shell_argv4 ()
{
GError *error;
gint argc;
gchar **argv;
gboolean ret;
char *str = "'/usr/bin/gnome-terminal' -e \"bash -c 'read -p \\\"Press any key to continue...\\\" -n1;'\"";
argv = NULL;
argc = 0;
error = NULL;
ret = g_shell_parse_argv (str, &argc, &argv, &error);
if (!ret)
return FAILED ("1. It should return TRUE");
if (argc != 3)
return FAILED ("2. argc was %d", argc);
if (argv == NULL)
return FAILED ("3. argv[0] was NULL");
if (error != NULL)
return FAILED ("4. error was set");
if (strcmp (argv [0], "/usr/bin/gnome-terminal"))
return FAILED ("5. Expected /usr/bin/gnome-terminal got %s", argv [0]);
if (strcmp (argv [1], "-e"))
return FAILED ("6. Expected -e, got: %s", argv [1]);
if (strcmp (argv [2], "bash -c 'read -p \"Press any key to continue...\" -n1;'"))
return FAILED ("7. Got unexpected result: %s\n", argv [2]);
return OK;
}
RESULT
test_quote ()
{
@@ -244,6 +277,7 @@ static Test shell_tests [] = {
{"g_shell_parse_argv1", test_shell_argv1},
{"g_shell_parse_argv2", test_shell_argv2},
{"g_shell_parse_argv3", test_shell_argv3},
{"g_shell_parse_argv4", test_shell_argv4},
{"g_shell_quote", test_quote},
{NULL, NULL}
};
+6
View File
@@ -177,6 +177,11 @@ FAILED(const gchar *format, ...)
va_list args;
gint n;
#if !defined(HAVE_VASPRINTF) && !defined(_EGLIB_MAJOR)
/* We are linked against the real glib, no vasprintf */
g_assert_not_reached ();
return NULL;
#else
va_start(args, format);
n = vasprintf(&ret, format, args);
va_end(args);
@@ -188,6 +193,7 @@ FAILED(const gchar *format, ...)
last_result = ret;
return ret;
#endif
}
gdouble
+2
View File
@@ -0,0 +1,2 @@
/BCC_MAKEFILE -crlf
/digimars.mak -crlf
+19
View File
@@ -1,3 +1,22 @@
2010-07-27 Geoff Norton <[email protected]>
* darwin_stop_world.c: Dont track unneeded registers for amd64.
2010-06-29 Geoff Norton <[email protected]>
* include/private/gc_locks.h: Implement armv6+ variants of
GC_test_and_set
2010-06-14 Geoff Norton <[email protected]>
* dyn_load.c: Fix one other place where l_addr could be null on
bionic.
2010-05-31 Geoff Norton <[email protected]>
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
2010-04-23 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Darwin x86-64 bit support.
+6
View File
@@ -489,6 +489,7 @@ if test "${enable_gc_assertions}" = yes; then
AC_DEFINE(GC_ASSERTIONS)
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
if test "${multilib}" = "yes"; then
@@ -497,6 +498,11 @@ else
multilib_arg=
fi
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find . -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT(Makefile
include/Makefile
include/private/Makefile
+1 -7
View File
@@ -146,7 +146,6 @@ void GC_push_all_stacks() {
GC_push_one(state.__rdi);
GC_push_one(state.__rsi);
GC_push_one(state.__rbp);
GC_push_one(state.__rsp);
GC_push_one(state.__r8);
GC_push_one(state.__r9);
GC_push_one(state.__r10);
@@ -155,13 +154,8 @@ void GC_push_all_stacks() {
GC_push_one(state.__r13);
GC_push_one(state.__r14);
GC_push_one(state.__r15);
GC_push_one(state.__rip);
GC_push_one(state.__rflags);
GC_push_one(state.__cs);
GC_push_one(state.__fs);
GC_push_one(state.__gs);
#elif defined(POWERPC)
#if defined(_STRUCT_PPC_EXCEPTION_STATE)
#if defined(_STRUCT_PPC_EXCEPTION_STATE) && defined(__DARWIN_UNIX03)
lo = (void*)(state.__r1 - PPC_RED_ZONE_SIZE);
GC_push_one(state.__r0);
+8 -2
View File
@@ -250,7 +250,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
e = (ElfW(Ehdr) *) lm->l_addr;
e = (ElfW(Ehdr) *) lm->l_addr;
if (e == NULL)
continue;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {
@@ -544,7 +547,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
e = (ElfW(Ehdr) *) lm->l_addr;
e = (ElfW(Ehdr) *) lm->l_addr;
if (e == NULL)
continue;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {
+14
View File
@@ -224,6 +224,19 @@
# endif /* ALPHA */
# ifdef ARM32
inline static int GC_test_and_set(volatile unsigned int *addr) {
#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7__)
int ret, tmp;
__asm__ __volatile__ (
"1:\n"
"ldrex %0, [%3]\n"
"strex %1, %2, [%3]\n"
"teq %1, #0\n"
"bne 1b\n"
: "=&r" (ret), "=&r" (tmp)
: "r" (1), "r" (addr)
: "memory", "cc");
return ret;
#else
int oldval;
/* SWP on ARM is very similar to XCHG on x86. Doesn't lock the
* bus because there are no SMP ARM machines. If/when there are,
@@ -234,6 +247,7 @@
: "r"(1), "r"(addr)
: "memory");
return oldval;
#endif
}
# define GC_TEST_AND_SET_DEFINED
# endif /* ARM32 */
+13 -13
View File
@@ -408,18 +408,18 @@
# else
# if (defined(_MSDOS) || defined(_MSC_VER)) && (_M_IX86 >= 300) \
|| defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
# if defined(__LP64__) || defined(_WIN64)
# define X86_64
# else
# define I386
# endif
# define MSWIN32 /* or Win64 */
# define mach_type_known
# endif
# if defined(_MSC_VER) && defined(_M_IA64)
# define IA64
# define MSWIN32 /* Really win64, but we don't treat 64-bit */
/* variants as a differnt platform. */
# if defined(__LP64__) || defined(_WIN64)
# define X86_64
# else
# define I386
# endif
# define MSWIN32 /* or Win64 */
# define mach_type_known
# endif
# if defined(_MSC_VER) && defined(_M_IA64)
# define IA64
# define MSWIN32 /* Really win64, but we don't treat 64-bit */
/* variants as a differnt platform. */
# endif
# endif
# if defined(__DJGPP__)
@@ -808,7 +808,7 @@
# define STACKBOTTOM ((ptr_t) LMGetCurStackBase())
# define DATAEND /* not needed */
# endif
# ifdef LINUX
# if defined(__powerpc64__)
# define ALIGNMENT 8
+2
View File
@@ -1061,6 +1061,8 @@ void GC_thr_init()
GC_markers = atoi(markers_string);
} else {
GC_markers = GC_nprocs;
if (GC_markers > MAX_MARKERS)
GC_markers = MAX_MARKERS;
}
}
# endif
+4 -4
View File
@@ -385,10 +385,10 @@ void GC_push_all_stacks()
# define PUSH4(r1,r2,r3,r4) PUSH2(r1,r2), PUSH2(r3,r4)
# if defined(I386)
PUSH4(Edi,Esi,Ebx,Edx), PUSH2(Ecx,Eax), PUSH1(Ebp);
sp = (ptr_t)context.Esp;
# elif defined(X86_64)
PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Esp;
# elif defined(X86_64)
PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Rsp;
# elif defined(ARM32)
PUSH4(R0,R1,R2,R3),PUSH4(R4,R5,R6,R7),PUSH4(R8,R9,R10,R11),PUSH1(R12);
+9
View File
@@ -1,3 +1,12 @@
2010-08-03 Andrés G. Aragoneses <[email protected]>
* monolinker.1: Add the name="..." notation to the field examples too
(besides the signature="..." one).
2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* mono.1: Document MONO_DEBUG's new reverse-pinvoke-exceptions option.
2010-04-23 Miguel de Icaza <[email protected]>
* mono.1: Sort environment variables, update a couple of docs.
+3 -1
View File
@@ -33,6 +33,7 @@ man_MANS = \
monodocs2html.1 \
monolinker.1 \
monop.1 \
mono-api-info.1 \
mono-service.1 \
mono-shlib-cop.1 \
mono-xmltool.1 \
@@ -51,6 +52,7 @@ man_MANS = \
wsdl.1 \
xbuild.1 \
xsd.1 \
mono-configuration-crypto.1
mono-configuration-crypto.1 \
ccrewrite.1
EXTRA_DIST = $(man_MANS)
+67
View File
@@ -0,0 +1,67 @@
.\"
.\" ccrewrite manual page.
.\" Copyright (C) 2010 Novell, Inc (http://www.novell.com)
.\" Author:
.\" Chris Bacon <[email protected]>
.\"
.TH Mono "ccrewrite"
.SH NAME
ccrewrite \- Rewrite CLR assemblies for runtime code contract verification.
.SH SYNOPSIS
.PP
.B ccrewrite --assembly=<assembly> [options]
.SH DESCRIPTION
Rewrite CLR assemblies to convert calls into the System.Diagnostics.Contracts
namespace to perform runtime contract verification. This includes
contract inheritance for virtual methods.
.PP
The assembly must have been built with the symbol CONTRACTS_FULL defined,
otherwise the calls to the contract methods will have been removed
by the compiler.
.PP
Currently only pre-conditions are supported, using the Contract.Requires()
method. Contract inheritance for virtual methods is supported. Only a
limited range of operations and types can be used within a pre-condition,
an error message will be shown if ccrewrite is unable to process the
specified assembly.
.SH CONFIGURATION OPTIONS
.TP
.I "--assembly <assembly-name>"
The assembly to rewrite. If no --output option is specified, then this file
overwritten with the rewritten version.
.TP
.I "--debug"
Use debug information if available to improve the usefulness of contract
failure messages.
.TP
.I "--help"
Show help for ccrewrite, listing configuration options.
.TP
.I "--level <level> (default=4)"
Set the which contract types are present in rewritten assembly:
0 = No contracts;
1 = Release requires;
2 = Requires;
3 = Ensures;
4 = Invariants;
(Each level includes all previous levels)
.TP
.I "--output <file-name>"
Write the rewritten assembly to the specified file. If this is not present
then the input assembly file is overwritten with the rewritten version.
.TP
.I "--rewrite (default=true)"
Rewrite the assembly. If false, then nothing is done.
.TP
.I "--throwOnFailure (default=false)"
Throw a ContractException on unhandled contract failure. The default
behaviour is to Assert.
.SH AUTHOR
Written by Chris Bacon
.SH COPYRIGHT
Copyright (C) 2010 Chris Bacon.
Released under MIT license.
.SH WEB SITE
Visit http://www.mono-project.com for details
+1
View File
@@ -22,4 +22,5 @@
<manpage name="xsd" page="xsd.1" />
<manpage name="caspol" page="caspol.1" />
<manpage name="al" page="al.1" />
<manpage name="ccrewrite" page="ccrewrite.1" />
</manpages>
+36
View File
@@ -0,0 +1,36 @@
.\"
.\" mono-api-info manual page.
.\" Copyright (C) 2010 Linden Lab, Inc (http://www.lindenlab.com)
.\" Author:
.\" Andrés G. Aragoneses <[email protected]>
.\"
.TH Mono "mono-api-info"
.SH NAME
mono-api-info \- Expose IL structure of CLR assemblies as XML.
.
.SH SYNOPSIS
.PP
.B mono-api-info [--abi] assembly1.dll assembly2.exe ...
.SH DESCRIPTION
Expose the structure of your CLR assemblies by examining their IL and
giving XML output.
.PP
By default this tool gives information about just the public API of the
assemblies to scan. So it's good for comparing API compatibility between
versions of libraries.
.SH OPTIONS
.TP
.I "--abi"
Show the ABI instead of the API, that is, non-static fields (even the
non-public ones) that are not marked as [NonSerialized()].
.SH AUTHOR
Written by Andrés G. Aragoneses
.SH COPYRIGHT
Copyright (C) 2010 LindenLab.
Released under BSD license.
.SH MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
.SH SEE ALSO
.BR mono(1)
+147 -12
View File
@@ -11,6 +11,8 @@ mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
.SH SYNOPSIS
.PP
.B mono [options] file [arguments...]
.PP
.B mono-sgen [options] file [arguments...]
.SH DESCRIPTION
\fImono\fP is a runtime implementation of the ECMA Common Language
Infrastructure. This can be used to run ECMA and .NET applications.
@@ -35,6 +37,10 @@ is an ECMA assembly. They typically have a .exe or .dll extension.
The runtime provides a number of configuration options for running
applications, for developing and debugging, and for testing and
debugging the runtime itself.
.PP
The \fImono\fP command uses the Boehm conservative garbage collector
while the \fImono-sgen\fP command uses a moving and generational
garbage collector.
.SH PORTABILITY
On Unix-based systems, Mono provides a mechanism to emulate the
Windows-style file access, this includes providing a case insensitive
@@ -178,17 +184,6 @@ For more information about AOT, see: http://www.mono-project.com/AOT
Currently the only option supported by this command line argument is
\fBdisable\fR which disables the attach functionality.
.TP
\fB--full-aot\fR
This is an experimental flag that instructs the Mono runtime to not
generate any code at runtime and depend exclusively on the code
generated from using mono --aot=full previously. This is useful for
platforms that do not permit dynamic code generation.
.Sp
Notice that this feature will abort execution at runtime if a codepath
in your program, or Mono's class libraries attempts to generate code
dynamically. You should test your software upfront and make sure that
you do not use any dynamic features.
.TP
\fB--config filename\fR
Load the specified configuration file instead of the default one(s).
The default files are /etc/mono/config and ~/.mono/config or the file
@@ -234,6 +229,24 @@ applications. Currently this sets the GC system to avoid expanding
the heap as much as possible at the expense of slowing down garbage
collection a bit.
.TP
\fB--full-aot\fR
This is an experimental flag that instructs the Mono runtime to not
generate any code at runtime and depend exclusively on the code
generated from using mono --aot=full previously. This is useful for
platforms that do not permit dynamic code generation.
.Sp
Notice that this feature will abort execution at runtime if a codepath
in your program, or Mono's class libraries attempts to generate code
dynamically. You should test your software upfront and make sure that
you do not use any dynamic features.
.TP
\fB--gc=boehm\fR, \fB--gc=sgen\fR
Selects the Garbage Collector engine for Mono to use, Boehm or SGen.
Currently this merely ensures that you are running either the
\fImono\fR or \fImono-sgen\fR commands. This flag can be set in the
\fBMONO_ENV_OPTIONS\fR environment variable to force all of your child
processes to use one particular kind of GC with the Mono runtime.
.TP
\fB--help\fR, \fB-h\fR
Displays usage instructions.
.TP
@@ -1273,6 +1286,12 @@ Unix only: Enable support for cross-process handles. Cross-process
handles are used to expose process handles, thread handles, named
mutexes, named events and named semaphores across Unix processes.
.TP
\fBMONO_ENV_OPTIONS\fR
This environment variable allows you to pass command line arguments to
a Mono process through the environment. This is useful for example
to force all of your Mono processes to use LLVM or SGEN without having
to modify any launch scripts.
.TP
\fBMONO_EVENTLOG_TYPE\fR
Sets the type of event log provider to use (for System.Diagnostics.EventLog).
.Sp
@@ -1328,6 +1347,94 @@ the right file name it is not necessarily possible to open the file.
In general if you have problems with encodings in your filenames you
should use the "convmv" program.
.TP
\fBMONO_GC_PARAMS\fR
When using Mono with the SGen garbage collector this variable controls
several parameters of the collector. The variable's value is a comma
separated list of words.
.RS
.ne 8
.TP
\fBnursery-size=\fIsize\fR
Sets the size of the nursery. The size is specified in bytes and must
be a power of two. The suffixes `k', `m' and `g' can be used to
specify kilo-, mega- and gigabytes, respectively. The nursery is the
first generation (of two). A larger nursery will usually speed up the
program but will obviously use more memory. The default nursery size
4 MB.
.TP
\fBmajor=\fIcollector\fR
Specifies which major collector to use. Options are `marksweep' for
the Mark&Sweep collector, `marksweep-par' for parallel Mark&Sweep,
`marksweep-fixed' for Mark&Sweep with a fixed heap,
`marksweep-fixed-par' for parallel Mark&Sweep with a fixed heap and
`copying' for the copying collector. The Mark&Sweep collector is the
default.
.TP
\fBmajor-heap-size=\fIsize\fR
Sets the size of the major heap (not including the large object space)
for the fixed-heap Mark&Sweep collector (i.e. `marksweep-fixed' and
`marksweep-fixed-par'). The size is in bytes, with optional suffixes
`k', `m' and `g' to specify kilo-, mega- and gigabytes, respectively.
The default is 512 megabytes.
.TP
\fBwbarrier=\fIwbarrier\fR
Specifies which write barrier to use. Options are `cardtable' and
`remset'. The card table barrier is faster but less precise, and only
supported for the Mark&Sweep major collector on 32 bit platforms. The
default is `cardtable' if it is supported, otherwise `remset'.
.ne
.RE
.TP
\fBMONO_GC_DEBUG\fR
When using Mono with the SGen garbage collector this environment
variable can be used to turn on various debugging features of the
collector. The value of this variable is a comma separated list of
words.
.RS
.ne 8
.TP
\fInumber\fR
Sets the debug level to the specified number.
.TP
\fBcollect-before-allocs\fR
.TP
\fBcheck-at-minor-collections\fR
This performs a consistency check on minor collections and also clears
the nursery at collection time, instead of the default, when buffers
are allocated (clear-at-gc). The consistency check ensures that
there are no major to minor references that are not on the remembered
sets.
.TP
\fBxdomain-checks\fR
Performs a check to make sure that no references are left to an
unloaded AppDomain.
.TP
\fBclear-at-gc\fR
This clears the nursery at GC time instead of doing it when the thread
local allocation buffer (TLAB) is created. The default is to clear
the nursery at TLAB creation time.
.TP
\fBconservative-stack-mark\fR
Forces the GC to scan the stack conservatively, even if precise
scanning is available.
.TP
\fBcheck-scan-starts\fR
If set, does a plausibility check on the scan_starts before and after each collection
.TP
\fBheap-dump=\fIfile\fR
Dumps the heap contents to the specified file. To visualize the
information, use the mono-heapviz tool.
.TP
\fBbinary-protocol=\fIfile\fR
Outputs the debugging output to the specified file. For this to
work, Mono needs to be compiled with the BINARY_PROTOCOL define on
sgen-gc.c. You can then use this command to explore the output
.nf
sgen-grep-binprot 0x1234 0x5678 < file
.fi
.ne
.RE
.TP
\fBMONO_GAC_PREFIX\fR
Provides a prefix the runtime uses to look for Global Assembly Caches.
Directories are separated by the platform path separator (colons on
@@ -1382,7 +1489,13 @@ in the following way:
mono --profile=iomap yourapplication.exe
.fi
Note, however, that Mono currently supports only one profiler module at a time.
Note, however, that Mono currently supports only one profiler module
at a time.
.TP
\fBMONO_LLVM\fR
When Mono is using the LLVM code generation backend you can use this
environment variable to pass code generation options to the LLVM
compiler.
.TP
\fBMONO_MANAGED_WATCHER\fR
If set to "disabled", System.IO.FileSystemWatcher will use a file watcher
@@ -1491,6 +1604,13 @@ interpreter. The possible values are `no' to disable the use of a
custom serializer or a number to indicate when the XmlSerializer
should start serializing. The default value is 50, which means that
the a custom serializer will be produced on the 50th use.
.TP
\fBMONO_X509_REVOCATION_MODE\fR
Sets the revocation mode used when validating a X509 certificate chain (https,
ftps, smtps...). The default is 'nocheck', which performs no revocation check
at all. The other possible values are 'offline', which performs CRL check (not
implemented yet) and 'online' which uses OCSP and CRL to verify the revocation
status (not implemented yet).
.SH ENVIRONMENT VARIABLES FOR DEBUGGING
.TP
\fBMONO_ASPNET_NODELETE\fR
@@ -1510,6 +1630,11 @@ If this variable is set, when the Mono VM runs into a verification
problem, instead of throwing an exception it will break into the
debugger. This is useful when debugging verifier problems
.TP
\fBcasts\fR
This option can be used to get more detailed information from
InvalidCast exceptions, it will provide information about the types
involved.
.TP
\fBcollect-pagefault-stats\fR
Collects information about pagefaults. This is used internally to
track the number of page faults produced to load metadata. To display
@@ -1542,6 +1667,16 @@ passed to unmanaged code, and no references kept in managed code,
which will garbage collect the code. With this option it is possible
to track down the source of the problems.
.TP
\fBreverse-pinvoke-exceptions
This option will cause mono to abort with a descriptive message when
during stack unwinding after an exception it reaches a native stack
frame. This happens when a managed delegate is passed to native code,
and the managed delegate throws an exception. Mono will normally try
to unwind the stack to the first (managed) exception handler, and it
will skip any native stack frames in the process. This leads to
undefined behaviour (since mono doesn't know how to process native
frames), leaks, and possibly crashes too.
.TP
\fBno-gdb-backtrace\fR
This option will disable the GDB backtrace emitted by the runtime
after a SIGSEGV or SIGABRT in unmanaged code.
+1
View File
@@ -111,6 +111,7 @@ Here is an example that shows all the possibilities of this format:
<type fullname="Gazonk">
<method signature="System.Void .ctor(System.String)" />
<field signature="System.String _blah" />
<field name="someFieldName" />
</type>
</assembly>
</linker>
+34 -1
View File
@@ -23,6 +23,15 @@ Set or override project properties
.B \//logger:<logger>
Custom logger to log build events
.TP
.B \//toolsversion:version , /tv:version
Specify the toolset version to use.
Eg. /tv:4.0
This would cause 4.0 version of the Microsoft.Common.targets (among others) to be used. This overrides
the value specified in a project file.
Valid values: 2.0, 3.0, 3.5 and 4.0
.TP
.B \//verbosity:<level>
Logger verbosity level : quiet, minimal, normal, detailed, diagnostic
.TP
@@ -33,7 +42,7 @@ Validate the project file against the schema
Validate the project file against the specified schema
.TP
.B \//consoleloggerparameters:<params>
Parameters for the console logger
Parameters for the console logger : PerfomanceSummary, NoSummary, NoItemAndPropertyList
.TP
.B \//nologo
Don't show the initial xbuild banner
@@ -49,6 +58,30 @@ Display xbuild version
If this variable is set, then the project file generated from a solution
file is emitted.
.TP
.I "XBUILD_LOG_REFERENCE_RESOLVER"
References are resolved by trying a list of assembly search paths ($(AssemblySearchPaths)).
If xbuild is unable to resolve a reference, then it logs details of why the various
search paths failed. If this variable is set, then it logs the same even for references
that were resolved successfully. These logs show up if the verbosity is set to detailed
or higher.
.TP
.I "MSBuildExtensionsPath"
MSBuild extensions are usually installed in $(MSBuildExtensionsPath), which xbuild resolves
to $prefix/lib/mono/xbuild . When used in Import, like:
<Import Project="$(MSBuildExtensionsPath)\\TestTargets.targets"/>
xbuild tries various values for the msbuild property $(MSBuildExtensionsPath), in order:
1. Paths specified in the environment variable $MSBuildExtensionsPath.
2. $XDG_CONFIG_HOME/xbuild/tasks (or Environment.SpecialFolder.ApplicationData)
3. $prefix/lib/mono/xbuild (default location)
Anywhere else in the project files, $(MSBuildExtensionsPath) will always resolve to the default
location. This is a xbuild-only feature.
This is also applicable for the properties $(MSBuildExtensionsPath32) and $(MSBuildExtensionsPath64),
and the environment variables have the corresponding names - MSBuildExtensionsPath32/64 .
.TP
.I "XBUILD_COLORS"
If this variable is set, it contains a string of the form
"type=foreground,type=.." that specifies which color to use to display
+2
View File
@@ -0,0 +1,2 @@
/LICENSE.MSPL -crlf
/ScalableMonoIcon.svg -crlf
+24
View File
@@ -1,3 +1,27 @@
*.mdb
*.exe
*.dll
*_test_*.dll.config
*_test_*.xml
*.o
TestResult-*.log
TestResult-*.xml
TestResult*.xml
errors/?mcs.log
errors/dummy.xml
tests/?mcs.log
tests/gtest-*.dll
tests/test-*.dll
tests/xml-*.xml
tests/test-*.netmodule
tests/gxml-*.xml
tests/test-*.xml
tests/data.xml
class/Mono.Data.Sqlite/test.db
class/Mono.CSharp/Mono.CSharp.dll.sources
class/RabbitMQ.Client/docs/specs/autogenerated-api-0-8.cs
class/RabbitMQ.Client/docs/specs/autogenerated-api-0-9.cs
class/RabbitMQ.Client/docs/specs/autogenerated-api-qpid-0-8.cs
class/System.Web.Mvc/System.Web.Mvc/Resources/MvcResources.resources
class/System.Web.Mvc2/System.Web.Mvc/Resources/MvcResources.resources
XmlWriter
+1 -1
View File
@@ -80,7 +80,7 @@ all-local $(STD_TARGETS:=-local):
@:
dir-check:
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then echo "Running make from the mcs directory is not supported. Run make from the parent directory (if using a tarball), or from the directory where the runtime is checked out (if using an SVN checkout)."; exit 1; fi
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then echo "Running make from the mcs directory is not supported. Run make from the parent directory."; exit 1; fi
# fun specialty targets
+2 -7
View File
@@ -1,4 +1,4 @@
This contains code written in C# of Mono, it contains:
This contains the C# components of the Mono project.
* Compilers written in C#
@@ -22,16 +22,11 @@ package module which drives the compilation of this directory.
errors/
Sample programs that should generate errors by the C# compiler.
gmcs/
The Mono C# compiler with Generics support. This will
become the default in Mono 2.0.
jay/
Yacc-based parser generator.
mcs/
The Mono C# compiler (1.0 + 2.0 minus generics).
The Mono C# compiler
tests/
Regression test suite for the C# compiler
+10
View File
@@ -1,3 +1,13 @@
2010-07-14 Miguel de Icaza <[email protected]>
* tests.make: Do not run the tests under the verifier until the
verifier bug is fixed so at least we can see what is going on in
our buildbots.
2010-07-12 Marek Safar <[email protected]>
* tests.make: Run all tests under verifier.
2010-05-28 Marek Safar <[email protected]>
* library.make: Don't sort source input files on windows to
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>
<Target Name="Build">
<Copy SourceFiles="common\Consts.cs.in" DestinationFiles="common\Consts.cs"/>
<MSBuild.ExtensionPack.FileSystem.File TaskAction="Replace" RegexPattern="@MONO_VERSION@" Replacement="2.7.0.0" Files="common\Consts.cs"/>
</Target>
</Project>
+4
View File
@@ -1,3 +1,7 @@
2010-06-14 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Track latest SL4 release
2010-05-14 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Update FX version for SL4 final version
+1 -1
View File
@@ -60,7 +60,7 @@ static class Consts
// Versions of .NET Framework for Silverlight 4.0
public const string FxVersion = "2.0.5.0";
public const string VsVersion = "9.0.0.0"; // unused, but needed for compilation
public const string FxFileVersion = "4.0.50401.0";
public const string FxFileVersion = "4.0.50524.0";
public const string VsFileVersion = "9.0.50727.42"; // unused, but needed for compilation
#elif NET_2_0 || BOOTSTRAP_NET_2_0
// Versions of .NET Framework 2.0 RTM
+2
View File
@@ -0,0 +1,2 @@
/Mono.Common.targets -crlf
/Mono.Default.targets -crlf
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>
<PropertyGroup Condition=" '$(USE_MONO_COMPILER)' == '1' ">
<CscToolExe>gmcs.bat</CscToolExe>
<CscToolPath>C:\MonoExperimental2.5.0\bin</CscToolPath>
</PropertyGroup>
<PropertyGroup Condition=" ('$(Configuration)' == 'basic' Or '$(Configuration)' == 'basic_XML_DEP') ">
<OutputPath Condition=" '$(OutputPath)' == '' ">$(MSBuildProjectDirectory)\..\lib\basic\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'net_2_0_bootstrap' ">
<OutputPath Condition=" '$(OutputPath)' == '' ">$(MSBuildProjectDirectory)\..\lib\net_2_0_bootstrap\</OutputPath>
</PropertyGroup>
<PropertyGroup>
<OutputPath Condition=" '$(OutputPath)' == '' ">$(MSBuildProjectDirectory)\..\lib\$(Configuration)\</OutputPath>
</PropertyGroup>
<Target Name="SetupProject">
<Copy SourceFiles="$(ResponseFile)" DestinationFiles="$(ResponseFile).msbuild"/>
<MSBuild.ExtensionPack.FileSystem.File TaskAction="Replace" RegexPattern="/" Replacement="\" Files="$(ResponseFile).msbuild"/>
<MakeDir Directories="$(OutputDirectory)"/>
</Target>
<PropertyGroup Condition=" '$(ResponseFile)' == '' ">
<ResponseFile>$(MSBuildProjectName).dll.sources</ResponseFile>
</PropertyGroup>
<PropertyGroup>
<CompilerResponseFile>$(ResponseFile).msbuild</CompilerResponseFile>
</PropertyGroup>
</Project>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">net_2_0</Configuration>
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
</PropertyGroup>
</Project>
+1 -1
View File
@@ -16,7 +16,7 @@ endif
MCS = $(with_mono_path) $(INTERNAL_GMCS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:BOOTSTRAP_BASIC
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:BOOTSTRAP_BASIC -nowarn:1699
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
NO_INSTALL = yes
-28
View File
@@ -1,28 +0,0 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
BOOTSTRAP_PROFILE = net_1_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
FRAMEWORK_VERSION = 1.0
@@ -1,6 +1,7 @@
#! -*- makefile -*-
INTERNAL_SMCS = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack $(topdir)/class/lib/$(PROFILE)/smcs.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/basic/gmcs.exe
BOOTSTRAP_PROFILE = basic
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
-11
View File
@@ -1,11 +0,0 @@
# -*- Makefile -*-
#
# Only build .NET 1.0 classes.
# (will probably not work)
include $(topdir)/build/profiles/default.make
PROFILE_MCS_FLAGS = /d:NET_1_0 /d:ONLY_1_0
FRAMEWORK_VERSION = 1.0
# done
-28
View File
@@ -1,28 +0,0 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
BOOTSTRAP_PROFILE = net_1_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
FRAMEWORK_VERSION = 1.0
-50
View File
@@ -1,50 +0,0 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
EXTERNAL_MCS = csc.exe
NO_SIGN_ASSEMBLY = yes
#DEXT = pdb
ifdef PLATFORM_MONO_NATIVE
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_1_1_bootstrap/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
else
BOOTSTRAP_MCS = $(EXTERNAL_MCS)
MCS = $(PLATFORM_RUNTIME) $(EXTERNAL_MCS) /lib:$(topdir)/class/lib/$(PROFILE)
MBAS = $(PLATFORM_RUNTIME) $(EXTERNAL_MBAS) /lib:$(topdir)/class/lib/$(PROFILE)
endif
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1 -d:TARGET_JVM -d:JAVA
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1 -d:TARGET_JVM -d:JAVA
FRAMEWORK_VERSION = 1.0
CONVERTER_DEBUG_LEVEL = 3
ifeq ($(CONFIG),Release)
PLATFORM_DEBUG_FLAGS = /debug:pdbonly
CONVERTER_DEBUG_LEVEL = 2
endif
library_CLEAN_FILES += $(build_lib:.dll=.jar) $(build_lib:.dll=.pdb)
all-local:
$(MAKE) $(build_lib:.dll=.jar)
%.jar:%.dll
converter.exe /debug:$(CONVERTER_DEBUG_LEVEL) $< /out:$@ $(KEY) /lib:$(dir $@)
+1 -1
View File
@@ -10,5 +10,5 @@ MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_
profile-check:
@:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -nowarn:1699
FRAMEWORK_VERSION = 2.0
+2
View File
@@ -1,5 +1,7 @@
# -*- makefile -*-
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_2_0/gmcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# nuttzing!
+1 -1
View File
@@ -13,5 +13,5 @@ MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_
profile-check:
@:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699
FRAMEWORK_VERSION = 4.0
+1 -1
View File
@@ -38,7 +38,7 @@ INSTALL_LIB = $(INSTALL_BIN)
MKINSTALLDIRS = $(SHELL) $(topdir)/mkinstalldirs
INTERNAL_MCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/mcs.exe
INTERNAL_MBAS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mbas/mbas.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mcs/gmcs.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/gmcs.exe
INTERNAL_ILASM = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/ilasm.exe
corlib = mscorlib.dll
+5 -1
View File
@@ -87,10 +87,14 @@ run-test-lib: test-local
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) -xml=TestResult-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG)|| ok=false; \
$(TEST_HARNESS_POSTPROC) ; $$ok
## Instructs compiler to compile to target .net execution, it can be usefull in rare cases when runtime detection is not possible
run-test-ondotnet-lib: LOCAL_TEST_COMPILER_ONDOTNET_FLAGS:=-d:RUN_ONDOTNET
run-test-ondotnet-lib: test-local
ok=:; \
$(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS) $(TEST_HARNESS_EXCLUDES_ONDOTNET) $(TEST_HARNESS_OUTPUT_ONDOTNET) -xml=TestResult-ondotnet-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG) || ok=false; \
$(TEST_HARNESS_POSTPROC_ONDOTNET) ; $$ok
endif # test_assemblies
TEST_FILES =
@@ -102,7 +106,7 @@ endif
ifdef HAVE_CS_TESTS
$(test_lib): $(the_assembly) $(test_response) $(test_nunit_dep)
$(TEST_COMPILE) -target:library -out:$@ $(test_flags) @$(test_response)
$(TEST_COMPILE) -target:library -out:$@ $(test_flags) $(LOCAL_TEST_COMPILER_ONDOTNET_FLAGS) @$(test_response)
$(test_response): $(test_sourcefile)
@echo Creating $@ ...
+1
View File
@@ -0,0 +1 @@
/makefile.build -crlf
+8
View File
@@ -1,3 +1,11 @@
2010-06-30 Atsushi Enomoto <[email protected]>
* Makefile: move back Mvc2.
2010-06-30 Atsushi Enomoto <[email protected]>
* Makefile: add S.R.DurableInstancing dir to 4.0.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (common_dirs): added System.Web.ApplicationServices
@@ -0,0 +1 @@
/README -crlf
@@ -0,0 +1,2 @@
/RncTokenizer.cs -crlf
/RncWriter.cs -crlf
@@ -118,9 +118,9 @@ namespace Commons.Xml.Relaxng.Rnc
if (p is RelaxngGrammar)
((RelaxngGrammar) p).IsSourceCompactSyntax = true;
return p;
} catch (Exception ex) {
throw new RelaxngException (String.Format ("Tokenizer error at line {0}, column {1}: {2}", Line, Column, ex.Message), ex);
}
} catch (Exception ex) {
throw new RelaxngException (String.Format ("Tokenizer error at line {0}, column {1}: {2}", Line, Column, ex.Message), ex);
}
}
private void FillLocation (RelaxngElementBase el)
@@ -7,27 +7,27 @@
// (C)2003 Atsushi Enomoto
// (C)2004 Novell Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -508,4 +508,4 @@ namespace Commons.Xml.Relaxng.Rnc
}
}
}
}
@@ -6,27 +6,27 @@
//
// (C)2005 Novell Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -554,4 +554,4 @@ namespace Commons.Xml.Relaxng.Rnc
}
#endregion
}
}
}
+9
View File
@@ -1,3 +1,12 @@
2010-07-23 Atsushi Enomoto <[email protected]>
* RelaxngPattern.cs : inherit XmlResolver to parsed rng component.
Fixed bug #622630.
2010-06-25 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs : don't use Name, use LocalName. Fixed bug #617264.
2009-02-23 Atsushi Enomoto <[email protected]>
* RelaxngValidatingReader.cs : implemented error recovery feature.
+5 -2
View File
@@ -81,14 +81,15 @@ namespace Commons.Xml.Relaxng
{
XmlTextReader xtr = null;
RelaxngGrammar g = null;
RelaxngPattern p;
try {
if (grammar.IsSourceCompactSyntax) {
return RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri, nsContext);
p = RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri, nsContext);
} else {
xtr = new XmlTextReader (uri.AbsoluteUri, (Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream)));
RelaxngReader r = new RelaxngReader (xtr, nsContext, grammar.Resolver);
r.MoveToContent ();
return r.ReadPattern ();
p = r.ReadPattern ();
}
} catch (Exception ex) { // umm, bad catch though :-(
throw new RelaxngException (this, String.Format("Could not include grammar {0}: {1}", uri.AbsoluteUri, ex.Message), ex);
@@ -96,6 +97,8 @@ namespace Commons.Xml.Relaxng
if (xtr != null)
xtr.Close ();
}
p.XmlResolver = grammar.Resolver;
return p;
}
}
@@ -226,7 +226,7 @@ namespace Commons.Xml.Relaxng
private void expectEnd (string name)
{
if (NodeType != XmlNodeType.EndElement)
throw new RelaxngException (String.Format ("Expected EndElement but found {0}.", NodeType));
throw new RelaxngException (String.Format ("Expected EndElement '{1}' but found {0} '{2}'.", NodeType, name, LocalName));
expect (name);
Read ();
@@ -805,9 +805,8 @@ namespace Commons.Xml.Relaxng
if (!IsEmptyElement) {
Read ();
while (Name == "param") {
while (LocalName == "param")
data.ParamList.Add (ReadParam ());
}
if (LocalName == "except")
data.Except = ReadPatternExcept ();
expectEnd ("data");
@@ -0,0 +1 @@
/XmlDefaultReader.cs -crlf
@@ -8,26 +8,26 @@
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Similar to SAX DefaultHandler
@@ -0,0 +1,2 @@
/ns-Commons.Xml.Nvdl.xml -crlf
/ns-Commons.Xml.Relaxng.xml -crlf
@@ -0,0 +1,49 @@
/Nvdl.xml -crlf
/NvdlAction.xml -crlf
/NvdlActionList.xml -crlf
/NvdlAllow.xml -crlf
/NvdlAnyNamespace.xml -crlf
/NvdlAttach.xml -crlf
/NvdlAttachPlaceHolder.xml -crlf
/NvdlAttributable.xml -crlf
/NvdlBuiltInValidationProvider.xml -crlf
/NvdlCancelAction.xml -crlf
/NvdlCompileException.xml -crlf
/NvdlConfig.xml -crlf
/NvdlContext.xml -crlf
/NvdlContextList.xml -crlf
/NvdlElementBase.xml -crlf
/NvdlException.xml -crlf
/NvdlIncludedMode.xml -crlf
/NvdlMessage.xml -crlf
/NvdlMessageEventArgs.xml -crlf
/NvdlMessageEventHandler.xml -crlf
/NvdlMessageList.xml -crlf
/NvdlMode.xml -crlf
/NvdlModeBase.xml -crlf
/NvdlModeList.xml -crlf
/NvdlModeUsage.xml -crlf
/NvdlNamespace.xml -crlf
/NvdlNestedMode.xml -crlf
/NvdlNoCancelAction.xml -crlf
/NvdlNoResultAction.xml -crlf
/NvdlOption.xml -crlf
/NvdlOptionList.xml -crlf
/NvdlReader.xml -crlf
/NvdlReject.xml -crlf
/NvdlRelaxngValidatorProvider.xml -crlf
/NvdlResultAction.xml -crlf
/NvdlResultType.xml -crlf
/NvdlRule.xml -crlf
/NvdlRuleList.xml -crlf
/NvdlRuleTarget.xml -crlf
/NvdlRules.xml -crlf
/NvdlTrigger.xml -crlf
/NvdlTriggerList.xml -crlf
/NvdlUnwrap.xml -crlf
/NvdlValidate.xml -crlf
/NvdlValidatingReader.xml -crlf
/NvdlValidationException.xml -crlf
/NvdlValidationProvider.xml -crlf
/NvdlValidatorGenerator.xml -crlf
/NvdlXsdValidatorProvider.xml -crlf
@@ -0,0 +1 @@
/RncParser.xml -crlf
@@ -0,0 +1,50 @@
/IGrammarContent.xml -crlf
/RelaxngAnyName.xml -crlf
/RelaxngAttribute.xml -crlf
/RelaxngBinaryContentPattern.xml -crlf
/RelaxngChoice.xml -crlf
/RelaxngData.xml -crlf
/RelaxngDataSupport.xml -crlf
/RelaxngDatatype.xml -crlf
/RelaxngDatatypeProvider.xml -crlf
/RelaxngDefine.xml -crlf
/RelaxngDiv.xml -crlf
/RelaxngElement.xml -crlf
/RelaxngElementBase.xml -crlf
/RelaxngEmpty.xml -crlf
/RelaxngExcept.xml -crlf
/RelaxngExceptNameClass.xml -crlf
/RelaxngException.xml -crlf
/RelaxngExternalRef.xml -crlf
/RelaxngGrammar.xml -crlf
/RelaxngGrammarContentList.xml -crlf
/RelaxngGroup.xml -crlf
/RelaxngInclude.xml -crlf
/RelaxngInterleave.xml -crlf
/RelaxngList.xml -crlf
/RelaxngMergedProvider.xml -crlf
/RelaxngMixed.xml -crlf
/RelaxngName.xml -crlf
/RelaxngNameChoice.xml -crlf
/RelaxngNameClass.xml -crlf
/RelaxngNameClassList.xml -crlf
/RelaxngNotAllowed.xml -crlf
/RelaxngNsName.xml -crlf
/RelaxngOneOrMore.xml -crlf
/RelaxngOptional.xml -crlf
/RelaxngParam.xml -crlf
/RelaxngParamList.xml -crlf
/RelaxngParentRef.xml -crlf
/RelaxngPattern.xml -crlf
/RelaxngPatternList.xml -crlf
/RelaxngPatternType.xml -crlf
/RelaxngReader.xml -crlf
/RelaxngRef.xml -crlf
/RelaxngSingleContentPattern.xml -crlf
/RelaxngStart.xml -crlf
/RelaxngString.xml -crlf
/RelaxngText.xml -crlf
/RelaxngToken.xml -crlf
/RelaxngValidatingReader.xml -crlf
/RelaxngValue.xml -crlf
/RelaxngZeroOrMore.xml -crlf
@@ -0,0 +1 @@
/XmlDefaultReader.xml -crlf
@@ -0,0 +1,7 @@
/SimpleElementPattern1.rng -crlf
/SimpleElementPattern1.xml -crlf
/SimpleElementPattern2.rng -crlf
/SimpleElementPattern2.xml -crlf
/atom.rnc -crlf
/relaxng.rnc -crlf
/team.rng -crlf
@@ -0,0 +1,3 @@
/README -crlf
/anglia-test-runner.cs -crlf
/relaxngtest.cs -crlf
@@ -0,0 +1,2 @@
/AssemblyInfo.cs -crlf
/ZipException.cs -crlf
@@ -47,12 +47,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if NET_2_0
#if NET_2_0
[assembly: AssemblyVersion("2.6.0.0")]
#else
// not worrying about the NET_1_0 profile for now.
#else
// not worrying about the NET_1_0 profile for now.
[assembly: AssemblyVersion("0.6.0.0")]
#endif
#endif
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile ("SharpZipLib.pub")]
@@ -0,0 +1,4 @@
/BZip2.cs -crlf
/BZip2Constants.cs -crlf
/BZip2InputStream.cs -crlf
/BZip2OutputStream.cs -crlf
Loaded 100 of 5052 files, more files were not shown because too many files have changed in this diff. Show more