Compare commits

...
3422 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
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
6723 changed files with 421861 additions and 119306 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.
+261
View File
@@ -1,3 +1,264 @@
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
+5
View File
@@ -61,6 +61,11 @@ For comments, corrections and updates, please contact [email protected]
by third party projects, follows the same spirit than the
Boehm GC.
** mono/arch/*/XXX-codegen.h
This are C macros that are useful when generating native
code on various platforms. This code is MIT X11 licensed.
** mcs/mcs, mcs/gmcs
The C# Compilers (1.0 and 2.0)
+40 -40
View File
@@ -1,16 +1,18 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib mono $(ikvm_native_dir) data
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
else
if MOONLIGHT
SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples web tools msvc docs
@@ -22,20 +24,21 @@ EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LIC
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
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)
@@ -44,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
@@ -98,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 {} \;
+31 -10
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.
@@ -278,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'.
@@ -408,6 +413,7 @@ This is Mono.
optimizations.
--enable-llvm
--enable-loadedllvm
This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
@@ -418,7 +424,11 @@ This is Mono.
full details and up-to-date information on this feature.
You will need to have an LLVM built that Mono can link
against
against,
The --enable-loadedllvm variant will make the llvm backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
--enable-big-arrays
@@ -463,6 +473,15 @@ This is Mono.
There are a number of runtime options to control this
also, see the man page.
--enable-nacl
This configures the Mono compiler to generate code
suitable to be used by Google's Native Client:
http://code.google.com/p/nativeclient/
Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
2. Using Mono
=============
@@ -547,3 +566,5 @@ This is Mono.
directory is automatically configured to share the
same prefix than this module gets.
+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 moonlight 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
+249 -154
View File
@@ -6,7 +6,7 @@ AC_CANONICAL_SYSTEM
m4_ifdef([_A][M_PROG_TAR],[_A][M_SET_OPTION([tar-ustar])])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(mono,2.7)
AM_INIT_AUTOMAKE(mono,2.8)
AM_MAINTAINER_MODE
API_VER=2.0
@@ -26,6 +26,7 @@ dnl
gc_headers=no
gc=included
gc_msg="included Boehm"
use_included_gc=no
libgc_configure_args=
@@ -66,6 +67,7 @@ AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
has_dtrace=no
parallel_mark=yes
ikvm_native=yes
case "$host" in
powerpc*-*-linux*)
@@ -77,7 +79,7 @@ esac
host_win32=no
target_win32=no
case "$host" in
*-*-mingw*|*-*-cygwin*)
*-mingw*|*-*-cygwin*)
AC_DEFINE(HOST_WIN32,1,[Host Platform is Win32])
AC_DEFINE(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
AC_DEFINE(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
@@ -92,11 +94,15 @@ case "$host" in
# So libgc configure gets -mno-cygwin
export CC
export CXX
else
target_win32=yes
AC_DEFINE(TARGET_WIN32,1,[Target OS is Win32/MinGW])
AC_DEFINE(MINGW_CROSS_COMPILE,1,[Cross-compiling using MinGW])
fi
HOST_CC="gcc"
# Windows 2000 is required that includes Internet Explorer 5.01
CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
LDFLAGS="$LDFLAGS -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm"
LDFLAGS="$LDFLAGS -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32"
libmono_cflags="-mno-cygwin -mms-bitfields -mwindows"
libmono_ldflags="-mno-cygwin -mms-bitfields -mwindows"
libdl=
@@ -151,17 +157,18 @@ case "$host" in
;;
*-*-*openbsd*)
host_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS -DPLATFORM_BSD -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_THREAD_SAFE -D_REENTRANT"
LDFLAGS="$LDFLAGS -pthread"
libmono_ldflags="-pthread"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
libdl=
gc_default=boehm
libgc_threads=pthreads
with_sigaltstack=no
use_sigposix=yes
;;
*-*-linux*)
@@ -171,12 +178,26 @@ case "$host" in
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libmono_ldflags="-lpthread"
libdl="-ldl"
libgc_threads=pthreads
AOT_SUPPORTED="yes"
use_sigposix=yes
;;
*-*-nacl*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libdl=
libgc_threads=pthreads
AOT_SUPPORTED="yes"
gc_default=boehm
use_sigposix=yes
ikvm_native=no
AC_DEFINE(DISABLE_SOCKETS,1,[Disable sockets support])
;;
*-*-hpux*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
@@ -231,18 +252,6 @@ case "$host" in
dnl its gcc defaults to 64-bit mode. They have also deprecated the usage of ucontext
dnl we need to set some flags to build our 32-bit binaries on 10.6 properly
case "$host" in
dnl MacPorts config.guess reports as this
x86_64-*-darwin10*)
BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
CPPFLAGS="$CPPFLAGS $BROKEN_DARWIN_FLAGS"
CFLAGS="$CFLAGS $BROKEN_DARWIN_FLAGS"
CXXFLAGS="$CXXFLAGS $BROKEN_DARWIN_FLAGS"
CCASFLAGS="$CCASFLAGS $BROKEN_DARWIN_FLAGS"
CPPFLAGS_FOR_LIBGC="$CPPFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC $BROKEN_DARWIN_FLAGS"
CPPFLAGS_FOR_EGLIB="$CPPFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB $BROKEN_DARWIN_FLAGS"
;;
dnl Snow Leopard config.guess reports as this
i*86-*-darwin10*)
BROKEN_DARWIN_FLAGS="-arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5"
@@ -357,9 +366,15 @@ fi
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h)
AC_CHECK_HEADERS(sys/user.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h)
AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h)
AC_CHECK_HEADERS(sys/user.h, [], [],
[
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
])
AC_CHECK_HEADER(zlib.h, [have_zlib=yes], [have_zlib=no])
if test x$have_zlib = xyes; then
@@ -447,6 +462,12 @@ else
mcsdir=../mcs
fi
AC_ARG_WITH(mcs-path, [ --with-mcs-path=/path/to/mcs Specify an alternate mcs source tree],
if test x$with_mcs_path != "x" -a -d $with_mcs_path ; then
mcsdir=$with_mcs_path
fi
)
#
# A sanity check to catch cases where the package was unpacked
# with an ancient tar program (Solaris)
@@ -457,7 +478,7 @@ AC_ARG_ENABLE(solaris-tar-check,
if test x"$do_solaris_tar_check" = xyes -a x"$enable_solaris_tar_check" = xyes; then
AC_MSG_CHECKING(integrity of package)
if test -f $srcdir/$mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
if test -f $mcsdir/class/System.Runtime.Serialization.Formatters.Soap/System.Runtime.Serialization.Formatters.Soap/SoapTypeMapper.cs
then
AC_MSG_RESULT(ok)
else
@@ -466,8 +487,23 @@ if test x"$do_solaris_tar_check" = xyes -a x"$enable_solaris_tar_check" = xyes;
fi
fi
mcs_topdir='$(top_srcdir)/'$mcsdir
mcs_topdir_from_srcdir='$(top_builddir)/'$mcsdir
if test "x$with_mcs_path" != "x"; then
mcs_topdir=$(cd "$mcsdir" && pwd)
mcs_topdir_from_srcdir=$mcs_topdir
else
mcs_topdir=$(cd "$srcdir/$mcsdir" && pwd)
mcs_topdir_from_srcdir='$(top_builddir)'/$mcsdir
fi
# Convert mcs_topdir* paths to Windows syntax.
if test x$cross_compiling$host_win32 = xnoyes; then
mcs_topdir=$(cygpath -m $mcs_topdir)
case $mcs_topdir_from_srcdir in
/cygdrive/*)
mcs_topdir_from_srcdir=$(cygpath -m $mcs_topdir_from_srcdir)
;;
esac
fi
## Maybe should also disable if mcsdir is invalid. Let's punt the issue for now.
AM_CONDITIONAL(BUILD_MCS, [test x$cross_compiling = xno && test x$enable_mcs_build != xno])
@@ -511,9 +547,6 @@ esac
AC_SUBST([libgdiplus_loc])
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
@@ -529,10 +562,8 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
)
AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to system)],
[], [with_glib=system])
eglib_dir=
[ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
[], [with_glib=embedded])
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
@@ -545,39 +576,13 @@ embedded)
BUILD_GLIB_LIBS="$GLIB_LIBS"
GMODULE_CFLAGS="$GLIB_CFLAGS"
GMODULE_LIBS="$GLIB_LIBS"
eglib_dir=eglib
;;
system)
if test "x$cross_compiling" = "xyes"; then
pkg_config_path="$PKG_CONFIG_PATH"
unset PKG_CONFIG_PATH
fi
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
if test "x$cross_compiling" = "xyes"; then
PKG_CONFIG_PATH=$pkg_config_path
export PKG_CONFIG_PATH
fi
## Versions of dependencies
GLIB_REQUIRED_VERSION=2.4.0
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
else
AC_MSG_ERROR([You need at least glib-2.0 $GLIB_REQUIRED_VERSION])
fi
AC_MSG_ERROR([--with-glib=system is no longer supported as of Mono 2.8])
;;
*)
AC_MSG_ERROR([Invalid argument to --with-glib.])
esac
AM_CONDITIONAL(EGLIB_BUILD, test x$with_glib = xembedded)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
@@ -585,7 +590,6 @@ AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
AC_SUBST(BUILD_GLIB_CFLAGS)
AC_SUBST(BUILD_GLIB_LIBS)
AC_SUBST(eglib_dir)
if test x$cross_compiling$host_win32 = xnoyes; then
AC_MSG_CHECKING(for cygwin glib2-dev package)
@@ -608,7 +612,7 @@ if test x$cross_compiling$host_win32 = xnoyes; then
AC_MSG_RESULT(ok)
fi
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Defaults to included],[gc=$with_gc],[gc=$gc_default])
AC_ARG_WITH(gc, [ --with-gc=boehm,included,none Controls the Boehm GC config, default=included],[gc=$with_gc],[gc=$gc_default])
# Enable support for fast thread-local storage
# Some systems have broken support, so we allow to disable it.
@@ -668,7 +672,7 @@ DISABLED_FEATURES=none
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd,soft_debug.],
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, normalization.],
[
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
eval "mono_feature_disable_$feature='yes'"
@@ -783,6 +787,11 @@ if test "x$mono_feature_disable_soft_debug" = "xyes"; then
AC_MSG_NOTICE([Disabled Soft Debugger.])
fi
if test "x$mono_feature_disable_normalization" = "xyes"; then
AC_DEFINE(DISABLE_NORMALIZATION, 1, [Disable String normalization support.])
AC_MSG_NOTICE([Disabled String normalization support.])
fi
AC_MSG_CHECKING(for visibility __attribute__)
AC_TRY_COMPILE([], [
void __attribute__ ((visibility ("hidden"))) doit (void) {}
@@ -814,6 +823,9 @@ if test x$enable_parallel_mark = xyes; then
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
fi
dnl
dnl Boehm GC configuration
dnl
LIBGC_CFLAGS=
LIBGC_LIBS=
LIBGC_STATIC_LIBS=
@@ -830,28 +842,28 @@ case "x$gc" in
AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
fi
AC_DEFINE(HAVE_BOEHM_GC, 1, [Have Boehm GC])
AC_SUBST(HAVE_BOEHM_GC)
LIBGC_LIBS="-lgc $libdl"
LIBGC_STATIC_LIBS="$LIBGC_LIBS"
libmono_ldflags="$libmono_ldflags -lgc"
BOEHM_DEFINES="-DHAVE_BOEHM_GC"
# AC_CHECK_FUNCS does not work for some reason...
AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
if test "x$found_gcj_malloc" = "xyes"; then
AC_DEFINE(HAVE_GC_GCJ_MALLOC, 1, [Have GC_gcj_malloc])
AC_DEFINE_UNQUOTED(USED_GC_NAME, "System Boehm (with typed GC)", [GC description])
BOEHM_DEFINES="-DHAVE_GC_GCJ_MALLOC $BOEHM_DEFINES"
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "System Boehm (with typed GC)", [GC description])
gc_msg="System Boehm with typed GC"
else
AC_DEFINE_UNQUOTED(USED_GC_NAME, "System Boehm (no typed GC)", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "System Boehm (no typed GC)", [GC description])
gc_msg="System Boehm (without typed GC)"
fi
AC_CHECK_LIB(gc, GC_enable, found_gc_enable="yes",,$libdl)
if test "x$found_gc_enable" = "xyes"; then
AC_DEFINE(HAVE_GC_ENABLE, 1, [Have 'GC_enable'])
BOEHM_DEFINES="-DHAVE_GC_ENABLE $BOEHM_DEFINES"
fi
;;
xincluded)
found_boehm=yes
gc_headers=yes
use_included_gc=yes
libgc_dir=libgc
@@ -859,35 +871,24 @@ case "x$gc" in
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
AC_DEFINE(HAVE_BOEHM_GC, 1, [Have Boehm GC])
AC_SUBST(HAVE_BOEHM_GC)
BOEHM_DEFINES="-DHAVE_BOEHM_GC -DHAVE_GC_H -DUSE_INCLUDED_LIBGC -DHAVE_GC_GCJ_MALLOC -DHAVE_GC_ENABLE"
AC_DEFINE(HAVE_GC_H, 1, [Have gc.h])
AC_DEFINE(USE_INCLUDED_LIBGC, 1, [Use included libgc])
# The included libgc contains GCJ support
AC_DEFINE(HAVE_GC_GCJ_MALLOC, 1, [Have GC_gcj_malloc])
AC_DEFINE(HAVE_GC_ENABLE, 1, [Have GC_enable])
gc_msg="bundled Boehm GC with typed GC"
if test x$enable_parallel_mark = xyes; then
AC_DEFINE_UNQUOTED(USED_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
gc_msg="$gc_msg and parallel mark"
else
AC_DEFINE_UNQUOTED(USED_GC_NAME, "Included Boehm (with typed GC)", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC)", [GC description])
fi
;;
xsgen)
found_boehm=no
gc_headers=no
use_included_gc=no
AC_DEFINE(HAVE_SGEN_GC,1,[Using the simple generational GC.])
AC_DEFINE(HAVE_MOVING_COLLECTOR,1,[The GC can move objects.])
AC_DEFINE(HAVE_WRITE_BARRIERS,1,[The GC needs write barriers.])
AC_DEFINE_UNQUOTED(USED_GC_NAME, "Simple generational", [GC description])
AC_MSG_WARN("Use --with-sgen instead, --with-gc= controls Boehm configuration")
;;
xnone)
AC_MSG_WARN("Compiling mono without GC.")
AC_DEFINE_UNQUOTED(USED_GC_NAME, "none", [GC description])
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
;;
*)
@@ -897,7 +898,6 @@ esac
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
if test "x$large_heap" = "xyes"; then
echo "FOO"
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
fi
@@ -906,6 +906,7 @@ AC_SUBST(LIBGC_CFLAGS)
AC_SUBST(LIBGC_LIBS)
AC_SUBST(LIBGC_STATIC_LIBS)
AC_SUBST(libgc_dir)
AC_SUBST(BOEHM_DEFINES)
dnl
dnl End of libgc checks
@@ -971,7 +972,7 @@ if test x$target_win32 = xno; then
dnl ******************************************************************
dnl *** Checks for the IKVM JNI interface library ***
dnl ******************************************************************
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library (defaults to yes)],[with_ikvm_native=$withval],[with_ikvm_native=yes])
AC_ARG_WITH(ikvm-native, [ --with-ikvm-native=yes,no build the IKVM JNI interface library (defaults to yes)],[with_ikvm_native=$withval],[with_ikvm_native=$ikvm_native])
ikvm_native_dir=
if test x$with_ikvm_native = xyes; then
@@ -998,6 +999,7 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(getpriority)
AC_CHECK_FUNCS(setpriority)
AC_CHECK_FUNCS(dl_iterate_phdr)
AC_CHECK_FUNCS(sysconf)
AC_CHECK_FUNCS(sched_setaffinity)
@@ -1515,12 +1517,12 @@ if test x$target_win32 = xno; then
dnl *********************************
dnl *** Checks for math functions ***
dnl *********************************
LIBS="$LIBS -lm";
AC_SEARCH_LIBS(sqrtf, m)
if test "x$has_broken_apple_cpp" != "xyes"; then
AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
AC_TRY_LINK([#include <math.h>],
[ finite(0.0); ],
AC_DEFINE(HAVE_FINITE, 1, [Have finite]) AC_MSG_RESULT(yes),
AC_DEFINE(HAVE_FINITE, 1, [Have finite in -lm]) AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)))
fi
AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h)
@@ -1562,7 +1564,15 @@ if test x$target_win32 = xno; then
dnl *** Checks for SIOCGIFCONF ***
dnl ******************************
AC_CHECK_HEADERS(sys/ioctl.h)
AC_CHECK_HEADERS(net/if.h)
AC_CHECK_HEADERS(net/if.h, [], [],
[
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
])
AC_MSG_CHECKING(for ifreq)
AC_TRY_COMPILE([
#include <stdio.h>
@@ -1615,6 +1625,7 @@ if test x$target_win32 = xno; then
dnl *** Checks for MonoPosixHelper ***
dnl **********************************
AC_CHECK_HEADERS(checklist.h)
AC_CHECK_HEADERS(pathconf.h)
AC_CHECK_HEADERS(fstab.h)
AC_CHECK_HEADERS(attr/xattr.h)
AC_CHECK_HEADERS(sys/extattr.h)
@@ -1625,14 +1636,22 @@ if test x$target_win32 = xno; then
AC_CHECK_HEADERS(sys/xattr.h)
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_HEADERS(sys/mount.h, [], [],
[
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
])
AC_CHECK_HEADERS(sys/mount.h)
AC_CHECK_FUNCS(confstr)
AC_CHECK_FUNCS(seekdir telldir)
AC_CHECK_FUNCS(getdomainname)
AC_CHECK_FUNCS(setdomainname)
AC_CHECK_FUNCS(fgetgrent)
AC_CHECK_FUNCS(fgetpwent)
AC_CHECK_FUNCS(fgetpwent)
AC_CHECK_FUNCS(endgrent getgrent fgetgrent setgrent)
AC_CHECK_FUNCS(setgroups)
AC_CHECK_FUNCS(endpwent getpwent fgetpwent setpwent)
AC_CHECK_FUNCS(getfsstat)
AC_CHECK_FUNCS(lutimes)
AC_CHECK_FUNCS(lutimes futimes)
AC_CHECK_FUNCS(mremap)
AC_CHECK_FUNCS(remap_file_pages)
AC_CHECK_FUNCS(posix_fadvise)
@@ -1640,7 +1659,8 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(posix_madvise)
AC_CHECK_FUNCS(vsnprintf)
AC_CHECK_FUNCS(sendfile)
AC_CHECK_FUNCS(sethostid)
AC_CHECK_FUNCS(gethostid sethostid)
AC_CHECK_FUNCS(sethostname)
AC_CHECK_FUNCS(statfs)
AC_CHECK_FUNCS(fstatfs)
AC_CHECK_FUNCS(statvfs)
@@ -1648,6 +1668,11 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(stime)
AC_CHECK_FUNCS(strerror_r)
AC_CHECK_FUNCS(ttyname_r)
AC_CHECK_FUNCS(psignal)
AC_CHECK_FUNCS(getlogin_r)
AC_CHECK_FUNCS(lockf)
AC_CHECK_FUNCS(swab)
AC_CHECK_FUNCS(setusershell endusershell)
AC_CHECK_SIZEOF(size_t)
AC_CHECK_TYPES([blksize_t], [AC_DEFINE(HAVE_BLKSIZE_T)], ,
[#include <sys/types.h>
@@ -1683,6 +1708,14 @@ if test x$target_win32 = xno; then
[struct dirent.d_off, struct dirent.d_reclen, struct dirent.d_type],,,
[#include <sys/types.h>
#include <dirent.h>])
AC_CHECK_MEMBERS(
[struct passwd.pw_gecos],,,
[#include <sys/types.h>
#include <pwd.h>])
AC_CHECK_MEMBERS(
[struct statfs.f_flags],,,
[#include <sys/types.h>
#include <sys/vfs.h>])
dnl Favour xattr through glibc, but use libattr if we have to
AC_CHECK_FUNC(lsetxattr, ,
@@ -1775,7 +1808,7 @@ ac_cv_c_socklen_t=yes
AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for array element initalizer support)
AC_MSG_CHECKING(for array element initializer support)
AC_TRY_COMPILE([#include <sys/socket.h>], [
const int array[] = {[1] = 2,};
], [
@@ -1823,7 +1856,7 @@ case "{$target}" in
dnl Win32 does not have /dev/random, they have their own method...
*-*-mingw*|*-*-cygwin*)
*-mingw*|*-*-cygwin*)
ac_cv_have_dev_random=no
;;
@@ -1954,11 +1987,28 @@ fi
AM_CONDITIONAL(ENABLE_DTRACE, [test x$enable_dtrace = xyes])
AM_CONDITIONAL(DTRACE_G_REQUIRED, [test x$dtrace_g = xyes])
dnl **************
dnl *** NaCl ***
dnl **************
AC_ARG_ENABLE(nacl_codegen, [ --enable-nacl-codegen Enable Native Client code generation], enable_nacl_codegen=$enableval, enable_nacl_codegen=no)
AM_CONDITIONAL(NACL_CODEGEN, test x$enable_nacl_codegen != xno)
if test "x$enable_nacl_codegen" = "xyes"; then
MONO_NACL_ALIGN_MASK_OFF=1
CPPFLAGS="$CPPFLAGS -D__native_client_codegen__"
AC_DEFINE(TARGET_NACL, 1, [...])
else
MONO_NACL_ALIGN_MASK_OFF=0
fi
AC_SUBST(MONO_NACL_ALIGN_MASK_OFF)
dnl **************
dnl *** LLVM ***
dnl **************
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the experimental LLVM back-end], enable_llvm=$enableval, enable_llvm=no)
AC_ARG_ENABLE(loadedllvm,[ --enable-loadedllvm Load the LLVM back-end dynamically], enable_llvm=$enableval && enable_loadedllvm=$enableval, enable_loadedllvm=no)
if test "x$enable_llvm" = "xyes"; then
AC_PATH_PROG(LLVM_CONFIG, llvm-config, no)
@@ -1979,9 +2029,14 @@ if test "x$enable_llvm" = "xyes"; then
llvm_version=`$LLVM_CONFIG --version`
major_version=`echo $llvm_version | cut -c 1`
minor_version=`echo $llvm_version | cut -c 3`
if echo $llvm_version | grep -q 'mono'; then
AC_DEFINE(LLVM_MONO_BRANCH, 1, [Whenever we are using the mono branch of LLVM])
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MONO_BRANCH"
fi
AC_DEFINE_UNQUOTED(LLVM_MAJOR_VERSION, $major_version, [Major version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_MINOR_VERSION, $minor_version, [Minor version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_VERSION, "$llvm_version", [Full version of LLVM libraties])
# Have to pass these on the command line since mini-llvm-cpp.h already includes
# llvm's config.h
@@ -1995,6 +2050,10 @@ if test "x$enable_llvm" = "xyes"; then
fi
AM_CONDITIONAL(ENABLE_LLVM, [test x$enable_llvm = xyes])
if test "x$enable_loadedllvm" = "xyes"; then
AC_DEFINE(MONO_LLVM_LOADED, 1, [The LLVM back end is dynamically loaded])
fi
AM_CONDITIONAL(LOADED_LLVM, [test x$enable_loadedllvm = xyes])
TARGET="unknown"
ACCESS_UNALIGNED="yes"
@@ -2011,6 +2070,7 @@ sizeof_register="SIZEOF_VOID_P"
jit_wanted=false
interp_wanted=false
sgen_supported=false
case "$host" in
# mips-sgi-irix5.* | mips-sgi-irix6.*)
# TARGET=MIPS;
@@ -2069,6 +2129,9 @@ case "$host" in
haiku*)
LIBC=libroot.so
;;
linux*|darwin*|openbsd*)
sgen_supported=true
;;
esac
;;
x86_64-*-* | amd64-*-*)
@@ -2076,6 +2139,11 @@ case "$host" in
arch_target=amd64;
JIT_SUPPORTED=yes
jit_wanted=true
case $host_os in
linux*|darwin*|openbsd*)
sgen_supported=true
;;
esac
;;
ia64-*-*)
TARGET=IA64
@@ -2125,7 +2193,7 @@ case "$host" in
INTL="libc.so.6.1"
esac
;;
*-*-mingw*|*-*-cygwin*)
*-mingw*|*-*-cygwin*)
# When this is enabled, it leads to very strange crashes at runtime (gcc-3.4.4)
have_visibility_hidden=no
INTL="intl"
@@ -2158,6 +2226,11 @@ case "$host" in
arch_target=ppc;
JIT_SUPPORTED=yes
jit_wanted=true
case $host_os in
linux*|darwin*)
sgen_supported=true
;;
esac
;;
arm*-darwin*)
TARGET=ARM;
@@ -2166,6 +2239,7 @@ case "$host" in
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -DARM_FPU_NONE=1"
jit_wanted=true
sgen_supported=true
;;
arm*-linux*)
TARGET=ARM;
@@ -2173,6 +2247,7 @@ case "$host" in
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
jit_wanted=true
sgen_supported=true
;;
s390-*-linux*)
TARGET=S390;
@@ -2180,6 +2255,7 @@ case "$host" in
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=yes
jit_wanted=true
sgen_supported=true
# Required CFLAGS for s390[x]. USE_STRING_INLINES is automatic with gcc 4.1
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
;;
@@ -2189,6 +2265,7 @@ case "$host" in
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=yes
jit_wanted=true
sgen_supported=true
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
;;
esac
@@ -2219,7 +2296,7 @@ if test "x$host" != "x$target"; then
target_byte_order=G_BIG_ENDIAN
;;
*)
AC_MSG_ERROR([Cross compiling is only supported for targets matching 'powerpc64-{ps3,xbox360}-linux-gnu'])
AC_MSG_WARN([Cross compiling is only supported for targets matching 'powerpc64-{ps3,xbox360}-linux-gnu'])
esac
fi
@@ -2267,6 +2344,23 @@ if test "x$have_deprecated" = "xyes"; then
AC_DEFINE(HAVE_DEPRECATED, 1, [Support for the deprecated attribute])
fi
dnl
dnl Simple Generational checks (sgen)
dnl
SGEN_DEFINES=
AC_ARG_WITH(sgen, [ --with-sgen=yes,no Extra Generational GC, default=yes],[buildsgen=$with_sgen],[buildsgen=yes])
if test x$buildsgen = xyes; then
if $sgen_supported; then
SGEN_DEFINES="-DHAVE_SGEN_GC -DHAVE_MOVING_COLLECTOR -DHAVE_WRITE_BARRIERS"
gc_msg="sgen and $gc_msg"
else
buildsgen=no
AC_MSG_WARN("Sgen is not supported on this platform")
fi
fi
AC_SUBST(SGEN_DEFINES)
AM_CONDITIONAL(SUPPORT_SGEN, test x$buildsgen = xyes)
AC_ARG_WITH(jit, [ --with-jit=yes,no If you want to build scripts that default to the JIT (defaults to no)],[
if test x$withval = xyes; then
jit_wanted=true
@@ -2323,10 +2417,14 @@ case "$host" in
*-*-*freebsd*)
LIBC="libc.so"
INTL="libintl.so"
SQLITE="libsqlite.so"
SQLITE3="libsqlite3.so"
;;
*-*-*openbsd*)
LIBC="libc.so"
INTL="libintl.so"
SQLITE="libsqlite.so"
SQLITE3="libsqlite3.so"
;;
*-*-*linux*)
AC_PATH_X
@@ -2387,10 +2485,11 @@ fi
AC_MSG_CHECKING(if the Mono Debugger is supported on this platform)
if test "x$mono_debugger_supported" = "xyes"; then
AC_DEFINE(MONO_DEBUGGER_SUPPORTED,1,[The Mono Debugger is supported on this platform])
BOEHM_DEFINES="$BOEHM_DEFINES -DMONO_DEBUGGER_SUPPORTED"
NESTED_LIBGC_FLAGS="-DMONO_DEBUGGER_SUPPORTED"
fi
AC_MSG_RESULT($mono_debugger_supported)
AM_CONDITIONAL(MONO_DEBUGGER_SUPPORTED, test x$mono_debugger_supported = xyes)
AC_MSG_RESULT($mono_debugger_supported)
if test "x$with_tls" = "x__thread"; then
AC_DEFINE(HAVE_KW_THREAD, 1, [Have __thread keyword])
@@ -2439,7 +2538,7 @@ case "x$gc" in
# The problem with this approach, is that during a reconfigure, the main
# configure scripts gets invoked with these arguments, so we use separate
# variables understood by libgc's configure to pass CPPFLAGS and CFLAGS.
LIBGC_CPPFLAGS=$CPPFLAGS
LIBGC_CPPFLAGS="$CPPFLAGS $NESTED_LIBGC_FLAGS"
if test x$TARGET = xSPARC -o x$TARGET = xSPARC64; then
LIBGC_CPPFLAGS=`echo $LIBGC_CPPFLAGS | sed -e 's/-D_FILE_OFFSET_BITS=64//g'`
fi
@@ -2482,16 +2581,20 @@ AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the
fi
])
MOONLIGHT=no
AC_ARG_WITH(moonlight, [ --with-moonlight=yes,no If you want to build Mono for Moonlight (defaults to no - the resulting mono build is useless for anything but moonlight)],[
if test x$with_moonlight = xyes; then
MOONLIGHT=yes
AC_ARG_WITH(moonlight, [ --with-moonlight=yes|no|only If you want to build Mono for Moonlight (defaults to no)],[
if test "x$with_moonlight" = "xyes"; then
AC_DEFINE(MOONLIGHT,1,[Building for Moonlight])
elif test "x$with_moonlight" = "xonly"; then
AC_DEFINE(MOONLIGHT,1,[Building for Moonlight])
fi
])
], [with_moonlight=no])
AC_CHECK_HEADER([malloc.h],
[AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1],
[Define to 1 if you have /usr/include/malloc.h.])],,)
dnl
dnl Consistency settings
dnl
@@ -2512,7 +2615,8 @@ AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(MOONLIGHT, [test "x$with_moonlight" = xyes])
AM_CONDITIONAL(MOONLIGHT, [test "x$with_moonlight" != "xno"])
AM_CONDITIONAL(ONLY_MOONLIGHT, [test "x$with_moonlight" = "xonly"])
AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" = xyes])
@@ -2727,6 +2831,7 @@ data/net_4_0/Makefile
data/net_2_0/Browsers/Makefile
data/mint.pc
data/mono-2.pc
data/mono.pc
data/mono-cairo.pc
data/mono-nunit.pc
data/mono-options.pc
@@ -2769,28 +2874,30 @@ fi
NONE) exec_prefix='${prefix}' ;;
esac
test -w $srcdir/$mcsdir/build || chmod +w $srcdir/$mcsdir/build
#
# If we are cross compiling, we don't build in the mcs/ tree. Let us not clobber
# any existing config.make. This allows people to share the same source tree
# with different build directories, one native and one cross
#
if test x$cross_compiling = xno && test x$enable_mcs_build != xno; then
echo "prefix=$prefix" > $srcdir/$mcsdir/build/config.make
echo "exec_prefix=$exec_prefix" >> $srcdir/$mcsdir/build/config.make
echo "sysconfdir=$sysconfdir" >> $srcdir/$mcsdir/build/config.make
echo 'mono_libdir=${exec_prefix}/lib' >> $srcdir/$mcsdir/build/config.make
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $srcdir/$mcsdir/build/config.make
echo 'IL_FLAGS = /debug' >> $srcdir/$mcsdir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $srcdir/$mcsdir/build/config.make
echo "ILDISASM = $mono_build_root/runtime/monodis-wrapper" >> $srcdir/$mcsdir/build/config.make
test -w $mcs_topdir/build || chmod +w $mcs_topdir/build
echo "prefix=$prefix" > $mcs_topdir/build/config.make
echo "exec_prefix=$exec_prefix" >> $mcs_topdir/build/config.make
echo "sysconfdir=$sysconfdir" >> $mcs_topdir/build/config.make
echo 'mono_libdir=${exec_prefix}/lib' >> $mcs_topdir/build/config.make
echo 'MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS)' >> $mcs_topdir/build/config.make
echo 'IL_FLAGS = /debug' >> $mcs_topdir/build/config.make
echo "RUNTIME = $mono_build_root/runtime/mono-wrapper" >> $mcs_topdir/build/config.make
echo "ILDISASM = $mono_build_root/runtime/monodis-wrapper" >> $mcs_topdir/build/config.make
case $INSTALL in
[[\\/$]]* | ?:[[\\/]]* ) mcs_INSTALL=$INSTALL ;;
*) mcs_INSTALL=$mono_build_root/$INSTALL ;;
esac
echo "INSTALL = $mcs_INSTALL" >> $srcdir/$mcsdir/build/config.make
echo "INSTALL = $mcs_INSTALL" >> $mcs_topdir/build/config.make
export VERSION
[myver=$($AWK 'BEGIN {
@@ -2801,23 +2908,33 @@ fi
print vsplit [1] "." vsplit [2] "." vsplit [3] "." vsplit [4]
}')]
echo "MONO_VERSION = $myver" >> $srcdir/$mcsdir/build/config.make
fi
echo "MONO_VERSION = $myver" >> $mcs_topdir/build/config.make
if test x$platform_darwin = xyes; then
echo "PLATFORM = darwin" >> $srcdir/$mcsdir/build/config.make
fi
if test x$platform_darwin = xyes; then
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
fi
if test x$host_win32 = xno -a x$platform_darwin != xyes -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
fi
if test x$DISABLE_MCS_DOCS = xyes; then
echo "DISABLE_MCS_DOCS = yes" >> $mcs_topdir/build/config.make
fi
if test x$with_moonlight != xno; then
echo "MOONLIGHT = 1" >> $srcdir/$mcsdir/build/config.make
fi
if test x$TARGET = xAMD64 -a x$host_win32 = xno -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $srcdir/$mcsdir/build/config.make
fi
# if we have an olive folder, override the default settings
if test -d $olivedir; then
test -w $srcdir/$olivedir/build || chmod +w $srcdir/$olivedir/build
if test x$cross_compiling = xno && test x$enable_olive_build != xno; then
test -w $srcdir/$olivedir/build || chmod +w $srcdir/$olivedir/build
echo "prefix=$prefix" > $srcdir/$olivedir/build/config.make
echo "exec_prefix=$exec_prefix" >> $srcdir/$olivedir/build/config.make
echo 'mono_libdir=${exec_prefix}/lib' >> $srcdir/$olivedir/build/config.make
@@ -2827,23 +2944,16 @@ fi
fi
fi
if test x$DISABLE_MCS_DOCS = xyes; then
echo "DISABLE_MCS_DOCS = yes" >> $srcdir/$mcsdir/build/config.make
fi
if test x$with_moonlight = xyes; then
echo "MOONLIGHT = 1" >> $srcdir/$mcsdir/build/config.make
fi
)
libgdiplus_msg=${libgdiplus_loc:-assumed to be installed}
echo "
mcs source: $mcs_topdir
mcs source: $mcsdir
olive source: $olive_topdir
Engine:
GC: $gc
GC: $gc_msg
GLIB: $with_glib
TLS: $with_tls
SIGALTSTACK: $with_sigaltstack
@@ -2852,7 +2962,7 @@ echo "
BigArrays: $enable_big_arrays
DTrace: $enable_dtrace
Parallel Mark: $enable_parallel_mark
LLVM Back End: $enable_llvm
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)
Libraries:
Moon Profile: $with_moonlight
@@ -2865,18 +2975,3 @@ echo "
if test x$with_static_mono = xno -a "x$host_win32" != "xyes"; then
AC_MSG_WARN(Turning off static Mono is a risk, you might run into unexpected bugs)
fi
if test x$gc = xsgen; then
echo IMPORTANT:
echo IMPORTANT: You have selected an experimental, work-in-progress
echo IMPORTANT: GC engine. This GC engine is currently not supported
echo IMPORTANT: and is not yet ready for use.
echo IMPORTANT:
echo IMPORTANT: There are known problems with it, use at your own risk.
fi
if test x$enable_llvm = xyes; then
echo IMPORTANT:
echo IMPORTANT: The LLVM Back End is experimental and has known problems.
echo IMPORTANT:
fi
+12
View File
@@ -1,3 +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.
+4 -4
View File
@@ -9,7 +9,7 @@ monodir = $(sysconfdir)/mono
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README ChangeLog \
mono-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
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 system.web.mvc2.pc.in \
@@ -21,17 +21,17 @@ pkgconfigdir = $(libdir)/pkgconfig
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= 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 \
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-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 \
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-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 \
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 \
+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):
-1
View File
@@ -7,6 +7,5 @@ sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Requires: glib-2.0 gthread-2.0
Libs: -L${libdir} @export_ldflags@ -lmono-@API_VER@ @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
+9
View File
@@ -0,0 +1,9 @@
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/@reloc_libdir@
includedir=${prefix}/include/mono-@API_VER@
sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
+1
View File
@@ -0,0 +1 @@
/Compat.browser -crlf
File diff suppressed because it is too large. Load diff
+2
View File
@@ -4,9 +4,11 @@ monodir = $(sysconfdir)/mono/4.0
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
+12 -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>
+114 -36
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,11 +143,20 @@
<!-- <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" />
@@ -101,7 +169,7 @@
<!-- <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.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"/> -->
@@ -120,7 +188,7 @@
<!-- <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="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
@@ -130,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" />
@@ -147,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"
+1
View File
@@ -8,3 +8,4 @@
/mono-file-formats.zip
/mono-tools.tree
/mono-tools.zip
/AgilityPack.dll*
+6
View File
@@ -1,3 +1,9 @@
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
+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
+12 -7
View File
@@ -79,21 +79,21 @@ clean-local:
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
@@ -101,8 +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:
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)
+951 -717
View File
File diff suppressed because it is too large. Load diff
+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
+5 -1
View File
@@ -1110,4 +1110,8 @@ 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
mono_marshal_emit_thread_interrupt_checkpoint
cominterop_release_all_rcws
console_restore_signal_handlers
console_set_signal_handlers
__jit_debug_register_code
+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. <
+10 -2
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
# 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.a | clean_nm | ignore_known | ignore_wapi | grep -v ^ves_icall | grep -v ^mono_arch_ | sort > $dir/public-api
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
+53 -735
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
+162
View File
@@ -1,3 +1,165 @@
2010-07-25 Zoltan Varga <[email protected]>
* configure.ac src/eglib-config.h.in src/eglib-config.hw: Define G_GINT64_FORMAT.
2010-07-20 Zoltan Varga <[email protected]>
* src/glib.h (G_LIKELY): Implement these for gcc properly.
2010-07-19 Miguel de Icaza <[email protected]>
* src/gmisc-win32.c (g_getenv): Distinguish between variable not
found and an empty variable.
This should fix 566152
2010-07-19 Zoltan Varga <[email protected]>
* src/glib.h (G_MAXUINT64): Define this. Fixes #623293.
* src/eglib-config.hw: Define UINT64_MAX.
2010-07-16 Gonzalo Paniagua Javier <[email protected]>
* src/gmisc-unix.c: include config.h. Fixes bug #609632.
Use getpwuid_r instead of getpwent_r.
2010-07-02 Zoltan Varga <[email protected]>
* src/glib.h: Define gboolean as int32_t to match mono_bool.
2010-06-22 Rodrigo Kumpera <[email protected]>
* src/ghashtable.c: Add code to sanity check the
hashtable contents. This is invaluable, for example,
to catch bugs where a key hashcode changes after
insertion.
2010-06-18 Chris Toshok <[email protected]>
patch from Jacob Berkman:
* src/glib.h (g_mkdir): #define to mkdir
(g_ascii_strtoull): #define to strtoull
* src/gmodule.h: add G_BEGIN/END_DECLS
* src/gstr.c (g_strdupv): new function.
2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* src/eglib-remap.h: Remap g_ptr_array_remove_fast too.
2010-06-15 Zoltan Varga <[email protected]>
* src/gunicode.c: Applied patch from Hib Eris <[email protected]>. use "windows.h"
instead of "Windows.h".
2010-05-25 Zoltan Varga <[email protected]>
* Applied patch from Burkhard Linke ([email protected]). Fix
building on solaris.
2010-05-21 Zoltan Varga <[email protected]>
* src/gmisc-win32.c (g_setenv): Use the
GetEnvironmentVariableW/SetEnvironmentVariableW variants.
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.
2010-05-13 Alan McGovern <[email protected]>
* src/gstring.c: Put in some null guards for the ctors
2010-05-11 Miguel de Icaza <[email protected]>
* src/gunicode.c: Pull the Windows.h header when G_OS_WIN32 is
defined.
2010-05-11 Atsushi Enomoto <[email protected]>
* Makefile.am : do not try to build test on windows (fails).
* src/glib.h : fix cygwin build, do not include unistd.h.
2010-05-10 Miguel de Icaza <[email protected]>
* gfile-win32.c: Port this to use the Win32 APIs to get this
building with Cygwin.
2010-05-07 Andrew Jorgensen <[email protected]>
* test/test.h: Fix some compiler warning that SUSE takes seriously.
2010-05-06 Alan McGovern <[email protected]>
* src/gmarkup.c: Fix a parser issue when skipping the xml declaration.
2010-05-06 Jonathan Chambers <[email protected]>
* gfile-win32.c: Use __stat64 instead of _stat64.
2010-05-04 Jonathan Chambers <[email protected]>
* gspawn.c: Remove extern define for MSVC.
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.
2010-05-02 Zoltan Varga <[email protected]>
* src/glib.h: Include sys/types.h for pid_t.
2010-05-01 Zoltan Varga <[email protected]>
* src/goutput.c (g_logv): Append a '\n' to the end of the string as glib does.
2010-04-28 Zoltan Varga <[email protected]>
* configure.ac src/gspawn.c: Applied openbsd changes from Robert Nagy
<[email protected]>.
2010-04-16 Miguel de Icaza <[email protected]>
* src/gshell.c (g_shell_unquote): Implement this.
2010-04-25 Andreas Faerber <[email protected]>
* configure.ac: The iconv function may be libiconv_open.
Fixes linking with GNU libiconv.
Contributed under MIT/X11 license.
2010-04-23 Geoff Norton <[email protected]>
* configure.ac: The iconv function is iconv_open.
2010-04-19 Jonathan Pryor <[email protected]>
* 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.
2010-04-16 Gonzalo Paniagua Javier <[email protected]>
* test/ptrarray.c: new tests
* src/gptrarray.c: implemented g_ptr_array_remove_fast().
2010-04-10 Andreas Faerber <[email protected]>
* configure.ac: Add checks for libm and libdl.
* {src,test}/Makefile.am: Remove hardcoded library dependencies.
Fixes compilation on Haiku.
Contributed under MIT/X11 license.
2010-03-05 Zoltan Varga <[email protected]>
* test/test.c (_GNU_SOURCE): Fix compilation if _GNU_SOURCE is already defined.
+4
View File
@@ -1,8 +1,12 @@
if HOST_WIN32
SUBDIRS = src
else
if CROSS_COMPILING
SUBDIRS = src
else
SUBDIRS = src test
endif
endif
EXTRA_DIST = autogen.sh README NEWS AUTHORS ChangeLog
+35 -8
View File
@@ -49,6 +49,12 @@ case $host in
;;
esac
case $host in
*-*-solaris*)
CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
;;
esac
case $target in
arm*-darwin*)
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
@@ -56,6 +62,10 @@ arm*-darwin*)
i*86-*-darwin*)
ORDER=G_LITTLE_ENDIAN
;;
*-*-openbsd*)
CFLAGS="$CFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
;;
esac
AC_SUBST(ORDER)
@@ -68,8 +78,16 @@ AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r rewinddir)
AC_CHECK_FUNCS(strndup strlcpy getpwuid_r strtok_r rewinddir vasprintf)
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv")
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
AC_SEARCH_LIBS(sqrtf, m)
# nanosleep may not be part of libc, also search it in other libraries
AC_SEARCH_LIBS(nanosleep, rt)
AC_SEARCH_LIBS(dlopen, dl)
old_ldflags="${LDFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
AC_TRY_LINK(, [int i;], found_export_dynamic=yes, found_export_dynamic=no)
@@ -102,6 +120,7 @@ if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
else
GPOINTER_TO_INT="((gint) (ptr))"
GPOINTER_TO_UINT="((guint) (ptr))"
@@ -110,12 +129,10 @@ else
GSIZE="int"
GSIZE_FORMAT='"u"'
G_GUINT64_FORMAT='"llu"'
G_GINT64_FORMAT='"lld"'
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
@@ -133,13 +150,17 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
dnl
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
have_glib=false
if test "x$PKG_CONFIG" != "xno"; then
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
@@ -147,6 +168,12 @@ AC_SUBST(GUINT_TO_POINTER)
AC_SUBST(GSIZE)
AC_SUBST(GSIZE_FORMAT)
AC_SUBST(G_GUINT64_FORMAT)
AC_SUBST(G_GINT64_FORMAT)
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find src test -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
+6 -1
View File
@@ -1,6 +1,11 @@
/
/Makefile
/Makefile.in
/.libs
/.deps
/*.lo
/*.la
/*.o
/semantic.cache
/.project
/.cproject
/eglib-config.h
+10 -3
View File
@@ -8,6 +8,14 @@ unix_files = \
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c \
gmodule-unix.c gtimer-unix.c
# some unices and windows do not have an implementation of vasprintf
# used by eglib, use provided implementation instead
if NEED_VASPRINTF
vasprintf_files = vasprintf.c
else
vaprinttf_files = foo.c
endif
if HOST_WIN32
os_files = $(win_files)
else
@@ -41,7 +49,8 @@ libeglib_la_SOURCES = \
gutf8.c \
gunicode.c \
unicode-data.h \
$(os_files)
$(os_files) \
$(vasprintf_files)
libeglib_la_CFLAGS = -Wall -D_FORTIFY_SOURCE=2
libeglib_static_la_SOURCES=$(libeglib_la_SOURCES)
@@ -51,8 +60,6 @@ INCLUDES = -I$(srcdir)
if HOST_WIN32
libeglib_la_LIBADD = -lm -liconv -lpsapi
else
libeglib_la_LIBADD = -lm -ldl
endif
libeglib_static_la_LIBADD = $(libeglib_la_LIBADD)
+9
View File
@@ -24,9 +24,18 @@ typedef signed @GSIZE@ gssize;
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
#define G_GINT64_FORMAT @G_GINT64_FORMAT@
#if @G_HAVE_ISO_VARARGS@ == 1
#define G_HAVE_ISO_VARARGS
#endif
#if defined (__native_client__)
#define sem_trywait(x) sem_wait(x)
#define sem_timedwait(x,y) sem_wait(x)
#define getdtablesize() (32768)
#undef G_BREAKPOINT
#define G_BREAKPOINT()
#endif
#endif
+2
View File
@@ -27,6 +27,7 @@ typedef int pid_t;
#define G_SEARCHPATH_SEPARATOR ';'
#define G_GSIZE_FORMAT "d"
#define G_GUINT64_FORMAT "d"
#define G_GINT64_FORMAT "d"
#define GPOINTER_TO_INT(ptr) ((gint)(intptr_t) (ptr))
#define GPOINTER_TO_UINT(ptr) ((guint)(intptr_t) (ptr))
#define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
@@ -37,6 +38,7 @@ typedef int pid_t;
#define INT64_MAX 9223372036854775807i64
#define INT64_MIN (~INT64_MAX)
#define UINT32_MAX 0xffffffffU
#define UINT64_MAX 0xffffffffffffffffULL
#define STDOUT_FILENO (int)(intptr_t)stdout
#define STDERR_FILENO (int)(intptr_t)stderr
+4
View File
@@ -50,6 +50,7 @@
#define g_hash_table_new_full monoeg_g_hash_table_new_full
#define g_hash_table_remove monoeg_g_hash_table_remove
#define g_hash_table_size monoeg_g_hash_table_size
#define g_hash_table_print_stats monoeg_g_hash_table_print_stats
#define g_int_equal monoeg_g_int_equal
#define g_int_hash monoeg_g_int_hash
#define g_list_alloc monoeg_g_list_alloc
@@ -99,12 +100,14 @@
#define g_pattern_spec_new monoeg_g_pattern_spec_new
#define g_print monoeg_g_print
#define g_printf monoeg_g_printf
#define g_printerr monoeg_g_printerr
#define g_propagate_error monoeg_g_propagate_error
#define g_ptr_array_add monoeg_g_ptr_array_add
#define g_ptr_array_foreach monoeg_g_ptr_array_foreach
#define g_ptr_array_free monoeg_g_ptr_array_free
#define g_ptr_array_new monoeg_g_ptr_array_new
#define g_ptr_array_remove monoeg_g_ptr_array_remove
#define g_ptr_array_remove_fast monoeg_g_ptr_array_remove_fast
#define g_ptr_array_remove_index monoeg_g_ptr_array_remove_index
#define g_ptr_array_remove_index_fast monoeg_g_ptr_array_remove_index_fast
#define g_ptr_array_set_size monoeg_g_ptr_array_set_size
@@ -165,6 +168,7 @@
#define g_strerror monoeg_g_strerror
#define g_strescape monoeg_g_strescape
#define g_strfreev monoeg_g_strfreev
#define g_strdupv monoeg_g_strdupv
#define g_string_append monoeg_g_string_append
#define g_string_append_c monoeg_g_string_append_c
#define g_string_append_len monoeg_g_string_append_len
+19 -17
View File
@@ -26,6 +26,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <windows.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
@@ -34,7 +35,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef G_OS_WIN32
#include <io.h>
@@ -70,37 +70,39 @@ int mkstemp (char *tmp_template)
gboolean
g_file_test (const gchar *filename, GFileTest test)
{
struct _stat64 stat;
int ret = 0;
gunichar2* utf16_filename = NULL;
DWORD attr;
if (filename == NULL || test == 0)
return FALSE;
utf16_filename = u8to16 (filename);
ret = _wstati64 (utf16_filename, &stat);
attr = GetFileAttributesW (utf16_filename);
g_free (utf16_filename);
if ((test & G_FILE_TEST_EXISTS) != 0) {
if (ret == 0)
return TRUE;
}
if (ret != 0)
if (attr == INVALID_FILE_ATTRIBUTES)
return FALSE;
if ((test & G_FILE_TEST_EXISTS) != 0) {
return TRUE;
}
if ((test & G_FILE_TEST_IS_EXECUTABLE) != 0) {
if (stat.st_mode & _S_IEXEC)
return TRUE;
size_t len = strlen (filename);
if (len > 4 && strcmp (filename + len-3, "exe"))
return TRUE;
return FALSE;
}
if ((test & G_FILE_TEST_IS_REGULAR) != 0) {
if (stat.st_mode & _S_IFREG)
return TRUE;
if (attr & (FILE_ATTRIBUTE_DEVICE|FILE_ATTRIBUTE_DIRECTORY))
return FALSE;
return TRUE;
}
if ((test & G_FILE_TEST_IS_DIR) != 0) {
if (stat.st_mode & _S_IFDIR)
if (attr & FILE_ATTRIBUTE_DIRECTORY)
return TRUE;
}
+78
View File
@@ -133,6 +133,51 @@ g_hash_table_new_full (GHashFunc hash_func, GEqualFunc key_equal_func,
return hash;
}
#if 0
static void
dump_hash_table (GHashTable *hash)
{
int i;
for (i = 0; i < hash->table_size; i++) {
Slot *s;
for (s = hash->table [i]; s != NULL; s = s->next){
guint hashcode = (*hash->hash_func) (s->key);
guint slot = (hashcode) % hash->table_size;
printf ("key %p hash %x on slot %d correct slot %d tb size %d\n", s->key, hashcode, i, slot, hash->table_size);
}
}
}
#endif
#ifdef SANITY_CHECK
static void
sanity_check (GHashTable *hash)
{
int i;
for (i = 0; i < hash->table_size; i++) {
Slot *s;
for (s = hash->table [i]; s != NULL; s = s->next){
guint hashcode = (*hash->hash_func) (s->key);
guint slot = (hashcode) % hash->table_size;
if (slot != i) {
dump_hashcode_func = 1;
hashcode = (*hash->hash_func) (s->key);
dump_hashcode_func = 0;
g_error ("Key %p (bucket %d) on invalid bucket %d (hashcode %x) (tb size %d)", s->key, slot, i, hashcode, hash->table_size);
}
}
}
}
#else
#define sanity_check(HASH) do {}while(0)
#endif
static void
do_rehash (GHashTable *hash)
{
@@ -172,6 +217,7 @@ rehash (GHashTable *hash)
if (!(diff * 0.75 > hash->table_size * 2))
return;
do_rehash (hash);
sanity_check (hash);
}
void
@@ -182,6 +228,7 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
GEqualFunc equal;
g_return_if_fail (hash != NULL);
sanity_check (hash);
equal = hash->key_equal_func;
if (hash->in_use >= hash->threshold)
@@ -198,6 +245,7 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
if (hash->value_destroy_func != NULL)
(*hash->value_destroy_func) (s->value);
s->value = value;
sanity_check (hash);
return;
}
}
@@ -207,6 +255,7 @@ g_hash_table_insert_replace (GHashTable *hash, gpointer key, gpointer value, gbo
s->next = hash->table [hashcode];
hash->table [hashcode] = s;
hash->in_use++;
sanity_check (hash);
}
guint
@@ -236,6 +285,7 @@ g_hash_table_lookup_extended (GHashTable *hash, gconstpointer key, gpointer *ori
guint hashcode;
g_return_val_if_fail (hash != NULL, FALSE);
sanity_check (hash);
equal = hash->key_equal_func;
hashcode = ((*hash->hash_func) (key)) % hash->table_size;
@@ -292,6 +342,7 @@ g_hash_table_remove (GHashTable *hash, gconstpointer key)
guint hashcode;
g_return_val_if_fail (hash != NULL, FALSE);
sanity_check (hash);
equal = hash->key_equal_func;
hashcode = ((*hash->hash_func)(key)) % hash->table_size;
@@ -308,10 +359,12 @@ g_hash_table_remove (GHashTable *hash, gconstpointer key)
last->next = s->next;
g_free (s);
hash->in_use--;
sanity_check (hash);
return TRUE;
}
last = s;
}
sanity_check (hash);
return FALSE;
}
@@ -324,6 +377,7 @@ g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data)
g_return_val_if_fail (hash != NULL, 0);
g_return_val_if_fail (func != NULL, 0);
sanity_check (hash);
for (i = 0; i < hash->table_size; i++){
Slot *s, *last;
@@ -353,6 +407,7 @@ g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data)
}
}
}
sanity_check (hash);
if (count > 0)
rehash (hash);
return count;
@@ -367,6 +422,7 @@ g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data)
g_return_val_if_fail (hash != NULL, 0);
g_return_val_if_fail (func != NULL, 0);
sanity_check (hash);
for (i = 0; i < hash->table_size; i++){
Slot *s, *last;
@@ -392,6 +448,7 @@ g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data)
}
}
}
sanity_check (hash);
if (count > 0)
rehash (hash);
return count;
@@ -422,6 +479,27 @@ g_hash_table_destroy (GHashTable *hash)
g_free (hash);
}
void
g_hash_table_print_stats (GHashTable *table)
{
int i, max_chain_index, chain_size, max_chain_size;
Slot *node;
max_chain_size = 0;
max_chain_index = -1;
for (i = 0; i < table->table_size; i++) {
chain_size = 0;
for (node = table->table [i]; node; node = node->next)
chain_size ++;
if (chain_size > max_chain_size) {
max_chain_size = chain_size;
max_chain_index = i;
}
}
printf ("Size: %d Table Size: %d Max Chain Length: %d at %d\n", table->in_use, table->table_size, max_chain_size, max_chain_index);
}
gboolean
g_direct_equal (gconstpointer v1, gconstpointer v2)
{
+24 -12
View File
@@ -13,6 +13,10 @@
#pragma include_alias(<eglib-config.h>, <eglib-config.hw>)
#else
#include <stdint.h>
/* For pid_t */
#ifndef WIN32
#include <unistd.h>
#endif
#endif
#include <eglib-config.h>
@@ -39,7 +43,6 @@ G_BEGIN_DECLS
/*
* Basic data types
*/
typedef int gboolean;
typedef int gint;
typedef unsigned int guint;
typedef short gshort;
@@ -64,6 +67,7 @@ typedef unsigned __int64 guint64;
typedef float gfloat;
typedef double gdouble;
typedef unsigned __int16 gunichar2;
typedef int gboolean;
#else
/* Types defined in terms of the stdint.h */
typedef int8_t gint8;
@@ -77,6 +81,7 @@ typedef uint64_t guint64;
typedef float gfloat;
typedef double gdouble;
typedef uint16_t gunichar2;
typedef int32_t gboolean;
#endif
#endif
@@ -95,6 +100,7 @@ typedef uint16_t gunichar2;
#define G_MININT32 INT32_MIN
#define G_MININT64 INT64_MIN
#define G_MAXINT64 INT64_MAX
#define G_MAXUINT64 UINT64_MAX
#define G_LITTLE_ENDIAN 1234
#define G_BIG_ENDIAN 4321
@@ -133,6 +139,7 @@ static inline gpointer g_malloc0 (gsize x) {if (x) return calloc(1,x); else retu
gpointer g_memdup (gconstpointer mem, guint byte_size);
static inline gchar *g_strdup (const gchar *str) { if (str) {return strdup (str);} return NULL; }
gchar **g_strdupv (gchar **str_array);
typedef struct {
gpointer (*malloc) (gsize n_bytes);
@@ -164,8 +171,8 @@ gchar* g_win32_getlocale(void);
/*
* Precondition macros
*/
#define g_return_if_fail(x) G_STMT_START { if (!(x)) { printf ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); return; } } G_STMT_END
#define g_return_val_if_fail(x,e) G_STMT_START { if (!(x)) { printf ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); return (e); } } G_STMT_END
#define g_return_if_fail(x) G_STMT_START { if (!(x)) { g_critical ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); return; } } G_STMT_END
#define g_return_val_if_fail(x,e) G_STMT_START { if (!(x)) { g_critical ("%s:%d: assertion '%s' failed", __FILE__, __LINE__, #x); return (e); } } G_STMT_END
/*
* Hashtables
@@ -194,6 +201,7 @@ gboolean g_hash_table_remove (GHashTable *hash, gconstpointer ke
guint g_hash_table_foreach_remove (GHashTable *hash, GHRFunc func, gpointer user_data);
guint g_hash_table_foreach_steal (GHashTable *hash, GHRFunc func, gpointer user_data);
void g_hash_table_destroy (GHashTable *hash);
void g_hash_table_print_stats (GHashTable *table);
guint g_spaced_primes_closest (guint x);
@@ -285,6 +293,7 @@ gint g_ascii_xdigit_value (gchar c);
#else
#define g_strcasecmp strcasecmp
#define g_ascii_strcasecmp strcasecmp
#define g_ascii_strtoull strtoull
#define g_strncasecmp strncasecmp
#define g_strstrip(a) g_strchug (g_strchomp (a))
#endif
@@ -510,6 +519,7 @@ typedef enum {
} GLogLevelFlags;
void g_print (const gchar *format, ...);
void g_printerr (const gchar *format, ...);
GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask);
void g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args);
@@ -517,22 +527,19 @@ void g_log (const gchar *log_domain, GLogLevelFlags l
void g_assertion_message (const gchar *format, ...) G_GNUC_NORETURN;
#ifdef HAVE_C99_SUPPORT
#define g_error(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, __VA_ARGS__)
/* The for (;;) tells gc thats g_error () doesn't return, avoiding warnings */
#define g_error(format, ...) do { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, __VA_ARGS__); for (;;); } while (0)
#define g_critical(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, format, __VA_ARGS__)
#define g_warning(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, format, __VA_ARGS__)
#define g_message(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, format, __VA_ARGS__)
#define g_debug(format, ...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format, __VA_ARGS__)
#define g_printerr(format, ...) fprintf (stderr, format, __VA_ARGS__)
#else
#define g_error(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, __VA_ARGS__)
#else /* HAVE_C99_SUPPORT */
#define g_error(...) do { g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, __VA_ARGS__); for (;;); } while (0)
#define g_critical(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, __VA_ARGS__)
#define g_warning(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, __VA_ARGS__)
#define g_message(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, __VA_ARGS__)
#define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
#define g_printerr(...) fprintf (stderr, __VA_ARGS__)
#endif
#endif /* ndef HAVE_C99_SUPPORT */
#define g_log_set_handler(a,b,c,d)
/*
@@ -601,9 +608,13 @@ gint g_unichar_xdigit_value (gunichar c);
#define CLAMP(a,low,high) (((a) < (low)) ? (low) : (((a) > (high)) ? (high) : (a)))
#endif
/* FIXME: Implement these two for gcc */
#if defined(__GNUC__) && (__GNUC__ > 2)
#define G_LIKELY(expr) (__builtin_expect ((expr) != 0, 1))
#define G_UNLIKELY(expr) (__builtin_expect ((expr) != 0, 0))
#else
#define G_LIKELY(x) (x)
#define G_UNLIKELY(x) (x)
#endif
/*
* Unicode conversion
@@ -766,6 +777,7 @@ GDir *g_dir_open (const gchar *path, guint flags, GError **error);
const gchar *g_dir_read_name (GDir *dir);
void g_dir_rewind (GDir *dir);
void g_dir_close (GDir *dir);
#define g_mkdir mkdir
/*
* GMarkup
+1 -1
View File
@@ -404,7 +404,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
break;
case FLUSH_TEXT:
if (context->parser.text != NULL){
if (context->parser.text != NULL && context->text != NULL){
context->parser.text (context, context->text->str, context->text->len,
context->user_data, error);
if (error != NULL && *error != NULL)
+7 -15
View File
@@ -26,6 +26,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <stdlib.h>
#include <glib.h>
#include <pthread.h>
@@ -81,27 +82,18 @@ g_get_home_dir (void)
if (home_dir == NULL){
pthread_mutex_lock (&home_lock);
if (home_dir == NULL){
#ifdef HAVE_GETPWENT_R
struct passwd pwbuf, *track;
#ifdef HAVE_GETPWUID_R
struct passwd pw;
struct passwd *result;
char buf [4096];
uid_t uid;
uid = getuid ();
setpwent ();
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
if (pwbuf.pw_uid == uid){
home_dir = g_strdup (pwbuf.pw_dir);
break;
}
}
endpwent ();
if (getpwuid_r (getuid (), &pw, buf, 4096, &result) == 0)
home_dir = g_strdup (pw.pw_dir);
#endif
if (home_dir == NULL)
home_dir = g_getenv ("HOME");
pthread_mutex_unlock (&home_lock);
}
pthread_mutex_unlock (&home_lock);
}
return home_dir;
}
+9 -4
View File
@@ -42,15 +42,20 @@ g_getenv(const gchar *variable)
gint32 retval;
var = u8to16(variable);
buffer = g_malloc(buffer_size*sizeof(gunichar2));
retval = GetEnvironmentVariable (var, buffer, buffer_size);
retval = GetEnvironmentVariableW (var, buffer, buffer_size);
if (retval != 0) {
if (retval > buffer_size) {
g_free (buffer);
buffer_size = retval;
buffer = g_malloc(buffer_size*sizeof(gunichar2));
retval = GetEnvironmentVariable (var, buffer, buffer_size);
retval = GetEnvironmentVariableW (var, buffer, buffer_size);
}
val = u16to8 (buffer);
} else {
if (GetLastError () != ERROR_ENVVAR_NOT_FOUND){
val = g_malloc (1);
*val = 0;
}
}
g_free(var);
g_free(buffer);
@@ -64,7 +69,7 @@ g_setenv(const gchar *variable, const gchar *value, gboolean overwrite)
gboolean result;
var = u8to16(variable);
val = u8to16(value);
result = (SetEnvironmentVariable(var, val) != 0) ? TRUE : FALSE;
result = (SetEnvironmentVariableW(var, val) != 0) ? TRUE : FALSE;
g_free(var);
g_free(val);
return result;
@@ -75,7 +80,7 @@ g_unsetenv(const gchar *variable)
{
gunichar2 *var;
var = u8to16(variable);
SetEnvironmentVariable(var, TEXT(""));
SetEnvironmentVariableW(var, TEXT(""));
g_free(var);
}
+38
View File
@@ -31,6 +31,42 @@
#include <glib.h>
#include <gmodule.h>
#if defined(__native_client__)
GModule *
g_module_open (const gchar *file, GModuleFlags flags)
{
printf("dlopen() not supported on Native Client.\n");
return NULL;
}
gboolean
g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
{
return FALSE;
}
const gchar*
g_module_error(void)
{
return "dlopen not supported on Native Client.";
}
gboolean
g_module_close (GModule *module)
{
return FALSE;
}
gchar*
g_module_build_path (const gchar *directory, const gchar *module_name)
{
return NULL;
}
#else
#ifdef G_OS_UNIX
#include <dlfcn.h>
@@ -286,3 +322,5 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
#endif /* __native_client__ */
+4
View File
@@ -10,6 +10,8 @@
#define G_MODULE_EXPORT
#endif
G_BEGIN_DECLS
/*
* Modules
*/
@@ -30,4 +32,6 @@ gchar * g_module_build_path (const gchar *directory, const gchar *module_name);
extern char *gmodule_libprefix;
extern char *gmodule_libsuffix;
G_END_DECLS
#endif
+58 -2
View File
@@ -31,13 +31,59 @@
/* The current fatal levels, error is always fatal */
static GLogLevelFlags fatal = G_LOG_LEVEL_ERROR;
#if PLATFORM_ANDROID
#include <android/log.h>
static android_LogPriority
to_android_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ANDROID_LOG_FATAL;
case G_LOG_LEVEL_CRITICAL: return ANDROID_LOG_ERROR;
case G_LOG_LEVEL_WARNING: return ANDROID_LOG_WARN;
case G_LOG_LEVEL_MESSAGE: return ANDROID_LOG_INFO;
case G_LOG_LEVEL_INFO: return ANDROID_LOG_DEBUG;
case G_LOG_LEVEL_DEBUG: return ANDROID_LOG_VERBOSE;
}
return ANDROID_LOG_UNKNOWN;
}
static void
out_vfprintf (FILE *ignore, const gchar *format, va_list args)
{
/* TODO: provide a proper app name */
__android_log_vprint (ANDROID_LOG_ERROR, "mono", format, args);
}
#else
static void
out_vfprintf (FILE *file, const gchar *format, va_list args)
{
vfprintf (file, format, args);
}
#endif
void
g_print (const gchar *format, ...)
{
va_list args;
va_start (args, format);
vprintf (format, args);
out_vfprintf (stdout, format, args);
va_end (args);
}
void
g_printerr (const gchar *format, ...)
{
va_list args;
va_start (args, format);
out_vfprintf (stderr, format, args);
va_end (args);
}
@@ -68,10 +114,19 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
char *msg;
vasprintf (&msg, format, args);
printf ("%s%s%s",
#if PLATFORM_ANDROID
__android_log_print (to_android_priority (log_level),
/* TODO: provide a proper app name */
"mono", "%s%s%s",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#else
printf ("%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#endif
free (msg);
if (log_level & fatal){
fflush (stdout);
@@ -98,5 +153,6 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
g_assert_not_reached ();
}
+21
View File
@@ -177,6 +177,27 @@ g_ptr_array_remove(GPtrArray *array, gpointer data)
return FALSE;
}
gboolean
g_ptr_array_remove_fast(GPtrArray *array, gpointer data)
{
guint i;
g_return_val_if_fail(array != NULL, FALSE);
for(i = 0; i < array->len; i++) {
if(array->pdata[i] == data) {
array->len--;
if (array->len > 0)
array->pdata [i] = array->pdata [array->len];
else
array->pdata [i] = NULL;
return TRUE;
}
}
return FALSE;
}
void
g_ptr_array_foreach(GPtrArray *array, GFunc func, gpointer user_data)
{
+143 -12
View File
@@ -33,7 +33,6 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
{
gchar *ptr;
gchar c;
gboolean in_quote = FALSE;
gboolean escaped = FALSE;
gchar quote_char = '\0';
GString *str;
@@ -42,18 +41,28 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
ptr = (gchar *) cmdline;
while ((c = *ptr++) != '\0') {
if (escaped) {
escaped = FALSE;
if (!g_ascii_isspace (c))
/*
* \CHAR is only special inside a double quote if CHAR is
* one of: $`"\ and newline
*/
if (quote_char == '\"'){
if (!(c == '$' || c == '`' || c == '"' || c == '\\'))
g_string_append_c (str, '\\');
g_string_append_c (str, c);
} else if (in_quote) {
} else {
if (!g_ascii_isspace (c))
g_string_append_c (str, c);
}
escaped = FALSE;
} else if (quote_char) {
if (c == quote_char) {
in_quote = FALSE;
quote_char = '\0';
g_ptr_array_add (array, g_string_free (str, FALSE));
str = g_string_new ("");
} else {
} else if (c == '\\'){
escaped = TRUE;
} else
g_string_append_c (str, c);
}
} else if (g_ascii_isspace (c)) {
if (str->len > 0) {
g_ptr_array_add (array, g_string_free (str, FALSE));
@@ -62,7 +71,6 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
} else if (c == '\\') {
escaped = TRUE;
} else if (c == '\'' || c == '"') {
in_quote = TRUE;
quote_char = c;
} else {
g_string_append_c (str, c);
@@ -76,7 +84,7 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
return -1;
}
if (in_quote) {
if (quote_char) {
if (error)
*error = g_error_new (G_LOG_DOMAIN, 0, "Unfinished quote.");
g_string_free (str, TRUE);
@@ -151,7 +159,130 @@ g_shell_quote (const gchar *unquoted_string)
gchar *
g_shell_unquote (const gchar *quoted_string, GError **error)
{
// g_error ("%s", "Not implemented");
return g_strdup (quoted_string);
// return NULL;
GString *result;
const char *p;
int do_unquote = 0;
if (quoted_string == NULL)
return NULL;
/* Quickly try to determine if we need to unquote or not */
for (p = quoted_string; *p; p++){
if (*p == '\'' || *p == '"' || *p == '\\'){
do_unquote = 1;
break;
}
}
if (!do_unquote)
return g_strdup (quoted_string);
/* We do need to unquote */
result = g_string_new ("");
for (p = quoted_string; *p; p++){
if (*p == '\''){
/* Process single quote, not even \ is processed by glib's version */
for (p++; *p; p++){
if (*p == '\'')
break;
g_string_append_c (result, *p);
}
if (!*p){
g_set_error (error, 0, 0, "Open quote");
return NULL;
}
} else if (*p == '"'){
/* Process double quote, allows some escaping */
for (p++; *p; p++){
if (*p == '"')
break;
if (*p == '\\'){
p++;
if (*p == 0){
g_set_error (error, 0, 0, "Open quote");
return NULL;
}
switch (*p){
case '$':
case '"':
case '\\':
case '`':
break;
default:
g_string_append_c (result, '\\');
break;
}
}
g_string_append_c (result, *p);
}
if (!*p){
g_set_error (error, 0, 0, "Open quote");
return NULL;
}
} else if (*p == '\\'){
char c = *(++p);
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == 0))
g_string_append_c (result, '\\');
if (c == 0)
break;
else
g_string_append_c (result, c);
} else
g_string_append_c (result, *p);
}
return g_string_free (result, FALSE);
}
#if JOINT_TEST
/*
* This test is designed to be built with the 2 glib/eglib to compare
*/
char *args [] = {
"\\",
"\"Foo'bar\"",
"'foo'",
"'fo\'b'",
"'foo\"bar'",
"'foo' dingus bar",
"'foo' 'bar' 'baz'",
"\"foo\" 'bar' \"baz\"",
"\"f\\$\\\'",
"\"\\",
"\\\\",
"'\\\\'",
"\"f\\$\"\\\"\\\\", // /\\\"\\\\"
"'f\\$'\\\"\\\\",
"'f\\$\\\\'",
NULL
};
int
main ()
{
char **s = args;
int i;
while (*s){
char *r1 = g_shell_unquote (*s, NULL);
char *r2 = g2_shell_unquote (*s, NULL);
char *ok = r1 == r2 ? "ok" : (r1 != NULL && r2 != NULL && strcmp (r1, r2) == 0) ? "ok" : "fail";
printf ("%s [%s] -> [%s] - [%s]\n", ok, *s, r1, r2);
s++;
}
return;
char buffer [10];
buffer [0] = '\"';
buffer [1] = '\\';
buffer [3] = '\"';
buffer [4] = 0;
for (i = 32; i < 255; i++){
buffer [2] = i;
printf ("%d [%s] -> [%s]\n", i, buffer, g_shell_unquote (buffer, NULL));
}
}
#endif
+9 -3
View File
@@ -35,7 +35,9 @@
#include <glib.h>
#ifdef HAVE_UNISTD_H
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <unistd.h>
#endif
@@ -64,13 +66,17 @@
#define NO_INTR(var,cmd) do { (var) = (cmd); } while ((var) == -1 && errno == EINTR)
#define CLOSE_PIPE(p) do { close (p [0]); close (p [1]); } while (0)
#ifdef __APPLE__
#if defined(__APPLE__) && !defined (__arm__)
/* Apple defines this in crt_externs.h but doesn't provide that header for
* arm-apple-darwin9. We'll manually define the symbol on Apple as it does
* in fact exist on all implementations (so far)
*/
gchar ***_NSGetEnviron();
#define environ (*_NSGetEnviron())
#elif defined(_MSC_VER)
/* MS defines this in stdlib.h */
#else
extern char **environ;
#endif
static int
@@ -377,10 +383,10 @@ g_spawn_async_with_pipes (const gchar *working_directory,
}
if (standard_input) {
dup2 (in_pipe [0], STDERR_FILENO);
dup2 (in_pipe [0], STDIN_FILENO);
} else if ((flags & G_SPAWN_CHILD_INHERITS_STDIN) == 0) {
fd = open ("/dev/null", O_RDONLY);
dup2 (fd, STDERR_FILENO);
dup2 (fd, STDIN_FILENO);
}
if ((flags & G_SPAWN_LEAVE_DESCRIPTORS_OPEN) != 0) {
+15
View File
@@ -63,6 +63,21 @@ g_strfreev (gchar **str_array)
g_free (orig);
}
gchar **
g_strdupv (gchar **str_array)
{
guint length;
gchar **ret;
guint i;
length = g_strv_length(str_array);
ret = g_new0(gchar *, length + 1);
for (i = 0; str_array[i]; i++) {
ret[i] = g_strdup(str_array[i]);
}
ret[length] = NULL;
return ret;
}
guint
g_strv_length(gchar **str_array)
{
+6 -2
View File
@@ -41,10 +41,14 @@ g_string_new_len (const gchar *init, gssize len)
{
GString *ret = g_new (GString, 1);
ret->len = len < 0 ? strlen(init) : len;
if (init == NULL)
ret->len = 0;
else
ret->len = len < 0 ? strlen(init) : len;
ret->allocated_len = MAX(ret->len + 1, 16);
ret->str = g_malloc(ret->allocated_len);
memcpy(ret->str, init, ret->len);
if (init)
memcpy(ret->str, init, ret->len);
ret->str[ret->len] = 0;
return ret;
+16 -13
View File
@@ -38,19 +38,21 @@
#include <glib.h>
#include <unicode-data.h>
#include <errno.h>
#ifdef _MSC_VER
/* FIXME */
#define CODESET 1
#include <Windows.h>
typedef int iconv_t;
#if defined(_MSC_VER) || defined(G_OS_WIN32)
/* FIXME */
# define CODESET 1
# include <windows.h>
# ifdef _MSC_VER
typedef int iconv_t;
# endif
#else
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif
#ifdef HAVE_ICONV_H
#include <iconv.h>
#endif
# ifdef HAVE_LANGINFO_H
# include <langinfo.h>
# endif
# ifdef HAVE_ICONV_H
# include <iconv.h>
# endif
#endif
static char *my_charset;
@@ -300,10 +302,11 @@ g_get_charset (G_CONST_RETURN char **charset)
is_utf8 = FALSE;
#else
if (my_charset == NULL){
/* These shouldn't be heap allocated */
#if HAVE_LANGINFO_H
my_charset = g_strdup (nl_langinfo (CODESET));
my_charset = nl_langinfo (CODESET);
#else
my_charset = g_strdup ("UTF-8");
my_charset = "UTF-8";
#endif
is_utf8 = strcmp (my_charset, "UTF-8") == 0;
}
+119 -96
View File
@@ -55,98 +55,6 @@ g_utf8_strdown (const gchar *str, gssize len)
return (gchar*)utf8_case_conv (str, len, FALSE);
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
for (in_pos = 0; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
static glong
utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **error)
{
@@ -156,13 +64,24 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
guint32 codepoint;
glong in_pos, ret;
mb_size = 0;
mb_remain = 0;
overlong = 0;
if (len < 0)
len = strlen (str);
in_pos = 0;
ret = 0;
for (in_pos = 0; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
/* Common case */
for (in_pos = 0; in_pos < len && str [in_pos] < 0x80; in_pos++)
ret ++;
if (in_pos == len)
return ret;
mb_size = 0;
mb_remain = 0;
overlong = 0;
for (; in_pos < len; in_pos++) {
ch = str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
@@ -271,6 +190,110 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
return ret;
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (len < 0)
len = strlen (str);
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
/* Common case */
for (in_pos = 0; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (ch >= 0x80)
break;
ret [out_pos++] = ch;
}
for (; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
gchar*
g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error)
{
+8 -13
View File
@@ -1,17 +1,12 @@
/
/Makefile.in
/configure
/libtool
/aclocal.m4
/Makefile
/config.h
/config.h.in
/config.status
/stamp-h1
/autom4te.cache
/Makefile.in
/.libs
/.deps
/test-glib
/*.lo
/*.la
/*.o
/semantic.cache
/.project
/.cproject
/test-eglib
/test-glib.exe
/test-eglib.exe
/test-glib
+1 -1
View File
@@ -30,7 +30,7 @@ SOURCES = \
test_eglib_SOURCES = $(SOURCES)
test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -I../src -DDRIVER_NAME=\"EGlib\"
test_eglib_LDADD = ../src/libeglib.la -ldl
test_eglib_LDADD = ../src/libeglib.la
run-eglib: all
./test-eglib
+1 -1
View File
@@ -3,7 +3,7 @@
#include <glib.h>
#include "test.h"
#define do_bad_test(s) do { char *r = markup_test (s); if (r == NULL) return FAILED ("Failed on test " # s); else free (r); } while (0)
#define do_bad_test(s) do { char *r = markup_test (s); if (r == NULL) return FAILED ("Failed on test " # s); else g_free (r); } while (0)
#define do_ok_test(s) do { char *r = markup_test (s); if (r != NULL) return FAILED ("Could not parse valid " # s); } while (0)
static char *
+1 -1
View File
@@ -94,7 +94,7 @@ test_buildpath ()
g_free (s);
/* Null */
s = g_build_path ("/", NULL);
s = g_build_path ("/", NULL, NULL);
if (s == NULL)
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
+41
View File
@@ -253,6 +253,46 @@ RESULT ptrarray_sort()
return OK;
}
RESULT ptrarray_remove_fast()
{
GPtrArray *array = g_ptr_array_new();
gchar *letters [] = { "A", "B", "C", "D", "E" };
if (g_ptr_array_remove_fast (array, NULL))
return FAILED ("Removing NULL succeeded");
g_ptr_array_add(array, letters[0]);
if (!g_ptr_array_remove_fast (array, letters[0]) || array->len != 0)
return FAILED ("Removing last element failed");
g_ptr_array_add(array, letters[0]);
g_ptr_array_add(array, letters[1]);
g_ptr_array_add(array, letters[2]);
g_ptr_array_add(array, letters[3]);
g_ptr_array_add(array, letters[4]);
if (!g_ptr_array_remove_fast (array, letters[0]) || array->len != 4)
return FAILED ("Removing first element failed");
if (array->pdata [0] != letters [4])
return FAILED ("First element wasn't replaced with last upon removal");
if (g_ptr_array_remove_fast (array, letters[0]))
return FAILED ("Succedeed removing a non-existing element");
if (!g_ptr_array_remove_fast (array, letters[3]) || array->len != 3)
return FAILED ("Failed removing \"D\"");
if (!g_ptr_array_remove_fast (array, letters[1]) || array->len != 2)
return FAILED ("Failed removing \"B\"");
if (array->pdata [0] != letters [4] || array->pdata [1] != letters [2])
return FAILED ("Last two elements are wrong");
g_ptr_array_free(array, TRUE);
return OK;
}
static Test ptrarray_tests [] = {
{"alloc", ptrarray_alloc},
{"for_iterate", ptrarray_for_iterate},
@@ -262,6 +302,7 @@ static Test ptrarray_tests [] = {
{"remove_index_fast", ptrarray_remove_index_fast},
{"remove", ptrarray_remove},
{"sort", ptrarray_sort},
{"remove_fast", ptrarray_remove_fast},
{NULL, NULL}
};
+34
View File
@@ -226,6 +226,39 @@ test_shell_argv3 ()
return OK;
}
// This was the 2.8 showstopper error
RESULT
test_shell_argv4 ()
{
GError *error;
gint argc;
gchar **argv;
gboolean ret;
char *str = "'/usr/bin/gnome-terminal' -e \"bash -c 'read -p \\\"Press any key to continue...\\\" -n1;'\"";
argv = NULL;
argc = 0;
error = NULL;
ret = g_shell_parse_argv (str, &argc, &argv, &error);
if (!ret)
return FAILED ("1. It should return TRUE");
if (argc != 3)
return FAILED ("2. argc was %d", argc);
if (argv == NULL)
return FAILED ("3. argv[0] was NULL");
if (error != NULL)
return FAILED ("4. error was set");
if (strcmp (argv [0], "/usr/bin/gnome-terminal"))
return FAILED ("5. Expected /usr/bin/gnome-terminal got %s", argv [0]);
if (strcmp (argv [1], "-e"))
return FAILED ("6. Expected -e, got: %s", argv [1]);
if (strcmp (argv [2], "bash -c 'read -p \"Press any key to continue...\" -n1;'"))
return FAILED ("7. Got unexpected result: %s\n", argv [2]);
return OK;
}
RESULT
test_quote ()
{
@@ -244,6 +277,7 @@ static Test shell_tests [] = {
{"g_shell_parse_argv1", test_shell_argv1},
{"g_shell_parse_argv2", test_shell_argv2},
{"g_shell_parse_argv3", test_shell_argv3},
{"g_shell_parse_argv4", test_shell_argv4},
{"g_shell_quote", test_quote},
{NULL, NULL}
};
+12
View File
@@ -47,6 +47,12 @@
extern gint global_passed, global_tests;
#ifndef HAVE_VASPRINTF
/* systen does not provide a vasprintf function, use the one
provided within eglib itself */
extern int vasprintf(char **ret, const char *format, va_list ap);
#endif
static gchar *last_result = NULL;
gboolean
@@ -171,6 +177,11 @@ FAILED(const gchar *format, ...)
va_list args;
gint n;
#if !defined(HAVE_VASPRINTF) && !defined(_EGLIB_MAJOR)
/* We are linked against the real glib, no vasprintf */
g_assert_not_reached ();
return NULL;
#else
va_start(args, format);
n = vasprintf(&ret, format, args);
va_end(args);
@@ -182,6 +193,7 @@ FAILED(const gchar *format, ...)
last_result = ret;
return ret;
#endif
}
gdouble
+2
View File
@@ -31,6 +31,8 @@
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#ifdef _MSC_VER
+2
View File
@@ -0,0 +1,2 @@
/BCC_MAKEFILE -crlf
/digimars.mak -crlf
+32
View File
@@ -1,3 +1,35 @@
2010-07-27 Geoff Norton <[email protected]>
* darwin_stop_world.c: Dont track unneeded registers for amd64.
2010-06-29 Geoff Norton <[email protected]>
* include/private/gc_locks.h: Implement armv6+ variants of
GC_test_and_set
2010-06-14 Geoff Norton <[email protected]>
* dyn_load.c: Fix one other place where l_addr could be null on
bionic.
2010-05-31 Geoff Norton <[email protected]>
* dyn_load.c: Its possible for linkmap->l_addr to be null for the
linker entry on some systems (Android/Bionic based libc's)
2010-04-23 Geoff Norton <[email protected]>
* include/private/gcconfig.h: Darwin x86-64 bit support.
* darwin_stop_world.c: Ditto
2010-04-19 Jonathan Pryor <[email protected]>
* 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.
2010-03-09 Zoltan Varga <[email protected]>
* include/private/gc_locks.h: Fix amd64 build with newer gcc's.
+7 -1
View File
@@ -84,7 +84,7 @@ case "$THREADS" in
;;
posix | pthreads)
THREADS=posix
THREADDLLIBS=-lpthread
AC_CHECK_LIB(pthread, pthread_self, THREADDLLIBS="-lpthread",,)
case "$host" in
x86-*-linux* | ia64-*-linux* | i386-*-linux* | i486-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha*-*-linux* | s390*-*-linux* | sparc*-*-linux* | powerpc-*-linux*)
AC_DEFINE(GC_LINUX_THREADS)
@@ -489,6 +489,7 @@ if test "${enable_gc_assertions}" = yes; then
AC_DEFINE(GC_ASSERTIONS)
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
if test "${multilib}" = "yes"; then
@@ -497,6 +498,11 @@ else
multilib_arg=
fi
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find . -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT(Makefile
include/Makefile
include/private/Makefile
+22 -2
View File
@@ -89,6 +89,9 @@ void GC_push_all_stacks() {
#elif defined(ARM)
arm_thread_state_t state;
mach_msg_type_number_t thread_state_count = ARM_THREAD_STATE_COUNT;
#elif defined(X86_64)
x86_thread_state64_t state;
mach_msg_type_number_t thread_state_count = x86_THREAD_STATE64_COUNT;
#else
# error FIXME for non-x86 || ppc architectures
mach_msg_type_number_t thread_state_count = MACHINE_THREAD_STATE_COUNT;
@@ -109,7 +112,7 @@ void GC_push_all_stacks() {
GC_MACH_THREAD_STATE_FLAVOR,
(natural_t*)&state,
&thread_state_count);
if(r != KERN_SUCCESS) ABORT("thread_get_state failed");
if(r != KERN_SUCCESS) continue;
#if defined(I386)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
@@ -134,8 +137,25 @@ void GC_push_all_stacks() {
GC_push_one(state.esi);
GC_push_one(state.ebp);
#endif
#elif defined(X86_64)
lo = state.__rsp;
GC_push_one(state.__rax);
GC_push_one(state.__rbx);
GC_push_one(state.__rcx);
GC_push_one(state.__rdx);
GC_push_one(state.__rdi);
GC_push_one(state.__rsi);
GC_push_one(state.__rbp);
GC_push_one(state.__r8);
GC_push_one(state.__r9);
GC_push_one(state.__r10);
GC_push_one(state.__r11);
GC_push_one(state.__r12);
GC_push_one(state.__r13);
GC_push_one(state.__r14);
GC_push_one(state.__r15);
#elif defined(POWERPC)
#if defined(_STRUCT_PPC_EXCEPTION_STATE)
#if defined(_STRUCT_PPC_EXCEPTION_STATE) && defined(__DARWIN_UNIX03)
lo = (void*)(state.__r1 - PPC_RED_ZONE_SIZE);
GC_push_one(state.__r0);
+8 -2
View File
@@ -250,7 +250,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
e = (ElfW(Ehdr) *) lm->l_addr;
e = (ElfW(Ehdr) *) lm->l_addr;
if (e == NULL)
continue;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {
@@ -544,7 +547,10 @@ void GC_register_dynamic_libraries()
char * start;
register int i;
e = (ElfW(Ehdr) *) lm->l_addr;
e = (ElfW(Ehdr) *) lm->l_addr;
if (e == NULL)
continue;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
offset = ((unsigned long)(lm->l_addr));
for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {
+14
View File
@@ -224,6 +224,19 @@
# endif /* ALPHA */
# ifdef ARM32
inline static int GC_test_and_set(volatile unsigned int *addr) {
#if defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7__)
int ret, tmp;
__asm__ __volatile__ (
"1:\n"
"ldrex %0, [%3]\n"
"strex %1, %2, [%3]\n"
"teq %1, #0\n"
"bne 1b\n"
: "=&r" (ret), "=&r" (tmp)
: "r" (1), "r" (addr)
: "memory", "cc");
return ret;
#else
int oldval;
/* SWP on ARM is very similar to XCHG on x86. Doesn't lock the
* bus because there are no SMP ARM machines. If/when there are,
@@ -234,6 +247,7 @@
: "r"(1), "r"(addr)
: "memory");
return oldval;
#endif
}
# define GC_TEST_AND_SET_DEFINED
# endif /* ARM32 */
+40 -13
View File
@@ -332,6 +332,9 @@
# define mach_type_known
# define DARWIN_DONT_PARSE_STACK
# define GC_DONT_REGISTER_MAIN_STATIC_DATA
# elif defined(__x86_64)
# define X86_64
# define mach_type_known
# endif
# endif
# if defined(NeXT) && defined(mc68000)
@@ -405,18 +408,18 @@
# else
# if (defined(_MSDOS) || defined(_MSC_VER)) && (_M_IX86 >= 300) \
|| defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
# if defined(__LP64__) || defined(_WIN64)
# define X86_64
# else
# define I386
# endif
# define MSWIN32 /* or Win64 */
# define mach_type_known
# endif
# if defined(_MSC_VER) && defined(_M_IA64)
# define IA64
# define MSWIN32 /* Really win64, but we don't treat 64-bit */
/* variants as a differnt platform. */
# if defined(__LP64__) || defined(_WIN64)
# define X86_64
# else
# define I386
# endif
# define MSWIN32 /* or Win64 */
# define mach_type_known
# endif
# if defined(_MSC_VER) && defined(_M_IA64)
# define IA64
# define MSWIN32 /* Really win64, but we don't treat 64-bit */
/* variants as a differnt platform. */
# endif
# endif
# if defined(__DJGPP__)
@@ -710,6 +713,9 @@
# if defined(__GLIBC__)&& __GLIBC__>=2
# define SEARCH_FOR_DATA_START
# else /* !GLIBC2 */
# if defined(PLATFORM_ANDROID)
# define __environ environ
# endif
extern char **__environ;
# define DATASTART ((ptr_t)(&__environ))
/* hideous kludge: __environ is the first */
@@ -802,7 +808,7 @@
# define STACKBOTTOM ((ptr_t) LMGetCurStackBase())
# define DATAEND /* not needed */
# endif
# ifdef LINUX
# if defined(__powerpc64__)
# define ALIGNMENT 8
@@ -2034,6 +2040,27 @@
# define PREFETCH_FOR_WRITE(x) __builtin_prefetch((x), 1)
# endif
# endif
# ifdef DARWIN
# define OS_TYPE "DARWIN"
# define DARWIN_DONT_PARSE_STACK
# define DYNAMIC_LOADING
/* XXX: see get_end(3), get_etext() and get_end() should not be used.
These aren't used when dyld support is enabled (it is by default) */
# define DATASTART ((ptr_t) get_etext())
# define DATAEND ((ptr_t) get_end())
# define STACKBOTTOM ((ptr_t) 0x7fff5fc00000)
# ifndef USE_MMAP
# define USE_MMAP
# endif
# define USE_MMAP_ANON
# ifdef GC_DARWIN_THREADS
# define MPROTECT_VDB
# endif
# include <unistd.h>
# define GETPAGESIZE() getpagesize()
/* There seems to be some issues with trylock hanging on darwin. This
should be looked into some more */
# endif
# ifdef FREEBSD
# define OS_TYPE "FREEBSD"
# ifndef GC_FREEBSD_THREADS
+2
View File
@@ -1061,6 +1061,8 @@ void GC_thr_init()
GC_markers = atoi(markers_string);
} else {
GC_markers = GC_nprocs;
if (GC_markers > MAX_MARKERS)
GC_markers = MAX_MARKERS;
}
}
# endif
+4 -4
View File
@@ -385,10 +385,10 @@ void GC_push_all_stacks()
# define PUSH4(r1,r2,r3,r4) PUSH2(r1,r2), PUSH2(r3,r4)
# if defined(I386)
PUSH4(Edi,Esi,Ebx,Edx), PUSH2(Ecx,Eax), PUSH1(Ebp);
sp = (ptr_t)context.Esp;
# elif defined(X86_64)
PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Esp;
# elif defined(X86_64)
PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Rsp;
# elif defined(ARM32)
PUSH4(R0,R1,R2,R3),PUSH4(R4,R5,R6,R7),PUSH4(R8,R9,R10,R11),PUSH1(R12);
+21
View File
@@ -1,3 +1,24 @@
2010-08-03 Andrés G. Aragoneses <[email protected]>
* monolinker.1: Add the name="..." notation to the field examples too
(besides the signature="..." one).
2010-07-12 Rolf Bjarne Kvinge <[email protected]>
* mono.1: Document MONO_DEBUG's new reverse-pinvoke-exceptions option.
2010-04-23 Miguel de Icaza <[email protected]>
* mono.1: Sort environment variables, update a couple of docs.
2010-04-07 Andrés G. Aragoneses <[email protected]>
* monolinker.1: Fix typo.
2010-04-01 Sebastien Pouliot <[email protected]>
* mono.1: Document the new "security" option for logging
2010-03-26 Zoltan Varga <[email protected]>
* mono.1: Document the MONO_ENABLE_SHM env variable.
+3 -1
View File
@@ -33,6 +33,7 @@ man_MANS = \
monodocs2html.1 \
monolinker.1 \
monop.1 \
mono-api-info.1 \
mono-service.1 \
mono-shlib-cop.1 \
mono-xmltool.1 \
@@ -51,6 +52,7 @@ man_MANS = \
wsdl.1 \
xbuild.1 \
xsd.1 \
mono-configuration-crypto.1
mono-configuration-crypto.1 \
ccrewrite.1
EXTRA_DIST = $(man_MANS)
Loaded 100 of 6723 files, more files were not shown because too many files have changed in this diff. Show more