Compare commits

..
5424 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
Chris Toshok 851c48f04a add TargetFrameworkAttribute to the moonlight build so we can start at least looking at SL4 apps.
svn path=/trunk/mcs/; revision=158142
2010-05-29 02:32:36 +00:00
Mark Probst b3c73f9c8d Enable major copying again - erroneous commit.
svn path=/trunk/mono/; revision=158138
2010-05-29 01:19:20 +00:00
Mark Probst 13b7dece4b 2010-05-29 Mark Probst <[email protected]>
* sgen-gc.c: Always use DESC_TYPE_RUN_LENGTH for objects without
	references so that we don't have to do the cache-cold fetch of the
	class in copy_object_no_checks().

svn path=/trunk/mono/; revision=158137
2010-05-28 23:38:28 +00:00
Mark Probst 609b1e5c45 Enable mark&sweep major collector.
svn path=/trunk/mono/; revision=158136
2010-05-28 23:33:31 +00:00
Robert Jordan 8fdffec347 2010-05-28 Robert Jordan <[email protected]>
* configure.in: Fix mcs_topdir* for the Windows build.


svn path=/trunk/mono/; revision=158132
2010-05-28 22:17:55 +00:00
Robert Jordan 4fcd73dcb4 2010-05-29 Robert Jordan <[email protected]>
* marshal.c (mono_marshal_asany): marshal LPWSTRs using
	mono_marshal_string_to_utf16_copy () to avoid memory allocation
	mismatches under Windows. Fixes pinvoke2:test_0_asany.


svn path=/trunk/mono/; revision=158126
2010-05-28 22:05:52 +00:00
Robert Jordan 48730b7441 2010-05-28 Robert Jordan <[email protected]>
* libtest.c: Implement and use marshal_strdup () as a g_strdup ()
	replacement under Windows. Fixes memory allocation mismatches.


svn path=/trunk/mono/; revision=158125
2010-05-28 22:02:42 +00:00
Ankit Jain 0069c12892 * AssemblyResolver.cs: Add some comments.
svn path=/trunk/mcs/; revision=158124
2010-05-28 21:42:47 +00:00
Ankit Jain 41ffb01691 Improve assembly resolution when hintpath is specified and when searching
in a directory.

* AssemblyResolver.cs (FindInDirectory): Add a 'specific_version'
parameter. Look for reference.{dll|exe} instead of checking all
files in the directory. Compare assembly names only if
specific_version is true.
(ResolveHintPathReference): Extract code to check and compare assembly
names to ..
(ResolvedReferenceFromPath): .. this.
(AssemblyNamesCompatible): Change default value of @specificVersion to
true.
Track api changes.
* ResolveAssemblyReference.cs (ResolveReference): Specify
'specific_version' in case of SearchPath.Directory.
(TryGetSpecificVersionValue): msbuild seems to look only for ',' in
the reference, instead of checking whether the assembly is strong
named.
(TryGetResolvedReferenceByAssemblyName): Track api changes.

svn path=/trunk/mcs/; revision=158123
2010-05-28 21:35:10 +00:00
Mark Probst 3798141bb3 2010-05-28 Mark Probst <[email protected]>
* sgen-gc.c: Change default nursery size to 4MB, because it
	improves performance on many applications and benchmarks.

svn path=/trunk/mono/; revision=158122
2010-05-28 20:53:25 +00:00
Marek Safar 4d800ea471 2010-05-28 Marek Safar <[email protected]>
* library.make: Don't sort source input files on windows to
	build metadata compatible assemblies on all platforms.


svn path=/trunk/mcs/; revision=158115
2010-05-28 17:03:38 +00:00
Marek Safar 5d25fcc262 Removed win32-excludes
svn path=/trunk/mcs/; revision=158114
2010-05-28 16:11:36 +00:00
Marek Safar fc3bf9950c New tests.
svn path=/trunk/mcs/; revision=158109
2010-05-28 13:07:41 +00:00
Marek Safar ca2040a0b7 2010-05-28 Marek Safar <[email protected]>
A fix for bug #609088
	* import.cs: Check private modifier correctly.


svn path=/trunk/mcs/; revision=158107
2010-05-28 13:06:49 +00:00
Atsushi Eno 7d8ea89149 2010-05-28 Atsushi Enomoto <[email protected]>
* System.Xml.Linq_test.dll.sources :
	  add System.Xml.Schema/ExtensionsTest.cs.

	* ExtensionsTest.cs :
	  New tests (not working yet), by Stefan Prutianu.


svn path=/trunk/mcs/; revision=158106
2010-05-28 11:43:33 +00:00
Ankit Jain e6e64b82f4 * SolutionParser.cs (ParseSolution): Ignore GlobalSection
'MonoDevelopProperties'.

svn path=/trunk/mcs/; revision=158104
2010-05-28 10:48:55 +00:00
Atsushi Eno cdf618e084 2010-05-28 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources : remove old code from winfx beta.

	* DirectionalAction.cs : remove old code from winfx beta.


svn path=/trunk/mcs/; revision=158095
2010-05-28 09:44:20 +00:00
Marek Safar d61eb6ded6 2010-05-28 Marek Safar <[email protected]>
A fix for bug #609049
	* ecore.cs: Don't ignore override methods when looking for base
	member.


svn path=/trunk/mcs/; revision=158087
2010-05-28 08:24:36 +00:00
Atsushi Eno 87eb8ffb54 2010-05-28 Atsushi Enomoto <[email protected]>
* ClientOperation.cs, DispatchOperation.cs : remove extra fields.


svn path=/trunk/mcs/; revision=158084
2010-05-28 08:04:06 +00:00
Atsushi Eno c0e0e3f66e 2010-05-28 Atsushi Enomoto <[email protected]>
* ContractDescription.cs : fill ClientOperation.Formatter here.
	  (It is hacky, see additional comment.)

	* ClientRuntimeChannel.cs : replace GetFormatter() with Formatter.

	* ClientOperation.cs : do the same for client side too.


svn path=/trunk/mcs/; revision=158083
2010-05-28 07:52:10 +00:00
Atsushi Eno 193f438706 2010-05-28 Atsushi Enomoto <[email protected]>
* DispatchOperation.cs : on callback channels ChannelDispatcher is
	  not available. Wait for something like ClientRuntime.ChannelFactory.


svn path=/trunk/mcs/; revision=158082
2010-05-28 07:48:56 +00:00
Ankit Jain 4bb4dc6c75 Fix bug #485841.
* DirectoryScanner.cs (ProcessInclude): Set %(RecursiveDir) only if
the '**' wildcard was found in the original Include.

svn path=/trunk/mcs/; revision=158081
2010-05-28 07:39:26 +00:00
Atsushi Eno ba2d156ba4 2010-05-28 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : some comments.
	* DispatchOperation.cs : remove on-the-fly dependency on 
	  OperationDescription. Add immutable check on each property.


svn path=/trunk/mcs/; revision=158080
2010-05-28 07:08:00 +00:00
Mark Probst 790f9864d3 2010-05-28 Mark Probst <[email protected]>
* sgen-gc.c, sgen-scan-object.h: Value types in arrays are not
	always aligned to ALLOC_ALIGN.  To handle this, shift the size in
	the GC descriptor by one bit, and don't encode the size for value
	types not containing references.  Also get rid of
	DESC_TYPE_STRING.

svn path=/trunk/mono/; revision=158079
2010-05-28 06:28:55 +00:00
Mark Probst dc03783b47 2010-05-28 Mark Probst <[email protected]>
* sgen-gc.c: Don't depend on the size encoded in a GC descriptor
	other than for remset processing.

svn path=/trunk/mono/; revision=158078
2010-05-28 06:06:01 +00:00
Mark Probst 57d3918d46 2010-05-28 Mark Probst <[email protected]>
* tools/sgen/sgen-grep-binprot.c (main): Use strtoul(), not
	strtol(), to parse addresses from the command line.

svn path=/trunk/mono/; revision=158077
2010-05-28 05:25:18 +00:00
Mark Probst 4b0cd3b617 2010-05-28 Mark Probst <[email protected]>
* sgen-gc.c: More and better remset consistency checks.

svn path=/trunk/mono/; revision=158076
2010-05-28 05:21:24 +00:00
Mark Probst 7a78c6fd46 2010-05-28 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir): Emit a write barrier for
	cpobj with reference types.

svn path=/trunk/mono/; revision=158075
2010-05-28 04:55:54 +00:00
Mark Probst 6d22b8e40f 2010-05-28 Mark Probst <[email protected]>
* method-to-ir.c (mono_method_to_ir): Only explicitly add the
	write barrier for reference types.

svn path=/trunk/mono/; revision=158074
2010-05-28 04:43:38 +00:00
Rodrigo Kumpera a9122365b9 2010-05-28 Rodrigo Kumpera <[email protected]>
* sgen-gc.c: Add a note about the int[] trick to avoid some
	memset.

svn path=/trunk/mono/; revision=158073
2010-05-28 03:46:57 +00:00
Rodrigo Kumpera e0181d43c1 2010-05-27 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (sort_addresses): Use heap sort since it has better
	performance.

	This helps programs with lots of threads or thread with big stacks
	since the bottleneck the pin queue can get quite big.

svn path=/trunk/mono/; revision=158069
2010-05-28 01:14:31 +00:00
Robert Jordan b06758d020 2010-05-28 Robert Jordan <[email protected]>
* Makefile, *.dll.sources: disambiguate between Mvc and Mvc2
	by using a distinct LIBRARY. Needed because the current
	build system does not pay attention to LIBRARY_COMPAT
	while building *.reponse  and *.makefrag.


svn path=/trunk/mcs/; revision=158066
2010-05-27 22:16:56 +00:00
Ankit Jain 88930ed14c * AssemblyResolver.cs (PopulateTargetFrameworkAssemblies):
Handle invalid dll, add a null check.

svn path=/trunk/mcs/; revision=158064
2010-05-27 20:53:30 +00:00
Marek Safar 5cddeea038 New tests.
svn path=/trunk/mcs/; revision=158060
2010-05-27 18:56:56 +00:00
Marek Safar 5995e1107f New tests.
svn path=/trunk/mcs/; revision=158059
2010-05-27 18:56:30 +00:00
Marek Safar c4659e98d1 2010-05-27 Marek Safar <[email protected]>
A fix for bugs #608007, #572540, #566130, #476358

	* generic.cs, linq.cs, expression.cs, statement.cs, cs-parser.jay:
	More tricky refactoring of implicit linq blocks.


svn path=/trunk/mcs/; revision=158058
2010-05-27 18:56:10 +00:00
Zoltan Varga 56bf699e8c 2010-05-27 Zoltan Varga <[email protected]>
* mini-s390x.c (mono_arch_output_basic_block): Applied patch from Aurelien Minvielle
	. Fix OP_ATOMIC_EXCHANGE_I4 on s390x. Fixes #609023.

svn path=/trunk/mono/; revision=158055
2010-05-27 18:23:52 +00:00
Zoltan Varga 3c4370b675 2010-05-27 Zoltan Varga <[email protected]>
* interlocked.cs: Add a test for Interlocked.Exchange on a local variable.

svn path=/trunk/mono/; revision=158054
2010-05-27 18:18:11 +00:00
Martin Baulig a9b7e50c56 #605698: Execute SDB commands in the debuggee's appdomain.
2010-05-27  Martin Baulig  <[email protected]>

	Fix #605698.

	* debugger-agent.c (method_commands, type_commands): Temporarily
	set the appdomain while executing this method; do all metadata
	calls in the debuggee's appdomain where user assemblies are loaded.

svn path=/trunk/mono/; revision=158052
2010-05-27 17:37:31 +00:00
Carlos Alberto Cortez 45958d1860 * IsolatedStorageFileTest.cs: New test case for CopyFile.
2010-05-27  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158050
2010-05-27 17:21:10 +00:00
Carlos Alberto Cortez 85b9760030 2010-05-27 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Implement CopyFile.


svn path=/trunk/mcs/; revision=158049
2010-05-27 17:19:48 +00:00
Atsushi Eno bcf2dad8d0 2010-05-27 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : fill CallbackDispatchRuntime. Add some
	  FIXME comments for ongoing fixes.


svn path=/trunk/mcs/; revision=158048
2010-05-27 17:17:12 +00:00
Atsushi Eno 0c76a6b4ec 2010-05-27 Atsushi Enomoto <[email protected]>
* CallbackBehaviorAttributeTest.cs : fix assertion label.


svn path=/trunk/mcs/; revision=158046
2010-05-27 17:14:44 +00:00
Atsushi Eno 657524cfdd 2010-05-27 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs : remove unused members for refactoring.
	* OperationContext.cs : add comment on GetCallbackChannel<T>().


svn path=/trunk/mcs/; revision=158045
2010-05-27 17:13:56 +00:00
Zoltan Varga 6e45fdfb75 2010-05-27 Zoltan Varga <[email protected]>
* mini-s390x.c (mono_arch_get_delegate_invoke_impls): Fix the s390x build.

svn path=/trunk/mono/; revision=158044
2010-05-27 16:26:43 +00:00
Jonathan Pobst ea24df7add Declare variables first, to fix msvc build.
svn path=/trunk/mono/; revision=158037
2010-05-27 14:55:22 +00:00
Carlos Alberto Cortez ab34f43b6d 2010-05-27 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: New test case for GetCreationTime.


svn path=/trunk/mcs/; revision=158031
2010-05-27 13:01:16 +00:00
Carlos Alberto Cortez b94ffc9678 2010-05-27 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Implement GetCreationTime, GetLastAccessTime
	and GetLastWriteTime, as well as creating a single method to check for
	the closed/disposed fields.


svn path=/trunk/mcs/; revision=158030
2010-05-27 13:00:30 +00:00
Jb Evain b4a429ab91 flush
svn path=/trunk/mcs/; revision=158024
2010-05-27 11:51:02 +00:00
Jb Evain 552bf7b3c9 flush
svn path=/trunk/mcs/; revision=158022
2010-05-27 11:40:06 +00:00
Jb Evain ed17c1d03a 2010-05-27 Jb Evain <[email protected]>
* EnumBuilder.cs (GetEnumUnderlyingType): override.


svn path=/trunk/mcs/; revision=158021
2010-05-27 11:39:58 +00:00
Jb Evain 11ef995628 2010-05-27 Jb Evain <[email protected]>
* EnumBuilderTest.cs: add test for .net_4_0's GetEnumUnderlyingType.


svn path=/trunk/mcs/; revision=158020
2010-05-27 11:39:31 +00:00
Jb Evain 56b97bdcec 2010-05-27 Jb Evain <[email protected]>
* Assembly.cs (Load*): add net_4_0 overloads.


svn path=/trunk/mcs/; revision=158018
2010-05-27 11:16:30 +00:00
Jb Evain a7b91b6bfb 2010-05-27 Jb Evain <[email protected]>
* AppDomain.cs (DefineDynamicAssembly): add new net_4_0 overloads.


svn path=/trunk/mcs/; revision=158017
2010-05-27 10:58:57 +00:00
Jb Evain 46413ed54d include System.Security.SecurityContextSource
svn path=/trunk/mcs/; revision=158016
2010-05-27 10:58:38 +00:00
Jb Evain ca159396c7 2010-05-27 Jb Evain <[email protected]>
* SecurityContextSource.cs: add new enum in net_4_0.


svn path=/trunk/mcs/; revision=158015
2010-05-27 10:58:08 +00:00
Rodrigo Kumpera 6912ef88e8 2010-05-25 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (search_fragment_for_size): Move fragment setup into
	a separate function called setup_fragment.

	* sgen-gc.c (search_fragment_for_size_range): Variant of
	search_fragment_for_size that does search for a secondary smaller
	size.

	* sgen-gc.c (mono_gc_alloc_obj_nolock): Use search_fragment_for_size_range
	for tlab allocation so small fragments are used.

	This patch uses small fragments for tlab allocation when possible in order
	to improve nursery utilization. With a fixed size tlab this patch is not very
	usefull but once size gets dynamically adjusted, this will be invaluable.

	Performance under pystone 500k is unchanged. Nursery utilization improves by
	3.5% and 18 more fragments are used per minor GC.

	Performance under modified binary-tree is unchanged. Nursery utilization
	improves by 0.5% and 3 more fragments are used per minor GC.

	These numbers make sense since as more pinning happens, more fragments are
	created and so are the chances of having a bunch of small ones.

svn path=/trunk/mono/; revision=157998
2010-05-27 00:38:43 +00:00
Rodrigo Kumpera 57f5b03383 2010-05-26 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (mono_gc_alloc_obj_nolock): Avoid wasting space
	* from
	the current fragment when allocating a TLAB.

	Reduces number of pystone 500k minor collections by 7%.

svn path=/trunk/mono/; revision=157997
2010-05-27 00:38:35 +00:00
Rodrigo Kumpera faaf161736 2010-05-26 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Add missing write barrier
	* to stobj.

svn path=/trunk/mono/; revision=157996
2010-05-27 00:38:28 +00:00
Geoff Norton f5ba16f848 Fix the build
svn path=/trunk/mono/; revision=157987
2010-05-26 20:10:38 +00:00
Carlos Alberto Cortez f996d5555f 2010-05-26 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Remove should call Close, just as .Net seems
	to do.


svn path=/trunk/mcs/; revision=157970
2010-05-26 15:58:05 +00:00
Carlos Alberto Cortez 9f89310275 2010-05-26 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileStreamTest.cs: New test cases for constructor
	obtaining a closed/disposed IsolatedStorageFile.


svn path=/trunk/mcs/; revision=157969
2010-05-26 15:52:22 +00:00
Miguel de Icaza 06c3356d0e Update docs
svn path=/trunk/mono/; revision=157966
2010-05-26 15:06:03 +00:00
Zoltan Varga fbc80c67bc 2010-05-26 Zoltan Varga <[email protected]>
* method-to-ir.c: Instead of freeing method headers immediately, save them in a list in
	MonoCompile, and free them in mono_destroy_compile (), since the MonoType's in them could
	be referenced even after the header is freed.

svn path=/trunk/mono/; revision=157962
2010-05-26 14:14:10 +00:00
Jb Evain a0a437a8c8 fix integration tests
svn path=/trunk/mcs/; revision=157958
2010-05-26 12:23:20 +00:00
Marek Safar 26fb5ea010 flush
svn path=/trunk/mcs/; revision=157956
2010-05-26 11:53:06 +00:00
Atsushi Eno efd7c155a3 2010-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpReplyChannel.cs : do not set RelatesTo
	  here. If the contract is not one-way (IsOneWay = false) and there is
	  a callback, the callback message sent to the client should *not* be
	  assigned RelatesTo header here. Just do it in the request-reply
	  context. Do it in OperationInvokerHandler.

	* OperationInvokerHandler.cs : assign RelatesTo header item here.


svn path=/trunk/mcs/; revision=157950
2010-05-26 10:46:32 +00:00
Jb Evain 7f9a893140 fix tests
svn path=/trunk/mcs/; revision=157949
2010-05-26 10:44:04 +00:00
Marek Habersack fbce528801 Fix test compilation - parts of web security were moved to a separate assembly
svn path=/trunk/mcs/; revision=157946
2010-05-26 10:30:34 +00:00
Marek Habersack 0c33751079 2010-05-26 Marek Habersack <[email protected]>
* ValidationAttribute.cs: cope with null/empty ErrorMessageString
	in FormatErrorMessage

svn path=/trunk/mcs/; revision=157941
2010-05-26 09:51:48 +00:00
Atsushi Eno 9c5bb4dbdc 2010-05-26 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : revert the previous change. It was
	  actually sent.


svn path=/trunk/mcs/; revision=157940
2010-05-26 09:28:03 +00:00
Atsushi Eno 1193328631 2010-05-26 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : do not add implicit ReplyTo on output
	  channels.


svn path=/trunk/mcs/; revision=157935
2010-05-26 07:54:50 +00:00
Zoltan Varga df62f4c964 2010-05-26 Zoltan Varga <[email protected]>
* aot-runtime.c: Remove the half finished support for decoding the .arm_exidx
	section.

svn path=/trunk/mono/; revision=157926
2010-05-26 03:04:34 +00:00
Bill Holmes bd12f59492 2010-05-25 Bill Holmes <[email protected]>
* genmdesc.c (main): Fixing the detection of the nacl switch.

        Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=157911
2010-05-25 21:23:52 +00:00
Zoltan Varga 2fb55710b7 2010-05-25 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Enable llvm for methods with clauses when using
	LLVM SVN.

svn path=/trunk/mono/; revision=157894
2010-05-25 19:15:42 +00:00
Zoltan Varga 46f01c3b1c 2010-05-25 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_find_jit_info_ext): Adjust the ip for LMF frames too.

svn path=/trunk/mono/; revision=157892
2010-05-25 18:52:31 +00:00
Zoltan Varga 496ac2ba76 2010-05-25 Zoltan Varga <[email protected]>
* mini-llvm.c aot-compiler.c: More LLVM 2.8 updates.

	* mini.h (LLVM_CHECK_VERSION): New helper macro.

svn path=/trunk/mono/; revision=157889
2010-05-25 18:27:08 +00:00
Miguel de Icaza c0f46a74d8 2010-05-25 Miguel de Icaza <[email protected]>
* genmdesc.pl (build_spec): Add support for nacl: keyword also to
	the Perl program

svn path=/trunk/mono/; revision=157882
2010-05-25 17:31:33 +00:00
Miguel de Icaza 3094ee1c96 2010-05-25 Miguel de Icaza <[email protected]>
* genmdesc.c: Added support for nacl: key on the machine
	description files to support the extra space required by Google
	Native Client.

svn path=/trunk/mono/; revision=157881
2010-05-25 17:25:21 +00:00
Zoltan Varga 5d9cdfdd82 Revert "2010-05-22 Zoltan Varga <[email protected]>"
This reverts commit eeadb4d4b391091d6517b2ca8e44d7f187a92373.

svn path=/trunk/mono/; revision=157871
2010-05-25 15:56:01 +00:00
Zoltan Varga ff9147e560 Revert "2010-05-23 Zoltan Varga <[email protected]>"
This reverts commit d21dba61ec1fd95ee9695473084b355974435e3c.

svn path=/trunk/mono/; revision=157870
2010-05-25 15:55:54 +00:00
Zoltan Varga 7162785e10 2010-05-25 Zoltan Varga <[email protected]>
* Applied patch from Burkhard Linke ([email protected]). Fix
	building on solaris.

svn path=/trunk/mono/; revision=157869
2010-05-25 15:51:01 +00:00
Martin Baulig e564eda9f7 Release memory from symfiles that were loaded from memory.
2010-05-25  Martin Baulig  <[email protected]>

	Applying a patch from Lucas Meijer <[email protected]>.

	* debug-mono-symfile.c: Release memory from symfiles that were
	loaded from memory.

svn path=/trunk/mono/; revision=157865
2010-05-25 15:44:51 +00:00
Martin Baulig 8ebebff0ab Add public API to get the protocol version.
2010-05-24  Martin Baulig  <[email protected]>

	* Connection.cs (VersionInfo): Make this public.

	* VirtualMachine.cs (Version): New public property.

svn path=/trunk/mcs/; revision=157862
2010-05-25 15:39:34 +00:00
Jérémie Laval 32d1d3e231 2010-05-25 Jérémie Laval <[email protected]>
In class/System.Core/System.Linq/:
   * ParallelExecuter.cs: Fix NRE caused by lambda wrapping

svn path=/trunk/mcs/; revision=157856
2010-05-25 14:37:01 +00:00
Jb Evain 2f29080c3f 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedViewAccessor.cs: fix API.


svn path=/trunk/mcs/; revision=157852
2010-05-25 13:59:46 +00:00
Jb Evain b34661184e 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFile.cs: add missing overloads.


svn path=/trunk/mcs/; revision=157850
2010-05-25 13:51:40 +00:00
Jb Evain 16c589d582 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFileTest.cs: use proper overloads.


svn path=/trunk/mcs/; revision=157849
2010-05-25 13:50:59 +00:00
Jb Evain 67cb3134c4 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFile.cs: make some helper methods private.


svn path=/trunk/mcs/; revision=157847
2010-05-25 13:37:35 +00:00
Jb Evain 2e8968f23e 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFileSecurity.cs: ifdef for NET_4_0.


svn path=/trunk/mcs/; revision=157846
2010-05-25 13:37:05 +00:00
Jb Evain 707d46f98d 2010-05-25 Jb Evain <[email protected]>
* CryptoTools.cs: make types internal for INSIDE_SYSCORE as well.


svn path=/trunk/mcs/; revision=157845
2010-05-25 13:23:45 +00:00
Jb Evain 689cf3e9fb 2010-05-25 Jb Evain <[email protected]>
* Makefile: define INSIDE_SYSCORE.


svn path=/trunk/mcs/; revision=157844
2010-05-25 13:23:10 +00:00
Jb Evain d01a84aa86 tag a couple of obsolete members
svn path=/trunk/mcs/; revision=157843
2010-05-25 13:13:23 +00:00
Marek Safar b7ea3f4192 2010-05-25 Marek Safar <[email protected]>
* linq.cs, cs-parser.jay: Keep location for all linq clauses.



svn path=/trunk/mcs/; revision=157835
2010-05-25 10:48:07 +00:00
Marek Safar 398ae6b897 2010-05-21 Marek Safar <[email protected]>
* context.cs, expression.cs, cs-parser.jay: Don't store current
	block in This expression (it's too early for linq blocks).


svn path=/trunk/mcs/; revision=157834
2010-05-25 09:55:05 +00:00
Jb Evain deb0e467e0 2010-05-25 Jb Evain <[email protected]>
* Enumerable.cs: make Reverse lazier. Based on a patch by
	Matthew Flaschen <[email protected]>. Fixes #608195.


svn path=/trunk/mcs/; revision=157831
2010-05-25 08:56:12 +00:00
Atsushi Eno e276eefde2 this bug had nothing to do with it.
svn path=/trunk/mcs/; revision=157824
2010-05-25 05:54:52 +00:00
Atsushi Eno d006ca4a99 2010-05-25 Atsushi Enomoto <[email protected]>
* UriTemplate.cs : safe-unescape template parameters.
	  Got bug #573795 site working.


svn path=/trunk/mcs/; revision=157823
2010-05-25 05:43:00 +00:00
Carlos Alberto Cortez b2c81e0142 2010-05-24 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: New test cases for CreateFile,
	MoveDirectory and MoveFile.


svn path=/trunk/mcs/; revision=157817
2010-05-25 01:02:42 +00:00
Carlos Alberto Cortez d17afb0b6c * IsolatedStorageFileStream.cs: When creating the instance, we should check
for diposed first, and for closed on second place.
	* IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
	as part of 4.0.

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


svn path=/trunk/mcs/; revision=157816
2010-05-25 01:02:15 +00:00
Zoltan Varga 02bd4773cb 2010-05-24 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_free_dynamic_wrappers): Avoid an assert when this is called
	during shutdown.

svn path=/trunk/mono/; revision=157808
2010-05-24 21:29:03 +00:00
Carlos Alberto Cortez 07eadfa052 2010-05-24 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileStream.cs: When creating our instance check that
	the IsolatedStorageFile is not closed/disposed.
	* IsolatedStorageFile.cs: Expose closed/disposed info as internal
	properties, as well as implement 4.0 MoveDirectory/MoveFile, CreateFile
	and OpenFile methods.


svn path=/trunk/mcs/; revision=157801
2010-05-24 16:13:39 +00:00
Atsushi Eno a1375bd687 2010-05-24 Atsushi Enomoto <[email protected]>
* JsonQueryStringConverter.cs : objects are regarded serializable as
	  long as they are public here, with some exceptions (not implemented).

	* JsonQueryStringConverterTest.cs : add more tests for CanConvert()
	  and reorganized some classes to make tests rational.


svn path=/trunk/mcs/; revision=157795
2010-05-24 12:38:12 +00:00
Atsushi Eno 0aab397816 2010-05-24 Atsushi Enomoto <[email protected]>
* Uri.cs : do not reject relative URIs that contain ':' and
	  any non-scheme characters preceding it.

	* UriTest.cs : more URI tests, for relative URIs with ':'.


svn path=/trunk/mcs/; revision=157789
2010-05-24 09:32:16 +00:00
Zoltan Varga 590441a271 2010-05-23 Zoltan Varga <[email protected]>
* marshal.c (free_wrapper): New helper function to free dynamic wrappers.

svn path=/trunk/mono/; revision=157787
2010-05-23 16:47:56 +00:00
Carlos Alberto Cortez 7df5a35b66 2010-05-23 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileTest.cs: New test cases for DirectoryExists and
	FileExists.


svn path=/trunk/mcs/; revision=157785
2010-05-23 16:19:40 +00:00
Carlos Alberto Cortez 0c1f40d84e 2010-05-23 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Implement FileExists and DirectoryExists, as
	well as adding fields to detect that Close/Dispose have been called
	and fire the proper exceptions.


svn path=/trunk/mcs/; revision=157784
2010-05-23 16:12:04 +00:00
Carlos Alberto Cortez 23d568a04c 2010-05-23 Carlos Alberto Cortez <[email protected]>
* corlib.dll.sources: Add System.IO.IsolatedStorageSecurityState.cs
	and System.IO.IsolatedStorageSecurityOptions.cs.


svn path=/trunk/mcs/; revision=157783
2010-05-23 16:03:45 +00:00
Zoltan Varga e5657e65bd 2010-05-23 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Propagate exceptions in one more place.

svn path=/trunk/mono/; revision=157769
2010-05-22 23:03:10 +00:00
Zoltan Varga 9e0da96143 2010-05-23 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Propagate exceptions from
	mono_runtime_class_init_full ().
	(mono_jit_runtime_invoke): Ditto. Fixes #608073.

svn path=/trunk/mono/; revision=157766
2010-05-22 22:02:59 +00:00
Zoltan Varga 32f4952c3c 2010-05-22 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Simplify the code computing the
	target class and remove some dead code.

svn path=/trunk/mono/; revision=157765
2010-05-22 21:04:46 +00:00
Zoltan Varga 3066368c52 Remove some debugging code.
svn path=/trunk/mono/; revision=157764
2010-05-22 20:56:14 +00:00
Zoltan Varga 1a7131a922 2010-05-22 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_generic_array_helper): Make these wrappers dynamic and
	free them when their parent method is freed.

svn path=/trunk/mono/; revision=157763
2010-05-22 20:53:01 +00:00
Zoltan Varga b6aadb5a63 2010-05-22 Zoltan Varga <[email protected]>
* metadata.c: Add a 'transient' argument to the MonoType creation functions, so
	the MonoTypes inside method headers can be freed when the header is freed.

svn path=/trunk/mono/; revision=157762
2010-05-22 19:07:19 +00:00
Zoltan Varga f89c558a38 2010-05-22 Zoltan Varga <[email protected]>
* mini-llvm.c mini-llvm-cpp.cpp: Update after LLVM 2.8 changes.

svn path=/trunk/mono/; revision=157751
2010-05-22 03:16:19 +00:00
Geoff Norton cfd5f83b6c 2010-05-21 Geoff Norton <[email protected]>
* BasicHttpBinding.cs: Transport mode supports authentication as well.

svn path=/trunk/mcs/; revision=157748
2010-05-22 02:44:42 +00:00
Carlos Alberto Cortez eef4d3b49b 2010-05-21 Carlos Alberto Cortez <[email protected]>
4.0 Updates.

	* IsolatedStorage.cs: Add ObsoleteAttribute to CurrentSize and
	MaximumSize.
	* IsolatedStorageSecurityState.cs: New, stubbed.
	* IsolatedStorageSecurityOptions.cs: New file.


svn path=/trunk/mcs/; revision=157739
2010-05-21 20:22:03 +00:00
Zoltan Varga 79f89bc1c8 2010-05-21 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_output_basic_block): Use ins->inst_c1 instead of p1, the
	two are not the same on ilp32.

svn path=/trunk/mono/; revision=157715
2010-05-21 18:22:12 +00:00
Zoltan Varga b90f333e46 2010-05-21 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Remove a DISABLE_JIT block which was
	added by mistake.

svn path=/trunk/mono/; revision=157710
2010-05-21 17:03:30 +00:00
Zoltan Varga d7c976112b 2010-05-21 Zoltan Varga <[email protected]>
* mini-ppc.c: Fix the DISABLE_JIT build.

svn path=/trunk/mono/; revision=157709
2010-05-21 16:52:35 +00:00
Zoltan Varga 83c3ff04e8 2010-05-21 Zoltan Varga <[email protected]>
* threadpool.c: Fix the DISABLE_SOCKETS build.

svn path=/trunk/mono/; revision=157708
2010-05-21 16:52:28 +00:00
Zoltan Varga 3e9c904bbd 2010-05-21 Zoltan Varga <[email protected]>
* src/gmisc-win32.c (g_setenv): Use the
	GetEnvironmentVariableW/SetEnvironmentVariableW variants.

svn path=/trunk/mono/; revision=157707
2010-05-21 16:50:47 +00:00
Sebastien Pouliot de2d4a2ee4 2010-05-21 Sebastien Pouliot <[email protected]>
* AsyncOperation.cs: Add checks for null delegates
	* BackgroundWorker.cs: Ensure ProgressChanged can be called before
	starting the work but not after its complete


svn path=/trunk/mcs/; revision=157698
2010-05-21 13:03:53 +00:00
Sebastien Pouliot 13b20e1330 2010-05-21 Sebastien Pouliot <[email protected]>
* DefaultValueAttributeTest.cs: Change test case to compare the 
	hash code of two DVA created with null (instead of comparing to 0)


svn path=/trunk/mcs/; revision=157697
2010-05-21 13:02:23 +00:00
Martin Baulig 0f0a0d5ffd #604911: Use alertable WaitForMultipleObjectsEx().
2010-05-19 Martin Baulig  <[email protected]>

	Fix #604911.

	* threads.c (wait_for_tids_or_state_change): Use an
	alertable WaitForMultipleObjectsEx().
	(wait_for_tids): Likewise.

svn path=/trunk/mono/; revision=157683
2010-05-21 12:15:48 +00:00
Marek Safar 21f1d2baa4 New tests & update.
svn path=/trunk/mcs/; revision=157672
2010-05-21 09:59:40 +00:00
Marek Safar 20d211c3c1 2010-05-21 Marek Safar <[email protected]>
* expression.cs: Use constrained prefix more broadly to avoid boxing.


svn path=/trunk/mcs/; revision=157671
2010-05-21 09:56:26 +00:00
Atsushi Eno 9e08c76462 2010-05-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : disable slottling again :( It still fails
	  to process concurrent requests if there is service metadata channel
	  and MaxConcurrentSessions > 1 on non-ASP.NET channels.


svn path=/trunk/mcs/; revision=157670
2010-05-21 09:16:37 +00:00
Atsushi Eno 332843cd5b 2010-05-21 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove Sleep() hack. The host is now ensured
	  to wait for channels opened.


svn path=/trunk/mcs/; revision=157669
2010-05-21 09:07:48 +00:00
Atsushi Eno 94fc6b94d1 2010-05-21 Atsushi Enomoto <[email protected]>
* WebScriptServiceHostFactory.cs : similarly to ServiceDebugBehavior
	  and ServiceMetadataBehavior in ServiceHostBase, it must *prepend*
	  WebScriptEnablingBehavior to apply all other behaviors subsequently.


svn path=/trunk/mcs/; revision=157667
2010-05-21 07:19:58 +00:00
Atsushi Eno c84b5a2c95 2010-05-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : ServiceMetadataBehavior and ServiceDebugBehavior
	  are special. They must be applied in prior to other behaviors so that
	  newly populated ChannelDispatchers are applied behaviors accordingly.


svn path=/trunk/mcs/; revision=157666
2010-05-21 07:13:17 +00:00
Atsushi Eno cc9432b62a 2010-05-21 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : remove Sleep() hack and wait channels to get
	  opened to proceed.


svn path=/trunk/mcs/; revision=157663
2010-05-21 06:13:21 +00:00
Atsushi Eno 79a9bcb766 2010-05-21 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : enable throttling again. Though issues
	  regarding parallel request is not here (multiple dispatchers
	  can accept a channels for each), and HTTP channels do not accept
	  more than one channel at a time anyways.


svn path=/trunk/mcs/; revision=157662
2010-05-21 04:48:10 +00:00
Atsushi Eno 8560cbb291 2010-05-21 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove unused field. Some code cleanup.


svn path=/trunk/mcs/; revision=157661
2010-05-21 04:44:51 +00:00
Atsushi Eno 766a1123ca 2010-05-21 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : use manual reset.
	* AspNetReplyChannel.cs : make it equivalent to the above.


svn path=/trunk/mcs/; revision=157660
2010-05-21 03:27:39 +00:00
Atsushi Eno d9aac2bd8d 2010-05-21 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not accept more than one channel at a
	  time. Remove extra fields. Add CancelAsync() implementation.


svn path=/trunk/mcs/; revision=157659
2010-05-21 03:26:00 +00:00
Atsushi Eno 8a06d77b96 2010-05-21 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : add a workaround for Func<>.BeginInvoke()
	  problem that blocked ASP.NET channels working.


svn path=/trunk/mcs/; revision=157658
2010-05-21 03:20:23 +00:00
Miguel de Icaza 72009417a4 2010-05-20 Miguel de Icaza <[email protected]>
* configure.in: drop again the pkg.m4 dependency and for eglib
	cases (and not-Windows) make it entirely optional.

svn path=/trunk/mono/; revision=157656
2010-05-20 23:54:14 +00:00
Marek Habersack 7312d09305 2010-05-20 Marek Habersack <[email protected]>
* FileStream.cs: when running on Windows and a path with Unix
	directory separator chars is passed (including an UNC share), get
	the canonical form of the path before attempting to retrieve its
	directory name. Fixes bug #607502

	* Path.cs: typo fix

svn path=/trunk/mcs/; revision=157650
2010-05-20 21:54:22 +00:00
Sebastien Pouliot 5a1def265a 2010-05-20 Sebastien Pouliot <[email protected]>
* DefaultValueAttribute.cs: Two instances where DefaultValue == 
	null are equal so they *must* return the same hash code


svn path=/trunk/mcs/; revision=157646
2010-05-20 18:54:55 +00:00
Andreia Gaita ea15d8c414 * X11Dnd.cs: Fix a few crashers, making sure the client window is valid
when dragging

svn path=/trunk/mcs/; revision=157644
2010-05-20 17:48:37 +00:00
Marek Safar c9da62213b 2010-05-20 Marek Safar <[email protected]>
A fix for bug #591149
	* nullable.cs: Don't double wrap same expression.


svn path=/trunk/mcs/; revision=157633
2010-05-20 15:58:27 +00:00
Marek Safar 6360c0cafa 2010-05-20 Marek Safar <[email protected]>
A fix for bug #569827
	* anonymous.cs: Any issued error in probing mode means no match.
	

svn path=/trunk/mcs/; revision=157629
2010-05-20 14:32:51 +00:00
Carlos Alberto Cortez c393a5b143 2010-05-20 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Add the new 4.0 overloads for
	GetDirectoryNames and GetFileNames.


svn path=/trunk/mcs/; revision=157621
2010-05-20 13:09:36 +00:00
Marek Safar 4542976afc New tests.
svn path=/trunk/mcs/; revision=157614
2010-05-20 11:13:50 +00:00
Marek Safar 03b0c71ba9 Fixed latest build failure
svn path=/trunk/mcs/; revision=157612
2010-05-20 11:08:48 +00:00
Marek Safar 3f90a25d2d 2010-05-20 Marek Safar <[email protected]>
* expression.cs: Search for base indexer using the closest match
	rule.


svn path=/trunk/mcs/; revision=157609
2010-05-20 10:38:46 +00:00
Marek Safar fdf00fcf58 2010-05-20 Marek Safar <[email protected]>
A fix for bug #572071
	* method.cs: Set override constraints using unexpanded interface
	list.


svn path=/trunk/mcs/; revision=157601
2010-05-20 10:12:35 +00:00
Marek Safar b7dc3a9663 2010-05-20 Marek Safar <[email protected]>
A fix for bug #572071
	* ecore.cs: Include secondary extension method lookup in probing
	mode.


svn path=/trunk/mcs/; revision=157592
2010-05-20 08:53:26 +00:00
Rodrigo Kumpera c6e38dd69c 2010-05-19 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_marshal_init): Register mono_gchandle_get_target
	icall.

	* marshal.c (mono_delegate_to_ftnptr): Use a gchandle instead of
	gc tracked memory.

	* marshal.c (mono_marshal_emit_managed_wrapper): Retrieve the first
	argument from a gchandle.

	* marshal.c: Get rid of the delegate_target_locations hash table.

	Fixes #605295.

svn path=/trunk/mono/; revision=157589
2010-05-20 00:47:12 +00:00
Zoltan Varga fd7bb40cef 2010-05-20 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_resolve_method_ref): Rename this from decode_method_ref_2.
	(make_writable): Remove this unused function.

svn path=/trunk/mono/; revision=157588
2010-05-20 00:40:27 +00:00
Zoltan Varga 32dd44acab 2010-05-20 Zoltan Varga <[email protected]>
* aot-compiler.c: Collect all information about a PLT entry into a separate MonoPltEntry
	structure. Make the labels to plt entries local symbols instead of assembler local
	labels, since tha latter causes problems for the iphone linker.

svn path=/trunk/mono/; revision=157576
2010-05-19 23:28:01 +00:00
Marek Safar 0bf95f4e2a New tests.
svn path=/trunk/mcs/; revision=157573
2010-05-19 19:16:34 +00:00
Marek Safar 4b46bdbd6f 2010-05-19 Marek Safar <[email protected]>
A fix for bug #515801
	* typespec.cs (MayBecomeEqualGenericTypes): Recursively check
	type arguments.


svn path=/trunk/mcs/; revision=157572
2010-05-19 19:08:51 +00:00
Marek Safar 8de00cdfb9 2010-05-19 Marek Safar <[email protected]>
A fix for bug #515801
	* pending.cs: Advance counter correctly.


svn path=/trunk/mcs/; revision=157566
2010-05-19 17:10:12 +00:00
Marek Safar f9a1b588e1 2010-05-19 Marek Safar <[email protected]>
A fix for bug #480139
	* method.cs, pending.cs: Indexer override uses base name.


svn path=/trunk/mcs/; revision=157563
2010-05-19 16:02:00 +00:00
Jb Evain f0a33c9d0c 2010-05-19 Jb Evain <[email protected]>
* EnumerableMoreTest.cs: add more GroupBy tests.


svn path=/trunk/mcs/; revision=157560
2010-05-19 14:41:39 +00:00
Jb Evain 3a9cf4b4cd 2010-05-19 Jb Evain <[email protected]>
* Enumerable.cs: fix GroupBy to deal with a null key for the last
	group entry. Also fix GroupBy to properly throw ArgumentNullException.


svn path=/trunk/mcs/; revision=157558
2010-05-19 14:41:12 +00:00
Marek Safar 33685d4f81 2010-05-19 Marek Safar <[email protected]>
A fix for bug #424064
	* generic.cs: Replace original with inflated type parameter on
	failure.
	

svn path=/trunk/mcs/; revision=157555
2010-05-19 14:13:32 +00:00
Atsushi Eno 1f420a23ed 2010-05-19 Atsushi Enomoto <[email protected]>
* DuplexClientBase.cs : implement InnerDuplexChannel and
	  CreateChannel(), by Pieter van der Berg.


svn path=/trunk/mcs/; revision=157554
2010-05-19 14:01:13 +00:00
Jb Evain 3554b87644 2010-05-19 Jb Evain <[email protected]>
* ExpressionTest_Constant.cs: add tests for nullable constants.


svn path=/trunk/mcs/; revision=157551
2010-05-19 13:36:47 +00:00
Jb Evain ec8eb45171 2010-05-19 Jb Evain <[email protected]>
* ConstantExpression.cs: fix emission of nullable constants.


svn path=/trunk/mcs/; revision=157550
2010-05-19 13:36:21 +00:00
Marek Habersack 6193eeb004 2010-05-19 Marek Habersack <[email protected]>
* DataSourceCacheDurationConverter.cs: implemented. Fixes bug
	#603083

svn path=/trunk/mcs/; revision=157547
2010-05-19 12:54:23 +00:00
Marek Safar 092b368138 New test.
svn path=/trunk/mcs/; revision=157542
2010-05-19 10:45:54 +00:00
Marek Safar 0f702bf4c7 2010-05-19 Marek Safar <[email protected]>
A fix for bug #359733
	* parameter.cs: Extension attribute can be defined in each assembly.


svn path=/trunk/mcs/; revision=157541
2010-05-19 10:44:47 +00:00
Atsushi Eno 64d0f5b30c 2010-05-19 Atsushi Enomoto <[email protected]>
* ServiceSettingsResponseInfo.cs
	  RegisterResponseInfo.cs
	  RefreshResponseInfo.cs
	  ResolveInfo.cs
	  UpdateInfo.cs
	  RegisterInfo.cs
	  UnregisterInfo.cs
	  RefreshInfo.cs
	  ResolveResponseInfo.cs : they don't have field initialization at
	  constructor now, for FormatterServices.GetUninitializedObject().
	  Fix regression with related to serialization changes.

	* PeerResolverSerializationTest.cs :
	  verify deserialized address count too.


svn path=/trunk/mcs/; revision=157532
2010-05-19 08:12:32 +00:00
Atsushi Eno 37f125e581 2010-05-19 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : Array of something with non-default
	  namespace should be deserialized as well. Required for fixing
	  PeerResolvers ResolveResponseInfo serialization test case.


svn path=/trunk/mcs/; revision=157531
2010-05-19 07:58:59 +00:00
Andreia Gaita 907ed0be1d * DataContractSerializerTest.cs: Add test for deserializing objects
with different namespaces (bug #599667)

svn path=/trunk/mcs/; revision=157527
2010-05-19 05:37:01 +00:00
Andreia Gaita 9b8e9605c3 * HttpRequestChannel.cs: if the response has no body, create an
empty message and return that.
  Note: the ws-mc protocol defines that the service returns an
  200 response with an empty body on first connection, this
  adds support for that (fixes part of #599667)

svn path=/trunk/mcs/; revision=157525
2010-05-19 05:10:16 +00:00
Andreia Gaita 0920b8c4bc * SerializationMap.cs: when deserializing, it is possible that the
DataMemberInfo objects being matched against the xml don't have
  a set namespace because they were created from
  DefaultTypeMap.GetDataMembers(), so only use the namespace for
  comparison if it's not null (fixes part of #599667)

svn path=/trunk/mcs/; revision=157523
2010-05-19 03:41:22 +00:00
Zoltan Varga beae459163 2010-05-19 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_ppc_is_direct_call_sequence): Handle one more case with ilp32.

svn path=/trunk/mono/; revision=157522
2010-05-19 02:36:50 +00:00
Zoltan Varga 9caa46c1cf 2010-05-19 Zoltan Varga <[email protected]>
* ppc/ppc-codegen.h (ppc_load_func): Fix ilp32 support.

svn path=/trunk/mono/; revision=157521
2010-05-19 02:35:46 +00:00
Marek Habersack 5411dd0e2a 2010-05-19 Marek Habersack <[email protected]>
* PageParser.cs: handle several main directive attributes
    	specially, as they can have expressions as their values. Fixes bug
    	#603532

    	* MainDirectiveAttribute.cs: added - helper class to handle
    	directive attributes which can take either a value or an
    	expression.

    	* BaseParser.cs: IsDirective, IsExpression and IsDataBound methods
    	moved to here from TemplateControlCompiler.

    2010-05-19  Marek Habersack  <[email protected]>

    	* TemplateControlCompiler.cs: IsDirective, IsExpression and
    	IsDataBound methods moved to System.Web.UI.BaseParser.
    	Made CompileExpression and GetFieldOrProperty methods internal.

    	* PageCompiler.cs: check several of the Page directive attributes
    	for expressions. Fixes bug #603532

    	* AspGenerator.cs, TagAttributes.cs: use IDictionary instead of
    	Hashtable

svn path=/trunk/mcs/; revision=157519
2010-05-19 01:28:09 +00:00
Marek Safar ea2be8c02e Fixes build
svn path=/trunk/mcs/; revision=157516
2010-05-18 21:37:19 +00:00
Marek Safar c9d66d0bdf New test.
svn path=/trunk/mcs/; revision=157512
2010-05-18 18:12:38 +00:00
Marek Safar f1ffb1c5b5 2010-05-18 Marek Safar <[email protected]>
A fix for bug #446507
	* method.cs: Only one method can implement an interface.


svn path=/trunk/mcs/; revision=157511
2010-05-18 18:08:17 +00:00
Marek Safar 656bfd8fc6 2010-05-18 Marek Safar <[email protected]>
* TypeBuilder.cs, PropertyBuilder.cs: Add DefineProperty overloads.



svn path=/trunk/mcs/; revision=157510
2010-05-18 17:33:42 +00:00
Gonzalo Paniagua Javier 32375f7136 2010-05-18 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs:
	* FtpWebRequest.cs: properly close the data connection even when
	nothing is read from it. Refixes bug #598908.


svn path=/trunk/mcs/; revision=157506
2010-05-18 16:58:15 +00:00
Marek Safar 94eb8491cf New test.
svn path=/trunk/mcs/; revision=157504
2010-05-18 16:28:17 +00:00
Marek Safar eb8e0ad138 New test.
svn path=/trunk/mcs/; revision=157503
2010-05-18 16:28:07 +00:00
Marek Safar 175cf27dbe 2010-05-18 Marek Safar <[email protected]>
A fix for bug #594905
	* convert.cs, constant.cs, expression.cs, literal.cs, ecore.cs:
	Typed null can be used as a source for expression methods.
	

svn path=/trunk/mcs/; revision=157502
2010-05-18 16:27:54 +00:00
Marek Safar f02dd3a82e void is not real type
svn path=/trunk/mcs/; revision=157501
2010-05-18 14:24:39 +00:00
Marek Safar 6191dc9890 New test.
svn path=/trunk/mcs/; revision=157490
2010-05-18 10:52:58 +00:00
Marek Safar d03c8005bf 2010-05-18 Marek Safar <[email protected]>
A fix for bug #606551
	* namespace.cs: Using directive imports only types and not nested
	namespaces.


svn path=/trunk/mcs/; revision=157489
2010-05-18 10:52:32 +00:00
Atsushi Eno c0b7a68480 2010-05-18 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : revert the previous change, caused regressions.


svn path=/trunk/mcs/; revision=157486
2010-05-18 08:44:01 +00:00
Atsushi Eno b8adcb8fd7 2010-05-18 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : do not arbitrarily add ServiceDebugBehavior
	  on all configuration-based services. .NET doesn't do that.


svn path=/trunk/mcs/; revision=157485
2010-05-18 07:37:12 +00:00
Marek Habersack 1e4a6be22d 2010-05-18 Marek Habersack <[email protected]>
* ListView.cs: if data source has pageable data, get total count
	from the source's DataSourceCount property. Fixes bug #604053

svn path=/trunk/mcs/; revision=157470
2010-05-17 23:35:55 +00:00
Marek Habersack 8fdec56cd2 Added tests for bug #535701
svn path=/trunk/mcs/; revision=157469
2010-05-17 23:35:43 +00:00
Carlos Alberto Cortez 8941fc7ac4 2010-05-17 Carlos Alberto Cortez <[email protected]>
* TabControlTest.cs: New test cases for ItemSize.


svn path=/trunk/mcs/; revision=157468
2010-05-17 21:47:42 +00:00
Carlos Alberto Cortez 470252f16c 2010-05-15 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: Properly implement ItemSize, which should depend on
	Font and ImageList -if available-, instead of having a fixed height.
	Setting ImageList should cause a Redraw also.
	Fixes #599950.


svn path=/trunk/mcs/; revision=157467
2010-05-17 21:45:49 +00:00
Rodrigo Kumpera e891d748c0 2010-05-14 Rodrigo Kumpera <[email protected]>
* sgen-gc.c: Use _fast variants	for string and array length.

svn path=/trunk/mono/; revision=157462
2010-05-17 19:34:23 +00:00
Rodrigo Kumpera 3588f1a2e2 2010-05-14 Rodrigo Kumpera <[email protected]>
* sgen-gc.c: Fix counters to be 64 bits.

	* sgen-gc.c (dump_heap): Fix formating strings.

svn path=/trunk/mono/; revision=157461
2010-05-17 19:34:15 +00:00
Rodrigo Kumpera 6db2147e22 2010-05-14 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (global_remset_cache_test): New function that
	implements a 2 element LRU cache for just added remsets.
	It is used to avoid adding duplicate ones.

	* sgen-gc.c (add_to_global_remset): Check cache	before
	adding new entry.

	* sgen-gc.c (scan_from_remsets): Ditto.

	A 2 element LRU cache was chosen by profiling IronPython 2.6
	pytones with 1M passes and corlib compilation.

	For the ipy test duplication was originally 940.92, measured
	by "Store remsets" divided by "Unique store remsets".

	With a 2-element LRU, duplication went to 1.007. Without the
	check in scan_from_remsets 1.438.

	With a 16-elements LRU, duplication reduction was negligibe.
	A single element cache was basically of no use.

	With corlib compilation duplication went from  1.4 to 1.02.

	Performance results is a 20% time decrease for ipy and 2%
	with corlib.

svn path=/trunk/mono/; revision=157460
2010-05-17 19:34:05 +00:00
Zoltan Varga 5f96ae79e0 2010-05-17 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_ppc_is_direct_call_sequence): Handle ilp32.
	(ppc_patch_full): Ditto.

svn path=/trunk/mono/; revision=157458
2010-05-17 19:19:03 +00:00
Zoltan Varga 7dac735104 Fix the build.
svn path=/trunk/mcs/; revision=157452
2010-05-17 14:54:12 +00:00
Zoltan Varga 9b59c56825 2010-05-17 Zoltan Varga <[email protected]>
* mono-2.pc.in (Libs): Remove glib dependencies.

svn path=/trunk/mono/; revision=157449
2010-05-17 13:52:49 +00:00
Atsushi Eno 9e2c52d9b3 2010-05-17 Atsushi Enomoto <[email protected]>
* XamlWriterStateManager.cs : on object writer, reject more write
	  namespace order. (I should really unuse it for object writer.)
	* XamlObjectWriter.cs : result is set at end object. Do not reject
	  non-collection in this writer. I'm totally no idea why it should
	  not do so though.

	* XamlObjectWriterTest.cs : fix and enable some tests.


svn path=/trunk/mcs/; revision=157446
2010-05-17 12:58:18 +00:00
Marek Safar 6cd2f8e83f New test.
svn path=/trunk/mcs/; revision=157441
2010-05-17 11:33:29 +00:00
Marek Safar 58c0b5dc40 Fixes build.
svn path=/trunk/mcs/; revision=157440
2010-05-17 11:32:36 +00:00
Marek Habersack d410d4fe4a 2010-05-17 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: pre-application start methods must be
	called even before App_Code is compiled.

2010-05-17  Marek Habersack  <[email protected]>

	* BuildProvider.cs: made the Extension property case-insensitive

2010-05-17  Marek Habersack  <[email protected]>

	* BuildProvider.cs: implemented a 4.0 method RegisterBuildProvider

	* BuildManager.cs: separated dynamically registered assemblies
	store from the referenced assemblies cache.

svn path=/trunk/mcs/; revision=157435
2010-05-17 10:58:08 +00:00
Carlos Alberto Cortez 8b12ed78d0 2010-05-17 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: When drawing the contents of our tabs use 
	TabControl.Padding instead of BorderThickness and FocusRectSpacing.

	* CheckBoxPainter.cs, RadioButtonPainter.cs: Added.

svn path=/trunk/mcs/; revision=157428
2010-05-17 10:13:29 +00:00
Marek Safar c858c7f7ca New tests.
svn path=/trunk/mcs/; revision=157426
2010-05-17 09:54:06 +00:00
Marek Safar f06ff7c5b3 New tests.
svn path=/trunk/mcs/; revision=157425
2010-05-17 09:53:20 +00:00
Marek Safar 33f4608d23 2010-05-17 Marek Safar <[email protected]>
* typespec.cs, expression.cs, statement.cs, ecore.cs, complete.cs,
	delegate.cs: Member instance is resolved after member overload
	definitely resolves static/instance property of member expression.
	Fixes #545047, #358848, #456605, #460016, #603299


svn path=/trunk/mcs/; revision=157424
2010-05-17 09:52:56 +00:00
Carlos Alberto Cortez 0ab77cde4f * TabControlPainter.cs: Don't use FocusRectSpacing or BorderThickess
to calculate the interior rectangle to draw the tab contents, as
	TabControl.Padding is enough - we had been ignoring it. This make
	should our tab look more like that one in .net.

2010-05-17  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=157423
2010-05-17 09:48:46 +00:00
Carlos Alberto Cortez b1d12a538d 2010-05-17 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: When drawing tabs, use TabControl.Padding into
	account for the interior rectangle for the text/image contents.
	Fixes the remaining bits of #604034.


svn path=/trunk/mcs/; revision=157419
2010-05-17 09:00:12 +00:00
Atsushi Eno f9d2d54fd2 2010-05-17 Atsushi Enomoto <[email protected]>
* Enum.cs : TryParse() should raise ArgumentException when the
	  type parameter is not an enum. Fixed bug #604134

	* EnumTest.cs : add test for bug #604134.


svn path=/trunk/mcs/; revision=157416
2010-05-17 08:42:03 +00:00
Atsushi Eno 0ff9ac2db6 2010-05-17 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : fix extender search index for LastIndexOf().
	  Fixed bug #605094.

	* StringTest.cs : add test for bug #605094.


svn path=/trunk/mcs/; revision=157414
2010-05-17 08:25:04 +00:00
Gonzalo Paniagua Javier 3683a0c596 2010-05-17 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: check object reference when the timers are equal.
	Fixes bug #605092.


svn path=/trunk/mcs/; revision=157410
2010-05-17 05:05:47 +00:00
Zoltan Varga 73b9f1270c 2010-05-17 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_build_imt_thunk): Fix the fail_tramp case.

svn path=/trunk/mono/; revision=157409
2010-05-17 00:35:34 +00:00
Zoltan Varga 6ee3691e0d 2010-05-17 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Use fast generic virtual method invocation
	if gshared is enabled, to avoid asserts in the trampoline code.

	* mini-ia64.c (mono_arch_build_imt_thunk): Implement generalized imt thunks
	on ia64.

svn path=/trunk/mono/; revision=157408
2010-05-16 23:26:03 +00:00
Carlos Alberto Cortez 0fb0e3fa13 0201-05-16 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: The text for our tabs should always be
	vertically centered, and it should be horizontally centered if the
	size mode is Fixed. Patch from Thomas Goldstein ([email protected]).
	Fixes part of #599841.


svn path=/trunk/mcs/; revision=157406
2010-05-16 22:11:57 +00:00
Zoltan Varga 1b6e592608 2010-05-16 Zoltan Varga <[email protected]>
* mono-debug.c (mono_debug_cleanup): Fix a crash in the previous change.

svn path=/trunk/mono/; revision=157403
2010-05-16 19:33:38 +00:00
Zoltan Varga 771a6684de Another try at fixing the freebsd build.
svn path=/trunk/mono/; revision=157396
2010-05-16 13:06:12 +00:00
Zoltan Varga 090369e929 Fix the freebsd build.
svn path=/trunk/mono/; revision=157394
2010-05-16 02:59:06 +00:00
Marek Habersack aac871a351 2010-05-16 Marek Habersack <[email protected]>
* BuildManager.cs: do not cache referenced assemblies until it's
	safe.

2010-05-16  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: let BuildManager know when it's safe
	to cache referenced assemblies.

svn path=/trunk/mcs/; revision=157391
2010-05-16 01:55:10 +00:00
Geoff Norton fcc75485b6 2010-05-15 Geoff Norton <[email protected]>
* dwarfwriter.c, xdebug.c: Fix a pretty large leak when running in
        xdebug mode.

svn path=/trunk/mono/; revision=157390
2010-05-16 01:15:07 +00:00
Geoff Norton 16b6194922 2010-05-15 Geoff Norton <[email protected]>
* mono-debug.c: Fix a leak of the global table on shutdown.

svn path=/trunk/mono/; revision=157389
2010-05-16 01:15:03 +00:00
Geoff Norton d442c90736 2010-05-15 Geoff Norton <[email protected]>
* debug-mono-symfile.(c|h): Add mono_debug_symfile_free_location
        to clean up MonoDebugSourceLocation's.

svn path=/trunk/mono/; revision=157388
2010-05-16 01:14:59 +00:00
Zoltan Varga 592ffa4420 Fix a warning.
svn path=/trunk/mono/; revision=157387
2010-05-15 21:35:03 +00:00
Zoltan Varga abb3ba22f1 2010-05-15 Zoltan Varga <[email protected]>
* src/glib.h (g_error): Add a for (;;) after the call to tell GCC this doesn't
	return, fixing some warnings.

svn path=/trunk/mono/; revision=157386
2010-05-15 21:34:56 +00:00
Marek Safar f9bea41458 2010-05-15 Marek Safar <[email protected]>
* KeyValuePair.cs: Initialize fields definitely.


svn path=/trunk/mcs/; revision=157385
2010-05-15 21:18:13 +00:00
Carlos Alberto Cortez f23a177c8b 2010-05-15 Carlos Alberto Cortez <[email protected]>
* TabControlTest.cs: New test for ItemSize.


svn path=/trunk/mcs/; revision=157383
2010-05-15 09:04:22 +00:00
Carlos Alberto Cortez 129ed5c68a 2010-05-15 Carlos Alberto Cortez <[email protected]>
* TabControlPainter.cs: Reduce the height for our default item size,
	as we were ignoring the padding before.


svn path=/trunk/mcs/; revision=157382
2010-05-15 08:38:32 +00:00
Carlos Alberto Cortez bf19c798ac 2010-05-15 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: ItemSize should be returning two times the padding
	values instead of one.


svn path=/trunk/mcs/; revision=157381
2010-05-15 08:38:08 +00:00
Geoff Norton fabd8fb24a 2010-05-14 Geoff Norton <[email protected]>
* exceptions-x86.c: Fix the alignment of this trampoline so we dont get a
	misaligned stack on darwin.

svn path=/trunk/mono/; revision=157380
2010-05-15 03:32:31 +00:00
Marek Habersack 37d042ed14 This expression builder is implemented now
svn path=/trunk/mono/; revision=157379
2010-05-15 02:29:51 +00:00
Marek Habersack fbbf51a5e4 2010-05-14 Marek Habersack <[email protected]>
* AssemblyInfo.cs: this assembly should be signed with winfx.pub

2010-05-15  Marek Habersack  <[email protected]>

	* HttpResponse.cs: added internal Context property

	* HttpRequest.cs: added a setter to the internal Context property

	* HttpContext.cs: set request and response Context properties to
	'this' in the constructor.

2010-05-15  Marek Habersack  <[email protected]>

	* Control.cs: implemented 4.0 GetRouteUrl overloads and
	GetUniqueIDRelativeTo

2010-05-15  Marek Habersack  <[email protected]>

	* RouteValueExpressionBuilder.cs: added

	* RouteUrlExpressionBuilder.cs: implemented

svn path=/trunk/mcs/; revision=157378
2010-05-15 02:29:09 +00:00
Carlos Alberto Cortez d86f8db4a5 2010-05-14 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: ItemSize should include the padding value.
	Update the retrieval of this info in SizeTab as well.
	Fixes part of #604034.


svn path=/trunk/mcs/; revision=157373
2010-05-14 21:57:35 +00:00
Atsushi Eno c039515edd 2010-05-14 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs
          ReplyChannelBase.cs
          TcpChannelListener.cs
          ChannelListenerBase_1.cs
          PeerChannelListener.cs
          HttpChannelListener.cs
          NamedPipeChannelListener.cs:
          do the same for channel listener,reply channels and
          duplex channels.


svn path=/trunk/mcs/; revision=157368
2010-05-14 16:42:06 +00:00
Atsushi Eno eef30ecabf 2010-05-14 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs, RequestChannelBase.cs : support
          MessageVersion in GetProperty<T>() for many transport channels.


svn path=/trunk/mcs/; revision=157367
2010-05-14 16:32:10 +00:00
Atsushi Eno 6bdd3cdf39 2010-05-14 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs
          TcpChannelFactory.cs
          ChannelFactoryBase.cs
          NamedPipeChannelFactory.cs
          PeerChannelFactory.cs
          RequestChannelBase.cs : commonize MessageEncoder.
          (Commented out GetPrpoerty<T>() for MessageVersion as it is 
          in doubt yet.)


svn path=/trunk/mcs/; revision=157366
2010-05-14 16:22:18 +00:00
Atsushi Eno 599f26938d 2010-05-14 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : do not pass empty string array; it almost
          always results in header-not-found error.


svn path=/trunk/mcs/; revision=157365
2010-05-14 15:41:06 +00:00
Atsushi Eno a2894fceaa 2010-05-14 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : do not try to lookup prefix for empty ns.


svn path=/trunk/mcs/; revision=157364
2010-05-14 15:11:45 +00:00
Atsushi Eno a2320571aa 2010-05-14 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : do not use maxBufferSize for initialSize argument
          for MessageHeaders. Fix OutOfMemoryException for certain usage.


svn path=/trunk/mcs/; revision=157363
2010-05-14 14:21:24 +00:00
Sebastien Pouliot 603bc8252d 2010-05-14 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Update FX version for SL4 final version


svn path=/trunk/mcs/; revision=157360
2010-05-14 13:13:46 +00:00
Sebastien Pouliot aa659717f7 2010-05-14 Sebastien Pouliot <[email protected]>
* FlashCrossDomainPolicy.cs: Reverse conditions order on secure=true
	since we're currently too severe. Fix DRT668


svn path=/trunk/mcs/; revision=157359
2010-05-14 13:12:28 +00:00
Sebastien Pouliot 0e8bdc8ce3 2010-05-14 Sebastien Pouliot <[email protected]>
* WebHeaderCollection_2_1.cs: Hide the internal Dictionary and 
	provide methods to use it properly.
	* HttpWebRequest_2_1.cs: Use internal Clear method


svn path=/trunk/mcs/; revision=157358
2010-05-14 13:10:34 +00:00
Zoltan Varga a3268ef0e9 2010-05-14 Zoltan Varga <[email protected]>
* mini-arm.c aot-compiler.c: Implement support for generalized imt thunks on
	arm.

svn path=/trunk/mono/; revision=157357
2010-05-14 12:45:04 +00:00
Zoltan Varga f9d8b5b2aa Fix the s390x build.
svn path=/trunk/mono/; revision=157356
2010-05-14 12:26:24 +00:00
Zoltan Varga 9a3b4f0d26 Fix the ia64 build.
svn path=/trunk/mono/; revision=157355
2010-05-14 12:24:28 +00:00
Atsushi Eno bc0d9e7627 2010-05-14 Atsushi Enomoto <[email protected]>
* BindingContext.cs : actually clone is needed everywhere else too.
	* CustomBinding.cs : remove extra field.

	* BindingContextTest.cs : add a couple of tests with related to
	  RemainingBindingElements use. Some tests by Andreia Gaita.


svn path=/trunk/mcs/; revision=157350
2010-05-14 07:28:26 +00:00
Atsushi Eno 3b981adaf1 2010-05-14 Andreia Gaita <[email protected]>
* BindingContext.cs: Copy elements from the original binding only when
	creating it, never when cloning it. This way, CanBuildInnerChannel can
	work recursively as it should.

2010-05-14  Atsushi Enomoto  <[email protected]>

	* CustomBinding.cs : return clone collection.
	* BindingContext.cs :
	  Simply use RemainingBindingElements in builder methods.
	  Clone() should be deep copying (as documented).
	* BinaryMessageEncodingBindingElement.cs
	  MtomMessageEncodingBindingElement.cs
	  TextMessageEncodingBindingElement.cs
	  HttpCookieContainerBindingElement.cs :
	  do not add itself to RemainingBindingElements.
	* HttpChannelFactory.cs
	  HttpChannelListener.cs
	  TcpChannelFactory.cs
	  TcpChannelListener.cs
	  MsmqChannelFactory.cs
	  MsmqChannelListener.cs
	  NamedPipeChannelFactory.cs
	  NamedPipeChannelListener.cs
	  PeerChannelFactory.cs
	  PeerChannelListener.cs : do not iterate RemainingBindingElements.
	  Instead, iterate all binding elements in the CustomBinding.



svn path=/trunk/mcs/; revision=157345
2010-05-14 05:20:37 +00:00
Rodrigo Kumpera fc4f0cfd03 2010-05-13 Rodrigo Kumpera <[email protected]>
* MonoAssembly.cs: Fix a 2.0 corlib test failure.

svn path=/trunk/mcs/; revision=157344
2010-05-14 00:55:03 +00:00
Rodrigo Kumpera 6484e54dbc 2010-05-13 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Fix test not to depend
	on interface order.

svn path=/trunk/mcs/; revision=157343
2010-05-14 00:54:54 +00:00
Rodrigo Kumpera e7c663812b 2010-05-13 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Fail a class
	if there is a loop with its parent.

	Fixes #598239.

svn path=/trunk/mono/; revision=157337
2010-05-14 00:20:06 +00:00
Marek Habersack 74b68b52f2 More 4.0 changes
svn path=/trunk/mono/; revision=157335
2010-05-13 23:42:50 +00:00
Marek Habersack e0fa3178f1 Added ASP.NET 4.0 controls
svn path=/trunk/mono/; revision=157334
2010-05-13 23:42:35 +00:00
Zoltan Varga 00df6f4b06 2010-05-14 Zoltan Varga <[email protected]>
* xdebug.c: Fix ARM support.

svn path=/trunk/mono/; revision=157333
2010-05-13 23:24:51 +00:00
Rodrigo Kumpera 0a573bdb2b 2010-05-13 Rodrigo Kumpera <[email protected]>
* loader.c (mono_loader_set_error_type_load): Convert
	a g_warninig to mono_trace_warning.

svn path=/trunk/mono/; revision=157332
2010-05-13 22:07:16 +00:00
Rodrigo Kumpera c994438317 2010-05-13 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_full): Release strings on failure
	to avoid leaking them.

svn path=/trunk/mono/; revision=157331
2010-05-13 22:07:08 +00:00
Rodrigo Kumpera b3dd945428 2010-05-13 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_create_from_typedef): Only return
	the class if no exceptions were detected.

	* class.c (mono_class_create_from_typedef): Don't remove
	broken classes from class_cache. Just set failure and
	bail out.

	This fixes a memory a memory leak where resolving the same
	broken class multiple times resulted in a memory leak.

	The right behavior would be to actually return the class
	a let the caller figure it out.

svn path=/trunk/mono/; revision=157330
2010-05-13 22:07:00 +00:00
Rodrigo Kumpera d4c4ad3d5f 2010-05-13 Rodrigo Kumpera <[email protected]>
* typeload-unaligned.cs: Move the reference to the broken type
	to an inner function since mono now detects the brokenness earlier.

svn path=/trunk/mono/; revision=157329
2010-05-13 22:06:52 +00:00
Rodrigo Kumpera ddaf05025e 2010-05-13 Rodrigo Kumpera <[email protected]>
* mono-ptr-array.h: Add mono_ptr_array_sort.

	* reflection.c (mono_image_build_metadata): Replace that ugly
	qsort call with mono_ptr_array_sort.

svn path=/trunk/mono/; revision=157328
2010-05-13 22:06:44 +00:00
Zoltan Varga dae170e5d9 2010-05-13 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_handle_exception): Resume from the signal handler
	and do most of the work on the normal stack.
	(mono_x86_get_signal_exception_trampoline): New x86 specific trampoline function.

svn path=/trunk/mono/; revision=157327
2010-05-13 21:35:27 +00:00
Zoltan Varga 11c57cd4f0 2010-05-13 Zoltan Varga <[email protected]>
* aot-compiler.c: Put non-code data into the .rodata section on linux.

svn path=/trunk/mono/; revision=157318
2010-05-13 20:18:40 +00:00
Zoltan Varga 101d610a1c Fix the BSD build.
svn path=/trunk/mono/; revision=157312
2010-05-13 16:46:10 +00:00
Mark Probst 269e1bf980 2010-05-13 Mark Probst <[email protected]>
* sgen-gc.c: Switch to the copying major collector, because
        Mark&Sweep is still buggy.

svn path=/trunk/mono/; revision=157305
2010-05-13 14:05:32 +00:00
Zoltan Varga c5437f5842 2010-05-13 Zoltan Varga <[email protected]>
(mono_arch_handle_exception): Fix the cross-compile case.

svn path=/trunk/mono/; revision=157293
2010-05-13 04:05:23 +00:00
Rodrigo Kumpera a942d1015a 2010-05-13 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_build_metadata): Don't put managed
	references on non-tracked memory.

svn path=/trunk/mono/; revision=157292
2010-05-13 02:46:11 +00:00
Zoltan Varga 9dc8f29c3e 2010-05-13 Zoltan Varga <[email protected]>
* exceptions-arm.c (mono_arch_handle_exception): Resume from the signal handler
	and do most of the work on the normal stack.

svn path=/trunk/mono/; revision=157291
2010-05-13 02:21:00 +00:00
Rodrigo Kumpera e3cba64262 Fix typo
svn path=/trunk/mono/; revision=157290
2010-05-13 02:19:22 +00:00
Zoltan Varga aa398a91dc 2010-05-13 Zoltan Varga <[email protected]>
* sgen-archdep.h (ARCH_COPY_SIGCTX_REGS): Fix this for amd64.

svn path=/trunk/mono/; revision=157289
2010-05-13 02:02:08 +00:00
Rodrigo Kumpera 038a5182ec 2010-05-12 Rodrigo Kumpera <[email protected]>
* icall.c: Switch to mono-ptr-array.h.

svn path=/trunk/mono/; revision=157287
2010-05-13 01:39:10 +00:00
Rodrigo Kumpera 0b0dd745ba 2010-05-12 Rodrigo Kumpera <[email protected]>
* Makefile.am: Add mono-ptr-array.h.

	* mono-ptr-array.h: New header that implements
	a GC tracked equivalent of g_ptr_array.

svn path=/trunk/mono/; revision=157286
2010-05-13 01:39:02 +00:00
Rodrigo Kumpera ec681d554c Copy icall.c to mono-ptr-array.h
svn path=/trunk/mono/; revision=157285
2010-05-13 01:34:00 +00:00
Marek Habersack f70f49d3c3 Fixlet
svn path=/trunk/mcs/; revision=157284
2010-05-13 01:18:36 +00:00
Zoltan Varga f457e7d94a 2010-05-13 Zoltan Varga <[email protected]>
* dtest.cs: Add a test for nullref exceptions + single threaded invokes.

svn path=/trunk/mono/; revision=157283
2010-05-13 01:15:43 +00:00
Zoltan Varga bd324646d2 2010-05-13 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_handle_exception): Resume from the signal handler
	and do most of the work on the normal stack even if sigaltstack is disabled.

svn path=/trunk/mono/; revision=157282
2010-05-13 01:15:35 +00:00
Rodrigo Kumpera 43175d0481 2010-05-12 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetInterfaces): Rewrite this
	method to avoid initializing the class.

	Fixes #605115.

svn path=/trunk/mono/; revision=157281
2010-05-13 01:15:14 +00:00
Rodrigo Kumpera 5f15550885 2010-05-12 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_System_MonoType_getFullName): It
	doesn't require to init the class.

svn path=/trunk/mono/; revision=157280
2010-05-13 01:15:05 +00:00
Alan McGovern 6fa3f9aa75 2010-05-13 Alan McGovern <[email protected]>
* src/gstring.c: Put in some null guards for the ctors


svn path=/trunk/mono/; revision=157279
2010-05-13 00:12:04 +00:00
Marek Habersack 20d0038bd1 commit e25cece56ee428a8ace8979e31ab2c0c077be4f5
Author: Marek Habersack <[email protected]>
Date:   Wed May 12 23:27:21 2010 +0200

    2010-05-12  Marek Habersack  <[email protected]>

    	* HttpApplicationFactory.cs: when initializing new application
    	type, make sure to call pre-application start methods.

    2010-05-12  Marek Habersack  <[email protected]>

    	* BuildManager.cs: implemented a 4.0 feature - pre-application
    	start methods.

svn path=/trunk/mcs/; revision=157266
2010-05-12 21:28:40 +00:00
Marek Safar 8d6fb44200 New tests.
svn path=/trunk/mcs/; revision=157263
2010-05-12 20:49:34 +00:00
Marek Safar bace3fc69c New test.
svn path=/trunk/mcs/; revision=157252
2010-05-12 16:39:02 +00:00
Marek Safar ea44896e79 2010-05-12 Marek Safar <[email protected]>
A fix for bug #604981
	* generic.cs, decl.cs, anonymous.cs: Reset more type arguments
	details for nested anonymous methods stories.


svn path=/trunk/mcs/; revision=157251
2010-05-12 16:38:27 +00:00
Atsushi Eno 5cb7940543 2010-05-12 Atsushi Enomoto <[email protected]>
* XmlNode.cs : use as-operator (isinst) to optimize certain use case.
	  Patch by Tom Hindle.


svn path=/trunk/mcs/; revision=157244
2010-05-12 15:04:05 +00:00
Atsushi Eno 270d685791 2010-05-12 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : implement On[Begin|End][Close|Open] methods.


svn path=/trunk/mcs/; revision=157243
2010-05-12 15:01:17 +00:00
Marek Safar 173888432a show full stacktrace on debug
svn path=/trunk/mcs/; revision=157242
2010-05-12 14:59:55 +00:00
Atsushi Eno 03a3de5851 check in the stubs that was written while waiting for several windows builds.
svn path=/trunk/mcs/; revision=157236
2010-05-12 14:46:28 +00:00
Marek Habersack f229812788 2010-05-12 Marek Habersack <[email protected]>
* HttpServerUtility.cs: Execute checks whether
	IAsyncResult.AsyncWaitHandle is not null before attempting to use
	it. Fixes bug #604502

svn path=/trunk/mcs/; revision=157221
2010-05-12 11:10:03 +00:00
Carlos Alberto Cortez b6e32f4814 2010-05-12 Carlos Alberto Cortez <[email protected]>
* ScrollabeControlTest.cs: New test to show that DockPadding is lazyly
	created.


svn path=/trunk/mcs/; revision=157220
2010-05-12 11:02:58 +00:00
Zoltan Varga 36ba81c227 2010-05-12 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_sigctx_to_monoctx): Simplify this now that
	UCONTEXT_REG_ constants are available on linux as well.
	(mono_arch_monoctx_to_sigctx): Ditto.
	(mono_arch_ip_from_context): Ditto.

svn path=/trunk/mono/; revision=157196
2010-05-12 03:07:43 +00:00
Zoltan Varga 9d9c77c8e3 2010-05-12 Zoltan Varga <[email protected]>
* mono-sigcontext.h: Define UCONTEXT_REG_ constants for amd64 even if the gregs
	array is available.

svn path=/trunk/mono/; revision=157195
2010-05-12 03:07:36 +00:00
Zoltan Varga 72549497d2 Fix a warning.
svn path=/trunk/mono/; revision=157191
2010-05-12 02:47:49 +00:00
Zoltan Varga 3016f35b0b 2010-05-12 Zoltan Varga <[email protected]>
* dtest.cs dtest-app.cs: Add a test for pending breakpoints in domains.

svn path=/trunk/mono/; revision=157190
2010-05-12 02:45:35 +00:00
Zoltan Varga 0259fcf465 2010-05-12 Zoltan Varga <[email protected]>
* debugger-agent.c (set_breakpoint): Fix setting of pending breakpoints in
	other domains.

svn path=/trunk/mono/; revision=157189
2010-05-12 02:45:17 +00:00
Marek Habersack 7083f512a0 2010-05-12 Marek Habersack <[email protected]>
* ValidationException.cs: partially implemented

    	* ValidationAttribute.cs: implemented

    	* RequiredAttribute.cs: implemented. Fixes bug #604100

    	* AssociationAttribute.cs, ConcurrencyCheckAttribute.cs,
    	CustomValidationAttribute.cs, EditableAttribute.cs,
    	EnumDataTypeAttribute.cs, IValidatableObject.cs,
    	ValidationContext.cs, ValidationResult.cs: added

svn path=/trunk/mcs/; revision=157187
2010-05-12 02:42:39 +00:00
Andrew Jorgensen 5621214bf0 set MONO_PATH to ensure that mscorlib.dll can be found
svn path=/trunk/mono/; revision=157176
2010-05-11 22:10:43 +00:00
Rodrigo Kumpera e3f40af339 2010-05-11 Rodrigo Kumpera <[email protected]>
* ConditionalWeakTableTest.cs: New test suite.

svn path=/trunk/mcs/; revision=157175
2010-05-11 21:54:59 +00:00
Rodrigo Kumpera 3a6d84a1a4 2010-05-11 Rodrigo Kumpera <[email protected]>
* ConditionalWeakTable.cs: Implement simple open addressing
	hash table with linear probing. We use a prime sized table
	for an easy hashing and a target load capacity of 70%.

	On a synthetic benchmark, a load factor of 70% did not cause
	significant performance degradation over 60% as would be
	expected.

svn path=/trunk/mcs/; revision=157174
2010-05-11 21:54:51 +00:00
Rodrigo Kumpera 11bd41f1e3 2010-05-11 Rodrigo Kumpera <[email protected]>
* GC.cs: Add EPHEMERON_TOMBSTONE reandonly variable.

svn path=/trunk/mcs/; revision=157173
2010-05-11 21:54:42 +00:00
Marek Safar 4e04ab3df5 New test.
svn path=/trunk/mcs/; revision=157171
2010-05-11 21:25:06 +00:00
Marek Safar 39af1f7803 2010-05-11 Marek Safar <[email protected]>
A fix for bug #604735
	* namespace.cs: Don't report namespace collision.


svn path=/trunk/mcs/; revision=157170
2010-05-11 21:24:50 +00:00
Marek Safar 8bbe4a78e5 New test.
svn path=/trunk/mcs/; revision=157169
2010-05-11 21:00:35 +00:00
Marek Safar 2d289eb797 2010-05-11 Marek Safar <[email protected]>
A fix for bug #604748
	* class.cs, typespec.cs: Search full imported attribute hierarchy
	for AttributeUsage.


svn path=/trunk/mcs/; revision=157168
2010-05-11 21:00:06 +00:00
Jonathan Pobst ae0d6194f3 Fix msvc build.
svn path=/trunk/mono/; revision=157167
2010-05-11 20:56:43 +00:00
Marek Safar cd90bd7a9b New test.
svn path=/trunk/mcs/; revision=157157
2010-05-11 20:08:21 +00:00
Marek Safar 7eb31f04dd 2010-05-11 Marek Safar <[email protected]>
* namespace.cs: Ignore missing dependencies failure at
	initialization.


svn path=/trunk/mcs/; revision=157156
2010-05-11 20:06:58 +00:00
Rodrigo Kumpera 4b92b3fed1 2010-05-11 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (clear_unreachable_ephemerons): Clear
	unreachable keys with a tombstone.

	* sgen-gc.c (mark_ephemerons_in_range): Ignore
	tombstone keys.

svn path=/trunk/mono/; revision=157154
2010-05-11 19:31:02 +00:00
Rodrigo Kumpera 53fa75230d 2010-05-11 Rodrigo Kumpera <[email protected]>
* icall-def.h:
	* gc-internals.h:
	* gc.c: New GC:get_ephemeron_tombstone.

svn path=/trunk/mono/; revision=157153
2010-05-11 19:30:54 +00:00
Rodrigo Kumpera 68e085e13b 2010-05-11 Rodrigo Kumpera <[email protected]>
* appdomain.c (create_exceptions): Rename to
	create_domain_objects. Create the ephemeron tombstone object.

	* domains-internals.h (MonoDomain): Add new field for the
	ephemeron tombstone.

	* domain.c (mono_domain_free): Set ephemeron_tombstone to
	NULL.

svn path=/trunk/mono/; revision=157152
2010-05-11 19:30:44 +00:00
Andrew Jorgensen 27f4d61514 * scripts/mono-find-*.in: Look for libmono-2.0.so.1, not libmono.so
svn path=/trunk/mono/; revision=157150
2010-05-11 19:28:57 +00:00
Martin Baulig e6389e0e87 Fix #604879: Find source file when line-number table ends with hidden line.
2010-05-11  Martin Baulig  <[email protected]>

	* debug-mono-symfile.c
	(mono_debug_symfile_get_line_numbers): Fallback to the first
	non-hidden source file in the method if the line number table ends
	with a hidden line.

	Fixes #604879.

svn path=/trunk/mono/; revision=157148
2010-05-11 19:02:31 +00:00
Miguel de Icaza fca5dd1e66 Big documentation update
svn path=/trunk/mono/; revision=157146
2010-05-11 18:51:27 +00:00
Miguel de Icaza f4d6d3f79c Big documentation update
svn path=/trunk/mono/; revision=157145
2010-05-11 18:50:51 +00:00
Miguel de Icaza 8bd20198ba Remove methods that are private from the documentation
svn path=/trunk/mono/; revision=157144
2010-05-11 18:24:32 +00:00
Miguel de Icaza d7e510f335 2010-05-11 Miguel de Icaza <[email protected]>
* src/gunicode.c: Pull the Windows.h header when G_OS_WIN32 is
	defined. 

svn path=/trunk/mono/; revision=157138
2010-05-11 17:05:12 +00:00
Miguel de Icaza efda01ca99 Add vasprintf to the Cygwin build
svn path=/trunk/mono/; revision=157137
2010-05-11 17:01:35 +00:00
Miguel de Icaza 9943b88801 Update documentation to latest changes, need to document a lot of missing stuff
svn path=/trunk/mono/; revision=157134
2010-05-11 15:45:42 +00:00
Miguel de Icaza 66ba2c2e37 2010-05-11 Miguel de Icaza <[email protected]>
* console-unix.c: Signal handlers now save and restore errno.   We
	have never had a bug report about this, ioctl does change errno. 

	Hide the unused method.   

	Remove internal declarations from public headers.

	Document what the signal handler is doing

svn path=/trunk/mono/; revision=157132
2010-05-11 14:49:26 +00:00
Miguel de Icaza 125b04f37f 2010-05-11 Zoltan Varga <[email protected]>
* class.c (mono_class_alloc): New helper function to centralize memory allocation
	for classes, allocates either from the image mempool or from the heap.

	* class.c: Use mono_class_alloc to allocate memory owned by classes.

	* metadata.c (free_generic_class_dependents): Free more items belonging to
	generic classes.

svn path=/trunk/mono/; revision=157130
2010-05-11 14:48:56 +00:00
Rodrigo Kumpera 0811a3fe5f 2010-05-11 Rodrigo Kumpera <[email protected]>
* sgen-gc.c (mono_gc_clear_domain): Both ephemerons
	and dislinks must be processed before LOS since they
	could end up with pointers to memory returned to the
	OS.

svn path=/trunk/mono/; revision=157129
2010-05-11 14:26:38 +00:00
Carlos Alberto Cortez 9270125800 2010-05-11 Carlos Alberto Cortez <[email protected]>
* ScrollableControl.cs: It seems .Net is creating DockPadding lazyly,
	which means that *any* padding for children controls is not applied
	*until* DockPadding is accesed using its getter.
	* FlowLayoutPanel.cs:
	* TableLayoutPanel.cs:
	* Form.cs: These children classes need to have the DockPadding
	property available *always*, so create it for them in their respective
	constructors.
	Fixes #599506.


svn path=/trunk/mcs/; revision=157115
2010-05-11 11:59:08 +00:00
Marek Safar 6afe08f6c7 New test.
svn path=/trunk/mcs/; revision=157108
2010-05-11 10:29:51 +00:00
Marek Safar 6267231f58 2010-05-11 Marek Safar <[email protected]>
A fix for bug #604640
	* namespace.cs: Don't resolve using constraints too early.


svn path=/trunk/mcs/; revision=157107
2010-05-11 10:29:32 +00:00
Marek Safar 4af14a8897 new test
svn path=/trunk/mcs/; revision=157102
2010-05-11 09:07:48 +00:00
Marek Safar fa79393dbf 2010-05-11 Marek Safar <[email protected]>
A fix for bug #604239
	* generic.cs: Copy partial type constraints to partial container.


svn path=/trunk/mcs/; revision=157101
2010-05-11 09:03:14 +00:00
Atsushi Eno 664f611afc 2010-05-11 Atsushi Enomoto <[email protected]>
* Makefile.am : do not try to build test on windows (fails).
	* src/glib.h : fix mingw build breakage; do not include unistd.h.


svn path=/trunk/mono/; revision=157089
2010-05-11 06:06:12 +00:00
Zoltan Varga f4a36fda9a 2010-05-11 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_plt): Don't align the plt to a pagesize on x86, it is
	no longer needed.

svn path=/trunk/mono/; revision=157081
2010-05-11 00:27:38 +00:00
Zoltan Varga b7eab9e23d 2010-05-11 Zoltan Varga <[email protected]>
* class.c (mono_class_alloc): New helper function to centralize memory allocation
	for classes, allocates either from the image mempool or from the heap.

	* class.c: Use mono_class_alloc to allocate memory owned by classes.

	* metadata.c (free_generic_class_dependents): Free more items belonging to
	generic classes.

svn path=/trunk/mono/; revision=157074
2010-05-10 22:07:12 +00:00
Jonathan Pobst da36bfe97f Fix some warnings and typos to fix the windows build.
svn path=/trunk/mono/; revision=157068
2010-05-10 20:27:24 +00:00
Sebastien Pouliot 4b5836c6c5 In System.Security.Cryptography:
Allow parts required to enable SSL to be built with
In .:
2010-05-10  Sebastien Pouliot  <[email protected]>

	* moonlight_bootstrap_System.dll.sources: Minimal build for 
	bootstrap. Does not depend on corlib's internals
	* moonlight_raw_System.dll.sources: Full raw (pre-tuned) build 
	for Moonlight - includes SSL code
	* moonlight_shared_System.dll.sources: New. Parts that are both
	needed for bootstrap and raw builds


svn path=/trunk/mcs/; revision=157066
2010-05-10 20:16:59 +00:00
Sebastien Pouliot a392bb4d27 2010-05-10 Sebastien Pouliot <[email protected]>
* SslStream.cs: Allow Moonlight to build the non-server part
	of SslStream
	* RemoteCertificateValidationCallback.cs: Adjust visibility for
	Moonlight build


svn path=/trunk/mcs/; revision=157065
2010-05-10 20:16:50 +00:00
Sebastien Pouliot 58cd6807f2 2010-05-10 Sebastien Pouliot <[email protected]>
* PublicKey.cs
	* X500DistinguishedName.cs:
	* X509BasicConstraintsExtension.cs:
	* X509Certificate2Collection.cs:
	* X509Certificate2.cs:
	* X509Certificate2Enumerator.cs:
	* X509Chain.cs:
	* X509ChainElementCollection.cs:
	* X509ChainElement.cs:
	* X509ChainElementEnumerator.cs:
	* X509ChainPolicy.cs:
	* X509ChainStatus.cs:
	* X509EnhancedKeyUsageExtension.cs:
	* X509ExtensionCollection.cs:
	* X509Extension.cs:
	* X509ExtensionEnumerator.cs:
	* X509KeyUsageExtension.cs:
	* X509KeyUsageFlags.cs:
	* X509NameType.cs:
	* X509Store.cs:
	* X509SubjectKeyIdentifierExtension.cs:
		Allow parts required to enable SSL to be built with
		the moonlight profile.
	* X509_2_1_bootstrap.cs: New. Ease bootstrapping 2.1


svn path=/trunk/mcs/; revision=157064
2010-05-10 20:16:38 +00:00
Sebastien Pouliot 4bf912a74b 2010-05-10 Sebastien Pouliot <[email protected]>
* AsnEncodedData.cs:
	* OidCollection.cs:
	* Oid.cs:
	* OidEnumerator.cs:
		Allow parts required to enable SSL to be builtt with
		the moonlight profile.


svn path=/trunk/mcs/; revision=157063
2010-05-10 20:10:33 +00:00
Sebastien Pouliot 7637f57c1e 2010-05-10 Sebastien Pouliot <[email protected]>
* TlsClientCertificateVerify.cs: Let it compile for Moonlight -
	where the file is compiled inside System.dll


svn path=/trunk/mcs/; revision=157061
2010-05-10 20:03:12 +00:00
Sebastien Pouliot 8e51fd83ae 2010-05-10 Sebastien Pouliot <[email protected]>
* CipherSuite.cs:
	* DebugHelper.cs:
	* RecordProtocol.cs:
	* SslClientStream.cs:
		Let them compile for Moonlight (where the files are 
		compiled inside System.dll)


svn path=/trunk/mcs/; revision=157060
2010-05-10 20:01:51 +00:00
Sebastien Pouliot b7d87ad975 2010-05-10 Sebastien Pouliot <[email protected]>
* ExtendedKeyUsageExtension.cs:
	* NetscapeCertTypeExtension.cs:
	* SubjectAltNameExtension.cs:
		Keep them public for Moonlight. Other types in other
		assemblies needs it and the linker will eventually 
		internalize everything.


svn path=/trunk/mcs/; revision=157059
2010-05-10 19:59:30 +00:00
Sebastien Pouliot 562bbb9a9d 2010-05-10 Sebastien Pouliot <[email protected]>
* ChallengeResponse.cs: Let it compile for Moonlight (where the 
	file is compiled inside System.dll)


svn path=/trunk/mcs/; revision=157058
2010-05-10 19:58:03 +00:00
Sebastien Pouliot dd825432ce 2010-05-10 Sebastien Pouliot <[email protected]>
* X509CertificateCollection.cs:
	* X509Certificate.cs:
	* X509Extension.cs:
	* X509Extensions.cs:
		Keep them public for Moonlight. Other types in other
		assemblies needs it and the linker will eventually 
		internalize everything.


svn path=/trunk/mcs/; revision=157057
2010-05-10 19:54:05 +00:00
Sebastien Pouliot c04d5f519a 2010-05-10 Sebastien Pouliot <[email protected]>
* ASN1.cs: Keep it public for Moonlight. Other types in other 
	assemblies needs it and the linker will eventually internalize
	everything.


svn path=/trunk/mcs/; revision=157056
2010-05-10 19:52:30 +00:00
Sebastien Pouliot a4bdc71082 2010-05-10 Sebastien Pouliot <[email protected]>
* DES.cs:
	* DESCryptoServiceProvider.cs:
	* RC2.cs:
	* RC2CryptoServiceProvider.cs:
	* TripleDES.cs:
	* TripleDESCryptoServiceProvider.cs:
		Remove !MOONLIGHT check since we need those for SSL


svn path=/trunk/mcs/; revision=157053
2010-05-10 19:50:31 +00:00
Miguel de Icaza efa7fb1fe6 2010-05-10 Miguel de Icaza <[email protected]>
* gfile-win32.c: Port this to use the Win32 APIs to get this
	building with Cygwin.

svn path=/trunk/mono/; revision=157044
2010-05-10 18:24:38 +00:00
Marek Safar 90d8423d64 New tests.
svn path=/trunk/mcs/; revision=157009
2010-05-10 11:26:27 +00:00
Marek Safar 546f5a56d0 2010-05-10 Marek Safar <[email protected]>
A fix for bug #557210
	* import.cs: Relax underlying enum field rules.


svn path=/trunk/mcs/; revision=157008
2010-05-10 11:15:45 +00:00
Marek Safar 0f3217129b 2010-05-10 Marek Safar <[email protected]>
A fix for bug #603476
	* property.cs: Implement IParametersMember for indexer accessors.


svn path=/trunk/mcs/; revision=157007
2010-05-10 11:13:59 +00:00
Marek Safar fbe50ce101 Print more error details
svn path=/trunk/mcs/; revision=157005
2010-05-10 11:12:12 +00:00
Marek Safar 85afeeb736 Hide exception behind error message
svn path=/trunk/mcs/; revision=156999
2010-05-10 10:11:08 +00:00
Carlos Alberto Cortez f571f51216 2010-05-09 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Properly adjust SmallChange and LargeChange values for
	our scrollbars depending on the view. Also, update the maximum allowed
	value when setting the values from SetScrollValue to use the already
	available information contained within them.
	Fixes the remaining bits of #543785.


svn path=/trunk/mcs/; revision=156985
2010-05-10 05:06:12 +00:00
Zoltan Varga 08d440cec2 2010-05-10 Zoltan Varga <[email protected]>
* debugger-agent.c (insert_breakpoint): Print a more descriptive error message
	if a breakpoint cannot be inserted.

svn path=/trunk/mono/; revision=156983
2010-05-10 02:31:53 +00:00
Zoltan Varga dcc01356ae 2010-05-10 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_method_get_handle): Handle MonoGenericMethod
	as well. Fixes #604054.

svn path=/trunk/mono/; revision=156981
2010-05-10 01:45:59 +00:00
Daniel Nauck d790afca2d 2010-05-08 Daniel Nauck <[email protected]>
* csharp.sln: enable build for jay project in Debug|Win32 configuration.


svn path=/trunk/mcs/; revision=156969
2010-05-08 20:44:52 +00:00
Daniel Nauck 20ec8ff4d5 2010-05-08 Daniel Nauck <[email protected]>
* csharp.sln: add jay project as build dependency to Mono.CSharp project.


svn path=/trunk/mcs/; revision=156968
2010-05-08 19:12:35 +00:00
Daniel Nauck a464fcbfbd 2010-05-08 Daniel Nauck <[email protected]>
* Mono.CSharp.csproj: add double quotes around path directives
			in the prebuild event for jay to support
			compile locations with spaces in path.


svn path=/trunk/mcs/; revision=156967
2010-05-08 18:40:37 +00:00
Rodrigo Kumpera 8498767a5d 2010-05-07 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: MS doesn't mind duplicates in the
	typeref table. Move it to full verification.

	Fixes #600508.

svn path=/trunk/mono/; revision=156948
2010-05-07 23:24:16 +00:00
Rodrigo Kumpera 66d1e0081c 2010-05-07 Rodrigo Kumpera <[email protected]>
* image.c (do_mono_image_load): Report verification
	errors when loading an image fails.

svn path=/trunk/mono/; revision=156947
2010-05-07 23:24:08 +00:00
Rodrigo Kumpera 1518c2931c 2010-05-07 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_type_get_object): Remove chunk of code
	no longer in use.

svn path=/trunk/mono/; revision=156946
2010-05-07 23:24:00 +00:00
Marek Habersack 71f8b16af6 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs:
	Implemented 4.0 methods GetObjectFactory, GetCachedBuildDependencySet and properties
	BatchCompilationEnabled, TargetFramework

svn path=/trunk/mcs/; revision=156945
2010-05-07 23:04:51 +00:00
Marek Habersack fc9dca9970 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs:
	Implemented 4.0 method AddReferencedAssembly.

svn path=/trunk/mcs/; revision=156944
2010-05-07 23:04:40 +00:00
Marek Habersack c1f91c89ef This test is for 4.0+ only
svn path=/trunk/mcs/; revision=156943
2010-05-07 23:04:30 +00:00
Marek Habersack d6a7ab5426 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs:
	Implemented 4.0 method GetGlobalAsaxType.

svn path=/trunk/mcs/; revision=156942
2010-05-07 23:04:20 +00:00
Marek Habersack 2d0ca9037e 2010-05-07 Marek Habersack <[email protected]>
* BuildManager.cs: implemented 4.0 methods {Create,Read}CacheFile.
	Fixed signature of the GetVirtualPathDependencies method.

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

	* BuildManagerCacheFiles.cs: added - tests for
	BuildManager.{Create,Read}CacheFile

svn path=/trunk/mcs/; revision=156941
2010-05-07 23:04:10 +00:00
Marek Habersack e17ab471cf Updated tests to match recent 4.0 changes
svn path=/trunk/mcs/; revision=156940
2010-05-07 23:03:59 +00:00
Marek Habersack 3c7fd89d43 2010-05-06 Marek Habersack <[email protected]>
* PreApplicationStartMethodAttribute.cs: added. New 4.0 type.

svn path=/trunk/mcs/; revision=156939
2010-05-07 23:03:49 +00:00
Marek Habersack 10dd965c4c 2010-05-06 Marek Habersack <[email protected]>
* HttpUtility.cs: HtmlEncode, UrlEncode changes for 4.0
	Implemented JavaScriptStringEncode for 4.0

svn path=/trunk/mcs/; revision=156938
2010-05-07 23:03:38 +00:00
Marek Habersack 451f4a583f 2010-05-06 Marek Habersack <[email protected]>
* HttpServerUtility.cs: added TransferRequest methods.

svn path=/trunk/mcs/; revision=156937
2010-05-07 23:03:27 +00:00
Marek Habersack 771f42ecad 2010-05-06 Marek Habersack <[email protected]>
* HttpRuntime.cs: added AspClientScriptPhysicalPath,
	AspClientScriptVirtualPath, UsingIntegratedPipeline properties and
	the GetNamedPermissionSet method.

svn path=/trunk/mcs/; revision=156936
2010-05-07 23:03:17 +00:00
Marek Habersack 3952a95f35 2010-05-06 Marek Habersack <[email protected]>
* HttpResponseWrapper.cs: implemented RedirectPermantent,
	RemoveOutputCacheItem methods.
	Implemented the 3 argument TransmitFile method.

	* HttpResponseBase.cs: implemented RedirectPermanet,
	RedirectToRoute, RedirectToRoutePermanent and
	RemoveOutputCacheItem 4.0 methods.

svn path=/trunk/mcs/; revision=156935
2010-05-07 23:03:06 +00:00
Marek Habersack 4e163fb906 2010-05-06 Marek Habersack <[email protected]>
* HttpResponse.cs:
	Output property no longer lazily creates a writer object - it's
	created in the internal constructors. If a user sets it to null,
	it remains null for good or bad.
	Added Output setter for 4.0+

svn path=/trunk/mcs/; revision=156934
2010-05-07 23:02:56 +00:00
Marek Habersack 7d005d6a34 2010-05-06 Marek Habersack <[email protected]>
* HttpResponse.cs: implemented the following 4.0 methods:
	RedirectPermanent, RedirectToRoute, RedirectToRoutePermanent and
	RemoveOutputCacheItem.

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

	* RouteCollection.cs: GetVirtualPath throws ArgumentException
	when named route is not found in the collection.

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

	* OutputCacheModule.cs: added a 2.0 internal property to return
	the internal provider used in this profile.

	* OutputCache.cs: added internal RemoveFromProvider method to
	remove items from the indicated provider.

svn path=/trunk/mcs/; revision=156933
2010-05-07 23:02:46 +00:00
Marek Habersack b9749e762a 2010-05-05 Marek Habersack <[email protected]>
* HttpRequestWrapper.cs: added 4.0 properties
	HttpChannelBinding and RequestContext

svn path=/trunk/mcs/; revision=156932
2010-05-07 23:02:35 +00:00
Marek Habersack f52b1cd5ee 2010-05-05 Marek Habersack <[email protected]>
* HttpRequestBase.cs: added 4.0 properties HttpChannelBinding and
	RequestContext

svn path=/trunk/mcs/; revision=156931
2010-05-07 23:02:25 +00:00
Marek Habersack 166c2eda7c 2010-05-05 Marek Habersack <[email protected]>
* HttpRequestBase.cs: added 4.0 property HttpChannelBinding

svn path=/trunk/mcs/; revision=156930
2010-05-07 23:02:15 +00:00
Marek Habersack c1b39535fe 2010-05-05 Marek Habersack <[email protected]>
* HttpRequest.cs: implemented new 4.0 property - RequestContext

svn path=/trunk/mcs/; revision=156929
2010-05-07 23:02:05 +00:00
Marek Habersack 5aa256010e 2010-05-08 Marek Habersack <[email protected]>
* Path.cs: vararg overload of Combine now correctly concatenates
	segments.
	The 3 and 4 argument overloads of Combine check whether the passed
	segments are null or not.

2010-05-08  Marek Habersack  <[email protected]>

	* PathTest.cs: added tests for the 4.0 Combine overloads.

svn path=/trunk/mcs/; revision=156928
2010-05-07 23:00:28 +00:00
Zoltan Varga 5c363bbaaf 2010-05-08 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_and_reloc_code): Fix a warning.

svn path=/trunk/mono/; revision=156927
2010-05-07 22:53:28 +00:00
Rodrigo Kumpera 079db73534 2010-05-07 Rodrigo Kumpera <[email protected]>
* icall-def.h
	* icall.c: Delete some unused icalls.

svn path=/trunk/mono/; revision=156926
2010-05-07 22:41:43 +00:00
Rodrigo Kumpera 5cdc3ec6cf 2010-05-07 Rodrigo Kumpera <[email protected]>
* appdomain.c (mono_domain_has_type_resolve): Check for
	NULL domain objects to make pedump happy.

	* object.c (mono_field_get_value): Assert on NULL object.
	It's the caller resposibility to check for this.

	* object.c (mono_field_get_value_object): Ditto.

	Fixes #601384.

svn path=/trunk/mono/; revision=156924
2010-05-07 22:20:13 +00:00
Andrew Jorgensen c25be8b8e1 fix remaining rpm errors and remove glib2-devel dep (we use eglib now)
svn path=/trunk/mono/; revision=156923
2010-05-07 20:56:12 +00:00
Rodrigo Kumpera ba7c9c0c78 2010-05-07 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_type_is_subtype_of): Non iface subtype
	checks can avoid doing a mono_class_init.

	* icall.c: Remove mono_class_init from a bunch of icalls that
	don't need it.

	Hopefully we're now lazy enough to fix most victims of #601431.

svn path=/trunk/mono/; revision=156922
2010-05-07 20:40:42 +00:00
Zoltan Varga 9c0753bf96 2010-05-07 Zoltan Varga <[email protected]>
* mono-2.pc (Requires): Remove glib dependencies.

svn path=/trunk/mono/; revision=156921
2010-05-07 20:36:09 +00:00
Andrew Jorgensen 1d5c86adff Fix some compiler warning that SUSE takes seriously.
svn path=/trunk/mono/; revision=156920
2010-05-07 20:32:57 +00:00
Zoltan Varga 29412b5c38 2010-05-07 Zoltan Varga <[email protected]>
* VirtualMachine.cs (ErrorHandler): Convert ABSENT_INFORMATION to
	AbsentInformationException.

	* AbsentInformationException.cs: New file.

svn path=/trunk/mcs/; revision=156916
2010-05-07 20:06:16 +00:00
Zoltan Varga 99a3061140 2010-05-07 Zoltan Varga <[email protected]>
* debugger-agent.c (frame_commands): Return an error instead of asserting if
	no JIT info is found for the method.

svn path=/trunk/mono/; revision=156914
2010-05-07 20:04:55 +00:00
Mark Probst e4c8e5db2a 2010-05-07 Mark Probst <[email protected]>
* sgen-gc.c: Remove REMSET_ROOT_LOCATION.

svn path=/trunk/mono/; revision=156912
2010-05-07 19:51:04 +00:00
Mark Probst 4779f77d6f 2010-05-07 Mark Probst <[email protected]>
* sgen-gc.c: Remove unnecessary checks in domain clearing code.

svn path=/trunk/mono/; revision=156911
2010-05-07 19:49:44 +00:00
Marek Habersack 7a82f197cc 2010-05-07 Marek Habersack <[email protected]>
* culture-info-tables.h: updated to include en-TT culture. Fixes
	bug #594035

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

	* Makefile.am (lang-data, locale-data): updated URLs for the icu
	tarballs - they now live on go-mono.com

svn path=/trunk/mono/; revision=156903
2010-05-07 16:11:18 +00:00
Alan McGovern e32781d2a7 2010-05-07 Alan McGovern <[email protected]>
* Mono.Math/BigInteger.cs: If the BigInteger is instantiated with a
        zero length array, replace it with an array of length 1 so we don't
        hit inexplicable IndexOutOfRange exceptions later on. Fixes #556533. 


svn path=/trunk/mcs/; revision=156878
2010-05-07 09:31:56 +00:00
Ankit Jain ba5f739f5c Fix bug #599454.
* xbuild/*/Microsoft.Common.targets (PrepareForBuild): Create the
dir for the documentation file.

svn path=/trunk/mcs/; revision=156875
2010-05-07 07:40:53 +00:00
Rodrigo Kumpera 3e984fa2fc 2010-05-06 Rodrigo Kumpera <[email protected]>
Move mono_class_init from mono_type_get_object to icalls.
	This causes massive memory savings for Assembly::GetTypes () and
	make it fail a lot less due to missing dependencies.

	This is a conservative, naive change as it doesn't remove some
	mono_class_init from places that might not need them. Carefull
	review of those should follow.

	* reflection.c (mono_type_get_object): Don't mono_class_init the
	returning type.

	* reflection.c:
	* cominterop.c:
	* icall.c:
	* marshal.c: Call mono_class_init in functions receiving a MonoType
	object.

	First step into fixing #601431.

svn path=/trunk/mono/; revision=156867
2010-05-07 01:00:15 +00:00
Marek Safar ddff526038 New test.
svn path=/trunk/mcs/; revision=156866
2010-05-07 00:20:25 +00:00
Marek Safar 76b0d29c7b 2010-05-07 Marek Safar <[email protected]>
A fix for bug #601141
	* class.cs: Update all partial modifiers.


svn path=/trunk/mcs/; revision=156865
2010-05-07 00:19:24 +00:00
Geoff Norton 89cc5ec340 2010-04-06 Geoff Norton <[email protected]>
* OSX509Certificates.cs: Fix a crash when doing multiple certificate calls
	Fix a rare but possible leak.

svn path=/trunk/mcs/; revision=156864
2010-05-06 23:57:43 +00:00
Rodrigo Kumpera be346a8bf5 2010-05-06 Rodrigo Kumpera <[email protected]>
* ConditionalWeakTable.cs: Discard old broken version. New
	version user proper runtime support. Currently it performs
	linear search over the keys, which is dog slow but it's a
	good start.

svn path=/trunk/mcs/; revision=156851
2010-05-06 20:37:56 +00:00
Rodrigo Kumpera fba620d3ac 2010-05-06 Rodrigo Kumpera <[email protected]>
* GC.cs: Add new register_ephemeron_array icall.

svn path=/trunk/mcs/; revision=156850
2010-05-06 20:37:47 +00:00
Rodrigo Kumpera d899a91f85 2010-05-06 Rodrigo Kumpera <[email protected]>
* gc-internal.h: Add new functions required for ephemeron support.

	* gc.c: Implement ves_icall_System_GC_register_ephemeron_array.

	* icall-def.h: Add GC::register_ephemeron_array.

	* object.c (compute_class_bitmap): sys.rt.cs.Ephemeronis an opaque type
	under sgen. Its fields must not be marked.

	* sgen-gc.c (mono_gc_clear_domain): Call cleanup function for ephemerons.

	* sgen-gc.c (finish_gray_stack): Mark all reachable ephemerons before
	handling finalizable objects. Clean dead ones after all finalizable
	handling.

	* sgen-gc.c (dump_heap): Add new kind of internal memory.

	* sgen-gc.c (null_ephemerons_for_domain): Remove from the list ephemeron
	arrays from the dead domain.

	* sgen-gc.c (clear_unreachable_ephemerons): Clear dead ephemerons entries.

	* sgen-gc.c (mark_ephemerons_in_range): Mark/Copy all ephemeron values
	whose keys are reachable.

	* sgen-gc.c (mono_gc_ephemeron_array_add): Register the array into the
	list of live ephemeron arrays.

svn path=/trunk/mono/; revision=156847
2010-05-06 20:16:36 +00:00
Andrew Jorgensen 37e3554032 first stage in spec file overhaul: make it at least work and fix the libmono devel thing
svn path=/trunk/mono/; revision=156846
2010-05-06 20:07:51 +00:00
Marek Safar 06011c9f62 New test.
svn path=/trunk/mcs/; revision=156841
2010-05-06 19:07:23 +00:00
Marek Safar de3535846e 2010-05-06 Marek Safar <[email protected]>
A fix for bug #601708
	* method.cs, membercache.cs: Destructors cannot be hidden.


svn path=/trunk/mcs/; revision=156840
2010-05-06 19:06:33 +00:00
Marek Safar 6838b59480 New test.
svn path=/trunk/mcs/; revision=156834
2010-05-06 17:59:46 +00:00
Marek Safar bff544dbe5 2010-05-06 Marek Safar <[email protected]>
A fix for bug #602551
	* class.cs: Resursive reference of type definition is allowed.


svn path=/trunk/mcs/; revision=156832
2010-05-06 17:55:39 +00:00
Marek Safar 97b1ad63be New test.
svn path=/trunk/mcs/; revision=156830
2010-05-06 17:28:23 +00:00
Marek Safar 54ee07f857 2010-05-06 Marek Safar <[email protected]>
* anonymous.cs: Mutate cached storey instance types too.


svn path=/trunk/mcs/; revision=156829
2010-05-06 17:27:53 +00:00
Alan McGovern 53bedafb4b 2010-05-06 Alan McGovern <[email protected]>
* src/gmarkup.c: Fix a parser issue when skipping the xml declaration.


svn path=/trunk/mono/; revision=156824
2010-05-06 17:23:01 +00:00
Marek Safar 20734f996b This is correct version.
svn path=/trunk/mcs/; revision=156823
2010-05-06 17:22:48 +00:00
Jonathan Chambers 8f2c6fd754 2010-05-06 Jonathan Chambers <[email protected]>
* gfile-win32.c: Use __stat64 instead of _stat64.


svn path=/trunk/mono/; revision=156817
2010-05-06 16:09:42 +00:00
Marek Safar c3dbb8d040 New test.
svn path=/trunk/mcs/; revision=156816
2010-05-06 16:03:59 +00:00
Marek Safar 362e375393 2010-05-06 Marek Safar <[email protected]>
A fix for bug #602443
	* convert.cs: Explicit enum conversion cannot involve user operators


svn path=/trunk/mcs/; revision=156815
2010-05-06 15:59:19 +00:00
Carlos Alberto Cortez ccb1d61c73 2010-05-06 Carlos Alberto Cortez <[email protected]>
* ListView.cs: When calculating the scrollbars, take into account the
	height of the horizontal scrollbar (if visible) to assign the maximum
	value for our vertical one.
	Fixes #543785.


svn path=/trunk/mcs/; revision=156789
2010-05-06 11:04:43 +00:00
Carlos Alberto Cortez 6b8bc3c3b6 * TreeNodeCollection.cs: Do some clean up by renaming some of our
local vars in Add and AddSorted, so we have better readibility.
	Patch from Thomas Goldstein ([email protected]).

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


svn path=/trunk/mcs/; revision=156785
2010-05-06 08:55:57 +00:00
Carlos Alberto Cortez b97781eff6 2010-05-06 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollectionTest.cs: New test for the return value of Add with
	sorting applied.
	Patch from Thomas Goldstein ([email protected]).


svn path=/trunk/mcs/; revision=156784
2010-05-06 08:27:04 +00:00
Carlos Alberto Cortez 324d1f6461 * TreeNodeCollection.cs: When adding a sorted node return the correct
position of that node instead of returning the count.
	Patch from Thomas Goldstein ([email protected]).

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


svn path=/trunk/mcs/; revision=156783
2010-05-06 08:21:23 +00:00
Carlos Alberto Cortez eeee31c394 2010-05-06 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollection.cs: In SetupNode remove the redundant check,
	since we only need to have a valid tree view to call UpdateBelow.
	Patch from Thomas Goldstein ([email protected]).


svn path=/trunk/mcs/; revision=156778
2010-05-06 08:02:30 +00:00
Marek Safar 547735d77b Updated.
svn path=/trunk/mcs/; revision=156777
2010-05-06 07:50:24 +00:00
Marek Safar f448841be1 Use existing error reporting.
svn path=/trunk/mcs/; revision=156776
2010-05-06 07:50:03 +00:00
Rodrigo Kumpera ec54e97cb8 2010-05-05 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_layout_fields): Don't perform alignment
	if align is zero.

	* class.c (mono_class_layout_fields): Init field related
	* information
	to sane defaults.

svn path=/trunk/mono/; revision=156764
2010-05-06 00:30:07 +00:00
Miguel de Icaza f51cb398c5 2010-05-05 Miguel de Icaza <[email protected]>
* class.cs (TypeContainer.DefineBaseTypes)
	(TypeContainer.CheckRecursiveDefinition): check for the iface not
	being null, as we could have failed resolution and crashed;
	Fixes #442144


svn path=/trunk/mcs/; revision=156759
2010-05-05 22:44:15 +00:00
Miguel de Icaza cb373a006e 2010-05-05 Miguel de Icaza <[email protected]>
* cs-parser.jay: Productions to catch common mistakes when other
	punctuation operators are used instead of comma.   Fixes 571702	


svn path=/trunk/mcs/; revision=156757
2010-05-05 22:32:05 +00:00
Miguel de Icaza 4cb05137b6 Document --nollvm
svn path=/trunk/mono/; revision=156756
2010-05-05 22:19:04 +00:00
Jonathan Chambers 6831e71496 2010-05-05 Jonathan Chambers <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Protect against a NULL sigctx
        in debug printf.

2010-05-05 Jonathan Chambers <[email protected]>

        * mono-semaphore.c: Implement alertable wait on Windows similar to
        other platforms. Always be alertable, but only return from wait if
        user requested alertable state. Fixes soft debugger on Windows.
	
Code contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=156752
2010-05-05 20:52:59 +00:00
Marek Safar 7cfc179800 2010-05-05 Marek Safar <[email protected]>
* anonymous.cs: Mutate correct set of constraints.


svn path=/trunk/mcs/; revision=156750
2010-05-05 19:39:36 +00:00
Marek Safar b606681012 Add extra constraint
svn path=/trunk/mcs/; revision=156749
2010-05-05 19:38:39 +00:00
Marek Safar f3e4623ee9 New tests.
svn path=/trunk/mcs/; revision=156747
2010-05-05 19:09:12 +00:00
Marek Safar 759d6e5103 New test.
svn path=/trunk/mcs/; revision=156746
2010-05-05 19:05:55 +00:00
Marek Safar 868e383481 2010-05-05 Marek Safar <[email protected]>
A fix for bug #602842
	* expression.cs: Resolve all array bound arguments.


svn path=/trunk/mcs/; revision=156745
2010-05-05 19:03:55 +00:00
Rodrigo Kumpera 2f22b6e46b 2010-05-05 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Verify the constraint
	of generic type definitions.

svn path=/trunk/mono/; revision=156738
2010-05-05 18:34:05 +00:00
Chris Toshok 987ee7eec6 2010-05-05 Chris Toshok <[email protected]>
* NetworkInterface_2_1.cs: implement for moonlight.

	* NetworkChange_2_1.cs: implement for moonlight.

svn path=/trunk/mcs/; revision=156737
2010-05-05 17:47:27 +00:00
Miguel de Icaza 3a4d49a985 Also for OpenBSD
svn path=/trunk/mono/; revision=156729
2010-05-05 16:04:19 +00:00
Zoltan Varga bd4e2c5aa5 2010-05-05 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_get_trampolines): New arch specific function returning
	a list of arch specific trampolines.

	* aot-compiler.c (emit_trampolines): Use it.

svn path=/trunk/mono/; revision=156728
2010-05-05 14:43:59 +00:00
Zoltan Varga 10727c04b7 2010-05-05 Zoltan Varga <[email protected]>
* tramp-<ARCH>.c exceptions-<ARCH>.c mini-trampolines.c mini-exceptions.c
	aot-compiler.c: Use the _full trampoline creation functions on all platforms,
	get rid of the _full from their name.

svn path=/trunk/mono/; revision=156726
2010-05-05 14:19:13 +00:00
Zoltan Varga b5ca01762a 2010-05-05 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_generic_trampoline): Call
	get_nullified_class_init_trampoline to remove some code duplication.

svn path=/trunk/mono/; revision=156724
2010-05-05 14:04:05 +00:00
Jérémie Laval b6390b0e5d 2010-05-05 Jérémie Laval <[email protected]>
In class/System.Core/System.Linq/:
   * ParallelEnumerable.cs: Some operators weren't declared
   as extension methods. Fixed.

svn path=/trunk/mcs/; revision=156723
2010-05-05 13:36:38 +00:00
Marek Habersack 36571ed72b 2010-05-05 Marek Habersack <[email protected]>
* CollectionBuilder.cs: if a type has more than on indexer, check
	all of them for type compliance in GetChildControlType. Fixes bug
	#601290. Patch from Kalyanov Dmitry <[email protected]>,
	thanks!

svn path=/trunk/mcs/; revision=156714
2010-05-05 09:34:46 +00:00
Marek Safar dad1b22c5c New tests.
svn path=/trunk/mcs/; revision=156713
2010-05-05 09:25:55 +00:00
Marek Safar 802a9a6224 2010-05-05 Marek Safar <[email protected]>
* import.cs: Don't import private fields.


svn path=/trunk/mcs/; revision=156712
2010-05-05 09:24:01 +00:00
Gonzalo Paniagua Javier ab075382d5 2010-05-05 Gonzalo Paniagua Javier <[email protected]>
* Path.cs: prevent infinite loop when TMPDIR (or equivalent)
	points to a non-existent directory.


svn path=/trunk/mcs/; revision=156704
2010-05-05 04:08:49 +00:00
Miguel de Icaza e0268d3616 Add special case for FreeBSD, fixes 553640
svn path=/trunk/mono/; revision=156702
2010-05-05 03:25:47 +00:00
Geoff Norton 28ac3ec42f 2010-05-04 Geoff Norton <[email protected]>
* XplatUICarbon.cs: Patch from [email protected] to avoid
        blocking the message loop while processing events.

svn path=/trunk/mcs/; revision=156701
2010-05-05 03:22:53 +00:00
Miguel de Icaza a90edd6979 2010-05-04 Miguel de Icaza <[email protected]>
* Apply patch from Ted Unangst to fix bug 574049

svn path=/trunk/mcs/; revision=156700
2010-05-05 03:10:07 +00:00
Marek Habersack 2b423e8067 2010-05-05 Marek Habersack <[email protected]>
* AssemblyInfo.cs: 4.0 metadata updates

svn path=/trunk/mcs/; revision=156697
2010-05-05 01:04:49 +00:00
Marek Habersack 549b54027c 2010-05-05 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: PostMapRequestHandler is obsolete in 4.0

svn path=/trunk/mcs/; revision=156696
2010-05-05 01:04:39 +00:00
Marek Habersack cb4836ed8f 2010-05-05 Marek Habersack <[email protected]>
* RouteValueDictionary.cs: do not process type fields in
	RouteValueDictionary (object)

	* RouteCollection.cs: GetRouteData throws an exception if Request
	is null in the passed context.
	Added Ignore* and MapPageRoute* 4.0 APIs

	* RequestContext.cs: 4.0 API update

	* PatternParser.cs: match parser rewrite to encompass 4.0 bug
	fixes. We don't emulate some of the pre-4.0 routing bugs anymore.

svn path=/trunk/mcs/; revision=156695
2010-05-05 00:43:57 +00:00
Marek Habersack 208cdca481 2010-04-29 Marek Habersack <[email protected]>
* HttpRequest.cs:
	Added the CurrentExecutionFilePathExtension 4.0 property.

svn path=/trunk/mcs/; revision=156694
2010-05-05 00:43:46 +00:00
Marek Habersack bd37d2ac96 2010-04-29 Marek Habersack <[email protected]>
* System.Security.Authentication.ExtendedProtection/ChannelBinding.cs:
	added

2010-04-29  Marek Habersack  <[email protected]>

	* HttpRequest.cs:
	Added the HttpChannelBinding 4.0 property

svn path=/trunk/mcs/; revision=156693
2010-05-05 00:43:37 +00:00
Marek Habersack f11184d5a8 2010-04-29 Marek Habersack <[email protected]>
* HttpRequest.cs: added 4.0 InsertEntityBody overloads (not
	supported when running under Mono)

svn path=/trunk/mcs/; revision=156692
2010-05-05 00:43:24 +00:00
Carlos Alberto Cortez c9e1c92024 2010-05-03 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Just as we did with TreeView, start the drag
	computation in MouseDown instead of MouseMove, in order to avoid
	firing the ItemDrag event more than one time per clicked item.


svn path=/trunk/mcs/; revision=156691
2010-05-04 23:37:26 +00:00
Mark Probst e2ad7b3dce 2010-05-04 Mark Probst <[email protected]>
* sgen-marksweep.c: Simplify free list maintenance in sweep.

svn path=/trunk/mono/; revision=156679
2010-05-04 17:14:15 +00:00
Jonathan Chambers bd0d82edd8 2010-05-04 Jonathan Chambers <[email protected]>
* gspawn.c: Remove extern define for MSVC.


svn path=/trunk/mono/; revision=156671
2010-05-04 14:06:38 +00:00
Carlos Alberto Cortez 7680f2b16c * ComboBox.cs: our internal textbox should show selection only if it
is enabled. Don't set HideSelection since it's preventing us
	from correctly hide the selection when needed. Finally connect a
	handler in case our parent ComboBox gets its Enabled state changed.
	Fixes #600433.

2010-05-03  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=156650
2010-05-03 22:44:27 +00:00
Carlos Alberto Cortez fb5fbc327f * TreeView.cs: Set our internal fields related to the starting drag
position from MouseDown to MouseMove - we need to make sure
	that the OnItemDragged event is fired only *one* time per element
	clicked.
	Fixes #551734.

2010-05-03  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=156643
2010-05-03 18:34:53 +00:00
Zoltan Varga d7d67f9fbb Fix a warning.
svn path=/trunk/mono/; revision=156637
2010-05-03 16:34:29 +00:00
Zoltan Varga 1787868ec9 2010-05-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Fix full-aot support for thread
	attach.

svn path=/trunk/mono/; revision=156635
2010-05-03 16:31:39 +00:00
Carlos Alberto Cortez 0555e63e9b 2010-05-03 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollectionTest.cs: New tests for Insert and Indexer
	interacting with Sort.


svn path=/trunk/mcs/; revision=156603
2010-05-03 08:59:31 +00:00
Carlos Alberto Cortez ce34e1d463 2010-05-03 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollection.cs: Instead of Sorting from SetupNode, do it
	directly from Add (which uses AddSorted for this purpose) and Insert.
	This way we first avoid a double sort, take advantage of our fast
	version of Add for the default sorting, and also supress the call to Sort
	when using our indexer setter (.Net ignores the sorting in this case).


svn path=/trunk/mcs/; revision=156602
2010-05-03 08:57:37 +00:00
Carlos Alberto Cortez 1184864479 2010-05-02 Carlos Alberto Cortez <[email protected]>
*  TreeNodeCollectionTest.cs: Add a new test for Add interacting with
	nodes that are part of other collections.


svn path=/trunk/mcs/; revision=156596
2010-05-03 03:08:01 +00:00
Carlos Alberto Cortez 676f901685 * TreeNodeCollection.cs: When Adding a new node don't remove it from
any previous collection. Even if this seems a little buggy, this is
	what .Net does.
	Fixes #601766.

2010-05-02  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=156595
2010-05-03 03:06:44 +00:00
Zoltan Varga c4786f2a8a 2010-05-03 Zoltan Varga <[email protected]>
* src/glib.h: Include unistd.h on !windows for pid_t.

	* gspawn.c: Add an extern define for environ on !apple platforms.

svn path=/trunk/mono/; revision=156594
2010-05-02 23:24:22 +00:00
Carlos Alberto Cortez 1f046f714f 2010-05-02 Carlos Alberto Cortez <[email protected]>
* StatusStrip.cs: In SetDisplayedItems call ClearInternal on
	displayed_items instead of Clear, since this is only an internal
	collection and we don't want to have our items have their Parent/Owner
	modified.
	Fixes the remaining bits of #590100.


svn path=/trunk/mcs/; revision=156593
2010-05-02 19:51:55 +00:00
Mark Probst f87bb126f8 2010-05-02 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Unify
        major_do_collection() across the two major collectors.

svn path=/trunk/mono/; revision=156591
2010-05-02 15:50:41 +00:00
Ivan Zlatev 5ebb2720de 2010-05-02 Ivan Zlatev <[email protected]>
* DataGridViewCell.cs: Avoid a NRE in GetValue if the cell doesn't
	have a DataGridView associated yet.
	[Fixes bug #600786]

svn path=/trunk/mcs/; revision=156588
2010-05-02 15:11:54 +00:00
Zoltan Varga 0ad0855963 2010-05-02 Zoltan Varga <[email protected]>
* src/glib.h: Include sys/types.h for pid_t.

svn path=/trunk/mono/; revision=156585
2010-05-02 14:15:12 +00:00
Mark Probst 0b2fae635f 2010-05-02 Mark Probst <[email protected]>
* sgen-gc.c: Add heavy statistics counter for re-added global
        remsets.

svn path=/trunk/mono/; revision=156584
2010-05-02 13:17:18 +00:00
Mark Probst 260ddcd303 2010-05-02 Mark Probst <[email protected]>
* sgen-marksweep.c, sgen-gc.c: Use one mark bit per ALLOC_ALIGN to
        get rid of a division in critical code.

svn path=/trunk/mono/; revision=156583
2010-05-02 13:09:03 +00:00
Zoltan Varga 114a495477 2010-05-01 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_load_aotconst): New arch-specific function.

	* tramp-amd64.c: Use emit_load_aotconst to remove some code duplication.

svn path=/trunk/mono/; revision=156579
2010-05-01 19:45:58 +00:00
Zoltan Varga b39f37bf7c 2010-05-01 Zoltan Varga <[email protected]>
* src/goutput.c (g_logv): Append a '\n' to the end of the string as glib does.

svn path=/trunk/mono/; revision=156578
2010-05-01 19:28:45 +00:00
Zoltan Varga b387e77292 2010-05-01 Zoltan Varga <[email protected]>
* aot-runtime.c (init_plt): Make the default entries point to the AOT trampoline,
	there is no need to jump through the first plt entry.

svn path=/trunk/mono/; revision=156577
2010-05-01 19:13:27 +00:00
Zoltan Varga 82eec516c0 2010-05-01 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_named_code): Rename to mono_aot_get_trampoline.

svn path=/trunk/mono/; revision=156576
2010-05-01 19:04:57 +00:00
Zoltan Varga 2d8aa561a0 2010-05-01 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_get_plt_entry): Move the arch specific parts to an
	arch-specific function.
	(mono_aot_get_plt_info_offset): Ditto.

svn path=/trunk/mono/; revision=156575
2010-05-01 19:01:48 +00:00
Zoltan Varga 311cd082a5 2010-05-01 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_register_jit_icall): New helper function called from
	mono_arch_init () to register jit icalls called from full-aot trampolines.
	(load_function): Get rid of the arch specific #ifdefs, move the relevant code
	to mini-<ARCH>.c.

svn path=/trunk/mono/; revision=156574
2010-05-01 18:20:44 +00:00
Zoltan Varga 665c33cccf 2010-05-01 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_get_throw_corlib_exception_full): Get rid of
	the specialized throw corlib exception trampoline, use a variant of the normal
	trampoline along with a new C function which does the call to
	mono_exception_from_token (), just like on x86.

svn path=/trunk/mono/; revision=156573
2010-05-01 17:54:19 +00:00
Zoltan Varga 89408cf1c0 2010-05-01 Zoltan Varga <[email protected]>
* mini-trampolines.c aot-compiler.c tramp-<ARCH>.c exceptions-<ARCH>.c:
	Reorganize the full aot trampoline creation functions, instead of taking a bunch
	of out arguments, they will now take a MonoTrampInfo** out argument. Simplify
	some code in aot-compiler.c because of this. Remove the non-full aot trampoline
	creation functions on architectures which have the full-aot ones.

svn path=/trunk/mono/; revision=156572
2010-05-01 17:24:17 +00:00
Zoltan Varga 548d918648 2010-05-01 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_decompose_long_opts): Fix LNEG.

svn path=/trunk/mono/; revision=156570
2010-05-01 17:18:30 +00:00
Carlos Alberto Cortez 48775cb5c4 2010-05-01 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollectionTest.cs: New test for Clear.


svn path=/trunk/mcs/; revision=156565
2010-05-01 08:31:14 +00:00
Carlos Alberto Cortez 5ae77d8259 2010-05-01 Carlos Alberto Cortez <[email protected]>
* ToolStripItemCollection.cs: When calling Clear set Owner and Parent
	properties to null for each of the items in the collection, just as
	Remove/RemoveAt do. Implement a ClearInternal method that clears the
	collection without modifying the mentioned properties.
	* ToolStrip.cs:
	* ToolStripOverflow.cs: Call ToolStripItemCollection.ClearInternal
	for our internal collections.
	This should fix #590100, which producing a race when the garbage
	collector was calling ToolStripItem.Dispose, which in turn was firing
	a Layout in the ToolStrip.


svn path=/trunk/mcs/; revision=156564
2010-05-01 08:29:21 +00:00
Zoltan Varga e6df6f0e02 2010-05-01 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Initialize exc_throw_pos/found
	explicitly, this seems to be required by some gcc versions at -O2.

	* mini-arm.c: Ditto.

svn path=/trunk/mono/; revision=156562
2010-05-01 02:49:56 +00:00
Zoltan Varga 0203cb809b 2010-05-01 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_delegate_invoke_impl): Fix full-aot support for
	has_target delegate invokes.

svn path=/trunk/mono/; revision=156560
2010-05-01 01:05:39 +00:00
Zoltan Varga 09994f2cbe 2010-05-01 Zoltan Varga <[email protected]>
* mini.h (MonoAotTrampInfo): Rename this to MonoTrampInfo, add patches/unwind
	info fields.

	* aot-compiler.c (mono_aot_tramp_info_create): Rename to mono_tramp_info_create,
	add patches/unwind info arguments, move to mini.c.

	* mini-<ARCH>.c aot-compiler.c: Update after the above changes.

svn path=/trunk/mono/; revision=156553
2010-04-30 22:53:06 +00:00
Zoltan Varga d901a55d1e 2010-04-30 Zoltan Varga <[email protected]>
* TypeMirror.cs: Add new overload for GetSourceFiles () which returns full paths.

svn path=/trunk/mcs/; revision=156538
2010-04-30 17:00:13 +00:00
Zoltan Varga ddcc29075b 2010-04-30 Zoltan Varga <[email protected]>
* dtest.cs: Add a test for TypeMirror.GetSourceFiles (true).

svn path=/trunk/mono/; revision=156536
2010-04-30 16:59:17 +00:00
Zoltan Varga c9e6ecfc72 2010-04-30 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Add a new CMD_TYPE_GET_SOURCE_FILES_2
	command which returns full path names.

svn path=/trunk/mono/; revision=156535
2010-04-30 16:59:10 +00:00
Marek Safar b8590e2f73 2010-04-30 Marek Safar <[email protected]>
Partially based on patch by <[email protected]>

	* eval.cs, ecore.cs: Fixed eval show methods.


svn path=/trunk/mcs/; revision=156533
2010-04-30 15:40:52 +00:00
Marek Safar 93c8515837 New tests.
svn path=/trunk/mcs/; revision=156524
2010-04-30 14:44:54 +00:00
Marek Safar 983652c83d 2010-04-30 Marek Safar <[email protected]>
* generics.cs, delegate.cs: Implement output type inference of
	methodgroup now when the specification was cleared at least little
	bit.


svn path=/trunk/mcs/; revision=156523
2010-04-30 14:44:40 +00:00
Gonzalo Paniagua Javier 8c2f0e1a5a Ignore exceptions from the callback
svn path=/trunk/mcs/; revision=156520
2010-04-30 13:02:26 +00:00
Gonzalo Paniagua Javier f231f23cd6 Avoid nullref when shutting down
svn path=/trunk/mcs/; revision=156519
2010-04-30 13:01:59 +00:00
Marek Safar 23e93fcab2 Keep parsing after invalid arguments
svn path=/trunk/mcs/; revision=156513
2010-04-30 11:44:07 +00:00
Atsushi Eno ad98bd16a5 2010-04-30 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : use manual reset here to not cause
	  possible inconsistent locking.


svn path=/trunk/mcs/; revision=156489
2010-04-30 06:52:41 +00:00
Andreas Färber d567c96829 configure: Don't hardcode libm dependency
Minus L M is
  Explicit mathematics -
  Abelian group?
                   -- Andreas F.

Mac OS X has math functions in libSystem.dylib and a libm.dylib symlink.
Haiku has them in libroot.so and no libm.so, like BeOS and Zeta.

The use of -lm seems almost Lipschitz-continuous, let's constrain it
to its domain of definition.

	* configure.in: Check for -lm necessity.
	Fixes linking on Haiku.

v1 -> v2:
* Use autoconf check instead of platform-based switch

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed unter the CC Attribution 3.0 license.

svn path=/trunk/mono/; revision=156468
2010-04-29 23:06:54 +00:00
Zoltan Varga 655d2753e6 Fix make dist.
svn path=/trunk/mono/; revision=156461
2010-04-29 22:02:58 +00:00
Zoltan Varga 387e1c564b 2010-04-29 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_generic_class_init_trampoline_full): Set the
	code_size output variable.

	* mini-x86.c (mono_arch_emit_prolog): Compute the GOT addr before calling
	mono_get_lmf_addr.

svn path=/trunk/mono/; revision=156459
2010-04-29 21:45:58 +00:00
Zoltan Varga 6e52ad831d 2010-04-29 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Remove a disable_aot which is not needed.
	(mono_arch_cpu_optimizazions): Make this a no-op when running with full aot.
	(mono_arch_cpu_enumerate_simd_versions): Ditto.

svn path=/trunk/mono/; revision=156453
2010-04-29 21:13:32 +00:00
Marek Habersack 7b822f7ca7 ChangeLog update
svn path=/trunk/mcs/; revision=156452
2010-04-29 20:57:28 +00:00
Geoff Norton 5b434e6977 2010-04-29 Geoff Norton <[email protected]>
* mono-spinlock.h: Remove
	* wthreads.c: Don't spinlock here, use a mutex instead

svn path=/trunk/mono/; revision=156443
2010-04-29 18:50:57 +00:00
Marek Safar 1d99a1abfd 2010-04-29 Marek Safar <[email protected]>
A fix for bug #575611
	* class.cs: Fix recursive unmanaged recursice sruct check.


svn path=/trunk/mcs/; revision=156440
2010-04-29 15:42:56 +00:00
Marek Safar cfc8a9cbc1 New tests.
svn path=/trunk/mcs/; revision=156439
2010-04-29 14:58:11 +00:00
Marek Safar 73e39bb0b7 2010-04-29 Marek Safar <[email protected]>
A fix for bug #479776
	* expression.cs: Implement typeof unbounded nested generic types.


svn path=/trunk/mcs/; revision=156438
2010-04-29 14:47:27 +00:00
Marek Safar 2e76d1db7e 2010-04-29 Marek Safar <[email protected]>
A fix for bug #474953
	* class.cs: Fix valid recursive base type definition.


svn path=/trunk/mcs/; revision=156437
2010-04-29 14:07:01 +00:00
Jérémie Laval e45ad8f140 2010-04-29 Jérémie Laval <[email protected]>
In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs: Add Ignore attribute instead of commenting test.
   Enable more tests.

svn path=/trunk/mcs/; revision=156434
2010-04-29 13:17:31 +00:00
Jérémie Laval 3ebc2a2601 2010-04-29 Jérémie Laval <[email protected]>
In class/System.Core/System.Linq/:
   * ParallelQueryEnumerator.cs: Use new non-blocking collection
   for storing indexed elements.

In class/System.Core/System.Linq/Internal/:
   * OrderingEnumerator.cs: Use new non-blocking collection
   for storing indexed elements.

svn path=/trunk/mcs/; revision=156433
2010-04-29 13:17:22 +00:00
Jérémie Laval cfcaf86b6b 2010-04-29 Jérémie Laval <[email protected]>
In class/System.Core/System.Linq/:
   * ParallelExecuter.cs: Bring indexed worker methods support.
   Check for null callback.

svn path=/trunk/mcs/; revision=156432
2010-04-29 13:17:13 +00:00
Marek Safar 2ffe27cb6b New test.
svn path=/trunk/mcs/; revision=156430
2010-04-29 13:02:05 +00:00
Marek Safar f8b4fde037 2010-04-29 Marek Safar <[email protected]>
A fix for bug #421737
	* convert.cs, expression.cs: A boxing conversion exists from a
	nullable-type to a reference type, if a boxing conversion exists
	from the underlying non-nullable-value-type to the reference type.
	

svn path=/trunk/mcs/; revision=156429
2010-04-29 13:01:45 +00:00
Marek Safar 7e50a4f70e Test improved.
svn path=/trunk/mcs/; revision=156415
2010-04-29 11:12:47 +00:00
Marek Safar 732841a4f1 2010-04-29 Marek Safar <[email protected]>
A fix for bug #376875
	* import.cs: Import volatile modifier.


svn path=/trunk/mcs/; revision=156414
2010-04-29 11:10:41 +00:00
Marek Safar f2e8a0187b New tests.
svn path=/trunk/mcs/; revision=156410
2010-04-29 10:45:23 +00:00
Marek Safar 5c1a938cec 2010-04-29 Marek Safar <[email protected]>
A fix for bug #372412
	* typespec.cs, expression.cs, codegen.cs: Emit readonly prefix for
	generic arrays.


svn path=/trunk/mcs/; revision=156409
2010-04-29 10:44:26 +00:00
Marek Safar 8da8850e21 Don't initialize core types to early
svn path=/trunk/mcs/; revision=156407
2010-04-29 09:21:55 +00:00
Marek Habersack ab39a43dae 2010-04-29 Marek Habersack <[email protected]>
* FormsAuthentication.cs: set authentication/expiry cookie
	domain. Fixes bug #600740. Patch from Stuart Siegrist
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=156405
2010-04-29 09:18:17 +00:00
Marek Safar bab56f4f78 Turn eval test into normal test case
svn path=/trunk/mcs/; revision=156404
2010-04-29 09:00:15 +00:00
Marek Safar 5605e033f7 New test.
svn path=/trunk/mcs/; revision=156403
2010-04-29 08:53:29 +00:00
Marek Safar b93d93c0dd 2010-04-29 Marek Safar <[email protected]>
A fix for bug #568955
	* statements.cs: Handle recursive scope initializers.


svn path=/trunk/mcs/; revision=156402
2010-04-29 08:53:14 +00:00
Zoltan Varga 5f72d1c28b 2010-04-29 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_alignment): Use ilog2 for alignments for the
	apple assembler.

svn path=/trunk/mono/; revision=156389
2010-04-29 02:08:04 +00:00
Zoltan Varga 13b6899478 2010-04-29 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Avoid an assert in full-aot mode.

svn path=/trunk/mono/; revision=156388
2010-04-29 02:04:59 +00:00
Zoltan Varga 3fca442e04 2010-04-29 Zoltan Varga <[email protected]>
* aot-runtime.c (load_function): Use TARGET_X86 instead of __i386__.

svn path=/trunk/mono/; revision=156385
2010-04-29 00:43:14 +00:00
Marek Habersack 3c944e50eb 2010-04-29 Marek Habersack <[email protected]>
* AppResourcesAssemblyBuilder.cs: when running on windows,
	SetAlPath must return al.exe path with a trailing space, or
	otherwise the process won't start. Fixes bug #600691

svn path=/trunk/mcs/; revision=156382
2010-04-29 00:33:44 +00:00
Marek Habersack af6bdf8b4b Mono build integration files
svn path=/trunk/mcs/; revision=156380
2010-04-28 23:02:30 +00:00
Marek Habersack 65a4ab188e Imported original OData client library sources
svn path=/trunk/mcs/; revision=156379
2010-04-28 23:02:12 +00:00
Mark Probst 564584689e 2010-04-29 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Have separate
        blocks for objects without references in mark&sweep, to improve
        performance.

svn path=/trunk/mono/; revision=156377
2010-04-28 22:24:22 +00:00
Marek Safar 0f2c90ba5d New test.
svn path=/trunk/mcs/; revision=156356
2010-04-28 18:03:06 +00:00
Marek Safar f147f4f971 2010-04-28 Marek Safar <[email protected]>
A fix for bug #566511
	* anonymous.cs: Always get inflated version of hoisted variable
	on generic type definition.


svn path=/trunk/mcs/; revision=156355
2010-04-28 18:02:45 +00:00
Atsushi Eno 277acc8496 2010-04-28 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : add workaround to set ChannelDispatcher
	  to IChannelListener. Avoid null ChannelDispatcher in http listener.

	* HttpChannelListener.cs, HttpListenerManager.cs :
	  Fix NRE issue in olive/samples/wcf/web-http-binding/samplesvc3.exe.


svn path=/trunk/mcs/; revision=156344
2010-04-28 16:25:01 +00:00
Marek Safar a652d256e5 Don't reload core types.
svn path=/trunk/mcs/; revision=156337
2010-04-28 15:38:04 +00:00
Jonathan Pobst d10f3f8a65 See if this fixes System.Web for the msvc build.
svn path=/trunk/mono/; revision=156336
2010-04-28 15:37:06 +00:00
Marek Safar b582d535e5 Track API change
svn path=/trunk/mcs/; revision=156335
2010-04-28 15:25:20 +00:00
Marek Safar 62791c47a1 Allow setting interactive base class with Type
svn path=/trunk/mcs/; revision=156334
2010-04-28 15:24:48 +00:00
Jonathan Pobst 88c19b4db3 See if this fixes System.Web for the msvc build.
svn path=/trunk/mono/; revision=156332
2010-04-28 15:16:18 +00:00
Marek Safar a08d54b294 2010-04-28 Marek Safar <[email protected]>
* import.cs, membercache.cs: Relax rules for valid properties.


svn path=/trunk/mcs/; revision=156331
2010-04-28 15:13:55 +00:00
Marek Safar 4ffb7f958a Fixes full local test rule
svn path=/trunk/mcs/; revision=156330
2010-04-28 15:13:11 +00:00
Zoltan Varga 71c596f5df Fix a warning.
svn path=/trunk/mono/; revision=156328
2010-04-28 14:45:21 +00:00
Marek Safar 2f87aa9ca8 2010-04-28 Marek Safar <[email protected]>
* import.cs: Intern arrays used in generic arguments.


svn path=/trunk/mcs/; revision=156318
2010-04-28 13:46:40 +00:00
Zoltan Varga 5c9d50d048 2010-04-28 Zoltan Varga <[email protected]>
* configure.ac src/gspawn.c: Applied openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/trunk/mono/; revision=156317
2010-04-28 13:37:24 +00:00
Marek Habersack 9d5a298da2 2010-04-28 Marek Habersack <[email protected]>
* CheckBoxListTest.cs: added test for bug #600415

2010-04-28  Marek Habersack  <[email protected]>

	* CheckBoxList.cs: do not modify list item status in LoadPostData
	when the list control is disabled.
	If an item is selected and it was unchecked by the user, deselect
	it. Fixes bug #600415

svn path=/trunk/mcs/; revision=156312
2010-04-28 13:08:39 +00:00
Marek Safar 136d27b431 New tests.
svn path=/trunk/mcs/; revision=156308
2010-04-28 11:04:23 +00:00
Marek Safar 052a8802d7 GetField requires explicit binding arguments
svn path=/trunk/mcs/; revision=156307
2010-04-28 11:04:03 +00:00
Marek Safar f219d8a55f set eolstyle correctly
svn path=/trunk/mcs/; revision=156306
2010-04-28 10:57:10 +00:00
Marek Safar 7cd89dc1a6 set eolstyle correctly
svn path=/trunk/mcs/; revision=156305
2010-04-28 10:53:44 +00:00
Marek Safar 83158bfc06 2010-04-28 Marek Safar <[email protected]>
A fix for bug #600398
	* convert.cs: Actually use effective base type for the comparison.


svn path=/trunk/mcs/; revision=156304
2010-04-28 10:27:25 +00:00
Marek Safar 0818585825 removed debug info
svn path=/trunk/mcs/; revision=156303
2010-04-28 10:18:00 +00:00
Marek Safar f696f5bead 2010-04-28 Marek Safar <[email protected]>
A fix for bug #600326
	* ecore.cs: Pass arity to base member lookup.
	

svn path=/trunk/mcs/; revision=156302
2010-04-28 10:06:23 +00:00
Marek Safar 51cf120017 2010-04-28 Marek Safar <[email protected]>
A fix for bug #573385
	* expression.cs: MemberAccess is of generic type based on right
	arity length only.


svn path=/trunk/mcs/; revision=156301
2010-04-28 09:46:32 +00:00
Marek Safar 59b0befb79 Don't double set location
svn path=/trunk/mcs/; revision=156299
2010-04-28 09:36:11 +00:00
Marek Safar dce2bdd31e 2010-05-28 Marek Safar <[email protected]>
* cs-tokenizer.cs: Made tab size configurable.


svn path=/trunk/mcs/; revision=156295
2010-04-28 09:16:47 +00:00
Marek Safar d825e14e65 flush
svn path=/trunk/mcs/; revision=156293
2010-04-28 09:04:41 +00:00
Marek Safar 530fc275f4 put jay2008 back
svn path=/trunk/mcs/; revision=156288
2010-04-28 08:35:10 +00:00
Marek Safar b1101f0be3 use correct path
svn path=/trunk/mcs/; revision=156287
2010-04-28 08:26:53 +00:00
Marek Safar 3a4708a5d1 svn:eolstyle
svn path=/trunk/mcs/; revision=156286
2010-04-28 08:25:59 +00:00
Marek Safar 43387d8a9d better integration
svn path=/trunk/mcs/; revision=156285
2010-04-28 08:24:38 +00:00
Marek Safar 25da6f4de1 fixes build
svn path=/trunk/mcs/; revision=156284
2010-04-28 08:23:35 +00:00
Atsushi Eno 92eb7cee6b 2010-04-28 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : minimize initial buffer size so that it does
	  not mostly block some readers. Fixed bug #591291.


svn path=/trunk/mcs/; revision=156280
2010-04-28 06:11:30 +00:00
Atsushi Eno f23c8f7fc2 2010-04-28 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : it seems .net does allow Load() with such an xml
	  reader positioned in the middle of the document. Fixed bug #598953.

	* XmlDocumentTests.cs : add test for bug #598953.


svn path=/trunk/mcs/; revision=156278
2010-04-28 01:22:00 +00:00
Atsushi Eno 54fdf2a775 2010-04-28 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : support DataContractNamespaceAttribute.
	  Fixed bug #599889.

	* XmlObjectSerializerTest.cs : add test for bug #599899.


svn path=/trunk/mcs/; revision=156277
2010-04-28 01:08:01 +00:00
Mark Probst d09a40ca0b 2010-04-28 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Bring heavy
        statistics up-to-date.

svn path=/trunk/mono/; revision=156274
2010-04-28 00:11:28 +00:00
Miguel de Icaza af73c7cd24 Add csharp solution and project
svn path=/trunk/mcs/; revision=156271
2010-04-27 23:26:56 +00:00
Miguel de Icaza e76004b892 Make changes so it is easy to build on Windows
svn path=/trunk/mcs/; revision=156269
2010-04-27 23:06:28 +00:00
Miguel de Icaza 8b04e5dc46 Add solution
svn path=/trunk/mcs/; revision=156268
2010-04-27 23:05:46 +00:00
Marek Habersack f4fbc33029 Fix the build
svn path=/trunk/mcs/; revision=156267
2010-04-27 23:05:02 +00:00
Marek Habersack b7c1796077 2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
	System.Web.ApplicationServices in the 4.0 profile.

2010-04-28  Marek Habersack  <[email protected]>

	* KeyedList.cs: do not implement IStateManager in 4.0

2010-04-28  Marek Habersack  <[email protected]>

	* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
	System.Web.ApplicationServices in the 4.0 profile.

2010-04-28  Marek Habersack  <[email protected]>

	* Makefile (LIB_MCS_FLAGS): added a reference to
	System.Web.ApplicationServices in the 4.0 profile.

2010-04-28  Marek Habersack  <[email protected]>

	* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
	System.Web.ApplicationServices in the 4.0 profile.

2010-04-28  Marek Habersack  <[email protected]>

	* Makefile (common_dirs): added System.Web.ApplicationServices

2010-04-28  Marek Habersack  <[email protected]>

	* RolePrincipal.cs: class is not sealed in 4.0

	* MembershipUser.cs: type forwarded to
	System.Web.ApplicationServices in 4.0.
	In the 4.0 profile, a MembershipHelper instance is created using
	reflection, so that the Membership class and password
	encryption/decryption services can be accessed without referencing
	System.Web

	* MembershipProvider.cs: type forwarded to
	System.Web.ApplicationServices in 4.0.
	{Encrypt,Decrypt}Password implementations moved to
	MembershipHelper.
	Added new EncryptPassword overload for 4.0

	* MembershipHelper.cs: a helper class to handle password
	encryption/decryption and to forward requests for certain
	Membership properties in 4.0. It is used also in 2.0 to keep code
	cleaner. System.Web.ApplicationServices uses it to access the
	Membership class without having to reference System.Web

	* MembershipCreateStatus.cs, MembershipCreateUserException.cs,
	MembershipPasswordException.cs, MembershipPasswordFormat.cs,
	MembershipProviderCollection.cs, MembershipUserCollection.cs,
	MembershipValidatePasswordEventHandler.cs, RoleProvider.cs,
	ValidatePasswordEventArgs.cs:
	types forwarded to System.Web.ApplicationServices in 4.0

	* FormsIdentity.cs: class is not sealed in 4.0

svn path=/trunk/mcs/; revision=156264
2010-04-27 22:49:20 +00:00
Zoltan Varga d530d83685 2010-04-28 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_got_info): Double the buffer size to avoid an assert.

svn path=/trunk/mono/; revision=156262
2010-04-27 22:46:12 +00:00
Miguel de Icaza 1fb05e0b01 Disable per Zoltan's suggestion
svn path=/trunk/mcs/; revision=156259
2010-04-27 21:35:52 +00:00
Zoltan Varga c70822c6ee 2010-04-27 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Get rid of the usage of GArray, so
	line number support works with eglib.

svn path=/trunk/mono/; revision=156258
2010-04-27 21:04:30 +00:00
Miguel de Icaza ae7118507f 2010-04-27 Miguel de Icaza <[email protected]>
* repl.cs: Improvements to run better on Windows. 

svn path=/trunk/mcs/; revision=156257
2010-04-27 21:01:06 +00:00
Zoltan Varga de171af3ee 2010-04-27 Zoltan Varga <[email protected]>
* load-missing.il: Make BrokenClass inherit from a class in t, not mscorlib, so
	mcs can load load-missing.dll as a reference.

svn path=/trunk/mono/; revision=156256
2010-04-27 20:48:52 +00:00
Zoltan Varga 43fa1b29e5 2010-04-27 Zoltan Varga <[email protected]>
* Makefile.am (DISABLED_TESTS): Add gc-altstack.exe since it randomly fails
	under Boehm, which can't handle threads which are executing on an altstack during
	stack marking.

svn path=/trunk/mono/; revision=156255
2010-04-27 20:35:40 +00:00
Marek Safar 67add1e348 2010-05-27 Marek Safar <[email protected]>
* attribute.cs: Ensure Obsolete members are defined before doing
	ctor look-up.


svn path=/trunk/mcs/; revision=156251
2010-04-27 19:25:27 +00:00
Mark Probst c043b6df6e 2010-04-27 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Support
        heap-dump for mark&sweep.

2010-04-27  Mark Probst  <[email protected]>

        * scripts/mono-heapviz: If the major sections are too small, use a
        larger width.

svn path=/trunk/mono/; revision=156249
2010-04-27 18:48:23 +00:00
Marek Safar 4fa1b131d6 2010-05-27 Marek Safar <[email protected]>
* visit.cs: Add DOM visitor skeleton.
	
	* *.cs: Updated.


svn path=/trunk/mcs/; revision=156246
2010-04-27 18:42:16 +00:00
Zoltan Varga eccf7dc0e6 2010-04-27 Zoltan Varga <[email protected]>
* configure.in: Switch to eglib by default.

svn path=/trunk/mono/; revision=156245
2010-04-27 18:35:55 +00:00
Zoltan Varga 239df2aabc Fix win32 build.
svn path=/trunk/mono/; revision=156244
2010-04-27 18:29:30 +00:00
Ivan Zlatev ca504b01fd 2010-04-27 Ivan Zlatev <[email protected]>
* DataGridView.cs: Fix multiple issues when inserting and adding new
	columns.

svn path=/trunk/mcs/; revision=156212
2010-04-27 17:58:39 +00:00
Marek Safar 9774ad3942 2010-05-27 Marek Safar <[email protected]>
* attribute.cs, codegen.cs: Drop COMPILER_ACCESS hack.



svn path=/trunk/mcs/; revision=156200
2010-04-27 17:27:27 +00:00
Marek Safar 0f9bd7947c New tests.
svn path=/trunk/mcs/; revision=156196
2010-04-27 17:24:23 +00:00
Marek Safar 4f81102f1c 2010-04-27 Marek Safar <[email protected]>
* TypeBuilder.cs: StructLayoutAttribute ctor can be builder when
	compiling corlib.


svn path=/trunk/mcs/; revision=156195
2010-04-27 17:23:59 +00:00
Miguel de Icaza 47990e3daa 2010-04-27 Miguel de Icaza <[email protected]>
* driver.c, mini.c: Since linking with LLVM makes the default Mono
        dirty an extra 70kb pages on startup we are now going to choose a
        different strategy: ship mono and mono-llvm binaries, with the
        second being the one that links with LLVM and defaults to LLVM
        being enabled.


svn path=/trunk/mono/; revision=156193
2010-04-27 16:48:21 +00:00
Zoltan Varga 1cf8d192bd 2010-04-27 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_header): Move the is_inflated case before the
	wrapper case, as a method can be both.

svn path=/trunk/mono/; revision=156187
2010-04-27 16:07:30 +00:00
Zoltan Varga b5eab550d1 2010-04-27 Zoltan Varga <[email protected]>
* tramp-x86.c exceptions-x86.c mini-x86.c aot-compiler.c aot-runtime.c:
	Implement full-aot support on x86.

	* method-to-ir.c: Always use a got var on x86 too, just like on ppc, because the
	trampolines depend on it. Use MONO_ARCH_GOT_REG as the got register, instead of
	the first register returned by get_global_int_regs ().

	* cpu-x86.md: Fix the length of insertx_u1_slow.

	* iltests.il.in: Disable tail call tests when running with full-aot.

svn path=/trunk/mono/; revision=156186
2010-04-27 15:55:08 +00:00
Marek Safar fc56acfaa2 New tests.
svn path=/trunk/mcs/; revision=156177
2010-04-27 12:33:26 +00:00
Lluis Sanchez 9ea478b7f7 2010-04-27 Lluis Sanchez <[email protected]>
* ITargetProcess.cs:
	* VirtualMachine.cs:
	* VirtualMachineManager.cs:
	Restored old API. Renamed IProcess to ITargetProcess everywhere
	to avoid naming conflicts.


svn path=/trunk/mcs/; revision=156172
2010-04-27 10:21:34 +00:00
Marek Safar 0759fb325c properties
svn path=/trunk/mcs/; revision=156170
2010-04-27 09:03:55 +00:00
Marek Safar 0900c61969 Flush (work in progress)
svn path=/trunk/mcs/; revision=156168
2010-04-27 08:40:02 +00:00
Marek Safar 46b3c9551c 2010-05-27 Marek Safar <[email protected]>
* *.cs: Sync with the latest gmcs.


svn path=/trunk/mcs/; revision=156166
2010-04-27 08:20:18 +00:00
Marek Safar d638968b54 2010-05-27 Marek Safar <[email protected]>
* repl.cs: Sync with the latest gmcs


svn path=/trunk/mcs/; revision=156165
2010-04-27 08:18:27 +00:00
Marek Safar 6bbb811178 Forget this one
svn path=/trunk/mcs/; revision=156164
2010-04-27 08:05:51 +00:00
Marek Safar eec7629a52 flush
svn path=/trunk/mcs/; revision=156163
2010-04-27 08:05:06 +00:00
Marek Safar 2d23bfcbce New tests.
svn path=/trunk/mcs/; revision=156162
2010-04-27 08:01:17 +00:00
Marek Safar 1bc916c295 2010-05-27 Marek Safar <[email protected]>
* *.cs: Major rewrite of compiler internals to better work with
	unmodified System.Reflection.Emit. Some of the key changes are
	- TypeSpec replaces reflection specific System.Type.
	- All Type(TypeSpec) operations are now done in compiler therefore
	no dependency on SRE to inflate generic members and types or to
	query unclosed types.
	- MemberCache is now the only and full hierarchical topology.
	- Generic constraints are implemented properly.
	- And as a bonus compilation is on average 30% faster.


svn path=/trunk/mcs/; revision=156161
2010-04-27 07:59:41 +00:00
Carlos Alberto Cortez a38b01b5dd 2010-04-27 Carlos Alberto Cortez <[email protected]>
* ToolStripSplitButton.cs:
	* ToolStripDropDownItem.cs:
	* ToolStripMenuItem.cs: Update overrides.
	* ToolStripItem.cs: Pass the number of clicks to HandleClick when
	firing OnMouseUp, so we can later fire either OnClick or
	OnDoubleClick.

	Fixes #558632.


svn path=/trunk/mcs/; revision=156160
2010-04-27 07:27:34 +00:00
Carlos Alberto Cortez a636f1c8f1 2010-04-26 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When emitting the complete RTF value escape chars
	above 0x80, at .Net seems to do. This way we are able to make
	round-trip assignations between the setter and getter of the
	RichTextBox.Rtf property.
	Fixes part of #586901.


svn path=/trunk/mcs/; revision=156156
2010-04-27 01:21:32 +00:00
Mark Probst f0ac866646 2010-04-27 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Don't do a
        separate pass to scan pinned and large object but use the gray
        queue like for regular objects.

svn path=/trunk/mono/; revision=156151
2010-04-26 23:55:22 +00:00
Marek Habersack 54112d5a22 2010-04-27 Marek Habersack <[email protected]>
* HttpException.cs: implemented 4.0 property WebEventCode, also
	made it available in the 2.0 profile as internal.
	Added a method with several overloads, NewWithCode, which creates
	an instance of HttpException and sets the web error code.

	* HttpApplication.cs, HttpRequest.cs, HttpRuntime.cs: use
	HttpException.NewWithCode for some exceptions.

svn path=/trunk/mcs/; revision=156150
2010-04-26 23:38:29 +00:00
Marek Habersack b65489f64f 2010-04-26 Marek Habersack <[email protected]>
* HttpContextWrapper.cs: implemented two 4.0 methods: RemapHandler
	and SetSessionStateBehavior

svn path=/trunk/mcs/; revision=156149
2010-04-26 23:38:17 +00:00
Ivan Zlatev 905351c57a 2010-04-26 Ivan Zlatev <[email protected]>
* DataGridView.cs: Handle all possible cases for when a new column is
	added and there are existing rows with existing cells both in the
	non-databound and the databound scenario.
	[Fixes bug #583387]

svn path=/trunk/mcs/; revision=156146
2010-04-26 21:57:47 +00:00
Miguel de Icaza 888f070470 Fix the build
svn path=/trunk/mcs/; revision=156129
2010-04-26 20:16:17 +00:00
Marek Habersack 920a298158 2010-04-26 Marek Habersack <[email protected]>
* MemoryCacheTest.cs: added tests for LRU removal of entries.

2010-04-26  Marek Habersack  <[email protected]>

	* MemoryCacheLRU.cs: added

	* MemoryCacheContainer.cs: added LRU entry cache.

	* MemoryCache.cs: added option to emulate one CPU on SMP machines
	(for testing purposes) - "__MonoEmulateOneCPU"

svn path=/trunk/mcs/; revision=156125
2010-04-26 19:39:32 +00:00
Geoff Norton e8ba76d820 2010-04-26 Geoff Norton <[email protected]>
* configure.in: Allow cross compiling osx for 64-bit

svn path=/trunk/mono/; revision=156119
2010-04-26 18:10:42 +00:00
Geoff Norton 2e473642b1 2010-04-26 Geoff Norton <[email protected]>
* processes.c: Fix this for 64-bit darwin.

svn path=/trunk/mono/; revision=156118
2010-04-26 18:10:31 +00:00
Marek Safar 6fbaa0e59d Fixed warning
svn path=/trunk/mcs/; revision=156117
2010-04-26 17:17:50 +00:00
Lluis Sanchez 9119d52655 2010-04-26 Lluis Sanchez <[email protected]>
* IProcess.cs:
	* VirtualMachine.cs:
	* VirtualMachineManager.cs:
	Added new IProcess interface which wraps the debugged process.
	This abstraction makes it easier to support debugging processes
	for which we don't have a direct Process reference (for example,
	if the process is remote).


svn path=/trunk/mcs/; revision=156112
2010-04-26 16:41:13 +00:00
Zoltan Varga 40b447a9a1 2010-04-26 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
	sys/param.h dependencies to a few checks.

svn path=/trunk/mono/; revision=156097
2010-04-26 12:03:24 +00:00
Zoltan Varga 3d842183b2 2010-04-26 Zoltan Varga <[email protected]>
* boehm-gc.c: Applied patch from Robert Nagy ([email protected]). Include
	string.h for memmove.

	socket-io.c: Applied patch from Robert Nagy ([email protected]).
	ipaddress_to_struct_in6_addr() is only needed when
	defined(HAVE_STRUCT_IP_MREQN) || defined(HAVE_STRUCT_IP_MREQ).

svn path=/trunk/mono/; revision=156093
2010-04-26 11:55:13 +00:00
Zoltan Varga 977f229f08 2010-04-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_to_op_imm_noemul): Fix a warning.

svn path=/trunk/mono/; revision=156092
2010-04-26 11:55:05 +00:00
Atsushi Eno 927b6b607c 2010-04-26 Atsushi Enomoto <[email protected]>
* XamlMember.cs : hack GetHashCode().


svn path=/trunk/mcs/; revision=156083
2010-04-26 09:00:07 +00:00
Atsushi Eno 92a39bf2b6 2010-04-26 Atsushi Enomoto <[email protected]>
* XamlObjectReaderTest.cs : more test use cases.


svn path=/trunk/mcs/; revision=156082
2010-04-26 08:59:40 +00:00
Atsushi Eno d42eed3f4f 2010-04-26 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs : now it can look into values and pick up
	  more required namespace prefixes.

	* XamlObjectReaderTest.cs : enable working tests.
	* XamlTypeTest.cs : added a test for GetAliasedProperty().


svn path=/trunk/mcs/; revision=156080
2010-04-26 08:29:02 +00:00
Carlos Alberto Cortez 2d74ebce44 2010-04-26 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: When retrieving data from the x11 clipboard and we
	are using either XA_STRING or OEMTEXT try to detect if we have escaped
	unicode chars, and unescape them as needed. This us used by some
	(gnome) applications to pass unicode chars in a non-unicode context.
	Fixes #596402.


svn path=/trunk/mcs/; revision=156075
2010-04-26 06:08:53 +00:00
Jonathan Pryor ccb8224144 * Monodoc/ecma-provider.cs: Support the full set of possible operator
names within EcmaHelpSource.MakeOperatorSignature() (where "full" is
	  "whatever is included in ECMA-335 §10.3.1 through §10.3.3").
	  Fixes InvalidOperationException reported to mono-docs-list.

svn path=/trunk/mcs/; revision=156071
2010-04-26 02:43:42 +00:00
Carlos Alberto Cortez 5e51b421b0 2010-04-25 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: New test for ToString using custom formats.


svn path=/trunk/mcs/; revision=156070
2010-04-25 23:15:38 +00:00
Carlos Alberto Cortez 85d222ed3b 2010-04-25 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Support custom formats in ToString().


svn path=/trunk/mcs/; revision=156069
2010-04-25 23:14:36 +00:00
Andreas Färber b5b6cf3dad eglib: Fix iconv check for GNU libiconv
* configure.ac: The iconv function may be libiconv_open.
	Fixes linking with GNU libiconv.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=156061
2010-04-25 15:26:55 +00:00
Ankit Jain 33cb4be083 Fix bug #599486.
* xbuild/Microsoft.CSharp.targets:
* xbuild/Microsoft.VisualBasic.targets: Add $(CoreCompileDependsOn)
for the CoreCompile target.

svn path=/trunk/mcs/; revision=156060
2010-04-25 08:51:02 +00:00
Mark Probst e9d5f7633f 2010-04-25 Mark Probst <[email protected]>
* sgen-gc.c, sgen-marksweep.c, sgen-major-copying.c: Properly
        separate copy_object functions for major vs nursery.  Allows us to
        get rid of a few checks and the start and end parameters for many
        functions.

svn path=/trunk/mono/; revision=156057
2010-04-25 02:21:54 +00:00
Mark Probst 480ca17a56 2010-04-25 Mark Probst <[email protected]>
* sgen-marksweep.c, sgen-gc.c, sgen-major-copying.c,
        sgen-protocol.c, sgen-protocol.h, Makefile.am: Major Mark&Sweep
        collector.

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

        * tools/sgen/sgen-grep-binprot.c: Support for major Mark&Sweep
        collector.

svn path=/trunk/mono/; revision=156056
2010-04-25 01:51:35 +00:00
Zoltan Varga 513a4ef693 Add a test.
svn path=/trunk/mono/; revision=156053
2010-04-24 23:49:00 +00:00
Zoltan Varga 6f4aa68b0d 2010-04-25 Zoltan Varga <[email protected]>
* class.c (mono_class_create_from_typedef): Initialize class->nested_in after
	calling setup_mono_type () since the nested parent could recursively reference
	the nested class using generic constraints. Fixes #599469.

svn path=/trunk/mono/; revision=156052
2010-04-24 23:48:06 +00:00
Ivan Zlatev a40df97ef0 2010-04-25 Ivan Zlatev <[email protected]>
* DataGridViewCellCollection.cs, DataGridView.cs:
	Ensure column cell templates are properly applied.
	[Fixes bug #583404]

svn path=/trunk/mcs/; revision=156051
2010-04-24 23:39:28 +00:00
Ivan Zlatev dfa52aef55 2010-04-24 Ivan Zlatev <[email protected]>
* DataGridViewColumnCollection.cs: When adding a column also
	set the DisplayIndex if its now set by the user already.
        * DataGridViewColumnCollectionTest.cs: Add tests for bug #583387.
	[Fixes bug #583387]

svn path=/trunk/mcs/; revision=156050
2010-04-24 21:57:46 +00:00
Mark Probst 799bd9d543 2010-04-24 Mark Probst <[email protected]>
* sgen-gc.c, sgen-pinning.c, sgen-major-copying.c: Major
        collector abstraction.

svn path=/trunk/mono/; revision=156047
2010-04-24 17:57:40 +00:00
Zoltan Varga 972979fa7b Put back check_object () function.
svn path=/trunk/mono/; revision=156046
2010-04-24 17:51:14 +00:00
Mark Probst 06d1238572 2010-04-24 Mark Probst <[email protected]>
* sgen-gc.c: Remove more unneeded code.

svn path=/trunk/mono/; revision=156045
2010-04-24 16:22:36 +00:00
Mark Probst c77ff91ef3 2010-04-24 Mark Probst <[email protected]>
* sgen-gc.c: Disable managed allocator and wbarrier when the
        binary protocol is enabled.

svn path=/trunk/mono/; revision=156044
2010-04-24 15:51:02 +00:00
Mark Probst ab2a9193d9 2010-04-24 Mark Probst <[email protected]>
* sgen-gc.c: Put nursery-fragment-cleaning into its own function.

svn path=/trunk/mono/; revision=156043
2010-04-24 15:32:26 +00:00
Mark Probst cd5eda607d 2010-04-24 Mark Probst <[email protected]>
* mini.c, driver.c: Initialize mono_use_llvm in mono_main(), not
        in the initializer, because it's non-constant.

svn path=/trunk/mono/; revision=156042
2010-04-24 15:28:39 +00:00
Mark Probst 9ee8b9bb52 2010-04-24 Mark Probst <[email protected]>
* sgen-gc.c: Remove a few commented out and unneeded bits.

svn path=/trunk/mono/; revision=156041
2010-04-24 14:58:51 +00:00
Atsushi Eno 02c1565c69 2010-04-24 Atsushi Enomoto <[email protected]>
* JsonSerializationReader.cs : use List<T> if the contract
          member type is interface.


svn path=/trunk/mcs/; revision=156039
2010-04-24 07:11:05 +00:00
Miguel de Icaza 942baea150 2010-04-23 Miguel de Icaza <[email protected]>
* mono.1: Sort environment variables, update a couple of docs.

svn path=/trunk/mono/; revision=156038
2010-04-24 00:52:39 +00:00
Miguel de Icaza 5006b5ef61 Update man page
svn path=/trunk/mono/; revision=156037
2010-04-24 00:46:34 +00:00
Miguel de Icaza 3528028126 2010-04-23 Miguel de Icaza <[email protected]>
* mini.c: Use MONO_USE_LLVM as an environment flag to turn the use
	of LLVM on by default.   Used for buildbots and other setups.

svn path=/trunk/mono/; revision=156035
2010-04-24 00:44:24 +00:00
Zoltan Varga 3a1ecfd725 2010-04-24 Zoltan Varga <[email protected]>
* mini.c: Set mono_use_llvm to FALSE even if mono is compiled with LLVM.

svn path=/trunk/mono/; revision=156034
2010-04-24 00:34:17 +00:00
Marek Habersack 972273ea96 2010-04-24 Marek Habersack <[email protected]>
* MemoryCacheTest.cs, ObjectCacheTest.cs: added

	* HostFileChangeMonitorTest.cs: added more tests.

2010-04-24  Marek Habersack  <[email protected]>

	* AppDomainTools.cs, AssertExtensions.cs, PokerChangeMonitor.cs,
	PokerMemoryCache.cs, PokerObjectCache.cs,
	TestNotificationSystem.cs: added

2010-04-24  Marek Habersack  <[email protected]>

	* ObjectCache.cs: implemented all the non-abstract methods.

	* MemoryCacheContainer.cs, MemoryCacheEntry.cs,
	MemoryCacheEntryChangeMonitor.cs,
	MemoryCacheEntryPriorityQueue.cs,
	MemoryCachePerformanceCounters.cs: added

	* MemoryCache.cs: implemented physical memory size detection, item
	expiration timer, indexer, reading of configuration values from
	config files, cache memory limit calculation, the
	AddOrGetExisting, Set, Get, Contains,
	CreateCacheEntryChangeMonitor, Dispose, GetCacheItem, GetCount,
	GetEnumerator, GetValues, Remove and Trim methods.
	Implemented support for per-cpu item containers.
	Modified parameters of several methods to match .NET 4.0 release.

	* HostFileChangeMonitor.cs: implemented according to tests.

	* Helpers.cs: added new properties, StringComparer and Is64bit

	* FileChangeNotificationSystemEntry.cs: added

	* FileChangeNotificationSystem.cs: implemented

	* ChangeMonitor.cs: NotifyOnChanged now properly throws an
	exception if it was called more than once.

	* CacheEntryRemovedReason.cs: renamed from
	CacheEntryRemoveReason.cs

	* CacheEntryChangeMonitor.cs: renamed from CacheEntryMonitor.cs

2010-04-24  Marek Habersack  <[email protected]>

	* MemoryCacheSettingsCollection.cs: added and implemented methods
	which appeared in .NET 4.0 final.

svn path=/trunk/mcs/; revision=156032
2010-04-23 23:54:57 +00:00
Jonathan Pobst 544f0c3cc1 2010-04-23 Jonathan Pobst <[email protected]>
* XAttributeTest.cs, XElementTest.cs: Try to standardize DST usage
	to fix failing tests in buildbot.

svn path=/trunk/mcs/; revision=156031
2010-04-23 19:57:40 +00:00
Jonathan Pobst ed0fd8e5b0 Set eol:native.
svn path=/trunk/mcs/; revision=156030
2010-04-23 19:56:57 +00:00
Gonzalo Paniagua Javier 641218b6a4 2010-04-23 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs:
	* FtpWebRequest.cs: use streams instead of sockets as soon as
	possible. Correctly initialize the control connection when SSL
	is used.
	Fixes bug #598908.


svn path=/trunk/mcs/; revision=156028
2010-04-23 19:37:26 +00:00
Gonzalo Paniagua Javier 5f2d97aa67 2010-04-23 Gonzalo Paniagua Javier <[email protected]>
* Context.cs:
	* SslStreamBase.cs:
	* RecordProtocol.cs: differentiate a received 'CloseNotify' alert from
	one that we sent. Disposing the stream will try to send the
	'CloseNotify' alert, if it hasn't already, and ignore any errors. This
	is needed for FTPS to work.


svn path=/trunk/mcs/; revision=156027
2010-04-23 19:33:29 +00:00
Jb Evain 99e96809d0 revert last changes, gacutil depends on that
svn path=/trunk/mono/; revision=156024
2010-04-23 18:40:23 +00:00
Jb Evain e233243b3a fix the build
svn path=/trunk/mono/; revision=156021
2010-04-23 17:31:44 +00:00
Geoff Norton f58791c03f 2010-04-23 Geoff Norton <[email protected]>
* mini-amd64.h: Darwin x86_64 support.

svn path=/trunk/mono/; revision=156020
2010-04-23 17:26:10 +00:00
Geoff Norton 35f081fa70 2010-04-23 Geoff Norton <[email protected]>
* mono-sigcontext.h: Darwin x86_64 support.

svn path=/trunk/mono/; revision=156019
2010-04-23 17:26:07 +00:00
Geoff Norton 8d9d6ff0d7 2010-04-23 Geoff Norton <[email protected]>
* configure.ac: The iconv function is iconv_open.

svn path=/trunk/mono/; revision=156018
2010-04-23 17:26:05 +00:00
Geoff Norton 2469f3b328 2010-04-23 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Darwin x86-64 bit support.
	* darwin_stop_world.c: Ditto

svn path=/trunk/mono/; revision=156016
2010-04-23 17:21:39 +00:00
Jb Evain a73727824e 2010-04-23 Jb Evain <[email protected]>
* domain.c (get_runtime_by_version): renamed to
	mono_get_runtime_by_version.

	* domain-internals.h: expose mono_get_runtime_by_version as
	an internal function.

	* assembly.c (mono_assembly_load_from_full): check if the image
	references a newer runtime than the current executing one, and
	mark it as invalid if it's the case.


svn path=/trunk/mono/; revision=156014
2010-04-23 17:00:56 +00:00
Kornél Pál 43c460fa7b * method-to-ir.c (mono_method_to_ir): Enable inlining of pointer-sized unmanaged initonly static fields when using moving GC. Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=156013
2010-04-23 16:57:33 +00:00
Gonzalo Paniagua Javier 4a3bd36487 2010-04-23 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: patch from Robert Nagy that fixes a nullref and
	uses mono_sem_wait instead of mono_sem_timedwait for openbsd.


svn path=/trunk/mono/; revision=156012
2010-04-23 16:37:47 +00:00
Marek Safar feffd90d26 2010-04-23 Marek Safar <[email protected]>
* Complex.cs: Add explicit BigInteger operator.


svn path=/trunk/mcs/; revision=156011
2010-04-23 14:53:17 +00:00
Marek Safar e116e97a85 Removed explicit COM reference and made sealed
svn path=/trunk/mcs/; revision=156010
2010-04-23 14:41:32 +00:00
Marek Safar 35e836bfd6 Fixed typo and 4.0 file version
svn path=/trunk/mcs/; revision=156009
2010-04-23 14:16:52 +00:00
Jb Evain bff02f51c4 2010-04-23 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionWriter.cs: fix writing of exported types.


svn path=/trunk/mcs/; revision=156005
2010-04-23 12:59:05 +00:00
Jb Evain 1f4c196a65 cleol
svn path=/trunk/mcs/; revision=156004
2010-04-23 12:57:34 +00:00
Sebastien Pouliot d961cd4772 2010-04-23 Sebastien Pouliot <[email protected]>
* moonlight_raw_System.dll.sources: Add new (for SL4) types
	to moonlight build


svn path=/trunk/mcs/; revision=156000
2010-04-23 12:04:05 +00:00
Atsushi Eno e872d714eb 2010-04-23 Astushi Enomoto <[email protected]>
* Http_listener_notes.txt: update comment, as I have fixed one issue
	  with lengthy explanation.


svn path=/trunk/mcs/; revision=155993
2010-04-23 10:36:37 +00:00
Atsushi Eno bbf33e9aa2 2010-04-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : fixed the issue that mex_info is never
	  retrieved from the latest channel listener (which could be other
	  listener than the one which was set mex info).

	* ServiceMetadataExtension.cs : raise an error if it failed to set
	  mex info. (Make it safer.)


svn path=/trunk/mcs/; revision=155991
2010-04-23 10:28:49 +00:00
Rolf Bjarne Kvinge 83c55a2905 In class/System.Core:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* moonlight_raw_System.Core.dll.sources: Include Lazy.cs and
	LazyThreadSafetyMode.cs from corlib in here.

In class/corlib:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* moonlight_raw_corlib.dll.sources: Don't include Lazy.cs here. It's in
	System.Core.dll.

In class/corlib/System.Threading:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* LazyThreadSafetyMode.cs: Include in Moonlight build.

In class/corlib/System:
2010-04-23  Rolf Bjarne Kvinge  <[email protected]>

	* Lazy.cs: Include in Moonlight build.

svn path=/trunk/mcs/; revision=155983
2010-04-23 09:28:47 +00:00
Atsushi Eno 01eefcc298 2010-04-23 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, HttpListenerManager.cs :
	  actually it should be ChannelDispatcher-to-HttpChannelListener,
	  to identify which dispatcher to send reqs.

	* ServiceHostBase.cs: (ditto)


svn path=/trunk/mcs/; revision=155982
2010-04-23 09:26:26 +00:00
Atsushi Eno fb1082c642 2010-04-23 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : remove old Http Keep-Alive workaround.


svn path=/trunk/mcs/; revision=155975
2010-04-23 07:05:56 +00:00
Atsushi Eno c9f0b1759e 2010-04-23 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : add host-to-http-listener mapping so that
	  they can be managed per host.

	* HttpTransportBindingElement.cs,
	  HttpChannelListener.cs,
	  HttpListenerManager.cs : add host-to-http-listener mapping so that
	  they can be managed per host.

	* ServiceMetadataExtension.cs : reflect DispatcherBuilder change.


svn path=/trunk/mcs/; revision=155974
2010-04-23 05:26:17 +00:00
Jérémie Laval 533c70aa68 2010-04-23 Jérémie Laval <[email protected]>
In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs: Fix namespace, add NET_4_0 #ifdef
   * ParallelTestHelper.cs: Fix namespace

In class/System/Test/System.Collections.Concurrent/:
   * BlockingCollectionTests.cs: Add IsCompletedEmptyTestCase,
   fix namespace

svn path=/trunk/mcs/; revision=155968
2010-04-22 23:09:35 +00:00
Miguel de Icaza fb6e6e0afb Fifth patch from: Damien Diederen <[email protected]>
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

	* Normalization.cs: Really apply canonical reordering "recursively."

	Before this, a sequence of code points with the combining
	classes (22, 33, 11) would be reordered to (22, 11, 33) instead of
	the correct (11, 22, 33).  This is because the 'i--' would be
	directly cancelled by the 'i++' in the for loop.


svn path=/trunk/mcs/; revision=155966
2010-04-22 21:26:25 +00:00
Miguel de Icaza e1c81ab188 Fourth patch from: Damien Diederen <[email protected]>
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

    	* Normalization.cs: The correct "checkType" argument to
	Decompose() is NKD or NKFD when normalizing to NKC resp. NKFC.

	* StringTest.cs: More NFC test cases.

svn path=/trunk/mcs/; revision=155965
2010-04-22 21:25:59 +00:00
Miguel de Icaza d4471ebcb1 Third patch from: Damien Diederen <[email protected]>
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

	* Normalization.cs: Implement algorithmic Hangul composition.
	Calling Normalize(NormalizationForm.FormC) on Korean characters
	now works properly (bnc#480152).

	* StringTest.cs: Add test cases for Hangul composition.


svn path=/trunk/mcs/; revision=155964
2010-04-22 21:25:34 +00:00
Miguel de Icaza fe997730cc Second patch from: Damien Diederen <[email protected]>
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

	* Normalization.cs: Follow the spec when checking composition pairs.

	Figure 7 in section 1.3 of http://unicode.org/reports/tr15/ shows
	how when doing composition, one has to examine the successive
	(starter, candidate) pairs, and combine if a matching canonical
	decomposition exists.

	The original algorithm was, instead, iterating on canonical
	decompositions, and, for each one, trying to match a sequence
	of (starter, non-starter, ...).	 This, however, does not produce
	the same results as it is violating some implicit ordering
	constraints in the Unicode tables.

	E.g., when composing the following sequence of codepoints, the
	original algorithm was picking:

	  03B7 0313 0300 0345
	  ^^^^	    ^^^^
	  1F74 0313	 0345
	  ^^^^	         ^^^^
	  1FC2 0313

	and would stop at 1FC2 0313 as there is no decomposition matching
	it.  The new algorithm, which follows the guidance of the pretty
	figure 7, ends up doing:

	  03B7 0313 0300 0345
	  ^^^^ ^^^^
	  1F20	    0300 0345
	  ^^^^	    ^^^^
	  1F22	         0345
	  ^^^^	         ^^^^
	  1F92

	resulting in the correct 1F92.

svn path=/trunk/mcs/; revision=155963
2010-04-22 21:25:04 +00:00
Miguel de Icaza 08d5d47c72 First patch from: Damien Diederen <[email protected]>
For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

	* Normalization.cs: Recursively apply the Unicode decomposition mapping.

	According to http://www.unicode.org/reports/tr15/tr15-31.html,
	section 1.3:

	"To transform a Unicode string into a given Unicode Normalization
	Form, the first step is to fully decompose the string. [...] Full
	decomposition involves recursive application of the
	Decomposition_Mapping values, because in some cases a complex
	composite character may have a Decomposition_Mapping into a
	sequence of characters, one of which may also have its own
	non-trivial Decomposition_Mapping value."

svn path=/trunk/mcs/; revision=155962
2010-04-22 21:24:18 +00:00
Miguel de Icaza cc0d8dfa30 2010-04-22 Miguel de Icaza <[email protected]>
* SerialPort.cs: Try to detect serial devices in other Unix
	systems. 

svn path=/trunk/mcs/; revision=155961
2010-04-22 20:50:27 +00:00
Miguel de Icaza aa1a36faa9 2010-04-22 Miguel de Icaza <[email protected]>
* SerialPort.cs: Try to detect serial devices in other Unix
	systems. 

svn path=/trunk/mcs/; revision=155960
2010-04-22 19:42:15 +00:00
Carlos Alberto Cortez 6fd4771daf 2010-04-22 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: Update our test after the 4.0 release.


svn path=/trunk/mcs/; revision=155956
2010-04-22 17:01:36 +00:00
Carlos Alberto Cortez 28462cf1c5 2010-04-22 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: The final 4.0 release removed the restriction of
	preceding zeroes when parsing, and it also added 't' and 'T' as valid
	formats equivalent to 'c' (default).


svn path=/trunk/mcs/; revision=155955
2010-04-22 16:59:03 +00:00
Atsushi Eno 90200efbcb 2010-04-22 Atsushi Enomoto <[email protected]>
* XamlMemberInvoker.cs : make sure GetValue() is not supported
	  on directives.

	* XamlMemberInvokerTest.cs : make sure GetValue() is not supported
	  on directives.


svn path=/trunk/mcs/; revision=155946
2010-04-22 12:13:16 +00:00
Atsushi Eno 07fbb342c4 2010-04-22 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs, TypeExtensionMethods.cs : now it can return
	  Type name correctly, with INamespacePrefixLookup implementation.

	* XamlObjectReaderTest.cs : enabled working tests. Add decent
	  namespace declaration node assertions in the next tests.


svn path=/trunk/mcs/; revision=155945
2010-04-22 11:54:12 +00:00
Atsushi Eno de0d9d0986 2010-04-22 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs, TypeExtensionMethods.cs : handle System.Type
	  as predefined type that returns Value instead of StartObject.
	  Rename some member getter methods to explicitly limit the scope to
	  object readers so far.


svn path=/trunk/mcs/; revision=155942
2010-04-22 10:47:03 +00:00
Atsushi Eno 881488f0f4 2010-04-22 Atsushi Enomoto <[email protected]>
* XamlMemberInvokerTest.cs : make sure that the invoker returns Type
	  for Type member here. (XamlObjectReader returns string for some
	  cases, so I wanted to make sure it is *not* here.)


svn path=/trunk/mcs/; revision=155941
2010-04-22 10:44:45 +00:00
Atsushi Eno 8f5692f151 2010-04-22 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs
	  XamlMember.cs
	  TypeExtensionMethods.cs
	  XamlType.cs : handle PositionalParameters, for Type type support.

	* XamlObjectReaderTest.cs : add another MarkupExtension test.


svn path=/trunk/mcs/; revision=155940
2010-04-22 10:18:48 +00:00
Geoff Norton 77a27cb559 Don't attempt to keep processing after processing all types.
Don't attempt to get interfaces of GenericParameters.

svn path=/trunk/mcs/; revision=155925
2010-04-21 23:36:19 +00:00
Miguel de Icaza b2314d05db Add new option -a to print out all the types
svn path=/trunk/mcs/; revision=155923
2010-04-21 21:20:44 +00:00
Miguel de Icaza 1ee621851e Update
svn path=/trunk/mono/; revision=155922
2010-04-21 21:20:41 +00:00
Veerapuram Varadhan b664161029 2010-04-21 Veerapuram Varadhan <[email protected]>
** Fixes #595918
	* Tds70.cs (WriteParameterInfo): Write updated decimal value
	according to specified scale value.

svn path=/trunk/mcs/; revision=155912
2010-04-21 20:21:41 +00:00
Sebastien Pouliot d771a26a10 2010-04-21 Sebastien Pouliot <[email protected]>
* XDocument.cs: Don't use XmlReaderSettings.ProhibitDtd when 
	building Moonlight SDK assemblies


svn path=/trunk/mcs/; revision=155877
2010-04-21 14:43:20 +00:00
Sebastien Pouliot 240f7e8f1d update System.Net.dll for SL4 API
svn path=/trunk/mcs/; revision=155874
2010-04-21 14:03:45 +00:00
Sebastien Pouliot eebe81e4e0 2010-04-21 Sebastien Pouliot <[email protected]>
* FileSystemInfo.cs: Ensure elevated trust when calling [Creation
	|LastAccess|LastWrite]Time setters

svn path=/trunk/mcs/; revision=155872
2010-04-21 13:25:55 +00:00
Sebastien Pouliot 3a383eff31 2010-04-21 Sebastien Pouliot <[email protected]>
* FileInfo.cs: Ensure elevated trust when calling Delete on 
	Moonlight.


svn path=/trunk/mcs/; revision=155869
2010-04-21 12:40:57 +00:00
Atsushi Eno a44a52a067 2010-04-21 Atsushi Enomoto <[email protected]>
* AsyncCallTest.cs : disable it again, it somehow does not work with
	  the latest code from trunk (ThreadPool?).


svn path=/trunk/mcs/; revision=155860
2010-04-21 10:54:55 +00:00
Atsushi Eno a8a5048e6c 2010-04-21 Astushi Enomoto <[email protected]>
* Http_listener_notes.txt: more comment.


svn path=/trunk/mcs/; revision=155858
2010-04-21 09:48:27 +00:00
Atsushi Eno adc4026eae 2010-04-21 Atsushi Enomoto <[email protected]>
* BindingContext.cs : require a TransportBindingElement when
	  building a channel listener.

	* CustomBindingTest.cs : enable BuildChannelListener test for no-
	  transport case. Test CanBuildChannelListener too.


svn path=/trunk/mcs/; revision=155857
2010-04-21 09:45:46 +00:00
Atsushi Eno 7a4779f90d 2010-04-21 Atsushi Enomoto <[email protected]>
* XDocument.cs : don't prohibit DTD.
	* XNodeNavigator.cs : do not return true in MoveToFirstChild()
	  when there is no child node. Fixed bug #594877.

	* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
	  tests that were commented out.


svn path=/trunk/mcs/; revision=155854
2010-04-21 08:41:54 +00:00
Atsushi Eno 61ec829ea9 2010-04-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, DTDReader.cs : 0xFFFF was treated as if it were
	  0x10000. (It is invalid and should be rejected by decent
	  XmlReaders usage though.) Fixed bug #594628.


svn path=/trunk/mcs/; revision=155853
2010-04-21 08:19:39 +00:00
Ankit Jain 4131060ec0 * Makefile: Remove unnecessary "/" in the paths.
Fixes windows build (thanks to Atsushi Eno).

svn path=/trunk/mcs/; revision=155850
2010-04-21 07:28:28 +00:00
Rodrigo Kumpera 156fe2856c 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add tests for #331126.

svn path=/trunk/mcs/; revision=155848
2010-04-21 00:28:49 +00:00
Rodrigo Kumpera fe4d4f116f 2010-04-20 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_type_is_assignable_from): Properly handle
	* byref
	types.

	Fixes #331126

svn path=/trunk/mono/; revision=155847
2010-04-21 00:27:16 +00:00
Mark Probst 4f251ac4f4 2010-04-21 Mark Probst <[email protected]>
* sgen-gc.c: Turn off semi-precise stack mark.

svn path=/trunk/mono/; revision=155846
2010-04-20 23:39:39 +00:00
Marek Habersack 9b87d46bdf 2010-04-21 Marek Habersack <[email protected]>
* HttpApplication.cs: update to fix for bug #572469 - ProcessError
    	clears the error after handler return only if stop_processing is
    	true. Also, stop_processing is never set before calling ProcessError

    Also added two more tests for the issue.

svn path=/trunk/mcs/; revision=155841
2010-04-20 22:35:31 +00:00
Jackson Harper f8c11c62d7 add ISupportInitialize to the moonlight build.
svn path=/trunk/mcs/; revision=155837
2010-04-20 20:09:29 +00:00
Sebastien Pouliot 80ec321e78 2010-04-20 Sebastien Pouliot <[email protected]>
* reflection.c (mono_custom_attrs_from_index): Use right function
	to free 'list' (i.e. g_list_free) if the verifier fails.


svn path=/trunk/mono/; revision=155834
2010-04-20 19:46:09 +00:00
Rodrigo Kumpera 2b093308da 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Enable a bunch of asserts.
	They regression test #331126.

svn path=/trunk/mcs/; revision=155833
2010-04-20 19:29:48 +00:00
Rodrigo Kumpera 736df07e26 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (CreateType): Move default constructor
	and createTypeCalled assignment to before the parent checks.

	* TypeBuilder.cs (is_created): Return true even if creation
	fails.

	Fixes #331126

svn path=/trunk/mcs/; revision=155832
2010-04-20 19:29:34 +00:00
Rodrigo Kumpera 417844ad07 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Slay all 1.0 code.

svn path=/trunk/mcs/; revision=155831
2010-04-20 19:29:21 +00:00
Rodrigo Kumpera d4241184ec 2010-04-20 Rodrigo Kumpera <[email protected]>
* BinderTest.cs: Add tests for #325306.

svn path=/trunk/mcs/; revision=155829
2010-04-20 17:34:39 +00:00
Rodrigo Kumpera a3b2659db5 2010-04-20 Rodrigo Kumpera <[email protected]>
* Binder.cs (SelectMethod): Exact matching must check
	all entries because if two of them match, we must use
	the slow path.

	* Binder.cs (GetBetterMethod): Don't give generic method
	definition special treatment.

	Fixes #325306.

svn path=/trunk/mcs/; revision=155828
2010-04-20 17:34:30 +00:00
Rodrigo Kumpera 95a05d84f3 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Fix the test suite.

svn path=/trunk/mcs/; revision=155827
2010-04-20 17:34:20 +00:00
Jonathan Pryor 3d1b2ab805 Cleanup Android support, replacing platform checks with configure checks:
* configure.in: Check for the asm/sigcontext.h header.
	* mono/mini/exceptions-arm.c: Remove platform checks in favor of 
	  configure checks.
	* mono/io-layer/collection.c: Cleanup platform checks around
	  pthread_attr_setstacksize(), and instead always use
	  MAX(65536, PTHREAD_STACK_MIN) as the stack size.
	* mono/io-layer/mono-mutex.c: Remove near duplicate 
	  pthread_mutex_timedlock() declarations, and merge via a CONST_NEEDED 
	  intermediate #define.

svn path=/trunk/mono/; revision=155826
2010-04-20 16:17:05 +00:00
Gonzalo Paniagua Javier cf322b224a 2010-04-20 Gonzalo Paniagua Javier <[email protected]>
* ChunkStream.cs: ignore chunk extensions when reading the chunk
	size. Fixes bug #597556.


svn path=/trunk/mcs/; revision=155815
2010-04-20 15:54:28 +00:00
Andrés G. Aragoneses 550cf1e0b5 README: Replace --with-profile2 with --with-profile4.
svn path=/trunk/mono/; revision=155814
2010-04-20 15:52:49 +00:00
Jonathan Pryor 5efd6c6f49 * configure.in: On OpenBSD, remove duplicate -pthread options in
libmono_ldflags.  Change from Robert Nagy <[email protected]>.

svn path=/trunk/mono/; revision=155808
2010-04-20 13:33:52 +00:00
Jonathan Pryor c08f93d0c1 * configure.in: For Linux hosts, remove libmono_ldflags="-lpthread".
It's unnecessary (for !target_win32, pthreads are checked again 
	  later in configure.in), and it breaks Android (which doesn't have
	  libpthread, but DOES have pthreads in libc).

svn path=/trunk/mono/; revision=155800
2010-04-20 12:25:15 +00:00
Atsushi Eno cd3218f786 2010-04-20 Atsushi Enomoto <[email protected]>
* TypeExtensionMethods.cs : add IsContentValue() for member and
	  return true for "_Initialization".
	* XamlObjectReader.cs : use above.

	* XamlObjectReaderTest.cs : added a bunch of read detail tests (lots
	  on not-working ones).


svn path=/trunk/mcs/; revision=155798
2010-04-20 11:57:50 +00:00
Atsushi Eno 82e202aac6 2010-04-20 Atsushi Enomoto <[email protected]>
* XamlType.cs : implement LookupPositionalParameters().

	* XamlTypeTest.cs : added tests for GetPositionalParameters().


svn path=/trunk/mcs/; revision=155793
2010-04-20 11:38:32 +00:00
Atsushi Eno cf0c0498f2 2010-04-20 Atsushi Enomoto <[email protected]>
* ArrayExtension.cs : remove MonoTODO.


svn path=/trunk/mcs/; revision=155792
2010-04-20 11:36:18 +00:00
Atsushi Eno b9a8ca5a18 2010-04-20 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs : use Type, not TargetType.


svn path=/trunk/mcs/; revision=155791
2010-04-20 11:35:27 +00:00
Atsushi Eno 9a7b98043e 2010-04-20 Astushi Enomoto <[email protected]>
* Http_listener_notes.txt: added explanation on *why* it is SO hard
	  to solve.


svn path=/trunk/mcs/; revision=155789
2010-04-20 10:41:05 +00:00
Atsushi Eno d677acfe78 2010-04-20 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : workaround NRE issue in AsyncCallTest.
	  The original code was worse than this workaround.


svn path=/trunk/mcs/; revision=155788
2010-04-20 09:43:19 +00:00
Jonathan Pryor 7f18b8cc26 * configure.in: Disable AC_CHECK_LIB() for pthread, as this breaks
autoconf on BSD platforms.  (Why?  Who knows -- it's AutoConf!)

svn path=/trunk/mono/; revision=155775
2010-04-19 22:36:12 +00:00
Rodrigo Kumpera 6cafa52019 2010-04-19 Rodrigo Kumpera <[email protected]>
* verify.c: Handle the case where mono_type_get_underlying_type_any
	returns NULL. Remove duplicated code between MONO_TYPE_GENERICINST
 	and MONO_TYPE_VALUETYPE in those case.

	Based on a slightly modified patch by Sebastien Pouliot <[email protected]>

	Hopefully Fixes #564253.

svn path=/trunk/mono/; revision=155771
2010-04-19 21:50:59 +00:00
Gonzalo Paniagua Javier 4baa4b8dcf 2010-04-19 Gonzalo Paniagua Javier <[email protected]>
* domain-internals.h: made threadpool_jobs volatile.
	* mono-wsq.c: add an assert to verify that the threadpool cleaned up
	all local jobs.
	* threadpool.c:
		-When two threads try to initialize the socket IO pool,
		the second one waits until the intialization is finished
		instead of continuing right away.
		-Add checks for domain unload: no items added in this case.
		-Only measure the time every 10 elements added to the queue.
		This is an experiment since linux x86 gettimeofday() sucks.
		-Create new thread if there are none waiting for work items.
		-There was a missing decrement of the busy threads.
		-Make sure the local queue is cleaned up before exiting the
		thread when the program ends.


svn path=/trunk/mono/; revision=155767
2010-04-19 21:21:14 +00:00
Gonzalo Paniagua Javier 7ccfcda370 2010-04-19 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: don't call Z_FINISH if nothing has been written.


svn path=/trunk/mono/; revision=155764
2010-04-19 21:12:08 +00:00
Jonathan Pryor e965fa47ce * src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in
terms of g_critical() instead of printf, and turn g_printerr() into
	  an actual function instead of a macro.
	* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
	  and g_log() messages to the Android system log.

svn path=/trunk/mono/; revision=155763
2010-04-19 20:56:15 +00:00
Jonathan Pryor 571d425e13 * configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
	  support within libc and doesn't provide a separate libpthread.
	  Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
	  in a build error in mono/utils/mono-codeman.c due to
	  `struct mallinfo` re-declaration.  Define HAVE_USR_INCLUDE_MALLOC_H
	  if /usr/include/malloc.h is present to avoid this.
	* mono/io-layer/collection.c, mono-mutex.c: Add Android support.
	* mono/mini/exceptions-arm.c: Add Android support for sigcontext 
	  structure.

svn path=/trunk/mono/; revision=155759
2010-04-19 20:43:23 +00:00
Jonathan Pryor 34977c6415 * configure.in: Add header, structure member, and function checks as
Android doesn't provide all the headers, structure members, and 
	  functions that a "full" Linux distro includes.
	* support/dirent.c, support/grp.c, support/macros.c, support/pwd.c, 
	  support/signal.c, support/sys-statvfs.c, support/sys-time.c,
	  support/unistd.c: Add #if HAVE_XXX checks for functions which aren't
	  provided on Android.

svn path=/trunk/mono/; revision=155753
2010-04-19 20:07:18 +00:00
Rodrigo Kumpera 0b02929bb7 2010-04-19 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add regression test for #473289.

svn path=/trunk/mcs/; revision=155751
2010-04-19 19:17:42 +00:00
Rodrigo Kumpera 743b2781b3 2010-04-19 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_type_get_object): Normalize generics types
	as to how managed code expect them to be. A generic instance
over
	the GTD arguments must have the same mirror as the GTD itself.

	Fixes #473289.

svn path=/trunk/mono/; revision=155750
2010-04-19 19:17:25 +00:00
Jonathan Pryor 26311c1078 * include/private/gcconfig.h: Android platforms are built atop Linux,
don't use glibc, and uses `environ` instead of `__environ`.
	* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
	  just blindly linking to -lpthread, as Android includes pthread
	  support within libc and doesn't provide a separate libpthread.

svn path=/trunk/mono/; revision=155747
2010-04-19 18:49:27 +00:00
Sebastien Pouliot 3e080121ac 2010-04-19 Sebastien Pouliot <sebastien at ximian.com>
* Mono.Cecil/ReflectionWriter.cs: Partial (forwarders) fix for
	writing ExternTypes (needed for tuning ML4 correctly)


svn path=/trunk/mcs/; revision=155742
2010-04-19 18:25:25 +00:00
Zoltan Varga 9780433f58 2010-04-19 Zoltan Varga <[email protected]>
* locales.c: Implement support for DISABLE_NORMALIZATION.

svn path=/trunk/mono/; revision=155719
2010-04-19 11:09:29 +00:00
Zoltan Varga 8b0499c8be 2010-04-19 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-minimal=normalization option to disable support
	for string normalization.

svn path=/trunk/mono/; revision=155718
2010-04-19 11:09:23 +00:00
Jérémie Laval c9d1b566ad 2010-04-19 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/Internal/:
   * ThreadWorker.cs: Cleanup and refactoring

svn path=/trunk/mcs/; revision=155717
2010-04-19 10:59:49 +00:00
Carlos Alberto Cortez afa7643214 * NotifyIcon.cs: Make BalloonWindow expose the owner's Handle.
* Theme.cs:
	* ThemeWin32Classic.cs: Add a HideBalloonWindow method to force to
	close an active balloon window.
	* XplatUIX11.cs: When removing from the system tray try to close
	the balloon window. This is important when we hide a NotifyIcon and
	thus need to close its related balloon window as well.
	Fixes bits of #590093.

2010-04-19  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=155713
2010-04-19 10:51:38 +00:00
Carlos Alberto Cortez ca15ff7f24 2010-04-19 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: When adding a NotifyIcon to the system tray, mark its
	Hwnd.mapped as true, since its handle is going to be mapped later by
	the tray (not us), but we need to know it's alive and can later properly unmap
	it.
	Fixes part of #590093.


svn path=/trunk/mcs/; revision=155705
2010-04-19 09:27:55 +00:00
Zoltan Varga 0acf9469fb Fix warnings.
svn path=/trunk/mcs/; revision=155701
2010-04-19 08:41:42 +00:00
Zoltan Varga 587b9ab706 Fix a warning.
svn path=/trunk/mcs/; revision=155700
2010-04-19 08:41:34 +00:00
Zoltan Varga 6c43fcfc60 Fix a warning.
svn path=/trunk/mcs/; revision=155699
2010-04-19 08:41:28 +00:00
Zoltan Varga 0d4aa9fc89 2010-04-19 Zoltan Varga <[email protected]>
* CompareInfo.cs (IndexOf): Return startIndex instead of 0 for empty strings.
	Fixes #597604.

svn path=/trunk/mcs/; revision=155698
2010-04-19 08:28:50 +00:00
Zoltan Varga b6c3fb395d 2010-04-18 Zoltan Varga <[email protected]>
* CharTest.cs: Add missing [TestFixture] attribute.

svn path=/trunk/mcs/; revision=155697
2010-04-19 08:28:43 +00:00
Atsushi Eno 32cf28affb 2010-04-19 Atsushi Enomoto <[email protected]>
* AsyncPatternTester.cs, MessageContractTest.cs, AsyncCallTest.cs:
	  enable working tests.


svn path=/trunk/mcs/; revision=155694
2010-04-19 07:29:04 +00:00
Atsushi Eno 18949880fe 2010-04-19 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : use local var to hold wait handle to avoid
	  possible NRE on field. Based on the patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=155692
2010-04-19 03:53:24 +00:00
Atsushi Eno b60da18f0d 2010-04-18 Atsushi Enomoto <[email protected]>
* XamlType.cs : do not return index property.
	* TypeExtensionMethods.cs : return Initialization only for value nodes.
	* XamlObjectReader.cs : member content can be either a value or a new
	  object. Fix certain EndObject transition to become EndMember, not
	  EndObject twice.

	* XamlObjectReaderTest.cs : enable working test.


svn path=/trunk/mcs/; revision=155685
2010-04-18 15:11:46 +00:00
Atsushi Eno c62bf19622 2010-04-18 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs, XamlSchemaContext.cs, XamlLanguage.cs:
	  collect namespace declarations first. Remove extra [XmlnsPrefix]
	  on the assembly, and handle it specially in GetPreferredPrefix(),


svn path=/trunk/mcs/; revision=155682
2010-04-18 13:00:54 +00:00
Atsushi Eno 2e60291be7 2010-04-18 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs : check constructible type. Remove extra ns node.

	* XamlObjectReaderTest.cs : enable working tests and remove invalid
	  comment.


svn path=/trunk/mcs/; revision=155681
2010-04-18 12:16:29 +00:00
Atsushi Eno 2b2f548906 2010-04-18 Atsushi Enomoto <[email protected]>
* XamlType.cs : ignore ReferenceConverter which is used for IList<T>.

	* XamlObjectReaderTest.cs : add simple read tests for some types.


svn path=/trunk/mcs/; revision=155680
2010-04-18 11:51:11 +00:00
Jonathan Pobst 14883556a9 Remove unused var and declare variables first to fix msvc build.
svn path=/trunk/mono/; revision=155679
2010-04-18 02:35:21 +00:00
Carlos Alberto Cortez 9d56ca1aeb 2010-04-17 Carlos Alberto Cortez <[email protected]>
* TreeViewTest.cs: New test for Sorted and BeginUpdate interaction.


svn path=/trunk/mcs/; revision=155678
2010-04-18 01:13:36 +00:00
Raja R Harinath 1462de03a7 Keep "ftp://a.b/%2fcd" urls unmolested
* System/Uri.cs (CompactEscaped): New.  Check if scheme allows escaped
path characters are compacted (list of schemes obtained from MSDN).
(Reduce): Add argument that is set if escaped characters need to
be compacted.
* Tests/System/UriTest.cs (FtpRootPath): New.  Check that ftp root paths are
unmolested.

svn path=/trunk/mcs/; revision=155670
2010-04-17 10:33:03 +00:00
Rodrigo Kumpera 7ce86f9a17 2010-04-16 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add regression test for #484246.

svn path=/trunk/mcs/; revision=155665
2010-04-16 21:37:22 +00:00
Rodrigo Kumpera 989e423533 2010-04-16 Rodrigo Kumpera <[email protected]>
* MonoType.cs (GetInterface): Compare against the name
	of the generic type definition.

	Fixes #484246.

svn path=/trunk/mcs/; revision=155664
2010-04-16 21:37:12 +00:00
Miguel de Icaza 61fe6494de Guard for NULLs
svn path=/trunk/mono/; revision=155663
2010-04-16 21:04:39 +00:00
Miguel de Icaza 966b146abc 2010-04-16 Miguel de Icaza <[email protected]>
* src/gshell.c (g_shell_unquote): Implement this.



svn path=/trunk/mono/; revision=155662
2010-04-16 20:59:21 +00:00
Rodrigo Kumpera e8d9f1cc88 2010-04-16 Rodrigo Kumpera <[email protected]>
* AttributeTest.cs: Add regression test for #499569.

svn path=/trunk/mcs/; revision=155661
2010-04-16 20:40:52 +00:00
Rodrigo Kumpera 4ecbb96dc6 2010-04-16 Rodrigo Kumpera <[email protected]>
* MonoCustomAttrs.cs (GetBasePropertyDefinition): Use
	GetBaseMethod instead of GetMethodDefinition otherwise
	we skip intermediate overloads.

	Fixes #499569.

svn path=/trunk/mcs/; revision=155660
2010-04-16 20:40:42 +00:00
Zoltan Varga 828cffa8bf 2010-04-16 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Implement the check for native func
	wrappers correctly now that their wrapper info is NULL.

svn path=/trunk/mono/; revision=155659
2010-04-16 20:23:57 +00:00
Zoltan Varga 6f61513ed1 2010-04-16 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_native_func_wrapper): Set the marshal info to NULL,
	since it is not a MonoMethod.

svn path=/trunk/mono/; revision=155658
2010-04-16 20:23:50 +00:00
Carlos Alberto Cortez e2dffc5698 2010-04-16 Carlos Alberto Cortez <[email protected]>
* TreeViewTest.cs: New test for automatical sorting.


svn path=/trunk/mcs/; revision=155657
2010-04-16 20:12:17 +00:00
C.J. Adams-Collier 96f6b02987 noted that I'll maintain revived mono-api-diff
svn path=/trunk/mcs/; revision=155656
2010-04-16 20:10:44 +00:00
Carlos Alberto Cortez 6987055b13 2010-04-16 Carlos Alberto Cortez <[email protected]>
* TreeNodeCollection.cs: When adding/inserting/setting a new node call
	TreeView.Sort if needed, and update/recalculate this entire
	collection in that case.
	* TreeView.cs: Make 'sorted' internal, instead of directly using
	Sorted, as this one could trigger a complete Sort() operation.


svn path=/trunk/mcs/; revision=155655
2010-04-16 20:10:25 +00:00
Zoltan Varga 16ddfc8986 2010-04-16 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid calling
	mono_marshal_method_from_wrapper () for native func wrappers. Fixes #597189.

svn path=/trunk/mono/; revision=155653
2010-04-16 19:53:37 +00:00
C.J. Adams-Collier 8eb62a203f patched for post-mono-2-2
svn path=/trunk/mcs/; revision=155652
2010-04-16 19:40:06 +00:00
C.J. Adams-Collier 8ef4e47031 copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history preserved
svn path=/trunk/mcs/; revision=155651
2010-04-16 19:38:29 +00:00
Zoltan Varga 72d62849cc Fix a warning.
svn path=/trunk/mono/; revision=155649
2010-04-16 19:15:13 +00:00
Gonzalo Paniagua Javier 642da69a26 2010-04-16 Gonzalo Paniagua Javier <[email protected]>
* test/ptrarray.c: new tests
	* src/gptrarray.c: implemented g_ptr_array_remove_fast().


svn path=/trunk/mono/; revision=155648
2010-04-16 18:59:20 +00:00
Raja R Harinath 62dcf4f5d7 allow profiles to build System.dll with the profile compiler rather than the bootstrap compiler
build/profiles/net_4_0_bootstrap.make (PROFILE_MCS_HAS_BOOTSTRAP_FALLBACK):
New.  Can be set if we have BOOTSTRAP_PROFILE listed in the
MONO_PATH of MCS, and the profile's System.dll depends features
the profile's mscorlib.dll.
class/System/Makefile (LIBRARY_COMPILE) [USE_BOOT_COMPILE]:
Don't override if the profile says it isn't necessary by setting
PROFILE_MCS_HAS_BOOTSTRAP_FALLBACK.

cleanup and generalize r155638

svn path=/trunk/mcs/; revision=155646
2010-04-16 18:33:44 +00:00
Raja R Harinath 90018ab882 * basic-profile-check.cs: Add use of 'var' keyword.
svn path=/trunk/mcs/; revision=155645
2010-04-16 18:33:03 +00:00
Sebastien Pouliot e6fd69e444 2010-04-16 Sebastien Pouliot <[email protected]>
* Directory.cs: Ensure elevated trust when calling on 
	Moonlight.
	* DirectoryInfo.cs: Ensure elevated trust when calling a .ctor 
	on Moonlight.
	* File.cs: Ensure elevated trust when calling a .ctor on 
	Moonlight.
	* FileInfo.cs: Ensure elevated trust when calling a .ctor on 
	Moonlight.
	* FileStream.cs: Ensure elevated trust when calling a .ctor on 
	Moonlight. Name property returns "[Unknown]" unless a Moonlight
	application is executed with elevated trust.
	* Path.cs: Ensure elevated trust when calling a GetTempPath,
	GetTempFileName or GetFullPath on Moonlight. Add a shared 
	internal method to validate paths to reduce code duplication.


svn path=/trunk/mcs/; revision=155643
2010-04-16 17:29:07 +00:00
Sebastien Pouliot 59c8fb2aee * Environment.cs: Ensure elevated trust when calling
GetFolderPath on Moonlight

2010-04-16  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=155642
2010-04-16 17:28:41 +00:00
Jonathan Pryor 44bdaa2cd2 * Makefile: Add System.Xml.Linq.dll to the referenced assemblies.
* Mono.Documentation/webdoc.cs: Allow .source files to be provided to
	  'mdoc export-html-webdoc', which will cause the .source files to be
	  read and all referenced .tree/.zip files to be processed.

svn path=/trunk/mcs/; revision=155641
2010-04-16 17:20:35 +00:00
Jonathan Pryor 2edf7b225e * Mono.Documentation/monodocer.cs: Use Int64 instead of UInt64 for
enum values, so that we can properly capture negative values.

svn path=/trunk/mcs/; revision=155640
2010-04-16 17:18:03 +00:00
Atsushi Eno 4f3db14ed4 2010-04-16 Atsushi Enomoto <[email protected]>
* XamlType.cs : cache member lookup.

	* XamlMemberTest.cs, XamlXmlReaderTest.cs :
	  a few correction and additions on member equality.


svn path=/trunk/mcs/; revision=155639
2010-04-16 17:01:41 +00:00
Marek Habersack 6c3bd8350b System.dll needs to be bootstrapped with dmcs in the 4.0 profile. Fixes the build.
svn path=/trunk/mcs/; revision=155638
2010-04-16 16:27:22 +00:00
Sebastien Pouliot ad2944d893 2010-04-16 Sebastien Pouliot <[email protected]>
* SecurityManager.cs: Add stub for new methods (so code compiles
	correctly under other profiles)
	* SecurityManager_2_1.cs: Implement [Check|Ensure]ElevatedPermissions
	for Moonlight Elevated Trust


svn path=/trunk/mcs/; revision=155633
2010-04-16 14:41:34 +00:00
Sebastien Pouliot 800c2e20f0 2010-04-16 Sebastien Pouliot <[email protected]>
* icall-def.h: Add get_RequiresElevatedPermissions icall to
	System.Security.SecurityManager - used only by Moonlight
	* security-core-clr.c|h: Add Elevated Trust/Permission support
	for CoreCLR / Moonlight


svn path=/trunk/mono/; revision=155632
2010-04-16 14:39:02 +00:00
Sebastien Pouliot 3009ec5a50 2010-04-16 Sebastien Pouliot <[email protected]>
* Actions.cs: Forward Action() to mscorlib.dll and add the new
	Action<...T16> delegates
	* Funcs.cs: Add the new Func<...T16> delegates
	* TimeZoneInfo.cs: Forward to mscorlib.dll


svn path=/trunk/mcs/; revision=155630
2010-04-16 13:21:02 +00:00
Sebastien Pouliot 0e265ccd0f 2010-04-16 Sebastien Pouliot <[email protected]>
* Action.cs: SL4 moved some Action in mscorlib
	* Funcs.cs: SL4 moved some Func<> in mscorlib
	* String.cs: Make IsNullOrWhiteSpace available, internally, 
	before NET_4_0 (or SL4) since it's proving useful.


svn path=/trunk/mcs/; revision=155629
2010-04-16 13:20:29 +00:00
Sebastien Pouliot bfaef1e6bc 2010-04-16 Sebastien Pouliot <[email protected]>
* HashSet.cs: Implement ISet<T> in MOONLIGHT too


svn path=/trunk/mcs/; revision=155628
2010-04-16 12:47:38 +00:00
Atsushi Eno 187b0d5f53 2010-04-16 Atsushi Enomoto <[email protected]>
* XamlMember.cs : cosmetic equivalence change.

	* XamlMemberTest.cs, XamlXmlReaderTest.cs : some member equivalence
	  tests. Commented out some assertions that won't work for a while.


svn path=/trunk/mcs/; revision=155620
2010-04-16 10:12:12 +00:00
Atsushi Eno 178841ff1c 2010-04-16 Atsushi Enomoto <[email protected]>
* XamlXmlReader.cs : Resolve generic type names. Process attribute
	  members.
	* XamlLanguage.cs : add XamlTypeName-to-ClrType method.
	* XmlSchemaContext.cs : extracted special type name handling to above.

	* XamlXmlReaderTest.cs : add more detailed read tests, and more
	  file-based tests (not working yet).

	* Dictionary_Int32_String.xml, Dictionary_String_Type.xml :
	  add more test files (not working though).


svn path=/trunk/mcs/; revision=155619
2010-04-16 09:31:50 +00:00
Atsushi Eno bb1afbe6e3 2010-04-16 Atsushi Enomoto <[email protected]>
* XmlFilterReader.cs : implement IXmlNamespaceResolver.


svn path=/trunk/mcs/; revision=155617
2010-04-16 09:15:38 +00:00
Zoltan Varga 97fd676f3e 2010-04-16 Zoltan Varga <[email protected]>
* boehm-gc.c (mono_gc_base_init): Applied patch from Robert Nagy
	([email protected]). Fix GC_stackbottom calculation on OpenBSD.

svn path=/trunk/mono/; revision=155615
2010-04-16 09:14:26 +00:00
Zoltan Varga 916c9bd899 2010-04-16 Zoltan Varga <[email protected]>
* genmdesc.c (inst_name): Define this as a copy of mono_inst_name in helpers.c,
	so the latter can be #ifndef DISABLE_JIT-ed.

	* helpers.c: Comment out the opstr array if DISABLE_JIT is set.

svn path=/trunk/mono/; revision=155608
2010-04-16 03:28:26 +00:00
Zoltan Varga 0a1d24180f 2010-04-16 Zoltan Varga <[email protected]>
* method-to-ir.c driver.c: Disable a few more things when DISABLE_JIT is set.

svn path=/trunk/mono/; revision=155607
2010-04-16 02:59:31 +00:00
Gonzalo Paniagua Javier f0f2e24381 2010-04-15 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: set content length to -1 on redirect. Reset
	'FinishedReading' on redirects. Fixes bug #593596.


svn path=/trunk/mcs/; revision=155604
2010-04-16 02:16:12 +00:00
Zoltan Varga 1f2c219ec2 2010-04-16 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_entry_bb): Fix support for simd arguments passed on the
	stack.

svn path=/trunk/mono/; revision=155579
2010-04-15 22:47:58 +00:00
Marek Habersack 4c5c9ea6d4 Missed two underscores - thanks to Robert Nagy <[email protected]> for catching this
svn path=/trunk/mono/; revision=155578
2010-04-15 22:41:51 +00:00
Marek Habersack 67cfed8f27 2010-04-16 Marek Habersack <[email protected]>
* configure.in: added a check for sysconf(3)

    2010-04-16  Marek Habersack  <[email protected]>

    	* mono-perfcounters.c: added code for the "Mono
    	Memory/Total Physical Memory" performance counter.

    	* mono-perfcounters-def.h: added definition of the "Mono
    	Memory/Total Physical Memory" performance counter.

svn path=/trunk/mono/; revision=155566
2010-04-15 22:24:33 +00:00
Rodrigo Kumpera 08cef12c9a 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_method_by_index): Return NULL
	on type load failures.

svn path=/trunk/mono/; revision=155545
2010-04-15 20:49:57 +00:00
Jérémie Laval 59183775f8 2010-04-15 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/Partitioners/:

   * ChangeLog: Add forgotten log message

svn path=/trunk/mcs/; revision=155544
2010-04-15 20:20:04 +00:00
Jérémie Laval a6a2b85b49 2010-04-15 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/Partitioners/:
   * ListPartitioner.cs: Remove playground code

svn path=/trunk/mcs/; revision=155543
2010-04-15 20:19:54 +00:00
Jérémie Laval a545bfcb1b 2010-04-15 Jérémie Laval <[email protected]>
In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs: Tweak Skip unit test to avoid deadlocking for now

svn path=/trunk/mcs/; revision=155542
2010-04-15 20:19:44 +00:00
Atsushi Eno c0767aaffc 2010-04-16 Atsushi Enomoto <[email protected]>
* XamlType.cs : sort of reverted AllowedContentTypes.
	  msdn explanation is so wrong.


svn path=/trunk/mcs/; revision=155541
2010-04-15 19:49:15 +00:00
Atsushi Eno 38cc67c7bf 2010-04-16 Atsushi Enomoto <[email protected]>
* DateTimeValueSerializer.cs, NameReferenceConverter.cs :
	  implement.


svn path=/trunk/mcs/; revision=155540
2010-04-15 19:30:16 +00:00
Rodrigo Kumpera e95eefb344 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_from_typeref): Check if the supplied
	image has an assembly bound to it.

	Fixes #567884.

svn path=/trunk/mono/; revision=155539
2010-04-15 19:29:51 +00:00
Atsushi Eno be89447a55 2010-04-16 Atsushi Enomoto <[email protected]>
* XamlSchemaContext.cs : implement GetXamlDirective().


svn path=/trunk/mcs/; revision=155538
2010-04-15 19:29:24 +00:00
Jb Evain 4dbc8ad01f 2010-04-15 Jb Evain <[email protected]>
* GuidTest.cs: add tests for net_4_0 ParseExact methods.


svn path=/trunk/mcs/; revision=155537
2010-04-15 19:26:09 +00:00
Jb Evain bb10771953 2010-04-15 Jb Evain <[email protected]>
* Guid.cs: rework the Guid parser to implement the net_4_0
	[Try]ParseExact methods.


svn path=/trunk/mcs/; revision=155536
2010-04-15 19:25:17 +00:00
Jérémie Laval f035f2879f 2010-04-15 Jérémie Laval <[email protected]>
In class/System.Core/:
   * System.Core_test.dll.sources: Add PLinq unit tests

In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs:
   * ParallelTestHelper.cs: Add PLinq unit tests

svn path=/trunk/mcs/; revision=155534
2010-04-15 19:02:02 +00:00
Jérémie Laval c88dec6d92 2010-04-15 Jérémie Laval <[email protected]>
In class/System.Core/:
   * net_4_0_System.Core.dll.sources: add PLinq sources

In class/System.Core/System.Linq/:
   * OrderedParallelQuery.cs:
   * ParallelEnumerable.cs:
   * ParallelExecuter.cs:
   * ParallelPartitioner.cs:
   * ParallelQuery.cs:
   * ParallelQueryEnumerator.cs: First check-in of PLinq

In class/System.Core/System.Linq/Internal/:
   * AggregationList.cs:
   * ConcurrentGrouping.cs:
   * ConcurrentLookup.cs:
   * OrderingEnumerator.cs:
   * ParallelQuickSort.cs:
   * RangeList.cs:
   * RepeatList.cs:
   * ReverseList.cs:
   * StripPartitioner.cs: Initial check-in of PLinq

In class/System.Core/System.Linq/Internal/QueryNodes/:
   * QueryBaseNode.cs:
   * QueryCastNode.cs:
   * QueryChildNode.cs:
   * QueryConcatNode.cs:
   * QueryDefaultEmptyNode.cs:
   * QueryGroupByNode.cs:
   * QueryMuxNode.cs:
   * QueryOptionNode.cs:
   * QueryOrderByNode.cs:
   * QueryOrderGuardNode.cs:
   * QueryOrderedStreamNode.cs:
   * QueryReverseNode.cs:
   * QuerySelectManyNode.cs:
   * QuerySelectNode.cs:
   * QuerySetNode.cs:
   * QueryStartNode.cs:
   * QueryStreamNode.cs:
   * QueryWhereNode.cs:
   * QueryZipNode.cs:
   * WrapHelper.cs: Initial check-in of PLinq

In class/System.Core/System.Linq/Internal/Visitors/:
   * INodeVisitor.cs:
   * IVisitableNode.cs:
   * QueryCheckerVisitor.cs:
   * QueryOptions.cs: First check-in of PLinq

svn path=/trunk/mcs/; revision=155533
2010-04-15 19:01:50 +00:00
Jérémie Laval ea2b4c0352 2010-04-15 Jérémie Laval <[email protected]>
In class/System.Core/System.Linq/:
   * ParallelExecutionMode.cs:
   * ParallelMergeOptions.cs: Initial check-in of PLinq (enum)

In class/System.Core/System.Linq/Internal/QueryNodes/:
   * SetInclusion.cs: Initial check-in of PLinq (enum)

svn path=/trunk/mcs/; revision=155532
2010-04-15 19:01:37 +00:00
Jérémie Laval 0d765d035d 2010-04-15 Jérémie Laval <[email protected]>
In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs:
   * ConcurrentBag.cs: Add BOOTSTRAP_NET_4_0

In class/System/System.Threading/:
   * Barrier.cs: Add BOOTSTRAP_NET_4_0

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentSkipList.cs:
   * OrderablePartitioner.cs:
   * Partitioner.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Collections/:
   * IStructuralComparable.cs:
   * IStructuralEquatable.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Task.cs:
   * TaskCanceledException.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * TaskStatus.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System.Threading/:
   * AtomicBoolean.cs:
   * CountdownEvent.cs:
   * SpinLock.cs: Add BOOTSTRAP_NET_4_0 define

In class/corlib/System/:
   * Tuple.cs:
   * Tuples.cs: Add BOOTSTRAP_NET_4_0 define

svn path=/trunk/mcs/; revision=155531
2010-04-15 19:01:26 +00:00
Rodrigo Kumpera 1c6fddc116 2010-04-15 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Use new function
	inflate_generic_signature_checked to check for errors.

	Fixes #560839.

svn path=/trunk/mono/; revision=155528
2010-04-15 18:31:06 +00:00
Rodrigo Kumpera a947192eb6 2010-04-15 Rodrigo Kumpera <[email protected]>
* loader.c (inflate_generic_signature): Add _checked variant
	and move this function to use it.

svn path=/trunk/mono/; revision=155527
2010-04-15 18:30:58 +00:00
Rodrigo Kumpera 5c07c6f32c 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_vtable_general): Use error checking
	version of mono_class_inflate_generic_method_full.

	Fixes #596975.

svn path=/trunk/mono/; revision=155524
2010-04-15 17:42:37 +00:00
Jonathan Pryor f354fe018b * UnixSignal.cs: Change the native WaitAny() method to accept a
Mono_Posix_RuntimeIsShuttingDown delegate, so that we can prevent an
	  infinite loop while shutting the process down.  Fixes #592981.

svn path=/trunk/mcs/; revision=155521
2010-04-15 17:31:46 +00:00
Jonathan Pryor cbc04e59b2 * Makefile.am: Revert previous linkage against libmono.so, as lupus
mentioned that it's unacceptable for MonoPosixHelper to link against
	  libmono (e.g. when embedding mono, there might not be a libmono).
	* map.h: Flush updated Mono_Unix_UnixSignal_SignalInfo prototype.
	* signal.c: Don't use mono_runtime_is_shutting_down(). Instead, change
	  Mono_Unix_UnixSignal_WaitAny() to accept a function pointer argument,
	  which will return Environment.HasShutdownStarted in managed code (the 
	  moral equivalent of mono_runtime_is_shutting_down()).  This allows
	  us to avoid a libmono dependency w/o lots of rewriting. Fixes #592981.

svn path=/trunk/mono/; revision=155520
2010-04-15 17:31:24 +00:00
Rodrigo Kumpera 69dc590660 2010-04-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_inflate_generic_type_no_copy): Do proper
	error handling passing MonoError around.

	Fixes #560336.

svn path=/trunk/mono/; revision=155518
2010-04-15 17:17:18 +00:00
Atsushi Eno 92f2ec08d3 2010-04-15 Atsushi Enomoto <[email protected]>
* XamlType.cs : implement AllowedContentTypes and ContentWrappers.

	* XamlTypeTest.cs, XamlLanguageTest.cs : enable AllowedContentTypes
	  and ContentWrappers tests.


svn path=/trunk/mcs/; revision=155517
2010-04-15 17:10:24 +00:00
Atsushi Eno 6037ee31a4 2010-04-15 Atsushi Enomoto <[email protected]>
* XamlXmlReader.cs : handle types in clr-namespace.
	* XamlType.cs : replaced Type-to-typename hack with better-working one.
	* XamlLanguage,cs : add internal clr type name resolver method.
	* XamlXmlWriter.cs : for Initialization, value is passed as a string,
	  so don't try to verify it with the object type.

	* XamlXmlReaderTest.cs : enable DateTime tests.
	* XamlSchemaContextTest.cs : add a type name resolver test.


svn path=/trunk/mcs/; revision=155516
2010-04-15 16:40:33 +00:00
Jb Evain 6635351ed8 remove unused using
svn path=/trunk/mcs/; revision=155514
2010-04-15 16:12:45 +00:00
Gonzalo Paniagua Javier 6dccd9b40e remove warning
svn path=/trunk/mcs/; revision=155512
2010-04-15 14:43:22 +00:00
Atsushi Eno 8100419b75 2010-04-15 Atsushi Enomoto <[email protected]>
* XmlnsCompatibleWithAttribute.cs
	  IComponentConnector.cs
	  XmlLangPropertyAttribute.cs
	  XamlSetMarkupExtensionEventArgs.cs
	  PropertyDefinition.cs
	  XmlnsDefinitionAttribute.cs
	  XmlnsPrefixAttribute.cs : another corcompare fix.


svn path=/trunk/mcs/; revision=155511
2010-04-15 14:35:57 +00:00
Jb Evain 84d0f2809c 2010-04-15 Jb Evain <[email protected]>
* dmcs.exe.config: update the runtime version to .net 4.0 RTM.


svn path=/trunk/mcs/; revision=155502
2010-04-15 12:20:40 +00:00
Jb Evain 69519131eb 2010-04-15 Jb Evain <[email protected]>
* Directory.cs: don't fully qualify name when not it's necessary.


svn path=/trunk/mcs/; revision=155497
2010-04-15 11:56:06 +00:00
Jb Evain 401a69270a 2010-04-15 Jb Evain <[email protected]>
* MemoryMappedFile.cs: implement CreateOrOpen.


svn path=/trunk/mcs/; revision=155494
2010-04-15 11:49:37 +00:00
Jb Evain 1a85aa1d2a eol
svn path=/trunk/mcs/; revision=155493
2010-04-15 11:49:13 +00:00
Atsushi Eno c693120903 2010-04-15 Atsushi Enomoto <[email protected]>
* XamlXmlReader.cs : ongoing bugfixes to pass start object.

	* XamlXmlReaderTest.cs : added a couple more of read and load tests.


svn path=/trunk/mcs/; revision=155491
2010-04-15 10:31:41 +00:00
Atsushi Eno 1b5d49ab42 2010-04-15 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs, TypeExtensionMethods.cs :
	  Value serialization improvements. Improved namespace handling.
	  Remove unused code.

	* XamlObjectReaderTest.cs : add more read tests (lots of them are
	  not fully working yet).

	* DateTime.xml : new test file. (not working though)


svn path=/trunk/mcs/; revision=155479
2010-04-15 08:11:11 +00:00
Atsushi Eno 15a5c7142b 2010-04-15 Atsushi Enomoto <[email protected]>
* System.Xaml_test.dll.sources : add XDataTest.cs.


svn path=/trunk/mcs/; revision=155478
2010-04-15 08:09:50 +00:00
Atsushi Eno 15358ebae6 2010-04-15 Atsushi Enomoto <[email protected]>
* XamlXmlReader.cs : Return Member. Remove NIE.


svn path=/trunk/mcs/; revision=155477
2010-04-15 08:06:24 +00:00
Atsushi Eno 0c6c4d99c9 2010-04-15 Atsushi Enomoto <[email protected]>
* XData.cs : actual implementation.

	* XDataTest.cs : new test.


svn path=/trunk/mcs/; revision=155476
2010-04-15 08:04:54 +00:00
Atsushi Eno 79f6e1f0bb 2010-04-15 Atsushi Enomoto <[email protected]>
* Consts.cs.in : Add AssemblyWindowsBase, AssemblyPresentationCore_3_5
	  and AssemblyPresentationFramework_3_5.


svn path=/trunk/mcs/; revision=155471
2010-04-15 05:16:41 +00:00
Atsushi Eno 984e33e0d9 2010-04-15 Atsushi Enomoto <[email protected]>
* ArrayExtension.cs
	  TrimSurroundingWhitespaceAttribute.cs
	  RuntimeNamePropertyAttribute.cs
	  TypeExtension.cs
	  MarkupExtensionReturnTypeAttribute.cs
	  DateTimeValueSerializer.cs
	  IValueSerializerContext.cs
	  RootNamespaceAttribute.cs
	  MarkupExtension.cs
	  Reference.cs
	  AmbientAttribute.cs
	  NameScopePropertyAttribute.cs
	  ValueSerializer.cs
	  DictionaryKeyPropertyAttribute.cs
	  WhitespaceSignificantCollectionAttribute.cs
	  ConstructorArgumentAttribute.cs
	  IUriContext.cs
	  INameScope.cs
	  StaticExtension.cs
	  IProvideValueTarget.cs
	  ValueSerializerAttribute.cs
	  IXamlTypeResolver.cs
	  ContentWrapperAttribute.cs
	  ContentPropertyAttribute.cs
	  DependsOnAttribute.cs
	  NullExtension.cs
	  UidPropertyAttribute.cs : several corcompare fixes.


svn path=/trunk/mcs/; revision=155470
2010-04-15 05:16:21 +00:00
Atsushi Eno 4d6cd3fd48 2010-04-15 Atsushi Enomoto <[email protected]>
* XamlAccessLevel.cs : add missing methods.


svn path=/trunk/mcs/; revision=155469
2010-04-15 04:35:45 +00:00
Gonzalo Paniagua Javier 8d765fa13c 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* socket-io.c: make GetHostByName ("") work on windows.
	Fixes bug #456723.


svn path=/trunk/mono/; revision=155466
2010-04-15 02:42:35 +00:00
Gonzalo Paniagua Javier 571e6e6623 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* object-internals.h:
	* threads.c: use a spin lock when accesing the per-thread appdomain
	list.


svn path=/trunk/mono/; revision=155465
2010-04-15 02:01:10 +00:00
Gonzalo Paniagua Javier d747b6876f 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* threads.c: no need to take the threads lock in push/pop appdomain.


svn path=/trunk/mono/; revision=155442
2010-04-14 22:27:35 +00:00
Zoltan Varga c5607bf648 2010-04-15 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Call mono_class_setup_methods () before
	calling mono_class_num_methods (). Fixes #592244.

svn path=/trunk/mono/; revision=155440
2010-04-14 22:24:14 +00:00
Rodrigo Kumpera 627bc97a57 2010-04-14 Rodrigo Kumpera <[email protected]>
* reflection.c (_mono_reflection_parse_type): MS supports
	non-assembly-qualified types in a generic type parameter list
	when enclosed in '[]' (which signals that they should be a fqn).

	This breaks ECMA specs for how type names are encoded in cattr
	blobs but F# does it.

	Fixes #576342.

svn path=/trunk/mono/; revision=155438
2010-04-14 22:13:58 +00:00
Miguel de Icaza ad9bb3dcb0 Add here too
svn path=/trunk/mono/; revision=155434
2010-04-14 21:26:01 +00:00
Miguel de Icaza d48630accf Add mono.pc for those using it as a way to probe for Mono
svn path=/trunk/mono/; revision=155433
2010-04-14 21:25:35 +00:00
Miguel de Icaza fe19621ee5 2010-04-14 Miguel de Icaza <[email protected]>
* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
	Andrew's configuration this aborts the build:

	 host=i686-pc-linux-gnu != target=i586-suse-linux

	And I no longer remember why I added that error in the first
	place (we need to determine perhaps the arch/OS but it is
	difficult with those strings).

svn path=/trunk/mono/; revision=155422
2010-04-14 19:50:58 +00:00
Atsushi Eno d85fdd52be 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlXmlWriter.cs : use TypeConverter to get string value to write.
	  (TimeSpan shows the difference; the type's ValueSerializer is null,
	  while TypeConverter is not, and gives the expected non-xsd output.)

	* XamlXmlReaderTest.cs : add primitive TimeSpan reader test.

	* TimeSpan.xml : new test file.


svn path=/trunk/mcs/; revision=155418
2010-04-14 18:47:36 +00:00
Atsushi Eno f55c935a1c 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlSchemaContext.cs, TypeExtensionMethods.cs : reimplement some
	  GetXamlType() overloads. Protected one should be the actual
	  implementation.


svn path=/trunk/mcs/; revision=155415
2010-04-14 18:32:37 +00:00
Atsushi Eno 8dd494a876 implement TypeExtensionConverter and several fixes around.
svn path=/trunk/mcs/; revision=155413
2010-04-14 17:59:26 +00:00
Rodrigo Kumpera e7a1fe06db 2010-04-13 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Regression test for #422113.

svn path=/trunk/mcs/; revision=155408
2010-04-14 16:43:36 +00:00
Jb Evain 259e22f6ee 2010-04-14 Jb Evain <[email protected]>
* MemoryMappedViewAccessor.cs
	* MemoryMappedFile.cs
	* MemoryMappedViewStream.cs:
		Properly retrieve the size of the mmapped file. Fixes the
		unit tests.


svn path=/trunk/mcs/; revision=155407
2010-04-14 16:38:53 +00:00
Rodrigo Kumpera 2289f55024 2010-04-14 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_InternalInvoke): Check if the vtable is
	* sane
	for instance methods/ctors.

	Fixes #422113.

svn path=/trunk/mono/; revision=155406
2010-04-14 16:38:40 +00:00
Atsushi Eno f70aadca75 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlTypeName.cs : corcompare shows I was missing useful two.


svn path=/trunk/mcs/; revision=155399
2010-04-14 15:31:16 +00:00
Jb Evain 7feca4fdb6 comment out debug output
svn path=/trunk/mcs/; revision=155398
2010-04-14 15:25:59 +00:00
Gonzalo Paniagua Javier e8fee34fc7 2010-04-14 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: the delegate uses Cdecl calling convention on
	windows too. Fixes bug #574713.


svn path=/trunk/mcs/; revision=155395
2010-04-14 14:17:29 +00:00
Atsushi Eno d07652d303 implemented XamlTypeName.
svn path=/trunk/mcs/; revision=155393
2010-04-14 13:59:22 +00:00
Carlos Alberto Cortez 9111dcab5e 2010-04-14 Carlos Alberto Cortez <[email protected]>
* TreeViewTest.cs: New test for TreeViewNodeSorter used recursively.


svn path=/trunk/mcs/; revision=155392
2010-04-14 13:36:53 +00:00
Carlos Alberto Cortez 6994a95c91 * TreeView.cs: We must use the comparer supplied by TreeViewNodeSorter
*always*, since it is used recursively, so checking for a number of
	top level nodes is useless. This should fix a case where we were not
	sorting any node with a single root node.

2010-04-14  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=155391
2010-04-14 13:35:15 +00:00
Atsushi Eno ea8db5618c 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlMemberTest.cs : remove extra type that I wrote when I thought
	  there were no public UnderlyingMember.


svn path=/trunk/mcs/; revision=155388
2010-04-14 12:28:43 +00:00
Atsushi Eno 5c210d0b31 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlMember.cs : implemented ToString().

	* XamlMemberTest.cs : added ToStringTest().


svn path=/trunk/mcs/; revision=155385
2010-04-14 11:50:55 +00:00
Atsushi Eno 49349f2144 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlXmlReader.cs :
	  Skip irrelevant nodes. Remove extra member (Dispose).


svn path=/trunk/mcs/; revision=155377
2010-04-14 10:44:46 +00:00
Atsushi Eno 61122bd9e3 XamlXmlReader implementation.
svn path=/trunk/mcs/; revision=155376
2010-04-14 10:29:27 +00:00
Atsushi Eno 8ca9976569 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs : Type is consumed as TypeExtension.

	* XamlObjectReaderTest.cs
	  XamlSchemaContextTest.cs
	  XamlTypeTest.cs : a couple of Type/TypeExtension-related tests.


svn path=/trunk/mcs/; revision=155375
2010-04-14 10:26:41 +00:00
Atsushi Eno 96cf0f4685 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlServices.cs : fix Transform implementation.


svn path=/trunk/mcs/; revision=155374
2010-04-14 10:23:06 +00:00
Zoltan Varga ee1b322bc2 2010-04-14 Zoltan Varga <[email protected]>
* collection.c (_wapi_collection_init): Set stack size on openbsd similarly to
	the other BSDs.

svn path=/trunk/mono/; revision=155370
2010-04-14 09:51:27 +00:00
Zoltan Varga 4572696196 2010-04-14 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_llvm_call_info): Handle empty structures correctly.

	* mini-llvm.c: Disable LLVM for calls with non-default calling conventions.

svn path=/trunk/mono/; revision=155369
2010-04-14 09:48:59 +00:00
Carlos Alberto Cortez 690809709e * DataGridView.cs: Call the base Paint impl last, instead of do that
at the beginning, to let handlers draw on top of us. 
	Fixes the remaining bits of #587563.

2010-04-14  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=155367
2010-04-14 09:12:59 +00:00
Carlos Alberto Cortez dbb15adbd5 2010-04-14 Carlos Alberto Cortez <[email protected]>
* ToolStripItem.cs: Separate the background rendering from the Paint
	routine, so we can both make sure the background stuff is done first,
	and we also let our items fire the OnPaint event handlers before or
	after their own routines.
	* ToolStripLabel.cs: Move the base call to OnPaint to the end, so any
	user's Paint handler can draw on top of us, like .Net does.
	Fixes #587563.


svn path=/trunk/mcs/; revision=155366
2010-04-14 09:05:15 +00:00
Atsushi Eno 56d787c0ef 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlServices.cs : added a couple of missing methods.


svn path=/trunk/mcs/; revision=155355
2010-04-14 06:31:35 +00:00
Atsushi Eno ba7ea1d8fe 2010-04-14 Atsushi Enomoto <[email protected]>
* XamlObjectReader.cs
	  XamlSchemaContext.cs
	  XamlObjectReaderException.cs
	  XamlXmlWriterException.cs
	  XamlXmlWriterSettings.cs
	  XamlObjectWriterException.cs
	  XamlParseException.cs
	  XamlInternalException.cs
	  XamlException.cs
	  XamlSchemaException.cs
	  XamlDuplicateMemberException.cs : a handful of corcompare fixes.


svn path=/trunk/mcs/; revision=155354
2010-04-14 06:19:11 +00:00
Atsushi Eno 7625261f99 implement ValueSerializer.
svn path=/trunk/mcs/; revision=155353
2010-04-14 05:54:03 +00:00
Zoltan Varga eca820c19f 2010-04-14 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_box_inst): Merge into handle_box, simplify the merged
	version.
	* (handle_alloc): Ditto.
	(mono_method_to_ir): Remove the constrained call restriction added by a previous
	change, its not needed anymore.

svn path=/trunk/mono/; revision=155350
2010-04-14 03:00:56 +00:00
Rodrigo Kumpera ff8ebae6a4 2010-04-13 Rodrigo Kumpera <[email protected]>
* Remove broken tests dues to aditional tests or relaxation
	of existing constraints.

svn path=/trunk/mono/; revision=155346
2010-04-13 22:59:56 +00:00
Rodrigo Kumpera 2940c2b3a3 2010-04-13 Rodrigo Kumpera <[email protected]>
* reflection.c: Use the new verifier support for checking
	custom attributes.

	Fixes #595306.

svn path=/trunk/mono/; revision=155345
2010-04-13 22:59:47 +00:00
Rodrigo Kumpera 60e5982f86 2010-04-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Implement structural verification
	of custom attributes. This check requires access to the
	loader since to resolve the size of an enum we have to
	look it up.
	We don't check if named argumenments are encoded in a
	compatible fashion to their underlying field/prop.
	Maybe we should?

	* verify-internals.h: Add two new cattr verification API.

svn path=/trunk/mono/; revision=155344
2010-04-13 22:59:39 +00:00
Rodrigo Kumpera eb74b969f8 2010-04-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (decode_signature_header): Fix signature.

svn path=/trunk/mono/; revision=155343
2010-04-13 22:59:31 +00:00
Rodrigo Kumpera e8339e4756 2010-04-13 Rodrigo Kumpera <[email protected]>
* MonoCustomAttrs.cs: Raise an exception if the runtime
	returned a null cattr.

svn path=/trunk/mcs/; revision=155342
2010-04-13 22:59:23 +00:00
Rodrigo Kumpera af244b4827 2010-04-13 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_is_enabled_for_method): Handle
	assembly less images.

	* verify.c (mono_verifier_is_class_full_trust): Ditto.

svn path=/trunk/mono/; revision=155341
2010-04-13 22:59:23 +00:00
Rodrigo Kumpera 98f3f72b36 2010-04-13 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature_checked): Properly
	init MonoError.

	* loader.c (mono_method_signature): It's the calee
	resposibility to init the error object.

svn path=/trunk/mono/; revision=155340
2010-04-13 22:59:14 +00:00
Rodrigo Kumpera 753bee6e0e 2010-04-13 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (decode_signature_header): Do proper
	overflow checking.

svn path=/trunk/mono/; revision=155339
2010-04-13 22:59:06 +00:00
Rodrigo Kumpera fc309d6f05 2010-04-12 Rodrigo Kumpera <[email protected]>
* mini-posix.c (sigusr1_signal_handler): Fix build on
	non x86/amd64 systems.

svn path=/trunk/mono/; revision=155338
2010-04-13 22:58:59 +00:00
Zoltan Varga d88a033a4e 2010-04-13 Zoltan Varga <[email protected]>
* ConvertTest.cs: Add a test for #596339.

svn path=/trunk/mcs/; revision=155334
2010-04-13 21:38:17 +00:00
Zoltan Varga 316a2bff1e 2010-04-13 Zoltan Varga <[email protected]>
* Convert.cs (ToInt32): Do a checked cast. Fixes #596339.

svn path=/trunk/mcs/; revision=155333
2010-04-13 21:38:10 +00:00
Marek Habersack 3f3fd1c424 2010-04-13 Marek Habersack <[email protected]>
* GridView.cs: make sure Header and Footer visibility are set when
	binding the data. Fixes bug #595567

svn path=/trunk/mcs/; revision=155331
2010-04-13 21:31:23 +00:00
Zoltan Varga 699dfc6ca2 2010-04-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Disable generic sharing for constrained
	calls where the constrained class needs a context. Fixes #595863.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=155329
2010-04-13 21:11:27 +00:00
Ankit Jain d86de16018 Add tasks/targets for moonlight msbuild project support.
In class:

	* Makefile: Add Moonlight.Build.Tasks to net_2_0_dirs and
	net_3_5_dirs.
	* Moonlight.Build.Tasks: New.

In class/Moonlight.Build.Tasks:

	* Initial commit.

In class/Moonlight.Build.Tasks/Moonlight.Build.Tasks:

	* CreateTestPage.cs:
	* GenerateMoonlightManifest.cs:
	* GetMoonlightFrameworkPath.cs:
	* GenerateXap.cs:
	* Respack.cs:
	* XamlG.cs:
	MSBuild tasks for building silverlight projects.

In tools/xbuild:

	* xbuild/Microsoft.Silverlight*.targets: New.
	* Makefile: Update to install silverlight target files.
	* xbuild_targets.make: Update to handle silverlight
	target files.

svn path=/trunk/mcs/; revision=155326
2010-04-13 20:14:42 +00:00
Jonathan Pryor 34d108e9ea * class/System.Data.Linq/src/**/*: Sync with DbLinq r1403.
This is DbLinq 0.20 + fixes.  Primarily fixes sqlmetal, codegen, etc.
	* tools/sqlmetal/sqlmetal.exe.source: Add additional files.

svn path=/trunk/mcs/; revision=155323
2010-04-13 19:19:47 +00:00
Jonathan Pryor 3a3269001b * System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
when beginning Type generation.  This prevents "invalid" 
	  `#endregion`s; if the CodeGenerator instance is reused for multiple 
	  types, the last member of the first type has an EndDirective, then 
	  the EndDirectvies will be generated before any members of the 2nd 
	  type.  Don't do that.
	* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing 
	  for CodeRegionDirectives.

svn path=/trunk/mcs/; revision=155321
2010-04-13 18:48:04 +00:00
Carlos Alberto Cortez ee7334759a 2010-04-13 Carlos Alberto Cortez <[email protected]>
* XplatUIX11.cs: When checking for the values returned by
	_NET_WORKAREA, use current_desktop+1 instead of current_desktop, since
	we need the actual value, instead of the index (which is 0 based, and
	is not working in this case). Patch by Andy Stühr
	([email protected]).
	Fixes #494234.


svn path=/trunk/mcs/; revision=155318
2010-04-13 17:45:08 +00:00
Jb Evain 60905d3baa fix installation of Mono.Cecil.Mdb
svn path=/trunk/mcs/; revision=155311
2010-04-13 13:45:15 +00:00
Sebastien Pouliot 9f7ad37b2b 2010-04-13 Sebastien Pouliot <[email protected]>
* CrossDomainPolicyManager.cs: Fix previous change since it 
	breaks several valid cases (e.g. text/*, text/xml; charset=utf-8)
	and does not completely covers the application/xml case.
	Avoid possible ArgumentException while adding policies since it 
	confuse	the logs.


svn path=/trunk/mcs/; revision=155309
2010-04-13 13:16:03 +00:00
Atsushi Eno 9d3b924916 2010-04-13 Atsushi Enomoto <[email protected]>
* XamlXmlWriter.cs :
	  Do not write element or attribute for Initialization.

	* XamlXmlWriterTest.cs : enable WriteNode() tests.


svn path=/trunk/mcs/; revision=155308
2010-04-13 13:01:09 +00:00
Atsushi Eno 73f8146cae XamlObjectWriter implementation.
svn path=/trunk/mcs/; revision=155307
2010-04-13 12:48:13 +00:00
Atsushi Eno c006769a3c 2010-04-13 Atsushi Enomoto <[email protected]>
* XamlTypeInvoker.cs : implement AddToCollection and AddToDictionary.


svn path=/trunk/mcs/; revision=155306
2010-04-13 12:42:43 +00:00
Paolo Molaro 710a3ddecf Tue Apr 13 12:36:29 CEST 2010 Paolo Molaro <[email protected]>
* reflection.c: maintain the invariants required by
	mono_class_layout_fields() also in typebuilder_setup_fields ().


svn path=/trunk/mono/; revision=155301
2010-04-13 10:38:02 +00:00
Atsushi Eno 58987d3b86 2010-04-13 Atsushi Enomoto <[email protected]>
* XamlType.cs : IsArray, IsCollection and IsGeneric are based on
	  LookupCollectionKind(). Removed buggy documented behavior from the
	  lookup method too.

	* XamlTypeTest.cs : assert that dictionary types are *not* collection.

	* XamlTypeInvoker.cs : implement CreateInstance() for object writer.


svn path=/trunk/mcs/; revision=155298
2010-04-13 09:17:24 +00:00
Andreia Gaita bb3ab70c3e 2010-04-13 Andreia Gaita <[email protected]>
* CrossDomainPolicyManager.cs: make the contentType detection
	look for /xml at the end, it's more reliable
	(fixes olympics for moonlight)

svn path=/trunk/mcs/; revision=155283
2010-04-13 05:06:15 +00:00
Carlos Alberto Cortez cfd4d96e81 2010-04-12 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: Remove "NotWorking" from our custom formats parse
	methods, as well as augmenting the test with some new assertions, and
	changing a pair to properly reflect what they are testing.


svn path=/trunk/mcs/; revision=155282
2010-04-13 04:38:43 +00:00
Carlos Alberto Cortez 683a8fc68e 2010-04-12 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Implement support for custom formats parsing. This
	should as well include the bits required to easily implement the same
	for ToString methods, when the final release fixes the mess we found
	in the latest beta.


svn path=/trunk/mcs/; revision=155281
2010-04-13 04:35:16 +00:00
Miguel de Icaza 071f495d6a 2010-04-12 Miguel de Icaza <[email protected]>
* Enumerable.cs: Jumbo patch that inlines code, mainly for the AOT
	scenario where we our compiler cant infer the extra layer of
	indirection of a lambda function.

	But additionally, since we lack support for our JIT to inline
	intermediate delegate calls, it should save memory and run
	faster. 

svn path=/trunk/mcs/; revision=155280
2010-04-13 02:49:19 +00:00
Zoltan Varga 1b5ecb3518 2010-04-13 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable llvm+methods with clauses again, llvm
	2.6/SVN seems to have broken support for them.

svn path=/trunk/mono/; revision=155279
2010-04-13 01:04:09 +00:00
Zoltan Varga 898feb1ed8 .gitignore
svn path=/trunk/mono/; revision=155278
2010-04-13 01:01:32 +00:00
Zoltan Varga 193822c3c9 2010-04-13 Zoltan Varga <[email protected]>
* mini-llvm.c: Fix support for LLVM 2.6.

svn path=/trunk/mono/; revision=155277
2010-04-13 01:00:45 +00:00
Marek Habersack 934829dadd 2010-04-13 Marek Habersack <[email protected]>
* ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
    	sender to be something else than DataControlFieldCell. Fixes bug
    	#595568

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

    	* CheckBoxFieldTest.cs: added test for bug #595568

svn path=/trunk/mcs/; revision=155270
2010-04-12 22:40:55 +00:00
Jonathan Pryor 637442adea * Test/Microsoft.CSharp/CodeGeneratorFromExpressionTest.cs: Test
CodeDefaultValueExpression generation.
	* Microsoft.CSharp/CCSharpCodeGenerator.cs: Support generating 
	  default(T) expressions.

svn path=/trunk/mcs/; revision=155265
2010-04-12 20:34:54 +00:00
Marek Habersack 3f81315ae9 2010-04-12 Marek Habersack <[email protected]>
* PageCompiler.cs: if EnableViewStateMac is set in the page
	source, generate relevant code.

2010-04-12  Marek Habersack  <[email protected]>

	* PageParser.cs: if EnableViewStateMac option is present in the
	directive, remember it for later use by the compiler.

	* Page.cs: initialize EnableViewStateMac with the default read
	from the config.

svn path=/trunk/mcs/; revision=155262
2010-04-12 19:37:54 +00:00
Marek Safar b6629d1728 2010-04-12 Marek Safar <[email protected]>
* expression.cs, attribute.cs, parameter.cs: More attribute type
	checks.


svn path=/trunk/mcs/; revision=155258
2010-04-12 18:38:31 +00:00
Marek Safar 8662650336 2010-04-12 Marek Safar <[email protected]>
* expression.cs, attribute.cs: More attribute type checks.


svn path=/trunk/mcs/; revision=155256
2010-04-12 17:49:34 +00:00
Marek Safar 0417fb98ec New tests.
svn path=/trunk/mcs/; revision=155255
2010-04-12 17:47:24 +00:00
Marek Safar 917c9adf73 It should not compile.
svn path=/trunk/mcs/; revision=155254
2010-04-12 17:28:04 +00:00
Marek Safar 673e10017b Updated.
svn path=/trunk/mcs/; revision=155252
2010-04-12 16:53:55 +00:00
Marek Safar 639d18a7da 2010-04-12 Marek Safar <[email protected]>
A fix for bug #593342

	* generic.cs, parameter.cs, argument.cs, field.cs, property.cs,
	decl.cs, roottypes.cs, constant.cs, nullable.cs, expression.cs,
	method.cs, ecore.cs, class.cs, delegate.cs, attribute.cs,
	codegen.cs: Add custom attribute encoder to deal with unfinished
	types and easier corlib bootstrap from its own types.
	

svn path=/trunk/mcs/; revision=155251
2010-04-12 16:52:50 +00:00
Atsushi Eno 7981bc9b0c 2010-04-12 Atsushi Enomoto <[email protected]>
* XamlXmlWriter.cs : check null args.


svn path=/trunk/mcs/; revision=155249
2010-04-12 16:10:40 +00:00
Atsushi Eno bf756bc01b 2010-04-12 Atsushi Enomoto <[email protected]>
* XamlWriterStateManager.cs, XamlXmlWriter.cs : extracted former
	  from latter, to reuse it in XamlObjectWriter too.

	* System.Xaml.dll.sources : add new internal type.


svn path=/trunk/mcs/; revision=155248
2010-04-12 15:53:04 +00:00
Atsushi Eno 6284ce4cb8 2010-04-12 Atsushi Enomoto <[email protected]>
* XamlSchemaContext.cs
	  TypeExtensionMethods.cs
	  XamlType.cs : implement type lookup by name in schema context.

	* XamlSchemaContextTest.cs, XamlTypeTest.cs : more type system tests.


svn path=/trunk/mcs/; revision=155246
2010-04-12 15:18:54 +00:00
Atsushi Eno ea9a42b710 2010-04-12 Atsushi Enomoto <[email protected]>
* XamlTypeName.cs : methods were missing.


svn path=/trunk/mcs/; revision=155245
2010-04-12 15:17:47 +00:00
Atsushi Eno 9ceb9db3d3 further type system implementation.
svn path=/trunk/mcs/; revision=155232
2010-04-12 12:05:05 +00:00
Atsushi Eno ae1a753473 2010-04-12 Atsushi Enomoto <[email protected]>
* XamlType.cs : make implementation a bit cleaner.

	* TypeExtension.cs, StaticExtension.cs : add [TypeConverter].

	* XamlTypeTest.cs : add a few more TypeConverter assertions.


svn path=/trunk/mcs/; revision=155227
2010-04-12 10:11:52 +00:00
Atsushi Eno 0529bfae9b 2010-04-12 Atsushi Enomoto <[email protected]>
* XamlLanguage.cs : implement namespaces properties.
	* XamlType.cs : implement member lookup methods and IsConstructible.
	* XamlMember.cs : do not use PropertyInfo's CanRead and CanWrite
	  which both return True for private getter and setter.
	* TypeExtensionMethods.cs : add member retriever method that convers
	  Initialization (for XamlXmlWriter).
	* XamlObjectReader.cs : use above.

	* XamlLanguageTest.cs : add member lookup tests and properties tests
	  on those members.
	* XamlTypeTest.cs : add GetAllAttachableMembers() test.
	  Enable IsConstructible().


svn path=/trunk/mcs/; revision=155226
2010-04-12 09:44:11 +00:00
Veerapuram Varadhan 3e47613836 2010-04-11 Veerapuram Varadhan <[email protected]>
** Fixes #591443
	* DataColumn.cs (Clone): Use propert to clone Expression as it
	* builds
	compiled expression also, if any.

svn path=/trunk/mcs/; revision=155216
2010-04-11 21:14:41 +00:00
Ankit Jain 466a7a82cd * Makefile: Update EXTRA_DIST with the new targets files.
svn path=/trunk/mcs/; revision=155215
2010-04-11 19:32:56 +00:00
Atsushi Eno 4940c10133 2010-04-11 Atsushi Enomoto <[email protected]>
* XamlSchemaContext.cs : implement some methods.
	* XamlLanguage.cs : add assembly attributes.

	* XamlSchemaContextTest.cs : add some tests for methods.


svn path=/trunk/mcs/; revision=155214
2010-04-11 18:41:13 +00:00
Atsushi Eno e9c0dd356c 2010-04-11 Atsushi Enomoto <[email protected]>
* XamlXmlReader.cs : implemented cosmetic members.
	* XamlSchemaContext.cs : looks like I missed all methods here.


svn path=/trunk/mcs/; revision=155213
2010-04-11 16:14:51 +00:00
Sebastien Pouliot 22be129a25 2010-04-11 Sebastien Pouliot <[email protected]>
* security-core-clr.c: Call mono_class_setup_methods in 
	get_default_ctor before checking klass->methods. Fix typo in
	comment


svn path=/trunk/mono/; revision=155212
2010-04-11 15:46:59 +00:00
Atsushi Eno 3bb86cb557 XamlObjectReader implementation.
svn path=/trunk/mcs/; revision=155211
2010-04-11 15:38:40 +00:00
Jb Evain f9a20c3b76 GenericParameter.cs: override Module properly
svn path=/trunk/mcs/; revision=155210
2010-04-11 13:41:36 +00:00
Jb Evain 4a9287549d GenericParameter.cs: override Module properly
svn path=/trunk/mcs/; revision=155209
2010-04-11 13:39:54 +00:00
Atsushi Eno dc28fff9fa 2010-04-10 Atsushi Enomoto <[email protected]>
* XamlXmlWriter.cs : Process closing only once (disposing).
	  Close output only when required.


svn path=/trunk/mcs/; revision=155206
2010-04-10 19:39:00 +00:00
Atsushi Eno d5b1212329 implemented XamlXmlWriter.
svn path=/trunk/mcs/; revision=155205
2010-04-10 19:34:18 +00:00
Veerapuram Varadhan 653d4096a1 2010-04-10 Veerapuram Varadhan <[email protected]>
** Fixes #589482
	* DataColumn.cs (set_DataType): Preserve autoIncrement value
	for Decimal types as well.

svn path=/trunk/mcs/; revision=155202
2010-04-10 18:44:09 +00:00
Jb Evain e0ad51f929 adjust version
svn path=/trunk/mcs/; revision=155198
2010-04-10 15:45:52 +00:00
Ankit Jain 581c185b13 * xbuild/*/Microsoft.Common.targets: Emit warning if
$(TargetFrameworkVersion) is not supported by the current
tool set.

svn path=/trunk/mcs/; revision=155197
2010-04-10 14:41:30 +00:00
Ankit Jain c05f773cad * Project.cs (InitializeProperties): Set MSBuildBinPath to the current
tools path.

svn path=/trunk/mcs/; revision=155196
2010-04-10 14:41:11 +00:00
Andreas Färber 14e85956f5 eglib: Fix hardcoded library dependencies for Haiku
Math is beautiful
  A universal language
  Libraries differ
                    -- Andreas F.

Haiku neither has libm nor libdl. On Mac OS X, libm.dylib is just a symlink
to libSystem.dylib.

Introduce autoconf checks for these libraries.

	* configure.ac: Add checks for libm and libdl.
	* {src,test}/Makefile.am: Remove hardcoded library dependencies.
	Fixes compilation on Haiku.

v1 -> v2:
* Add checks for libm and libdl.

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.

svn path=/trunk/mono/; revision=155195
2010-04-10 14:30:21 +00:00
Ankit Jain 8439d5d2ae In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
* GetFrameworkPath.cs (FrameworkVersion40Path): New.

In tools/xbuild:
	* xbuild/Microsoft.Common.targets: Move to 2.0, 3.5 and 4.0 .
	The 4.0 copy gets the framework path for 4.0 .
	* Makefile: Update for the above change.
	* xbuild_targets.make: Likewise.

svn path=/trunk/mcs/; revision=155193
2010-04-10 13:28:43 +00:00
Jb Evain 0bc499bf07 2010-04-10 Jb Evain <[email protected]>
* domain.c (supported_runtimes): remove .net 4.0 beta 2 and
	add .net 4.0 RTM version.

svn path=/trunk/mono/; revision=155192
2010-04-10 10:35:00 +00:00
Andreas Färber 9185fcc305 io-layer: Fix process helper functions for Haiku
Haiku has neither makedev nor /proc. Enumerate processes, process modules
and retrieve the process name via Kernel Kit. Fixes build on Haiku.

Adjust _WAPI_PROCESS_UNHANDLED_PID_MASK to cope with Haiku's 32-bit pid_t.
Fixes exception trying to obtain the ProcessName of pids >= 2^15.

  Be did not have /proc
  For Mono to build without
  Resort to Be's root
                         -- Andreas F.

	* processes.c (EnumProcesses, load_modules): Add implementations
	for Haiku. Fixes build on Haiku.
	(OpenProcess, EnumProcessModules, get_process_name_from_proc):
	Tweak implementations for Haiku.
	* process-private.h: Fix _WAPI_PROCESS_UNHANDLED_PID_MASK for
	32-bit pids (Haiku).
	* ChangeLog: Fix UTF-8 encoding

v4 -> v5:
* Resolve conflicts with more OpenBSD changes.

v3 -> v4:
* Rebase against OpenBSD changes.

v2 -> v3:
* Fix get_process_name_from_proc implementation to use get_next_image_info.
* Add new implementation of EnumProcesses.
* Fix OpenProcess' check whether pid is available.
* Fix _WAPI_PROCESS_UNHANDLED_PID_MASK to handle Haiku's 32-bit pid_t.
* Fix module addresses in load_modules by considering the text segment, too.
  Suggested by Ingo Weinhold.
* Add ChangeLog entry, fix file encoding.

v1 -> v2:
* Instead of providing a dummy makedev macro, avoid its use.
* Don't try to parse /proc.
* Add new implementations of load_modules and get_process_name_from_proc
  based on libroot's Kernel Kit, suggested by François Revol.

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.

svn path=/trunk/mono/; revision=155191
2010-04-10 09:06:28 +00:00
Rodrigo Kumpera c8d15975e1 2010-04-09 Rodrigo Kumpera <[email protected]>
* MethodBuilderTest.cs: Regression test for #591226.

svn path=/trunk/mcs/; revision=155190
2010-04-10 01:57:29 +00:00
Rodrigo Kumpera e418edd2d3 2010-04-09 Rodrigo Kumpera <[email protected]>
* reflection.c (resolve_object): Properly inflate generic
	methods when a context is supplied.

	Fixes #591226.

svn path=/trunk/mono/; revision=155189
2010-04-10 01:41:24 +00:00
Rodrigo Kumpera 1be4f07ec8 2010-04-09 Rodrigo Kumpera <[email protected]>
* valid_switch_with_value_on_stack.il: New test.

svn path=/trunk/mono/; revision=155188
2010-04-10 01:41:16 +00:00
Ankit Jain 0773d1c0df In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* TaskEngine.cs (Prepare): Throw InvalidProjectFileException instead of a generic
	Exception.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
	* Copy.cs: Cleanly log errors, instead of throwing exceptions.

svn path=/trunk/mcs/; revision=155187
2010-04-10 00:05:05 +00:00
Ankit Jain 0e9a098e36 * xbuild/Microsoft.Common.targets (DeployOutputFiles): Copy only
if the source file exists.

svn path=/trunk/mcs/; revision=155186
2010-04-10 00:04:46 +00:00
Ankit Jain bbc0dac2c4 * ReservedNameUtils.cs (GetReservedMetadata): Handle empty item.
svn path=/trunk/mcs/; revision=155185
2010-04-10 00:04:24 +00:00
Ankit Jain a072a70ce1 * xbuild/3.5/Microsoft.Common.tasks:
* xbuild/4.0/Microsoft.Common.tasks: Remove spurious
Moonlight task declarations.

svn path=/trunk/mcs/; revision=155184
2010-04-10 00:04:03 +00:00
Ankit Jain 770285204d * ConsoleLogger.cs (EventsToString): If the target being executed is
from an imported file, then show that.

svn path=/trunk/mcs/; revision=155183
2010-04-10 00:03:33 +00:00
Ankit Jain f4968590c0 * Project.cs: Add property MSBuildExtensionsPath32, used by silverlight
projects.

svn path=/trunk/mcs/; revision=155182
2010-04-10 00:03:11 +00:00
Ankit Jain c8ebb1e81b * xbuild/Microsoft.Common.targets (BuildingResources): Refactor to
(PrepareResources): .. this.
(PrepareResourcesDependsOn): New.
(GetFrameworkPaths): Extract from PrepareForBuild target.

svn path=/trunk/mcs/; revision=155181
2010-04-10 00:02:54 +00:00
Ankit Jain f970eb1b1b * Vbc.cs (LogEventsFromTextOutput):
* ToolTask.cs (LogEventsFromTextOutput): Emit the messages
that don't match the error regex, as is.

svn path=/trunk/mcs/; revision=155180
2010-04-10 00:02:30 +00:00
Veerapuram Varadhan 0966434fbc 2010-04-09 Veerapuram Varadhan <[email protected]>
** Fixes #576520 - Based on a patch by Greg SIROU
<[email protected]>
	* DataSet.cs (WriteColumnAsElement): Handle system.object types
	* sanely.

svn path=/trunk/mcs/; revision=155178
2010-04-09 23:31:43 +00:00
Zoltan Varga 288d3e972c 2010-04-10 Zoltan Varga <[email protected]>
* ThreadMirror.cs: Add a ThreadId property.

svn path=/trunk/mcs/; revision=155176
2010-04-09 22:58:00 +00:00
Zoltan Varga e050d4fc90 2010-04-10 Zoltan Varga <[email protected]>
* dtest.cs: Add a minimal test for Thread.ThreadId.

svn path=/trunk/mono/; revision=155174
2010-04-09 22:55:40 +00:00
Zoltan Varga af9696060f 2010-04-10 Zoltan Varga <[email protected]>
* debugger-agent.c (thread_commands): Add a GET_ID command to get the
	MonoInternalThread belonging to the thread.

svn path=/trunk/mono/; revision=155173
2010-04-09 22:55:34 +00:00
Rodrigo Kumpera 918eb0f78a 2010-04-09 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (IsValueTypeImpl): Don't depend on
	type_is_subtype_of icall. Fixes corlib compilation.

svn path=/trunk/mcs/; revision=155172
2010-04-09 22:50:57 +00:00
Veerapuram Varadhan c9a69a096b 2010-04-09 Veerapuram Varadhan <[email protected]>
** Fixes #590232
	* DataColumn.cs (Clone): Clone extended properties as well

svn path=/trunk/mcs/; revision=155165
2010-04-09 17:20:54 +00:00
Raja R Harinath 3c60b02ee5 Re-enable 'compiler-tests' target
svn path=/trunk/mono/; revision=155164
2010-04-09 17:13:53 +00:00
Atsushi Eno fcb4e9cfd0 ongoing implementation: TypeConverter support
svn path=/trunk/mcs/; revision=155163
2010-04-09 16:35:48 +00:00
Rodrigo Kumpera 0b3dff3609 2010-04-09 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): A switch op don't empty
	the stack for the next one. Fixes a bug when running fsi
	under --verify-all.

svn path=/trunk/mono/; revision=155154
2010-04-09 15:14:50 +00:00
Atsushi Eno 0831db9491 2010-04-09 Atsushi Enomoto <[email protected]>
* System.Xaml_test.dll.sources : add more tests.

	* XamlTypeTypeConverter.cs, XamlValueConverter.cs : implemented.

	* XamlTypeTypeConverterTest.cs, XamlValueConverterTest.cs :
	  new tests.


svn path=/trunk/mcs/; revision=155148
2010-04-09 13:53:20 +00:00
Rodrigo Kumpera 000bdbb8fa 2010-04-09 Rodrigo Kumpera <[email protected]>
valid_call_to_virtual_method_on_sealed_class.il: New test.

svn path=/trunk/mono/; revision=155147
2010-04-09 13:38:26 +00:00
Paolo Molaro f0f821629e Fri Apr 9 15:28:01 CEST 2010 Paolo Molaro <[email protected]>
* driver.c, optflags-def.h, ir-emit.h: introduce an unsupported
	unsafe optimization that will remove bound checks.


svn path=/trunk/mono/; revision=155146
2010-04-09 13:31:23 +00:00
Rodrigo Kumpera 3a5592eabc 2010-04-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (is_valid_standalonesig_blob): Accept
	fields as valid standalone sig too. F# does generate them.

	* metadata-verify.c (verify_typedef_table_full): Ignore
	what <module> extends.

svn path=/trunk/mono/; revision=155143
2010-04-09 13:12:41 +00:00
Rodrigo Kumpera a3d6b0e8eb 2010-04-09 Rodrigo Kumpera <[email protected]>
* verify.c (do_invoke_method): It's ok to do use call with
	virtual, non-final methods if their class is sealed.

svn path=/trunk/mono/; revision=155142
2010-04-09 13:12:33 +00:00
Marek Habersack 61163ca5e2 2010-04-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection properly processes paths
	of form '~'. Fixes bug #595140. Patch from Adriaan van Kekem
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=155140
2010-04-09 13:01:51 +00:00
Atsushi Eno 3154070eb0 ongoing implementation.
svn path=/trunk/mcs/; revision=155138
2010-04-09 12:35:39 +00:00
Atsushi Eno 52391242a0 2010-04-09 Atsushi Enomoto <[email protected]>
* TypeExtension.cs, TypeExtensionMethods.cs : renamed to avoid
	  confusion between Sys.Win.Markup.TypeExtension.

	* System.Xaml.dll.sources : renamed TypeExtension.cs.


svn path=/trunk/mcs/; revision=155130
2010-04-09 09:53:31 +00:00
Atsushi Eno 6d9958eda6 ongoing implementation.
svn path=/trunk/mcs/; revision=155129
2010-04-09 09:50:32 +00:00
Raja R Harinath c78a0e1af6 SortedSet: Add move view tests.
svn path=/trunk/mcs/; revision=155126
2010-04-09 07:00:25 +00:00
Raja R Harinath 195fec2107 SortedSet: Don't maintain state in the view
* System.Collections.Generic/SortedSet.cs (SortedSubSet.count): Remove.
(SortedSubSet..ctor): Move counting loop ...
(SortedSubSet.Count): ... here.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update to changes.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Likewise.  Use bounds
to determine if the view is empty, rather than the count.
* Test/System.Collections.Generic/SortedSetTest.cs (ViewCount):
Test that count reflects changes in underlying set.

svn path=/trunk/mcs/; revision=155125
2010-04-09 06:41:10 +00:00
Atsushi Eno 6ab67da5b9 ongoing implementation.
svn path=/trunk/mcs/; revision=155122
2010-04-09 05:22:24 +00:00
Gonzalo Paniagua Javier b6a386f5bc 2010-04-09 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: account for the time already spent in wait if
	interrupted.


svn path=/trunk/mono/; revision=155121
2010-04-09 04:36:39 +00:00
Rodrigo Kumpera 5e704298ab 2010-04-08 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Regression test for #591225.

svn path=/trunk/mcs/; revision=155116
2010-04-09 02:38:32 +00:00
Rodrigo Kumpera 35dda30dac 2010-04-08 Rodrigo Kumpera <[email protected]>
* Type.cs: Add ResolveInternal virtual call that
	resolves a given type to it's concrete type.

2010-04-08 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Implement ResolveInternal.

2010-04-08 Rodrigo Kumpera  <[email protected]>

	* EnumBuilder.cs:
	* GenericTypeParameterBuilder.cs:
	* DerivedTypes.cs:
	* TypeBuilder.cs: Add ResolveInternal virtual call that
	resolves a given type to it's concrete type.

	* TypeBuilder.cs (DefineDefaultConstructor): Use
	ResolveInternal on parent to do the lookup on a
	finished type.

	Fixes #591225.

svn path=/trunk/mcs/; revision=155115
2010-04-09 02:38:22 +00:00
Rodrigo Kumpera eb27581675 2010-04-08 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Add tests for #594942.

svn path=/trunk/mcs/; revision=155113
2010-04-09 01:07:00 +00:00
Rodrigo Kumpera eb8bda5c27 2010-04-08 Rodrigo Kumpera <[email protected]>
* MonoField.cs (Get|Set)Value: Check if obj is compatible
	with field's class.

svn path=/trunk/mcs/; revision=155112
2010-04-09 01:06:51 +00:00
Rodrigo Kumpera 9ebaf58da1 2010-04-08 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoField_GetValueInternal): This function
	is a near identical copy of mono_field_get_value_object. So
	simply call it.

	* object.c (mono_field_get_value_object): Handle literal fields
	on open generic classes.

	Fixes #594942.

svn path=/trunk/mono/; revision=155111
2010-04-09 01:06:50 +00:00
Rodrigo Kumpera bc0b3b5efa 2010-04-08 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_create_runtime_class): Setup
	parent/supertype information again since it can be changed
	without notice.

svn path=/trunk/mono/; revision=155110
2010-04-09 01:06:42 +00:00
Zoltan Varga 4dfa7ac68b 2010-04-09 Zoltan Varga <[email protected]>
* mono-time.c (get_boot_time): Applied more openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/trunk/mono/; revision=155107
2010-04-09 00:22:50 +00:00
Zoltan Varga d463dec97f 2010-04-09 Zoltan Varga <[email protected]>
* mono-proclib.c: Applied more openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/trunk/mono/; revision=155104
2010-04-09 00:17:24 +00:00
Zoltan Varga d6e5934e33 2010-04-09 Zoltan Varga <[email protected]>
* processes.c: Applied more openbsd changes from Robert Nagy <[email protected]>.

svn path=/trunk/mono/; revision=155103
2010-04-09 00:17:18 +00:00
Andreia Gaita c4695a800c * configure.in: Add an extra "only" option to --with-moonlight. This
will configure mono to only build moonlight-specific stuff and
nothing else. --with-moonlight=yes now just adds the moon profile to
the build

* Makefile.am: Add moonlight-specific rules that only build what
moon needs. These are called directly from moon, to do fast
moon+mono+mcs builds

* runtime/Makefile.am: Change the build rules to have a moonlight-only
build configuration, as well as a normal build that optionally includes
it

svn path=/trunk/mono/; revision=155093
2010-04-08 20:06:16 +00:00
Gonzalo Paniagua Javier d7d22b7442 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: set EINTR on windows too.


svn path=/trunk/mono/; revision=155091
2010-04-08 20:01:04 +00:00
Marek Habersack b30b111972 Added a test for GlobalizationSection usage of encoding names
svn path=/trunk/mcs/; revision=155089
2010-04-08 19:44:45 +00:00
Gonzalo Paniagua Javier a96be27a9e CWL
svn path=/trunk/mcs/; revision=155083
2010-04-08 19:15:05 +00:00
Gonzalo Paniagua Javier c95949df0a 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* GlobalizationSection.cs: use WebName instead of EncodingName.


svn path=/trunk/mcs/; revision=155080
2010-04-08 19:11:23 +00:00
Marek Safar 930926a450 Need it for bootstrap
svn path=/trunk/mcs/; revision=155064
2010-04-08 17:16:59 +00:00
Marek Safar 9158c75c50 New tests.
svn path=/trunk/mcs/; revision=155061
2010-04-08 15:47:21 +00:00
Marek Safar 885e0d31c1 flush
svn path=/trunk/mcs/; revision=155058
2010-04-08 15:41:45 +00:00
Marek Safar 306e3908b6 flush
svn path=/trunk/mcs/; revision=155057
2010-04-08 15:41:09 +00:00
Marek Safar 7df82e03d8 flush
svn path=/trunk/mcs/; revision=155056
2010-04-08 15:36:50 +00:00
Rodrigo Kumpera 8a673bd160 2010-04-08 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Regression test for #594728.

svn path=/trunk/mcs/; revision=155054
2010-04-08 15:16:43 +00:00
Rodrigo Kumpera 4f09dcaf9f 2010-04-08 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs (GenericInstanceKey): Precalculate
	GenericInstanceKey hash code since this can cause infinite
	recursion when inflating "Foo<T> : Bar<Foo<T>>" parent.

	* TypeBuilder.cs (IsSubclassOf): Don't delegate to base class
	since the unmanaged information can be out of sync.

	* TypeBuilder.cs (UnderlyingSystemType): Invert the test order
	since IsEnum now is potentialy more expensive.

	Fixes #594728.

svn path=/trunk/mcs/; revision=155053
2010-04-08 14:53:25 +00:00
Jb Evain 1cfe332670 fix run-test
svn path=/trunk/mcs/; revision=155051
2010-04-08 14:36:34 +00:00
Gonzalo Paniagua Javier 610592a68d 2010-04-08 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: obtain the SubjectAltName extension the
	right way. Fixes bug #594110.


svn path=/trunk/mcs/; revision=155049
2010-04-08 14:30:27 +00:00
Atsushi Eno 1035caad36 2010-04-08 Atsushi Enomoto <[email protected]>
* XamlMember.cs, XamlDirective.cs :
	  Implemented lots of directive members.

	* XamlMemberTest.cs, XamlDirectiveTest.cs :
	  Add more tests. Enable working tests.


svn path=/trunk/mcs/; revision=155048
2010-04-08 14:09:49 +00:00
Jb Evain 403e059ede 2010-04-08 Jb Evain <[email protected]>
* FrameworkName.cs: add missing Equals override.


svn path=/trunk/mcs/; revision=155047
2010-04-08 14:08:01 +00:00
Sebastien Pouliot 9ab6a86608 2010-04-08 Sebastien Pouliot <[email protected]>
* SubjectAltNameExtensionTest.cs: Add unit tests for multiple
	DNSNames entries (#594110 and #591516 certificate test case)


svn path=/trunk/mcs/; revision=155046
2010-04-08 13:26:16 +00:00
Atsushi Eno 93c9111a1c another bunch of implementation.
svn path=/trunk/mcs/; revision=155045
2010-04-08 13:06:38 +00:00
Ankit Jain 53b7bb4591 * Copy.cs: Handle non-existant source files.
svn path=/trunk/mcs/; revision=155042
2010-04-08 11:33:41 +00:00
Kornél Pál e78425dfa7 * method-to-ir.c (mini_emit_inst_for_method): Fix a typo that caused CompareExchange not to be inlined for I8. Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=155039
2010-04-08 10:46:30 +00:00
Jb Evain 95b0b88223 fix typo
svn path=/trunk/mcs/; revision=155032
2010-04-08 10:04:39 +00:00
Miguel de Icaza e56797c562 Add some code
svn path=/trunk/mcs/; revision=155026
2010-04-08 05:04:00 +00:00
Zoltan Varga 741dbf1702 .gitignore
svn path=/trunk/mono/; revision=155025
2010-04-08 04:41:44 +00:00
Atsushi Eno 0b2e46c39a 2010-04-08 Atsushi Enomoto <[email protected]>
* Makefile : add 4.0 System.Xaml.


svn path=/trunk/mcs/; revision=155024
2010-04-08 03:21:42 +00:00
Geoff Norton daa64a1190 2010-04-07 Geoff Norton <[email protected]>
* domain.c: Avoid a deadlock on osx.  Fixes #565765

svn path=/trunk/mono/; revision=155023
2010-04-08 03:18:19 +00:00
Atsushi Eno 48dc9caf4f initial checkin.
svn path=/trunk/mcs/; revision=155021
2010-04-08 03:00:24 +00:00
Rodrigo Kumpera 5a6f42ea33 2010-04-07 Rodrigo Kumpera <[email protected]>
* valid_store_of_uint_to_int_array.il: Regression test
	for #555950.

svn path=/trunk/mono/; revision=155019
2010-04-07 23:56:54 +00:00
Rodrigo Kumpera 8e07be4d63 2010-04-07 Rodrigo Kumpera <[email protected]>
* verify.c (verify_type_compatibility_full): Properly handle
	stores between arrays of primitives.

	Fixes the verifier side of #555950.

svn path=/trunk/mono/; revision=155018
2010-04-07 23:56:46 +00:00
Gonzalo Paniagua Javier 32c96fedba 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: always use Cdecl, since the library is compiled
	using that calling convention in windows too.


svn path=/trunk/mcs/; revision=155017
2010-04-07 22:57:36 +00:00
Rodrigo Kumpera 8dc481a1bb 2010-04-07 Rodrigo Kumpera <[email protected]>
* array.cs: Add tests for cast between primitive array types.

svn path=/trunk/mono/; revision=155013
2010-04-07 22:55:34 +00:00
Rodrigo Kumpera 28645403c7 2010-04-07 Rodrigo Kumpera <[email protected]>
class.c (mono_bounded_array_class_get): Properly init
	cast_class to take the fact that uint[] and int[] can be
	casted between each other.

	Fixes #555950.

svn path=/trunk/mono/; revision=155012
2010-04-07 22:55:26 +00:00
Zoltan Varga f555b846d9 2010-04-08 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Enum_ToObject): Avoid a crash for unfinished type
	builders. Fixes #594464.

svn path=/trunk/mono/; revision=155010
2010-04-07 22:52:53 +00:00
Zoltan Varga d2b93f4669 .gitignore
svn path=/trunk/mono/; revision=155009
2010-04-07 22:49:22 +00:00
Zoltan Varga 532aa36a2d .gitignore
svn path=/trunk/mono/; revision=155008
2010-04-07 22:49:16 +00:00
Zoltan Varga 549f1f2a40 2010-04-08 Zoltan Varga <[email protected]>
* exit-stress-threadpool.cs: New stress test.

svn path=/trunk/mono/; revision=155007
2010-04-07 22:47:31 +00:00
Zoltan Varga 41af2abf90 2010-04-08 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Environment_Exit): Shutdown the threadpool before
	waiting for all threads to suspend, as those threads can't be suspended.

svn path=/trunk/mono/; revision=155005
2010-04-07 22:43:54 +00:00
Zoltan Varga 567eee9159 2010-04-08 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Call ensure_synch_cs_set ()
	to avoid crashes on newly created threads.

svn path=/trunk/mono/; revision=155004
2010-04-07 22:43:44 +00:00
Rodrigo Kumpera 41e836efe1 2010-03-07 Rodrigo Kumpera <[email protected]>
* Enum.cs (GetInfo): Don't use isinst tests as they can
	return true for both signed and unsigned version of a
	primitive type.

	* Enum.cs (FindPosition): Ditto.

svn path=/trunk/mcs/; revision=155002
2010-04-07 22:34:53 +00:00
Gonzalo Paniagua Javier b913627471 add zlib functions
svn path=/trunk/mono/; revision=155000
2010-04-07 22:20:36 +00:00
Miguel de Icaza b24092d077 2010-04-07 Miguel de Icaza <[email protected]>
*  BufferManager.cs: Implement the BufferManager. 

svn path=/trunk/mcs/; revision=154999
2010-04-07 22:17:32 +00:00
Gonzalo Paniagua Javier ba28a1d0d7 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: now that we don't use Z_SYNC_FLUSH, there might be
	unflushed input in zstream, so always call Z_FINISH.


svn path=/trunk/mono/; revision=154995
2010-04-07 21:41:22 +00:00
Ankit Jain 273c99284a Fix bug #594541
* Vbc.cs (LogEventsFromTextOutput): Override and correctly parse
output. Taken regex from monodevelop for this.

svn path=/trunk/mcs/; revision=154993
2010-04-07 21:24:31 +00:00
Ankit Jain 7c2843dbb9 * ToolTask.cs: Use regex to parse output. Regex is from monodevelop.
svn path=/trunk/mcs/; revision=154992
2010-04-07 21:24:16 +00:00
Ankit Jain 0aef337df6 * xbuild/Microsoft.VisualBasic.targets: Fix OutputAssembly
property for the Vbc task.

svn path=/trunk/mcs/; revision=154991
2010-04-07 21:23:59 +00:00
Ankit Jain 87928c86cb * ToolTask.cs (ExecuteTool): Check that the tool exists.
svn path=/trunk/mcs/; revision=154990
2010-04-07 21:23:40 +00:00
Marek Habersack f8bd1d4492 Fixed invalid exception message
svn path=/trunk/mcs/; revision=154987
2010-04-07 20:12:58 +00:00
Ankit Jain 8ede7d3d69 Fix bug #594531.
* xbuild/Microsoft.VisualBasic.targets: Set RootNamespace
property of Vbc task.

svn path=/trunk/mcs/; revision=154986
2010-04-07 19:38:16 +00:00
Ankit Jain 64acf2e0cb * Vbc.cs (ValidateParameters): Always return true, dummy implementation.
svn path=/trunk/mcs/; revision=154985
2010-04-07 19:38:00 +00:00
Ankit Jain 23a891350b Fix bug #594526.
* xbuild/Microsoft.VisualBasic.targets(CoreCompile): Fix Outputs
to use @(IntermediateAssembly) instead of $(IntermediateAssembly).
Patch suggested by Eli Bishop ([email protected]).

svn path=/trunk/mcs/; revision=154983
2010-04-07 19:14:26 +00:00
Andreia Gaita 4309c0d961 * Makefile.am: create a convenience library for moon to link with
svn path=/trunk/mono/; revision=154976
2010-04-07 16:42:13 +00:00
Jonathan Pobst aeba9d0b2f Add Mono.Debugger.Soft to MonkeyBuilder.
svn path=/trunk/mono/; revision=154975
2010-04-07 16:41:03 +00:00
Raja R Harinath c940e13b2b SortedSet: Enable set comparision operations on views, and improve performance
* RBTree.cs (Bound): New.  Returns the greatest lower bound and
least upper bound of the given key.
(GetSuffixEnumerator): New.  Returns an enumerator that starts at
the given key.
(NodeEnumerator): Provide suffix enumerator functionality.
* SortedSet.cs (GetEnumerator): Delegate to ...
(TryGetEnumerator): ... this.  New virtual function.
(Enumerator): Provide subset enumeration using RBTree's suffix enumerators.
(SortedSubSet.count): New.
(SortedSubSet.GetCount): Use it.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update count.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Use RBTree.Bound().
(SortedSubSet.GetEnumerator): Remove.
(SortedSubSet.TryGetEnumerator): New.  Use ranged enumerators.
* SortedSetTest.cs: Update to test more view functionality,
including set comparison operators.

svn path=/trunk/mcs/; revision=154974
2010-04-07 16:31:25 +00:00
Jb Evain 769306bdf1 2010-04-07 Jb Evain <[email protected]>
* main.c: don't overwrite method_name.


svn path=/trunk/mono/; revision=154966
2010-04-07 15:05:50 +00:00
Sebastien Pouliot 7ab35a9063 2010-04-07 Sebastien Pouliot <[email protected]>
* ClientAccessPolicy.cs: Fake a "GET" method when applying a 
	policy to sockets


svn path=/trunk/mcs/; revision=154959
2010-04-07 14:11:27 +00:00
Jb Evain 65bf9e04bb 2010-04-07 Jb Evain <[email protected]>
* EnumerableExecutor.cs: make ctor protected.


svn path=/trunk/mcs/; revision=154958
2010-04-07 13:53:37 +00:00
Jb Evain 4ddfad2f3b 2010-04-07 Jb Evain <[email protected]>
* EnumerableQuery_T.cs: implement.


svn path=/trunk/mcs/; revision=154956
2010-04-07 13:50:35 +00:00
Jb Evain ca2e07776c 2010-04-07 Jb Evain <[email protected]>
* EnumerableQuery.cs: make ctor protected.


svn path=/trunk/mcs/; revision=154955
2010-04-07 13:50:11 +00:00
Jb Evain b97703b3c5 2010-04-07 Jb Evain <[email protected]>
* Executor.cs: make class static.


svn path=/trunk/mcs/; revision=154953
2010-04-07 13:32:15 +00:00
Marek Habersack d4d23b940e Added the memoryCache section
svn path=/trunk/mono/; revision=154951
2010-04-07 13:17:52 +00:00
Sebastien Pouliot 82f9bc99cd 2010-04-07 Sebastien Pouliot <[email protected]>
* BaseDomainPolicy.cs: Abstract-fy IsAllowed(WebRequest) and 
	remove abstract IsAllowed(Uri,string[]) since it cannot provide
	enough information for the client access policy.
	* ClientAccessPolicy.cs: Replace IsAllowed(Uri,string[]) with
	IsAllowed(WebRequest) and add logic for AllowAnyMethod
	* ClientAccessPolicyParser.cs: Read "http-methods" attribute (new
	in SL3) and set the new AllowAnyMethod property if the value is
	"*" (the only legal value if the attribute is present).
	* FlashCrossDomainPolicy.cs: Add IsAllowed(WebRequest) since it's
	not part of BaseDomainPolicy anymore.


svn path=/trunk/mcs/; revision=154949
2010-04-07 13:15:44 +00:00
Marek Habersack ad322714f6 2010-04-07 Marek Habersack <[email protected]>
* Control.cs: control cache must be filled using the local
	_controls collection instead of the virtual Controls
	property. Fixes bug #594238
	Check if _controls isn't null before using it.

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

	* ControlTest.cs: added test for bug #594238

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

	* Makefile: moved App_* test resources to separate variables -
	whatever is contained in those variables is preprocessed before
	embedding as resource to include appropriate resource name prefix
	(App_Code/, App_GlobalResources/ for now). This is used in WebTest
	to automatically populate the relevant directories when running
	the test suite.

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

	* WebTest.cs: introduced concept of prefixed resources and added
	an API which handles them - CopyPrefixedResources. All the
	manifest resource names are checked for match with the given
	prefix, and all the matching ones are copied to the specified
	subdirectory of the test directory.

svn path=/trunk/mcs/; revision=154948
2010-04-07 13:14:11 +00:00
Marek Habersack fef71fcd0d WIP: build fixes
svn path=/trunk/mcs/; revision=154947
2010-04-07 13:14:02 +00:00
Marek Habersack df45652907 WIP: host file watching
svn path=/trunk/mcs/; revision=154946
2010-04-07 13:13:54 +00:00
Marek Habersack 7a8e2dc73e WIP: System.Runtime.Caching.Hosting added
svn path=/trunk/mcs/; revision=154945
2010-04-07 13:13:46 +00:00
Marek Habersack 6fb7e60a2a System.Runtime.Caching.Configuration stuff implemented
svn path=/trunk/mcs/; revision=154944
2010-04-07 13:13:38 +00:00
Marek Habersack 4d85da83fc All System.Runtime.Caching namespace classes added + partial implementation
svn path=/trunk/mcs/; revision=154943
2010-04-07 13:13:30 +00:00
Marek Habersack 8e76009f14 ChangeMonitor implemented
svn path=/trunk/mcs/; revision=154942
2010-04-07 13:13:22 +00:00
Marek Habersack 44d44d4be1 Beginnings of System.Runtime.Caching
svn path=/trunk/mcs/; revision=154941
2010-04-07 13:13:03 +00:00
Jb Evain 76e05b36fd net_4_0 bug
svn path=/trunk/mcs/; revision=154939
2010-04-07 13:09:10 +00:00
Jb Evain 7b19040b46 this one has been passing for quite a while now
svn path=/trunk/mcs/; revision=154938
2010-04-07 12:56:40 +00:00
Jb Evain 4eb2be1bd7 net_4_0 change
svn path=/trunk/mcs/; revision=154937
2010-04-07 12:48:00 +00:00
Jb Evain 1dabd350af do not assert on ToString result
svn path=/trunk/mcs/; revision=154936
2010-04-07 12:41:44 +00:00
Jb Evain 998e9a01f5 add bug info
svn path=/trunk/mcs/; revision=154935
2010-04-07 12:41:27 +00:00
Jb Evain df3d82d078 overflow bug has been fixed in net_4_0
svn path=/trunk/mcs/; revision=154934
2010-04-07 12:41:09 +00:00
Jb Evain 4d4518d819 quote only work on lambda on net_4_0
svn path=/trunk/mcs/; revision=154933
2010-04-07 12:40:49 +00:00
Jb Evain 5329897d22 dlr bug
svn path=/trunk/mcs/; revision=154932
2010-04-07 12:31:31 +00:00
Zoltan Varga bf860504f2 2010-04-07 Zoltan Varga <[email protected]>
* interlocked-2.2.cs: Add an Interlocked.CompareExchange(long) test.

svn path=/trunk/mono/; revision=154930
2010-04-07 10:59:53 +00:00
Ankit Jain 3aaec9cbc3 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* ConsoleLogger.cs: Dump items and properties when a project starts
	to build. Useful for debugging.
	* Engine.cs (LogProjectStarted): Set the properties and items also,
	for the project started event.
	* Project.cs (EvaluatedPropertiesAsDictionaryEntries): New.
	(EvaluatedItemsByNameAsDictionaryEntries): New. Required for
	ProjectStartedEvent .

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

	* MSBuild.cs: Emit global properties, if any. Sort the property
	list.

svn path=/trunk/mcs/; revision=154929
2010-04-07 10:59:01 +00:00
Ankit Jain 49f779c77b * SolutionParser.cs: Identify and emit warning for a
common problem on some installations of windows.

svn path=/trunk/mcs/; revision=154928
2010-04-07 10:58:14 +00:00
Andrés G. Aragoneses d0e8e4e2e5 monolinker.1: Fix typo.
svn path=/trunk/mono/; revision=154926
2010-04-07 10:11:25 +00:00
Raja R Harinath 83f66481d7 * runtime/Makefile.am ($(tmpinst)/bin/dmcs): Add.
svn path=/trunk/mono/; revision=154924
2010-04-07 09:40:09 +00:00
Raja R Harinath 94997fc3bb build/library.make: Re-arrange slightly
svn path=/trunk/mcs/; revision=154923
2010-04-07 09:38:55 +00:00
Raja R Harinath bfa6d5d9c8 build/gensources.sh: Remove some temp files
svn path=/trunk/mcs/; revision=154922
2010-04-07 09:38:26 +00:00
Paolo Molaro 3f610de20f Wed Apr 7 11:28:42 CEST 2010 Paolo Molaro <[email protected]>
* method-to-ir.c: optimize array accesses from generic interfaces.


svn path=/trunk/mono/; revision=154918
2010-04-07 09:29:58 +00:00
Atsushi Eno 320e91e4b4 2010-04-07 Atsushi Enomoto <[email protected]>
* WSSecurityMessageHeader.cs : add FIXME comment.


svn path=/trunk/mcs/; revision=154917
2010-04-07 09:16:26 +00:00
Gonzalo Paniagua Javier 3139ea3608 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* TlsServerCertificate.cs: display the error code.


svn path=/trunk/mcs/; revision=154913
2010-04-07 07:20:36 +00:00
Raja R Harinath 1dadf7ca8a Greatly speed up gensources.sh and improve dependency handling
* build/Makefile (DISTFILES): Add gensources.sh.
* build/gensources.sh: New, improved version of tools/gensources.sh.
* build/library.make ($(sourcefile)): Use the new gensources.sh.
($(makefrag)): Update to handle the optional makefrag generated by
gensources.sh.
* tools/Makefile (DISTFILES): Remove gensources.sh.
* tools/gensources.sh: Remove.

svn path=/trunk/mcs/; revision=154909
2010-04-07 07:07:15 +00:00
Gonzalo Paniagua Javier 482e7855fb 2010-04-07 Gonzalo Paniagua Javier <[email protected]>
* file-io.c: reset the MonoIOStat structure in case of error.
	Fixes bug #582667.


svn path=/trunk/mono/; revision=154905
2010-04-07 05:51:47 +00:00
Marek Habersack 25177910f5 2010-04-07 Marek Habersack <[email protected]>
* FormParameter.cs, CookieParameter.cs, ProfileParameter.cs,
	QueryStringParameter.cs, SessionParameter.cs: implemented
	constructor overloads which take DbType as one of the arguments.

svn path=/trunk/mcs/; revision=154894
2010-04-06 23:53:13 +00:00
Rodrigo Kumpera 9c47d6e65d 2010-04-06 Rodrigo Kumpera <[email protected]>
* bug-575941.cs: New regression test.

svn path=/trunk/mono/; revision=154887
2010-04-06 23:11:37 +00:00
Rodrigo Kumpera 78130c60e0 2010-04-06 Rodrigo Kumpera <[email protected]>
* class.c (print_implemented_interfaces): Print proper type name.

	* class.c (mono_class_setup_vtable): Don't try that hard to produce
	the override map for generic instances since it later ignored.

	* class.c (mono_class_implement_interface_slow): Don't break for
	dynamic generic instances.

	* object.c (mono_runtime_invoke_array): Add an assert for allocation.

	* reflection.c (mono_reflection_method_get_handle): New method that
	resolves a method handle.

	* reflection.c (mono_reflection_get_dynamic_overrides): Handle the
	case when we override methods from a dynamic generic instance interface.

	Fixes #575941.

svn path=/trunk/mono/; revision=154886
2010-04-06 22:59:51 +00:00
Zoltan Varga cb53057d74 2010-04-06 Zoltan Varga <[email protected]>
* mini-llvm.c: Update after the memset/memcpy intrinsics changes in LLVM SVN.

svn path=/trunk/mono/; revision=154881
2010-04-06 21:49:12 +00:00
Sebastien Pouliot b61b5703ba 2010-04-06 Sebastien Pouliot <[email protected]>
* ClientAccessPolicyParser.cs: Don't forget "http-request-headers"
	as a valid attribute


svn path=/trunk/mcs/; revision=154876
2010-04-06 17:45:06 +00:00
Jb Evain 976bf8b5b3 fix bootstrap
svn path=/trunk/mcs/; revision=154875
2010-04-06 17:44:29 +00:00
Miguel de Icaza c0433d0108 2010-04-06 Miguel de Icaza <[email protected]>
* main.c: Prevent a crash with broken assemblies.

svn path=/trunk/mono/; revision=154872
2010-04-06 16:47:18 +00:00
Marek Safar a404505821 Add IInvokeOnGetBinder.cs
svn path=/trunk/mcs/; revision=154869
2010-04-06 16:24:05 +00:00
Marek Safar f61e9335ed 2010-04-06 Marek Safar <[email protected]>
* Updated to r46640.


svn path=/trunk/mcs/; revision=154868
2010-04-06 16:23:25 +00:00
Jb Evain f7b7951be3 2010-04-06 Jb Evain <[email protected]>
* corlib.dll.sources: add System.Threading.SemaphoreFullException
	from System in net_4_0.


svn path=/trunk/mcs/; revision=154867
2010-04-06 16:19:48 +00:00
Jb Evain c4713ea4a0 2010-04-06 Jb Evain <[email protected]>
* SemaphoreFullException.cs: moved to corlib in net_4_0.


svn path=/trunk/mcs/; revision=154866
2010-04-06 16:19:21 +00:00
Jb Evain 9100d7c0a0 2010-04-06 Jb Evain <[email protected]>
* Consts.cs.in: define Assembly_System_2_0 for TypeForwardedFrom
	attributes in NET_4_0.


svn path=/trunk/mcs/; revision=154865
2010-04-06 16:18:27 +00:00
Sebastien Pouliot 9317031d00 2010-04-06 Sebastien Pouliot <[email protected]>
* ClientAccessPolicyParser.cs: Catch extra attributes that
	leads to an invalid (no-access) policy. Fix parts of DRT#666
	* CrossDomainPolicyManager.cs: Ignore policies sent with a 
	Content-Type different than "text/*". Fix DRT#667
	* FlashCrossDomainPolicyParser.cs: Catch extra attributes and
	the case where a second policy is present (invalid xml). Fix 
	parts of DRT#666


svn path=/trunk/mcs/; revision=154862
2010-04-06 15:57:19 +00:00
Jb Evain a795caa374 fix ET tests for 4.0
svn path=/trunk/mcs/; revision=154861
2010-04-06 15:45:31 +00:00
Jb Evain d7f5bc5c88 fix ET tests for 4.0
svn path=/trunk/mcs/; revision=154860
2010-04-06 15:38:58 +00:00
Andreia Gaita fcf742c72f * docs/Makefile.am: fix distcheck - several targets get built on the
srcdir, which has no write permissions on make distcheck, so make
sure permissions are set

svn path=/trunk/mono/; revision=154859
2010-04-06 15:34:57 +00:00
Andreia Gaita 1805f1d3e9 * configure.in: add --with-mcs-path option to specify where the mcs
source can be found, if not on ./mcs or ../mcs
only touch the mcs and/or olive dirs and config files if we're
actually building them

svn path=/trunk/mono/; revision=154858
2010-04-06 15:34:54 +00:00
Rodrigo Kumpera 494e8a3de6 2009-04-06 Rodrigo Kumpera <[email protected]>
* wthreads.c (TlsSetValue): Don't take locks here. We trust
	* pthread_setspecific
	return value to tell if we tried to store to an invalid slot.

svn path=/trunk/mono/; revision=154856
2010-04-06 15:27:09 +00:00
Jb Evain 5729f636e4 2010-04-06 Jb Evain <[email protected]>
* QueryableEnumerable.cs: make TransformQueryable work on net_4_0.


svn path=/trunk/mcs/; revision=154854
2010-04-06 15:18:55 +00:00
Jb Evain 0b9757580e 2010-04-06 Jb Evain <[email protected]>
* net_4_0_System.Core.dll.sources: add files to support ToQueryable.


svn path=/trunk/mcs/; revision=154853
2010-04-06 15:18:30 +00:00
Jb Evain c69d983c54 2010-04-06 Jb Evain <[email protected]>
* QueryableTransformer.cs: use factory method that work for all
	ET implementations.


svn path=/trunk/mcs/; revision=154852
2010-04-06 15:17:55 +00:00
Carlos Alberto Cortez 19c10edf16 2010-04-06 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: Augment our ParseExactCustomFormats test - still
	marked as NotWorking for now, but committing now in order to have the
	tests ready.


svn path=/trunk/mcs/; revision=154848
2010-04-06 14:57:12 +00:00
Jb Evain 6d3f17210f add ExcludeFromCodeCoverageAttribute
svn path=/trunk/mcs/; revision=154847
2010-04-06 14:56:10 +00:00
Jb Evain a829255652 remove debug writelines
svn path=/trunk/mcs/; revision=154846
2010-04-06 14:42:08 +00:00
Jb Evain fd3c38d352 move FrameworkName from corlib to System
svn path=/trunk/mcs/; revision=154845
2010-04-06 14:31:59 +00:00
Jonathan Pobst 627d4e8952 Add System.Core reference to Microsoft.Build.Engine. Fix msvc build.
svn path=/trunk/mono/; revision=154844
2010-04-06 14:30:22 +00:00
Jb Evain e5cb263033 2010-04-06 Jb Evain <[email protected]>
* Debug.cs: make class static.


svn path=/trunk/mcs/; revision=154843
2010-04-06 12:49:51 +00:00
Jb Evain 85f02eb1ed 2010-04-06 Jb Evain <[email protected]>
* Debug.cs (Assert, WriteLine): add net_4_0 overloads.


svn path=/trunk/mcs/; revision=154842
2010-04-06 12:48:27 +00:00
Jb Evain 8a1eb97343 2010-04-06 Jb Evain <[email protected]>
* SortedSetTest.cs: add test for SortedSubSet.Count.


svn path=/trunk/mcs/; revision=154841
2010-04-06 12:40:15 +00:00
Jb Evain e67d275665 2010-04-06 Jb Evain <[email protected]>
* SortedSet.cs: implement Count for SortedSubSet.


svn path=/trunk/mcs/; revision=154840
2010-04-06 12:39:06 +00:00
Ankit Jain b4b657fd8a Fix make dist
In class/Microsoft.Build.Engine:

	* Makefile (EXTRA_DISTFILES): Remove TestTasks.dll.config .

In tools/xbuild:

	* Makefile: Add xbuild_targets.make .

svn path=/trunk/mcs/; revision=154839
2010-04-06 11:48:25 +00:00
Atsushi Eno 25a5ead3c2 2010-04-06 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : add commented note.


svn path=/trunk/mcs/; revision=154838
2010-04-06 11:13:49 +00:00
Marek Safar b3d906b959 Properties cleanup.
svn path=/trunk/mcs/; revision=154837
2010-04-06 10:00:48 +00:00
Marek Safar 832c380884 properties cleanup.
svn path=/trunk/mcs/; revision=154836
2010-04-06 10:00:14 +00:00
Ankit Jain 4427a60080 Add support for ToolsVersion and correctly build msbuild+xbuild assemblies
for 3.5 and 4.0 profiles.

2010-04-03  Ankit Jain  <[email protected]>

	* Makefile: Process tools/xbuild for 3.5 also.

In class/Microsoft.Build.Engine:
2010-04-03  Ankit Jain  <[email protected]>

	* Makefile: Use the correct assembly name for MS.Build.Utilities*
	for 3.5 and 4.0 profiles. Copy the .config files for the test
	assembly.
	Import tools/xbuild/xbuild_targets.make, which copies the target
	and tasks file in the correct place, to allow running tests
	with different toolsversion.
	* Microsoft.Build.Engine.dll.sources: Add LogExtensions.cs,
	Toolset.cs, ToolsetDefinitionLocations.cs and ToolsetCollection.cs .
	* Test/test-config-file-net-3.5: New.
	* Test/test-config-file-net-4.0: New.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2010-04-03  Ankit Jain  <[email protected]>

	* BuildEngine.cs: Implement IBuildEngine2 instead of
	IBuildEngine.
	* BuildTasks.cs: Use the new extension methods for logging.
	(InitializeTask): Emit a message informing about the assembly
	from which the task is being loaded. Emit a useful debug message
	incase of a InvalidCastException.
	* Engine.cs: Add missing methods, constructors and properties related
	to ToolsVersion support. Setup a default set of Toolsets.
	Keep separate taskdbs' per ToolsVersion. The common tasks
	would come from different *.tasks file, and use different
	task assemblies.
	(DefaultToolsVersion): Correctly set this based on the profile.
	* LogExtensions.cs: New. Extension methods on Engine, for logging.
	* Project.cs: Add missing methods/contructors/properties related
	to ToolsVersion support. Add reserved properties -
	MSBuildToolsPath and MSBuildToolsVersion .
	* Toolset.cs: New.
	* ToolsetCollection.cs: New.
	* ToolsetDefinitionLocations.cs: New.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
2010-04-06  Ankit Jain  <[email protected]>

	* Consts.cs (ToolsVersionString): New.
	(GetTasksAsmPath): New.
	* EngineTest.cs: Use the direct path to the tasks assembly
	in the UsingTasks.
	* ProjectTest.cs: Set ToolsVersion to the current profile.

In class/Microsoft.Build.Framework:
2010-04-03  Ankit Jain  <[email protected]>

	* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
	the target and tasks file in the correct place, to allow running
	tests with different toolsversion.
	* Microsoft.Build.Framework.dll.sources: Add IBuildEngine2.cs .

In class/Microsoft.Build.Framework/Microsoft.Build.Framework:
2010-04-03  Ankit Jain  <[email protected]>

	* IBuildEngine2.cs: New.

In class/Microsoft.Build.Tasks:
2010-04-03  Ankit Jain  <[email protected]>

	* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
	the target and tasks file in the correct place, to allow running
	tests with different toolsversion. Copy the config file for the
	test assembly. Clean the generated test.dll .
	Use the correct target assembly name for 4.0 profile
	(ms.build.tasks.v4.0.dll), and for Utilities assembly.
	* Microsoft.Build.Tasks_test.dll.sources: Use Consts.cs from Engine
	instead of maintaining a copy here.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
2010-04-03  Ankit Jain  <[email protected]>

	* Csc.cs: Use dmcs as the compiler for 4.0 profile.
	* MSBuild.cs (ToolsVersion): New.
	Use toolsVersion for building.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
2010-04-06  Ankit Jain  <[email protected]>

	* Consts.cs: Remove.
	* AssignProjectConfigurationTest.cs:
	* CreateCSharpManifestResourceNameTest.cs:
	* CreateVisualBasicManifestResourceNameTest.cs:
	* CreateItemTest.cs:
	* FindAppConfigFileTest.cs:
	* RemoveDuplicatesTest.cs:
	* TaskBatchingTest.cs:
	* WriteLinesToFileTest.cs:
	Set the ToolsVersion to match the profile. Use the
	full path to the tasks assembly for UsingTasks.

In class/Microsoft.Build.Utilities:
2010-04-03  Ankit Jain  <[email protected]>

	* Makefile: Import tools/xbuild/xbuild_targets.make, which copies
	the target and tasks file in the correct place, to allow running
	tests with different toolsversion.
	Use the correct target assembly name for 4.0 profile.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
2010-04-03  Ankit Jain  <[email protected]>

	* TargetDotNetFrameworkVersion.cs: Add Version40 .
	* Task.cs (BuildEngine2): New.
	* ToolLocationHelper.cs: Use class/linet_* as the path
	for the assemblies and targets when running tests.
	Environment variable TESTING_MONO is set for testing.
	This allows a 4.0 xbuild to build 2.0/3.5 projects.

In tools:
2010-04-03  Ankit Jain  <[email protected]>

	* Makefile: Move xbuild from net_4_0_dirs to per_profile_dirs.

In tools/xbuild:
2010-04-03  Ankit Jain  <[email protected]>

	* Main.cs (Execute): If toolsversion is specified on the command line,
	then use that.
	* Parameters.cs: Read toolsversion from the command line ('/tv:..') .
	* SolutionParser.cs: Infer ToolsVersion from the sln version.
	Set ToolsVersion property of the MSBuild tasks, in the generated
	.sln.proj file, for building the projects.

	* xbuild/Microsoft.Common.tasks: Move to ..
	* xbuild/2.0/Microsoft.Common.tasks: .. here.
	* xbuild/3.5/Microsoft.Common.tasks: New.
	* xbuild/4.0/Microsoft.Common.tasks: New.
	Use the corresponding 3.5/4.0 tasks assembly.

	* xbuild_targets.make: Copies the target and tasks file in the correct
	place, to allow running tests with different toolsversion.
	* Makefile: Import xbuild_targets.make . Use correct assembly names for
	Utilities assembly, for 3.5/4.0 profiles.
	Install the correct Microsoft.Common.tasks file for the profile.
	Copy xbuild.exe to class/li$(PROFILE), so that it can find other
	profile dirs as relative path.
	(EXTRA_DISTFILES): Add the new Microsoft.Common.tasks files.

svn path=/trunk/mcs/; revision=154835
2010-04-06 09:57:58 +00:00
Marek Safar b5aa5ab807 2010-04-06 Marek Safar <[email protected]>
* Array.cs: Don't make read-only collection read-only.


svn path=/trunk/mcs/; revision=154834
2010-04-06 09:55:46 +00:00
Marek Safar 6b119e8b04 2010-04-06 Marek Safar <[email protected]>
* ModuleBuilder.cs: Use Dictionary.


svn path=/trunk/mcs/; revision=154833
2010-04-06 09:47:13 +00:00
Marek Safar c0db44f5e6 property cleanup
svn path=/trunk/mcs/; revision=154831
2010-04-06 09:43:26 +00:00
Marek Safar 384d53767e 2010-04-06 Marek Safar <[email protected]>
* FileLevelControlBuilderAttribute.cs: Use reference comparison.


svn path=/trunk/mcs/; revision=154830
2010-04-06 09:42:55 +00:00
Atsushi Eno 4ef24ed9ad 2010-04-06 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : fill To header only if it does not exist.


svn path=/trunk/mcs/; revision=154826
2010-04-06 08:46:42 +00:00
Atsushi Eno fee81128a7 2010-04-06 Atsushi Enomoto <[email protected]>
* SecureMessageGenerator.cs : set ReplyTo and To, do not add.


svn path=/trunk/mcs/; revision=154825
2010-04-06 07:08:23 +00:00
Atsushi Eno f53aae9364 2010-04-06 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : use matching addressing version.
	  Remove header item if the same ones already exist.


svn path=/trunk/mcs/; revision=154824
2010-04-06 06:55:35 +00:00
Gonzalo Paniagua Javier d234d0136f 2010-04-06 Gonzalo Paniagua Javier <[email protected]>
* HttpRequestChannel.cs: don't create the wait handle unless it is
	really needed.


svn path=/trunk/mcs/; revision=154822
2010-04-06 05:01:51 +00:00
Gonzalo Paniagua Javier 9f2e80f5e2 2010-04-05 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: don't attempt to close the pipe when it has not been
	created.


svn path=/trunk/mono/; revision=154820
2010-04-06 02:36:37 +00:00
Gonzalo Paniagua Javier c666ae6cf4 by now, this code is only used by epoll
svn path=/trunk/mono/; revision=154812
2010-04-05 21:45:01 +00:00
Gonzalo Paniagua Javier 84f46e94ca 2010-04-05 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: if there are no waiting threads, try to start a new
	one. This fixes the not-so-random hangs in System.ServiceModel tests.
	No need to use InterlockedCompareExchange to read volatile variables.


svn path=/trunk/mono/; revision=154811
2010-04-05 21:30:23 +00:00
Rodrigo Kumpera 5e17b209c9 2010-04-05 Rodrigo Kumpera <[email protected]>
* bug-515884.il: New regression test.

svn path=/trunk/mono/; revision=154808
2010-04-05 21:02:00 +00:00
Rodrigo Kumpera b564faf890 2010-04-05 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle call to virtual
	* final methods
	of marshalbyref classes.

	Fixes #515884.

svn path=/trunk/mono/; revision=154807
2010-04-05 21:01:52 +00:00
Zoltan Varga d73463cc87 2010-04-05 Zoltan Varga <[email protected]>
* defs.h: Quiet warnings which might bother rpm.

svn path=/trunk/mcs/; revision=154805
2010-04-05 20:47:58 +00:00
Rodrigo Kumpera 1aa33e7236 2010-04-05 Rodrigo Kumpera <[email protected]>
* verify.c (verify_type_compatibility_full): Fail mixed
	* valuetype
	and reference types that point to the same class.

	Fixes #565598.

svn path=/trunk/mono/; revision=154801
2010-04-05 18:23:23 +00:00
Rodrigo Kumpera db026c6808 2010-04-05 Rodrigo Kumpera <[email protected]>
* unverifiable_ginst_dont_reduce_to_gparam_with_constraint.il:
	* Regression test
	for #587849.

svn path=/trunk/mono/; revision=154799
2010-04-05 16:52:03 +00:00
Rodrigo Kumpera dfa3282e44 2010-04-05 Rodrigo Kumpera <[email protected]>
* verify.c (verify_stack_type_compatibility_full): Ignore
	* constraints
	when verifying compatibility between a generic instance and a
generic
	parameter.

	* verify.c (check_is_valid_type_for_field_ops): Improve error
	* message.

	* verify.c (stack_slot_stack_type_full_name): Improve
	* verification type
	name.

	Fixes #587849.

svn path=/trunk/mono/; revision=154798
2010-04-05 16:51:55 +00:00
Rodrigo Kumpera 2996cf853e 2010-04-05 Rodrigo Kumpera <[email protected]>
* aot-compiler.c (emit_exception_debug_info): Encode try holes
	information.

	* aot-runtime.c (decode_exception_debug_info): Decode try holes
	information.

	* mini.h: Increase AOT version.

svn path=/trunk/mono/; revision=154797
2010-04-05 15:39:52 +00:00
Sebastien Pouliot 75701fe448 In .:
2010-04-05  Sebastien Pouliot  <[email protected]>

	* moonlight_raw_System.Net.dll.sources: Move InternalWebRequest
	StreamWrapper.cs back to System.Windows.dll

In System.Net:
2010-04-05  Sebastien Pouliot  <[email protected]>

	* InternalWebResponseStreamWrapper.cs: Move back to 
	System.Windows.dll


svn path=/trunk/mcs/; revision=154790
2010-04-05 12:55:54 +00:00
Raja R Harinath aaeb4b6ff2 Take advantage of set properties, C# default parameters and C# named parameters to make tests less verbose
svn path=/trunk/mcs/; revision=154789
2010-04-05 10:56:23 +00:00
Raja R Harinath 4478f7eb04 SortedSet: Complete implementation of more methods
* SortedSet.cs (IsProperSubsetOf, IsSubsetOf): Implement using ...
(is_subset_of): ... new helper.
(IsProperSupersetOf, IsSupersetOf): Implement using ...
(is_superset_of): ... new helper.
(covers, nodups, overlaps): New helpers.
(SetEquals): Implement.
(Overlaps): Implement using overlaps().
(SymmetricExceptWith): Use nodups() helper.

svn path=/trunk/mcs/; revision=154788
2010-04-05 09:59:41 +00:00
Atsushi Eno da6fdf34e6 2010-04-05 Atsushi Enomoto <[email protected]>
* EndpointAddressMessageFilter.cs : check null arg. Return false for
	  no To header case and do not result in NRE.f

	* EndpointAddressMessageFilterTest.cs :
	  Add null arg case. Enable working test.


svn path=/trunk/mcs/; revision=154787
2010-04-05 09:11:12 +00:00
Atsushi Eno 47ab4df163 2010-04-05 Atsushi Enomoto <[email protected]>
* WsdlExporterTest.cs : fixed and enabled some working tests.


svn path=/trunk/mcs/; revision=154786
2010-04-05 08:56:43 +00:00
Atsushi Eno ffd627fed2 2010-04-05 Atsushi Enomoto <[email protected]>
* DataContractExporter-new.cs : do not expect contract attribute on
	  dictionary map. Non-contract type also uses this.


svn path=/trunk/mcs/; revision=154785
2010-04-05 08:55:53 +00:00
Atsushi Eno c7ce2f9886 2010-04-05 Atsushi Enomoto <[email protected]>
* SerializationMap.XsdExporter.cs, DataContractExporter-new.cs :
	  handle schema export for SharedTypeMap.


svn path=/trunk/mcs/; revision=154784
2010-04-05 08:41:32 +00:00
Atsushi Eno 4cba78f6ff 2010-04-05 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs, SerializationMap.cs : split SharedTypeMap
	  .ctor() and initialization. Fixed infinite loop for some
	  [Serializable] types (such as Assembly).


svn path=/trunk/mcs/; revision=154783
2010-04-05 08:22:02 +00:00
Atsushi Eno e5a0f6bd4a 2010-04-05 Atsushi Enomoto <[email protected]>
* DispatchRuntimeTest.cs : enabled working tests again.


svn path=/trunk/mcs/; revision=154782
2010-04-05 07:48:01 +00:00
Atsushi Eno 4e1c23bf2b 2010-04-05 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs : hasParameter check is incorrectly
	  restrictive to reject some kinds of pairs.

	* CustomPeerResolverServiceTest.cs : enabled all disabled tests.


svn path=/trunk/mcs/; revision=154781
2010-04-05 07:45:21 +00:00
Atsushi Eno 546b5d35f2 2010-04-05 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializerTest.cs : don't use ToUniversalTime()
	  which makes test results timezone dependent.


svn path=/trunk/mcs/; revision=154780
2010-04-05 05:57:39 +00:00
Atsushi Eno d47ab227f7 2010-04-05 Atsushi Enomoto <[email protected]>
* BaseAddressPrefixFilterElementCollection.cs
	  BaseAddressPrefixFilterElement.cs : new classes.
	* ReliableSessionElement.cs
	  XmlDictionaryReaderQuotasElement.cs
	  TextMessageEncodingElement.cs
	  HostTimeoutsElement.cs
	  BaseAddressElementCollection.cs
	  BasicHttpBindingElement.cs
	  BindingElementExtensionElement.cs
	  StandardBindingElement.cs
	  BinaryMessageEncodingElement.cs : added couple of missing stuff.

	* ChannelTerminatedException.cs : new class.

	* System.ServiceModel.dll.sources : add some new config types and
	  ChannelTerminatedException.cs.


svn path=/trunk/mcs/; revision=154779
2010-04-05 05:10:02 +00:00
Andreas Färber 3079758d0a mini: Disable soft debugger when not using sigaction
The x86 soft debugger depends on siginfo_t outside Windows. So if we're
neither building for Windows nor using SA_SIGINFO-style signal handlers,
don't enable the soft debugger. Fixes the build on Haiku.

  So soft it might break
  Be Open for Berkeley
  But not for poets
                      -- Andreas F.

	* mini-x86.h: Only enable soft debugger when using sigaction or on
	Windows. Fixes build on Haiku (lacks siginfo_t).

v2 -> v3:
* Enable the soft debugger for Windows as well (uses different code path).
  Pointed out by Zoltan Varga.

v1 -> v2:
* Instead of disabling siginfo_t code inside the soft debugger,
  disable the soft debugger itself.

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution 3.0 license.

svn path=/trunk/mono/; revision=154778
2010-04-05 01:50:56 +00:00
Zoltan Varga 5a4f0630ae 2010-04-05 Zoltan Varga <[email protected]>
* configure.in: Append -lgc to libmono_ldflags if using an external libgc.

svn path=/trunk/mono/; revision=154775
2010-04-04 22:04:34 +00:00
Carlos Alberto Cortez 7567973b02 2010-04-04 Carlos Alberto Cortez <[email protected]>
* ToolTip.cs: Make TipState internal.
	* ToolStrip.cs: Use the same idea of ToolTip'state to have our
	internal timer close the tooltip window after a delay, instead of
	waiting for the mouse to move to a different item. Also, hide the
	tooltip window when the handle is destroyed, and also when the control
	is getting hidden.
	Fixes #581273.


svn path=/trunk/mcs/; revision=154774
2010-04-04 21:57:03 +00:00
Zoltan Varga c9306c8b35 Fix indentation.
svn path=/trunk/mono/; revision=154772
2010-04-04 21:00:35 +00:00
Zoltan Varga 78327ca2a4 2010-04-04 Zoltan Varga <[email protected]>
* processes.c: Applied more openbsd changes from Robert Nagy <[email protected]>.

svn path=/trunk/mono/; revision=154770
2010-04-04 19:32:19 +00:00
Raja R Harinath 40979641a2 SortedSet: implement IntersectWith, UnionWith, ExceptWith and SymmetricExceptWith
* System.Collections.Generic/SortedSet.cs (CheckArgumentNotNull): New helper.
(IntersectWith, UnionWith): Implement.
(ExceptWith, SymmetricExceptWith): Likewise.
(SortedSubSet.IntersectWith): Implement override.
* Test/System.Collections.Generic/SortedSetTest.cs: Add tests for IntersectWith,
UnionWith, ExceptWith and SymmetricExceptWith.

svn path=/trunk/mcs/; revision=154769
2010-04-04 18:22:37 +00:00
Mark Probst f33ea4016b 2010-04-04 Mark Probst <[email protected]>
* sgen-gc.c: Remove superfluous scanning of alloc-pinned objects.

svn path=/trunk/mono/; revision=154768
2010-04-04 17:19:09 +00:00
Andreas Färber 150a77c3a9 configure: Set default for moonlight
Make configure display "Moon Profile:  no".

	* configure.in: Set default for with_moonlight to fix
	"Moon Profile:" output.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=154765
2010-04-04 13:33:02 +00:00
Andreas Färber 151db775d1 configure: Fix typo
It's "initializer".

	* configure.in: Fix typo.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=154764
2010-04-04 13:28:54 +00:00
Raja R Harinath 5db7238202 * RBTree.cs (do_remove): Ensure the node returned is suitable for re-insertion.
svn path=/trunk/mcs/; revision=154762
2010-04-04 05:25:53 +00:00
Raja R Harinath c614397ffc Update known-issues-dmcs for real, this time
svn path=/trunk/mcs/; revision=154761
2010-04-04 05:25:33 +00:00
Zoltan Varga f2775387d3 2010-04-03 Zoltan Varga <[email protected]>
* processes.c: Applied more openbsd changes from Robert Nagy <[email protected]>.

svn path=/trunk/mono/; revision=154759
2010-04-04 04:07:02 +00:00
Zoltan Varga a603325118 2010-04-04 Zoltan Varga <[email protected]>
* threads.c Applied some openbsd changes from Robert Nagy <[email protected]>.

svn path=/trunk/mono/; revision=154757
2010-04-04 04:04:57 +00:00
Jb Evain 98a799a48b 2010-04-03 Jb Evain <[email protected]>
* Makefile: System.Data.Services is a .net 3.5 assembly.

svn path=/trunk/mcs/; revision=154754
2010-04-03 14:28:19 +00:00
Zoltan Varga c07b23b851 2010-04-03 Zoltan Varga <[email protected]>
* configure.in: Applied some openbsd changes from Robert Nagy
	<[email protected]>.

svn path=/trunk/mono/; revision=154752
2010-04-03 07:47:14 +00:00
Marek Habersack fc6da81e12 More cosmetics
svn path=/trunk/mcs/; revision=154749
2010-04-03 00:40:48 +00:00
Zoltan Varga c812577c34 2010-04-03 Zoltan Varga <[email protected]>
* processes.c: Applied some openbsd changes from Robert Nagy <[email protected]>.

svn path=/trunk/mono/; revision=154747
2010-04-03 00:35:45 +00:00
Marek Habersack dd0fe78418 Removed another batch of pre 2.0 code + some cosmetics
svn path=/trunk/mcs/; revision=154746
2010-04-03 00:25:13 +00:00
Marek Habersack b1bbc5ad14 Fixed two broken tests
svn path=/trunk/mcs/; revision=154745
2010-04-03 00:24:42 +00:00
Marek Habersack 65b8383af7 Introduced the MINGW_CROSS_COMPILE macro when cross-compiling with mingw
svn path=/trunk/mono/; revision=154744
2010-04-02 22:40:35 +00:00
Marek Habersack 6137f6e27d 2010-04-03 Marek Habersack <[email protected]>
* configure.in: TARGET_WIN32 is defined when cross-compiling with
	MinGW

	* build-mingw32.sh: include the 4.0 profile in the zip.
	Remove cross-compilation environment bin path from PATH before
	compiling native Mono.
	Remove autotools cache directory before each compilation phase.

2010-04-03  Marek Habersack  <[email protected]>

	* process.c: when compiling with MinGW, force GetProcessId lookup
	using GetProcessAddress.

svn path=/trunk/mono/; revision=154743
2010-04-02 22:09:22 +00:00
Miguel de Icaza 2b35d60a5a 2010-04-02 Miguel de Icaza <[email protected]>
* SafeHandle.cs: Use refcount == -1 to indicate that the handle
        had been closed.

        The problem here is that we have no records of why the code that
        threw a ObjectDisposedException inside the do { } while block on
        DangerousAddRef was added.   It seems it was added in response to
        Close() methods being called and the need to throw that exception
        on further calls to ObjectDisposedException.

        Sadly, we have no test suites for that.


svn path=/trunk/mcs/; revision=154741
2010-04-02 21:49:40 +00:00
Gonzalo Paniagua Javier 0adf2b5eb6 fix bug number
svn path=/trunk/mono/; revision=154739
2010-04-02 20:34:15 +00:00
Mark Probst 7a5f7554db 2010-04-02 Mark Probst <[email protected]>
* sgen-gc.c: parse_environment_string_extract_number() must be
        static.

svn path=/trunk/mono/; revision=154738
2010-04-02 20:03:40 +00:00
Mark Probst 4c16689c02 2010-04-02 Mark Probst <[email protected]>
* sgen-gc.c, sgen-gray.c: Macros for gray_object_enqueue() and
        gray_object_dequeue(), to make sure they're inlined.

svn path=/trunk/mono/; revision=154737
2010-04-02 20:02:51 +00:00
Mark Probst 9f99c3e31b 2010-04-02 Mark Probst <[email protected]>
* sgen-gc.c, sgen-gray.c: Fix a few debug levels, put a few
        asserts in inner loops into DEBUG and lower MAX_DEBUG_LEVEL.

svn path=/trunk/mono/; revision=154736
2010-04-02 20:01:33 +00:00
Raja R Harinath 8651010210 Update known-issues and IL size info
svn path=/trunk/mcs/; revision=154734
2010-04-02 16:54:34 +00:00
Raja R Harinath c02e9f4d90 Fix gtest-284 failure in net_4_0 profile
* Makefile (DEFINES) [moonlight, net_4_0]: New.
(check): Use it.
* gtest-284.cs [NET_4_0]: Don't complain about
IStructuralEquatable and IStructuralComparable array interfaces.

svn path=/trunk/mcs/; revision=154733
2010-04-02 16:54:14 +00:00
Gonzalo Paniagua Javier 3530b5e7c2 revert openbsd patch
svn path=/trunk/mono/; revision=154732
2010-04-02 16:26:17 +00:00
Jonathan Pryor 455d6eaeca * Makefile.am: On non-Windows platforms, MonoPosixHelper now links
against libmono.so, for mono_runtime_is_shutting_down().
	* signal.c: Only continue retrying system calls if Mono is NOT
	  attempting to shut down.  Fixes #592981.

svn path=/trunk/mono/; revision=154731
2010-04-02 16:19:43 +00:00
Marek Safar 447a8b082e internal and abstract do not play together
svn path=/trunk/mcs/; revision=154730
2010-04-02 15:58:35 +00:00
Atsushi Eno ab4534658e 2010-04-02 Atsushi Enomoto <[email protected]>
* XContainer.cs : create snapshot copy first before removal of nodes.
	  Fixed bug #592435.

	* XElementTest.cs : added test for bug #592435.


svn path=/trunk/mcs/; revision=154729
2010-04-02 15:57:48 +00:00
Jb Evain e7622f2f4a 2010-04-02 Jb Evain <[email protected]>
* dotnet35.pc.in: add System.Data.Services.dll.


svn path=/trunk/mono/; revision=154728
2010-04-02 15:21:51 +00:00
Jb Evain 67c90000b1 2010-04-02 Jb Evain <[email protected]>
* SortedSetTest.cs: add tests for Min and Max on subsets.


svn path=/trunk/mcs/; revision=154726
2010-04-02 15:12:01 +00:00
Jb Evain 66763c7baf 2010-04-02 Jb Evain <[email protected]>
* SortedSet.cs: implement Mix and Max for subsets.


svn path=/trunk/mcs/; revision=154725
2010-04-02 15:11:48 +00:00
Jb Evain 84fc79215f 2010-04-02 Jb Evain <[email protected]>
* SortedSetTest.cs: add tests for GetViewBetween.


svn path=/trunk/mcs/; revision=154723
2010-04-02 14:56:27 +00:00
Jb Evain 71b91562e5 2010-04-02 Jb Evain <[email protected]>
* SortedSet.cs: implement GetViewBetween.


svn path=/trunk/mcs/; revision=154722
2010-04-02 14:56:06 +00:00
Marek Safar de9fcae634 2010-04-02 Marek Safar <[email protected]>
* MethodBase.cs: Made GetParameterCount abstract and implement
	where missing to avoid redundant allocations.


svn path=/trunk/mcs/; revision=154721
2010-04-02 14:01:26 +00:00
Jb Evain 4b34728de0 refactoring
svn path=/trunk/mcs/; revision=154720
2010-04-02 13:42:38 +00:00
Gonzalo Paniagua Javier e2e30c842d shut up gcc in openbsd
svn path=/trunk/mono/; revision=154718
2010-04-02 13:42:13 +00:00
Jb Evain d71e62b2f8 2010-04-02 Jb Evain <[email protected]>
* SortedSet.cs: optimize Reverse. Add a virtual TryAdd and TryRemove
	to override in sub trees.


svn path=/trunk/mcs/; revision=154717
2010-04-02 13:36:23 +00:00
Andreas Färber ae71092ab0 mini: Add support for BeOS-style signal handlers
Haiku does not support SA_SIGINFO-style signal handlers but supports
a BeOS extension to signal handlers.

  POSIX is diverse
  Long road to Real Time Signals
  Unique Be's handlers
                        -- Andreas F.

	* mini.h, mini-x86.h: Suppress sigaction for Haiku, add support for
	BeOS-style signal handlers.

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.

svn path=/trunk/mono/; revision=154716
2010-04-02 12:29:58 +00:00
Jb Evain dd394b1071 2010-04-02 Jb Evain <[email protected]>
* SortedSetTest.cs: add tests for Min and Max.


svn path=/trunk/mcs/; revision=154715
2010-04-02 12:29:14 +00:00
Jb Evain e1936f0a89 2010-04-02 Jb Evain <[email protected]>
* SortedSet.cs: implement Min and Max.


svn path=/trunk/mcs/; revision=154714
2010-04-02 12:28:09 +00:00
Atsushi Eno cb897104f2 2010-04-02 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : hush on non-ml profile.


svn path=/trunk/mcs/; revision=154713
2010-04-02 12:27:05 +00:00
Atsushi Eno a4c1625957 2010-04-02 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs :
	  use DataContractSerializer.IsStartObject() to check if the fault
	  detail reader is for the fault contract, in addition to Action.

	* FaultContractInfo.cs : add serializer property.


svn path=/trunk/mcs/; revision=154712
2010-04-02 12:20:47 +00:00
Atsushi Eno 91fef293cb 2010-04-02 Atsushi Enomoto <[email protected]>
* DataContractSerializer : implement IsStartObject().


svn path=/trunk/mcs/; revision=154711
2010-04-02 12:12:50 +00:00
Jb Evain 9e0adb4647 2010-04-02 Jb Evain <[email protected]>
* SortedSetTest.cs: add test for RemoveWhere.


svn path=/trunk/mcs/; revision=154710
2010-04-02 12:05:37 +00:00
Jb Evain a902350772 2010-04-02 Jb Evain <[email protected]>
* SortedSet.cs: implement RemoveWhere.


svn path=/trunk/mcs/; revision=154709
2010-04-02 12:05:04 +00:00
Atsushi Eno f026893db8 2010-04-02 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : use correct max buffer size.


svn path=/trunk/mcs/; revision=154708
2010-04-02 11:36:49 +00:00
Atsushi Eno 6020091ff0 2010-04-02 Atsushi Enomoto <[email protected]>
* MessageFault.cs : check null serializer and detail.
	  Make sure to consume s12:Reason EndElement.


svn path=/trunk/mcs/; revision=154707
2010-04-02 11:11:13 +00:00
Jb Evain 0717f6b5fa 2010-04-02 Jb Evain <[email protected]>
* SortedSetTest.cs: add test for Reverse.


svn path=/trunk/mcs/; revision=154706
2010-04-02 10:54:10 +00:00
Jb Evain 454311541b 2010-04-02 Jb Evain <[email protected]>
* SortedSet.cs: implement Reverse.


svn path=/trunk/mcs/; revision=154705
2010-04-02 10:53:41 +00:00
Jb Evain a7147ab1ec add GetEnumerator test
svn path=/trunk/mcs/; revision=154704
2010-04-02 10:48:04 +00:00
Jb Evain b0d9c7d8c9 add fixture
svn path=/trunk/mcs/; revision=154703
2010-04-02 10:42:44 +00:00
Jb Evain b4a69791f4 2010-04-02 Jb Evain <[email protected]>
* SortedSetTest.cs: add new fixture.

svn path=/trunk/mcs/; revision=154702
2010-04-02 10:42:24 +00:00
Atsushi Eno f708dd6bd0 2010-04-02 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : fix moonlight build.


svn path=/trunk/mcs/; revision=154700
2010-04-02 10:10:31 +00:00
Jb Evain 367c08a086 2010-04-02 Jb Evain <[email protected]>
* exception.c: remove dead code.

svn path=/trunk/mono/; revision=154699
2010-04-02 10:06:14 +00:00
Atsushi Eno d51ce00eba 2010-04-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill FaultDescription action,
	  name and namespace as expected.

	* FaultDescriptionTest.cs : add new test.

	* FaultContractAttributeTest.cs : new test.

	* System.ServiceModel_test.dll.sources : add some new fault tests.


svn path=/trunk/mcs/; revision=154698
2010-04-02 09:39:45 +00:00
Atsushi Eno 31cad75870 2010-04-02 Atsushi Enomoto <[email protected]>
* DispatchOperationTest.cs : added not-working FaultContractInfo test.


svn path=/trunk/mcs/; revision=154697
2010-04-02 09:09:26 +00:00
Atsushi Eno 2caf1a736a 2010-04-02 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : use FaultContractInfos to create custom
	  FaultException<T>. (It's not picking the expected FCI yet.)


svn path=/trunk/mcs/; revision=154696
2010-04-02 09:08:29 +00:00
Atsushi Eno 36187d3171 2010-04-02 Atsushi Enomoto <[email protected]>
* MessageFault.cs : when created from XmlReader, it should not
	  deserialize fault details immediately. This class itself should
	  not do that. Strongly typed FaultContractInfo may want to use the
	  reader (GetReaderAtDetailContents()) for its own deserialization.


svn path=/trunk/mcs/; revision=154695
2010-04-02 09:07:09 +00:00
Atsushi Eno 4b04dc5db5 2010-04-02 Atsushi Enomoto <[email protected]>
* ContractDescription.cs : fill FaultContractInfos in ClientOperation.


svn path=/trunk/mcs/; revision=154694
2010-04-02 09:02:06 +00:00
Atsushi Eno f3a83a8e54 2010-04-02 Atsushi Enomoto <[email protected]>
* ClientOperation.cs : do not automatically fill FaultContractInfos.


svn path=/trunk/mcs/; revision=154693
2010-04-02 09:00:18 +00:00
Atsushi Eno e50d376520 2010-04-02 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : implement FaultContractInfos support.
	* ErrorProcessingHandler.cs : update comment. It is not relevant.


svn path=/trunk/mcs/; revision=154692
2010-04-02 06:19:47 +00:00
Atsushi Eno 3d1c16fc37 2010-04-02 Atsushi Enomoto <[email protected]>
* FaultDescription.cs : fill Action.
	* ContractDescriptionGenerator.cs : do not fill Faults from service
	  impl. method. Do this from contract method instead.
	* OperationDescription.cs : remove extra TODOs.


svn path=/trunk/mcs/; revision=154691
2010-04-02 05:45:39 +00:00
Atsushi Eno 642bfdb13c 2010-04-02 Atsushi Enomoto <[email protected]>
* EndpointDispatcher.cs : fill FaultContractInfos.
	* DispatchOperation.cs : do not fill them dynamically/automatically.
	* ErrorProcessingHandler.cs : added some FIXME notes.


svn path=/trunk/mcs/; revision=154690
2010-04-02 05:43:44 +00:00
Marek Habersack 51b3f4c4de 2010-04-02 Marek Habersack <[email protected]>
* configure.in: include -lkernel32 in LDFLAGS when cross-compiling
	with MINGW or compiling on Cygwin.

	* build-mingw32.sh: some changes to make the compilation work
	better on non-SuSE systems.

svn path=/trunk/mono/; revision=154683
2010-04-02 01:59:00 +00:00
Zoltan Varga 5490490021 2010-04-02 Zoltan Varga <[email protected]>
* mini-posix.c (sigusr1_signal_handler): Fix openbsd support.

svn path=/trunk/mono/; revision=154682
2010-04-02 01:13:20 +00:00
Zoltan Varga e6f42180e7 2010-04-02 Zoltan Varga <[email protected]>
* *-gc.c: Fix the signature of mono_gc_get_used/heap_size () to be consistent
	with mono-gc.h.

svn path=/trunk/mono/; revision=154681
2010-04-02 01:05:38 +00:00
Zoltan Varga 13fd0ade65 2010-04-02 Zoltan Varga <[email protected]>
* libtest.c: Add OpenBSD to the list of defines.

svn path=/trunk/mono/; revision=154679
2010-04-02 01:00:09 +00:00
Rodrigo Kumpera b10735919e 2010-04-01 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Fix test for v4 Equals behavior.

svn path=/trunk/mcs/; revision=154677
2010-04-01 22:57:53 +00:00
Rodrigo Kumpera e880014952 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement Resolve*.

svn path=/trunk/mcs/; revision=154676
2010-04-01 22:57:44 +00:00
Rodrigo Kumpera 0beef243b4 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement ModuleVersionId.

svn path=/trunk/mcs/; revision=154675
2010-04-01 22:57:36 +00:00
Marek Habersack 02723de0c2 2010-04-02 Marek Habersack <[email protected]>
* HttpException.cs: handle situations when current exception is an
	instance of a class derived from HttpException and there's no
	InnerException.

	* HttpApplication.cs: ProcessError must call ClearError on the
	current context after the handler returns without error. Fixes bug
	#572469

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

	* Unhandled_Exception_Global_Asax.cs: added - tests for bug
	#572469

svn path=/trunk/mcs/; revision=154672
2010-04-01 22:24:32 +00:00
Gonzalo Paniagua Javier 6dabf2abc3 2010-04-01 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: patch from Robert Nagy that makes this work in
	OpenBSD.


svn path=/trunk/mono/; revision=154670
2010-04-01 21:18:27 +00:00
Gonzalo Paniagua Javier 98c00a5bec cross-compilation fixes
svn path=/trunk/mono/; revision=154669
2010-04-01 20:53:19 +00:00
Gonzalo Paniagua Javier 2ef6d2bc73 cross-compilation fixes
svn path=/trunk/mono/; revision=154668
2010-04-01 20:53:08 +00:00
Gonzalo Paniagua Javier 28641e9637 default is windows-style
svn path=/trunk/mono/; revision=154666
2010-04-01 18:53:03 +00:00
Rodrigo Kumpera 6d55e2c917 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement ResolveType.

svn path=/trunk/mcs/; revision=154663
2010-04-01 17:37:52 +00:00
Rodrigo Kumpera a44422d2b8 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilderTest.cs (TestGlobalMethods): Improve test.

svn path=/trunk/mcs/; revision=154662
2010-04-01 17:37:44 +00:00
Rodrigo Kumpera d5876b9b03 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement GetMethodImpl.

svn path=/trunk/mcs/; revision=154661
2010-04-01 17:37:35 +00:00
Rodrigo Kumpera 071e5f514a 2010-04-01 Rodrigo Kumpera <[email protected]>
* Module.cs (GetMethod): Check for null 'types' argument.

	* MonoModule.cs (GetMethodImpl): Special case when 'types'
	is null and call Type::GetMethod(string) directly.
	This is ok since proper checking of the 'types' overload
	is done by callers.

svn path=/trunk/mcs/; revision=154660
2010-04-01 17:37:27 +00:00
Rodrigo Kumpera 273cd925d4 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs (DefineType): Raise the correct exception
	when name is null.

svn path=/trunk/mcs/; revision=154659
2010-04-01 17:37:18 +00:00
Rodrigo Kumpera 814e0d27d2 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement IsResource.

svn path=/trunk/mcs/; revision=154658
2010-04-01 17:37:09 +00:00
Rodrigo Kumpera 6b796ebc40 2010-04-01 Rodrigo Kumpera <[email protected]>
* AssemblyTest.cs: Fix one more tests under v4.

svn path=/trunk/mcs/; revision=154657
2010-04-01 17:37:01 +00:00
Rodrigo Kumpera 37939abe92 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement ScopedName property.

svn path=/trunk/mcs/; revision=154656
2010-04-01 17:36:52 +00:00
Rodrigo Kumpera ddd89e3700 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement Name property.

svn path=/trunk/mcs/; revision=154655
2010-04-01 17:36:43 +00:00
Jb Evain f9b47e69c8 2010-04-01 Jb Evain <[email protected]>
* SortedSet.cs: fix API.


svn path=/trunk/mcs/; revision=154654
2010-04-01 17:28:00 +00:00
Jb Evain aecfa48019 2010-04-01 Jb Evain <[email protected]>
* System.dll.sources: add SortedSet to the build.


svn path=/trunk/mcs/; revision=154653
2010-04-01 17:06:23 +00:00
Jb Evain ba41623fa7 2010-04-01 Jb Evain <[email protected]>
* SortedSet.cs: add new SortedSet type in .net 4.0


svn path=/trunk/mcs/; revision=154652
2010-04-01 17:05:57 +00:00
Rodrigo Kumpera 195d565be0 2010-04-01 Rodrigo Kumpera <[email protected]>
* mini-exceptions.c: Fix win32 build.

svn path=/trunk/mono/; revision=154651
2010-04-01 16:55:54 +00:00
Jb Evain 48c0c9ee3b 2010-04-01 Jb Evain <[email protected]>
* CodeDomProvider.cs, CompilerInfo.cs: add .net 4.0 overloads.


svn path=/trunk/mcs/; revision=154649
2010-04-01 15:47:55 +00:00
Mark Probst 9216c32ae4 2010-04-01 Sanjoy Das <[email protected]>
* sgen-gc.c: Make the nursery size adjustable by the
        MONO_GC_PARAMS environment variable.

        Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=154648
2010-04-01 15:43:56 +00:00
Gonzalo Paniagua Javier a0294e60f6 2010-04-01 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: threadpool threads wait is alertable.
	Fixes bug #592264.
	Reduced the stack size of the *poll_wait thread.


svn path=/trunk/mono/; revision=154645
2010-04-01 14:52:30 +00:00
Gonzalo Paniagua Javier 7859031387 2010-04-01 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.[ch]: wait can be alertable now. Defaults to FALSE.


svn path=/trunk/mono/; revision=154643
2010-04-01 14:49:54 +00:00
Mark Probst 2dbc3982ff 2010-04-01 Mark Probst <[email protected]>
* mini.c, driver.c: Call mono_gc_base_init() before
        mono_debug_init().

svn path=/trunk/mono/; revision=154642
2010-04-01 14:32:16 +00:00
Sebastien Pouliot 5619527a27 2010-04-01 Sebastien Pouliot <[email protected]>
* method-to-ir.c (ensure_method_is_allowed_to_[access_field|
	call_method]): Delegate the actual work in security-core-clr.c
	to ease code sharing.


svn path=/trunk/mono/; revision=154638
2010-04-01 13:19:02 +00:00
Sebastien Pouliot d712772881 2010-04-01 Sebastien Pouliot <[email protected]>
* exception.c|metadata-internals.h: Add new mono_get_exception_
	field_access_msg and mono_get_exception_method_access_msg 
	functions that accept a const char* parameter to provide more 
	details when the exception is thrown.
	* security-core-clr.c|h: Rework code to allow logging exceptions
	(export MONO_LOG_MASK="security") and to supply more details in
	[TypeLoad|MethodAccess|FieldAccess]Exception thrown. Also added
	mono_security_core_clr_is_field_access_allowed and 
	mono_security_core_clr_is_call_allowed to return an exception,
	with messages and logging, that can be emitted by method-to-ir.c


svn path=/trunk/mono/; revision=154637
2010-04-01 13:18:49 +00:00
Sebastien Pouliot e41eb5a32c 2010-04-01 Sebastien Pouliot <[email protected]>
* mono.1: Document the new "security" option for logging


svn path=/trunk/mono/; revision=154636
2010-04-01 13:18:27 +00:00
Sebastien Pouliot 8b156bf5e5 2010-04-01 Sebastien Pouliot <[email protected]>
* mono-logger.c, mono-logger-internal.h: Add a new "security"
	category to logging infrastructure.


svn path=/trunk/mono/; revision=154635
2010-04-01 13:18:15 +00:00
Marek Habersack 05c45cf998 2010-04-01 Marek Habersack <[email protected]>
* FormView.cs: do not show the pager if PagerSettings.Visible is
	false. Fixes bug #578863

2010-04-01  Marek Habersack  <[email protected]>

	* FormViewTest.cs: added test for bug #578863

svn path=/trunk/mcs/; revision=154631
2010-04-01 11:20:09 +00:00
Jb Evain 97d029989f 2010-04-01 Jb Evain <[email protected]>
* Module.cs: make Module abstract on net_4_0.


svn path=/trunk/mcs/; revision=154630
2010-04-01 11:12:45 +00:00
Jb Evain ba3c00c232 Fix the build for moonlight
svn path=/trunk/mcs/; revision=154629
2010-04-01 11:12:23 +00:00
Atsushi Eno e1b6d382fe 2010-04-01 Atsushi Enomoto <[email protected]>
* ConnectionOrientedTransportBindingElement.cs,
	  TcpTransportBindingElement.cs : implement GetProperty<T>().

	* TcpTransportBindingElementTest.cs : GetProperty<T>() here too.


svn path=/trunk/mcs/; revision=154624
2010-04-01 09:34:16 +00:00
Marek Safar 9d75b81298 More tests.
svn path=/trunk/mcs/; revision=154622
2010-04-01 09:29:04 +00:00
Atsushi Eno 73481d620c 2010-04-01 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
	  implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
	  properties type from HTTP.

	* HttpsTransportBindingElementTest.cs :
	  added test for GetProperty<T>().


svn path=/trunk/mcs/; revision=154621
2010-04-01 09:13:45 +00:00
Mark Probst 952e6b2075 2010-04-01 Mark Probst <[email protected]>
* sgen-gc.c, sgen-pinning-stats.c: In the heap-dump, dump each
        pinned object.

2010-04-01  Mark Probst  <[email protected]>

        * scripts/mono-heapviz: Process and output detailed pinning
        statistics.

svn path=/trunk/mono/; revision=154620
2010-04-01 09:05:48 +00:00
Miguel de Icaza 9a1847e7e6 2010-04-01 Miguel de Icaza <[email protected]>
* JsonValue.cs: We need to use Convert.ToXXXX for numbers as we
	always end up reporting the value JsonType.Number regardless of
	the underlying storage (int, long or decimal).   The parser
	picks the best storage suitable for the data, and can end up using
	"ints" for values that sometimes use longs. 

	This causes problems when derefercing the data for example, if you
	have an int and try to get it out as a long you end up with an
	invalid cast exception.

svn path=/trunk/mcs/; revision=154613
2010-04-01 06:39:52 +00:00
Atsushi Eno ad6c7601f5 2010-04-01 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : use addressing version from the message.

	* ServiceHostBaseTest.cs : enable RunDestinationUnreachableTest()
	  and add another case for different addressing version.


svn path=/trunk/mcs/; revision=154608
2010-04-01 04:54:36 +00:00
Zoltan Varga e3026229e1 2010-04-01 Zoltan Varga <[email protected]>
* config-default.make (LIBRARY_FLAGS): Applied patch from Laurent Etiemble
	([email protected]). Use CFLAGS in the environment if defined.

svn path=/trunk/mcs/; revision=154606
2010-04-01 03:19:05 +00:00
Zoltan Varga fe9f0c706a 2010-04-01 Zoltan Varga <[email protected]>
* appdomain.c (mono_domain_assembly_postload_search): Avoid a crash/assert if
	the assembly name is not well formed utf8. Fixes #567882.

svn path=/trunk/mono/; revision=154604
2010-04-01 03:01:40 +00:00
Zoltan Varga 311f8f8a24 2010-04-01 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_create_generic_class): Set the flags field of
	the generic parameters from the builder. Fixes #473298.

svn path=/trunk/mono/; revision=154602
2010-04-01 02:55:02 +00:00
Zoltan Varga 41e5927e08 2010-04-01 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
	float conv.ovf.un opcodes are encountered, instead of asserting later.
	Fixes #566296.

svn path=/trunk/mono/; revision=154599
2010-04-01 01:35:54 +00:00
Zoltan Varga 4a61b7007c 2010-04-01 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Add OP_ICONV_TO_U4_UN as a no-op.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=154597
2010-04-01 01:15:40 +00:00
Rodrigo Kumpera 104964981d 2010-03-31 Rodrigo Kumpera <[email protected]>
* ModuleBuilder.cs: Implement Assembly property.

svn path=/trunk/mcs/; revision=154596
2010-04-01 00:16:12 +00:00
Rodrigo Kumpera 4e0515fcb5 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement MetadataToken, FullyQualifiedName,
	ModuleVersionId, MDStreamVersion, ScopeName,
	Name, Assembly.

svn path=/trunk/mcs/; revision=154595
2010-04-01 00:16:04 +00:00
Rodrigo Kumpera fef7a3d59e 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement GetSignerCertificate and
	GetTypes.

svn path=/trunk/mcs/; revision=154594
2010-04-01 00:15:55 +00:00
Rodrigo Kumpera 0afbd38c63 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement ResolveMember, ResolveMethod,
	ResolveString, ResolveType, ResolveSignature and
	GetMethods.

svn path=/trunk/mcs/; revision=154593
2010-04-01 00:15:47 +00:00
Rodrigo Kumpera f8fe9c0525 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement GetField, GetFields,
	GetMethodImpl, GetPEKind, GetType, IsDefined and
	ResolveField.

svn path=/trunk/mcs/; revision=154592
2010-04-01 00:15:38 +00:00
Rodrigo Kumpera fb3890982c 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement GetCustomAttributesData.

svn path=/trunk/mcs/; revision=154591
2010-04-01 00:15:30 +00:00
Rodrigo Kumpera 6237214a46 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement GetCustomAttributes.

svn path=/trunk/mcs/; revision=154590
2010-04-01 00:15:21 +00:00
Rodrigo Kumpera 24ea18a2ac 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs:
	* MonoModule.cs: Implement FindTypes.

svn path=/trunk/mcs/; revision=154589
2010-04-01 00:15:13 +00:00
Rodrigo Kumpera 1605e98646 2010-03-31 Rodrigo Kumpera <[email protected]>
* Assembly.cs: Raise the right exception.

svn path=/trunk/mcs/; revision=154588
2010-04-01 00:15:04 +00:00
Rodrigo Kumpera 04fc560729 2010-03-31 Rodrigo Kumpera <[email protected]>
* Module.cs: Make .ctor protected under v4.
	* MonoModule.cs: Implement IsResource.

svn path=/trunk/mcs/; revision=154587
2010-04-01 00:14:56 +00:00
Rodrigo Kumpera e6e8bed840 2010-03-30 Rodrigo Kumpera <[email protected]>
* Module.cs: Make it a partial class under !v4.

	* MonoModule.cs: New type that exists only under
	v4. Under v2 it is a part of Module.

	This is the initial setup to make v4 Module an
	abstract type where all methods raise exceptions.

svn path=/trunk/mcs/; revision=154586
2010-04-01 00:14:47 +00:00
Zoltan Varga 7fd1535591 Fix an assertion message.
svn path=/trunk/mono/; revision=154584
2010-04-01 00:04:50 +00:00
Zoltan Varga 6a6e5d36d3 2010-04-01 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
	large. Fixes #567040.

	* method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.

svn path=/trunk/mono/; revision=154583
2010-04-01 00:04:44 +00:00
Zoltan Varga 1e41bd3687 2010-04-01 Zoltan Varga <[email protected]>
* TypeBuilder.cs (GetField): Avoid a crash if this is called on a
	FieldOnTypeBuilderInst. Fixes #586944.

svn path=/trunk/mcs/; revision=154580
2010-03-31 23:09:53 +00:00
Zoltan Varga e47e2d0ae0 2010-04-01 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_ccastclass): Call save_cast_details (). Fixes
	#592711.

svn path=/trunk/mono/; revision=154575
2010-03-31 22:43:51 +00:00
Miguel de Icaza 393d8415e7 2010-03-31 Miguel de Icaza <[email protected]>
* mono-semaphore.h: Use Windows semaphores on Windows, patch
	contributed by Vincent Povirk from bugzilla #531767

svn path=/trunk/mono/; revision=154573
2010-03-31 19:59:22 +00:00
Marek Safar f3176e08c9 Flush more pending tests.
svn path=/trunk/mcs/; revision=154568
2010-03-31 18:50:06 +00:00
Carlos Alberto Cortez 30cffd443d 2010-03-31 Carlos Alberto Cortez <[email protected]>
* ListView.cs: Selection should be available after the first time the
	handle has been created, even if later the handle is destroyed or
	temporary invalidated.
	Fixes #584070.


svn path=/trunk/mcs/; revision=154567
2010-03-31 17:58:37 +00:00
Paolo Molaro d8abeb0623 Added a summary of the update procedure.
svn path=/trunk/mono/; revision=154566
2010-03-31 17:51:34 +00:00
Paolo Molaro 049fa00df1 Document --machine-config in --help as well as in the manpage.
svn path=/trunk/mcs/; revision=154563
2010-03-31 17:34:29 +00:00
Miguel de Icaza 19df576730 2010-03-31 Miguel de Icaza <[email protected]>
* mono-hash.c (test_prime): Remove warnings

svn path=/trunk/mono/; revision=154554
2010-03-31 14:57:23 +00:00
Miguel de Icaza e815682464 2010-03-31 Miguel de Icaza <[email protected]>
* object.c (mono_class_proxy_vtable): Eliminate warning. 

svn path=/trunk/mono/; revision=154553
2010-03-31 14:55:35 +00:00
Miguel de Icaza a06acd5269 2010-03-31 Miguel de Icaza <[email protected]>
* marshal.c (emit_marshal_boolean): Eliminate possible
	uninitialized local warning. 

svn path=/trunk/mono/; revision=154552
2010-03-31 14:53:54 +00:00
Zoltan Varga daf43acd94 Revert "2010-03-31 Zoltan Varga <[email protected]>"
This reverts commit 7a2f0e777f7ff56bf04a4ce95642f94f3c378deb.

Revert this as it cannot be turned off.

svn path=/trunk/mono/; revision=154550
2010-03-31 13:09:32 +00:00
Zoltan Varga 4edd174f1e Fix a warning.
svn path=/trunk/mono/; revision=154549
2010-03-31 12:45:15 +00:00
Zoltan Varga 4602b76af7 2010-03-31 Zoltan Varga <[email protected]>
* driver.c (mono_main): Enable debugging by default when doing aot compiling.

svn path=/trunk/mono/; revision=154548
2010-03-31 12:44:30 +00:00
Zoltan Varga 7d1f7f3599 2010-03-31 Zoltan Varga <[email protected]>
* library.make ($(the_lib)$(PLATFORM_AOT_SUFFIX)): Pass --debug to the aot
	compiler. Fixes #592545.

svn path=/trunk/mcs/; revision=154547
2010-03-31 12:28:00 +00:00
Miguel de Icaza 732e4391d8 Add tests
svn path=/trunk/mcs/; revision=154534
2010-03-31 05:18:13 +00:00
Miguel de Icaza 36d1d99c5b 2010-03-31 Miguel de Icaza <[email protected]>
* UInt32.cs, Int64.cs, UInt64.cs: cope with the case that the
	IFormatProvider is not a NumberFormatInfo, preventing a crash.
	This was already handled by Int32.cs, but these other routines
	were never properly updated. 

	Fixes #588356


svn path=/trunk/mcs/; revision=154532
2010-03-31 05:15:25 +00:00
Miguel de Icaza 0fb43d6e9f 2010-03-30 Sebastien Pouliot <[email protected]>
* moonlight_raw_corlib.dll.sources: Fix Moonlight since these 
	types now reside in mscorlib (not System.Coe) for NET_4_0 and
	also for SL4

2010-03-26  Sebastien Pouliot  <[email protected]>

	* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
	since it contains parts of the Assembly features (partial class)

svn path=/trunk/mcs/; revision=154531
2010-03-31 05:05:22 +00:00
Gonzalo Paniagua Javier ae291bdefb entry for a change in HttpResponseStream.cs
svn path=/trunk/mcs/; revision=154525
2010-03-31 01:10:43 +00:00
Rolf Bjarne Kvinge adafc9d132 2010-03-31 Rolf Bjarne Kvinge <[email protected]>
* mini-trampolines.c: Surround mono_handler_block_guard_trampoline and
	mono_create_handler_block_trampoline with the proper #ifdef so that it
	compiles on amd64.

svn path=/trunk/mono/; revision=154524
2010-03-31 00:59:55 +00:00
Marek Safar 38e322a8d2 New tests.
svn path=/trunk/mcs/; revision=154509
2010-03-30 22:04:09 +00:00
Gonzalo Paniagua Javier c4b08a1fc0 undo
svn path=/trunk/mcs/; revision=154498
2010-03-30 21:22:16 +00:00
Rodrigo Kumpera 8219a5b763 2010-03-30 Rodrigo Kumpera <[email protected]>
* mini-exceptions.c: Introduce mono_walk_stack_full, which
	allows to select if it's new or old context that is passed to
	the callback.

	* mini-exceptions.c (mono_handle_exception_internal): Handle the
	case when executing a guarded handler from the EH machinery.

	* mini-exceptions.c (mono_install_handler_block_guard): New function
	responsible for checking for handler blocks, installing the guard and
	clearing abort state.

	* mini-posix.c (sigusr1_signal_handler): Call mono_install_handler_block_guard
	to check for handler blocks and skip interruption logic if one was found.

	* mini-trampolines.c (mono_handler_block_guard_trampoline): Function called
	by the handler block guard trampoline. Resumes interruption by raising the
	pending ThreadAbortException.

	* mini.c (create_jit_info): Calculate the end address of a finally block.

	* mini-x86.c (mono_arch_install_handler_block_guard): Patch the return address
	of a finally block to a specified address and return the old one.

	* tramp-x86.c (mono_arch_create_handler_block_trampoline): The handler block
	trampoline patches the original return address and calls the trampoline function.

svn path=/trunk/mono/; revision=154495
2010-03-30 21:03:23 +00:00
Rodrigo Kumpera 48a950b641 2010-03-30 Rodrigo Kumpera <[email protected]>
* domain-internals.h (MonoJitExceptionInfo): Add new field
	handler_end to the data union. To be used to point the end
	of a finally block.

svn path=/trunk/mono/; revision=154494
2010-03-30 21:03:14 +00:00
Gonzalo Paniagua Javier 4ac0c2f561 2010-03-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/PageParser.cs:
	* System.Web.UI/Page.cs:
	* System.Web.Compilation/PageCompiler.cs: default for
	EnableViewStateMac is true. Allow setting it from a @Page
	directive.


svn path=/trunk/mcs/; revision=154493
2010-03-30 21:00:21 +00:00
Zoltan Varga b8f65530e3 2010-03-30 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Add a test for #592215.

svn path=/trunk/mcs/; revision=154487
2010-03-30 20:11:09 +00:00
Zoltan Varga f9ae95c854 2010-03-30 Zoltan Varga <[email protected]>
* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
	the TypeBuilder since the runtime code can't handle a duplicate type name.

svn path=/trunk/mcs/; revision=154486
2010-03-30 20:11:02 +00:00
Sebastien Pouliot ddacacca00 2010-03-30 Sebastien Pouliot <[email protected]>
* class.c (mono_class_init): Postpone coreclr inheritance check
	until the end of the initialization (so we can check up the 
	default ctor manually for the core-clr inheritance rules).
	* security-core-clr.c: Add the missing (undocumented) checks on
	default constructors when verifying inheritance rules.



svn path=/trunk/mono/; revision=154485
2010-03-30 20:05:27 +00:00
Zoltan Varga 9d9cd95bf2 2010-03-30 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_aot_trampoline): Remove some dead code.

	* aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
	does the patching if the callee is in the same domain.

	* aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
	of mono_arch_patch_plt_entry ().

svn path=/trunk/mono/; revision=154483
2010-03-30 19:49:46 +00:00
Rodrigo Kumpera b6b17619a9 2010-03-30 Rodrigo Kumpera <[email protected]>
* mini.c (create_jit_info): Fix try block hole length encoding.

svn path=/trunk/mono/; revision=154482
2010-03-30 19:34:14 +00:00
Rodrigo Kumpera d6fd96b8d1 2010-03-30 Rodrigo Kumpera <[email protected]>
* mini.c (create_jit_info): Emit saner debug spew. Now it doesn't
	duplicate information and print offsets instead of absolute addresses.

svn path=/trunk/mono/; revision=154481
2010-03-30 19:34:06 +00:00
Rodrigo Kumpera 80e31aecf0 2010-03-30 Rodrigo Kumpera <[email protected]>
* reflection.c: Add support for new v4 type
	System.Reflection.MonoModule that is the concrete version
	of Module which is abstract unver v4.

svn path=/trunk/mono/; revision=154480
2010-03-30 19:33:58 +00:00
Rodrigo Kumpera 50e1cfc73c 2010-03-30 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_init): Don't set class failure after
	inited = 1 is set. It must be done before.

svn path=/trunk/mono/; revision=154479
2010-03-30 19:33:49 +00:00
Sebastien Pouliot 081bf46075 fix TimeZoneInfo for moonlight (moving from System.Core to mscorlib)
svn path=/trunk/mcs/; revision=154478
2010-03-30 19:23:59 +00:00
Zoltan Varga 39fb339f77 2010-03-30 Zoltan Varga <[email protected]>
* test-106.cs: Move the wait for cb_state == 1 out of the try block so this
	test becomes deterministic.

svn path=/trunk/mcs/; revision=154475
2010-03-30 18:16:48 +00:00
Zoltan Varga 4fc39eebd4 2010-03-30 Zoltan Varga <[email protected]>
* CustomAttributeType.cs (IsValidType): Implement proper checking for value types
	as well.

svn path=/trunk/mcs/; revision=154473
2010-03-30 18:03:26 +00:00
Marek Safar c4054c963c New test.
svn path=/trunk/mcs/; revision=154468
2010-03-30 17:11:40 +00:00
Jb Evain 7109be8d25 fix typos
svn path=/trunk/mcs/; revision=154467
2010-03-30 17:09:53 +00:00
Andreas Färber 08452b096e config: Add support for Haiku
Allow using "haiku" as OS in dllmap.

  Light as a feather
  Beautiful thy name Haiku
  Poetry in files
                    -- Andreas F.

	* mono-config.c: Add support for OS "haiku"
	* ChangeLog: Fix UTF-8 encoding

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.

svn path=/trunk/mono/; revision=154466
2010-03-30 16:47:28 +00:00
Jb Evain e216975f7c 2010-03-30 Jb Evain <[email protected]>
* MonoAssembly.cs: make MonoAssembly non public.


svn path=/trunk/mcs/; revision=154463
2010-03-30 15:41:47 +00:00
Jb Evain bcd4f4e961 fix the build
svn path=/trunk/mcs/; revision=154462
2010-03-30 15:41:18 +00:00
Jb Evain 662043a1f1 2010-03-30 Jb Evain <[email protected]>
* TimeZoneInfo.AdjustmentRule.cs
	* TimeZoneInfo.TransitionTime.cs:
		Add TypeForwarderFrom attributes.


svn path=/trunk/mcs/; revision=154461
2010-03-30 15:18:03 +00:00
Jb Evain e800d606de 2010-03-30 Jb Evain <[email protected]>
* Queryable.cs: implement Zip for net_4_0.


svn path=/trunk/mcs/; revision=154460
2010-03-30 15:06:54 +00:00
Jonathan Pobst 1e353fa619 fix msvc build.
svn path=/trunk/mono/; revision=154457
2010-03-30 14:33:25 +00:00
Carlos Alberto Cortez a71f700b84 2010-03-30 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: New test for TryParseExact.


svn path=/trunk/mcs/; revision=154455
2010-03-30 14:12:29 +00:00
Paolo Molaro d6889ee440 Tue Mar 30 15:53:06 CEST 2010 Paolo Molaro <[email protected]>
* console-unix.c: fixed include logic for sys/ioctl.h.


svn path=/trunk/mono/; revision=154453
2010-03-30 13:54:15 +00:00
Jb Evain de3cb0fbaf 2010-03-30 Jb Evain <[email protected]>
* Binder.cs (BindToMethod): fix the case where we bind to a method
	with only one params parameter and that no args are given.


svn path=/trunk/mcs/; revision=154452
2010-03-30 13:37:08 +00:00
Jb Evain 3f223ea4bd 2010-03-30 Jb Evain <[email protected]>
* ActivatorTest.cs: add more tests to CreateInstance constructors
	with params arrays.


svn path=/trunk/mcs/; revision=154451
2010-03-30 13:36:12 +00:00
Mark Probst 76856a554a 2010-03-30 Mark Probst <[email protected]>
* threads.c: Fix bitmap generation for TLS marking on 64 bit
        systems.

svn path=/trunk/mono/; revision=154450
2010-03-30 13:13:39 +00:00
Jb Evain a322aeae23 in System:
2010-03-30  Jb Evain  <[email protected]>

	* MonoType.cs: let the binder reorder arguments when invoking
	params methods.
	* Activator.cs (CreateInstance): use BindToMethod instead of
	SelectMethod to make sure that params constructors are properly called.

	Fixes #591877

in System.Reflection:
2010-03-30  Jb Evain  <[email protected]>

	* Binder.cs: when invoking a params method, pack the params
	arguments before doing the actual invocation.

	Fixes #591877

svn path=/trunk/mcs/; revision=154449
2010-03-30 13:12:34 +00:00
Jb Evain be157463fb 2010-03-30 Jb Evain <[email protected]>
* ActivatorTest.cs: add tests for #591877.


svn path=/trunk/mcs/; revision=154448
2010-03-30 13:12:23 +00:00
Atsushi Eno a286cc646c 2010-03-30 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : differentiate EndpointNotFound and
	  ActionNotSupported so that FaultConverter can create appropriate
	  fault messages. Removed extra filter condition on null To item.
	  And create fault messages on *any* server side error, do not let
	  request client infinitely wait for the response until timeout.

	  (RunDestinationUnreachableTest() is still not working but it works
	  when it is SOAP 1.2.)


svn path=/trunk/mcs/; revision=154439
2010-03-30 10:28:51 +00:00
Raja R Harinath 53dd895efd Clean up some whitespace in the output
* main.c (pinvoke_flags_map): Add a few trailing spaces.
* util.c (flags): Simplify.

verified whitespace changes are non-significant with 'diff -b'

svn path=/trunk/mono/; revision=154433
2010-03-30 08:59:36 +00:00
Raja R Harinath f57a91c468 Make util.c:flags() stricter -- don't silently ignore unknown flags
* get.c (field_flags_map): Add empty entries for
HAS_FIELD_MARSHAL, HAS_DEFAULT and HAS_FIELD_RVA.
* main.c (method_flags_map): Add empty entry for HAS_SECURITY.
* util.c (flags): Remove known flags from 'code' in loop.  Any
leftover flags are printed as "unknown-flag-xx".

svn path=/trunk/mono/; revision=154432
2010-03-30 08:59:22 +00:00
Raja R Harinath fa2f6d0d47 Prepare for util.c:flags() to be stricter
* main.c (pinvoke_flags): Remove cset and cconv flags before passing onto flags().
(method_flags): Likewise with access flags.
* get.c (field_flags): Likewise.
(get_method_impl_flags): Likewise, with code_type and managed_type flags.

svn path=/trunk/mono/; revision=154431
2010-03-30 08:59:04 +00:00
Raja R Harinath 29320dc6e9 * get.c (managed_impl_flags): Add 'nooptimization' flag.
svn path=/trunk/mono/; revision=154430
2010-03-30 08:58:50 +00:00
Raja R Harinath fe9b266b1e update monodis-wrapper.in to reflect new libmono location
svn path=/trunk/mono/; revision=154429
2010-03-30 08:58:36 +00:00
Atsushi Eno 3d135ccba1 2010-03-30 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : for faults, use fault namespace, not that of
	  ReplyAction. Added FIXME comment regarding dispatcher.


svn path=/trunk/mcs/; revision=154427
2010-03-30 07:35:56 +00:00
Atsushi Eno a23f75e7be 2010-03-30 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : check envelope version, not addressing version.


svn path=/trunk/mcs/; revision=154426
2010-03-30 07:34:18 +00:00
Atsushi Eno 75fa12815f 2010-03-30 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : use correct buffer size.


svn path=/trunk/mcs/; revision=154425
2010-03-30 07:31:57 +00:00
Zoltan Varga 7a53545cf5 2010-03-30 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs: Fix the calls to IsValidType, some were passing
	in DeclaringType instead of PropertyType/FieldType.

	* CustomAttributeType.cs (IsValidType): Implement proper checking for reference
	types. Fixes #591788.

svn path=/trunk/mcs/; revision=154423
2010-03-30 05:27:31 +00:00
Miguel de Icaza 6717505d42 First part of bug fix for Joachim's bug
svn path=/trunk/mono/; revision=154422
2010-03-30 04:05:28 +00:00
Zoltan Varga 831b96547e 2010-03-30 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for
	dynamic enums to avoid crashes in the unmanaged code. Fixes #591800.

svn path=/trunk/mcs/; revision=154419
2010-03-30 03:30:19 +00:00
Zoltan Varga a4808ee095 2010-03-30 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Enum_get_underlying_type): Don't crash on
	unfinished/broken typebuilders.

svn path=/trunk/mono/; revision=154417
2010-03-30 03:26:59 +00:00
Carlos Alberto Cortez 17e94eebe0 2010-03-29 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: New test for ParseExact/TryParseExact.


svn path=/trunk/mcs/; revision=154416
2010-03-30 03:14:27 +00:00
Carlos Alberto Cortez 1188d80aa0 2010-03-29 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Implement all the overloads of both TryParseExact and
	ParseExact methods, by detecting the specific semantic changes in the
	parse process, so we can properly re-utilize our new approach. This
	included indicating our parser its culture sensitiveness, usage of colon as
	day separator fallback or as a precise separator, and other minor bits.
	We are only missing composite parsing right now.


svn path=/trunk/mcs/; revision=154415
2010-03-30 03:13:17 +00:00
Zoltan Varga 878ec1b8b2 2010-03-30 Zoltan Varga <[email protected]>
* arm/*.sh: Remove bash dependency.

svn path=/trunk/mono/; revision=154407
2010-03-29 23:21:23 +00:00
Mark Probst 7291ba280d 2010-03-29 Mark Probst <[email protected]>
* sgen-gc.c: Use the same heuristic for the LOS target that we use
        for the minor section allowance.

svn path=/trunk/mono/; revision=154403
2010-03-29 22:00:18 +00:00
Zoltan Varga 2c0fb349d4 2010-03-29 Zoltan Varga <[email protected]>
* mph.h: Applied some changes from the openbsd ports tree to fix openbsd
	support.

svn path=/trunk/mono/; revision=154401
2010-03-29 21:34:56 +00:00
Sebastien Pouliot c4e3787ace 2010-03-29 Sebastien Pouliot <[email protected]>
* AppDomainSetup.cs: Add new (FX4 and SL4) SetCompatibilitySwitches
	method (empty is good enough for moonlight testing)
	* Environment.cs: Expose MyVideos in Moonlight build


svn path=/trunk/mcs/; revision=154400
2010-03-29 20:34:24 +00:00
Raja R Harinath 6a6fc5e87e * metadata-verify.c (INVALID_METHOD_IMPLFLAG_BITS): Allow bit 6 "NoOptimization".
svn path=/trunk/mono/; revision=154395
2010-03-29 18:45:14 +00:00
Raja R Harinath dab2643cd6 Fix 'compiler-tests'
svn path=/trunk/mono/; revision=154394
2010-03-29 18:45:00 +00:00
Andreas Färber ae24070d38 configure: Add support for Haiku
Not Just For Monkeys
  Common Runtime Is Purpose
  For Mono To Be
                   -- Andreas F.

	* configure.in: Add support for Haiku

v1 -> v2:
* Don't set have_visibility_hidden=no (pointed out by Ingo Weinhold)
* Update platform_win32=no -> host_win32=no

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.

svn path=/trunk/mono/; revision=154390
2010-03-29 17:54:04 +00:00
Marek Habersack 98fff2b311 2010-03-29 Marek Habersack <[email protected]>
* GridView.cs: main table must be created and added to the
	controls collection before any OnRowCreated event is fired.

svn path=/trunk/mcs/; revision=154386
2010-03-29 16:59:22 +00:00
Jb Evain a3be5f92b7 2010-03-29 Jb Evain <[email protected]>
* Mono.Cecil/AssemblyStripper.cs: optimize.


svn path=/trunk/mcs/; revision=154377
2010-03-29 14:28:03 +00:00
Atsushi Eno a08eda1815 2010-03-29 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : implemented TryCreateException().

	* FaultConverterTest.cs : added more TryCreateException() tests.


svn path=/trunk/mcs/; revision=154376
2010-03-29 14:01:33 +00:00
Atsushi Eno fbfbbbfa88 2010-03-29 Atsushi Enomoto <[email protected]>
* MetadataResolverTest.cs : enable working tests.


svn path=/trunk/mcs/; revision=154372
2010-03-29 13:06:47 +00:00
Atsushi Eno 181eb81847 2010-03-29 Atsushi Enomoto <[email protected]>
* EndpointIdentityTest.cs, EndpointAddress10Test.cs :
	  enable working tests.


svn path=/trunk/mcs/; revision=154371
2010-03-29 12:52:52 +00:00
Mark Probst b447e521fe 2010-03-29 Mark Probst <[email protected]>
* sgen-gc.c: Count bytes allocated with heavy statistics.

svn path=/trunk/mono/; revision=154370
2010-03-29 12:52:03 +00:00
Mark Probst 371e8b4b0f 2010-03-29 Mark Probst <[email protected]>
* sgen-gc.c: More detailed time statistics.

svn path=/trunk/mono/; revision=154369
2010-03-29 12:51:10 +00:00
Atsushi Eno 6e5c07fd59 2010-03-29 Atsushi Enomoto <[email protected]>
* XmlTypeMapping.cs, XmlReflectionImporter.cs: XmlRoot takes higher
	  priority to XmlSchemaProvider QName.
	  This fixes WCF EndpointAddress serialization.

	* XmlSerializerTests.cs : test for XmlRoot and XmlSchemaProvider
	  QName conflict case.


svn path=/trunk/mcs/; revision=154368
2010-03-29 12:48:29 +00:00
Atsushi Eno 28e997e1e9 2010-03-29 Atsushi Enomoto <[email protected]>
* MessageHeaderTest.cs : enable one, add not-working cosmetic one.


svn path=/trunk/mcs/; revision=154367
2010-03-29 12:07:37 +00:00
Sebastien Pouliot c02f14af40 2010-03-29 Sebastien Pouliot <[email protected]>
* DirectoryInfo.cs, FileInfo.cs: Moonlight needs the default ctor
	to decorate them with [SecuritySafeCritical] for corclr 
	inheritance rules


svn path=/trunk/mcs/; revision=154364
2010-03-29 11:56:03 +00:00
Atsushi Eno 4f29247c43 2010-03-29 Atsushi Enomoto <[email protected]>
* MessageBufferTest.cs : enable not-working test.


svn path=/trunk/mcs/; revision=154363
2010-03-29 11:20:22 +00:00
Atsushi Eno 2a26a5709a 2010-03-29 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : do not reject names in no namespace.


svn path=/trunk/mcs/; revision=154362
2010-03-29 11:19:23 +00:00
Raja R Harinath 4e8f822589 tools/sqlmetal/AssemblyInfo.cs: Make internals visible to the sqlmetal testsuite.
class/System.Data.Linq/src/DbLinq/System.Data.Linq/Assembly/AssemblyInfo.cs: Likewise.

svn path=/trunk/mcs/; revision=154360
2010-03-29 10:46:03 +00:00
Paolo Molaro b1a85ff810 Mon Mar 29 11:52:34 CEST 2010 Paolo Molaro <[email protected]>
* gc-internal.h, sgen-gc.c, threads.c, utils/mono-hash.c:
	fix the user defined mark interface to pass a pointer
	to the object location and not the object itself.


svn path=/trunk/mono/; revision=154357
2010-03-29 09:55:04 +00:00
Atsushi Eno 789dc0be76 2010-03-29 Atsushi Enomoto <[email protected]>
* MessageFault.cs : cosmetic method name clarification.

	* MessageFaultTest.cs : enable previous test.

	(made wrong commit in the previous test changelog)


svn path=/trunk/mcs/; revision=154356
2010-03-29 08:41:07 +00:00
Atsushi Eno 8056b10c0e 2010-03-29 Atsushi Enomoto <[email protected]>
* XmlReaderBodyWriter.cs, Message.cs, MessageImpl.cs, BodyWriter.cs:
	  fix BodyWriter buffering that dropped in-scope namespaces and thus
	  caused problem on resolving QNames.

	* MessageFaultTest.cs : enable previous test.


svn path=/trunk/mcs/; revision=154354
2010-03-29 07:43:14 +00:00
Zoltan Varga 413d33e8d6 2010-03-29 Zoltan Varga <[email protected]>
* debugger-agent.c (jit_end): Send type loads for types loaded before the VMStart
	event is sent. Fixes #591733.

svn path=/trunk/mono/; revision=154351
2010-03-29 01:25:59 +00:00
Geoff Norton 587e5b490b revert
svn path=/trunk/mcs/; revision=154350
2010-03-28 22:35:24 +00:00
Geoff Norton de8e71d6fc revert
svn path=/trunk/mono/; revision=154349
2010-03-28 22:33:40 +00:00
Gonzalo Paniagua Javier 6ad1d32e9e 2010-03-27 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
	existing authorization related headers until we know we have a
	replacement. Fixes bug #591633.


svn path=/trunk/mcs/; revision=154348
2010-03-27 16:27:20 +00:00
Rodrigo Kumpera 71b0a2d69f 2010-03-27 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_method_body_get_object): Release
	the method header before the call to CACHE_OBJECT since
	this is a macro that returns.

svn path=/trunk/mono/; revision=154343
2010-03-27 07:00:28 +00:00
Rodrigo Kumpera 29c7f5dfde 2010-03-26 Rodrigo Kumpera <[email protected]>
* class.c (inflate_generic_type): mono_metadata_type_dup
	already dupes array information, the g_memdup was just
	leaking memory.

svn path=/trunk/mono/; revision=154342
2010-03-27 07:00:20 +00:00
Rodrigo Kumpera 3c624abfc0 2010-03-26 Rodrigo Kumpera <[email protected]>
* verify.c: Add stack_peek function. Fix CEE_DUP
	to not read from invalid memory if push did expand
	the stack.

svn path=/trunk/mono/; revision=154338
2010-03-27 01:22:25 +00:00
Carlos Alberto Cortez 0be829cdfb 2010-03-26 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: New assertion in our exception order test, to
	assert that int32 overflow error has higher precedence in both 2.0 and
	4.0 profiles.


svn path=/trunk/mcs/; revision=154337
2010-03-26 23:54:05 +00:00
Carlos Alberto Cortez 5f1cdfce55 2010-03-26 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: We always give higher precedence to the first found
	error, but for versions before 4.0 we need to give a higher one to
	per-element overflow *specifically* (as opposed to int32 overflow,
	which remains the same). This is not needed for 4.0, so report
	per-element overflow as a normal error. 
	This should fix a compatibility case, as well as simplifying the code.


svn path=/trunk/mcs/; revision=154335
2010-03-26 23:49:36 +00:00
Jonathan Pobst 80f4d1efa0 fix msvc build.
svn path=/trunk/mono/; revision=154334
2010-03-26 23:30:19 +00:00
Zoltan Varga 620facfce3 2010-03-27 Zoltan Varga <[email protected]>
* mono-ehash.c: Rename this to mono-hash.c.

svn path=/trunk/mono/; revision=154333
2010-03-26 23:14:57 +00:00
Rodrigo Kumpera d3ab0f4024 2010-03-26 Rodrigo Kumpera <[email protected]>
* verify.c: Remove old table verification code that has
	been superseeded by the new metadata verifier.

	* verify.h: Remove mono_image_verify_tables from the public
	API.

	* pedump.c: Fix for removed bits.

svn path=/trunk/mono/; revision=154332
2010-03-26 22:58:05 +00:00
Rodrigo Kumpera 5721e4d1b2 2010-03-26 Rodrigo Kumpera <[email protected]>
* invalid_branch_in_between_prefix_and_instruction.il:
	* invalid_empty_filter_block.il:
	* make_endfilter_test.sh
	* make_endfinally_test.sh: Silence which when gsed is not found.

svn path=/trunk/mono/; revision=154331
2010-03-26 22:41:02 +00:00
Rodrigo Kumpera bd20431b28 2010-03-26 Rodrigo Kumpera <[email protected]>
* verify.c: Allocate stack slows lazily to reduce stack usage
	in case of methods with huge stacks. Reduces memory consumption
	for mcs yyparse from 459Mb to 1.8Mb.

svn path=/trunk/mono/; revision=154330
2010-03-26 22:40:53 +00:00
Rodrigo Kumpera fd3b1afb67 2010-03-26 Rodrigo Kumpera <[email protected]>
* Assembly.cs: Add IsDynamic.

2010-03-26 Rodrigo Kumpera  <[email protected]>

        * AssemblyBuilder.cs: Add IsDynamic.

svn path=/trunk/mcs/; revision=154329
2010-03-26 22:35:19 +00:00
Zoltan Varga fde9da8765 2010-03-26 Zoltan Varga <[email protected]>
* mini-posix.c (SIG_HANDLER_SIGNATURE): Handle the case when ctx is NULL on
	OpenBSD.

svn path=/trunk/mono/; revision=154326
2010-03-26 21:44:33 +00:00
Zoltan Varga 823ba87bb5 2010-03-26 Zoltan Varga <[email protected]>
* mono-ehash.c (rehash): Avoid function calls as macro arguments.

svn path=/trunk/mono/; revision=154325
2010-03-26 21:36:39 +00:00
Gonzalo Paniagua Javier e593e3ced2 2010-03-26 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: don't try executing items from domains being
	unloaded. Fixes appdomain-async-invoke test.


svn path=/trunk/mono/; revision=154324
2010-03-26 21:25:24 +00:00
Gonzalo Paniagua Javier 9dd8386b29 typo
svn path=/trunk/mono/; revision=154323
2010-03-26 21:15:45 +00:00
Gonzalo Paniagua Javier 542e3bcb07 typos
svn path=/trunk/mono/; revision=154322
2010-03-26 21:15:33 +00:00
Gonzalo Paniagua Javier 378eef6ab5 2010-03-26 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: spin while the threadpool initializes.
	* mono-wsq.c: if the WSQ has not been initialized or has been shut
	down, don't do anything.


svn path=/trunk/mono/; revision=154321
2010-03-26 20:55:48 +00:00
Geoff Norton 9f4665c232 Fix the moonlight build
svn path=/trunk/mcs/; revision=154320
2010-03-26 20:45:50 +00:00
Zoltan Varga 7eef19b39f Change the other place where threads_starting_up is created too.
svn path=/trunk/mono/; revision=154319
2010-03-26 20:23:46 +00:00
Gonzalo Paniagua Javier d31e514db3 2010-03-26 Gonzalo Paniagua Javier <[email protected]>
* ServicePointManager.cs: errors parsing the certificate don't prevent
	calling the callback now. Exceptions thrown parsing the certificate
	are printed to stderr in case they are library errors.


svn path=/trunk/mcs/; revision=154316
2010-03-26 20:13:23 +00:00
Zoltan Varga 9ea839a06a 2010-03-26 Zoltan Varga <[email protected]>
* threads.c (mono_thread_create_internal): Set the GC type of the
	threads_starting_up hash table.

svn path=/trunk/mono/; revision=154315
2010-03-26 20:05:55 +00:00
Jonathan Pobst 50f7080352 fix msvc build.
svn path=/trunk/mono/; revision=154314
2010-03-26 19:49:16 +00:00
Zoltan Varga 8ee3e08de2 2010-03-26 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_init): Set the GC type of the
	thread_to_tls hash table.

svn path=/trunk/mono/; revision=154313
2010-03-26 19:44:32 +00:00
Rodrigo Kumpera c370b33899 2010-03-26 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetSatelliteAssembly,
	ManifestModule, GlobalAssemblyCache.

svn path=/trunk/mcs/; revision=154312
2010-03-26 19:15:39 +00:00
Rodrigo Kumpera 280fce3bf7 2010-03-26 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetReferencedAssemblies
	and GetLoadedModules.

2010-03-26 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilderTest.cs: Test GetReferencedAssemblies
	and GetLoadedModules.

svn path=/trunk/mcs/; revision=154311
2010-03-26 19:15:31 +00:00
Rodrigo Kumpera 03bf776263 2010-03-26 Rodrigo Kumpera <[email protected]>
* MonoAssembly.cs:
	* Assembly.cs: Add missing MonoTODO.

svn path=/trunk/mcs/; revision=154310
2010-03-26 19:15:22 +00:00
Rodrigo Kumpera dc2b01f98d 2010-03-26 Rodrigo Kumpera <[email protected]>
* Assembly.cs: Add v4 ==, != and GetHashCode ()

svn path=/trunk/mcs/; revision=154309
2010-03-26 19:15:13 +00:00
Gonzalo Paniagua Javier 0624c9f504 2010-03-26 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: reset 'state' to avoid returning non-null when the
	event type is not found.


svn path=/trunk/mono/; revision=154307
2010-03-26 18:58:24 +00:00
Paolo Molaro 90d3603e7c Fri Mar 26 19:44:40 CET 2010 Paolo Molaro <[email protected]>
* Makefile.am, mono-hash.c: removed mono-hash.c, since now
	mono-ehash.c is GC-aware it doesn't make sense to keep two
	implementations.


svn path=/trunk/mono/; revision=154305
2010-03-26 18:46:03 +00:00
Paolo Molaro 4823ab811d Fri Mar 26 19:03:09 CET 2010 Paolo Molaro <[email protected]>
* sgen-gc.c: make copy_object () take the address of the
	slot holding the reference. This allows saving memory stores
	when not needed and it allows keeping track of oldspace->nursery
	references for the card table code.


svn path=/trunk/mono/; revision=154303
2010-03-26 18:05:14 +00:00
Zoltan Varga 9e6c489b14 2010-03-26 Zoltan Varga <[email protected]>
* Makefile.am: Disable testbundle for now as it depends on having a system mono.

svn path=/trunk/mono/; revision=154301
2010-03-26 17:37:34 +00:00
Sebastien Pouliot b18a6ee9b3 fix NET_2_1 build (poor lone else)
svn path=/trunk/mcs/; revision=154297
2010-03-26 17:23:03 +00:00
Zoltan Varga 0220fea875 Disable partial sharing until the issue blocking moon could be fixed.
svn path=/trunk/mono/; revision=154296
2010-03-26 17:17:31 +00:00
Zoltan Varga 05cbb244da 2010-03-26 Zoltan Varga <[email protected]>
* image-writer.c (bin_writer_emit_writeout): Fix the size of the got.plt
	section. Fixes #591000.

svn path=/trunk/mono/; revision=154295
2010-03-26 17:14:23 +00:00
Miguel de Icaza a0ee0f4f8a 2010-03-26 Miguel de Icaza <[email protected]>
* RowEnumerableDataReader.cs: Applied patch from Tony Fish fixing
	bug #591397

svn path=/trunk/mcs/; revision=154290
2010-03-26 16:40:08 +00:00
Miguel de Icaza 22c75a224c Patch from Jay R Wren to drop assemblies that are no longer part of Mono 2.8
svn path=/trunk/mono/; revision=154288
2010-03-26 16:33:18 +00:00
Zoltan Varga 28eb5f5dbe 2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-system-aot option to control the generation of
	AOT images during the build.

svn path=/trunk/mono/; revision=154287
2010-03-26 16:12:51 +00:00
Atsushi Eno c1fba935ca 2010-03-26 Atsushi Enomoto <[email protected]>
* FaultConverterTest.cs, MessageFaultTest.cs : add new and not-working
	  tests.


svn path=/trunk/mcs/; revision=154286
2010-03-26 16:06:02 +00:00
Mark Probst 27341bb808 2010-03-26 Mark Probst <[email protected]>
* mono-semaphore.h (MONO_SEM_POST): Fix on Darwin.

svn path=/trunk/mono/; revision=154285
2010-03-26 15:50:36 +00:00
Jonathan Pobst bf356ecd4f fix msvc build.
svn path=/trunk/mono/; revision=154283
2010-03-26 14:57:27 +00:00
Marek Safar a993d9d7ad Made the check more transparent
svn path=/trunk/mcs/; revision=154282
2010-03-26 14:53:03 +00:00
Atsushi Eno cb9aee8dda 2010-03-26 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : do implement OnTryCreateFaultMessage() to work
	  with certain Exception types.


svn path=/trunk/mcs/; revision=154281
2010-03-26 14:50:46 +00:00
Atsushi Eno 4947b938d6 2010-03-26 Atsushi Enomoto <[email protected]>
* Message.cs : fix explanation on CreateMessage() overloads.


svn path=/trunk/mcs/; revision=154280
2010-03-26 14:47:28 +00:00
Atsushi Eno 71bbae3e58 2010-03-26 Atsushi Enomoto <[email protected]>
* MessageFault.cs : Write Subcode element correctly and fix wrong
	  Code/Value/Subcode element relationship. Give better error message.


svn path=/trunk/mcs/; revision=154279
2010-03-26 14:45:34 +00:00
Marek Safar db9112b228 2010-03-26 Marek Safar <[email protected]>
* cs-parser.jay: Report invalid constraint types.


svn path=/trunk/mcs/; revision=154278
2010-03-26 14:38:20 +00:00
Marek Safar 0717f141b9 New test.
svn path=/trunk/mcs/; revision=154277
2010-03-26 14:37:44 +00:00
Marek Safar 69ff00a92e New test.
svn path=/trunk/mcs/; revision=154276
2010-03-26 14:36:40 +00:00
Atsushi Eno 40564594bb 2010-03-26 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : ok, no need for conditional code path.


svn path=/trunk/mcs/; revision=154275
2010-03-26 14:18:47 +00:00
Atsushi Eno 4190808818 2010-03-26 Atsushi Enomoto <[email protected]>
* AddressingVersion.cs : add fault action namespace.


svn path=/trunk/mcs/; revision=154274
2010-03-26 14:17:48 +00:00
Mark Probst 78bbf8e4db 2010-03-26 Andreas Faerber <[email protected]>
* null-gc.c (mono_gc_invoke_with_gc_lock): Fix function name.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=154273
2010-03-26 14:15:08 +00:00
Atsushi Eno 5aed01b5aa 2010-03-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlQualifiedName.cs : ReadElementContentAs() when
	  used for qname, treats non-prefixed name as in default namespace.

	* XmlReaderCommonTests.cs : added test for ReadElementContentAs() for
	  qname, with default namespace.


svn path=/trunk/mcs/; revision=154272
2010-03-26 13:56:39 +00:00
Veerapuram Varadhan a13bcfb79c changelog changes
svn path=/trunk/mcs/; revision=154271
2010-03-26 13:45:50 +00:00
Veerapuram Varadhan 7c38ba4b7c 2010-03-26 Veerapuram Varadhan <[email protected]>
** Fixes #564833/580736
    * DbDataAdapter.cs (*Command): Fix for .NET compatibility which
    supports both type of adapters with/without discrete command
    instances.

svn path=/trunk/mcs/; revision=154270
2010-03-26 13:45:38 +00:00
Sebastien Pouliot 8c187610f3 2010-03-26 Sebastien Pouliot <[email protected]>
* HttpRequestChannel.cs: There is no WebHeaderCollection.Add 
	method in SL API


svn path=/trunk/mcs/; revision=154264
2010-03-26 12:30:14 +00:00
Sebastien Pouliot 99258c39de 2010-03-26 Sebastien Pouliot <[email protected]>
* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
	since it contains parts of the Assembly features (partial class)


svn path=/trunk/mcs/; revision=154263
2010-03-26 12:26:45 +00:00
Andreas Färber 021d5237e0 Fix mono version for git
When working on a Git repository that was cloned from a git-svn repo,
such as git://repo.or.cz/mono/afaerber.git, the version is currently
displayed as "tarball" in `mono -V`.

The method used to obtain the revision info from git since r134435 -
searching the log - is independent of git-svn, so no need to check
for .git/svn directory.

	* Makefile.am (version.h): Check for pure .git directory only,
	fixes SVN revision when using git without git-svn.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=154256
2010-03-26 10:56:10 +00:00
Paolo Molaro 20878f20bd Fri Mar 26 11:33:17 CET 2010 Paolo Molaro <[email protected]>
* object.c, threads.c, threads-types.h, threads.h: make the
	managed thread local storage references precisely tracked.


svn path=/trunk/mono/; revision=154254
2010-03-26 10:47:00 +00:00
Atsushi Eno 412550fcf3 2010-03-26 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : use FaultConverter as documented at:
	  http://msdn.microsoft.com/en-us/library/ms789039%28VS.100%29.aspx
	  (Though I found _no_ use of this FC class in the world...)


svn path=/trunk/mcs/; revision=154251
2010-03-26 08:46:06 +00:00
Atsushi Eno 570c1d9c76 2010-03-26 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : pass IsFault argument in OnCreateBufferedCopy().

	* MessageBufferTest.cs : add test for copy of IsFault value.


svn path=/trunk/mcs/; revision=154250
2010-03-26 08:10:09 +00:00
Atsushi Eno 7657287175 2010-03-26 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs, AspNetRequestContext.cs : return HTTP 500
	  for fault message.


svn path=/trunk/mcs/; revision=154249
2010-03-26 07:03:27 +00:00
Atsushi Eno 98329a07f9 2010-03-26 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : create HttpResponseMessageProperty.


svn path=/trunk/mcs/; revision=154247
2010-03-26 06:33:48 +00:00
Gonzalo Paniagua Javier 830d251447 Reworked the threadpool. See individual ChangeLog entries for details.
svn path=/trunk/mono/; revision=154243
2010-03-26 03:12:56 +00:00
Gonzalo Paniagua Javier 9f3c801b91 Reworked the threadpool. See individual ChangeLog entries for details.
svn path=/trunk/mcs/; revision=154243
2010-03-26 03:12:56 +00:00
Zoltan Varga 4d038dcfb2 2010-03-26 Zoltan Varga <[email protected]>
* aot-runtime.c: Apply some openbsd changes from openbsd ports.

svn path=/trunk/mono/; revision=154242
2010-03-26 03:06:39 +00:00
Zoltan Varga 5347c91884 2010-03-26 Zoltan Varga <[email protected]>
* sockets.c: Apply some openbsd changes from openbsd ports.

svn path=/trunk/mono/; revision=154241
2010-03-26 03:06:32 +00:00
Zoltan Varga d616da400a 2010-03-26 Zoltan Varga <[email protected]>
* mono-proclib.c mono-semaphore.c: Apply some openbsd changes from openbsd
	ports.

svn path=/trunk/mono/; revision=154240
2010-03-26 03:06:25 +00:00
Zoltan Varga 1a95c31310 2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Apply some openbsd changes from openbsd ports.

svn path=/trunk/mono/; revision=154239
2010-03-26 03:06:17 +00:00
Gonzalo Paniagua Javier 1bc30f2f98 only check for the Mac library file once
svn path=/trunk/mcs/; revision=154237
2010-03-26 02:57:36 +00:00
Mark Probst d20ea46e74 2010-03-26 Mark Probst <[email protected]>
* sgen-gc.c: More FIXME/TODO updates.

svn path=/trunk/mono/; revision=154236
2010-03-26 02:06:16 +00:00
Rodrigo Kumpera 1e5c888ee5 2010-03-25 Rodrigo Kumpera <[email protected]>
* Assembly.cs: Add v4 obsolete attribute.

svn path=/trunk/mcs/; revision=154233
2010-03-25 23:47:29 +00:00
Rodrigo Kumpera bb85d0c720 2010-03-25 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetModule(s).

2010-03-25 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilderTest.cs: Add test for v4 GetModule(s).

svn path=/trunk/mcs/; revision=154232
2010-03-25 23:42:14 +00:00
Rodrigo Kumpera 6493d5e8ba 2010-03-25 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetType.

2010-03-25 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilderTest.cs: Add test for v4 GetType and
	fix other test to not be broken.

svn path=/trunk/mcs/; revision=154231
2010-03-25 23:42:05 +00:00
Rodrigo Kumpera dddf45217e 2010-03-25 Rodrigo Kumpera <[email protected]>
*AssemblyTest.cs: Fix one more tests under v4.

svn path=/trunk/mcs/; revision=154230
2010-03-25 23:41:56 +00:00
Rodrigo Kumpera ba638ba44e 2010-03-25 Rodrigo Kumpera <[email protected]>
* Assembly.cs:
	* MonoAssembly.cs: Move a dozen methods from Assembly.cs
	to MonoAssembly.cs, so they can either be the concrete impl
	on v4 of the only impl on v2.
	Add to Assembly.cs versions that throws NotImplementedException.
	Mask Assembly.cs as abstract.

svn path=/trunk/mcs/; revision=154229
2010-03-25 23:41:47 +00:00
Zoltan Varga bddf16dbcb 2010-03-26 Zoltan Varga <[email protected]>
* mono.1: Document the MONO_ENABLE_SHM env variable.

svn path=/trunk/mono/; revision=154227
2010-03-25 23:27:18 +00:00
Zoltan Varga 6243850f0b 2010-03-26 Zoltan Varga <[email protected]>
* shared.c: Disable shared supported by default, it can be enabled by setting
	the MONO_ENABLE_SHM env variable.

svn path=/trunk/mono/; revision=154226
2010-03-25 23:27:12 +00:00
Jonathan Pobst d077dd658e fix msvc build.
svn path=/trunk/mono/; revision=154225
2010-03-25 23:16:41 +00:00
Geoff Norton 519d434479 We dont do MacOSX on MacOSX
svn path=/trunk/mcs/; revision=154223
2010-03-25 22:17:02 +00:00
Gonzalo Paniagua Javier d44b73d72a 2010-03-25 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.[hc]: make sure the semaphore calls are restarted if
	interrupted. Return 0 on success and -1 on failure on windows.


svn path=/trunk/mono/; revision=154219
2010-03-25 20:43:22 +00:00
Gonzalo Paniagua Javier 298d72f4ce fix the build
svn path=/trunk/mcs/; revision=154212
2010-03-25 18:12:41 +00:00
Sebastien Pouliot 0fab61f943 2010-03-25 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Add new properties that are in both FX4 and SL4
	since Moonlight needs them (for testing purpose).
	* Environment.cs: FailFast overloads are present in SL4 (and also
	needed for testing Moonlight)


svn path=/trunk/mcs/; revision=154209
2010-03-25 17:53:04 +00:00
Marek Safar 4e0bf1356c 2010-03-25 Marek Safar <[email protected]>
* IPGlobalProperties.cs: Made Win32_IN6_ADDR verifiable.


svn path=/trunk/mcs/; revision=154208
2010-03-25 17:48:22 +00:00
Mark Probst 647e17bca4 2010-03-25 Mark Probst <[email protected]>
* gc-internal.h, sgen-gc.c, sgen-gc.h, boehm-gc.c, null-gc.c: New
	function mono_gc_invoke_with_gc_lock() which invokes a function
	with the guarantee that no collection will occur during its execution.

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

	* mono-hash.c, mono-ehash.c: Fix rehashing with regard to moving
	GC.  Register root for ehash.

svn path=/trunk/mono/; revision=154207
2010-03-25 17:37:44 +00:00
Mark Probst ece211ef38 2010-03-25 Mark Probst <[email protected]>
* sgen-gc.c: Update a few comments.

svn path=/trunk/mono/; revision=154206
2010-03-25 16:20:34 +00:00
Atsushi Eno 75fd967aae 2010-03-25 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : removed HTTP status rewriting for
	  commented reason.


svn path=/trunk/mcs/; revision=154201
2010-03-25 15:32:59 +00:00
Atsushi Eno b67cee8408 2010-03-25 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : removed unused code.


svn path=/trunk/mcs/; revision=154200
2010-03-25 15:27:36 +00:00
Atsushi Eno 55e8c59203 2010-03-25 Atsushi Enomoto <[email protected]>
* MessageTest.cs : add another IsFault tests, which exposed some
	  issues at client side.


svn path=/trunk/mcs/; revision=154199
2010-03-25 15:26:59 +00:00
Rodrigo Kumpera f27fe955c1 2010-03-24 Rodrigo Kumpera <[email protected]>
* Vector4f.cs: Add vector x scalar multiply.

svn path=/trunk/mcs/; revision=154197
2010-03-25 13:42:01 +00:00
Atsushi Eno ce323b0f71 2010-03-25 Atsushi Enomoto <[email protected]>
* ServiceHostBaseTest.cs : add not-working ActionNotFound test by
	  Matt Dargavel.


svn path=/trunk/mcs/; revision=154192
2010-03-25 08:18:38 +00:00
Atsushi Eno 01bd843372 2010-03-25 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : handle only 4xx errors as to not process
	  content stream.


svn path=/trunk/mcs/; revision=154191
2010-03-25 07:53:38 +00:00
Gonzalo Paniagua Javier c5d30b4c3f commented out invalid test
svn path=/trunk/mcs/; revision=154190
2010-03-25 05:39:24 +00:00
Gonzalo Paniagua Javier 51f4b1ce2d 2010-03-25 Gonzalo Paniagua Javier <[email protected]>
* Directory.cs: a directory named ":" is legal in unix.
	This gets rid of the annoying ":" folder when running
	corlib tests.


svn path=/trunk/mcs/; revision=154189
2010-03-25 05:39:05 +00:00
Atsushi Eno 9bcaaf5aed 2010-03-25 Atsushi Enomoto <[email protected]>
* MessageFault.cs : do not use SOAP11 namespace for fault contents.


svn path=/trunk/mcs/; revision=154188
2010-03-25 04:18:45 +00:00
Rodrigo Kumpera ea9fd415e3 2010-03-24 Rodrigo Kumpera <[email protected]>
* basic-simd.cs: Test for vector x scalar binary operators.

svn path=/trunk/mono/; revision=154183
2010-03-24 23:11:49 +00:00
Rodrigo Kumpera 12c9aa99a8 2010-03-24 Rodrigo Kumpera <[email protected]>
* simd-intrincs.c (simd_intrinsic_emit_binary): Support binary
	intrinsics with expanded scalar arguments.

svn path=/trunk/mono/; revision=154182
2010-03-24 23:11:41 +00:00
Rodrigo Kumpera d0e18f8186 2010-03-24 Rodrigo Kumpera <[email protected]>
* Assembly.cs: Make it a partial class under !v4.

	* MonoAssembly.cs: New type that exists only under
	v4. Under v2 it is a part of Assembly.

	This is the initial setup to make v4 Assembly an
	abstract type where all methods raise exceptions.

svn path=/trunk/mcs/; revision=154179
2010-03-24 22:27:53 +00:00
Rodrigo Kumpera 4321e0f72c 2010-03-24 Rodrigo Kumpera <[email protected]>
*AssemblyTest.cs: Fix some tests under v4.

svn path=/trunk/mcs/; revision=154178
2010-03-24 22:27:44 +00:00
Rodrigo Kumpera 635f6a8d11 2010-03-24 Rodrigo Kumpera <[email protected]>
* DerivedTypesTests.cs: Fix some tests under v4.

svn path=/trunk/mcs/; revision=154177
2010-03-24 22:27:36 +00:00
Rodrigo Kumpera eeb365267f 2010-03-24 Rodrigo Kumpera <[email protected]>
* reflection.c: Add support for new v4 type
	System.Reflection.MonoAssembly that is the concrete version
	of Assembly which is abstract unver v4.

svn path=/trunk/mono/; revision=154175
2010-03-24 22:26:49 +00:00
Rodrigo Kumpera b4b96b9689 2010-03-24 Rodrigo Kumpera <[email protected]>
* mini-exceptions.c (get_exception_catch_class): Non catch
	clausesdon't have an exception class, so don't decode it. This would
	crash with filter clauses.

svn path=/trunk/mono/; revision=154172
2010-03-24 20:53:15 +00:00
Marek Safar 95ba78a173 Formatting.
svn path=/trunk/mcs/; revision=154171
2010-03-24 20:46:31 +00:00
Sebastien Pouliot 032983571d 2010-03-24 Sebastien Pouliot <[email protected]>
* AppDomain.cs: Change default value from null to false for new
	(NET_4_0 and SL4) IsCompatibilitySwitchSet. Not sure when (or even
	if) it can return null (at least not when testing SL4 RC). 
	Fix DRT198


svn path=/trunk/mcs/; revision=154170
2010-03-24 20:43:05 +00:00
Jérémie Laval c3976a7f43 2010-03-24 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs: Remove while looping

svn path=/trunk/mcs/; revision=154166
2010-03-24 19:26:17 +00:00
Jérémie Laval d497b64f3d 2010-03-24 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs: Enable tracking on SpinLock
   * ConcurrentSkipList.cs: Use Spinlock instead of Monitor and
   refactor to use a saner lock acquiring scheme.

In class/corlib/Test/System.Collections.Concurrent/:
   * ConcurrentDictionaryTests.cs: Renaming in Assert

svn path=/trunk/mcs/; revision=154165
2010-03-24 19:26:00 +00:00
Jérémie Laval da0475e499 2010-03-24 Jérémie Laval <[email protected]>
In class/corlib/Test/System.Threading/:
   * SpinLockTests.cs: Add a correctness check unit test

svn path=/trunk/mcs/; revision=154164
2010-03-24 19:25:42 +00:00
Miguel de Icaza ade0dc79fd 2010-03-24 U-anarquia\miguel <miguel@anarquia>
Make sure that trunk builds with DISABLE_JIT, an update to the
	PlayStation 3 port.
	
	* mini.c (mini_get_shared_method): this code seems to be necessary
	regardless of whether DISABLE_JIT has been defined.

	(mono_jit_compile_method_inner): it seems that this method is
	required even in full AOT mode, so ifdef out only the pieces that
	try to genrate code (the body of code that applies patches to the
	code).  

	(mini_method_compile): do not compile when using DISABLE_JIT.

	* mini-ppc.c (mono_arch_get_allocatable_int_vars)
	(mono_arch_output_basic_block, mono-arch_emit_exceptions): Do not
	compile when DISABLE_JIT is set. 2010-03-24  U-anarquia\miguel  <miguel@anarquia>

	* reflection.c (mono_reflection_get_custom_attrs_info): Protect
	code that uses System.Reflection.Emit in DISABLE_REFLECTION_EMIT.

	Expose a few macros that are needed for SR but not SRE to the
	world (previous inside the SRE ifdef)

svn path=/trunk/mono/; revision=154158
2010-03-24 17:54:34 +00:00
Jb Evain d7ea5c5e04 2010-03-24 Jb Evain <[email protected]>
* EnumerableTest.cs: add test for #582502.


svn path=/trunk/mcs/; revision=154155
2010-03-24 17:39:49 +00:00
Jb Evain 67cf0f1e9a 2010-03-24 Jb Evain <[email protected]>
* SortSequenceContext.cs: Fix OrderByDescending stability.
	Based on a patch by Richard Kiene  <[email protected]>.

svn path=/trunk/mcs/; revision=154154
2010-03-24 17:39:19 +00:00
Andrés G. Aragoneses cf9fef436d fix conflict crap
svn path=/trunk/mono/; revision=154148
2010-03-24 14:56:04 +00:00
Andrés G. Aragoneses a496e11a6d 2010-03-24 Andrés G. Aragoneses <[email protected]>
* mono-dl.c: (mono_dl_build_path) Take in account the suffix
        variable assigned wrt the prefix comparison to concat the final
        path for dlopen. Fixes BNC#588143. r:vargaz


svn path=/trunk/mono/; revision=154147
2010-03-24 14:53:32 +00:00
Zoltan Varga a4d96bed9a Avoid putting code after a return statement.
svn path=/trunk/mono/; revision=154142
2010-03-24 14:17:13 +00:00
Mark Probst 2ab78efd4f 2010-03-24 Mark Probst <[email protected]>
* mini.c (mono_create_tls_get): Only create a TLS operation if the
	arch really supports it.

svn path=/trunk/mono/; revision=154141
2010-03-24 14:06:57 +00:00
Jérémie Laval b1f2368d33 2010-03-24 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs: Fix lock releasing

svn path=/trunk/mcs/; revision=154140
2010-03-24 13:58:11 +00:00
Mark Probst 771400fcc6 2010-03-24 Mark Probst <[email protected]>
* mini-x86.c, mini-x86.h, mini.c: CEE_MONO_TLS support for Darwin/x86.

svn path=/trunk/mono/; revision=154139
2010-03-24 13:42:25 +00:00
Jérémie Laval 8c1c45ab02 2010-03-24 Jérémie Laval <[email protected]>
In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs: Use SpinLock instead of Monitor
   for basket locking

In class/corlib/Test/System.Collections.Concurrent/:
   * ConcurrentDictionaryTests.cs: Update behavior of TryAddDuplicateTest
   The method returns false and doesn't throw exception anymore

svn path=/trunk/mcs/; revision=154138
2010-03-24 13:39:43 +00:00
Sebastien Pouliot a405867205 In corlib/Mono.Security:
2010-03-24  Sebastien Pouliot  <[email protected]>

	* ASN1Convert.cs: Specify CultureInfo.InvariantCulture (instead of 
	null) to avoid crash on Windows. Patch by Yoni Shalom.

In Mono.Security/Mono.Security:
2010-03-24  Sebastien Pouliot  <[email protected]>

	* ASN1Convert.cs: Specify CultureInfo.InvariantCulture (instead of 
	null) to avoid crash on Windows. Patch by Yoni Shalom.


svn path=/trunk/mcs/; revision=154135
2010-03-24 13:25:35 +00:00
Rolf Bjarne Kvinge c6b770b79b 2010-03-24 Rolf Bjarne Kvinge <[email protected]>
* MethodInfo.cs: Exclude IsGenericMethod* and ContainsGenericParameters
	from moonlight too.

svn path=/trunk/mcs/; revision=154129
2010-03-24 12:27:53 +00:00
Atsushi Eno fbd6bb5853 2010-03-24 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, HttpReplyChannel.cs : add some locking.
	  Patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=154125
2010-03-24 10:54:55 +00:00
Atsushi Eno 3a06880a84 2010-03-24 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : use lock object which is subject to
	  change. Fix by Matt Dargavel.


svn path=/trunk/mcs/; revision=154121
2010-03-24 10:00:48 +00:00
Atsushi Eno 2500e7ef08 2010-03-24 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : remove consumed HttpListenerContext from
	  the pending queue. Compare "wsdl" request in case insensitive
	  manner. Patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=154120
2010-03-24 09:58:46 +00:00
Atsushi Eno 0dcd75c5fc 2010-03-24 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : return EndpointDispatcher at initializing
	  for internal use. Add some locks. Patch by Matt Dargavel.

	* ServiceHostBase.cs : if there is an existing ChannelDispatcher
	  for the same endpoint URI, reuse it. Patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=154114
2010-03-24 07:12:29 +00:00
Atsushi Eno 34305f8dba 2010-03-24 Atsushi Enomoto <[email protected]>
* TransportSecurityBindingElementTest.cs : new test.

	* System.ServiceModel.dll.sources : move back all the Features tests
	  that were once disabled (now we can handle mannerless tests).


svn path=/trunk/mcs/; revision=154113
2010-03-24 06:44:49 +00:00
Atsushi Eno de17bced2c 2010-03-24 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : apply the patch by Matt Dargavel, which is
	  supposed to provide detailed 400 error message.


svn path=/trunk/mcs/; revision=154112
2010-03-24 06:15:44 +00:00
Atsushi Eno 5049788319 2010-03-24 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : fix wrong method call in open_delegate.
	  Patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=154111
2010-03-24 06:07:09 +00:00
Atsushi Eno 93dc6116a5 2010-03-24 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : give the actual exception message instead
	  of "error occured".


svn path=/trunk/mcs/; revision=154110
2010-03-24 06:04:22 +00:00
Atsushi Eno c6b58253cb 2010-03-24 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : compare "wsdl" parameter in case-
	  insensitive manner.


svn path=/trunk/mcs/; revision=154109
2010-03-24 05:41:02 +00:00
Atsushi Eno 298f5fcfc1 2010-03-24 Atsushi Enomoto <[email protected]>
* TransactionFlowBindingElement.cs: revamp the previous change to
	  not regress regarding service metadata.


svn path=/trunk/mcs/; revision=154108
2010-03-24 05:25:17 +00:00
Atsushi Eno e531d0f1c2 2010-03-24 Atsushi Enomoto <[email protected]>
* ChannelListenerBase.cs, TransactionFlowBindingElement.cs: fix 
	  GetProperty<T>() bug that fails to retrieve properties. (This may
	  be rewritten later if an ongoing change proposal is to take place.)


svn path=/trunk/mcs/; revision=154107
2010-03-24 05:10:27 +00:00
Mark Probst 25228f5897 2010-03-24 Mark Probst <[email protected]>
* sgen-gc.c (gc_register_current_thread): We need
	stack_start_limit as well in the non-attribute pthread case.

svn path=/trunk/mono/; revision=154105
2010-03-24 02:18:52 +00:00
Sebastien Pouliot a891b14511 2010-03-23 Sebastien Pouliot <[email protected]>
* SecurityManager_2_1.cs: Add an internal HasElevatedPermissions 
	property to mscorlib since the "real" (i.e. visible) one in 
	System.Windows.dll is not accessible by most code.


svn path=/trunk/mcs/; revision=154099
2010-03-24 00:25:03 +00:00
Gonzalo Paniagua Javier 370d27f1df 2010-03-23 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: error handling was totally broken in the synchronous
	Connect() call.  Fixes bug #590488.


svn path=/trunk/mcs/; revision=154087
2010-03-23 20:34:03 +00:00
Neale Ferguson c508b9164a Primarily, add support for mono_arch_get_throw_corlib_exception and IMT
for s390x. Other s390x fixes to instruction sizes, parameter passing, and ARCH
settings.


svn path=/trunk/mono/; revision=154085
2010-03-23 20:00:46 +00:00
Carlos Alberto Cortez 50ad34673c 2010-03-23 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Add some new assertions for old/new stuff in
	TimeSpan.


svn path=/trunk/mcs/; revision=154082
2010-03-23 19:38:20 +00:00
Zoltan Varga 3b8887165d 2010-03-23 Zoltan Varga <[email protected]>
* mini-generic-sharing.c (fill_in_rgctx_template_slot): Remove an assert which
	can be hit with partial sharing.

svn path=/trunk/mono/; revision=154073
2010-03-23 18:30:22 +00:00
Zoltan Varga 7f129d63e3 2010-03-23 Zoltan Varga <[email protected]>
* mini-generic-sharing.c (get_shared_class): Handle partially shared methods
	in non-shared classes correctly.
	(generic_inst_is_sharable): Allow all primitive types in partial sharing.
	Turn on partial sharing.

svn path=/trunk/mono/; revision=154072
2010-03-23 18:22:04 +00:00
Zoltan Varga ecf79fa41d 2010-03-23 Zoltan Varga <[email protected]>
* Makefile.am (BASE_TEST_CS_SRC): Remove make-imt-test.cs, it is not a test.

	* test-runner.cs: Add an option to run the tests with different optimization
	sets.

	* Makefile.am: Make it possible to run the normal+gshared tests using the managed
	test runner by passing the M=1 option to make.

svn path=/trunk/mono/; revision=154068
2010-03-23 16:44:05 +00:00
Sebastien Pouliot 67f3a048dc 2010-03-23 Sebastien Pouliot <[email protected]>
* Monitor.cs: Implement new NET_4_0 (and SL4) Enter overload 
	required to run some DRT tests (e.g. 7007)


svn path=/trunk/mcs/; revision=154067
2010-03-23 15:48:23 +00:00
Zoltan Varga 51ac3831d1 2010-03-23 Zoltan Varga <[email protected]>
* mini-amd64.h: Put back MONO_ARCH_NOMAP32BIT for OpenBSD which was removed
	by mistake.

svn path=/trunk/mono/; revision=154063
2010-03-23 15:16:25 +00:00
Rodrigo Kumpera 45562016b5 2010-03-23 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInst.cs (ContainsGenericParameters): Check
	the base_method first.

2010-03-23 Rodrigo Kumpera  <[email protected]>

	* MethodOnTypeBuilderInstTest.cs: Add Test for
	* ContainsGenericParameters.

svn path=/trunk/mcs/; revision=154062
2010-03-23 14:37:36 +00:00
Rodrigo Kumpera 485a1176b5 2010-03-23 Rodrigo Kumpera <[email protected]>
* threads.c: Fix windows build.

svn path=/trunk/mono/; revision=154043
2010-03-23 07:59:06 +00:00
Geoff Norton 8137783d3e 2010-03-23 Geoff Norton <[email protected]>
* da_DK.xml: The short format is day. month, not
        day month.  Fixes #588165

svn path=/trunk/mono/; revision=154038
2010-03-23 05:04:34 +00:00
Atsushi Eno c2993d6d6a 2010-03-23 Atsushi Enomoto <[email protected]>
* ConnectionOrientedTransportElement.cs, StandardBindingElement.cs, 
	  LocalClientSecuritySettingsElement.cs, CustomBindingElement.cs:
	  add couple of missing methods and TypeConverterAttributes.


svn path=/trunk/mcs/; revision=154036
2010-03-23 04:43:07 +00:00
Gonzalo Paniagua Javier 40c0c4f8ec 2010-03-23 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.h: MONO_SEM_WAIT() return value inverted when using
	the windows API.
	* mono-semaphore.c: handle INFINITE timeout.


svn path=/trunk/mono/; revision=154035
2010-03-23 04:16:17 +00:00
Carlos Alberto Cortez 81098fb3ed 2010-03-22 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: It seems somebody forgot to actually mark the
	TestParse method with TestAttribute. Also, add a bunch of asserions
	to reflect the new behaviour for 4.0 in the needed test cases.


svn path=/trunk/mcs/; revision=154034
2010-03-23 02:18:59 +00:00
Carlos Alberto Cortez 32700ed800 * TimeSpan.cs: When parsing ticks, we used to only parse
the first 7 digits, and more than that would cause a FormatException -
	starting in 4.0 we need to throw an OverflowException, however. Also,
	for hours/minutes/seconds, two or more preceding zeroes will cause an
	OverflowException as well.

2010-03-22  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=154033
2010-03-23 01:59:52 +00:00
Rodrigo Kumpera 25bbd6d6f1 2010-03-22 Rodrigo Kumpera <[email protected]>
* thread-types.h: Add mono_thread_resume_interruption.

	* threads.c: Add mono_thread_resume_interruption, this
	function should be called after the last protected handler
	found at interruption time has finished.

svn path=/trunk/mono/; revision=154032
2010-03-23 01:30:06 +00:00
Rodrigo Kumpera 6973689825 2010-03-22 Rodrigo Kumpera <[email protected]>
* threads.c (ves_icall_System_Threading_Thread_ResetAbort):
	Check MonoInternalThread's ::state instead of ::abort_exc
	since the later can be lazily created.

	This is specially problematic when running a finally block
	under AbortRequested state. ResetAbort must work, but the
	abort_exc object has not been created because interruption
	has not began.

svn path=/trunk/mono/; revision=154031
2010-03-23 01:29:57 +00:00
Rodrigo Kumpera dde7547ecb 2009-03-22 Rodrigo Kumpera <[email protected]>
* threads.h: Add wapi_self_interrupt.

	* wthreads.c: Add wapi_self_interrupt which puts the current
	thread in interrupted state.

	* wthreads.c (wapi_thread_clear_wait_handle): Previous handle
	can possibly be NULL if an async interrupt cleared it.

	This is safe because it is only async cleared if running inside
	a handler block.

svn path=/trunk/mono/; revision=154030
2010-03-23 01:29:50 +00:00
Andreas Färber 5640cf3fc7 Don't rely on SIGIO
SIGIO is not part of POSIX, and Haiku does not support it.
map.c contains checks to handle this, but old-map.c doesn't.
Its generator make-map no longer exists, so let's insert the
check manually.

2010-03-23  Andreas Faerber  <[email protected]>

	* old-map.c (map_Mono_Posix_Signals): Fix build for platforms where
	SIGIO is not defined (Haiku).

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=154029
2010-03-23 00:19:30 +00:00
Zoltan Varga 3f26a9007f 2010-03-23 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle the failure of
	mono_method_signature ().

	* mini-trampolines.c (mono_delegate_trampoline): Ditto.

	* mini.c (mini_method_compile): Get the signature of cfg->method early with
	error checking, so later calls do not need error checking.

svn path=/trunk/mono/; revision=154028
2010-03-23 00:18:02 +00:00
Zoltan Varga 2aa5ddebfc 2010-03-22 Zoltan Varga <[email protected]>
* exceptions-amd64.c: Add support for OpenBSD which has no UCONTEXT_GREGS.

	* mini-amd64.h: Enable MONO_ARCH_USE_SIGACTION on OpenBSD as well.

svn path=/trunk/mono/; revision=154018
2010-03-22 21:43:14 +00:00
Zoltan Varga f5ffb90dda 2010-03-22 Zoltan Varga <[email protected]>
* mono-sigcontext.h: Define UCONTEXT accessors for openbsd/amd64.

svn path=/trunk/mono/; revision=154017
2010-03-22 21:43:08 +00:00
Zoltan Varga 06acf88139 Revert "2010-03-22 Zoltan Varga <[email protected]>"
This reverts commit 2ae84e6bac9195688797490dd7a03aa0b3ebcace.

svn path=/trunk/mono/; revision=154016
2010-03-22 21:31:04 +00:00
Zoltan Varga f7d225f2da 2010-03-22 Zoltan Varga <[email protected]>
* mono-sigcontext.h: Define UCONTEXT accessors for openbsd/amd64.

svn path=/trunk/mono/; revision=154015
2010-03-22 21:30:58 +00:00
Rodrigo Kumpera 0ac64e771e 2010-03-22 Rodrigo Kumpera <[email protected]>
* mini-exceptions.c (mono_handle_exception_internal): Don't
	check try_end for archs different than s390.

	* mini.c (create_jit_info): Don't crash if the finallt block is
	* the last one.

svn path=/trunk/mono/; revision=154014
2010-03-22 20:36:48 +00:00
Rodrigo Kumpera 2e26c6dbdd 2010-03-22 Rodrigo Kumpera <[email protected]>
* driver.c (mono_main): Don't free global codeman under linux
	* since glic now peeks at code on stack for more archs than just amd64.

svn path=/trunk/mono/; revision=154013
2010-03-22 20:36:39 +00:00
Geoff Norton e9b4c958f1 2010-03-22 Geoff Norton <[email protected]>
* locales.c: Its possible for CFStringGetCStringPtr
        to return null and not convert encodings.  Use
        CFStringGetCString instead.

svn path=/trunk/mono/; revision=154012
2010-03-22 20:24:32 +00:00
Carlos Alberto Cortez 9535a551ab 2010-03-22 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Create a new Parser.Execute method for 4.0 -and use the
	previous impl for 2.0-, to handle the new semantics gracefully -
	specifically the new 'dd:hh:mm:ss' format and related bits, instead of
	of a ton of #ifdef blocks. Remove any 4.0 bits from the previous
	version as well, to keep it clean.


svn path=/trunk/mcs/; revision=154005
2010-03-22 18:45:19 +00:00
Paolo Molaro f2f27ae678 Mon Mar 22 18:09:09 CET 2010 Paolo Molaro <[email protected]>
* mini.c, method-to-ir.c: changes to support compressed interface
	bitmaps.


svn path=/trunk/mono/; revision=154003
2010-03-22 17:10:44 +00:00
Paolo Molaro b9d3a19648 Mon Mar 22 18:06:38 CET 2010 Paolo Molaro <[email protected]>
* class-internals.h, class.c, object.c: introduce compressed
	interface bitmaps (for now only under small config): this saves
	about 600 KB of runtime memory on gmcs bootstraps or monodevelop
	startups.


svn path=/trunk/mono/; revision=154002
2010-03-22 17:10:20 +00:00
Zoltan Varga 1ed77c9010 2010-03-22 Zoltan Varga <[email protected]>
* mini-x86.h: Applied patch from Robert Nagy ([email protected]).
	Use sigaction on OpenBSD too.

svn path=/trunk/mono/; revision=153998
2010-03-22 17:00:47 +00:00
Zoltan Varga eb6e202e79 2010-03-22 Zoltan Varga <[email protected]>
* mono-sigcontext.h: Applied patch from Robert Nagy ([email protected]).
	Add OpenBSD definitions.

svn path=/trunk/mono/; revision=153997
2010-03-22 17:00:40 +00:00
Miguel de Icaza d9e70421a0 Update license files
svn path=/trunk/mono/; revision=153993
2010-03-22 16:32:36 +00:00
Miguel de Icaza 387b6cef41 Add missing copyright notices to Sgen
svn path=/trunk/mono/; revision=153992
2010-03-22 16:29:18 +00:00
Paolo Molaro ef0ef5a4ff typo
svn path=/trunk/mono/; revision=153984
2010-03-22 15:05:13 +00:00
Paolo Molaro baf9821627 Mon Mar 22 16:03:34 CET 2010 Paolo Molaro <[email protected]>
* mono-debug.c: don't try to get the emthod ehader, it causes a
	deadlock and it is not used for anything anymore.


svn path=/trunk/mono/; revision=153983
2010-03-22 15:04:47 +00:00
Andreia Gaita a5a209cdd0 2010-03-22 Andreia Gaita <[email protected]>
* configure.in: fix build when doing with-mcs-docs=no on a clean tree

svn path=/trunk/mono/; revision=153979
2010-03-22 13:27:57 +00:00
Zoltan Varga 85a3585fcf 2010-03-22 Zoltan Varga <[email protected]>
* loader.c (mono_method_get_marshal_info): Fix the handling of dynamic methods
	broken by the last change.

svn path=/trunk/mono/; revision=153972
2010-03-22 12:40:57 +00:00
Zoltan Varga 1aa3e38894 2010-03-22 Zoltan Varga <[email protected]>
* debugger-agent.c (event_req_matches_assembly): Handle request modifiers too.

svn path=/trunk/mono/; revision=153969
2010-03-22 12:06:52 +00:00
Sebastien Pouliot 5012b755ff 2010-03-22 Sebastien Pouliot <[email protected]>
* Directory.cs, DirectoryInfo.cs: Disble new NET_4_0 API used in
	SL4 until we have elevated trust working correctly (since they 
	are *not* decorated as [SecurityCritical])


svn path=/trunk/mcs/; revision=153968
2010-03-22 11:53:14 +00:00
Andreas Färber d2ed08fc22 Add include for fd_set
According to POSIX, fd_set is defined in sys/select.h.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html

2010-03-21  Andreas Faerber  <[email protected]>

	* debugger-agent.c: #include sys/select.h for fd_set.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=153962
2010-03-21 23:47:12 +00:00
Andreas Färber 7f519b3a28 Handle absence of socket constants
AF_SNA, AF_DECnet and SOCK_RDM are not part of POSIX, and Haiku does not
supply them.
Check for their presence before using them, as already done for AF_IPX.

2010-03-21  Andreas Faerber  <[email protected]>

	* socket-io.c: Don't depend on AF_SNA, AF_DECnet,
	SOCK_RDM.

This commit is licensed under the MIT X11 license.

svn path=/trunk/mono/; revision=153961
2010-03-21 18:55:50 +00:00
Gonzalo Paniagua Javier 154877147a 2010-03-21 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: fix handling of query string, whether it comes from
	the address used or is part of the QueryString.


svn path=/trunk/mcs/; revision=153960
2010-03-21 18:06:56 +00:00
Zoltan Varga 5e0e7e0469 2010-03-21 Zoltan Varga <[email protected]>
* mini.c (SIG_HANDLER_SIGNATURE): Fix the build on platforms without sigaction
	(openbsd+amd64 ?).

svn path=/trunk/mono/; revision=153957
2010-03-21 15:56:10 +00:00
Zoltan Varga 6822317f27 2010-03-21 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Avoid an assert in ppc_patch () for
	some large methods with lots of exception handlers. Fixes #440924.

svn path=/trunk/mono/; revision=153953
2010-03-21 12:45:00 +00:00
Miguel de Icaza f47e5fe6a6 2010-03-20 Miguel de Icaza <[email protected]>
* Eliminate warnings in a bunch of places.

svn path=/trunk/mcs/; revision=153952
2010-03-20 23:09:06 +00:00
Miguel de Icaza 8b1550ac86 2010-03-20 Miguel de Icaza <[email protected]>
* WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
	warnings. 

svn path=/trunk/mcs/; revision=153951
2010-03-20 22:58:39 +00:00
Miguel de Icaza c8d4b0cbee 2010-03-20 Miguel de Icaza <[email protected]>
* WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
	warnings. 

svn path=/trunk/mcs/; revision=153950
2010-03-20 22:57:49 +00:00
Miguel de Icaza 661b8cbd0c 2010-03-20 Miguel de Icaza <[email protected]>
* WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
	warnings. 

svn path=/trunk/mcs/; revision=153949
2010-03-20 22:56:56 +00:00
Miguel de Icaza 833a86518a 2010-03-20 Miguel de Icaza <[email protected]>
* RxInterpreter.cs: Removed warnings.

svn path=/trunk/mcs/; revision=153948
2010-03-20 22:56:32 +00:00
Miguel de Icaza d1bd8ade5f 2010-03-20 Miguel de Icaza <[email protected]>
* TypeDescriptor.cs: Remove warning.

svn path=/trunk/mcs/; revision=153947
2010-03-20 22:54:15 +00:00
Miguel de Icaza bd17ba1532 2010-03-20 Miguel de Icaza <[email protected]>
* WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
	warnings. 

svn path=/trunk/mcs/; revision=153946
2010-03-20 22:53:39 +00:00
Miguel de Icaza f3fefd598b 2010-03-20 Miguel de Icaza <[email protected]>
* Uri.cs: Drop pre-2.0 support

svn path=/trunk/mcs/; revision=153945
2010-03-20 22:49:18 +00:00
Miguel de Icaza 3fc0cdfff0 2010-03-20 Miguel de Icaza <[email protected]>
* WebClient.cs: Drop the pre-2.0 support

svn path=/trunk/mcs/; revision=153944
2010-03-20 22:45:29 +00:00
Mark Probst 96b5f08bac 2010-03-20 Sanjoy Das <[email protected]>
* sgen-gc.c (mono_gc_get_write_barrier): Handle non-aligned
        nursery.

        Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=153943
2010-03-20 20:02:37 +00:00
Miguel de Icaza 87aa9c4de4 Removed a warning; But this loop here looks risky
svn path=/trunk/mcs/; revision=153941
2010-03-20 17:13:31 +00:00
Marek Habersack 77cdac570d 2010-03-20 Marek Habersack <[email protected]>
* SiteMapNode.cs: avoid calling ChildNodes twice in HasChildNodes.
	Cache child nodes in the ChildNodes property.

2010-03-20  Marek Habersack  <[email protected]>

	* XmlSiteMapProviderTest.cs: AreEqual should have expected result first
	and actual next - swapped parameters in RootNode_2_OnLoad

svn path=/trunk/mcs/; revision=153937
2010-03-20 14:47:25 +00:00
Paolo Molaro 48e9111086 Sat Mar 20 11:56:24 CET 2010 Paolo Molaro <[email protected]>
* method-to-ir.c: remove code duplication for interface checks.


svn path=/trunk/mono/; revision=153936
2010-03-20 10:57:24 +00:00
Miguel de Icaza 11ca00c93b 2010-03-19 Miguel de Icaza <[email protected]>
* Eliminate warnings in a bunch of places.

svn path=/trunk/mcs/; revision=153923
2010-03-19 21:46:30 +00:00
Miguel de Icaza 5845129be7 2010-03-03 Miguel de Icaza <[email protected]>
* RBTree.cs: Make these serializable, should fix the serialization
	across appdomains of SortedDictionaries

svn path=/trunk/mcs/; revision=153922
2010-03-19 21:45:57 +00:00
Zoltan Varga 260fd31045 2010-03-19 Zoltan Varga <[email protected]>
* debugger-agent.c (clear_event_requests_for_assembly): New helper function.
	(assembly_unload): Clear all event requests referencing the to-be unloaded
	assembly.

svn path=/trunk/mono/; revision=153919
2010-03-19 20:53:28 +00:00
Gonzalo Paniagua Javier 447907f4a3 2010-03-19 Gonzalo Paniagua Javier <[email protected]>
* TreeView.cs: use enums instead of strings for attributes.


svn path=/trunk/mcs/; revision=153917
2010-03-19 20:11:21 +00:00
Sebastien Pouliot 355a27b73d In System.Timers:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* Timer.cs: Removed old NET_2_0 defines and added some new
	MOONLIGHT defines (needed for the client stack)

In System.Net:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* AuthenticationManager.cs: Internal type for Moonlight.
	Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
	this applies to both monotouch and moonlight (client stack).
	Removed unneeded NET_2_0 defines
	* CookieContainer.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll. Removed unneeded NET_2_0
	defines
	* HttpContinueDelegate.cs: Internal type for Moonlight.
	* HttpRequestCreator.cs: Remove a MOONLIGHT define
	* HttpStatusCode.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll
	* HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
	to NET_2_1 defines (applies to both monotouch and moonlight).
	Removed unneeded NET_2_0 and NET_1_1 defines
	* HttpWebResponse.cs: Internal type for Moonlight. Removed 
	unneeded NET_2_0 defines
	* IAuthenticationModule.cs: Internal type for Moonlight.
	* ICertificatePolicy.cs: Internal type for Moonlight.
	* ICredentialPolicy.cs: Internal type for Moonlight. Removed 
	unneeded NET_2_0 defines
	* IWebRequestCreate.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll
	* ServicePoint.cs: Internal type for Moonlight. Change S.Config
	to NET_2_1 defines (applies to both monotouch and moonlight)
	* ServicePointManager.cs: Remove a MOONLIGHT define
	* WebException.cs: For Moonlight it needs to be internal in 
	System.dll and public in System.Net.dll. Removed unneeded NET_2_0
	defines
	* WebHeaderCollection.cs: Internal type for Moonlight. Removed 
	unneeded NET_2_0 defines
	* WebRequest.cs: Internal type for Moonlight. Change S.Config
	to NET_2_1 defines (applies to both monotouch and moonlight)
	* WebResponse.cs: Internal type for Moonlight. Removed unneeded
	NET_2_0 defines

In System.Net.Sockets:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* Socket.cs: Remove some NET_2_0 defines (using) and add a few
	MOONLIGHT defines needed to reuse Socket in the client http stack
	* Socket_2_1.cs: Remove some MOONLIGHT defines
	* SocketAsyncEventArgs.cs: For Moonlight check policy if outside
	System.dll (the client stack use sockets with it's own web 
	xdomain policy)

In System:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* Uri.cs: Remove some MOONLIGHT defines

In .:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* moonlight_*_System.dll.sources: Bring extra types so we can
	build a full, managed, internal HTTP stack to be reused for SL3+
	* Makefile: Add a INSIDE_SYSTEM define when compiling System.dll
	to makes it possible to rebuild the same types in System.Net.dll


svn path=/trunk/mcs/; revision=153916
2010-03-19 19:01:31 +00:00
Sebastien Pouliot b1dfcf6b8b In System.Collections:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* CollectionDebuggerView.cs: Change to internal so we can avoid
	a duplicating the type in assemblies that have [InternalsVisibleTo]

In System.Collections.Generic:
2010-03-19  Sebastien Pouliot  <[email protected]>

	* CollectionDebuggerView.cs: Change to internal so we can avoid
	a duplicating the type in assemblies that have [InternalsVisibleTo]


svn path=/trunk/mcs/; revision=153915
2010-03-19 18:54:23 +00:00
Carlos Alberto Cortez cca444cd7a 2010-03-19 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Move the error detection code to a separate method.
	This way depending on the version we decide what error takes
	precedence: OverlowException in 2.0, and FormatException in 4.0. This
	also lets us keep the Execute() code cleaner and easier to understand.


svn path=/trunk/mcs/; revision=153911
2010-03-19 17:19:42 +00:00
Martin Baulig 13ef70bf5a mono_debug_add_method: Don't call mono_disasm_code() for wrappers.
2010-03-19  Martin Baulig  <[email protected]>

	* mono-debug.c (MonoDebugWrapperData): Replace `cil_code' with a
	dummy field, containing an empty string.
	(mono_debug_add_method): Don't call mono_disasm_code() for wrappers.

svn path=/trunk/mono/; revision=153909
2010-03-19 16:42:35 +00:00
Paolo Molaro d9b80517d4 Fri Mar 19 17:26:43 CET 2010 Paolo Molaro <[email protected]>
* class.c: setup_interface_offsets() refactor to not call
	mono_class_get_implemented_interfaces () more times than needed and
	to reduce the runtime memory requirements to be O(num_interfaces)
	instead of O(max_interface_id).


svn path=/trunk/mono/; revision=153908
2010-03-19 16:29:40 +00:00
Paolo Molaro 45c0bb61e3 Fri Mar 19 16:45:20 CET 2010 Paolo Molaro <[email protected]>
* mini.h, mini-exceptions.c: restore the state of the stack
	guard page permissions.


svn path=/trunk/mono/; revision=153901
2010-03-19 15:47:12 +00:00
Zoltan Varga 71027137fa 2010-03-19 Zoltan Varga <[email protected]>
* autogen.sh: Pass -Wno-portability to automake to quiet some warnings.

svn path=/trunk/mono/; revision=153898
2010-03-19 14:45:37 +00:00
Zoltan Varga 792fae595e Fix a warning.
svn path=/trunk/mono/; revision=153897
2010-03-19 14:09:04 +00:00
Zoltan Varga c0200353f2 2010-03-19 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Remove the condition guarding the
	call site patching code, it doesn't appear to be needed.

svn path=/trunk/mono/; revision=153893
2010-03-19 13:27:57 +00:00
Sebastien Pouliot 14c799e227 2010-03-19 Sebastien Pouliot <[email protected]>
* SocketException_2_1.cs: Add extra ctor (soon to be used)


svn path=/trunk/mcs/; revision=153891
2010-03-19 12:42:33 +00:00
Zoltan Varga fa1475a28c Fix the build.
svn path=/trunk/mono/; revision=153889
2010-03-19 12:09:14 +00:00
Zoltan Varga cd4aebc668 2010-03-19 Zoltan Varga <[email protected]>
* mini-generic-sharing.c: Add infrastructure for partial sharing, ie.
	sharing generic methods whose type arguments are a mix of reference and
	non-reference types. Not yet turned on.

	* mini.c (mini_get_shared_method): New helper function to return
	the method which will be compiled/registered in the JIT tables when doing
	generic sharing.
	(mono_domain_lookup_shared_generic): Moved to mini.c from mini-generic-sharing.c,
	use mini_get_shared_method ().

	* mini.c (mini_method_compile): Register the same method which is compiled when
	doing generic sharing.

	* mini.c aot-compiler.c aot-runtime.c: Add support for partial sharing.

	* generics.cs: Add partial sharing tests.

svn path=/trunk/mono/; revision=153888
2010-03-19 12:04:49 +00:00
Atsushi Eno 3303b19268 initial checkin for new assembly.
svn path=/trunk/mcs/; revision=153885
2010-03-19 11:53:54 +00:00
Sebastien Pouliot 55e1357774 2010-03-19 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: AllowWriteStreamBuffering getter/setter
	throws NIE by default (must be overridden). Revert Accept and
	ContentType behavior to SL2 (identical to SL4 but different from
	SL3). 
	* WebClient_2_1.cs: Initialize UseDefaultCredentials to true. Set
	the properties when creating a new WebRequest


svn path=/trunk/mcs/; revision=153884
2010-03-19 11:52:41 +00:00
Atsushi Eno 9dc62ece0c 2010-03-19 Atsushi Enomoto <[email protected]>
* HostedBindingBehavior.cs : remove unused class.

	* System.ServiceModel.dll.sources : remove unused class.
	* HTTP_listener_notes.txt : add some more comments.


svn path=/trunk/mcs/; revision=153882
2010-03-19 10:21:08 +00:00
Atsushi Eno ed25aa0106 2010-03-19 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : set FilterPriority to make it in higher
	  priority than conflicting endpoints (such as mex endpoint).


svn path=/trunk/mcs/; revision=153876
2010-03-19 02:26:11 +00:00
Jerri Maine 4da65e115a Jerry Maine <[email protected]>
* mini.h : Changed the SIMD_VERSION* enum values to match those in Mono.Simd.AccelMode.
		   Add an enum value that or's all possable values together. Add an enum value
		   that marks the end of the used bit indexes.

	* mini-amd64.c : Make changes to match the changes in mini.h 

	* mini-x86.c : Make changes to match the changes in mini.h

	* simd-intrinsics.c : Reorder the SimdIntrinsc struct to add more bits to
		   simd_version to support more simd versions. Changed the name of
		   simd_version to simd_version_flags to make it more intuitive that
		   it now contains bit flags. Reordered the *_intrinsics arrays to
		   match the changes above. Changed emit_intrinsics() to use the new
		   setup mentioned above.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=153875
2010-03-19 01:54:00 +00:00
Sebastien Pouliot 6138988936 2010-03-18 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Add SL4 RC AllowWriteStreamBuffering and
	SupportsCookieContainer properties.
	* WebClient_2_1.cs: Add SL4 RC AllowWriteStreamBuffering and 
	UseDefaultCredentials properties.
	* WebHeaderCollection_2_1.cs: Authorization and Proxy-Authorization
	are valid (i.e. usable) headers in SL4 (in both stacks)


svn path=/trunk/mcs/; revision=153863
2010-03-18 19:31:53 +00:00
Sebastien Pouliot b3d8bf1af4 fix net_4_0 build
svn path=/trunk/mcs/; revision=153859
2010-03-18 18:11:39 +00:00
Carlos Alberto Cortez d5251ec550 2010-03-18 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Put the error info in a single field, to make it easier
	to preserve the very first error we get while parsing, and discard the
	next ones. This will help us in a pair of cases where we were
	overriding the previous error and reporting the wrong exception.


svn path=/trunk/mcs/; revision=153849
2010-03-18 16:30:58 +00:00
Marek Habersack f95d1a0dd6 2010-03-18 Marek Habersack <[email protected]>
* Makefile: include resources in compilation

svn path=/trunk/mcs/; revision=153847
2010-03-18 16:08:21 +00:00
Sebastien Pouliot bf8afab476 2010-03-18 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Add Aes (for NET_4_0)
        * moonlight_raw_corlib.dll.sources: Add Aes and System.Runtime.
        CompilerServices/ReferenceAssemblyAttribute.cs


svn path=/trunk/mcs/; revision=153841
2010-03-18 14:29:26 +00:00
Sebastien Pouliot 50731318d9 In Assembly:
2010-03-18  Sebastien Pouliot  <[email protected]>

	* AssemblyInfo.cs: Add TypeForwardTo for Aes on NET_4_0

In System.Security.Cryptography:
2010-03-18  Sebastien Pouliot  <[email protected]>

	* Aes.cs: Build here before NET_4_0 (or MOONLIGHT) otherwise 
	build only if compiled from mscorlib.dll


svn path=/trunk/mcs/; revision=153840
2010-03-18 14:27:18 +00:00
Sebastien Pouliot 8bdb6b1fb9 2010-03-18 Sebastien Pouliot <[email protected]>
* ConditionalWeakTable.cs:
	* ReferenceAssemblyAttribute.cs:
	* TypeForwardedFromAttribute.cs:
		Build them into Moonlight too (SL4)


svn path=/trunk/mcs/; revision=153839
2010-03-18 13:56:07 +00:00
Gonzalo Paniagua Javier a63e10a75c fixup nsec for absolute time too
svn path=/trunk/mono/; revision=153838
2010-03-18 13:55:15 +00:00
Atsushi Eno 9248aceeaf 2010-03-18 Atsushi Enomoto <[email protected]>
* XPathMessageContext.cs : implement.
	* XPathMessageFilterTable.cs : add some missing overloads.

	* Constants.cs : add more.

	* System.ServiceModel_test.dll.sources :
	  Add Constants.cs and XPathMessageContextTest.cs.

	* XPathMessageContextTest.cs : new.

	* Constants.cs : copied from the lib itself.


svn path=/trunk/mcs/; revision=153833
2010-03-18 13:02:16 +00:00
Gonzalo Paniagua Javier 9a1d4113e1 2010-03-18 Gonzalo Paniagua Javier <[email protected]>
* FtpWebResponse.cs:
	* FtpWebRequest.cs: for non-data operations, make sure we send the
	QUIT command upon completion when KeepAlive is false.
	Fixes bug #589305.


svn path=/trunk/mcs/; revision=153825
2010-03-18 11:59:29 +00:00
Atsushi Eno 299b783b98 2010-03-18 Atsushi Enomoto <[email protected]>
* ReliableSessionBindingElement.cs,
	  PrivacyNoticeBindingElement.cs,
	  RemoteEndpointMessageProperty.cs : added some missing types.

	* Dummy.cs : removed some dummy types (not dummy anymore).

	* System.ServiceModel.dll.sources : added some missing types.


svn path=/trunk/mcs/; revision=153824
2010-03-18 10:36:51 +00:00
Gonzalo Paniagua Javier 4069bec9d7 2010-03-18 Gonzalo Paniagua Javier <[email protected]>
* mono-mlist.[ch]: add mono_mlist_set_next ().


svn path=/trunk/mono/; revision=153821
2010-03-18 09:45:25 +00:00
Zoltan Varga 9be6f4fae6 2010-03-18 Zoltan Varga <[email protected]>
* Makefile.am (runtest): Save the output of the aot compiler into a file.

svn path=/trunk/mono/; revision=153816
2010-03-18 07:17:47 +00:00
Zoltan Varga 7b5a352925 Fix the IA64 build.
svn path=/trunk/mono/; revision=153814
2010-03-18 06:27:22 +00:00
Zoltan Varga 5e22bf1e37 2010-03-18 Zoltan Varga <[email protected]>
* mkbundle.cs: Update after the mono.pc and libmono version bump.

svn path=/trunk/mcs/; revision=153813
2010-03-18 06:26:02 +00:00
Gonzalo Paniagua Javier d341faf689 2010-03-17 Gonzalo Paniagua Javier <[email protected]>
* StreamReaderTest.cs: test for bug 589236. The detected encoding is
	different from the one provided in the ctor.


svn path=/trunk/mcs/; revision=153802
2010-03-18 02:56:09 +00:00
Gonzalo Paniagua Javier ea76aa9964 2010-03-17 Gonzalo Paniagua Javier <[email protected]>
* StreamReader.cs: if the detected encoding is different from the
	provided to the constructor, adjust the decoded buffer size if
	needed. Fixes bug #589236.


svn path=/trunk/mcs/; revision=153799
2010-03-18 02:41:08 +00:00
Marek Habersack 4828e79cbd 2010-03-17 Marek Habersack <[email protected]>
* AspGenerator.cs, AspParser.cs, TemplateControlCompiler.cs, TagType.cs, CodeRenderBuilder.cs: implemented the new <%: %> 4.0 html-encoded code render expression.

svn path=/trunk/mcs/; revision=153793
2010-03-17 22:35:23 +00:00
Gonzalo Paniagua Javier 680a0577ed 2010-03-17 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.c: _timedwait takes an absolute time.


svn path=/trunk/mono/; revision=153786
2010-03-17 19:10:08 +00:00
Sebastien Pouliot 554ba58986 2010-03-17 Sebastien Pouliot <[email protected]>
* String.cs: SL4 includes new IsNullOrWhiteSpace and Concat/Join 
	overloads.


svn path=/trunk/mcs/; revision=153784
2010-03-17 19:02:17 +00:00
Carlos Alberto Cortez 9393de7519 2010-03-17 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: TimeSpan is actually implementing IFormattable.


svn path=/trunk/mcs/; revision=153781
2010-03-17 18:12:09 +00:00
Rodrigo Kumpera 62fc318d08 2010-03-17 Rodrigo Kumpera <[email protected]>
* mini-*.c (mono_arch_output_basic_block): Record try block
	* holes on all remaining archs. Alpha and hppa maintainers, please stand up.

svn path=/trunk/mono/; revision=153780
2010-03-17 17:46:29 +00:00
Zoltan Varga 0b7a3fae24 2010-03-17 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_build_imt_thunk): Always save and restore r11 since it
	is needed even when fail_tramp!=NULL.

svn path=/trunk/mono/; revision=153768
2010-03-17 15:02:39 +00:00
Zoltan Varga 3c89fd83ba 2010-03-17 Zoltan Varga <[email protected]>
* debugger-agent.c (insert_breakpoint): Write a log message.

svn path=/trunk/mono/; revision=153766
2010-03-17 14:55:32 +00:00
Atsushi Eno dab1c43c48 2010-03-17 Atsushi Enomoto <[email protected]>
* WsdlExporter.cs : allow identical contract while exporting a set
	  of endpoints, while reject identical ones when calling
	  ExportEndpoint() individually.


svn path=/trunk/mcs/; revision=153763
2010-03-17 13:52:42 +00:00
Atsushi Eno 22b6b52b03 2010-03-17 Atsushi Enomoto <[email protected]>
* MetadataExchangeBindings.cs : use WSHttpBinding (it works if other
	  parts gets fixed).

	* MetadataExchangeBindingsTest.cs : new test.

	* System.ServiceModel_test.dll.sources :
	  add MetadataExchangeBindingsTest.cs.


svn path=/trunk/mcs/; revision=153762
2010-03-17 13:26:23 +00:00
Atsushi Eno cb40d0e7c7 2010-03-17 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs, WsdlExporter.cs :
	  implement ExportEndpoints() and use it.


svn path=/trunk/mcs/; revision=153760
2010-03-17 13:19:09 +00:00
Sebastien Pouliot a30f25fd2f 2010-03-17 Sebastien Pouliot <[email protected]>
* Stream.cs: CopyTo methods are part of SL4 too


svn path=/trunk/mcs/; revision=153726
2010-03-17 11:56:17 +00:00
Atsushi Eno 5a218d597b 2010-03-17 Atsushi Enomoto <[email protected]>
* ServiceMetadataPublishingElement.cs : use IsNullOrEmpty(), names
	  could be "" which is equivalent to null here.


svn path=/trunk/mcs/; revision=153725
2010-03-17 11:27:31 +00:00
Atsushi Eno 1e04769778 2010-03-17 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : use namespace for mex binding comparison, to
	  cover other bindings than http (such as https).
	* WSHttpBindingBase.cs : add some comment.


svn path=/trunk/mcs/; revision=153724
2010-03-17 11:26:36 +00:00
Atsushi Eno 74757f99c3 2010-03-17 Atsushi Enomoto <[email protected]>
* ConfigUtil.cs, StandardBindingCollectionElement.cs,
	  MexHttpsBindingCollectionElement.cs,
	  MexHttpBindingCollectionElement.cs : use GetDefault() in
	  BindingCollectionElement to create a Binding, instead of activator
	  immediately. And for mex bindings, use MetadataExchangeBindings.


svn path=/trunk/mcs/; revision=153723
2010-03-17 11:09:11 +00:00
Rolf Bjarne Kvinge fb78eacda4 2010-03-17 Rolf Bjarne Kvinge <[email protected]>
* AppDomain.cs: Added MonoTODO for IsCompatibilitySwitchSet.

svn path=/trunk/mcs/; revision=153722
2010-03-17 10:36:49 +00:00
Atsushi Eno 3b333ef840 2010-03-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs :
	  why does it filter out most of the headers? kill it.


svn path=/trunk/mcs/; revision=153716
2010-03-17 08:48:15 +00:00
Atsushi Eno 1e0be4e748 2010-03-17 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
	  HttpListenerManager.cs : refactoring on acquiring SvcHttpHandler
	  to not raise "not found" error (see bug #573795).


svn path=/trunk/mcs/; revision=153712
2010-03-17 07:05:41 +00:00
Atsushi Eno 383d6b9338 2010-03-17 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fix cosmetic 2.0 compatibility issue in 
	  WriteStartAttribute() which allows "" for prefixed xmlns and brings
	  incompatibility with XmlTextWriter class.


svn path=/trunk/mcs/; revision=153709
2010-03-17 05:10:42 +00:00
Marek Safar 6aea207dbf New test.
svn path=/trunk/mcs/; revision=153703
2010-03-16 22:32:21 +00:00
Zoltan Varga 8516acf949 2010-03-16 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_llvm_call_info): Avoid crashes with arguments
	passed on the stack.

	* mini-amd64.c (mono_arch_get_llvm_call_info): Ditto.

svn path=/trunk/mono/; revision=153702
2010-03-16 22:09:51 +00:00
Zoltan Varga 842f980bda 2010-03-16 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_llvm_call_info): Avoid crashes with arguments
	passed on the stack.

svn path=/trunk/mono/; revision=153701
2010-03-16 22:04:42 +00:00
Marek Safar 4e69f5ca6d different check
svn path=/trunk/mcs/; revision=153697
2010-03-16 19:58:19 +00:00
Marek Habersack 8de7037b16 Added system.web.mvc2.pc
svn path=/trunk/mono/; revision=153694
2010-03-16 18:58:05 +00:00
Carlos Alberto Cortez faba0da70a 2010-03-16 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: In 4.0 the Parse/TryParse methods always try to use its
	associated CultureInfo.NumberFormat.NumberDecimalSeparator value, as well as
	providing backwards compatibility by also supporting '.' as the
	separator.


svn path=/trunk/mcs/; revision=153693
2010-03-16 18:51:40 +00:00
Rodrigo Kumpera 765d66bce3 2010-03-16 Rodrigo Kumpera <[email protected]>
* iltests.il.in: Add a few tests for LEAVE going over multiple
	finally clauses.

svn path=/trunk/mono/; revision=153688
2010-03-16 15:16:48 +00:00
Rodrigo Kumpera e762ecad98 2010-03-16 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_output_basic_block): Record try block holes.

svn path=/trunk/mono/; revision=153687
2010-03-16 15:16:25 +00:00
Rodrigo Kumpera 75f9e5be1b 2010-03-16 Rodrigo Kumpera <[email protected]>
* mini.h (MonoBasicBlock): Add native_length field.
	* mini.h (MonoCompile): Add try_block_holes field.
	* mini.h (MonoInst): Add exception_clause pointer to
	the data union.

	* mini.c (mono_codegen): Calculate MonoBasicBlock::native_length.
	* mini.c (mono_cfg_add_try_hole): New function to register possible
	holes in try blocks.
	* mini.c (create_jit_info): Fill in the holes information.

	* mini-exceptions.c: Verify for holes when checking if an IP is covered
	by a try block.

	* method-to-ir.c: Add the EH clause to the CALL_HANDLE instruction.

svn path=/trunk/mono/; revision=153686
2010-03-16 15:16:11 +00:00
Rodrigo Kumpera b0f43d1bf9 2010-03-16 Rodrigo Kumpera <[email protected]>
* domain-internals.h: Add MonoTryBlockHoleJitInfo struct and
	associated changes to support holes in the protected range of a
	try block.

	* domain.c: Add mono_jit_info_get_try_block_hole_table_info, which
	retrieves the holes table from a given MonoJitInfo.

svn path=/trunk/mono/; revision=153685
2010-03-16 15:15:03 +00:00
Marek Safar 0fadfc5c04 New tests.
svn path=/trunk/mcs/; revision=153684
2010-03-16 14:55:05 +00:00
Jonathan Pryor b97394eda4 * library.make (MDOC_UP): Set MONO_PATH to find monodoc.dll.
* rules.make (MDOC): MONO_PATH needs to include 
	  $(topdir)/class/lib/net_2_0 so that monodoc.dll can be found.

svn path=/trunk/mcs/; revision=153683
2010-03-16 14:48:12 +00:00
Rolf Bjarne Kvinge d065033369 In class:
2010-03-16  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile: Add System.Xml.Serialization to the Moonlight build.

In class/System.Xml.Serialization/Assembly:
2010-03-16  Rolf Bjarne Kvinge  <[email protected]>

	* AssemblyInfo.cs: Added.

In class/System.Xml.Serialization:
2010-03-16  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile:
	* System.Xml.Serialization.dll.sources:
	* moonlight_raw_System.Xml.Serialization.dll.sources: Added.

In class/System.Xml.Serialization/System.Xml.Serialization:
2010-03-16  Rolf Bjarne Kvinge  <[email protected]>

	* XmlMapping.cs:
	* XmlAttributes.cs:
	* XmlSerializer.cs:
	* XmlTypeMapping.cs:
	* XmlAttributeOverrides.cs:
	* XmlSerializationWriter.cs:
	* XmlSerializationReader.cs:
	* XmlSerializerNamespaces.cs:
	* XmlSerializationGeneratedCode.cs: Added a partially stubbed out version of
	System.Xml.Serialization.dll, required for the Silverlight test suite to
	compile. A real implementation based on the same classes in System.Xml should
	eventually be done.

svn path=/trunk/mcs/; revision=153674
2010-03-16 12:34:05 +00:00
Jb Evain 846150badd use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153673
2010-03-16 12:31:23 +00:00
Jb Evain a79407fbe0 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153672
2010-03-16 12:27:35 +00:00
Jb Evain f5872f06f6 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153671
2010-03-16 12:25:55 +00:00
Jb Evain aaf3676777 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153670
2010-03-16 12:25:17 +00:00
Jb Evain e1b7f59d45 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153669
2010-03-16 12:24:55 +00:00
Jb Evain 48bd22c0ab use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153668
2010-03-16 12:21:34 +00:00
Jb Evain a3f7ce80a7 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153667
2010-03-16 12:19:11 +00:00
Paolo Molaro 4dd77f88b5 Tue Mar 16 13:16:16 CET 2010 Paolo Molaro <[email protected]>
* jit-icalls.c: adjusted for the array API changes.


svn path=/trunk/mono/; revision=153666
2010-03-16 12:17:13 +00:00
Paolo Molaro 3637bf46c5 Tue Mar 16 13:11:15 CET 2010 Paolo Molaro <[email protected]>
* object.h, object-internals.h, object.c, icall.c, gc-internal.h,
	debug-helpers.c, cominterop.c, process.c, sgen-gc.c, socket-io.c:
	hide the contents of the MonoString and MonoArray structs from the
	public API. Change the accessor macros to accessors functions where
	needed. Adjusted the array API to allow for pointer-sized lengths and
	starting positions, so 64 bit arrays can be optionally provided in an
	API compatible way if needed on 64 bit systems.


svn path=/trunk/mono/; revision=153665
2010-03-16 12:16:53 +00:00
Jb Evain 116b2ee12f use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153664
2010-03-16 12:15:11 +00:00
Rolf Bjarne Kvinge 08ca8e223f 2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* Enum.cs: Added a few 4.0 api to Moonlight.

svn path=/trunk/mcs/; revision=153663
2010-03-16 12:14:40 +00:00
Rolf Bjarne Kvinge a621f99c7f 2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* WebRequest_2_1.cs: Added UseDefaultCredentials property.

svn path=/trunk/mcs/; revision=153662
2010-03-16 12:14:30 +00:00
Rolf Bjarne Kvinge 9b1ba4f219 2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* AppDomain.cs: Added IsCompatibilitySwitchSet for .NET 4.0 and Moonlight.

svn path=/trunk/mcs/; revision=153661
2010-03-16 12:14:19 +00:00
Rolf Bjarne Kvinge 7e230b90fa 2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* XElement.cs:
	* SaveOptions.cs: Add more 4.0 api to Moonlight.

svn path=/trunk/mcs/; revision=153660
2010-03-16 12:14:05 +00:00
Jb Evain e73cf2586e use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153659
2010-03-16 12:13:57 +00:00
Jb Evain ba09e4ba86 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153658
2010-03-16 12:11:37 +00:00
Jb Evain d229615ecc use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153657
2010-03-16 12:10:42 +00:00
Jb Evain 05a5b21fa0 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153656
2010-03-16 12:10:19 +00:00
Jb Evain ba61ae505e use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153655
2010-03-16 12:07:46 +00:00
Jb Evain 69fc3eefe6 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153654
2010-03-16 10:55:58 +00:00
Jb Evain e1dc31d7ab use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153653
2010-03-16 10:53:59 +00:00
Jb Evain 567bec547c use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153651
2010-03-16 10:52:43 +00:00
Rolf Bjarne Kvinge f66b3edf96 2010-03-16 Rolf Bjarne Kvinge <[email protected]>
* Path.cs:
	* Directory.cs:
	* DirectoryInfo.cs: Add some of the 4.0 methods to Moonlight.

svn path=/trunk/mcs/; revision=153650
2010-03-16 10:47:36 +00:00
Paolo Molaro 4970447c9b Tue Mar 16 11:20:14 CET 2010 Paolo Molaro <[email protected]>
* mono-profiler-iomap.c: fix some API usage and add a warning
	about this code.


svn path=/trunk/mono/; revision=153648
2010-03-16 10:21:23 +00:00
Paolo Molaro 4409a709a4 Tue Mar 16 10:18:07 CET 2010 Paolo Molaro <[email protected]>
* class-internals.h, class.c, loader.c, marshal.c, metadata.c,
	reflection.c: the MonoMethodNormal struct is now unused, so remove it.


svn path=/trunk/mono/; revision=153643
2010-03-16 09:20:22 +00:00
Jb Evain 8e186eaaef rename net_2_1 to moonlight
svn path=/trunk/mono/; revision=153639
2010-03-16 08:32:57 +00:00
Jb Evain b3f3ef56c8 rename net_2_1 to moonlight
svn path=/trunk/mcs/; revision=153638
2010-03-16 08:32:37 +00:00
Zoltan Varga 73172e2b1e 2010-03-16 Zoltan Varga <[email protected]>
* iltests.il.in: Disable the fconv_to_i test on sparc too.

svn path=/trunk/mono/; revision=153634
2010-03-16 07:51:14 +00:00
Zoltan Varga e00c482572 2010-03-16 Zoltan Varga <[email protected]>
* debugger-agent.c: Simplify the way breakpoints are processed by removing
	the 'pending' flag. This fixes support for appdomains too.

svn path=/trunk/mono/; revision=153629
2010-03-16 04:58:06 +00:00
Geoff Norton ff74175b50 2010-03-15 Geoff Norton <[email protected]>
* DirectoryCatalog.cs: Patch from MEF team to fix
	a case-sensitivity issue on linux

svn path=/trunk/mcs/; revision=153628
2010-03-16 01:52:11 +00:00
Atsushi Eno 3ecf0674e2 2010-03-16 Atsushi Enomoto <[email protected]>
* TcpTransportElement.cs
	  MsmqIntegrationElement.cs
	  MsmqElementBase.cs
	  NamedPipeTransportElement.cs
	  HttpsTransportElement.cs
	  TransportElement.cs
	  MsmqTransportElement.cs
	  HttpTransportElement.cs : implement missing methods.


svn path=/trunk/mcs/; revision=153625
2010-03-16 00:35:58 +00:00
Atsushi Eno b11927495b 2010-03-16 Atsushi Enomoto <[email protected]>
* IssuedTokenClientElement.cs, MsmqBindingElementBase.cs,
	  NamedPipeConnectionPoolSettingsElement.cs,
	  TcpConnectionPoolSettingsElement.cs,
	  StandardBindingReliableSessionElement.cs,
	  LocalServiceSecuritySettingsElement.cs : use TimeSpanConverter.


svn path=/trunk/mcs/; revision=153624
2010-03-16 00:34:56 +00:00
Carlos Alberto Cortez 27d07d4257 * TimeSpan.cs: In 4.0 if the part parsed as days exceeds the allowed
range -this is, 23-, then it is processed as days instead - opposed to
	2.0, where we are throwing an OverflowException.

2010-03-15  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=153617
2010-03-15 22:39:42 +00:00
Marek Habersack 1e3c80449d MVC2 import
svn path=/trunk/mcs/; revision=153615
2010-03-15 22:32:50 +00:00
Andrew Jorgensen f8aeefbc66 Add DIST_SUBDIRS with SUBDIRS and net_4_0_dirs so that all that stuff gets dist'd
svn path=/trunk/mcs/; revision=153614
2010-03-15 22:05:58 +00:00
Carlos Alberto Cortez f4af81269a 2010-03-15 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Make the colon parsing optional -and adjust the name to
	reflect it-, so we can properly parse the case where we only have the
	hours and minutes. This subtle bug was hidden before, since a string
	such "10:12" would be parsed correctly, but "10:12  " (trailing white
	space) was getting a FormatException.


svn path=/trunk/mcs/; revision=153611
2010-03-15 21:53:52 +00:00
Rolf Bjarne Kvinge 4da66b5708 2010-03-15 Rolf Bjarne Kvinge <[email protected]>
* XElement.cs: Added two new Load overloads for NET 4.0 and Moonlight.

svn path=/trunk/mcs/; revision=153609
2010-03-15 21:36:30 +00:00
Paolo Molaro c9c6fc8b90 Mon Mar 15 18:28:00 CET 2010 Paolo Molaro <[email protected]>
* class-internals.h: remove the method header from MonoMethod since
	from now on it will be transient. We have a header pointer for method
	wrappers, since in that case we need to keep track of it. For this
	reason, all the Reflection.Emit generated methods use MonoMethodWrapper
	structs now. The same happens with MonoMethodInflated.
	* class.c: reset the sre_method flag for inflated method structures:
	this makes the code that cares look at the header in the MonoMethodInflated
	structure.
	* loader.c: lookup the method header in the appropriate field now that
	it is removed from MonoMethod.
	* metadata-internals.h: add a flag to the method header to know if it
	can be freed inside mono_metadata_free_mh ().
	* method-builder.c: updates after moving the header field from
	MonoMethod to MonoMethodWrapper.
	* reflection.c: MonoMethods generated from Reflection.Emit use
	MonoMethodWrapper structs if they need a method header now (later take
	advantage of this and remove all the current unsafe uses of method_aux_hash).
	* metadata.c: make method header parsing not leak when verification
	fails. Alloc it with g_malloc() and free it in mono_metadata_free_mh().
	These changes save a few hundred KB of runtime memory in a mcs
	bootstrap or a monodevelop startup.


svn path=/trunk/mono/; revision=153600
2010-03-15 17:57:27 +00:00
Paolo Molaro 2ba41e2ae6 Mon Mar 15 18:25:49 CET 2010 Paolo Molaro <[email protected]>
* mini-amd64.c, mini-ia64.c: remove direct access to method->header.


svn path=/trunk/mono/; revision=153597
2010-03-15 17:26:51 +00:00
Atsushi Eno 994a5eda40 2010-03-15 Atsushi Enomoto <[email protected]>
* ServiceEndpointCollection.cs : those overrides are rather to check
	  null arguments, not to skip contract duplicates.


svn path=/trunk/mcs/; revision=153589
2010-03-15 15:13:07 +00:00
Atsushi Eno a09c8adcc8 2010-03-15 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : do not reject endpoints with an identical
	  contract to existing ones but with different binding, address or
	  listen URI.


svn path=/trunk/mcs/; revision=153584
2010-03-15 15:00:43 +00:00
Atsushi Eno 119855f4b7 2010-03-15 Atsushi Enomoto <[email protected]>
* ServiceDebugElement.cs : binding names could rather be empty.


svn path=/trunk/mcs/; revision=153583
2010-03-15 14:44:27 +00:00
Rolf Bjarne Kvinge d3720a7ca2 2010-03-15 Rolf Bjarne Kvinge <[email protected]>
* SearchOption.cs: Make public for Moonlight, this type is in SL4.

svn path=/trunk/mcs/; revision=153581
2010-03-15 14:32:01 +00:00
Atsushi Eno da5e52a621 2010-03-15 Astushi Enomoto <[email protected]>
* net_4_0_System.ServiceModel.dll.sources:
	  more types from Sys.SM.Web.dll in 4.0 profile here.

	* net_2_0_System.ServiceModel.Web.dll.sources,
	  common_System.ServiceModel.Web.dll.sources : UriTemplates are
	  moved to Sys.SM.dll in 4.0 profile.


svn path=/trunk/mcs/; revision=153562
2010-03-15 08:33:53 +00:00
Atsushi Eno a5b5e8ce99 2010-03-15 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : quick fix for bug #584664. Fill base
	  content type particles in prior to filling its own.

	* XmlSchemaValidatorTests.cs : added test for bug #584664.

	* 584664b.xsd, 584664a.xml, 584664b.xml, 584664a.xsd: new test files
	  by Florian Haag.


svn path=/trunk/mcs/; revision=153559
2010-03-15 06:12:42 +00:00
Atsushi Eno 4b08d7cf69 2010-03-15 Astushi Enomoto <[email protected]>
* Dummy_2_1.cs : added cosmetic silverlight sdk compatibility stuff.


svn path=/trunk/mcs/; revision=153558
2010-03-15 02:39:27 +00:00
Zoltan Varga 68aef0b833 2010-03-14 Zoltan Varga <[email protected]>
* ILParser.jay: Fix the float32(<long>) case in the previous change.

svn path=/trunk/mcs/; revision=153543
2010-03-14 01:53:07 +00:00
Zoltan Varga 80faedc1e7 2010-03-14 Zoltan Varga <[email protected]>
* ILParser.jay: Fix support for hex float literals on big-endian platforms.

svn path=/trunk/mcs/; revision=153540
2010-03-14 01:42:46 +00:00
Kornél Pál 85ceae01fd JavaScriptReader.cs: Deserialize false correctly. Fixed bug #586712.
svn path=/trunk/mcs/; revision=153536
2010-03-13 09:48:25 +00:00
Geoff Norton ee8425ceee Revert now that its fixed
svn path=/trunk/mcs/; revision=153535
2010-03-13 08:30:54 +00:00
Sebastien Pouliot 08eb5f8d78 2010-03-12 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Directly set 'progress' delegate field
	* WebRequest_2_1.cs: Avoid using reflection (since it was not 
	really needed anyway)


svn path=/trunk/mcs/; revision=153521
2010-03-12 18:59:22 +00:00
Rodrigo Kumpera 1b9000fc26 2010-03-12 Rodrigo Kumpera <[email protected]>
* verify.c: Improve error message.

svn path=/trunk/mono/; revision=153520
2010-03-12 18:09:26 +00:00
Jb Evain c29282519b 2010-03-12 Jb Evain <[email protected]>
* dump.c (dump_table_exported): dump the type flags as well.


svn path=/trunk/mono/; revision=153515
2010-03-12 14:53:56 +00:00
Sebastien Pouliot 0b7db61902 In System:
2010-03-12  Sebastien Pouliot  <[email protected]>

	* Tuple.cs, Tuples.cs: Add them to NET_2_1 since they are parts
	of SL4

In System.Collections:
2010-03-12  Sebastien Pouliot  <[email protected]>

	* IStructuralComparable.cs, IStructuralEquatable.cs: Add them to
	NET_2_1 since they are parts of SL4

In System.IO:
2010-03-12  Sebastien Pouliot  <[email protected]>

	* File.cs: Enable some NET_4_0 features in NET_2_1 since they are
	part of SL4. Throw a SecurityException in Moonlight in non-debug
	builds until we're ready for elevated trust.


svn path=/trunk/mcs/; revision=153506
2010-03-12 13:11:11 +00:00
Jb Evain 5147e1a1ce fix uncomplete 153500
svn path=/trunk/mono/; revision=153502
2010-03-12 11:50:22 +00:00
Jb Evain 7926de8d42 2010-03-12 Jb Evain <[email protected]>
* AssemblyBuilder.cs (AddTypeForwarder): throw if the
	type is a nested type.


svn path=/trunk/mcs/; revision=153501
2010-03-12 11:46:55 +00:00
Jb Evain 3aa45c55e5 2010-03-12 Jb Evain <[email protected]>
* reflection.c (add_exported_type): populate the exported
	table with the type's nested type.


svn path=/trunk/mono/; revision=153500
2010-03-12 11:45:11 +00:00
Atsushi Eno 48f6a75c24 2010-03-12 Atsushi Enomoto <[email protected]>
* MessageDescription.cs : implement MessageName.


svn path=/trunk/mcs/; revision=153498
2010-03-12 11:15:44 +00:00
Atsushi Eno aef25e8c95 2010-03-12 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs, SerializationMap.cs :
	  some refactoring to implement MessageDescription.XmlName.


svn path=/trunk/mcs/; revision=153497
2010-03-12 11:15:10 +00:00
Atsushi Eno 9f2af8d5a1 2010-03-11 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs : add internal OperationFormatter type
	  for moonlight/silverlight-sdk compatibility. It mostly wraps
	  the existing the return value by BaseMessagesFormatter.Create().
	* DispatchOperation.cs, ClientOperation.cs, EndpointDispatcher.cs:
	  use above new type.


svn path=/trunk/mcs/; revision=153493
2010-03-12 07:27:23 +00:00
Atsushi Eno 3478ddd4e4 2010-03-11 Atsushi Enomoto <[email protected]>
* OperationDescription.cs, MessagePartDescription.cs,
	  MessageDescription.cs : add internal moonlight compat stuff.


svn path=/trunk/mcs/; revision=153492
2010-03-12 07:24:58 +00:00
Atsushi Eno 2971508f62 forgot to add.
svn path=/trunk/mcs/; revision=153491
2010-03-12 07:22:53 +00:00
Atsushi Eno a64563940e 2010-03-11 Atsushi Enomoto <[email protected]>
* XmlName.cs : new internal type for moonlight/SL SDK compatibility.

	* System.ServiceModel.dll.sources,
	  net_2_1_raw_System.ServiceModel.dll.sources:
	  added XmlName.cs.


svn path=/trunk/mcs/; revision=153489
2010-03-12 05:19:23 +00:00
Atsushi Eno bb536383f9 2010-03-11 Atsushi Enomoto <[email protected]>
* Makefile : build Sys.Json after Sys.SM.Web.


svn path=/trunk/mcs/; revision=153488
2010-03-12 03:01:59 +00:00
Atsushi Eno ef6043ede2 2010-03-12 Atsushi Enomoto <[email protected]>
* monotouch_System.ServiceModel.Web.dll.sources :
	  This also needs new files.


svn path=/trunk/mcs/; revision=153487
2010-03-12 02:23:57 +00:00
Zoltan Varga 15e27de955 2010-03-12 Zoltan Varga <[email protected]>
* simd-intrinsics.c (simd_intrinsic_emit_getter): Don't emit shuffle opcodes
	when using LLVM, LLVM generates it itself when needed.

	* mini-llvm-cpp.cpp (mono_llvm_build_aligned_load): New helper function.

	* mini-llvm.c: Use an unaligned load for OP_LOADX_MEMBASE. Add zero extension
	to some OP_EXTRACT_ opcodes. Fix the naming of some sse intrinsics. Fix
	OP_ANDNPS/OP_ANDNPD.

svn path=/trunk/mono/; revision=153486
2010-03-12 01:06:13 +00:00
Zoltan Varga 316e57b86a 2010-03-11 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_create_monitor_enter_trampoline_full): Use 'code' for
	the pc instead of 'buf'. Fix the call to mono_arch_flush_icache ().
	(mono_arch_create_monitor_exit_trampoline_full): Ditto.

svn path=/trunk/mono/; revision=153484
2010-03-11 21:24:06 +00:00
Sebastien Pouliot dd1802b725 In System.Diagnostics:
2010-03-11  Sebastien Pouliot  <[email protected]>

	* Debug_2_1.cs: Change type to static to match SL4

In .:
2010-03-11  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.dll.sources: Add existing files that are 
	part of SL4

In System.Collections.Generic:
2010-03-11  Sebastien Pouliot  <[email protected]>

	* ISet.cs: Add NET_2_1 since this is part of SL4


svn path=/trunk/mcs/; revision=153477
2010-03-11 18:15:05 +00:00
Sebastien Pouliot 946c035226 In .:
2010-03-11  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_corlib.dll.sources: Add System.Diagnostics.Contracts
	for Moonlight 4

In System.Diagnostics.Contracts:
2010-03-11  Sebastien Pouliot  <[email protected]>

	* *.cs: Add NET_2_1 since contracts are part of SL4 :-)


svn path=/trunk/mcs/; revision=153476
2010-03-11 18:12:10 +00:00
Marek Safar 2b1df3a6a6 Use existing accessor for explicit
svn path=/trunk/mcs/; revision=153475
2010-03-11 17:07:20 +00:00
Marek Safar 192594b8dd 2010-03-11 Marek Safar <[email protected]>
* statement.cs, cs-parser.jay: Use correct location for empty
	statements.


svn path=/trunk/mcs/; revision=153472
2010-03-11 15:15:45 +00:00
Rodrigo Kumpera de88b60f4d 2010-03-11 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Remove invalid assert.

svn path=/trunk/mcs/; revision=153470
2010-03-11 15:01:08 +00:00
Rodrigo Kumpera 105b73b817 2010-03-11 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: New tests for GetMethod, GetConstructor
	* and GetField.

svn path=/trunk/mcs/; revision=153469
2010-03-11 15:01:00 +00:00
Rodrigo Kumpera d923a87a54 2010-03-11 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetMethod): Allow type to be the typebuilder
	* itself.
	Add better error checking to GetConstructor and GetField.

	Fixes #587106.

svn path=/trunk/mcs/; revision=153468
2010-03-11 15:00:51 +00:00
Rodrigo Kumpera b81b54daf4 2010-03-07 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Some v4 adjustments.

svn path=/trunk/mcs/; revision=153467
2010-03-11 15:00:42 +00:00
Marek Safar afd405b284 Updated.
svn path=/trunk/mcs/; revision=153464
2010-03-11 14:04:31 +00:00
Marek Safar 76d0a53a29 2010-03-11 Marek Safar <[email protected]>
* cs-parser.jay: Disable Location from expression.
	
	* generic.cs: Check constraints for overrides in the parser.


svn path=/trunk/mcs/; revision=153463
2010-03-11 14:04:13 +00:00
Gonzalo Paniagua Javier ae669ce233 remove commented out code
svn path=/trunk/mcs/; revision=153446
2010-03-11 06:07:57 +00:00
Gonzalo Paniagua Javier e7528a2e37 Moved chain building and validation from Mono.Security to System
to better support the 2.0 validation callback.


svn path=/trunk/mcs/; revision=153443
2010-03-11 06:02:08 +00:00
Andrew Jorgensen 8ed486ca3c fix dist, reviewed by vargaz
svn path=/trunk/mono/; revision=153435
2010-03-11 01:06:18 +00:00
Zoltan Varga cd6e00fab3 2010-03-11 Zoltan Varga <[email protected]>
* Path.cs (GetTempFileName): Fix infinite loop if the process doesn't have
	write access to /tmp. Fixes #585017.

svn path=/trunk/mcs/; revision=153433
2010-03-11 00:49:37 +00:00
Martin Baulig f7e748c286 Add NULL check to type_command()/CMD_TYPE_GET_SOURCE_FILES.
2010-03-11  Martin Baulig  <[email protected]>

	* debugger-agent.c (type_commands): Add NULL check to
	`CMD_TYPE_GET_SOURCE_FILES'.

svn path=/trunk/mono/; revision=153431
2010-03-10 23:42:33 +00:00
Sebastien Pouliot 024e8f7cd7 Makefile: For NET_2_1 build System.XML before System.Net
svn path=/trunk/mcs/; revision=153398
2010-03-10 14:05:37 +00:00
Sebastien Pouliot c54a75466f In System/System.Net.Sockets:
2010-03-10  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgs.cs: Remove the use of reflection to check
	xdomain poilicy on sockets (since the policy code now resides in
	System.Net.dll)

In System.Net:
2010-03-10  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_System.Net.dll.sources: Add types from (new internal)
	System.Net.Policy (moved from System.Windows.Browser.dll)
	* Makefile: Add reference to System.Xml.dll to parse policies

In System.Net/System.Net.Policy:
2010-03-10  Sebastien Pouliot  <[email protected]>

	* BaseDomainPolicy.cs, ClientAccessPolicy[Parser].cs, 
	CrossDomainPolicyManager.cs, FlashCrossDomainPolicy[Parser].cs,
	ICrossDomainPolicy.cs, NoAccessPolicy.cs, PolicyDownloadPolicy.cs,
	SiteOfOriginPolicy.cs: Moved from System.Net.dll with namespace 
	and minor build adjustments.


svn path=/trunk/mcs/; revision=153396
2010-03-10 13:19:46 +00:00
Atsushi Eno 1770b033b6 2010-03-10 Atsushi Enomoto <[email protected]>
* XmlAnyElementAttribute.cs : add internal IsNullableSpecified
	  (for moonlight compatibility).
	* XmlChoiceIdentifierAttribute.cs : implement MemberInfo (ditto).


svn path=/trunk/mcs/; revision=153394
2010-03-10 10:32:21 +00:00
Atsushi Eno 6f0cd4a650 2010-03-10 Atsushi Enomoto <[email protected]>
in System.ServiceModel.Web:
	* JavaScriptReader.cs : moved from Sys.Json/JsonReader.cs.

	* net_2_0_System.ServiceModel.Web.dll.sources,
	  net_2_1_raw_System.ServiceModel.Web.dll.sources :
	  move JsonReader.cs as Sys.R.S.Json/JavaScriptReader.cs

in System.Json:
	* JsonReader.cs : moved to Sys.SM.Web/Sys.R.S.Json.

	* System.Json.dll.sources : remove JsonReader.cs.


svn path=/trunk/mcs/; revision=153393
2010-03-10 10:22:36 +00:00
Atsushi Eno 286c255027 2010-03-10 Atsushi Enomoto <[email protected]>
in System.ServiceModel.Web:
	* JavaScriptObjectDeserializer.cs : new internal file, which is
	  used by System.Json (for moonlight compatibility).

	* net_2_0_System.ServiceModel.Web.dll.sources,
	  net_2_1_raw_System.ServiceModel.Web.dll.sources :
	  add JavaScriptObjectDeserializer.cs and JsonReader in Sys.Json
	  (which is to be moved later).

	* AssemblyInfo.cs: added InternalVisibleTo(System.Json). Also added
	  dummy 2.0 for easy testing.

in System.Json:

	* JsonValue.cs : use Sys.SM.Web.dll's JavaScriptObjectDeserializer
	  for silverlight sdk / moonlight compatibility.
	* JsonReader.cs : renamed to JavaScriptReader (for disambiguation in
	  Sys.SM.Web.dll). Now it is native-type based and used by the above
	  deserializer.

	* Makefile : reference System.Xml and System.ServiceModel.Web (for
	  moonlight compatibility).

	* AssemblyInfo.cs : use the same pub key in 2.0 (dummy), to ease
	  testing locally.



svn path=/trunk/mcs/; revision=153392
2010-03-10 10:17:24 +00:00
Atsushi Eno fb01abdaa2 2010-03-10 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializerTest.cs : oops, the test was careless.
	  Use fixed date.


svn path=/trunk/mcs/; revision=153390
2010-03-10 08:29:40 +00:00
Gonzalo Paniagua Javier cf0257d56c 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* DeflateStream.cs: don't call unmanaged code when the byte count
	is 0. Fixes bug #586870.


svn path=/trunk/mcs/; revision=153385
2010-03-10 04:46:25 +00:00
Mark Probst 175c090458 2010-03-10 Mark Probst <[email protected]>
* sgen-gc.c (STRING_SIZE): Semi-revert r153342.  I'm an idiot who
        can't read parentheses.

svn path=/trunk/mono/; revision=153380
2010-03-10 00:22:20 +00:00
Mark Probst 11987b896f 2010-03-10 Mark Probst <[email protected]>
* threads.c (thread_cleanup): Add a guard to dereferencing
        "thread" to avoid an unlikely race condition.

svn path=/trunk/mono/; revision=153379
2010-03-10 00:06:18 +00:00
Zoltan Varga 33b91baea5 Re-add the changelog entry removed by mistake.
svn path=/trunk/mono/; revision=153372
2010-03-09 22:22:53 +00:00
Zoltan Varga 5ee54fffdf 2010-03-09 Zoltan Varga <[email protected]>
* object-internals.h (_G_BOOLEAN_EXPR): Fix the definition of this to explicitly
	convert to a boolean, recent gcc versions compile this differently.

svn path=/trunk/mono/; revision=153371
2010-03-09 22:21:33 +00:00
Zoltan Varga e68ec32140 Fix warnings.
svn path=/trunk/mono/; revision=153370
2010-03-09 22:21:26 +00:00
Sebastien Pouliot 21cc227f1b 2010-03-09 Sebastien Pouliot <[email protected]>
* assembly.c: Fix crash in moon-unit when aname->culture is NULL
	instead of an empty string.


svn path=/trunk/mono/; revision=153349
2010-03-09 20:12:27 +00:00
Zoltan Varga 7d5dad5f37 2010-03-09 Zoltan Varga <[email protected]>
* sgen-gc.c (safe_object_get_size): Avoid a function call so this can really be
	inlined.

svn path=/trunk/mono/; revision=153346
2010-03-09 19:41:10 +00:00
Zoltan Varga 5e60bb4051 2010-03-09 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_decompose_opts): Fix OP_ICONV_TO_R_UN when cross-compiling.

svn path=/trunk/mono/; revision=153345
2010-03-09 19:32:55 +00:00
Zoltan Varga ace4f05cdf 2010-03-09 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_peephole_ins): Fix the OP_FMOVE optimization. Fixes
	#586664.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=153344
2010-03-09 19:32:49 +00:00
Mark Probst 82b85d49fc 2010-03-09 Mark Probst <[email protected]>
* sgen-gc.c (STRING_SIZE): Off by one.

svn path=/trunk/mono/; revision=153342
2010-03-09 19:14:50 +00:00
Martin Baulig 54d872137a Add support for aborting invocations; fixed my commit from Friday, so it doesn't break compatibility.
2010-03-05  Martin Baulig  <[email protected]>

	Add support for aborting invocations.

	* IInvokeAsyncResult.cs: New file.
	(IInvokeAsyncResult): New public interface; derives from
	`IAsyncResult' and contains an Abort() method.

	* Connection.cs
	(Connection.VM_BeginInvokeMethod): Return the `id'.
	(Connection.VM_AbortInvoke): New method.

	* ObjectMirror.cs
	(ObjectMirror.AbortInvoke): New internal static method.

svn path=/trunk/mcs/; revision=153336
2010-03-09 18:30:23 +00:00
Martin Baulig 57b4faae5e Add support for aborting invocations in the Soft Debugger.
2010-03-05  Martin Baulig  <[email protected]>

	Add support for aborting invocations.

	* debugger-agent.c
	(InvokeData): Added `InvokeData *last_invoke'.
	(DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
	added a new `invoke' field to keep the `InvokeData *' throughout
	the invocation.
	(ErrorCode): Added `ERR_NO_INVOCATION'.
	(CmdVM): Added `CMD_VM_ABORT_INVOKE'.
	(mono_debugger_agent_handle_exception): Don't report any exception
	if an abort was requested.
	(invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
	a thread abort if necessary.
	(vm_commands): Implement `CMD_VM_ABORT_INVOKE'.

svn path=/trunk/mono/; revision=153335
2010-03-09 18:30:10 +00:00
Mark Probst 1fdf40857b 2010-03-09 Mark Probst <[email protected]>
* sgen-archdep.h: Fix the signal context register access for
        AMD64.

svn path=/trunk/mono/; revision=153332
2010-03-09 18:09:10 +00:00
Chris Toshok cb03263155 fix build
svn path=/trunk/mcs/; revision=153331
2010-03-09 17:24:07 +00:00
Atsushi Eno 2e11b2e4fa 2010-03-09 Atsushi Enomoto <[email protected]>
* JsonSerializationWriter.cs, JsonSerializationReader.cs,
	  JsonWriter.cs : Fix DateTime serialization and "\/" string escape
	  issues. Fixed bug #586169.

	* DataContractJsonSerializerTest.cs : add test for bug #586169.
	* JsonWriterTest.cs : add standalone write case for "\/".


svn path=/trunk/mcs/; revision=153318
2010-03-09 11:21:24 +00:00
Marek Safar 2eee2c50ac 2010-03-09 Marek Safar <[email protected]>
* cs-parser.jay (GetLocation): Use an expression when available.


svn path=/trunk/mcs/; revision=153314
2010-03-09 10:31:12 +00:00
Atsushi Eno bc2a4d1e92 2010-03-09 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : For ASP.NET, use correct GenericIdentity
	  type, and use null password unless we find a chance to get password
	  in ASP.NET HttpContext.


svn path=/trunk/mcs/; revision=153310
2010-03-09 08:01:46 +00:00
Gonzalo Paniagua Javier 8df3b9fd32 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: set the right position when a CR is found.
	Fixes bug #577891.


svn path=/trunk/mcs/; revision=153309
2010-03-09 07:45:32 +00:00
Gonzalo Paniagua Javier 41ebfcc7e6 add realm from HttpListener
svn path=/trunk/mcs/; revision=153302
2010-03-09 06:34:44 +00:00
Gonzalo Paniagua Javier cddd78ded6 2010-03-09 Gonzalo Paniagua Javier <[email protected]>
* HttpListener.cs:
	* HttpListenerRequest.cs:
	* ListenerAsyncResult.cs:
	* HttpConnection.cs: make sure there is no pending input when reusing
	the connection.


svn path=/trunk/mcs/; revision=153300
2010-03-09 06:05:10 +00:00
Geoff Norton 8ec666785c revert this
svn path=/trunk/mcs/; revision=153299
2010-03-09 06:01:50 +00:00
Atsushi Eno 1c94cbb90a 2010-03-09 Atsushi Enomoto <[email protected]>
* HttpTransportSecurity.cs : remove MonoTODOs.

	* XmlDictionaryReaderQuotasElement.cs : add ApplyConfiguration().
	* BasicHttpBindingElement.cs : apply transport security part.
	  Use ReaderQuotas.ApplyConfiguration() for better config application.
	* HttpTransportSecurityElement.cs :
	  Add utility config method. Fix enum default values.


svn path=/trunk/mcs/; revision=153298
2010-03-09 05:58:03 +00:00
Carlos Alberto Cortez 8da6c3158d * TimeSpan.cs: Implement 4.0 overloads of TryParse/Parse.
2010-03-08  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=153297
2010-03-09 03:26:28 +00:00
Carlos Alberto Cortez aa5dedab7e 2010-03-08 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: New tests for the 4.0 ToString overloads.


svn path=/trunk/mcs/; revision=153294
2010-03-09 02:09:05 +00:00
Carlos Alberto Cortez f942d6f112 2010-03-08 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Implement 4.0 ToString overloads.


svn path=/trunk/mcs/; revision=153293
2010-03-09 02:07:30 +00:00
Zoltan Varga 57f8ad7e99 2010-03-09 Zoltan Varga <[email protected]>
* include/private/gc_locks.h: Fix amd64 build with newer gcc's.

svn path=/trunk/mono/; revision=153291
2010-03-09 00:40:06 +00:00
Zoltan Varga c46c440e03 2010-03-09 Zoltan Varga <[email protected]>
* sgen-gray.c: Get rid of the unused 'start' field in GrayQueueSection.

svn path=/trunk/mono/; revision=153290
2010-03-09 00:10:58 +00:00
Gonzalo Paniagua Javier 66e45946fd 2010-03-08 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerContext.cs: split the auth header in 2 parts.
	* HttpListener.cs: backported SelectAuthenticationScheme and
	added new InternalEndGetContext used for connections that require
	authentication.
	* ListenerAsyncResult.cs: allow this object to be just a forwarder
	when nesting connections for authentication purposes.
	Fixes bug #585455.


svn path=/trunk/mcs/; revision=153288
2010-03-08 21:55:46 +00:00
Rodrigo Kumpera 31d683b144 2010-03-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Store the initial basic block returned by
	* mono_basic_block_split
	so we can release the whole list and not just the first one.
	Free it in more places as well.

svn path=/trunk/mono/; revision=153282
2010-03-08 20:53:08 +00:00
Rodrigo Kumpera cc389e5d20 2010-03-08 Rodrigo Kumpera <[email protected]>
* verify.c: Store the initial basic block returned by
	* mono_basic_block_split
	so we can release the whole list and not just the first one.

svn path=/trunk/mono/; revision=153281
2010-03-08 20:53:00 +00:00
Rodrigo Kumpera 60df94fee0 2010-03-08 Rodrigo Kumpera <[email protected]>
* mono.supp: Add hazard pointers supressions.

svn path=/trunk/mono/; revision=153280
2010-03-08 20:52:52 +00:00
Miguel de Icaza 0396eb0912 This too
svn path=/trunk/mcs/; revision=153278
2010-03-08 20:04:33 +00:00
Miguel de Icaza 62742f1132 removed this too
svn path=/trunk/mcs/; revision=153277
2010-03-08 20:03:00 +00:00
Jérémie Laval 3b38ebe651 2010-03-08 Jérémie Laval <[email protected]>
In class/corlib/System.Threading/:
   * SpinLock.cs: Merge algorithm back in SpinLock struct

svn path=/trunk/mcs/; revision=153276
2010-03-08 18:35:17 +00:00
Rodrigo Kumpera 0df4b92b21 2010-03-08 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Revert r153222 as it doesn't belong here.

svn path=/trunk/mono/; revision=153274
2010-03-08 17:45:06 +00:00
Jérémie Laval 487198f1de 2010-03-08 Jérémie Laval <[email protected]>
In class/corlib/:
   * corlib_test.dll.sources: Add System.Threading/SpinLockTests.cs

In class/corlib/System.Threading/:
   * SpinLock.cs: Update to use ticket spinlock algorithm

In class/corlib/Test/System.Threading/:
   * SpinLockTests.cs: Added unit tests for SpinLock

svn path=/trunk/mcs/; revision=153273
2010-03-08 17:21:05 +00:00
Paolo Molaro f9467fdbd0 Mon Mar 8 17:58:26 CET 2010 Paolo Molaro <[email protected]>
* mini.h, *.c: prepare for MonoMethodHeader to become a transient entity.


svn path=/trunk/mono/; revision=153270
2010-03-08 16:59:39 +00:00
Paolo Molaro 29cc878ab3 Mon Mar 8 17:35:26 CET 2010 Paolo Molaro <[email protected]>
* driver.c: report also other misc build options.


svn path=/trunk/mono/; revision=153267
2010-03-08 16:50:02 +00:00
Paolo Molaro 65be41e445 Mon Mar 8 17:30:44 CET 2010 Paolo Molaro <[email protected]>
* verify.c, debug-helpers.c, profiler.c, loader.c,
	mono-basic-block.c, mono-debug.c, reflection.c: prepare to make
	MonoMethodHeader a transient entity.


svn path=/trunk/mono/; revision=153265
2010-03-08 16:34:01 +00:00
Zoltan Varga d58fd168b0 2010-03-08 Zoltan Varga <[email protected]>
* sgen-gc.c (scan_needed_big_objects): Call drain_gray_stack () to avoid
	uncontrolled growth of the gray stack.

	* sgen-gray.c: Rewrite this so it behaves like a stack, not a queue, so recently
	added items are removed first, improving cache locality. Avoid freeing queue
	segments in the fast path, use the list of segments as the free list, truncate
	it to its max size at the start of collection.

svn path=/trunk/mono/; revision=153264
2010-03-08 16:32:10 +00:00
Zoltan Varga 80888add82 2010-03-08 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix the handling of loader errors in
	the delegate ctor optimization when using sgen.

svn path=/trunk/mono/; revision=153263
2010-03-08 16:31:33 +00:00
Zoltan Varga 46b2a88aa0 Revert "2010-03-06 Zoltan Varga <[email protected]>"
This reverts commit 4166ce286e8133828521b62d654d8d08ca62e6aa.

Revert this too as the corresponding fix was reverted.

svn path=/trunk/mono/; revision=153256
2010-03-08 16:06:55 +00:00
Zoltan Varga ccb6dff053 Revert "2010-03-06 Zoltan Varga <[email protected]>"
This reverts commit 8e7bbca7b9258e3622192f30b13475bc2a0fb52b.

svn path=/trunk/mono/; revision=153255
2010-03-08 16:02:45 +00:00
Atsushi Eno 95aee05170 2010-03-08 Atsushi Enomoto <[email protected]>
* XmlSerializationWriter.cs : namespaces argument could be null.
	  MS generated serializers often pass null here.


svn path=/trunk/mcs/; revision=153250
2010-03-08 12:42:52 +00:00
Atsushi Eno 405f63535b 2010-03-08 Atsushi Enomoto <[email protected]>
* X509RecipientCertificateServiceElement.cs : remove extra FIXMEs.
	* ServiceCredentialsElement.cs : implement CreateBehavior().

	* IssuedTokenServiceCredential.cs : add missing members.


svn path=/trunk/mcs/; revision=153247
2010-03-08 11:36:00 +00:00
Atsushi Eno 0b21cbe881 2010-03-08 Atsushi Enomoto <[email protected]>
* TypeElementCollection.cs : more corcompare fixes.


svn path=/trunk/mcs/; revision=153238
2010-03-08 10:06:56 +00:00
Paolo Molaro 58073424a9 Mon Mar 8 10:13:52 CET 2010 Paolo Molaro <[email protected]>
* metadata-internals.h: more memory savings, both with small config and without.


svn path=/trunk/mono/; revision=153235
2010-03-08 09:31:12 +00:00
Paolo Molaro d3430a826f Mon Mar 8 10:13:52 CET 2010 Paolo Molaro <[email protected]>
* metadata.h: more space savings, both with small config and without.


svn path=/trunk/mono/; revision=153234
2010-03-08 09:14:44 +00:00
Rodrigo Kumpera 2dc6b499cb 2010-03-07 Rodrigo Kumpera <[email protected]>
* MethodInfo.cs: New v4 stuff.

svn path=/trunk/mcs/; revision=153230
2010-03-08 04:30:59 +00:00
Rodrigo Kumpera d94a577b7a 2010-03-07 Rodrigo Kumpera <[email protected]>
* ManifestResourceInfo.cs> Ne v4 .ctor.

svn path=/trunk/mcs/; revision=153229
2010-03-08 04:30:50 +00:00
Rodrigo Kumpera c7bb1f3973 2010-03-07 Rodrigo Kumpera <[email protected]>
* Debugger.cs: Add Obsolete attribute to .ctor().

svn path=/trunk/mcs/; revision=153227
2010-03-08 04:05:59 +00:00
Rodrigo Kumpera 34203aadb8 2010-03-07 Rodrigo Kumpera <[email protected]>
* Runtime.cs: Document how NewObject() is meant to be used.

svn path=/trunk/mcs/; revision=153224
2010-03-07 20:29:00 +00:00
Rodrigo Kumpera 1dcbb979a7 2010-03-06 Rodrigo Kumpera <[email protected]>
* UIntPtr.cs: Remove some v4 custom attributes that were
	on Beta2 but aren't there on RC.

svn path=/trunk/mcs/; revision=153223
2010-03-07 20:28:51 +00:00
Rodrigo Kumpera 252492cc8a 2010-03-06 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: Generate better code for the NewObject
	intrinsic.

svn path=/trunk/mono/; revision=153222
2010-03-07 20:18:02 +00:00
Zoltan Varga d112e647c0 2010-03-07 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Disable one of the cases when deadce
	is disabled. Fixes #582322.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=153219
2010-03-07 19:26:55 +00:00
Rodrigo Kumpera c769706386 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for decimal stuff.

svn path=/trunk/mcs/; revision=153216
2010-03-07 00:09:31 +00:00
Rodrigo Kumpera b480a743b2 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Simply Parse/TryParse.

svn path=/trunk/mcs/; revision=153215
2010-03-07 00:09:22 +00:00
Rodrigo Kumpera 9253128c3b 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for decimal stuff.

svn path=/trunk/mcs/; revision=153214
2010-03-07 00:09:14 +00:00
Rodrigo Kumpera e9bc58fd47 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Add decimal operators/ctor.

svn path=/trunk/mcs/; revision=153213
2010-03-07 00:09:05 +00:00
Rodrigo Kumpera 54400da9e1 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Float/double coersion operators.

svn path=/trunk/mcs/; revision=153212
2010-03-07 00:08:54 +00:00
Marek Habersack ea68682bed oops
svn path=/trunk/mcs/; revision=153211
2010-03-06 22:47:44 +00:00
Gonzalo Paniagua Javier 9fa5d15880 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* processes.c: made ShellExecuteEx actually work when the file name to
	execute is quoted. Display a message intead of blindly ignoring the
	result of g_shell_parse_argv(). Fixes bug #385497.


svn path=/trunk/mono/; revision=153208
2010-03-06 21:36:54 +00:00
Rodrigo Kumpera 654dfa2528 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for remaining ToString
	overloads

svn path=/trunk/mcs/; revision=153207
2010-03-06 20:45:54 +00:00
Rodrigo Kumpera 1d61fe35a1 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Remaining ToString overloads.

svn path=/trunk/mcs/; revision=153206
2010-03-06 20:45:45 +00:00
Rodrigo Kumpera 2a44b353d2 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for ToString and
	ToString(string).

svn path=/trunk/mcs/; revision=153205
2010-03-06 20:45:37 +00:00
Rodrigo Kumpera e9612cb348 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: double and float coersion ops.
	ToString() and ToString(string).

svn path=/trunk/mcs/; revision=153204
2010-03-06 20:45:29 +00:00
Rodrigo Kumpera 292e944fe2 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for .ctor(double).

svn path=/trunk/mcs/; revision=153203
2010-03-06 20:45:20 +00:00
Rodrigo Kumpera 133b8b75b7 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: .ctor(double) and .ctor(float).

svn path=/trunk/mcs/; revision=153202
2010-03-06 20:45:12 +00:00
Zoltan Varga 4269239ca0 2010-03-06 Zoltan Varga <[email protected]>
* synchronized.cs: Add tests for not locked monitors.

svn path=/trunk/mono/; revision=153198
2010-03-06 19:10:59 +00:00
Zoltan Varga b1a0bb1290 2010-03-06 Zoltan Varga <[email protected]>
* monitor.c (mono_monitor_exit): Raise an exception if the object is not locked,
	MS does this from net 2.0 onwards.

svn path=/trunk/mono/; revision=153197
2010-03-06 19:10:52 +00:00
Zoltan Varga d79907f24c 2010-03-06 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_monitor_exit_trampoline_full): Delegate
	the handling of obj->synchronization == null and owner != current thread to
	mono_monitor_exit ().

svn path=/trunk/mono/; revision=153196
2010-03-06 19:10:46 +00:00
Carlos Alberto Cortez d0cd2e6efc 2010-03-06 Carlos Alberto Cortez <[email protected]>
* TimeSpanTest.cs: 'Port' our Parse assertions to also use TryParse.


svn path=/trunk/mcs/; revision=153195
2010-03-06 19:00:57 +00:00
Paolo Molaro ee22611dad Sat Mar 6 19:12:12 CET 2010 Paolo Molaro <[email protected]>
* appdomain.c, domain-internals.h, domain.c, object.c:
	make class_vtable_hash into an array to reduce memory usage.


svn path=/trunk/mono/; revision=153194
2010-03-06 18:17:59 +00:00
Rodrigo Kumpera 73298c9491 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Log.

svn path=/trunk/mcs/; revision=153193
2010-03-06 17:35:15 +00:00
Rodrigo Kumpera 6e52bf1b8b 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Log.

svn path=/trunk/mcs/; revision=153192
2010-03-06 17:35:06 +00:00
Rodrigo Kumpera d370edbd2d 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for GreatestCommonDivisor.

svn path=/trunk/mcs/; revision=153191
2010-03-06 17:34:58 +00:00
Rodrigo Kumpera fdeb697cde 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: GreatestCommonDivisor.

svn path=/trunk/mcs/; revision=153190
2010-03-06 17:34:50 +00:00
Rodrigo Kumpera 93c2e51b55 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for ModPow.

svn path=/trunk/mcs/; revision=153189
2010-03-06 17:34:41 +00:00
Rodrigo Kumpera 90a4818c4e 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: ModPow.

svn path=/trunk/mcs/; revision=153188
2010-03-06 17:34:33 +00:00
Rodrigo Kumpera 1e65f4094e 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Pow.

svn path=/trunk/mcs/; revision=153187
2010-03-06 17:34:25 +00:00
Rodrigo Kumpera da90218bf9 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: / % Pow.

svn path=/trunk/mcs/; revision=153186
2010-03-06 17:34:16 +00:00
Paolo Molaro d3b31a0ae6 Sat Mar 6 18:16:35 CET 2010 Paolo Molaro <[email protected]>
* mempool.c, class-internals.h, class.c, icall.c, metadata.c,
	object-internals.h, object.c, reflection.c, threadpool.c:
	reduce resource usage when the small config is selected.
	In particular, up to 64K of methods/fields/properties/events
	are allowed and "other" methods in events are ignored.


svn path=/trunk/mono/; revision=153185
2010-03-06 17:33:17 +00:00
Paolo Molaro 860791e1e0 Sat Mar 6 18:14:15 CET 2010 Paolo Molaro <[email protected]>
* mini.c: change the way emulated opcode info is stored and save about
	4 KB of runtime memory.


svn path=/trunk/mono/; revision=153184
2010-03-06 17:15:21 +00:00
Gonzalo Paniagua Javier 80db348b3c 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: typo in reply-to header. Thanks to Chris Tomlinson.
	Fixes bug #578271.


svn path=/trunk/mcs/; revision=153183
2010-03-06 16:40:23 +00:00
Gonzalo Paniagua Javier cff198e18c 2010-03-06 Gonzalo Paniagua Javier <[email protected]>
* WebClient.cs: fix for UploadStringAsync(). Closes bug #577818.
	Patch by Atsushi.


svn path=/trunk/mcs/; revision=153180
2010-03-06 16:30:33 +00:00
Rodrigo Kumpera c7f01922d6 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for DivRem.

svn path=/trunk/mcs/; revision=153178
2010-03-06 15:41:18 +00:00
Rodrigo Kumpera b730d3ea0a 2010-03-06 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: DivRem.

svn path=/trunk/mcs/; revision=153177
2010-03-06 15:41:10 +00:00
Rodrigo Kumpera b07f3c2378 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Simplify Mul.

svn path=/trunk/mcs/; revision=153176
2010-03-06 15:41:02 +00:00
Rodrigo Kumpera 6eeb8bfbac 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Mul.

svn path=/trunk/mcs/; revision=153175
2010-03-06 15:40:54 +00:00
Rodrigo Kumpera d63d699812 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Mul.

svn path=/trunk/mcs/; revision=153174
2010-03-06 15:40:38 +00:00
Marek Habersack c6c642eec3 commit 9405fa168b1255c51bb31ef17511c05593b08caa
Author: Marek Habersack <[email protected]>
Date:   Sat Mar 6 03:37:53 2010 +0100

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

    	* CompilerCollection.cs: in the 4.0 profile, the latest C#
    	standard is the compiler's default.

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

    	* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
    	standard is the default one.

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

    	* RequestValidatorTestGenerated.cs: added

    	* RequestValidator.cs: added

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

    	* TestWorkerRequest.cs: added overloads of GetRawUrl and
    	GetUriPath which make sure that the returned paths do not contain
    	more than one leading / character.

    	* TestRunItem.cs: added new TestRunData property - to contain
    	per-appdomain test run data.

    	* TestCallback.cs: added a TestRunItem parameter.

    	* StandaloneTest.cs: runner object is created for each test item
    	now.
    	Added test progress feedback.

    	* ITestRunner.cs: added two properties, TestRunData - to return
    	collected test result data, if any, and Domain which returns the
    	current AppDomain.

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

    	* RequestValidatorTest.cs: added

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

    	* HttpRequest.cs: cache RawUrl value.
    	Added new internal property, PathNoValidation, which returns
    	request path without validating it.
    	Implemented 4.0 extensible validation.

    	* HttpApplication.cs: Pipeline () validates the request path, if
    	new validation mode is enabled, before doing anything else.
    	Added a generic LoadType overload which checks whether the loaded
    	type, if any, derives from the type specified in the method's
    	specialization.

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

    	* RequestValidator.cs: added

    	* RequestValidationSource.cs: added

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

    	* WebConfigurationManager.cs: do not use Request.Path - it may
    	fail because of invalid web.config file, use
    	Request.PathNoValidation instead.

    	* VersionConverter.cs: added

    	* PropertyHelper.cs: added a Version converter helper.

    	* HttpRuntimeSection.cs: added 4.0 properties -
    	RequestPathInvalidCharacters, RequestValidationType and
    	RequestValidationMode.

svn path=/trunk/mcs/; revision=153172
2010-03-06 02:48:31 +00:00
Marek Habersack 1d812d1476 2010-03-06 Marek Habersack <[email protected]>
* HttpUtility.cs: decode entities which use hexadecimal
	encoding. Fixes bug #585992. Patch from Sebastien Morin
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=153169
2010-03-06 02:19:39 +00:00
Marek Habersack f74cf1f825 2010-03-06 Marek Habersack <[email protected]>
* XmlDataSource.cs: reload document when one of Data, DataFile,
	Transform or TransformFile properties is set. Fixes bug
	#585968. Fix based on patch from Jeffrey Alvarez
	<[email protected]>, thanks.

svn path=/trunk/mcs/; revision=153167
2010-03-06 01:52:15 +00:00
Marek Habersack 2e5d3c0fb4 2010-03-06 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: AssignPropertyForResources localizes
	a property even if the Localized attribute is absent. If the
	attribute is present, it checks its IsLocalizable property to
	decide if localization should be performed. Fixes bug #585933

svn path=/trunk/mcs/; revision=153164
2010-03-06 00:28:52 +00:00
Rodrigo Kumpera 130b9c8007 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for coersion operators
	for short.

svn path=/trunk/mcs/; revision=153163
2010-03-06 00:24:44 +00:00
Rodrigo Kumpera eaba7d4270 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: coersion operators for short, ushort,
	byte and sbyte.

svn path=/trunk/mcs/; revision=153162
2010-03-06 00:24:35 +00:00
Rodrigo Kumpera 712d0ccf65 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for << >>.

svn path=/trunk/mcs/; revision=153159
2010-03-05 23:44:44 +00:00
Rodrigo Kumpera 2bfb89398c 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: <<, >>.

svn path=/trunk/mcs/; revision=153158
2010-03-05 23:44:36 +00:00
Rodrigo Kumpera 7228b351bd 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for | & ^ ~.

svn path=/trunk/mcs/; revision=153157
2010-03-05 23:44:28 +00:00
Rodrigo Kumpera 546acd9654 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: | & ^ ~.

svn path=/trunk/mcs/; revision=153156
2010-03-05 23:44:20 +00:00
Rodrigo Kumpera 0689c58066 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for ++, --.

svn path=/trunk/mcs/; revision=153155
2010-03-05 23:44:11 +00:00
Rodrigo Kumpera 5ab4b0ecc5 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: ++ --, unary +.

svn path=/trunk/mcs/; revision=153154
2010-03-05 23:44:03 +00:00
Rodrigo Kumpera 0b2790f7fa 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Abs.

svn path=/trunk/mcs/; revision=153153
2010-03-05 23:43:55 +00:00
Rodrigo Kumpera d888fe755c 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Abs.

svn path=/trunk/mcs/; revision=153152
2010-03-05 23:43:46 +00:00
Rodrigo Kumpera a922b71189 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Min, Max.

svn path=/trunk/mcs/; revision=153151
2010-03-05 23:43:38 +00:00
Rodrigo Kumpera f027760cc6 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Min, Max.

svn path=/trunk/mcs/; revision=153150
2010-03-05 23:43:30 +00:00
Rodrigo Kumpera 6104afd4a4 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Negate.

svn path=/trunk/mcs/; revision=153149
2010-03-05 23:43:21 +00:00
Rodrigo Kumpera 5600acd2fa 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Negate.

svn path=/trunk/mcs/; revision=153148
2010-03-05 23:43:13 +00:00
Rodrigo Kumpera e98c0257a5 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Sub.

svn path=/trunk/mcs/; revision=153147
2010-03-05 23:43:05 +00:00
Rodrigo Kumpera 92e6275cfb 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Sub.

svn path=/trunk/mcs/; revision=153146
2010-03-05 23:42:56 +00:00
Rodrigo Kumpera 4918c57199 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: All relational ops for long.

svn path=/trunk/mcs/; revision=153145
2010-03-05 23:42:48 +00:00
Rodrigo Kumpera 37591631c7 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: No need to special case  long.MinValue
	or int.MinValue as 2 complement negate solves it.

svn path=/trunk/mcs/; revision=153144
2010-03-05 23:42:40 +00:00
Rodrigo Kumpera 7ff29c62c8 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for long CompareTo.

svn path=/trunk/mcs/; revision=153143
2010-03-05 23:42:32 +00:00
Rodrigo Kumpera 64567fc8de 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: long CompareTo.

svn path=/trunk/mcs/; revision=153142
2010-03-05 23:42:23 +00:00
Rodrigo Kumpera e59bee15ce 2010-03-05 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for IComparable.

svn path=/trunk/mcs/; revision=153141
2010-03-05 23:42:15 +00:00
Rodrigo Kumpera ed865248e1 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: IComparable.

svn path=/trunk/mcs/; revision=153140
2010-03-05 23:42:07 +00:00
Zoltan Varga 43fbbe36d6 2010-03-05 Zoltan Varga <[email protected]>
* shared.c (shm_semaphores_init): Applied patch from Cal Page
	([email protected]). Fix support for USE_SHM.

svn path=/trunk/mono/; revision=153132
2010-03-05 18:46:07 +00:00
Paolo Molaro 30aa698de1 Fri Mar 5 19:05:47 CET 2010 Paolo Molaro <[email protected]>
* threads.c: reduce resource usage when compiled for a small config.


svn path=/trunk/mono/; revision=153130
2010-03-05 18:06:56 +00:00
Geoff Norton 422c6afb28 Revert "Add support for aborting invocations."
This reverts commit ed8f8e1528d57f070302b14d916985a920952c8e.

svn path=/trunk/mcs/; revision=153129
2010-03-05 18:01:59 +00:00
Geoff Norton d1a0a37a46 Revert "Add support for aborting invocations in the Soft Debugger."
This reverts commit 2055f92948614a53947a9467274deed8d4ff3be4.

svn path=/trunk/mono/; revision=153128
2010-03-05 18:01:55 +00:00
Paolo Molaro 27bd00a8a8 Fri Mar 5 18:58:15 CET 2010 Paolo Molaro <[email protected]>
* configure.in: introduce the --enable-small-config option
	to reduce runtime requirements (and capabilities).


svn path=/trunk/mono/; revision=153127
2010-03-05 17:59:41 +00:00
Martin Baulig 2d1ead2cc8 Add support for aborting invocations.
2010-03-05  Martin Baulig  <[email protected]>

	Add support for aborting invocations.

	* IInvokeAsyncResult.cs: New file.
	(IInvokeAsyncResult): New public interface; derives from
	`IAsyncResult' and contains an Abort() method.

	* Connection.cs
	(Connection.VM_BeginInvokeMethod): Return the `id'.
	(Connection.VM_AbortInvoke): New method.

	* ObjectMirror.cs
	(ObjectMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
	instead of `IAsyncResult'.  Connection.VM_BeginInvokeMethod() now
	returns its id, store it in `InvokeAsyncResult.ID' because we need
	to pass it to VM_AbortInvoke().
	(ObjectMirror.AbortInvoke): New internal static method.

	* StructMirror.cs
	(StructMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
	instead of `IAsyncResult'.

	* TypeMirror.cs
	(TypeMirror.BeginInvokeMethod): Return `IInvokeAsyncResult'
	instead of `IAsyncResult'.

svn path=/trunk/mcs/; revision=153125
2010-03-05 17:49:21 +00:00
Martin Baulig 70f082f2f8 Add support for aborting invocations in the Soft Debugger.
2010-03-05  Martin Baulig  <[email protected]>

	Add support for aborting invocations.

	* debugger-agent.c
	(InvokeData): Added `InvokeData *last_invoke'.
	(DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
	added a new `invoke' field to keep the `InvokeData *' throughout
	the invocation.
	(ErrorCode): Added `ERR_NO_INVOCATION'.
	(CmdVM): Added `CMD_VM_ABORT_INVOKE'.
	(mono_debugger_agent_handle_exception): Don't report any exception
	if an abort was requested.
	(invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
	a thread abort if necessary.
	(vm_commands): Implement `CMD_VM_ABORT_INVOKE'.

svn path=/trunk/mono/; revision=153124
2010-03-05 17:49:03 +00:00
Jb Evain efe99cb05f fix marking of types in custom attributes
svn path=/trunk/mcs/; revision=153123
2010-03-05 17:17:06 +00:00
Carlos Alberto Cortez 7b4bd7ddac 2010-03-05 Carlos Alberto Cortez <[email protected]>
* TimeSpan.cs: Implement correctly the TryParse method, instead of
	using a try/catch block.


svn path=/trunk/mcs/; revision=153121
2010-03-05 16:10:39 +00:00
Martin Baulig 9708cb053f Fix non-4.0 build.
svn path=/trunk/mono/; revision=153120
2010-03-05 16:08:00 +00:00
Zoltan Varga 3e035004df In libgc/:
2010-03-04  David S. Miller  <[email protected]>

       * include/private/gc_locks.h: Add SPARC implementations of
       GC_compare_and_exchange and GC_memory_barrier.

In mono/mini/:

2010-03-04  David S. Miller  <[email protected]>

       * mini-sparc.h: Always use MONO_ARCH_USE_SIGACTION.  Linux kernels
       that don't provide the siginfo in the second signal handler argument
       are buggy, and this has been fixed for years.
       * mini.h (GET_CONTEXT): Remove __sparc__ special case.
       (SIG_HANDLER_SIGNATURE, SIG_HANDLER_PARMS): Likewise.

svn path=/trunk/mono/; revision=153114
2010-03-05 14:22:32 +00:00
Geoff Norton 627894f7c1 fix signature
svn path=/trunk/mcs/; revision=153108
2010-03-05 14:07:09 +00:00
Robert Jordan f4a346fd94 2010-03-05 Robert Jordan <[email protected]>
* remoting4.cs: Add test for bug #504886.


svn path=/trunk/mono/; revision=153106
2010-03-05 13:23:44 +00:00
Robert Jordan 9eb4a2cd77 2010-03-05 Robert Jordan <[email protected]>
* ObjRef.cs (GetRealObject): Revert previous patch as it doesn't
	cope well with CAD remoting, which doesn't flag well-known types.


svn path=/trunk/mcs/; revision=153105
2010-03-05 13:09:51 +00:00
Marek Habersack 99ccc237d7 monodoc.dll is built in the 2.0 profile, so that it can be consumed by MonoDevelop
svn path=/trunk/mcs/; revision=153098
2010-03-05 09:31:29 +00:00
Marek Habersack b4248a64eb This should be in net_2_0_dirs
svn path=/trunk/mcs/; revision=153097
2010-03-05 09:11:07 +00:00
Miguel de Icaza 30371b41b4 Fix this
svn path=/trunk/mono/; revision=153084
2010-03-05 04:55:35 +00:00
Rodrigo Kumpera 7babffb1fd 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for ulong relational ops with
	switched arguments.

svn path=/trunk/mcs/; revision=153082
2010-03-05 04:06:19 +00:00
Rodrigo Kumpera b64d634098 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Relational ops for ulong with switched args.

svn path=/trunk/mcs/; revision=153081
2010-03-05 04:06:10 +00:00
Rodrigo Kumpera 13392cc159 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Equals(ulong) and missing CLSCompliant.

svn path=/trunk/mcs/; revision=153080
2010-03-05 04:06:01 +00:00
Rodrigo Kumpera cf37814725 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for ulong Compare and relational ops.

svn path=/trunk/mcs/; revision=153079
2010-03-05 03:33:45 +00:00
Rodrigo Kumpera b727939832 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Relational ops for ulong. Fix CoreCompare.

svn path=/trunk/mcs/; revision=153078
2010-03-05 03:33:35 +00:00
Rodrigo Kumpera bbc1e70f2d 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Add constructor and coersion operators
	for ulong.

svn path=/trunk/mcs/; revision=153077
2010-03-05 03:33:26 +00:00
Rodrigo Kumpera 89e0288fd4 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Add constructor and coersion operators
	for uint.

svn path=/trunk/mcs/; revision=153076
2010-03-05 03:33:17 +00:00
Rodrigo Kumpera b07fea090d 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Implement -1,0,1 props. Don't allocate
	zero array.

svn path=/trunk/mcs/; revision=153075
2010-03-05 03:33:09 +00:00
Rodrigo Kumpera 24ed4e9ea7 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Implement IComparable and IEquatable.

svn path=/trunk/mcs/; revision=153074
2010-03-05 03:33:00 +00:00
Geoff Norton b58dcdb9c7 fix windows build
svn path=/trunk/mono/; revision=153073
2010-03-05 03:22:32 +00:00
Rodrigo Kumpera 8136b0915d 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigIntegerTest.cs: Tests for Compare and relational ops.

svn path=/trunk/mcs/; revision=153072
2010-03-05 02:42:40 +00:00
Rodrigo Kumpera 9a0ca21537 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Compare and relational ops.

svn path=/trunk/mcs/; revision=153071
2010-03-05 02:42:32 +00:00
Rodrigo Kumpera 4846910092 2010-03-04 Rodrigo Kumpera <[email protected]>
*BigIntegerTest.cs: Tests for Add.

svn path=/trunk/mcs/; revision=153070
2010-03-05 02:42:24 +00:00
Rodrigo Kumpera 0ccd81235e 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Add.

svn path=/trunk/mcs/; revision=153069
2010-03-05 02:42:15 +00:00
Rodrigo Kumpera 6becc82ea2 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: GetHashCode.

svn path=/trunk/mcs/; revision=153068
2010-03-05 02:42:07 +00:00
Rodrigo Kumpera 390dcc9ec0 2010-03-04 Rodrigo Kumpera <[email protected]>
*BigIntegerTest.cs: Tests for Equals.

svn path=/trunk/mcs/; revision=153067
2010-03-05 02:41:59 +00:00
Rodrigo Kumpera 2cdaa62533 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Equals.

svn path=/trunk/mcs/; revision=153066
2010-03-05 02:41:50 +00:00
Rodrigo Kumpera e4d2fbf534 2010-03-04 Rodrigo Kumpera <[email protected]>
* BigInteger.cs: Added implicit long operator.

svn path=/trunk/mcs/; revision=153065
2010-03-05 02:41:42 +00:00
Rodrigo Kumpera 0871a23afd 2010-03-04 Rodrigo Kumpera <[email protected]>
*BigIntegerTest.cs: Tests for long constructor and coersion operator.

svn path=/trunk/mcs/; revision=153064
2010-03-05 02:41:34 +00:00
Rodrigo Kumpera 93c88f8f21 2010-03-04 Rodrigo Kumpera <[email protected]>
*BigInteger.cs: Added long constructor and coersion operator.

svn path=/trunk/mcs/; revision=153063
2010-03-05 02:41:25 +00:00
Rodrigo Kumpera 7466ecefcf 2010-03-04 Rodrigo Kumpera <[email protected]>
*BigIntegerTest.cs: Added.

svn path=/trunk/mcs/; revision=153062
2010-03-05 02:41:17 +00:00
Rodrigo Kumpera f335fc6ffa 2010-03-04 Rodrigo Kumpera <[email protected]>
*BigInteger.cs: The DLR version is close to useless. Replaced
	by the initial bits of something that is API compliant.

svn path=/trunk/mcs/; revision=153061
2010-03-05 02:41:08 +00:00
Mark Probst 9520072201 2010-03-05 Mark Probst <[email protected]>
* sgen-gc.c: Also collect number of degraded-alloced objects with
        heavy statistics.

svn path=/trunk/mono/; revision=153060
2010-03-05 01:58:50 +00:00
Zoltan Varga 1b9757cc84 2010-03-05 Zoltan Varga <[email protected]>
* test/test.c (_GNU_SOURCE): Fix compilation if _GNU_SOURCE is already defined.

svn path=/trunk/mono/; revision=153059
2010-03-05 01:53:30 +00:00
Geoff Norton f4175ae9c8 2010-03-04 Geoff Norton <[email protected]>
* assembly.c: Only support OSX bundling if the bundle is
	actually detectable.

svn path=/trunk/mono/; revision=153057
2010-03-04 22:57:54 +00:00
Geoff Norton 3bd402b498 More GetOptions removal
svn path=/trunk/mcs/; revision=153055
2010-03-04 22:42:49 +00:00
Jonathan Pobst 4b49568943 Track libraries removed from trunk for MonkeyBuilder.
svn path=/trunk/mono/; revision=153054
2010-03-04 22:36:26 +00:00
Jonathan Pryor edc5f9ce81 Fix timestamp.
svn path=/trunk/mcs/; revision=153051
2010-03-04 22:14:53 +00:00
Geoff Norton ca6e4b1466 2010-03-04 Geoff Norton <[email protected]>
* loader.c: The marshal specs are freed at the end of the call
	but it explicitly frees the strings as well as the container,
	so we need to dup them too to avoid referencing free'd memory.

svn path=/trunk/mono/; revision=153045
2010-03-04 21:19:12 +00:00
Geoff Norton 4ef9ffec99 2010-03-04 Geoff Norton <[email protected]>
* icall-def.h:
	* icall.c: Add a new private internal icall to construct
	an object from its type without running the ctor.

svn path=/trunk/mono/; revision=153044
2010-03-04 21:17:19 +00:00
Geoff Norton d0c69ce09d 2010-03-04 Geoff Norton <[email protected]>
* Runtime.cs: Add a new private internal icall to construct
        an object from its type without running the ctor.

svn path=/trunk/mcs/; revision=153043
2010-03-04 21:16:20 +00:00
Miguel de Icaza 2a1d04ea47 More deprecated code moved out for Mono 2.8
svn path=/trunk/mcs/; revision=153041
2010-03-04 20:10:27 +00:00
Miguel de Icaza 29f72616bc Remove Mono.GetOptions
svn path=/trunk/mcs/; revision=153040
2010-03-04 20:09:58 +00:00
Jonathan Pryor dae3cbb37e * Driver.cs, CommandLineOptions.cs: Remove Mono.GetOptions use and use
Mono.Options instead (as Mono.GetOptions will be removed).
	* Makefile: Remove Mono.GetOptions.dll reference.
	* svcutil.exe.sources: Add Options.cs to the build.

svn path=/trunk/mcs/; revision=153039
2010-03-04 19:48:38 +00:00
Marek Habersack e105f08673 2010-03-04 Marek Habersack <[email protected]>
* BuildManager.cs: do less work in the static constructor

2010-03-04  Marek Habersack  <[email protected]>

	* RuntimeHelpers.cs: added. Contains methods moved here from
	HttpRuntime, so that initialization sequence of various objects is
	independent of HttpRuntime.

2010-03-04  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: do less work in the static constructor. Most of
	the code was moved to System.Web.Util.RuntimeHelpers. Properties
	which have been moved: MonoVersion, RunningOnWindows,
	CaseInsensitive, IsDebuggingEnabled

Also:
	- hushed some compiler warnings
	- various classes now use RuntimeHelpers instead of HttpRuntime

svn path=/trunk/mcs/; revision=153038
2010-03-04 19:04:13 +00:00
Andrew Jorgensen 8f9bef908c build fix via grendel
svn path=/trunk/mcs/; revision=153036
2010-03-04 18:20:27 +00:00
Martin Baulig b15542f7b6 Revert "Add new abort-invoke.cs test."
This reverts commit 67467b0e6b82749239d79529fcc32d19719896c5.

svn path=/trunk/mono/; revision=153034
2010-03-04 17:13:45 +00:00
Martin Baulig ad70f934b0 Revert "Set vtable->init_aborted' if we hit a ThreadAbortException' in the class .cctor."
This reverts commit afb31f21610177e68c3bc4b36c2b86f1a27501d7.

svn path=/trunk/mono/; revision=153033
2010-03-04 17:13:36 +00:00
Paolo Molaro 3596883dd7 Thu Mar 4 16:34:37 CET 2010 Paolo Molaro <[email protected]>
* src/unicode-data.h: save 70 KB.


svn path=/trunk/mono/; revision=153027
2010-03-04 15:35:35 +00:00
Ankit Jain 93f4fc75a2 * CommandLineException.cs (Message): Include the inner exception message
also.
* Parameters.cs (LoadResponseFile): Report any errors in this, as
warnings.

svn path=/trunk/mcs/; revision=153025
2010-03-04 15:27:52 +00:00
Paolo Molaro 47752b5040 Thu Mar 4 16:18:34 CET 2010 Paolo Molaro <[email protected]>
* src/eglib-remap.h, src/glib.h: header file to remap the symbols
	so there is no clash with system glib.
	* src/Makefile.am: build static lib as well.


svn path=/trunk/mono/; revision=153024
2010-03-04 15:26:43 +00:00
Jonathan Pryor 2fe422ff05 * xbuild/Makefile: $(EXTRAS_DIR) should use $(FRAMEWORK_VERSION) so
that when building for the 4.0 profile we install the appropriate
	  files into the $libdir/mono/4.0/ directory.

svn path=/trunk/mcs/; revision=153023
2010-03-04 15:04:18 +00:00
Paolo Molaro db79222afc Thu Mar 4 15:37:09 CET 2010 Paolo Molaro <[email protected]>
* profiler.c: allow multiple profiler engines to be loaded
	at the same time.


svn path=/trunk/mono/; revision=153022
2010-03-04 14:38:23 +00:00
Ankit Jain 123ee2cd14 * xbuild/Microsoft.Common.targets (DeployOutputFiles):
Check for empty $(OutDir), though it should be caught by
the check for $(OutputPath) earlier.

svn path=/trunk/mcs/; revision=153020
2010-03-04 14:31:06 +00:00
Ankit Jain 00ba2615b4 In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* AssignTargetPathTest.cs (CreateProjectString): Remove the
	unnecessary import of ms.common.targets .

In tools/xbuild:

	* xbuild/Microsoft.Common.targets: Check for empty invalid
	$(OutputPath), and error or warn the user.

svn path=/trunk/mcs/; revision=153019
2010-03-04 14:30:48 +00:00
Rodrigo Kumpera 7473e395ae 2010-03-03 Rodrigo Kumpera <[email protected]>
* TypeTest.cs : Added test for bug #574696
	Patch by Eberhard Beilharz <[email protected]>

svn path=/trunk/mcs/; revision=153017
2010-03-04 13:43:15 +00:00
Rodrigo Kumpera 95beb0a615 2010-03-04 Rodrigo Kumpera <[email protected]>
* Type.cs : Fix for bug #574696: don't recurse into base types
	* in GetMember when
	getting properties.
	Patch by Eberhard Beilharz <[email protected]>

svn path=/trunk/mcs/; revision=153016
2010-03-04 13:43:07 +00:00
Atsushi Eno 1377ce8177 2010-03-04 Atsushi Enomoto <[email protected]>
* HttpListenerContext.cs : WWW-Authenticate header should not be
	  limited to Basic.


svn path=/trunk/mcs/; revision=153014
2010-03-04 13:27:31 +00:00
Atsushi Eno 8d7fd24d5c 2010-03-04 Atsushi Enomoto <[email protected]>
* HttpListenerContext.cs : The header line here is already trimmed
	  "Authorization:" , so do not try to remove it.


svn path=/trunk/mcs/; revision=153012
2010-03-04 12:48:31 +00:00
Atsushi Eno cb3cf43828 2010-03-04 Atsushi Enomoto <[email protected]>
* HttpListener.cs, ListenerAsyncResult.cs : fix authentication
	  scheme selection mismatch.


svn path=/trunk/mcs/; revision=153011
2010-03-04 12:12:05 +00:00
Marek Safar e0d1f1b298 A version which works with hacked eval
svn path=/trunk/mcs/; revision=153009
2010-03-04 11:05:22 +00:00
Marek Safar 5d30000360 New test.
svn path=/trunk/mcs/; revision=153008
2010-03-04 10:59:48 +00:00
Marek Safar 22c9d56439 2010-03-04 Marek Safar <[email protected]>
A fix for bug #582579
	* ecore.cs (FieldExpr): Don't optimize cross reference loads.


svn path=/trunk/mcs/; revision=153007
2010-03-04 10:56:55 +00:00
Ankit Jain 81ed95ea51 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildEngine.cs (LogErrorEvent): Log as warning, if
	ContinueOnError==true, and log a corresponding message.
	* TargetBatchingImpl.cs: Refactor to share code between the
	batched and unbatched case. If a task fails and
	ContinueOnError==true, then ignore the failed state.

In class/Microsoft.Build.Engine/Test/various:

	* Build.cs (TestBuildContinueOnError*): New.

svn path=/trunk/mcs/; revision=153005
2010-03-04 10:49:31 +00:00
Atsushi Eno b94ce5cb72 2010-03-04 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : return array instance if the runtime type is
	  an array (it used to return ArrayList without conveting to array).

	* XmlObjectSerializerTest.cs : test for empty array deserialization.


svn path=/trunk/mcs/; revision=153004
2010-03-04 10:03:23 +00:00
Zoltan Varga f65200c1ae Fix the previous change.
svn path=/trunk/mono/; revision=153002
2010-03-04 09:21:15 +00:00
Marek Safar 6eec54bd15 2010-03-04 Marek Safar <[email protected]>
A patch by [email protected]
	
	* dynamic.cs, anonymous.cs, rootcontext.cs, class.cs: Don't make
	compiler generated classes sealed by default. Emit and close top
	level compiler generated classes as well. 
	
	* support.cs: Use RuntimeHelpers.GetHashCode.


svn path=/trunk/mcs/; revision=153001
2010-03-04 09:06:46 +00:00
Zoltan Varga 77be189fe6 2010-03-04 Zoltan Varga <[email protected]>
* strtod.c: Get rid of locking so this works with eglib.

svn path=/trunk/mono/; revision=152999
2010-03-04 08:05:01 +00:00
Zoltan Varga a54c962f41 Fix the ChangeLog.
svn path=/trunk/mono/; revision=152996
2010-03-04 04:47:22 +00:00
Zoltan Varga 1e82eace2a 2010-03-04 Zoltan Varga <[email protected]>
* aot-runtime.c (find_symbol): Fix a warning.
	(decode_patch): Ditto.

svn path=/trunk/mono/; revision=152995
2010-03-04 04:47:16 +00:00
Zoltan Varga b8e1d7ea8e 2010-03-04 Zoltan Varga <[email protected]>
* Makefile.am (DIST_SUBDIRS): Add eglib.

svn path=/trunk/mono/; revision=152994
2010-03-04 04:46:42 +00:00
Geoff Norton c8de0786e8 macports is of course totally different
svn path=/trunk/mono/; revision=152993
2010-03-04 04:22:52 +00:00
Atsushi Eno 723254f67b 2010-03-04 Atsushi Enomoto <[email protected]>
* TypeElement.cs, DeclaredTypeElement.cs,
	  ParameterElementCollection.cs, DataContractSerializerSection.cs,
	  ParameterElement.cs :
	  Looks like MSDN pages are quite incorrect. updated to match what
	  status page tells.


svn path=/trunk/mcs/; revision=152991
2010-03-04 03:45:41 +00:00
Rodrigo Kumpera e26a32c15c 2010-03-03 Rodrigo Kumpera <[email protected]>
* Type.cs (Equals): Better version that does less
	trips to runtime land.

svn path=/trunk/mcs/; revision=152988
2010-03-04 02:17:54 +00:00
Zoltan Varga f43157a385 2010-03-04 Zoltan Varga <[email protected]>
* configure.ac: Add a check for ISO varargs.

svn path=/trunk/mono/; revision=152987
2010-03-04 01:58:08 +00:00
Zoltan Varga 26eb7d1d8c 2010-03-04 Zoltan Varga <[email protected]>
* autogen.sh: Run eglib's autogen.sh too.

svn path=/trunk/mono/; revision=152986
2010-03-04 01:46:54 +00:00
Zoltan Varga e1b907d857 2010-03-04 Zoltan Varga <[email protected]>
* mini.h (MONO_INST_IS_TEMP): Kill this unused define.

svn path=/trunk/mono/; revision=152985
2010-03-04 01:28:49 +00:00
Zoltan Varga 803486bd38 2010-03-04 Zoltan Varga <[email protected]>
* mini.c (mono_resolve_patch_target): Fix an uninitialized variable.

svn path=/trunk/mono/; revision=152984
2010-03-04 01:27:48 +00:00
Zoltan Varga a2cfac89b5 2010-03-04 Zoltan Varga <[email protected]>
* test/test.c: Fix the build.

	* src/glib.h src/goutput.c: Emit asserts through a g_assertion_message ()
	function which is decorated with G_GNUC_NORETURN, to fix many warnings when using
	the eglib build.

svn path=/trunk/mono/; revision=152983
2010-03-04 01:16:22 +00:00
Zoltan Varga 83f3829573 Fix a warning.
svn path=/trunk/mono/; revision=152981
2010-03-04 00:53:21 +00:00
Rolf Bjarne Kvinge f8b0471cf1 2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* gensources.sh: Reverted to plain bash, cygwin/make seems to end up confused
	with path separators with the managed version.

svn path=/trunk/mcs/; revision=152970
2010-03-03 22:40:44 +00:00
Robert Jordan eee69a5cf6 2010-03-03 Robert Jordan <[email protected]>
* CADMessages.cs (GetMethod): don't continue if the type
	could not be found in the current domain. Fixes #584067.


svn path=/trunk/mcs/; revision=152969
2010-03-03 22:00:11 +00:00
Paolo Molaro c9cd723e2b Wed Mar 3 20:19:45 CET 2010 Paolo Molaro <[email protected]>
* profiler-private.h, profiler.c, profiler.h, sgen-gc.c: introduce
	profiler event to track object moves.


svn path=/trunk/mono/; revision=152966
2010-03-03 19:21:11 +00:00
Paolo Molaro 24aa2e42d1 Leftover.
svn path=/trunk/mono/; revision=152965
2010-03-03 18:38:47 +00:00
Paolo Molaro 9224ca55bf Wed Mar 3 19:20:39 CET 2010 Paolo Molaro <[email protected]>
* object.c, profiler.c, profiler.h, string-icalls.c:
	remove the reduntant MONO_PROFILE_STRING_ALLOC profiler event.


svn path=/trunk/mono/; revision=152962
2010-03-03 18:21:56 +00:00
Paolo Molaro ff9812d7b4 Wed Mar 3 19:19:21 CET 2010 Paolo Molaro <[email protected]>
* method-to-ir.c: MONO_PROFILE_STRING_ALLOC is dead.


svn path=/trunk/mono/; revision=152961
2010-03-03 18:20:13 +00:00
Paolo Molaro 9caf335ede Wed Mar 3 19:17:14 CET 2010 Paolo Molaro <[email protected]>
* mono-profiler-iomap.c: use the normal allocation callback.


svn path=/trunk/mono/; revision=152960
2010-03-03 18:18:55 +00:00
Miguel de Icaza c90804163b Forgot the ChangeLog
svn path=/trunk/mcs/; revision=152959
2010-03-03 18:06:46 +00:00
Rodrigo Kumpera 38e31899c4 2010-03-03 Rodrigo Kumpera <[email protected]>
* bug-562150.cs: Regression test.

svn path=/trunk/mono/; revision=152958
2010-03-03 18:05:07 +00:00
Rodrigo Kumpera 174e296359 2010-03-03 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Don't create a runtime
	* vtable
	to check for errors, it's enough to create the metadata open.

	Fixes #562150

svn path=/trunk/mono/; revision=152957
2010-03-03 18:04:59 +00:00
Miguel de Icaza 79a9b7247e 2010-03-03 Miguel de Icaza <[email protected]>
* Decimal.cs: Disable the fast double2decimal code, and go back
        * to
        string parsing as there is a rounding/precision bug.

                //
                // We cant use the double2decimal method
                // because it incorrectly turns the floating point
                // value 1.23456789E-25F which should be:
                //    0.0000000000000000000000001235
                // into the incorrect:
                //   0.0000000000000000000000001234
                //
                //    The code currently parses the double value 0.6 as
                //    0.600000000000000
                //
                // And we have a patch for that called (trim


svn path=/trunk/mcs/; revision=152956
2010-03-03 18:01:57 +00:00
Gonzalo Paniagua Javier 1f7dcac7ac 2010-03-03 Gonzalo Paniagua Javier <[email protected]>
* mono-mmap.c: apparently kill() can return ENOMEM. Also use signal 0
	which is the documented way of testing for the existence of a PID.
	Thanks to Cal Page.


svn path=/trunk/mono/; revision=152954
2010-03-03 18:01:06 +00:00
Paolo Molaro 8d07e0a042 Fix dist.
svn path=/trunk/mono/; revision=152953
2010-03-03 17:42:48 +00:00
Miguel de Icaza c81a3e5019 2010-03-03 Miguel de Icaza <[email protected]>
* decimal.c (mono_double2decimal): Add support for reducing the
	scale of a decimal.  It turns the 0.6000000000000 into 0.6 as
	expected.

svn path=/trunk/mono/; revision=152952
2010-03-03 17:29:54 +00:00
Lluis Sanchez 8e1cc840ac 2006-03-03 Lluis Sanchez Gual <[email protected]>
* Methods.cs: In BuildResponseReflectionMembers, use the operation
	name as base name for the response element. Don't use the request
	name as base, since it may have been customized using the RequestElementName
	property. Fixes bug #548988.


svn path=/trunk/mcs/; revision=152950
2010-03-03 16:29:06 +00:00
Lluis Sanchez 2adc0863aa 2010-03-03 Lluis Sanchez Gual <[email protected]>
* ServiceDescriptionCollection.cs: When looking for bindings and other
	items, look in the list instead of the namespace table, since the
	collection may have several description documents with the same
	namespace.
	* ProtocolImporter.cs: Same as above. A schemas collection can have
	more than one schema with the same name, so we can use the namespace
	indexer to find schemas.
	* BasicProfileChecker.cs: Added null check.


svn path=/trunk/mcs/; revision=152948
2010-03-03 16:22:56 +00:00
Marek Habersack d399f9633b Change for msvc to be able to compile the code
svn path=/trunk/mono/; revision=152942
2010-03-03 15:57:37 +00:00
Atsushi Eno 7d0100c9af 2010-03-03 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
	  HttpListenerManager.cs : ongoing authentication support. It returns
	  401 as expected, but somehow fails to retrieve user info.


svn path=/trunk/mcs/; revision=152941
2010-03-03 15:24:58 +00:00
Jonathan Pryor ada654e1bd * library.make: Add the generated per-profile .source file to
library_CLEAN_FILES so that it's actually removed on clean.

svn path=/trunk/mcs/; revision=152939
2010-03-03 15:22:50 +00:00
Rodrigo Kumpera 51b977a67d 2010-03-03 Rodrigo Kumpera <[email protected]>
* MonoType.cs: Add v4 security properties.

svn path=/trunk/mcs/; revision=152937
2010-03-03 14:46:32 +00:00
Rodrigo Kumpera 25c1d95b84 2010-03-03 Rodrigo Kumpera <[email protected]>
* Type.cs: Add v4 security properties.

svn path=/trunk/mcs/; revision=152936
2010-03-03 14:46:24 +00:00
Rodrigo Kumpera 66bf765f01 2010-03-03 Rodrigo Kumpera <[email protected]>
* Type.cs: Fix identation.

svn path=/trunk/mcs/; revision=152935
2010-03-03 14:46:15 +00:00
Rodrigo Kumpera 4d9f827ea6 2010-03-03 Rodrigo Kumpera <[email protected]>
* icall-def.h:
	* icall.c: Implement
	* System.MonoType::get_core_clr_security_level icall.

svn path=/trunk/mono/; revision=152934
2010-03-03 14:45:54 +00:00
Marek Habersack 0dd75d3b41 2010-03-03 Marek Habersack <[email protected]>
* mono-config.c (mono_config_parse_assembly_bindings): added -
	parses assembly binding redirections from appdomain's config
	file.

	* metadata-internals.h: added definition of a new function -
	mono_config_parse_assembly_bindings - to support parsing assembly
	binding redirections defined in appdomain's config file.

	* domain-internals.h: added two new fields to _MonoDomain - a list
	of assembly bindings and a flag to parse the config file only
	once.

	* assembly.c (assembly_binding_maps_name): empty culture name and
	NULL culture name are considered equal.
	(mono_assembly_apply_binding): added support for domain specific
	assembly binding redirections, read from the appdomain's
	configuration file. Fixes bug #580185

svn path=/trunk/mono/; revision=152931
2010-03-03 14:16:14 +00:00
Rodrigo Kumpera 49d2fda3ec 2010-03-03 Rodrigo Kumpera <[email protected]>
* Activator.cs: : Implement new v4 overloads and [Obsolete].

svn path=/trunk/mcs/; revision=152924
2010-03-03 13:18:23 +00:00
Atsushi Eno f334e6dced 2010-03-03 Atsushi Enomoto <[email protected]>
* HttpListenerContext.cs, HttpListener.cs :
	  support AuthenticationSchemeSelectorDelegate.


svn path=/trunk/mcs/; revision=152922
2010-03-03 12:38:19 +00:00
Atsushi Eno 0e5761c9dc 2010-02-10 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : this change (along with HttpListener
	  implementation) somehow fixes basic auth. connection error...


svn path=/trunk/mcs/; revision=152921
2010-03-03 12:35:06 +00:00
Rolf Bjarne Kvinge 5649819797 2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* gensources.sh: Fix windows path separator characters.

svn path=/trunk/mcs/; revision=152920
2010-03-03 12:34:32 +00:00
Paolo Molaro 8fa475b62f Wed Mar 3 11:46:06 CET 2010 Paolo Molaro <[email protected]>
* appdomain.c, domain.c, icall.c, image.c, marshal.c, object.c,
	reflection.c, socket-io.c, threadpool.c, threads.c: removed 1.1/1.0
	support.


svn path=/trunk/mono/; revision=152914
2010-03-03 10:49:32 +00:00
Rolf Bjarne Kvinge 5a2392fa53 In .:
2010-03-03  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile: Make basic the bootstrapping profile for net_2_1_bootstrap.

In build:
2010-03-03  Rolf Bjarne Kvinge  <[email protected]>

	* profiles/net_2_1_bootstrap.make: Make 'basic' the bootstrapping
	profile for net_2_1_bootstrap.

In mcs:
2010-03-03  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile: We need to use the internal bootstrapping gmcs for
	net_2_1_bootstrap too now.

svn path=/trunk/mcs/; revision=152911
2010-03-03 09:33:11 +00:00
Atsushi Eno 50f9dab2ad 2010-03-03 Atsushi Enomoto <[email protected]>
* DataContractSerializerSection.cs : new.
	* XmlFormatterSection.cs : remove.
	* DeclaredTypeElementCollection.cs
	  TypeElement.cs
	  DeclaredTypeElement.cs
	  SerializationSectionGroup.cs
	  ParameterElementCollection.cs
	  TypeElementCollection.cs
	  ParameterElement.cs : implement.

	* System.Runtime.Serialization.dll.sources:
	  update configuration sources.


svn path=/trunk/mcs/; revision=152908
2010-03-03 09:26:03 +00:00
Rolf Bjarne Kvinge 797935f784 In man:
2010-03-03  Rolf Bjarne Kvinge  <[email protected]>

	* mono.1: Document exception tracing.

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

	* trace.c|h:
	* mini-exceptions.c: Add support for printing stack traces when handling
	exceptions, and when printing exceptions thrown while tracing also print
	the exception message.

svn path=/trunk/mono/; revision=152907
2010-03-03 09:25:00 +00:00
Rolf Bjarne Kvinge f1856f8a14 2010-03-03 Rolf Bjarne Kvinge <[email protected]>
* trace.c: We need to parse exclude tokens ('-') before string tokens,
	since the exclude token is a valid string character.

svn path=/trunk/mono/; revision=152906
2010-03-03 09:22:02 +00:00
Rolf Bjarne Kvinge b0e287bc32 Added .gitignore for tools/sgen directory
svn path=/trunk/mono/; revision=152905
2010-03-03 09:19:32 +00:00
Atsushi Eno 22976ddf3a 2010-03-03 Atsushi Enomoto <[email protected]>
* ServiceDebugElement.cs, ServiceMetadataPublishingElement.cs:
	  add missing members.


svn path=/trunk/mcs/; revision=152901
2010-03-03 07:54:40 +00:00
Atsushi Eno 27601d5c1a 2010-03-03 Atsushi Enomoto <[email protected]>
* docs/Makefile : drop Mono.Data.SqliteClient.


svn path=/trunk/mcs/; revision=152899
2010-03-03 06:15:16 +00:00
Andreia Gaita 8309cc7fb4 2010-03-03 Andreia Gaita <[email protected]>
* InternalWebRequestStreamWrapper.cs: don't add a newline to the
	request	data, whatever uses the data should be the one adding
	newlines if they need it	(i.e., moon's ff bridge needs it, the
	curl bridge doesn't)

svn path=/trunk/mcs/; revision=152898
2010-03-03 04:37:23 +00:00
Rodrigo Kumpera 77471052ed 2010-03-03 Rodrigo Kumpera <[email protected]>
* AppDomain.cs: Add bunch of trivial overloads.

svn path=/trunk/mcs/; revision=152895
2010-03-03 04:07:44 +00:00
Rodrigo Kumpera a5cce3bf09 2010-03-02 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_get_memberref_token): Extract
	* mono_image_add_memberef_row
	from this function. The new function receive the parent token
instead of a type.

	* reflection.c
	* (mono_image_get_methodref_token_for_methodbuilder):
	* reflection.c (mono_image_get_ctorbuilder_token): Use new
	* function to encode
	typebuilders. This make it possible to properly encode generic
type builders since
	their unmanaged type don't have generics data while unfinished.

	Fixes #583655.

svn path=/trunk/mono/; revision=152887
2010-03-02 23:42:03 +00:00
Jonathan Pobst 674d6bd468 Track libraries removed from trunk for MonkeyBuilder.
svn path=/trunk/mono/; revision=152885
2010-03-02 23:30:04 +00:00
Jérémie Laval b4db6246d1 2010-03-02 Jérémie Laval <[email protected]>
In class/System/:
   * System_test.dll.sources: Add System.Threading/BarrierTest.cs

In class/System/System.Threading/:
   * Barrier.cs: Remove dead comments

In class/System/Test/System.Threading/:
   * BarrierTest.cs: Add BarrierTest.

In class/corlib/:
   * corlib_test.dll.sources: Add System.Threading.Tasks/TaskFactoryTest.cs

In class/corlib/System.Threading.Tasks/:
   * Task.cs: If we add a continuation when the Task is already finished
   forces its schedule as a Task instead of executing on the calling thread.
   * TaskFactory.cs: Add ContinueWhenAny implementation when returning Task

In class/corlib/Test/System.Threading.Tasks/:
   * TaskFactoryTest.cs: Add TaskFactoryTests
   * TaskTest.cs: Re-enable TastTest

svn path=/trunk/mcs/; revision=152884
2010-03-02 23:01:28 +00:00
Rodrigo Kumpera 94b59979a0 2010-03-02 Rodrigo Kumpera <[email protected]>
* Makefile: Fix mdoc build.

svn path=/trunk/mcs/; revision=152883
2010-03-02 22:22:23 +00:00
Zoltan Varga 035148dc99 2010-03-02 Levi Bard <[email protected]>
* debugger-agent.c: Invalidate thread stacks on domain unload.

svn path=/trunk/mono/; revision=152881
2010-03-02 22:08:45 +00:00
Jeffrey Stedfast fe8f5908d0 2010-03-02 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am:
	* mono/Makefile.am: Only build some subdirs when configured for
	moonlight.

	* configure.in: If configured --with-moonlight=yes, define MOONLIGHT and
	use that variable instead of INSTALL_2_1.

	* runtime/Makefile.am: If configured for moonlight, only build
	net_2_1_raw.


svn path=/trunk/mono/; revision=152880
2010-03-02 21:31:41 +00:00
Jeffrey Stedfast 1946330ba9 2010-03-02 Rolf Bjarne Kvinge <[email protected]>
* gensources.sh: Converted to C# for a 15-100x speedup.


svn path=/trunk/mcs/; revision=152879
2010-03-02 21:30:44 +00:00
Miguel de Icaza 6b52f1c169 Add sgen to the tools build
svn path=/trunk/mono/; revision=152878
2010-03-02 21:00:12 +00:00
Miguel de Icaza 0a47720f05 Fix build
svn path=/trunk/mono/; revision=152877
2010-03-02 21:00:00 +00:00
Miguel de Icaza a166d2bab6 Droppped more code
svn path=/trunk/mcs/; revision=152876
2010-03-02 20:48:10 +00:00
Miguel de Icaza d3fe4eebcf Drop Microsoft.Vsa too
svn path=/trunk/mcs/; revision=152875
2010-03-02 20:47:55 +00:00
Miguel de Icaza 0bb677daed Moved more obsolete code
svn path=/trunk/mcs/; revision=152874
2010-03-02 20:44:22 +00:00
Miguel de Icaza 73e68c1984 Drop this one too
svn path=/trunk/mcs/; revision=152873
2010-03-02 20:43:50 +00:00
Jonathan Pryor 751aca4957 * Makefile, mono-shlib-cop.cs: Remove Mono.GetOptions dependency.
svn path=/trunk/mcs/; revision=152872
2010-03-02 20:42:04 +00:00
Miguel de Icaza 7abad3a40f Update configure.in to include tools/sgen
svn path=/trunk/mono/; revision=152871
2010-03-02 19:28:22 +00:00
Miguel de Icaza d3dc6548e8 Move to a directory
svn path=/trunk/mono/; revision=152870
2010-03-02 19:27:53 +00:00
Miguel de Icaza 759f34a60f Move tool
svn path=/trunk/mono/; revision=152869
2010-03-02 19:25:39 +00:00
Miguel de Icaza 4ae2e5cf02 Make this 2.0
svn path=/trunk/mcs/; revision=152866
2010-03-02 18:49:03 +00:00
Mark Probst 0672c30e8b 2010-03-02 Mark Probst <[email protected]>
* sgen-gc.c, sgen-protocol.c, sgen-protocol.h: New facility for
        writing binary log files (can be enabled by #define'ing
        BINARY_PROTOCOL) for better debugging of timing-dependent bugs or
        bugs in longer running programs.

2010-03-02  Mark Probst  <[email protected]>

        * tools/sgen-grep-binprot.c: Tool for searching through the binary
        protocol files generated by SGen.

svn path=/trunk/mono/; revision=152864
2010-03-02 18:06:15 +00:00
Miguel de Icaza c45790b469 Put monodoc.dll on the 2.0 profile as well for now
svn path=/trunk/mcs/; revision=152862
2010-03-02 17:39:10 +00:00
Raja R Harinath 2507041096 * expression.cs (IndexerAccess.ResolveAccessor): Add CS1540 check.
Diagnose code that caused the verification failure of System.ServiceModel.Routing.dll

svn path=/trunk/mcs/; revision=152858
2010-03-02 17:24:41 +00:00
Raja R Harinath 897697630e * BackupListCollection.cs, FilterTableCollection.cs: Add indexer.
Apart from completing more of the API, this fixes a verification failure on the DLL

svn path=/trunk/mcs/; revision=152857
2010-03-02 17:24:25 +00:00
Raja R Harinath 5d765fd096 * rules.make (all-local $(STD_TARGETS:=-local)): Add empty targets.
svn path=/trunk/mcs/; revision=152856
2010-03-02 17:24:08 +00:00
Marek Safar e9c0888d43 2010-03-02 Marek Safar <[email protected]>
* cs-tokenizer.cs: Missed few locations in previous fix.


svn path=/trunk/mcs/; revision=152855
2010-03-02 16:46:51 +00:00
Marek Safar 83c5b2867b Fixes build
svn path=/trunk/mcs/; revision=152852
2010-03-02 16:18:47 +00:00
Gonzalo Paniagua Javier ea1bfeff9f 2 more attributes
svn path=/trunk/mcs/; revision=152845
2010-03-02 15:26:52 +00:00
Mark Probst 56f09ea7d7 2010-03-02 Mark Probst <[email protected]>
* method-to-ir.c: Emit dummy_use for stored reference after write
        barriers to make sure the object is pinned if the GC interrupts
        before the write barrier is done.

svn path=/trunk/mono/; revision=152844
2010-03-02 15:14:55 +00:00
Jb Evain a6686aadce 2010-03-02 Jb Evain <[email protected]>
Merge the MonoTouch Linker branch.

	* Mono.Linker/LinkContext.cs:
		Allow creation with a custom resolver.

	* Mono.Linker/AssemblyResolver.cs:
		Allow creation with a custom assembly cache.

	* Mono.Linker.Steps/ResolveFromAssemblyStep.cs:
		- Mark fields for copied assemblied.
		- Now can take an assembly directly.

	* Mono.Linker.Steps/SweepStep.cs
	* Mono.Linker.Steps/CleanStep.cs:
		Optimizations.

svn path=/trunk/mcs/; revision=152840
2010-03-02 14:52:06 +00:00
Marek Safar 1430eb1035 mono does not support auto detection yet
svn path=/trunk/mcs/; revision=152839
2010-03-02 14:10:38 +00:00
Marek Habersack 8b773334d3 Better find invocation for EXTRA_DIST
svn path=/trunk/mcs/; revision=152838
2010-03-02 14:08:43 +00:00
Marek Safar a3adb502b6 2010-03-02 Marek Safar <[email protected]>
* cs-tokenizer.cs, argument.cs, dynamic.cs, assign.cs, anonymous.cs,
	nullable.cs, expression.cs, statement.cs, cs-parser.jay, cfold.cs:
	Report correct location for operator errors.


svn path=/trunk/mcs/; revision=152826
2010-03-02 12:59:56 +00:00
Marek Safar adc93bad44 updated
svn path=/trunk/mcs/; revision=152816
2010-03-02 09:59:57 +00:00
Marek Safar 6d71def2f7 Removed mjs
svn path=/trunk/mcs/; revision=152815
2010-03-02 09:45:45 +00:00
Marek Safar 512b4aa673 New test.
svn path=/trunk/mcs/; revision=152814
2010-03-02 09:33:08 +00:00
Marek Safar 4159100b71 Some old attributes.
svn path=/trunk/mcs/; revision=152813
2010-03-02 09:30:48 +00:00
Marek Safar 0e39ec7f32 Some old attributes.
svn path=/trunk/mcs/; revision=152811
2010-03-02 09:30:07 +00:00
Marek Safar 7dc35bdee0 Fixing the build.
svn path=/trunk/mcs/; revision=152810
2010-03-02 09:29:29 +00:00
Marek Safar 42fb2c89d9 2010-03-02 Marek Safar <[email protected]>
* typemanager.cs (IsDynamicType): Don't check external types when
	the attribute is not external.


svn path=/trunk/mcs/; revision=152808
2010-03-02 09:10:08 +00:00
Atsushi Eno 3c732b3a95 2010-03-02 Atsushi Enomoto <[email protected]>
* EncodingConverter.cs, WebHttpBindingElement.cs,
	  WebHttpSecurityElement.cs : implement OnApplyConfiguration(), fill
	  some TypeConverters, and fix BindingElementType, based on the patch
	  by Sander Rijken.

2010-03-01  Sander Rijken  <[email protected]>

	* webHttpBinding, webHttpBinding.config : new test files.

2010-03-01  Sander Rijken  <[email protected]>

	* WebHttpBindingElementTest.cs : new test.

2010-03-02  Atsushi Enomoto  <[email protected]>

	* System.ServiceModel.Web_test.dll.sources : add new test.
	* Makefile : add new extra dist.


svn path=/trunk/mcs/; revision=152807
2010-03-02 07:46:25 +00:00
Carlos Alberto Cortez b01722b9d2 * TreeView.cs: When receiving a double click on a node, toggle it only
if it has one or more nodes - just as .net does.
	Fixes #578079.

2010-03-01  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=152804
2010-03-02 06:44:00 +00:00
Carlos Alberto Cortez e0f644c4f2 * X11Keyboard.cs: Small correction for the previous patch: I forgot to
take into account the case where the buffer used in XLookupString is
	not empty, but filled with garbage.

2010-03-01  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=152802
2010-03-02 05:58:41 +00:00
Gonzalo Paniagua Javier 8a0cab7fe1 more attributes
svn path=/trunk/mcs/; revision=152801
2010-03-02 05:53:03 +00:00
Gonzalo Paniagua Javier c4c579c1fe new files
svn path=/trunk/mcs/; revision=152800
2010-03-02 05:24:07 +00:00
Gonzalo Paniagua Javier e22d5f72be Add 2 new attributes
svn path=/trunk/mcs/; revision=152799
2010-03-02 05:23:32 +00:00
Geoff Norton 919f4e38a0 fix build with disable_jit
svn path=/trunk/mono/; revision=152798
2010-03-02 05:18:44 +00:00
Carlos Alberto Cortez 4365045e8c 2010-03-01 Carlos Alberto Cortez <[email protected]>
* X11Keyboard.cs: When handling the key events, sometimes calling
	either Xutf8LookupString or XLookupString with special chars (such
	backspace and enter) can result in a buffer filled with garbage, or
	empty - thus re-use the value returned by the same functions to fill
	the gap.
	Fixes #582691.


svn path=/trunk/mcs/; revision=152796
2010-03-02 04:45:15 +00:00
Jonathan Pobst 13960dee5f Track libraries removed from trunk for MonkeyBuilder.
svn path=/trunk/mono/; revision=152793
2010-03-02 03:30:45 +00:00
Zoltan Varga ddcaeac501 2010-03-02 Zoltan Varga <[email protected]>
* cpu-<ARCH>.md: dummy_use was missing src1:i.

svn path=/trunk/mono/; revision=152790
2010-03-02 03:13:23 +00:00
Miguel de Icaza 01fdf044d1 Moved deprecated library
svn path=/trunk/mcs/; revision=152788
2010-03-02 03:06:37 +00:00
Rodrigo Kumpera 14a991119b 2010-03-01 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Tests for new v4 overloads of GetType.

svn path=/trunk/mcs/; revision=152786
2010-03-02 02:45:11 +00:00
Rodrigo Kumpera 706b3a8f7f 2010-03-01 Rodrigo Kumpera <[email protected]>
* TypeSpec.cs: New file. Managed code implementation of type
	* name
	parsing.

	* Type.cs: Implement new v4 overloads of GetType.

svn path=/trunk/mcs/; revision=152785
2010-03-02 02:45:02 +00:00
Miguel de Icaza da5f82ce2d Moved deprecated library
svn path=/trunk/mcs/; revision=152784
2010-03-02 02:42:02 +00:00
Miguel de Icaza 88f6df072b Moved deprecated library
svn path=/trunk/mcs/; revision=152783
2010-03-02 02:41:51 +00:00
Miguel de Icaza 3dce078d61 Remove prj2make and cilc
svn path=/trunk/mcs/; revision=152782
2010-03-02 02:41:29 +00:00
Miguel de Icaza 56a7738589 Moved deprecated library
svn path=/trunk/mcs/; revision=152781
2010-03-02 02:40:23 +00:00
Miguel de Icaza 35d1273160 Moved deprecated library
svn path=/trunk/mcs/; revision=152780
2010-03-02 02:40:12 +00:00
Miguel de Icaza f0a7fbae00 Moved deprecated library
svn path=/trunk/mcs/; revision=152779
2010-03-02 02:40:03 +00:00
Miguel de Icaza eb44ac36f5 Moved deprecated library
svn path=/trunk/mcs/; revision=152778
2010-03-02 02:39:53 +00:00
Miguel de Icaza 2d66a50bc6 Moved deprecated library
svn path=/trunk/mcs/; revision=152777
2010-03-02 02:39:41 +00:00
Miguel de Icaza 2681ae003f Moved deprecated library
svn path=/trunk/mcs/; revision=152776
2010-03-02 02:39:29 +00:00
Miguel de Icaza 69116e983a Remove some deprecated libraries
svn path=/trunk/mcs/; revision=152775
2010-03-02 02:39:07 +00:00
Geoff Norton 07c0745c14 typo
svn path=/trunk/mcs/; revision=152765
2010-03-01 23:05:37 +00:00
Geoff Norton 1d9c282cb6 File.Exists cannot read outside the sandbox on monotouch
svn path=/trunk/mcs/; revision=152762
2010-03-01 22:44:38 +00:00
Zoltan Varga 563ba45b74 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a log message printing the protocol version.

svn path=/trunk/mono/; revision=152759
2010-03-01 22:30:54 +00:00
Zoltan Varga 859d353bec 2010-03-01 Zoltan Varga <[email protected]>
* VirtualMachine.cs: Allow working with runtimes implementing a different
	minor version of the debugger protocol.

svn path=/trunk/mcs/; revision=152757
2010-03-01 22:27:06 +00:00
Zoltan Varga e26cc731cf 2010-03-01 Zoltan Varga <[email protected]>
* Connection.cs: Send the protocol version used by the client to the debuggee
	after the handshake.

svn path=/trunk/mcs/; revision=152755
2010-03-01 22:23:56 +00:00
Zoltan Varga 598ae0cd79 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c: Add a new command to communicate the protocol version used
	by the client. This could be used to allow newer runtimes to communicate with
	older clients.

svn path=/trunk/mono/; revision=152753
2010-03-01 22:22:52 +00:00
Zoltan Varga 9ca572fdd0 Add tests for generic structs + invokes.
svn path=/trunk/mono/; revision=152750
2010-03-01 21:03:32 +00:00
Jeffrey Stedfast eef0c25e26 fix grammar in an exception
svn path=/trunk/mcs/; revision=152749
2010-03-01 20:59:37 +00:00
Ankit Jain a031f1d112 Fix tests.
* Makefile (EXTRA_DISTFILES): Add Test/resources/junk.txt .

svn path=/trunk/mcs/; revision=152744
2010-03-01 20:08:02 +00:00
Jeffrey Stedfast 86f775a513 reverted previous change
svn path=/trunk/mcs/; revision=152743
2010-03-01 19:52:45 +00:00
Zoltan Varga 9a8a1b9161 2010-03-01 Zoltan Varga <[email protected]>
* Array.cs (CreateArray): Disallow creation of arrays of unfinished types.

svn path=/trunk/mcs/; revision=152742
2010-03-01 19:52:06 +00:00
Miguel de Icaza e7a082fb0a 2010-03-01 Miguel de Icaza <[email protected]>
* Win32Resources.cs: Prevent infinite loops if the resource that
	we are reading is invalid.   Fixes the mscorlib part of #327500

svn path=/trunk/mcs/; revision=152739
2010-03-01 19:34:39 +00:00
Zoltan Varga d82a1714c4 2010-03-01 Zoltan Varga <[email protected]>
* Location.cs: Implement ToString ().

svn path=/trunk/mcs/; revision=152736
2010-03-01 19:29:30 +00:00
Miguel de Icaza 2ac437cdfc 2010-03-01 Miguel de Icaza <[email protected]>
* WebHeaderCollection.cs: Apply 2 year old patch from Yves Bastide that fixes the keys
        casing in the collection;   Fixes 325491


svn path=/trunk/mcs/; revision=152734
2010-03-01 19:09:20 +00:00
Jeffrey Stedfast 3c973820b1 2010-03-01 Jeffrey Stedfast <[email protected]>
* Aes.cs: Fixed to convert the AssemblySystem_Core value to a string.


svn path=/trunk/mcs/; revision=152731
2010-03-01 18:58:51 +00:00
Paolo Molaro 8a2908ade3 Mon Mar 1 19:35:32 CET 2010 Paolo Molaro <[email protected]>
* metadata.c: added some API documentation.


svn path=/trunk/mono/; revision=152730
2010-03-01 18:36:18 +00:00
Zoltan Varga a76ddbbea0 2010-03-01 Zoltan Varga <[email protected]>
* dtest.cs: Add a test for CreateBoxedValue.

svn path=/trunk/mono/; revision=152720
2010-03-01 17:18:22 +00:00
Zoltan Varga 62b8aa3b7e 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c (domain_commands): Add a new command to create a boxed value.

svn path=/trunk/mono/; revision=152719
2010-03-01 17:18:16 +00:00
Zoltan Varga 064f330a4f 2010-03-01 Zoltan Varga <[email protected]>
* AppDomainMirror.cs (CreateBoxedValue): New method to create a boxed value from
	a primitive value or struct.

svn path=/trunk/mcs/; revision=152717
2010-03-01 17:16:12 +00:00
Miguel de Icaza 913d28c2f4 2010-03-01 Miguel de Icaza <[email protected]>
* More dropping of old NET_1_1 code.

svn path=/trunk/mcs/; revision=152709
2010-03-01 16:49:46 +00:00
Miguel de Icaza 2fde87a822 2010-03-01 Miguel de Icaza <[email protected]>
* DateTime.cs (DoParse): patch from Tom Philpot, while using
	TryParse if s is null, we should return false, not crash.


svn path=/trunk/mcs/; revision=152708
2010-03-01 16:48:26 +00:00
Zoltan Varga 0ccc6eb457 Fix a typo.
svn path=/trunk/mono/; revision=152706
2010-03-01 16:30:23 +00:00
Zoltan Varga dba47cabe0 Add a test for setting ref type fields.
svn path=/trunk/mono/; revision=152705
2010-03-01 16:30:17 +00:00
Zoltan Varga dd156db9ab 2010-03-01 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Fix the setting of fields with a reference
	type.

svn path=/trunk/mono/; revision=152704
2010-03-01 16:30:11 +00:00
Paolo Molaro 24d2d1b203 Mon Mar 1 17:12:24 CET 2010 Paolo Molaro <[email protected]>
* src/unicode-data.h, src/gutf8.c: don't export private symbols.


svn path=/trunk/mono/; revision=152702
2010-03-01 16:15:22 +00:00
Martin Baulig 99b72e1ccb Add new abort-invoke.cs test.
2010-03-01  Martin Baulig  <[email protected]>

	* abort-invoke.cs: Add a test for my latest patch regarding thread
	aborts while running a class .cctor.

svn path=/trunk/mono/; revision=152699
2010-03-01 15:02:43 +00:00
Paolo Molaro f9595c5377 Document MONO_CPU_ARCH.
svn path=/trunk/mono/; revision=152694
2010-03-01 14:30:20 +00:00
Paolo Molaro 3f4f6cbb59 Mon Mar 1 15:20:44 CET 2010 Paolo Molaro <[email protected]>
* mini-arm.c: make the arm cpu arch configurable with the
	MONO_CPU_ARCH env var (for example: "armv4 thumb").
	Bug #584198.


svn path=/trunk/mono/; revision=152692
2010-03-01 14:23:41 +00:00
Paolo Molaro 145b08df18 Enable.
svn path=/trunk/mono/; revision=152690
2010-03-01 14:18:04 +00:00
Paolo Molaro 9335fddbda Added --jitmap option description.
svn path=/trunk/mono/; revision=152688
2010-03-01 13:55:17 +00:00
Paolo Molaro 57c5f6eb77 Mon Mar 1 14:48:35 CET 2010 Paolo Molaro <[email protected]>
* mini.c, mini.h, driver.c: added the --jitmap option to enable
	support for the perf tool on Linux.


svn path=/trunk/mono/; revision=152686
2010-03-01 13:53:25 +00:00
Paolo Molaro 2b408cb9fe Mon Mar 1 14:43:55 CET 2010 Paolo Molaro <[email protected]>
* method-to-ir.c: make string.InsertenalSetChar() specialization
	effective.


svn path=/trunk/mono/; revision=152684
2010-03-01 13:45:13 +00:00
Robert Jordan 4a60ed013b 2010-03-01 Robert Jordan <[email protected]>
* libmono.vcproj: Track changes.





svn path=/trunk/mono/; revision=152663
2010-03-01 10:38:06 +00:00
Robert Jordan ae51362cd6 2010-03-01 Robert Jordan <[email protected]>
* filewatcher.h: Include glib.h to fix the MSVC build.


svn path=/trunk/mono/; revision=152662
2010-03-01 10:28:34 +00:00
Atsushi Eno 25414103fa 2010-03-01 Atsushi Enomoto <[email protected]>
* SerializationMap.XsdExporter.cs, XsdDataContractExporter-new.cs:
	  refresh implementation to reflect the latest WCF impl.
	* SerializationMap.cs : make types partial.

	* XsdDataContractExporterTest.cs : remove [NotWorking].

	* System.Runtime.Serialization.dll.sources: use new implementation
	  (will be renamed later).


svn path=/trunk/mcs/; revision=152657
2010-03-01 09:56:10 +00:00
Gonzalo Paniagua Javier 5c20ab97e6 2010-03-01 Gonzalo Paniagua Javier <[email protected]>
* System.Net/WebConnection.cs: attach a validation callback to the new
	event in Mono.Security.
	* System.Net/ServicePointManager.cs: added a new ValidationHelper
	class that takes care of building the certificate chain and perform
	all the check that were done in Mono.Security before. This way the 2.0
	server certificate validation callback can get all the data it needs.
	* System.Net.Security/SslStream.cs: don't do anything if a chain
	element has no error.

	Fixes bug #584050.

svn path=/trunk/mcs/; revision=152654
2010-03-01 09:01:14 +00:00
Gonzalo Paniagua Javier c8bcd55c91 2010-03-01 Gonzalo Paniagua Javier <[email protected]>
* Mono.Security.Protocol.Tls/HttpsClientStream.cs: use Address instead
	of RequestUri to get the right host name when the request is
	redirected.

	* Mono.Security.Protocol.Tls/SslStreamBase.cs:
	* Mono.Security.Protocol.Tls/SslClientStream.cs:
	* Mono.Security.Protocol.Tls/SslServerStream.cs:
	* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
	added a new callback for certificate validation that gets all the
	certificates received from the server/client. The callee should
	build the chain and validate it.


svn path=/trunk/mcs/; revision=152652
2010-03-01 08:51:44 +00:00
Miguel de Icaza 3a5a8424db 2010-03-01 Miguel de Icaza <[email protected]>
* Point.cs: Fix #554635, our constructor that takes an int had the
	values for X and Y swapped out.

svn path=/trunk/mcs/; revision=152650
2010-03-01 07:10:10 +00:00
Zoltan Varga 2cbb744c6c 2010-03-01 Zoltan Varga <[email protected]>
* class-internals.h (MonoClass): Get rid of the reflection_info field, add
	a GC handle instead. This is a bit slower to access, but avoids burdening the
	GC with 100s of individual roots.

	* reflection.c (mono_class_get_ref_info):
	(mono_class_set_ref_info):
	(mono_class_free_ref_info): New internal helper fuctions.

	* reflection.c appdomain.c icall.c class.c: Use the new helper functions instead
	of accessing klass->reflection_info directly.

	* sgen-gc.c (alloc_complex_descriptor): Fix the computation of the number of
	words.

	* gc.c (alloc_handle): Create a GC descriptor for the 'entries' array, free
	the previous array.

svn path=/trunk/mono/; revision=152649
2010-03-01 02:44:27 +00:00
Robert Jordan e161141b3a 2010-03-01 Robert Jordan <[email protected]>
* Makefile.am: fix the non-static build. 


svn path=/trunk/mono/; revision=152647
2010-03-01 00:29:28 +00:00
Rodrigo Kumpera cbbafe38ce 2010-02-28 Rodrigo Kumpera <[email protected]>
* CustomAttributeData.cs:
	* ExceptionHandlingClause.cs:
	* LocalVariableInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=152645
2010-03-01 00:24:12 +00:00
Rodrigo Kumpera 28d40b60f6 2010-02-28 Rodrigo Kumpera <[email protected]>
* Type.cs: Forgot a pair of #if NET_4_0.

svn path=/trunk/mcs/; revision=152644
2010-03-01 00:24:03 +00:00
Jonathan Pryor c537fef23f * Monodoc/provider.cs: Add
RootTree.LoadTree(string,string,IEnumerable) for compatibility with
	  Mono 2.6's monodoc.dll.

svn path=/trunk/mcs/; revision=152640
2010-02-28 23:28:03 +00:00
Miguel de Icaza 5010b0555d 2010-02-09 Sebastien Pouliot <[email protected]>
* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
	SymbolWriter source files directly into mscorlib 2.1

2010-02-02  Jérémie Laval  <[email protected]>

svn path=/trunk/mcs/; revision=152638
2010-02-28 23:05:17 +00:00
Gonzalo Paniagua Javier 73206a18b6 fix the windows build
svn path=/trunk/mono/; revision=152637
2010-02-28 23:02:31 +00:00
Gonzalo Paniagua Javier b85ffcf2a2 fix building the documentation
svn path=/trunk/mcs/; revision=152636
2010-02-28 22:57:03 +00:00
Miguel de Icaza c527bf0b3c 2010-02-09 Sebastien Pouliot <[email protected]>
* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
	SymbolWriter source files directly into mscorlib 2.1

svn path=/trunk/mcs/; revision=152635
2010-02-28 22:47:20 +00:00
Miguel de Icaza 0529e1551c 2010-02-28 Miguel de Icaza <[email protected]>
* docs/Makefile: install during the 4.0 build now.

svn path=/trunk/mcs/; revision=152634
2010-02-28 22:35:37 +00:00
Miguel de Icaza 8b4772d689 2010-02-28 Miguel de Icaza <[email protected]>
* Makefile: Process `docs' now on the 4.0 profile.

svn path=/trunk/mcs/; revision=152633
2010-02-28 22:34:36 +00:00
Miguel de Icaza 19f7036c01 2010-02-28 Miguel de Icaza <[email protected]>
* Decimal.cs: Enabling the unmanaged double to decimal and float
	to decimal conversions code again as I am unable to find any
	regressions in corlib, System.Data, the Silverlight test suite or
	Rotor's test suite.

	I am enabling it hoping that we can find the original problem that
	lead us to use the slow path.



svn path=/trunk/mcs/; revision=152632
2010-02-28 22:08:26 +00:00
Zoltan Varga fa6c3b3cb9 2010-02-28 Zoltan Varga <[email protected]>
* marshal.c (get_runtime_invoke_type): Avoid sharing byref with I, as the latter
	needs an indirection.

svn path=/trunk/mono/; revision=152630
2010-02-28 20:57:05 +00:00
Miguel de Icaza 5816858a38 Another 4.0 switch fix
svn path=/trunk/mcs/; revision=152629
2010-02-28 20:38:28 +00:00
Miguel de Icaza af72b6e7e0 Fix the 1.0 dropping
svn path=/trunk/mcs/; revision=152628
2010-02-28 20:23:17 +00:00
Miguel de Icaza 989bf15351 Fix the basic build
svn path=/trunk/mcs/; revision=152627
2010-02-28 18:08:38 +00:00
Gonzalo Paniagua Javier 52e95a310a 2010-02-28 Gonzalo Paniagua Javier <[email protected]>
* CultureNotFoundException.cs: new 4.0 type.
	* CultureTypes.cs: add [Obsolete] for 2 values.
	* TimeSpanStyles.cs: new 4.0 enum.


svn path=/trunk/mcs/; revision=152626
2010-02-28 18:00:18 +00:00
Miguel de Icaza 6f21343e0c Fix the build
svn path=/trunk/mcs/; revision=152625
2010-02-28 17:43:38 +00:00
Jonathan Pryor f83cf88714 * Mono.Documentation/webdoc.cs: Add --use-system-sources option so
that 'mdoc export-html-webdoc' will use the system-installed sources
	  in addition to any -r'd sources (which was the behavior 2 commits
	  ago).

svn path=/trunk/mcs/; revision=152623
2010-02-28 17:24:00 +00:00
Miguel de Icaza 38e0dec97a 2010-02-28 Miguel de Icaza <[email protected]>
*Mono.Security.Protocol.Tls/HttpsClientStream.cs,
        Mono.Security.Protocol.Tls/SslStreamBase.cs,
        Mono.Security.X509/PKCS12.cs,
        Mono.Security.X509/X509Certificate.cs,
        Mono.Security.Cryptography/RSAManaged.cs,
        Mono.Security.Cryptography/SymmetricTransform.cs,
        Mono.Security/ASN1Convert.cs: Drop the pre-NET 2.0 support.


svn path=/trunk/mcs/; revision=152622
2010-02-28 16:28:11 +00:00
Miguel de Icaza 7bc2fd4e24 Default should not be to debug
svn path=/trunk/mcs/; revision=152621
2010-02-28 04:44:22 +00:00
Rodrigo Kumpera caec88673d 2010-02-27 Rodrigo Kumpera <[email protected]>
* AggregateException.cs: Fix ctor vibility.

	* Type.cs: IsEnum and IsSerializable are virtual
	properties now.

	* Tuple.cs: Fix Tuple'8 Create method.

svn path=/trunk/mcs/; revision=152618
2010-02-28 00:46:55 +00:00
Robert Jordan f2062c1ef9 In corlib/System.Runtime.Remoting.Proxies:
2010-02-28  Robert Jordan  <[email protected]>

	* RealProxy.cs (PrivateInvoke): BeginInvoke return messages
	do not have out args (by design). The issue has existed for many
	years but it was invisible because mono_delegate_begin_invoke ()
	has swallowed exceptions, which was fixed by Gonzalo in r141856.
	Fixes a couple of disabled remoting tests (#576618).

In System.Runtime.Remoting/Test:
2010-02-28  Robert Jordan  <[email protected]>

	* BaseCalls.cs: Enable tests again. See bug #576618.


svn path=/trunk/mcs/; revision=152616
2010-02-27 23:18:52 +00:00
Miguel de Icaza 50083a3cd8 2010-02-27 Miguel de Icaza <[email protected]>
* OSX509Certificates.cs: Add support to validate X509 certificate
	chains using the OSX certificates API.



svn path=/trunk/mcs/; revision=152615
2010-02-27 23:16:29 +00:00
Rodrigo Kumpera 58adf06ca9 2010-02-27 Rodrigo Kumpera <[email protected]>
* UIntPtr.cs: Add some v4 custom attributes.

svn path=/trunk/mcs/; revision=152613
2010-02-27 22:09:34 +00:00
Rodrigo Kumpera d0be1ad60f 2010-02-27 Rodrigo Kumpera <[email protected]>
* Float.cs: New v4 operators.

svn path=/trunk/mcs/; revision=152612
2010-02-27 22:09:26 +00:00
Rodrigo Kumpera 0f6b53a549 2010-02-27 Rodrigo Kumpera <[email protected]>
* IntPtr.cs: Add some v4 custom attributes.

svn path=/trunk/mcs/; revision=152611
2010-02-27 22:09:17 +00:00
Rodrigo Kumpera d281f62f3d 2010-02-27 Rodrigo Kumpera <[email protected]>
* Double.cs: New v4 operators.

svn path=/trunk/mcs/; revision=152610
2010-02-27 22:09:08 +00:00
Rodrigo Kumpera 6e05ab9396 2010-02-27 Rodrigo Kumpera <[email protected]>
* Type.cs: Make cor-compare happy.

2010-02-27 Rodrigo Kumpera  <[email protected]>

	* Evidence.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=152609
2010-02-27 22:08:59 +00:00
Miguel de Icaza 8940662d9e Fix crasher
svn path=/trunk/mcs/; revision=152608
2010-02-27 20:32:28 +00:00
Miguel de Icaza 233ead7a7a Couple of extra fixes
svn path=/trunk/mono/; revision=152607
2010-02-27 18:39:14 +00:00
Miguel de Icaza 6f60c54d7e One fix
svn path=/trunk/mono/; revision=152606
2010-02-27 17:56:26 +00:00
Miguel de Icaza d7df93989a Move most stuff to the 4.0 profile
svn path=/trunk/mcs/; revision=152605
2010-02-27 17:47:21 +00:00
Miguel de Icaza 614ba92383 Install security tools on 4.0
svn path=/trunk/mcs/; revision=152604
2010-02-27 17:42:15 +00:00
Miguel de Icaza b9b45a88d5 Update
svn path=/trunk/mcs/; revision=152602
2010-02-27 04:17:33 +00:00
Marek Habersack 07adce6380 2010-02-27 Marek Habersack <[email protected]>
* HttpRuntime.cs: added internal property DomainUnloading.

	* HttpApplication.cs: when app domain is unloading, catch
	ThreadAbortExceptions and reset the abort.

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

	* BuildManager.cs: count only builds of updated files before
	unloading the app domain. Fixes bug #581459

svn path=/trunk/mcs/; revision=152600
2010-02-27 02:57:44 +00:00
Miguel de Icaza 8d511bdc7d 2010-02-26 Miguel de Icaza <[email protected]>
* Make the scripts default to 4.0 now.

2009-05-21  Miguel de Icaza  <[email protected]>

svn path=/trunk/mono/; revision=152599
2010-02-26 23:41:18 +00:00
Rodrigo Kumpera 756c02655b 2010-02-26 Rodrigo Kumpera <[email protected]>
* AssemblyTest.cs: Fix test under v4.

	* MonoGenericClassTest.cs: Ditto.

svn path=/trunk/mcs/; revision=152598
2010-02-26 23:08:15 +00:00
Rodrigo Kumpera ab20cdcd62 2010-02-26 Rodrigo Kumpera <[email protected]>
* LazyTest.cs: Add tests for lazy modes.

svn path=/trunk/mcs/; revision=152597
2010-02-26 23:08:07 +00:00
Rodrigo Kumpera 1c0746adf3 2010-02-26 Rodrigo Kumpera <[email protected]>
* Lazy.cs: Implement all lazy modes.

svn path=/trunk/mcs/; revision=152596
2010-02-26 23:07:58 +00:00
Rodrigo Kumpera fa709be535 2010-02-26 Rodrigo Kumpera <[email protected]>
* PropertyInfo.cs: Small hack to avoid having cor-compare
	flagging Get(Raw)ConstantValue as not implemented.

svn path=/trunk/mcs/; revision=152595
2010-02-26 23:07:49 +00:00
Rodrigo Kumpera e8e247d311 2010-02-26 Rodrigo Kumpera <[email protected]>
* LazyThreadSafetyMode.cs: Added.

svn path=/trunk/mcs/; revision=152594
2010-02-26 23:07:41 +00:00
Rodrigo Kumpera 55c12124bb 2010-02-26 Rodrigo Kumpera <[email protected]>
* ExecutionEngineException.cs: Type is obsolete.

svn path=/trunk/mcs/; revision=152593
2010-02-26 23:07:28 +00:00
Jonathan Pryor 408ca548a6 * Mono.Documentation/assembler.cs: Allow other apps to get the same
'--format' logic, specifically 'mdoc export-html-webdoc'.
	* Mono.Documentation/webdoc.cs: Allow it to be more "stand-alone".
	  Previously, it would depend upon the system-wide .source files.
	  This is bad, because you might want to generate the 'cache'
	  directory for a different installation, with a different set of
	  .tree/.zip/.source files, and you might not want to replace your own
	  and/or you often forget, as is the case with me.  Instead, allow a 
	  format to be specified for .tree files, and allow additional .source 
	  files to be referenced so that extension methods will be found within
	  the specified sources.  This allows for a "stand-alone" method of 
	  operation w/o depending upon the system-wide .source files.

svn path=/trunk/mcs/; revision=152590
2010-02-26 22:33:07 +00:00
Robert Jordan e98ad4746f 2010-02-26 Robert Jordan <[email protected]>
* Remove MonoHttp (NET_1_1) from the build.


svn path=/trunk/mcs/; revision=152589
2010-02-26 22:30:47 +00:00
Jonathan Pryor 94bc963b5d * Makefile: Add a System.Core.dll reference; embed monodoc.xml as a
resource.
	* Monodoc/provider.cs: Add a
	  RootTree.LoadTree(string,XmlDocument,IEnumerable<string>) method.
	  This is so 'mdoc export-html-webdoc' doesn't need to rely on the
	  system-wide .source files (allowing execution w/o changing/replacing
	  the system-wide .source files) and so MonoDevelop can support
	  multiple .source files spread throughout the system sanely.
	* Monodoc/ecma-provider.cs: Always add the extension methods contained
	  in the current EcmaHelpSource, instead of implicitly requiring that
	  the current EcmaHelpSource also be contained within
	  RootTree.HelpSources.  This simplifies logic in 'mdoc'.

svn path=/trunk/mcs/; revision=152587
2010-02-26 22:26:46 +00:00
Rodrigo Kumpera 751adf3797 2010-02-22 Rodrigo Kumpera <[email protected]>
* mini.c (inline_method): Check for loader errors.

svn path=/trunk/mono/; revision=152586
2010-02-26 22:16:59 +00:00
Zoltan Varga eea27cd079 2010-02-26 Zoltan Varga <[email protected]>
* mini-generic-sharing.c: Move the contents of ../metadata/generic-sharing.c
	here.

svn path=/trunk/mono/; revision=152584
2010-02-26 20:46:58 +00:00
Zoltan Varga c644af730b 2010-02-26 Zoltan Varga <[email protected]>
* generic-sharing.c: Removed, moved its contents to mini/mini-generic-sharing.c,
	so all generic sharing code is in one place.

svn path=/trunk/mono/; revision=152583
2010-02-26 20:46:51 +00:00
Zoltan Varga 8d66a614bc 2010-02-26 Zoltan Varga <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Fix the last change so
	we don't call setup_interface_offsets () for unfinished types.

svn path=/trunk/mono/; revision=152580
2010-02-26 20:30:11 +00:00
Robert Jordan 6ffb4366fc 2010-02-26 Robert Jordan <[email protected]>
* ObjectReader.cs (ReadType, GetDeserializationType):
	Add throwOnError parameter that specifies whether to throw an
 	exception if the type/assembly is not found.

	* ObjectReader.cs (ReadTypeMetadata): Ignore unresolvable
 	types while reading the type info. Fixes #430583.

	* ObjectReader.cs (GetDeserializationType): Rethrow caught
 	exceptions as SerializationExceptions.


svn path=/trunk/mcs/; revision=152579
2010-02-26 20:24:43 +00:00
Zoltan Varga 721d6efd14 2010-02-26 Zoltan Varga <[email protected]>
* class.c (mono_class_generic_sharing_enabled): Move this to
	generic-sharing.c.

svn path=/trunk/mono/; revision=152577
2010-02-26 20:04:35 +00:00
Robert Jordan d3edf1cd53 2010-02-26 Robert Jordan <[email protected]>
* ObjRef.cs (GetRealObject): Refine to server type only when
	necessary. Fixes #504886.


svn path=/trunk/mcs/; revision=152576
2010-02-26 20:01:33 +00:00
Zoltan Varga b9b40732bc 2010-02-26 Zoltan Varga <[email protected]>
* image.c: Add an unload hook which is called before an image is unloaded.

	* generic-sharing.c: Use the unload hook to unregister per-image data, to avoid
	metadata.c having to depend on generic sharing.

svn path=/trunk/mono/; revision=152575
2010-02-26 19:59:08 +00:00
Robert Jordan 4e6ba56b11 2010-01-19 Tom Hindle <[email protected]>
* ComInteropProxy.cs: Don't add proxy if it has already been added. 
	Instread increment ref_count. Fixes bug #572043.


svn path=/trunk/mcs/; revision=152571
2010-02-26 19:18:32 +00:00
Paolo Molaro d0d60dc625 Fri Feb 26 19:23:18 CET 2010 Paolo Molaro <[email protected]>
* class.c: reduce size of ridiculously large cache.


svn path=/trunk/mono/; revision=152569
2010-02-26 18:50:23 +00:00
Robert Jordan c222f10f44 2010-02-26 Robert Jordan <[email protected]>
* tasklets.c (continuation_store): Return from an error condition
	immediately.


svn path=/trunk/mono/; revision=152562
2010-02-26 17:59:22 +00:00
Martin Baulig 507a88e172 Set vtable->init_aborted' if we hit a ThreadAbortException' in the class .cctor.
2010-02-26  Martin Baulig  <[email protected]>

	* class-internals.h (MonoVTable): Added `init_aborted'.

	* object.c
	(mono_runtime_class_init_full): Set `vtable->init_aborted' in
	addition to `vtable->init_failed' if we hit a `ThreadAbortException'
	while running the class .cctor and reset `init_failed' next time
	we're called.

svn path=/trunk/mono/; revision=152558
2010-02-26 17:33:31 +00:00
Martin Baulig 1129d5684e Add runtime support to abort a mono_debugger_runtime_invoke().
2010-02-26  Martin Baulig  <[email protected]>

	* debug-debugger.c (MonoDebuggerInfo): Added `abort_runtime_invoke'.

	* debug-mini.c
	(MonoDebuggerThreadInfo): Added `internal_flags'.
	(MonoDebuggerInternalThreadFlags): New enum.
	(_mono_debugger_throw_exception): Don't signal the debugger if a
	type abort was requested.
	(_mono_debugger_unhandled_exception): Likewise.
	(mono_debugger_abort_runtime_invoke): New method to abort an invocation.
	(mono_debugger_runtime_invoke): If the debugger requested a thread
	abort during the invocation, reset it here.

svn path=/trunk/mono/; revision=152557
2010-02-26 17:33:21 +00:00
Martin Baulig 67c8ab0d92 Use MonoInternalThread *' instead of MonoThread *'.
2010-02-26  Martin Baulig  <[email protected]>

	* debug-mini.c (MonoDebuggerThreadInfo): Use `MonoInternalThread *'
	instead of `MonoThread *'.

svn path=/trunk/mono/; revision=152556
2010-02-26 17:33:12 +00:00
Jb Evain 2a47c27c7c add credits where due
svn path=/trunk/mcs/; revision=152554
2010-02-26 16:11:26 +00:00
Jb Evain 7c27c831a7 2010-02-13 Jb Evain <[email protected]>
* Mono.Cecil/ReflectionReader.cs: don't cache everything
	that is context dependent.

svn path=/trunk/mcs/; revision=152553
2010-02-26 16:10:38 +00:00
Jb Evain 6be4b718a5 2010-02-13 Jb Evain <[email protected]>
* Mono.Cecil/MethodReturnType.cs: avoid creating an
	inner parameter if not necessary.

svn path=/trunk/mcs/; revision=152549
2010-02-26 14:43:05 +00:00
Rodrigo Kumpera 4e84b0f4c7 2010-02-26 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Test new v4 IsEnumDefined ().

svn path=/trunk/mcs/; revision=152526
2010-02-26 05:42:26 +00:00
Rodrigo Kumpera ea5aa5093f 2010-02-26 Rodrigo Kumpera <[email protected]>
* Type.cs: Implement new v4 IsEnumDefined ().

svn path=/trunk/mcs/; revision=152525
2010-02-26 05:42:18 +00:00
Rodrigo Kumpera ca99db693b 2010-02-24 Rodrigo Kumpera <[email protected]>
* TaskContinuationOptions.cs: Use RC values.

	* TaskCreationOptions.cs: Ditto.

svn path=/trunk/mcs/; revision=152524
2010-02-26 05:41:56 +00:00
Atsushi Eno d7a25cf1a4 2010-02-26 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs, ServiceProxyGenerator.cs:
	  make them public and add Contract property for service callback
	  proxies too for the same reason.

	* InputOrReplyRequestProcessor.cs : now ServiceRuntimeChannel is
	  moved to fake public namespace.


svn path=/trunk/mcs/; revision=152523
2010-02-26 05:12:22 +00:00
Zoltan Varga 3b035d487f 2010-02-26 Zoltan Varga <[email protected]>
* class.c (get_implicit_generic_array_interfaces): Call
	mono_class_setup_interface_offsets () before accessing
	eclass->interface_offsets_count. This only shows up on platforms without IMT for
	some reason.

svn path=/trunk/mono/; revision=152521
2010-02-26 02:50:27 +00:00
Atsushi Eno f78ff5faab 2010-02-26 Atsushi Enomoto <[email protected]>
* ClientProxyGenerator.cs : type cache should be like this
	  (by kumpera).


svn path=/trunk/mcs/; revision=152520
2010-02-26 02:45:49 +00:00
Atsushi Eno 85d5738a04 2010-02-26 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs:
	  Add disabled code, enabled by -d:USE_OD_REFERENCE_IN_PROXY:

	  In generated proxy, avoid using GetCurrentMethod() and pass
	  interface methods to the base ClientRuntimeChannel.

	  (Disabled by default for breakage at
	   CallbackBehaviorAttributeTest.CallbackExample1.)


svn path=/trunk/mcs/; revision=152519
2010-02-26 01:34:41 +00:00
Zoltan Varga b97071904a 2010-02-26 Zoltan Varga <[email protected]>
* Connection.cs: Throw a NotSupportedException if the protocol version doesn't
	support the caught/uncaught flags in an exception modifier.

svn path=/trunk/mcs/; revision=152514
2010-02-26 00:38:35 +00:00
Atsushi Eno 59f97b9384 2010-02-26 Atsushi Enomoto <[email protected]>
* ServiceRuntimeChannel.cs, DuplexChannelFactory.cs,
	  DuplexClientRuntimeChannel.cs, ClientRuntimeChannel.cs,
	  ClientProxyGenerator.cs, ClientBase.cs : add workaround fix for
	  bug #571907, making [Duplex]ClientRuntimeChannel public.

	  Generated proxy type must be stored to not get GCed.


svn path=/trunk/mcs/; revision=152513
2010-02-25 23:32:14 +00:00
Geoff Norton 27a50631f4 2010-02-25 Geoff Norton <[email protected]>
* wait.c: If any of our handles are shared, we need to do
        a polling wait so we're notified of the signal change.

svn path=/trunk/mono/; revision=152511
2010-02-25 23:24:31 +00:00
Geoff Norton 71f7ab1509 Fix monodis on darwin
svn path=/trunk/mono/; revision=152510
2010-02-25 23:24:28 +00:00
Jérémie Laval 0e17041cfd 2010-02-25 Jérémie Laval <[email protected]>
In class/System/System.Threading/:
   * Barrier.cs: Fix NRE with postPhaseAction delegate
   Fix possible deadlock when removing participant(s)

svn path=/trunk/mcs/; revision=152503
2010-02-25 21:08:19 +00:00
Marek Habersack 3af7107765 Include Makefile in the tarball
svn path=/trunk/mcs/; revision=152488
2010-02-25 17:23:28 +00:00
Ivan Zlatev b7e5a421c3 2010-02-25 Ivan Zlatev <[email protected]>
* Control.cs: ControllCollaction IList implementation wasn't calling the
	Add implementation causing ParentChanged and all sorts of other events not to
	get fired.
	[Fixes bug #580042]

svn path=/trunk/mcs/; revision=152483
2010-02-25 16:20:41 +00:00
Ivan Zlatev ed9ba9d6a5 2010-02-25 Ivan Zlatev <[email protected]>
* DataGridView.cs: If we are setting a new data source and it is
	data bindable clear DataMember before binding.
	[Fixes bug #554296]

svn path=/trunk/mcs/; revision=152478
2010-02-25 15:30:15 +00:00
Rolf Bjarne Kvinge 366bd6dfec 2010-02-25 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: Emit DownloadProgressChanged events on the correct
	thread too.

svn path=/trunk/mcs/; revision=152474
2010-02-25 15:08:33 +00:00
Ivan Zlatev 1340ebced9 2010-02-25 Ivan Zlatev <[email protected]>
* DataGridViewCheckBoxCell.cs: Toggle the checkbox on Space key press.
	[Fixes bug #574259]

svn path=/trunk/mcs/; revision=152472
2010-02-25 14:49:44 +00:00
Paolo Molaro 2f35c5d46f Removed unused mono_setup_vtable_in_class_init.
svn path=/trunk/mono/; revision=152450
2010-02-25 11:28:49 +00:00
Paolo Molaro f7bcf06c19 Thu Feb 25 12:12:44 CET 2010 Paolo Molaro <[email protected]>
* environment.c, environment.h, icall.c: make the GetOSVersionString()
	icall internal.


svn path=/trunk/mono/; revision=152446
2010-02-25 11:13:52 +00:00
Paolo Molaro 54c3cd7172 Thu Feb 25 11:59:22 CET 2010 Paolo Molaro <[email protected]>
* mono-logger.h, Makefile.am: expose in the API the ability to
	set trace mask and level.
	* mono-logger-internal.h: new header for mono internal use.
	* mono-logger.c: fixed mono_trace_set_mask_string() to not change
	the passed string argument.


svn path=/trunk/mono/; revision=152444
2010-02-25 11:03:46 +00:00
Paolo Molaro 22c072ac46 Thu Feb 25 11:37:50 CET 2010 Paolo Molaro <[email protected]>
* metadata.c, metadata.h: make MONO_TYPE_IS* functional without
	direct access to the MonoType fields.


svn path=/trunk/mono/; revision=152442
2010-02-25 10:38:58 +00:00
Zoltan Varga 42bf90008d 2010-02-25 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_find_jit_info): Use a merge sort for sorting the
	code offsets table, as it is mostly sorted.

svn path=/trunk/mono/; revision=152431
2010-02-25 03:32:20 +00:00
Rodrigo Kumpera a98dc1dc5d 2010-02-24 Rodrigo Kumpera <[email protected]>
* MethodBody.cs: Add v4 bits.

svn path=/trunk/mcs/; revision=152428
2010-02-25 01:48:46 +00:00
Zoltan Varga 22a8afbbca 2010-02-25 Zoltan Varga <[email protected]>
* threads.h: Move some internal functions which were added to this header by
	mistake to threads-types.h.

svn path=/trunk/mono/; revision=152427
2010-02-25 01:29:55 +00:00
Zoltan Varga 5e5e025d88 Add a test.
svn path=/trunk/mono/; revision=152426
2010-02-25 01:09:07 +00:00
Zoltan Varga 5fda4c0130 2010-02-25 Zoltan Varga <[email protected]>
* debugger-agent.c (do_invoke_method): Fix invoking of static methods on vtypes.
	Fixes #582991.

svn path=/trunk/mono/; revision=152425
2010-02-25 01:09:00 +00:00
Zoltan Varga 96c463ac59 2010-02-25 Zoltan Varga <[email protected]>
* driver.c (mono_main): Get rid of mono_setup_vtable_in_class_init.

svn path=/trunk/mono/; revision=152422
2010-02-25 00:40:28 +00:00
Zoltan Varga b35d14bfd5 2010-02-25 Zoltan Varga <[email protected]>
* class.c (mono_class_init): Get rid of mono_setup_vtable_in_class_init.

svn path=/trunk/mono/; revision=152421
2010-02-25 00:40:21 +00:00
Rodrigo Kumpera 142c7003ff 2010-02-24 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Test new v4 GetEnumValue ().

svn path=/trunk/mcs/; revision=152420
2010-02-25 00:33:56 +00:00
Rodrigo Kumpera fb4ad58a82 2010-02-24 Rodrigo Kumpera <[email protected]>
* Type.cs: Implement new v4 GetEnumValue ().

svn path=/trunk/mcs/; revision=152419
2010-02-25 00:33:48 +00:00
Rodrigo Kumpera bc587b9c06 2010-02-24 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Test new v4 GetEnumValues ().

svn path=/trunk/mcs/; revision=152418
2010-02-25 00:33:39 +00:00
Rodrigo Kumpera 15499c9601 2010-02-24 Rodrigo Kumpera <[email protected]>
* Type.cs: Implement new v4 GetEnumValues ().

	* MonoType.cs: Ditto.

svn path=/trunk/mcs/; revision=152417
2010-02-25 00:33:31 +00:00
Marek Habersack fe877b028d Fix the build
svn path=/trunk/mcs/; revision=152383
2010-02-24 18:32:15 +00:00
Marek Habersack f694564bc3 2010-02-24 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: added support for session state
    	compression (4.0)

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

    	* SessionStateSection.cs: implemented 4.0 properties -
    	CompressionEnabled and SqlConnectionRetryInterval

svn path=/trunk/mcs/; revision=152378
2010-02-24 17:33:54 +00:00
Miguel de Icaza e56c84fd2d Add
svn path=/trunk/mono/; revision=152377
2010-02-24 17:20:32 +00:00
Paolo Molaro 6935523cbe Wed Feb 24 17:45:27 CET 2010 Paolo Molaro <[email protected]>
* class-internals.h, class.h, object.h: make MonoRemoteClass
	and mono_remote_class() internal.


svn path=/trunk/mono/; revision=152373
2010-02-24 16:46:41 +00:00
Paolo Molaro 35d2e67267 No need to use -release.
svn path=/trunk/mono/; revision=152371
2010-02-24 16:25:18 +00:00
Paolo Molaro 706401aecd Wed Feb 24 17:05:18 CET 2010 Paolo Molaro <[email protected]>
* metadata-internals.h, class-internals.h, metadata.h: make the
	MonoType guts internal as well.


svn path=/trunk/mono/; revision=152366
2010-02-24 16:06:38 +00:00
Paolo Molaro f85e6c20bf Fix warnings after API changes.
svn path=/trunk/mono/; revision=152365
2010-02-24 16:00:15 +00:00
Paolo Molaro de13cf1ebf Wed Feb 24 15:55:31 CET 2010 Paolo Molaro <[email protected]>
* Makefile.am, mono-cov.c, mono-profiler-logging.c,
	mono-profiler-aot.c: update to the new API/ABI.


svn path=/trunk/mono/; revision=152361
2010-02-24 15:20:39 +00:00
Paolo Molaro 9ff04892ae Wed Feb 24 15:58:03 CET 2010 Paolo Molaro <[email protected]>
* Makefile.am: build the new ABI version of the libmono library.
	* debugger-agent.c, mini.c: fix warnings with the new API.
	* jit.h: don't depend on glib.h being included.


svn path=/trunk/mono/; revision=152360
2010-02-24 15:20:14 +00:00
Paolo Molaro 008962211a Wed Feb 24 15:56:52 CET 2010 Paolo Molaro <[email protected]>
* Makefile.am, monograph.c: update to the new API/ABI.


svn path=/trunk/mono/; revision=152359
2010-02-24 15:20:02 +00:00
Paolo Molaro 35a348e0b8 Wed Feb 24 16:00:56 CET 2010 Paolo Molaro <[email protected]>
* Makefile.am: link to the new libmono version.


svn path=/trunk/mono/; revision=152358
2010-02-24 15:19:48 +00:00
Paolo Molaro 8c3df7bf87 Wed Feb 24 16:02:42 CET 2010 Paolo Molaro <[email protected]>
* reflection.h: the MonoTypeNameParse guts are internal now.
	* assembly.c, assembly.h, image.h: the MonoAssemblyName guts
	are internal now, provide accessors as needed.
	* metadata.h, metadata-internals.h: the MonoMethodSignature
	guts are internal now.
	* Makefile.am: mempool.h is an internal header now.
	* *.h, *.c: remove glib.h usage from the public headers.


svn path=/trunk/mono/; revision=152357
2010-02-24 15:19:35 +00:00
Paolo Molaro 9e1f34dd2d Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* confiure.in, data/mono-2.pc.in, data/Makefile.am,
	samples/embed/*: increase the API version.


svn path=/trunk/mono/; revision=152356
2010-02-24 15:19:21 +00:00
Paolo Molaro 8c30681105 Wed Feb 24 15:50:55 CET 2010 Paolo Molaro <[email protected]>
* mono-publib.h, mono-publib.c: new public header file to allow
	the removal of gli from the other public headers.
	* Makefile.am: install only the public header mono-publib.h.


svn path=/trunk/mono/; revision=152355
2010-02-24 15:16:04 +00:00
Paolo Molaro ed79524020 Wed Feb 24 16:01:37 CET 2010 Paolo Molaro <[email protected]>
* Makefile.am: don't install the headers anymore, they are private.


svn path=/trunk/mono/; revision=152354
2010-02-24 15:15:03 +00:00
Marek Safar affbc07ce9 New test.
svn path=/trunk/mcs/; revision=152346
2010-02-24 10:45:41 +00:00
Marek Safar 43413541e5 2010-02-24 Marek Safar <[email protected]>
A fix for bug #582579
	* decl.cs (IsExposedFromAssembly): Use PartialContainer for parent
	modifiers.


svn path=/trunk/mcs/; revision=152345
2010-02-24 10:45:00 +00:00
Marek Safar 8815458257 New test.
svn path=/trunk/mcs/; revision=152344
2010-02-24 10:13:24 +00:00
Marek Safar bb8ee090fc 2010-02-24 Marek Safar <[email protected]>
A fix for bug #581804
	* ecore.cs: Fixed type comparison.


svn path=/trunk/mcs/; revision=152343
2010-02-24 10:12:44 +00:00
Atsushi Eno a7b1a7ee44 2010-02-24 Atsushi Enomoto <[email protected]>
* JsonWriter.cs : write NaN, INF, -INF as JSON string, not JSON number.
	  Fixed bug #573691.


svn path=/trunk/mcs/; revision=152342
2010-02-24 09:46:11 +00:00
Atsushi Eno 945c4b278d 2010-02-24 Atsushi Enomoto <[email protected]>
* culture-info-table.h : regenerated.


svn path=/trunk/mono/; revision=152340
2010-02-24 08:19:48 +00:00
Atsushi Eno a713deed8b 2010-02-24 Atsushi Enomoto <[email protected]>
* supp/ns_BE.xml : add number format. Fixed bug #324019.


svn path=/trunk/mono/; revision=152339
2010-02-24 08:18:51 +00:00
Zoltan Varga f493a4265f 2010-02-24 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Implement AOT support for fast TLS access.

svn path=/trunk/mono/; revision=152330
2010-02-24 05:01:27 +00:00
Zoltan Varga e4abb3281f 2010-02-24 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Implement support for fast access to
	ThreadStatic variables.

svn path=/trunk/mono/; revision=152328
2010-02-24 04:16:26 +00:00
Zoltan Varga d56db9ae67 2010-02-24 Zoltan Varga <[email protected]>
* debugger-agent.c (notify_thread): Skip terminated threads, since their tls
	data is not freed yet. Fixes #582460.

svn path=/trunk/mono/; revision=152324
2010-02-24 02:19:41 +00:00
Geoff Norton 3cdfed9976 fix the build on osx
svn path=/trunk/mono/; revision=152315
2010-02-24 00:56:09 +00:00
Gonzalo Paniagua Javier 5ad34291fc 2010-02-23 Gonzalo Paniagua Javier <[email protected]>
* ResXResourceReader.cs: handle resource file comments.
	Patch by Jeffrey Alvarez. Bug #582440 fixed.


svn path=/trunk/mcs/; revision=152305
2010-02-23 22:12:06 +00:00
Rodrigo Kumpera 2c6918447f 2010-02-23 Rodrigo Kumpera <[email protected]>
* Type.cs: Use the right kind of annotations.

svn path=/trunk/mcs/; revision=152300
2010-02-23 20:44:58 +00:00
Rodrigo Kumpera 016d411568 2010-02-23 Rodrigo Kumpera <[email protected]>
* TaskTest.cs: Disable this since it deadlock corlib suite 100%
	* of the times.

svn path=/trunk/mcs/; revision=152298
2010-02-23 20:17:54 +00:00
Rodrigo Kumpera 4052748919 2010-02-23 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Test new v4 GetEnumNames ().

svn path=/trunk/mcs/; revision=152297
2010-02-23 20:17:45 +00:00
Rodrigo Kumpera 4f4eada19d 2010-02-23 Rodrigo Kumpera <[email protected]>
* Type.cs:  Implement new v4 GetEnumNames ().

svn path=/trunk/mcs/; revision=152296
2010-02-23 20:17:36 +00:00
Jérémie Laval 0c25b8b519 2010-02-23 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/:
   * Task.cs: Fix for continuation processing not happening
   in case of Faulted or Canceled.

svn path=/trunk/mcs/; revision=152290
2010-02-23 19:58:25 +00:00
Marek Habersack 9cbf40afd2 2010-02-23 Marek Habersack <[email protected]>
* CachedVaryBy.cs: made serializable for 4.0+ (necessary for
	extensible output caching)

svn path=/trunk/mcs/; revision=152288
2010-02-23 19:48:06 +00:00
Sebastien Pouliot f037f02074 2010-02-23 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Accept and ContentType properties do not
	behave like Silverlight 2.0 (not related to browser/client stacks)
	* WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
	related to browser/client stacks)
	* WebRequest_2_1.cs: Fix registration to work on domains (new) 
	and scheme (more correctly wrt new unit tests).


svn path=/trunk/mcs/; revision=152275
2010-02-23 16:25:29 +00:00
Carlos Alberto Cortez 801acc9e68 2010-02-23 Carlos Alberto Cortez <[email protected]>
* serial.cs: Add 921600 to the list of possible baud rates, and
	use it only if defined, as is not available in all the unix systems.
	Fixes #445520.


svn path=/trunk/mono/; revision=152262
2010-02-23 11:48:41 +00:00
Marek Safar 5688d1dee4 Zip tests.
svn path=/trunk/mcs/; revision=152261
2010-02-23 10:44:18 +00:00
Marek Safar 923e44a3cf 2010-02-23 Marek Safar <[email protected]>
* Enumerable.cs: Implement Zip.


svn path=/trunk/mcs/; revision=152260
2010-02-23 10:43:41 +00:00
Atsushi Eno 731b3d21a0 2010-02-23 Atsushi Enomoto <[email protected]>
* MetadataResolver.cs : fix BeginResolve() overloads and use
	  arguments as expected in Resolve().


svn path=/trunk/mcs/; revision=152259
2010-02-23 10:31:31 +00:00
Atsushi Eno c7526adee9 2010-02-23 Atsushi Enomoto <[email protected]>
* MetadataExchangeClient.cs : add missing members and implement some.


svn path=/trunk/mcs/; revision=152257
2010-02-23 09:55:20 +00:00
Carlos Alberto Cortez 27c4c7cbea 2010-02-23 Carlos Alberto Cortez <[email protected]>
* System_test.dll.sources: Add System.IO.Ports/SerialPortTest.cs.


svn path=/trunk/mcs/; revision=152256
2010-02-23 09:33:40 +00:00
Carlos Alberto Cortez f50cbcd016 In .:
2010-02-23  Carlos Alberto Cortez <[email protected]>

	* System.IO.Ports: New test directory.

In System.IO.Ports:
2010-02-23  Carlos Alberto Cortez <[email protected]>

	* SerialPortTest.cs: New file.


svn path=/trunk/mcs/; revision=152255
2010-02-23 09:30:31 +00:00
Carlos Alberto Cortez a98ec1c2e6 2010-02-23 Carlos Alberto Cortez <[email protected]>
* SerialPort.cs: DiscardNull should *not* report any error if the port
	is not open. We haven't implemented it yet, but added the needed
	comment in case we forget when actually implementing it.
	Fixes #512244.


svn path=/trunk/mcs/; revision=152254
2010-02-23 09:25:50 +00:00
Atsushi Eno 828daf152c 2010-02-23 Atsushi Enomoto <[email protected]>
* WsdlImporter.cs : handle soapAction in operation binding too.
	  Now it successfully generates proxy generation for Twitterlight:
	  http://twitterlight.claritycon.com/TwitterWebService.asmx?WSDL


svn path=/trunk/mcs/; revision=152245
2010-02-23 01:30:42 +00:00
Rodrigo Kumpera 18d8595662 2010-02-22 Rodrigo Kumpera <[email protected]>
* TypeTest.cs:  Test new v4 GetEnumUnderlyingType ().

svn path=/trunk/mcs/; revision=152242
2010-02-23 01:01:28 +00:00
Rodrigo Kumpera 659a1ee06e 2010-02-22 Rodrigo Kumpera <[email protected]>
* Type.cs:  Implement new v4 GetEnumUnderlyingType ().

svn path=/trunk/mcs/; revision=152241
2010-02-23 01:01:19 +00:00
Zoltan Varga 8bcfddd2dd 2010-02-23 Zoltan Varga <[email protected]>
* debugger-agent.c: Add support for the caught/uncaught flags on exception
	event requests. Bump protocol minor version.

svn path=/trunk/mono/; revision=152233
2010-02-23 00:23:56 +00:00
Atsushi Eno 8c0da0eaf8 2010-02-23 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  consider schemas in wsdl documents.


svn path=/trunk/mcs/; revision=152228
2010-02-22 23:29:07 +00:00
Carlos Alberto Cortez 60b099f810 2010-02-22 Carlos Alberto Cortez <[email protected]>
* MemoryStreamTest.cs: Add a new test for Capacity.


svn path=/trunk/mcs/; revision=152221
2010-02-22 22:26:42 +00:00
Rodrigo Kumpera 4266781e02 2010-02-22 Rodrigo Kumpera <[email protected]>
* Type.cs: Implement new v4 GetTypeCodeImpl ().

svn path=/trunk/mcs/; revision=152219
2010-02-22 22:24:46 +00:00
Carlos Alberto Cortez 8b0f2bebd5 2010-02-22 Carlos Alberto Cortez <[email protected]>
* MemoryStream.cs: When setting Capacity, don't create a new buffer if
	the new expected value is the same as the current one.


svn path=/trunk/mcs/; revision=152217
2010-02-22 22:23:49 +00:00
Zoltan Varga 2726803ae9 2010-02-22 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_long_opts): Handle OP_LCONV_TO_OVF_I8 here too.

svn path=/trunk/mono/; revision=152214
2010-02-22 22:16:34 +00:00
Zoltan Varga 4337fae827 2010-02-22 Zoltan Varga <[email protected]>
* decompose.c (mono_decompose_opcode): Handle OP_LCONV_TO_OVF_I8. Fixes
	#581950.

	* iltests.il.in: Add a test.

svn path=/trunk/mono/; revision=152213
2010-02-22 22:16:28 +00:00
Rodrigo Kumpera 6fefe9cfa4 2010-02-22 Rodrigo Kumpera <[email protected]>
* mini.c (mono_method_check_inlining): Use
	* !mono_method_get_header_summary
	instead of mono_method_get_header as it doesn't decode locals
	so the called method can have unresolved dependencies that will
	only be satisfied after the current method is JIT'd.

	Fixes #550968.

svn path=/trunk/mono/; revision=152205
2010-02-22 21:18:01 +00:00
Rodrigo Kumpera 1e965dd824 2010-02-22 Rodrigo Kumpera <[email protected]>
* metadata.c: Add mono_method_get_header_summary which returns
	* minimal
	information about the header of a method. This is the
information used
	by the inline oracle to reject methods.

	This method doesn't decode local variables and doesn't cache
it's result,
	so it should cause a minimal reduction in memory usage.

	* metadata-internals.h: Add MonoMethodHeaderSummary structure
	* and
	mono_method_get_header_summary.

svn path=/trunk/mono/; revision=152204
2010-02-22 21:17:53 +00:00
Jeffrey Stedfast 25192a4731 2010-02-22 Jeffrey Stedfast <[email protected]>
* threads.c (mono_thread_exit): Make sure that the main thread is
	non-null before dereferencing it.


svn path=/trunk/mono/; revision=152200
2010-02-22 20:17:23 +00:00
Gonzalo Paniagua Javier 4939bee1d4 avoid warning when building with sgen enabled
svn path=/trunk/mono/; revision=152197
2010-02-22 18:42:59 +00:00
Gonzalo Paniagua Javier 04cbd04de1 avoid warning when building with sgen enabled
svn path=/trunk/mono/; revision=152196
2010-02-22 18:42:21 +00:00
Atsushi Eno 7f31faa8f4 2010-02-22 Atsushi Enomoto <[email protected]>
* MetadataExchangeClient.cs, MetadataExchangeBindings.cs:
	  support https.


svn path=/trunk/mcs/; revision=152167
2010-02-22 09:46:36 +00:00
Atsushi Eno f69b25e294 2010-02-22 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : fix duplicate output.


svn path=/trunk/mcs/; revision=152160
2010-02-22 08:03:58 +00:00
Zoltan Varga 81d967fb86 2010-02-22 Zoltan Varga <[email protected]>
* obj_map.c (GC_add_map_entry): Speed this up for the common case where
	GC_register_displacement () was never called.

svn path=/trunk/mono/; revision=152155
2010-02-22 01:19:53 +00:00
Zoltan Varga 62727c3555 2010-02-22 Zoltan Varga <[email protected]>
* basic.cs (test_0_div_opt): Speed this up a bit.

svn path=/trunk/mono/; revision=152154
2010-02-22 01:19:46 +00:00
Geoff Norton adb3c81e26 2010-02-21 Geoff Norton <[email protected]>
* Makefile.am: Add CoreFoundation linkage on darwin to properly get the current
        locale.
        * locaes.c: When running on darwin, try to get the local from CoreFoundation
        before falling back to the posix lookup.

svn path=/trunk/mono/; revision=152152
2010-02-21 22:11:11 +00:00
Geoff Norton 5ef0937376 Remove Info.plist from trunk since SDB is the recommended debugging solution, add CoreFoundation linkage for the new locale patch
svn path=/trunk/mono/; revision=152151
2010-02-21 22:11:07 +00:00
Geoff Norton df9d2cd71d Lets ensure we generate some types in AOT when using these valuetypes for MonoTouch
svn path=/trunk/mcs/; revision=152150
2010-02-21 21:00:25 +00:00
Zoltan Varga 9bbef273f8 Fix arm build.
svn path=/trunk/mono/; revision=152148
2010-02-21 19:47:28 +00:00
Geoff Norton 601bca785f 2010-02-20 Geoff Norton <[email protected]>
* XmlInputStream.cs: Disable this codepath on monotouch.  Fixes
        #562155

svn path=/trunk/mcs/; revision=152143
2010-02-20 20:27:04 +00:00
Zoltan Varga 24b7e430f7 2010-02-20 Zoltan Varga <[email protected]>
* versioninfo.c (VerLanguageName): Remove code duplication a bit.

svn path=/trunk/mono/; revision=152141
2010-02-20 19:12:47 +00:00
Zoltan Varga 99f21a26a1 2010-02-20 Zoltan Varga <[email protected]>
* mini-amd64.c: Fix DISABLE_JIT support after the latest changes.

svn path=/trunk/mono/; revision=152140
2010-02-20 19:09:59 +00:00
Geoff Norton f226ebb35d Really add cairo to the monotouch build
svn path=/trunk/mcs/; revision=152139
2010-02-20 19:03:55 +00:00
Geoff Norton 83e5b68304 remove some spew
svn path=/trunk/mcs/; revision=152138
2010-02-20 19:03:51 +00:00
Geoff Norton 394e193486 Add Mono.Cairo to monotouch
svn path=/trunk/mcs/; revision=152137
2010-02-20 19:03:47 +00:00
Geoff Norton c59112aaad Disable entry points that are not available on the iphone
svn path=/trunk/mcs/; revision=152136
2010-02-20 19:03:43 +00:00
Geoff Norton f3679e455e Ensure we start the WWAN for web connections in MonoTouch
svn path=/trunk/mcs/; revision=152135
2010-02-20 19:03:39 +00:00
Geoff Norton 0c6927538b Fix the MonoTouch build on trunk
svn path=/trunk/mcs/; revision=152134
2010-02-20 19:03:27 +00:00
Zoltan Varga 6747b2ed80 Fix previous change.
svn path=/trunk/mono/; revision=152126
2010-02-20 18:42:42 +00:00
Zoltan Varga 076425a36b 2010-02-20 Zoltan Varga <[email protected]>
* mini.c (mono_jit_create_remoting_trampoline): Call
	mono_create_specific_trampoline () instead of
	mono_arch_create_specific_trampoline ().

	* mini-trampolines.c tramp-arm.c: Disable more stuff when DISABLE_JIT is set.

svn path=/trunk/mono/; revision=152124
2010-02-20 18:41:18 +00:00
Zoltan Varga 994d27a5dd 2010-02-20 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_get_cie_program): New function, moved here from
	aot-compiler.c, so it can be found even if DISABLE_JIT is set.

	* aot-compiler.c xdebug.c: Update callers of mono_arch_unwind_get_cie_program ().

	* mini-amd64.c: Fix DISABLE_JIT support.

svn path=/trunk/mono/; revision=152123
2010-02-20 17:43:53 +00:00
Geoff Norton beb45e504b 2010-02-20 Geoff Norton <[email protected]>
* aot-runtime.c: Ensure we dont leak a held lock when unwinding exceptions.

svn path=/trunk/mono/; revision=152122
2010-02-20 17:35:30 +00:00
Gonzalo Paniagua Javier b243455a19 4.0
svn path=/trunk/mcs/; revision=152118
2010-02-20 07:35:54 +00:00
Miguel de Icaza 14b59d5c92 Update
svn path=/trunk/mcs/; revision=152116
2010-02-20 06:44:44 +00:00
Rodrigo Kumpera a7af173f41 2010-02-19 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Test new v4 behavior for Equals.

svn path=/trunk/mcs/; revision=152115
2010-02-20 03:53:54 +00:00
Rodrigo Kumpera 7a1b76133d 2010-02-19 Rodrigo Kumpera <[email protected]>
* Type.cs: Implement new v4 behavior for Equals.

svn path=/trunk/mcs/; revision=152114
2010-02-20 03:53:45 +00:00
Miguel de Icaza 95324c778b Add
svn path=/trunk/mono/; revision=152113
2010-02-20 01:25:50 +00:00
Zoltan Varga d97dd6f3d0 2010-02-20 Zoltan Varga <[email protected]>
* VirtualMachine.cs (CreateExceptionRequest): Add an overload taking two
	booleans which specify whenever to report caught/uncaught exceptions.

	* ExceptionRequest.cs: Add public properties for them.

	* Connections.cs: Pass the caught/uncaught flags to the debuggee. Bump protocol
	minor version.

svn path=/trunk/mcs/; revision=152110
2010-02-19 23:54:26 +00:00
Zoltan Varga 25d8988d24 2010-02-20 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_handle_exception): Receive two contexts,
	one for the throw and one for the catch. Mark uncaught exceptions by a NULL
	CATCH_TXT. Send normal exception events for unhandled exceptions too.
	(mono_debugger_agent_handle_unhandled_exception): Remove this, merged into
	handle_exception.

svn path=/trunk/mono/; revision=152108
2010-02-19 23:25:10 +00:00
Zoltan Varga ce3ace0b71 2010-02-19 Zoltan Varga <[email protected]>
* threads.c (mono_thread_suspend_all_other_threads): Ignore threads which have
	the DONT_MANAGE flag set.

svn path=/trunk/mono/; revision=152107
2010-02-19 22:58:37 +00:00
Gonzalo Paniagua Javier 7ee959e418 fix mac build
svn path=/trunk/mono/; revision=152106
2010-02-19 22:45:36 +00:00
Gonzalo Paniagua Javier 7a0a0b3c88 2010-02-19 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.h: enable the #defines when io-layer is in use.
	* Makefile.am: added new file.
	* mono-semaphore.c: new mono_sem_timedwait() function.


svn path=/trunk/mono/; revision=152100
2010-02-19 22:03:53 +00:00
Miguel de Icaza 6da677d5da Distribute autogen.sh
svn path=/trunk/mono/; revision=152099
2010-02-19 21:49:42 +00:00
Rodrigo Kumpera 0dc4c3880f 2010-02-19 Rodrigo Kumpera <[email protected]>
* domain.c: Remove old v1 version strings. Let the runtime
	default to 2.0 instead of failing because it can't find a
	working 1.0 instalation.

svn path=/trunk/mono/; revision=152098
2010-02-19 21:45:52 +00:00
Rodrigo Kumpera d63a9f5685 2010-02-19 Rodrigo Kumpera <[email protected]>
* domain.c: Add v4 RC version string.

svn path=/trunk/mono/; revision=152096
2010-02-19 21:15:16 +00:00
Miguel de Icaza 504bc54da9 * cs-parser.jay: Bubble completions after "from x in ?" and "from x
... let ?"



svn path=/trunk/mcs/; revision=152092
2010-02-19 20:51:28 +00:00
Rodrigo Kumpera ebfc3c3cfb 2010-02-19 Rodrigo Kumpera <[email protected]>
* mono-basic-block.c (mono_opcode_value_and_size): Use pointer
	variant of overflow checking function.

svn path=/trunk/mono/; revision=152085
2010-02-19 19:29:28 +00:00
Atsushi Eno c734797c3e 2010-02-19 Astushi Enomoto <[email protected]>
* Makefile: enable USE_DATA_CONTRACT_IMPORTER as
	  memorabilia.hardrock now works. (Will be removed when I remove
	  relevant code.)


svn path=/trunk/mcs/; revision=152080
2010-02-19 15:52:21 +00:00
Atsushi Eno 31bf347901 2010-02-19 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  Pick correct elements to import. Not wrapper elements but each
	  parameter and return value elements.


svn path=/trunk/mcs/; revision=152078
2010-02-19 15:46:55 +00:00
Atsushi Eno 74ad321492 2010-02-19 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  remove extra parameter passing.


svn path=/trunk/mcs/; revision=152076
2010-02-19 15:34:43 +00:00
Atsushi Eno 38b9e74ca6 2010-02-19 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : fix extension type name (and comment).


svn path=/trunk/mcs/; revision=152074
2010-02-19 14:53:13 +00:00
Alan McGovern 0aa2a239ed 2010-02-19 Alan McGovern <[email protected]>
* System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648
        that PackUris can be combined properly.


svn path=/trunk/mcs/; revision=152072
2010-02-19 13:48:31 +00:00
Atsushi Eno c5943145a2 2010-02-19 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : added dictionary support.

	* ns28.xsd ... ns31.xsd : new test files.
	* ns-readme.txt : added above.

	* XsdDataContractImporterTest.cs : added Dictionary export tests.


svn path=/trunk/mcs/; revision=152071
2010-02-19 13:33:48 +00:00
Ankit Jain 404c360e2c * SolutionParser.cs (GetAllProjectFileNames): New.
* Parameters.cs (ParseArguments): When no project file is specified,
if the cur dir has a single sln and >1 project files, and all the
project files are referenced by the sln, the pick the sln.

svn path=/trunk/mcs/; revision=152069
2010-02-19 12:30:49 +00:00
Ankit Jain ecea1d6bb5 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* BuildItem.cs: Track api changes.
	(SetMetadata): Allow RecursiveDir to be set, this is set by
	DirectoryScanner.
	* DirectoryScanner.cs (ProcessInclude): Set RecursiveDir metadata.

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs (TestItemsWithWildcards): Check for RecursiveDir metadata also.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:
	* TaskItem.cs: Track api changes.

In class/Microsoft.Build.Utilities/Mono.XBuild.Utilities:

	* ReservedNameUtils.cs (GetReservedMetadata): Add dictionary param
	@metadata. Use this to check for existing value of "RecursiveDir"
	metadata, use that if present.

svn path=/trunk/mcs/; revision=152067
2010-02-19 11:51:19 +00:00
Ankit Jain 1b2adaaf5d In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add ProjectLoadSettings.cs .

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

	* Import.cs (Evaluate): Add param @ignoreMissingImports.
	* Project.cs (Load*): Add overloads with param @projectLoadSettings.
	(Log*): Mark internal.
	* ProjectLoadSettings.cs: New.

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

	* ImportTest.cs (TestMissingImport*): Add new tests for missing
	import projects.

svn path=/trunk/mcs/; revision=152066
2010-02-19 11:50:28 +00:00
Marek Habersack e4848932af 2010-02-19 Marek Habersack <[email protected]>
* SqlDataSourceTest.cs: added test for bug #572781

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

	* SqlDataSource.cs: call base.OnInit in OnInit. Fixes bug #572781

svn path=/trunk/mcs/; revision=152060
2010-02-19 11:17:06 +00:00
Gonzalo Paniagua Javier a19e1ff7fd missed one F
svn path=/trunk/mono/; revision=152053
2010-02-19 08:44:29 +00:00
Gonzalo Paniagua Javier 8bc0fffaea 2010-02-19 Gonzalo Paniagua Javier <[email protected]>
* mono-semaphore.h: set maximum count to 0x7fffffff.


svn path=/trunk/mono/; revision=152052
2010-02-19 08:43:56 +00:00
Paolo Molaro b10811a74a Fri Feb 19 09:05:36 CET 2010 Paolo Molaro <[email protected]>
* Decimal.cs: fixed Remainder (bug #576341).


svn path=/trunk/mcs/; revision=152050
2010-02-19 08:07:22 +00:00
Atsushi Eno 488e48ee80 2010-02-19 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : add missing #ifs.


svn path=/trunk/mcs/; revision=152049
2010-02-19 07:27:18 +00:00
Atsushi Eno 8f8557ce15 2010-02-19 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs, MessagePartDescription.cs,
	  DataContractSerializerMessageContractImporter.cs :
	  add alternative implementation to use XsdDataContractImporter
	  instead of XmlSchemaImporter hack.

	  It requires -d:USE_DATA_CONTRACT_IMPORTER and not enabled yet, as
	  it breaks some WSDL imports (such as memorabilia.hardrock.com).


svn path=/trunk/mcs/; revision=152048
2010-02-19 04:50:07 +00:00
Marek Habersack 869552f0d0 2010-02-19 Marek Habersack <[email protected]>
* ButtonTest.cs: added test for bug #325489

svn path=/trunk/mcs/; revision=152045
2010-02-19 03:02:58 +00:00
Marek Habersack 2cf5d1a507 2010-02-19 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetConverterForMember now completely
	relies on TypeDescriptor and description providers to retrieve
	converter for a property. Fixes bug #578586
	If UrlPropertyAttribute is found for a member,
	GetExpressionFromString uses the preconverted value, if any, as
	parameter to HandleUrlProperty.

svn path=/trunk/mcs/; revision=152040
2010-02-19 01:51:06 +00:00
Gabriel Burt d98f6b39dd 2010-02-18 Gabriel Burt <[email protected]>
* Normalization.cs: Implement algorithmic Hangul decomposition; Calling
	string.Normalize on Korean characters now works properly (bnc#480152).
	This reduces the number of errors in 'make test' from 27k to 4.8k.

	* StringNormalizationTestSource.cs:
	* Makefile: Use the local, working copy of Normalization etc,so as to make
	modifying Normalization.cs and then testing your changes with 'make test'
	possible.  Also, fix building/running of tests, patch by Alexander
	Kojevnikov.

svn path=/trunk/mcs/; revision=152039
2010-02-19 00:37:09 +00:00
Zoltan Varga 2b63924061 2010-02-18 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_get_restore_context): Changes this so it restores
	edx/ecx too. This is needed to support OP_SEQ_POINT.

svn path=/trunk/mono/; revision=152032
2010-02-18 22:56:31 +00:00
Marek Habersack 1a33006070 Fix make clean
svn path=/trunk/mcs/; revision=152031
2010-02-18 22:42:11 +00:00
Marek Habersack d63508e6c0 2010-02-18 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/CheckBoxList_Bug377703_1.aspx,
	Test/mainsoft/NunitWebResources/CheckBoxList_Bug377703_2.aspx and
	Test/mainsoft/NunitWebResources/CheckBoxList_Bug578770.aspx

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

	* CheckBoxListTest.cs: added tests for bugs #377703 and #578770

	* TreeViewTest.cs: added test for bug #580692

svn path=/trunk/mcs/; revision=152025
2010-02-18 21:48:35 +00:00
Rodrigo Kumpera 277bd8556c 2010-02-18 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_method_on_tb_inst_get_handle):
	* Handle non
	generic methods.

	* reflection.c (mono_reflection_get_custom_attrs_info): Handle
	* compiler context
	cases for ParameterInfo.

	Fixes #579493.

svn path=/trunk/mono/; revision=152024
2010-02-18 21:17:18 +00:00
Marek Habersack 85db63d06f 2010-02-18 Marek Habersack <[email protected]>
* HostingEnvironment.cs: removed SetHostingId and added internal
	setters to the SiteName and IsHosted properties.

	* ApplicationManager.cs: CreateHost doesn't have to call set
	HostingEnvironment.IsHosted, it is done in
	ApplicationHost.CreateApplicationHost.

	* ApplicationHost.cs: set the ".appId" item in the new appdomain's
	data, so that HttpRuntime.AppDomainAppId returns a non-null
	value.
	Set HostingEnvironment.{IsHosted, SiteName} in the new appdomain
	instead of the original one.

	All of the above fix bug #578880

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

	* HostingEnvironmentTest.cs: added a test for HostEnvironment
	property values both in hosted and non-hosted environments. Patch
	contributed by Tiaan Geldenhuys <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=151983
2010-02-18 13:29:56 +00:00
Marek Habersack d315ae2435 2010-02-18 Marek Habersack <[email protected]>
* HttpFileCollectionWrapperTest.cs: added

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

	* HttpFileCollectionWrapper.cs: Get (string) and this [string]
	don't throw ArgumentNullException for non-existing entries. Fixes
	bug #579241. Patch from Peter Johanson <[email protected]>,
	thanks!

svn path=/trunk/mcs/; revision=151978
2010-02-18 12:37:37 +00:00
Atsushi Eno 0a3874559f 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs, XsdDataContractImporter.cs :
	  replaced implementation.
	* ImportOptions.cs : add correct MonoTODOs.

	* XsdDataContractImporterTest.cs : enabled new tests.


svn path=/trunk/mcs/; revision=151975
2010-02-18 11:57:44 +00:00
Atsushi Eno 567c75b0eb 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : output [KnownType] to expose
	  base/derived type relationship.

	* ns-readme.txt : another line of note.


svn path=/trunk/mcs/; revision=151973
2010-02-18 11:46:26 +00:00
Atsushi Eno 5f9662a15d 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : fix GenerateInternal.


svn path=/trunk/mcs/; revision=151971
2010-02-18 11:34:48 +00:00
Marek Habersack 140576e9f4 2010-02-18 Marek Habersack <[email protected]>
* TreeViewTest.cs: added test for bug #580692

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

	* TreeView.cs: RegisterStyle must copy CssClass in addition to
	other style properties. Fixes bug #580692

svn path=/trunk/mcs/; revision=151964
2010-02-18 10:50:31 +00:00
Atsushi Eno dd3adaa509 2010-02-18 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : revert previous change - it could result
	  in blocking some threads and block nunit completion.


svn path=/trunk/mcs/; revision=151960
2010-02-18 08:20:36 +00:00
Atsushi Eno c2d585a1ea 2010-02-18 Atsushi Enomoto <[email protected]>
* JsonValue.cs : fix string escaping, it was giving wrong output
	  after \" and \\.


svn path=/trunk/mcs/; revision=151954
2010-02-18 07:07:16 +00:00
Atsushi Eno 20ede70ef0 2010-02-18 Atsushi Enomoto <[email protected]>
* JsonReader.cs : line endings after a value should not result in
	  a parse error.
	* JsonObject.cs : duplicate object key "SHOULD" not be used, but
	  they are not rejected. So, make it a bit sloppy.


svn path=/trunk/mcs/; revision=151953
2010-02-18 04:43:03 +00:00
Marek Habersack a94e5b16ab 2010-02-18 Marek Habersack <[email protected]>
* scripts/mono-configuration-crypto.in: added

	* scripts/Makefile.am: added mono-configuration-crypto targets

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

	* mono-configuration-crypto.1: added

	* Makefile.am (man_MANS): added mono-configuration-crypto.1

svn path=/trunk/mono/; revision=151952
2010-02-18 01:30:25 +00:00
Marek Habersack 71596803a2 2010-02-18 Marek Habersack <[email protected]>
* Makefile (net_2_0_dirs): added mono-configuration-crypto

svn path=/trunk/mcs/; revision=151951
2010-02-18 01:30:13 +00:00
Zoltan Varga d384482020 2010-02-18 Zoltan Varga <[email protected]>
* exceptions-amd64.c (get_throw_trampoline): Add xdebug info.

svn path=/trunk/mono/; revision=151950
2010-02-18 00:36:34 +00:00
Zoltan Varga d878381e4f 2010-02-18 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix SIZEOF in dynamic methods.

svn path=/trunk/mono/; revision=151949
2010-02-18 00:36:28 +00:00
Zoltan Varga 6b8b250c9f 2010-02-18 Zoltan Varga <[email protected]>
* class.c (mono_class_get_cctor): Fix support for dynamic classes, which doesn't
	have has_cctor set. Fixes #575946.

svn path=/trunk/mono/; revision=151948
2010-02-18 00:36:21 +00:00
Marek Habersack f8478dc571 Fix the build
svn path=/trunk/mcs/; revision=151931
2010-02-17 21:28:05 +00:00
Marek Habersack b8c14963da 2010-02-17 Marek Habersack <[email protected]>
* Makefile: RESX_RES is no more, it was replaced with
	RESOURCES. Fixes bug #580594

svn path=/trunk/mcs/; revision=151926
2010-02-17 20:12:18 +00:00
Marek Safar 5d5538a35f 2010-02-17 Marek Safar <[email protected]>
* generic.cs, field.cs, decl.cs, cs-parser.jay: Simplify special
	constraint parsing.


svn path=/trunk/mcs/; revision=151909
2010-02-17 14:15:18 +00:00
Marek Safar 8dc8429498 New test.
svn path=/trunk/mcs/; revision=151908
2010-02-17 14:14:15 +00:00
Marek Safar 210512ea7d Updated.
svn path=/trunk/mcs/; revision=151907
2010-02-17 14:13:39 +00:00
Carlos Alberto Cortez 50c5f6f0df 2010-02-17 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: When retrieving SelectedRtf/Rtf properly escape any
	RTF reserved char, so we don't end up messing around the actual rtf
	values.
	Fixes part of #575731.


svn path=/trunk/mcs/; revision=151906
2010-02-17 13:54:22 +00:00
Atsushi Eno 1f355fc554 2010-02-17 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : refresh implementation that is
	  not based on xml serialization. Not enabled yet.
	* KnownTypeCollection.cs : add cosmetic comment.

	* ns0,xsd ... ns27.xsd : new test files.
	* ns-readme.txt : description.

	* XsdDataContractImporterTest.cs : added a bunch of tests for new
	  implementation. Disable yet.


svn path=/trunk/mcs/; revision=151902
2010-02-17 11:28:31 +00:00
Gonzalo Paniagua Javier 3d20464e76 2010-02-16 Gonzalo Paniagua Javier <[email protected]>
* appdomain.c: display a warning if the parsing the config file
	produces any error.
	Skip the BOM in UTF-8 files.
	Copy the AppDomainSetup before setting the privateBinPath so that the
	correct configuration file is read.


svn path=/trunk/mono/; revision=151893
2010-02-17 04:32:49 +00:00
Carlos Alberto Cortez da6c35b97b 2010-02-16 Carlos Alberto Cortez <[email protected]>
* Line.cs: When setting the Text property, if the new text is larger
	than the previous one, call Grow to update our internal 'widths'
	array, to be properly in sync with the new text.
	Fixes #569530.


svn path=/trunk/mcs/; revision=151805
2010-02-16 14:39:57 +00:00
Atsushi Eno a3e1748844 2010-02-16 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : in modern .NET, xs:anyType has the
	  appropriate qname.


svn path=/trunk/mcs/; revision=151803
2010-02-16 14:26:40 +00:00
Sebastien Pouliot 1e121ccd02 2010-02-16 Sebastien Pouliot <[email protected]>
* WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
	supply it when calling OnDownloadProgressChanged
	* WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature


svn path=/trunk/mcs/; revision=151800
2010-02-16 14:13:23 +00:00
Carlos Alberto Cortez 81317df205 2010-02-16 Carlos Alberto Cortez <[email protected]>
* CustomizableLocalFileSettingsProvider.cs: When saving the
	properties, ignore the properties marked with
	ApplicationScopedSettingAttribute, as they are not serialized in .net 
	by FileSettingsProvider (the default class used to save the config,
	and the one using the class we are modifying).
	Fixes #468658.


svn path=/trunk/mcs/; revision=151798
2010-02-16 13:12:50 +00:00
Zoltan Varga 35edf74ae7 Revert change committed by mistake.
svn path=/trunk/mono/; revision=151769
2010-02-16 03:20:05 +00:00
Zoltan Varga 9d1c78b960 2010-02-16 Zoltan Varga <[email protected]>
* mini-llvm.c aot-compiler.c aot-runtime.c unwind.c: Finish support
	LLVM+AOT+exceptions, not enabled yet.

svn path=/trunk/mono/; revision=151768
2010-02-16 03:18:11 +00:00
Gonzalo Paniagua Javier 0f3d148ab8 update year
svn path=/trunk/mono/; revision=151765
2010-02-16 01:50:14 +00:00
Gonzalo Paniagua Javier 21350653cc 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* StreamWriter.cs:
	* FileStream.cs: if flushing fails when disposing the stream, make
	sure it is closed before throwing the exception. Fixes bug #579146.


svn path=/trunk/mcs/; revision=151761
2010-02-16 01:39:56 +00:00
Gonzalo Paniagua Javier b411d31cf3 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: generate correct MIME when there are text and html
	linked resources. Fixes bug #579984. Patch by Ásgeir Halldórsson.


svn path=/trunk/mcs/; revision=151758
2010-02-16 01:22:22 +00:00
Gonzalo Paniagua Javier 466c3edeaf 2010-02-15 Gonzalo Paniagua Javier <[email protected]>
* SoapDocumentationHandler.cs: use IndexOf() instead of LastIndexOf()
	when removing the querystring from the url.



svn path=/trunk/mcs/; revision=151754
2010-02-15 23:12:23 +00:00
Paolo Molaro 912f3b086d Fixed the namespace.
svn path=/trunk/mcs/; revision=151749
2010-02-15 17:56:46 +00:00
Zoltan Varga 07178b9c88 2010-02-15 Zoltan Varga <[email protected]>
* mini.c (SIG_HANDLER_SIGNATURE): Fix the windows build.

svn path=/trunk/mono/; revision=151740
2010-02-15 15:37:18 +00:00
Zoltan Varga 086e634c9f 2010-02-15 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Emit
	xdebug info for these.

svn path=/trunk/mono/; revision=151738
2010-02-15 14:46:33 +00:00
Zoltan Varga d6b777fea3 2010-02-15 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Use mini_jit_info_table_find ()
	in a few places.

svn path=/trunk/mono/; revision=151737
2010-02-15 14:36:19 +00:00
Zoltan Varga 94b05be2e0 2010-02-15 Zoltan Varga <[email protected]>
* mini.c (mini_get_vtable_trampoline): Make this take a 'slot_index' argument,
	not used yet.

svn path=/trunk/mono/; revision=151734
2010-02-15 13:38:17 +00:00
Zoltan Varga 5016226b74 2010-02-15 Zoltan Varga <[email protected]>
* object.c: Instead of using one vtable trampoline, allow the JIT to use one
	vtable trampoline per vtable slot index. Not used yet.

svn path=/trunk/mono/; revision=151733
2010-02-15 13:38:11 +00:00
Miguel de Icaza fd1f72583c 2010-02-14 Miguel de Icaza <[email protected]>
* eval.cs: Do not do the report printer dance unless the user has
	set the DescribeTypes feature.

svn path=/trunk/mcs/; revision=151723
2010-02-15 02:03:43 +00:00
Gonzalo Paniagua Javier 07f3eb108e get rid of a bunch of warnings
svn path=/trunk/mcs/; revision=151720
2010-02-14 00:56:51 +00:00
Gonzalo Paniagua Javier 1113582379 Added a bunch of [Obsolete]. Now it does not look as bad.
svn path=/trunk/mcs/; revision=151719
2010-02-14 00:50:08 +00:00
Gonzalo Paniagua Javier 98f06e1d20 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* Environment.cs: implement SystemPageSize.


svn path=/trunk/mcs/; revision=151718
2010-02-14 00:26:52 +00:00
Gonzalo Paniagua Javier 332261bbd3 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* icall-def.h:
	* icall.c: add internal call that returns the system page size.


svn path=/trunk/mono/; revision=151717
2010-02-14 00:26:11 +00:00
Miguel de Icaza cac75b7d29 My first documentation contribution to Cecil
svn path=/trunk/mcs/; revision=151716
2010-02-13 21:18:11 +00:00
Gonzalo Paniagua Javier 4260619e7b 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* Test/System.Collections.Generic/HashSetTest.cs:
	* System.Collections.Generic/HashSet.cs: fix and test for bug #579791.
	Patch from Tiaan Geldenhuys.


svn path=/trunk/mcs/; revision=151705
2010-02-13 17:48:34 +00:00
Zoltan Varga 4e2cbe2103 2010-02-13 Zoltan Varga <[email protected]>
* aot-compiler.c (load_profile_files): Update after the profiler changes.

svn path=/trunk/mono/; revision=151702
2010-02-13 12:20:33 +00:00
Zoltan Varga 3a795c644b 2010-02-13 Zoltan Varga <[email protected]>
* mono-profiler-aot.c (output_image): Emit method names instead of tokens so
	the info can be used for different versions of the same assembly. Don't append
	the assembly guid to the file names.

svn path=/trunk/mono/; revision=151701
2010-02-13 12:20:27 +00:00
Zoltan Varga d056d3bfd6 2010-02-13 Zoltan Varga <[email protected]>
* debug-helpers.c (mono_method_desc_search_in_image): Handle short names like
	'int' for system classes.

svn path=/trunk/mono/; revision=151700
2010-02-13 12:20:22 +00:00
Zoltan Varga 2e0067422b 2010-02-13 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid passing icall wrappers to
	mono_profiler_method_end_jit, since the profiler has no way to process wrappers.

	* aot-runtime.c mini.c: Resurrect the aot pagefault profiling stuff, it is useful
	for mtouch.

svn path=/trunk/mono/; revision=151694
2010-02-13 10:05:28 +00:00
Gonzalo Paniagua Javier 90e6eed0c3 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* debugger-agent.c: handle incomplete reads and EINTR in
	recv()/send(). This could have been causing random
	disconnections.


svn path=/trunk/mono/; revision=151687
2010-02-13 06:16:59 +00:00
Zoltan Varga 28fbe9a170 2010-02-13 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_exception_debug_info): Fix aot support for sequence
	points.

svn path=/trunk/mono/; revision=151683
2010-02-13 02:37:08 +00:00
Zoltan Varga 8f880c49c8 2010-02-13 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_allocate_vars): Allocate the seq point related vars first
	so they have small offsets. Fixes #566311.

svn path=/trunk/mono/; revision=151681
2010-02-13 02:32:58 +00:00
Zoltan Varga 8fe83411d0 Fix a warning.
svn path=/trunk/mono/; revision=151678
2010-02-13 02:01:10 +00:00
Marek Habersack db5712f5ed Added to dist some missing files
svn path=/trunk/mcs/; revision=151677
2010-02-13 01:44:00 +00:00
Gonzalo Paniagua Javier a755d4b119 4.0 updates
svn path=/trunk/mcs/; revision=151675
2010-02-13 00:02:03 +00:00
Gonzalo Paniagua Javier 4146eaf474 new type
svn path=/trunk/mcs/; revision=151673
2010-02-12 22:59:04 +00:00
Marek Habersack aa5c6914e2 Fixed a typo
svn path=/trunk/mcs/; revision=151671
2010-02-12 22:17:06 +00:00
Marek Habersack 9f27044115 2010-02-12 Marek Habersack <[email protected]>
* Makefile (EXTRA_DISTFILES): ignore .svn directories

svn path=/trunk/mcs/; revision=151670
2010-02-12 21:57:10 +00:00
Paolo Molaro 3c6d9e1b1b Fri Feb 12 19:09:44 CET 2010 Paolo Molaro <[email protected]>
* TargetedPatchingOptOutAttribute.cs: new attribute in 4.0.


svn path=/trunk/mcs/; revision=151646
2010-02-12 18:12:12 +00:00
Paolo Molaro 8a47a850ec Fri Feb 12 19:03:11 CET 2010 Paolo Molaro <[email protected]>
* ReferenceAssemblyAttribute.cs: new attribute in 4.0.


svn path=/trunk/mcs/; revision=151645
2010-02-12 18:04:29 +00:00
Miguel de Icaza 79b7f912ca Add
svn path=/trunk/mcs/; revision=151644
2010-02-12 17:52:47 +00:00
Paolo Molaro 7c651cbfaf Include new source file.
svn path=/trunk/mcs/; revision=151643
2010-02-12 17:50:14 +00:00
Paolo Molaro 07fdcf989b Fri Feb 12 18:39:57 CET 2010 Paolo Molaro <[email protected]>
* RuntimeHelpers.cs: implemented EnsureSufficientExecutionStack ().


svn path=/trunk/mcs/; revision=151642
2010-02-12 17:47:39 +00:00
Paolo Molaro 86a15ff01d Fri Feb 12 18:38:01 CET 2010 Paolo Molaro <[email protected]>
* InsufficientExecutionStackException.cs: new exception type in 4.0.


svn path=/trunk/mcs/; revision=151638
2010-02-12 17:38:53 +00:00
Paolo Molaro 23e3b77827 Fri Feb 12 18:36:02 CET 2010 Paolo Molaro <[email protected]>
* icall.c, icall-def.h: new icall to check for sufficient
	stack space.


svn path=/trunk/mono/; revision=151637
2010-02-12 17:37:06 +00:00
Miguel de Icaza c9d64ec3cf 2010-02-12 Miguel de Icaza <[email protected]>
* XStreamingElement.cs: Avoid an extra indirect call, by calling
	the target methods directly.
	
	* XDocument.cs, XElement.cs, XStreamingElement.cs: Fix the
	setting of the Indent flag, since this is an enumeration, testing
	against SaveOptions.None was incorrect.  Check on the actual flag.

	* XElement.cs, XDocument.cs, XStreamingElement.cs: Add support for
	the new .NET 4.0 Save methods and the new OmitDuplicateNamespaces
	flag to SaveOptions.

	* XElement.cs, XDocument.cs, XNamespace.cs: Sprinkle
	CLSCompliantAttribute to match the compare page.

	* SaveOptions.cs: New setting for 4.0 OmitDuplicateNamespaces.


svn path=/trunk/mcs/; revision=151627
2010-02-12 16:19:16 +00:00
Miguel de Icaza befdecc6a1 2010-02-12 Miguel de Icaza <[email protected]>
* XmlWriterSettings.cs: Expose NamespaceHandling in NET 4.0 

svn path=/trunk/mcs/; revision=151626
2010-02-12 16:16:59 +00:00
Rodrigo Kumpera d41cef28c0 2010-02-12 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_check_inlining): Check for loader
	* errors.

svn path=/trunk/mono/; revision=151620
2010-02-12 14:32:58 +00:00
Jb Evain 3e2c68a237 2010-02-13 Jb Evain <[email protected]>
* TypeAttributes.cs: add Forwarder flag.

svn path=/trunk/mcs/; revision=151614
2010-02-12 13:53:45 +00:00
Marek Habersack 43813f347e Fixed a typo
svn path=/trunk/mcs/; revision=151613
2010-02-12 13:46:16 +00:00
Carlos Alberto Cortez b6fdd83c60 2010-02-12 Carlos Alberto Cortez <[email protected]>
* CustomizableLocalFileSettingsProvider.cs: The name of the child
	class of Settings should be 'normalized' by replacing the chars that
	are invalid in a xml element name with their corresponding hexadecimal
	values. This is specially visible when using classes container in
	other classes.
	Fixes #471289.


svn path=/trunk/mcs/; revision=151607
2010-02-12 12:16:08 +00:00
Marek Habersack e87f70514a 2010-02-12 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: implemented {Encrypt,Decrypt}Section

svn path=/trunk/mcs/; revision=151604
2010-02-12 12:01:58 +00:00
Atsushi Eno f3d0400ba1 2010-02-11 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs : handle duration
	  and guid which s.w.svc does not handle. Fix part of bug #579011.


svn path=/trunk/mcs/; revision=151593
2010-02-12 06:33:00 +00:00
Marek Habersack dc5a2680bc 2010-02-12 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added 4.0 attributes

svn path=/trunk/mcs/; revision=151586
2010-02-12 02:04:34 +00:00
Marek Habersack ee4231b4c1 2010-02-12 Marek Habersack <[email protected]>
* AssemblyTargetedPatchBandAttribute.cs: added

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

	* AssemblyInfo.cs: added 4.0 attributes

svn path=/trunk/mcs/; revision=151583
2010-02-12 01:55:29 +00:00
Gonzalo Paniagua Javier 7e2f3b95e9 fix signature
svn path=/trunk/mcs/; revision=151576
2010-02-12 01:34:07 +00:00
Gonzalo Paniagua Javier ee93ee61fe fix signature
svn path=/trunk/mcs/; revision=151575
2010-02-12 01:32:56 +00:00
Mark Probst 43bf5e327d 2010-02-12 Mark Probst <[email protected]>
* reflection.c (ensure_complete_type): Check that reflection_info
        is set, too.  Fixes crash of corlib testsuite with -O=-all.

svn path=/trunk/mono/; revision=151570
2010-02-11 23:50:30 +00:00
Jb Evain 10b20b0a27 2010-02-12 Jb Evain <[email protected]>
* AssemblyStripper.cs: properly set the rva of methods with
	no body.

svn path=/trunk/mcs/; revision=151565
2010-02-11 23:25:23 +00:00
Rodrigo Kumpera db7fa36c41 2010-02-11 Rodrigo Kumpera <[email protected]>
* MethodBody.cs: Add v4 bits.

svn path=/trunk/mcs/; revision=151561
2010-02-11 22:56:21 +00:00
Rodrigo Kumpera 91afbfd9d0 2010-02-11 Rodrigo Kumpera <[email protected]>
* MethodBase.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=151560
2010-02-11 22:56:02 +00:00
Rodrigo Kumpera c719591139 2010-02-11 Rodrigo Kumpera <[email protected]>
* MemberInfo.cs: Add GetCustomAttributesData.

	* Assembly.cs:
	* MemberInfo.cs:
	* Module.cs:
	* MonoEvent.cs:
	* MonoField.cs:
	* MonoMethod.cs:
	* MonoProperty.cs:
	* ParameterInfo.cs: Implement GetCustomAttributesData.

2010-02-11 Rodrigo Kumpera  <[email protected]>

	* MonoType.cs: Implement GetCustomAttributesData.

svn path=/trunk/mcs/; revision=151559
2010-02-11 22:55:43 +00:00
Rodrigo Kumpera 1527d03af0 2010-02-11 Rodrigo Kumpera <[email protected]>
* MemberInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=151558
2010-02-11 22:55:11 +00:00
Jonathan Pobst 5b5a2c4994 2010-02-11 Jonathan Pobst <[email protected]>
* ActivationTests.cs: Disable TestCreateHttpWkoSingleCall and
	TestCreateHttpWkoSingleton due to sporadic failures.
	Filed as bug #579277.

svn path=/trunk/mcs/; revision=151549
2010-02-11 20:25:36 +00:00
Rodrigo Kumpera 8a834a19aa 2010-02-11 Rodrigo Kumpera <[email protected]>
* attrdefs.h:
	* tabledefs.h: Add NoOptimization flag.

svn path=/trunk/mono/; revision=151548
2010-02-11 20:14:33 +00:00
Rodrigo Kumpera 7fbd7bb302 2010-02-11 Rodrigo Kumpera <[email protected]>
* MethodImplAttributes.cs: Add NoOptimization flag.

svn path=/trunk/mcs/; revision=151546
2010-02-11 20:13:07 +00:00
Marek Habersack c4a76e1dd9 2010-02-11 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: explicitly dispose all the streams and
	readers+writers in CompileResource.

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

	* Web.config, Web.mono.config: added test role manager
	definition.

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

	* RolesTest.cs: added a test for IsUserInRole. Patch from Tiaan
	Geldenhuys <[email protected]>, thanks!

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

	* Roles.cs: IsUserInRole checks if username is null or empty
	before attempting to use it. Patch from Tiaan Geldenhuys
	<[email protected]>. thanks!

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

	* System.Web_test.dll.sources: added
	mainsoft/NunitWeb/NunitWeb/TestRoleProvider.cs

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

	* WebTest.cs: test environment setup enhancements. Contributed by
	Tiaan Geldenhuys <[email protected]>, thanks!

	* TestRoleProvider.cs: added. Contributed by Tiaan Geldenhuys
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=151519
2010-02-11 14:15:55 +00:00
Ankit Jain af923bf52b * ImportTest.cs (Add1): Fix test on windows.
svn path=/trunk/mcs/; revision=151518
2010-02-11 13:43:46 +00:00
Zoltan Varga 1eb6410e95 2010-02-11 Zoltan Varga <[email protected]>
* mini-amd64.c: Remove the special casing of byref in a few places now that
	mini_type_get_underlying_type () handles it.

svn path=/trunk/mono/; revision=151516
2010-02-11 12:49:04 +00:00
Zoltan Varga 36c422ca12 2010-02-11 Zoltan Varga <[email protected]>
* mini-generic-sharing.c (mini_type_get_underlying_type): Handle byref as well
	by returning native int. Fixes #577984.

svn path=/trunk/mono/; revision=151514
2010-02-11 12:34:10 +00:00
Marek Habersack 74a7a5af8a 2010-02-11 Marek Habersack <[email protected]>
* ConstructorInfo.cs, EventInfo.cs, FieldInfo.cs: fix 4.0 equality
	and inequality operators by casting the passed parameters to
	object. Failing to do so leads to infinite recursion calling the
	operator.

svn path=/trunk/mcs/; revision=151513
2010-02-11 11:51:15 +00:00
Zoltan Varga b0c3f41e3d 2010-02-11 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_isinst): Factor out the is_complex_isinst check into
	a macro.

svn path=/trunk/mono/; revision=151304
2010-02-11 06:07:18 +00:00
Zoltan Varga 3179bec498 2010-02-11 Zoltan Varga <[email protected]>
* mini-llvm.c (exception_cb): Put the clause index into the type info instead
	of putting the clause itself.

svn path=/trunk/mono/; revision=151302
2010-02-11 05:38:15 +00:00
Geoff Norton 79e0c4d987 2010-02-10 Geoff Norton <[email protected]>
* mono.1: Document the aot compiler options.

svn path=/trunk/mono/; revision=151300
2010-02-11 05:23:23 +00:00
Geoff Norton 613e23b219 2010-02-10 Geoff Norton <[email protected]>
* reflection.c: Support building with DISABLE_REFLECTION

svn path=/trunk/mono/; revision=151290
2010-02-11 03:48:04 +00:00
Geoff Norton b43d924d75 2010-02-10 Geoff Norton <[email protected]>
* aot-compiler.c: Make the number of IMT trampolines configurable as well.

svn path=/trunk/mono/; revision=151289
2010-02-11 03:48:01 +00:00
Zoltan Varga 51fff170f8 2010-02-11 Zoltan Varga <[email protected]>
* mini-arm.c mini.c linear-scan.c: Disable more stuff when DISABLE_JIT is used.

svn path=/trunk/mono/; revision=151284
2010-02-11 03:22:25 +00:00
Zoltan Varga 18d884e0d0 2010-02-11 Zoltan Varga <[email protected]>
* dtest.cs: Add a test for exception subclasses.

svn path=/trunk/mono/; revision=151283
2010-02-11 02:30:02 +00:00
Zoltan Varga 16817e4df6 2010-02-11 Zoltan Varga <[email protected]>
* AssemblyMirror.cs: Add missing GetType () overloads.

svn path=/trunk/mcs/; revision=151282
2010-02-11 02:23:50 +00:00
Zoltan Varga ddf7bb1b79 2010-02-11 Zoltan Varga <[email protected]>
* CP1250.cs CP1252.cs: Move the '--charCount' line to the beginning of the loop,
	since it can be skipped in case of HandleFallback. Add brances around the
	call to HandleFallback so the 'continue' call is only done if it is called.
	Should fix #573682.

svn path=/trunk/mcs/; revision=151280
2010-02-11 02:12:04 +00:00
Atsushi Eno 29a7a9c214 after getting no answer on irc and rather being asked to fix build, I figured
there is no build guru, so I rather "fix" it by removing the test files
and will never add such new test files.


svn path=/trunk/mcs/; revision=151271
2010-02-10 23:08:39 +00:00
Rodrigo Kumpera fcc1dd894b 2010-02-10 Rodrigo Kumpera <[email protected]>
* FieldInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=151270
2010-02-10 22:48:36 +00:00
Rodrigo Kumpera f36e8da1dc 2010-02-10 Rodrigo Kumpera <[email protected]>
* EventInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=151269
2010-02-10 22:48:12 +00:00
Rodrigo Kumpera aee0523cae 2010-02-10 Rodrigo Kumpera <[email protected]>
* ConstructorInfo.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=151268
2010-02-10 22:47:45 +00:00
Rodrigo Kumpera 43fbd5f07e 2010-02-10 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Tests for default value.

svn path=/trunk/mcs/; revision=151267
2010-02-10 21:54:29 +00:00
Mark Probst c482f37b64 2010-02-10 Mark Probst <[email protected]>
* sgen-gc.c: Don't consider it a missing remset if the target
        object is pinned - we might have done the store but not added the
        remset yet.

svn path=/trunk/mono/; revision=151255
2010-02-10 19:44:01 +00:00
Mark Probst b369d912ab 2010-02-10 Mark Probst <[email protected]>
* sgen-gc.c: When checking for missing remsets, don't assert on
        the first one, but print them all and then assert.

svn path=/trunk/mono/; revision=151254
2010-02-10 19:37:30 +00:00
Mark Probst ef9322c8cf 2010-02-10 Mark Probst <[email protected]>
* sgen-gc.c (find_in_remset_loc): Handle the small bitmap case.

svn path=/trunk/mono/; revision=151253
2010-02-10 19:34:38 +00:00
Miguel de Icaza 1dca736873 2010-02-10 Miguel de Icaza <[email protected]>
* main.c (dis_method_list): Show method implementation flags as
	well when calling --method.

	get.c: Moved some code here from main.c so it could be reused by
	dump.c

svn path=/trunk/mono/; revision=151251
2010-02-10 19:03:59 +00:00
Miguel de Icaza 31764de754 2010-02-09 Miguel de Icaza <[email protected]>
* console-unix.c: On OSX Control-Y is assigned to
	VDSUSP (non-Posix), the
	suspend-program-next-time-it-tries-to-read-input command (this is
	different than C-z, which suspends immediately).

	Do the same thing that bash does and ignore this setting,
	making our repl/getline support pasting.

svn path=/trunk/mono/; revision=151247
2010-02-10 17:23:50 +00:00
Mark Probst 41fe8b4ce5 2010-02-10 Mark Probst <[email protected]>
* sgen-gc.c: Simple plausibility check for scan_starts.

svn path=/trunk/mono/; revision=151245
2010-02-10 16:59:02 +00:00
Mark Probst 7b246b42eb 2010-02-10 Mark Probst <[email protected]>
* sgen-gc.c: Round up when calculating the number of scan starts.

svn path=/trunk/mono/; revision=151243
2010-02-10 16:55:54 +00:00
Rodrigo Kumpera b3765dd33d 2010-02-10 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Tests for custom attributes from PropertyInfo::GetIndexParameters.

svn path=/trunk/mcs/; revision=151242
2010-02-10 16:46:15 +00:00
Rodrigo Kumpera 7693062766 2010-02-10 Rodrigo Kumpera <[email protected]>
* PropertyInfo.cs: Remove a pair of MonoTODO.

	* MonoProperty.cs: Implement GetConstantValue and GetRawConstantValue.

svn path=/trunk/mcs/; revision=151241
2010-02-10 16:45:46 +00:00
Rodrigo Kumpera 4e6e97c003 2010-02-10 Rodrigo Kumpera <[email protected]>
* reflection.c: Export mono_get_object_from_blob.

	* object-internals.h: Ditto.

	* icall.c: New icall property_info_get_default_value to get the default
	value of a property. Since using this is not common, no caching is done.

	* icall-def.h: Add new icall.

svn path=/trunk/mono/; revision=151231
2010-02-10 15:04:14 +00:00
Rodrigo Kumpera f6bbdfd2b0 2010-02-10 Rodrigo Kumpera <[email protected]>
* class.c: Add mono_class_get_property_default_value.

	* class-internal.h: Export mono_class_get_property_default_value.

svn path=/trunk/mono/; revision=151230
2010-02-10 15:04:03 +00:00
Rodrigo Kumpera 801b9c7aa4 2010-02-09 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_image_get_property_info): Encode the default value of a property.

svn path=/trunk/mono/; revision=151229
2010-02-10 15:03:50 +00:00
Marek Safar 2cb6454701 Track RC API changes.
svn path=/trunk/mcs/; revision=151228
2010-02-10 14:54:39 +00:00
Marek Safar cbb3448d77 2010-02-10 Marek Safar <[email protected]>
* argument.cs, dynamic.cs, expression.cs: Track API changes.


svn path=/trunk/mcs/; revision=151227
2010-02-10 14:53:48 +00:00
Marek Safar 2618ea0256 2010-02-10 Marek Safar <[email protected]>
* *.cs: Track RC API changes.


svn path=/trunk/mcs/; revision=151226
2010-02-10 14:52:41 +00:00
Marek Habersack 993705d712 2010-02-10 Marek Habersack <[email protected]>
* mono-api-info.cs: added support for extracting and generating
	TypeForwardedTo assembly attributes.

svn path=/trunk/mcs/; revision=151224
2010-02-10 14:02:42 +00:00
Paolo Molaro 46c5667e94 Wed Feb 10 14:48:45 CET 2010 Paolo Molaro <[email protected]>
* sgen-gc.c: introduced critical regions to allow some lockless
	operations and increase scalability.


svn path=/trunk/mono/; revision=151223
2010-02-10 13:49:55 +00:00
Ankit Jain 0b7dd99917 * GenerateResource.cs (CompileResourceFile): Check File.Exists
for source file.
Don't build if the target is newer than the source file.
(Execute): Continue building all the resources, even if there
are failures for some files.

svn path=/trunk/mcs/; revision=151222
2010-02-10 13:21:42 +00:00
Ankit Jain 7d5772155d Fix bug #558739.
* GenerateResource (Resgen): New. Internal task to run resgen
with MONO_IOMAP=drive .
(Execute): Use the new Resgen task to compile the resources.

svn path=/trunk/mcs/; revision=151210
2010-02-10 12:36:36 +00:00
Ankit Jain 39776486e9 * ProcessService.cs (globalEnvironmentVariablesOverride): Use
ProcessStringDictionary instead of StringDictionary.
ProcessStringDictionary retains the case of the keys (env vars
here).
* ToolTask.cs (environmentOverride): Likewise.

svn path=/trunk/mcs/; revision=151209
2010-02-10 12:36:23 +00:00
Ankit Jain 224404ae1d * ToolTask.cs (ExecuteTool): Use the virtual method
Standard*LoggingImportance, instead of the underlying field.
(LogEventsFromTextOutput): Use @importance argument for LogMessage.
(LogToolCommand): Remove MonoTODO.

svn path=/trunk/mcs/; revision=151208
2010-02-10 12:35:52 +00:00
Atsushi Eno 7c3eb05bcc 2010-02-10 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : add !NET_2_1.


svn path=/trunk/mcs/; revision=151203
2010-02-10 10:54:28 +00:00
Marek Habersack 242362da41 2010-02-10 Marek Habersack <[email protected]>
* XmlSchemaDataImporter.cs: the <connections> element might be
	empty - make sure FirstChild of the element is not null before
	attempting to use it. Fixes bug #578587

svn path=/trunk/mcs/; revision=151201
2010-02-10 09:32:59 +00:00
Atsushi Eno 94a1145c89 2010-02-10 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : and "To" header is also automatically
	  added if AddressingVersion is WSA1. This likely fixes bug #577139.


svn path=/trunk/mcs/; revision=151200
2010-02-10 09:20:39 +00:00
Atsushi Eno 182caa5577 2010-02-10 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaders.cs : add nasty workaround for
	  typed UniqueId output.


svn path=/trunk/mcs/; revision=151199
2010-02-10 09:12:06 +00:00
Atsushi Eno 34289b6f76 2010-02-10 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : no need to treat EndpointAddress as a special
	  case here too.


svn path=/trunk/mcs/; revision=151198
2010-02-10 08:52:22 +00:00
Atsushi Eno b209cce108 2010-02-10 Atsushi Enomoto <[email protected]>
* Constants.cs, EndpointAddress10.cs :
	  Remove duplicate constant (WSA1).

	* MessageHeaders.cs : remove duplicate constant.


svn path=/trunk/mcs/; revision=151197
2010-02-10 08:24:54 +00:00
Atsushi Eno b3cff5487e 2010-02-10 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaders.cs: MessageHeader does not treat
	  EndpointAddress as a special case. Instead, each MessageHeaders
	  property should convert it to appropriate serializable objects.

	  (Our DataContractSerializer fails to reject EndpointAddress as
	  serializable type, so it's rather a preparation step.)


svn path=/trunk/mcs/; revision=151196
2010-02-10 08:10:45 +00:00
Atsushi Eno a97f90e673 2010-02-10 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, Message.cs : use dictionary string whenever
	  applicable. The binary output on #577139 is getting closer (no
	  idea if it is really about binary output though).


svn path=/trunk/mcs/; revision=151194
2010-02-10 07:38:23 +00:00
Atsushi Eno e562d11cf8 2010-02-10 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : moved soap_dictionary to Constants.

	* Constants.cs : moved SoapDictionary from BinaryMessageEncoder.


svn path=/trunk/mcs/; revision=151193
2010-02-10 07:36:23 +00:00
Atsushi Eno 12ad49cb6f 2010-02-10 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : cosmetic attribute reordering.


svn path=/trunk/mcs/; revision=151192
2010-02-10 07:33:42 +00:00
Atsushi Eno 505b2c1d1a 2010-02-10 Atsushi Enomoto <[email protected]>
* XmlDictionaryWriter.cs : try to lookup dictionary string in
	  WriteNode(). This is part of #577139 fix (probably).


svn path=/trunk/mcs/; revision=151191
2010-02-10 07:32:06 +00:00
Atsushi Eno 331bafd0b3 sigh, just disable it. make dist is somehow broken.
svn path=/trunk/mcs/; revision=151190
2010-02-10 06:05:16 +00:00
Carlos Alberto Cortez b76bdcee67 2010-02-10 Carlos Alberto Cortez <[email protected]>
* TabControl.cs: When calculating the layout for the tab pages, take
	into account the ImageList size info if it exists, even if it is
	empty.


svn path=/trunk/mcs/; revision=151188
2010-02-10 05:20:05 +00:00
Sebastien Pouliot 88c66d5a4c In Assembly:
2010-02-09  Sebastien Pouliot  <[email protected]>

	* AssemblyInfo.cs: Mono.CompilerServices.SymbolWriter does not
	need to access mscorlib.dll internals anymore (ArrayList and
	Hashtable)

In .:
2010-02-09  Sebastien Pouliot  <[email protected]>

	* net_2_1_raw_corlib.dll.sources: Add Mono.CompilerServices.
	SymbolWriter source files directly into mscorlib 2.1

In System.Reflection.Emit:
2010-02-09  Sebastien Pouliot  <[email protected]>

	* ModuleBuilder.cs: Do not use reflection to create SymbolWriterImpl
	for Moonlight since the code is bundled inside mscorlib.dll to avoid
	having a non-platform assembly poking the internals of mscorlib.dll


svn path=/trunk/mcs/; revision=151176
2010-02-10 02:41:23 +00:00
Atsushi Eno 859914a2a8 2010-02-10 Astushi Enomoto <[email protected]>
* Makefile: does extra dist fail to accept *.xml ?


svn path=/trunk/mcs/; revision=151175
2010-02-10 02:19:28 +00:00
Atsushi Eno 35087ee7d8 tiny changelog correction.
svn path=/trunk/mcs/; revision=151174
2010-02-10 02:11:59 +00:00
Atsushi Eno e21dd21600 2010-02-10 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryWriter.cs : for text '0' and '1', write 0x82 and
	  0x84 instead of 0x99 [0x30|0x31]. This cosmetic fix gives identical
	  writer output for #577139 (and yet it still doesn't work).


svn path=/trunk/mcs/; revision=151173
2010-02-10 02:11:29 +00:00
Atsushi Eno 805697ef21 2010-02-10 Astushi Enomoto <[email protected]>
* Makefile: add test xml files to extra dist.


svn path=/trunk/mcs/; revision=151163
2010-02-09 23:41:46 +00:00
Atsushi Eno 9c6f35fd8d 2010-02-10 Atsushi Enomoto <[email protected]>
* Makefile: add Test/Resources/Schemas/* to extra dist.


svn path=/trunk/mcs/; revision=151161
2010-02-09 23:40:18 +00:00
Zoltan Varga e934586b65 Really fix the build.
svn path=/trunk/mono/; revision=151159
2010-02-09 23:36:47 +00:00
Gonzalo Paniagua Javier 5238555866 2010-02-09 Gonzalo Paniagua Javier <[email protected]>
* threadpool.c: Fixes for SetMinThreads and SetMaxThreads.
	Closes bug #566057.

	* exception.c: fix typo in comment.


svn path=/trunk/mono/; revision=151152
2010-02-09 22:55:49 +00:00
Chris Toshok a6fb40149c 2010-02-09 Chris Toshok <[email protected]>
* MessageQueue.cs: stub out the ctor that takes a QueueAccessMode.

	* QueueAccessMode.cs: new enum.

svn path=/trunk/mcs/; revision=151141
2010-02-09 20:52:58 +00:00
Sebastien Pouliot 87871fe69b 2010-02-09 Sebastien Pouliot <[email protected]>
* XUtil.cs: Avoid using ToLowerInvariant since it is not 
	available in Silverlight.


svn path=/trunk/mcs/; revision=151136
2010-02-09 18:47:40 +00:00
Chris Toshok 8ea852f673 2010-02-09 Chris Toshok <[email protected]>
* XDocument.cs: add the Load (Stream) overloads.

svn path=/trunk/mcs/; revision=151128
2010-02-09 17:21:31 +00:00
Rodrigo Kumpera 475552cd56 2010-02-09 Rodrigo Kumpera <[email protected]>
* icall.c (param_info_get_type_modifiers): Handle the case when the member object is a
	property. This happens which instances returned by PropertyInfo::GetIndexParameters ().

	* reflection.c (mono_reflection_get_custom_attrs_info): Ditto.

	* object-internals.h: Export mono_class_is_reflection_method_or_constructor as part of
	the internal API.

	Fixes #574434.

svn path=/trunk/mono/; revision=151093
2010-02-09 12:41:41 +00:00
Atsushi Eno 7fea8bb100 2010-02-09 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : when WSAddressing10 is used, set ReplyTo
	  and MessageID. (found while fixing #577139).


svn path=/trunk/mcs/; revision=151092
2010-02-09 11:07:01 +00:00
Atsushi Eno dc6e14ed54 2010-02-09 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs,
	  ServiceContractGenerator.cs: ArrayOfXxx does not exist in the type
	  definition code. Use Xxx[] directly instead.

	* WsdlImporterTest.cs : added test for processing ArrayOfXxx types.

	* service1.wsdl, schema1.xsd, schema2.xsd : new test files (small
	  repro for bug #577139).


svn path=/trunk/mcs/; revision=151087
2010-02-09 09:36:44 +00:00
Marek Habersack 9e4c7249f6 Re-added sequence files with colons removed from the names
svn path=/trunk/mcs/; revision=151086
2010-02-09 08:30:59 +00:00
Atsushi Eno 33843bfcf9 2010-02-09 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : add appropriate code namespaces
	  imported from xsd namespace.

	* XsdDataContractImporterTest.cs : add test that it gives
	  appropriate code namespaces.

	* schema3.xsd : new test file.


svn path=/trunk/mcs/; revision=151085
2010-02-09 08:01:48 +00:00
Miguel de Icaza 3db69a45a3 2010-02-08 Miguel de Icaza <[email protected]>
* getline.cs: Add support for ESC-letter to become Alt-letter.

svn path=/trunk/mcs/; revision=151083
2010-02-09 06:57:20 +00:00
Miguel de Icaza 8aeb44c50c 2010-02-08 Miguel de Icaza <[email protected]>
* namespace.cs (CompletionGetTypesStartingWith): Do not include
	private types in the completion results.

svn path=/trunk/mcs/; revision=151082
2010-02-09 06:56:28 +00:00
Zoltan Varga c745166833 2010-02-09 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): Use read32 for reading a 32 bit value, since it
	might be unaligned.

svn path=/trunk/mono/; revision=151076
2010-02-09 01:39:19 +00:00
Mark Probst 54d2458b79 2010-02-09 Mark Probst <[email protected]>
* threads.c: Removed two assertions that were too strict.  Added a
        clarifying comment.  Fixes #577090.

svn path=/trunk/mono/; revision=151074
2010-02-09 01:00:49 +00:00
Carlos Alberto Cortez d0ca98ff15 2010-02-08 Carlos Alberto Cortez <[email protected]>
* UnixRegistryApi.cs: When retrieving the registry keys from file in a
	unix system, if the value returned by a SecurityElement is null,
	use String.Empty, since at this point we know that this registry key
	*exists* and *cannot* have a null value, as specified in the public
	api.
	Fixes #543206.


svn path=/trunk/mcs/; revision=151070
2010-02-09 00:34:05 +00:00
Jonathan Pobst 761d7ad633 2010-02-08 Jonathan Pobst <[email protected]>
Fix msvc build.

svn path=/trunk/mono/; revision=151059
2010-02-08 20:39:41 +00:00
Jonathan Pobst 85632b386a Remove files that have colons in them to fix SVN for Windows users.
svn path=/trunk/mcs/; revision=151053
2010-02-08 20:02:40 +00:00
Zoltan Varga 5e0e688b99 2010-02-08 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_code): Create the ut trampolines here, so they work for
	llvm methods too.

svn path=/trunk/mono/; revision=151052
2010-02-08 19:34:07 +00:00
Zoltan Varga 23519e3006 2010-02-08 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_code): Don't add the llvm label prefix to 'methods', since
	it is not an LLVM generated symbol.

svn path=/trunk/mono/; revision=151049
2010-02-08 18:37:44 +00:00
Zoltan Varga 1421dd74c4 2010-02-08 Zoltan Varga <[email protected]>
* mini-llvm.c (emit_entry_bb): Fix the handling of simd types.

svn path=/trunk/mono/; revision=151047
2010-02-08 18:33:15 +00:00
Zoltan Varga c2377efd83 2010-02-08 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_castclass): Turn off the more efficient isinst/castclass
	implementation in gshared mode because it causes regressions.

svn path=/trunk/mono/; revision=151043
2010-02-08 18:01:56 +00:00
Zoltan Varga 27d230c64c 2010-02-08 Zoltan Varga <[email protected]>
* mini-trampolines.c: Add a stat for the number of calls to trampolines.

svn path=/trunk/mono/; revision=151041
2010-02-08 17:44:28 +00:00
Zoltan Varga 1a6dce67a9 2010-02-08 Zoltan Varga <[email protected]>
* image-writer.c (asm_writer_emit_global): Don't prepend the global prefix, it
	should be done by the caller.

svn path=/trunk/mono/; revision=151040
2010-02-08 17:28:37 +00:00
Zoltan Varga f233a1c472 2010-02-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Don't make the debug symbols global.

svn path=/trunk/mono/; revision=151037
2010-02-08 17:04:35 +00:00
Zoltan Varga df37126db7 2010-02-08 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_code): Add the llvm label prefix before 'methods'.

svn path=/trunk/mono/; revision=151036
2010-02-08 16:51:09 +00:00
Zoltan Varga 6e14674ca0 2010-02-08 Zoltan Varga <[email protected]>
* mini-exceptions.c (mini_jit_info_table_find): Search the root domain as well,
	since mono_jit_info_table_find () doesn't do it anymore.

	* mini-generic-sharing.c debugger-agent.c: Call mini_jit_info_table_find ()
	instead of mono_jit_info_table_find ().

svn path=/trunk/mono/; revision=151032
2010-02-08 16:35:52 +00:00
Zoltan Varga 739aa253e3 2010-02-08 Zoltan Varga <[email protected]>
* domain.c (mono_jit_info_table_find): Avoid looking in the root domain, since
	the caller has no way of knowing the domain which owns the returned MonoJitInfo.

	* appdomain.c (create_exceptions): Call mono_thread_push/popappdomain_ref ().

svn path=/trunk/mono/; revision=151031
2010-02-08 16:35:46 +00:00
Atsushi Eno f60b8b5b22 2010-02-08 Atsushi Enomoto <[email protected]>
* MetadataBundle.cs, MetadataSet.cs : rename former to latter.

	* System.ServiceModel.dll.sources:
	  renamed MetadataBundle.cs to MetadataSet.cs.


svn path=/trunk/mcs/; revision=151027
2010-02-08 15:25:17 +00:00
Atsushi Eno e8407d43b4 2010-02-08 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : do not add primitive ArrayOfxxx types.

	* XsdDataContractImporterTest.cs : add test that ArrayOfxxx type
	  is not added.

	* schema1.xsd, schema2.xsd : new test files.


svn path=/trunk/mcs/; revision=151021
2010-02-08 12:01:11 +00:00
Zoltan Varga 3f2694d7c8 2010-02-08 Zoltan Varga <[email protected]>
* WaitHandleTest.cs: Add a test for #576039.

svn path=/trunk/mcs/; revision=151018
2010-02-08 10:24:30 +00:00
Zoltan Varga 00bdc8dcca 2010-02-08 Zoltan Varga <[email protected]>
* WaitHandle.cs (CheckArray): Check that the handles array is not null.
	Fixes #576039.

svn path=/trunk/mcs/; revision=151017
2010-02-08 10:24:21 +00:00
Marek Safar ef1df4a596 New test.
svn path=/trunk/mcs/; revision=151014
2010-02-08 10:10:40 +00:00
Marek Safar df66b82add 2010-02-08 Marek Safar <[email protected]>
A fix for bug #577029
	* anonymous.cs: Fixed TypeBuilder* check.


svn path=/trunk/mcs/; revision=151013
2010-02-08 10:09:43 +00:00
Zoltan Varga a25a7a2dc8 2010-02-08 Zoltan Varga <[email protected]>
* verify.c (mono_type_get_stack_name): Fix a warning.

svn path=/trunk/mono/; revision=151011
2010-02-08 10:05:24 +00:00
Zoltan Varga 31523825a1 Fix the build.
svn path=/trunk/mono/; revision=151010
2010-02-08 10:03:14 +00:00
Zoltan Varga 0b8e9bce0e 2010-02-08 Zoltan Varga <[email protected]>
* library.make (install-local): Install the compiled aot lib too.

	* executable.make (install-local): Ditto.

svn path=/trunk/mcs/; revision=151009
2010-02-08 09:54:03 +00:00
Ankit Jain c1895a4118 * lc.1: Fix typos.
svn path=/trunk/mono/; revision=151004
2010-02-08 08:16:47 +00:00
Atsushi Eno fc285e576a 2010-02-08 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : some generated attributes are put
	  on enums too.


svn path=/trunk/mcs/; revision=151003
2010-02-08 07:29:51 +00:00
Miguel de Icaza 2e17e47b65 Ship Mono.Cecil as well
svn path=/trunk/mcs/; revision=151002
2010-02-07 15:14:30 +00:00
Miguel de Icaza 3710d1afd5 Begin stubs for Mono.Cecil
svn path=/trunk/mcs/; revision=151001
2010-02-07 15:09:40 +00:00
Ankit Jain 05434c4c68 In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks.dll.sources: Add LC.cs
	* Microsoft.Build.Tasks_test.dll.sources: Add LCTest.cs

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

	* LC.cs: New.

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

	* LCTest.cs: New.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

	* ToolTask.cs (SkipTaskExecution): Use ValidateParameters method.
	Remove some MonoTODOs.

In tools/xbuild:

	* xbuild/Microsoft.Common.targets: Add targets for compiling
	licx (license) files.
	* xbuild/Microsoft.Common.tasks: Add LC task.

svn path=/trunk/mcs/; revision=150997
2010-02-07 11:40:30 +00:00
Marek Habersack 24368ca11f Do not use colons in file names, it's not supported by windows
svn path=/trunk/mcs/; revision=150996
2010-02-07 08:44:06 +00:00
Zoltan Varga 90f2e89698 2010-02-07 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Add support for MONO_WRAPPER_WRITE_BARRIER.

svn path=/trunk/mono/; revision=150992
2010-02-07 05:07:40 +00:00
Zoltan Varga eaf0e9b4e4 2010-02-07 Zoltan Varga <[email protected]>
* aot-compiler.c (encode_method_ref): Update after the removal of
	mono_gc_get_managed_allocator_type ().

svn path=/trunk/mono/; revision=150991
2010-02-07 05:02:28 +00:00
Zoltan Varga 46b44cb8c1 2010-02-07 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_wrapper_info): Rename from
	mono_marshal_wrapper_info_from_wrapper.

	* marshal.c (mono_marshal_set_wrapper_info): Rename from
	mono_marshal_method_set_wrapper_data, and export.

	* boehm-gc.c sgen-gc.c null-gc.c: Get rid of mono_gc_get_allocator_type, store
	the allocator type in a AllocatorWrapperInfo structure instead, which is accesible
	by calling mono_marshal_get_wrapper_info ().

svn path=/trunk/mono/; revision=150990
2010-02-07 05:02:21 +00:00
Chris Toshok b9045051a9 2010-02-06 Chris Toshok <[email protected]>
* AppDomain.cs (SetupInformationNoCopy): make this internal for
	moonlight.

svn path=/trunk/mcs/; revision=150988
2010-02-07 04:26:45 +00:00
Zoltan Varga bfd630c3ea 2010-02-07 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_get_managed_allocator): Add a specialized allocator for
	small objects which does no size checks.

svn path=/trunk/mono/; revision=150987
2010-02-07 04:24:07 +00:00
Zoltan Varga 62fd9b1800 2010-02-07 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Place a seq point just before a RET.
	Fixes #564538.

svn path=/trunk/mono/; revision=150982
2010-02-07 00:16:56 +00:00
Zoltan Varga 3e65e2188f 2010-02-06 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_castclass): Use the icall for classes with variant
	generic params as well.
	(handle_isinst): Ditto.

svn path=/trunk/mono/; revision=150980
2010-02-06 21:45:28 +00:00
Zoltan Varga 490468131f 2010-02-06 Zoltan Varga <[email protected]>
* method-to-ir.c: Make isninst/castclass checks in gshared code more efficient
	instead of always calling an icall.

svn path=/trunk/mono/; revision=150979
2010-02-06 20:54:27 +00:00
Marek Habersack 4fd4b99ecd Modified the assemblies collection to match what is found in .NET 4.0
svn path=/trunk/mono/; revision=150977
2010-02-06 16:11:53 +00:00
Michael Barker 393cb46584 2010-02-06 Michael Barker <[email protected]>
* ConnectionException.cs: Added additional text to aid debugging.

svn path=/trunk/mcs/; revision=150976
2010-02-06 12:01:42 +00:00
Miguel de Icaza b6429bba74 2010-02-05 Miguel de Icaza <[email protected]>
* getline.cs (NextAvailable): Fix off-by-one error

svn path=/trunk/mcs/; revision=150975
2010-02-06 09:02:58 +00:00
Miguel de Icaza b0eab80ae5 2010-02-06 Miguel de Icaza <[email protected]>
* eval.cs (CompileBlock): Also undo if there are problems during
	semantic analysis, fixes various cases where invalid C# code would
	be reported, but the internal changes would not be undone.

svn path=/trunk/mcs/; revision=150974
2010-02-06 08:14:28 +00:00
Miguel de Icaza c661948be8 Update repl.txt notes
svn path=/trunk/mcs/; revision=150973
2010-02-06 08:12:21 +00:00
Miguel de Icaza 249107c2d1 Indent
svn path=/trunk/mcs/; revision=150972
2010-02-06 08:12:03 +00:00
Zoltan Varga 271add8e7c 2010-02-06 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_llvm_file): Take into account trampolines etc when
	computing the size of the got.

svn path=/trunk/mono/; revision=150965
2010-02-06 00:56:43 +00:00
Zoltan Varga a957d74bcb 2010-02-06 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_code): Change the way the 'methods' symbol is emitted
	when using LLVM. Instead of emitting it as an LLVM method, emit it using
	the assembly directive '.set' so it points to the first LLVM emitted method.

svn path=/trunk/mono/; revision=150964
2010-02-06 00:04:54 +00:00
Rodrigo Kumpera b211becd90 2010-02-05 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Make tests for GetIndexParameters() work.

svn path=/trunk/mcs/; revision=150958
2010-02-05 21:18:19 +00:00
Rodrigo Kumpera 08932bc0f6 2010-02-05 Rodrigo Kumpera <[email protected]>
*  MethodInfoTest.cs: New test for GetParameters() returning the
	*  interned array.

	* PropertyInfoTest.cs: New tests for GetIndexParameters().

svn path=/trunk/mcs/; revision=150946
2010-02-05 20:21:51 +00:00
Rodrigo Kumpera 39e06838e9 2010-02-05 Rodrigo Kumpera <[email protected]>
* MonoMethod.cs (GetParameters): Must return a copy instead of
	* the interned array.

	* MonoMethod.cs (Invoke): Skip array clone in GetParameters.

	* MonoProperty.cs (GetIndexParameters): Properly handle
	* write-only indexed properties.
	Return a ParameterInfo object bound to the properly and not to
the method.

	* ParameterInfo.cs: Add new constructor that copies all fields
	* but Member.

	* ParameterInfo.cs (MetadataToken): Properly handle tokens of
	* non-method members.

svn path=/trunk/mcs/; revision=150945
2010-02-05 20:21:42 +00:00
Rodrigo Kumpera 1af6c2a110 2010-02-05 Rodrigo Kumpera <[email protected]>
* icall-def.h: Rename get_MetadataToken to GetMetadataToken.

svn path=/trunk/mono/; revision=150944
2010-02-05 20:20:55 +00:00
Carlos Alberto Cortez cf374ed99a 2010-02-05 Carlos Alberto Cortez <[email protected]>
* MaskedTextProviderTest.cs: New tests for ToString and
	ToDisplayString, specifically when IsPassword is true. 


svn path=/trunk/mcs/; revision=150927
2010-02-05 13:44:00 +00:00
Carlos Alberto Cortez 24eb22e276 2010-02-05 Carlos Alberto Cortez <[email protected]>
* MaskedTextProvider.cs: In ToString() if we are a password, use the
	prompt char in the places where no char has been filled in yet, instead of
	putting the password char.
	Fixes #360407.


svn path=/trunk/mcs/; revision=150926
2010-02-05 13:26:42 +00:00
Rodrigo Kumpera 1cb9ec78d5 2010-02-05 Rodrigo Kumpera <[email protected]>
* RemotingServices.cs (InternalExecuteMessage): Properly
	handle generic methods. We can't call MakeGenericMethod on
	a non GMD method.

svn path=/trunk/mcs/; revision=150925
2010-02-05 12:57:50 +00:00
Ankit Jain 3910289bf0 In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:
Fix bug #576579.
	* CreateManifestResourceName.cs: Use TargetPath metadata, as the link
	name.
	* CreateCSharpManifestResourceName.cs:
	* CreateVisualBasicManifestResourceName.cs: Prefer linkname over
	filename, if available.

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

	* CreateCSharpManifestResourceNameTest.cs:
	* CreateVisualBasicManifestResourceNameTest.cs:
	Add new tests for TargetPath metadata.

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

	* junk.txt: New.

svn path=/trunk/mcs/; revision=150924
2010-02-05 12:20:52 +00:00
Atsushi Eno afbe553d9e 2010-02-05 Atsushi Enomoto <[email protected]>
*  HttpTransportBindingElement.cs : ... and add MONOTOUCH on #ifs.


svn path=/trunk/mcs/; revision=150920
2010-02-05 11:12:56 +00:00
Atsushi Eno 0f21477605 2010-02-05 Atsushi Enomoto <[email protected]>
* ServiceHostBaseTest.cs : on unixy filesystems "/foobar"
          is parsed as an absolute URI.


svn path=/trunk/mcs/; revision=150913
2010-02-05 05:46:47 +00:00
Atsushi Eno 10fbf487cb 2010-02-05 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : port 808 is not generally available
          for non-privileged users.


svn path=/trunk/mcs/; revision=150912
2010-02-05 05:42:08 +00:00
Atsushi Eno b69687fde9 2010-02-05 Atsushi Enomoto <[email protected]>
* SilverlightClientConfigLoader.cs : public->internal.



svn path=/trunk/mcs/; revision=150911
2010-02-05 05:26:28 +00:00
Atsushi Eno af5c0da74d 2010-02-05 Atsushi Enomoto <[email protected]>
*  HttpRequestChannel.cs, HttpTransportBindingElement.cs :
	  enable authentication schemes on monotouch.

	* Dummy_2_1.cs : remove AuthenticationSchemes. It blocks MT support.


svn path=/trunk/mcs/; revision=150909
2010-02-05 02:21:37 +00:00
Rodrigo Kumpera 4aa8b79a8c 2010-02-04 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_verify): Report the method which failed to verify.

svn path=/trunk/mono/; revision=150890
2010-02-04 22:24:27 +00:00
Rodrigo Kumpera 438d47ef55 2010-02-04 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Use the new basic block formation pass
	to avoid JIT'ng dead basic blocks. This is the same behavior as the
	runtime MS verifier.

svn path=/trunk/mono/; revision=150889
2010-02-04 22:24:19 +00:00
Rodrigo Kumpera e2395312cb 2010-02-04 Rodrigo Kumpera <[email protected]>
* verify.c (mono_method_verify): Use the new basic block formation pass
	to avoid verifying dead basic blocks. This is the same behavior as the
	runtime MS verifier.

svn path=/trunk/mono/; revision=150888
2010-02-04 22:24:10 +00:00
Rodrigo Kumpera 20c29a5fb2 2010-02-04 Rodrigo Kumpera <[email protected]>
* mono-basic-block.c:
	* mono-basic-block.h: New implementation of a basic block formation pass.
	The formation pass does static liveness analysis as well to detect dead
	basic blocks.

svn path=/trunk/mono/; revision=150887
2010-02-04 22:24:01 +00:00
Rodrigo Kumpera 54523cb601 2010-02-04 Rodrigo Kumpera <[email protected]>
* make_endfilter_test.sh: Fix this test to not have a throw that make some of the
	endfilter unreachable.

svn path=/trunk/mono/; revision=150886
2010-02-04 22:23:53 +00:00
Rodrigo Kumpera 074313ceaa 2010-02-04 Rodrigo Kumpera <[email protected]>
* invalid_branch_in_between_prefix_and_instruction.il:
	* invalid_empty_filter_block.il:
	* make_endfilter_test.sh
	* make_endfinally_test.sh: Bunch of OSX and test fixes.

svn path=/trunk/mono/; revision=150885
2010-02-04 22:23:45 +00:00
Ankit Jain 813cbced27 * xbuild/Microsoft.Common.targets (_RecordCleanFile): Append list of
current build files to list of previous build files.
(_GetCleanFileWrites): Rename items to be obvious of the contents.
(CoreClean): Delete the file list also.

svn path=/trunk/mcs/; revision=150874
2010-02-04 18:25:40 +00:00
Ankit Jain c299232dc3 In class/Microsoft.Build.Tasks:
* Microsoft.Build.Tasks_test.dll.sources: Added
	WriteLinesToFileTest.cs

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

	* WriteLinesToFile.cs: Delete the file if there is nothing to
	be written and overwrite==true.

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

	* WriteLinesToFileTest.cs: New.

svn path=/trunk/mcs/; revision=150873
2010-02-04 17:29:57 +00:00
Atsushi Eno cf16c28305 2010-02-04 Astushi Enomoto <[email protected]>
* Dummy.cs, net_2_1_raw_System.ServiceModel.dll.sources : add some
	  classes out of dummy, for monotouch (hidden in 2.1 profile).

	*  ClientCredentials.cs, ContractDescription.cs,
	  IEndpointBehavior.cs, IOperationBehavior.cs : add monotouch support
	  for client behavior.


svn path=/trunk/mcs/; revision=150863
2010-02-04 15:03:47 +00:00
Miguel de Icaza 35e3454b5e 2010-02-04 Miguel de Icaza <[email protected]>
* Take advantage of the Describe feature.

svn path=/trunk/mcs/; revision=150859
2010-02-04 14:39:09 +00:00
Miguel de Icaza 2a0b2e5184 Documentation update
svn path=/trunk/mcs/; revision=150858
2010-02-04 14:38:20 +00:00
Miguel de Icaza 889b068c69 2010-02-03 Miguel de Icaza <[email protected]>
* driver.cs: Change the --fatal flag to allow a number to be
	passed, this ignores the first N fatal errors.   Useful to debug
	errors that do not happen on the first hit.

	* cs-parser.jay (invocation_expression): accept both the
	CLOSE_PARENS and COMPLETE_COMPLETION, this allows completions
	inside an invocation.

	* driver.cs: Expose FatalErrors.

	* eval.cs: Initialize the printer's Fatal property from the
	Driver's FatalError flag, this allows csharp --fatal to work
	again. 

	Add support for calling Describe (typeof (TYPE)) if the expression
	entered is a TYPE.

svn path=/trunk/mcs/; revision=150857
2010-02-04 14:38:08 +00:00
Marek Habersack 73c3bfba56 2010-02-03 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added back InternalsVisibleTo for the test
        assembly - it's needed to access CacheItemPriorityQueue

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

        * OutputCache.cs: DefaultProviderName checks if there was any
        provider configured and, if not, returns a built-in provider's
        name.

        * SqlCacheDependencyAdmin.cs: added

        * OutputCacheProviderCollection.cs: added

        * OutputCacheProvider.cs: added

        * OutputCacheModule.cs: uses the 4.0 extensible output cache
        provider model now (also internally in the 2.0 profile)
        OutputCacheProvider is retrieved on every request using
        HttpApplication.GetOutputCacheProviderName (4.0+). In the 2.0
        profile an instance of InMemoryOutputCacheProvider is always
        returned.

        * InMemoryOutputCacheProvider.cs: default output cache provider
        for ASP.NET 4.0, also used internally in the  2.0 profile.

        * CachedVaryBy.cs: made the generated key shorter

        * CacheItemPriorityQueueDebug.cs: debugging support for
        CacheItemPriorityQueue. Most of the code is compiled only when the
        DEBUG macro is defined. Debugging support includes recording of
        the queue operations sequence which is output to an XML file on
        appdomain shutdown. The recorded sequence files can be used to
        generate NUnit test cases for the priority queue (see
        ../Test/tools/README)

        * CacheItemPriorityQueue.cs: rewritten using an array based heap
        instead of a binary tree based one - implementation is simpler,
        faster and more elegant. Heap is initially 32 entries long and
        its size is doubled every time it fills up. After reaching a
        threshold (8192 entries currently) it is shrunk to the number of
        items + 1/3 of item count in order to preserve memory.

        * CacheItem.cs: added a Guid field to easier distinguish items
        (mostly for debugging purposes)

        * CacheDependency.cs: minor performance improvements

        * Cache.cs: better handling of timer periods

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

        * HttpApplication.cs: GetOutputCacheProviderName returns the value
        of OutputCache.DefaultProviderName

        * HttpRuntime.cs: internal cache is used to hold the dependencies
        now.

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

        * CacheItemPriorityQueueTest_generated.cs: added

        * CacheItemPriorityQueueTest.cs: added

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

        * Helpers.cs: added a helper method for checking of HTML mentions
        any .NET exceptions.

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

        * Makefile: added targets to compile cache priority queue tests
        generator and to generate the tests themselves

svn path=/trunk/mcs/; revision=150855
2010-02-04 13:53:55 +00:00
Atsushi Eno 6032fc1874 2010-02-04 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : now I can enable service throttling to
	  handle more than one concurrent channels as ASP.NET reply channel
	  got fixed.

	* HTTP_listener_notes.txt: Fixed some wrong description, simplified
	  some, and updated some.


svn path=/trunk/mcs/; revision=150851
2010-02-04 11:52:57 +00:00
Atsushi Eno ab60f8ab46 2010-02-04 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : a wait handle could be used for more than one
	  requests and hence it sometimes blocked one reply channel. Now
	  it creates a wait handle for each ASP.NET request so that such
	  multiple use should not occur. This should fix blocking on
	  concurrent requests (it indeed fixes as long as I can see).

	* HTTP_listener_notes.txt: some notes updated.


svn path=/trunk/mcs/; revision=150850
2010-02-04 11:09:03 +00:00
Atsushi Eno 999db4286f 2010-02-04 Atsushi Enomoto <[email protected]>
* AspNetReplyChannel.cs : remove garbage output.


svn path=/trunk/mcs/; revision=150843
2010-02-04 09:10:18 +00:00
Atsushi Eno e1f67f786c 2010-02-04 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : Use lock when it tries to create the service
	  host.


svn path=/trunk/mcs/; revision=150842
2010-02-04 08:49:58 +00:00
Zoltan Varga 63bc30b50a Add a test for vtype instances + SetValue ().
svn path=/trunk/mono/; revision=150839
2010-02-04 07:26:51 +00:00
Zoltan Varga 374c4df742 2010-02-04 Zoltan Varga <[email protected]>
* debugger-agent.c (decode_value): Fix decoding of vtype instances. Fixes
	#561962.

svn path=/trunk/mono/; revision=150838
2010-02-04 07:26:45 +00:00
Zoltan Varga 711b9bc766 2010-02-04 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): Emit a null check for the
	'this' argument in icalls.

svn path=/trunk/mono/; revision=150834
2010-02-04 06:39:17 +00:00
Carlos Alberto Cortez b80f47ce1c 2010-02-03 Carlos Alberto Cortez <[email protected]>
* StatusStrip.cs:
	* XplatX11.cs:
	* X11Structs: Implement the new BeginMoveResize method, designed to
	instruct the window manager to init a resize operation on a top level
	form. This is used by StatusStrip.
	* XplatUI.cs:
	* XplatUIDriver.cs:
	* XplatUIWin32.cs:
	* XplatUICarbon.cs: Fill the gaps by creating stubs and updating the
	method calls.
	Fixes #573299.


svn path=/trunk/mcs/; revision=150833
2010-02-04 06:06:45 +00:00
Zoltan Varga 64e343c59e Really fix the build.
svn path=/trunk/mono/; revision=150832
2010-02-04 05:39:11 +00:00
Zoltan Varga c4b552d334 Fix the build.
svn path=/trunk/mono/; revision=150831
2010-02-04 05:38:09 +00:00
Geoff Norton b361ed734d Move the last commit around a bit to make it a tad saner
svn path=/trunk/mono/; revision=150830
2010-02-04 05:37:57 +00:00
Geoff Norton a795403bb3 make eglib work with c++
svn path=/trunk/mono/; revision=150829
2010-02-04 05:37:07 +00:00
Zoltan Varga 8b82ec7fd9 2010-02-04 Zoltan Varga <[email protected]>
* dtest.cs: Add a test for TypeMirror.EnumUnderlyingType.

svn path=/trunk/mono/; revision=150828
2010-02-04 05:06:18 +00:00
Zoltan Varga b3e2b3bd71 2010-02-04 Zoltan Varga <[email protected]>
* TypeMirror.cs (EnumUnderlyingType): New property.

	* EnumMirror.cs: Use it.

svn path=/trunk/mcs/; revision=150826
2010-02-04 05:05:19 +00:00
Zoltan Varga 3c3ed750ed 2010-02-04 Zoltan Varga <[email protected]>
* mini-llvm.c: Init the jit module only when first JITting.

svn path=/trunk/mono/; revision=150825
2010-02-04 04:48:32 +00:00
Geoff Norton 4bd1f7ba72 fix compiling xdebug with DISABLE_AOT || DISABLE_JIT
svn path=/trunk/mono/; revision=150824
2010-02-04 04:45:10 +00:00
Zoltan Varga 1a15aa2cd8 Fix another case.
svn path=/trunk/mono/; revision=150823
2010-02-04 04:38:53 +00:00
Zoltan Varga 265bd4bae4 2010-02-04 Zoltan Varga <[email protected]>
* aot-compiler.c (emit_plt): Fix the naming of plt entries of llvm+darwin.

svn path=/trunk/mono/; revision=150822
2010-02-04 04:03:15 +00:00
Zoltan Varga e8b53146ec 2010-02-04 Zoltan Varga <[email protected]>
* mini-llvm.c (get_plt_entry): Make the plt entries have hidden visibility.

svn path=/trunk/mono/; revision=150821
2010-02-04 04:03:09 +00:00
Zoltan Varga 6d70811e74 2010-02-04 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_aot_module): Remove the dummy got after it is
	replaced with the real got.

svn path=/trunk/mono/; revision=150820
2010-02-04 03:44:00 +00:00
Zoltan Varga a6e88f800a Fix the previous change.
svn path=/trunk/mono/; revision=150819
2010-02-04 03:36:26 +00:00
Zoltan Varga 1120294689 2010-02-04 Zoltan Varga <[email protected]>
* dtest.cs dtest-app.cs: Add tests for TypeMirror.IsEnum and
	VirtualMachine.CreateEnumMirror ().

svn path=/trunk/mono/; revision=150816
2010-02-04 03:03:06 +00:00
Zoltan Varga 232533fd1c 2010-02-04 Zoltan Varga <[email protected]>
* debugger-agent.c (type_commands): Return the enumness if the type as well.

svn path=/trunk/mono/; revision=150815
2010-02-04 03:03:00 +00:00
Zoltan Varga adad5bef58 2010-02-04 Zoltan Varga <[email protected]>
* VirtualMachine.cs (CreateEnumMirror): New method to create an EnumMirror.

	* AppDomainMirror.cs (GetCorrespondingType): New method to return a TypeMirror
	corresponding to a primitive type.

	* TypeMirror.cs (IsEnum): Implement.

	* EnumMirror.cs (.ctor): New internal constructor called from CreateEnumMirror
	which does lots of error checking.

svn path=/trunk/mcs/; revision=150813
2010-02-04 03:00:31 +00:00
Zoltan Varga c2d96e6e50 2010-02-04 Zoltan Varga <[email protected]>
* image-writer.c: Reduce the amount of #ifdefs a bit.

	* aot-compiler.c: Reduce the amount of #ifdefs. Add beginnings of support for
	llvm on darwin/arm.

svn path=/trunk/mono/; revision=150806
2010-02-04 01:45:01 +00:00
Marek Habersack f8064df3a7 2010-02-04 Marek Habersack <[email protected]>
* PreservationFile.cs: updated the BuildResulTypeCode enum

	* BuildManager.cs: LoadCompiled now adds all the assemblies built
	from the App_Code directory to the BuildManager.CodeAssemblies
	collection. Fixes bug #576810

svn path=/trunk/mcs/; revision=150802
2010-02-04 01:01:18 +00:00
Zoltan Varga 5c9ce73d2e 2010-02-04 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_compile_assembly): Handle asmonly+llvm mode.

	* mini-llvm.c (mono_llvm_emit_method): Don't make the 'type_info' symbols
	global.

svn path=/trunk/mono/; revision=150800
2010-02-04 00:08:11 +00:00
Jonathan Pobst 50044dfc5e 2010-02-03 Jonathan Pobst <[email protected]>
* HttpCalls.cs: Disable all tests here due to excessive
	sporadic failures.  Filed as bug #576724.

svn path=/trunk/mcs/; revision=150788
2010-02-03 21:16:00 +00:00
Rodrigo Kumpera 3905873f3c 2010-02-03 Rodrigo Kumpera <[email protected]>
* SplitTests.cs: New tests for #566117.

svn path=/trunk/mcs/; revision=150787
2010-02-03 21:10:25 +00:00
Rodrigo Kumpera 22fb8fe69c 2010-02-03 Rodrigo Kumpera <[email protected]>
* BaseMachine.cs (Split): Don't add empty strings if they don't
	* come from
	the first capture group. Fixes #566117.

svn path=/trunk/mcs/; revision=150786
2010-02-03 21:10:16 +00:00
Ankit Jain ecaaeeff64 Fix bug #576589.
* ConditionFunctionExpression.cs (Exists): Check for directory also.

svn path=/trunk/mcs/; revision=150781
2010-02-03 20:08:52 +00:00
Jonathan Pobst 94091b8c6f 2010-02-03 Jonathan Pobst <[email protected]>
* BaseCalls.cs: Mark tests as NotWorking.  Reported as bug #576618.

svn path=/trunk/mcs/; revision=150775
2010-02-03 17:49:08 +00:00
Atsushi Eno 5ce8788dd6 2010-02-03 Astushi Enomoto <[email protected]>
* HTTP_listener_notes.txt: I couldn't help but write about it to
	  not keep myself confused by this complicated stuff.


svn path=/trunk/mcs/; revision=150764
2010-02-03 13:47:29 +00:00
Sebastien Pouliot dfa003f2fc 2010-02-03 Sebastien Pouliot <[email protected]>
*  ASN1ConvertTest.cs: Fix test cases by using local time. Patch
	provided by Peter Dettman. Fix bug #324181


svn path=/trunk/mcs/; revision=150763
2010-02-03 13:09:57 +00:00
Zoltan Varga 4bb0102c78 Remove an assert.
svn path=/trunk/mono/; revision=150747
2010-02-02 22:45:19 +00:00
Zoltan Varga 41ef8101a2 2010-02-02 Zoltan Varga <[email protected]>
* reflection.c (resolve_object): Handle MonoArrayMethod. Fixes #575955.

svn path=/trunk/mono/; revision=150746
2010-02-02 22:45:13 +00:00
Zoltan Varga 6f349cf685 2010-02-02 Zoltan Varga <[email protected]>
* DynamicMethodTest.cs: Add a test for #575955.

svn path=/trunk/mcs/; revision=150745
2010-02-02 22:41:08 +00:00
Zoltan Varga e1aa6e05eb 2010-02-02 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add support for unaligned loads.
	(mono_llvm_emit_method): Fix unaligned stores too.

svn path=/trunk/mono/; revision=150742
2010-02-02 21:54:28 +00:00
Zoltan Varga 9c7daac28f 2010-02-02 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add support for unaligned loads.

svn path=/trunk/mono/; revision=150741
2010-02-02 21:44:11 +00:00
Zoltan Varga 9eb3b536aa 2010-02-02 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_prolog): Initialize lmf->rsp in the prolog too
	so async stack walks don't crash.

svn path=/trunk/mono/; revision=150737
2010-02-02 20:41:12 +00:00
Zoltan Varga 3b77fc55e4 Fix DISABLE_JIT.
svn path=/trunk/mono/; revision=150736
2010-02-02 20:41:03 +00:00
Rodrigo B. de Oliveira e300ebf95d 2010-02-02 Rodrigo B. de Oliveira <[email protected]>
svn path=/trunk/mcs/; revision=150729
2010-02-02 19:32:24 +00:00
Jérémie Laval f057fbdef1 2010-02-02 Jérémie Laval <[email protected]>
In class/corlib/System.Threading.Tasks/:
   * Task.cs: Fix autocomplete mistake (s/Exception/exception/).
   Let continuation processing happens at the right moment when
   task has child.

svn path=/trunk/mcs/; revision=150728
2010-02-02 19:22:24 +00:00
Jb Evain 8ad6f160cc 2010-02-02 Jb Evain <[email protected]>
* ASCIIEncoding.cs, Latin1Encoding.cs: remove duplicated code.

svn path=/trunk/mcs/; revision=150721
2010-02-02 18:22:05 +00:00
Jérémie Laval e531fc2677 2010-02-02 Jérémie Laval <[email protected]>
In class/corlib/:
   * corlib.dll.sources: Add System.Threading.Tasks/SimpleConcurrentBag.cs
   and System.Threading.Tasks/UnobservedTaskExceptionEventArgs.cs

In class/corlib/System.Collections.Concurrent/:
   * ConcurrentDictionary.cs:
   * ConcurrentQueue.cs:
   * ConcurrentStack.cs:
   * Partitioner.cs: Port to .NET 4 beta 2 API
   * ConcurrentSkipList.cs: Use Monitor for locking

In class/corlib/System.Threading.Tasks/:
   * Future.cs:
   * Parallel.cs:
   * ParallelLoopState.cs:
   * Task.cs:
   * TaskCompletionSource.cs:
   * TaskContinuationOptions.cs:
   * TaskCreationOptions.cs:
   * TaskFactory.cs:
   * TaskScheduler.cs:
   * UnobservedTaskExceptionEventArgs.cs: Port to .NET 4 beta 2 API
   * SimpleConcurrentBag.cs: Add a simpler implementation of ConcurrentBag
   for use with parallel loops as ConcurrentBag was moved to System

In class/corlib/System.Threading/:
   * CancellationToken.cs:
   * CancellationTokenSource.cs:
   * ManualResetEventSlim.cs:
   * SemaphoreSlim.cs:
   * SpinLock.cs:
   * SpinWait.cs:
   * ThreadLocal.cs: Port to .NET 4 beta 2 API

In class/corlib/System/:
   * AggregateException.cs:
   * OperationCanceledException.cs: Port to .NET 4 beta 2 API

In class/corlib/Test/System.Collections.Concurrent/:
   * CollectionStressTestHelper.cs:
   * ConcurrentBagTests.cs:
   * ConcurrentDictionaryTests.cs:
   * ConcurrentQueueTests.cs:
   * ConcurrentSkipListTests.cs:
   * ConcurrentStackTests.cs:
   * ParallelConcurrentQueueTests.cs:
   * ParallelConcurrentStackTests.cs: Update namespaces and tested methods

In class/corlib/Test/System.Threading.Tasks/:
   * FutureTests.cs:
   * ParallelTestHelper.cs:
   * ParallelTests.cs:
   * SnziTests.cs:
   * TaskCompletionSourceTests.cs:
   * TaskTest.cs: Update namespace and tested methods

In class/corlib/Test/System.Threading/:
   * CancellationTokenTests.cs:
   * LazyInitTests.cs:
   * ThreadLazyTests.cs: Update namespace and tested methods

svn path=/trunk/mcs/; revision=150716
2010-02-02 17:06:15 +00:00
Atsushi Eno 779097acc6 2010-02-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : lock when it tries to acquire
	  HttpHandler.


svn path=/trunk/mcs/; revision=150705
2010-02-02 12:29:11 +00:00
Marek Safar 4efba66213 2010-02-02 Marek Safar <[email protected]>
A fix for bug #574991
	* rootcontext.cs, class.cs, driver.cs: Hide enhanced warnings behind
	--lint.


svn path=/trunk/mcs/; revision=150702
2010-02-02 10:49:32 +00:00
Jb Evain 31a69eba8d kill old out of sync comments
svn path=/trunk/mcs/; revision=150701
2010-02-02 10:41:54 +00:00
Marek Safar 9a1c183f0a More tests.
svn path=/trunk/mcs/; revision=150696
2010-02-02 09:49:57 +00:00
Marek Safar 3e27e03db3 2010-02-02 Marek Safar <[email protected]>
A fix for bug #575986
	* expression.cs: Don't mutate typeof type definitions.


svn path=/trunk/mcs/; revision=150695
2010-02-02 09:49:27 +00:00
Atsushi Eno 9d70540d4e 2010-02-02 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : add another workaround for blocking
	  concurrent calls.


svn path=/trunk/mcs/; revision=150694
2010-02-02 08:18:56 +00:00
Atsushi Eno 18a8263857 2010-02-02 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : small refactoring.


svn path=/trunk/mcs/; revision=150693
2010-02-02 08:08:04 +00:00
Zoltan Varga aecdf73de3 2010-02-02 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
	was not patched if the callee needed an rgctx trampoline.

svn path=/trunk/mono/; revision=150692
2010-02-02 05:15:07 +00:00
Marek Habersack 7bf126dbdf 2010-02-02 Marek Habersack <[email protected]>
* ScriptManager.cs: adjusted script rendering to match .NET
	formatting.

	* ScriptComponentDescriptor.cs: GetScript adds ID value (if
	present) to the set of properties.
	GetScript rewritten to use StringBuilder.

	* ScriptBehaviorDescriptor.cs: GetScript adds Name, if present and
	set by the user, to the descriptor's set of properties. The name
	must be rendered to the client.

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

	* ScriptBehaviorDescriptorTest.cs,
	ScriptComponentDescriptorTest.cs: added tests for rendering of the
	Name and ID properties.

svn path=/trunk/mcs/; revision=150684
2010-02-01 23:47:21 +00:00
Mark Probst 144fd77765 2010-02-01 Mark Probst <[email protected]>
* object.c, domain.c: When using SGen, we must register
        vtable->type as a root if it's not a MonoType, because then it
        wasn't pin-alloced.

svn path=/trunk/mono/; revision=150665
2010-02-01 20:17:45 +00:00
Zoltan Varga 641103bcf8 Fix this test in System as well.
svn path=/trunk/mcs/; revision=150659
2010-02-01 19:33:38 +00:00
Zoltan Varga 1a2b8f27a7 2010-02-01 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_get_global_int_regs): Reserve r29 for holding the
	vtable address in AOT code.

svn path=/trunk/mono/; revision=150658
2010-02-01 19:12:58 +00:00
Zoltan Varga 5e4e348d85 Fix a test after the Directory.Exists () changes.
svn path=/trunk/mcs/; revision=150657
2010-02-01 18:10:40 +00:00
Zoltan Varga 0f8efba45a 2010-02-01 Zoltan Varga <[email protected]>
* mini-codegen.c: Remove support for CEE_ opcodes which cannot occur in
	MonoInst's.

svn path=/trunk/mono/; revision=150650
2010-02-01 15:53:44 +00:00
Paolo Molaro e182d72e7a Mon Feb 1 16:29:10 CET 2010 Paolo Molaro <[email protected]>
* genmdesc.pl: remove dependency on external cpp.


svn path=/trunk/mono/; revision=150647
2010-02-01 15:29:57 +00:00
Mark Probst 4de9290371 2010-02-01 Mark Probst <[email protected]>
* sgen-gc.c: Reset to_space_bumper to to_space_section->next_data
        at the start of nursery collections, because we might have had
        degraded allocations which changed next_data.

svn path=/trunk/mono/; revision=150646
2010-02-01 15:18:59 +00:00
Zoltan Varga ed44a015c7 2010-02-01 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_ldelema_1_ins): Avoid emitting an OP_SEXT_I4 when
	using LLVM, its not needed, and abcrem can't handle it.

svn path=/trunk/mono/; revision=150642
2010-02-01 14:52:06 +00:00
Jb Evain 3008f09da1 fix build
svn path=/trunk/mcs/; revision=150641
2010-02-01 14:34:53 +00:00
Paolo Molaro e96b1271fd Mon Feb 1 14:29:43 CET 2010 Paolo Molaro <[email protected]>
* genmdesc.c, genmdesc.pl, cpu-x86.md: introduced templates to make
	it easier to group instructions and reduce duplication.


svn path=/trunk/mono/; revision=150635
2010-02-01 13:31:14 +00:00
Jb Evain b38c8ca92a 2010-02-01 Jb Evain <[email protected]>
* MarkStep.cs: SoapHeader can either take a field or a property.

svn path=/trunk/mcs/; revision=150633
2010-02-01 13:25:52 +00:00
Jb Evain ccb97a9136 2010-02-01 Jb Evain <[email protected]>
* SoapProtocolImporter.cs: properly generate the SoapHeader
	attribute on NET_2_0.

svn path=/trunk/mcs/; revision=150632
2010-02-01 13:15:02 +00:00
Carlos Alberto Cortez cfdac02d03 2010-02-01 Carlos Alberto Cortez <[email protected]>
* ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
	back color arguments depending on the higlight/focus state, just like
	.net.
	Fixes #572643.


svn path=/trunk/mcs/; revision=150623
2010-02-01 09:26:17 +00:00
Zoltan Varga 4b7e41c7be 2010-02-01 Zoltan Varga <[email protected]>
* decompose.c: Move the array/soft float decompose routines here from
	method-to-ir.c.

	* method-to-ir.c: Export a few functions so they can be used from decompose.c.

svn path=/trunk/mono/; revision=150613
2010-02-01 02:29:35 +00:00
Zoltan Varga 25836579af Remove a debugging aid.
svn path=/trunk/mono/; revision=150610
2010-01-31 23:23:47 +00:00
Zoltan Varga ae7654c878 2010-01-31 Zoltan Varga <[email protected]>
* MonoGenericClass.cs: Fix a warning.

svn path=/trunk/mcs/; revision=150607
2010-01-31 19:21:10 +00:00
Zoltan Varga aa4d0babe2 2010-01-31 Zoltan Varga <[email protected]>
* Directory.cs (Exists): Never throw an exception. Fixes #565152.

svn path=/trunk/mcs/; revision=150605
2010-01-31 19:17:34 +00:00
Zoltan Varga a9516e9084 2010-01-31 Zoltan Varga <[email protected]>
* Enum.cs: Fix a warning.

svn path=/trunk/mcs/; revision=150604
2010-01-31 19:17:27 +00:00
Zoltan Varga 9bc22311ef 2010-01-31 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add a call to llvm.invariant.start
	to tell LLVM that the got is constant, not used yet.

	* aot-compiler.c: Pass more optimization flags to llvm's 'opt'.

svn path=/trunk/mono/; revision=150601
2010-01-31 04:19:26 +00:00
Zoltan Varga 1b5ac77895 2010-01-30 Zoltan Varga <[email protected]>
* CustomAttributeBuilderTest.cs: Add a test for #574353.

svn path=/trunk/mcs/; revision=150598
2010-01-30 19:58:45 +00:00
Zoltan Varga ab8d6a64c9 2010-01-30 Zoltan Varga <[email protected]>
* CustomAttributeBuilder.cs (Initialize): Add more argument checking to avoid
	assertions in the runtime. Fixes #574353.

svn path=/trunk/mcs/; revision=150597
2010-01-30 19:58:35 +00:00
Carlos Alberto Cortez 634b1953a2 2010-01-29 Carlos Alberto Cortez <[email protected]>
* NetworkStream.cs: Our explicit impl of IDisposable.Dispose belongs
	to 1.0/1.1 only. Also move the call to GC.SupressFinalize to
	Dispose(bool), as expected and as done by other Stream children
	implementing a destructor.
	Fixes #564637.


svn path=/trunk/mcs/; revision=150590
2010-01-30 02:26:30 +00:00
Zoltan Varga fe3cd6df05 2010-01-30 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_prolog): Fix full aot support for native to
	managed wrappers.

svn path=/trunk/mono/; revision=150589
2010-01-30 02:19:35 +00:00
Zoltan Varga 3d0d665ea0 2010-01-30 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Commit the hack which generates
	native-to-managed wrappers for methods decorated with the MonoPInvokeCallback
	custom attribute.

svn path=/trunk/mono/; revision=150588
2010-01-30 02:17:21 +00:00
Zoltan Varga 3c1b5fd65a 2010-01-30 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_managed_wrapper): Avoid constructing the
	custom attr so this function works in cross-compiling mode.

svn path=/trunk/mono/; revision=150587
2010-01-30 02:17:12 +00:00
Mike Kestner a3126ce34c 2010-01-29 Mike Kestner <[email protected]>
* System.dll.sources: add System.Net/WebUtility.cs.
	* System_test.dll.sources: add WebUtilityTest.cs to tests.

svn path=/trunk/mcs/; revision=150571
2010-01-29 20:44:06 +00:00
Zoltan Varga 6b9c1046a7 2010-01-29 Zoltan Varga <[email protected]>
* Int32Test.cs: Fix a copy-paste error.

svn path=/trunk/mcs/; revision=150570
2010-01-29 20:18:56 +00:00
Geoff Norton fe4d565853 2010-01-29 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Don't define NO_PTHREAD_TRYLOCK on darwin-x86
        Patch from Tom Philpot ([email protected])

svn path=/trunk/mono/; revision=150568
2010-01-29 18:58:53 +00:00
Zoltan Varga 5fba122793 2010-01-29 Zoltan Varga <[email protected]>
* TypeTest.cs: Add a test for #574819.

svn path=/trunk/mcs/; revision=150560
2010-01-29 17:42:38 +00:00
Zoltan Varga 1220578e69 2010-01-29 Zoltan Varga <[email protected]>
* class.c (make_generic_param_class): Initialize interface offsets since we
	set klass->inited. Fixes #574819.

svn path=/trunk/mono/; revision=150558
2010-01-29 17:41:53 +00:00
Carlos Alberto Cortez 315c27cee2 2010-01-29 Carlos Alberto Cortez <[email protected]>
* VersionTest.cs: New tests for Parse and TryParse.


svn path=/trunk/mcs/; revision=150538
2010-01-29 06:15:38 +00:00
Carlos Alberto Cortez bcd4191d79 2010-01-29 Carlos Alberto Cortez <[email protected]>
* Version.cs: Implement Parse and TryParse.


svn path=/trunk/mcs/; revision=150537
2010-01-29 06:13:45 +00:00
Zoltan Varga 614ea2a693 2010-01-29 Zoltan Varga <[email protected]>
* mini.h (MONO_INST_FAULT): New instruction flag for loads which can cause
	a fault, only used by the LLVM backend.

	* ir-emit.h: Add _FAULT variants of the LOAD_MEMBASE macros. Mark
	OP_CHECK_THIS with OP_IMPLICIT_EXCEPTION.

	* method-to-ir.c: Use the new LOAD_MEMBASE_FAULT opcodes, get rid of the
	calls to MONO_EMIT_NULL_CHECK which is automatically done by the new macros.

	* mini-llvm.c: Only generate volatile loads from load instructions which have
	the MONO_INST_FAULT flag set.

svn path=/trunk/mono/; revision=150534
2010-01-29 03:12:31 +00:00
Zoltan Varga 7267ddbfa7 2010-01-29 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_decode_fde): Fix the decoding of the LSDA offset on
	64 bit platforms.

svn path=/trunk/mono/; revision=150533
2010-01-29 03:12:24 +00:00
Rolf Bjarne Kvinge cabcb6a011 2010-01-29 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
	the correct thread (by using the stored SynchronizationContext).

	* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
	is passed to the WriteStreamClosedCallback.

svn path=/trunk/mcs/; revision=150512
2010-01-28 23:22:13 +00:00
Gonzalo Paniagua Javier e14a2279b2 2010-01-28 Gonzalo Paniagua Javier <[email protected]>
* UnmanagedMemoryStream.cs: fix a regression from my previous patch.


svn path=/trunk/mcs/; revision=150507
2010-01-28 23:01:51 +00:00
Marek Habersack 5a3c218854 Fix the build
svn path=/trunk/mcs/; revision=150501
2010-01-28 21:11:49 +00:00
Zoltan Varga 73821de670 Remove a debug printf.
svn path=/trunk/mono/; revision=150500
2010-01-28 21:02:30 +00:00
Zoltan Varga 2725b7227f 2010-01-28 Zoltan Varga <[email protected]>
* mini.c (mono_save_seq_point_info): Fix the handling of bblocks without
	sequence points. Fixes #571236.

svn path=/trunk/mono/; revision=150498
2010-01-28 20:59:58 +00:00
Miguel de Icaza 2483070ae4 Revert 150495 and 150496 from mini.c
svn path=/trunk/mono/; revision=150497
2010-01-28 20:58:26 +00:00
Zoltan Varga 29201efca0 Revert "2010-01-28 Zoltan Varga <[email protected]>"
This reverts commit 1db9444081b8fa80d36fe245101d95827341f5b1.

svn path=/trunk/mono/; revision=150496
2010-01-28 20:53:18 +00:00
Zoltan Varga 5de5660323 2010-01-28 Zoltan Varga <[email protected]>
* mini.c (mono_save_seq_point_info): Fix the handling of bblocks without
	sequence points. Fixes #571236.

svn path=/trunk/mono/; revision=150495
2010-01-28 20:51:05 +00:00
Zoltan Varga 006e5c9b5d Add a missing file.
svn path=/trunk/mcs/; revision=150466
2010-01-28 20:29:18 +00:00
Zoltan Varga e4895a6578 2010-01-28 Zoltan Varga <[email protected]>
* dtest.cs: Add minimal tests for assembly unloading.

svn path=/trunk/mono/; revision=150457
2010-01-28 20:02:13 +00:00
Zoltan Varga c19d43a41f 2010-01-28 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
	end of the appdomain unload process, after assemblies have been unloaded.
	Fixes #574842.

svn path=/trunk/mono/; revision=150456
2010-01-28 20:02:07 +00:00
Zoltan Varga 86b34a6393 2010-01-28 Zoltan Varga <[email protected]>
* domain.c (mono_domain_free): Send the END_UNLOAD profiler event before
	calling the JIT domain cleanup hook.

svn path=/trunk/mono/; revision=150455
2010-01-28 20:02:01 +00:00
Zoltan Varga 814160c8e5 2010-01-28 Zoltan Varga <[email protected]>
* AssemblyUnloadEvent: New file.

	* VirtualMachine.cs Connection.cs: Add support for assembly unload events.

svn path=/trunk/mcs/; revision=150399
2010-01-28 19:43:17 +00:00
Marek Safar 72cf126570 Better exception message.
svn path=/trunk/mcs/; revision=150391
2010-01-28 19:22:58 +00:00
Rolf Bjarne Kvinge a7905ec465 2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: The async events must be invoked on a threadpool
	thread if the async method wasn't executed on the main thread, so save
	the synchronization context when the async method is called, and post
	the event to that synchronization context when done. This is also
	required when the async methods are executed on the main thread, since
	HttpWebRequest callbacks are now always executed on a threadpool thread.

svn path=/trunk/mcs/; revision=150370
2010-01-28 12:05:07 +00:00
Rolf Bjarne Kvinge 3ee47a7168 In class/corlib/System.Reflection:
2010-01-28  Rolf Bjarne Kvinge  <[email protected]>

	* Assembly.cs: GetSatelliteAssembly: Ask LoadSatellite to not throw
	exceptions, since we ignore them anyway.

In class/corlib/System:
2010-01-28  Rolf Bjarne Kvinge  <[email protected]>

	* AppDomain.cs: LoadSatellite: add a boolean parameter specifiying
	whether we should throw on exceptions or not.

svn path=/trunk/mcs/; revision=150366
2010-01-28 11:57:22 +00:00
Rolf Bjarne Kvinge e7e4d7931d 2010-01-28 Rolf Bjarne Kvinge <[email protected]>
* TimeSpan.cs: TryParse: Handle null values to not throw ANEs.

svn path=/trunk/mcs/; revision=150365
2010-01-28 11:57:12 +00:00
Atsushi Eno 1ae1e3a9f1 2010-01-28 Atsushi Enomoto <[email protected]>
* Driver.cs, MoonlightChannelBaseExtension.cs, CommandLineOptions.cs:
	  Now that ServiceContractGenerator generates both sync and async
	  methods, it has to explicitly remove sync methods from moonlight
	  proxies since they are not supported.
	  Also now we can generate sync proxies for monotouch, so
	  differentiate them again to support sync proxy generation (if you
	  don't want to generate sync methods, just use -moonlight).


svn path=/trunk/mcs/; revision=150364
2010-01-28 11:42:13 +00:00
Atsushi Eno f4fcfed91e 2010-01-28 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : when Options.AsynchronousMethods is
	  specified, generate async methods *as well as* sync methods (i.e.
	  not exclusively).

	  In moonlight proxy generator (svcutil -moonlight) mode, sync
	  methods will be removed at svcutil itself.
	  This fix brings sync proxy methods back to monotouch.

	* ServiceContractGeneratorTest.cs : add test for async method
	  generation option to generate sync methods as well.


svn path=/trunk/mcs/; revision=150363
2010-01-28 11:41:47 +00:00
Marek Safar 255b101a83 2010-01-28 Marek Safar <[email protected]>
* decl.cs: Use only one set of modifiers.


svn path=/trunk/mcs/; revision=150362
2010-01-28 11:35:22 +00:00
Atsushi Eno 0f1cffee4c 2010-01-28 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs : generate valid code for non-
	  identifier names. This should fix bug #488293.


svn path=/trunk/mcs/; revision=150356
2010-01-28 08:36:05 +00:00
Gonzalo Paniagua Javier 3efb75a2ed 2010-01-28 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: no need for sync flush when compressing.
	Thanks to Hin-Tak Leung.


svn path=/trunk/mono/; revision=150349
2010-01-28 07:08:19 +00:00
Atsushi Eno 12a17f7f10 2010-01-28 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
	  storing of zeros. Fixed bug #543332.

	* XmlReaderCommonTests.cs : added test for bug #543332.


svn path=/trunk/mcs/; revision=150347
2010-01-28 05:54:20 +00:00
Gonzalo Paniagua Javier bbc13e42bc 2010-01-27 Gonzalo Paniagua Javier <[email protected]>
* Stopwatch.cs: add new Restart().


svn path=/trunk/mcs/; revision=150317
2010-01-27 22:40:18 +00:00
Rodrigo Kumpera 9c51cf41cf 2010-01-28 Rodrigo Kumpera <[email protected]>
* serial.c: Fix the OSX build.

svn path=/trunk/mono/; revision=150313
2010-01-27 19:19:05 +00:00
Rodrigo Kumpera aa8590b61c 2010-01-28 Rodrigo Kumpera <[email protected]>
* large-gc-bitmap.cs: Respect the 1Mb size limit for valuetype types.

svn path=/trunk/mono/; revision=150307
2010-01-27 18:31:55 +00:00
Rodrigo Kumpera 22bb62420d 2010-01-28 Rodrigo Kumpera <[email protected]>
* mono-error-internals.h: Add mono_error_set_not_verifiable.

	* mono-error.h: Add MONO_ERROR_NOT_VERIFIABLE.

	* mono-error.c: Implement mono_error_set_not_verifiable.

svn path=/trunk/mono/; revision=150306
2010-01-27 18:31:46 +00:00
Rodrigo Kumpera d34de02ae1 2010-01-28 Rodrigo Kumpera <[email protected]>
* Makefile, *.sh, *.il: Change status of a bunch of a tests to reflect the metadata
	verifier. First pass into making the test suite works under OSX.

svn path=/trunk/mono/; revision=150305
2010-01-27 18:31:38 +00:00
Rodrigo Kumpera 38e59a4565 2010-01-28 Rodrigo Kumpera <[email protected]>
* pedump.c (main): Properly set the verifier mode when running the metadata
	verifier.

svn path=/trunk/mono/; revision=150304
2010-01-27 18:26:39 +00:00
Rodrigo Kumpera 8a77cb8bff 2010-01-28 Rodrigo Kumpera <[email protected]>
* verify.c (verify_class_for_overlapping_reference_fields): Properly verify
	overlapping fields now that we're called before has_references is set.

	* pedump.c (dump_verify_info): Clear any loader error before verifying another
	method. Otherwise all sort of weird stuff happens.

svn path=/trunk/mono/; revision=150303
2010-01-27 18:26:29 +00:00
Zoltan Varga 86509331fc 2010-01-27 Zoltan Varga <[email protected]>
* ValueTypeTest.cs: Add a test for Equals () + nullables.

svn path=/trunk/mcs/; revision=150294
2010-01-27 14:49:35 +00:00
Zoltan Varga 85ca887755 2010-01-27 Zoltan Varga <[email protected]>
* object.c (mono_field_get_value_object): Handle nullable types correctly.
	Fixes #572874.

svn path=/trunk/mono/; revision=150291
2010-01-27 14:43:20 +00:00
Atsushi Eno ae319ebc63 2010-01-27 Atsushi Enomoto <[email protected]>
* JsonReader.cs : oops, added previous change to wrong position.


svn path=/trunk/mcs/; revision=150287
2010-01-27 10:39:14 +00:00
Atsushi Eno 1bacfd9f5e 2010-01-27 Atsushi Enomoto <[email protected]>
* JsonReader.cs : It seems it can either return int, long or decimal
	  depending on the value. Users cannot really predict what type of
	  the primitive value can be returned and casts to specific types
	  very likely fail. doh.


svn path=/trunk/mcs/; revision=150285
2010-01-27 10:28:56 +00:00
Carlos Alberto Cortez 2cd7e1ff0e 2010-01-27 Carlos Alberto Cortez <[email protected]>
* UriTest.cs: added an assertion in the IsWellFormedOriginalString
	test case to test urls containing '#'.


svn path=/trunk/mcs/; revision=150283
2010-01-27 09:04:21 +00:00
Carlos Alberto Cortez 703df6ed33 2010-01-27 Carlos Alberto Cortez <[email protected]>
* Uri.cs: In IsWellFormedOriginalString(), call to our internal
	EscapeString() method since we need to tell it to *not* escape '#'
	(hex). Fixes #549135.


svn path=/trunk/mcs/; revision=150282
2010-01-27 09:01:46 +00:00
Atsushi Eno eede1f63d3 2010-01-27 Atsushi Enomoto <[email protected]>
* XmlAtomicValue.cs: handle Decimal here to process xs:decimal as
	  a valid base type for simple types. patch by Luke Ravitch,
	  Fixed bug #557452.

	* XmlSchemaValidatorTests.cs : added test for bug #557452, by
	  Luke Ravitch.


svn path=/trunk/mcs/; revision=150280
2010-01-27 06:32:59 +00:00
Atsushi Eno 9579012ec5 2010-01-27 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializer.cs : KnownTypes does not include root
	  type. Fixed bug #573689.

	* DataContractJsonSerializerTest.cs :
	  enable TypeIsNotPartsOfKnownTypes(), and add more related tests.


svn path=/trunk/mcs/; revision=150279
2010-01-27 06:17:48 +00:00
Atsushi Eno 691da3318e 2010-01-27 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializerTest.cs : make some tests narrow down
	  possible cause of errors to detect expected errors more precisely.


svn path=/trunk/mcs/; revision=150278
2010-01-27 06:06:21 +00:00
Atsushi Eno 1c2432b083 2010-01-27 Atsushi Enomoto <[email protected]>
* JsonSerializationReader.cs : oops, wrong fix, should consume the
	  reader.


svn path=/trunk/mcs/; revision=150277
2010-01-27 05:42:33 +00:00
Atsushi Eno 6cd5a57fc3 2010-01-27 Atsushi Enomoto <[email protected]>
* JsonSerializationReader.cs : "null" for string should be read as
	  null, not String.Empty. Fixed bug #573690.

	* DataContractJsonSerializerTest.cs : null-string case is working.


svn path=/trunk/mcs/; revision=150276
2010-01-27 05:36:54 +00:00
Atsushi Eno ae084ccf3e 2010-01-27 Atsushi Enomoto <[email protected]>
* DataContractJsonSerializerTest.cs : invalidate previous non-working
	  tests.


svn path=/trunk/mcs/; revision=150275
2010-01-27 05:26:00 +00:00
Miguel de Icaza c8a2d6adfe 2010-01-26 U-anarquia\miguel <miguel@anarquia>
* mono-dl.c: Removed debugging messages for the embeddable version
	of mono-dl.

svn path=/trunk/mono/; revision=150273
2010-01-27 04:22:37 +00:00
Zoltan Varga 4e91f54457 2010-01-27 Zoltan Varga <[email protected]>
* abcremoval.c (process_block): Fix the if (region) check so abcrem actually
	works.

svn path=/trunk/mono/; revision=150271
2010-01-27 02:48:56 +00:00
Atsushi Eno a49c5de1bf 2010-01-27 Atsushi Enomoto <[email protected]>
* JsonReader.cs : use decimal instead of int to parse decimal part
	  of numeric value. It can parse bigger value than int now (like
	  tweet id).


svn path=/trunk/mcs/; revision=150268
2010-01-27 01:37:27 +00:00
Zoltan Varga a4852126e9 Fix a typo.
svn path=/trunk/mono/; revision=150267
2010-01-27 01:34:45 +00:00
Zoltan Varga f8e2cf4127 2010-01-27 Zoltan Varga <[email protected]>
* configure.in: Fix the setting of LLVM_CXXFLAGS.

svn path=/trunk/mono/; revision=150266
2010-01-27 01:31:16 +00:00
Miguel de Icaza e89c0eb930 Wrong file to install
svn path=/trunk/mono/; revision=150260
2010-01-27 00:45:10 +00:00
Miguel de Icaza eff5d79c33 Install mono-dl.h header
svn path=/trunk/mono/; revision=150258
2010-01-27 00:40:38 +00:00
Zoltan Varga 6fe5074b31 2010-01-27 Zoltan Varga <[email protected]>
* mini-amd64.c: Make the soft debugger work on platforms without MAP_32BIT.
	Fixes #573988.

svn path=/trunk/mono/; revision=150251
2010-01-26 23:05:59 +00:00
Zoltan Varga 746ce9e8cc 2010-01-26 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_type): Treat MONO_TYPE_PTR as 'I' not 'I4'.

svn path=/trunk/mono/; revision=150249
2010-01-26 22:10:34 +00:00
Gonzalo Paniagua Javier 36b93857e4 new field
svn path=/trunk/mcs/; revision=150247
2010-01-26 22:07:44 +00:00
Geoff Norton 63b8943f0c 2010-01-26 Geoff Norton <[email protected]>
* aot-compiler.c: Fix a logic error introduced when guarding against enums
        with struct marshalability.

svn path=/trunk/mono/; revision=150246
2010-01-26 22:02:10 +00:00
Gonzalo Paniagua Javier af5df1d187 signature fixes
svn path=/trunk/mcs/; revision=150244
2010-01-26 21:12:48 +00:00
Gonzalo Paniagua Javier 7f74fe632a new files
svn path=/trunk/mcs/; revision=150243
2010-01-26 21:12:33 +00:00
Gonzalo Paniagua Javier 6a3017631e fix T8 method
svn path=/trunk/mcs/; revision=150242
2010-01-26 21:12:01 +00:00
Sebastien Pouliot 0f34c4b534 2010-01-26 Sebastien Pouliot <[email protected]>
* DataContractJsonSerializer_2_1.cs: Don't hide [Field|Method]
	AccessException inside a SerializationException but in a 
	SecurityException.


svn path=/trunk/mcs/; revision=150219
2010-01-26 18:32:30 +00:00
Sebastien Pouliot 5b10ff808e 2010-01-26 Sebastien Pouliot <[email protected]>
* monotouch_System.ServiceModel.Web.dll.sources: Don't inherit from
	net_2_1_raw*.sources when you require a superset of moonlight API


svn path=/trunk/mcs/; revision=150214
2010-01-26 16:26:20 +00:00
Marek Habersack ac1edece76 2010-01-26 Marek Habersack <[email protected]>
* net_2_1_raw_corlib.dll.sources: added System.IO/SearchOption.cs
	to fix the build.

2010-01-26  Marek Habersack  <[email protected]>

	* SearchOption.cs: included in 2.1 build as internal to fix
	the build.

svn path=/trunk/mcs/; revision=150207
2010-01-26 11:53:03 +00:00
Marek Safar 7c8cbd8e5b 2010-01-26 Marek Safar <[email protected]>
A fix for bug #573329
	* eval.cs: Don't disable error reporting completely on silent mode.


svn path=/trunk/mcs/; revision=150203
2010-01-26 09:52:57 +00:00
Miguel de Icaza 5405e00033 Added test case
svn path=/trunk/mcs/; revision=150201
2010-01-26 08:24:18 +00:00
Atsushi Eno 2866de3175 2010-01-26 Atsushi Enomoto <[email protected]>
* XmlReflectionImporter.cs, SerializationCodeGenerator.cs,
	  XmlSerializationWriterInterpreter.cs: XmlAnyElementAttribute can be
	  still used for non-XmlNode (object) array. It only fails when it
	  tries to serialize non-XmlNode object at run-time.
	  Fixed bug #553032.

	* XmlSerializerTests.cs : added test for bug #553032.


svn path=/trunk/mcs/; revision=150197
2010-01-26 07:06:51 +00:00
Atsushi Eno c64203d33c 2010-01-26 Atsushi Enomoto <[email protected]>
* XmlSchemaValidatorTests.cs : added test for bug #502251, by
	  Jonas Larsson.


svn path=/trunk/mcs/; revision=150196
2010-01-26 06:10:41 +00:00
Miguel de Icaza fb2479e074 Some findings
svn path=/trunk/mono/; revision=150195
2010-01-26 06:00:49 +00:00
Atsushi Eno 569db617bc 2010-01-26 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : validate base type first and then
	  validate particle. Patch by Jonas Larsson, fixed bug #502251.


svn path=/trunk/mcs/; revision=150194
2010-01-26 05:59:04 +00:00
Atsushi Eno 2f8435c724 2010-01-26 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : when adding a schema with "", it seems treated
	  as if it were null. Fixed bug #571650.

	* XmlSchemaSetTests.cs : added test for bug #571650.


svn path=/trunk/mcs/; revision=150187
2010-01-26 02:19:40 +00:00
Carlos Alberto Cortez ea22670432 2010-01-25 Carlos Alberto Cortez <[email protected]>
* EnumTest.cs: New tests for the new TryParse method.


svn path=/trunk/mcs/; revision=150186
2010-01-26 02:12:58 +00:00
Gonzalo Paniagua Javier a5494a7e91 2010-01-25 Gonzalo Paniagua Javier <[email protected]>
* DirectoryInfo.cs: new overload for GetFileSystemInfos().


svn path=/trunk/mcs/; revision=150164
2010-01-26 00:13:15 +00:00
Gonzalo Paniagua Javier 911170c693 2010-01-25 Gonzalo Paniagua Javier <[email protected]>
* UnmanagedMemoryStream.cs: add the SafeBuffer overloads.


svn path=/trunk/mcs/; revision=150162
2010-01-25 23:36:49 +00:00
Gonzalo Paniagua Javier a71989c8aa status fix
svn path=/trunk/mcs/; revision=150157
2010-01-25 21:33:03 +00:00
Gonzalo Paniagua Javier 4581393bc0 2010-01-25 Gonzalo Paniagua Javier <[email protected]>
* EqualityComparer.cs: (Equals) the arguments are checked to be
	the correct type.


svn path=/trunk/mcs/; revision=150156
2010-01-25 21:07:41 +00:00
Gonzalo Paniagua Javier 694e702d89 2010-01-25 Gonzalo Paniagua Javier <[email protected]>
* Array.cs: updates to the API from beta2.
	* _AppDomain.cs: no GetLifeTimeService() in 4.0


svn path=/trunk/mcs/; revision=150155
2010-01-25 21:06:42 +00:00
Sebastien Pouliot 027be100d9 2010-01-25 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.ServiceModel.Web.dll.sources: Use custom
	version of DataContractJsonSerializer for Moonlight


svn path=/trunk/mcs/; revision=150153
2010-01-25 21:02:41 +00:00
Sebastien Pouliot 4ec2a8c5a3 2010-01-25 Sebastien Pouliot <[email protected]>
* DataContractJsonSerializerTest.cs: Add non-working test cases
	for null-string, known types and handling floating point special
	values


svn path=/trunk/mcs/; revision=150151
2010-01-25 21:00:38 +00:00
Sebastien Pouliot 21bda63388 2010-01-25 Sebastien Pouliot <[email protected]>
* DataContractJsonSerializer_2_1.cs: New. Simpler version for 
	Moonlight since it does not inherit from the same base type nor
	does it overrides any base methods.


svn path=/trunk/mcs/; revision=150149
2010-01-25 20:58:11 +00:00
Sebastien Pouliot ef24668f0a 2010-01-25 Sebastien Pouliot <[email protected]>
* AssemblyInfo.cs: Fix attributes for Moonlight


svn path=/trunk/mcs/; revision=150147
2010-01-25 20:56:07 +00:00
Gonzalo Paniagua Javier 0c32d449df A few more tests
svn path=/trunk/mcs/; revision=150145
2010-01-25 20:36:48 +00:00
Marek Safar c67b61c49c New test.
svn path=/trunk/mcs/; revision=150138
2010-01-25 16:42:47 +00:00
Marek Safar 1a6ca97c0f 2010-01-25 Marek Safar <[email protected]>
A fix for bug #573312
	* constant.cs, expression.cs, ecore.cs: Emit correct offset for
	pointer index of unknown size types greater than 2.


svn path=/trunk/mcs/; revision=150137
2010-01-25 16:21:20 +00:00
Leszek 'skolima' Ciesielski 3d0184ae01 2010-01-25 Leszek Ciesielski <[email protected]>
* SerialPortStream.cs: Read was returning requested count instead
        of actual bytes read. Thanks to Thad Thompson for spotting this.


svn path=/trunk/mcs/; revision=150134
2010-01-25 16:07:01 +00:00
Jb Evain 8ce6a8ec16 2010-01-25 Jb Evain <[email protected]>
* QueryableTransformer.cs (ReplaceQueryableMethod): fix
	exception message.


svn path=/trunk/mcs/; revision=150132
2010-01-25 15:46:31 +00:00
Marek Safar c93c565a2b Updated compiler check error message.
svn path=/trunk/mcs/; revision=150131
2010-01-25 14:04:15 +00:00
Marek Habersack dc4d82729f 2010-01-25 Marek Habersack <[email protected]>
* SqlCacheDependency.cs: added parameter checks to the
	constructors.
	Partially implemented 4.0 method CreateOutputCacheDependency

	* CacheItemUpdateReason.cs, CacheItemUpdateCallback.cs: added

	* CacheItem.cs: added OnUpdateCallback field

	* Cache.cs: implemented support for cache item update callback
	(3.5+)

	* AggregateCacheDependency.cs: added undocumented
	DependencyDispose method override

2010-01-25  Marek Habersack  <[email protected]>

	* SqlCacheDependencyTest.cs: added

svn path=/trunk/mcs/; revision=150130
2010-01-25 14:02:18 +00:00
Sebastien Pouliot acccfd9daf In .:
2010-01-25  Sebastien Pouliot  <[email protected]>

	* System.Net.dll.sources: Add UdpAnySourceMulticastClient and
	UdpSingleSourceMulticastClient stubs (with some validations)
	for SL4 (required to compile tests)

In System.Net:
2010-01-25  Sebastien Pouliot  <[email protected]>

	* UdpAnySourceMulticastClient.cs: New. Stub for SL4
	* UdpSingleSourceMulticastClient.cs: New. Stub for SL4


svn path=/trunk/mcs/; revision=150127
2010-01-25 13:21:52 +00:00
Zoltan Varga f8fa69039f 2010-01-25 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for SetValue () + nullables.

svn path=/trunk/mcs/; revision=150124
2010-01-25 12:46:41 +00:00
Zoltan Varga 4ad6137fb9 2010-01-25 Zoltan Varga <[email protected]>
* icall.c (ves_icall_System_Array_SetValueImpl): Handle nullable types correctly.
	Fixes #573322.

svn path=/trunk/mono/; revision=150123
2010-01-25 12:42:30 +00:00
Atsushi Eno 61fc24b81b 2010-01-25 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : add support for WriteRaw().
	  Patch by Adriaan van Kekem, closing bug #560838.


svn path=/trunk/mcs/; revision=150121
2010-01-25 12:10:51 +00:00
Atsushi Eno 0e74c1468c 2010-01-25 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : allow readonly field as data member.
	  Fixed bug #560155.

	* XmlObjectSerializerTest.cs : added test for bug #560155.


svn path=/trunk/mcs/; revision=150119
2010-01-25 12:06:39 +00:00
Carlos Alberto Cortez 1bf79a606a 2010-01-25 Carlos Alberto Cortez <[email protected]>
* Enum.cs: Implement TryParse and do the required refactoring of our
	Parse method to support it.


svn path=/trunk/mcs/; revision=150113
2010-01-25 10:53:33 +00:00
Atsushi Eno 569f1c283b 2010-01-25 Atsushi Enomoto <[email protected]>
* Makefile : finally System.ServiceModel.dll is on the centum tests.


svn path=/trunk/mcs/; revision=150111
2010-01-25 09:02:48 +00:00
Atsushi Eno fb89844a39 2010-01-25 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : actually instance context provider could be
	  null through the entire service run.

	  Fixed all current nunit failures!


svn path=/trunk/mcs/; revision=150110
2010-01-25 09:01:04 +00:00
Atsushi Eno 29afac4b40 2010-01-25 Atsushi Enomoto <[email protected]>
* ChannelFactory_1.cs, ChannelFactory.cs : fix default constructor
	  handling and ensure service endpoint at opening the factory.

	* ChannelFactory_1Test.cs : added a couple of error check tests for
	  constructors and CreateChannel() overloads.


svn path=/trunk/mcs/; revision=150109
2010-01-25 08:47:46 +00:00
Atsushi Eno e1cad400ae 2010-01-25 Atsushi Enomoto <[email protected]>
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.

svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno 41edb8afe0 2010-01-25 Atsushi Enomoto <[email protected]>
some number ConvertTo() compatibility fixes (that are reported as
!CanConvertTo()), patch by Alexandre Gomes.

svn path=/trunk/mcs/; revision=150100
2010-01-25 03:38:42 +00:00
Zoltan Varga e5e4c9e781 2010-01-24 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Improve the processing MONO_VERBOSE_METHOD so
	it supports class names as well.

	* mini.h (MonoCompile): Add a few flags to control JIT behavior which are
	needed by the GC map code.

	* mini.c (mini_method_compile): Call a function in mini-gc.c to set the new
	flags if needed.

	* method-to-ir.c (mono_method_to_ir): Emit initialization code for ref variables
	if cfg->init_ref_vars is set.

	* liveness.c (optimize_initlocals): Disable the initlocals opt for ref vars if
	cfg->disable_initlocals_op_refs is set.

	* method-to-ir.c (mono_spill_global_vars): Compute more precise live ranges
	using liveness info if cfg->compute_precise_live_ranges is set.

	* mini-gc.c: Ongoing work. Improve logging and debugging support. Handle
	volatile variables correctly. Add comments about the live ranges. Not enabled
	yet.

svn path=/trunk/mono/; revision=150097
2010-01-24 21:44:56 +00:00
Carlos Alberto Cortez 0a32a75f14 2010-01-23 Carlos Alberto Cortez <[email protected]>
* StreamReaderTest.cs: New test for encoding detection.


svn path=/trunk/mcs/; revision=150091
2010-01-24 04:07:46 +00:00
Carlos Alberto Cortez 542171144b 2010-01-23 Carlos Alberto Cortez <[email protected]>
* StreamReader.cs: When detecting the encoding we usually check the
	four first bytes looking for either UTF32 or UTF8 BOM, since they share
	the first two bytes, but if we happen to have less than 4 bytes at
	detection time, just check for Unicode and use it as the current
	encoding - this is exactly what .Net does, and it is specially visible
	with NetworkStream.
	Fixes #534137.


svn path=/trunk/mcs/; revision=150090
2010-01-24 04:07:35 +00:00
Robert Jordan c42abafd5b In System.Collections.Generic:
2010-01-24  Robert Jordan  <[email protected]>

	* Dictionary.cs: Fix deserialization compatibility with MS.NET.
	Fixes bug #474009.

In Test/System.Collections.Generic:
2010-01-24  Robert Jordan  <[email protected]>

	* DictionaryTest.cs: Add test case for bug #474009.


svn path=/trunk/mcs/; revision=150089
2010-01-24 01:04:18 +00:00
Zoltan Varga 742ca29455 2010-01-24 Zoltan Varga <[email protected]>
* mini.h (MonoDebugOptions): Add an option to init stack frames by writing
	0x2a into them in method prologs.

	* mini-amd64.c (mono_arch_emit_prolog): Implement it.

svn path=/trunk/mono/; revision=150088
2010-01-23 23:40:54 +00:00
Miguel de Icaza 2aecdfa64c Update doc tools
svn path=/trunk/mono/; revision=150084
2010-01-23 06:51:32 +00:00
Mark Probst a2ce98e3cd 2010-01-23 Mark Probst <[email protected]>
* sgen-pinning.c (evacuate_pin_staging_area): Don't assume
        pin_staging_area_index is greater than 0.

svn path=/trunk/mono/; revision=150083
2010-01-23 00:19:29 +00:00
Marek Habersack bd08ce5b8b 2010-01-22 Marek Habersack <[email protected]>
* SubstitutionResponseElement.cs: implemented correct
	(de)serialization of the Callback delegate.

	* OutputCache.cs: implemented Serialize, Deserialize,
	DefaultProviderName and Providers.

2010-01-22  Marek Habersack  <[email protected]>

	* AssertExtensions.cs: added AreEqual method for comparing byte
	arrays.

2010-01-22  Marek Habersack  <[email protected]>

	* OutputCacheTest.cs: added

svn path=/trunk/mcs/; revision=150080
2010-01-22 22:26:06 +00:00
Andrés G. Aragoneses 0648fa414e * configure.in: Improve r150055 by checking for CXX=g++ as well, according to
http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html

svn path=/trunk/mono/; revision=150077
2010-01-22 21:42:14 +00:00
Zoltan Varga bf620cabfe Fix crash introduced by the previous change.
svn path=/trunk/mono/; revision=150076
2010-01-22 20:50:55 +00:00
Miguel de Icaza 759ebbb3df Uniform use of the return error from mono_dl
svn path=/trunk/mono/; revision=150072
2010-01-22 19:19:43 +00:00
Atsushi Eno 440e862eaa 2010-01-22 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : fix complicated IMetadataExchange handling to
	  pass nunit tests (treat mex binding as special case).

	* ServiceMetadataBehaviorTest.cs : check name constant (MSDN is
	  wrong here).

	* ServiceHostTest.cs : add a few more comments.


svn path=/trunk/mcs/; revision=150066
2010-01-22 15:05:11 +00:00
Leszek 'skolima' Ciesielski 3dd68a17ca 2010-01-22 Leszek Ciesielski <[email protected]>
* SerialPortStream.cs: Check for error on every native call

svn path=/trunk/mcs/; revision=150062
2010-01-22 10:31:04 +00:00
Leszek 'skolima' Ciesielski 1496e4136c 2010-01-22 Leszek Ciesielski <[email protected]>
* serial.c: baud rate 460800 by Thad Thompson <[email protected]>
        * serial.c: report errors from every function

svn path=/trunk/mono/; revision=150061
2010-01-22 10:30:08 +00:00
Zoltan Varga 77bc9e0aa2 2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Disable the solaris tar check on !solaris platforms.

svn path=/trunk/mono/; revision=150056
2010-01-22 09:13:27 +00:00
Zoltan Varga f3d6fdf3f2 2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Check whenever g++ is installed, since libtool requires it
	even if no c++ files will be compiled.

svn path=/trunk/mono/; revision=150055
2010-01-22 09:09:23 +00:00
Zoltan Varga af9204d60e Fix the build.
svn path=/trunk/mono/; revision=150054
2010-01-22 09:09:18 +00:00
Atsushi Eno eba7835465 2010-01-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : added a workaround receiver delay
	  that somehow makes callback client to not cause infinite loop.

	* CallbackBehaviorAttributeTest.cs : enable the test again.


svn path=/trunk/mcs/; revision=150052
2010-01-22 08:48:54 +00:00
Zoltan Varga 1e2950557f 2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Add -fno-rrti to CXXFLAGS.

svn path=/trunk/mono/; revision=150051
2010-01-22 08:43:26 +00:00
Zoltan Varga 868681bfbb 2010-01-22 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp: Remove uses of dynamic_cast, it no longer works with llvm
	classes, since llvm is compiled with -fno-rtti.

svn path=/trunk/mono/; revision=150050
2010-01-22 08:43:20 +00:00
Zoltan Varga fda9d8949d 2010-01-22 Zoltan Varga <[email protected]>
* mini.h (COMPILE_SOFT_FLOAT): New macro, similar to COMPILE_LLVM.

	* method-to-ir.c ir-emit.h: Use if (COMPILE_SOFT_FLOAT) in a few places since
	llvm does not require it.

	* aot-runtime.c (load_method): Print the full name of the last aot method.

svn path=/trunk/mono/; revision=150049
2010-01-22 08:22:59 +00:00
Zoltan Varga 8286b51cdf 2010-01-21 Zoltan Varga <[email protected]>
* exceptions-amd64.c (mono_arch_notify_pending_exc): Avoid a crash if the
	thread has not fully started yet.

svn path=/trunk/mono/; revision=150048
2010-01-22 08:22:50 +00:00
Atsushi Eno 79c79e577b 2010-01-22 Atsushi Enomoto <[email protected]>
* DuplexClientRuntimeChannel.cs : do not try to iterate channel
	  acceptor when it is being closed.

	* ChannelDispatcher.cs : do not try to iterate channel acceptor when
	  it is being closed.


svn path=/trunk/mcs/; revision=150047
2010-01-22 08:18:19 +00:00
Atsushi Eno eb13491be6 2010-01-22 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : fix type check for optimal node creation.
	  Fixed bug #571336, #571226 and #572738.


svn path=/trunk/mcs/; revision=150041
2010-01-22 06:17:10 +00:00
Atsushi Eno e58a2c7a66 2010-01-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexChannelBase.cs : Receive() should rather use TryReceive().
	  It should not be in reverse order.


svn path=/trunk/mcs/; revision=150040
2010-01-22 05:00:21 +00:00
Carlos Alberto Cortez 73dd6f0b48 2010-01-21 Carlos Alberto Cortez <[email protected]>
* Activator.cs: When calling CreateInstance() and no default .ctor is
	found for the type, don't pass the member argument to the
	MissingMethodException, to have a better and simpler error message.
	Fixes #396986.


svn path=/trunk/mcs/; revision=150039
2010-01-22 04:46:34 +00:00
Atsushi Eno 5b9ed19fc2 2010-01-22 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, HttpListenerManager.cs :
	  Implement async cancellation in the expected manner (though with
	  some hack). This mostly removed nunit blockers.

	* NetTcpBindingTest.cs : enabled connection tests again, as they
	  got working again (and more importantly, they don't block).
	* CallbackBehaviorAttributeTest.cs : on the other hand, disabled
	  a test so far. It is the only active test && the blocker now.


svn path=/trunk/mcs/; revision=150037
2010-01-22 03:06:48 +00:00
Atsushi Eno 32c2542398 2010-01-22 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : fix wrong status changes.


svn path=/trunk/mcs/; revision=150036
2010-01-22 02:23:53 +00:00
Sebastien Pouliot 33bb7e756a 2010-01-21 Sebastien Pouliot <[email protected]>
* SocketAsyncEventArgs.cs: Apply Gendarme's ProtectCallToEventDelegatesRule


svn path=/trunk/mcs/; revision=150033
2010-01-22 01:50:48 +00:00
Carlos Alberto Cortez ffa7bf81b0 2010-01-21 Carlos Alberto Cortez <[email protected]>
* IPEndPoint.cs: When throwing an ArgumentException in Create()
	because of a mismatch in the address family, use a more informative
	message. Patch by Juho Vähä-Herttu<[email protected]>.
	Fixes #505105.


svn path=/trunk/mcs/; revision=150031
2010-01-21 23:43:48 +00:00
Miguel de Icaza 4215af6a71 Fix
svn path=/trunk/mono/; revision=150028
2010-01-21 23:12:16 +00:00
Marek Habersack b315e2df14 2010-01-21 Marek Habersack <[email protected]>
* FileResponseElementTest.cs, HeaderElementTest.cs,
	MemoryResponseElementTest.cs, SubstitutionResponseElementTest.cs:
	added

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

	* DatabaseNotEnabledForNotificationException.cs, OutputCache.cs,
	FileResponseElement.cs, HeaderElement.cs, IOutputCacheEntry.cs,
	MemoryResponseElement.cs, OutputCacheProvider.cs,
	ResponseElement.cs, OutputCacheProviderCollection.cs,
	SubstitutionResponseElement.cs,
	TableNotEnabledForNotificationException.cs: added

	* CacheDependency.cs: default constructor is protected in 4.0

svn path=/trunk/mcs/; revision=150025
2010-01-21 22:30:21 +00:00
Rodrigo Kumpera 4e5ea85635 2010-01-21 Rodrigo Kumpera <[email protected]>
* reflection.c (typebuilder_setup_fields): Pretend field setup already
	happened before starting to encode the actual fields. This avoid ciclic
	dependencies and eventual crashes.

	Fixes #572660.

svn path=/trunk/mono/; revision=150008
2010-01-21 19:37:35 +00:00
Rodrigo Kumpera b79d6b79ab 2010-01-21 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Add tests for #572660.

svn path=/trunk/mcs/; revision=150007
2010-01-21 19:37:34 +00:00
Mark Probst 1e9f438b15 2010-01-21 Mark Probst <[email protected]>
* sgen-gc.c, gc-internal.h, object.c: Make string allocation
        atomic and remove the half-constructed hack in SGen.

svn path=/trunk/mono/; revision=150005
2010-01-21 18:47:36 +00:00
Marek Habersack 9e77bd65ba 2010-01-21 Marek Habersack <[email protected]>
* HierarchicalDataBoundControlDesigner.cs: added

svn path=/trunk/mcs/; revision=150004
2010-01-21 18:46:28 +00:00
Jonathan Pobst 1c0e37a580 2010-01-21 Jonathan Pobst <[email protected]>
* DateComparisonTest.cs: Failing test TestDateComparisonLeft
	marked NotWorking.  Bug filed as 572725.

svn path=/trunk/mcs/; revision=149994
2010-01-21 17:07:48 +00:00
Jonathan Pobst dad1f1ee67 2010-01-21 Jonathan Pobst <[email protected]>
* DataTableTest2.cs: Mark PrimaryKey test as NotWorking.
	Bug filed as 572722.

svn path=/trunk/mcs/; revision=149993
2010-01-21 17:01:10 +00:00
Zoltan Varga 64c87b2025 2010-01-21 Zoltan Varga <[email protected]>
* aot-compiler.c (can_marshal_struct): Allow marshalling enums.

svn path=/trunk/mono/; revision=149991
2010-01-21 16:43:19 +00:00
Jonathan Pobst 7d4f76fb9c 2010-01-21 Jonathan Pobst <[email protected]>
* ThemeTest.cs: Mark UrlProperty test as NotWorking to clean
	up buildbot.  Filed as 572707.

svn path=/trunk/mcs/; revision=149990
2010-01-21 16:34:30 +00:00
Rodrigo B. de Oliveira 17f5eea23c support for nested Choose elements + fixed bug where the project reference would be null during condition evaluation
svn path=/trunk/mcs/; revision=149989
2010-01-21 16:31:33 +00:00
Miguel de Icaza fe55a84bd5 2010-01-21 Miguel de Icaza <[email protected]>
* driver.c: Do not abort if LLVM is not supported, print a
	warning and add the information to the Mono JIT information.

svn path=/trunk/mono/; revision=149988
2010-01-21 16:24:45 +00:00
Sebastien Pouliot 5025d1e269 add XNA public key token
svn path=/trunk/mono/; revision=149986
2010-01-21 15:27:07 +00:00
Gonzalo Paniagua Javier 91a420aa6b 2010-01-21 Gonzalo Paniagua Javier <[email protected]>
* SmtpClient.cs: rethrow inner exception so that
	AsyncCompletedEventArgs.Error gets the right value on error. Patch
	by Dimitar Dobrev.


svn path=/trunk/mcs/; revision=149983
2010-01-21 15:21:27 +00:00
Sebastien Pouliot 1cc8e885d5 In Test/System.Net:
2010-01-21  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Additional test cases from Tom Philpot

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

	* CookieContainer.cs: Fix to cloning and expiration. Patch
	by Tom Philpot <[email protected]>


svn path=/trunk/mcs/; revision=149976
2010-01-21 15:02:51 +00:00
Rodrigo B. de Oliveira 6362840f00 response file might be specified in double quotes
svn path=/trunk/mcs/; revision=149975
2010-01-21 15:00:13 +00:00
Zoltan Varga 7fabcf3b82 2010-01-21 Zoltan Varga <[email protected]>
* ir-emit.h (MONO_EMIT_NULL_CHECK): Don't emit an OP_IMPLICIT_EXCEPTION when
	using explicit null checks.

svn path=/trunk/mono/; revision=149970
2010-01-21 14:32:01 +00:00
Rodrigo Kumpera 04007da68a 2010-01-21 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_generic_inst): Fail a type signature if it
	has a recursive reference to itself.

	Fixes #571863.

svn path=/trunk/mono/; revision=149969
2010-01-21 14:28:24 +00:00
Rodrigo Kumpera 2fd9c44db6 2010-01-21 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_signature): Fix error message.

svn path=/trunk/mono/; revision=149968
2010-01-21 14:28:12 +00:00
Mark Probst bc67b3d1e0 2010-01-21 Mark Probst <[email protected]>
* sgen-gc.c: Reuse to-space sections between nursery collections.

svn path=/trunk/mono/; revision=149967
2010-01-21 13:41:14 +00:00
Rodrigo B. de Oliveira f1228133ba NUnit tests for xbuild
svn path=/trunk/mcs/; revision=149965
2010-01-21 13:04:03 +00:00
Marek Habersack 7b5e578613 Fix the 2.0 build
svn path=/trunk/mcs/; revision=149964
2010-01-21 09:09:52 +00:00
Atsushi Eno bd6119f522 2010-01-21 Atsushi Enomoto <[email protected]>
* SslStreamSecurityBindingElementTest.cs : reduce extra base dep.


svn path=/trunk/mcs/; revision=149955
2010-01-21 03:48:24 +00:00
Miguel de Icaza 4800afc90f Improve, do not advertise what is not available
svn path=/trunk/mono/; revision=149953
2010-01-21 03:25:50 +00:00
Jonathan Pobst 35d5b25ecd Add xdebug.c to fix msvc build.
svn path=/trunk/mono/; revision=149948
2010-01-21 01:00:38 +00:00
Miguel de Icaza 820ad1b041 2010-01-20 Miguel de Icaza <[email protected]>
* Dictionary.cs: Always create the keys, fixes compatibility
       between Mono and .NET.  Patch from John Lenz <[email protected]>


svn path=/trunk/mcs/; revision=149947
2010-01-21 00:49:45 +00:00
Miguel de Icaza 3fb7f4ceeb Revert, will remove both linux-gnu, but needs some work
svn path=/trunk/mono/; revision=149946
2010-01-21 00:33:02 +00:00
Rolf Bjarne Kvinge 4312bde7bd 2010-01-20 Rolf Bjarne Kvinge <[email protected]>
* configure.in: Add support for disabling mdb support.

svn path=/trunk/mono/; revision=149944
2010-01-21 00:04:31 +00:00
Miguel de Icaza 424fa93ac5 Make this shorter
svn path=/trunk/mono/; revision=149943
2010-01-21 00:00:27 +00:00
Carlos Alberto Cortez d3a9c0768f * ComboBox.cs: When the normal drop down window is closed, make sure
that the auto complete list -if any- is closed as well, instead of
	stay open without need.

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


svn path=/trunk/mcs/; revision=149942
2010-01-20 23:47:44 +00:00
Rolf Bjarne Kvinge c1139cd205 In class/Mono.Cecil.Mdb:
2010-01-20  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile: Specify the path to Mono.Cecil.dll when referencing it.

In tools/linker:
2010-01-20  Rolf Bjarne Kvinge  <[email protected]>

	* Makefile: Fetch Mono.Cecil.dll from whatever profile we happen to be
	building in.

svn path=/trunk/mcs/; revision=149941
2010-01-20 23:47:15 +00:00
Andrew Jorgensen f60940cc93 spec fixes
svn path=/trunk/mono/; revision=149936
2010-01-20 23:02:55 +00:00
Marek Habersack 38f8d2d40c 2010-01-20 Marek Habersack <[email protected]>
* SessionStateBehavior.cs: added (4.0)

2010-01-20  Marek Habersack  <[email protected]>

	* OutputCacheSection.cs: implemented the Providers and
	DefaultProviderName 4.0 properties.

2010-01-20  Marek Habersack  <[email protected]>

	* HttpContextBase.cs: implemented RemapHandler and
	SetSessionStateBehavior 4.0 APIs.

2010-01-20  Marek Habersack  <[email protected]>

	* HttpContext.cs: implemented the 4.0 SetSessionStateBehavior
	method

	* HttpCacheVaryByContentEncodings.cs, HttpCacheVaryByHeaders.cs,
	HttpCacheVaryByParams.cs : parameterless constructors are public
	in 4.0

	* HttpApplication.cs: implemented the 4.0
	GetOutputCacheProviderName method

svn path=/trunk/mcs/; revision=149934
2010-01-20 22:39:05 +00:00
Gonzalo Paniagua Javier de48d86893 2010-01-20 Gonzalo Paniagua Javier <[email protected]>
* Tuples.cs: explicitly implement IStructural*.


svn path=/trunk/mcs/; revision=149933
2010-01-20 22:20:03 +00:00
Miguel de Icaza fe982b68ac remove DOS newlines
svn path=/trunk/mono/; revision=149932
2010-01-20 21:35:58 +00:00
Miguel de Icaza 385fa668d4 Make this build on systems with no filesystem or process APIs
svn path=/trunk/mono/; revision=149931
2010-01-20 21:32:44 +00:00
Miguel de Icaza 116c8f9958 Do not build the parser if no getopt is there
svn path=/trunk/mono/; revision=149930
2010-01-20 21:30:34 +00:00
Marek Habersack 5e9719f57c Gotten rid of NET_2_0 ifdefs and 1.1 code from System.Web.UI
svn path=/trunk/mcs/; revision=149929
2010-01-20 21:21:01 +00:00
Gonzalo Paniagua Javier deaac161c7 2010-01-20 Gonzalo Paniagua Javier <[email protected]>
* icall.c: don't raise AppDomain.TypeResolve when the type is loaded
	from the current assembly or mscorlib. Fixes bug #322957.


svn path=/trunk/mono/; revision=149921
2010-01-20 18:00:56 +00:00
Marek Habersack 4083fbfc3f 2010-01-20 Marek Habersack <[email protected]>
* ObjectStateFormatter.cs: implemented support for IndexedString
	on top of the existing StringFormatter.

	* IndexedString.cs: implemented

svn path=/trunk/mcs/; revision=149919
2010-01-20 17:48:49 +00:00
Miguel de Icaza aa6b3d979e Remove realpath
svn path=/trunk/mono/; revision=149916
2010-01-20 16:35:57 +00:00
Zoltan Varga 59a93f53f8 Fix the copyright.
svn path=/trunk/mono/; revision=149910
2010-01-20 15:11:12 +00:00
Zoltan Varga c474b5b85b 2010-01-20 Zoltan Varga <[email protected]>
* xdebug.c: New file extracted from aot-compiler.c, containing the XDEBUG
	related code.

svn path=/trunk/mono/; revision=149909
2010-01-20 14:36:08 +00:00
Atsushi Eno ede3b7e64e 2010-01-20 Atsushi Enomoto <[email protected]>
* AddressHeader.cs : XmlSchema.InstanceNamespace didn't exist in 2.1 :(


svn path=/trunk/mcs/; revision=149908
2010-01-20 14:30:29 +00:00
Atsushi Eno 9a72f4cdb6 2010-01-20 Atsushi Enomoto <[email protected]>
* AddressHeader.cs : implement remaining bits.
	  Eliminate dependency on NetDataContractSerializer.

	* AddressHeaderTest.cs : add reader and writer tests.


svn path=/trunk/mcs/; revision=149907
2010-01-20 14:05:06 +00:00
Jb Evain 3db3c8c645 protect ILGenerator.Mono_GetCurrentOffset
svn path=/trunk/mcs/; revision=149903
2010-01-20 13:57:53 +00:00
Marek Safar b90a99bcc0 Updated.
svn path=/trunk/mcs/; revision=149902
2010-01-20 13:38:44 +00:00
Zoltan Varga 05972f1287 2010-01-20 Zoltan Varga <[email protected]>
* aot-compiler.c (encode_method_ref): Use mono_marshal_wrapper_info_from_wrapper
	() in one place.
	(mono_aot_wrapper_name): Remove the special handling of delegate invoke wrappers,
	its no longer needed.

svn path=/trunk/mono/; revision=149887
2010-01-20 09:49:00 +00:00
Zoltan Varga c66211ca81 2010-01-20 Zoltan Varga <[email protected]>
* marshal.c: Calculate the target class of the delegete invoke wrappers using
	get_wrapper_target_class.

svn path=/trunk/mono/; revision=149886
2010-01-20 09:48:53 +00:00
Zoltan Varga f94fec9053 2010-01-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Fix a warning.

svn path=/trunk/mono/; revision=149885
2010-01-20 09:48:47 +00:00
Atsushi Eno e0e85ef8ce 2010-01-20 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : in Fault(), do similar work as previous
	  change does.


svn path=/trunk/mcs/; revision=149879
2010-01-20 05:57:20 +00:00
Atsushi Eno 8555feeefd 2010-01-20 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : disable connection tests, with analyzed
	  reason why it's blocking, for each.

	* System.ServiceModel_test.dll.sources: move back some FeatureBased
	  tests.


svn path=/trunk/mcs/; revision=149878
2010-01-20 05:53:30 +00:00
Carlos Alberto Cortez 818ae5df11 2010-01-20 Carlos Alberto Cortez <[email protected]>
* TextBox.cs: When showing the autocomplete listbox, make sure it's on
	top, by calling the raw XplatUI.SetZOrder for it, since we can't
	properly call BringToFront on it as it is parentless. This fixes an
	issue when using this feature with ComboBox's own parentless listbox.
	Fixes the remaining bits of #489339.


svn path=/trunk/mcs/; revision=149877
2010-01-20 05:51:48 +00:00
Atsushi Eno 8ed8217273 2010-01-20 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : a stability workaround to make nunit test
	  stopper almost reproducible.


svn path=/trunk/mcs/; revision=149876
2010-01-20 05:26:38 +00:00
Zoltan Varga 5135630b6d Fix aligment problems introduced by the previous change.
svn path=/trunk/mono/; revision=149875
2010-01-20 03:38:46 +00:00
Zoltan Varga 9111a3bfaf 2010-01-20 Zoltan Varga <[email protected]>
* exceptions-<ARCH>.c: Introduce a MONO_ARCH_HAVE_THROW_EXCEPTION_BY_NAME
	define for platforms still using it (s390). Get rid of the
	mono_arch_get_throw_exception_by_name () routines on all other platforms.

svn path=/trunk/mono/; revision=149873
2010-01-20 03:22:41 +00:00
Zoltan Varga c147bae557 2010-01-20 Zoltan Varga <[email protected]>
* exceptions-x86.c: Rework the throw trampolines so there is only one function
	which can generate throw/rethrow/corlib trampolines for llvm/not llvm code.

svn path=/trunk/mono/; revision=149871
2010-01-20 03:03:45 +00:00
Zoltan Varga 8c2dfd7537 2010-01-20 Zoltan Varga <[email protected]>
* exceptions-x86.c: Add LLVM specific throw trampolines which doesn't assume
	the caller pushed the arguments.

	* mini-llvm.c: Enable throwing exceptions on x86.

	* mini-posix.c (SIG_HANDLER_SIGNATURE): Avoid
	"Thread (nil) may have been prematurely finalized" messages if this is called
	on a thread not registered with the runtime.

	* mini-exceptions.c (mono_handle_native_sigsegv): Ditto.

svn path=/trunk/mono/; revision=149869
2010-01-20 02:10:11 +00:00
Carlos Alberto Cortez 6ab7b7a96b 2010-01-19 Carlos Alberto Cortez <[email protected]>
* XplatUI.cs:
	* XplatUIDriver:
	* XplatUICarbon:
	* XplatUIWin32:
	* XplatUIX11.cs: 
	* XplatUIStructs: Implement support for different kind of audible
	alerts in Windows, and update the requiered classes.
	* MessageBox.cs: 
	* TextBoxBase.cs: Update calls to XplatUI.AudibleAlert.
	Fixes #473725.


svn path=/trunk/mcs/; revision=149868
2010-01-20 01:30:46 +00:00
Zoltan Varga 41b734f31b Add ChangeLog entries removed by mistake.
svn path=/trunk/mono/; revision=149865
2010-01-20 00:17:40 +00:00
Mark Probst 3f6eb691d4 2010-01-19 Mark Probst <[email protected]>
* sgen-gc.c: Fix warnings.

svn path=/trunk/mono/; revision=149859
2010-01-19 22:39:49 +00:00
Marek Habersack d08769539a 2010-01-19 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/App_GlobalResources/Resource1.resx
	and
	Test/mainsoft/NunitWebResources/TagWithExpressionWithinAttribute.aspx

2010-01-19  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #568631

2010-01-19  Marek Habersack  <[email protected]>

	* AspGenerator.cs: modified the runatServer regex to correctly
	match embedded server tags which end in a sequence like: "%>"/>
	Fixes bug #568631

svn path=/trunk/mcs/; revision=149855
2010-01-19 22:36:10 +00:00
Rodrigo Kumpera 0ac71df856 2010-01-19 Rodrigo Kumpera <[email protected]>
* verify.c (store_local): Better error message.

svn path=/trunk/mono/; revision=149845
2010-01-19 21:28:29 +00:00
Marek Habersack 7c1e6f583d 2010-01-19 Marek Habersack <[email protected]>
* StaticSiteMapProvider.cs: AddNode checks the url of node
	returned by FindSiteMapNode to see if it indeed was a
	duplicate. It is necessary if application derives from
	StaticSiteMapProvider and overrides FindSiteMapNode to return
	RootNode if rawUrl doesn't match any existing node. Fixes bug
	#570194

2010-01-19  Marek Habersack  <[email protected]>

	* TestRunner.cs: Run makes sure Uri parser is passed a full url,
	or otherwise it won't be parsed correctly (will not parse the
	query part if an URL similar to '/file.html?query=value' is
	passed)

	* Helpers.cs: added a simple and naive method to extract query
	from WebResource.axd URLs. This is necessary because the query
	will be different each time the test is ran.

2010-01-19  Marek Habersack  <[email protected]>

	* standalone-runner.cs: reformatted summary message to match
	NUnit's more closely.

svn path=/trunk/mcs/; revision=149842
2010-01-19 21:14:19 +00:00
Rodrigo Kumpera 40dca3c7d3 2010-01-19 Rodrigo Kumpera <[email protected]>
* object.c (mono_object_get_virtual_method): Handle generic interfaces with variant
	arguments.

svn path=/trunk/mono/; revision=149840
2010-01-19 20:51:06 +00:00
Rodrigo Kumpera 9ab2a13d85 2010-01-19 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Add a test for Invoke with generic variant
	interfaces.

svn path=/trunk/mcs/; revision=149839
2010-01-19 20:50:59 +00:00
Rodrigo Kumpera 47dcb97687 2010-01-19 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Remoting_RemotingServices_GetVirtualMethod): This
	function is generics variance aware.

svn path=/trunk/mono/; revision=149838
2010-01-19 20:50:56 +00:00
Zoltan Varga 2e164057ef 2010-01-19 Zoltan Varga <[email protected]>
* jit-icalls.c (mono_array_new_3): New jit icall.

	* aot-compiler.c aot-runtime.c: Add support for ElementAddr wrappers.

	* arrays.cs: Add a test for 3 dimensional arrays.

svn path=/trunk/mono/; revision=149834
2010-01-19 17:13:05 +00:00
Zoltan Varga 7a6a28048a 2010-01-19 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_wrapper_info_from_wrapper): New helper function to
	return a point to a wrapper specific info structure describing the wrapper.
	(mono_marshal_get_array_address): Store the rank+elem_size in the wrapper info.

svn path=/trunk/mono/; revision=149833
2010-01-19 17:12:58 +00:00
Rodrigo Kumpera 5f6e5d0806 2010-01-19 Rodrigo Kumpera <[email protected]>
* EventOnTypeBuilderInst.cs: Fix build.

svn path=/trunk/mcs/; revision=149828
2010-01-19 16:52:51 +00:00
Sebastien Pouliot 09c48682c5 2010-01-19 Sebastien Pouliot <[email protected]>
* security-core-clr.c (mono_security_core_clr_can_access_internals):
	Handle the case where 'basedir' can be NULL (e.g. SRE assemblies)


svn path=/trunk/mono/; revision=149823
2010-01-19 16:19:48 +00:00
Miguel de Icaza 2d1af08067 Fix a crasher
svn path=/trunk/mono/; revision=149822
2010-01-19 16:04:47 +00:00
Bill Holmes 8abb7933cd 2010-01-19 Sylvain Dupont <[email protected]>
* cominterop.c marshal.c: Added support for marshalling in, in/byref,
	  in/out, in/out/byref parameters of type SAFEARRAY[VARIANT].

	* cominterop.cs libtest.c: Added tests for marshalling
	  in, in/byref, in/out, in/out/byref parameters of type
	  SAFEARRAY[VARIANT].

	Code is contributed under MIT/X11 license.


svn path=/trunk/mono/; revision=149817
2010-01-19 15:11:34 +00:00
Rolf Bjarne Kvinge 1aec88fea6 Added/Updated .gitignore files
svn path=/trunk/mono/; revision=149816
2010-01-19 13:46:32 +00:00
Rodrigo Kumpera 40efb6e956 2010-01-19 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add test for GetGenericMethodDefinition of inflated
	generic methods on a GTD.

svn path=/trunk/mcs/; revision=149809
2010-01-19 12:47:09 +00:00
Rodrigo Kumpera d03f013239 2010-01-19 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_MonoMethod_GetGenericMethodDefinition): Handle inflated generic methods
	on a GTD.

svn path=/trunk/mono/; revision=149808
2010-01-19 12:47:03 +00:00
Alan McGovern dd3b6549b4 2010-01-19 Alan McGovern <[email protected]>
* BufferedStream.cs: Patch by Tom Philpot to optimise ReadByte
        * and
        WriteByte significantly by making them fulfill their request by
        directly reading from the buffer.


svn path=/trunk/mcs/; revision=149799
2010-01-19 11:27:01 +00:00
Atsushi Eno 47f6d5587c 2010-01-19 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : when process state changes, lock the
	  object to make sure the state transition is valid.
	  Change OnClosed/OnClosing to do the way OnOpened/OnOpening does.

	* ChannelDispatcher.cs : another error audit.


svn path=/trunk/mcs/; revision=149793
2010-01-19 10:15:25 +00:00
Carlos Alberto Cortez 5bd00fa8fb * ComboBox.cs: When use manually setting DropDownHeight, ignore the
MaxDropDownHeight property - also rename our field 'count' to
	'visible_items_count' to avoid confusion as much as possible.
	Fixes an issue with several items, showing an incorrect layout.

2010-01-18  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=149786
2010-01-19 07:26:53 +00:00
Atsushi Eno c744d2d438 2010-01-19 Atsushi Enomoto <[email protected]>
* ServiceAuthorizationBehavior.cs : implement (it does almost
	  nothing though).

	* ServiceAuthorizationBehaviorTest.cs : it's updated and enabled.
	  Added some more tests.


svn path=/trunk/mcs/; revision=149785
2010-01-19 05:32:14 +00:00
Atsushi Eno 9cefb0c07b 2010-01-19 Atsushi Enomoto <[email protected]>
* WS2007FederationHttpBinding.cs, WS2007HttpBinding.cs:
	  add missing constructors.


svn path=/trunk/mcs/; revision=149784
2010-01-19 05:30:47 +00:00
Zoltan Varga 80c0146165 2010-01-19 Zoltan Varga <[email protected]>
* exceptions-x86.c (mono_arch_get_throw_corlib_exception): Emit xdebug info.
	(mono_arch_find_jit_info_ext): Disable the popping of arguments when LLVM is
	used.

	* mini-llvm.c (emit_cond_system_exception): Abort when an implicit exception is
	thrown on x86.

svn path=/trunk/mono/; revision=149783
2010-01-19 02:56:17 +00:00
Zoltan Varga 06b1e1fc6c 2010-01-19 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_decode_fde): Fix an assert on x86.

	* mini-x86.h (MONO_CONTEXT_SET_LLVM_EXC_REG): Define this for x86.

	* mini-llvm.c: Disable OP_THROW on x86, it doesn't work yet.

svn path=/trunk/mono/; revision=149782
2010-01-19 01:11:18 +00:00
Mark Probst b8911ab1f3 2010-01-18 Mark Probst <[email protected]>
* sgen-gc.c: Make minor collection section allowance adaptive,
        depending on the amount of memory reclaimed in the last major
        collection.  If more memory was reclaimed (i.e. more garbage
        produced), do the next collection earlier.

svn path=/trunk/mono/; revision=149781
2010-01-18 22:37:15 +00:00
Marek Habersack 287b184544 2010-01-18 Marek Habersack <[email protected]>
* Parameter.cs: added missing 3.5 APIs - constructors taking
	DbType as one of the parameters, ConvertDbTypeToTypeCode,
	ConvertTypeCodeToDbType and GetDatabaseType. Fixes bug #567850

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

	* ParameterTest.cs: added tests for ConvertDbTypeToTypeCode,
	ConvertTypeCodeToDbType and constructors taking DbType as one of
	the parameters.

svn path=/trunk/mcs/; revision=149778
2010-01-18 22:34:03 +00:00
Rodrigo Kumpera 1a95fdb45f 2010-01-18 Rodrigo Kumpera <[email protected]>
* metadata-verify.c (parse_type): Fail a type signature if it has a recursive reference
	to itself.

	* metadata-verify.c (mono_verifier_verify_typespec_signature): Change signature to take
	the token as parameter.

	* verify-internals.h: Ditto.

	* metadata.c (mono_type_create_from_typespec): Pass token to verifier.

	Fixes #571460.

svn path=/trunk/mono/; revision=149776
2010-01-18 22:25:07 +00:00
Mark Probst 535f3d0256 2010-01-18 Mark Probst <[email protected]>
* sgen-gc.c: Make store_remset_buffer_index long.

svn path=/trunk/mono/; revision=149775
2010-01-18 22:07:16 +00:00
Bill Holmes 06d3d888ea 2010-01-18 Bill Holmes <[email protected]>
* libmono.vcproj : Adding a link to Mswsock.lib and adding files
	  mono-error and debugger-agent.

	* debugger-agent.c : Changing the PLATFORM_WIN32 preprocessor check to
	  HOST_WIN32.  Also including winsock2. to define struct in_addr.

	* mini-amd64.h : Changing the PLATFORM_WIN32 preprocessor check to HOST_WIN32.

	* mini-x86.h : Changing the PLATFORM_WIN32 preprocessor check to HOST_WIN32.

	Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=149774
2010-01-18 21:54:43 +00:00
Carlos Alberto Cortez bfa834d89d 2010-01-18 Carlos Alberto Cortez <[email protected]>
* RichTextBoxTest.cs: New test for the Modified property.


svn path=/trunk/mcs/; revision=149773
2010-01-18 21:11:06 +00:00
Carlos Alberto Cortez d27d9e1201 2010-01-18 Carlos Alberto Cortez <[email protected]>
* RichTextBox.cs: SelectedText should set Modified to true. Observe
	that this is happening just here, not for the Text property, and
	neither for the TextBoxBase impl.
	Fixes #569950.


svn path=/trunk/mcs/; revision=149772
2010-01-18 21:08:39 +00:00
Sebastien Pouliot 2428fb744c 2010-01-18 Sebastien Pouliot <[email protected]>
* mono-error.c: Call va_end/va_start before reusing 'args'.


svn path=/trunk/mono/; revision=149765
2010-01-18 20:09:06 +00:00
Rodrigo Kumpera f6549cc301 2010-01-18 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_from_typeref): Fail loading of self-referencing typeref tokens.

	Fixes #569579.

svn path=/trunk/mono/; revision=149760
2010-01-18 19:10:49 +00:00
Marek Habersack 486d604f93 2010-01-18 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: partial revert of r146546. The 'd' wrapper
	(and thus the JsonResult class) is needed after all. Fixes bug
	#571365

svn path=/trunk/mcs/; revision=149756
2010-01-18 17:42:38 +00:00
Zoltan Varga 3447e8b543 2010-01-18 Zoltan Varga <[email protected]>
* dtest.cs dtest-app.cs: Add a test for single stepping + out of line bblocks.

svn path=/trunk/mono/; revision=149755
2010-01-18 17:34:22 +00:00
Zoltan Varga 4434e6aacf 2010-01-18 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add 'disable_out_of_line_bblocks' flag.

	* branch-opts.c (mono_optimize_branches): Honor the new flag.

	* mini.c (mini_method_compile): Set the new flag when running under the
	debugger.

svn path=/trunk/mono/; revision=149754
2010-01-18 17:34:16 +00:00
Zoltan Varga 7a4a1096ed 2010-01-18 Zoltan Varga <[email protected]>
* dtest.cs: Upgrade after debugging namespace change.

svn path=/trunk/mono/; revision=149749
2010-01-18 16:18:44 +00:00
Zoltan Varga e33dfa7dc4 2010-01-18 Zoltan Varga <[email protected]>
* mini-gc.c: Change the GC map to use a ref/noref/pin value instead of just
	a ref/noref value + a global pin flag, so parts of stack frames can still be
	precisely marked even if they include stuff which needs pinning. Improve logging.
	Fix many bugs. Not enabled yet.

	* gc-test.cs: Add a few tests.

svn path=/trunk/mono/; revision=149748
2010-01-18 16:18:37 +00:00
Zoltan Varga aaf0f0a0f3 2010-01-18 Zoltan Varga <[email protected]>
* liveness.c (mono_analyze_liveness): Make the debug output controllable by
	the normal -v options. Avoid propagating liveness information through bblocks
	which end with a NOT_REACHED opcode.

svn path=/trunk/mono/; revision=149747
2010-01-18 16:18:31 +00:00
Martin Baulig 2f573d99e0 Put the soft debugger into the 'Mono.Debugger.Soft' namespace.
svn path=/trunk/mcs/; revision=149742
2010-01-18 14:31:21 +00:00
Atsushi Eno ced694017c 2010-01-18 Atsushi Enomoto <[email protected]>
* SecureConversationVersion.cs, SecurityPolicyVersion.cs,
	  TrustVersion.cs : add new 3.5 classes.

	* MessageSecurityVersion.cs : add new 3.5 members.

	* System.ServiceModel.dll.sources : added new security version types.


svn path=/trunk/mcs/; revision=149724
2010-01-18 07:49:39 +00:00
Carlos Alberto Cortez a37ac08fe1 2010-01-17 Carlos Alberto Cortez <[email protected]>
* UInt64.cs: Implement a lightweight version of the Parse method for
	the overload that does not take IFormatProvider/NumberStyle
	parameters - this gets us a nice speed up, just like we do for the
	other number types.
	Fixes #338022.


svn path=/trunk/mcs/; revision=149722
2010-01-18 04:11:02 +00:00
Zoltan Varga 430ebd1982 2010-01-18 Zoltan Varga <[email protected]>
* mini.c (mono_jit_compile_method_inner): Avoid reading cfg->prof_options
	after cfg has been freed.

svn path=/trunk/mono/; revision=149721
2010-01-18 00:23:14 +00:00
Zoltan Varga a5f3c441ee 2010-01-18 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_base_init): Add 'conservative_stack_mark' option to turn
	off precise marking if it is available.
	(mono_gc_get_bitmap_for_descr): Fix the handling of run length descriptors.

svn path=/trunk/mono/; revision=149720
2010-01-18 00:23:08 +00:00
Zoltan Varga ad9edcd92b 2010-01-17 Zoltan Varga <[email protected]>
* sgen-gc.c (mono_gc_conservatively_scan_area): Resurrect this.

svn path=/trunk/mono/; revision=149706
2010-01-17 08:46:10 +00:00
Zoltan Varga 4174419bb3 2010-01-17 Zoltan Varga <[email protected]>
* sgen-pinning.c (evacuate_pin_staging_area): Don't assert if there are no
	pinned objects.

	* sgen-gc.c (create_allocator): Add the missing n > MONO_ARRAY_MAX_INDEX check
	to the array allocator.

svn path=/trunk/mono/; revision=149705
2010-01-17 08:42:26 +00:00
Zoltan Varga b3f5271ad2 2010-01-17 Zoltan Varga <[email protected]>
* branch-opts.c (mono_branch_optimize_exception_target): Stop the optimization
	if a clause is skipped because it uses the exception object, since it could
	have caught the exception.

	* exceptions.cs: Add a test.

svn path=/trunk/mono/; revision=149704
2010-01-17 08:02:01 +00:00
Miguel de Icaza f2f69279bb Fix crash when the quote starts the string to escape
svn path=/trunk/mcs/; revision=149703
2010-01-17 05:50:35 +00:00
Miguel de Icaza 0ab8e519e5 This method needs to be overwritten from the JsonValue class
svn path=/trunk/mcs/; revision=149702
2010-01-17 05:43:27 +00:00
Zoltan Varga c4d439a07a 2010-01-16 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_create_static_rgctx_trampoline): Add an assert.

        * aot-runtime.c (mono_aot_get_method): Handle ftnptr's correctly for the
        ICollection<T> wrappers.

svn path=/trunk/mono/; revision=149691
2010-01-16 08:32:55 +00:00
Zoltan Varga 2e53caea38 2010-01-16 Zoltan Varga <[email protected]>
* generic-sharing.c (instantiate_other_info): Don't create ftnptr's from the
        result of mono_compile_method (), it already includes an ftnptr.

svn path=/trunk/mono/; revision=149690
2010-01-16 08:32:39 +00:00
Zoltan Varga b11e786925 2010-01-16 Zoltan Varga <[email protected]>
* dtest-app.cs dtest.cs: Add tests for handling vtypes with IntPtr fields.

svn path=/trunk/mono/; revision=149686
2010-01-16 02:56:53 +00:00
Zoltan Varga 3bfcb1a14f 2010-01-16 Zoltan Varga <[email protected]>
* debugger-agent.c (decode_value): Fix the decoding of I/U/PTR.

svn path=/trunk/mono/; revision=149685
2010-01-16 02:56:43 +00:00
Gonzalo Paniagua Javier 9a719d0de8 Add 2 empty functions needed to compile in the PS3.
svn path=/trunk/mono/; revision=149679
2010-01-16 01:19:42 +00:00
Miguel de Icaza 754d6dd6ba Remove accidentally added file
svn path=/trunk/mono/; revision=149678
2010-01-16 01:03:13 +00:00
Miguel de Icaza f6b3de96c3 Revert temporary hack
svn path=/trunk/mono/; revision=149677
2010-01-16 01:02:34 +00:00
Miguel de Icaza 2e8071d8c9 Import proper patch
svn path=/trunk/mono/; revision=149676
2010-01-16 01:00:22 +00:00
Miguel de Icaza 3ebded89a2 Revert gcconfig.h change
svn path=/trunk/mono/; revision=149675
2010-01-16 00:59:54 +00:00
Gonzalo Paniagua Javier f023b3cca8 Little hack to support EGLIB (no GMemChunk).
Patch by Miguel.

svn path=/trunk/mono/; revision=149672
2010-01-16 00:46:58 +00:00
Zoltan Varga 4b5b4334ce 2010-01-16 Zoltan Varga <[email protected]>
* mini-amd64.c (emit_call_body): Always use near calls when AOTing even if
	NOMAP32BIT or optimize_for_xen is set.

svn path=/trunk/mono/; revision=149671
2010-01-16 00:46:51 +00:00
Gonzalo Paniagua Javier f20a936926 A few additions to better support PS3.
Patch by Miguel.

svn path=/trunk/mono/; revision=149670
2010-01-16 00:45:08 +00:00
Gonzalo Paniagua Javier 866bd6ea3e Define GMemChunk.
svn path=/trunk/mono/; revision=149669
2010-01-16 00:43:28 +00:00
Zoltan Varga 2c85eed4c1 2010-01-16 Zoltan Varga <[email protected]>
* aot-compiler.c aot-runtime.c: Get rid of mono_aot_str_hash (), use
	mono_metadata_str_hash () instead.

svn path=/trunk/mono/; revision=149666
2010-01-16 00:30:01 +00:00
Gonzalo Paniagua Javier 0ddfc6c910 2010-01-15 Gonzalo Paniagua Javier <[email protected]>
* mono-hash.c: fix the null-gc build.


svn path=/trunk/mono/; revision=149664
2010-01-16 00:24:28 +00:00
Zoltan Varga 4e114d3b69 2010-01-16 Zoltan Varga <[email protected]>
* metadata.c (get_image_set): Remove an assert which can happen in normal use.

svn path=/trunk/mono/; revision=149663
2010-01-16 00:20:55 +00:00
Atsushi Eno 2c345aac55 2010-01-15 Atsushi Enomoto <[email protected]>
* DateTimeTest.cs : commented out ParseExact() case that tests
	  preserved fraction.


svn path=/trunk/mcs/; revision=149662
2010-01-16 00:04:25 +00:00
Jonathan Pobst 8b7e0e32ea 2010-01-15 Jonathan Pobst <[email protected]>
* ConfigurationErrorsExceptionTest.cs: Mark 4 failing tests as NotWorking.
	Filed as bug #571226.

svn path=/trunk/mcs/; revision=149654
2010-01-15 23:01:01 +00:00
Jonathan Pobst abee25f094 2010-01-15 Jonathan Pobst <[email protected]>
* HttpWebRequestTest.cs: Mark test WriteServerAborts as
	NotWorking.  Documented on bug #312968.

svn path=/trunk/mcs/; revision=149653
2010-01-15 22:45:38 +00:00
Jonathan Pobst e7f604e1fa 2010-01-15 Jonathan Pobst <[email protected]>
* OracleParameterTest.cs: Mark test ParamSize_424908_SizeNotSetError
	as not working.  Bug filed: #571218.

svn path=/trunk/mcs/; revision=149652
2010-01-15 22:35:08 +00:00
Carlos Alberto Cortez dec4f65e26 2010-01-15 Carlos Alberto Cortez <[email protected]>
* Int32Test.cs: Test for TryParse with MaxValue + 1.


svn path=/trunk/mcs/; revision=149649
2010-01-15 21:03:19 +00:00
Rodrigo Kumpera 6b69482d58 2010-01-15 Rodrigo Kumpera <[email protected]>
* Array.cs: Implement IStructuralComparer.

2010-01-15 Rodrigo Kumpera  <[email protected]>

	* ArrayTest.cs: Tests for IStructuralComparer::CompareTo.

svn path=/trunk/mcs/; revision=149647
2010-01-15 20:50:45 +00:00
Carlos Alberto Cortez f62c3fbf05 2010-01-15 Carlos Alberto Cortez <[email protected]>
* Int32.cs: In Parse() cast the parsed value to long *before* changing
	its sign - this way we preserve the original value, instead of
	accidentally changing it. This was happening parsing _exactly_
	MaxValue + 1.
	Fixes #475815.


svn path=/trunk/mcs/; revision=149646
2010-01-15 20:28:33 +00:00
Marek Habersack 079990272c 2010-01-15 Marek Habersack <[email protected]>
* ChangePassword.cs: BaseChangePasswordContainer forwards
	EnsureChildControls call to its owner, so that finding controls in
	the container works correctly.

2010-01-15  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ChangePasswordContainer_FindControl.aspx

2010-01-15  Marek Habersack  <[email protected]>

	* ChangePasswordTest.cs: added test for looking for controls in
	ChangePassword template containers.

svn path=/trunk/mcs/; revision=149631
2010-01-15 13:23:54 +00:00
Marek Safar 62b137e761 2010-01-15 Marek Safar <[email protected]>
* *.cs: Use only 1 member kind enum.


svn path=/trunk/mcs/; revision=149624
2010-01-15 12:35:13 +00:00
Atsushi Eno de51c1e266 2010-01-15 Atsushi Enomoto <[email protected]>
* XElementTest.cs, XAttributeTest.cs : add another set of extensive
	  tests by Tiaan Geldenhuys.


svn path=/trunk/mcs/; revision=149620
2010-01-15 10:55:42 +00:00
Atsushi Eno 4d4f53ccfb 2010-01-15 Atsushi Enomoto <[email protected]>
* XAttribute.cs : escape whitespace chars in ToString().


svn path=/trunk/mcs/; revision=149619
2010-01-15 10:54:48 +00:00
Atsushi Eno e013411012 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : Do not ignore ticks which are less than a
	  millisecond. Remove trailing zeros for milliseconds and ticks.

	* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
	  ticks.


svn path=/trunk/mcs/; revision=149618
2010-01-15 10:49:03 +00:00
Atsushi Eno 4079df7702 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : trim spaces when parsing TimeSpan.

	* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.


svn path=/trunk/mcs/; revision=149617
2010-01-15 10:21:16 +00:00
Atsushi Eno 60e5ef2aa2 2010-01-15 Atsushi Enomoto <[email protected]>
* DateTime.cs : In AddMilliseconds(), it seems fractional
	  milliseconds are first rounded and then added.

	* DateTimeTest.cs : added test for rounding milliseconds.


svn path=/trunk/mcs/; revision=149614
2010-01-15 10:10:30 +00:00
Atsushi Eno 4678757465 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : shorten format string patterns.


svn path=/trunk/mcs/; revision=149612
2010-01-15 09:52:46 +00:00
Atsushi Eno 8c9707f487 2010-01-15 Atsushi Enomoto <[email protected]>
* DateTimeOffset.cs : preserve fractions (it is somehow dropped).

	* DateTimeOffsetTest.cs : add ParseExact() case that should preserve
	  fractions.


svn path=/trunk/mcs/; revision=149611
2010-01-15 09:51:52 +00:00
Marek Safar 8ee4a7702f updated
svn path=/trunk/mcs/; revision=149610
2010-01-15 09:11:59 +00:00
Atsushi Eno a2eea4d7e5 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : DateTimeOffset parse is sloppy.

	* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
	  string with spaces.


svn path=/trunk/mcs/; revision=149609
2010-01-15 08:58:42 +00:00
Marek Safar 14abe52079 2010-01-15 Marek Safar <[email protected]>
* *.cs: Add event specification.


svn path=/trunk/mcs/; revision=149608
2010-01-15 08:53:21 +00:00
Zoltan Varga 62c558b82d 2010-01-15 Zoltan Varga <[email protected]>
* ir-emit.h (MONO_EMIT_NEW_ICOMPARE_IMM): Use sizeof (mgreg_t) instead of
        sizeof (void*).

svn path=/trunk/mono/; revision=149607
2010-01-15 08:12:01 +00:00
Atsushi Eno 4aa5c7be4d 2010-01-15 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add SL config loader here
	  for easy debugging under 2.0 profile.

	* SilverlightClientConfigLoader.cs : add another loop blocker.
	  Do not reject binding configuration with no basic http binding.
	  In SL3 it may be custom and such configuration should be valid.


svn path=/trunk/mcs/; revision=149606
2010-01-15 07:36:45 +00:00
Zoltan Varga 26f0a0b805 2010-01-15 Zoltan Varga <[email protected]>
* unwind.c (mono_unwind_frame): Use mgreg_t instead of gssize.

svn path=/trunk/mono/; revision=149605
2010-01-15 07:33:28 +00:00
Zoltan Varga 950f3c3964 2010-01-15 Zoltan Varga <[email protected]>
* ir-emit.h (MONO_EMIT_NEW_CHECK_THIS): Emit an explicit null check if the
        flag is set.

svn path=/trunk/mono/; revision=149604
2010-01-15 07:29:43 +00:00
Zoltan Varga da1f9ef5d0 2010-01-15 Zoltan Varga <[email protected]>
* mini-ppc.c (mono_arch_emit_exceptions): Compute the size of the exception
	throwing code correctly.

svn path=/trunk/mono/; revision=149603
2010-01-15 05:33:40 +00:00
Zoltan Varga 44a77655b5 2010-01-15 Zoltan Varga <[email protected]>
* mini.h (MONO_AOT_FILE_VERSION): Bump this because of the IMT hashing changes.

svn path=/trunk/mono/; revision=149602
2010-01-15 05:31:03 +00:00
Zoltan Varga 73f3a69022 2010-01-15 Zoltan Varga <[email protected]>
* metadata.c (mono_metadata_str_hash): New helper function to compute a stable
	hash value which doesn't depend on glib/eglib versions.
	(mono_metadata_type_hash): Use it.

	* object.c (mono_method_get_imt_slot): Ditto.

svn path=/trunk/mono/; revision=149601
2010-01-15 05:29:42 +00:00
Zoltan Varga 61a3e5ecca 2010-01-15 Zoltan Varga <[email protected]>
* aot-runtime.c (mono_aot_plt_resolve): Reenable the previous assert for
        ftnptrs created by us, handle RGCTX_FETCH correctly.
        (mono_aot_get_lazy_fetch_trampoline): Add an ftnptr.

        * mini-trampolines.c (mono_create_generic_class_init_trampoline): Remove the
        ftnptr added by mono_aot_get_named_code ().

svn path=/trunk/mono/; revision=149600
2010-01-15 03:07:49 +00:00
Zoltan Varga 3364fb4967 Fix the previous change.
svn path=/trunk/mono/; revision=149599
2010-01-15 03:06:55 +00:00
Atsushi Eno 8d9b732fb1 2010-01-15 Atsushi Enomoto <[email protected]>
* profiles/net_4_0_bootstrap.make : MCS also needs MONO_PATH to
	  net_2_0 to load System.Core.dll. Fix build (mostly for windows).



svn path=/trunk/mcs/; revision=149598
2010-01-15 02:43:01 +00:00
Zoltan Varga 49795e8a27 2010-01-15 Zoltan Varga <[email protected]>
* configure.in: Don't define TARGET_WIN32 when --target is used.

svn path=/trunk/mono/; revision=149593
2010-01-15 01:28:51 +00:00
Zoltan Varga 97a7027efd Check in the proper version of this file instead of the old version.
svn path=/trunk/mono/; revision=149592
2010-01-15 01:25:05 +00:00
Gonzalo Paniagua Javier 9c48ce0cec exclude the support directory when cross compiling
svn path=/trunk/mono/; revision=149591
2010-01-15 01:21:05 +00:00
Gonzalo Paniagua Javier fc29a0a2b8 add a few libraries needed when cross-compiling
svn path=/trunk/mono/; revision=149590
2010-01-15 01:18:20 +00:00
Gonzalo Paniagua Javier b3730d53b3 do not build a few directories when building the cross compiler
svn path=/trunk/mono/; revision=149589
2010-01-15 01:17:40 +00:00
Gonzalo Paniagua Javier d1744dfdcc fix for cross-compiling on linux
svn path=/trunk/mono/; revision=149587
2010-01-15 01:10:28 +00:00
Gonzalo Paniagua Javier 4ec055da0c add 3 more zip files needed
svn path=/trunk/mono/; revision=149585
2010-01-15 00:06:19 +00:00
Zoltan Varga 5a50afea71 Fix the DISABLE_REFLECTION_EMIT build.
svn path=/trunk/mono/; revision=149584
2010-01-14 23:41:51 +00:00
Gonzalo Paniagua Javier dbf3954746 For the windows cross-compiler build.
svn path=/trunk/mono/; revision=149583
2010-01-14 23:32:13 +00:00
Zoltan Varga 20b4e40948 2010-01-15 Zoltan Varga <[email protected]>
* scripts/get-cygwin-deps.sh: New file. Contains a script to download and setup
	the dependencies needed for compiling mono on cygwin.

svn path=/trunk/mono/; revision=149582
2010-01-14 23:15:12 +00:00
Rodrigo Kumpera 377fddd1a4 2010-01-14 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_has_exceptions): Check the generic instance. It can fail
	independently of the GTD.

	* class.c (mono_class_setup_fields): Fail if field has negative offset.

	* class.c (mono_class_setup_fields): Fail if valuetype has zero size. Add sizeof(MonoObject)
	to the upper limit since instance_size includes this amount.

	* class.c (mono_class_layout_fields): Check if the types of the static fields have failed.

	Fixes #569544.

svn path=/trunk/mono/; revision=149575
2010-01-14 21:04:28 +00:00
Zoltan Varga 4cd8eac1bb Fix the build.
svn path=/trunk/mono/; revision=149574
2010-01-14 19:09:35 +00:00
Jb Evain c66dfd511c 2010-01-14 Jb Evain <[email protected]>
* MarkStep.cs: preserve fields specified by the
	SoapHeader attribute.

svn path=/trunk/mcs/; revision=149571
2010-01-14 18:12:17 +00:00
Rolf Bjarne Kvinge 837adb6a21 2010-01-14 Rolf Bjarne Kvinge <[email protected]>
* UnmanagedMemoryStream.cs: Read: don't read bytes one-by-one, read all
	at once.

svn path=/trunk/mcs/; revision=149555
2010-01-14 13:17:53 +00:00
Marek Safar 9639fc7274 2010-01-14 Marek Safar <[email protected]>
* membercache.cs: Extracted from decl.cs.
	
	* *.cs: Put more infrastructure in place.


svn path=/trunk/mcs/; revision=149550
2010-01-14 12:24:47 +00:00
Jonathan Pryor cac7756fa7 * Monodoc/provider.cs, Monodoc/ecma-provider.cs: Improve cache support
by having EcmaHelpSource.GetTextFromUrl() look for cached contents.
	  This greatly speeds up type member listings (e.g. T:...List`1/*),
	  e.g. from ~2.0s to 0.06s.

svn path=/trunk/mcs/; revision=149531
2010-01-14 04:58:22 +00:00
Zoltan Varga 01c048f059 2010-01-14 Zoltan Varga <[email protected]>
* object.c (build_imt_slots): Compute the vtable slot correctly for interfaces
	with static methods.

svn path=/trunk/mono/; revision=149530
2010-01-14 04:50:01 +00:00
Zoltan Varga 35f24a5b23 2010-01-14 Zoltan Varga <[email protected]>
* object.c (build_imt_slots): Avoid asserting when static methods are
	encountered in an interface.

svn path=/trunk/mono/; revision=149528
2010-01-14 02:47:57 +00:00
Zoltan Varga a19b980e84 2010-01-14 Zoltan Varga <[email protected]>
* mini-arm.c: Fix a few LLVM problems.

svn path=/trunk/mono/; revision=149527
2010-01-14 02:32:14 +00:00
Zoltan Varga bf88ad3c09 2010-01-14 Zoltan Varga <[email protected]>
* mini-llvm.c (simd_class_to_llvm_type): Fix compilation on !x86/amd64.

svn path=/trunk/mono/; revision=149526
2010-01-14 02:32:08 +00:00
Marek Habersack 7804364216 2010-01-14 Marek Habersack <[email protected]>
* Helpers.cs, ITestCase.cs, ITestRunner.cs, StandaloneTest.cs,
	TestCallback.cs, TestCaseAttribute.cs,
	TestCaseFailureException.cs, TestRunItem.cs, TestRunner.cs,
	TestWorkerRequest.cs: added

2010-01-14  Marek Habersack  <[email protected]>

	* System.Web_standalone_test.dll.sources,
	standalone-runner-support.dll.sources: added

	* Makefile: Added targets to build and run standalone tests.
	Added standalone tests and test tools to EXTRA_DISTFILES

2010-01-14  Marek Habersack  <[email protected]>

	* Consts.cs.in, Locations.cs: added

2010-01-14  Marek Habersack  <[email protected]>

	* standalone-runner.cs: added

	* Makefile: added build targets for standalone-runner.exe

2010-01-14  Marek Habersack  <[email protected]>

	* NunitWebTest.cs: added new overload of GetControlFromPageHtml
	which takes begin and end markers as parameters.

2010-01-14  Marek Habersack  <[email protected]>

	* ApplicationManager.cs: implemented a missing CreateObject
	overload

2010-01-14  Marek Habersack  <[email protected]>

	* executable.make, library.make, rules.make: quote file name
	wherever referenced in dist* targets, so that files with spaces in
	name work fine.

svn path=/trunk/mcs/; revision=149522
2010-01-14 01:15:01 +00:00
Gonzalo Paniagua Javier 01ac7fd34e -Remove unneeded assertion.
svn path=/trunk/mono/; revision=149505
2010-01-14 00:11:49 +00:00
Gonzalo Paniagua Javier 544931f4aa 2010-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: when the server returns several different
	authentication methods, pick the one that works.
	Fixes bug #562043.


svn path=/trunk/mcs/; revision=149500
2010-01-13 23:22:38 +00:00
Jonathan Pryor 1e2332d356 * Mono.Documentation/XmlDocUtils.cs: XmlDocUtils.AddExtensionMethods()
wasn't adding extension methods which matched *interfaces* of base
	  classes.  Result: Mono.Options.OptionSet (which inherits
	  System.Collections.ObjectModel.KeyedCollection`2 which inherits from
	  System.Collections.ObjectModel.Collection`1 which implements
	  System.Collections.Generic.IEnumerable`1) wasn't getting any of the
	  LINQ extension methods (which is bad).  Fix this.

svn path=/trunk/mcs/; revision=149496
2010-01-13 21:35:46 +00:00
Jonathan Pryor e7a4f9a1cf * Resources/mdoc-html-utils.xsl: Fix regression caused by 2009-12-02
commit adding GetLinkTargetHtml().  The problem was that when
	  running within ASP.NET/monodoc ~all extension method links would be
	  'javascript:alert("...")M:Foo.Method(...)', which is clearly wrong.
	  This occurred because $linkid's generation would always call
	  GetLinkTargetHtml() with a $cref value of '', thus the monodoc
	  GetLinkTarget() would return '', so GetLinkTargetHtml() would return
	  the javascript "not found" alert.  Thus, we can't expect
	  GetLinkTargetHtml() with $cref='' to work under monodoc, but it's
	  ~required to work sanely under 'mdoc export-html'.
	  Solution is to not call GetLinkTargetHtml() here UNLESS we're doing
	  'mdoc export-html' generation, which we assume to be the case if
	  $html-anchor is true.

svn path=/trunk/mcs/; revision=149492
2010-01-13 21:11:27 +00:00
Sebastien Pouliot 295222fc78 2010-01-13 Sebastien Pouliot <[email protected]>
* HttpWebRequest_2_1.cs: Throw for CookieContainer. It is 
	implemented only in the client http stack (and for a limited
	time in the browser stack too ;-)
	* InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
	available after closing/disposing (by user) since our own code
	will need it later (e.g. when posting like DRT287)
	* WebHeaderCollection_2_1.cs: Provide an argument to 
	ArgumentException. Found by Gendarme's ArgumentException
	InstantiateArgumentExceptionCorrectlyRule


svn path=/trunk/mcs/; revision=149484
2010-01-13 18:40:16 +00:00
Marek Safar 3c16d7b159 2010-01-13 Marek Safar <[email protected]>
* *.cs: Add property specification, unused yet.


svn path=/trunk/mcs/; revision=149483
2010-01-13 18:12:38 +00:00
Mark Probst 06532dd4fd 2010-01-13 Mark Probst <[email protected]>
* sgen-gc.c (to_space_expand): Fix assertion.

svn path=/trunk/mono/; revision=149479
2010-01-13 15:58:24 +00:00
Mark Probst 52dbd789a8 2010-01-13 Mark Probst <[email protected]>
* method-to-ir.c (mini_emit_stobj): Use EMIT_NEW_CLASSCONST when
        AOT compiling.

svn path=/trunk/mono/; revision=149478
2010-01-13 15:52:57 +00:00
Paolo Molaro ab204ac666 Wed Jan 13 15:54:53 CET 2010 Paolo Molaro <[email protected]>
* jit.h, method-to-ir.c: added ability to set the policy for
	inserting breakpoints from the break IL instruction or the
	Debugger.Break () API call.


svn path=/trunk/mono/; revision=149472
2010-01-13 14:56:39 +00:00
Marek Safar dcb3aa32fd 2010-01-13 Marek Safar <[email protected]>
* property.cs: Move all property based declarations into a new file.


svn path=/trunk/mcs/; revision=149471
2010-01-13 14:48:29 +00:00
Paolo Molaro 4ab68d753a Wed Jan 13 15:42:28 CET 2010 Paolo Molaro <[email protected]>
* string-icalls.c: missing declaration fixes.
	* sgen-gc.c: portability fixes.


svn path=/trunk/mono/; revision=149470
2010-01-13 14:43:41 +00:00
Zoltan Varga f88d7ace1f 2010-01-13 Zoltan Varga <[email protected]>
* aot-runtime.c (load_aot_module): Add more comments to explain why referenced
	assemblies need to be eagerly loaded.

svn path=/trunk/mono/; revision=149469
2010-01-13 14:38:58 +00:00
Marek Safar 3d485e15c1 flush
svn path=/trunk/mcs/; revision=149468
2010-01-13 14:37:37 +00:00
Marek Safar 8139cb7da5 New test.
svn path=/trunk/mcs/; revision=149467
2010-01-13 14:19:02 +00:00
Marek Safar 0a947a08bd 2010-01-13 Marek Safar <marek.safar at gmail.com>
* expression.cs (Conditional): Resolve reduced expression.


svn path=/trunk/mcs/; revision=149466
2010-01-13 14:18:46 +00:00
Marek Safar 652942f8fe Enabled variance tests.
svn path=/trunk/mcs/; revision=149464
2010-01-13 13:58:16 +00:00
Jb Evain 670dee5a55 2010-01-13 Jb Evain <[email protected]>
* MarkStep.cs: preserve methods specified by the
	XmlSchemaProvider attribute.

svn path=/trunk/mcs/; revision=149460
2010-01-13 13:27:47 +00:00
Marek Safar d02179ed24 Warnings cleanup
svn path=/trunk/mcs/; revision=149459
2010-01-13 13:14:15 +00:00
Marek Safar f3443a829d New tests.
svn path=/trunk/mcs/; revision=149458
2010-01-13 12:58:29 +00:00
Marek Safar 9c05ae86ad 2010-01-13 Marek Safar <marek.safar at gmail.com>
* *.cs: Introduced non-generic method specification.


svn path=/trunk/mcs/; revision=149457
2010-01-13 12:56:43 +00:00
Atsushi Eno c45f67f3e0 2010-01-13 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : implement SetAction().


svn path=/trunk/mcs/; revision=149451
2010-01-13 11:51:19 +00:00
Atsushi Eno 791302a604 2010-01-13 Atsushi Enomoto <[email protected]>
* ExceptionDetail.cs : uncomment DataMember (likely commented out due
	  to missing default serialization in the past).


svn path=/trunk/mcs/; revision=149450
2010-01-13 11:40:03 +00:00
Atsushi Eno f65322475e 2010-01-13 Atsushi Enomoto <[email protected]>
* EndpointAddressBuilder.cs : reader getters were broken.

	* EndpointAddressBuilderTest.cs : add usage example test.


svn path=/trunk/mcs/; revision=149449
2010-01-13 11:35:10 +00:00
Atsushi Eno 70e055099c 2010-01-13 Atsushi Enomoto <[email protected]>
* EndpointAddressBuilder.cs : implement.

	* net_2_1_raw_System.ServiceModel.dll.sources :
	  add EndpointAddressBuilder.cs.


svn path=/trunk/mcs/; revision=149448
2010-01-13 11:26:30 +00:00
Atsushi Eno 4a82278269 2010-01-13 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fill Operation.Faults.

	* FaultContractInfo.cs : implement.
	* DispatchOperation.cs, ClientOperation.cs: fill Faults.

	* net_2_1_raw_System.ServiceModel.dll.sources :
	  add FaultContractInfo.cs.


svn path=/trunk/mcs/; revision=149445
2010-01-13 10:37:41 +00:00
Atsushi Eno 3c2baafdba forgot to commit.
svn path=/trunk/mcs/; revision=149444
2010-01-13 10:35:13 +00:00
Atsushi Eno 576f8e0614 2010-01-13 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs : fix build.


svn path=/trunk/mcs/; revision=149443
2010-01-13 10:31:34 +00:00
Atsushi Eno c8035b3d53 2010-01-13 Atsushi Enomoto <[email protected]>
* Double.cs : no need to preserve old code.


svn path=/trunk/mcs/; revision=149441
2010-01-13 09:55:05 +00:00
Atsushi Eno b84f0f4553 2010-01-13 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs :
	  implement On{Begin/End}Close() on the generic type.


svn path=/trunk/mcs/; revision=149437
2010-01-13 08:41:18 +00:00
Atsushi Eno 17b88b6dcf 2010-01-13 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs, TcpChannelFactory.cs,
	  ChannelFactoryBase.cs, NamedPipeChannelFactory.cs
	  PeerChannelFactory.cs, HttpRequestChannel.cs:
	  fix ChannelFactoryBase API; move On(Begin/End)Open() to internal
	  type and made required changes.



svn path=/trunk/mcs/; revision=149436
2010-01-13 08:28:22 +00:00
Atsushi Eno ad860bce0a 2010-01-13 Astushi Enomoto <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources :
	  add HttpCookieContainerBindingElement.cs.

	* HttpCookieContainerBindingElement.cs : new.
	* IHttpCookieContainer.cs : fix type name.
	* HttpRequestChannel.cs, HttpChannelFactory.cs : support above.

	* BasicHttpBinding.cs : add SL3 EnableHttpCookieContainer support.


svn path=/trunk/mcs/; revision=149435
2010-01-13 08:13:43 +00:00
Marek Safar 26c760304a Reverted r149419.
svn path=/trunk/mcs/; revision=149428
2010-01-12 19:58:00 +00:00
Rodrigo B. de Oliveira fb99339779 Support for PropertyGroup as a child of When and Otherwise
svn path=/trunk/mcs/; revision=149426
2010-01-12 18:47:48 +00:00
Sebastien Pouliot e22e85032b 2010-01-12 Sebastien Pouliot <[email protected]>
* WebRequest_2_1.cs: Rework registration wrt the two, browser
	and client, stacks offered in SL3. Only global works now.


svn path=/trunk/mcs/; revision=149423
2010-01-12 18:43:52 +00:00
Marek Safar a766743518 2010-01-12 Marek Safar <[email protected]>
* *.cs: Introduced non-generic method specification.


svn path=/trunk/mcs/; revision=149419
2010-01-12 17:10:11 +00:00
Marek Safar d5342c563b Removed duplicate usings and 1.1 code
svn path=/trunk/mcs/; revision=149418
2010-01-12 17:05:32 +00:00
Marek Safar cbceddba72 Rebuild Mono.CSharp first
svn path=/trunk/mcs/; revision=149416
2010-01-12 16:52:38 +00:00
Rodrigo Kumpera 693ec26d13 2010-01-12 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_get_implemented_interfaces): Now take a MonoError argument.

	* class.c:
	* cominterop.c:
	* icall.c:
	* object.c:
	* class-internals.h: Adjust for new signature of mono_class_get_implemented_interfaces.

svn path=/trunk/mono/; revision=149414
2010-01-12 16:34:25 +00:00
Rodrigo Kumpera 8910f7dd4c 2010-01-12 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_interfaces): Now take a MonoError argument and
	it can fail loading the type.

	* class.c: Add mono_class_inflate_generic_class_checked.

	* class.c:
	* verify.c:
	* class-internals.h: Adjust for new signature of mono_class_setup_interfaces.

svn path=/trunk/mono/; revision=149413
2010-01-12 16:34:06 +00:00
Marek Safar e0f61e8476 oups, removed too much
svn path=/trunk/mcs/; revision=149411
2010-01-12 16:29:53 +00:00
Marek Safar 9d8a01dff3 Reference Mono.CSharp instead of .exe
svn path=/trunk/mcs/; revision=149410
2010-01-12 16:24:25 +00:00
Jonathan Pobst d57d914295 Disable building RabbitMQ for now until the new generated-on-the-fly stuff
can be implemented instead of the static copies.

svn path=/trunk/mono/; revision=149408
2010-01-12 16:05:33 +00:00
Jonathan Pryor 7e212ecd7a * Makefile: monodoc should only be built under the 2.0 profile.
svn path=/trunk/mcs/; revision=149407
2010-01-12 15:44:26 +00:00
Miguel de Icaza 5529d196f3 2010-01-12 Miguel de Icaza <[email protected]>
* Regex.cs: Re-enable the new regex compiler as the bug seems to
	be gone now.

svn path=/trunk/mcs/; revision=149403
2010-01-12 13:54:19 +00:00
Sebastien Pouliot 7b3d84254a In Test/System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredentialTest.cs: New. Unit tests.

In System.Net:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* NetworkCredential.cs: Fix properties to never return null.

In .:
2010-01-12  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add NetworkCredentialTest.cs to the tests


svn path=/trunk/mcs/; revision=149401
2010-01-12 13:07:44 +00:00
Marek Safar 62763da9fc Forget to commit this one.
svn path=/trunk/mcs/; revision=149394
2010-01-12 10:44:01 +00:00
Atsushi Eno f9e73d5d8a 2010-01-12 Atsushi Enomoto <[email protected]>
* XElementTest.cs : add extensive tests by Tiaan Geldenhuys, with
	  one sort of comment-out as stated in r149388.


svn path=/trunk/mcs/; revision=149392
2010-01-12 09:53:15 +00:00
Atsushi Eno 2cd3100f63 2010-01-12 Atsushi Enomoto <[email protected]>
* XUtil.cs : for DateTimeOffset, use XmlConvert to format string.


svn path=/trunk/mcs/; revision=149391
2010-01-12 09:50:41 +00:00
Atsushi Eno 5a6caae057 2010-01-12 Atsushi Enomoto <[email protected]>
* XUtil.cs : format float and double values as round-trippable.


svn path=/trunk/mcs/; revision=149389
2010-01-12 09:32:13 +00:00
Atsushi Eno 7f46cb5db2 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : added commented-out tests for the remaining
	  parse tests by Tiaan Geldenhuys for XLinq, with the reason why.


svn path=/trunk/mcs/; revision=149388
2010-01-12 09:14:24 +00:00
Atsushi Eno e48ffb5e67 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : handle Infinity and -Infinity here due to the
	  commented reason.


svn path=/trunk/mcs/; revision=149387
2010-01-12 08:54:06 +00:00
Atsushi Eno c16c7121b1 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().

	* XmlConvertTests.cs : float parse should do the same. Fix NaN test.


svn path=/trunk/mcs/; revision=149386
2010-01-12 08:48:17 +00:00
Atsushi Eno 6d97ab5da5 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
	  with whitespace allowed.

	* XmlConvertTests.cs : another double parse test for string with
	  spaces, for string constants such as NaN.


svn path=/trunk/mcs/; revision=149385
2010-01-12 08:38:04 +00:00
Atsushi Eno 6ee7681e2a 2010-01-12 Atsushi Enomoto <[email protected]>
* Double.cs : AllowLeading/TrailingWhite should also check those
	  surrounding string constants such as "NaN".

	* DoubleTest.cs : add test for AllowLeading/TrailingSpace flags.


svn path=/trunk/mcs/; revision=149383
2010-01-12 08:24:06 +00:00
Atsushi Eno 91f7cf5926 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
	  whitespaces.

	* XUtil.cs : to create an XNode from an object, do not use ToString()
	  directly. Handle TimeSpan in xsd manner.


svn path=/trunk/mcs/; revision=149382
2010-01-12 07:40:31 +00:00
Atsushi Eno 0b3eead739 2010-01-12 Atsushi Enomoto <[email protected]>
* XUtil.cs : to create an XNode from an object, do not use ToString()
	  directly. Handle TimeSpan in xsd manner.


svn path=/trunk/mcs/; revision=149381
2010-01-12 07:30:39 +00:00
Atsushi Eno fa69306e44 forgot ChangeLog.
svn path=/trunk/mcs/; revision=149380
2010-01-12 07:18:11 +00:00
Miguel de Icaza c36ffc5470 _GNU_SOURCE is already defined by configure.ac
svn path=/trunk/mono/; revision=149379
2010-01-12 06:59:35 +00:00
Atsushi Eno 029693a9c2 2010-01-12 Atsushi Enomoto <[email protected]>
* XUtil.cs, XElement.cs, XAttribute.cs : unlike XmlConvert, casts to
	  DateTime seem also support general conversion (parse) from strings.


svn path=/trunk/mcs/; revision=149378
2010-01-12 06:51:30 +00:00
Atsushi Eno 74a5119351 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToString(DateTimeOffset) does not emit extra
	  fraction numbers.


svn path=/trunk/mcs/; revision=149377
2010-01-12 06:46:38 +00:00
Atsushi Eno 65378733d1 2010-01-12 Atsushi Enomoto <[email protected]>
* XUtil.cs, XElement.cs, XAttribute.cs : unlike XmlConvert, casts to
	  boolean seem also to handle case-insensitive true/false strings.


svn path=/trunk/mcs/; revision=149376
2010-01-12 05:51:38 +00:00
Atsushi Eno e73ff21907 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fix some cosmetic compatibility bugs:
	  ArgumentException -> FormatException.


svn path=/trunk/mcs/; revision=149375
2010-01-12 05:43:23 +00:00
Miguel de Icaza 32e67b66b0 2010-01-11 Miguel de Icaza <[email protected]>
* valgrind.h, memcheck.h: Add guards to prevent the gcc features
	from being included in non-GCC builds like the Windows build.

svn path=/trunk/mono/; revision=149374
2010-01-12 04:47:03 +00:00
Miguel de Icaza 2aa52c4c87 Update docs
svn path=/trunk/mono/; revision=149373
2010-01-12 04:43:08 +00:00
Zoltan Varga 0c05f78bb9 Fix eglib so it builds again.
svn path=/trunk/mono/; revision=149372
2010-01-12 04:30:41 +00:00
Zoltan Varga e07079e7bb 2010-01-12 Zoltan Varga <[email protected]>
* dwarfwriter.c (emit_line_number_info): Fix the eglib case so it doesn't crash.

svn path=/trunk/mono/; revision=149371
2010-01-12 04:30:35 +00:00
Atsushi Eno e703e2593c 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : handle a corner case for empty string handling 
	  difference between XmlTextWriter and XmlWriter.Create().

	* XmlWriterTests.cs : added a corner case test for empty string handling
	  difference between XmlTextWriter and XmlWriter.Create().


svn path=/trunk/mcs/; revision=149368
2010-01-12 03:07:59 +00:00
Zoltan Varga f6f533a983 2010-01-12 Zoltan Varga <[email protected]>
* profiles/basic.make (do-profile-check): Honor the V=1 flag.

svn path=/trunk/mcs/; revision=149364
2010-01-12 01:52:08 +00:00
Miguel de Icaza 530ed60549 Add support for rendering the title
svn path=/trunk/mcs/; revision=149362
2010-01-12 01:11:02 +00:00
Carlos Alberto Cortez e949af87cf 2010-01-11 Carlos Alberto Cortez <[email protected]>
* Int32Test.cs: Add test case for exponent support in the Parse
	methods.


svn path=/trunk/mcs/; revision=149357
2010-01-11 23:42:22 +00:00
Carlos Alberto Cortez 0acba0dca1 2010-01-11 Carlos Alberto Cortez <[email protected]>
* Int32.cs: Implement support for exponent in the Parse methods.
	Fixes #542464.


svn path=/trunk/mcs/; revision=149356
2010-01-11 23:41:19 +00:00
Zoltan Varga 591a8ad299 2010-01-11 Zoltan Varga <[email protected]>
* loader.c (mono_method_signature_checked): New internal function taking an
	MonoError argument.

svn path=/trunk/mono/; revision=149349
2010-01-11 22:32:42 +00:00
Zoltan Varga bb8d8e8604 2010-01-11 Zoltan Varga <[email protected]>
* socket-io.c (AI_ADDRCONFIG): Applied patch from John Lightsey ([email protected]).
	Fixes build on rh 7.3.

svn path=/trunk/mono/; revision=149348
2010-01-11 22:32:35 +00:00
Zoltan Varga 74a2ac17db 2010-01-11 Zoltan Varga <[email protected]>
* mono-profiler-logging.c (_ProfilerFileWriteBuffer): Use MONO_ZERO_LEN_ARRAY.
	Fixes #569806.

svn path=/trunk/mono/; revision=149347
2010-01-11 22:32:28 +00:00
Gonzalo Paniagua Javier 2ab6eaedcf Use the pre-C99 printf formatting.
svn path=/trunk/mono/; revision=149340
2010-01-11 21:08:48 +00:00
Sebastien Pouliot 21996f3689 In .:
2010-01-11  Sebastien Pouliot  <[email protected]>

	* System.Net.dll.sources: Add InternalWebRequestStreamWrapper.cs
	* Makefile: Add reference to System.Core (for Action<T>)

In System.Net:
2010-01-11  Sebastien Pouliot  <[email protected]>

	* InternalWebRequestStreamWrapper.cs: New. Moved (and adapted) 
	from Moonlight System.Windows.Browser assembly.
	* InternalWebResponseStreamWrapper.cs: New. Moved (and adapted) 
	from Moonlight System.Windows.Browser assembly.
	* WebClient_2_1.cs: Remove custom delegate declaration (Gendarme's
	AvoidDeclaringCustomDelegatesRule). Remove locking over a variable
	(Gendarme's ReviewLockUsedOnlyForOperationsOnVariablesRule). 
	Avoid potential race with event handlers (Gendarme's 
	ProtectCallsToEventDelegatesRule). Implement OnWriteStreamClosed
	* WebRequest_2_1.cs: Signature change from delegate to 
	Action<long,long,object>. Found using Gendarme's
	AvoidDeclaringCustomDelegatesRule


svn path=/trunk/mcs/; revision=149327
2010-01-11 20:26:27 +00:00
Gonzalo Paniagua Javier c2c7ccd3ea No soft debug for PS3 yet.
svn path=/trunk/mono/; revision=149325
2010-01-11 20:08:16 +00:00
Gonzalo Paniagua Javier 7d2d4afc6c No valgrind on windows.
svn path=/trunk/mono/; revision=149322
2010-01-11 19:47:57 +00:00
Jonathan Pryor 5d0687847f * Mono.Documentation/monodocs2slashdoc.cs: Fix NamespaceSummaries.xml
generation to look at the ns-NAMESPACE.xml files, not just
	  NAMESPACE.xml files.

svn path=/trunk/mcs/; revision=149304
2010-01-11 13:53:22 +00:00
Aaron Bockover c696cae3ff 2010-01-10 Aaron Bockover <[email protected]>
* assembly.c (mono_set_rootdir): Support finding the mono paths on OS X
    at runtime in the same way as on Windows, which yields a relocatable
    Mono. Uses dyld's _NSGetExecutablePath and realpath to resolve the path
    of the running mono process.

    On TARGET_ARM, fallback () will always be executed.


svn path=/trunk/mono/; revision=149298
2010-01-11 06:04:09 +00:00
Zoltan Varga fea65e31f1 2010-01-11 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
	an argument which matches any exception.

svn path=/trunk/mono/; revision=149296
2010-01-11 04:09:18 +00:00
Carlos Alberto Cortez 0cf5581a74 2010-01-10 Carlos Alberto Cortez <[email protected]>
* ToolStripMenuItemTest: New test for the events related to the check
	state.


svn path=/trunk/mcs/; revision=149290
2010-01-11 00:33:14 +00:00
Carlos Alberto Cortez 2e172efafb 2010-01-10 Carlos Alberto Cortez <[email protected]>
* ToolStripMenuItem.cs: Put the Checked/CheckState logic in a single
	place and synchronize the events properly. Fixes a lack of
	coordination between the events - which should be fired together.


svn path=/trunk/mcs/; revision=149289
2010-01-11 00:32:53 +00:00
Zoltan Varga e80fbe9ddd 2010-01-10 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
	optimization if the called method is gshared and marshalbyref, since gshared
	methods can' have wrappers. Fixes #569390.

	* generics.cs: Add a test.

svn path=/trunk/mono/; revision=149286
2010-01-10 22:40:28 +00:00
Zoltan Varga 72dfe6326c 2010-01-10 Zoltan Varga <[email protected]>
* GC.cs: Add stubs for new net 4.0 methods.

svn path=/trunk/mcs/; revision=149284
2010-01-10 17:42:12 +00:00
Zoltan Varga 7e4727da9d 2010-01-10 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_print_thread_dump_from_ctx): New helper function
	callable from gdb.

svn path=/trunk/mono/; revision=149280
2010-01-10 01:52:54 +00:00
Atsushi Eno 4d3187613f 2010-01-10 Atsushi Enomoto <[email protected]>
* SilverlightClientConfigLoader.cs : uncomment binary message
	  encoding element which was internal-only in SL2 but public in SL3.


svn path=/trunk/mcs/; revision=149278
2010-01-10 01:15:03 +00:00
Zoltan Varga 4d410f8e01 2010-01-09 Zoltan Varga <[email protected]>
* debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
	since it is not supported in win2000.

svn path=/trunk/mono/; revision=149274
2010-01-09 21:20:35 +00:00
Carlos Alberto Cortez 90e324513c 2010-01-09 Carlos Alberto Cortez <[email protected]>
* TrackBarTest.cs: New test for events.


svn path=/trunk/mcs/; revision=149269
2010-01-09 17:03:44 +00:00
Carlos Alberto Cortez 7fade6d56f 2010-01-09 Carlos Alberto Cortez <[email protected]>
* TrackBar.cs: Move our events code to a single method, allowing it to
	optionally fire the Scroll event. This way we both avoid the
	duplicated calls to OnScroll and also will be able to fire Scroll
	*before* OnValueChanged in other places.
	Fixes #568026.


svn path=/trunk/mcs/; revision=149268
2010-01-09 16:58:04 +00:00
Atsushi Eno 835559a0e1 2010-01-09 Atsushi Enomoto <[email protected]>
* XElement.cs : add DateTimeOffset implicit operator.
	  Patch by Tiaan Geldenhuys.


svn path=/trunk/mcs/; revision=149265
2010-01-09 09:51:13 +00:00
Marek Habersack 692b3e376b 2010-01-09 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection properly handles looking
	up and caching of <location> instances. Part of fix for bug
	#568441

	* WebConfigurationHost.cs: GetConfigPathFromLocationSubPath
	calculatesthe path relative to the current config file path. Part
	of fix for bug #568441

2010-01-09  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: small optimizations for GetDirectory

2010-01-09  Marek Habersack  <[email protected]>

	* ConfigurationLocation.cs: trailing / characters are removed from
	the path.

	* Configuration.cs: instances created for locations inherit
	ConfigPath from their containing document.
	Host.GetConfigPathFromLocationSubPath must be called with current
	instance's configPath, not LocationConfigPath.
	Locations are sought for using paths relative to the current
	instance's configPath, not to the root path.
	All of the above is part of fix for bug #568441

svn path=/trunk/mcs/; revision=149262
2010-01-09 00:29:25 +00:00
Zoltan Varga 9f00a476d2 Fix the previous change.
svn path=/trunk/mono/; revision=149259
2010-01-08 22:42:34 +00:00
Zoltan Varga 0cecef6261 2010-01-08 Zoltan Varga <[email protected]>
* aot-runtime.c (load_image): Add a SET_ERROR argument to set the loader
	error if loading an assembly fails.
	(mono_aot_plt_resolve): Return NULL instead of asserting if loading fails.

	* mini-trampolines.c (mono_aot_plt_trampoline): Throw a pending loader error
	if exists.

svn path=/trunk/mono/; revision=149258
2010-01-08 22:39:36 +00:00
Rodrigo Kumpera ea264f2679 2010-01-08 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Test for variant use of GetInterfaceMap.

svn path=/trunk/mcs/; revision=149256
2010-01-08 21:14:21 +00:00
Rodrigo Kumpera bcef7e0d30 2010-01-08 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetInterfaceMapData): This function is generics variance aware.

svn path=/trunk/mono/; revision=149252
2010-01-08 20:47:15 +00:00
Jonathan Pryor 9ad90052b6 * library.make: Update $(MDOC_UP) to remove the net_1_ detection.
mdoc 2.4 moved to Cecil and stopped building monodocer1, rendering 
	  the check meaningless, and current trunk doesn't build the 1.0
	  profile anyway, making the check more meaningless.

svn path=/trunk/mcs/; revision=149251
2010-01-08 20:16:26 +00:00
Zoltan Varga 3b813d9727 2010-01-08 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_exception_debug_info): Set jinfo->from_llvm for LLVM
	compiled methods.

svn path=/trunk/mono/; revision=149249
2010-01-08 19:04:43 +00:00
Rodrigo Kumpera 7c7a31c7f3 2010-01-08 Rodrigo Kumpera <[email protected]>
* valid_iface_with_variant_constraint.cs: Constraints can be variant.

svn path=/trunk/mono/; revision=149248
2010-01-08 19:04:24 +00:00
Rodrigo Kumpera ec6e8595e1 2010-01-08 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_is_assignable_from_slow): Support variant
	generic delegates.

	* class.c (mono_class_implement_interface_slow): Support types with
	variant generic arguments.

svn path=/trunk/mono/; revision=149247
2010-01-08 19:04:16 +00:00
Rodrigo Kumpera bb6830bf77 2010-01-08 Rodrigo Kumpera <[email protected]>
* verify.c: Remove some code duplication.

svn path=/trunk/mono/; revision=149246
2010-01-08 19:04:07 +00:00
Zoltan Varga 7cc6b33315 2010-01-08 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp: Remove the unused ctx variable.

svn path=/trunk/mono/; revision=149245
2010-01-08 17:41:40 +00:00
Miguel de Icaza b32581e42a Fix dis and monograph builds when using LLVM
svn path=/trunk/mono/; revision=149244
2010-01-08 17:40:16 +00:00
Jb Evain 3d6f8ed27d add test for 568989
svn path=/trunk/mcs/; revision=149241
2010-01-08 14:00:05 +00:00
Jb Evain 40056d451c 2010-01-08 Jb Evain <[email protected]>
* Expression.cs (Call): properly deal with zero length array
	of type arguments for non generic methods. Fixes #568989.

svn path=/trunk/mcs/; revision=149240
2010-01-08 13:59:20 +00:00
Atsushi Eno 5c3aa1b73a 2010-01-08 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : fix GetCallbackContract() to
	  correctly retrieve ServiceContractAttribute from the service type,
	  not the callback type. This ended up to get the bug #567672 sample
	  working (but it will break at some stage as it involves some
	  non-implemented classes).

	* EndpointDispatcher.cs, InputOrReplyRequestProcessor.cs :
	  Pass service type to correctly retrieve ServiceContractAttribute
	  from the service type, not callback type.

	* ServiceProxyGenerator.cs, ServiceRuntimeChannel.cs :
	  Pass service type to correctly retrieve ServiceContractAttribute
	  from the service type, not callback type.

	* CallbackBehaviorAttributeTest.cs : added callback example from
	  bug #567672.


svn path=/trunk/mcs/; revision=149226
2010-01-08 10:40:46 +00:00
Atsushi Eno 687c542d5b 2010-01-08 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : to open duplex callback channel, it must
	  ensure to open the channel itself (not only its inner channel).


svn path=/trunk/mcs/; revision=149222
2010-01-08 09:17:47 +00:00
Atsushi Eno f30add0fba 2010-01-08 Atsushi Enomoto <[email protected]>
* TypeMap.cs : forward port r145077 (see change line for 2009-10-29).


svn path=/trunk/mcs/; revision=149212
2010-01-08 04:28:58 +00:00
Atsushi Eno 1855a4ca72 2010-01-08 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : differentiate
	  [DataContract(Namespace=null)] and [DataContract(Namespace="")].
	  Fixed bug #568763.

	* XmlObjectSrializerTest.cs : added test for bug #568763.


svn path=/trunk/mcs/; revision=149210
2010-01-08 03:06:49 +00:00
Zoltan Varga 5e8f8c0223 2010-01-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add some comments about why aot+clauses
	is not supported yet.

	* unwind.c (DW_EH_PE_absptr): Add more DW_EH_PE_ constants.

svn path=/trunk/mono/; revision=149205
2010-01-08 00:04:07 +00:00
Rodrigo Kumpera 95e688ce8b 2010-01-07 Rodrigo Kumpera <[email protected]>
* object.c: Update docs.

svn path=/trunk/mono/; revision=149199
2010-01-07 21:58:55 +00:00
Rodrigo Kumpera 923e7bb520 2010-01-07 Rodrigo Kumpera <[email protected]>
* method-to-ir.c: All types with variant arguments must fallback to the
	slow path. This makes cast of variant delegates work.

	* mini-trampolines.c (mono_get_vcall_slot_addr): Add new variance_used out
	argument that is set to TRUE is the returned vtable slot is for a variant
	interface. Changed a g_print + g_assert_not_reached to a g_error.

	* mini-trampilines.c (common_call_trampoline): Handle variant interfaces in
	a similar fashion of generic virtual methods.

2010-01-07  Rodrigo Kumpera  <[email protected]>

	* object.c (add_imt_builder_entry): Improve DEBUG_IMT spew.

	* object.c (build_imt_slots): Interfaces with variant generic arguments use the
	fallback trampoline as well.

	* class.c (mono_class_interface_offset_with_variance): Add new non_exact_match
	out argument that is set to TRUE if the match was direct.

	* class.c (mono_class_is_assignable_from): Delegates require variance testing as well.

	* class-internal.h: Update prototype of mono_class_interface_offset_with_variance.

svn path=/trunk/mono/; revision=149198
2010-01-07 21:58:46 +00:00
Rodrigo Kumpera 39b9d44968 2010-01-07 Rodrigo Kumpera <[email protected]>
* helpers.c (mono_disassemble_code): Fix a g_hash_table warning
	when cfg is null.

	* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Convert a given
	method using a variance aware function.

	* mini-x86.c: Add support for dumping IMT thunks if DEBUG_IMT is defined.

svn path=/trunk/mono/; revision=149197
2010-01-07 21:58:37 +00:00
Rodrigo Kumpera acf568e063 2010-01-07 Rodrigo Kumpera <[email protected]>
* class.c: Add mono_class_interface_offset_with_variance function that does same
	as mono_class_interface_offset but takes variance into account.

	* class-internal.h: Export mono_class_interface_offset_with_variance.

	* object.c: Fix and improve DEBUG_IMT. Added an assert for IMT thunk building.

svn path=/trunk/mono/; revision=149196
2010-01-07 21:58:28 +00:00
Rodrigo Kumpera 6e496e29e6 2010-01-07 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mono_method_to_ir): Casts to variant interfaces
	do an icall for now.

svn path=/trunk/mono/; revision=149195
2010-01-07 21:58:20 +00:00
Rodrigo Kumpera bd12460ab5 2010-01-07 Rodrigo Kumpera <[email protected]>
* object.c:
	* icall.c:
	* class.c: Add some FIXME for due to variant generic arguments.

	object.c (mono_object_isinst_mbyref): Interfaces with variant generic arguments
	can't use the simple bitfield check, so call mono_class_is_assignable_from if
	the bitfield check fails.

svn path=/trunk/mono/; revision=149194
2010-01-07 21:58:11 +00:00
Rodrigo Kumpera b90957a9d8 2010-01-07 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_is_assignable_from): Rework the generics variance code
	to be easier to read and fix bugs in the case a non generic type implements a variant
	interface.

	* class.c (mono_class_has_variant_generic_params): Make non static.

	* class-internals.h: Export mono_class_has_variant_generic_params as part of
	the private API.

svn path=/trunk/mono/; revision=149193
2010-01-07 21:57:56 +00:00
Gonzalo Paniagua Javier b7eee72e27 2010-01-07 Gonzalo Paniagua Javier <[email protected]>
* assembly.c: fix MONO_PATH debug output.


svn path=/trunk/mono/; revision=149190
2010-01-07 20:32:12 +00:00
Sebastien Pouliot aa52821226 2010-01-07 Sebastien Pouliot <[email protected]>
* Consts.cs.in: Update FX version for SL3 latest released version


svn path=/trunk/mcs/; revision=149187
2010-01-07 20:21:17 +00:00
Marek Safar d6513f517a 2010-01-07 Marek Safar <[email protected]>
* method.cs: Move all method based declarations into a new file.


svn path=/trunk/mcs/; revision=149181
2010-01-07 17:45:05 +00:00
Marek Safar 2d969498b1 2010-01-07 Marek Safar <[email protected]>
* *.cs: Extract field specification.


svn path=/trunk/mcs/; revision=149179
2010-01-07 16:43:19 +00:00
Jb Evain 10333b4fe8 in System:
2010-01-07  Jb Evain  <[email protected]>

	* MonoType.cs (.MemberType): return the proper member type
	for generic parameters.

in Test/System/
2010-01-07  Jb Evain  <[email protected]>

	* TypeTest.cs: add test for the MemberType of
	a generic parameter.

svn path=/trunk/mcs/; revision=149175
2010-01-07 16:19:04 +00:00
Sebastien Pouliot a2e11561a7 In System:
2010-01-07  Sebastien Pouliot  <[email protected]>

	* Convert.cs: Fix line endings in ToBase64String (bug #568778)
	and also the default line length. Code changed to not require
	a BinaryReader over a MemoryStream to reduce memory requirements.

In Test/System:
2010-01-07  Sebastien Pouliot  <[email protected]>

	* ConvertTest.cs: Add test case for #568778 and the default
	line length.

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

	* ToBase64Transform.cs: Static-ify some methods to make it easier 
	to use from System.Convert


svn path=/trunk/mcs/; revision=149171
2010-01-07 15:22:08 +00:00
Rodrigo Kumpera 37ed0bff60 2010-01-06 Rodrigo Kumpera <[email protected]>
* scripts/Makefile.am: Add peverify script.

	* scripts/peverify.in: Added.

svn path=/trunk/mono/; revision=149167
2010-01-07 12:13:41 +00:00
Atsushi Eno 809eae11c2 2010-01-07 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
	  does not happen when communicating with .NET client but happens with
	  mono). Seealso FIXME comment.
	* TcpDuplexSessionChannel.cs : do not try to close session when it
	  failed to read sized message. The connection is already dead.

	  Fixed bug #567949.


svn path=/trunk/mcs/; revision=149166
2010-01-07 10:31:54 +00:00
Atsushi Eno 89dc160eeb 2010-01-07 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs :
	  Write EndRecord only when the connection is available.
	  Remove hack - do let ChannelDispatcher close the channel.
	* TcpBinaryFrameManager.cs :
	  The socket may be disconnected when trying to read a sized message,
	  so check some socket exceptions.
	  In case the client silently shuts down without EndRecord and
	  reconnects to the server with preamble while expecting a sized
	  message (which is so lame, but that's what .NET often does), refresh
	  preamble and continue.

	  This fixes some cases of bug #567949 but not all.


svn path=/trunk/mcs/; revision=149163
2010-01-07 08:27:47 +00:00
Atsushi Eno 3626d9fdcd 2010-01-07 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : make sure to unlock channel acceptor wait
	  handle when the delegated method resulted in an error.


svn path=/trunk/mcs/; revision=149162
2010-01-07 08:25:51 +00:00
Zoltan Varga 5fe5dd10bf 2010-01-07 Zoltan Varga <[email protected]>
* TermInfoDriver.cs (GetCursorPosition): Avoid waiting 1 sec here.

svn path=/trunk/mcs/; revision=149161
2010-01-07 07:29:43 +00:00
Zoltan Varga 47d851180d 2010-01-07 Zoltan Varga <[email protected]>
* mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix #564695.
	If LLVM decides to set the code model to Large, reset it to Default.

svn path=/trunk/mono/; revision=149159
2010-01-07 07:18:23 +00:00
Miguel de Icaza 8940589116 Fix
svn path=/trunk/mono/; revision=149158
2010-01-07 06:55:36 +00:00
Atsushi Eno e76f02d41f 2010-01-07 Astushi Enomoto <[email protected]>
* System.ServiceModel_test.dll.sources : ended up to remove
	  *all* mannerless serialization tests.


svn path=/trunk/mcs/; revision=149156
2010-01-07 04:50:48 +00:00
Atsushi Eno fc8b22919e 2010-01-07 Atsushi Enomoto <[email protected]>
* ServiceHostBaseTest.cs : another mannerless test here.


svn path=/trunk/mcs/; revision=149155
2010-01-07 04:50:06 +00:00
Zoltan Varga 78a08ec41b 2010-01-07 Zoltan Varga <[email protected]>
* aot-compiler.c (mono_xdebug_flush): Export it so it is present in
	stripped binaries as well.

svn path=/trunk/mono/; revision=149153
2010-01-07 03:02:02 +00:00
Zoltan Varga 9eee2c96aa 2010-01-07 Zoltan Varga <[email protected]>
* mini-trampolines.c (common_call_trampoline): Add an rgctx trampoline if a shared
	method is called from LLVM compiled code, as that code can't pass an rgctx arg.

	* mini-llvm.c (mono_llvm_emit_method): Enable calls to methods needing an rgctx
	reg.

svn path=/trunk/mono/; revision=149152
2010-01-07 01:46:02 +00:00
Jonathan Pryor c044b20d45 * Mono.Options/Options.cs: "Code sharing": Use StringCodea.WrappedLines()
from Cadenza for the line wrapping algorithm.  (Only fitting as
	  WrappedLines() came from Mono.Options in the first place!)
	  Patch thanks to Federico Di Gregorio.
	* Test/Mono.Options/OptionSetTest.cs: Update WriteOptionDescriptions() 
	  for new, better-defined line-wrapping semantics.

svn path=/trunk/mcs/; revision=149144
2010-01-06 21:27:05 +00:00
Gonzalo Paniagua Javier f13a82b57e Disable the soft-debugger for cross-compilers.
svn path=/trunk/mono/; revision=149141
2010-01-06 19:00:19 +00:00
Zoltan Varga 9d95ae26b5 2010-01-06 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Extract the JIT info creation code into a
	separate function.

svn path=/trunk/mono/; revision=149126
2010-01-06 14:40:19 +00:00
Zoltan Varga 210b6ba530 2010-01-06 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Pass the info in MonoExceptionClause
	as the type info to llvm.eh.selector.
	(exception_cb): Use the type info for filling out some fields of
	MonoJitExceptionInfo like the flags and the exception class. This is needed
	because the LLVM produced exception handling clauses might not match the original
	IL clauses, i.e. there might be more than one LLVM clause for one IL clause.

	* unwind.c (mono_unwind_decode_fde): Extract the LSDA decoding code into a
	separate function. Add an extra argument which returns the type infos
	corresponding to the exception clauses.

	* mini.c (mini_method_compile): Enable LLVM compilation of methods having
	exception handling clauses.

svn path=/trunk/mono/; revision=149125
2010-01-06 14:30:35 +00:00
Rodrigo B. de Oliveira ffdc189c56 support for compiling Mono.Cecil without any references to System.dll
svn path=/trunk/mcs/; revision=149124
2010-01-06 14:03:54 +00:00
Jb Evain 274156c70d 2010-12-06 Jb Evain <[email protected]>
* Descriptors/mscorlib.xml: optimize descriptor.

svn path=/trunk/mcs/; revision=149121
2010-01-06 13:30:11 +00:00
Marek Habersack 0bf9d45936 2010-01-06 Marek Habersack <[email protected]>
* CacheItemPriorityQueue.cs: make sure lastParent is never null if
	root is not null in Enqueue. Possible fix for bug #567869

svn path=/trunk/mcs/; revision=149118
2010-01-06 10:46:45 +00:00
Marek Habersack 25f343266c 2010-01-06 Marek Habersack <[email protected]>
* BuildManagerDirectoryBuilder.cs: AddVirtualDir properly caches
	processed directories to prevent endless loops. Fixes bug #568366
	Patch from Hubert FONGARNAND <[email protected]>,
	thanks!

svn path=/trunk/mcs/; revision=149116
2010-01-06 09:29:40 +00:00
Atsushi Eno 14213a5d5d 2010-01-06 Atsushi Enomoto <[email protected]>
* culture-info-table.h : regenerated.


svn path=/trunk/mono/; revision=149107
2010-01-06 04:59:41 +00:00
Atsushi Eno f3f3ae7b9a 2010-01-06 Atsushi Enomoto <[email protected]>
* Driver.cs : support FirstDayOfWeek. Fixed bug #567944.
	  Patch by Jose Antonio Sanchez Lazaro.


svn path=/trunk/mono/; revision=149106
2010-01-06 04:58:51 +00:00
Atsushi Eno 6811013bfb 2010-01-06 Atsushi Enomoto <[email protected]>
* SerializationCodeGenerator.cs : enum value identifiers should be
	  escaped with '@'. Fixed bug #566370.

	* XmlSerializerTests.cs : added test for #566370.


svn path=/trunk/mcs/; revision=149104
2010-01-06 04:02:02 +00:00
Atsushi Eno ff3954c708 2010-01-06 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : enable workaround buffering only when
	  the argument stream does *not* support seek. This fixes some
	  net.tcp connection problem.

	* BinaryMessageEncodingBindingElementTest.cs : added test for
	  connection-based tests for both TCP and HTTP (they give difference:
	  see BinaryMessageEncoder.cs change too).


svn path=/trunk/mcs/; revision=149103
2010-01-06 03:39:07 +00:00
Atsushi Eno 2dfa1eea66 2010-01-06 Atsushi Enomoto <[email protected]>
* NetTcpBindingTest.cs : enable some tests and added streamed mode
	  test. Commented on these changes.


svn path=/trunk/mcs/; revision=149102
2010-01-06 03:36:02 +00:00
Atsushi Eno 52bb0b2f60 2010-01-06 Atsushi Enomoto <[email protected]>
* ChannelFactory_1Test.cs : ignore another couple of blocking tests.


svn path=/trunk/mcs/; revision=149101
2010-01-06 03:31:29 +00:00
Atsushi Eno 3687e4c6cb 2010-01-06 Astushi Enomoto <[email protected]>
* System.ServiceModel_test.dll.sources : ended up to remove
	  mannerless tests that block other tests.


svn path=/trunk/mcs/; revision=149100
2010-01-06 03:30:08 +00:00
Atsushi Eno b0f8f9e630 2010-01-06 Atsushi Enomoto <[email protected]>
* ServiceDebugBehaviorTest.cs : make sure to close hosts.


svn path=/trunk/mcs/; revision=149099
2010-01-06 03:21:18 +00:00
Atsushi Eno 100a22b6e2 2010-01-06 Atsushi Enomoto <[email protected]>
* ChannelDispatcherTest.cs : format message correctly.


svn path=/trunk/mcs/; revision=149098
2010-01-06 03:20:02 +00:00
Atsushi Eno 1a3b704a7f 2010-01-06 Atsushi Enomoto <[email protected]>
* TestFixtureBase.cs : try to fix this mannerless set of tests that
	  leaves comm objects open.


svn path=/trunk/mcs/; revision=149097
2010-01-06 03:17:29 +00:00
Atsushi Eno 276c2b66e1 2010-01-06 Atsushi Enomoto <[email protected]>
* Makefile : added System.ServiceModel.Routing (4.0).


svn path=/trunk/mcs/; revision=149096
2010-01-06 00:46:05 +00:00
Marek Habersack f8db965300 2010-01-05 Marek Habersack <[email protected]>
* PageCompiler.cs: improved CreatePropertyAssign, it doesn't
	always use CodePrimitiveExpression now.

svn path=/trunk/mcs/; revision=149089
2010-01-05 23:13:06 +00:00
Rodrigo Kumpera 085bc08c97 2010-01-05 Rodrigo Kumpera <[email protected]>
* ParameterInfo.cs (DefaultProperty): Fix small typo.

svn path=/trunk/mcs/; revision=149087
2010-01-05 22:12:42 +00:00
Rodrigo Kumpera a43bd91ef8 2010-01-05 Rodrigo Kumpera <[email protected]>
* ParameterInfo.cs (DefaultProperty): Add support for DateTime defaults.

	* ParameterInfo.cs: Implements RawDefaultProperty.

2010-01-05 Rodrigo Kumpera  <[email protected]>

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

2010-01-05 Rodrigo Kumpera  <[email protected]>

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

svn path=/trunk/mcs/; revision=149083
2010-01-05 16:44:55 +00:00
Marek Habersack 4bbf4a541c 2010-01-05 Marek Habersack <[email protected]>
* BuildManager.cs: in GenerateAssembly, if compilation fails for
	the requested path and exception thrown is of type
	CompilationException, do not wrap it in HttpException, just
	rethrow.

	* AppResourcesCompiler.cs: the culture files dictionary is
	case-insensitive now. Otherwise culture files with culture name
	cased differently will cause overlapped i/o on response files
	while building satellite assemblies and, in effect, compilation
	will fail.

svn path=/trunk/mcs/; revision=149077
2010-01-05 12:13:22 +00:00
Carlos Alberto Cortez cd8a845ea8 2010-01-04 Carlos Alberto Cortez <[email protected]>
* RadioButton.cs: When drawing, if Appearance is Button use the old
	normal routine in the theme engine, instead of using the one in 2.0,
	since this last one doesn't support proper rendering of the control as
	a button.
	Fixes #567904.


svn path=/trunk/mcs/; revision=149073
2010-01-05 11:38:11 +00:00
Zoltan Varga 3a79bff98e 2010-01-04 Zoltan Varga <[email protected]>
* mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
	mono_method_get_vtable_slot () instead of accessing imt_method->slot directly,
	to fix an AOT case.

svn path=/trunk/mono/; revision=149056
2010-01-04 22:11:27 +00:00
Rodrigo Kumpera 086141c0bd 2010-01-04 Rodrigo Kumpera <[email protected]>
* verify.c (mono_verifier_verify_class): Properly check for broken parent. Ignore
	types that are meant to not have a parent.

2010-01-04  Rodrigo Kumpera  <[email protected]>

	* mini.c (mono_compile_is_broken): Skip methods from serialization's
	internal assembly.

svn path=/trunk/mono/; revision=149053
2010-01-04 21:39:59 +00:00
Zoltan Varga ebae7953f1 2010-01-04 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Make a copy of the signature
	from the image mempool, so it is not leaked.

svn path=/trunk/mono/; revision=149052
2010-01-04 21:08:01 +00:00
Zoltan Varga f0d6b70bf8 2010-01-04 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Fix a few memory leaks introduced by the
	llvm code.

svn path=/trunk/mono/; revision=149051
2010-01-04 21:07:55 +00:00
Zoltan Varga 744d7a2598 2010-01-04 Zoltan Varga <[email protected]>
* metadata-internals.h (_MonoImage): Remove unused generic_class_cache field.

svn path=/trunk/mono/; revision=149047
2010-01-04 19:53:58 +00:00
Rodrigo Kumpera 8adc0ee9dd 2009-01-04 Rodrigo Kumpera <[email protected]>
* mini.c (mini_method_compile): Verify the method before calling
	mono_compile_create_vars as this might crash since it uses method
	information.

	Fixes #560196.

svn path=/trunk/mono/; revision=149045
2010-01-04 19:50:56 +00:00
Rodrigo Kumpera fb69ae1d69 2010-01-04 Rodrigo Kumpera <[email protected]>
* pedump.c: Run code verifier even if image verification fails
	due to a failed type we. This allows more errors to be shown.

svn path=/trunk/mono/; revision=149044
2010-01-04 19:50:47 +00:00
Sebastien Pouliot 34823edd08 2010-01-04 Sebastien Pouliot <[email protected]>
* verify.c (verify_valuetype_layout_with_target): Fix case
	that can lead to infinite recursion. Fix bug #567861


svn path=/trunk/mono/; revision=149042
2010-01-04 18:45:47 +00:00
Rodrigo Kumpera 0168fa8a80 2010-01-04 Rodrigo Kumpera <[email protected]>
* class.c (count_virtual_methods): Remove the assert and now
	fail properly.

	* class.c (setup_interface_offsets): This can fail now.

	* class.c (mono_class_setup_vtable_general): Check for parent vtable
	errors. Check setup_interface_offsets errors.

	* class.c (setup_interface_offsets): Simplify the return error logic
	and remove class_init_ok.

	Fixes #560327.

svn path=/trunk/mono/; revision=149031
2010-01-04 17:01:29 +00:00
Rodrigo Kumpera 8e5f310001 2010-01-04 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_init): Do class verification at the beginning. Add
	some asserts to avoid tripping into invalid memory.

	* object.c (compute_class_bitmap): Replace a g_assert_not_reached with a
	g_error and a decent message.

	* verify.c (mono_verifier_verify_class): Verify for invalid super type.

	Fixes #567548.

svn path=/trunk/mono/; revision=149028
2010-01-04 15:58:34 +00:00
Zoltan Varga e9086dbd1e 2010-01-04 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Avoid calling mono_class_vtable () in
	one case if AOTing, since the class might not be a concrete class.

svn path=/trunk/mono/; revision=149027
2010-01-04 15:55:30 +00:00
Jonathan Pryor 1ad7492a7e * Makefile: Ensure that Test/* files are distributed (so that
'make check' works on tarball builds).  Partial fix for #564987.

svn path=/trunk/mcs/; revision=149023
2010-01-04 13:14:51 +00:00
Jb Evain 56d21fac2c 2010-01-04 Jb Evain <[email protected]>
* TimeZoneInfo.AdjustmentRule.cs, TimeZoneInfo.TransitionTime.cs:
	Do not include in both mscorlib and System.Core for a NET_2_1 profile.

svn path=/trunk/mcs/; revision=149020
2010-01-04 12:53:59 +00:00
Carlos Alberto Cortez 6bd2853b2a 2010-01-03 Carlos Alberto Cortez <[email protected]>
* GroupBoxRenderer.cs: Properly use SystemColors.GrayText to draw to
	text of the group box if it is disabled.
	Fixes #567847.


svn path=/trunk/mcs/; revision=149010
2010-01-04 11:42:54 +00:00
Carlos Alberto Cortez 30332f667b 2010-01-03 Carlos Alberto Cortez <[email protected]>
* MemoryStreamTest.cs: Activate ZeroingOnExpandTest as we have fixed
	this issue.


svn path=/trunk/mcs/; revision=148996
2010-01-04 03:46:42 +00:00
Carlos Alberto Cortez 992a4b5afc 2010-01-03 Carlos Alberto Cortez <[email protected]>
* MemoryStream.cs: Don't clear the bytes beyond Length when shrinking
	it. Instead just save the related information for it and do it when
	Length grows and touchs that dirty region. Refactor the code where
	needed to avoid duplication as well.
	Fixes #327053.


svn path=/trunk/mcs/; revision=148995
2010-01-04 03:46:31 +00:00
Zoltan Varga 611f32df81 2010-01-03 Zoltan Varga <[email protected]>
* mini-codegen.c abcremoval.c: Remove the duplicate g_slist_append_mempool
	functions which are now defined in mempool-internals.h.

svn path=/trunk/mono/; revision=148994
2010-01-03 21:23:30 +00:00
Zoltan Varga a063f734ab 2010-01-03 Zoltan Varga <[email protected]>
* mempool-internals.h (g_list_prepend_mempool): Define this and related functions
	as inline functions instead of defining them in mempool.c.

svn path=/trunk/mono/; revision=148993
2010-01-03 21:23:24 +00:00
Zoltan Varga 0eb4a01bf3 2010-01-03 Zoltan Varga <[email protected]>
* metadata-internals.h (MonoImageSet): New structure representing a set of
	MonoImages, which own a collection of generic instances.

	* metadata.c: Get rid of the global generic caches, instead assign each generic
	instance to the image set which consists of all the images referenced by the
	instance. This greatly speeds up mono_metadata_clean_for_image (), and allows
	the memory used by generic instances to be allocated from a per image-set mempool
	later.

svn path=/trunk/mono/; revision=148992
2010-01-03 19:04:24 +00:00
Zoltan Varga b806cb526b 2010-01-03 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_get_runtime_invoke): Fix a memory leak.

svn path=/trunk/mono/; revision=148989
2010-01-03 16:48:33 +00:00
Zoltan Varga da138bf867 2010-01-03 Zoltan Varga <[email protected]>
* appdomain.c (zero_static_data): Fix a warning.

svn path=/trunk/mono/; revision=148988
2010-01-03 16:37:39 +00:00
Zoltan Varga 2698dee691 2010-01-03 Zoltan Varga <[email protected]>
* mono-path.c (mono_path_resolve_symlinks): Use g_strfreev () to free the
	result of g_strplit.

svn path=/trunk/mono/; revision=148987
2010-01-03 16:37:33 +00:00
Zoltan Varga f83fd31c62 2010-01-03 Zoltan Varga <[email protected]>
* mini.c (mini_free_jit_domain_info): Free the seq point hash tables.

svn path=/trunk/mono/; revision=148986
2010-01-03 16:37:27 +00:00
Zoltan Varga 5fd6e5a087 2010-01-03 Zoltan Varga <[email protected]>
* ILGeneratorTest.cs: Add a test for #564411.

svn path=/trunk/mcs/; revision=148982
2010-01-03 15:06:56 +00:00
Zoltan Varga c751247ae7 2010-01-03 Zoltan Varga <[email protected]>
* ILGenerator.cs (Emit): Disallow byref types. Fixes #564411.

svn path=/trunk/mcs/; revision=148981
2010-01-03 15:06:49 +00:00
Zoltan Varga f0be6a4838 2010-01-03 Zoltan Varga <[email protected]>
* TransactionAbortedException.cs: Make the default ctor public. Fixes #567872.

svn path=/trunk/mcs/; revision=148978
2010-01-03 14:15:09 +00:00
Zoltan Varga aa7475f63d 2010-01-03 Zoltan Varga <[email protected]>
* ArrayTest.cs: Add a test for #564095.

svn path=/trunk/mcs/; revision=148975
2010-01-03 14:10:23 +00:00
Zoltan Varga 8f0107a2b9 2010-01-03 Zoltan Varga <[email protected]>
* Array.cs: Fix ArrayReadOnlyList.CopyTo. Fixes #564095.

svn path=/trunk/mcs/; revision=148974
2010-01-03 14:10:16 +00:00
Zoltan Varga ae3e02e621 2010-01-03 Zoltan Varga <[email protected]>
* DateTime.cs (TryParseExact): Handle exceptions. Fixes #567857.

svn path=/trunk/mcs/; revision=148971
2010-01-03 13:52:37 +00:00
Zoltan Varga f30424dfa9 2010-01-03 Zoltan Varga <[email protected]>
* locales.c (construct_culture_from_specific_name): Applied patch from
	José Antonio Sánchez Lázaro <[email protected]>. Fix a crash if a culture was
	not found. Fixes #567900.

svn path=/trunk/mono/; revision=148968
2010-01-03 13:29:20 +00:00
Zoltan Varga 3883698421 2010-01-03 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Handle OP_ABS.

svn path=/trunk/mono/; revision=148967
2010-01-03 02:26:36 +00:00
Miguel de Icaza 70a11e11f4 Format
svn path=/trunk/mcs/; revision=148965
2010-01-02 04:57:54 +00:00
Sebastien Pouliot e636313bcc 2009-12-31 Sebastien Pouliot <[email protected]>
* loader.c (mono_method_get_signature_full): Remove two asserts.
	Return NULL instead so that the verifier can handle both cases 
	gracefully.


svn path=/trunk/mono/; revision=148951
2009-12-31 15:17:29 +00:00
Rodrigo Kumpera 620ac079e3 2009-12-30 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_methods): Use checked version of mono_class_inflate_generic_method_full
	so we can properly fail types instead of crashing.

	Fixes #567676.

svn path=/trunk/mono/; revision=148948
2009-12-30 20:27:58 +00:00
Rodrigo Kumpera 435770a9cc 2009-12-30 Rodrigo Kumpera <[email protected]>
* reflection.c (reflection_methodbuilder_to_mono_method): Assert in case of a broken
	generic method.

svn path=/trunk/mono/; revision=148947
2009-12-30 20:27:47 +00:00
Jonathan Pryor 2ff3ebaad1 * Lucene.Net/Lucene.Net/QueryParser/QueryParser.cs: Fix crash when
searching for "()".  Fixes #423853.  
	  Thanks to Benoît Tuduri <[email protected]>.

svn path=/trunk/mcs/; revision=148944
2009-12-30 20:01:42 +00:00
Rodrigo Kumpera c02a89bb93 2009-12-30 Rodrigo Kumpera <[email protected]>
* marshal.c (mono_mb_emit_restore_result): Properly handle generic enums.

2009-12-30  Rodrigo Kumpera  <[email protected]>

	* mini.c:
	* method-to.ir.c:
	* mini-*.c: Properly handle generic enums.

	Fixes #566294

svn path=/trunk/mono/; revision=148941
2009-12-30 13:43:20 +00:00
Zoltan Varga a7a05b7384 2009-12-28 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Handle the failure of mono_class_vtable ()
	in a few more places.

svn path=/trunk/mono/; revision=148915
2009-12-28 01:57:55 +00:00
Zoltan Varga 174a864079 2009-12-27 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Don't use dyn runtime invoke for methods with
	nullable parameters. Fixes #567351.

svn path=/trunk/mono/; revision=148913
2009-12-27 16:16:29 +00:00
Rodrigo Kumpera 628b09406c 2009-12-26 Rodrigo Kumpera <[email protected]>
* invalid_try_catch_with_zero_max_stack.il: Regression test for bug #562320.

svn path=/trunk/mono/; revision=148911
2009-12-27 00:11:28 +00:00
Rodrigo Kumpera 1d75215f25 2009-12-26 Rodrigo Kumpera <[email protected]>
* verify.c (init_stack_with_value_at_exception_boundary): Do stack overflow checking here
	as max stack might be zero.

	Fixes #562320.

svn path=/trunk/mono/; revision=148910
2009-12-27 00:11:20 +00:00
Zoltan Varga 33031a151f 2009-12-26 Zoltan Varga <[email protected]>
* bug-561239.cs: New test for bug #561239.

svn path=/trunk/mono/; revision=148909
2009-12-26 22:54:41 +00:00
Zoltan Varga 2893560edd 2009-12-26 Zoltan Varga <[email protected]>
* monitor.c (ves_icall_System_Threading_Monitor_Monitor_wait): Don't close the
	wait handle if the wait is interrupted, since it is still in mon->wait_list, and
	we can't remove it from it since we don't hold the lock.
	(mon_new): Free the orphaned events here when a mon structure is added to the
	freelist. Fixes #561239. Thanks to Mike Rieker <[email protected]> for tracking
	this down.

svn path=/trunk/mono/; revision=148908
2009-12-26 22:50:47 +00:00
Rodrigo Kumpera 4fbb1621b2 2009-12-26 Rodrigo Kumpera <[email protected]>
Rework all uses of mono_class_setup_methods to accept that it can fail now.

	* class.c (mono_class_setup_methods): This function now can fail the class. Do so for generic
	instances if the GTD did.

	* class.c (mono_class_setup_properties): Ditto.

	* class.c (mono_class_setup_events): Ditto.

	* class.c (mono_class_setup_vtable): Fail early if the type is already broken.

	* class.c (mono_class_setup_vtable_general): Add a few more missing broken type checks.	Sanitize
	error setting.

	* class.c (mono_class_init): Fail if GTD did.

	* cominterop.c:
	* generic-sharing.c:
	* icall.c:
	* loader.c:
	* object.c:
	* verify.c: Properly handle failure of mono_class_setup_methods.

2009-12-26  Rodrigo Kumpera  <[email protected]>

	* mini-trampolines.c (common_call_trampoline): Add assert for NULL resolved generic method.

svn path=/trunk/mono/; revision=148905
2009-12-26 21:15:48 +00:00
Rodrigo Kumpera 25b33c470d 2009-12-26 Rodrigo Kumpera <[email protected]>
* class-internals.c: Add mono_class_inflate_generic_method_full_checked and make
	mono_class_inflate_generic_method_full internal.

	* class.c (inflate_generic_context): Now takes a MonoError argument.

	* class.c (mono_class_inflate_generic_method_full): Now calls the _checked and abort on
	errors.

svn path=/trunk/mono/; revision=148904
2009-12-26 21:15:36 +00:00
Atsushi Eno 577d5f7da8 2009-12-26 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : close such channels that failed to receive
	  request or input.


svn path=/trunk/mcs/; revision=148902
2009-12-26 08:55:21 +00:00
Atsushi Eno 74380340ea 2009-12-26 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : If preamble byte is not available from
	  the client stream, detect it to close the reply or input channel.
	* TcpRequestChannel.cs : send preamble at each request time.
	  It differentiates communication behavior on such cases that involve
	  single open and multiple requests.
	* TcpReplyChannel.cs : close the channel only when the channel is
	  oeprated to close i.e. do not close the socket every time.
	  Process preambles on each request (the same as request channel).


svn path=/trunk/mcs/; revision=148901
2009-12-26 08:46:37 +00:00
Atsushi Eno 713fc59cf3 2009-12-26 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : unsized envelope record may have more
	  than one data block, so consume them accordingly. This should fix
	  large buffer consumption.


svn path=/trunk/mcs/; revision=148900
2009-12-26 05:41:03 +00:00
Zoltan Varga 787d6e9b3f 2009-12-26 Zoltan Varga <[email protected]>
* generic-sharing.c (instantiate_other_info): Avoid creating jump trampolines since
	they cannot be patched. Partly fixes #564408.

svn path=/trunk/mono/; revision=148899
2009-12-26 04:28:17 +00:00
Atsushi Eno 3d60c24a10 2009-12-26 Atsushi Enomoto <[email protected]>
* DispatchRuntime.cs : shortened code and scattered monotodos.


svn path=/trunk/mcs/; revision=148898
2009-12-26 03:07:26 +00:00
Zoltan Varga be07f300a8 2009-12-26 Zoltan Varga <[email protected]>
* mini-trampolines.c: Use mono_arch_get_this_arg_from_call () to avoid the slow
	mono_get_generic_context_from_code () call.

	* mini-<ARCH>.c: Get rid of mono_arch_find_this_arg (), it is no longer used.

svn path=/trunk/mono/; revision=148897
2009-12-26 00:20:40 +00:00
Zoltan Varga 1f104993f2 2009-12-25 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_klass_ref): Don't call mono_class_init (), its not
	needed.

svn path=/trunk/mono/; revision=148896
2009-12-25 21:21:48 +00:00
Zoltan Varga 931050c2da 2009-12-25 Zoltan Varga <[email protected]>
* aot-runtime.c (find_extra_method): Call mono_aot_wrapper_name only once,
	instead of once for each module.

svn path=/trunk/mono/; revision=148895
2009-12-25 20:44:21 +00:00
Sebastien Pouliot 4a1a02cb04 In Test/System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* CookieContainerTest.cs: Split many tests into smaller test 
	cases. Add test cases for DefaultPerDomainCookieLimit and
	DefaultCookieLimit. Remove all [Category ("NotWorking")] since
	everything works now.

In System.Net:
2009-12-24  Sebastien Pouliot  <[email protected]>

	* Cookie.cs: Re-work ToString to be useable in more cases. Fix
	some issues found by Gendarme.
	* CookieContainer.cs: Fix all NonWorking (and new) unit tests.
	Implement removing oldest cookies when limits are reached.
	* CookieCollection.cs: Move to generics internally. Fix sort to 
	be closer to MS implementation (but still not 100% identical).
	Fix some issues found by Gendarme.


svn path=/trunk/mcs/; revision=148891
2009-12-24 15:24:13 +00:00
Sebastien Pouliot 2d6dbcd8a3 2009-12-24 Sebastien Pouliot <[email protected]>
* method-to-ir.c (mono_method_to_ir): Avoid SIGSEGV when
	mono_method_get_signature returns NULL. Fix #567084


svn path=/trunk/mono/; revision=148889
2009-12-24 13:47:54 +00:00
Mark Probst 711c3aed81 2009-12-24 Mark Probst <[email protected]>
* metadata-internals.h, reflection.c: Use the
        MonoDynamicImage.handleref hash table only with unmanaged keys,
        and add a managed hash table handleref_managed for managed keys.

svn path=/trunk/mono/; revision=148886
2009-12-24 10:04:07 +00:00
Mark Probst 3cd109171a 2009-12-24 Mark Probst <[email protected]>
* sgen-gc.c: Unset to-space bumper between collections.  It might
        become invalid due to degraded allocations.

svn path=/trunk/mono/; revision=148885
2009-12-24 10:02:31 +00:00
Miguel de Icaza 947fda6c26 Add g_usleep
svn path=/trunk/mono/; revision=148884
2009-12-24 04:20:11 +00:00
Zoltan Varga a3f68b0145 2009-12-23 Zoltan Varga <[email protected]>
* mini-x86.h (MONO_ARCH_LLVM_SUPPORTED): Define this to fix the x86 llvm build.

svn path=/trunk/mono/; revision=148868
2009-12-23 18:57:49 +00:00
Geoff Norton bfd2f646b9 2009-12-23 Geoff Norton <[email protected]>
* DeflateStream.cs: Ensure our callbacks go into the correct
	static methods.

svn path=/trunk/mcs/; revision=148867
2009-12-23 17:05:08 +00:00
Jo Shields 57fd2300d7 Jo Shields <[email protected]>
* docs/specs/Makefile: Use compiled Mono, not system Mono (fixes broken build on systems without Mono already installed)

svn path=/trunk/mcs/; revision=148856
2009-12-23 02:32:47 +00:00
Geoff Norton cc6fa08271 2009-12-22 Geoff Norton <[email protected]>
* configure.in: Fix invalid escaping.  Patch from Spina from
	www.slacky.eu.

svn path=/trunk/mono/; revision=148855
2009-12-22 23:31:36 +00:00
Zoltan Varga 30323b5a17 2009-12-22 Zoltan Varga <[email protected]>
* dtest.cs dtest-app.cs: Add more single stepping tests.

svn path=/trunk/mono/; revision=148854
2009-12-22 22:51:12 +00:00
Zoltan Varga 0e70b110f8 2009-12-22 Zoltan Varga <[email protected]>
* debugger-agent.c (ss_start): Implement step over for the last sequence
	point in methods.

	* mini.c (mono_save_seq_point_info): Don't link sequence points which don't
	have the STEP_LOC flag set.

svn path=/trunk/mono/; revision=148853
2009-12-22 22:51:06 +00:00
Zoltan Varga 0e37f720ae 2009-12-22 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_klass_ref): Avoid a crash if a decode_klass_ref () call
	fails. Fixes #566689.

svn path=/trunk/mono/; revision=148848
2009-12-22 17:50:47 +00:00
Jo Shields 9b5682664d * HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the file headers don't specify it
svn path=/trunk/mono/; revision=148844
2009-12-22 17:05:28 +00:00
Jo Shields f197ca8c63 Switch from using HtmlAgilityPack 1.0 binary snapshot to HtmlAgilityPack 1.4~beta2 source
svn path=/trunk/mono/; revision=148843
2009-12-22 16:52:26 +00:00
Marek Habersack 3d083fe3fe 2009-12-22 Marek Habersack <[email protected]>
* HtmlForm.cs: RenderChildren is slightly more efficient now.

2009-12-22  Marek Habersack  <[email protected]>

	* Page.cs: form javascript declaration block is rendered only if
	necessary. Fixes bug #566541

	* ClientScriptManager.cs: added internal property ScriptsPresent
	used to determine if it is necessary to render form javascript
	declaration block.
	Hidden fields block is output without indenting the controls and
	without rendering trailing empty line.
	Made Write{Begin,End}ScriptBlock slightly faster.

svn path=/trunk/mcs/; revision=148840
2009-12-22 12:24:19 +00:00
Ankit Jain 6c12052e7e Fix bug #565849.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	Fix bug #565849.
	* DirectoryScanner.cs (Excludes): Change from string to ITaskItem[] .
	* BuildItem.cs: Track api changes.

In class/Microsoft.Build.Engine/Test/various:

	* Items.cs (TestItemsWithWildcards): Add Exclude also, update
	test accordingly.

In class/Microsoft.Build.Tasks:

	* Microsoft.Build.Tasks.dll.sources: Add DirectoryScanner.cs
	from Build.Engine, required by CreateItem.

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

	Fix bug #565849.
	* CreateItem.cs: Use DirectoryScanner to handle wildcards.
	(IsExcluded): Remove.

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

	* CreateItemTest.cs (TestItemsWithWildcards): New.

svn path=/trunk/mcs/; revision=148839
2009-12-22 11:47:38 +00:00
Atsushi Eno ef654ad856 2009-12-22 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : slightly more descriptive errmsg.


svn path=/trunk/mcs/; revision=148832
2009-12-22 08:30:00 +00:00
Ankit Jain 006beaf987 Fix bug #566087.
* xbuild/Microsoft.CSharp.targets: Use $(NoWarn) .

svn path=/trunk/mcs/; revision=148830
2009-12-22 02:50:44 +00:00
Rodrigo Kumpera 4e0abb7dc0 2009-12-21 Rodrigo Kumpera <[email protected]>
* loader.c (mono_method_get_signature_full): Check if the returned signature is compatible
	with the one from the original method.

	* metadata-verify.c (mono_verifier_is_sig_compatible): New function to verify signature
	compatibility.

	* verify-internals.h: Add new function to the internal API.

svn path=/trunk/mono/; revision=148828
2009-12-22 01:14:25 +00:00
Rodrigo Kumpera 25e611b3e9 2009-12-21 Rodrigo Kumpera <[email protected]>
* get.c (get_type): Don't crash if the type is not found.

svn path=/trunk/mono/; revision=148827
2009-12-22 01:14:16 +00:00
Sebastien Pouliot ad24f7d093 2009-12-21 Sebastien Pouliot <[email protected]>
* File.cs (ReadAllBytes): We cannot assume that a single call to
	Read will return all the data we require.


svn path=/trunk/mcs/; revision=148822
2009-12-21 22:40:25 +00:00
Zoltan Varga 3b18bdf7c1 2009-12-21 Zoltan Varga <[email protected]>
* mini.c (mono_add_seq_point): New helper function.
	(mono_save_seq_point_info): New function to save sequence point info, extracted
	from mini_method_compile ().

	* mini-<ARCH>.c: Call mono_add_seq_point to remember sequence points.

	* mini.h (MonoSeqPointInfo): New structure containing information about
	the sequence points of a JITted method.
	(MonoBasicBlock): Add 'seq_points' and 'last_seq_point' fields. Remove unused
	'bucket' field.

	* mini.c debugger-agent.c aot-compiler.c aot-runtime.c: Change the way sequence
	point information is stored, use a MonoSeqPointInfo structure instead of a
	GPtrArray. For each seq point, compute a list of successor seq points.

	* debugger-agent.c: Use the successor list to implement step-over more
	efficiently: instead of single stepping until a different line/IL offset is
	reached, place breakpoints into all successor seq points.

	* mini.h: Bump AOT file format version.

svn path=/trunk/mono/; revision=148820
2009-12-21 21:33:17 +00:00
Zoltan Varga 626f6895c9 In :
2009-12-21  Zoltan Varga  <[email protected]>

	* configure.in: Add an LLVM_CFLAGS automake variable.

In mono/mini:

2009-12-21  Zoltan Varga  <[email protected]>

	* Makefile.am (AM_CFLAGS): Include LLVM_CFLAGS.

	* mini-llvm.c: Avoid defining the __STDC_... macros if already defined.

svn path=/trunk/mono/; revision=148816
2009-12-21 18:44:43 +00:00
Gonzalo Paniagua Javier baa3d5ff39 2009-12-21 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionGroup.cs:
	* ServicePoint.cs: implemented CloseConnectionGroup().


svn path=/trunk/mcs/; revision=148813
2009-12-21 17:12:57 +00:00
Zoltan Varga 685caeb95f 2009-12-21 Zoltan Varga <[email protected]>
* exceptions-ppc.c (mono_ppc_set_func_into_sigctx): Fix the cross-compiler
	build.

svn path=/trunk/mono/; revision=148812
2009-12-21 17:11:28 +00:00
Zoltan Varga d66ac77a10 2009-12-18 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
	alloca as g_malloc is not signal safe.

svn path=/trunk/mono/; revision=148811
2009-12-21 17:11:19 +00:00
Marek Habersack 4704dfd8b5 2009-12-21 Marek Habersack <[email protected]>
* Int32.cs: treat terminating null as whitespace

svn path=/trunk/mcs/; revision=148806
2009-12-21 14:27:20 +00:00
Atsushi Eno efe6f6d540 2009-12-21 Atsushi Enomoto <[email protected]>
* MessageFault.cs : support EnvelopeVersion.None as well, as almost
	  the same as SOAP12.

	* MessageFaultTest.cs : add CreateFault test with MessageVersion.None.


svn path=/trunk/mcs/; revision=148797
2009-12-21 06:10:47 +00:00
Zoltan Varga dc9dc97d57 In System:
2009-12-19  Zoltan Varga  <[email protected]>

	* String.cs: Fix the various IndexOf and LastIndexOf methods so they handle
	"" and a non-zero startIndex correctly. Fixes #566106.

In Test/System:

2009-12-19  Zoltan Varga  <[email protected]>

	* StringTest.cs: Add tests for IndexOf ("", startIndex, count).

svn path=/trunk/mcs/; revision=148789
2009-12-19 21:21:27 +00:00
Michael Barker 7f3e56f63c 2009-12-19 Michael Barker <[email protected]>
* Added stripped xml to avoid licensing issues.

svn path=/trunk/mcs/; revision=148787
2009-12-19 20:11:17 +00:00
Rolf Bjarne Kvinge c5303e224a In mono/metadata:
2009-12-18  Dimitar Dobrev  <[email protected]>

	* culture-info-tables.h: regenerated it to include the Georgian culture.

In tools/locale-builder:
2009-12-18  Dimitar Dobrev  <[email protected]>

	* langs/ka.xml: added a file with the settings of the neutral
	Georgian culture
	* locales/ka-GE.xml: added a file with the settings of the
	specific Georgian culture
	* supp/ka-GE.xml: added a file with the date and time formats
	of the Georgian culture
	* lcids.xml: added entries for the neutral and specific
	Georgian culture
	* Makefile.am: included supp/ka-GE.xml in the build and dist the new
	we're not downloading from primates.ximian.com.

	[Fixes bug 564910].

svn path=/trunk/mono/; revision=148776
2009-12-18 22:13:48 +00:00
Jonathan Pryor 0dfd8811fa * src/**/*: Sync with DbLinq r1294. This is DbLinq 0.19. Fixes
DataContext.Transaction.

svn path=/trunk/mcs/; revision=148773
2009-12-18 20:53:32 +00:00
Atsushi Eno bd81f93cf9 2009-12-18 Atsushi Enomoto <[email protected]>
* MoonlightChannelBaseExtension.cs : do not remove base EventArgs.



svn path=/trunk/mcs/; revision=148768
2009-12-18 17:53:29 +00:00
Zoltan Varga ca3dbf2201 2009-12-18 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_patch_callsite): Fix the call to
	VALGRIND_DISCARD_TRANSLATIONS.

svn path=/trunk/mono/; revision=148766
2009-12-18 17:21:59 +00:00
Zoltan Varga ea8a36774a In .:
* configure.in: Remove the check for valgrind/memcheck.h, we include the file
	in our sources now.

In mono/utils:

	* valgrind.h memcheck.h: New files containing the BSD licensed valgrind
	headers so we can use the valgrind user requests even if mono is compiled on
	a system where they are not installed.

In mono/metadata:

	* sgen-gc.c: Include mono/utils/memcheck.h.

In mono/mini:

	* *.c: Include mono/utils/memcheck.h, and remove #ifdef HAVE_VALGRIND_MEMCHECK_H
	checks, they are no longer needed.

svn path=/trunk/mono/; revision=148765
2009-12-18 17:16:37 +00:00
Atsushi Eno 4c1f955fc7 2009-12-18 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs :
	  EventArgs are not nested classes.
	  Result property of EventArgs is not IAsyncResult. It should be
	  pulled from EndXxx() method, not from BeginXxx().


svn path=/trunk/mcs/; revision=148761
2009-12-18 15:42:32 +00:00
Atsushi Eno a3c224d3cb 2009-12-18 Atsushi Enomoto <[email protected]>
* ClientBase.cs : remove extra CWLs.


svn path=/trunk/mcs/; revision=148760
2009-12-18 15:40:33 +00:00
Zoltan Varga 2fc13c686b 2009-12-18 Zoltan Varga <[email protected]>
* reflection.c (mono_reflection_get_type_internal_dynamic): Use assembly->domain
	instead of the current domain, since the two might not match if this is called
	from the debugger.

	* metadata-internals.h (MonoDynamicAssembly): Add a 'domain' field to specify the
	domain which created this assembly.

svn path=/trunk/mono/; revision=148758
2009-12-18 15:35:55 +00:00
Atsushi Eno 5a584ef131 2009-12-18 Atsushi Enomoto <[email protected]>
* how-client-proxy-is-created.txt : brief summary of code generation
	  behavior (it is rather about ServiceContractGenerator, but would
	  rather fit here).


svn path=/trunk/mcs/; revision=148756
2009-12-18 14:10:16 +00:00
Atsushi Eno a191b36266 2009-12-18 Atsushi Enomoto <[email protected]>
* Driver.cs, MoonlightChannelBaseExtension.cs, CommandLineOptions.cs:
	  Added event-based async generator support (/tcv:35).
	  Some refactoring on async method generation.
	  Removed IExtensibleDataObject usage in moonlight proxy.
	  Added notes on MT profile + sync impossibility (so far).


svn path=/trunk/mcs/; revision=148755
2009-12-18 14:08:29 +00:00
Atsushi Eno 9ae92db947 2009-12-18 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs :
	  add support for EventBasedAsynchronousMethods (3.5 SP1 / 2.1).


svn path=/trunk/mcs/; revision=148754
2009-12-18 13:46:42 +00:00
Atsushi Eno f1aa4131b0 2009-12-18 Atsushi Enomoto <[email protected]>
* AllEnums.cs :
	  added ServiceContractGenerationOptions.EventBasedAsynchronousMethods.


svn path=/trunk/mcs/; revision=148753
2009-12-18 13:46:27 +00:00
Atsushi Eno 6cdbcb9e87 2009-12-18 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : added a couple of FIXME comments.


svn path=/trunk/mcs/; revision=148752
2009-12-18 13:44:13 +00:00
Zoltan Varga cd67e31b7d 2009-12-18 Zoltan Varga <[email protected]>
* exceptions-ppc.c (mono_ppc_set_func_into_sigctx): New helper function to set
	a function into a sigctx which can handle function pointers.

	* mini-ppc.c: Implement soft debugger support on ppc64.

svn path=/trunk/mono/; revision=148750
2009-12-18 13:02:01 +00:00
Zoltan Varga 1a2bca055a 2009-12-18 Zoltan Varga <[email protected]>
* debug-helpers.c (dis_one): Avoid a glib assert on empty strings.

svn path=/trunk/mono/; revision=148749
2009-12-18 12:15:28 +00:00
Zoltan Varga a314e3849a 2009-12-18 Zoltan Varga <[email protected]>
* mini-ppc.c: Implement soft debugger support.

svn path=/trunk/mono/; revision=148748
2009-12-18 12:15:21 +00:00
Marek Habersack 4e55bac694 2009-12-18 Marek Habersack <[email protected]>
* ObjectStateFormatter.cs: ObjectFormatter.WriteObject checks
	whether candidate converter can convert from string now. Fixes bug
	#565547

2009-12-18  Marek Habersack  <[email protected]>

	* System.Web_test.dll.sources: added
	mainsoft/NunitWeb/NunitWeb/Tests/Author.cs
	mainsoft/NunitWeb/NunitWeb/Tests/AuthorConverter.cs
	mainsoft/NunitWeb/NunitWeb/Tests/Book.cs
	mainsoft/NunitWeb/NunitWeb/Tests/BookType.cs

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/StateFormatter_CorrectConverter.aspx
	Test/mainsoft/NunitWebResources/StateFormatter_CollectionConverter.aspx
	Test/mainsoft/NunitWebResources/StateFormatter_CollectionConverter.aspx.cs

2009-12-18  Marek Habersack  <[email protected]>

	* ObjectStateFormatterTest.cs: added.

svn path=/trunk/mcs/; revision=148743
2009-12-18 11:07:34 +00:00
Marek Habersack 3f52584691 2009-12-18 Marek Habersack <[email protected]>
* Makefile (EXTRA_DISTFILES): include test resources in
	dist. Fixes bug #564987

svn path=/trunk/mcs/; revision=148741
2009-12-18 09:45:35 +00:00
Rodrigo Kumpera 2786e62505 2009-12-17 Rodrigo Kumpera <[email protected]>
* MonoGenericClassTest.cs: Test for some corner cases of
	GetMethod that must work under compiler context.

svn path=/trunk/mcs/; revision=148736
2009-12-17 22:57:41 +00:00
Rodrigo Kumpera 94fa86a676 2009-12-17 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs (GetMethods): When the GTD is not a typebuilder,
	calling GetMethods on it will return everything we need so no need to
	do the crazy loop.
	The returned methods might contains some that are not from a generic type
	so we need to guard against this as well.

	* MonoGenericClass.cs (GetMethodsInternal): Guard against methods that don't
	belong to a GTD as well.

svn path=/trunk/mcs/; revision=148735
2009-12-17 22:57:23 +00:00
Miguel de Icaza f757a283a1 Preserve history
svn path=/trunk/mcs/; revision=148728
2009-12-17 22:03:53 +00:00
Miguel de Icaza 19a261d6a2 Copy
svn path=/trunk/mcs/; revision=148727
2009-12-17 22:02:40 +00:00
Miguel de Icaza a108a1c8b6 Remove file
svn path=/trunk/mcs/; revision=148726
2009-12-17 22:02:10 +00:00
Zoltan Varga 6a0aca23eb 2009-12-17 Zoltan Varga <[email protected]>
* mini-llvm.c: Handle OP_LADD_OVF_UN. Place all alloca's into the entry bb.

svn path=/trunk/mono/; revision=148712
2009-12-17 16:50:56 +00:00
Sebastien Pouliot 078e125ca6 In System:
2009-12-17  Sebastien Pouliot  <[email protected]>

	* String.cs: Fix #565602 right-padding empty strings.

In Test/System:
2009-12-17  Sebastien Pouliot  <[email protected]>

	* StringTest.cs: Add test case for right padding an empty string


svn path=/trunk/mcs/; revision=148706
2009-12-17 15:30:28 +00:00
Marek Safar 1edc115074 2009-12-17 Marek Safar <[email protected]>
* field.cs: Extracted from class.cs


svn path=/trunk/mcs/; revision=148704
2009-12-17 14:40:11 +00:00
Mark Probst 0165a7a538 2009-12-17 Mark Probst <[email protected]>
* sgen-gc.c: Managed implementation of the specialized generic
        store write barrier.

svn path=/trunk/mono/; revision=148702
2009-12-17 13:55:00 +00:00
Marek Safar 5aafa906d1 Build System.Core early enough in 2.1
svn path=/trunk/mcs/; revision=148699
2009-12-17 12:41:05 +00:00
Marek Habersack 0339e1e093 2009-12-17 Marek Habersack <[email protected]>
* mini.c (mono_get_runtime_build_info): include Mono version in
	the returned value.

	* driver.c (mono_main): VERSION is now included in the string
	returned from mono_get_runtime_build_info()

svn path=/trunk/mono/; revision=148697
2009-12-17 12:35:15 +00:00
Rodrigo Kumpera fa38c6808d 2009-12-17 Rodrigo Kumpera <[email protected]>
* TypeTest.cs: Add tests for #564379.

svn path=/trunk/mcs/; revision=148696
2009-12-17 12:10:47 +00:00
Rodrigo Kumpera f6e642b74f 2009-12-17 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_Type_GetMethodsByName): Don't pin virtual methods if they are newslot.
	A private virtual newslot method is used to implement an interface method without exposing
	it to users. When querying for public instance methods, such method would hide a public one
	on a parent type.

	Fixes #564379.

svn path=/trunk/mono/; revision=148694
2009-12-17 12:06:42 +00:00
Marek Safar 8e77e95348 2009-12-17 Marek Safar <[email protected]>
* Makefile: Compile itself using bootstrap System.Core.


svn path=/trunk/mcs/; revision=148693
2009-12-17 11:09:22 +00:00
Marek Safar 5e39f2122a Build using bootstrap compiler
svn path=/trunk/mcs/; revision=148690
2009-12-17 10:32:39 +00:00
Zoltan Varga b67ad53173 2009-12-17 Zoltan Varga <[email protected]>
* libtest.c pinvoke2.cs: Add a test for calling pinvoke methods using calli.

svn path=/trunk/mono/; revision=148681
2009-12-17 09:31:46 +00:00
Zoltan Varga 3555ee6b16 2009-12-17 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
	signatures. Fixes #565143.

	* jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.

svn path=/trunk/mono/; revision=148680
2009-12-17 09:31:39 +00:00
Zoltan Varga 30cad3b0b8 2009-12-17 Zoltan Varga <[email protected]>
* reflection.c (resolve_object): Fix the encoding of unmanaged calling
	conventions.

svn path=/trunk/mono/; revision=148679
2009-12-17 09:31:32 +00:00
Marek Safar 82c2bfe4b2 2009-12-17 Marek Safar <[email protected]>
* common/basic.make: Use bootstrap compiler only for compilation.


svn path=/trunk/mcs/; revision=148678
2009-12-17 08:46:34 +00:00
Atsushi Eno 1957411c41 2009-12-17 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : for DestinationUnreachable message, this
	  channel returns 400 in .NET.


svn path=/trunk/mcs/; revision=148660
2009-12-17 05:55:50 +00:00
Gonzalo Paniagua Javier 5d10c36260 remove obsolete file
svn path=/trunk/mcs/; revision=148616
2009-12-16 23:16:59 +00:00
Zoltan Varga 4bda337ba5 2009-12-16 Zoltan Varga <[email protected]>
* aot-compiler.c (arch_emit_autoreg): Align code to 4 in the ppc case.

svn path=/trunk/mono/; revision=148606
2009-12-16 22:21:12 +00:00
Miguel de Icaza 508328fa2d 2009-12-16 Miguel de Icaza <[email protected]>
* repl.cs: Avoid crash, fixes 554898

svn path=/trunk/mcs/; revision=148599
2009-12-16 22:17:36 +00:00
Miguel de Icaza c3ce3485df Fix crasher
svn path=/trunk/mcs/; revision=148596
2009-12-16 22:00:27 +00:00
Gonzalo Paniagua Javier 14e317efc2 2009-12-16 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: when finishing uncompressing a buffer, we might need
	more than one call to deflate with Z_FINISH since the uncompressed
	data can take more space than the allocated buffer.

	Fixes the IPY+Chiron test case.


svn path=/trunk/mono/; revision=148592
2009-12-16 21:42:53 +00:00
Rodrigo Kumpera 2f09822488 2009-12-16 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_type_get_object): Guard against NULL generic param owner.

svn path=/trunk/mono/; revision=148590
2009-12-16 21:26:25 +00:00
Rodrigo Kumpera 2ff6be725c 2009-12-16 Rodrigo Kumpera <[email protected]>
* class-internals.h (MonoDynamicGenericClass): Kill property and event related fields
	as they are no longer used.

	 * metadata.c (free_generic_class_dependents): Remove reference to previous fields

	* reflection.c (mono_reflection_generic_class_initialize): Ditto.

svn path=/trunk/mono/; revision=148589
2009-12-16 21:26:15 +00:00
Rodrigo Kumpera 2f1672ee67 2009-12-16 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Add tests for #565127.

svn path=/trunk/mcs/; revision=148577
2009-12-16 19:46:01 +00:00
Rodrigo Kumpera 4c2fff982e 2009-12-16 Rodrigo Kumpera <[email protected]>
* FieldOnTypeBuilderInst.cs: Add more CompilerContext hacks.

svn path=/trunk/mcs/; revision=148576
2009-12-16 19:45:39 +00:00
Rodrigo Kumpera 7c2a93b37c 2009-12-16 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_type_get_object): If the type is VAR or MVAR check
	if the owner class has not been finished before returning reflection_info.

	Fixes #565127.

svn path=/trunk/mono/; revision=148575
2009-12-16 19:41:24 +00:00
Rodrigo Kumpera 0e6e7fa5d6 2009-12-16 Rodrigo Kumpera <[email protected]>
* mini-x86.h: Forgot to add a 0x to MONO_ARCH_MAX_FRAME_SIZE define
	making max stack 10x smaller.

svn path=/trunk/mono/; revision=148570
2009-12-16 16:44:29 +00:00
Zoltan Varga 07d1a855d8 2009-12-16 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add a test for #565117.

svn path=/trunk/mcs/; revision=148563
2009-12-16 12:48:01 +00:00
Zoltan Varga d8a14a0460 2009-12-16 Zoltan Varga <[email protected]>
* reflection.c (mono_custom_attrs_from_param): Avoid a crash if a dynamic
	param doesn't have custom attributes. Fixes #565117.

svn path=/trunk/mono/; revision=148560
2009-12-16 12:42:01 +00:00
Zoltan Varga 2adae7bdb1 2009-12-16 Zoltan Varga <[email protected]>
* mini.c (mono_resolve_patch_target): Comment out an assert which could be hit.

svn path=/trunk/mono/; revision=148559
2009-12-16 12:32:01 +00:00
Zoltan Varga 1651c161ff 2009-12-16 Zoltan Varga <[email protected]>
* class.c (mono_bounded_array_class_get): Make these classes PUBLIC. Fixes
	#565120.

svn path=/trunk/mono/; revision=148558
2009-12-16 12:13:34 +00:00
Atsushi Eno a8dda7b9dd 2009-12-16 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : added workaround for strange stream
	  consumption error raised by HttpTransport + Binary encoder example.
	* BinaryMessageEncodingBindingElement.cs:
	  only SOAP 1.2 is allowed for this encoder.


svn path=/trunk/mcs/; revision=148552
2009-12-16 08:47:32 +00:00
Gonzalo Paniagua Javier 1ebcff6ea4 oops
svn path=/trunk/mono/; revision=148538
2009-12-15 23:28:20 +00:00
Gonzalo Paniagua Javier f90e67ecad remove duplicate check for autoreg
svn path=/trunk/mono/; revision=148537
2009-12-15 23:27:47 +00:00
Jonathan Pobst 68d4fb8418 Build the real System.Core to a temp directory and then move it, or
else it tries to write on top of the one gmcs is using.

svn path=/trunk/mono/; revision=148516
2009-12-15 20:04:35 +00:00
Jonathan Pobst bed9e4b6b4 Forgot to flag this as using the installed mono to build.
svn path=/trunk/mono/; revision=148514
2009-12-15 19:50:22 +00:00
Rodrigo Kumpera 61304a0f50 2009-12-15 Rodrigo Kumpera <[email protected]>
* method-to-ir.c (mini_emit_memcpy): Assert if size is too big.

svn path=/trunk/mono/; revision=148504
2009-12-15 19:04:35 +00:00
Rodrigo Kumpera 300e007811 2009-12-15 Rodrigo Kumpera <[email protected]>
* class.c (mono_class_setup_fields): Fail valuetypes that are bigger than 1Mb.

svn path=/trunk/mono/; revision=148503
2009-12-15 19:04:23 +00:00
Rodrigo Kumpera 4f226c9cd8 2009-12-15 Rodrigo Kumpera <[email protected]>
* mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
	bigger than MONO_ARCH_MAX_FRAME_SIZE.

	* mini-x86.c (mono_arch_emit_prolog): Handle huge frames.

	* mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.

	* mini-amd64.c / mini-amd64.h: Same fixes as of above.

	* mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
	the compilation.

svn path=/trunk/mono/; revision=148502
2009-12-15 19:04:11 +00:00
Rodrigo Kumpera 6c2b1e0274 2009-12-15 Rodrigo Kumpera <[email protected]>
* pedump.c: Add partial-md mode that doesn't perform full metadata verification. It does the
	same amount done by a core-clr enabled runtime.

svn path=/trunk/mono/; revision=148501
2009-12-15 19:03:55 +00:00
Marek Habersack 779b8668ea 2009-12-15 Marek Habersack <[email protected]>
* System.Web.Extensions_test.dll.sources: added
	System.Web.UI.WebControls/ListViewPagedDataSourceTest.cs

2009-12-15  Marek Habersack  <[email protected]>

	* NextPreviousPagerField.cs: HandleEvent doesn't call
	DataPager.SetPageProperties with negative start index. Also, if
	_totalRowCount is <= 0, new start index is not calculated using
	it. Fixes bug #545417

	* ListViewPagedDataSource.cs: when server paging is on, data items
	are counted from index 0 instead of from the value stored in
	StartRowIndex. Fixes bug #545417

	* ListView.cs: CreateChildControls doesn't create empty data item
	if called with fake data.
	When a view reports it can page data, ListViewPagedDataSource
	passed to item creation methods has AllowServerPaging set to
	true. Fixes bug #545417
	When CreateChildControls is called with fake data,
	ListViewPagedDataSource has its TotalRowCount property set to the
	actual total row count, not zero. Fixes bug #545417

svn path=/trunk/mcs/; revision=148498
2009-12-15 18:45:12 +00:00
Jonathan Pobst 1d0d9fd26d Build System.Core in our bootstrap phase.
svn path=/trunk/mono/; revision=148481
2009-12-15 15:41:26 +00:00
Marek Safar b560e4f432 New tests.
svn path=/trunk/mcs/; revision=148480
2009-12-15 14:32:45 +00:00
Marek Safar 8ca1165fd6 Updated after UT fixes
svn path=/trunk/mcs/; revision=148479
2009-12-15 14:30:21 +00:00
Marek Safar d09c2445ad Add more logging
svn path=/trunk/mcs/; revision=148477
2009-12-15 13:04:22 +00:00
Marek Habersack 1f90513304 2009-12-15 Marek Habersack <[email protected]>
* appdomain.c (mono_make_shadow_copy): make sure access mode of
	the target files is reset to writable by owner and readable by
	everyone else to prevent problems when updating shadow copies of
	files whose source is read-only. Fixes bug #556884

svn path=/trunk/mono/; revision=148474
2009-12-15 12:20:51 +00:00
Marek Safar 68ac46ed19 2009-12-15 Marek Safar <[email protected]>
* attribute.cs (GetFixedBuffer): Work on field definition only.


svn path=/trunk/mcs/; revision=148473
2009-12-15 12:11:47 +00:00
Marek Safar 1fda301a35 Fixes build with obsolete runtime
svn path=/trunk/mcs/; revision=148460
2009-12-15 11:18:14 +00:00
Marek Safar 7368ef792d Updated
svn path=/trunk/mcs/; revision=148459
2009-12-15 10:47:53 +00:00
Marek Safar 07d69753d5 2009-12-15 Marek Safar <[email protected]>
* *.cs: Clean up NET_4_0 conditional where possible.


svn path=/trunk/mcs/; revision=148458
2009-12-15 10:43:48 +00:00
Marek Safar e016ed2c9b 2009-12-15 Marek Safar <[email protected]>
* Makefile: Add System.Core to 2.1 bootstrap.


svn path=/trunk/mcs/; revision=148457
2009-12-15 10:42:13 +00:00
Marek Safar 60c060f844 Add net_2_1 bootstrap
svn path=/trunk/mcs/; revision=148456
2009-12-15 10:41:22 +00:00
Marek Safar 4f021c3547 2009-12-15 Marek Safar <[email protected]>
* Array.cs: Optimize sort operations on all primitive types.


svn path=/trunk/mcs/; revision=148450
2009-12-15 09:43:47 +00:00
Marek Safar 6c820002e0 New test.
svn path=/trunk/mcs/; revision=148449
2009-12-15 09:39:25 +00:00
Marek Safar 047424b680 Error message formating.
svn path=/trunk/mcs/; revision=148448
2009-12-15 09:39:13 +00:00
Carlos Alberto Cortez 58be40e45a 2009-12-15 Carlos Alberto Cortez <[email protected]>
* Control.cs: When changing the cursor and updating it, do update the
	cursor immediately even if there's a child control under the current
	cursor position - this is exactly what .net does.
	Fixes #555780.


svn path=/trunk/mcs/; revision=148447
2009-12-15 07:40:28 +00:00
Mark Probst 5b16e28208 2009-12-15 Mark Probst <[email protected]>
* class.c (mono_generic_class_get_class): Allocate the generic
        class via malloc again, so that it can be freed when any one of
        the images of its constituent types is closed.

        * metadata.c: When closing an image, don't free generic insts and
        generic classes right away, but put them into a list for later
        freeing.

        * image.c, metadata-internals.h: Store the free list and in the
        second pass of closing an image, free it.

svn path=/trunk/mono/; revision=148438
2009-12-14 23:52:55 +00:00
Rodrigo Kumpera cd70db557e 2009-12-14 Rodrigo Kumpera <[email protected]>
Type.cs (IsCompilerContext): The default implementation now checks if the
	type's assembly is under compiler context or not.

2009-12-14 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Remove IsByRef hack.

2009-12-14 Rodrigo Kumpera  <[email protected]>

	* TypeBuilder.cs (GetConstructor/GetMethod): Fail with a NRE if method/ctor
	is null.

2009-12-14 Rodrigo Kumpera  <[email protected]>

	* TypeTest.cs: Fix test that checked for old and wrong behavior of mono.

svn path=/trunk/mcs/; revision=148433
2009-12-14 22:56:17 +00:00
Rodrigo Kumpera ab6fb7efb9 2009-12-14 Rodrigo Kumpera <[email protected]>
support.cs (DynamicType): Assembly property returns the assembly builder.
	This is required due to how compiler context works in corlib.

svn path=/trunk/mcs/; revision=148432
2009-12-14 22:56:00 +00:00
Rodrigo Kumpera f2ff79bd3d 2009-12-14 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_generic_class_get_object): Assert if this is ever called.

	* reflection.c (mono_reflection_register_with_runtime): Only register dynamic
	types in type_hash.

	* reflection.c (resolve_object): Call ensure_complete_type on the inflated field.

svn path=/trunk/mono/; revision=148431
2009-12-14 22:54:41 +00:00
Rodrigo Kumpera 6df4ba536d 2009-12-14 Rodrigo Kumpera <[email protected]>
* reflection.c (mono_reflection_type_get_handle): Properly fail in case of a broken
	user type.

	* reflection.c (mono_reflection_register_with_runtime): Throws in case a bad user type
	is used.

svn path=/trunk/mono/; revision=148430
2009-12-14 22:54:32 +00:00
Miguel de Icaza 81c2e8e7b8 i2009-12-14 Miguel de Icaza <[email protected]>
* verify.c (mono_method_verify): The Unused opcodes produce an
	InvalidProgramException on .NET

2009-12-14  Miguel de Icaza  <[email protected]>

	* method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
	raise an invalid program exception.   

	For other opcodes that we might not handle use a g_warning and
	raise the exception.   Beats termination.

	Fixes #561724


svn path=/trunk/mono/; revision=148416
2009-12-14 21:12:14 +00:00
Sebastien Pouliot 1a51617701 2009-12-14 Sebastien Pouliot <sebastien at ximian.com>
* Mono.Cecil/BaseAssemblyResolver.cs: Update to .net fx 4 beta2
	version number and reduce code duplication.


svn path=/trunk/mcs/; revision=148412
2009-12-14 20:46:31 +00:00
Carlos Alberto Cortez 0a3ea31a00 2009-12-14 Carlos Alberto Cortez <[email protected]>
* SectionInformation.cs: ConfigSource should never be null, but empty.
	Also, the Type property should throw an argument exception if the
	new value is null or empty.
	Fixes #458185.


svn path=/trunk/mcs/; revision=148408
2009-12-14 20:10:04 +00:00
Sebastien Pouliot e5009586c1 2009-12-14 Sebastien Pouliot <[email protected]>
* loader.c (mono_method_get_header): Move assert after the verifier
	has been called on the method header.


svn path=/trunk/mono/; revision=148406
2009-12-14 19:52:06 +00:00
Marek Habersack 957ef23330 2009-12-14 Marek Habersack <[email protected]>
* BuildManager.cs: RemoveFailedAssemblies ignores warnings to
	avoid throwing exceptions when the requested virtual path
	compilation produces warnings and no errors. Fixes bug #561723

svn path=/trunk/mcs/; revision=148388
2009-12-14 14:14:53 +00:00
Marek Safar aceab58d19 2009-12-14 Marek Safar <[email protected]>
A fix for bug #564376
	* assign.cs (LocalTemporary): Removed no longer needed special
	by-ref handling.


svn path=/trunk/mcs/; revision=148385
2009-12-14 13:57:03 +00:00
Marek Habersack 938fab361a 2009-12-14 Marek Habersack <[email protected]>
* AssemblyInfo.cs: 4.0 assembly must have a different version than 2.0

svn path=/trunk/mcs/; revision=148384
2009-12-14 13:50:41 +00:00
Marek Habersack 3190bde9ae 2009-12-14 Marek Habersack <[email protected]>
* AspParser.cs: PlainText should calculate the boundaries of
	text using character offset, not line offset. Fixes bug #562286
	InternalLineOffset and Internal properties need not exist.

	* AspGenerator.cs: AspParser inner parser constructor takes 5
	parameters now - accepts character offset of the current outer
	parser's position.

2009-12-14  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NestedParserFileText.aspx

svn path=/trunk/mcs/; revision=148378
2009-12-14 13:05:01 +00:00
Zoltan Varga 555f4c1630 2009-12-14 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_emit_rgctx_method_call_full): Fix a warning.

svn path=/trunk/mono/; revision=148377
2009-12-14 10:38:10 +00:00
Ankit Jain b9945670d7 * Parameters.cs (TryProcessMultiOption): New.
(ProcessTarget):
(ProcessProperty): Refactor to use TryProcessMultiOption,
and accept ":" in target name or property name/value pair.

svn path=/trunk/mcs/; revision=148376
2009-12-14 10:30:06 +00:00
Ankit Jain a40069e7f7 Fix bug #562056.
* Parameters.cs: Property name/value pairs can be separated by ':'.

svn path=/trunk/mcs/; revision=148371
2009-12-14 09:05:34 +00:00
Atsushi Eno 6bfcc0c886 2009-12-14 Atsushi Enomoto <[email protected]>
* IssuedSecurityTokenProviderTest.cs : disable this failing niche too.


svn path=/trunk/mcs/; revision=148370
2009-12-14 08:14:24 +00:00
Atsushi Eno 39fa2207f8 2009-12-14 Atsushi Enomoto <[email protected]>
* WSSecurityTokenSerializerTest.cs : disable non-working test that
	  needs several fixes or updates.


svn path=/trunk/mcs/; revision=148369
2009-12-14 08:06:24 +00:00
Atsushi Eno b1caadcc75 2009-12-14 Atsushi Enomoto <[email protected]>
* WSHttpBindingTest.cs : leave non-working test to get fixed later.


svn path=/trunk/mcs/; revision=148368
2009-12-14 07:43:57 +00:00
Atsushi Eno 901b82ee2b 2009-12-14 Atsushi Enomoto <[email protected]>
* XmlReaderBodyWriter.cs : don't try to write empty xml.


svn path=/trunk/mcs/; revision=148367
2009-12-14 07:16:44 +00:00
Miguel de Icaza 953f560654 2009-12-14 Miguel de Icaza <[email protected]>
* MemoryMappedFile.cs: Make this by default use the native
        interface (Mono.Unix.Native.Syscall) to map files and only support
        the FileStream.Handle when the user explicitly uses this API.

        The reason is that currently the code depends on the io-layer
        keeping parity between our handles and Unix file descriptors, this
        removes this dependency for most cases. 


svn path=/trunk/mcs/; revision=148366
2009-12-14 05:24:34 +00:00
Miguel de Icaza 65899ab05b 2009-12-13 Miguel de Icaza <[email protected]>
* SafeBuffer.cs: When comparing the end, we only need to compare
	source+size being bigger than last_byte, not bigger or equal,
	otherwise we can not access the last element.

svn path=/trunk/mcs/; revision=148365
2009-12-14 04:07:47 +00:00
Atsushi Eno 0ede800ea0 2009-12-14 Atsushi Enomoto <[email protected]>
* TypeMap.cs : handle [Serializable] objects such as KeyValuePair<,>
	  like we do in 2.0. Removed previous workarounds. (Do not serialize
	  and deserialize nonpublic members in "default" mappings.)


svn path=/trunk/mcs/; revision=148364
2009-12-14 03:36:28 +00:00
Zoltan Varga cbd0f42ecd .gitignore.
svn path=/trunk/mono/; revision=148363
2009-12-14 02:48:36 +00:00
Zoltan Varga 4da04a469e 2009-12-14 Zoltan Varga <[email protected]>
* tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix the LLVM support
	by merging the LLVM and !MAP_32BIT cases.

svn path=/trunk/mono/; revision=148362
2009-12-14 02:46:30 +00:00
Miguel de Icaza 76574e8f58 2009-12-13 Miguel de Icaza <[email protected]>
* SafeMemoryMappedViewHandle.cs (ReleaseHandle): implement. 

2009-12-13  Miguel de Icaza  <[email protected]>

        * MemoryMappedViewAccessor.cs: Derive from
        UnmanagedMemoryAccessor, remove explicit IDisposable
inheritance.
        (CreatePosix): Call Initialize on the base class to initialize. 
        (Dispose): Kill methods. 
        (Flush): Add.
        (MapPosix): no need to return out mmap_size, it is always size.

        * MemoryMappedFile.cs: Add FlushPosix.

        * MemoryMappedViewStream.cs: Update API.


svn path=/trunk/mcs/; revision=148361
2009-12-14 01:40:50 +00:00
Miguel de Icaza 356a057f83 Assist to build
svn path=/trunk/mcs/; revision=148360
2009-12-14 01:05:47 +00:00
Jonathan Chambers fdce0f5c0e 2009-12-13 Jonathan Chambers <[email protected]>
* debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
	sigctx being passed in, as we have no CONTEXT available in the APC.
	
	(mono_debugger_agent_cleanup): Use explicit cond wait implementation
	for now.

	Code contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=148351
2009-12-13 18:07:01 +00:00
Zoltan Varga a3e038822d 2009-12-13 Zoltan Varga <[email protected]>
* method-to-ir.c mini-llvm.c: Fix support for monitor enter/exit trampolines
	in the LLVM backend on AMD64.

svn path=/trunk/mono/; revision=148348
2009-12-13 16:03:52 +00:00
Zoltan Varga 064c8ad079 2009-12-13 Zoltan Varga <[email protected]>
* aot-runtime.c (decode_eh_frame): Initialize the clauses from the info in the
	FDE.

	* unwind.c (mono_unwind_decode_fde): Implement decoding of a couple more formats.

svn path=/trunk/mono/; revision=148347
2009-12-13 15:40:48 +00:00
Zoltan Varga a60bd8b0be 2009-12-13 Zoltan Varga <[email protected]>
* mini-llvm.c: Export mono_personality for AOT.

svn path=/trunk/mono/; revision=148346
2009-12-13 15:07:39 +00:00
Zoltan Varga 52a6196fed 2009-12-13 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Fix some problems with llvm+aot+clauses.

svn path=/trunk/mono/; revision=148345
2009-12-13 15:07:33 +00:00
Zoltan Varga d00161b0bd 2009-12-13 Zoltan Varga <[email protected]>
* mini-ops.h (OP_IMPLICIT_EXCEPTION): New opcode marking the place where an
	implicit exception can occur.

	* ir-emit.h (MONO_EMIT_NEW_IMPLICIT_EXCEPTION): New macro to emit an
	OP_IMPLICIT_EXCEPTION instruction.

	* ir-emit.h (MONO_EMIT_NEW_CHECK_THIS): New macro.

	* method-to-ir.c: Use MONO_EMIT_NEW_CHECK_THIS in a few places.

	* mini-llvm.c: Handle OP_IMPLICIT_EXCEPTION by disabling llvm if it occurs
	inside a protected block.

svn path=/trunk/mono/; revision=148344
2009-12-13 14:50:31 +00:00
Zoltan Varga 69df9c8ad8 2009-12-13 Zoltan Varga <[email protected]>
* mini-llvm.c: Revert the last change, the signature of monitor entry/exit
	trampolines doesn't include the argument.

svn path=/trunk/mono/; revision=148343
2009-12-13 08:57:27 +00:00
Zoltan Varga c019ae9e4b 2009-12-13 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Enable calls to monitor entry/exit
	trampolines on amd64.

	* mini-amd64.h (MONO_ARCH_MONITOR_OBJECT_REG): Use MONO_AMD64_ARG_REG1 instead
	of RDI.

svn path=/trunk/mono/; revision=148342
2009-12-13 08:25:31 +00:00
Zoltan Varga e3d7af8f53 2009-12-13 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Add some comments as to why LLVM is currently
	disabled for methods with clauses.

	* mini-llvm.c: Enable support for catch clauses.

svn path=/trunk/mono/; revision=148341
2009-12-13 08:13:01 +00:00
Zoltan Varga 1eb3140b55 2009-12-13 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_resume_unwind): New function to resume unwinding at the
	end of an LLVM compiled finally clause.
	(mono_handle_exception_internal): Save the exception handling state in TLS
	before calling an LLVM compiled finally clause, so mono_resume_unwind () can
	resume unwinding from that point.

	* unwind.c (mono_unwind_get_ops_from_fde): Rename this to
	mono_unwind_decode_fde, decode the Language Specific Data Area (LSDA) too,
	to obtain the addresses of the exception handling regions.

	* mini-llvm.c: Add beginnings of support for exception handling, currently only
	finally clauses are supported.

	* mini.c (mini_method_compile): Add support for LLVM code with exception
	handlers.

svn path=/trunk/mono/; revision=148340
2009-12-13 06:37:15 +00:00
Rodrigo Kumpera 91ac601fd4 2009-12-12 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Remove useless field.

2009-12-12 Rodrigo Kumpera  <[email protected]>

	* Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=148339
2009-12-13 01:18:45 +00:00
Rodrigo Kumpera 47e43931b0 2009-12-12 Rodrigo Kumpera <[email protected]>
* MonoType.cs: Make the GetConstructorImpl machinery available
	to be used by others.

	* Type.cs (MakeGenericType): Is any of the arguments is not a system
	type create an instance of MonoGenericClass instead.

2009-12-12 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Change it to support a non-sre generic type
	definition.

2009-12-10 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilder.cs (MakeGenericType): Accept a Type as argument.

	* ConstructorOnTypeBuilderInst.cs: Change it to support an underlying
	non-sre constructor.

	* MethodOnTypeBuilderInst.cs: Change it to support an underlying
	non-sre method.

	* FieldOnTypeBuilderInst.cs: Change it to support an underlying
	non-sre field.

	* EventOnTypeBuilderInst.cs: Change it to support an underlying
	non-sre event.

svn path=/trunk/mcs/; revision=148338
2009-12-13 01:18:27 +00:00
Rodrigo Kumpera 757028ad90 2009-12-12 Rodrigo Kumpera <[email protected]>
* object-internals.h: Remove useless field from MonoReflectionGenericClass.

	* appdomain.c: Bump corlib version.

svn path=/trunk/mono/; revision=148337
2009-12-13 01:17:46 +00:00
Rodrigo Kumpera 7a55fbab2b 2009-12-12 Rodrigo Kumpera <[email protected]>
To properly support user types, MonoGenericClass has to be used for regular, non SRE,
	types as well since otherwise generic instances would not return UT as arguments but
	their undelying system type.

	* object-internals.h: Change field types of MonoGenericClass and *OnTypeBuilderInst
	to reflect the fact that they can have now multiple different types.

	* reflection.c (mono_image_get_field_on_inst_token): Handle MonoField.

	* reflection.c (mono_image_get_ctor_on_inst_token): Handle MonoCMethod.

	* reflection.c (mono_image_get_method_on_inst_token): Handle MonoMethod.

	* reflection.c (mono_reflection_register_with_runtime): Init super types
	if the image is not dynamic.

	* reflection.c (mono_reflection_bind_generic_parameters): In case of a MonoGenericClass,
	check if the generic type definition is a TypeBuilder.

	* reflection.c (mono_reflection_generic_class_initialize): If the generic type definition
	doesn't belong to a dynamic image, skip initialization.

	* reflection.c (resolve_object): Properly handle *OnTypeBuilderInst types where their
	base definition is not a dynamic type.

svn path=/trunk/mono/; revision=148336
2009-12-13 01:17:36 +00:00
Zoltan Varga a946f229ab 2009-12-12 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Allocate the 'pindexes' array with the
	proper size.

svn path=/trunk/mono/; revision=148331
2009-12-12 09:38:49 +00:00
Miguel de Icaza c1b51a4d02 HtmlString
svn path=/trunk/mcs/; revision=148330
2009-12-12 04:41:03 +00:00
Miguel de Icaza 696bad1ee8 Update
svn path=/trunk/mono/; revision=148329
2009-12-12 04:19:36 +00:00
Zoltan Varga 9a1ce654da 2009-12-12 Zoltan Varga <[email protected]>
* debugger-agent.c: Encode the this argument of vtype methods as a struct, not
	as a primitive type.

svn path=/trunk/mono/; revision=148192
2009-12-12 01:04:30 +00:00
Chris Toshok f231a6cb9b in System.Runtime.Serialization.Json:
2009-12-11  Chris Toshok  <[email protected]>

	* TypeMap.cs (CreateDefaultTypeMap): only include non-public
	property info when dealing with KeyValuePair<,>.  This is *not*
	the way MS handles it, but we emulate things much better with this
	hack.

in test/System.Runtime.Serialization.Json/:
2009-12-11  Chris Toshok  <[email protected]>

	* DataContractJsonSerializerTest.cs: add a test case for
	non-public properties.


svn path=/trunk/mcs/; revision=148184
2009-12-12 00:14:23 +00:00
Rolf Bjarne Kvinge ab983dbe98 2009-12-12 Rolf Bjarne Kvinge <[email protected]>
* WebClient_2_1.cs: When creating the request we need to copy over
	any headers the user set on us. We also need to wrap
	InvalidOperationExceptions in WebExceptions.

svn path=/trunk/mcs/; revision=148182
2009-12-12 00:09:50 +00:00
Marek Habersack d72461d1b9 2009-12-11 Marek Habersack <[email protected]>
* object.c (mono_ldstr, mono_ldstr_metadata_sig): added calls to
	mono_profiler_string_allocation

mono-profiler-iomap.c - improved output and enabled locking when storing string location.

svn path=/trunk/mono/; revision=148153
2009-12-11 21:21:54 +00:00
Chris Toshok 098cdab4f3 2009-12-09 Chris Toshok <[email protected]>
* Encoding.cs (get_Default): moonlight defaults to UTF8, not
	UTF8Unmarked.


svn path=/trunk/mcs/; revision=148148
2009-12-11 20:38:39 +00:00
Zoltan Varga 783927b7eb 2009-12-11 Zoltan Varga <[email protected]>
* driver.c: Applied patch from Matt McClellan ([email protected]). Add a check
	for 2 parameter sched_setaffinity in older glibc versions. Fixes
	#564000.

svn path=/trunk/mono/; revision=148123
2009-12-11 19:52:43 +00:00
Zoltan Varga 07d55bd7a7 2009-12-11 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
	for 2 parameter sched_setaffinity in older glibc versions. Fixes
	#564000.

svn path=/trunk/mono/; revision=148122
2009-12-11 19:52:35 +00:00
Marek Habersack 2b6e5d0122 2009-12-11 Marek Habersack <[email protected]>
* mono-io-portability.c: moved all the reporting code to the IOMAP
	profiler module.
	(mono_portability_find_file_internal): calls mono_profiler_iomap
	whenever an adjustement is made.

2009-12-11  Marek Habersack  <[email protected]>

	* mono-profiler-iomap.c: added

	* Makefile.am: added IOMAP profiler

2009-12-11  Marek Habersack  <[email protected]>

	* method-to-ir.c (mini_redirect_call): do not redirect the
	InternalAllocateStr internal call if string profiling is enabled.

2009-12-11  Marek Habersack  <[email protected]>

	* string-icalls.c (ves_icall_System_String_InternalAllocateStr):
	if string profiling is enabled, call
	mono_profiler_string_allocation

	* profiler.h: added two MonoProfileFlags -
	MONO_PROFILE_IOMAP_EVENTS and MONO_PROFILE_STRING_ALLOC as well as
	installation functions for the hooks below.

	* profiler-private.h, profiler.c: added two hooks:
	mono_profiler_string_allocation called whenever a string is
	allocated by InternalAllocateStr and mono_profiler_iomap called
	whenever IOMAP code performs an adjustement on a file path.

2009-12-11  Marek Habersack  <[email protected]>

	* mono.1: documented the IOMAP report profiler module

svn path=/trunk/mono/; revision=148108
2009-12-11 17:36:44 +00:00
Paolo Molaro f8e08557b6 Fri Dec 11 18:24:04 CET 2009 Paolo Molaro <[email protected]>
* boehm-gc.c: fixed race condition while getting the target of a
	disappearing link (bug #522233).


svn path=/trunk/mono/; revision=148105
2009-12-11 17:15:57 +00:00
Atsushi Eno 6557535276 2009-12-11 Atsushi Enomoto <[email protected]>
* JsonReader.cs : e- and e+ was resulting in wrong parse error.
	  This should fix part of bug #531904.

	* JsonReaderTest.cs : another number parse case.


svn path=/trunk/mcs/; revision=148099
2009-12-11 12:54:10 +00:00
Atsushi Eno 50dd727811 2009-12-11 Atsushi Enomoto <[email protected]>
* RoutingSection.cs : sorted out most of the configuration stuff.
	* FilterElementCollection.cs : added missing indexer.


svn path=/trunk/mcs/; revision=148096
2009-12-11 09:47:44 +00:00
Marek Safar 08e0425bd2 2009-12-11 Marek Safar <[email protected]>
* modifiers.cs, decl.cs, iterators.cs, const.cs, anonymous.cs,
	class.cs, delegate.cs, cs-parser.jay, enum.cs: Turn modifiers into
	enum for easier debugging.


svn path=/trunk/mcs/; revision=148095
2009-12-11 08:48:32 +00:00
Marek Safar 265206db2e Fixes build.
svn path=/trunk/mcs/; revision=148094
2009-12-11 08:43:54 +00:00
Miguel de Icaza 2be93c0df1 2009-12-11 Miguel de Icaza <[email protected]>
* SmtpClient.cs: Add half-implemented feature, TargetName for the
	SPN SMTP system.

svn path=/trunk/mcs/; revision=148093
2009-12-11 06:22:59 +00:00
Miguel de Icaza dd0bc8418a 2009-12-11 Miguel de Icaza <[email protected]>
* SmtpClient.cs, MailMessage.cs: Add 4.0 APIs.

svn path=/trunk/mcs/; revision=148092
2009-12-11 06:03:45 +00:00
Miguel de Icaza c08a1042a4 2009-12-11 Miguel de Icaza <[email protected]>
* Barrier.cs: Implement IDisposable, add a bunch of IDisposable
	checks and some checks from the docs.

svn path=/trunk/mcs/; revision=148091
2009-12-11 05:36:59 +00:00
Rodrigo Kumpera 95f7e96db7 2009-12-10 Rodrigo Kumpera <[email protected]>
* AttributeTest.cs: Fix a NotDotNet test since mono now implements
	the same behavior.

svn path=/trunk/mcs/; revision=148084
2009-12-11 02:33:55 +00:00
Rodrigo Kumpera 4f75aea804 2009-12-10 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Add MakeGenericType method while takes care of doing
	generic instance canonicalization under compiler context.

	* DerivedTypes.cs: Add ArrayType::GetEffectiveRank to make it possible to
	distinguish between [] and [*].

	* TypeBuilder.cs: Implement MakeGenericType in managed code.

2009-12-10 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClass.cs: Add new register_with_runtime icall to make
	sure that a managed code instantiated MGC will be returned when
	the generic instantiation happens in unmanaged code.

	This is a temporary workaround while Type::MakeGenericType doesn't
	handle user types properly.

svn path=/trunk/mcs/; revision=148083
2009-12-11 02:32:59 +00:00
Rodrigo Kumpera 6a71855784 2009-12-10 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Make this class inherit from Type instead of
	MonoType. Implement some missing methods and make sure we can still
	be used as a byref type.

svn path=/trunk/mcs/; revision=148082
2009-12-11 02:32:22 +00:00
Rodrigo Kumpera 3862723c04 2009-12-10 Rodrigo Kumpera <[email protected]>
* class.c (mono_type_get_full): Produce warning instead of simply swallowing
	the error.

svn path=/trunk/mono/; revision=148081
2009-12-11 02:31:45 +00:00
Rodrigo Kumpera ddcdcf657c 2009-12-10 Rodrigo Kumpera <[email protected]>
* reflection.c: Add mono_reflection_register_with_runtime icall to
	allow a MonoGenericClass to register itself as the managed mirror of
	a given generic instance.
	This is a temporary workaround until all MGC instantiation happens in
	managed code.

	* object-internals.h: Ditto.

	* icall-def.h: Ditto.

svn path=/trunk/mono/; revision=148080
2009-12-11 02:31:19 +00:00
Mark Probst 0a482a3447 2009-12-10 Mark Probst <[email protected]>
* sgen-gc.c (find_in_remsets): Also search the generic store
	remsets.

svn path=/trunk/mono/; revision=148072
2009-12-10 22:56:57 +00:00
Mark Probst a972778a06 2009-12-10 Mark Probst <[email protected]>
* sgen-gc.c: Don't access class names in debugging code when
	unloading a domain, because they might not be valid anymore.

svn path=/trunk/mono/; revision=148068
2009-12-10 22:33:24 +00:00
Mark Probst 125a0477ea 2009-12-10 Mark Probst <[email protected]>
* domain.c, domain-internals.h: New function mono_domain_unset().

	* appdomain.c (unload_thread_main): Detach the thread again at the
	end.

	* threads.c: When a thread exists or is detached, unset its domain
	so that it's NULL when, for example, a pthread destructor runs.

	* sgen-gc.c: Assert that there is no domain set after a thread is
	done.

svn path=/trunk/mono/; revision=148065
2009-12-10 21:25:59 +00:00
Mark Probst a9262506b7 2009-12-10 Mark Probst <[email protected]>
* class.c (mono_generic_class_get_class),
	metadata.c (free_generic_class): Allocate generic MonoClass's from
	the image mempool, not via malloc.  The problem with malloc is
	that when unloading a domain those classes are freed before
	clearing the heap and SGen needs the classes.  Rewriting the
	unloading code to do the free later would be more work and there's
	no point in using malloc anyway.

svn path=/trunk/mono/; revision=148064
2009-12-10 21:21:29 +00:00
Zoltan Varga 0946545df2 2009-12-10 Zoltan Varga <[email protected]>
* aot-compiler.c (add_wrappers): Avoid generating synchronized wrappers for
	generic methods.

svn path=/trunk/mono/; revision=148038
2009-12-10 18:45:49 +00:00
Marek Safar e7bed4de1a 2009-12-10 Marek Safar <[email protected]>
* decl.cs, anonymous.cs, class.cs: Sealed Define it's now main entry
	point.
	
	* parameter.cs, delegate.cs, dynamic.cs: Don't use builder methods
	directly.


svn path=/trunk/mcs/; revision=148036
2009-12-10 18:14:47 +00:00
Marek Safar 21dd23b123 Disabled delegate test for now
svn path=/trunk/mcs/; revision=148035
2009-12-10 18:12:14 +00:00
Marek Safar 076fac9c25 New test.
svn path=/trunk/mcs/; revision=148025
2009-12-10 13:58:50 +00:00
Marek Safar 5cb362639b 2009-12-10 Marek Safar <[email protected]>
* cs-parser.jay, statement.cs: Handle parser error in code
	completition.


svn path=/trunk/mcs/; revision=148024
2009-12-10 13:08:18 +00:00
Atsushi Eno dcbe785724 initial checkin for WCF 4.0 Routing.
svn path=/trunk/mcs/; revision=148023
2009-12-10 12:39:18 +00:00
Marek Safar 5bc6a4e5ad 2009-12-10 Marek Safar <[email protected]>
* ecore.cs: Ignore base imported methods when they are already
	in method bag.
	
	* eval.cs: Handle non-existent keys.
	
	* report.cs, driver.cs: Make fatal work with console printer only.


svn path=/trunk/mcs/; revision=148022
2009-12-10 12:35:21 +00:00
Atsushi Eno e1ae570a9b 2009-12-10 Atsushi Enomoto <[email protected]>
* OperationInvokerHandler.cs : fix async operation handling. Since
	  the entire handler chain is designed to be in synchronous, one
	  single handler must not leave its work incomplete (async). Just
	  wait for the async process completion within the handler.


svn path=/trunk/mcs/; revision=148021
2009-12-10 11:38:05 +00:00
Atsushi Eno f71285f7ce 2009-12-10 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : avoid adding duplicate headers. Basically
	  default WebHeaderCollection items are overwritten.


svn path=/trunk/mcs/; revision=148012
2009-12-10 08:22:41 +00:00
Atsushi Eno ef4a0199b5 2009-12-10 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : when HTTP response was error, do not try
	  to read message but just raise an error.


svn path=/trunk/mcs/; revision=148011
2009-12-10 07:57:11 +00:00
Atsushi Eno fa8cca6868 2009-12-10 Atsushi Enomoto <[email protected]>
* MessageHeadersTest.cs : added another CopyHeadersFrom() test to
	  make sure there is no duplicate.


svn path=/trunk/mcs/; revision=148008
2009-12-10 07:23:25 +00:00
Atsushi Eno 47e8f1112d 2009-12-10 Atsushi Enomoto <[email protected]>
* MessageHeadersTest.cs : enable working test and remove old comment.


svn path=/trunk/mcs/; revision=148007
2009-12-10 07:18:27 +00:00
Atsushi Eno 95b8c6d86d 2009-12-10 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : null can be set as a WS-Addressing header item.

	* MessageHeadersTest.cs : make sure null can be set as a
	  WS-Addressing header when version is None.


svn path=/trunk/mcs/; revision=148006
2009-12-10 06:50:38 +00:00
Atsushi Eno 98c508cc87 2009-12-10 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs : a bit more kindful error message.
	* ClientProxyGenerator.cs : fix async parameter offset.


svn path=/trunk/mcs/; revision=148005
2009-12-10 06:03:12 +00:00
Atsushi Eno 384a2f519d 2009-12-10 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : WebException.Response might be null.


svn path=/trunk/mcs/; revision=148004
2009-12-10 06:02:50 +00:00
Miguel de Icaza 04db5e3842 2009-12-10 Miguel de Icaza <[email protected]>
* MemoryMappedFile.cs: Updated to the new Beta API, fill in some
	blanks, map some new flags, obey some settings, throw some
	exceptions. 

svn path=/trunk/mcs/; revision=148003
2009-12-10 05:55:57 +00:00
Zoltan Varga eb9a7043ff Missed a file.
svn path=/trunk/mono/; revision=148000
2009-12-10 03:42:03 +00:00
Zoltan Varga 866276e4fa 2009-12-10 Zoltan Varga <[email protected]>
* unwind.h: Rename this to mini-unwind.h to avoid conflicts with the gcc
	unwind.h header file.

svn path=/trunk/mono/; revision=147999
2009-12-10 03:40:42 +00:00
Sebastien Pouliot 5e60825fc2 2009-12-09 Sebastien Pouliot <[email protected]>
* loader.c (mono_method_signature): Always call mono_loader_unlock 
	before returning.


svn path=/trunk/mono/; revision=147991
2009-12-10 01:22:12 +00:00
Zoltan Varga 01548d5597 2009-12-10 Zoltan Varga <[email protected]>
* tramp-x86.c (mono_arch_patch_callsite): Patch the code when using valgrind,
	newer valgrind versions seems to handle this fine.

svn path=/trunk/mono/; revision=147989
2009-12-10 00:24:08 +00:00
Geoff Norton 018d17297c fix the build on the mac 10.4
svn path=/trunk/mono/; revision=147950
2009-12-09 21:36:32 +00:00
Rodrigo Kumpera 7e359c0a6f 2009-12-09 Rodrigo Kumpera <[email protected]>
* metadata-verify.c: Add mono_verifier_verify_string_signature to check
	user string blobs.

	* verify-internals.h: Add new function to the internal API.

	* verify.c (do_ldstr): Call into mono_verifier_verify_string_signature to
	check if it's a valid string.

	* object.c (mono_ldstr): Ditto.

	Fixes #561943.

svn path=/trunk/mono/; revision=147941
2009-12-09 19:38:49 +00:00
Jb Evain a29f0cf974 2009-12-09 Jb Evain <[email protected]>
* ILGenerator.cs (Emit(OpCode,LocalBuilder)): deal with
	opcodes not related to locals.


svn path=/trunk/mcs/; revision=147940
2009-12-09 19:27:58 +00:00
Jb Evain 6ffe4508e2 2009-12-09 Jb Evain <[email protected]>
* ILGeneratorTest.cs: add a test for Emit(OpCode,LocalBuilder)
	when the opcode is not related to locals.


svn path=/trunk/mcs/; revision=147939
2009-12-09 19:26:51 +00:00
Jb Evain 5a6d3bf3bf 2009-12-09 Jb Evain <[email protected]>
* StringInfo.cs: default constructor falls back to an empty string info.


svn path=/trunk/mcs/; revision=147936
2009-12-09 19:22:33 +00:00
Jb Evain 6db80772c9 2009-12-09 Jb Evain <[email protected]>
* StringInfoTest.cs: test the default constructor.


svn path=/trunk/mcs/; revision=147935
2009-12-09 19:22:03 +00:00
Jb Evain 5ba924f8d7 2009-12-09 Jb Evain <[email protected]>
* ThreadPool.cs (QueueUserWorkItem): properly throw
	an ANE instead of triggering a NRE when being passed a null callback.


svn path=/trunk/mcs/; revision=147934
2009-12-09 19:21:25 +00:00
Jb Evain 65eafbff5b 2009-12-09 Jb Evain <[email protected]>
* ThreadTest.cs: add a test for a null callback passed to
	ThreadPool.QueueUserWorkItem.


svn path=/trunk/mcs/; revision=147933
2009-12-09 19:20:42 +00:00
Jb Evain 06a0a08072 2009-12-09 Jb Evain <[email protected]>
* StringComparer.cs (GetHashCode): properly throw
	an ANE instead of an NRE.


svn path=/trunk/mcs/; revision=147932
2009-12-09 19:19:59 +00:00
Jb Evain ec3c064c39 2009-12-09 Jb Evain <[email protected]>
* StringComparerTest.cs: add test for null passed to a ordinal
	comparer GetHashCode.


svn path=/trunk/mcs/; revision=147931
2009-12-09 19:19:13 +00:00
Zoltan Varga bbb7b157ad 2009-12-09 Zoltan Varga <[email protected]>
* debugger-agent.c (start_runtime_invoke): Fix a crash if this is called
	on the debugger thread.

svn path=/trunk/mono/; revision=147912
2009-12-09 15:04:08 +00:00
Rodrigo Kumpera 2ea50cf778 2009-12-09 Rodrigo Kumpera <[email protected]>
* MethodBaseTest.cs: Remove all NET_2_0 directives. Add test
	for GetCurrentMethod and generics.

svn path=/trunk/mcs/; revision=147911
2009-12-09 13:33:09 +00:00
Rodrigo Kumpera 2934aff480 2009-12-09 Rodrigo Kumpera <[email protected]>
* icall.c (ves_icall_GetCurrentMethod): Drop all generic arguments
	from a method before returning it. This is the expected behavior.

svn path=/trunk/mono/; revision=147910
2009-12-09 13:25:04 +00:00
Marek Safar fdcc13d368 2009-12-09 Marek Safar <[email protected]>
* CSharpBinder.cs: Actually use merged restrictions.


svn path=/trunk/mcs/; revision=147908
2009-12-09 11:59:02 +00:00
Miguel de Icaza 6c3d275ca4 2009-12-09 Miguel de Icaza <[email protected]>
* Enum.cs: Add new .NET 4.0 API.

svn path=/trunk/mcs/; revision=147901
2009-12-09 06:52:49 +00:00
Marek Habersack 93a5d53b63 2009-12-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetConverterForMember looks up
	member type converters using type description providers in
	addition to custom attributes.
	Result of GenerateInstance isn't cast to the target type if the
	type isn't public.

2009-12-08  Marek Habersack  <[email protected]>

	* TypeDescriptor.cs: AddProvider overloads must refresh the
	instance and type when called.
	If GetProvider (object) fails to look up provider for the passed
	instance, it attempts to look up provider for the instance's
	type.
	GetProvider (Type) looks for providers using all the parent types
	of the passed type if no provider for it is found.
	WrappedTypeDescriptionProvider.GetTypeDescriptor chains up to the
	wrapped type, if present.

	* TypeDescriptionProvider.cs: GetTypeDescriptor properly returns
	the value obtained from parent in GetTypeDescriptor.

2009-12-08  Marek Habersack  <[email protected]>

	* Type.cs: added overloads for the == and != operators (4.0).

svn path=/trunk/mcs/; revision=147889
2009-12-08 22:33:32 +00:00
Zoltan Varga b10242c094 2009-12-08 Zoltan Varga <[email protected]>
* mini-llvm.c (mono_llvm_emit_method): Add more SIMD opcodes.

svn path=/trunk/mono/; revision=147886
2009-12-08 21:13:04 +00:00
Zoltan Varga 852c512d41 2009-03-11 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_output_basic_block): Fix % 1. Fixes #484323.

	* basic.cs: Add a test.

svn path=/branches/mono-2-2/mono/; revision=129067
2009-03-11 14:30:17 +00:00
Zoltan Varga 1b70679e3e 2009-03-06 Zoltan Varga <[email protected]>
Backport of r128749.
	
	* method-to-ir.c (mini_emit_memset): Fix the handling of size '3'. Fixes
	#481458.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-2/mono/; revision=128750
2009-03-06 02:39:49 +00:00
Zoltan Varga 73d9bb32a6 2009-02-14 Zoltan Varga <[email protected]>
Backport of r126897.

	* method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
	convert it to an in32. Fixes #475859.

	* arrays.cs: Add a test.

svn path=/branches/mono-2-2/mono/; revision=126899
2009-02-14 00:05:50 +00:00
Zoltan Varga c67ee64dbc 2009-02-11 Zoltan Varga <[email protected]>
Backport of 126604.

	* branch-opts.c (mono_if_conversion): Handle the case where the merged 
	basic block fell through to its successor bblock without a branch. Fixes
	#474718.

	* iltests.il.in: Add a test.

svn path=/branches/mono-2-2/mono/; revision=126605
2009-02-11 14:35:29 +00:00
Mark Probst 86356a38e9 2009-02-10 Mark Probst <[email protected]>
Backport of r126467.

	* mini-x86.c (mono_arch_context_get_int_reg): Handle all registers
	individually.  Fixes #473482.

2009-02-10  Mark Probst  <[email protected]>

	Backport of r126467.

	* bug-473482.2.cs: New test.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=126468
2009-02-10 15:13:38 +00:00
Mark Probst 32221b04b3 2009-02-05 Mark Probst <[email protected]>
Backport of r125887.

	* object.c (mono_object_get_virtual_method): Properly inflate
	generic methods.  Fixes #472692.

2009-02-05  Mark Probst  <[email protected]>

	Backport of r125887.

	* jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
	the method we get from mono_object_get_virtual_method() because
	that function does it properly, now.

2009-02-05  Mark Probst  <[email protected]>

	Backport of r125887.

	* bug-472692.2.cs: New test.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=125892
2009-02-05 17:39:37 +00:00
Mark Probst 356450cc39 2009-02-05 Mark Probst <[email protected]>
Backport of r125839.

	* mini-exceptions.c (ves_icall_get_frame_info): Account for the
	fact that mono_find_jit_info() sometimes returns the context
	corresponding to the jit info in new_ctx.  Fixes #472600.

2009-02-05  Mark Probst  <[email protected]>

	Backport of r125839.

	* bug-472600.2.cs: New test.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=125846
2009-02-05 11:25:02 +00:00
Marek Habersack a0c3015347 Backport of r125663
svn path=/branches/mono-2-2/mcs/; revision=125665
2009-02-04 10:46:24 +00:00
Mark Probst 537966c822 2009-02-03 Mark Probst <[email protected]>
Backport of r125565.

	* generic-sharing.c: Don't hold domain lock when calling
	instantiate_other_info().  Fixes #471958.

	* domain-internals.h, loader.c: Describe locking policy of domain
	lock vs loader lock.

svn path=/branches/mono-2-2/mono/; revision=125567
2009-02-03 18:32:01 +00:00
Mark Probst abb91fa21b 2009-02-02 Mark Probst <[email protected]>
Backport of r125388.

	* generic-sharing.c (lookup_or_register_other_info): Make sure the
	loader lock is not taken while the templates lock is held.  Fixes
	#471089.

svn path=/branches/mono-2-2/mono/; revision=125389
2009-02-02 18:44:43 +00:00
Mark Probst 963ad4c4e6 2009-02-02 Mark Probst <[email protected]>
Backport or r125371.

	* metadata.c (type_in_image): Added a check to fix a monodis
	crash.

svn path=/branches/mono-2-2/mono/; revision=125374
2009-02-02 16:55:46 +00:00
Rodrigo Kumpera ef98b2ea25 2009-02-01 Rodrigo Kumpera <[email protected]>
Backport of r125205.

	* cpu-arm.md: Increase the size of storer8_membase_reg and
	loadr8_membase_reg to 24 bytes to accomodate the extra add.

	* mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
	OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
	reg to LR otherwise we'll be loading/storing from just the offset.


svn path=/branches/mono-2-2/mono/; revision=125340
2009-02-02 11:55:03 +00:00
Marek Habersack 93fcd7a7f4 Backport of r125111.
svn path=/branches/mono-2-2/mcs/; revision=125113
2009-01-30 16:54:08 +00:00
Mark Probst ea1e9c57b3 2009-01-27 Mark Probst <[email protected]>
Backport of r124712.

	* method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
	optimization if the top of stack is the last instruction in the
	bblock.  Otherwise it might have been used after its definition.
	Fixes #469742.

2009-01-27  Mark Probst  <[email protected]>

	Backport of r124712.

	* bug469742.2.il: New test.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=124713
2009-01-27 21:22:47 +00:00
Jeffrey Stedfast 94b968af6d 2009-01-26 Jeffrey Stedfast <[email protected]>
* mono-mutex.[c,h]: Removed GPLv2 copyright notice which should
	not have been there.


svn path=/branches/mono-2-2/mono/; revision=124698
2009-01-27 19:05:03 +00:00
Zoltan Varga 3d34404a43 2009-01-26 Zoltan Varga <[email protected]>
Backport of r124456.

	* exceptions-amd64.c (mono_arch_exceptions_init): Call 
	get_throw_pending_exception () to avoid initialization races.

	* mini-exceptions.c (mono_exceptions_init): Call an arch specific
	mono_arch_exceptions_init () function.

svn path=/branches/mono-2-2/mono/; revision=124461
2009-01-26 06:51:37 +00:00
Gonzalo Paniagua Javier 86d332be05 Backported fixes from HEAD
svn path=/branches/mono-2-2/mcs/; revision=124454
2009-01-26 05:06:30 +00:00
Zoltan Varga ecb00b219a 2009-01-25 Zoltan Varga <[email protected]>
* Backport of r123987.

	* method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
	on type variables in AOTed code.

svn path=/branches/mono-2-2/mono/; revision=124425
2009-01-25 13:10:46 +00:00
Mark Probst 6a6444c9c9 2009-01-23 Mark Probst <[email protected]>
Backport of r124022 and r124301.

	* metadata.c (mono_metadata_generic_param_equal): Owner as well as
	image must match.  Only compare the image if the owner is NULL.
	Fixes the AOT failures.

svn path=/branches/mono-2-2/mono/; revision=124304
2009-01-23 09:25:56 +00:00
Zoltan Varga e737e00b1a 2009-01-23 Zoltan Varga <[email protected]>
Backport of r124268.
	
	* metadata.c (mono_metadata_load_generic_params): Initialize the 
	MonoGenericParam structure using memset so the image field is initialized
	as well.

svn path=/branches/mono-2-2/mono/; revision=124269
2009-01-22 23:46:48 +00:00
Mark Probst bcf8b5091d 2009-01-22 Mark Probst <[email protected]>
Backport of r124246.

	* mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
	info from the (correct) context.

2009-01-22  Mark Probst  <[email protected]>

	Backport of r124246.

	* generic-stack-traces2.2.cs: Another generic sharing test for
	stack traces.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=124247
2009-01-22 21:02:07 +00:00
Zoltan Varga 053c79514a Revert r124024 as it is breaking AOT.
svn path=/branches/mono-2-2/mono/; revision=124100
2009-01-21 20:14:12 +00:00
Rodrigo Kumpera 9d06cece5e Forgot to add the file.
svn path=/branches/mono-2-2/mono/; revision=124099
2009-01-21 20:09:38 +00:00
Zoltan Varga 096ffd7c34 2009-01-21 Zoltan Varga <[email protected]>
Backport of r124092.
	
	* method-to-ir.c (handle_alloc): Avoid generic instances in the
	out_of_line optimization.

svn path=/branches/mono-2-2/mono/; revision=124094
2009-01-21 19:34:01 +00:00
Rodrigo Kumpera 6696bf386c 2009-01-21 Rodrigo Kumpera <[email protected]>
Backport of r124059.

	* appdomain-unload-callback.cs: New test for the AppDomain::DomainUnload
	deadlock.

	* Makefile.am: Test added.


svn path=/branches/mono-2-2/mono/; revision=124078
2009-01-21 18:13:53 +00:00
Rodrigo Kumpera 70748269a9 2009-01-21 Rodrigo Kumpera <[email protected]>
Backport of r124068.

	* appdomain.c (mono_domain_unload): Change the InterlockedIncrement to
	a plain store.

2009-01-21 Rodrigo Kumpera  <[email protected]>

	Backport of r124058.

	* domain-internals.h: Add new appdomain state MONO_APPDOMAIN_UNLOADING_START
	which signals that the unloading has started but all appdomain services must
	remain operational.

	* appdomain.c (mono_domain_unload): The initial state for unloading now
	is unloading_start and we switch to unloading after the managed call to
	AppDomain::DomainUnload has finished.

	The new unloading state has to be created because managed code in the
	DomainUnload event can depend on things like the threadpool still working.
	The domain must remain fully functional while the event executes.

	This shown as an issue due to Process::WaitForExit, which waits for
	async reads of stdout and stderr to complete. Since those are processed
	in the threadpool the code deadlocks because the DomainUnload callback 
	waits for the async read finished event, which should have been set by a
	threadpool job but has been discarded due to the domain been in unload
	state.


svn path=/branches/mono-2-2/mono/; revision=124074
2009-01-21 18:06:36 +00:00
Zoltan Varga 30032b29cd 2009-01-21 Zoltan Varga <[email protected]>
Backport of r124065.
	
	* class.c (mono_class_setup_vtable_general): In the generic instance
	optimization, set method->slot for abstract virtual methods. Fixes part of
	#467834.

svn path=/branches/mono-2-2/mono/; revision=124066
2009-01-21 17:40:10 +00:00
Mark Probst 933e43a263 2009-01-21 Mark Probst <[email protected]>
Backport of r124028.

	* method-to-ir.c: Only apply exception constructor optimization if
	the the method actually belongs to an exception class.  Fixes
	#467456.

2009-01-21  Mark Probst  <[email protected]>

	Backport of r124028.

	* bug-467456.cs: New test case.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=124030
2009-01-21 12:28:42 +00:00
Mark Probst 6492b054d6 2009-01-21 Mark Probst <[email protected]>
Backport of r124022.

	* metadata.c (mono_metadata_generic_param_equal): Owner as well as
	image must match.

2009-01-21  Mark Probst  <[email protected]>

	Backport of r124022.

	* generic-unloading.2.cs, generic-unloading-sub.2.cs: Test case
	for unloading images whose MonoGenericInst's are still in use.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=124024
2009-01-21 10:54:12 +00:00
Zoltan Varga 25af8d5d73 2008-11-24 Zoltan Varga <[email protected]>
Backport of r123968.
	
	* freebsd-elf_common.h (struct): Use uint32_t instead of 
	u_int32_t to fix the build on opensolaris.

svn path=/branches/mono-2-2/mono/; revision=123970
2009-01-21 00:24:09 +00:00
Mark Probst 85c4ae8316 2009-01-21 Mark Probst <[email protected]>
Backport of r123959.

	* TypeBuilderTest.cs: Add test for fields in dynamic generic
	classes.

svn path=/branches/mono-2-2/mcs/; revision=123961
2009-01-20 23:36:27 +00:00
Mark Probst 3cb0fc7f4d 2009-01-21 Mark Probst <[email protected]>
Backport of r123958.

	* reflection.c (resolve_object): For fields, inflate the class and
	then get the field in the inflated class.

svn path=/branches/mono-2-2/mono/; revision=123960
2009-01-20 23:36:01 +00:00
Mark Probst c63dbe44a0 2009-01-20 Mark Probst <[email protected]>
Backport of r123917.

	* method-to-ir.c: Force the vtable variable in shared generic code
	for the case that they might show up on a stack trace where they
	are needed.

	* mini-exceptions.c: Save and use generic sharing info as well as
	IP in stack traces to resolve shared generic instantiations.

2009-01-20  Mark Probst  <[email protected]>

	Backport of r123917.

	* class.c (mono_class_has_parent_and_ignore_generics),
	class-internals.h: Made non-static.

	* object-internals.h (struct _MonoException): Added a comment
	explaining the new use of trace_ips.

2009-01-20  Mark Probst  <[email protected]>

	Backport of r123917.

	* generic-stack-traces.2.cs: Generic sharing test for stack
	traces.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=123920
2009-01-20 20:43:04 +00:00
Gonzalo Paniagua Javier 68603e532d 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddress.cs: handle sign extension for the high byte when using the
	byte[] ctor for an IPv4 address.
	Fixes bug #467472.


svn path=/branches/mono-2-2/mcs/; revision=123857
2009-01-20 06:32:22 +00:00
Gonzalo Paniagua Javier 7b5c17946a 2009-01-19 Gonzalo Paniagua Javier <[email protected]>
* Socket.cs: don't throw when there's no ipv6 configuration.


svn path=/branches/mono-2-2/mcs/; revision=123833
2009-01-19 22:26:39 +00:00
Zoltan Varga e0a84ddbdb 2009-01-19 Zoltan Varga <[email protected]>
Backport of r123812.
	
	* loader.c (search_in_array_class): Call mono_class_setup_methods () before
	accessing klass->methods. Fixes #467385.

svn path=/branches/mono-2-2/mono/; revision=123814
2009-01-19 16:22:21 +00:00
Zoltan Varga 846a52cd5c 2009-01-18 Zoltan Varga <[email protected]>
* marshal9.cs: Change a test to be compatible with MS.NET.

svn path=/branches/mono-2-2/mono/; revision=123804
2009-01-19 15:23:31 +00:00
Zoltan Varga 68e00cea15 2009-01-18 Zoltan Varga <[email protected]>
Backport of r123756.
	
	* marshal.c (emit_marshal_custom): Avoid calling MarshalNativeToManaged
	for byval arguments without an [Out] attribute. Fixes #467212.

svn path=/branches/mono-2-2/mono/; revision=123803
2009-01-19 15:21:41 +00:00
Rodrigo Kumpera 54da54bb00 2009-01-19 Rodrigo Kumpera <[email protected]>
Backport of r123754.

	* mini.c (mini_thread_cleanup): Don't cleanup TLS storage if the
	thread been cleaned up is not the same currently in execution.

	Fixes appdomain-unload crashes on windows, osx and linux variants
	without the __thread keyword.


svn path=/branches/mono-2-2/mono/; revision=123785
2009-01-19 12:04:29 +00:00
Zoltan Varga 32663e9c0e 2009-01-13 Zoltan Varga <[email protected]>
Backport of r123258.
	
	* mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes when the current thread or
	domain is not set. Fixes #465864.

svn path=/branches/mono-2-2/mono/; revision=123725
2009-01-18 01:49:23 +00:00
Zoltan Varga b8610e3e69 2009-01-16 Zoltan Varga <[email protected]>
Backport of r123642.
	
	* threads.c (mono_threads_abort_appdomain_threads): Abort threads outside the
	threads_lock () to prevent deadlocks.

svn path=/branches/mono-2-2/mono/; revision=123723
2009-01-18 01:35:54 +00:00
Gonzalo Paniagua Javier e7cedf88ca 2009-01-16 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: adjust to the correct directory when listing too.
	Fixes bug #466530.


svn path=/branches/mono-2-2/mcs/; revision=123615
2009-01-16 15:39:32 +00:00
Zoltan Varga d97de79bed 2009-01-16 Zoltan Varga <[email protected]>
Backport of r123612.
	
	* configure.in: Avoid error messages in the quiet code if libgc/Makefile
	does not exist yet. Fixes #466814.

svn path=/branches/mono-2-2/mono/; revision=123613
2009-01-16 15:30:14 +00:00
Gonzalo Paniagua Javier 5f5755c06d 2009-01-15 Gonzalo Paniagua Javier <[email protected]>
* HttpListenerRequest.cs: always initialize 'version'.
	* HttpConnection.cs: the socket might already be disconnected when
	shutting down.


svn path=/branches/mono-2-2/mcs/; revision=123454
2009-01-15 06:08:10 +00:00
Gonzalo Paniagua Javier ed9b8414df 2009-01-14 Gonzalo Paniagua Javier <[email protected]>
* WebConnectionStream.cs: if the buffer has been killed, return -1 for
	its length. Fixes regression in System.Runtime.Remoting.


svn path=/branches/mono-2-2/mcs/; revision=123450
2009-01-15 04:56:55 +00:00
Zoltan Varga 8d47eeeaa1 2009-01-14 Zoltan Varga <[email protected]>
Backport of r123417.
	
	* CILCompiler.cs: Avoid throwing exceptions for a few more unhandled opcodes.
	Implement the reverse/ignorecase versions of Reference. Fix the reverse
	version of Bitmap. Error out if a Jump opcode jumps outside the current
	pc range. This works around #466151.

svn path=/branches/mono-2-2/mcs/; revision=123420
2009-01-14 21:37:31 +00:00
Mark Probst d8a160b7a4 2009-01-14 Mark Probst <[email protected]>
Backport of r123349.

	* method-to-ir.c: Handle delegate invocation optimization earlier,
	otherwise it would be handled (much more slowly) by the
	final/sealed optimization.

svn path=/branches/mono-2-2/mono/; revision=123351
2009-01-14 13:33:25 +00:00
Dean Brettle 6e8c67a141 ++ System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs: if there are any *.browser files in
	App_Data/Mono_Machine_Browsers/, use those instead of the default
	machine browser files.  This allows app developers to workaround
	limitations with Mono's default browser files without causing
	incompatibilities with MS's implementation.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
	in browser defs.  


svn path=/branches/mono-2-2/mcs/; revision=123257
2009-01-13 21:17:11 +00:00
Gonzalo Paniagua Javier 3c838b72eb 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpWebRequest.cs: keepAlive is of no use here.
	Fixes bug #465613.


svn path=/branches/mono-2-2/mcs/; revision=123253
2009-01-13 20:51:59 +00:00
Gonzalo Paniagua Javier a21f9bf1d7 2009-01-13 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: we were not writing the headers for 0-length
	responses.
	* WebConnectionStream.cs: for 204/304 responses with an explicit
	content-length of 0, release the socket only once.
	Fixes bug #465638.


svn path=/branches/mono-2-2/mcs/; revision=123251
2009-01-13 20:34:15 +00:00
Zoltan Varga bc979a3e55 2009-01-13 Zoltan Varga <[email protected]>
Backport of r123201.
	
	* marshal.c: Avoid setting the exception clauses after a method has been entered 
	into the wrapper caches. Fixes #465700.

	* method-builder.c (mono_mb_set_clauses): New function to set the clauses of the
	method builder.
	(mono_mb_create_method): Set the clauses from the method builder.

svn path=/branches/mono-2-2/mono/; revision=123203
2009-01-13 16:03:49 +00:00
Gonzalo Paniagua Javier 74a8df7e80 applied patch from bug #260588
svn path=/branches/mono-2-2/mcs/; revision=123175
2009-01-13 05:30:27 +00:00
Gonzalo Paniagua Javier 9daea760e4 applied patch from bug #260588
svn path=/branches/mono-2-2/mcs/; revision=123174
2009-01-13 05:28:08 +00:00
Gonzalo Paniagua Javier 6caf03c5f6 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: test deleting a file.


svn path=/branches/mono-2-2/mcs/; revision=123138
2009-01-12 22:06:14 +00:00
Gonzalo Paniagua Javier 47a9b8fe75 2009-01-12 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequest.cs: now deleting a file works when we're not in the
	root directory.


svn path=/branches/mono-2-2/mcs/; revision=123137
2009-01-12 22:05:25 +00:00
Zoltan Varga e6a5c4fec1 2008-12-16 Zoltan Varga <[email protected]>
Backport of r123092.
	
	* marshal.c (mono_marshal_get_synchronized_wrapper): Make the 
	initialization of the various _method variables thread safe. Fixes
	#465377.

svn path=/branches/mono-2-2/mono/; revision=123095
2009-01-12 17:03:23 +00:00
Marek Habersack 4462c4c8cf Backport of r123084.
svn path=/branches/mono-2-2/mcs/; revision=123086
2009-01-12 16:08:39 +00:00
Zoltan Varga 208db37519 2009-01-08 Zoltan Varga <[email protected]>
Backport of r122804.
	
	* method-to-ir.c (mono_method_to_ir): Fix the check for the mscorlib ldstr 
	optimization. Fixes #464520.

svn path=/branches/mono-2-2/mono/; revision=122920
2009-01-09 17:03:52 +00:00
Zoltan Varga 470791b186 2009-01-09 Zoltan Varga <[email protected]>
Backport of r122907.
	
	* CustomAttributeData.cs (ToString): Applied patch from Leszek Ciesielski
	<[email protected]>. Use DeclaringType.FullName instead of DeclaringType.Name.
	Fixes #464830.

svn path=/branches/mono-2-2/mcs/; revision=122909
2009-01-09 16:05:52 +00:00
Marek Habersack 3887d81f8e Backport of r122891.
svn path=/branches/mono-2-2/mcs/; revision=122892
2009-01-09 14:38:26 +00:00
Geoff Norton 11072be5ed 2009-01-08 Geoff Norton <[email protected]>
* processes.c: Fix the osx version check to properly detect 10.5 v 10.4

svn path=/branches/mono-2-2/mono/; revision=122853
2009-01-09 02:32:27 +00:00
Marek Habersack 4291f2a73b Backport of r122839.
svn path=/branches/mono-2-2/mcs/; revision=122841
2009-01-08 23:51:36 +00:00
Rusty Howell 5b8bf83ccd simple checkin to trigger build
svn path=/branches/mono-2-2/mono/; revision=122733
2009-01-08 02:15:25 +00:00
Zoltan Varga 1fd0386f87 2008-12-16 Zoltan Varga <[email protected]>
* class.c (mono_class_get_fields): Handle loading errors.

svn path=/branches/mono-2-2/mono/; revision=122714
2009-01-07 21:00:16 +00:00
Zoltan Varga 9de1e8b272 2009-01-07 Zoltan Varga <[email protected]>
Backport of 122702.
	
	* mini-arm.c (mono_arch_flush_icache): Use __GNUC_PREREQ instead of checking
	__GNUC_MINOR__ which can break when the major version changes.

svn path=/branches/mono-2-2/mono/; revision=122704
2009-01-07 20:10:21 +00:00
Zoltan Varga c02bd27e8f 2009-01-07 Zoltan Varga <[email protected]>
Backport of r122700.
	
	* RxInterpreter.cs: Add support for constant strings in anchors. Fixes
	#464135.

svn path=/branches/mono-2-2/mcs/; revision=122701
2009-01-07 19:51:33 +00:00
Rodrigo Kumpera c146e4e4fd In metadata:
Backport of r122672 - r122675.

	* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Double check the
	return value of GetCurrentDirectory to never access unitialized memory.

	* file-io.c (ves_icall_System_IO_MonoIO_GetCurrentDirectory): Properly check the
	return value of GetCurrentDirectory and expand the buffer if needed.

	Fixes #459094.

2009-01-07 Rodrigo Kumpera  <[email protected]>

In io-layer:
2009-01-07 Rodrigo Kumpera  <[email protected]>

	Backport of r122672 - r122675.

	* io.c (GetCurrentDirectory): Avoid calling g_get_current_dir straight
	away as it doesn't handle ENAMETOOLONG correctly. As a bonus we avoid
	allocating memory in the common path.

In tests:
2009-01-07 Rodrigo Kumpera  <[email protected]>

	Backport of r122672 - r122675.

	* bug-459094	.cs: New regression test.

	* Makefile.am: Test added.


svn path=/branches/mono-2-2/mono/; revision=122678
2009-01-07 17:18:06 +00:00
Rodrigo Kumpera 331427f067 In metadata:
2009-01-07 Rodrigo Kumpera  <[email protected]>

	Backport of r122579 - r122585.

	* verify.c (mono_class_interface_implements_interface): Verify parents as we can't rely on
	interfaces_packed here.

	Fixes part of #463294.

	* verify.c (is_array_type_compatible): Ignore bounds and sizes when checking array compatibility.

	Fixes part of #463294.

	* verify.c (stack_slot_is_complex_type_not_reference_type): Check if the type
	is a boxed complex as well.

	Fixes part of #463294.

In tests/verifier:
2009-01-07 Rodrigo Kumpera <[email protected]>

	Backport of r122579 - r122585.

	* valid_iface_constant_with_parent_implementing_it.il:
	Regression test for #461200.

	* valid_array_compat_with_bonds_and_sizes.il:
	* valid_array_compat_with_bounds.il:
	* valid_array_compat_with_sizes.il: Regression tests for 
	#461200.

	* valid_ceq_with_boxed_vt.il: Regression test for #461200.


svn path=/branches/mono-2-2/mono/; revision=122650
2009-01-07 12:48:50 +00:00
Geoff Norton 37bbac467f 2009-01-07 Geoff Norton <[email protected]>
* processes.c: Only use open -W on OSX 10.5+.  Patch from
        Miguel

svn path=/branches/mono-2-2/mono/; revision=122619
2009-01-07 06:32:03 +00:00
Rodrigo Kumpera 5161c62e10 2009-01-07 Rodrigo Kumpera <[email protected]>
* Vector*.cs: Use explicit layout to avoid the runtime
	miscalculating the size of vector types.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=122608
2009-01-07 04:10:17 +00:00
Gonzalo Paniagua Javier 9458c03da1 ignore test. Bug 464013
svn path=/branches/mono-2-2/mcs/; revision=122603
2009-01-07 02:54:15 +00:00
Zoltan Varga 6179d4a924 2009-01-07 Zoltan Varga <[email protected]>
* AsyncTest.cs: Disable these tests, they fail randomly (bug #463999).

svn path=/branches/mono-2-2/mcs/; revision=122600
2009-01-07 01:21:25 +00:00
Marek Safar 58216b41fb Put back temporary disabled fix.
svn path=/branches/mono-2-2/mcs/; revision=122578
2009-01-06 21:32:06 +00:00
Marek Safar 30a744498e Try to revert major Banshee bug fix.
svn path=/branches/mono-2-2/mcs/; revision=122501
2009-01-05 23:23:19 +00:00
Marek Safar c253f26bc3 Update.
svn path=/branches/mono-2-2/mcs/; revision=122473
2009-01-05 17:58:21 +00:00
Zoltan Varga 6017bcd4ae 2009-01-05 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Fix another assert introduced by
	the last change.

svn path=/branches/mono-2-2/mono/; revision=122472
2009-01-05 17:32:03 +00:00
Zoltan Varga 561cb241d9 2009-01-05 Zoltan Varga <[email protected]>
Backport of r122452.
	
	* mini.c (mono_allocate_stack_slots_full2): Use mono_class_from_mono_type
	instead of directly accessing type->data.klass. Fixes #462016.
	(mono_allocate_stack_slots_full): Ditto.

svn path=/branches/mono-2-2/mono/; revision=122453
2009-01-05 13:22:31 +00:00
Federico Di Gregorio 1fcf34271b Added missing property Extend to Mono.Cairo.Pattern
svn path=/branches/mono-2-2/mcs/; revision=122441
2009-01-05 12:09:40 +00:00
Marek Safar f2de867101 2009-01-05 Marek Safar <[email protected]>
A fix for bug #457257
	* decl.cs: Fixed incorrect member declaring type comparison.


svn path=/branches/mono-2-2/mcs/; revision=122439
2009-01-05 11:49:57 +00:00
Zoltan Varga 992e22f306 2009-01-05 Zoltan Varga <[email protected]>
* configure.in: Disable sigaltstack on freebsd as it doesn't seem to work.

svn path=/branches/mono-2-2/mono/; revision=122422
2009-01-05 09:12:31 +00:00
Zoltan Varga 0c65fe81ed 2009-01-05 Zoltan Varga <[email protected]>
Backport of r122416.
	
	* mini-arm.c (mono_arch_flush_icache): Applied patch from Riku Voipio 
	<[email protected]>. Fix cache flush on kernels without OLDABI compat option.

svn path=/branches/mono-2-2/mono/; revision=122417
2009-01-05 09:00:19 +00:00
Zoltan Varga 6887168dc2 2009-01-04 Zoltan Varga <[email protected]>
Backport of r122392.
	
	* branch-opts.c (mono_if_conversion): Fix an assert introduced by the last
	change.

svn path=/branches/mono-2-2/mono/; revision=122393
2009-01-04 18:48:29 +00:00
Zoltan Varga 87b0e91eff 2009-01-04 Zoltan Varga <[email protected]>
Backport of r122386.
	
	* branch-opts.c (mono_if_conversion): Use branch->inst_true_bb/inst_false_bb
	instead of bblock->out_bb [0]/[1], the two might not be the same. Fixes
	#463357.

	* iltests.il.in: Add a regression test.

svn path=/branches/mono-2-2/mono/; revision=122387
2009-01-04 01:54:44 +00:00
Zoltan Varga 883c60f9a9 2008-11-27 Mark Probst <[email protected]>
Backport of r120164.
	
	* marshal.c (mono_string_builder_to_utf8): Fixed a wrong
	invocation to g_utf16_to_utf8().

svn path=/branches/mono-2-2/mono/; revision=122373
2009-01-03 18:38:36 +00:00
Rodrigo Kumpera 1fc3eea4d1 2009-01-04 Rodrigo Kumpera <[email protected]>
Backport of r122364.

	* basic-simd.cs: Add a regression test for #462457.




svn path=/branches/mono-2-2/mono/; revision=122367
2009-01-03 15:16:52 +00:00
Rodrigo Kumpera ce5e64372c 2009-01-04 Rodrigo Kumpera <[email protected]>
Backport of r122363.

	* mini-ops.h: Add a definition of XPHI.

	* mini.h (MONO_IS_PHI): Make is aware of simd instrincs. 

	* ssa.c (op_phi_to_move): Handle XPHI.

	* ssa.c (mono_ssa_compute): Generate a XPHI for simd intrinsics instead of VPHI.

	Fixes #462457


svn path=/branches/mono-2-2/mono/; revision=122366
2009-01-03 15:16:21 +00:00
Marek Safar eb766b843d 2009-01-02 Marek Safar <[email protected]>
A fix for bug #463121
	* nullable.cs: Fixed nullable user quality operator comparison.


svn path=/branches/mono-2-2/mcs/; revision=122346
2009-01-02 17:48:33 +00:00
Marek Safar dbb88b930b 2009-01-02 Marek Safar <[email protected]>
A fix for bug #462592
	* pending.cs: Emit type arguments for generic proxy method.


svn path=/branches/mono-2-2/mcs/; revision=122331
2009-01-02 12:58:07 +00:00
Massimiliano Mantione 701ec25f87 Merged the profiler documentation from trunk (r122288).
svn path=/branches/mono-2-2/mono/; revision=122290
2008-12-31 11:19:53 +00:00
Massimiliano Mantione 56157b091b Make the profiler like r122287 on trunk.
svn path=/branches/mono-2-2/mono/; revision=122289
2008-12-31 11:19:08 +00:00
Marek Safar 91506c541c 2008-12-30 Marek Safar <[email protected]>
* expression.cs (As): Mutate all type arguments.


svn path=/branches/mono-2-2/mcs/; revision=122233
2008-12-30 11:41:14 +00:00
Marek Safar 5deb2e0f97 2008-12-29 Marek Safar <[email protected]>
A fix for bug #462622
	* anonymous.cs: Resolve anonymous type GetHashCode in unchecked
	context.


svn path=/branches/mono-2-2/mcs/; revision=122179
2008-12-29 11:24:29 +00:00
Marek Safar f0bac9e0b7 2008-12-29 Marek Safar <[email protected]>
A fix for bug #450782
	* ecore.cs: Consider more variables of form V.I to be fixed.


svn path=/branches/mono-2-2/mcs/; revision=122178
2008-12-29 09:34:02 +00:00
Zoltan Varga 6d9fa806ea 2008-12-29 Zoltan Varga <[email protected]>
Backport of r122170.

	* mini.c (mono_jit_compile_method_inner): Avoid holding the domain lock
	while loading AOT methods.

svn path=/branches/mono-2-2/mono/; revision=122171
2008-12-29 01:14:57 +00:00
Zoltan Varga 2ee594eee6 2008-12-29 Zoltan Varga <[email protected]>
Backport of r122168.
	
	* mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
	since only the former is nulled out after a successful cast. This prevents
	crashes with rethrown exceptions when using --debug=casts.

svn path=/branches/mono-2-2/mono/; revision=122169
2008-12-29 00:57:10 +00:00
Rodrigo Kumpera fd92d87ed0 2008-12-26 Rodrigo Kumpera <[email protected]>
Backport of r122134.

	* bug-461261.cs: New regression test.

	* Makefile.am: Test added.


svn path=/branches/mono-2-2/mono/; revision=122137
2008-12-26 19:44:13 +00:00
Rodrigo Kumpera 2bc209f4f4 2008-12-26 Rodrigo Kumpera <[email protected]>
Backport of r122133.

	* class.c (get_implicit_generic_array_interfaces): If the internal
	enumerator is an interface inflate System.Object instead of itself.

	Fixes #461261.


svn path=/branches/mono-2-2/mono/; revision=122136
2008-12-26 19:36:34 +00:00
Mark Probst f73e839351 2008-12-24 Mark Probst <[email protected]>
Backport of r122086.

	* mini.h: New macro for checking whether a method is final,
	i.e. whether the method or its class is marked final.

	* method-to-ir.c: Use the new macro for all final-checks
	consistently.  Fixes the crash in the System.ServiceModel tests.

2008-12-24  Mark Probst  <[email protected]>

	Backport of r122086.

	* generic-sealed-virtual.2.cs: Test case for final generic
	methods.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=122087
2008-12-24 11:43:01 +00:00
Mark Probst f6e12de276 2008-12-24 Mark Probst <[email protected]>
* mini-ppc.c (mono_arch_build_imt_thunk): Fix the build.

svn path=/branches/mono-2-2/mono/; revision=122079
2008-12-24 09:19:42 +00:00
Rodrigo Kumpera e5af45cdb3 2008-12-24 Rodrigo Kumpera <[email protected]>
Backport of r122071.

	* bug-461941.cs: New regression test.

	* Makefile.am: Test added.


svn path=/branches/mono-2-2/mono/; revision=122076
2008-12-24 05:00:44 +00:00
Rodrigo Kumpera 2491b3dbb2 2008-12-24 Rodrigo Kumpera <[email protected]>
Backport of r122070.

	* object.c (mono_runtime_invoke_array): Don't assert with
	byref nullable types.

	* marshal.c (mono_marshal_get_runtime_invoke): To handle
	byref nullables we unbox the object and store it on the
	stack. 
	We can't use the boxed object since it is the T of Nullable<T>
	and the boxed representation of a nullable it's underlying type
	or null.
	We could cheat and create a boxed nullable and use the same
	machinery of other byref VTs but this feels like a hack and
	using the stack has the bonus of reducing heap pressure.

	Fixes #461941.


svn path=/branches/mono-2-2/mono/; revision=122075
2008-12-24 04:58:24 +00:00
Mark Probst ef11247772 2008-12-23 Mark Probst <[email protected]>
Backport of r122034.

	* mini-ppc.c (mono_arch_build_imt_thunk): Save and restore r11.
	Clobbering it is not allowed because the caller might use it as
	the vtable register in the interface call.

svn path=/branches/mono-2-2/mono/; revision=122058
2008-12-23 20:54:22 +00:00
Mark Probst 370bf41989 2008-12-23 Mark Probst <[email protected]>
* mini-exceptions.c (get_exception_catch_class): Removed another
	overly strict assertion.  Fixes #461198.

2008-12-23  Mark Probst  <[email protected]>

	* bug-461198.2.cs: New generic sharing test.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=122040
2008-12-23 16:10:40 +00:00
Rodrigo Kumpera 9e79a22008 2008-12-23 Rodrigo Kumpera <[email protected]>
Backport of r122036.

	* bug-461867.cs: New regression test.

	* Makefile.am: Test added.


svn path=/branches/mono-2-2/mono/; revision=122039
2008-12-23 15:37:32 +00:00
Rodrigo Kumpera da54730380 2008-12-23 Rodrigo Kumpera <[email protected]>
Backport of r122035.

 	* marshal.c (mono_marshal_emit_managed_wrapper): Handle char
 	return value.
 
 	Fixes #461867.


svn path=/branches/mono-2-2/mono/; revision=122038
2008-12-23 15:37:02 +00:00
Ivan Zlatev 3a433af16e 2008-12-22 Ivan N. Zlatev <[email protected]>
* ReferenceConverter.cs: Implemented.
	* ReferenceConverterTest.cs: Added.
	[Fixes bug #381435]

svn path=/branches/mono-2-2/mcs/; revision=122033
2008-12-23 10:52:51 +00:00
Veerapuram Varadhan 6fdda55b42 * SqlXmlTest.cs: Available only in 2.0 and above
svn path=/branches/mono-2-2/mcs/; revision=122008
2008-12-22 20:50:59 +00:00
Jonathan Pobst cdc69e8e9e Backport Ivan's patch to 2.2.
2008-11-30  Ivan N. Zlatev  <[email protected]>

	* GroupBoxRenderer.cs: Fix when VisualStyles disabled:
	   - No caption text is drawn because Color.Empty is used.
	   - Fix top and height off by 1.
	[Fixes bug #448764]

svn path=/branches/mono-2-2/mcs/; revision=121993
2008-12-22 18:30:50 +00:00
Veerapuram Varadhan d67fd7ce3a Add new SqlXmlTest
svn path=/branches/mono-2-2/mcs/; revision=121960
2008-12-21 03:45:53 +00:00
Veerapuram Varadhan d195b62b9d * SqlXml.cs (CreateReader): Better use
ConformanceLevel.Fragment while creating the reader as column
        values are not really Xml documents.  Also, throw
        SqlNullValueException when data is null.
        (.ctor): Take good care of empty XmlReaders.



svn path=/branches/mono-2-2/mcs/; revision=121959
2008-12-21 03:41:39 +00:00
Miguel de Icaza 3e90298aa1 Backport
svn path=/branches/mono-2-2/mcs/; revision=121935
2008-12-20 19:19:00 +00:00
Miguel de Icaza 8ae9f4eace Backport to 2.2
svn path=/branches/mono-2-2/mcs/; revision=121933
2008-12-20 19:15:12 +00:00
Mark Probst 08038cbf3b 2008-12-19 Mark Probst <[email protected]>
* mini-exceptions.c (get_exception_catch_class): Removed overly
	strict assertion.

2008-12-19  Mark Probst  <[email protected]>

	* bug-459285.2.cs: New generic sharing test.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=121840
2008-12-19 12:42:38 +00:00
Mark Probst 7e7c65d58f 2008-12-19 Mark Probst <[email protected]>
Backport of r121292.

        * method-to-ir.c: Removed an unnecessary assertion.

2008-12-19  Mark Probst  <[email protected]>

        Backport of r121292.

        * metadata/generic-sharing.c: Look for constraints in all type
        arguments, not just the first one.

2008-12-19  Mark Probst  <[email protected]>

        Backport of r121292.

        * generic-marshalbyref.2.cs: Test for calls to marshal-by-ref
        objects.

        * Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=121836
2008-12-19 10:39:22 +00:00
Gonzalo Paniagua Javier 4bf06608d3 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* HttpConnection.cs: remove CWL. When reusing, BeginReadRequest might
	throw if the client closes.
	* HttpListenerResponse.cs: close the connection for 1.0 clients.

	Backported from HEAD. Fixes bug #459432.

svn path=/branches/mono-2-2/mcs/; revision=121830
2008-12-19 04:38:03 +00:00
Marek Habersack 3aad6c2f07 Backport of r121819.
svn path=/branches/mono-2-2/mcs/; revision=121820
2008-12-18 23:39:41 +00:00
Marek Safar 26f04c283d 2008-12-18 Marek Safar <[email protected]>
A fix for bug #457087
	* generic.cs: Don't crash when constraint comes from type
	declaration.


svn path=/branches/mono-2-2/mcs/; revision=121769
2008-12-18 10:57:12 +00:00
Marek Habersack e03981495b Backport of r121752.
svn path=/branches/mono-2-2/mcs/; revision=121753
2008-12-18 01:19:10 +00:00
Veerapuram Varadhan 0f766fceaf * OciDefineHandle.cs (GetValue): Use connection's environment
handle instead of Parent handle.


svn path=/branches/mono-2-2/mcs/; revision=121734
2008-12-17 23:09:58 +00:00
Geoff Norton cd51852dd8 2008-12-17 Geoff Norton <[email protected]>
* threadpool.c: Ensure that the io_queue_lock is initialized
        in all circumstances, as we always attempt to cleanup against it.

svn path=/branches/mono-2-2/mono/; revision=121724
2008-12-17 20:10:09 +00:00
Miguel de Icaza 0a5a292db4 Backport 2008-12-17 Miguel de Icaza <[email protected]>
* icall.c (ves_icall_System_Environment_get_Platform): For
	compatibility reasons for existing client code we will keep
	returning 4 for a while.   

	For how long will depend on the documentation being updated, and
	for us to give client code a chance to be updated.

	This reverts the original decison on #433108 since we did not
	catch roughly 33 instances of the broken code in our own source
	code base, we did not catch failures on the buildbots, and QA did
	not bring this as a problem.

	Only today I found some customer's code breaking due to our own
	class libraries not being fully updated and tracked it down to
	this change.  I am reverting it because if we could not even get
	our story straight in our own code base, how can we hope that our
	end user code be fixed?

	As of this morning, our Wiki page that documents how to detect
	Unix had not been fixed.    

svn path=/branches/mono-2-2/mono/; revision=121716
2008-12-17 18:14:40 +00:00
Rolf Bjarne Kvinge b3c5bdfa7f 2008-12-12 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am, vbnc.1: Remove vbnc.1. It's living in the
	  mono-basic module now.

	  [Backport of r121406.]


svn path=/branches/mono-2-2/mono/; revision=121678
2008-12-17 12:08:43 +00:00
Martin Baulig fc77b903af 2008-12-16 Martin Baulig <[email protected]>
Backport of r120438.

	* method-to-ir.c (mono_method_to_ir): Disable debugging
	information for the init locals block to make the debugger stop
	after all locals have been initalized.


svn path=/branches/mono-2-2/mono/; revision=121640
2008-12-16 22:08:59 +00:00
Martin Baulig ff74079dc1 2008-12-02 Martin Baulig <[email protected]>
Backport of r120419.

	* mini.c (mini_method_compile): Disable MONO_OPT_DEADCE when
	running inside the debugger.


svn path=/branches/mono-2-2/mono/; revision=121639
2008-12-16 22:06:18 +00:00
Martin Baulig ed3174a8b7 2008-12-16 Martin Baulig <[email protected]>
Backport of r120407 from Zoltan Varga.

	* mini.c (mini_method_compile): Only run local deadce if MONO_OPT_DEADCE
	is enabled.

	* method-to-ir.c (mono_method_to_ir): Fix invalid code generated by the 
	alu->alu imm optimization which only shows if deadce is disabled.


svn path=/branches/mono-2-2/mono/; revision=121638
2008-12-16 22:03:08 +00:00
Marek Habersack 4485172658 Backport of r121636.
svn path=/branches/mono-2-2/mcs/; revision=121637
2008-12-16 22:01:42 +00:00
Martin Baulig 7ca53d801a 2008-11-29 Martin Baulig <[email protected]>
Backport of r120260.

	* mini-exceptions.c (mono_handle_native_sigsegv): Check
	mono_debug_using_mono_debugger() in addition to the
	`no_gdb_backtrace' flag in the `MonoDebugOptions'.


svn path=/branches/mono-2-2/mono/; revision=121635
2008-12-16 21:51:34 +00:00
Marek Habersack b34dcd83c4 Backport of r121629.
svn path=/branches/mono-2-2/mono/; revision=121630
2008-12-16 21:06:06 +00:00
Gonzalo Paniagua Javier 07d8da1481 revert
svn path=/branches/mono-2-2/mcs/; revision=121628
2008-12-16 20:38:58 +00:00
Marek Habersack ae5b023940 Backport of r121621.
svn path=/branches/mono-2-2/mcs/; revision=121622
2008-12-16 19:00:52 +00:00
Zoltan Varga 9fa4d42782 2008-12-14 Zoltan Varga <[email protected]>
Backport of r120389.
	
	* method-to-ir.c (mono_method_to_ir): Set the type of the value pushed on
	the stack in CEE_LDFLDA. Fixes #450542.

	* generics.cs: Add a new test.

svn path=/branches/mono-2-2/mono/; revision=121564
2008-12-16 00:11:01 +00:00
Marek Habersack 98bcd46dd1 Backport of r121557.
svn path=/branches/mono-2-2/mono/; revision=121560
2008-12-15 22:44:51 +00:00
Zoltan Varga c373ddd111 2008-12-14 Zoltan Varga <[email protected]>
Backport of r121496.
	
	* liveness.c (mono_analyze_liveness): Avoid eliminating the 'this' var in
	gshared code. Fixes #458947.

	* generics.cs: Add a test.

svn path=/branches/mono-2-2/mono/; revision=121497
2008-12-14 09:50:57 +00:00
Zoltan Varga b93c12250d 2008-12-12 Zoltan Varga <[email protected]>
Backport of r121457.
	
	* mini-arm.c tramp-arm.c: Fix calls to mono_arch_flush_icache.

svn path=/branches/mono-2-2/mono/; revision=121458
2008-12-12 19:51:40 +00:00
Dean Brettle 67a9b038c5 Changes approved via private email from Marek Habersack <[email protected]> on 2008-10-05.
In System.Web.Configuration_2.0:
2008-12-11  Owen Brady <[email protected]>
	* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
	nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs, 
	CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
	
	* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
	it is referring too was never included in Mono. And was designed for a free standing 
	browser identification libary.

	* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
	in from the original free standing browser libary.
	
	* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
	for the Mono implementation.

	* CapabilitiesResult.cs: Updated Copyright information to include updated contact information. 
	Removed functions which were designed to make use of features of a embeded browser file which
	is not present in Mono.
	
	* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted

In .:
2008-12-11  Dean Brettle  <[email protected]>

	* System.Web.dll.sources: deleted
	System.Web.Configuration_2.0/CapabilitiesChecksum.cs
	
	* Makefile (RESOURCE_FILES_2): deleted
	System.Web.Configuration_2.0/RandomRoboBotKeywords.txt


svn path=/branches/mono-2-2/mcs/; revision=121384
2008-12-12 00:52:06 +00:00
Rodrigo Kumpera dc330f3d57 In tests:
2008-12-08  Rodrigo Kumpera  <[email protected]>

	* bug457574.il: New regression test.

	* Makefile.am: Test added.

	Backported from trunk r121174.

In mini:
2008-12-10  Rodrigo Kumpera  <[email protected]>

	* ssa.c (fold_ins): branch opt can kill dummy switch ops so we can't
	expect that an OP_BR_REG will be there.

	* branch-opts.c (remove_block_if_useless): Use MONO_IS_BRANCH_OP instead of checking
	for the many branch ops. The original check miss OP_BR_REG.

	Fixes #457574.

	Backported from trunk r121173 and r121175


svn path=/branches/mono-2-2/mono/; revision=121210
2008-12-10 13:09:08 +00:00
Zoltan Varga 9fe47f55e3 2008-12-09 Zoltan Varga <[email protected]>
Backport of r121150.
	
	* aot-runtime.c (load_method): Avoid calling decode_exception_debug_info
	while holding the aot lock.

svn path=/branches/mono-2-2/mono/; revision=121152
2008-12-09 20:14:00 +00:00
Andrés G. Aragoneses 657e5df419 fix changelog
svn path=/branches/mono-2-2/mcs/; revision=121118
2008-12-09 17:08:37 +00:00
Zoltan Varga 1511ce89c6 2008-12-09 Zoltan Varga <[email protected]>
Backport of r121103.
	
	* aot-runtime.c (decode_exception_debug_info): Acquire the domain
	lock when calling mono_domain_alloc (). Hopefully fixes #415608.

svn path=/branches/mono-2-2/mono/; revision=121104
2008-12-09 16:07:01 +00:00
Marek Habersack 05e0f11430 Backport of r121064.
svn path=/branches/mono-2-2/mcs/; revision=121065
2008-12-08 23:44:55 +00:00
Zoltan Varga 06cddce9b0 2008-12-08 Zoltan Varga <[email protected]>
Backport of r120999.
	
	* mini-exceptions.c (mono_print_thread_dump): Mark threadpool threads
	as such. Fixes #456669.

svn path=/branches/mono-2-2/mono/; revision=121000
2008-12-08 15:03:39 +00:00
Zoltan Varga 3e3c9edc91 2008-12-08 Zoltan Varga <[email protected]>
Backport of r120995.
	
	* SQLite3.cs: Avoid IntPtr.ToInt32 () to convert between IntPtr's and integers
	since it is not 64 bit safe. Fixes #457038.

svn path=/branches/mono-2-2/mcs/; revision=120996
2008-12-08 14:50:59 +00:00
Marek Habersack 24d7fea4ca Backport of r120988.
svn path=/branches/mono-2-2/mcs/; revision=120989
2008-12-08 12:04:01 +00:00
Marek Habersack 691a2cf225 Backport of r120880
svn path=/branches/mono-2-2/mono/; revision=120883
2008-12-05 20:37:26 +00:00
Marek Habersack 296607e9b1 Fix a test run issue for 1.1
svn path=/branches/mono-2-2/mcs/; revision=120860
2008-12-05 18:05:44 +00:00
Gonzalo Paniagua Javier ee79b6f908 2008-12-05 Gonzalo Paniagua Javier <[email protected]>
* Tds70.cs: support parameter names with or without a leading '@'.


svn path=/branches/mono-2-2/mcs/; revision=120855
2008-12-05 17:18:56 +00:00
Marek Habersack 9844a237ea Backport of r120823.
svn path=/branches/mono-2-2/mcs/; revision=120825
2008-12-05 12:01:37 +00:00
Marek Habersack 9a817effa9 Backport of r120822.
svn path=/branches/mono-2-2/mcs/; revision=120824
2008-12-05 12:00:14 +00:00
Miguel de Icaza 9a2e1ccef4 Backport ReaderWriterLockSlim for MEF
svn path=/branches/mono-2-2/mcs/; revision=120768
2008-12-04 22:03:09 +00:00
Zoltan Varga fbfb1742ed 2008-12-04 Zoltan Varga <[email protected]>
Backport of r120756.
	
	* aot-compiler.c (add_wrappers): Add pinvoke wrappers.

	* mini.c (mono_resolve_patch_target): Allow pinvoke methods in 
	MONO_PATCH_INFO_ICALL_ADDR.

svn path=/branches/mono-2-2/mono/; revision=120757
2008-12-04 21:04:20 +00:00
Zoltan Varga 547f83ca27 2008-12-04 Zoltan Varga <[email protected]>
* marshal.c (mono_marshal_emit_native_wrapper): Add AOT support for pinvoke
	wrappers by emitting the function address using a CEE_MONO_ICALL_ADDR 
	instruction instead of a pointer constant.

svn path=/branches/mono-2-2/mono/; revision=120750
2008-12-04 20:48:32 +00:00
Marek Safar 73bd2d2941 2008-12-03 Marek Safar <[email protected]>
* typemanager.cs, namespace.cs, driver.cs: Allow ExtensionAttribute
	to be imported from any assembly.


svn path=/branches/mono-2-2/mcs/; revision=120629
2008-12-03 19:49:33 +00:00
Gonzalo Paniagua Javier e6a317bc40 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
* UdpClientTest.cs: test closing a UDP socket while receiving.


svn path=/branches/mono-2-2/mcs/; revision=120605
2008-12-03 15:35:50 +00:00
Gonzalo Paniagua Javier bfdcf61509 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
* UdpClient.cs: don't Poll() in Receive(), the call to ReceiveFrom
	will block anyway. Fixes bug #455894.

2008-11-12 Gonzalo Paniagua Javier <[email protected]>

	* Socket.cs: mark the socket as not connected when there is a pending
	error or exception about to be thrown.
	Bug #443346 fixed.


svn path=/branches/mono-2-2/mcs/; revision=120602
2008-12-03 15:33:28 +00:00
Mark Probst a1f8c0800d 2008-12-03 Mark Probst <[email protected]>
Backport of r120589.

	* method-to-ir.c (mono_method_to_ir): Handle ldtoken of an open
	generic type (via a typedef or typeref) correctly.

2008-12-03  Mark Probst  <[email protected]>

	Backport of r120589.

	* generic-typedef.2.cs: New test for ldtoken of open generic
	types.

	* Makefile.am: Test added.

svn path=/branches/mono-2-2/mono/; revision=120595
2008-12-03 14:22:24 +00:00
Marek Habersack 861c4f8f12 Backport of r120592.
svn path=/branches/mono-2-2/mcs/; revision=120593
2008-12-03 13:55:22 +00:00
Marek Habersack 7af8c9351d Backport of r120590.
svn path=/branches/mono-2-2/mcs/; revision=120591
2008-12-03 13:33:22 +00:00
Rodrigo Kumpera 7155c65bfd 2008-12-03 Rodrigo Kumpera <[email protected]>
* mono-property-hash.c (mono_property_hash_destroy): Release
	the root hashtable as well.

	Backported from trunk.


svn path=/branches/mono-2-2/mono/; revision=120587
2008-12-03 12:31:09 +00:00
Gonzalo Paniagua Javier f20c4ece0c 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* AspParser.cs: reset to the next character in a partial match in case
	of failure. Fixes bug #314688.

svn path=/branches/mono-2-2/mcs/; revision=120552
2008-12-03 00:17:54 +00:00
Gonzalo Paniagua Javier 45efaf51b3 2008-12-02 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: make sure we don't return null in Title.


svn path=/branches/mono-2-2/mcs/; revision=120551
2008-12-03 00:17:25 +00:00
Marek Habersack de0321f109 Backport of r120545.
svn path=/branches/mono-2-2/mono/; revision=120546
2008-12-02 23:13:43 +00:00
Zoltan Varga 71864e55c4 2008-12-03 Zoltan Varga <[email protected]>
Backport of r120543.
	
	* mini-trampolines.c (mono_magic_trampoline): Add some debugging code to help
	diagnose an assertion failure.

svn path=/branches/mono-2-2/mono/; revision=120544
2008-12-02 23:04:35 +00:00
Miguel de Icaza 92aa367629 backport the fix for erase/delete for OSX
svn path=/branches/mono-2-2/mcs/; revision=120539
2008-12-02 21:57:01 +00:00
Marek Habersack a7e3109c66 Backport of r120485.
svn path=/branches/mono-2-2/mcs/; revision=120486
2008-12-02 14:28:23 +00:00
Marek Habersack 0c68cd806a Backport of r120442.
svn path=/branches/mono-2-2/mcs/; revision=120444
2008-12-02 01:36:46 +00:00
Marek Habersack 8098dbe758 Backport of r120436.
svn path=/branches/mono-2-2/mcs/; revision=120437
2008-12-02 01:08:01 +00:00
Rodrigo Kumpera 50619fe4f4 2008-12-01 Rodrigo Kumpera <[email protected]>
* main.c (get_uninitialized_data_type): Make crappy static analyzers happy.

	Backported from trunk.


svn path=/branches/mono-2-2/mono/; revision=120417
2008-12-01 23:28:37 +00:00
Marek Habersack b4c5181a77 Backport of r120376.
svn path=/branches/mono-2-2/mcs/; revision=120377
2008-12-01 19:33:50 +00:00
Marek Habersack f20b93ecf7 Backport of r120353.
svn path=/branches/mono-2-2/mcs/; revision=120354
2008-12-01 14:45:31 +00:00
Marek Habersack 2023460027 Backport of r120345.
svn path=/branches/mono-2-2/mcs/; revision=120346
2008-12-01 12:35:03 +00:00
Zoltan Varga d44a27c9e1 2008-11-29 Zoltan Varga <[email protected]>
Backport of r120273.
	
	* mini.h aot-runtime.c: Fix building with DISABLE_AOT.

svn path=/branches/mono-2-2/mono/; revision=120283
2008-11-29 20:28:25 +00:00
Zoltan Varga cf1ccdc254 2008-11-29 Zoltan Varga <[email protected]>
Backport of r120273.
	
	* mini.h aot-runtime.c: Fix building with DISABLE_AOT.

svn path=/branches/mono-2-2/mono/; revision=120274
2008-11-29 17:00:46 +00:00
Marek Habersack ce427d5af1 Backport of r120199
svn path=/branches/mono-2-2/mcs/; revision=120200
2008-11-28 01:44:16 +00:00
Marek Habersack a78027248b Backport of r120047
svn path=/branches/mono-2-2/mcs/; revision=120107
2008-11-27 02:04:58 +00:00
Gonzalo Paniagua Javier 7d3335da20 2008-11-25 Gonzalo Paniagua Javier <[email protected]>
* pedump.c: initialize perf. counters. Fixes a segv.


svn path=/branches/mono-2-2/mono/; revision=119980
2008-11-25 17:41:38 +00:00
Marek Safar a21f8151eb 2008-11-25 Marek Safar <[email protected]>
A fix for bug #447027
	* anonymous.cs (HoistedVariable): Cache also outer access to deal
	with context variables stored as expression instances.


svn path=/branches/mono-2-2/mcs/; revision=119967
2008-11-25 16:29:53 +00:00
Gonzalo Paniagua Javier ddb21259f1 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpWebRequestTest.cs: the upload test now passes with the MS
	runtime. Added another test for download.



svn path=/branches/mono-2-2/mcs/; revision=119913
2008-11-25 02:13:22 +00:00
Gonzalo Paniagua Javier 2664cc24dc 2008-11-13 Gonzalo Paniagua Javier <[email protected]>
* FtpDataStream.cs: use the socket for reading until the end of a
	stream that wasn't read entirely. Remove unused ManualResetEvent.
	* FtpWebRequest.cs: set the file_name when downloading. Update the
	response status after every SendCommand. Send a "OPTS utf8 on" as MS
	does (the control cnc reader should do something with UTF8)


svn path=/branches/mono-2-2/mcs/; revision=119912
2008-11-25 02:10:49 +00:00
Marek Habersack f445544ba8 those need to be in there as well
svn path=/branches/mono-2-2/mcs/; revision=119911
2008-11-25 01:47:27 +00:00
Marek Habersack fe7bbc9da1 This needs to be here too :P
svn path=/branches/mono-2-2/mcs/; revision=119910
2008-11-25 01:46:30 +00:00
Marek Habersack 1b3d62f26e This needs to be here too :P
svn path=/branches/mono-2-2/mcs/; revision=119909
2008-11-25 01:44:55 +00:00
Marek Habersack 1b578615c6 Backport of r119699
svn path=/branches/mono-2-2/mcs/; revision=119908
2008-11-25 01:28:55 +00:00
Marek Habersack 54c0e1e47f Backport of r119893
svn path=/branches/mono-2-2/mcs/; revision=119906
2008-11-25 01:27:45 +00:00
Marek Habersack cd105f51c1 Backport of r119800
svn path=/branches/mono-2-2/mcs/; revision=119905
2008-11-25 01:27:24 +00:00
Marek Habersack af1e7f3096 Backport of r119673
svn path=/branches/mono-2-2/mcs/; revision=119904
2008-11-25 01:26:37 +00:00
Marek Habersack 544c381f9f Backport of r119661
svn path=/branches/mono-2-2/mcs/; revision=119902
2008-11-25 01:23:35 +00:00
Marek Habersack 64c2b9fea8 Backport of r119126
svn path=/branches/mono-2-2/mcs/; revision=119901
2008-11-25 01:22:48 +00:00
Marek Habersack ad443c3edf Backport of r119378
svn path=/branches/mono-2-2/mcs/; revision=119898
2008-11-25 01:10:41 +00:00
Marek Habersack f83478e9f0 Backport of r119269
svn path=/branches/mono-2-2/mcs/; revision=119897
2008-11-25 01:10:13 +00:00
Marek Habersack 6ff666ba9f Backport of r119233
svn path=/branches/mono-2-2/mcs/; revision=119896
2008-11-25 01:09:43 +00:00
Marek Habersack 5a4faa0dbe Backport of r119130
svn path=/branches/mono-2-2/mcs/; revision=119895
2008-11-25 01:09:06 +00:00
Marek Habersack 560afb2c8c Backport of r118917
svn path=/branches/mono-2-2/mcs/; revision=119894
2008-11-25 01:08:29 +00:00
Marek Habersack df6dcb4bc3 Backport of r119827
svn path=/branches/mono-2-2/mcs/; revision=119829
2008-11-24 18:48:26 +00:00
Jonathan Pobst ae55ffa9b3 2008-11-24 Jonathan Pobst <[email protected]>
* Form.cs: Don't change min/max size if it is empty.
	[Fixes bug #447873]

2008-11-23  Jonathan Pobst  <[email protected]>

	* FormTest.cs: Add test for bug #447873.

svn path=/branches/mono-2-2/mcs/; revision=119813
2008-11-24 17:05:25 +00:00
Jonathan Pobst 3fd6b5713d 2008-11-21 Jonathan Pobst <[email protected]>
* XPlatUI.cs: Take new Platform.MacOSX into account.
	[Fixes bug #447663]

svn path=/branches/mono-2-2/mcs/; revision=119638
2008-11-21 17:07:43 +00:00
Rodrigo Kumpera 71fbfc7a0a 2008-11-21 Rodrigo Kumpera <[email protected]>
* icall.c (mono_method_get_equivalent_method): Make sure
	method->klass->methods is inited before looping over it.

	Backported from trunk.


svn path=/branches/mono-2-2/mono/; revision=119613
2008-11-21 14:15:07 +00:00
Andreia Gaita 2d97201acc * Mono.Mozilla/DOM/ContentListener.cs: Added (oops)
2008-11-21  Andreia Gaita <[email protected]>

svn path=/branches/mono-2-2/mcs/; revision=119612
2008-11-21 14:06:56 +00:00
Andreia Gaita d6717fd548 * System.Drawing/Image.cs: On win32, when cloning images initialized from
resources, also clone the underlying stream, since it needs to stay
  around for the life of the image (gdi doesn't clone the underlying
  stream when cloning images, so when the gc disposes the original, it
  will also dispose the stream, which invalidates the clone).

* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
  clone under win32

* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
  clone under win32

[fixes #438886, Backported from r119580]

2008-11-21  Andreia Gaita  <[email protected]>

svn path=/branches/mono-2-2/mcs/; revision=119581
2008-11-21 05:50:55 +00:00
Jonathan Pobst 4e17e21b2a 2008-11-20 Jonathan Pobst <[email protected]>
* ComboBox.cs: Call HideWindow instead of Hide when closing the dropdown
	through DroppedDown so the proper events get called and state gets reset.
	[Fixes bug #446805]

svn path=/branches/mono-2-2/mcs/; revision=119561
2008-11-21 00:23:09 +00:00
Andreia Gaita 3dc556e23b * Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: Support script
execution directly in the browser object
  [Backported, r118685]

2008-11-20  Andreia Gaita <[email protected]>

svn path=/branches/mono-2-2/mcs/; revision=119494
2008-11-20 19:19:56 +00:00
Andreia Gaita 24b03dbeb3 * Mono.Mozilla/DOM/Node.cs, Mono.Mozilla/DOM/Window.cs: Fix equality
operators
  [Backported, r118684, r119336]

2008-11-20  Andreia Gaita <[email protected]>

svn path=/branches/mono-2-2/mcs/; revision=119493
2008-11-20 19:19:51 +00:00
Andreia Gaita ce37fb5dfb * Mono.WebBrowser.dll.sources, Mono.WebBrowser2K5.csproj,
Mono.Mozilla/interfaces/nsIURIContentListener.cs,
  Mono.Mozilla/DOM/ContentListener.cs: New class added to listen for load
  requests and handle content types
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: New
  NavigationRequested event to catch load requests

[Backported, r118617]

2008-11-20  Andreia Gaita <[email protected]>

svn path=/branches/mono-2-2/mcs/; revision=119492
2008-11-20 19:19:47 +00:00
Zoltan Varga f4bb6280cd 2008-11-20 Zoltan Varga <[email protected]>
Backport of r119444.
	
	* arm/Makefile.am (libmonoarch_arm_la_SOURCES): Don't build tramp.c, it is only
	used by the interpreter.

svn path=/branches/mono-2-2/mono/; revision=119445
2008-11-20 14:30:04 +00:00
Zoltan Varga bc76b7d785 2008-11-20 Zoltan Varga <[email protected]>
Backport of r119398.
	
	* pinvoke2.cs: Add a test for passing/receiving generic struct instances.

svn path=/branches/mono-2-2/mono/; revision=119400
2008-11-20 00:22:29 +00:00
Zoltan Varga e538bc771d 2008-11-20 Zoltan Varga <[email protected]>
Backport of r119397.
	
	* marshal.c: Add support for MONO_TYPE_GENERICINST to some functions.
	Fixes #444715. Fix a warning.

svn path=/branches/mono-2-2/mono/; revision=119399
2008-11-20 00:21:27 +00:00
Jonathan Pryor 5334d00d47 * Makefile.am (EXTRA_DIST): Add mono-file-formats{.config,.source} and
mono-tools{.config,.source} (fixes the build).

svn path=/branches/mono-2-2/mono/; revision=119304
2008-11-19 13:09:00 +00:00
Jonathan Pryor e43c207e12 * docs.make, Makefile.am: Build mono-file-formats{.tree,.zip},
mono-tool{.tree,.zip} files.
	* mono-file-formats.config, mono-tools.config: Alter paths to man
	  pages so that they're valid for building from mono/docs.
	* monoapi.make: Rename to docs.make.

svn path=/branches/mono-2-2/mono/; revision=119260
2008-11-19 02:27:54 +00:00
Jonathan Pryor ea6508481f * docs/Makefile: Don't build mono-file-formats.*, mono-tools.*
* docs/mono-file-formats.config, docs/mono-file-formats.source, 
	  docs/mono-tools.config, docs/mono-tools.source: Removed (now located 
	  in mono/docs).

svn path=/branches/mono-2-2/mcs/; revision=119259
2008-11-19 02:27:31 +00:00
Jonathan Pryor 6ed0b0bd5d These files need to move into mono/docs to fix
https://bugzilla.novell.com/show_bug.cgi?id=445156

svn path=/branches/mono-2-2/mono/; revision=119256
2008-11-19 02:22:52 +00:00
Bill Holmes 2514e975c3 2008-11-17 Bill Holmes <[email protected]>
Backport of 119064 and 119081.

	* marshal.h : cominterop_ccw_getfreethreadedmarshaler added to return the
	  free threaded marshaler when QueryInterface is called on a COM callable
	  wrapper requesting the IMarshal interface.

	Code is contributed under MIT/X11 license.

svn path=/branches/mono-2-2/mono/; revision=119088
2008-11-17 21:05:37 +00:00
Rodrigo Kumpera 882ffb10b4 2008-11-17 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
	generic type.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=119079
2008-11-17 18:55:56 +00:00
Rodrigo Kumpera a1a664dbcd 2008-11-17 Rodrigo Kumpera <[email protected]>
* MonoField.cs (GetValue): Don't check for open generic types if the field
	is a constant.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=119078
2008-11-17 18:55:16 +00:00
Rodrigo Kumpera 9ff5304841 2008-11-17 Rodrigo Kumpera <[email protected]>
* simd-intrinsics.c (vector2l_intrinsics): CompareGreaterThan requires sse 4.2
	and not 4.1. 

	Backported from trunk.


svn path=/branches/mono-2-2/mono/; revision=119065
2008-11-17 18:00:08 +00:00
Rodrigo Kumpera bac3152d94 2008-11-17 Rodrigo Kumpera <[email protected]>
* Vector2l.cs (CompareGreaterThan): This method requires sse 4.2
	and 4.1.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=119062
2008-11-17 17:22:18 +00:00
Marek Safar 02f76440bb 2008-11-17 Marek Safar <[email protected]>
A fix for bug #445303
	* location.cs (IsConditionalDefined): Handle undefined global
	defines.


svn path=/branches/mono-2-2/mcs/; revision=119040
2008-11-17 15:39:41 +00:00
Marek Safar bb0e7fc708 2008-11-17 Marek Safar <[email protected]>
A fix for bug #444678
	* expression.cs (TryReduceConstant): Always create new constant
	instance.


svn path=/branches/mono-2-2/mcs/; revision=119028
2008-11-17 14:45:40 +00:00
Marek Safar 800ae747f2 2008-11-17 Marek Safar <[email protected]>
A fix for bug #444673
	* ecore.cs: Ignore open generic types when used as generic type
	instance fields.


svn path=/branches/mono-2-2/mcs/; revision=119016
2008-11-17 13:19:46 +00:00
Zoltan Varga 6d986cfd7a 2008-11-17 Zoltan Varga <[email protected]>
Merge r118977 from HEAD.

	* mini-amd64.h: Change the monitor fastpath defines to check for
	!PLATFORM_WIN32 so they work on *bsd too.

svn path=/branches/mono-2-2/mono/; revision=118978
2008-11-17 00:39:13 +00:00
Gonzalo Paniagua Javier 88068708ab 2008-11-14 Gonzalo Paniagua Javier <[email protected]>
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
	HttpWebRequest to avoid a deadlock if the web service uses Session.
	Bug #444343 fixed.
	re: miguel


svn path=/branches/mono-2-2/mono/; revision=118834
2008-11-14 06:31:29 +00:00
Marek Habersack 7a9e96f166 Backport of r118813
svn path=/branches/mono-2-2/mcs/; revision=118815
2008-11-14 02:09:17 +00:00
Marek Habersack e7ec701595 Backport of r118799
svn path=/branches/mono-2-2/mcs/; revision=118800
2008-11-14 00:41:19 +00:00
Veerapuram Varadhan eed1a21d6d reset the connection on timeout exception from TDS
svn path=/branches/mono-2-2/mcs/; revision=118762
2008-11-13 20:22:23 +00:00
Veerapuram Varadhan 7246c849af instead of executing sp_reset_connection, set reset connection bit.
svn path=/branches/mono-2-2/mcs/; revision=118760
2008-11-13 20:17:48 +00:00
Veerapuram Varadhan d39d766bf9 Tests ported from trunk.
svn path=/branches/mono-2-2/mcs/; revision=118759
2008-11-13 20:15:34 +00:00
Bill Holmes 3a2bd00f10 2008-11-13 Bill Holmes <[email protected]>
Backport of r118724.

	* process.h : Adding method declaration for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* process.c : Adding implementation for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
	  to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* wait.h : Adding method declaration for WaitForInputIdle.

	* wait.c : Adding implementation for WaitForInputIdle.

	* Process.cs : Adding an implementation for WaitForInputIdle
	  to call the an internal call.  The internal call is only
	  implemented properly on Windows.

	Code is contributed under MIT/X11 license.   


svn path=/branches/mono-2-2/mcs/; revision=118743
2008-11-13 18:00:06 +00:00
Bill Holmes 9341400101 2008-11-13 Bill Holmes <[email protected]>
Backport of r118724.

	* process.h : Adding method declaration for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* process.c : Adding implementation for
	  ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
	  to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.

	* wait.h : Adding method declaration for WaitForInputIdle.

	* wait.c : Adding implementation for WaitForInputIdle.

	* Process.cs : Adding an implementation for WaitForInputIdle
	  to call the an internal call.  The internal call is only
	  implemented properly on Windows.

	Code is contributed under MIT/X11 license.   


svn path=/branches/mono-2-2/mono/; revision=118743
2008-11-13 18:00:06 +00:00
Veerapuram Varadhan 42b1712b66 Backported fix for bug#428139 from trunk
svn path=/branches/mono-2-2/mcs/; revision=118738
2008-11-13 17:31:07 +00:00
Zoltan Varga 1f16a62cf9 2008-11-13 Zoltan Varga <[email protected]>
Backport r118729 from HEAD.
	
	* RxInterpreter.cs: Fix pc computation in various opcodes. Fixes #443841.

svn path=/branches/mono-2-2/mcs/; revision=118732
2008-11-13 17:15:35 +00:00
Marek Safar 7f4be72fcc 2008-11-13 Marek Safar <[email protected]>
A fix for bug #444271
	* anonymous.cs: Rescan parent storeys when best candidate was
	undone.


svn path=/branches/mono-2-2/mcs/; revision=118720
2008-11-13 15:30:22 +00:00
Rodrigo Kumpera e521732831 2008-11-11 Rodrigo Kumpera <[email protected]>
* ModuleTest.cs : Add test for ResolveMethod with a methodspec
	token.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=118545
2008-11-11 20:18:38 +00:00
Rodrigo Kumpera fc81aabdab 2008-11-11 Rodrigo Kumpera <[email protected]>
* Module.cs (ResolveMethod): Use internal method 
	GetMethodFromHandleNoGenericCheck to avoid the generic type
	limitation of GetMethodFromHandle.

	Fixes #443763.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=118544
2008-11-11 20:18:13 +00:00
Rodrigo Kumpera fcfc9108ba 2008-11-11 Rodrigo Kumpera <[email protected]>
* ConstructorOnTypeBuilderInstTest.cs: Add test for
	MetadataToken under compilation context.

	Backported from trunk.


svn path=/branches/mono-2-2/mcs/; revision=118519
2008-11-11 17:15:57 +00:00
Rodrigo Kumpera b462d915a2 Wrong date in the changelog
svn path=/branches/mono-2-2/mcs/; revision=118518
2008-11-11 17:15:29 +00:00
Rodrigo Kumpera e8d73281a2 2008-11-12 Rodrigo Kumpera <[email protected]>
* ConstructorOnTypeBuilderInst.cs (MetadataToken): Make this
        * property
        work under compiler context. Same hack as the one applied to
        MethodOnTypeBuilderInst.

        Fixes #442610.

        Backported from trunk.



svn path=/branches/mono-2-2/mcs/; revision=118517
2008-11-11 17:14:31 +00:00
Zoltan Varga ff0399cfbe 2008-11-11 Zoltan Varga <[email protected]>
Backport r118484 from HEAD.
	
	* CILCompiler.cs: Implement Reference opcode.

svn path=/branches/mono-2-2/mcs/; revision=118485
2008-11-11 11:21:15 +00:00
Andrew Jorgensen a30aa5462d Bump versions to 2.2
svn path=/branches/mono-2-2/mono/; revision=118446
2008-11-11 00:24:15 +00:00
10747 changed files with 623125 additions and 604554 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.
+6
View File
@@ -18,6 +18,7 @@
/mono-*.tar.gz
/*.pc
/mono.spec
/mono-core.spec
/semantic.cache
/stamp-h
/stamp-h.in
@@ -29,3 +30,8 @@
/install-sh
/doltlibtool
/doltcompile
/libtool.m4
/ltoptions.m4
/ltsugar.m4
/lt~obsolete.m4
/ltversion.m4
+10
View File
@@ -1,6 +1,16 @@
The Mono runtime is licensed under the terms of the GNU
Library General Public License, version 2.
The eglib directory is licensed under the terms of the MIT
X11 license and is a drop-in replacement for Mono's use of
glib 2.0 (which was LGPL).
The Boehm licensing information is in the libgc directory
The SGen Garbage Collector is under the terms of the MIT X11
license
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
+407 -2
View File
@@ -1,3 +1,410 @@
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.
2010-05-28 Mark Probst <[email protected]>
* tools/sgen/sgen-grep-binprot.c (main): Use strtoul(), not
strtol(), to parse addresses from the command line.
2010-05-20 Miguel de Icaza <[email protected]>
* configure.in: drop again the pkg.m4 dependency and for eglib
cases (and not-Windows) make it entirely optional.
2010-05-11 Andrew Jorgensen <[email protected]>
* scripts/mono-find-*.in: Look for libmono-2.0.so.1, not libmono.so
and set MONO_PATH to ensure that mscorlib.dll can be found
2010-04-29 Andreas Färber <[email protected]>
* configure.in: Check for -lm necessity.
Fixes linking on Haiku.
Contributed under MIT/X11 license.
2010-04-27 Mark Probst <[email protected]>
* scripts/mono-heapviz: If the major sections are too small, use a
larger width.
2010-04-27 Zoltan Varga <[email protected]>
* configure.in: Switch to eglib by default.
2010-04-26 Geoff Norton <[email protected]>
* configure.in: Allow cross compiling osx for 64-bit
2010-04-26 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Robert Nagy ([email protected]). Add
sys/param.h dependencies to a few checks.
2010-04-25 Mark Probst <[email protected]>
* tools/sgen/sgen-grep-binprot.c: Support for major Mark&Sweep
collector.
2010-04-20 Jonathan Pryor <[email protected]>
* configure.in: Check for the asm/sigcontext.h header.
2010-04-20 Andrés G. Aragoneses <[email protected]>
* README: Replace --with-profile2 with --with-profile4.
2010-04-20 Jonathan Pryor <[email protected]>
* configure.in: On OpenBSD, remove duplicate -pthread options in
libmono_ldflags. Change from Robert Nagy <[email protected]>.
2010-04-20 Jonathan Pryor <[email protected]>
* configure.in: For Linux hosts, remove libmono_ldflags="-lpthread".
It's unnecessary (for !target_win32, pthreads are checked again
later in configure.in), and it breaks Android (which doesn't have
libpthread, but DOES have pthreads in libc).
2010-04-19 Jonathan Pryor <[email protected]>
* configure.in: Disable AC_CHECK_LIB() for pthread, as this breaks
autoconf on BSD platforms. (Why? Who knows -- it's AutoConf!)
2010-04-19 Jonathan Pryor <[email protected]>
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
in a build error in mono/utils/mono-codeman.c due to
`struct mallinfo` re-declaration. Define HAVE_USR_INCLUDE_MALLOC_H
if /usr/include/malloc.h is present to avoid this.
2010-04-19 Jonathan Pryor <[email protected]>
* configure.in: Add header, structure member, and function checks as
Android doesn't provide all the headers, structure members, and
functions that a "full" Linux distro includes.
2010-04-19 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-minimal=normalization option to disable support
for string normalization.
2010-04-16 Marek Habersack <[email protected]>
* configure.in: added a check for sysconf(3)
2010-04-14 Miguel de Icaza <[email protected]>
* configure.in: turn the AC_MSG_ERROR into a AC_MSG_WARN since in
Andrew's configuration this aborts the build:
host=i686-pc-linux-gnu != target=i586-suse-linux
And I no longer remember why I added that error in the first
place (we need to determine perhaps the arch/OS but it is
difficult with those strings).
2010-04-08 Andreia Gaita <[email protected]>
* configure.in: Add an extra "only" option to --with-moonlight. This
will configure mono to only build moonlight-specific stuff and
nothing else. --with-moonlight=yes now just adds the moon profile to
the build
* Makefile.am: Add moonlight-specific rules that only build what
moon needs. These are called directly from moon, to do fast
moon+mono+mcs builds
* runtime/Makefile.am: Change the build rules to have a moonlight-only
build configuration, as well as a normal build that optionally includes
it
2010-04-07 Raja R Harinath <[email protected]>
* runtime/Makefile.am ($(tmpinst)/bin/dmcs): Add.
2010-04-06 Andreia Gaita <[email protected]>
* configure.in: add --with-mcs-path option to specify where the mcs
source can be found, if not on ./mcs or ../mcs.
Only touch the mcs and/or olive dirs and config files if we're
actually building them
2010-04-05 Zoltan Varga <[email protected]>
* configure.in: Append -lgc to libmono_ldflags if using an external libgc.
2010-04-04 Andreas Färber <[email protected]>
* configure.in: Fix typo.
Set default for with_moonlight to fix "Moon Profile:" output.
Contributed under MIT/X11 license.
2010-04-03 Zoltan Varga <[email protected]>
* configure.in: Applied some openbsd changes from Robert Nagy
<[email protected]>.
2010-04-03 Marek Habersack <[email protected]>
* configure.in: TARGET_WIN32 and MINGW_CROSS_COMPILE are defined
when cross-compiling with MinGW
* build-mingw32.sh: include the 4.0 profile in the zip.
Remove cross-compilation environment bin path from PATH before
compiling native Mono.
Remove autotools cache directory before each compilation phase.
2010-04-02 Marek Habersack <[email protected]>
* configure.in: include -lkernel32 in LDFLAGS when cross-compiling
with MINGW or compiling on Cygwin.
* build-mingw32.sh: some changes to make the compilation work
better on non-SuSE systems.
2010-04-01 Mark Probst <[email protected]>
* scripts/mono-heapviz: Process and output detailed pinning
statistics.
2010-03-29 Andreas Färber <[email protected]>
* configure.in: Add support for Haiku
Contributed under MIT/X11 license.
2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Add a --enable-system-aot option to control the generation of
AOT images during the build.
2010-03-26 Zoltan Varga <[email protected]>
* configure.in: Apply some openbsd changes from openbsd ports.
2010-03-23 Neale Ferguson <[email protected]>
* configure.in: Change ACCESS_UNALINGED to "yes" for s390/s390x.
2010-03-22 Andreia Gaita <[email protected]>
* configure.in: fix build when doing with-mcs-docs=no on a clean tree
2010-03-19 Zoltan Varga <[email protected]>
* autogen.sh: Pass -Wno-portability to automake to quiet some warnings.
2010-03-16 Jb Evain <[email protected]>
* runtime/Makefile.am, build-mingw32.sh: rename
the net_2_1 profile to moonlight.
2010-03-10 Andrew Jorgensen <[email protected]>
* configure.in: configure eglib even when we are not building
it (fixes dist)
Fri Mar 5 18:58:15 CET 2010 Paolo Molaro <[email protected]>
* configure.in: introduce the --enable-small-config option
to reduce runtime requirements (and capabilities).
2010-03-04 Zoltan Varga <[email protected]>
* Makefile.am (DIST_SUBDIRS): Add eglib.
* autogen.sh: Run eglib's autogen.sh too.
2010-03-02 Rolf Bjarne Kvinge <[email protected]>
* Makefile.am:
* mono/Makefile.am: Only build some subdirs when configured for
moonlight.
* configure.in: If configured --with-moonlight=yes, define MOONLIGHT and
use that variable instead of INSTALL_2_1.
* runtime/Makefile.am: If configured for moonlight, only build
net_2_1_raw.
2010-03-02 Mark Probst <[email protected]>
* tools/sgen-grep-binprot.c: Tool for searching through the binary
protocol files generated by SGen.
2010-02-26 Miguel de Icaza <[email protected]>
* Make the scripts default to 4.0 now.
2009-05-21 Miguel de Icaza <[email protected]>
* Check for sys/select.h as well
Wed Feb 24 15:47:16 CET 2010 Paolo Molaro <[email protected]>
* configure.in, data/mono-2.pc.in, data/Makefile.am,
samples/embed/*: increase the API version.
2010-02-18 Marek Habersack <[email protected]>
* scripts/mono-configuration-crypto.in: added
* scripts/Makefile.am: added mono-configuration-crypto targets
2010-01-27 Zoltan Varga <[email protected]>
* configure.in: Fix the setting of LLVM_CXXFLAGS.
2010-01-22 Andrés G. Aragoneses <[email protected]>
* configure.in: Improve r150055 by checking for CXX=g++ as well, according to
http://lists.gnu.org/archive/html/bug-autoconf/2002-04/msg00077.html
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Disable the solaris tar check on !solaris platforms.
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Check whenever g++ is installed, since libtool requires it
even if no c++ files will be compiled.
See BNC#572871.
2010-01-22 Zoltan Varga <[email protected]>
* configure.in: Add -fno-rrti to CXXFLAGS.
2010-01-20 Rolf Bjarne Kvinge <[email protected]>
* configure.in: Add support for disabling mdb support.
2010-01-15 Zoltan Varga <[email protected]>
* configure.in: Don't define TARGET_WIN32 when --target is used.
2010-01-15 Zoltan Varga <[email protected]>
* scripts/get-cygwin-deps.sh: New file. Contains a script to download and setup
the dependencies needed for compiling mono on cygwin.
2010-01-06 Rodrigo Kumpera <[email protected]>
* scripts/Makefile.am: Add peverify script.
* scripts/peverify.in: Added.
2009-12-22 Geoff Norton <[email protected]>
* configure.in: Fix invalid escaping. Patch from Spina from
www.slacky.eu.
2009-12-21 Zoltan Varga <[email protected]>
* configure.in: Add an LLVM_CFLAGS automake variable.
2009-12-18 Zoltan Varga <[email protected]>
* configure.in: Remove the check for valgrind/memcheck.h, we include the file
in our sources now.
2009-12-11 Zoltan Varga <[email protected]>
* configure.in: Applied patch from Matt McClellan ([email protected]). Add a check
for 2 parameter sched_setaffinity in older glibc versions. Fixes
#564000.
2009-11-22 Zoltan Varga <[email protected]>
* configure.in: Disable visibility attributes on cygwin.
@@ -5297,5 +5704,3 @@ Wed Jul 11 00:36:36 CEST 2001 Paolo Molaro <[email protected]>
2001-05-30 Miguel de Icaza <[email protected]>
* NEWS:
+12
View File
@@ -54,6 +54,18 @@ For comments, corrections and updates, please contact [email protected]
the terms of the MIT X11, this means that this code can be
used for any purposes by anyone.
** mono/metadata/sgen*: Mono's Copying Collector
This new garbage collector is licensed under the terms of
the MIT X11 license, in hopes that the GC could be reused
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)
+49 -39
View File
@@ -1,31 +1,44 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib mono $(ikvm_native_dir) data
if CROSS_COMPILING
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_dir) mono ikvm-native support data runtime scripts man samples web tools msvc docs
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
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
endif
endif
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs
EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LICENSE mkinstalldirs autogen.sh
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
DISTCLEANFILES= mono-uninstalled.pc
.PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
# building with monolite
mcslib = $(mcs_topdir)/class/lib
monolite = $(mcslib)/monolite
monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
.PHONY: get-monolite-latest
get-monolite-latest:
-rm -fr $(mcslib)/monolite-*
-mkdir -p $(mcslib)
@@ -34,43 +47,44 @@ get-monolite-latest:
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
compiler-tests: build-test-mono-mcs-moon
compiler-tests-net_2_0:
-rm -f $(mcs_topdir)/build/common/Consts.cs.save
-mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
-mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
$(MAKE) all
$(MAKE) test_profiles=net_2_0 mcs-do-compiler-tests
bootstrap-world: compiler-tests
$(MAKE) install
bootstrap-world-net_2_0: compiler-tests-net_2_0
$(MAKE) install
# internal targets
.PHONY: build-test-mono-mcs-moon
build-test-mono-mcs-moon: do-build-moon-maybe
$(MAKE) mcs-do-compiler-tests
.PHONY: do-build-mono-mcs
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
validate: do-build-mono-mcs
$(MAKE) mcs-do-tests
do-build-mono-mcs: mcs-do-clean
$(MAKE) all
.PHONY: do-build-moon-maybe
do-build-moon-maybe: do-build-mono-mcs
cd runtime && $(MAKE) moon-do-build
mcs-do-clean:
cd runtime && $(MAKE) clean-local
cd mono/tests && $(MAKE) clean
mcs-do-compiler-tests:
cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
mcs-do-tests:
cd runtime && $(MAKE) check-local
cd mono/tests && $(MAKE) check
.PHONY: compiler-tests mcs-do-compiler-tests
compiler-tests:
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
mcs-do-compiler-tests:
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
.PHONY: bootstrap-world
bootstrap-world: compiler-tests
$(MAKE) install
if MOONLIGHT
moon-do-build: config.h
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
echo "Making all in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) all); \
done;
cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw all
moon-do-clean:
@list='$(MOONLIGHT_SUBDIRS)'; for subdir in $$list; do \
echo "Making clean in $$subdir"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) clean); \
done;
cd $(mcs_topdir) && NO_DIR_CHECK=1 $(MAKE) PROFILE=moonlight_raw clean
endif
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
@@ -88,10 +102,6 @@ win32getdeps:
win32setup:
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
bootstrap: all
@echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
exit 1
patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
+54 -9
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.
@@ -259,6 +264,17 @@ This is Mono.
This value is set to `no' by default.
--enable-small-config=yes,no
Enable some tweaks to reduce memory usage and disk footprint at
the expense of some capabilities. Typically this means that the
number of threads that can be created is limited (256), that the
maxmimum heap size is also reduced (256 MB) and other such limitations
that still make mono useful, but more suitable to embedded devices
(like mobile phones).
This value is set to `no' by default.
--with-ikvm-native=yes,no
Controls whether the IKVM JNI interface library is
@@ -267,10 +283,10 @@ This is Mono.
This defaults to `yes'.
--with-profile2=yes,no
--with-profile4=yes,no
Whether you want to build the 2.x libraries (support
for Generics and the 2.0/3.5 APIS).
Whether you want to build the 4.x profile libraries
and runtime.
It defaults to `yes'.
@@ -396,6 +412,24 @@ This is Mono.
framework, and the various SSA-based
optimizations.
--enable-llvm
--enable-loadedllvm
This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
See the http://www.mono-project.com/Mono_LLVM for the
full details and up-to-date information on this feature.
You will need to have an LLVM built that Mono can link
against,
The --enable-loadedllvm variant will make the llvm backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
--enable-big-arrays
This enables the use arrays whose indexes are larger
@@ -439,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
=============
@@ -523,3 +566,5 @@ This is Mono.
directory is automatically configured to share the
same prefix than this module gets.
+7 -1
View File
@@ -119,7 +119,7 @@ if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
fi
echo "Running automake --gnu $am_opt ..."
automake --add-missing --gnu $am_opt ||
automake --add-missing --gnu -Wno-portability $am_opt ||
{ echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
@@ -130,6 +130,12 @@ if test -d $srcdir/libgc; then
echo Done running libgc/autogen.sh ...
fi
if test -d $srcdir/eglib; then
echo Running eglib/autogen.sh ...
(cd $srcdir/eglib ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running eglib/autogen.sh ...
fi
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
+63 -9
View File
@@ -1,19 +1,32 @@
#!/bin/bash -e
CURDIR="`pwd`"
CROSS_DIR=${1:-/opt/cross/}
MINGW=${1:-i386-mingw32msvc}
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/$MINGW/bin"
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/$MINGW/lib/pkgconfig
MINGW=i386-mingw32msvc
CROSS_DIR=/opt/cross/$MINGW
COPY_DLLS="libgio*.dll libglib*.dll libgmodule*.dll libgthread*.dll libgobject*.dll"
PATH=$CROSS_BIN_DIR:$PATH
INSTALL_DESTDIR="$CURDIR/mono-win32"
PROFILES="default net_2_0 net_2_1 net_3_5"
PROFILES="default net_2_0 net_3_5 net_4_0 moonlight"
TEMPORARY_PKG_CONFIG_DIR=/tmp/$RANDOM-pkg-config-$RANDOM
ORIGINAL_PATH="$PATH"
export PATH
export CPPFLAGS_FOR_EGLIB CFLAGS_FOR_EGLIB CPPFLAGS_FOR_LIBGC CFLAGS_FOR_LIBGC
function cleanup ()
{
if [ -d "$TEMPORARY_PKG_CONFIG_DIR" ]; then
rm -rf "$TEMPORARY_PKG_CONFIG_DIR"
fi
}
function setup ()
{
local pcname
CROSS_BIN_DIR="$CROSS_DIR/bin"
CROSS_DLL_DIR="$CROSS_DIR/bin"
CROSS_PKG_CONFIG_DIR=$CROSS_DIR/lib/pkgconfig
PATH=$CROSS_BIN_DIR:$PATH
export PATH
if [ -d ./.git/svn ]; then
SVN_INFO='git svn info'
elif [ -d ./.svn ]; then
@@ -37,6 +50,15 @@ function setup ()
NOCONFIGURE=yes
export NOCONFIGURE
if [ -d "$CROSS_PKG_CONFIG_DIR" ]; then
install -d -m 755 "$TEMPORARY_PKG_CONFIG_DIR"
for pc in "$CROSS_PKG_CONFIG_DIR"/*.pc; do
pcname="`basename $pc`"
sed -e "s;^prefix=.*;prefix=$CROSS_DIR;g" < $pc > "$TEMPORARY_PKG_CONFIG_DIR"/$pcname
done
CROSS_PKG_CONFIG_DIR="$TEMPORARY_PKG_CONFIG_DIR"
fi
echo Mono Win32 installation prefix: $MONO_PREFIX
}
@@ -44,8 +66,11 @@ function build ()
{
./autogen.sh
BUILD="`./config.guess`"
if [ -f ./Makefile ]; then
make distclean
rm -rf autom4te.cache
fi
if [ ! -d "$CURDIR/build-cross-windows" ]; then
@@ -54,13 +79,18 @@ function build ()
cd "$CURDIR/build-cross-windows"
rm -rf *
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name=""
../configure --prefix=$MONO_PREFIX --with-crosspkgdir=$CROSS_PKG_CONFIG_DIR --build=$BUILD --target=$MINGW --host=$MINGW --enable-parallel-mark --program-transform-name="" --with-tls=none --disable-mcs-build --disable-embed-check --enable-win32-dllmain=yes --with-libgc-threads=win32 --with-profile4=yes
make
cd "$CURDIR"
if [ ! -d "$CURDIR/build-cross-windows-mcs" ]; then
mkdir "$CURDIR/build-cross-windows-mcs"
fi
rm -rf autom4te.cache
unset PATH
PATH="$ORIGINAL_PATH"
export PATH
cd "$CURDIR/build-cross-windows-mcs"
rm -rf *
../configure --prefix=$MONO_PREFIX --enable-parallel-mark
@@ -101,8 +131,32 @@ function doinstall ()
}
function usage ()
{
cat <<EOF
Usage: build-mingw32.sh [OPTIONS]
where OPTIONS are:
-d DIR Sets the location of directory where MINGW is installed [$CROSS_DIR]
-m MINGW Sets the MINGW target name to be passed to configure [$MINGW]
EOF
exit 1
}
trap cleanup 0
pushd . > /dev/null
while getopts "d:m:h" opt; do
case "$opt" in
d) CROSS_DIR="$OPTARG" ;;
m) MINGW="$OPTARG" ;;
*) usage ;;
esac
done
setup
build
doinstall
+370 -167
View File
File diff suppressed because it is too large. Load diff
+15
View File
@@ -0,0 +1,15 @@
2010-05-17 Zoltan Varga <[email protected]>
* mono-2.pc.in (Libs): Remove glib dependencies.
2010-05-07 Zoltan Varga <[email protected]>
* mono-2.pc (Requires): Remove glib dependencies.
2010-04-02 Jb Evain <[email protected]>
* dotnet35.pc.in: add System.Data.Services.dll.
2010-03-08 Rodrigo Kumpera <[email protected]>
* mono.supp: Add hazard pointers supressions.
+11 -10
View File
@@ -8,30 +8,31 @@ monodir = $(sysconfdir)/mono
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README \
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
browscap.ini mono.supp mono.d README ChangeLog \
mono.pc.in mono-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in \
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in \
net_1_1/machine.config \
gdb/mono-gdb.py
gdb/mono-gdb.py \
gdb/gdb-python.diff
pkgconfigdir = $(libdir)/pkgconfig
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
pkgconfig_DATA= mono.pc mono-2.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc
else
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc mono.web.pc system.web.mvc.pc system.web.mvc2.pc
mono_DATA = config \
browscap.ini
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.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
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
+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.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):
+11
View File
@@ -0,0 +1,11 @@
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/@reloc_libdir@
includedir=${prefix}/include/mono-@API_VER@
sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Libs: -L${libdir} @export_ldflags@ -lmono-@API_VER@ @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
-3
View File
@@ -7,6 +7,3 @@ sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Requires: glib-2.0 gthread-2.0
Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
+14 -1
View File
@@ -37,4 +37,17 @@
fun:*
obj:*mono
}
{
mono - Invalid write of size 4 hazardous_pointer
Memcheck:Addr4
fun:get_hazardous_pointer
fun:*
obj:*mono
}
{
mono - Invalid write of size 4 jit_info_table_find
Memcheck:Addr4
fun:mono_jit_info_table_find
fun:*
obj:*mono
}
+2
View File
@@ -236,6 +236,8 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
</configuration>
+1
View File
@@ -0,0 +1 @@
/Compat.browser -crlf
+2
View File
@@ -215,6 +215,8 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
+2
View File
@@ -0,0 +1,2 @@
/Makefile
/Makefile.in
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
+14 -9
View File
@@ -74,18 +74,21 @@
<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" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<connectionStrings>
@@ -215,6 +218,8 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
+142 -43
View File
@@ -2,6 +2,20 @@
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.web>
<monoSettings>
<compilersCompatibility>
@@ -14,41 +28,86 @@
<allow users="*" />
</authorization>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="GET" path="WebResource.axd" type="System.Web.Handlers.AssemblyResourceLoader, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.master" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resources" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.skin" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.browser" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.sitemap" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.webinfo" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.resx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ascx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.Config" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.cs" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vb" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.csproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<!--
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
<!--
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />
<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />
</httpHandlers>
<httpModules>
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<!--
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
-->
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<!--
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
-->
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<!--
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
-->
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
<add name="Profile" type="System.Web.Profile.ProfileModule" />
<!--
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
@@ -84,22 +143,52 @@
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.WebParts" assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.Expressions" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</controls>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<!--<add assembly="mscorlib" /> -->
<add assembly="mscorlib" />
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<!-- <add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> -->
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Channels, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<!-- <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> -->
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
@@ -109,6 +198,10 @@
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="RouteUrl" type="System.Web.Compilation.RouteUrlExpressionBuilder"/>
<!--
<add expressionPrefix="RouteValue" type="System.Web.Compilation.RouteValueExpressionBuilder"/>
-->
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
@@ -126,6 +219,12 @@
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<!--
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
<add extension=".xoml" type="System.ServiceModel.Activation.WorkflowServiceBuildProvider, System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add extension=".xamlx" type="System.Xaml.Hosting.XamlBuildProvider, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
+4
View File
@@ -0,0 +1,4 @@
Name: System.Web.Mvc2
Description: System.Web.Mvc - ASP.NET MVC v2
Version: 2.0.0.0
Libs: -r:@prefix@/lib/mono/gac/System.Web.Mvc/2.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll
+1
View File
@@ -8,3 +8,4 @@
/mono-file-formats.zip
/mono-tools.tree
/mono-tools.zip
/AgilityPack.dll*
Binary file not shown.
+19
View File
@@ -1,3 +1,22 @@
2010-04-06 Andreia Gaita <[email protected]>
* Makefile.am: fix distcheck - several targets get built on the
srcdir, which has no write permissions on make distcheck, so make
sure permissions are set
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the
file headers don't specify it
2009-12-22 Jo Shields <[email protected]>
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
http://www.codeplex.com/htmlagilitypack in source form.
* AgilityPack.dll: Remove binary assembly, use source instead.
* docs.make Makefile.am README: Reflect above changes
2009-02-12 Zoltan Varga <[email protected]>
* Makefile.am (EXTRA_DIST): Remove removed files.
+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
@@ -0,0 +1,33 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Text;
namespace HtmlAgilityPack
{
internal class EncodingFoundException : Exception
{
#region Fields
private Encoding _encoding;
#endregion
#region Constructors
internal EncodingFoundException(Encoding encoding)
{
_encoding = encoding;
}
#endregion
#region Properties
internal Encoding Encoding
{
get { return _encoding; }
}
#endregion
}
}
+260
View File
@@ -0,0 +1,260 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
#region
using System;
using System.Diagnostics;
#endregion
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML attribute.
/// </summary>
[DebuggerDisplay("Name: {OriginalName}, Value: {Value}")]
public class HtmlAttribute : IComparable
{
#region Fields
private int _line;
internal int _lineposition;
internal string _name;
internal int _namelength;
internal int _namestartindex;
internal HtmlDocument _ownerdocument; // attribute can exists without a node
internal HtmlNode _ownernode;
private AttributeValueQuote _quoteType = AttributeValueQuote.DoubleQuote;
internal int _streamposition;
internal string _value;
internal int _valuelength;
internal int _valuestartindex;
#endregion
#region Constructors
internal HtmlAttribute(HtmlDocument ownerdocument)
{
_ownerdocument = ownerdocument;
}
#endregion
#region Properties
/// <summary>
/// Gets the line number of this attribute in the document.
/// </summary>
public int Line
{
get { return _line; }
internal set { _line = value; }
}
/// <summary>
/// Gets the column number of this attribute in the document.
/// </summary>
public int LinePosition
{
get { return _lineposition; }
}
/// <summary>
/// Gets the qualified name of the attribute.
/// </summary>
public string Name
{
get
{
if (_name == null)
{
_name = _ownerdocument._text.Substring(_namestartindex, _namelength);
}
return _name.ToLower();
}
set
{
if (value == null)
{
throw new ArgumentNullException("value");
}
_name = value;
if (_ownernode != null)
{
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
}
}
/// <summary>
/// Name of attribute with original case
/// </summary>
public string OriginalName
{
get { return _name; }
}
/// <summary>
/// Gets the HTML document to which this attribute belongs.
/// </summary>
public HtmlDocument OwnerDocument
{
get { return _ownerdocument; }
}
/// <summary>
/// Gets the HTML node to which this attribute belongs.
/// </summary>
public HtmlNode OwnerNode
{
get { return _ownernode; }
}
/// <summary>
/// Specifies what type of quote the data should be wrapped in
/// </summary>
public AttributeValueQuote QuoteType
{
get { return _quoteType; }
set { _quoteType = value; }
}
/// <summary>
/// Gets the stream position of this attribute in the document, relative to the start of the document.
/// </summary>
public int StreamPosition
{
get { return _streamposition; }
}
/// <summary>
/// Gets or sets the value of the attribute.
/// </summary>
public string Value
{
get
{
if (_value == null)
{
_value = _ownerdocument._text.Substring(_valuestartindex, _valuelength);
}
return _value;
}
set
{
_value = value;
if (_ownernode != null)
{
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
}
}
internal string XmlName
{
get { return HtmlDocument.GetXmlName(Name); }
}
internal string XmlValue
{
get { return Value; }
}
/// <summary>
/// Gets a valid XPath string that points to this Attribute
/// </summary>
public string XPath
{
get
{
string basePath = (OwnerNode == null) ? "/" : OwnerNode.XPath + "/";
return basePath + GetRelativeXpath();
}
}
#endregion
#region IComparable Members
/// <summary>
/// Compares the current instance with another attribute. Comparison is based on attributes' name.
/// </summary>
/// <param name="obj">An attribute to compare with this instance.</param>
/// <returns>A 32-bit signed integer that indicates the relative order of the names comparison.</returns>
public int CompareTo(object obj)
{
HtmlAttribute att = obj as HtmlAttribute;
if (att == null)
{
throw new ArgumentException("obj");
}
return Name.CompareTo(att.Name);
}
#endregion
#region Public Methods
/// <summary>
/// Creates a duplicate of this attribute.
/// </summary>
/// <returns>The cloned attribute.</returns>
public HtmlAttribute Clone()
{
HtmlAttribute att = new HtmlAttribute(_ownerdocument);
att.Name = Name;
att.Value = Value;
return att;
}
/// <summary>
/// Removes this attribute from it's parents collection
/// </summary>
public void Remove()
{
_ownernode.Attributes.Remove(this);
}
#endregion
#region Private Methods
private string GetRelativeXpath()
{
if (OwnerNode == null)
return Name;
int i = 1;
foreach (HtmlAttribute node in OwnerNode.Attributes)
{
if (node.Name != Name) continue;
if (node == this)
break;
i++;
}
return "@" + Name + "[" + i + "]";
}
#endregion
}
/// <summary>
/// An Enum representing different types of Quotes used for surrounding attribute values
/// </summary>
public enum AttributeValueQuote
{
/// <summary>
/// A single quote mark '
/// </summary>
SingleQuote,
/// <summary>
/// A double quote mark "
/// </summary>
DoubleQuote
}
}
@@ -0,0 +1,394 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
using System.Collections.Generic;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a combined list and collection of HTML nodes.
/// </summary>
public class HtmlAttributeCollection : IList<HtmlAttribute>
{
#region Fields
internal Dictionary<string, HtmlAttribute> Hashitems = new Dictionary<string, HtmlAttribute>();
private HtmlNode _ownernode;
private List<HtmlAttribute> items = new List<HtmlAttribute>();
#endregion
#region Constructors
internal HtmlAttributeCollection(HtmlNode ownernode)
{
_ownernode = ownernode;
}
#endregion
#region Properties
/// <summary>
/// Gets a given attribute from the list using its name.
/// </summary>
public HtmlAttribute this[string name]
{
get
{
if (name == null)
{
throw new ArgumentNullException("name");
}
return Hashitems.ContainsKey(name.ToLower()) ? Hashitems[name.ToLower()] : null;
}
set { Append(value); }
}
#endregion
#region IList<HtmlAttribute> Members
/// <summary>
/// Gets the number of elements actually contained in the list.
/// </summary>
public int Count
{
get { return items.Count; }
}
/// <summary>
/// Gets readonly status of colelction
/// </summary>
public bool IsReadOnly
{
get { return false; }
}
/// <summary>
/// Gets the attribute at the specified index.
/// </summary>
public HtmlAttribute this[int index]
{
get { return items[index]; }
set { items[index] = value; }
}
/// <summary>
/// Adds supplied item to collection
/// </summary>
/// <param name="item"></param>
public void Add(HtmlAttribute item)
{
Append(item);
}
/// <summary>
/// Explicit clear
/// </summary>
void ICollection<HtmlAttribute>.Clear()
{
items.Clear();
}
/// <summary>
/// Retreives existence of supplied item
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public bool Contains(HtmlAttribute item)
{
return items.Contains(item);
}
/// <summary>
/// Copies collection to array
/// </summary>
/// <param name="array"></param>
/// <param name="arrayIndex"></param>
public void CopyTo(HtmlAttribute[] array, int arrayIndex)
{
items.CopyTo(array, arrayIndex);
}
/// <summary>
/// Get Explicit enumerator
/// </summary>
/// <returns></returns>
IEnumerator<HtmlAttribute> IEnumerable<HtmlAttribute>.GetEnumerator()
{
return items.GetEnumerator();
}
/// <summary>
/// Explicit non-generic enumerator
/// </summary>
/// <returns></returns>
IEnumerator IEnumerable.GetEnumerator()
{
return items.GetEnumerator();
}
/// <summary>
/// Retrieves the index for the supplied item, -1 if not found
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public int IndexOf(HtmlAttribute item)
{
return items.IndexOf(item);
}
/// <summary>
/// Inserts given item into collection at supplied index
/// </summary>
/// <param name="index"></param>
/// <param name="item"></param>
public void Insert(int index, HtmlAttribute item)
{
if (item == null)
{
throw new ArgumentNullException("item");
}
Hashitems[item.Name] = item;
item._ownernode = _ownernode;
items.Insert(index, item);
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
/// <summary>
/// Explicit collection remove
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
bool ICollection<HtmlAttribute>.Remove(HtmlAttribute item)
{
return items.Remove(item);
}
/// <summary>
/// Removes the attribute at the specified index.
/// </summary>
/// <param name="index">The index of the attribute to remove.</param>
public void RemoveAt(int index)
{
HtmlAttribute att = items[index];
Hashitems.Remove(att.Name);
items.RemoveAt(index);
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
#endregion
#region Public Methods
/// <summary>
/// Adds a new attribute to the collection with the given values
/// </summary>
/// <param name="name"></param>
/// <param name="value"></param>
public void Add(string name, string value)
{
Append(name, value);
}
/// <summary>
/// Inserts the specified attribute as the last attribute in the collection.
/// </summary>
/// <param name="newAttribute">The attribute to insert. May not be null.</param>
/// <returns>The appended attribute.</returns>
public HtmlAttribute Append(HtmlAttribute newAttribute)
{
if (newAttribute == null)
{
throw new ArgumentNullException("newAttribute");
}
Hashitems[newAttribute.Name] = newAttribute;
newAttribute._ownernode = _ownernode;
items.Add(newAttribute);
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
return newAttribute;
}
/// <summary>
/// Creates and inserts a new attribute as the last attribute in the collection.
/// </summary>
/// <param name="name">The name of the attribute to insert.</param>
/// <returns>The appended attribute.</returns>
public HtmlAttribute Append(string name)
{
HtmlAttribute att = _ownernode._ownerdocument.CreateAttribute(name);
return Append(att);
}
/// <summary>
/// Creates and inserts a new attribute as the last attribute in the collection.
/// </summary>
/// <param name="name">The name of the attribute to insert.</param>
/// <param name="value">The value of the attribute to insert.</param>
/// <returns>The appended attribute.</returns>
public HtmlAttribute Append(string name, string value)
{
HtmlAttribute att = _ownernode._ownerdocument.CreateAttribute(name, value);
return Append(att);
}
/// <summary>
/// Checks for existance of attribute with given name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public bool Contains(string name)
{
for (int i = 0; i < items.Count; i++)
{
if (items[i].Name.Equals(name.ToLower()))
return true;
}
return false;
}
/// <summary>
/// Inserts the specified attribute as the first node in the collection.
/// </summary>
/// <param name="newAttribute">The attribute to insert. May not be null.</param>
/// <returns>The prepended attribute.</returns>
public HtmlAttribute Prepend(HtmlAttribute newAttribute)
{
Insert(0, newAttribute);
return newAttribute;
}
/// <summary>
/// Removes a given attribute from the list.
/// </summary>
/// <param name="attribute">The attribute to remove. May not be null.</param>
public void Remove(HtmlAttribute attribute)
{
if (attribute == null)
{
throw new ArgumentNullException("attribute");
}
int index = GetAttributeIndex(attribute);
if (index == -1)
{
throw new IndexOutOfRangeException();
}
RemoveAt(index);
}
/// <summary>
/// Removes an attribute from the list, using its name. If there are more than one attributes with this name, they will all be removed.
/// </summary>
/// <param name="name">The attribute's name. May not be null.</param>
public void Remove(string name)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
string lname = name.ToLower();
for (int i = 0; i < items.Count; i++)
{
HtmlAttribute att = items[i];
if (att.Name == lname)
{
RemoveAt(i);
}
}
}
/// <summary>
/// Remove all attributes in the list.
/// </summary>
public void RemoveAll()
{
Hashitems.Clear();
items.Clear();
_ownernode._innerchanged = true;
_ownernode._outerchanged = true;
}
#endregion
#region LINQ Methods
/// <summary>
/// Returns all attributes with specified name. Handles case insentivity
/// </summary>
/// <param name="attributeName">Name of the attribute</param>
/// <returns></returns>
public IEnumerable<HtmlAttribute> AttributesWithName(string attributeName)
{
attributeName = attributeName.ToLower();
for (int i = 0; i < items.Count; i++)
{
if (items[i].Name.Equals(attributeName))
yield return items[i];
}
}
/// <summary>
/// Removes all attributes from the collection
/// </summary>
public void Remove()
{
foreach (HtmlAttribute item in items)
item.Remove();
}
#endregion
#region Internal Methods
/// <summary>
/// Clears the attribute collection
/// </summary>
internal void Clear()
{
Hashitems.Clear();
items.Clear();
}
internal int GetAttributeIndex(HtmlAttribute attribute)
{
if (attribute == null)
{
throw new ArgumentNullException("attribute");
}
for (int i = 0; i < items.Count; i++)
{
if ((items[i]) == attribute)
return i;
}
return -1;
}
internal int GetAttributeIndex(string name)
{
if (name == null)
{
throw new ArgumentNullException("name");
}
string lname = name.ToLower();
for (int i = 0; i < items.Count; i++)
{
if ((items[i]).Name == lname)
return i;
}
return -1;
}
#endregion
}
}
+142
View File
@@ -0,0 +1,142 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
namespace HtmlAgilityPack
{
internal class HtmlCmdLine
{
#region Static Members
internal static bool Help;
#endregion
#region Constructors
static HtmlCmdLine()
{
Help = false;
ParseArgs();
}
#endregion
#region Internal Methods
internal static string GetOption(string name, string def)
{
string p = def;
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
GetStringArg(args[i], name, ref p);
}
return p;
}
internal static string GetOption(int index, string def)
{
string p = def;
string[] args = Environment.GetCommandLineArgs();
int j = 0;
for (int i = 1; i < args.Length; i++)
{
if (GetStringArg(args[i], ref p))
{
if (index == j)
return p;
else
p = def;
j++;
}
}
return p;
}
internal static bool GetOption(string name, bool def)
{
bool p = def;
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
GetBoolArg(args[i], name, ref p);
}
return p;
}
internal static int GetOption(string name, int def)
{
int p = def;
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
GetIntArg(args[i], name, ref p);
}
return p;
}
#endregion
#region Private Methods
private static void GetBoolArg(string Arg, string Name, ref bool ArgValue)
{
if (Arg.Length < (Name.Length + 1)) // -name is 1 more than name
return;
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
return;
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
ArgValue = true;
}
private static void GetIntArg(string Arg, string Name, ref int ArgValue)
{
if (Arg.Length < (Name.Length + 3)) // -name:12 is 3 more than name
return;
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
return;
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
{
try
{
ArgValue = Convert.ToInt32(Arg.Substring(Name.Length + 2, Arg.Length - Name.Length - 2));
}
catch
{
}
}
}
private static bool GetStringArg(string Arg, ref string ArgValue)
{
if (('/' == Arg[0]) || ('-' == Arg[0]))
return false;
ArgValue = Arg;
return true;
}
private static void GetStringArg(string Arg, string Name, ref string ArgValue)
{
if (Arg.Length < (Name.Length + 3)) // -name:x is 3 more than name
return;
if (('/' != Arg[0]) && ('-' != Arg[0])) // not a param
return;
if (Arg.Substring(1, Name.Length).ToLower() == Name.ToLower())
ArgValue = Arg.Substring(Name.Length + 2, Arg.Length - Name.Length - 2);
}
private static void ParseArgs()
{
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i < args.Length; i++)
{
// help
GetBoolArg(args[i], "?", ref Help);
GetBoolArg(args[i], "h", ref Help);
GetBoolArg(args[i], "help", ref Help);
}
}
#endregion
}
}
+76
View File
@@ -0,0 +1,76 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML comment.
/// </summary>
public class HtmlCommentNode : HtmlNode
{
#region Fields
private string _comment;
#endregion
#region Constructors
internal HtmlCommentNode(HtmlDocument ownerdocument, int index)
:
base(HtmlNodeType.Comment, ownerdocument, index)
{
}
#endregion
#region Properties
/// <summary>
/// Gets or Sets the comment text of the node.
/// </summary>
public string Comment
{
get
{
if (_comment == null)
{
return base.InnerHtml;
}
return _comment;
}
set { _comment = value; }
}
/// <summary>
/// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
/// </summary>
public override string InnerHtml
{
get
{
if (_comment == null)
{
return base.InnerHtml;
}
return _comment;
}
set { _comment = value; }
}
/// <summary>
/// Gets or Sets the object and its content in HTML.
/// </summary>
public override string OuterHtml
{
get
{
if (_comment == null)
{
return base.OuterHtml;
}
return "<!--" + _comment + "-->";
}
}
#endregion
}
}
@@ -0,0 +1,33 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Diagnostics;
namespace HtmlAgilityPack
{
internal class HtmlConsoleListener : TraceListener
{
#region Public Methods
public override void Write(string Message)
{
Write(Message, "");
}
public override void Write(string Message, string Category)
{
Console.Write("T:" + Category + ": " + Message);
}
public override void WriteLine(string Message)
{
Write(Message + "\n");
}
public override void WriteLine(string Message, string Category)
{
Write(Message + "\n", Category);
}
#endregion
}
}
File diff suppressed because it is too large. Load diff
+32
View File
@@ -0,0 +1,32 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
namespace HtmlAgilityPack
{
/// <summary>
/// Flags that describe the behavior of an Element node.
/// </summary>
[Flags]
public enum HtmlElementFlag
{
/// <summary>
/// The node is a CDATA node.
/// </summary>
CData = 1,
/// <summary>
/// The node is empty. META or IMG are example of such nodes.
/// </summary>
Empty = 2,
/// <summary>
/// The node will automatically be closed during parsing.
/// </summary>
Closed = 4,
/// <summary>
/// The node can overlap.
/// </summary>
CanOverlap = 8
}
}
+826
View File
@@ -0,0 +1,826 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
using System.Text;
namespace HtmlAgilityPack
{
/// <summary>
/// A utility class to replace special characters by entities and vice-versa.
/// Follows HTML 4.0 specification found at http://www.w3.org/TR/html4/sgml/entities.html
/// </summary>
public class HtmlEntity
{
#region Static Members
private static readonly int _maxEntitySize;
private static Hashtable _entityName;
private static Hashtable _entityValue;
/// <summary>
/// A collection of entities indexed by name.
/// </summary>
public static Hashtable EntityName
{
get { return _entityName; }
}
/// <summary>
/// A collection of entities indexed by value.
/// </summary>
public static Hashtable EntityValue
{
get { return _entityValue; }
}
#endregion
#region Constructors
static HtmlEntity()
{
_entityName = new Hashtable();
_entityValue = new Hashtable();
#region Entities Definition
_entityValue.Add("nbsp", 160); // no-break space = non-breaking space, U+00A0 ISOnum
_entityName.Add(160, "nbsp");
_entityValue.Add("iexcl", 161); // inverted exclamation mark, U+00A1 ISOnum
_entityName.Add(161, "iexcl");
_entityValue.Add("cent", 162); // cent sign, U+00A2 ISOnum
_entityName.Add(162, "cent");
_entityValue.Add("pound", 163); // pound sign, U+00A3 ISOnum
_entityName.Add(163, "pound");
_entityValue.Add("curren", 164); // currency sign, U+00A4 ISOnum
_entityName.Add(164, "curren");
_entityValue.Add("yen", 165); // yen sign = yuan sign, U+00A5 ISOnum
_entityName.Add(165, "yen");
_entityValue.Add("brvbar", 166); // broken bar = broken vertical bar, U+00A6 ISOnum
_entityName.Add(166, "brvbar");
_entityValue.Add("sect", 167); // section sign, U+00A7 ISOnum
_entityName.Add(167, "sect");
_entityValue.Add("uml", 168); // diaeresis = spacing diaeresis, U+00A8 ISOdia
_entityName.Add(168, "uml");
_entityValue.Add("copy", 169); // copyright sign, U+00A9 ISOnum
_entityName.Add(169, "copy");
_entityValue.Add("ordf", 170); // feminine ordinal indicator, U+00AA ISOnum
_entityName.Add(170, "ordf");
_entityValue.Add("laquo", 171);
// left-pointing double angle quotation mark = left pointing guillemet, U+00AB ISOnum
_entityName.Add(171, "laquo");
_entityValue.Add("not", 172); // not sign, U+00AC ISOnum
_entityName.Add(172, "not");
_entityValue.Add("shy", 173); // soft hyphen = discretionary hyphen, U+00AD ISOnum
_entityName.Add(173, "shy");
_entityValue.Add("reg", 174); // registered sign = registered trade mark sign, U+00AE ISOnum
_entityName.Add(174, "reg");
_entityValue.Add("macr", 175); // macron = spacing macron = overline = APL overbar, U+00AF ISOdia
_entityName.Add(175, "macr");
_entityValue.Add("deg", 176); // degree sign, U+00B0 ISOnum
_entityName.Add(176, "deg");
_entityValue.Add("plusmn", 177); // plus-minus sign = plus-or-minus sign, U+00B1 ISOnum
_entityName.Add(177, "plusmn");
_entityValue.Add("sup2", 178); // superscript two = superscript digit two = squared, U+00B2 ISOnum
_entityName.Add(178, "sup2");
_entityValue.Add("sup3", 179); // superscript three = superscript digit three = cubed, U+00B3 ISOnum
_entityName.Add(179, "sup3");
_entityValue.Add("acute", 180); // acute accent = spacing acute, U+00B4 ISOdia
_entityName.Add(180, "acute");
_entityValue.Add("micro", 181); // micro sign, U+00B5 ISOnum
_entityName.Add(181, "micro");
_entityValue.Add("para", 182); // pilcrow sign = paragraph sign, U+00B6 ISOnum
_entityName.Add(182, "para");
_entityValue.Add("middot", 183); // middle dot = Georgian comma = Greek middle dot, U+00B7 ISOnum
_entityName.Add(183, "middot");
_entityValue.Add("cedil", 184); // cedilla = spacing cedilla, U+00B8 ISOdia
_entityName.Add(184, "cedil");
_entityValue.Add("sup1", 185); // superscript one = superscript digit one, U+00B9 ISOnum
_entityName.Add(185, "sup1");
_entityValue.Add("ordm", 186); // masculine ordinal indicator, U+00BA ISOnum
_entityName.Add(186, "ordm");
_entityValue.Add("raquo", 187);
// right-pointing double angle quotation mark = right pointing guillemet, U+00BB ISOnum
_entityName.Add(187, "raquo");
_entityValue.Add("frac14", 188); // vulgar fraction one quarter = fraction one quarter, U+00BC ISOnum
_entityName.Add(188, "frac14");
_entityValue.Add("frac12", 189); // vulgar fraction one half = fraction one half, U+00BD ISOnum
_entityName.Add(189, "frac12");
_entityValue.Add("frac34", 190); // vulgar fraction three quarters = fraction three quarters, U+00BE ISOnum
_entityName.Add(190, "frac34");
_entityValue.Add("iquest", 191); // inverted question mark = turned question mark, U+00BF ISOnum
_entityName.Add(191, "iquest");
_entityValue.Add("Agrave", 192);
// latin capital letter A with grave = latin capital letter A grave, U+00C0 ISOlat1
_entityName.Add(192, "Agrave");
_entityValue.Add("Aacute", 193); // latin capital letter A with acute, U+00C1 ISOlat1
_entityName.Add(193, "Aacute");
_entityValue.Add("Acirc", 194); // latin capital letter A with circumflex, U+00C2 ISOlat1
_entityName.Add(194, "Acirc");
_entityValue.Add("Atilde", 195); // latin capital letter A with tilde, U+00C3 ISOlat1
_entityName.Add(195, "Atilde");
_entityValue.Add("Auml", 196); // latin capital letter A with diaeresis, U+00C4 ISOlat1
_entityName.Add(196, "Auml");
_entityValue.Add("Aring", 197);
// latin capital letter A with ring above = latin capital letter A ring, U+00C5 ISOlat1
_entityName.Add(197, "Aring");
_entityValue.Add("AElig", 198); // latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1
_entityName.Add(198, "AElig");
_entityValue.Add("Ccedil", 199); // latin capital letter C with cedilla, U+00C7 ISOlat1
_entityName.Add(199, "Ccedil");
_entityValue.Add("Egrave", 200); // latin capital letter E with grave, U+00C8 ISOlat1
_entityName.Add(200, "Egrave");
_entityValue.Add("Eacute", 201); // latin capital letter E with acute, U+00C9 ISOlat1
_entityName.Add(201, "Eacute");
_entityValue.Add("Ecirc", 202); // latin capital letter E with circumflex, U+00CA ISOlat1
_entityName.Add(202, "Ecirc");
_entityValue.Add("Euml", 203); // latin capital letter E with diaeresis, U+00CB ISOlat1
_entityName.Add(203, "Euml");
_entityValue.Add("Igrave", 204); // latin capital letter I with grave, U+00CC ISOlat1
_entityName.Add(204, "Igrave");
_entityValue.Add("Iacute", 205); // latin capital letter I with acute, U+00CD ISOlat1
_entityName.Add(205, "Iacute");
_entityValue.Add("Icirc", 206); // latin capital letter I with circumflex, U+00CE ISOlat1
_entityName.Add(206, "Icirc");
_entityValue.Add("Iuml", 207); // latin capital letter I with diaeresis, U+00CF ISOlat1
_entityName.Add(207, "Iuml");
_entityValue.Add("ETH", 208); // latin capital letter ETH, U+00D0 ISOlat1
_entityName.Add(208, "ETH");
_entityValue.Add("Ntilde", 209); // latin capital letter N with tilde, U+00D1 ISOlat1
_entityName.Add(209, "Ntilde");
_entityValue.Add("Ograve", 210); // latin capital letter O with grave, U+00D2 ISOlat1
_entityName.Add(210, "Ograve");
_entityValue.Add("Oacute", 211); // latin capital letter O with acute, U+00D3 ISOlat1
_entityName.Add(211, "Oacute");
_entityValue.Add("Ocirc", 212); // latin capital letter O with circumflex, U+00D4 ISOlat1
_entityName.Add(212, "Ocirc");
_entityValue.Add("Otilde", 213); // latin capital letter O with tilde, U+00D5 ISOlat1
_entityName.Add(213, "Otilde");
_entityValue.Add("Ouml", 214); // latin capital letter O with diaeresis, U+00D6 ISOlat1
_entityName.Add(214, "Ouml");
_entityValue.Add("times", 215); // multiplication sign, U+00D7 ISOnum
_entityName.Add(215, "times");
_entityValue.Add("Oslash", 216);
// latin capital letter O with stroke = latin capital letter O slash, U+00D8 ISOlat1
_entityName.Add(216, "Oslash");
_entityValue.Add("Ugrave", 217); // latin capital letter U with grave, U+00D9 ISOlat1
_entityName.Add(217, "Ugrave");
_entityValue.Add("Uacute", 218); // latin capital letter U with acute, U+00DA ISOlat1
_entityName.Add(218, "Uacute");
_entityValue.Add("Ucirc", 219); // latin capital letter U with circumflex, U+00DB ISOlat1
_entityName.Add(219, "Ucirc");
_entityValue.Add("Uuml", 220); // latin capital letter U with diaeresis, U+00DC ISOlat1
_entityName.Add(220, "Uuml");
_entityValue.Add("Yacute", 221); // latin capital letter Y with acute, U+00DD ISOlat1
_entityName.Add(221, "Yacute");
_entityValue.Add("THORN", 222); // latin capital letter THORN, U+00DE ISOlat1
_entityName.Add(222, "THORN");
_entityValue.Add("szlig", 223); // latin small letter sharp s = ess-zed, U+00DF ISOlat1
_entityName.Add(223, "szlig");
_entityValue.Add("agrave", 224);
// latin small letter a with grave = latin small letter a grave, U+00E0 ISOlat1
_entityName.Add(224, "agrave");
_entityValue.Add("aacute", 225); // latin small letter a with acute, U+00E1 ISOlat1
_entityName.Add(225, "aacute");
_entityValue.Add("acirc", 226); // latin small letter a with circumflex, U+00E2 ISOlat1
_entityName.Add(226, "acirc");
_entityValue.Add("atilde", 227); // latin small letter a with tilde, U+00E3 ISOlat1
_entityName.Add(227, "atilde");
_entityValue.Add("auml", 228); // latin small letter a with diaeresis, U+00E4 ISOlat1
_entityName.Add(228, "auml");
_entityValue.Add("aring", 229);
// latin small letter a with ring above = latin small letter a ring, U+00E5 ISOlat1
_entityName.Add(229, "aring");
_entityValue.Add("aelig", 230); // latin small letter ae = latin small ligature ae, U+00E6 ISOlat1
_entityName.Add(230, "aelig");
_entityValue.Add("ccedil", 231); // latin small letter c with cedilla, U+00E7 ISOlat1
_entityName.Add(231, "ccedil");
_entityValue.Add("egrave", 232); // latin small letter e with grave, U+00E8 ISOlat1
_entityName.Add(232, "egrave");
_entityValue.Add("eacute", 233); // latin small letter e with acute, U+00E9 ISOlat1
_entityName.Add(233, "eacute");
_entityValue.Add("ecirc", 234); // latin small letter e with circumflex, U+00EA ISOlat1
_entityName.Add(234, "ecirc");
_entityValue.Add("euml", 235); // latin small letter e with diaeresis, U+00EB ISOlat1
_entityName.Add(235, "euml");
_entityValue.Add("igrave", 236); // latin small letter i with grave, U+00EC ISOlat1
_entityName.Add(236, "igrave");
_entityValue.Add("iacute", 237); // latin small letter i with acute, U+00ED ISOlat1
_entityName.Add(237, "iacute");
_entityValue.Add("icirc", 238); // latin small letter i with circumflex, U+00EE ISOlat1
_entityName.Add(238, "icirc");
_entityValue.Add("iuml", 239); // latin small letter i with diaeresis, U+00EF ISOlat1
_entityName.Add(239, "iuml");
_entityValue.Add("eth", 240); // latin small letter eth, U+00F0 ISOlat1
_entityName.Add(240, "eth");
_entityValue.Add("ntilde", 241); // latin small letter n with tilde, U+00F1 ISOlat1
_entityName.Add(241, "ntilde");
_entityValue.Add("ograve", 242); // latin small letter o with grave, U+00F2 ISOlat1
_entityName.Add(242, "ograve");
_entityValue.Add("oacute", 243); // latin small letter o with acute, U+00F3 ISOlat1
_entityName.Add(243, "oacute");
_entityValue.Add("ocirc", 244); // latin small letter o with circumflex, U+00F4 ISOlat1
_entityName.Add(244, "ocirc");
_entityValue.Add("otilde", 245); // latin small letter o with tilde, U+00F5 ISOlat1
_entityName.Add(245, "otilde");
_entityValue.Add("ouml", 246); // latin small letter o with diaeresis, U+00F6 ISOlat1
_entityName.Add(246, "ouml");
_entityValue.Add("divide", 247); // division sign, U+00F7 ISOnum
_entityName.Add(247, "divide");
_entityValue.Add("oslash", 248);
// latin small letter o with stroke, = latin small letter o slash, U+00F8 ISOlat1
_entityName.Add(248, "oslash");
_entityValue.Add("ugrave", 249); // latin small letter u with grave, U+00F9 ISOlat1
_entityName.Add(249, "ugrave");
_entityValue.Add("uacute", 250); // latin small letter u with acute, U+00FA ISOlat1
_entityName.Add(250, "uacute");
_entityValue.Add("ucirc", 251); // latin small letter u with circumflex, U+00FB ISOlat1
_entityName.Add(251, "ucirc");
_entityValue.Add("uuml", 252); // latin small letter u with diaeresis, U+00FC ISOlat1
_entityName.Add(252, "uuml");
_entityValue.Add("yacute", 253); // latin small letter y with acute, U+00FD ISOlat1
_entityName.Add(253, "yacute");
_entityValue.Add("thorn", 254); // latin small letter thorn, U+00FE ISOlat1
_entityName.Add(254, "thorn");
_entityValue.Add("yuml", 255); // latin small letter y with diaeresis, U+00FF ISOlat1
_entityName.Add(255, "yuml");
_entityValue.Add("fnof", 402); // latin small f with hook = function = florin, U+0192 ISOtech
_entityName.Add(402, "fnof");
_entityValue.Add("Alpha", 913); // greek capital letter alpha, U+0391
_entityName.Add(913, "Alpha");
_entityValue.Add("Beta", 914); // greek capital letter beta, U+0392
_entityName.Add(914, "Beta");
_entityValue.Add("Gamma", 915); // greek capital letter gamma, U+0393 ISOgrk3
_entityName.Add(915, "Gamma");
_entityValue.Add("Delta", 916); // greek capital letter delta, U+0394 ISOgrk3
_entityName.Add(916, "Delta");
_entityValue.Add("Epsilon", 917); // greek capital letter epsilon, U+0395
_entityName.Add(917, "Epsilon");
_entityValue.Add("Zeta", 918); // greek capital letter zeta, U+0396
_entityName.Add(918, "Zeta");
_entityValue.Add("Eta", 919); // greek capital letter eta, U+0397
_entityName.Add(919, "Eta");
_entityValue.Add("Theta", 920); // greek capital letter theta, U+0398 ISOgrk3
_entityName.Add(920, "Theta");
_entityValue.Add("Iota", 921); // greek capital letter iota, U+0399
_entityName.Add(921, "Iota");
_entityValue.Add("Kappa", 922); // greek capital letter kappa, U+039A
_entityName.Add(922, "Kappa");
_entityValue.Add("Lambda", 923); // greek capital letter lambda, U+039B ISOgrk3
_entityName.Add(923, "Lambda");
_entityValue.Add("Mu", 924); // greek capital letter mu, U+039C
_entityName.Add(924, "Mu");
_entityValue.Add("Nu", 925); // greek capital letter nu, U+039D
_entityName.Add(925, "Nu");
_entityValue.Add("Xi", 926); // greek capital letter xi, U+039E ISOgrk3
_entityName.Add(926, "Xi");
_entityValue.Add("Omicron", 927); // greek capital letter omicron, U+039F
_entityName.Add(927, "Omicron");
_entityValue.Add("Pi", 928); // greek capital letter pi, U+03A0 ISOgrk3
_entityName.Add(928, "Pi");
_entityValue.Add("Rho", 929); // greek capital letter rho, U+03A1
_entityName.Add(929, "Rho");
_entityValue.Add("Sigma", 931); // greek capital letter sigma, U+03A3 ISOgrk3
_entityName.Add(931, "Sigma");
_entityValue.Add("Tau", 932); // greek capital letter tau, U+03A4
_entityName.Add(932, "Tau");
_entityValue.Add("Upsilon", 933); // greek capital letter upsilon, U+03A5 ISOgrk3
_entityName.Add(933, "Upsilon");
_entityValue.Add("Phi", 934); // greek capital letter phi, U+03A6 ISOgrk3
_entityName.Add(934, "Phi");
_entityValue.Add("Chi", 935); // greek capital letter chi, U+03A7
_entityName.Add(935, "Chi");
_entityValue.Add("Psi", 936); // greek capital letter psi, U+03A8 ISOgrk3
_entityName.Add(936, "Psi");
_entityValue.Add("Omega", 937); // greek capital letter omega, U+03A9 ISOgrk3
_entityName.Add(937, "Omega");
_entityValue.Add("alpha", 945); // greek small letter alpha, U+03B1 ISOgrk3
_entityName.Add(945, "alpha");
_entityValue.Add("beta", 946); // greek small letter beta, U+03B2 ISOgrk3
_entityName.Add(946, "beta");
_entityValue.Add("gamma", 947); // greek small letter gamma, U+03B3 ISOgrk3
_entityName.Add(947, "gamma");
_entityValue.Add("delta", 948); // greek small letter delta, U+03B4 ISOgrk3
_entityName.Add(948, "delta");
_entityValue.Add("epsilon", 949); // greek small letter epsilon, U+03B5 ISOgrk3
_entityName.Add(949, "epsilon");
_entityValue.Add("zeta", 950); // greek small letter zeta, U+03B6 ISOgrk3
_entityName.Add(950, "zeta");
_entityValue.Add("eta", 951); // greek small letter eta, U+03B7 ISOgrk3
_entityName.Add(951, "eta");
_entityValue.Add("theta", 952); // greek small letter theta, U+03B8 ISOgrk3
_entityName.Add(952, "theta");
_entityValue.Add("iota", 953); // greek small letter iota, U+03B9 ISOgrk3
_entityName.Add(953, "iota");
_entityValue.Add("kappa", 954); // greek small letter kappa, U+03BA ISOgrk3
_entityName.Add(954, "kappa");
_entityValue.Add("lambda", 955); // greek small letter lambda, U+03BB ISOgrk3
_entityName.Add(955, "lambda");
_entityValue.Add("mu", 956); // greek small letter mu, U+03BC ISOgrk3
_entityName.Add(956, "mu");
_entityValue.Add("nu", 957); // greek small letter nu, U+03BD ISOgrk3
_entityName.Add(957, "nu");
_entityValue.Add("xi", 958); // greek small letter xi, U+03BE ISOgrk3
_entityName.Add(958, "xi");
_entityValue.Add("omicron", 959); // greek small letter omicron, U+03BF NEW
_entityName.Add(959, "omicron");
_entityValue.Add("pi", 960); // greek small letter pi, U+03C0 ISOgrk3
_entityName.Add(960, "pi");
_entityValue.Add("rho", 961); // greek small letter rho, U+03C1 ISOgrk3
_entityName.Add(961, "rho");
_entityValue.Add("sigmaf", 962); // greek small letter final sigma, U+03C2 ISOgrk3
_entityName.Add(962, "sigmaf");
_entityValue.Add("sigma", 963); // greek small letter sigma, U+03C3 ISOgrk3
_entityName.Add(963, "sigma");
_entityValue.Add("tau", 964); // greek small letter tau, U+03C4 ISOgrk3
_entityName.Add(964, "tau");
_entityValue.Add("upsilon", 965); // greek small letter upsilon, U+03C5 ISOgrk3
_entityName.Add(965, "upsilon");
_entityValue.Add("phi", 966); // greek small letter phi, U+03C6 ISOgrk3
_entityName.Add(966, "phi");
_entityValue.Add("chi", 967); // greek small letter chi, U+03C7 ISOgrk3
_entityName.Add(967, "chi");
_entityValue.Add("psi", 968); // greek small letter psi, U+03C8 ISOgrk3
_entityName.Add(968, "psi");
_entityValue.Add("omega", 969); // greek small letter omega, U+03C9 ISOgrk3
_entityName.Add(969, "omega");
_entityValue.Add("thetasym", 977); // greek small letter theta symbol, U+03D1 NEW
_entityName.Add(977, "thetasym");
_entityValue.Add("upsih", 978); // greek upsilon with hook symbol, U+03D2 NEW
_entityName.Add(978, "upsih");
_entityValue.Add("piv", 982); // greek pi symbol, U+03D6 ISOgrk3
_entityName.Add(982, "piv");
_entityValue.Add("bull", 8226); // bullet = black small circle, U+2022 ISOpub
_entityName.Add(8226, "bull");
_entityValue.Add("hellip", 8230); // horizontal ellipsis = three dot leader, U+2026 ISOpub
_entityName.Add(8230, "hellip");
_entityValue.Add("prime", 8242); // prime = minutes = feet, U+2032 ISOtech
_entityName.Add(8242, "prime");
_entityValue.Add("Prime", 8243); // double prime = seconds = inches, U+2033 ISOtech
_entityName.Add(8243, "Prime");
_entityValue.Add("oline", 8254); // overline = spacing overscore, U+203E NEW
_entityName.Add(8254, "oline");
_entityValue.Add("frasl", 8260); // fraction slash, U+2044 NEW
_entityName.Add(8260, "frasl");
_entityValue.Add("weierp", 8472); // script capital P = power set = Weierstrass p, U+2118 ISOamso
_entityName.Add(8472, "weierp");
_entityValue.Add("image", 8465); // blackletter capital I = imaginary part, U+2111 ISOamso
_entityName.Add(8465, "image");
_entityValue.Add("real", 8476); // blackletter capital R = real part symbol, U+211C ISOamso
_entityName.Add(8476, "real");
_entityValue.Add("trade", 8482); // trade mark sign, U+2122 ISOnum
_entityName.Add(8482, "trade");
_entityValue.Add("alefsym", 8501); // alef symbol = first transfinite cardinal, U+2135 NEW
_entityName.Add(8501, "alefsym");
_entityValue.Add("larr", 8592); // leftwards arrow, U+2190 ISOnum
_entityName.Add(8592, "larr");
_entityValue.Add("uarr", 8593); // upwards arrow, U+2191 ISOnum
_entityName.Add(8593, "uarr");
_entityValue.Add("rarr", 8594); // rightwards arrow, U+2192 ISOnum
_entityName.Add(8594, "rarr");
_entityValue.Add("darr", 8595); // downwards arrow, U+2193 ISOnum
_entityName.Add(8595, "darr");
_entityValue.Add("harr", 8596); // left right arrow, U+2194 ISOamsa
_entityName.Add(8596, "harr");
_entityValue.Add("crarr", 8629); // downwards arrow with corner leftwards = carriage return, U+21B5 NEW
_entityName.Add(8629, "crarr");
_entityValue.Add("lArr", 8656); // leftwards double arrow, U+21D0 ISOtech
_entityName.Add(8656, "lArr");
_entityValue.Add("uArr", 8657); // upwards double arrow, U+21D1 ISOamsa
_entityName.Add(8657, "uArr");
_entityValue.Add("rArr", 8658); // rightwards double arrow, U+21D2 ISOtech
_entityName.Add(8658, "rArr");
_entityValue.Add("dArr", 8659); // downwards double arrow, U+21D3 ISOamsa
_entityName.Add(8659, "dArr");
_entityValue.Add("hArr", 8660); // left right double arrow, U+21D4 ISOamsa
_entityName.Add(8660, "hArr");
_entityValue.Add("forall", 8704); // for all, U+2200 ISOtech
_entityName.Add(8704, "forall");
_entityValue.Add("part", 8706); // partial differential, U+2202 ISOtech
_entityName.Add(8706, "part");
_entityValue.Add("exist", 8707); // there exists, U+2203 ISOtech
_entityName.Add(8707, "exist");
_entityValue.Add("empty", 8709); // empty set = null set = diameter, U+2205 ISOamso
_entityName.Add(8709, "empty");
_entityValue.Add("nabla", 8711); // nabla = backward difference, U+2207 ISOtech
_entityName.Add(8711, "nabla");
_entityValue.Add("isin", 8712); // element of, U+2208 ISOtech
_entityName.Add(8712, "isin");
_entityValue.Add("notin", 8713); // not an element of, U+2209 ISOtech
_entityName.Add(8713, "notin");
_entityValue.Add("ni", 8715); // contains as member, U+220B ISOtech
_entityName.Add(8715, "ni");
_entityValue.Add("prod", 8719); // n-ary product = product sign, U+220F ISOamsb
_entityName.Add(8719, "prod");
_entityValue.Add("sum", 8721); // n-ary sumation, U+2211 ISOamsb
_entityName.Add(8721, "sum");
_entityValue.Add("minus", 8722); // minus sign, U+2212 ISOtech
_entityName.Add(8722, "minus");
_entityValue.Add("lowast", 8727); // asterisk operator, U+2217 ISOtech
_entityName.Add(8727, "lowast");
_entityValue.Add("radic", 8730); // square root = radical sign, U+221A ISOtech
_entityName.Add(8730, "radic");
_entityValue.Add("prop", 8733); // proportional to, U+221D ISOtech
_entityName.Add(8733, "prop");
_entityValue.Add("infin", 8734); // infinity, U+221E ISOtech
_entityName.Add(8734, "infin");
_entityValue.Add("ang", 8736); // angle, U+2220 ISOamso
_entityName.Add(8736, "ang");
_entityValue.Add("and", 8743); // logical and = wedge, U+2227 ISOtech
_entityName.Add(8743, "and");
_entityValue.Add("or", 8744); // logical or = vee, U+2228 ISOtech
_entityName.Add(8744, "or");
_entityValue.Add("cap", 8745); // intersection = cap, U+2229 ISOtech
_entityName.Add(8745, "cap");
_entityValue.Add("cup", 8746); // union = cup, U+222A ISOtech
_entityName.Add(8746, "cup");
_entityValue.Add("int", 8747); // integral, U+222B ISOtech
_entityName.Add(8747, "int");
_entityValue.Add("there4", 8756); // therefore, U+2234 ISOtech
_entityName.Add(8756, "there4");
_entityValue.Add("sim", 8764); // tilde operator = varies with = similar to, U+223C ISOtech
_entityName.Add(8764, "sim");
_entityValue.Add("cong", 8773); // approximately equal to, U+2245 ISOtech
_entityName.Add(8773, "cong");
_entityValue.Add("asymp", 8776); // almost equal to = asymptotic to, U+2248 ISOamsr
_entityName.Add(8776, "asymp");
_entityValue.Add("ne", 8800); // not equal to, U+2260 ISOtech
_entityName.Add(8800, "ne");
_entityValue.Add("equiv", 8801); // identical to, U+2261 ISOtech
_entityName.Add(8801, "equiv");
_entityValue.Add("le", 8804); // less-than or equal to, U+2264 ISOtech
_entityName.Add(8804, "le");
_entityValue.Add("ge", 8805); // greater-than or equal to, U+2265 ISOtech
_entityName.Add(8805, "ge");
_entityValue.Add("sub", 8834); // subset of, U+2282 ISOtech
_entityName.Add(8834, "sub");
_entityValue.Add("sup", 8835); // superset of, U+2283 ISOtech
_entityName.Add(8835, "sup");
_entityValue.Add("nsub", 8836); // not a subset of, U+2284 ISOamsn
_entityName.Add(8836, "nsub");
_entityValue.Add("sube", 8838); // subset of or equal to, U+2286 ISOtech
_entityName.Add(8838, "sube");
_entityValue.Add("supe", 8839); // superset of or equal to, U+2287 ISOtech
_entityName.Add(8839, "supe");
_entityValue.Add("oplus", 8853); // circled plus = direct sum, U+2295 ISOamsb
_entityName.Add(8853, "oplus");
_entityValue.Add("otimes", 8855); // circled times = vector product, U+2297 ISOamsb
_entityName.Add(8855, "otimes");
_entityValue.Add("perp", 8869); // up tack = orthogonal to = perpendicular, U+22A5 ISOtech
_entityName.Add(8869, "perp");
_entityValue.Add("sdot", 8901); // dot operator, U+22C5 ISOamsb
_entityName.Add(8901, "sdot");
_entityValue.Add("lceil", 8968); // left ceiling = apl upstile, U+2308 ISOamsc
_entityName.Add(8968, "lceil");
_entityValue.Add("rceil", 8969); // right ceiling, U+2309 ISOamsc
_entityName.Add(8969, "rceil");
_entityValue.Add("lfloor", 8970); // left floor = apl downstile, U+230A ISOamsc
_entityName.Add(8970, "lfloor");
_entityValue.Add("rfloor", 8971); // right floor, U+230B ISOamsc
_entityName.Add(8971, "rfloor");
_entityValue.Add("lang", 9001); // left-pointing angle bracket = bra, U+2329 ISOtech
_entityName.Add(9001, "lang");
_entityValue.Add("rang", 9002); // right-pointing angle bracket = ket, U+232A ISOtech
_entityName.Add(9002, "rang");
_entityValue.Add("loz", 9674); // lozenge, U+25CA ISOpub
_entityName.Add(9674, "loz");
_entityValue.Add("spades", 9824); // black spade suit, U+2660 ISOpub
_entityName.Add(9824, "spades");
_entityValue.Add("clubs", 9827); // black club suit = shamrock, U+2663 ISOpub
_entityName.Add(9827, "clubs");
_entityValue.Add("hearts", 9829); // black heart suit = valentine, U+2665 ISOpub
_entityName.Add(9829, "hearts");
_entityValue.Add("diams", 9830); // black diamond suit, U+2666 ISOpub
_entityName.Add(9830, "diams");
_entityValue.Add("quot", 34); // quotation mark = APL quote, U+0022 ISOnum
_entityName.Add(34, "quot");
_entityValue.Add("amp", 38); // ampersand, U+0026 ISOnum
_entityName.Add(38, "amp");
_entityValue.Add("lt", 60); // less-than sign, U+003C ISOnum
_entityName.Add(60, "lt");
_entityValue.Add("gt", 62); // greater-than sign, U+003E ISOnum
_entityName.Add(62, "gt");
_entityValue.Add("OElig", 338); // latin capital ligature OE, U+0152 ISOlat2
_entityName.Add(338, "OElig");
_entityValue.Add("oelig", 339); // latin small ligature oe, U+0153 ISOlat2
_entityName.Add(339, "oelig");
_entityValue.Add("Scaron", 352); // latin capital letter S with caron, U+0160 ISOlat2
_entityName.Add(352, "Scaron");
_entityValue.Add("scaron", 353); // latin small letter s with caron, U+0161 ISOlat2
_entityName.Add(353, "scaron");
_entityValue.Add("Yuml", 376); // latin capital letter Y with diaeresis, U+0178 ISOlat2
_entityName.Add(376, "Yuml");
_entityValue.Add("circ", 710); // modifier letter circumflex accent, U+02C6 ISOpub
_entityName.Add(710, "circ");
_entityValue.Add("tilde", 732); // small tilde, U+02DC ISOdia
_entityName.Add(732, "tilde");
_entityValue.Add("ensp", 8194); // en space, U+2002 ISOpub
_entityName.Add(8194, "ensp");
_entityValue.Add("emsp", 8195); // em space, U+2003 ISOpub
_entityName.Add(8195, "emsp");
_entityValue.Add("thinsp", 8201); // thin space, U+2009 ISOpub
_entityName.Add(8201, "thinsp");
_entityValue.Add("zwnj", 8204); // zero width non-joiner, U+200C NEW RFC 2070
_entityName.Add(8204, "zwnj");
_entityValue.Add("zwj", 8205); // zero width joiner, U+200D NEW RFC 2070
_entityName.Add(8205, "zwj");
_entityValue.Add("lrm", 8206); // left-to-right mark, U+200E NEW RFC 2070
_entityName.Add(8206, "lrm");
_entityValue.Add("rlm", 8207); // right-to-left mark, U+200F NEW RFC 2070
_entityName.Add(8207, "rlm");
_entityValue.Add("ndash", 8211); // en dash, U+2013 ISOpub
_entityName.Add(8211, "ndash");
_entityValue.Add("mdash", 8212); // em dash, U+2014 ISOpub
_entityName.Add(8212, "mdash");
_entityValue.Add("lsquo", 8216); // left single quotation mark, U+2018 ISOnum
_entityName.Add(8216, "lsquo");
_entityValue.Add("rsquo", 8217); // right single quotation mark, U+2019 ISOnum
_entityName.Add(8217, "rsquo");
_entityValue.Add("sbquo", 8218); // single low-9 quotation mark, U+201A NEW
_entityName.Add(8218, "sbquo");
_entityValue.Add("ldquo", 8220); // left double quotation mark, U+201C ISOnum
_entityName.Add(8220, "ldquo");
_entityValue.Add("rdquo", 8221); // right double quotation mark, U+201D ISOnum
_entityName.Add(8221, "rdquo");
_entityValue.Add("bdquo", 8222); // double low-9 quotation mark, U+201E NEW
_entityName.Add(8222, "bdquo");
_entityValue.Add("dagger", 8224); // dagger, U+2020 ISOpub
_entityName.Add(8224, "dagger");
_entityValue.Add("Dagger", 8225); // double dagger, U+2021 ISOpub
_entityName.Add(8225, "Dagger");
_entityValue.Add("permil", 8240); // per mille sign, U+2030 ISOtech
_entityName.Add(8240, "permil");
_entityValue.Add("lsaquo", 8249); // single left-pointing angle quotation mark, U+2039 ISO proposed
_entityName.Add(8249, "lsaquo");
_entityValue.Add("rsaquo", 8250); // single right-pointing angle quotation mark, U+203A ISO proposed
_entityName.Add(8250, "rsaquo");
_entityValue.Add("euro", 8364); // euro sign, U+20AC NEW
_entityName.Add(8364, "euro");
_maxEntitySize = 8 + 1; // we add the # char
#endregion
}
private HtmlEntity()
{
}
#endregion
#region Public Methods
/// <summary>
/// Replace known entities by characters.
/// </summary>
/// <param name="text">The source text.</param>
/// <returns>The result text.</returns>
public static string DeEntitize(string text)
{
if (text == null)
return null;
if (text.Length == 0)
return text;
StringBuilder sb = new StringBuilder(text.Length);
ParseState state = ParseState.Text;
StringBuilder entity = new StringBuilder(10);
for (int i = 0; i < text.Length; i++)
{
switch (state)
{
case ParseState.Text:
switch (text[i])
{
case '&':
state = ParseState.EntityStart;
break;
default:
sb.Append(text[i]);
break;
}
break;
case ParseState.EntityStart:
switch (text[i])
{
case ';':
if (entity.Length == 0)
{
sb.Append("&;");
}
else
{
if (entity[0] == '#')
{
string e = entity.ToString();
try
{
int code = Convert.ToInt32(e.Substring(1, e.Length - 1));
sb.Append(Convert.ToChar(code));
}
catch
{
sb.Append("&#" + e + ";");
}
}
else
{
// named entity?
int code;
object o = _entityValue[entity.ToString()];
if (o == null)
{
// nope
sb.Append("&" + entity + ";");
}
else
{
// we found one
code = (int) o;
sb.Append(Convert.ToChar(code));
}
}
entity.Remove(0, entity.Length);
}
state = ParseState.Text;
break;
case '&':
// new entity start without end, it was not an entity...
sb.Append("&" + entity);
entity.Remove(0, entity.Length);
break;
default:
entity.Append(text[i]);
if (entity.Length > _maxEntitySize)
{
// unknown stuff, just don't touch it
state = ParseState.Text;
sb.Append("&" + entity);
entity.Remove(0, entity.Length);
}
break;
}
break;
}
}
// finish the work
if (state == ParseState.EntityStart)
{
sb.Append("&" + entity);
}
return sb.ToString();
}
/// <summary>
/// Clone and entitize an HtmlNode. This will affect attribute values and nodes' text. It will also entitize all child nodes.
/// </summary>
/// <param name="node">The node to entitize.</param>
/// <returns>An entitized cloned node.</returns>
public static HtmlNode Entitize(HtmlNode node)
{
if (node == null)
{
throw new ArgumentNullException("node");
}
HtmlNode result = node.CloneNode(true);
if (result.HasAttributes)
Entitize(result.Attributes);
if (result.HasChildNodes)
{
Entitize(result.ChildNodes);
}
else
{
if (result.NodeType == HtmlNodeType.Text)
{
((HtmlTextNode) result).Text = Entitize(((HtmlTextNode) result).Text, true, true);
}
}
return result;
}
/// <summary>
/// Replace characters above 127 by entities.
/// </summary>
/// <param name="text">The source text.</param>
/// <returns>The result text.</returns>
public static string Entitize(string text)
{
return Entitize(text, true);
}
/// <summary>
/// Replace characters above 127 by entities.
/// </summary>
/// <param name="text">The source text.</param>
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
/// <returns>The result text.</returns>
public static string Entitize(string text, bool useNames)
{
return Entitize(text, useNames, false);
}
/// <summary>
/// Replace characters above 127 by entities.
/// </summary>
/// <param name="text">The source text.</param>
/// <param name="useNames">If set to false, the function will not use known entities name. Default is true.</param>
/// <param name="entitizeQuotAmpAndLtGt">If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized.</param>
/// <returns>The result text</returns>
public static string Entitize(string text, bool useNames, bool entitizeQuotAmpAndLtGt)
// _entityValue.Add("quot", 34); // quotation mark = APL quote, U+0022 ISOnum
// _entityName.Add(34, "quot");
// _entityValue.Add("amp", 38); // ampersand, U+0026 ISOnum
// _entityName.Add(38, "amp");
// _entityValue.Add("lt", 60); // less-than sign, U+003C ISOnum
// _entityName.Add(60, "lt");
// _entityValue.Add("gt", 62); // greater-than sign, U+003E ISOnum
// _entityName.Add(62, "gt");
{
if (text == null)
return null;
if (text.Length == 0)
return text;
StringBuilder sb = new StringBuilder(text.Length);
for (int i = 0; i < text.Length; i++)
{
int code = text[i];
if ((code > 127) ||
(entitizeQuotAmpAndLtGt && ((code == 34) || (code == 38) || (code == 60) || (code == 62))))
{
string entity = _entityName[code] as string;
if ((entity == null) || (!useNames))
{
sb.Append("&#" + code + ";");
}
else
{
sb.Append("&" + entity + ";");
}
}
else
{
sb.Append(text[i]);
}
}
return sb.ToString();
}
#endregion
#region Private Methods
private static void Entitize(HtmlAttributeCollection collection)
{
foreach (HtmlAttribute at in collection)
{
at.Value = Entitize(at.Value);
}
}
private static void Entitize(HtmlNodeCollection collection)
{
foreach (HtmlNode node in collection)
{
if (node.HasAttributes)
Entitize(node.Attributes);
if (node.HasChildNodes)
{
Entitize(node.ChildNodes);
}
else
{
if (node.NodeType == HtmlNodeType.Text)
{
((HtmlTextNode) node).Text = Entitize(((HtmlTextNode) node).Text, true, true);
}
}
}
}
#endregion
#region Nested type: ParseState
private enum ParseState
{
Text,
EntityStart
}
#endregion
}
}
+52
View File
@@ -0,0 +1,52 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System.Xml;
namespace HtmlAgilityPack
{
internal class HtmlNameTable : XmlNameTable
{
#region Fields
private NameTable _nametable = new NameTable();
#endregion
#region Public Methods
public override string Add(string array)
{
return _nametable.Add(array);
}
public override string Add(char[] array, int offset, int length)
{
return _nametable.Add(array, offset, length);
}
public override string Get(string array)
{
return _nametable.Get(array);
}
public override string Get(char[] array, int offset, int length)
{
return _nametable.Get(array, offset, length);
}
#endregion
#region Internal Methods
internal string GetOrAdd(string array)
{
string s = Get(array);
if (s == null)
{
return Add(array);
}
return s;
}
#endregion
}
}
File diff suppressed because it is too large. Load diff
+512
View File
@@ -0,0 +1,512 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
using System.Collections.Generic;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a combined list and collection of HTML nodes.
/// </summary>
public class HtmlNodeCollection : IList<HtmlNode>
{
#region Fields
private readonly HtmlNode _parentnode;
private readonly List<HtmlNode> _items = new List<HtmlNode>();
#endregion
#region Constructors
/// <summary>
/// Initialize the HtmlNodeCollection with the base parent node
/// </summary>
/// <param name="parentnode">The base node of the collection</param>
public HtmlNodeCollection(HtmlNode parentnode)
{
_parentnode = parentnode; // may be null
}
#endregion
#region Properties
/// <summary>
/// Gets a given node from the list.
/// </summary>
public int this[HtmlNode node]
{
get
{
int index = GetNodeIndex(node);
if (index == -1)
{
throw new ArgumentOutOfRangeException("node",
"Node \"" + node.CloneNode(false).OuterHtml +
"\" was not found in the collection");
}
return index;
}
}
/// <summary>
/// Get node with tag name
/// </summary>
/// <param name="nodeName"></param>
/// <returns></returns>
public HtmlNode this[string nodeName]
{
get
{
nodeName = nodeName.ToLower();
for (int i = 0; i < _items.Count; i++)
if (_items[i].Equals(nodeName))
return _items[i];
return null;
}
}
#endregion
#region IList<HtmlNode> Members
/// <summary>
/// Gets the number of elements actually contained in the list.
/// </summary>
public int Count
{
get { return _items.Count; }
}
/// <summary>
/// Is collection read only
/// </summary>
public bool IsReadOnly
{
get { return false; }
}
/// <summary>
/// Gets the node at the specified index.
/// </summary>
public HtmlNode this[int index]
{
get { return _items[index]; }
set { _items[index] = value; }
}
/// <summary>
/// Add node to the collection
/// </summary>
/// <param name="node"></param>
public void Add(HtmlNode node)
{
_items.Add(node);
}
/// <summary>
/// Clears out the collection of HtmlNodes. Removes each nodes reference to parentnode, nextnode and prevnode
/// </summary>
public void Clear()
{
foreach (HtmlNode node in _items)
{
node.ParentNode = null;
node.NextSibling = null;
node.PreviousSibling = null;
}
_items.Clear();
}
/// <summary>
/// Gets existence of node in collection
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public bool Contains(HtmlNode item)
{
return _items.Contains(item);
}
/// <summary>
/// Copy collection to array
/// </summary>
/// <param name="array"></param>
/// <param name="arrayIndex"></param>
public void CopyTo(HtmlNode[] array, int arrayIndex)
{
_items.CopyTo(array, arrayIndex);
}
/// <summary>
/// Get Enumerator
/// </summary>
/// <returns></returns>
IEnumerator<HtmlNode> IEnumerable<HtmlNode>.GetEnumerator()
{
return _items.GetEnumerator();
}
/// <summary>
/// Get Explicit Enumerator
/// </summary>
/// <returns></returns>
IEnumerator IEnumerable.GetEnumerator()
{
return _items.GetEnumerator();
}
/// <summary>
/// Get index of node
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public int IndexOf(HtmlNode item)
{
return _items.IndexOf(item);
}
/// <summary>
/// Insert node at index
/// </summary>
/// <param name="index"></param>
/// <param name="node"></param>
public void Insert(int index, HtmlNode node)
{
HtmlNode next = null;
HtmlNode prev = null;
if (index > 0)
{
prev = _items[index - 1];
}
if (index < _items.Count)
{
next = _items[index];
}
_items.Insert(index, node);
if (prev != null)
{
if (node == prev)
{
throw new InvalidProgramException("Unexpected error.");
}
prev._nextnode = node;
}
if (next != null)
{
next._prevnode = node;
}
node._prevnode = prev;
if (next == node)
{
throw new InvalidProgramException("Unexpected error.");
}
node._nextnode = next;
node._parentnode = _parentnode;
}
/// <summary>
/// Remove node
/// </summary>
/// <param name="item"></param>
/// <returns></returns>
public bool Remove(HtmlNode item)
{
int i = _items.IndexOf(item);
RemoveAt(i);
return true;
}
/// <summary>
/// Remove <see cref="HtmlNode"/> at index
/// </summary>
/// <param name="index"></param>
public void RemoveAt(int index)
{
HtmlNode next = null;
HtmlNode prev = null;
HtmlNode oldnode = _items[index];
if (index > 0)
{
prev = _items[index - 1];
}
if (index < (_items.Count - 1))
{
next = _items[index + 1];
}
_items.RemoveAt(index);
if (prev != null)
{
if (next == prev)
{
throw new InvalidProgramException("Unexpected error.");
}
prev._nextnode = next;
}
if (next != null)
{
next._prevnode = prev;
}
oldnode._prevnode = null;
oldnode._nextnode = null;
oldnode._parentnode = null;
}
#endregion
#region Public Methods
/// <summary>
/// Get first instance of node in supplied collection
/// </summary>
/// <param name="items"></param>
/// <param name="name"></param>
/// <returns></returns>
public static HtmlNode FindFirst(HtmlNodeCollection items, string name)
{
foreach (HtmlNode node in items)
{
if (node.Name.ToLower().Contains(name))
return node;
if (node.HasChildNodes)
{
HtmlNode returnNode = FindFirst(node.ChildNodes, name);
if (returnNode != null)
return returnNode;
}
}
return null;
}
/// <summary>
/// Add node to the end of the collection
/// </summary>
/// <param name="node"></param>
public void Append(HtmlNode node)
{
HtmlNode last = null;
if (_items.Count > 0)
{
last = _items[_items.Count - 1];
}
_items.Add(node);
node._prevnode = last;
node._nextnode = null;
node._parentnode = _parentnode;
if (last != null)
{
if (last == node)
{
throw new InvalidProgramException("Unexpected error.");
}
last._nextnode = node;
}
}
/// <summary>
/// Get first instance of node with name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public HtmlNode FindFirst(string name)
{
return FindFirst(this, name);
}
/// <summary>
/// Get index of node
/// </summary>
/// <param name="node"></param>
/// <returns></returns>
public int GetNodeIndex(HtmlNode node)
{
// TODO: should we rewrite this? what would be the key of a node?
for (int i = 0; i < _items.Count; i++)
{
if (node == (_items[i]))
{
return i;
}
}
return -1;
}
/// <summary>
/// Add node to the beginning of the collection
/// </summary>
/// <param name="node"></param>
public void Prepend(HtmlNode node)
{
HtmlNode first = null;
if (_items.Count > 0)
{
first = _items[0];
}
_items.Insert(0, node);
if (node == first)
{
throw new InvalidProgramException("Unexpected error.");
}
node._nextnode = first;
node._prevnode = null;
node._parentnode = _parentnode;
if (first != null)
{
first._prevnode = node;
}
}
/// <summary>
/// Remove node at index
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public bool Remove(int index)
{
RemoveAt(index);
return true;
}
/// <summary>
/// Replace node at index
/// </summary>
/// <param name="index"></param>
/// <param name="node"></param>
public void Replace(int index, HtmlNode node)
{
HtmlNode next = null;
HtmlNode prev = null;
HtmlNode oldnode = _items[index];
if (index > 0)
{
prev = _items[index - 1];
}
if (index < (_items.Count - 1))
{
next = _items[index + 1];
}
_items[index] = node;
if (prev != null)
{
if (node == prev)
{
throw new InvalidProgramException("Unexpected error.");
}
prev._nextnode = node;
}
if (next != null)
{
next._prevnode = node;
}
node._prevnode = prev;
if (next == node)
{
throw new InvalidProgramException("Unexpected error.");
}
node._nextnode = next;
node._parentnode = _parentnode;
oldnode._prevnode = null;
oldnode._nextnode = null;
oldnode._parentnode = null;
}
#endregion
#region LINQ Methods
/// <summary>
/// Get all node descended from this collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> DescendantNodes()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.DescendantNodes())
yield return n;
}
/// <summary>
/// Get all node descended from this collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Descendants()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.Descendants())
yield return n;
}
/// <summary>
/// Get all node descended from this collection with matching name
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Descendants(string name)
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.Descendants(name))
yield return n;
}
/// <summary>
/// Gets all first generation elements in collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Elements()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.ChildNodes)
yield return n;
}
/// <summary>
/// Gets all first generation elements matching name
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public IEnumerable<HtmlNode> Elements(string name)
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.Elements(name))
yield return n;
}
/// <summary>
/// All first generation nodes in collection
/// </summary>
/// <returns></returns>
public IEnumerable<HtmlNode> Nodes()
{
foreach (HtmlNode item in _items)
foreach (HtmlNode n in item.ChildNodes)
yield return n;
}
#endregion
}
}
+768
View File
@@ -0,0 +1,768 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.XPath;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML navigator on an HTML document seen as a data store.
/// </summary>
public class HtmlNodeNavigator : XPathNavigator
{
#region Fields
private int _attindex;
private HtmlNode _currentnode;
private HtmlDocument _doc = new HtmlDocument();
private HtmlNameTable _nametable = new HtmlNameTable();
internal bool Trace;
#endregion
#region Constructors
internal HtmlNodeNavigator()
{
Reset();
}
internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
{
if (currentNode == null)
{
throw new ArgumentNullException("currentNode");
}
if (currentNode.OwnerDocument != doc)
{
throw new ArgumentException(HtmlDocument.HtmlExceptionRefNotChild);
}
InternalTrace(null);
_doc = doc;
Reset();
_currentnode = currentNode;
}
private HtmlNodeNavigator(HtmlNodeNavigator nav)
{
if (nav == null)
{
throw new ArgumentNullException("nav");
}
InternalTrace(null);
_doc = nav._doc;
_currentnode = nav._currentnode;
_attindex = nav._attindex;
_nametable = nav._nametable; // REVIEW: should we do this?
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
public HtmlNodeNavigator(Stream stream)
{
_doc.Load(stream);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
public HtmlNodeNavigator(Stream stream, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(stream, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
public HtmlNodeNavigator(Stream stream, Encoding encoding)
{
_doc.Load(stream, encoding);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(stream, encoding, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the stream.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
_doc.Load(stream, encoding, detectEncodingFromByteOrderMarks, buffersize);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a TextReader.
/// </summary>
/// <param name="reader">The TextReader used to feed the HTML data into the document.</param>
public HtmlNodeNavigator(TextReader reader)
{
_doc.Load(reader);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
public HtmlNodeNavigator(string path)
{
_doc.Load(path);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(path, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
public HtmlNodeNavigator(string path, Encoding encoding)
{
_doc.Load(path, encoding);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
_doc.Load(path, encoding, detectEncodingFromByteOrderMarks);
Reset();
}
/// <summary>
/// Initializes a new instance of the HtmlNavigator and loads an HTML document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
_doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize);
Reset();
}
#endregion
#region Properties
/// <summary>
/// Gets the base URI for the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string BaseURI
{
get
{
InternalTrace(">");
return _nametable.GetOrAdd(string.Empty);
}
}
/// <summary>
/// Gets the current HTML document.
/// </summary>
public HtmlDocument CurrentDocument
{
get { return _doc; }
}
/// <summary>
/// Gets the current HTML node.
/// </summary>
public HtmlNode CurrentNode
{
get { return _currentnode; }
}
/// <summary>
/// Gets a value indicating whether the current node has child nodes.
/// </summary>
public override bool HasAttributes
{
get
{
InternalTrace(">" + (_currentnode.Attributes.Count > 0));
return (_currentnode.Attributes.Count > 0);
}
}
/// <summary>
/// Gets a value indicating whether the current node has child nodes.
/// </summary>
public override bool HasChildren
{
get
{
InternalTrace(">" + (_currentnode.ChildNodes.Count > 0));
return (_currentnode.ChildNodes.Count > 0);
}
}
/// <summary>
/// Gets a value indicating whether the current node is an empty element.
/// </summary>
public override bool IsEmptyElement
{
get
{
InternalTrace(">" + !HasChildren);
// REVIEW: is this ok?
return !HasChildren;
}
}
/// <summary>
/// Gets the name of the current HTML node without the namespace prefix.
/// </summary>
public override string LocalName
{
get
{
if (_attindex != -1)
{
InternalTrace("att>" + _currentnode.Attributes[_attindex].Name);
return _nametable.GetOrAdd(_currentnode.Attributes[_attindex].Name);
}
InternalTrace("node>" + _currentnode.Name);
return _nametable.GetOrAdd(_currentnode.Name);
}
}
/// <summary>
/// Gets the qualified name of the current node.
/// </summary>
public override string Name
{
get
{
InternalTrace(">" + _currentnode.Name);
return _nametable.GetOrAdd(_currentnode.Name);
}
}
/// <summary>
/// Gets the namespace URI (as defined in the W3C Namespace Specification) of the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string NamespaceURI
{
get
{
InternalTrace(">");
return _nametable.GetOrAdd(string.Empty);
}
}
/// <summary>
/// Gets the <see cref="XmlNameTable"/> associated with this implementation.
/// </summary>
public override XmlNameTable NameTable
{
get
{
InternalTrace(null);
return _nametable;
}
}
/// <summary>
/// Gets the type of the current node.
/// </summary>
public override XPathNodeType NodeType
{
get
{
switch (_currentnode.NodeType)
{
case HtmlNodeType.Comment:
InternalTrace(">" + XPathNodeType.Comment);
return XPathNodeType.Comment;
case HtmlNodeType.Document:
InternalTrace(">" + XPathNodeType.Root);
return XPathNodeType.Root;
case HtmlNodeType.Text:
InternalTrace(">" + XPathNodeType.Text);
return XPathNodeType.Text;
case HtmlNodeType.Element:
{
if (_attindex != -1)
{
InternalTrace(">" + XPathNodeType.Attribute);
return XPathNodeType.Attribute;
}
InternalTrace(">" + XPathNodeType.Element);
return XPathNodeType.Element;
}
default:
throw new NotImplementedException("Internal error: Unhandled HtmlNodeType: " +
_currentnode.NodeType);
}
}
}
/// <summary>
/// Gets the prefix associated with the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string Prefix
{
get
{
InternalTrace(null);
return _nametable.GetOrAdd(string.Empty);
}
}
/// <summary>
/// Gets the text value of the current node.
/// </summary>
public override string Value
{
get
{
InternalTrace("nt=" + _currentnode.NodeType);
switch (_currentnode.NodeType)
{
case HtmlNodeType.Comment:
InternalTrace(">" + ((HtmlCommentNode) _currentnode).Comment);
return ((HtmlCommentNode) _currentnode).Comment;
case HtmlNodeType.Document:
InternalTrace(">");
return "";
case HtmlNodeType.Text:
InternalTrace(">" + ((HtmlTextNode) _currentnode).Text);
return ((HtmlTextNode) _currentnode).Text;
case HtmlNodeType.Element:
{
if (_attindex != -1)
{
InternalTrace(">" + _currentnode.Attributes[_attindex].Value);
return _currentnode.Attributes[_attindex].Value;
}
return _currentnode.InnerText;
}
default:
throw new NotImplementedException("Internal error: Unhandled HtmlNodeType: " +
_currentnode.NodeType);
}
}
}
/// <summary>
/// Gets the xml:lang scope for the current node.
/// Always returns string.Empty in the case of HtmlNavigator implementation.
/// </summary>
public override string XmlLang
{
get
{
InternalTrace(null);
return _nametable.GetOrAdd(string.Empty);
}
}
#endregion
#region Public Methods
/// <summary>
/// Creates a new HtmlNavigator positioned at the same node as this HtmlNavigator.
/// </summary>
/// <returns>A new HtmlNavigator object positioned at the same node as the original HtmlNavigator.</returns>
public override XPathNavigator Clone()
{
InternalTrace(null);
return new HtmlNodeNavigator(this);
}
/// <summary>
/// Gets the value of the HTML attribute with the specified LocalName and NamespaceURI.
/// </summary>
/// <param name="localName">The local name of the HTML attribute.</param>
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
/// <returns>The value of the specified HTML attribute. String.Empty or null if a matching attribute is not found or if the navigator is not positioned on an element node.</returns>
public override string GetAttribute(string localName, string namespaceURI)
{
InternalTrace("localName=" + localName + ", namespaceURI=" + namespaceURI);
HtmlAttribute att = _currentnode.Attributes[localName];
if (att == null)
{
InternalTrace(">null");
return null;
}
InternalTrace(">" + att.Value);
return att.Value;
}
/// <summary>
/// Returns the value of the namespace node corresponding to the specified local name.
/// Always returns string.Empty for the HtmlNavigator implementation.
/// </summary>
/// <param name="name">The local name of the namespace node.</param>
/// <returns>Always returns string.Empty for the HtmlNavigator implementation.</returns>
public override string GetNamespace(string name)
{
InternalTrace("name=" + name);
return string.Empty;
}
/// <summary>
/// Determines whether the current HtmlNavigator is at the same position as the specified HtmlNavigator.
/// </summary>
/// <param name="other">The HtmlNavigator that you want to compare against.</param>
/// <returns>true if the two navigators have the same position, otherwise, false.</returns>
public override bool IsSamePosition(XPathNavigator other)
{
HtmlNodeNavigator nav = other as HtmlNodeNavigator;
if (nav == null)
{
InternalTrace(">false");
return false;
}
InternalTrace(">" + (nav._currentnode == _currentnode));
return (nav._currentnode == _currentnode);
}
/// <summary>
/// Moves to the same position as the specified HtmlNavigator.
/// </summary>
/// <param name="other">The HtmlNavigator positioned on the node that you want to move to.</param>
/// <returns>true if successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
public override bool MoveTo(XPathNavigator other)
{
HtmlNodeNavigator nav = other as HtmlNodeNavigator;
if (nav == null)
{
InternalTrace(">false (nav is not an HtmlNodeNavigator)");
return false;
}
InternalTrace("moveto oid=" + nav.GetHashCode()
+ ", n:" + nav._currentnode.Name
+ ", a:" + nav._attindex);
if (nav._doc == _doc)
{
_currentnode = nav._currentnode;
_attindex = nav._attindex;
InternalTrace(">true");
return true;
}
// we don't know how to handle that
InternalTrace(">false (???)");
return false;
}
/// <summary>
/// Moves to the HTML attribute with matching LocalName and NamespaceURI.
/// </summary>
/// <param name="localName">The local name of the HTML attribute.</param>
/// <param name="namespaceURI">The namespace URI of the attribute. Unsupported with the HtmlNavigator implementation.</param>
/// <returns>true if the HTML attribute is found, otherwise, false. If false, the position of the navigator does not change.</returns>
public override bool MoveToAttribute(string localName, string namespaceURI)
{
InternalTrace("localName=" + localName + ", namespaceURI=" + namespaceURI);
int index = _currentnode.Attributes.GetAttributeIndex(localName);
if (index == -1)
{
InternalTrace(">false");
return false;
}
_attindex = index;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the first sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the first sibling node, false if there is no first sibling or if the navigator is currently positioned on an attribute node.</returns>
public override bool MoveToFirst()
{
if (_currentnode.ParentNode == null)
{
InternalTrace(">false");
return false;
}
if (_currentnode.ParentNode.FirstChild == null)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.ParentNode.FirstChild;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the first HTML attribute.
/// </summary>
/// <returns>true if the navigator is successful moving to the first HTML attribute, otherwise, false.</returns>
public override bool MoveToFirstAttribute()
{
if (!HasAttributes)
{
InternalTrace(">false");
return false;
}
_attindex = 0;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the first child of the current node.
/// </summary>
/// <returns>true if there is a first child node, otherwise false.</returns>
public override bool MoveToFirstChild()
{
if (!_currentnode.HasChildNodes)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.ChildNodes[0];
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves the XPathNavigator to the first namespace node of the current element.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
public override bool MoveToFirstNamespace(XPathNamespaceScope scope)
{
InternalTrace(null);
return false;
}
/// <summary>
/// Moves to the node that has an attribute of type ID whose value matches the specified string.
/// </summary>
/// <param name="id">A string representing the ID value of the node to which you want to move. This argument does not need to be atomized.</param>
/// <returns>true if the move was successful, otherwise false. If false, the position of the navigator is unchanged.</returns>
public override bool MoveToId(string id)
{
InternalTrace("id=" + id);
HtmlNode node = _doc.GetElementbyId(id);
if (node == null)
{
InternalTrace(">false");
return false;
}
_currentnode = node;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves the XPathNavigator to the namespace node with the specified local name.
/// Always returns false for the HtmlNavigator implementation.
/// </summary>
/// <param name="name">The local name of the namespace node.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
public override bool MoveToNamespace(string name)
{
InternalTrace("name=" + name);
return false;
}
/// <summary>
/// Moves to the next sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the next sibling node, false if there are no more siblings or if the navigator is currently positioned on an attribute node. If false, the position of the navigator is unchanged.</returns>
public override bool MoveToNext()
{
if (_currentnode.NextSibling == null)
{
InternalTrace(">false");
return false;
}
InternalTrace("_c=" + _currentnode.CloneNode(false).OuterHtml);
InternalTrace("_n=" + _currentnode.NextSibling.CloneNode(false).OuterHtml);
_currentnode = _currentnode.NextSibling;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the next HTML attribute.
/// </summary>
/// <returns></returns>
public override bool MoveToNextAttribute()
{
InternalTrace(null);
if (_attindex >= (_currentnode.Attributes.Count - 1))
{
InternalTrace(">false");
return false;
}
_attindex++;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves the XPathNavigator to the next namespace node.
/// Always returns falsefor the HtmlNavigator implementation.
/// </summary>
/// <param name="scope">An XPathNamespaceScope value describing the namespace scope.</param>
/// <returns>Always returns false for the HtmlNavigator implementation.</returns>
public override bool MoveToNextNamespace(XPathNamespaceScope scope)
{
InternalTrace(null);
return false;
}
/// <summary>
/// Moves to the parent of the current node.
/// </summary>
/// <returns>true if there is a parent node, otherwise false.</returns>
public override bool MoveToParent()
{
if (_currentnode.ParentNode == null)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.ParentNode;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the previous sibling of the current node.
/// </summary>
/// <returns>true if the navigator is successful moving to the previous sibling node, false if there is no previous sibling or if the navigator is currently positioned on an attribute node.</returns>
public override bool MoveToPrevious()
{
if (_currentnode.PreviousSibling == null)
{
InternalTrace(">false");
return false;
}
_currentnode = _currentnode.PreviousSibling;
InternalTrace(">true");
return true;
}
/// <summary>
/// Moves to the root node to which the current node belongs.
/// </summary>
public override void MoveToRoot()
{
_currentnode = _doc.DocumentNode;
InternalTrace(null);
}
#endregion
#region Internal Methods
[Conditional("TRACE")]
internal void InternalTrace(object traceValue)
{
if (!Trace)
{
return;
}
StackFrame sf = new StackFrame(1, true);
string name = sf.GetMethod().Name;
string nodename = _currentnode == null ? "(null)" : _currentnode.Name;
string nodevalue;
if (_currentnode == null)
{
nodevalue = "(null)";
}
else
{
switch (_currentnode.NodeType)
{
case HtmlNodeType.Comment:
nodevalue = ((HtmlCommentNode) _currentnode).Comment;
break;
case HtmlNodeType.Document:
nodevalue = "";
break;
case HtmlNodeType.Text:
nodevalue = ((HtmlTextNode) _currentnode).Text;
break;
default:
nodevalue = _currentnode.CloneNode(false).OuterHtml;
break;
}
}
System.Diagnostics.Trace.WriteLine(string.Format("oid={0},n={1},a={2},v={3},{4}", GetHashCode(), nodename, _attindex, nodevalue, traceValue), "N!" + name);
}
#endregion
#region Private Methods
private void Reset()
{
InternalTrace(null);
_currentnode = _doc.DocumentNode;
_attindex = -1;
}
#endregion
}
}
+29
View File
@@ -0,0 +1,29 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents the type of a node.
/// </summary>
public enum HtmlNodeType
{
/// <summary>
/// The root of a document.
/// </summary>
Document,
/// <summary>
/// An HTML element.
/// </summary>
Element,
/// <summary>
/// An HTML comment.
/// </summary>
Comment,
/// <summary>
/// A text node is always the child of an element or a document node.
/// </summary>
Text,
}
}
+92
View File
@@ -0,0 +1,92 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a parsing error found during document parsing.
/// </summary>
public class HtmlParseError
{
#region Fields
private HtmlParseErrorCode _code;
private int _line;
private int _linePosition;
private string _reason;
private string _sourceText;
private int _streamPosition;
#endregion
#region Constructors
internal HtmlParseError(
HtmlParseErrorCode code,
int line,
int linePosition,
int streamPosition,
string sourceText,
string reason)
{
_code = code;
_line = line;
_linePosition = linePosition;
_streamPosition = streamPosition;
_sourceText = sourceText;
_reason = reason;
}
#endregion
#region Properties
/// <summary>
/// Gets the type of error.
/// </summary>
public HtmlParseErrorCode Code
{
get { return _code; }
}
/// <summary>
/// Gets the line number of this error in the document.
/// </summary>
public int Line
{
get { return _line; }
}
/// <summary>
/// Gets the column number of this error in the document.
/// </summary>
public int LinePosition
{
get { return _linePosition; }
}
/// <summary>
/// Gets a description for the error.
/// </summary>
public string Reason
{
get { return _reason; }
}
/// <summary>
/// Gets the the full text of the line containing the error.
/// </summary>
public string SourceText
{
get { return _sourceText; }
}
/// <summary>
/// Gets the absolute stream position of this error in the document, relative to the start of the document.
/// </summary>
public int StreamPosition
{
get { return _streamPosition; }
}
#endregion
}
}
@@ -0,0 +1,34 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents the type of parsing error.
/// </summary>
public enum HtmlParseErrorCode
{
/// <summary>
/// A tag was not closed.
/// </summary>
TagNotClosed,
/// <summary>
/// A tag was not opened.
/// </summary>
TagNotOpened,
/// <summary>
/// There is a charset mismatch between stream and declared (META) encoding.
/// </summary>
CharsetMismatch,
/// <summary>
/// An end tag was not required.
/// </summary>
EndTagNotRequired,
/// <summary>
/// An end tag is invalid at this position.
/// </summary>
EndTagInvalidHere
}
}
+69
View File
@@ -0,0 +1,69 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an HTML text node.
/// </summary>
public class HtmlTextNode : HtmlNode
{
#region Fields
private string _text;
#endregion
#region Constructors
internal HtmlTextNode(HtmlDocument ownerdocument, int index)
:
base(HtmlNodeType.Text, ownerdocument, index)
{
}
#endregion
#region Properties
/// <summary>
/// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
/// </summary>
public override string InnerHtml
{
get { return OuterHtml; }
set { _text = value; }
}
/// <summary>
/// Gets or Sets the object and its content in HTML.
/// </summary>
public override string OuterHtml
{
get
{
if (_text == null)
{
return base.OuterHtml;
}
return _text;
}
}
/// <summary>
/// Gets or Sets the text of the node.
/// </summary>
public string Text
{
get
{
if (_text == null)
{
return base.OuterHtml;
}
return _text;
}
set { _text = value; }
}
#endregion
}
}
+907
View File
@@ -0,0 +1,907 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.Xml.Xsl;
using Microsoft.Win32;
namespace HtmlAgilityPack
{
/// <summary>
/// A utility class to get HTML document from HTTP.
/// </summary>
public class HtmlWeb
{
#region Delegates
/// <summary>
/// Represents the method that will handle the PostResponse event.
/// </summary>
public delegate void PostResponseHandler(HttpWebRequest request, HttpWebResponse response);
/// <summary>
/// Represents the method that will handle the PreHandleDocument event.
/// </summary>
public delegate void PreHandleDocumentHandler(HtmlDocument document);
/// <summary>
/// Represents the method that will handle the PreRequest event.
/// </summary>
public delegate bool PreRequestHandler(HttpWebRequest request);
#endregion
#region Fields
private bool _autoDetectEncoding = true;
private bool _cacheOnly;
private string _cachePath;
private bool _fromCache;
private int _requestDuration;
private Uri _responseUri;
private HttpStatusCode _statusCode = HttpStatusCode.OK;
private int _streamBufferSize = 1024;
private bool _useCookies;
private bool _usingCache;
/// <summary>
/// Occurs after an HTTP request has been executed.
/// </summary>
public PostResponseHandler PostResponse;
/// <summary>
/// Occurs before an HTML document is handled.
/// </summary>
public PreHandleDocumentHandler PreHandleDocument;
/// <summary>
/// Occurs before an HTTP request is executed.
/// </summary>
public PreRequestHandler PreRequest;
#endregion
#region Properties
/// <summary>
/// Gets or Sets a value indicating if document encoding must be automatically detected.
/// </summary>
public bool AutoDetectEncoding
{
get { return _autoDetectEncoding; }
set { _autoDetectEncoding = value; }
}
/// <summary>
/// Gets or Sets a value indicating whether to get document only from the cache.
/// If this is set to true and document is not found in the cache, nothing will be loaded.
/// </summary>
public bool CacheOnly
{
get { return _cacheOnly; }
set
{
if ((value) && !UsingCache)
{
throw new HtmlWebException("Cache is not enabled. Set UsingCache to true first.");
}
_cacheOnly = value;
}
}
/// <summary>
/// Gets or Sets the cache path. If null, no caching mechanism will be used.
/// </summary>
public string CachePath
{
get { return _cachePath; }
set { _cachePath = value; }
}
/// <summary>
/// Gets a value indicating if the last document was retrieved from the cache.
/// </summary>
public bool FromCache
{
get { return _fromCache; }
}
/// <summary>
/// Gets the last request duration in milliseconds.
/// </summary>
public int RequestDuration
{
get { return _requestDuration; }
}
/// <summary>
/// Gets the URI of the Internet resource that actually responded to the request.
/// </summary>
public Uri ResponseUri
{
get { return _responseUri; }
}
/// <summary>
/// Gets the last request status.
/// </summary>
public HttpStatusCode StatusCode
{
get { return _statusCode; }
}
/// <summary>
/// Gets or Sets the size of the buffer used for memory operations.
/// </summary>
public int StreamBufferSize
{
get { return _streamBufferSize; }
set
{
if (_streamBufferSize <= 0)
{
throw new ArgumentException("Size must be greater than zero.");
}
_streamBufferSize = value;
}
}
/// <summary>
/// Gets or Sets a value indicating if cookies will be stored.
/// </summary>
public bool UseCookies
{
get { return _useCookies; }
set { _useCookies = value; }
}
/// <summary>
/// Gets or Sets a value indicating whether the caching mechanisms should be used or not.
/// </summary>
public bool UsingCache
{
get
{
if (_cachePath == null)
{
return false;
}
return _usingCache;
}
set
{
if ((value) && (_cachePath == null))
{
throw new HtmlWebException("You need to define a CachePath first.");
}
_usingCache = value;
}
}
#endregion
#region Public Methods
/// <summary>
/// Gets the MIME content type for a given path extension.
/// </summary>
/// <param name="extension">The input path extension.</param>
/// <param name="def">The default content type to return if any error occurs.</param>
/// <returns>The path extension's MIME content type.</returns>
public static string GetContentTypeForExtension(string extension, string def)
{
if (string.IsNullOrEmpty(extension))
{
return def;
}
string contentType = "";
try
{
RegistryKey reg = Registry.ClassesRoot;
reg = reg.OpenSubKey(extension, false);
if (reg != null) contentType = (string)reg.GetValue("", def);
}
catch (Exception)
{
contentType = def;
}
return contentType;
}
/// <summary>
/// Gets the path extension for a given MIME content type.
/// </summary>
/// <param name="contentType">The input MIME content type.</param>
/// <param name="def">The default path extension to return if any error occurs.</param>
/// <returns>The MIME content type's path extension.</returns>
public static string GetExtensionForContentType(string contentType, string def)
{
if (string.IsNullOrEmpty(contentType))
{
return def;
}
string ext = "";
try
{
RegistryKey reg = Registry.ClassesRoot;
reg = reg.OpenSubKey(@"MIME\Database\Content Type\" + contentType, false);
if (reg != null) ext = (string)reg.GetValue("Extension", def);
}
catch (Exception)
{
ext = def;
}
return ext;
}
/// <summary>
/// Creates an instance of the given type from the specified Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="type">The requested type.</param>
/// <returns>An newly created instance.</returns>
public object CreateInstance(string url, Type type)
{
return CreateInstance(url, null, null, type);
}
/// <summary>
/// Creates an instance of the given type from the specified Internet resource.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An <see cref="XsltArgumentList"/> containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="type">The requested type.</param>
/// <returns>An newly created instance.</returns>
public object CreateInstance(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, Type type)
{
return CreateInstance(htmlUrl, xsltUrl, xsltArgs, type, null);
}
/// <summary>
/// Creates an instance of the given type from the specified Internet resource.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An <see cref="XsltArgumentList"/> containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="type">The requested type.</param>
/// <param name="xmlPath">A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.</param>
/// <returns>An newly created instance.</returns>
public object CreateInstance(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, Type type,
string xmlPath)
{
StringWriter sw = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(sw);
if (xsltUrl == null)
{
LoadHtmlAsXml(htmlUrl, writer);
}
else
{
if (xmlPath == null)
{
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer);
}
else
{
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer, xmlPath);
}
}
writer.Flush();
StringReader sr = new StringReader(sw.ToString());
XmlTextReader reader = new XmlTextReader(sr);
XmlSerializer serializer = new XmlSerializer(type);
object o;
try
{
o = serializer.Deserialize(reader);
}
catch (InvalidOperationException ex)
{
throw new Exception(ex + ", --- xml:" + sw);
}
return o;
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
public void Get(string url, string path)
{
Get(url, path, "GET");
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file. - Proxy aware
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
/// <param name="proxy"></param>
/// <param name="credentials"></param>
public void Get(string url, string path, WebProxy proxy, NetworkCredential credentials)
{
Get(url, path, proxy, credentials, "GET");
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
public void Get(string url, string path, string method)
{
Uri uri = new Uri(url);
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
Get(uri, method, path, null, null, null);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
/// <summary>
/// Gets an HTML document from an Internet resource and saves it to the specified file. Understands Proxies
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="path">The location of the file where you want to save the document.</param>
/// <param name="credentials"></param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
/// <param name="proxy"></param>
public void Get(string url, string path, WebProxy proxy, NetworkCredential credentials, string method)
{
Uri uri = new Uri(url);
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
Get(uri, method, path, null, proxy, credentials);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
/// <summary>
/// Gets the cache file path for a specified url.
/// </summary>
/// <param name="uri">The url fo which to retrieve the cache path. May not be null.</param>
/// <returns>The cache file path.</returns>
public string GetCachePath(Uri uri)
{
if (uri == null)
{
throw new ArgumentNullException("uri");
}
if (!UsingCache)
{
throw new HtmlWebException("Cache is not enabled. Set UsingCache to true first.");
}
string cachePath;
if (uri.AbsolutePath == "/")
{
cachePath = Path.Combine(_cachePath, ".htm");
}
else
{
cachePath = Path.Combine(_cachePath, (uri.Host + uri.AbsolutePath).Replace('/', '\\'));
}
return cachePath;
}
/// <summary>
/// Gets an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url)
{
return Load(url, "GET");
}
/// <summary>
/// Gets an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="proxyHost">Host to use for Proxy</param>
/// <param name="proxyPort">Port the Proxy is on</param>
/// <param name="userId">User Id for Authentication</param>
/// <param name="password">Password for Authentication</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url, string proxyHost, int proxyPort, string userId, string password)
{
//Create my proxy
WebProxy myProxy = new WebProxy(proxyHost, proxyPort);
myProxy.BypassProxyOnLocal = true;
//Create my credentials
NetworkCredential myCreds = null;
if ((userId != null) && (password != null))
{
myCreds = new NetworkCredential(userId, password);
CredentialCache credCache = new CredentialCache();
//Add the creds
credCache.Add(myProxy.Address, "Basic", myCreds);
credCache.Add(myProxy.Address, "Digest", myCreds);
}
return Load(url, "GET", myProxy, myCreds);
}
/// <summary>
/// Loads an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url, string method)
{
Uri uri = new Uri(url);
HtmlDocument doc;
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
doc = LoadUrl(uri, method, null, null);
}
else
{
if (uri.Scheme == Uri.UriSchemeFile)
{
doc = new HtmlDocument();
doc.OptionAutoCloseOnEnd = false;
doc.OptionAutoCloseOnEnd = true;
doc.DetectEncodingAndLoad(url, _autoDetectEncoding);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
if (PreHandleDocument != null)
{
PreHandleDocument(doc);
}
return doc;
}
/// <summary>
/// Loads an HTML document from an Internet resource.
/// </summary>
/// <param name="url">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="method">The HTTP method used to open the connection, such as GET, POST, PUT, or PROPFIND.</param>
/// <param name="proxy">Proxy to use with this request</param>
/// <param name="credentials">Credentials to use when authenticating</param>
/// <returns>A new HTML document.</returns>
public HtmlDocument Load(string url, string method, WebProxy proxy, NetworkCredential credentials)
{
Uri uri = new Uri(url);
HtmlDocument doc;
if ((uri.Scheme == Uri.UriSchemeHttps) ||
(uri.Scheme == Uri.UriSchemeHttp))
{
doc = LoadUrl(uri, method, proxy, credentials);
}
else
{
if (uri.Scheme == Uri.UriSchemeFile)
{
doc = new HtmlDocument();
doc.OptionAutoCloseOnEnd = false;
doc.OptionAutoCloseOnEnd = true;
doc.DetectEncodingAndLoad(url, _autoDetectEncoding);
}
else
{
throw new HtmlWebException("Unsupported uri scheme: '" + uri.Scheme + "'.");
}
}
if (PreHandleDocument != null)
{
PreHandleDocument(doc);
}
return doc;
}
/// <summary>
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
public void LoadHtmlAsXml(string htmlUrl, XmlTextWriter writer)
{
HtmlDocument doc = Load(htmlUrl);
doc.Save(writer);
}
/// <summary>
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp".</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
public void LoadHtmlAsXml(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, XmlTextWriter writer)
{
LoadHtmlAsXml(htmlUrl, xsltUrl, xsltArgs, writer, null);
}
/// <summary>
/// Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
/// </summary>
/// <param name="htmlUrl">The requested URL, such as "http://Myserver/Mypath/Myfile.asp". May not be null.</param>
/// <param name="xsltUrl">The URL that specifies the XSLT stylesheet to load.</param>
/// <param name="xsltArgs">An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.</param>
/// <param name="writer">The XmlTextWriter to which you want to save.</param>
/// <param name="xmlPath">A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.</param>
public void LoadHtmlAsXml(string htmlUrl, string xsltUrl, XsltArgumentList xsltArgs, XmlTextWriter writer,
string xmlPath)
{
if (htmlUrl == null)
{
throw new ArgumentNullException("htmlUrl");
}
HtmlDocument doc = Load(htmlUrl);
if (xmlPath != null)
{
XmlTextWriter w = new XmlTextWriter(xmlPath, doc.Encoding);
doc.Save(w);
w.Close();
}
if (xsltArgs == null)
{
xsltArgs = new XsltArgumentList();
}
// add some useful variables to the xslt doc
xsltArgs.AddParam("url", "", htmlUrl);
xsltArgs.AddParam("requestDuration", "", RequestDuration);
xsltArgs.AddParam("fromCache", "", FromCache);
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(xsltUrl);
xslt.Transform(doc, xsltArgs, writer);
}
#endregion
#region Private Methods
private static void FilePreparePath(string target)
{
if (File.Exists(target))
{
FileAttributes atts = File.GetAttributes(target);
File.SetAttributes(target, atts & ~FileAttributes.ReadOnly);
}
else
{
string dir = Path.GetDirectoryName(target);
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(dir);
}
}
}
private static DateTime RemoveMilliseconds(DateTime t)
{
return new DateTime(t.Year, t.Month, t.Day, t.Hour, t.Minute, t.Second, 0);
}
// ReSharper disable UnusedMethodReturnValue.Local
private static long SaveStream(Stream stream, string path, DateTime touchDate, int streamBufferSize)
// ReSharper restore UnusedMethodReturnValue.Local
{
FilePreparePath(path);
FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write);
BinaryReader br = null;
BinaryWriter bw = null;
long len = 0;
try
{
br = new BinaryReader(stream);
bw = new BinaryWriter(fs);
byte[] buffer;
do
{
buffer = br.ReadBytes(streamBufferSize);
len += buffer.Length;
if (buffer.Length > 0)
{
bw.Write(buffer);
}
} while (buffer.Length > 0);
}
finally
{
if (br != null)
{
br.Close();
}
if (bw != null)
{
bw.Flush();
bw.Close();
}
if (fs != null)
{
fs.Close();
}
}
File.SetLastWriteTime(path, touchDate);
return len;
}
private HttpStatusCode Get(Uri uri, string method, string path, HtmlDocument doc, IWebProxy proxy,
ICredentials creds)
{
string cachePath = null;
HttpWebRequest req;
bool oldFile = false;
req = WebRequest.Create(uri) as HttpWebRequest;
req.Method = method;
if (proxy != null)
{
if (creds != null)
{
proxy.Credentials = creds;
req.Credentials = creds;
}
else
{
proxy.Credentials = CredentialCache.DefaultCredentials;
req.Credentials = CredentialCache.DefaultCredentials;
}
req.Proxy = proxy;
}
_fromCache = false;
_requestDuration = 0;
int tc = Environment.TickCount;
if (UsingCache)
{
cachePath = GetCachePath(req.RequestUri);
if (File.Exists(cachePath))
{
req.IfModifiedSince = File.GetLastAccessTime(cachePath);
oldFile = true;
}
}
if (_cacheOnly)
{
if (!File.Exists(cachePath))
{
throw new HtmlWebException("File was not found at cache path: '" + cachePath + "'");
}
if (path != null)
{
IOLibrary.CopyAlways(cachePath, path);
// touch the file
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
_fromCache = true;
return HttpStatusCode.NotModified;
}
if (_useCookies)
{
req.CookieContainer = new CookieContainer();
}
if (PreRequest != null)
{
// allow our user to change the request at will
if (!PreRequest(req))
{
return HttpStatusCode.ResetContent;
}
// dump cookie
// if (_useCookies)
// {
// foreach(Cookie cookie in req.CookieContainer.GetCookies(req.RequestUri))
// {
// HtmlLibrary.Trace("Cookie " + cookie.Name + "=" + cookie.Value + " path=" + cookie.Path + " domain=" + cookie.Domain);
// }
// }
}
HttpWebResponse resp;
try
{
resp = req.GetResponse() as HttpWebResponse;
}
catch (WebException we)
{
_requestDuration = Environment.TickCount - tc;
resp = (HttpWebResponse)we.Response;
if (resp == null)
{
if (oldFile)
{
if (path != null)
{
IOLibrary.CopyAlways(cachePath, path);
// touch the file
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
return HttpStatusCode.NotModified;
}
throw;
}
}
catch (Exception)
{
_requestDuration = Environment.TickCount - tc;
throw;
}
// allow our user to get some info from the response
if (PostResponse != null)
{
PostResponse(req, resp);
}
_requestDuration = Environment.TickCount - tc;
_responseUri = resp.ResponseUri;
bool html = IsHtmlContent(resp.ContentType);
Encoding respenc;
if ((resp.ContentEncoding != null) && (resp.ContentEncoding.Length > 0))
{
respenc = Encoding.GetEncoding(resp.ContentEncoding);
}
else
{
respenc = null;
}
if (resp.StatusCode == HttpStatusCode.NotModified)
{
if (UsingCache)
{
_fromCache = true;
if (path != null)
{
IOLibrary.CopyAlways(cachePath, path);
// touch the file
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
return resp.StatusCode;
}
else
{
// this should *never* happen...
throw new HtmlWebException("Server has send a NotModifed code, without cache enabled.");
}
}
Stream s = resp.GetResponseStream();
if (s != null)
{
if (UsingCache)
{
// NOTE: LastModified does not contain milliseconds, so we remove them to the file
SaveStream(s, cachePath, RemoveMilliseconds(resp.LastModified), _streamBufferSize);
// save headers
SaveCacheHeaders(req.RequestUri, resp);
if (path != null)
{
// copy and touch the file
IOLibrary.CopyAlways(cachePath, path);
File.SetLastWriteTime(path, File.GetLastWriteTime(cachePath));
}
}
else
{
// try to work in-memory
if ((doc != null) && (html))
{
if (respenc != null)
{
doc.Load(s, respenc);
}
else
{
doc.Load(s, true);
}
}
}
resp.Close();
}
return resp.StatusCode;
}
private string GetCacheHeader(Uri requestUri, string name, string def)
{
// note: some headers are collection (ex: www-authenticate)
// we don't handle that here
XmlDocument doc = new XmlDocument();
doc.Load(GetCacheHeadersPath(requestUri));
XmlNode node =
doc.SelectSingleNode("//h[translate(@n, 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')='" +
name.ToUpper() + "']");
if (node == null)
{
return def;
}
// attribute should exist
return node.Attributes[name].Value;
}
private string GetCacheHeadersPath(Uri uri)
{
//return Path.Combine(GetCachePath(uri), ".h.xml");
return GetCachePath(uri) + ".h.xml";
}
private bool IsCacheHtmlContent(string path)
{
string ct = GetContentTypeForExtension(Path.GetExtension(path), null);
return IsHtmlContent(ct);
}
private bool IsHtmlContent(string contentType)
{
return contentType.ToLower().StartsWith("text/html");
}
private HtmlDocument LoadUrl(Uri uri, string method, WebProxy proxy, NetworkCredential creds)
{
HtmlDocument doc = new HtmlDocument();
doc.OptionAutoCloseOnEnd = false;
doc.OptionFixNestedTags = true;
_statusCode = Get(uri, method, null, doc, proxy, creds);
if (_statusCode == HttpStatusCode.NotModified)
{
// read cached encoding
doc.DetectEncodingAndLoad(GetCachePath(uri));
}
return doc;
}
private void SaveCacheHeaders(Uri requestUri, HttpWebResponse resp)
{
// we cache the original headers aside the cached document.
string file = GetCacheHeadersPath(requestUri);
XmlDocument doc = new XmlDocument();
doc.LoadXml("<c></c>");
XmlNode cache = doc.FirstChild;
foreach (string header in resp.Headers)
{
XmlNode entry = doc.CreateElement("h");
XmlAttribute att = doc.CreateAttribute("n");
att.Value = header;
entry.Attributes.Append(att);
att = doc.CreateAttribute("v");
att.Value = resp.Headers[header];
entry.Attributes.Append(att);
cache.AppendChild(entry);
}
doc.Save(file);
}
#endregion
}
}
+24
View File
@@ -0,0 +1,24 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents an exception thrown by the HtmlWeb utility class.
/// </summary>
public class HtmlWebException : Exception
{
#region Constructors
/// <summary>
/// Creates an instance of the HtmlWebException.
/// </summary>
/// <param name="message">The exception's message.</param>
public HtmlWebException(string message)
: base(message)
{
}
#endregion
}
}
+28
View File
@@ -0,0 +1,28 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System.IO;
namespace HtmlAgilityPack
{
internal struct IOLibrary
{
#region Internal Methods
internal static void CopyAlways(string source, string target)
{
if (!File.Exists(source))
return;
Directory.CreateDirectory(Path.GetDirectoryName(target));
MakeWritable(target);
File.Copy(source, target, true);
}
internal static void MakeWritable(string path)
{
if (!File.Exists(path))
return;
File.SetAttributes(path, File.GetAttributes(path) & ~FileAttributes.ReadOnly);
}
#endregion
}
}
+27
View File
@@ -0,0 +1,27 @@
Microsoft Permissive License (Ms-PL)
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law.
A “contribution” is the original software, or any additions or changes to the software.
A “contributor” is any person that distributes its contribution under this license.
“Licensed patents” are a contributor’s patent claims that read directly on its contribution.
2. Grant of Rights
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
3. Conditions and Limitations
(A) No Trademark License- This license does not grant you rights to use any contributors’ name, logo, or trademarks.
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
(E) The software is licensed “as-is.” You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
(F) If you distribute the software or derivative works with programs you develop, you agree to indemnify, defend, and hold harmless all contributors from any claims, including attorneys’ fees, related to the distribution or use of your programs. For clarity, you have no such obligations to a contributor for any claims based solely on the unmodified contributions of that contributor.
(G) If you make any additions or changes to the original software, you may only distribute them under a new namespace. In addition, you will clearly identify your changes or additions as your own.
+453
View File
@@ -0,0 +1,453 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.IO;
using System.Text;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a document with mixed code and text. ASP, ASPX, JSP, are good example of such documents.
/// </summary>
public class MixedCodeDocument
{
#region Fields
private int _c;
internal MixedCodeDocumentFragmentList _codefragments;
private MixedCodeDocumentFragment _currentfragment;
internal MixedCodeDocumentFragmentList _fragments;
private int _index;
private int _line;
private int _lineposition;
private ParseState _state;
private Encoding _streamencoding;
internal string _text;
internal MixedCodeDocumentFragmentList _textfragments;
/// <summary>
/// Gets or sets the token representing code end.
/// </summary>
public string TokenCodeEnd = "%>";
/// <summary>
/// Gets or sets the token representing code start.
/// </summary>
public string TokenCodeStart = "<%";
/// <summary>
/// Gets or sets the token representing code directive.
/// </summary>
public string TokenDirective = "@";
/// <summary>
/// Gets or sets the token representing response write directive.
/// </summary>
public string TokenResponseWrite = "Response.Write ";
private string TokenTextBlock = "TextBlock({0})";
#endregion
#region Constructors
/// <summary>
/// Creates a mixed code document instance.
/// </summary>
public MixedCodeDocument()
{
_codefragments = new MixedCodeDocumentFragmentList(this);
_textfragments = new MixedCodeDocumentFragmentList(this);
_fragments = new MixedCodeDocumentFragmentList(this);
}
#endregion
#region Properties
/// <summary>
/// Gets the code represented by the mixed code document seen as a template.
/// </summary>
public string Code
{
get
{
string s = "";
int i = 0;
foreach (MixedCodeDocumentFragment frag in _fragments)
{
switch (frag._type)
{
case MixedCodeDocumentFragmentType.Text:
s += TokenResponseWrite + string.Format(TokenTextBlock, i) + "\n";
i++;
break;
case MixedCodeDocumentFragmentType.Code:
s += ((MixedCodeDocumentCodeFragment) frag).Code + "\n";
break;
}
}
return s;
}
}
/// <summary>
/// Gets the list of code fragments in the document.
/// </summary>
public MixedCodeDocumentFragmentList CodeFragments
{
get { return _codefragments; }
}
/// <summary>
/// Gets the list of all fragments in the document.
/// </summary>
public MixedCodeDocumentFragmentList Fragments
{
get { return _fragments; }
}
/// <summary>
/// Gets the encoding of the stream used to read the document.
/// </summary>
public Encoding StreamEncoding
{
get { return _streamencoding; }
}
/// <summary>
/// Gets the list of text fragments in the document.
/// </summary>
public MixedCodeDocumentFragmentList TextFragments
{
get { return _textfragments; }
}
#endregion
#region Public Methods
/// <summary>
/// Create a code fragment instances.
/// </summary>
/// <returns>The newly created code fragment instance.</returns>
public MixedCodeDocumentCodeFragment CreateCodeFragment()
{
return (MixedCodeDocumentCodeFragment) CreateFragment(MixedCodeDocumentFragmentType.Code);
}
/// <summary>
/// Create a text fragment instances.
/// </summary>
/// <returns>The newly created text fragment instance.</returns>
public MixedCodeDocumentTextFragment CreateTextFragment()
{
return (MixedCodeDocumentTextFragment) CreateFragment(MixedCodeDocumentFragmentType.Text);
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
public void Load(Stream stream)
{
Load(new StreamReader(stream));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(Stream stream, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(stream, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Load(Stream stream, Encoding encoding)
{
Load(new StreamReader(stream, encoding));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(stream, encoding, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a stream.
/// </summary>
/// <param name="stream">The input stream.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public void Load(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
Load(new StreamReader(stream, encoding, detectEncodingFromByteOrderMarks, buffersize));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
public void Load(string path)
{
Load(new StreamReader(path));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(string path, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(path, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Load(string path, Encoding encoding)
{
Load(new StreamReader(path, encoding));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
public void Load(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks)
{
Load(new StreamReader(path, encoding, detectEncodingFromByteOrderMarks));
}
/// <summary>
/// Loads a mixed code document from a file.
/// </summary>
/// <param name="path">The complete file path to be read.</param>
/// <param name="encoding">The character encoding to use.</param>
/// <param name="detectEncodingFromByteOrderMarks">Indicates whether to look for byte order marks at the beginning of the file.</param>
/// <param name="buffersize">The minimum buffer size.</param>
public void Load(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
{
Load(new StreamReader(path, encoding, detectEncodingFromByteOrderMarks, buffersize));
}
/// <summary>
/// Loads the mixed code document from the specified TextReader.
/// </summary>
/// <param name="reader">The TextReader used to feed the HTML data into the document.</param>
public void Load(TextReader reader)
{
_codefragments.Clear();
_textfragments.Clear();
// all pseudo constructors get down to this one
StreamReader sr = reader as StreamReader;
if (sr != null)
{
_streamencoding = sr.CurrentEncoding;
}
_text = reader.ReadToEnd();
reader.Close();
Parse();
}
/// <summary>
/// Loads a mixed document from a text
/// </summary>
/// <param name="html">The text to load.</param>
public void LoadHtml(string html)
{
Load(new StringReader(html));
}
/// <summary>
/// Saves the mixed document to the specified stream.
/// </summary>
/// <param name="outStream">The stream to which you want to save.</param>
public void Save(Stream outStream)
{
StreamWriter sw = new StreamWriter(outStream, GetOutEncoding());
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified stream.
/// </summary>
/// <param name="outStream">The stream to which you want to save.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Save(Stream outStream, Encoding encoding)
{
StreamWriter sw = new StreamWriter(outStream, encoding);
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified file.
/// </summary>
/// <param name="filename">The location of the file where you want to save the document.</param>
public void Save(string filename)
{
StreamWriter sw = new StreamWriter(filename, false, GetOutEncoding());
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified file.
/// </summary>
/// <param name="filename">The location of the file where you want to save the document.</param>
/// <param name="encoding">The character encoding to use.</param>
public void Save(string filename, Encoding encoding)
{
StreamWriter sw = new StreamWriter(filename, false, encoding);
Save(sw);
}
/// <summary>
/// Saves the mixed document to the specified StreamWriter.
/// </summary>
/// <param name="writer">The StreamWriter to which you want to save.</param>
public void Save(StreamWriter writer)
{
Save((TextWriter) writer);
}
/// <summary>
/// Saves the mixed document to the specified TextWriter.
/// </summary>
/// <param name="writer">The TextWriter to which you want to save.</param>
public void Save(TextWriter writer)
{
writer.Flush();
}
#endregion
#region Internal Methods
internal MixedCodeDocumentFragment CreateFragment(MixedCodeDocumentFragmentType type)
{
switch (type)
{
case MixedCodeDocumentFragmentType.Text:
return new MixedCodeDocumentTextFragment(this);
case MixedCodeDocumentFragmentType.Code:
return new MixedCodeDocumentCodeFragment(this);
default:
throw new NotSupportedException();
}
}
internal Encoding GetOutEncoding()
{
if (_streamencoding != null)
return _streamencoding;
return Encoding.Default;
}
#endregion
#region Private Methods
private void IncrementPosition()
{
_index++;
if (_c == 10)
{
_lineposition = 1;
_line++;
}
else
_lineposition++;
}
private void Parse()
{
_state = ParseState.Text;
_index = 0;
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Text);
while (_index < _text.Length)
{
_c = _text[_index];
IncrementPosition();
switch (_state)
{
case ParseState.Text:
if (_index + TokenCodeStart.Length < _text.Length)
{
if (_text.Substring(_index - 1, TokenCodeStart.Length) == TokenCodeStart)
{
_state = ParseState.Code;
_currentfragment.Length = _index - 1 - _currentfragment.Index;
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Code);
SetPosition();
continue;
}
}
break;
case ParseState.Code:
if (_index + TokenCodeEnd.Length < _text.Length)
{
if (_text.Substring(_index - 1, TokenCodeEnd.Length) == TokenCodeEnd)
{
_state = ParseState.Text;
_currentfragment.Length = _index + TokenCodeEnd.Length - _currentfragment.Index;
_index += TokenCodeEnd.Length;
_lineposition += TokenCodeEnd.Length;
_currentfragment = CreateFragment(MixedCodeDocumentFragmentType.Text);
SetPosition();
continue;
}
}
break;
}
}
_currentfragment.Length = _index - _currentfragment.Index;
}
private void SetPosition()
{
_currentfragment.Line = _line;
_currentfragment._lineposition = _lineposition;
_currentfragment.Index = _index - 1;
_currentfragment.Length = 0;
}
#endregion
#region Nested type: ParseState
private enum ParseState
{
Text,
Code
}
#endregion
}
}
@@ -0,0 +1,51 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a fragment of code in a mixed code document.
/// </summary>
public class MixedCodeDocumentCodeFragment : MixedCodeDocumentFragment
{
#region Fields
private string _code;
#endregion
#region Constructors
internal MixedCodeDocumentCodeFragment(MixedCodeDocument doc)
:
base(doc, MixedCodeDocumentFragmentType.Code)
{
}
#endregion
#region Properties
/// <summary>
/// Gets the fragment code text.
/// </summary>
public string Code
{
get
{
if (_code == null)
{
_code = FragmentText.Substring(Doc.TokenCodeStart.Length,
FragmentText.Length - Doc.TokenCodeEnd.Length -
Doc.TokenCodeStart.Length - 1).Trim();
if (_code.StartsWith("="))
{
_code = Doc.TokenResponseWrite + _code.Substring(1, _code.Length - 1);
}
}
return _code;
}
set { _code = value; }
}
#endregion
}
}
@@ -0,0 +1,95 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a base class for fragments in a mixed code document.
/// </summary>
public abstract class MixedCodeDocumentFragment
{
#region Fields
internal MixedCodeDocument Doc;
private string _fragmentText;
internal int Index;
internal int Length;
private int _line;
internal int _lineposition;
internal MixedCodeDocumentFragmentType _type;
#endregion
#region Constructors
internal MixedCodeDocumentFragment(MixedCodeDocument doc, MixedCodeDocumentFragmentType type)
{
Doc = doc;
_type = type;
switch (type)
{
case MixedCodeDocumentFragmentType.Text:
Doc._textfragments.Append(this);
break;
case MixedCodeDocumentFragmentType.Code:
Doc._codefragments.Append(this);
break;
}
Doc._fragments.Append(this);
}
#endregion
#region Properties
/// <summary>
/// Gets the fragement text.
/// </summary>
public string FragmentText
{
get
{
if (_fragmentText == null)
{
_fragmentText = Doc._text.Substring(Index, Length);
}
return FragmentText;
}
internal set { _fragmentText = value; }
}
/// <summary>
/// Gets the type of fragment.
/// </summary>
public MixedCodeDocumentFragmentType FragmentType
{
get { return _type; }
}
/// <summary>
/// Gets the line number of the fragment.
/// </summary>
public int Line
{
get { return _line; }
internal set { _line = value; }
}
/// <summary>
/// Gets the line position (column) of the fragment.
/// </summary>
public int LinePosition
{
get { return _lineposition; }
}
/// <summary>
/// Gets the fragment position in the document's stream.
/// </summary>
public int StreamPosition
{
get { return Index; }
}
#endregion
}
}
@@ -0,0 +1,236 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a list of mixed code fragments.
/// </summary>
public class MixedCodeDocumentFragmentList : IEnumerable
{
#region Fields
private MixedCodeDocument _doc;
private ArrayList _items = new ArrayList();
#endregion
#region Constructors
internal MixedCodeDocumentFragmentList(MixedCodeDocument doc)
{
_doc = doc;
}
#endregion
#region Properties
///<summary>
/// Gets the Document
///</summary>
public MixedCodeDocument Doc
{
get { return _doc; }
}
/// <summary>
/// Gets the number of fragments contained in the list.
/// </summary>
public int Count
{
get { return _items.Count; }
}
/// <summary>
/// Gets a fragment from the list using its index.
/// </summary>
public MixedCodeDocumentFragment this[int index]
{
get { return _items[index] as MixedCodeDocumentFragment; }
}
#endregion
#region IEnumerable Members
/// <summary>
/// Gets an enumerator that can iterate through the fragment list.
/// </summary>
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
#endregion
#region Public Methods
/// <summary>
/// Appends a fragment to the list of fragments.
/// </summary>
/// <param name="newFragment">The fragment to append. May not be null.</param>
public void Append(MixedCodeDocumentFragment newFragment)
{
if (newFragment == null)
{
throw new ArgumentNullException("newFragment");
}
_items.Add(newFragment);
}
/// <summary>
/// Gets an enumerator that can iterate through the fragment list.
/// </summary>
public MixedCodeDocumentFragmentEnumerator GetEnumerator()
{
return new MixedCodeDocumentFragmentEnumerator(_items);
}
/// <summary>
/// Prepends a fragment to the list of fragments.
/// </summary>
/// <param name="newFragment">The fragment to append. May not be null.</param>
public void Prepend(MixedCodeDocumentFragment newFragment)
{
if (newFragment == null)
{
throw new ArgumentNullException("newFragment");
}
_items.Insert(0, newFragment);
}
/// <summary>
/// Remove a fragment from the list of fragments. If this fragment was not in the list, an exception will be raised.
/// </summary>
/// <param name="fragment">The fragment to remove. May not be null.</param>
public void Remove(MixedCodeDocumentFragment fragment)
{
if (fragment == null)
{
throw new ArgumentNullException("fragment");
}
int index = GetFragmentIndex(fragment);
if (index == -1)
{
throw new IndexOutOfRangeException();
}
RemoveAt(index);
}
/// <summary>
/// Remove all fragments from the list.
/// </summary>
public void RemoveAll()
{
_items.Clear();
}
/// <summary>
/// Remove a fragment from the list of fragments, using its index in the list.
/// </summary>
/// <param name="index">The index of the fragment to remove.</param>
public void RemoveAt(int index)
{
//MixedCodeDocumentFragment frag = (MixedCodeDocumentFragment) _items[index];
_items.RemoveAt(index);
}
#endregion
#region Internal Methods
internal void Clear()
{
_items.Clear();
}
internal int GetFragmentIndex(MixedCodeDocumentFragment fragment)
{
if (fragment == null)
{
throw new ArgumentNullException("fragment");
}
for (int i = 0; i < _items.Count; i++)
{
if ((_items[i]) == fragment)
{
return i;
}
}
return -1;
}
#endregion
#region Nested type: MixedCodeDocumentFragmentEnumerator
/// <summary>
/// Represents a fragment enumerator.
/// </summary>
public class MixedCodeDocumentFragmentEnumerator : IEnumerator
{
#region Fields
private int _index;
private ArrayList _items;
#endregion
#region Constructors
internal MixedCodeDocumentFragmentEnumerator(ArrayList items)
{
_items = items;
_index = -1;
}
#endregion
#region Properties
/// <summary>
/// Gets the current element in the collection.
/// </summary>
public MixedCodeDocumentFragment Current
{
get { return (MixedCodeDocumentFragment) (_items[_index]); }
}
#endregion
#region IEnumerator Members
/// <summary>
/// Gets the current element in the collection.
/// </summary>
object IEnumerator.Current
{
get { return (Current); }
}
/// <summary>
/// Advances the enumerator to the next element of the collection.
/// </summary>
/// <returns>true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.</returns>
public bool MoveNext()
{
_index++;
return (_index < _items.Count);
}
/// <summary>
/// Sets the enumerator to its initial position, which is before the first element in the collection.
/// </summary>
public void Reset()
{
_index = -1;
}
#endregion
}
#endregion
}
}
@@ -0,0 +1,19 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents the type of fragment in a mixed code document.
/// </summary>
public enum MixedCodeDocumentFragmentType
{
/// <summary>
/// The fragment contains code.
/// </summary>
Code,
/// <summary>
/// The fragment contains text.
/// </summary>
Text,
}
}
@@ -0,0 +1,32 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// Represents a fragment of text in a mixed code document.
/// </summary>
public class MixedCodeDocumentTextFragment : MixedCodeDocumentFragment
{
#region Constructors
internal MixedCodeDocumentTextFragment(MixedCodeDocument doc)
:
base(doc, MixedCodeDocumentFragmentType.Text)
{
}
#endregion
#region Properties
/// <summary>
/// Gets the fragment text.
/// </summary>
public string Text
{
get { return FragmentText; }
set { FragmentText = value; }
}
#endregion
}
}
+35
View File
@@ -0,0 +1,35 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
internal class NameValuePair
{
#region Fields
internal readonly string Name;
internal string Value;
#endregion
#region Constructors
internal NameValuePair()
{
}
internal NameValuePair(string name)
:
this()
{
Name = name;
}
internal NameValuePair(string name, string value)
:
this(name)
{
Value = value;
}
#endregion
}
}
+101
View File
@@ -0,0 +1,101 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
using System;
using System.Collections;
namespace HtmlAgilityPack
{
internal class NameValuePairList
{
#region Fields
internal readonly string Text;
private ArrayList _allPairs;
private Hashtable _pairsWithName;
#endregion
#region Constructors
internal NameValuePairList() :
this(null)
{
}
internal NameValuePairList(string text)
{
Text = text;
_allPairs = new ArrayList();
_pairsWithName = new Hashtable();
Parse(text);
}
#endregion
#region Internal Methods
internal static string GetNameValuePairsValue(string text, string name)
{
NameValuePairList l = new NameValuePairList(text);
return l.GetNameValuePairValue(name);
}
internal ArrayList GetNameValuePairs(string name)
{
if (name == null)
return _allPairs;
return _pairsWithName[name] as ArrayList;
}
internal string GetNameValuePairValue(string name)
{
if (name == null)
throw new ArgumentNullException();
ArrayList al = GetNameValuePairs(name);
if (al == null)
return null;
// return first item
NameValuePair nvp = al[0] as NameValuePair;
return nvp != null ? nvp.Value : string.Empty;
}
#endregion
#region Private Methods
private void Parse(string text)
{
_allPairs.Clear();
_pairsWithName.Clear();
if (text == null)
return;
string[] p = text.Split(';');
foreach (string pv in p)
{
if (pv.Length == 0)
continue;
string[] onep = pv.Split(new char[] {'='}, 2);
if (onep.Length==0)
continue;
NameValuePair nvp = new NameValuePair(onep[0].Trim().ToLower());
nvp.Value = onep.Length < 2 ? "" : onep[1];
_allPairs.Add(nvp);
// index by name
ArrayList al = _pairsWithName[nvp.Name] as ArrayList;
if (al == null)
{
al = new ArrayList();
_pairsWithName[nvp.Name] = al;
}
al.Add(nvp);
}
}
#endregion
}
}
+156
View File
@@ -0,0 +1,156 @@
// HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
namespace HtmlAgilityPack
{
/// <summary>
/// A utility class to compute CRC32.
/// </summary>
public class Crc32
{
#region Fields
private uint _crc32;
#endregion
#region Static Members
private static uint[] crc_32_tab = // CRC polynomial 0xedb88320
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,
0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423,
0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106,
0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,
0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d,
0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,
0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,
0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7,
0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,
0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa,
0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81,
0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,
0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84,
0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,
0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,
0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e,
0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,
0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55,
0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28,
0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,
0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f,
0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,
0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,
0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69,
0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,
0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc,
0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693,
0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
};
#endregion
#region Properties
internal uint CheckSum
{
get { return _crc32; }
set { _crc32 = value; }
}
#endregion
#region Public Methods
/// <summary>
/// Compute a checksum for a given array of bytes.
/// </summary>
/// <param name="bytes">The array of bytes to compute the checksum for.</param>
/// <returns>The computed checksum.</returns>
public static uint CRC32Bytes(byte[] bytes)
{
uint oldcrc32;
oldcrc32 = 0xFFFFFFFF;
int len = bytes.Length;
for (int i = 0; len > 0; i++)
{
--len;
oldcrc32 = UPDC32(bytes[len], oldcrc32);
}
return ~oldcrc32;
}
/// <summary>
/// Compute a checksum for a given string.
/// </summary>
/// <param name="text">The string to compute the checksum for.</param>
/// <returns>The computed checksum.</returns>
public static uint CRC32String(string text)
{
uint oldcrc32;
oldcrc32 = 0xFFFFFFFF;
int len = text.Length;
ushort uCharVal;
byte lowByte, hiByte;
for (int i = 0; len > 0; i++)
{
--len;
uCharVal = text[len];
unchecked
{
lowByte = (byte) (uCharVal & 0x00ff);
hiByte = (byte) (uCharVal >> 8);
}
oldcrc32 = UPDC32(hiByte, oldcrc32);
oldcrc32 = UPDC32(lowByte, oldcrc32);
}
return ~oldcrc32;
}
#endregion
#region Internal Methods
internal uint AddToCRC32(int c)
{
return AddToCRC32((ushort) c);
}
internal uint AddToCRC32(ushort c)
{
byte lowByte, hiByte;
lowByte = (byte) (c & 0x00ff);
hiByte = (byte) (c >> 8);
_crc32 = UPDC32(hiByte, _crc32);
_crc32 = UPDC32(lowByte, _crc32);
return ~_crc32;
}
#endregion
#region Private Methods
private static uint UPDC32(byte octet, uint crc)
{
return (crc_32_tab[((crc) ^ (octet)) & 0xff] ^ ((crc) >> 8));
}
#endregion
}
}
+16 -8
View File
@@ -13,7 +13,6 @@ ASSEMBLED_DOCS = \
EXTRA_DIST = \
abc-removal.txt \
AgilityPack.dll \
api-style.css \
assembly-bundle \
check-exports \
@@ -68,31 +67,33 @@ EXTRA_DIST = \
dist-hook:
$(mkdir_p) $(distdir)/sources
$(mkdir_p) $(distdir)/svgs
$(mkdir_p) $(distdir)/HtmlAgilityPack
cp sources/* $(distdir)/sources
cp svgs/* $(distdir)/svgs
cp HtmlAgilityPack/* $(distdir)/HtmlAgilityPack
clean-local:
-rm -Rf $(srcdir)/html
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe*
-rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe* $(srcdir)/AgilityPack.dll*
-cd $(srcdir) && rm -f $(ASSEMBLED_DOCS)
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $(srcdir)/monoapi.tree && $(MAKE) monoapi.tree; }
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp
cd $(srcdir) && cp api-style.css deploy
monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp perms
cd $(srcdir) && cp -f api-style.css deploy
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-tools.zip: mono-tools.tree
@test -f $@ || { rm -f $(srcdir)/mono-tools.tree && $(MAKE) mono-tools.tree; }
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp perms
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
mono-file-formats.zip: mono-file-formats.tree
mono-file-formats.zip: mono-file-formats.tree perms
@test -f $@ || { rm -f $(srcdir)/mono-file-formats.tree && $(MAKE) mono-file-formats.tree; }
mono-file-formats.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
$(srcdir)/deploy/.stamp: convert.exe Makefile.am
$(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
$(mkdir_p) $(srcdir)/html
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
cd $(srcdir) && MONO_PATH=$(mcs_topdir_from_srcdir)/class/lib/net_2_0 perl ./exdoc -h . ../mono/*/*.c
@@ -100,6 +101,13 @@ $(srcdir)/deploy/.stamp: convert.exe Makefile.am
extract: $(srcdir)/deploy/.stamp
convert.exe: convert.cs AgilityPack.dll
convert.exe: convert.cs AgilityPack.dll perms
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
AgilityPack.dll: perms
cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) AgilityPack.dll
.PHONY: perms
perms:
-@test -w $(srcdir) || chmod a+w $(srcdir)
+2 -4
View File
@@ -64,10 +64,8 @@ PROGRAMS
* convert.cs
Converts an HTML file into a valid XML document, uses the
AgilityPack.dll. The sources to this DLL live in GNOME CVS
module beagle/Filters/AgilityPack.
A binary is shipped for our convenience.
AgilityPack.dll. The sources to this DLL live in the
HtmlAgilityPack folder, and are a prerequisite for convert.exe.
DATAFILES:
---------
+842 -920
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -10,6 +10,9 @@ ASSEMBLED_DOCS = \
convert.exe: convert.cs AgilityPack.dll
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
AgilityPack.dll:
$(CSCOMPILE) -target:library -out:$@ HtmlAgilityPack/*.cs
monoapi.zip: monoapi.tree
@test -f $@ || { rm -f $< && $(MAKE) $<; }
monoapi.tree: toc.xml docs.make
+157 -146
View File
@@ -1,7 +1,6 @@
mono_assembly_open
mono_assembly_close
mono_assembly_load
mono_assembly_load_from
mono_assembly_load_full
mono_assembly_loaded
mono_assembly_get_image
@@ -180,7 +179,6 @@ mono_domain_get_tls_key
mono_domain_owns_vtable_slot
mono_context_get
mono_context_set
mono_create_jit_trampoline
mono_mb_new
mono_mb_add_data
mono_mb_add_local
@@ -259,8 +257,6 @@ mono_get_exception_not_supported
mono_get_exception_reflection_type_load
mono_gchandle_new
mono_gchandle_new_weakref
mono_gchandle_new
mono_gchandle_new_weakref
mono_gchandle_get_target
mono_gchandle_is_in_domain
mono_gchandle_free
@@ -287,42 +283,33 @@ mono_gc_is_gc_thread
mono_gc_pending_finalizers
mono_gc_register_thread
mono_gc_finalize_notify
mono_image_addref
mono_image_add_to_name_cache
mono_image_open
mono_image_open_full
mono_image_open_from_data
mono_image_open_from_data_full
mono_image_close
mono_image_ensure_section_idx
mono_image_ensure_section
mono_image_addref
mono_image_load_file_for_image
mono_image_get_guid
mono_image_get_assembly
mono_image_get_entry_point
mono_image_get_filename
mono_image_get_name
mono_image_get_public_key
mono_image_get_resource
mono_image_get_strong_name
mono_image_get_table_info
mono_image_get_table_rows
mono_image_has_authenticode_entry
mono_image_is_dynamic
mono_image_loaded_by_guid
mono_image_loaded
mono_image_load_file_for_image
mono_image_lookup_resource
mono_image_open_from_data
mono_image_open
mono_image_rva_map
mono_image_strerror
mono_image_strong_name_position
mono_image_verify_tables
mono_image_get_guid
mono_image_open_from_data_full
mono_image_open_full
mono_image_basic_init
mono_image_build_metadata
mono_image_create_method_token
mono_image_create_pefile
mono_image_create_token
mono_image_insert_string
mono_image_load_module
mono_image_get_public_key
mono_image_get_strong_name
mono_image_has_authenticode_entry
mono_image_rva_map
mono_image_ensure_section_idx
mono_image_ensure_section
mono_burg_kids
mono_burg_label
mono_burg_rule
@@ -333,7 +320,6 @@ mono_interp_get_runtime_method
mono_interp_transform_init
mono_interp_transform_method
mono_pmip
mono_print_code
mono_print_method_from_ip
mono_print_thread_dump
mono_threads_request_thread_dump
@@ -400,38 +386,35 @@ mono_marshal_realloc
mono_marshal_set_last_error
mono_marshal_string_to_utf16
mono_marshal_type_size
mono_loader_lock
mono_loader_unlock
mono_cli_rva_image_map
mono_pe_file_open
mono_meta_table_name
mono_metadata_guid_heap
mono_metadata_string_heap
mono_metadata_blob_heap
mono_metadata_compute_size
mono_metadata_custom_attrs_from_index
mono_metadata_user_string
mono_metadata_decode_blob_size
mono_image_get_table_info
mono_image_get_table_rows
mono_metadata_get_table
mono_meta_table_name
mono_metadata_decode_row_col
mono_metadata_decode_row
mono_metadata_compute_size
mono_metadata_custom_attrs_from_index
mono_metadata_decode_signed_value
mono_metadata_decode_value
mono_metadata_encode_value
mono_cli_rva_image_map
mono_pe_file_open
mono_metadata_events_from_typedef
mono_metadata_field_info
mono_metadata_free_array
mono_metadata_free_marshal_spec
mono_metadata_free_mh
mono_metadata_free_type
mono_metadata_generic_inst_equal
mono_metadata_generic_inst_hash
mono_metadata_generic_inst_is_valuetype
mono_metadata_generic_method_equal
mono_metadata_get_constant_index
mono_metadata_get_marshal_info
mono_metadata_get_table
mono_metadata_guid_heap
mono_metadata_implmap_from_method
mono_metadata_interfaces_from_typedef_full
mono_metadata_interfaces_from_typedef
mono_metadata_load_generic_params
mono_metadata_locate
mono_metadata_locate_token
mono_metadata_methods_from_event
@@ -439,8 +422,14 @@ mono_metadata_methods_from_property
mono_metadata_nested_in_typedef
mono_metadata_nesting_typedef
mono_metadata_packing_from_typedef
mono_metadata_parse_array_full
mono_metadata_parse_array
mono_metadata_properties_from_typedef
mono_metadata_token_from_dor
mono_metadata_typedef_from_field
mono_metadata_typedef_from_method
mono_metadata_type_equal
mono_metadata_type_hash
mono_metadata_declsec_from_index
mono_metadata_free_method_signature
mono_metadata_parse_custom_mod
mono_metadata_parse_field_type
mono_metadata_parse_marshal_spec
@@ -454,34 +443,22 @@ mono_metadata_parse_signature
mono_metadata_parse_typedef_or_ref
mono_metadata_parse_type_full
mono_metadata_parse_type
mono_metadata_properties_from_typedef
mono_metadata_string_heap
mono_metadata_token_from_dor
mono_metadata_typedef_from_field
mono_metadata_typedef_from_method
mono_metadata_type_equal
mono_metadata_type_hash
mono_metadata_user_string
mono_metadata_declsec_from_index
mono_metadata_free_method_signature
mono_loader_lock
mono_loader_unlock
mono_metadata_generic_class_is_valuetype
mono_metadata_has_generic_params
mono_metadata_inflate_generic_inst
mono_metadata_parse_generic_inst
mono_metadata_generic_inst_equal
mono_metadata_generic_inst_hash
mono_metadata_load_generic_params
mono_metadata_generic_inst_is_valuetype
mono_metadata_generic_method_equal
mono_ldtoken
mono_lookup_dynamic_token
mono_ldstr
mono_exception_from_token
mono_create_jit_trampoline_from_token
mono_signature_explicit_this
mono_signature_get_call_conv
mono_signature_get_desc
mono_signature_get_param_count
mono_signature_get_params
mono_signature_get_return_type
mono_signature_hash
mono_signature_is_instance
mono_signature_vararg_start
mono_opcode_name
mono_opcode_value
mono_loader_set_error_field_load
@@ -490,8 +467,8 @@ mono_loader_set_error_type_load
mono_loader_get_last_error
mono_loader_clear_error
mono_loader_error_prepare_exception
mono_runtime_invoke_array
mono_runtime_invoke
mono_runtime_invoke_array
mono_remoting_invoke
mono_runtime_delegate_invoke
mono_method_call_message_new
@@ -519,8 +496,17 @@ mono_method_get_wrapper_data
mono_method_has_marshal_info
mono_method_return_message_restore
mono_method_same_domain
mono_method_signature
mono_method_verify
mono_method_signature
mono_signature_explicit_this
mono_signature_get_call_conv
mono_signature_get_desc
mono_signature_get_param_count
mono_signature_get_params
mono_signature_get_return_type
mono_signature_hash
mono_signature_is_instance
mono_signature_vararg_start
mono_method_get_header
mono_method_header_get_clauses
mono_method_header_get_code
@@ -545,17 +531,23 @@ mono_object_get_size
mono_value_box
mono_value_copy
mono_value_copy_array
mono_array_new
mono_array_new_full
mono_array_new_specific
mono_array_class_get
mono_array_clone_in_domain
mono_array_clone
mono_array_element_size
mono_array_full_copy
mono_array_new_full
mono_array_new
mono_array_new_specific
mono_array_to_lparray
mono_array_to_savearray
mono_dup_array_type
mono_array_set
mono_array_setref
mono_array_length
mono_array_addr
mono_array_addr_with_size
mono_array_get
mono_array_element_size
mono_field_from_token
mono_field_get_flags
mono_field_get_name
@@ -667,11 +659,6 @@ mono_string_new_len
mono_string_new_size
mono_string_new_utf16
mono_string_from_utf16
mono_string_intern
mono_string_is_interned
mono_string_new_wrapper
mono_string_to_ansibstr
mono_string_to_bstr
mono_string_to_byvalstr
mono_string_to_byvalwstr
mono_string_to_utf16
@@ -680,6 +667,11 @@ mono_string_utf16_to_builder
mono_string_utf8_to_builder
mono_string_equal
mono_string_hash
mono_string_intern
mono_string_is_interned
mono_string_new_wrapper
mono_string_chars
mono_string_length
mono_string_builder_to_utf16
mono_string_builder_to_utf8
mono_unicode_from_external
@@ -720,9 +712,6 @@ mono_threads_clear_cached_culture
mono_thread_suspend_all_other_threads
mono_thread_has_appdomain_ref
mono_trace_cleanup
mono_trace_enter_method
mono_trace_eval
mono_trace_leave_method
mono_trace
mono_trace_parse_options
mono_trace_pop
@@ -734,8 +723,6 @@ mono_trace_set_mask
mono_trace_set_mask_string
mono_tracev
mono_trace_is_traced
mono_trace_enable
mono_trace_is_enabled
mono_type_create_from_typespec_full
mono_type_create_from_typespec
mono_type_full_name
@@ -890,12 +877,12 @@ mono_md5_get_digest_from_file
mono_md5_get_digest
mono_md5_final
mono_digest_get_public_token
mono_mempool_alloc0
mono_mempool_alloc
mono_mempool_new
mono_mempool_destroy
mono_mempool_alloc
mono_mempool_alloc0
mono_mempool_empty
mono_mempool_invalidate
mono_mempool_new
mono_mempool_stats
mono_mempool_contains_addr
mono_is_power_of_two
@@ -908,105 +895,129 @@ mono_walk_stack
mono_stack_walk_no_il
mono_escape_uri_string
mono_guid_to_string
GetThreadContext
DeleteCriticalSection
EnterCriticalSection
InitializeCriticalSection
InitializeCriticalSectionAndSpinCount
LeaveCriticalSection
SetCriticalSectionSpinCount
TryEnterCriticalSection
errno_to_WSA
GetLastError
SetLastError
CreateEvent
PulseEvent
ResetEvent
SetEvent
BindIoCompletionCallback
CloseHandle
closesocket
CopyFile
CreateDirectory
CreateEvent
CreateFile
CreateMutex
CreatePipe
CreateProcess
CreateProcessWithLogonW
CreateSemaphore
CreateThread
DeleteCriticalSection
DeleteFile
DuplicateHandle
EnterCriticalSection
EnumProcesses
EnumProcessModules
errno_to_WSA
ExitThread
FileTimeToSystemTime
FindClose
FindFirstFile
FindNextFile
FlushFileBuffers
FormatMessage
GetCurrentDirectory
GetFileAttributes
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetDiskFreeSpaceEx
GetDriveType
GetExitCodeProcess
GetExitCodeThread
GetFileAttributesEx
GetFileAttributes
GetFileSize
GetFileTime
GetFileType
GetFileVersionInfo
GetFileVersionInfoSize
GetLastError
GetLogicalDriveStrings
GetModuleBaseName
GetModuleFileNameEx
GetModuleInformation
GetPriorityClass
GetProcessId
GetProcessTimes
GetProcessWorkingSetSize
GetStdHandle
GetSystemInfo
GetTempPath
GetThreadContext
GetTickCount
ImpersonateLoggedOnUser
InitializeCriticalSectionAndSpinCount
InitializeCriticalSection
ioctlsocket
LeaveCriticalSection
LockFile
MoveFile
OpenEvent
OpenMutex
OpenProcess
OpenSemaphore
OpenThread
PulseEvent
QueryPerformanceCounter
QueryPerformanceFrequency
QueueUserAPC
ReadFile
ReleaseMutex
ReleaseSemaphore
RemoveDirectory
ReplaceFile
ResetEvent
ResumeThread
RevertToSelf
SetCriticalSectionSpinCount
SetCurrentDirectory
SetEndOfFile
SetEvent
SetFileAttributes
SetFilePointer
SetFileTime
UnlockFile
WriteFile
mono_once
CreateMutex
ReleaseMutex
CreateProcess
EnumProcesses
EnumProcessModules
GetCurrentProcess
GetCurrentProcessId
GetExitCodeProcess
GetModuleBaseName
GetProcessTimes
GetProcessWorkingSetSize
OpenProcess
SetLastError
SetPriorityClass
SetProcessWorkingSetSize
TerminateProcess
ImpersonateLoggedOnUser
RevertToSelf
CreateSemaphore
ReleaseSemaphore
closesocket
ioctlsocket
WSACleanup
WSAGetLastError
WSAIoctl
WSASetLastError
WSAStartup
GetSystemInfo
BindIoCompletionCallback
CreateThread
ExitThread
GetCurrentThread
GetCurrentThreadId
GetExitCodeThread
OpenThread
QueueUserAPC
ResumeThread
Sleep
ShellExecuteEx
SignalObjectAndWait
SleepEx
Sleep
SuspendThread
TerminateProcess
TlsAlloc
TlsFree
TlsGetValue
TlsSetValue
GetTickCount
QueryPerformanceCounter
QueryPerformanceFrequency
SignalObjectAndWait
WaitForMultipleObjects
TransmitFile
TryEnterCriticalSection
UnlockFile
VerLanguageName
VerQueryValue
WaitForInputIdle
WaitForMultipleObjectsEx
WaitForSingleObject
WaitForMultipleObjects
WaitForSingleObjectEx
OpenEvent
OpenMutex
GetProcessId
ShellExecuteEx
OpenSemaphore
WaitForSingleObject
WriteFile
WSACleanup
WSAGetLastError
WSAIoctl
WSARecv
WSASend
WSASetLastError
WSAStartup
mono_once
wapi_clear_interruption
wapi_current_thread_desc
wapi_interrupt_thread
wapi_self_interrupt
wapi_thread_clear_wait_handle
wapi_thread_set_wait_handle
+642 -2
View File
@@ -23,9 +23,39 @@ TestVectorList
__bsd_dtoa
bsd_strtod
TestBlittableClass
SByteIn
ShortIn
test_method_thunk
UIntIn
ULongIn
UShortIn
add_delegate
ByteIn
DoubleIn
FloatIn
get_ITest
IntIn
ITestIn
ITestOut
LongIn
#
# Produced by the tests
#
mono_invoke_delegate
mono_invoke_simple_delegate
mono_safe_handle_ref
mono_safe_handle_return
mono_safe_handle_struct
mono_safe_handle_struct_ref
mono_safe_handle_struct_simple
mono_test_marshal_inout_byval_class_delegate
mono_test_marshal_lpstruct
mono_test_marshal_lpstruct_blittable
mono_test_marshal_pass_inout_custom
mono_test_marshal_pass_out_byval_custom
mono_test_marshal_return_fnptr
mono_xr
mono_xr_as_handle
mono_test_asany
mono_test_byvalstr_check
mono_test_byvalstr_gen
@@ -111,6 +141,108 @@ mono_test_marshal_return_enum_delegate
mono_test_return_vtype
mono_test_split_double_arguments
mono_test_stdcall_name_mangling
mono_test_managed_marshal_bool_in
mono_test_managed_marshal_bool_out
mono_test_managed_marshal_bool_ref
mono_test_managed_Winx64_struct1_in
mono_test_managed_Winx64_struct1_struct5_in
mono_test_managed_Winx64_struct5_in
mono_test_marshal_asany_in
mono_test_marshal_asany_out
mono_test_marshal_bool_in
mono_test_marshal_bool_in_as_I1_U1
mono_test_marshal_bool_out
mono_test_marshal_bool_out_as_I1_U1
mono_test_marshal_bool_ref
mono_test_marshal_bool_ref_as_I1_U1
mono_test_marshal_bstr_in
mono_test_marshal_bstr_in_null
mono_test_marshal_bstr_out
mono_test_marshal_bstr_out_null
mono_test_marshal_byref_string_delegate
mono_test_marshal_ccw_itest
mono_test_marshal_com_object_create
mono_test_marshal_com_object_destroy
mono_test_marshal_com_object_ref_count
mono_test_marshal_com_object_same
mono_test_marshal_custom_out_param_delegate
mono_test_marshal_date_time
mono_test_marshal_long_struct
mono_test_marshal_out_delegate
mono_test_marshal_pass_return_float
mono_test_marshal_return_unicode_string_delegate
mono_test_marshal_variant_in_bool_false
mono_test_marshal_variant_in_bool_false_unmanaged
mono_test_marshal_variant_in_bool_true
mono_test_marshal_variant_in_bool_true_unmanaged
mono_test_marshal_variant_in_bstr
mono_test_marshal_variant_in_bstr_unmanaged
mono_test_marshal_variant_in_byte
mono_test_marshal_variant_in_byte_unmanaged
mono_test_marshal_variant_in_double
mono_test_marshal_variant_in_double_unmanaged
mono_test_marshal_variant_in_float
mono_test_marshal_variant_in_float_unmanaged
mono_test_marshal_variant_in_int
mono_test_marshal_variant_in_int_unmanaged
mono_test_marshal_variant_in_long
mono_test_marshal_variant_in_long_unmanaged
mono_test_marshal_variant_in_sbyte
mono_test_marshal_variant_in_sbyte_unmanaged
mono_test_marshal_variant_in_short
mono_test_marshal_variant_in_short_unmanaged
mono_test_marshal_variant_in_uint
mono_test_marshal_variant_in_uint_unmanaged
mono_test_marshal_variant_in_ulong
mono_test_marshal_variant_in_ulong_unmanaged
mono_test_marshal_variant_in_ushort
mono_test_marshal_variant_in_ushort_unmanaged
mono_test_marshal_variant_out_bool_false
mono_test_marshal_variant_out_bool_false_unmanaged
mono_test_marshal_variant_out_bool_true
mono_test_marshal_variant_out_bool_true_unmanaged
mono_test_marshal_variant_out_bstr
mono_test_marshal_variant_out_bstr_unmanaged
mono_test_marshal_variant_out_byte
mono_test_marshal_variant_out_byte_unmanaged
mono_test_marshal_variant_out_double
mono_test_marshal_variant_out_double_unmanaged
mono_test_marshal_variant_out_float
mono_test_marshal_variant_out_float_unmanaged
mono_test_marshal_variant_out_int
mono_test_marshal_variant_out_int_unmanaged
mono_test_marshal_variant_out_long
mono_test_marshal_variant_out_long_unmanaged
mono_test_marshal_variant_out_sbyte
mono_test_marshal_variant_out_sbyte_unmanaged
mono_test_marshal_variant_out_short
mono_test_marshal_variant_out_short_unmanaged
mono_test_marshal_variant_out_uint
mono_test_marshal_variant_out_uint_unmanaged
mono_test_marshal_variant_out_ulong
mono_test_marshal_variant_out_ulong_unmanaged
mono_test_marshal_variant_out_ushort
mono_test_marshal_variant_out_ushort_unmanaged
mono_test_Winx64_doubleStruct
mono_test_Winx64_floatStruct
mono_test_Winx64_struct1_in
mono_test_Winx64_struct1_ret
mono_test_Winx64_struct1_ret_5_args
mono_test_Winx64_struct1_ret_managed
mono_test_Winx64_struct2_in
mono_test_Winx64_struct2_ret
mono_test_Winx64_struct3_in
mono_test_Winx64_struct3_ret
mono_test_Winx64_struct4_in
mono_test_Winx64_struct4_ret
mono_test_Winx64_struct5_in
mono_test_Winx64_struct5_ret
mono_test_Winx64_struct5_ret6_args
mono_test_Winx64_struct5_ret_managed
mono_test_Winx64_struct6_in
mono_test_Winx64_structs_in1
mono_test_Winx64_structs_in2
mono_test_Winx64_structs_in3
mono_union_test_1
NameManglingAnsi
NameManglingAnsi2A
@@ -143,6 +275,7 @@ mono_return_sc1
mono_return_sc3
mono_return_sc5
mono_return_ss
mono_profiler_startup
#
# The following are internal calls that are exposed because of cross
# library dependencies but could be private
@@ -183,7 +316,6 @@ mono_metadata_signature_deep_dup
mono_metadata_get_param_attrs
mono_metadata_load_generic_param_constraints
mono_find_jit_opcode_emulation
mono_marshal_get_ldflda_wrapper
mono_debug_free_method_jit_info
mono_jit_info_table_add
mono_jit_info_table_remove
@@ -404,6 +536,16 @@ mono_print_code
mono_method_same_domain
mono_register_opcode_emulation
#
# mono_shared_area: this is used by the performance counters, not sure that
# this is worth documenting to the public
#
mono_shared_area
mono_shared_area_for_pid
mono_shared_area_instances
mono_shared_area_remove
mono_shared_area_unload
#
#
# I believe these are internal, but I should check with the JIT guys
#
mono_assembly_open_full
@@ -452,8 +594,398 @@ alu_reg_to_alu_membase_imm
mono_secman_inheritancedemand_method
mono_secman_inheritancedemand_class
#
# From the GC
#
GC_abort
GC_acquire_mark_lock
GC_add_ext_descriptor
GC_add_leaked
GC_add_map_entry
GC_add_roots
GC_add_roots_inner
GC_add_smashed
GC_add_to_black_list_normal
GC_add_to_black_list_stack
GC_add_to_fl
GC_add_to_heap
GC_adj_words_allocd
GC_allochblk
GC_allochblk_nth
GC_alloc_large
GC_alloc_large_and_clear
GC_allocobj
GC_alloc_reclaim_list
GC_apply_to_all_blocks
GC_apply_to_maps
GC_approx_sp
GC_array_mark_proc
GC_base
GC_bl_init
GC_block_empty
GC_block_nearly_full
GC_block_nearly_full1
GC_block_nearly_full3
GC_block_was_dirty
GC_build_fl
GC_build_fl1
GC_build_fl2
GC_build_fl4
GC_build_fl_clear2
GC_build_fl_clear3
GC_build_fl_clear4
GC_calloc_explicitly_typed
GC_call_with_alloc_lock
GC_change_stubborn
GC_check_annotated_obj
GC_check_heap_block
GC_check_heap_proc
GC_clear_a_few_frames
GC_clear_bl
GC_clear_fl_links
GC_clear_fl_marks
GC_clear_hdr_marks
GC_clear_mark_bit
GC_clear_marks
GC_clear_roots
GC_clear_stack
GC_clear_stack_inner
GC_collect_a_little
GC_collect_a_little_inner
GC_collection_in_progress
GC_collect_or_expand
GC_cond_register_dynamic_libraries
GC_continue_reclaim
GC_copy_bl
GC_debug_change_stubborn
GC_debug_end_stubborn_change
GC_debug_free
GC_debug_free_inner
GC_debug_gcj_fast_malloc
GC_debug_gcj_malloc
GC_debug_invoke_finalizer
GC_debug_malloc
GC_debug_malloc_atomic
GC_debug_malloc_atomic_ignore_off_page
GC_debug_malloc_atomic_uncollectable
GC_debug_malloc_ignore_off_page
GC_debug_malloc_replacement
GC_debug_malloc_stubborn
GC_debug_malloc_uncollectable
GC_debug_print_heap_obj_proc
GC_debug_realloc
GC_debug_realloc_replacement
GC_debug_register_displacement
GC_debug_register_finalizer
GC_debug_register_finalizer_ignore_self
GC_debug_register_finalizer_no_order
GC_default_is_valid_displacement_print_proc
GC_default_is_visible_print_proc
GC_default_oom_fn
GC_default_print_heap_obj_proc
GC_default_push_other_roots
GC_default_same_obj_print_proc
GC_default_warn_proc
GC_delete_gc_thread
GC_delete_thread
GC_descr_obj_size
GC_destroy_thread_local
GC_dirty_init
GC_disable
GC_disable_signals
GC_dlopen
GC_do_local_mark
GC_do_nothing
GC_do_parallel_mark
GC_double_descr
GC_dump
GC_dump_finalization
GC_dump_regions
GC_enable
GC_enable_incremental
GC_enable_signals
GC_end_blocking
GC_end_stubborn_change
GC_enqueue_all_finalizers
GC_err_printf
GC_err_puts
GC_err_write
GC_exclude_static_roots
GC_exit_check
GC_expand_hp
GC_expand_hp_inner
GC_extend_size_map
GC_fault_handler
GC_finalize
GC_finalize_all
GC_find_header
GC_find_limit
GC_find_start
GC_finish_collection
GC_free
GC_free_block_ending_at
GC_freehblk
GC_free_inner
GC_gcj_fast_malloc
GC_gcj_malloc
GC_gcj_malloc_ignore_off_page
GC_gcollect
GC_general_register_disappearing_link
GC_generic_lock
GC_generic_malloc
GC_generic_malloc_ignore_off_page
GC_generic_malloc_inner
GC_generic_malloc_inner_ignore_off_page
GC_generic_malloc_many
GC_generic_malloc_words_small
GC_generic_malloc_words_small_inner
GC_generic_or_special_malloc
GC_generic_push_regs
GC_get_bytes_since_gc
GC_get_first_part
GC_get_free_bytes
GC_get_heap_size
GC_get_nprocs
GC_get_stack_base
GC_get_suspend_signal
GC_get_total_bytes
GC_grow_table
GC_has_other_debug_info
GC_hblk_fl_from_blocks
GC_help_marker
GC_ignore_self_finalize_mark_proc
GC_incremental_protection_needs
GC_incr_mem_freed
GC_incr_words_allocd
GC_init
GC_init_explicit_typing
GC_init_gcj_malloc
GC_init_headers
GC_initiate_gc
GC_init_inner
GC_init_linux_data_start
GC_init_parallel
GC_init_size_map
GC_init_thread_local
GC_install_counts
GC_install_header
GC_invalidate_map
GC_invalidate_mark_state
GC_invoke_finalizers
GC_is_black_listed
GC_is_fresh
GC_is_marked
GC_is_static_root
GC_is_valid_displacement
GC_is_visible
GC_key_create
GC_linux_stack_base
GC_local_gcj_fast_malloc
GC_local_gcj_malloc
GC_local_malloc
GC_local_malloc_atomic
GC_lock
GC_lookup_thread
GC_make_array_descriptor
GC_make_closure
GC_make_descriptor
GC_make_sequence_descriptor
GC_malloc
GC_malloc_atomic
GC_malloc_atomic_ignore_off_page
GC_malloc_atomic_uncollectable
GC_malloc_explicitly_typed
GC_malloc_explicitly_typed_ignore_off_page
GC_malloc_ignore_off_page
GC_malloc_many
GC_malloc_stubborn
GC_malloc_uncollectable
GC_mark_and_push
GC_mark_and_push_stack
GC_mark_from
GC_mark_init
GC_mark_local
GC_mark_some
GC_mark_stack_empty
GC_mark_thread
GC_mark_thread_local_free_lists
GC_max
GC_maybe_gc
GC_memalign
GC_merge_unmapped
GC_min
GC_mono_debugger_get_stack_ptr
GC_never_stop_func
GC_new_free_list
GC_new_free_list_inner
GC_new_hblk
GC_new_kind
GC_new_kind_inner
GC_new_proc
GC_new_proc_inner
GC_new_thread
GC_next_exclusion
GC_next_used_block
GC_noop
GC_noop1
GC_normal_finalize_mark_proc
GC_notify_all_builder
GC_notify_all_marker
GC_notify_full_gc
GC_notify_or_invoke_finalizers
GC_n_set_marks
GC_null_finalize_mark_proc
GC_number_stack_black_listed
GC_on_stack
GC_page_was_dirty
GC_page_was_ever_dirty
GC_pause
GC_post_incr
GC_pre_incr
GC_prev_block
GC_print_address_map
GC_print_all_errors
GC_print_all_smashed_proc
GC_print_block_descr
GC_print_block_list
GC_printf
GC_print_finalization_stats
GC_print_hblkfreelist
GC_print_heap_sects
GC_print_obj
GC_print_smashed_obj
GC_print_source_ptr
GC_print_static_roots
GC_print_type
GC_project2
GC_promote_black_lists
GC_pthread_create
GC_pthread_detach
GC_pthread_join
GC_pthread_sigmask
GC_push_all
GC_push_all_eager
GC_push_all_stack
GC_push_all_stacks
GC_push_complex_descriptor
GC_push_conditional
GC_push_conditional_with_exclusions
GC_push_current_stack
GC_push_finalizer_structures
GC_push_gc_structures
GC_push_marked
GC_push_marked1
GC_push_marked2
GC_push_marked4
GC_push_next_marked
GC_push_next_marked_dirty
GC_push_next_marked_uncollectable
GC_push_one
GC_push_roots
GC_push_selected
GC_push_stubborn_structures
GC_push_thread_structures
GC_read_dirty
GC_realloc
GC_reclaim1
GC_reclaim_all
GC_reclaim_block
GC_reclaim_check
GC_reclaim_clear
GC_reclaim_clear2
GC_reclaim_clear4
GC_reclaim_generic
GC_reclaim_small_nonempty_block
GC_reclaim_uninit
GC_reclaim_uninit2
GC_reclaim_uninit4
GC_register_data_segments
GC_register_describe_type_fn
GC_register_disappearing_link
GC_register_displacement
GC_register_displacement_inner
GC_register_dynamic_libraries
GC_register_dynamic_libraries_dl_iterate_phdr
GC_register_finalizer
GC_register_finalizer_ignore_self
GC_register_finalizer_inner
GC_register_finalizer_no_order
GC_register_main_static_data
GC_release_mark_lock
GC_remap
GC_remove_allowed_signals
GC_remove_counts
GC_remove_from_fl
GC_remove_header
GC_remove_protection
GC_remove_roots
GC_remove_roots_inner
GC_remove_specific
GC_remove_tmp_roots
GC_repeat_read
GC_reset_fault_handler
GC_restart_handler
GC_return_mark_stack
GC_roots_present
GC_same_obj
GC_scratch_alloc
GC_set_and_save_fault_handler
GC_set_fl_marks
GC_set_free_space_divisor
GC_set_hdr_marks
GC_set_mark_bit
GC_set_max_heap_size
GC_setpagesize
GC_setspecific
GC_setup_temporary_fault_handler
GC_set_warn_proc
GC_should_collect
GC_should_invoke_finalizers
GC_signal_mark_stack_overflow
GC_size
GC_sleep
GC_slow_getspecific
GC_split_block
GC_start_blocking
GC_start_debugging
GC_start_reclaim
GC_start_routine
GC_start_routine_head
GC_start_world
GC_steal_mark_stack
GC_stop_init
GC_stopped_mark
GC_stop_world
GC_store_debug_info
GC_suspend_all
GC_suspend_handler
GC_thread_deregister_foreign
GC_thread_exit_proc
GC_thread_is_registered
GC_thread_register_foreign
GC_thr_init
GC_timeout_stop_func
GC_true_func
GC_try_to_collect
GC_try_to_collect_inner
GC_typed_mark_proc
GC_unix_get_mem
GC_unmap
GC_unmap_end
GC_unmap_gap
GC_unmap_old
GC_unmap_start
GC_unpromote_black_lists
GC_unregister_disappearing_link
GC_wait_builder
GC_wait_for_gc_completion
GC_wait_for_reclaim
GC_wait_marker
GC_with_callee_saves_pushed
GC_write
#
# Produced by matching against the MONO_INTERNAL macro
#
type_to_eval_stack_type
mono_regstate_free
mono_regstate_free_float
mono_regstate_free_int
@@ -474,4 +1006,112 @@ mono_trace_enable
mono_trace_is_enabled
mono_trace_eval
mono_trace_leave_method
mono_trace_enter_method
mono_trace_enter_method
img_writer_create
img_writer_destroy
img_writer_emit_alignment
img_writer_emit_byte
img_writer_emit_bytes
img_writer_emit_global
img_writer_emit_int16
img_writer_emit_int32
img_writer_emit_label
img_writer_emit_line
img_writer_emit_local_symbol
img_writer_emit_pointer
img_writer_emit_pointer_unaligned
img_writer_emit_pop_section
img_writer_emit_push_section
img_writer_emit_reloc
img_writer_emit_section_change
img_writer_emit_start
img_writer_emit_string
img_writer_emit_symbol_diff
img_writer_emit_symbol_size
img_writer_emit_unset_mode
img_writer_emit_writeout
img_writer_emit_zero_bytes
img_writer_get_fp
img_writer_get_output
img_writer_get_temp_label_prefix
img_writer_set_section_addr
img_writer_subsections_supported
mono_verifier_set_mode
mono_verifier_enable_verify_all
mono_verifier_is_enabled_for_image
mono_verifier_is_enabled_for_method
mono_verifier_is_enabled_for_class
mono_verifier_is_method_full_trust
mono_verifier_is_class_full_trust
mono_verifier_verify_class
mono_verifier_verify_pe_data
mono_verifier_verify_cli_data
mono_verifier_verify_table_data
mono_verifier_verify_full_table_data
mono_verifier_verify_field_signature
mono_verifier_verify_method_header
mono_verifier_verify_method_signature
mono_verifier_verify_memberref_signature
mono_verifier_verify_standalone_signature
mono_verifier_verify_typespec_signature
mono_verifier_verify_methodspec_signature
mono_unwind_cleanup
mono_unwind_frame
mono_unwind_get_dwarf_data_align
mono_unwind_get_dwarf_pc_reg
mono_unwind_get_ops_from_fde
mono_unwind_init
mono_unwind_ops_encode
mono_marshal_get_ldflda_wrapper
mono_marshal_cleanup
mono_marshal_load_type_info
mono_marshal_set_last_error
mono_marshal_asany
mono_marshal_free_asany
mono_marshal_method_from_wrapper
mono_marshal_get_remoting_invoke
mono_marshal_get_xappdomain_invoke
mono_marshal_get_remoting_invoke_for_target
mono_marshal_get_remoting_invoke_with_check
mono_marshal_get_delegate_begin_invoke
mono_marshal_get_delegate_end_invoke
mono_marshal_get_delegate_invoke
mono_marshal_get_runtime_invoke
mono_marshal_get_runtime_invoke_dynamic
mono_marshal_get_string_ctor_signature
mono_marshal_get_managed_wrapper
mono_marshal_get_vtfixup_ftnptr
mono_marshal_get_icall_wrapper
mono_marshal_get_native_wrapper
mono_marshal_get_native_func_wrapper
mono_marshal_get_struct_to_ptr
mono_marshal_get_ptr_to_struct
mono_marshal_get_stfld_wrapper
mono_marshal_get_ldfld_wrapper
mono_marshal_get_ldfld_remote_wrapper
mono_marshal_get_stfld_remote_wrapper
mono_marshal_get_synchronized_wrapper
mono_marshal_get_unbox_wrapper
mono_marshal_get_isinst
mono_marshal_get_castclass
mono_marshal_get_proxy_cancast
mono_marshal_get_stelemref
mono_marshal_get_array_address
mono_marshal_get_thunk_invoke_wrapper
mono_marshal_free_dynamic_wrappers
mono_marshal_free_inflated_wrappers
mono_marshal_alloc
mono_marshal_free
mono_marshal_free_array
mono_marshal_free_ccw
mono_marshal_xdomain_copy_value
mono_marshal_find_nonzero_bit_offset
mono_marshal_emit_native_wrapper
mono_marshal_emit_managed_wrapper
mono_marshal_get_cache
mono_marshal_find_in_cache
mono_marshal_emit_thread_interrupt_checkpoint
cominterop_release_all_rcws
console_restore_signal_handlers
console_set_signal_handlers
__jit_debug_register_code
+3 -3
View File
@@ -24,7 +24,7 @@ A small note on the choice of magic_reg for different JIT backends: the IMT
method identifier doesn't necessarily need to be stored in a register, though
doing so is fast and the JIT code has already the infrastructure to handle this
case in an arch-independent way. A JIT porter just needs to #define
MONO_ARCH_IMT_REG to the choosen register. Note that this register should be
MONO_ARCH_IMT_REG to the chosen register. Note that this register should be
part of the MONO_ARCH_CALLEE_REGS set as it will be handled by the local register
allocator (see mini/inssel.brg) and it must not be part of the registers used for
argument passing as you'd overwrite an argument in that case.
@@ -72,7 +72,7 @@ the IMT slot was asked to execute an interface method that the type doesn't impl
In the future we might want to handle this case not with a breakpoint or assert, but
by either throwing an InvalidCast exception or by going into the runtime and
adding support for the interface automagically to the type/vtable: this could be used
both for tranparent proxies and for the implicit interfaces that vectors in 2.0
both for transparent proxies and for the implicit interfaces that vectors in 2.0
provide.
For a bisect check the code is even simpler:
@@ -131,7 +131,7 @@ called the magic trampoline will fill-in the IMT slot with the proper thunk or
trampoline, so later calls will use the fast path.
This single-instance trampoline will use MONO_FAKE_IMT_METHOD as the method
it's asking to be compiled and executed: the trampoline code does recognize
this special value and retrives the interface method to call from the usual
this special value and retrieves the interface method to call from the usual
MONO_ARCH_IMT_REG saved by the trampoline code.
Given that only the IMT slots that are actually used will be initialized, this saves
quite a bit of memory, as it's unlikely that all the interface methods are called on
+32 -6
View File
@@ -4,7 +4,15 @@
Miguel de Icaza (miguel@{ximian.com,gnome.org}),
Paolo Molaro (lupus@{ximian.com,debian.org})
This documents overall design of the Mono JIT up to version
2.0. After Mono 2.0 the JIT engine was upgraded from
a tree-based intermediate representation to a linear
intermediate representation.
The Linear IL is documented here:
http://www.mono-project.com/Linear_IL
* Abstract
Mini is a new compilation engine for the Mono runtime. The
@@ -70,6 +78,24 @@
CIL code on the fly to marshal parameters, and then this
code is in turned processed by the JIT engine.
Mono has now gone through three different JIT engines, these
are:
* Original JIT engine: 2002, hard to port, hard to
implement optimizations.
* Second JIT engine, used up until Mono 2.0, very
portable, many new optimizations.
* Third JIT engine, replaced the code generation layer from
being based on a tree representation to be based on a linear
representation.
For more information on the code generation changes, see our
web site for the details on the Linear IL:
http://www.mono-project.com/Linear_IL
* Previous Experiences
Mono has built a JIT engine, which has been used to bootstrap
@@ -162,7 +188,7 @@
application domains, or generate code that will not be shared
across application domains.
* Objectives of the new JIT engine.
* Second Generation JIT engine.
We wanted to support a number of features that were missing:
@@ -206,7 +232,7 @@
necessary that the JIT engine works in most of today's
commercial hardware platforms.
* Features of the new JIT engine.
* Features of the Second JIT engine.
The new JIT engine was architected by Dietmar Maurer and Paolo
Molaro, based on the new objectives.
@@ -382,7 +408,7 @@
temporary variables generated during the various
optimizations.
** Instruction selection
** Instruction selection: Only used up until Mono 2.0
At this point, the BURS instruction selector is invoked to
transform the tree-based representation into a list of
@@ -609,7 +635,7 @@
registers, fixed registers and clobbered registers by each
operation.
* BURG Code Generator Generator
* BURG Code Generator Generator: Only used up to Mono 2.0
monoburg was written by Dietmar Maurer. It is based on the
papers from Christopher W. Fraser, Robert R. Henry and Todd
@@ -768,4 +794,4 @@
processors, and some of the framework exists today in our
register allocator and the instruction selector to cope with
this, but has not been finished. The instruction selection
would happen at the same time as local register allocation. <
would happen at the same time as local register allocation. <
+11 -3
View File
@@ -13,7 +13,12 @@ add_h4()
ignore_known()
{
egrep -v -f $dir/ignore
fgrep -v -f $dir/ignore
}
ignore_hidden ()
{
fgrep -w -v -f $dir/hidden_methods
}
clean_nm ()
@@ -32,5 +37,8 @@ if grep ^$ ignore >/dev/null; then
exit 1
fi
nm $dir/../io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known > $dir/wapi
nm $dir/../*/.libs/*.o | clean_nm | ignore_known | ignore_wapi | grep -v ^ves_icall | grep -v ^mono_arch_ > $dir/public-api
# generate the internals file
objdump -t ../mono/mini/.libs/libmono-2.0.a | grep "\.hidden" | sed 's/.*\.hidden //' > hidden_methods
nm $dir/../mono/io-layer/.libs/*.o | clean_nm | grep -v _wapi | ignore_known | sort > $dir/wapi
nm $dir/../mono/mini/.libs/libmono-2.0.a | clean_nm | ignore_known | ignore_hidden | ignore_wapi | grep -v ^ves_icall | egrep -v '^(mono_arch_|monoeg)' | sort > $dir/public-api
+754 -855
View File
File diff suppressed because it is too large. Load diff
+9 -14
View File
@@ -8,18 +8,6 @@
typedef struct _MonoImage MonoImage;
typedef struct _MonoAssembly MonoAssembly;
typedef struct {
const char *name;
const char *culture;
const char *hash_value;
const guint8* public_key;
guchar public_key_token [MONO_PUBLIC_KEY_TOKEN_LENGTH];
guint32 hash_alg;
guint32 hash_len;
guint32 flags;
guint16 major, minor, build, revision;
} MonoAssemblyName;
@API_IDX@
</div>
@@ -32,13 +20,13 @@ typedef struct {
<h4><a name="api:mono_assembly_load">mono_assembly_load</a></h4>
<h4><a name="api:mono_assembly_load_full">mono_assembly_load_full</a></h4>
<h4><a name="api:mono_assembly_loaded">mono_assembly_loaded</a></h4>
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
<h3>Working with Assemblies</h3>
<h4><a name="api:mono_assembly_get_image">mono_assembly_get_image</a></h4>
<h4><a name="api:mono_assembly_get_main">mono_assembly_get_main</a></h4>
<h4><a name="api:mono_assembly_getrootdir">mono_assembly_getrootdir</a></h4>
<h4><a name="api:mono_assembly_addref">mono_assembly_addref</a></h4>
<h3>Assembly Names</h3>
@@ -50,7 +38,14 @@ typedef struct {
href="http://www.mono-project.com/monodoc/T:System.Reflection.AssemblyName">System.Reflection.AssemblyName</a>
managed type.
<h4><a name="api:mono_assembly_name_parse">mono_assembly_name_parse</a></h4>
<h4><a name="api:mono_assembly_name_free">mono_assembly_name_free</a></h4>
<h4><a name="api:mono_stringify_assembly_name">mono_stringify_assembly_name</a></h4>
<h4><a name="api:mono_assembly_names_equal">mono_assembly_names_equal</a></h4>
<h3>Modules</h3>
<p>An assembly is made up of one or more modules.
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
-20
View File
@@ -1,8 +1,6 @@
<h2>Class Operations</h2>
<h4><a name="api:mono_class_array_element_size">mono_class_array_element_size</a></h4>
<h4><a name="api:mono_class_create_generic_2">mono_class_create_generic_2</a></h4>
<h4><a name="api:mono_class_create_generic">mono_class_create_generic</a></h4>
<h4><a name="api:mono_class_data_size">mono_class_data_size</a></h4>
<h4><a name="api:mono_class_enum_basetype">mono_class_enum_basetype</a></h4>
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
@@ -10,7 +8,6 @@
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
<h4><a name="api:mono_class_get_allocation_ftn">mono_class_get_allocation_ftn</a></h4>
<h4><a name="api:mono_class_get_byref_type">mono_class_get_byref_type</a></h4>
<h4><a name="api:mono_class_get_element_class">mono_class_get_element_class</a></h4>
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
@@ -22,7 +19,6 @@
<h4><a name="api:mono_class_get_flags">mono_class_get_flags</a></h4>
<h4><a name="api:mono_class_get_full">mono_class_get_full</a></h4>
<h4><a name="api:mono_class_get_image">mono_class_get_image</a></h4>
<h4><a name="api:mono_class_get_implemented_interfaces">mono_class_get_implemented_interfaces</a></h4>
<h4><a name="api:mono_class_get_interfaces">mono_class_get_interfaces</a></h4>
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
@@ -31,7 +27,6 @@
<h4><a name="api:mono_class_get_namespace">mono_class_get_namespace</a></h4>
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
<h4><a name="api:mono_class_get_nesting_type">mono_class_get_nesting_type</a></h4>
<h4><a name="api:mono_class_get_overrides">mono_class_get_overrides</a></h4>
<h4><a name="api:mono_class_get_parent">mono_class_get_parent</a></h4>
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
@@ -44,29 +39,14 @@
<h4><a name="api:mono_class_instance_size">mono_class_instance_size</a></h4>
<h4><a name="api:mono_class_is_assignable_from">mono_class_is_assignable_from</a></h4>
<h4><a name="api:mono_class_is_enum">mono_class_is_enum</a></h4>
<h4><a name="api:mono_class_is_open_constructed_type">mono_class_is_open_constructed_type</a></h4>
<h4><a name="api:mono_class_is_subclass_of">mono_class_is_subclass_of</a></h4>
<h4><a name="api:mono_class_is_valuetype">mono_class_is_valuetype</a></h4>
<h4><a name="api:mono_class_layout_fields">mono_class_layout_fields</a></h4>
<h4><a name="api:mono_class_min_align">mono_class_min_align</a></h4>
<h4><a name="api:mono_class_native_size">mono_class_native_size</a></h4>
<h4><a name="api:mono_class_needs_cctor_run">mono_class_needs_cctor_run</a></h4>
<h4><a name="api:mono_class_num_events">mono_class_num_events</a></h4>
<h4><a name="api:mono_class_num_fields">mono_class_num_fields</a></h4>
<h4><a name="api:mono_class_num_methods">mono_class_num_methods</a></h4>
<h4><a name="api:mono_class_num_properties">mono_class_num_properties</a></h4>
<h4><a name="api:mono_class_setup_mono_type">mono_class_setup_mono_type</a></h4>
<h4><a name="api:mono_class_setup_parent">mono_class_setup_parent</a></h4>
<h4><a name="api:mono_class_setup_supertypes">mono_class_setup_supertypes</a></h4>
<h4><a name="api:mono_class_setup_vtable">mono_class_setup_vtable</a></h4>
<h4><a name="api:mono_class_value_size">mono_class_value_size</a></h4>
<h4><a name="api:mono_class_vtable">mono_class_vtable</a></h4>
<h4><a name="api:mono_class_get_cctor">mono_class_get_cctor</a></h4>
<h4><a name="api:mono_class_get_finalizer">mono_class_get_finalizer</a></h4>
<h4><a name="api:mono_class_get_method_from_name_flags">mono_class_get_method_from_name_flags</a></h4>
<h4><a name="api:mono_class_inflate_generic_signature">mono_class_inflate_generic_signature</a></h4>
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
<h4><a name="api:mono_class_setup_methods">mono_class_setup_methods</a></h4>
<h4><a name="api:mono_class_setup_vtable_general">mono_class_setup_vtable_general</a></h4>
<h4><a name="api:mono_class_get_exception_for_failure">mono_class_get_exception_for_failure</a></h4>
<h4><a name="api:mono_class_is_nullable">mono_class_is_nullable</a></h4>
-30
View File
@@ -8,33 +8,3 @@
<h4><a name="api:mono_code_manager_new">mono_code_manager_new</a></h4>
<h4><a name="api:mono_code_manager_reserve">mono_code_manager_reserve</a></h4>
<h3>Registration services</h3>
<p>The core services of Mono are independent of the execution
system. The interpreter and the native code generator both
use the functions in the following section to register
handlers to execute code with the execution system.
<p>These APIs would allow a different execution engine (code
generator or interpreter) to be hooked to the rest of the Mono
VM.
<h4><a name="api:mono_install_assembly_load_hook">mono_install_assembly_load_hook</a></h4>
<h4><a name="api:mono_install_assembly_preload_hook">mono_install_assembly_preload_hook</a></h4>
<h4><a name="api:mono_install_assembly_search_hook">mono_install_assembly_search_hook</a></h4>
<h4><a name="api:mono_install_compile_method">mono_install_compile_method</a></h4>
<h4><a name="api:mono_install_free_method">mono_install_free_method</a></h4>
<h4><a name="api:mono_install_handler">mono_install_handler</a></h4>
<h4><a name="api:mono_install_lookup_dynamic_token">mono_install_lookup_dynamic_token</a></h4>
<h4><a name="api:mono_install_remoting_trampoline">mono_install_remoting_trampoline</a></h4>
<h4><a name="api:mono_install_runtime_invoke">mono_install_runtime_invoke</a></h4>
<h4><a name="api:mono_install_stack_walk">mono_install_stack_walk</a></h4>
<h4><a name="api:mono_install_thread_callbacks">mono_install_thread_callbacks</a></h4>
<h4><a name="api:mono_install_trampoline">mono_install_trampoline</a></h4>
<h4><a name="api:mono_install_runtime_cleanup">mono_install_runtime_cleanup</a></h4>
<h4><a name="api:mono_install_assembly_postload_refonly_search_hook">mono_install_assembly_postload_refonly_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_postload_search_hook">mono_install_assembly_postload_search_hook</a></h4>
<h4><a name="api:mono_install_assembly_refonly_preload_hook">mono_install_assembly_refonly_preload_hook</a></h4>
<h4><a name="api:mono_install_assembly_refonly_search_hook">mono_install_assembly_refonly_search_hook</a></h4>
<h4><a name="api:mono_install_delegate_trampoline">mono_install_delegate_trampoline</a></h4>
+1 -23
View File
@@ -1,15 +1,7 @@
<h4><a name="api:mono_debug_il_offset_from_address">mono_debug_il_offset_from_address</a></h4>
<h4><a name="api:mono_debug_open_mono_symbol_file">mono_debug_open_mono_symbol_file</a></h4>
<h4><a name="api:mono_debug_source_location_from_address">mono_debug_source_location_from_address</a></h4>
<h4><a name="api:mono_debug_source_location_from_il_offset">mono_debug_source_location_from_il_offset</a></h4>
<h4><a name="api:mono_debug_add_aot_method">mono_debug_add_aot_method</a></h4>
<h4><a name="api:mono_debug_add_method">mono_debug_add_method</a></h4>
<h4><a name="api:_mono_debug_address_from_il_offset">_mono_debug_address_from_il_offset</a></h4>
<h4><a name="api:mono_debug_address_from_il_offset">mono_debug_address_from_il_offset</a></h4>
<h4><a name="api:mono_debug_add_wrapper">mono_debug_add_wrapper</a></h4>
<h4><a name="api:mono_debug_close_mono_symbol_file">mono_debug_close_mono_symbol_file</a></h4>
<h4><a name="api:mono_debug_find_method">mono_debug_find_method</a></h4>
<h4><a name="api:mono_debug_find_source_location">mono_debug_find_source_location</a></h4>
<h4><a name="api:mono_debug_using_mono_debugger">mono_debug_using_mono_debugger</a></h4>
<h3>Mono Debugger Interface</h3>
@@ -17,29 +9,15 @@
<p>These are methods that are invoked by the debugger at
runtime.
<h4><a name="api:mono_debugger_add_builtin_types">mono_debugger_add_builtin_types</a></h4>
<h4><a name="api:mono_debugger_add_method">mono_debugger_add_method</a></h4>
<h4><a name="api:mono_debugger_add_symbol_file">mono_debugger_add_symbol_file</a></h4>
<h4><a name="api:mono_debugger_add_type">mono_debugger_add_type</a></h4>
<h4><a name="api:mono_debugger_add_wrapper">mono_debugger_add_wrapper</a></h4>
<h4><a name="api:mono_debugger_breakpoint_callback">mono_debugger_breakpoint_callback</a></h4>
<h4><a name="api:mono_debugger_check_runtime_version">mono_debugger_check_runtime_version</a></h4>
<h4><a name="api:mono_debugger_create_notification_function">mono_debugger_create_notification_function</a></h4>
<h4><a name="api:mono_debugger_event">mono_debugger_event</a></h4>
<h4><a name="api:_mono_debugger_get_symfile">_mono_debugger_get_symfile</a></h4>
<h4><a name="api:mono_debugger_handle_exception">mono_debugger_handle_exception</a></h4>
<h4><a name="api:mono_debugger_insert_breakpoint_full">mono_debugger_insert_breakpoint_full</a></h4>
<h4><a name="api:mono_debugger_insert_breakpoint">mono_debugger_insert_breakpoint</a></h4>
<h4><a name="api:mono_debugger_lock">mono_debugger_lock</a></h4>
<h4><a name="api:mono_debugger_lookup_assembly">mono_debugger_lookup_assembly</a></h4>
<h4><a name="api:mono_debugger_lookup_type">mono_debugger_lookup_type</a></h4>
<h4><a name="api:mono_debugger_method_has_breakpoint">mono_debugger_method_has_breakpoint</a></h4>
<h4><a name="api:mono_debugger_remove_breakpoint">mono_debugger_remove_breakpoint</a></h4>
<h4><a name="api:mono_debugger_runtime_invoke">mono_debugger_runtime_invoke</a></h4>
<h4><a name="api:mono_debugger_start_add_type">mono_debugger_start_add_type</a></h4>
<h4><a name="api:mono_debugger_throw_exception">mono_debugger_throw_exception</a></h4>
<h4><a name="api:mono_debugger_unhandled_exception">mono_debugger_unhandled_exception</a></h4>
<h4><a name="api:mono_debugger_unlock">mono_debugger_unlock</a></h4>
<h4><a name="api:mono_debugger_finalize_threads">mono_debugger_finalize_threads</a></h4>
<h4><a name="api:mono_debugger_main">mono_debugger_main</a></h4>
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
-19
View File
@@ -1,19 +0,0 @@
<h1>Decimal Support</h1>
<p>You can use the mono_decimal functions to access and
manipulate <tt>System.Decimal</tt> types from C.
<h4><a name="api:mono_decimal2double">mono_decimal2double</a></h4>
<h4><a name="api:mono_decimal2Int64">mono_decimal2Int64</a></h4>
<h4><a name="api:mono_decimal2string">mono_decimal2string</a></h4>
<h4><a name="api:mono_decimal2UInt64">mono_decimal2UInt64</a></h4>
<h4><a name="api:mono_decimalCompare">mono_decimalCompare</a></h4>
<h4><a name="api:mono_decimalDiv">mono_decimalDiv</a></h4>
<h4><a name="api:mono_decimalFloorAndTrunc">mono_decimalFloorAndTrunc</a></h4>
<h4><a name="api:mono_decimalIncr">mono_decimalIncr</a></h4>
<h4><a name="api:mono_decimalIntDiv">mono_decimalIntDiv</a></h4>
<h4><a name="api:mono_decimalMult">mono_decimalMult</a></h4>
<h4><a name="api:mono_decimalRound">mono_decimalRound</a></h4>
<h4><a name="api:mono_decimalSetExponent">mono_decimalSetExponent</a></h4>
<h4><a name="api:mono_double2decimal">mono_double2decimal</a></h4>
<h4><a name="api:mono_string2decimal">mono_string2decimal</a></h4>
-1
View File
@@ -45,7 +45,6 @@ typedef struct _MonoAppContext MonoAppContext
<h4><a name="api:mono_domain_set_internal">mono_domain_set_internal</a></h4>
<h4><a name="api:mono_domain_set">mono_domain_set</a></h4>
<h4><a name="api:mono_domain_try_type_resolve">mono_domain_try_type_resolve</a></h4>
<h4><a name="api:mono_domain_get_tls_key">mono_domain_get_tls_key</a></h4>
<h4><a name="api:mono_domain_owns_vtable_slot">mono_domain_owns_vtable_slot</a></h4>
<h3>Contexts</h3>
+13 -4
View File
@@ -110,9 +110,11 @@ MonoMethod *adder ()
MONO_WRAPPER_UNKNOWN
</pre>
<h4><a name="api:mono_mb_add_data">mono_mb_add_data</a></h4>
<h4><a name="api:mono_mb_add_local">mono_mb_add_local</a></h4>
<h4><a name="api:mono_mb_create_method">mono_mb_create_method</a></h4>
<h3>Emitting IL</h3>
<p>Functions that can be used to generate IL on the flight,
similar in spirit to System.Reflection.Emit.ILGenerator.
<h4><a name="api:mono_mb_emit_add_to_local">mono_mb_emit_add_to_local</a></h4>
<h4><a name="api:mono_mb_emit_branch">mono_mb_emit_branch</a></h4>
<h4><a name="api:mono_mb_emit_byte">mono_mb_emit_byte</a></h4>
@@ -129,11 +131,18 @@ MonoMethod *adder ()
<h4><a name="api:mono_mb_emit_managed_call">mono_mb_emit_managed_call</a></h4>
<h4><a name="api:mono_mb_emit_native_call">mono_mb_emit_native_call</a></h4>
<h4><a name="api:mono_mb_emit_stloc">mono_mb_emit_stloc</a></h4>
<h3>Local variables and Methods</h3>
<h4><a name="api:mono_mb_create_method">mono_mb_create_method</a></h4>
<h4><a name="api:mono_mb_add_data">mono_mb_add_data</a></h4>
<h4><a name="api:mono_mb_add_local">mono_mb_add_local</a></h4>
<h4><a name="api:mono_mb_free">mono_mb_free</a></h4>
<h3>Patching Addresses</h3>
<h4><a name="api:mono_mb_patch_addr">mono_mb_patch_addr</a></h4>
<h4><a name="api:mono_mb_patch_addr_s">mono_mb_patch_addr_s</a></h4>
<h3>Method Signatures</h3>
<h4><a name="api:mono_metadata_signature_alloc">mono_metadata_signature_alloc</a></h4>
<h4><a name="api:mono_metadata_signature_dup">mono_metadata_signature_dup</a></h4>
<h4><a name="api:mono_metadata_signature_equal">mono_metadata_signature_equal</a></h4>
+97 -7
View File
@@ -1,9 +1,57 @@
<h2>Embedding Mono</h2>
<p>The simplest way of embedding Mono is illustrated here:
<pre>
int main (int argc, char *argv)
{
/*
* Load the default Mono configuration file, this is needed
* if you are planning on using the dllmaps defined on the
* system configuration
*/
mono_config_parse (NULL);
/*
* mono_jit_init() creates a domain: each assembly is
* loaded and run in a MonoDomain.
*/
MonoDomain *domain = mono_jit_init ("startup.exe");
/*
* Optionally, add an internal call that your startup.exe
* code can call, this will bridge startup.exe to Mono
*/
mono_add_internal_call ("Sample::GetMessage", getMessage);
/*
* Open the executable, and run the Main method declared
* in the executable
*/
MonoAssembly *assembly = mono_domain_assembly_open (domain, "startup.exe");
if (!assembly)
exit (2);
/*
* mono_jit_exec() will run the Main() method in the assembly.
* The return value needs to be looked up from
* System.Environment.ExitCode.
*/
mono_jit_exec (domain, assembly, argc, argv);
}
/* The C# signature for this method is: string GetMessage () in class Sample */
MonoString*
getMessage ()
{
return mono_string_new (mono_domain_get (), "Hello, world");
}
</pre>
<h4><a name="api:mono_jit_init">mono_jit_init</a></h4>
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
<h4><a name="api:mono_set_dirs">mono_set_dirs</a></h4>
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
<h4><a name="api:mono_main">mono_main</a></h4>
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
<h4><a name="api:mono_jit_cleanup">mono_jit_cleanup</a></h4>
<h4><a name="api:mono_set_defaults">mono_set_defaults</a></h4>
@@ -18,12 +66,44 @@
<p>The other option is to use the Platform Invoke (P/Invoke)
to call C code from the CIL universe, using the standard
P/Invoke mechanisms.
<a href="http://www.mono-project.com/Interop_with_Native_Libraries">P/Invoke</a>
mechanisms.
<p>To register an internal call, use this call you use the
<tt>mono_add_internal_call</tt> routine.
<a href="#api:mono_add_internal_call"><tt>mono_add_internal_call</tt>
routine.
<h4>Data Marshalling</h4>
<h4><a name="api:mono_add_internal_call">mono_add_internal_call</a></h4>
<h3>P/Invoke with embedded applications</h3>
<p>Unlike internal calls, Platform/Invoke is easier to use and
more portable. It allows you to share code with Windows and
.NET that have a different setup for internal calls to their
own runtime.
<p>Usually P/Invoke declarations reference external libraries
like:
<pre>
[DllImport ("opengl")]
void glBegin (GLEnum mode)
</pre>
<p>Mono extends P/Invoke to support looking up symbols not in
an external library, but looking up those symbols into the
same address space as your program, to do this, use the
special library name "__Internal". This will direct Mono to
lookup the method in your own process.
<p>There are situations where the host operating system does
not support looking up symbols on the process address space.
For situations like this you can use
the <a href="#api:mono_dl_register_library">mono_dl_register_library</a>.
<h4><a name="api:mono_dl_register_library">mono_dl_register_library</h4>
<h3>Data Marshalling</h3>
<p>Managed objects are represented as <tt>MonoObject*</tt>
types. Those objects that the runtime consumes directly have
@@ -48,8 +128,6 @@
int64, etc) must be passed as a pointer, in C# this means
passing the value as a "ref" or "out" parameter.
<h4><a name="api:mono_add_internal_call">mono_add_internal_call</a></h4>
<h3>Mono Runtime Configuration</h3>
<p>Certain features of the Mono runtime, like DLL mapping, are
@@ -65,6 +143,7 @@
<h4><a name="api:mono_config_parse">mono_config_parse</a></h4>
<h4><a name="api:mono_config_parse_memory">mono_config_parse_memory</a></h4>
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
<h3>Function Pointers</h3>
@@ -76,3 +155,14 @@
<h4><a name="api:mono_create_ftnptr">mono_create_ftnptr</a></h4>
<h3>Advanced Execution Setups</h3>
<p>These are not recommended ways of initializing Mono, they
are done internally by mono_jit_init, but are here to explain
what happens internally.
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
<h4><a name="api:mono_init">mono_init</a></h4>
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
-1
View File
@@ -9,7 +9,6 @@
<h4><a name="api:mono_raise_exception">mono_raise_exception</a></h4>
<h4><a name="api:mono_unhandled_exception">mono_unhandled_exception</a></h4>
<h4><a name="api:mono_print_unhandled_exception">mono_print_unhandled_exception</a></h4>
<h4><a name="api:mono_handle_exception">mono_handle_exception</a></h4>
<h3>Exception Types: General API</h3>
-30
View File
@@ -10,33 +10,3 @@
<h4><a name="api:mono_gc_get_heap_size">mono_gc_get_heap_size</a></h4>
<h4><a name="api:mono_gc_get_used_size">mono_gc_get_used_size</a></h4>
<h3>Weak Links</h3>
<h4><a name="api:mono_gc_weak_link_add">mono_gc_weak_link_add</a></h4>
<h4><a name="api:mono_gc_weak_link_get">mono_gc_weak_link_get</a></h4>
<h4><a name="api:mono_gc_weak_link_remove">mono_gc_weak_link_remove</a></h4>
<h2>Internal Interface</h2>
<p>The internal interface of the Mono GC is the interface used
between the runtime engine and the garbage collector.
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
<h4><a name="api:mono_gc_is_finalizer_thread">mono_gc_is_finalizer_thread</a></h4>
<h4><a name="api:mono_gc_out_of_memory">mono_gc_out_of_memory</a></h4>
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
<h4><a name="api:mono_gc_enable_events">mono_gc_enable_events</a></h4>
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
<h4><a name="api:mono_gc_base_init">mono_gc_base_init</a></h4>
<h4><a name="api:mono_gc_invoke_finalizers">mono_gc_invoke_finalizers</a></h4>
<h4><a name="api:mono_gc_is_gc_thread">mono_gc_is_gc_thread</a></h4>
<h4><a name="api:mono_gc_pending_finalizers">mono_gc_pending_finalizers</a></h4>
<h4><a name="api:mono_gc_register_thread">mono_gc_register_thread</a></h4>
<h4><a name="api:mono_gc_finalize_notify">mono_gc_finalize_notify</a></h4>
-1
View File
@@ -91,5 +91,4 @@ static MonoObject* o = NULL;
<h4><a name="api:mono_gchandle_new">mono_gchandle_new</a></h4>
<h4><a name="api:mono_gchandle_new_weakref">mono_gchandle_new_weakref</a></h4>
<h4><a name="api:mono_gchandle_get_target">mono_gchandle_get_target</a></h4>
<h4><a name="api:mono_gchandle_is_in_domain">mono_gchandle_is_in_domain</a></h4>
<h4><a name="api:mono_gchandle_free">mono_gchandle_free</a></h4>
+108 -8
View File
@@ -1,14 +1,114 @@
<h1>Code Generator Internals</h1>
<h1>Mono Internals</h1>
<p>The functions in this document are internal to the JIT,
they are here for completeness, but you should refer to the
source code for more details.
<p>This section documents some of the internal APIs used
inside Mono that developers extending or altering Mono might
want to use.
<h2>Marshalling functions</h2>
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
<h4><a name="api:mono_marshal_asany">mono_marshal_asany</a></h4>
<h4><a name="api:mono_marshal_free_array">mono_marshal_free_array</a></h4>
<h4><a name="api:mono_marshal_free_asany">mono_marshal_free_asany</a></h4>
<h4><a name="api:mono_marshal_free">mono_marshal_free</a></h4>
<h4><a name="api:mono_marshal_get_castclass">mono_marshal_get_castclass</a></h4>
<h4><a name="api:mono_marshal_get_delegate_begin_invoke">mono_marshal_get_delegate_begin_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_end_invoke">mono_marshal_get_delegate_end_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_proxy_cancast">mono_marshal_get_proxy_cancast</a></h4>
<h4><a name="api:mono_marshal_get_ptr_to_struct">mono_marshal_get_ptr_to_struct</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_for_target">mono_marshal_get_remoting_invoke_for_target</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke">mono_marshal_get_remoting_invoke</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_unbox_wrapper">mono_marshal_get_unbox_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
<h2>Metadata Loading Errors</h2>
<p>The routines in this section are used to cope with errors
during metadata loading. Errors in metadata handling can
happen for many reason, and these include (this is not an
exhaustive list).
<ul>
<li>An assembly referenced is missing.
<li>Fields referenced are missing.
<li>Methods referenced are missing.
</ul>
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
metadata loading to flag that an error has happened. The
class loading errros are flagged in a per-thread basis.
<P>In various spots in the runtime the
<tt>mono_loader_get_last_error</tt> routine is called to check
if there was a problem, and then errors are propagated upwards
on the stack until we reach a point where an exception can be
raised and no runtime locks are held.
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
<tt>MonoLoaderError</tt> structure (the value returned from
<tt>mono_loader_get_last_error</tt>), turns that into an
exception and clears the error condition from the current
thread.
<h3>BURG public API</h3>
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
<h4><a name="api:mono_burg_kids">mono_burg_kids</a></h4>
<h4><a name="api:mono_burg_label">mono_burg_label</a></h4>
<h4><a name="api:mono_burg_rule">mono_burg_rule</a></h4>
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
<h2>Metadata Loader Locking: Internals</h2>
<p>The locking functions here are used by code in class.c and
metadata.c to lock access to the shared hashtables inside the
MonoImage.
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
<h2>Garbage Collector Internal Interface</h2>
<p>The internal interface of the Mono GC is the interface used
between the runtime engine and the garbage collector.
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
<h4><a name="api:mono_gc_is_finalizer_thread">mono_gc_is_finalizer_thread</a></h4>
<h4><a name="api:mono_gc_out_of_memory">mono_gc_out_of_memory</a></h4>
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
<h4><a name="api:mono_gc_enable_events">mono_gc_enable_events</a></h4>
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
<h4><a name="api:mono_gc_base_init">mono_gc_base_init</a></h4>
<h4><a name="api:mono_gc_invoke_finalizers">mono_gc_invoke_finalizers</a></h4>
<h4><a name="api:mono_gc_is_gc_thread">mono_gc_is_gc_thread</a></h4>
<h4><a name="api:mono_gc_pending_finalizers">mono_gc_pending_finalizers</a></h4>
<h4><a name="api:mono_gc_register_thread">mono_gc_register_thread</a></h4>
<h4><a name="api:mono_gc_finalize_notify">mono_gc_finalize_notify</a></h4>
-11
View File
@@ -1,11 +0,0 @@
<h3>Interpreter API</h3>
<p>This describes the API exposed by the interpreter, but it
is for the most part an internal to the interpreter.
<h4><a name="api:mono_interp_dis_mintop">mono_interp_dis_mintop</a></h4>
<h4><a name="api:mono_interp_exec">mono_interp_exec</a></h4>
<h4><a name="api:mono_interp_ftnptr_to_delegate">mono_interp_ftnptr_to_delegate</a></h4>
<h4><a name="api:mono_interp_get_runtime_method">mono_interp_get_runtime_method</a></h4>
<h4><a name="api:mono_interp_transform_init">mono_interp_transform_init</a></h4>
<h4><a name="api:mono_interp_transform_method">mono_interp_transform_method</a></h4>
+3 -4
View File
@@ -1,9 +1,8 @@
<h1>Notification Interface</h1>
<p>Am not sure that we want to document this; This seems like
an internal interface that third parties would not likely
use, and if they do, they probably are reading the JIT's
source code.
<p>This is an internal profiler interface. In general, users
would not be using this interface, but would be using the
profiler interface.
<p>These methods must be called to notify the profiler of an
event that must be recorded. Mono's JIT engine currently
-33
View File
@@ -3,37 +3,4 @@
<h4><a name="api:mono_delegate_free_ftnptr">mono_delegate_free_ftnptr</a></h4>
<h4><a name="api:mono_delegate_to_ftnptr">mono_delegate_to_ftnptr</a></h4>
<h4><a name="api:mono_ftnptr_to_delegate">mono_ftnptr_to_delegate</a></h4>
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
<h4><a name="api:mono_marshal_asany">mono_marshal_asany</a></h4>
<h4><a name="api:mono_marshal_free_array">mono_marshal_free_array</a></h4>
<h4><a name="api:mono_marshal_free_asany">mono_marshal_free_asany</a></h4>
<h4><a name="api:mono_marshal_free">mono_marshal_free</a></h4>
<h4><a name="api:mono_marshal_get_castclass">mono_marshal_get_castclass</a></h4>
<h4><a name="api:mono_marshal_get_delegate_begin_invoke">mono_marshal_get_delegate_begin_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_end_invoke">mono_marshal_get_delegate_end_invoke</a></h4>
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_proxy_cancast">mono_marshal_get_proxy_cancast</a></h4>
<h4><a name="api:mono_marshal_get_ptr_to_struct">mono_marshal_get_ptr_to_struct</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_for_target">mono_marshal_get_remoting_invoke_for_target</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke">mono_marshal_get_remoting_invoke</a></h4>
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_unbox_wrapper">mono_marshal_get_unbox_wrapper</a></h4>
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
<h4><a name="api:mono_marshal_string_to_utf16">mono_marshal_string_to_utf16</a></h4>
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
-56
View File
@@ -618,7 +618,6 @@ MONO_TYPESPEC_SIZE
<h4><a name="api:mono_image_get_table_info">mono_image_get_table_info</a></h4>
<h4><a name="api:mono_image_get_table_rows">mono_image_get_table_rows</a></h4>
<h4><a name="api:mono_metadata_get_table">mono_metadata_get_table</a></h4>
<h4><a name="api:mono_meta_table_name">mono_meta_table_name</a></h4>
<h4><a name="api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a></h4>
<h4><a name="api:mono_metadata_decode_row">mono_metadata_decode_row</a></h4>
<h4><a name="api:mono_metadata_compute_size">mono_metadata_compute_size</a></h4>
@@ -643,7 +642,6 @@ MONO_TYPESPEC_SIZE
<h4><a name="api:mono_metadata_get_constant_index">mono_metadata_get_constant_index</a></h4>
<h4><a name="api:mono_metadata_get_marshal_info">mono_metadata_get_marshal_info</a></h4>
<h4><a name="api:mono_metadata_implmap_from_method">mono_metadata_implmap_from_method</a></h4>
<h4><a name="api:mono_metadata_interfaces_from_typedef_full">mono_metadata_interfaces_from_typedef_full</a></h4>
<h4><a name="api:mono_metadata_interfaces_from_typedef">mono_metadata_interfaces_from_typedef</a></h4>
<h4><a name="api:mono_metadata_locate">mono_metadata_locate</a></h4>
<h4><a name="api:mono_metadata_locate_token">mono_metadata_locate_token</a></h4>
@@ -671,79 +669,25 @@ MONO_TYPESPEC_SIZE
<h4><a name="api:mono_metadata_parse_mh_full">mono_metadata_parse_mh_full</a></h4>
<h4><a name="api:mono_metadata_parse_mh">mono_metadata_parse_mh</a></h4>
<h4><a name="api:mono_metadata_parse_param">mono_metadata_parse_param</a></h4>
<h4><a name="api:mono_metadata_parse_signature_full">mono_metadata_parse_signature_full</a></h4>
<h4><a name="api:mono_metadata_parse_signature">mono_metadata_parse_signature</a></h4>
<h4><a name="api:mono_metadata_parse_typedef_or_ref">mono_metadata_parse_typedef_or_ref</a></h4>
<h4><a name="api:mono_metadata_parse_type_full">mono_metadata_parse_type_full</a></h4>
<h4><a name="api:mono_metadata_parse_type">mono_metadata_parse_type</a></h4>
<h2>Metadata Loader Locking</h2>
<p>The locking functions here are used by code in class.c and
metadata.c to lock access to the shared hashtables inside the
MonoImage.
<h4><a name="api:mono_loader_lock">mono_loader_lock</a></h4>
<h4><a name="api:mono_loader_unlock">mono_loader_unlock</a></h4>
<h2>Generics Support</h2>
<h4><a name="api:mono_metadata_generic_class_is_valuetype">mono_metadata_generic_class_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_has_generic_params">mono_metadata_has_generic_params</a></h4>
<h4><a name="api:mono_metadata_inflate_generic_inst">mono_metadata_inflate_generic_inst</a></h4>
<h4><a name="api:mono_metadata_parse_generic_inst">mono_metadata_parse_generic_inst</a></h4>
<h4><a name="api:mono_metadata_generic_inst_equal">mono_metadata_generic_inst_equal</a></h4>
<h4><a name="api:mono_metadata_generic_inst_hash">mono_metadata_generic_inst_hash</a></h4>
<h4><a name="api:mono_metadata_load_generic_params">mono_metadata_load_generic_params</a></h4>
<h4><a name="api:mono_metadata_generic_inst_is_valuetype">mono_metadata_generic_inst_is_valuetype</a></h4>
<h4><a name="api:mono_metadata_generic_method_equal">mono_metadata_generic_method_equal</a></h4>
<h2>Tokens</h2>
<h4><a name="api:mono_ldtoken">mono_ldtoken</a></h4>
<h4><a name="api:mono_lookup_dynamic_token">mono_lookup_dynamic_token</a></h4>
<h4><a name="api:mono_ldstr">mono_ldstr</a></h4>
<h4><a name="api:mono_exception_from_token">mono_exception_from_token</a></h4>
<h4><a name="api:mono_create_jit_trampoline_from_token">mono_create_jit_trampoline_from_token</a></h4>
<h2>OpCodes</h2>
<h4><a name="api:mono_opcode_name">mono_opcode_name</a></h4>
<h4><a name="api:mono_opcode_value">mono_opcode_value</a></h4>
<h2>Metadata Loading Errors</h2>
<p>The routines in this section are used to cope with errors
during metadata loading. Errors in metadata handling can
happen for many reason, and these include (this is not an
exhaustive list).
<ul>
<li>An assembly referenced is missing.
<li>Fields referenced are missing.
<li>Methods referenced are missing.
</ul>
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
metadata loading to flag that an error has happened. The
class loading errros are flagged in a per-thread basis.
<P>In various spots in the runtime the
<tt>mono_loader_get_last_error</tt> routine is called to check
if there was a problem, and then errors are propagated upwards
on the stack until we reach a point where an exception can be
raised and no runtime locks are held.
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
<tt>MonoLoaderError</tt> structure (the value returned from
<tt>mono_loader_get_last_error</tt>), turns that into an
exception and clears the error condition from the current
thread.
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
+4 -5
View File
@@ -26,10 +26,9 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_runtime_invoke_array">mono_runtime_invoke_array</a></h4>
<h4><a name="api:mono_remoting_invoke">mono_remoting_invoke</a></h4>
<h4><a name="api:mono_runtime_delegate_invoke">mono_runtime_delegate_invoke</a></h4>
<h4><a name="api:mono_method_call_message_new">mono_method_call_message_new</a></h4>
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
<h4><a name="api:mono_method_desc_free">mono_method_desc_free</a></h4>
<h4><a name="api:mono_method_desc_from_method">mono_method_desc_from_method</a></h4>
<h4><a name="api:mono_method_desc_full_match">mono_method_desc_full_match</a></h4>
@@ -50,10 +49,7 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_method_get_index">mono_method_get_index</a></h4>
<h4><a name="api:mono_method_get_signature_full">mono_method_get_signature_full</a></h4>
<h4><a name="api:mono_method_get_token">mono_method_get_token</a></h4>
<h4><a name="api:mono_method_get_wrapper_data">mono_method_get_wrapper_data</a></h4>
<h4><a name="api:mono_method_has_marshal_info">mono_method_has_marshal_info</a></h4>
<h4><a name="api:mono_method_return_message_restore">mono_method_return_message_restore</a></h4>
<h4><a name="api:mono_method_same_domain">mono_method_same_domain</a></h4>
<h4><a name="api:mono_method_verify">mono_method_verify</a></h4>
<h3>Method Signatures</h3>
@@ -68,6 +64,9 @@ mono_runtime_invoke (method, obj, args, &amp;exception);
<h4><a name="api:mono_signature_hash">mono_signature_hash</a></h4>
<h4><a name="api:mono_signature_is_instance">mono_signature_is_instance</a></h4>
<h4><a name="api:mono_signature_vararg_start">mono_signature_vararg_start</a></h4>
<h4><a name="api:mono_param_get_objects">mono_param_get_objects</a></h4>
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
<h3>Methods Header Operations</h3>
+5 -26
View File
@@ -2,8 +2,7 @@
<p>The object API deals with all the operations shared by
<a href="#objects">objects</a>, <a href="#valuetypes">value
types</a>, <a href="#arrays">arrays</a> and <a
href="#nullable">nullable types</a>.
types</a>, <a href="#arrays">arrays</a>.
<p>The object API has methods for accessing <a
href="#fields">fields</a>, <a
@@ -11,8 +10,7 @@
href="#events">events</a>, <a href="#delegates">delegates</a>.
<p>There are some advanced uses that are useful to document
here dealing with <a href="#async">AsyncResults</a> and <a
href="#remote">remote fields</a>.
here dealing with <a href="#remote">remote fields</a>.
<h2>Synopsis</h2>
@@ -93,7 +91,6 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_object_get_virtual_method">mono_object_get_virtual_method</a></h4>
<h4><a name="api:mono_object_isinst_mbyref">mono_object_isinst_mbyref</a></h4>
<h4><a name="api:mono_object_isinst">mono_object_isinst</a></h4>
<h4><a name="api:mono_object_register_finalizer">mono_object_register_finalizer</a></h4>
<h4><a name="api:mono_object_unbox">mono_object_unbox</a></h4>
<h4><a name="api:mono_object_castclass_mbyref">mono_object_castclass_mbyref</a></h4>
<h4><a name="api:mono_object_is_alive">mono_object_is_alive</a></h4>
@@ -137,12 +134,7 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_array_new_full">mono_array_new_full</a></h4>
<h4><a name="api:mono_array_new_specific">mono_array_new_specific</a></h4>
<h4><a name="api:mono_array_class_get">mono_array_class_get</a></h4>
<h4><a name="api:mono_array_clone_in_domain">mono_array_clone_in_domain</a></h4>
<h4><a name="api:mono_array_clone">mono_array_clone</a></h4>
<h4><a name="api:mono_array_full_copy">mono_array_full_copy</a></h4>
<h4><a name="api:mono_array_to_lparray">mono_array_to_lparray</a></h4>
<h4><a name="api:mono_array_to_savearray">mono_array_to_savearray</a></h4>
<h4><a name="api:mono_dup_array_type">mono_dup_array_type</a></h4>
<h3>Using Arrays</h3>
@@ -167,10 +159,12 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_field_set_value">mono_field_set_value</a></h4>
<h4><a name="api:mono_field_static_get_value">mono_field_static_get_value</a></h4>
<h4><a name="api:mono_field_static_set_value">mono_field_static_set_value</a></h4>
<h4><a name="api:mono_field_get_object">mono_field_get_object</a></h4>
<a name="properties"></a>
<h2>Properties</h2>
<h4><a name="api:mono_property_get_object">mono_property_get_object</a></h4>
<h4><a name="api:mono_property_get_flags">mono_property_get_flags</a></h4>
<h4><a name="api:mono_property_get_get_method">mono_property_get_get_method</a></h4>
<h4><a name="api:mono_property_get_name">mono_property_get_name</a></h4>
@@ -182,6 +176,7 @@ result = mono_object_new (mono_domain_get (), version_class);
<a name="events"></a>
<h2>Events</h2>
<h4><a name="api:mono_event_get_object">mono_event_get_object</a></h4>
<h4><a name="api:mono_event_get_add_method">mono_event_get_add_method</a></h4>
<h4><a name="api:mono_event_get_flags">mono_event_get_flags</a></h4>
<h4><a name="api:mono_event_get_name">mono_event_get_name</a></h4>
@@ -189,14 +184,6 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_event_get_raise_method">mono_event_get_raise_method</a></h4>
<h4><a name="api:mono_event_get_remove_method">mono_event_get_remove_method</a></h4>
<a name="delegates"></a>
<h2>Delegates</h2>
<h4><a name="api:mono_delegate_ctor">mono_delegate_ctor</a></h4>
<a name="async"></a>
<h2>AsyncResults</h2>
<h4><a name="api:mono_async_result_new">mono_async_result_new</a></h4>
<a name="remote"></a>
<h2>Remote Fields</h2>
<h4><a name="api:mono_load_remote_field">mono_load_remote_field</a></h4>
@@ -204,11 +191,3 @@ result = mono_object_new (mono_domain_get (), version_class);
<h4><a name="api:mono_store_remote_field">mono_store_remote_field</a></h4>
<h4><a name="api:mono_store_remote_field_new">mono_store_remote_field_new</a></h4>
<a name="nullable"></a>
<h2>Nullable Objects</h2>
<p>These methods are used to manipulate objects of type
System.Nullable&lt;T&gt;
<h4><a name="api:mono_nullable_box">mono_nullable_box</a></h4>
<h4><a name="api:mono_nullable_init">mono_nullable_init</a></h4>
+5 -16
View File
@@ -1,28 +1,16 @@
<h4><a name="api:mono_reflection_bind_generic_method_parameters">mono_reflection_bind_generic_method_parameters</a></h4>
<h4><a name="api:mono_reflection_bind_generic_parameters">mono_reflection_bind_generic_parameters</a></h4>
<h4><a name="api:mono_reflection_create_dynamic_method">mono_reflection_create_dynamic_method</a></h4>
<h4><a name="api:mono_reflection_create_generic_class">mono_reflection_create_generic_class</a></h4>
<h4><a name="api:mono_reflection_create_internal_class">mono_reflection_create_internal_class</a></h4>
<h4><a name="api:mono_reflection_create_runtime_class">mono_reflection_create_runtime_class</a></h4>
<h4><a name="api:mono_reflection_event_builder_get_event_info">mono_reflection_event_builder_get_event_info</a></h4>
<h4><a name="api:mono_reflection_generic_inst_initialize">mono_reflection_generic_inst_initialize</a></h4>
<h2>Fetching Types, and Basic Reflection</h2>
<h4><a name="api:mono_reflection_get_custom_attrs_blob">mono_reflection_get_custom_attrs_blob</a></h4>
<h4><a name="api:mono_reflection_get_custom_attrs">mono_reflection_get_custom_attrs</a></h4>
<h4><a name="api:mono_custom_attrs_get_attr">mono_custom_attrs_get_attr</a></h4>
<h4><a name="api:mono_reflection_get_token">mono_reflection_get_token</a></h4>
<h4><a name="api:mono_reflection_get_type">mono_reflection_get_type</a></h4>
<h4><a name="api:mono_reflection_initialize_generic_parameter">mono_reflection_initialize_generic_parameter</a></h4>
<h4><a name="api:mono_reflection_lookup_dynamic_token">mono_reflection_lookup_dynamic_token</a></h4>
<h4><a name="api:mono_reflection_marshal_from_marshal_spec">mono_reflection_marshal_from_marshal_spec</a></h4>
<h4><a name="api:mono_reflection_parse_type">mono_reflection_parse_type</a></h4>
<h4><a name="api:mono_reflection_setup_generic_class">mono_reflection_setup_generic_class</a></h4>
<h4><a name="api:mono_reflection_setup_internal_class">mono_reflection_setup_internal_class</a></h4>
<h4><a name="api:mono_reflection_sighelper_get_signature_field">mono_reflection_sighelper_get_signature_field</a></h4>
<h4><a name="api:mono_reflection_sighelper_get_signature_local">mono_reflection_sighelper_get_signature_local</a></h4>
<h4><a name="api:mono_reflection_type_from_name">mono_reflection_type_from_name</a></h4>
<h4><a name="api:mono_reflection_generic_class_initialize">mono_reflection_generic_class_initialize</a></h4>
<h4><a name="api:mono_reflection_get_custom_attrs_info">mono_reflection_get_custom_attrs_info</a></h4>
<h2>Custom Attributes</h2>
<h4><a name="api:mono_custom_attrs_construct">mono_custom_attrs_construct</a></h4>
<h4><a name="api:mono_custom_attrs_free">mono_custom_attrs_free</a></h4>
<h4><a name="api:mono_custom_attrs_from_assembly">mono_custom_attrs_from_assembly</a></h4>
@@ -35,6 +23,7 @@
<h4><a name="api:mono_custom_attrs_from_property">mono_custom_attrs_from_property</a></h4>
<h4><a name="api:mono_custom_attrs_has_attr">mono_custom_attrs_has_attr</a></h4>
<h2>
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
-4
View File
@@ -1,9 +1,5 @@
<h3>Security Manager</h3>
<h4><a name="api:mono_is_security_manager_active">mono_is_security_manager_active</a></h4>
<h4><a name="api:mono_security_manager_get_methods">mono_security_manager_get_methods</a></h4>
<h4><a name="api:mono_activate_security_manager">mono_activate_security_manager</a></h4>
<h4><a name="api:mono_is_ecma_key">mono_is_ecma_key</a></h4>
<h4><a name="api:mono_get_context_capture_method">mono_get_context_capture_method</a></h4>
<h3>Declarative Security</h3>
-12
View File
@@ -41,12 +41,8 @@ typedef struct {
<h3>Conversions</h3>
<h4><a name="api:mono_string_to_byvalstr">mono_string_to_byvalstr</a></h4>
<h4><a name="api:mono_string_to_byvalwstr">mono_string_to_byvalwstr</a></h4>
<h4><a name="api:mono_string_to_utf16">mono_string_to_utf16</a></h4>
<h4><a name="api:mono_string_to_utf8">mono_string_to_utf8</a></h4>
<h4><a name="api:mono_string_utf16_to_builder">mono_string_utf16_to_builder</a></h4>
<h4><a name="api:mono_string_utf8_to_builder">mono_string_utf8_to_builder</a></h4>
<h3>Methods</h3>
@@ -59,14 +55,6 @@ typedef struct {
<h4><a name="api:mono_string_length">mono_string_length</a></h4>
<h3>String Builders</h3>
<p>These routines are used to work with the managed types
<tt>System.Text.StringBuilder</tt>.
<h4><a name="api:mono_string_builder_to_utf16">mono_string_builder_to_utf16</a></h4>
<h4><a name="api:mono_string_builder_to_utf8">mono_string_builder_to_utf8</a></h4>
<h3>Other Encodings</h3>
<p>These routines are used when coping with strings that come
-22
View File
@@ -1,24 +1,13 @@
<h2>Working with threads</h2>
<h3>Thread API</h3>
<h4><a name="api:mono_thread_abort_all_other_threads">mono_thread_abort_all_other_threads</a></h4>
<h4><a name="api:mono_thread_attach">mono_thread_attach</a></h4>
<h4><a name="api:mono_thread_create">mono_thread_create</a></h4>
<h4><a name="api:mono_thread_current">mono_thread_current</a></h4>
<h4><a name="api:mono_thread_detach">mono_thread_detach</a></h4>
<h4><a name="api:mono_thread_exit">mono_thread_exit</a></h4>
<h4><a name="api:mono_thread_force_interruption_checkpoint">mono_thread_force_interruption_checkpoint</a></h4>
<h4><a name="api:mono_thread_get_abort_signal">mono_thread_get_abort_signal</a></h4>
<h4><a name="api:mono_thread_get_pending_exception">mono_thread_get_pending_exception</a></h4>
<h4><a name="api:mono_thread_interruption_checkpoint">mono_thread_interruption_checkpoint</a></h4>
<h4><a name="api:mono_thread_interruption_requested">mono_thread_interruption_requested</a></h4>
<h4><a name="api:mono_thread_interruption_request_flag">mono_thread_interruption_request_flag</a></h4>
<h4><a name="api:mono_thread_manage">mono_thread_manage</a></h4>
<h4><a name="api:mono_thread_new_init">mono_thread_new_init</a></h4>
<h4><a name="api:mono_thread_pop_appdomain_ref">mono_thread_pop_appdomain_ref</a></h4>
<h4><a name="api:mono_thread_push_appdomain_ref">mono_thread_push_appdomain_ref</a></h4>
<h4><a name="api:mono_thread_request_interruption">mono_thread_request_interruption</a></h4>
<h4><a name="api:mono_threads_abort_appdomain_threads">mono_threads_abort_appdomain_threads</a></h4>
<h4><a name="api:mono_threads_get_default_stacksize">mono_threads_get_default_stacksize</a></h4>
<h4><a name="api:mono_threads_install_cleanup">mono_threads_install_cleanup</a></h4>
<h4><a name="api:mono_threads_set_default_stacksize">mono_threads_set_default_stacksize</a></h4>
@@ -26,21 +15,10 @@
<h4><a name="api:mono_thread_get_main">mono_thread_get_main</a></h4>
<h4><a name="api:mono_thread_set_main">mono_thread_set_main</a></h4>
<h4><a name="api:mono_thread_get_tls_key">mono_thread_get_tls_key</a></h4>
<h4><a name="api:mono_pthread_key_for_tls">mono_pthread_key_for_tls</a></h4>
<h3>Thread Pool API</h3>
<h4><a name="api:mono_thread_pool_add">mono_thread_pool_add</a></h4>
<h4><a name="api:mono_thread_pool_finish">mono_thread_pool_finish</a></h4>
<h3>Monitors</h3>
<h4><a name="api:mono_monitor_enter">mono_monitor_enter</a></h4>
<h4><a name="api:mono_monitor_exit">mono_monitor_exit</a></h4>
<h4><a name="api:mono_monitor_try_enter">mono_monitor_try_enter</a></h4>
<h3>Mono VM development</h3>
<h4><a name="api:mono_threads_clear_cached_culture">mono_threads_clear_cached_culture</a></h4>
<h4><a name="api:mono_thread_suspend_all_other_threads">mono_thread_suspend_all_other_threads</a></h4>
<h4><a name="api:mono_thread_has_appdomain_ref">mono_thread_has_appdomain_ref</a></h4>
-14
View File
@@ -1,14 +0,0 @@
<h2>Tracing</h2>
<h4><a name="api:mono_trace_cleanup">mono_trace_cleanup</a></h4>
<h4><a name="api:mono_trace">mono_trace</a></h4>
<h4><a name="api:mono_trace_parse_options">mono_trace_parse_options</a></h4>
<h4><a name="api:mono_trace_pop">mono_trace_pop</a></h4>
<h4><a name="api:mono_trace_push">mono_trace_push</a></h4>
<h4><a name="api:mono_trace_set_assembly">mono_trace_set_assembly</a></h4>
<h4><a name="api:mono_trace_set_level">mono_trace_set_level</a></h4>
<h4><a name="api:mono_trace_set_level_string">mono_trace_set_level_string</a></h4>
<h4><a name="api:mono_trace_set_mask">mono_trace_set_mask</a></h4>
<h4><a name="api:mono_trace_set_mask_string">mono_trace_set_mask_string</a></h4>
<h4><a name="api:mono_tracev">mono_tracev</a></h4>
<h4><a name="api:mono_trace_is_traced">mono_trace_is_traced</a></h4>
+18 -8
View File
@@ -1,22 +1,32 @@
<h4><a name="api:mono_type_create_from_typespec_full">mono_type_create_from_typespec_full</a></h4>
<h2>Type support</h2>
<h3>Synopsis</h3>
<div class="header">
#include &lt;metadata/metadata.h&gt;
#include &lt;metadata/class.h&gt;
typedef struct _MonoType MonoType;
@API_IDX@
</div>
<p>The MonoType represents the unmanaged version of
System.Type.
<h4><a name="api:mono_type_get_object">mono_type_get_object</a></h4>
<h4><a name="api:mono_type_create_from_typespec">mono_type_create_from_typespec</a></h4>
<h4><a name="api:mono_type_full_name">mono_type_full_name</a></h4>
<h4><a name="api:mono_type_get_array_type">mono_type_get_array_type</a></h4>
<h4><a name="api:mono_type_get_class">mono_type_get_class</a></h4>
<h4><a name="api:mono_type_get_desc">mono_type_get_desc</a></h4>
<h4><a name="api:mono_type_get_full_name">mono_type_get_full_name</a></h4>
<h4><a name="api:mono_type_get_modifiers">mono_type_get_modifiers</a></h4>
<h4><a name="api:mono_type_get_name">mono_type_get_name</a></h4>
<h4><a name="api:mono_type_get_signature">mono_type_get_signature</a></h4>
<h4><a name="api:mono_type_get_type">mono_type_get_type</a></h4>
<h4><a name="api:mono_type_get_underlying_type">mono_type_get_underlying_type</a></h4>
<h4><a name="api:mono_type_initialization_init">mono_type_initialization_init</a></h4>
<h4><a name="api:mono_type_is_byref">mono_type_is_byref</a></h4>
<h4><a name="api:mono_type_native_stack_size">mono_type_native_stack_size</a></h4>
<h4><a name="api:mono_type_size">mono_type_size</a></h4>
<h4><a name="api:mono_type_stack_size">mono_type_stack_size</a></h4>
<h4><a name="api:mono_type_to_ldind">mono_type_to_ldind</a></h4>
<h4><a name="api:mono_type_to_stind">mono_type_to_stind</a></h4>
<h4><a name="api:mono_type_to_unmanaged">mono_type_to_unmanaged</a></h4>
<h4><a name="api:mono_type_get_name_full">mono_type_get_name_full</a></h4>
<h4><a name="api:mono_type_generic_inst_is_valuetype">mono_type_generic_inst_is_valuetype</a></h4>
<h4><a name="api:mono_type_generic_inst_is_valuetype">mono_type_generic_inst_is_valuetype</a></h4>
-21
View File
@@ -1,51 +1,32 @@
<h4><a name="api:mini_compile_generic_method">mini_compile_generic_method</a></h4>
<h4><a name="api:mono_alloc_special_static_data">mono_alloc_special_static_data</a></h4>
<h4><a name="api:mono_bounded_array_class_get">mono_bounded_array_class_get</a></h4>
<h4><a name="api:mono_check_corlib_version">mono_check_corlib_version</a></h4>
<h4><a name="api:mono_compile_method">mono_compile_method</a></h4>
<h4><a name="api:mono_config_for_assembly">mono_config_for_assembly</a></h4>
<h4><a name="api:mono_create_icall_signature">mono_create_icall_signature</a></h4>
<h4><a name="api:mono_create_jit_trampoline">mono_create_jit_trampoline</a></h4>
<h4><a name="api:mono_create_jump_table">mono_create_jump_table</a></h4>
<h4><a name="api:mono_create_jump_trampoline">mono_create_jump_trampoline</a></h4>
<h4><a name="api:mono_dllmap_insert">mono_dllmap_insert</a></h4>
<h4><a name="api:mono_environment_exitcode_get">mono_environment_exitcode_get</a></h4>
<h4><a name="api:mono_environment_exitcode_set">mono_environment_exitcode_set</a></h4>
<h4><a name="api:mono_find_method_by_name">mono_find_method_by_name</a></h4>
<h4><a name="api:mono_free_method">mono_free_method</a></h4>
<h4><a name="api:mono_free_verify_list">mono_free_verify_list</a></h4>
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
<h4><a name="api:mono_get_constant_value_from_blob">mono_get_constant_value_from_blob</a></h4>
<h4><a name="api:mono_get_corlib">mono_get_corlib</a></h4>
<h4><a name="api:mono_get_delegate_invoke">mono_get_delegate_invoke</a></h4>
<h4><a name="api:mono_get_framework_version">mono_get_framework_version</a></h4>
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
<h4><a name="api:mono_get_root_domain">mono_get_root_domain</a></h4>
<h4><a name="api:mono_get_runtime_version">mono_get_runtime_version</a></h4>
<h4><a name="api:mono_get_special_static_data">mono_get_special_static_data</a></h4>
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
<h4><a name="api:mono_init">mono_init</a></h4>
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
<h4><a name="api:mono_invoke_delegate">mono_invoke_delegate</a></h4>
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
<h4><a name="api:mono_lookup_internal_call">mono_lookup_internal_call</a></h4>
<h4><a name="api:mono_lookup_pinvoke_call">mono_lookup_pinvoke_call</a></h4>
<h4><a name="api:mono_main">mono_main</a></h4>
<h4><a name="api:mono_message_init">mono_message_init</a></h4>
<h4><a name="api:mono_message_invoke">mono_message_invoke</a></h4>
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
<h4><a name="api:mono_perform_abc_removal">mono_perform_abc_removal</a></h4>
<h4><a name="api:mono_ptr_class_get">mono_ptr_class_get</a></h4>
<h4><a name="api:mono_register_bundled_assemblies">mono_register_bundled_assemblies</a></h4>
<h4><a name="api:mono_release_type_locks">mono_release_type_locks</a></h4>
<h4><a name="api:mono_remote_class">mono_remote_class</a></h4>
<h4><a name="api:mono_remote_class_vtable">mono_remote_class_vtable</a></h4>
<h4><a name="api:mono_runtime_class_init">mono_runtime_class_init</a></h4>
<h4><a name="api:mono_runtime_cleanup">mono_runtime_cleanup</a></h4>
<h4><a name="api:mono_runtime_free_method">mono_runtime_free_method</a></h4>
<h4><a name="api:mono_runtime_get_main_args">mono_runtime_get_main_args</a></h4>
<h4><a name="api:mono_runtime_init">mono_runtime_init</a></h4>
<h4><a name="api:mono_runtime_is_shutting_down">mono_runtime_is_shutting_down</a></h4>
@@ -53,8 +34,6 @@
<h4><a name="api:mono_runtime_quit">mono_runtime_quit</a></h4>
<h4><a name="api:mono_runtime_run_main">mono_runtime_run_main</a></h4>
<h4><a name="api:mono_table_info_get_rows">mono_table_info_get_rows</a></h4>
<h4><a name="api:mono_upgrade_remote_class">mono_upgrade_remote_class</a></h4>
<h4><a name="api:mono_upgrade_remote_class_wrapper">mono_upgrade_remote_class_wrapper</a></h4>
<h4><a name="api:mono_verify_corlib">mono_verify_corlib</a></h4>
<h4><a name="api:mono_vtable_get_static_field_data">mono_vtable_get_static_field_data</a></h4>
<h4><a name="api:mono_wait_handle_new">mono_wait_handle_new</a></h4>
-14
View File
@@ -56,18 +56,6 @@
<h4><a name="api:mono_g_hash_table_size">mono_g_hash_table_size</a></h4>
<h4><a name="api:mono_g_hash_table_steal">mono_g_hash_table_steal</a></h4>
<h3>Raw buffer</h3>
<p>Raw buffers provide an abstraction to load segments of
files into memory. If the operating system supports it, the
files are not loaded, but are mapped into the address space of
the process (On Unix, this is done using the <tt>mmap(2)</tt>
system call).
<h4><a name="api:mono_raw_buffer_load">mono_raw_buffer_load</a></h4>
<h4><a name="api:mono_raw_buffer_update">mono_raw_buffer_update</a></h4>
<h4><a name="api:mono_raw_buffer_free">mono_raw_buffer_free</a></h4>
<h3>SHA1 Signatures</h3>
<h4><a name="api:mono_sha1_init">mono_sha1_init</a></h4>
@@ -116,7 +104,6 @@
<h3>JIT utilities</h3>
<h4><a name="api:mono_is_power_of_two">mono_is_power_of_two</a></h4>
<h4><a name="api:mono_signbit_double">mono_signbit_double</a></h4>
<h4><a name="api:mono_signbit_float">mono_signbit_float</a></h4>
@@ -126,7 +113,6 @@
<h4><a name="api:mono_disasm_code">mono_disasm_code</a></h4>
<h4><a name="api:mono_disasm_code_one">mono_disasm_code_one</a></h4>
<h4><a name="api:mono_disassemble_code">mono_disassemble_code</a></h4>
<h3>Walking the Stack</h3>
+99 -66
View File
@@ -6,106 +6,139 @@
<p>On Windows, Mono uses directly the services provided by the
operating system. On other operating system it uses its own
implementation (referred to as the "io-layer" or "wapi").
<h4><a name="api:GetThreadContext">GetThreadContext</a></h4>
<h4><a name="api:DeleteCriticalSection">DeleteCriticalSection</a></h4>
<h4><a name="api:EnterCriticalSection">EnterCriticalSection</a></h4>
<h4><a name="api:InitializeCriticalSection">InitializeCriticalSection</a></h4>
<h4><a name="api:InitializeCriticalSectionAndSpinCount">InitializeCriticalSectionAndSpinCount</a></h4>
<h4><a name="api:LeaveCriticalSection">LeaveCriticalSection</a></h4>
<h4><a name="api:SetCriticalSectionSpinCount">SetCriticalSectionSpinCount</a></h4>
<h4><a name="api:TryEnterCriticalSection">TryEnterCriticalSection</a></h4>
<h4><a name="api:errno_to_WSA">errno_to_WSA</a></h4>
<h4><a name="api:GetLastError">GetLastError</a></h4>
<h4><a name="api:SetLastError">SetLastError</a></h4>
<h4><a name="api:CreateEvent">CreateEvent</a></h4>
<h4><a name="api:PulseEvent">PulseEvent</a></h4>
<h4><a name="api:ResetEvent">ResetEvent</a></h4>
<h4><a name="api:SetEvent">SetEvent</a></h4>
<h3>Windows Compatibility API</h3>
<h4><a name="api:BindIoCompletionCallback">BindIoCompletionCallback</a></h4>
<h4><a name="api:CloseHandle">CloseHandle</a></h4>
<h4><a name="api:closesocket">closesocket</a></h4>
<h4><a name="api:CopyFile">CopyFile</a></h4>
<h4><a name="api:CreateDirectory">CreateDirectory</a></h4>
<h4><a name="api:CreateEvent">CreateEvent</a></h4>
<h4><a name="api:CreateFile">CreateFile</a></h4>
<h4><a name="api:CreateMutex">CreateMutex</a></h4>
<h4><a name="api:CreatePipe">CreatePipe</a></h4>
<h4><a name="api:CreateProcess">CreateProcess</a></h4>
<h4><a name="api:CreateProcessWithLogonW">CreateProcessWithLogonW</a>
<h4><a name="api:CreateSemaphore">CreateSemaphore</a></h4>
<h4><a name="api:CreateThread">CreateThread</a></h4>
<h4><a name="api:DeleteCriticalSection">DeleteCriticalSection</a></h4>
<h4><a name="api:DeleteFile">DeleteFile</a></h4>
<h4><a name="api:DuplicateHandle">DuplicateHandle</a>
<h4><a name="api:EnterCriticalSection">EnterCriticalSection</a></h4>
<h4><a name="api:EnumProcesses">EnumProcesses</a></h4>
<h4><a name="api:EnumProcessModules">EnumProcessModules</a></h4>
<h4><a name="api:errno_to_WSA">errno_to_WSA</a></h4>
<h4><a name="api:ExitThread">ExitThread</a></h4>
<h4><a name="api:FileTimeToSystemTime">FileTimeToSystemTime</a></h4>
<h4><a name="api:FindClose">FindClose</a></h4>
<h4><a name="api:FindFirstFile">FindFirstFile</a></h4>
<h4><a name="api:FindNextFile">FindNextFile</a></h4>
<h4><a name="api:FlushFileBuffers">FlushFileBuffers</a></h4>
<h4><a name="api:FormatMessage">FormatMessage</a>
<h4><a name="api:GetCurrentDirectory">GetCurrentDirectory</a></h4>
<h4><a name="api:GetFileAttributes">GetFileAttributes</a></h4>
<h4><a name="api:GetCurrentProcess">GetCurrentProcess</a></h4>
<h4><a name="api:GetCurrentProcessId">GetCurrentProcessId</a></h4>
<h4><a name="api:GetCurrentThread">GetCurrentThread</a></h4>
<h4><a name="api:GetCurrentThreadId">GetCurrentThreadId</a></h4>
<h4><a name="api:GetDiskFreeSpaceEx">GetDiskFreeSpaceEx</a>
<h4><a name="api:GetDriveType">GetDriveType</a>
<h4><a name="api:GetExitCodeProcess">GetExitCodeProcess</a></h4>
<h4><a name="api:GetExitCodeThread">GetExitCodeThread</a></h4>
<h4><a name="api:GetFileAttributesEx">GetFileAttributesEx</a></h4>
<h4><a name="api:GetFileAttributes">GetFileAttributes</a></h4>
<h4><a name="api:GetFileSize">GetFileSize</a></h4>
<h4><a name="api:GetFileTime">GetFileTime</a></h4>
<h4><a name="api:GetFileType">GetFileType</a></h4>
<h4><a name="api:GetFileVersionInfo">GetFileVersionInfo</a>
<h4><a name="api:GetFileVersionInfoSize">GetFileVersionInfoSize</a>
<h4><a name="api:GetLastError">GetLastError</a></h4>
<h4><a name="api:GetLogicalDriveStrings">GetLogicalDriveStrings</a></h4>
<h4><a name="api:GetModuleBaseName">GetModuleBaseName</a></h4>
<h4><a name="api:GetModuleFileNameEx">GetModuleFileNameEx</a>
<h4><a name="api:GetModuleInformation">GetModuleInformation</a>
<h4><a name="api:GetPriorityClass">GetPriorityClass</a>
<h4><a name="api:GetProcessId">GetProcessId</a></h4>
<h4><a name="api:GetProcessTimes">GetProcessTimes</a></h4>
<h4><a name="api:GetProcessWorkingSetSize">GetProcessWorkingSetSize</a></h4>
<h4><a name="api:GetStdHandle">GetStdHandle</a></h4>
<h4><a name="api:GetSystemInfo">GetSystemInfo</a></h4>
<h4><a name="api:GetTempPath">GetTempPath</a></h4>
<h4><a name="api:GetThreadContext">GetThreadContext</a></h4>
<h4><a name="api:GetTickCount">GetTickCount</a></h4>
<h4><a name="api:ImpersonateLoggedOnUser">ImpersonateLoggedOnUser</a></h4>
<h4><a name="api:InitializeCriticalSectionAndSpinCount">InitializeCriticalSectionAndSpinCount</a></h4>
<h4><a name="api:InitializeCriticalSection">InitializeCriticalSection</a></h4>
<h4><a name="api:ioctlsocket">ioctlsocket</a></h4>
<h4><a name="api:LeaveCriticalSection">LeaveCriticalSection</a></h4>
<h4><a name="api:LockFile">LockFile</a></h4>
<h4><a name="api:MoveFile">MoveFile</a></h4>
<h4><a name="api:OpenEvent">OpenEvent</a></h4>
<h4><a name="api:OpenMutex">OpenMutex</a></h4>
<h4><a name="api:OpenProcess">OpenProcess</a></h4>
<h4><a name="api:OpenSemaphore">OpenSemaphore</a></h4>
<h4><a name="api:OpenThread">OpenThread</a></h4>
<h4><a name="api:PulseEvent">PulseEvent</a></h4>
<h4><a name="api:QueryPerformanceCounter">QueryPerformanceCounter</a></h4>
<h4><a name="api:QueryPerformanceFrequency">QueryPerformanceFrequency</a></h4>
<h4><a name="api:QueueUserAPC">QueueUserAPC</a></h4>
<h4><a name="api:ReadFile">ReadFile</a></h4>
<h4><a name="api:ReleaseMutex">ReleaseMutex</a></h4>
<h4><a name="api:ReleaseSemaphore">ReleaseSemaphore</a></h4>
<h4><a name="api:RemoveDirectory">RemoveDirectory</a></h4>
<h4><a name="api:ReplaceFile">ReplaceFile</a>
<h4><a name="api:ResetEvent">ResetEvent</a></h4>
<h4><a name="api:ResumeThread">ResumeThread</a></h4>
<h4><a name="api:RevertToSelf">RevertToSelf</a></h4>
<h4><a name="api:SetCriticalSectionSpinCount">SetCriticalSectionSpinCount</a></h4>
<h4><a name="api:SetCurrentDirectory">SetCurrentDirectory</a></h4>
<h4><a name="api:SetEndOfFile">SetEndOfFile</a></h4>
<h4><a name="api:SetEvent">SetEvent</a></h4>
<h4><a name="api:SetFileAttributes">SetFileAttributes</a></h4>
<h4><a name="api:SetFilePointer">SetFilePointer</a></h4>
<h4><a name="api:SetFileTime">SetFileTime</a></h4>
<h4><a name="api:UnlockFile">UnlockFile</a></h4>
<h4><a name="api:WriteFile">WriteFile</a></h4>
<h4><a name="api:mono_once">mono_once</a></h4>
<h4><a name="api:CreateMutex">CreateMutex</a></h4>
<h4><a name="api:ReleaseMutex">ReleaseMutex</a></h4>
<h4><a name="api:CreateProcess">CreateProcess</a></h4>
<h4><a name="api:EnumProcesses">EnumProcesses</a></h4>
<h4><a name="api:EnumProcessModules">EnumProcessModules</a></h4>
<h4><a name="api:GetCurrentProcess">GetCurrentProcess</a></h4>
<h4><a name="api:GetCurrentProcessId">GetCurrentProcessId</a></h4>
<h4><a name="api:GetExitCodeProcess">GetExitCodeProcess</a></h4>
<h4><a name="api:GetModuleBaseName">GetModuleBaseName</a></h4>
<h4><a name="api:GetProcessTimes">GetProcessTimes</a></h4>
<h4><a name="api:GetProcessWorkingSetSize">GetProcessWorkingSetSize</a></h4>
<h4><a name="api:OpenProcess">OpenProcess</a></h4>
<h4><a name="api:SetLastError">SetLastError</a></h4>
<h4><a name="api:SetPriorityClass">SetPriorityClass</a>
<h4><a name="api:SetProcessWorkingSetSize">SetProcessWorkingSetSize</a></h4>
<h4><a name="api:TerminateProcess">TerminateProcess</a></h4>
<h4><a name="api:ImpersonateLoggedOnUser">ImpersonateLoggedOnUser</a></h4>
<h4><a name="api:RevertToSelf">RevertToSelf</a></h4>
<h4><a name="api:CreateSemaphore">CreateSemaphore</a></h4>
<h4><a name="api:ReleaseSemaphore">ReleaseSemaphore</a></h4>
<h4><a name="api:closesocket">closesocket</a></h4>
<h4><a name="api:ioctlsocket">ioctlsocket</a></h4>
<h4><a name="api:WSACleanup">WSACleanup</a></h4>
<h4><a name="api:WSAGetLastError">WSAGetLastError</a></h4>
<h4><a name="api:WSAIoctl">WSAIoctl</a></h4>
<h4><a name="api:WSASetLastError">WSASetLastError</a></h4>
<h4><a name="api:WSAStartup">WSAStartup</a></h4>
<h4><a name="api:GetSystemInfo">GetSystemInfo</a></h4>
<h4><a name="api:BindIoCompletionCallback">BindIoCompletionCallback</a></h4>
<h4><a name="api:CreateThread">CreateThread</a></h4>
<h4><a name="api:ExitThread">ExitThread</a></h4>
<h4><a name="api:GetCurrentThread">GetCurrentThread</a></h4>
<h4><a name="api:GetCurrentThreadId">GetCurrentThreadId</a></h4>
<h4><a name="api:GetExitCodeThread">GetExitCodeThread</a></h4>
<h4><a name="api:OpenThread">OpenThread</a></h4>
<h4><a name="api:QueueUserAPC">QueueUserAPC</a></h4>
<h4><a name="api:ResumeThread">ResumeThread</a></h4>
<h4><a name="api:Sleep">Sleep</a></h4>
<h4><a name="api:ShellExecuteEx">ShellExecuteEx</a></h4>
<h4><a name="api:SignalObjectAndWait">SignalObjectAndWait</a></h4>
<h4><a name="api:SleepEx">SleepEx</a></h4>
<h4><a name="api:Sleep">Sleep</a></h4>
<h4><a name="api:SuspendThread">SuspendThread</a></h4>
<h4><a name="api:TerminateProcess">TerminateProcess</a></h4>
<h4><a name="api:TlsAlloc">TlsAlloc</a></h4>
<h4><a name="api:TlsFree">TlsFree</a></h4>
<h4><a name="api:TlsGetValue">TlsGetValue</a></h4>
<h4><a name="api:TlsSetValue">TlsSetValue</a></h4>
<h4><a name="api:GetTickCount">GetTickCount</a></h4>
<h4><a name="api:QueryPerformanceCounter">QueryPerformanceCounter</a></h4>
<h4><a name="api:QueryPerformanceFrequency">QueryPerformanceFrequency</a></h4>
<h4><a name="api:SignalObjectAndWait">SignalObjectAndWait</a></h4>
<h4><a name="api:WaitForMultipleObjects">WaitForMultipleObjects</a></h4>
<h4><a name="api:TransmitFile">TransmitFile</a>
<h4><a name="api:TryEnterCriticalSection">TryEnterCriticalSection</a></h4>
<h4><a name="api:UnlockFile">UnlockFile</a></h4>
<h4><a name="api:VerLanguageName">VerLanguageName</a>
<h4><a name="api:VerQueryValue">VerQueryValue</a>
<h4><a name="api:WaitForInputIdle">WaitForInputIdle</a>
<h4><a name="api:WaitForMultipleObjectsEx">WaitForMultipleObjectsEx</a></h4>
<h4><a name="api:WaitForSingleObject">WaitForSingleObject</a></h4>
<h4><a name="api:WaitForMultipleObjects">WaitForMultipleObjects</a></h4>
<h4><a name="api:WaitForSingleObjectEx">WaitForSingleObjectEx</a></h4>
<h4><a name="api:OpenEvent">OpenEvent</a></h4>
<h4><a name="api:OpenMutex">OpenMutex</a></h4>
<h4><a name="api:GetProcessId">GetProcessId</a></h4>
<h4><a name="api:ShellExecuteEx">ShellExecuteEx</a></h4>
<h4><a name="api:OpenSemaphore">OpenSemaphore</a></h4>
<h4><a name="api:WaitForSingleObject">WaitForSingleObject</a></h4>
<h4><a name="api:WriteFile">WriteFile</a></h4>
<h4><a name="api:WSACleanup">WSACleanup</a></h4>
<h4><a name="api:WSAGetLastError">WSAGetLastError</a></h4>
<h4><a name="api:WSAIoctl">WSAIoctl</a></h4>
<h4><a name="api:WSARecv">WSARecv</a></h4>
<h4><a name="api:WSASend">WSASend</a></h4>
<h4><a name="api:WSASetLastError">WSASetLastError</a></h4>
<h4><a name="api:WSAStartup">WSAStartup</a></h4>
<h3>Extended APIs</h3>
<p>The extended APIs provide access to a few internals of the
WAPI stack that are not exposed through the standard Win32
APIs.
<h4><a name="api:mono_once">mono_once</a></h4>
<h4><a name="api:wapi_clear_interruption">wapi_clear_interruption</a>
<h4><a name="api:wapi_current_thread_desc">wapi_current_thread_desc</a>
<h4><a name="api:wapi_interrupt_thread">wapi_interrupt_thread</a>
<h4><a name="api:wapi_self_interrupt">wapi_self_interrupt</a>
<h4><a name="api:wapi_thread_clear_wait_handle">wapi_thread_clear_wait_handle</a>
<h4><a name="api:wapi_thread_set_wait_handle">wapi_thread_set_wait_handle</a>
+1 -1
View File
@@ -64,7 +64,6 @@ MoveFile
OpenEvent
OpenMutex
OpenProcess
open_process_map
OpenSemaphore
OpenThread
PulseEvent
@@ -112,6 +111,7 @@ WaitForSingleObjectEx
wapi_clear_interruption
wapi_current_thread_desc
wapi_interrupt_thread
wapi_self_interrupt
wapi_thread_clear_wait_handle
wapi_thread_set_wait_handle
WriteFile
Loaded 100 of 10747 files, more files were not shown because too many files have changed in this diff. Show more