Compare commits

...
1111 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
2367 changed files with 123817 additions and 22719 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.
+9
View File
@@ -1,3 +1,12 @@
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.
+5 -3
View File
@@ -1,10 +1,10 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
MOONLIGHT_SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data
MOONLIGHT_SUBDIRS = $(libgc_dir) eglib mono $(ikvm_native_dir) data
if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native data runtime scripts man samples web tools msvc docs
@@ -12,7 +12,7 @@ else
if ONLY_MOONLIGHT
SUBDIRS = $(MOONLIGHT_SUBDIRS) runtime
else
SUBDIRS = po $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples web msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = po libgc eglib mono ikvm-native support data runtime scripts man samples web tools msvc docs
@@ -24,9 +24,11 @@ EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LIC
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
+11
View File
@@ -473,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
=============
@@ -557,3 +566,5 @@ This is Mono.
directory is automatically configured to share the
same prefix than this module gets.
+40 -43
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
@@ -67,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*)
@@ -156,7 +157,7 @@ case "$host" in
;;
*-*-*openbsd*)
host_win32=no
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
@@ -182,6 +183,21 @@ case "$host" in
AOT_SUPPORTED="yes"
use_sigposix=yes
;;
*-*-nacl*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
libmono_cflags="-D_REENTRANT"
libdl=
libgc_threads=pthreads
AOT_SUPPORTED="yes"
gc_default=boehm
use_sigposix=yes
ikvm_native=no
AC_DEFINE(DISABLE_SOCKETS,1,[Disable sockets support])
;;
*-*-hpux*)
host_win32=no
CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
@@ -350,7 +366,7 @@ fi
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h)
AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h)
AC_CHECK_HEADERS(sys/user.h, [], [],
@@ -549,8 +565,6 @@ AC_ARG_WITH([glib],
[ --with-glib=embedded|system Choose glib API: system or embedded (default to embedded)],
[], [with_glib=embedded])
eglib_dir=
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
@@ -562,39 +576,13 @@ embedded)
BUILD_GLIB_LIBS="$GLIB_LIBS"
GMODULE_CFLAGS="$GLIB_CFLAGS"
GMODULE_LIBS="$GLIB_LIBS"
eglib_dir=eglib
;;
system)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo "cross_compiling=$cross_compiling"
BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
## Versions of dependencies
GLIB_REQUIRED_VERSION=2.4.0
dnl
dnl No, you will not replace this check with a pkg.m4 check
dnl
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
else
AC_MSG_ERROR([You need at least glib-2.0 $GLIB_REQUIRED_VERSION])
fi
AC_MSG_ERROR([--with-glib=system is no longer supported as of Mono 2.8])
;;
*)
AC_MSG_ERROR([Invalid argument to --with-glib.])
esac
AM_CONDITIONAL(EGLIB_BUILD, test x$with_glib = xembedded)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
@@ -602,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)
@@ -985,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
@@ -2000,6 +1987,22 @@ 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 **************
@@ -2126,7 +2129,7 @@ case "$host" in
haiku*)
LIBC=libroot.so
;;
linux*|darwin*)
linux*|darwin*|openbsd*)
sgen_supported=true
;;
esac
@@ -2137,7 +2140,7 @@ case "$host" in
JIT_SUPPORTED=yes
jit_wanted=true
case $host_os in
linux*|darwin*)
linux*|darwin*|openbsd*)
sgen_supported=true
;;
esac
@@ -2911,7 +2914,7 @@ fi
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
fi
if test x$TARGET = xAMD64 -a x$host_win32 = xno -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
if test x$host_win32 = xno -a x$platform_darwin != xyes -a "x$AOT_SUPPORTED" = "xyes" -a x$enable_system_aot = xyes; then
echo "ENABLE_AOT = 1" >> $mcs_topdir/build/config.make
fi
@@ -2972,9 +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$enable_llvm = xyes; then
echo IMPORTANT:
echo IMPORTANT: The LLVM Back End is experimental and has known problems.
echo IMPORTANT:
fi
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation (.NET Framework 3.5 compatibility)
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
+5 -2
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]
+1
View File
@@ -0,0 +1 @@
/Compat.browser -crlf
File diff suppressed because it is too large. Load diff
+2
View File
@@ -4,9 +4,11 @@ monodir = $(sysconfdir)/mono/4.0
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
+9 -9
View File
@@ -74,15 +74,15 @@
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+1
View File
@@ -76,6 +76,7 @@
<!--
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
<!--
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
+1
View File
@@ -8,3 +8,4 @@
/mono-file-formats.zip
/mono-tools.tree
/mono-tools.zip
/AgilityPack.dll*
+30
View File
@@ -0,0 +1,30 @@
/EncodingFoundException.cs -crlf
/HtmlAttribute.cs -crlf
/HtmlAttributeCollection.cs -crlf
/HtmlCmdLine.cs -crlf
/HtmlCommentNode.cs -crlf
/HtmlConsoleListener.cs -crlf
/HtmlDocument.cs -crlf
/HtmlElementFlag.cs -crlf
/HtmlEntity.cs -crlf
/HtmlNameTable.cs -crlf
/HtmlNode.cs -crlf
/HtmlNodeCollection.cs -crlf
/HtmlNodeNavigator.cs -crlf
/HtmlNodeType.cs -crlf
/HtmlParseError.cs -crlf
/HtmlParseErrorCode.cs -crlf
/HtmlTextNode.cs -crlf
/HtmlWeb.cs -crlf
/HtmlWebException.cs -crlf
/IOLibrary.cs -crlf
/LICENSE -crlf
/MixedCodeDocument.cs -crlf
/MixedCodeDocumentCodeFragment.cs -crlf
/MixedCodeDocumentFragment.cs -crlf
/MixedCodeDocumentFragmentList.cs -crlf
/MixedCodeDocumentFragmentType.cs -crlf
/MixedCodeDocumentTextFragment.cs -crlf
/NameValuePair.cs -crlf
/NameValuePairList.cs -crlf
/crc32.cs -crlf
+26
View File
@@ -1,3 +1,29 @@
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.
+23 -8
View File
@@ -49,6 +49,12 @@ case $host in
;;
esac
case $host in
*-*-solaris*)
CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
;;
esac
case $target in
arm*-darwin*)
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
@@ -72,7 +78,7 @@ AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_FUNCS(strndup strlcpy getpwent_r strtok_r rewinddir vasprintf)
AC_CHECK_FUNCS(strndup strlcpy getpwuid_r strtok_r rewinddir vasprintf)
AM_CONDITIONAL(NEED_VASPRINTF, test x$have_vasprintf = x )
AC_CHECK_LIB(iconv, iconv_open, LIBS="$LIBS -liconv")
AC_CHECK_LIB(iconv, libiconv_open, LIBS="$LIBS -liconv")
@@ -114,6 +120,7 @@ if test $ac_cv_sizeof_void_p != $ac_cv_sizeof_int; then
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
G_GINT64_FORMAT='"ld"'
else
GPOINTER_TO_INT="((gint) (ptr))"
GPOINTER_TO_UINT="((guint) (ptr))"
@@ -122,12 +129,10 @@ else
GSIZE="int"
GSIZE_FORMAT='"u"'
G_GUINT64_FORMAT='"llu"'
G_GINT64_FORMAT='"lld"'
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
pkg_config_path=
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Change pkg-config dir to custom dir],
@@ -145,13 +150,17 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
dnl
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
have_glib=false
if test "x$PKG_CONFIG" != "xno"; then
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet runtime build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
AC_SUBST(GINT_TO_POINTER)
@@ -159,6 +168,12 @@ AC_SUBST(GUINT_TO_POINTER)
AC_SUBST(GSIZE)
AC_SUBST(GSIZE_FORMAT)
AC_SUBST(G_GUINT64_FORMAT)
AC_SUBST(G_GINT64_FORMAT)
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find src test -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT([
Makefile
+1
View File
@@ -8,3 +8,4 @@
/semantic.cache
/.project
/.cproject
/eglib-config.h
+9
View File
@@ -24,9 +24,18 @@ typedef signed @GSIZE@ gssize;
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
#define G_GINT64_FORMAT @G_GINT64_FORMAT@
#if @G_HAVE_ISO_VARARGS@ == 1
#define G_HAVE_ISO_VARARGS
#endif
#if defined (__native_client__)
#define sem_trywait(x) sem_wait(x)
#define sem_timedwait(x,y) sem_wait(x)
#define getdtablesize() (32768)
#undef G_BREAKPOINT
#define G_BREAKPOINT()
#endif
#endif
+2
View File
@@ -27,6 +27,7 @@ typedef int pid_t;
#define G_SEARCHPATH_SEPARATOR ';'
#define G_GSIZE_FORMAT "d"
#define G_GUINT64_FORMAT "d"
#define G_GINT64_FORMAT "d"
#define GPOINTER_TO_INT(ptr) ((gint)(intptr_t) (ptr))
#define GPOINTER_TO_UINT(ptr) ((guint)(intptr_t) (ptr))
#define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
@@ -37,6 +38,7 @@ typedef int pid_t;
#define INT64_MAX 9223372036854775807i64
#define INT64_MIN (~INT64_MAX)
#define UINT32_MAX 0xffffffffU
#define UINT64_MAX 0xffffffffffffffffULL
#define STDOUT_FILENO (int)(intptr_t)stdout
#define STDERR_FILENO (int)(intptr_t)stderr
+3
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,6 +100,7 @@
#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
@@ -166,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
+21
View File
@@ -479,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)
{
+7 -1
View File
@@ -100,6 +100,7 @@ typedef int32_t gboolean;
#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
@@ -200,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);
@@ -606,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
+7 -15
View File
@@ -26,6 +26,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <config.h>
#include <stdlib.h>
#include <glib.h>
#include <pthread.h>
@@ -81,27 +82,18 @@ g_get_home_dir (void)
if (home_dir == NULL){
pthread_mutex_lock (&home_lock);
if (home_dir == NULL){
#ifdef HAVE_GETPWENT_R
struct passwd pwbuf, *track;
#ifdef HAVE_GETPWUID_R
struct passwd pw;
struct passwd *result;
char buf [4096];
uid_t uid;
uid = getuid ();
setpwent ();
while (getpwent_r (&pwbuf, buf, sizeof (buf), &track) == 0){
if (pwbuf.pw_uid == uid){
home_dir = g_strdup (pwbuf.pw_dir);
break;
}
}
endpwent ();
if (getpwuid_r (getuid (), &pw, buf, 4096, &result) == 0)
home_dir = g_strdup (pw.pw_dir);
#endif
if (home_dir == NULL)
home_dir = g_getenv ("HOME");
pthread_mutex_unlock (&home_lock);
}
pthread_mutex_unlock (&home_lock);
}
return home_dir;
}
+5
View File
@@ -51,6 +51,11 @@ g_getenv(const gchar *variable)
retval = GetEnvironmentVariableW (var, buffer, buffer_size);
}
val = u16to8 (buffer);
} else {
if (GetLastError () != ERROR_ENVVAR_NOT_FOUND){
val = g_malloc (1);
*val = 0;
}
}
g_free(var);
g_free(buffer);
+38
View File
@@ -31,6 +31,42 @@
#include <glib.h>
#include <gmodule.h>
#if defined(__native_client__)
GModule *
g_module_open (const gchar *file, GModuleFlags flags)
{
printf("dlopen() not supported on Native Client.\n");
return NULL;
}
gboolean
g_module_symbol (GModule *module, const gchar *symbol_name, gpointer *symbol)
{
return FALSE;
}
const gchar*
g_module_error(void)
{
return "dlopen not supported on Native Client.";
}
gboolean
g_module_close (GModule *module)
{
return FALSE;
}
gchar*
g_module_build_path (const gchar *directory, const gchar *module_name)
{
return NULL;
}
#else
#ifdef G_OS_UNIX
#include <dlfcn.h>
@@ -286,3 +322,5 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
#endif /* __native_client__ */
+1
View File
@@ -153,5 +153,6 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
g_assert_not_reached ();
}
+17 -9
View File
@@ -33,7 +33,6 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
{
gchar *ptr;
gchar c;
gboolean in_quote = FALSE;
gboolean escaped = FALSE;
gchar quote_char = '\0';
GString *str;
@@ -42,18 +41,28 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
ptr = (gchar *) cmdline;
while ((c = *ptr++) != '\0') {
if (escaped) {
escaped = FALSE;
if (!g_ascii_isspace (c))
/*
* \CHAR is only special inside a double quote if CHAR is
* one of: $`"\ and newline
*/
if (quote_char == '\"'){
if (!(c == '$' || c == '`' || c == '"' || c == '\\'))
g_string_append_c (str, '\\');
g_string_append_c (str, c);
} else if (in_quote) {
} else {
if (!g_ascii_isspace (c))
g_string_append_c (str, c);
}
escaped = FALSE;
} else if (quote_char) {
if (c == quote_char) {
in_quote = FALSE;
quote_char = '\0';
g_ptr_array_add (array, g_string_free (str, FALSE));
str = g_string_new ("");
} else {
} else if (c == '\\'){
escaped = TRUE;
} else
g_string_append_c (str, c);
}
} else if (g_ascii_isspace (c)) {
if (str->len > 0) {
g_ptr_array_add (array, g_string_free (str, FALSE));
@@ -62,7 +71,6 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
} else if (c == '\\') {
escaped = TRUE;
} else if (c == '\'' || c == '"') {
in_quote = TRUE;
quote_char = c;
} else {
g_string_append_c (str, c);
@@ -76,7 +84,7 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **error)
return -1;
}
if (in_quote) {
if (quote_char) {
if (error)
*error = g_error_new (G_LOG_DOMAIN, 0, "Unfinished quote.");
g_string_free (str, TRUE);
+5 -3
View File
@@ -35,7 +35,9 @@
#include <glib.h>
#ifdef HAVE_UNISTD_H
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <unistd.h>
#endif
@@ -64,7 +66,7 @@
#define NO_INTR(var,cmd) do { (var) = (cmd); } while ((var) == -1 && errno == EINTR)
#define CLOSE_PIPE(p) do { close (p [0]); close (p [1]); } while (0)
#ifdef __APPLE__
#if defined(__APPLE__) && !defined (__arm__)
/* Apple defines this in crt_externs.h but doesn't provide that header for
* arm-apple-darwin9. We'll manually define the symbol on Apple as it does
* in fact exist on all implementations (so far)
@@ -381,10 +383,10 @@ g_spawn_async_with_pipes (const gchar *working_directory,
}
if (standard_input) {
dup2 (in_pipe [0], STDERR_FILENO);
dup2 (in_pipe [0], STDIN_FILENO);
} else if ((flags & G_SPAWN_CHILD_INHERITS_STDIN) == 0) {
fd = open ("/dev/null", O_RDONLY);
dup2 (fd, STDERR_FILENO);
dup2 (fd, STDIN_FILENO);
}
if ((flags & G_SPAWN_LEAVE_DESCRIPTORS_OPEN) != 0) {
+3 -2
View File
@@ -302,10 +302,11 @@ g_get_charset (G_CONST_RETURN char **charset)
is_utf8 = FALSE;
#else
if (my_charset == NULL){
/* These shouldn't be heap allocated */
#if HAVE_LANGINFO_H
my_charset = g_strdup (nl_langinfo (CODESET));
my_charset = nl_langinfo (CODESET);
#else
my_charset = g_strdup ("UTF-8");
my_charset = "UTF-8";
#endif
is_utf8 = strcmp (my_charset, "UTF-8") == 0;
}
+119 -96
View File
@@ -55,98 +55,6 @@ g_utf8_strdown (const gchar *str, gssize len)
return (gchar*)utf8_case_conv (str, len, FALSE);
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
for (in_pos = 0; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
static glong
utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **error)
{
@@ -156,13 +64,24 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
guint32 codepoint;
glong in_pos, ret;
mb_size = 0;
mb_remain = 0;
overlong = 0;
if (len < 0)
len = strlen (str);
in_pos = 0;
ret = 0;
for (in_pos = 0; len < 0 ? str [in_pos] : in_pos < len; in_pos++) {
/* Common case */
for (in_pos = 0; in_pos < len && str [in_pos] < 0x80; in_pos++)
ret ++;
if (in_pos == len)
return ret;
mb_size = 0;
mb_remain = 0;
overlong = 0;
for (; in_pos < len; in_pos++) {
ch = str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
@@ -271,6 +190,110 @@ utf8_to_utf16_len (const gchar *str, glong len, glong *items_read, GError **erro
return ret;
}
gunichar2*
g_utf8_to_utf16 (const gchar *str, glong len, glong *items_read, glong *items_written, GError **error)
{
/* The conversion logic is almost identical to UTF8Encoding.GetChars(),
but error check is always done at utf8_to_utf16_len() so that
the conversion core below simply resets erroreous bits */
glong utf16_len;
gunichar2 *ret;
guchar ch, mb_size, mb_remain;
guint32 codepoint;
glong in_pos, out_pos;
utf16_len = 0;
mb_size = 0;
mb_remain = 0;
in_pos = 0;
out_pos = 0;
if (error)
*error = NULL;
if (len < 0)
len = strlen (str);
if (items_written)
*items_written = 0;
utf16_len = utf8_to_utf16_len (str, len, items_read, error);
if (error)
if (*error)
return NULL;
if (utf16_len < 0)
return NULL;
ret = g_malloc ((1 + utf16_len) * sizeof (gunichar2));
/* Common case */
for (in_pos = 0; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (ch >= 0x80)
break;
ret [out_pos++] = ch;
}
for (; in_pos < len; in_pos++) {
ch = (guchar) str [in_pos];
if (mb_size == 0) {
if (ch < 0x80)
ret [out_pos++] = ch;
else if ((ch & 0xE0) == 0xC0) {
codepoint = ch & 0x1F;
mb_size = 2;
} else if ((ch & 0xF0) == 0xE0) {
codepoint = ch & 0x0F;
mb_size = 3;
} else if ((ch & 0xF8) == 0xF0) {
codepoint = ch & 7;
mb_size = 4;
} else if ((ch & 0xFC) == 0xF8) {
codepoint = ch & 3;
mb_size = 5;
} else if ((ch & 0xFE) == 0xFC) {
codepoint = ch & 3;
mb_size = 6;
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
if (mb_size > 1)
mb_remain = mb_size - 1;
} else {
if ((ch & 0xC0) == 0x80) {
codepoint = (codepoint << 6) | (ch & 0x3F);
if (--mb_remain == 0) {
/* multi byte character is fully consumed now. */
if (codepoint < 0x10000) {
ret [out_pos++] = (gunichar2)(codepoint % 0x10000);
} else if (codepoint < 0x110000) {
/* surrogate pair */
codepoint -= 0x10000;
ret [out_pos++] = (gunichar2)((codepoint >> 10) + 0xD800);
ret [out_pos++] = (gunichar2)((codepoint & 0x3FF) + 0xDC00);
} else {
/* invalid utf-8 sequence (excess) */
codepoint = 0;
mb_remain = 0;
}
mb_size = 0;
}
} else {
/* invalid utf-8 sequence */
codepoint = 0;
mb_remain = mb_size = 0;
}
}
}
ret [out_pos] = 0;
if (items_written)
*items_written = out_pos;
return ret;
}
gchar*
g_utf16_to_utf8 (const gunichar2 *str, glong len, glong *items_read, glong *items_written, GError **error)
{
+2
View File
@@ -8,3 +8,5 @@
/semantic.cache
/.project
/.cproject
/test-eglib
/test-glib
+1 -1
View File
@@ -3,7 +3,7 @@
#include <glib.h>
#include "test.h"
#define do_bad_test(s) do { char *r = markup_test (s); if (r == NULL) return FAILED ("Failed on test " # s); else free (r); } while (0)
#define do_bad_test(s) do { char *r = markup_test (s); if (r == NULL) return FAILED ("Failed on test " # s); else g_free (r); } while (0)
#define do_ok_test(s) do { char *r = markup_test (s); if (r != NULL) return FAILED ("Could not parse valid " # s); } while (0)
static char *
+1 -1
View File
@@ -94,7 +94,7 @@ test_buildpath ()
g_free (s);
/* Null */
s = g_build_path ("/", NULL);
s = g_build_path ("/", NULL, NULL);
if (s == NULL)
return FAILED ("must get a non-NULL return");
if (s [0] != 0)
+34
View File
@@ -226,6 +226,39 @@ test_shell_argv3 ()
return OK;
}
// This was the 2.8 showstopper error
RESULT
test_shell_argv4 ()
{
GError *error;
gint argc;
gchar **argv;
gboolean ret;
char *str = "'/usr/bin/gnome-terminal' -e \"bash -c 'read -p \\\"Press any key to continue...\\\" -n1;'\"";
argv = NULL;
argc = 0;
error = NULL;
ret = g_shell_parse_argv (str, &argc, &argv, &error);
if (!ret)
return FAILED ("1. It should return TRUE");
if (argc != 3)
return FAILED ("2. argc was %d", argc);
if (argv == NULL)
return FAILED ("3. argv[0] was NULL");
if (error != NULL)
return FAILED ("4. error was set");
if (strcmp (argv [0], "/usr/bin/gnome-terminal"))
return FAILED ("5. Expected /usr/bin/gnome-terminal got %s", argv [0]);
if (strcmp (argv [1], "-e"))
return FAILED ("6. Expected -e, got: %s", argv [1]);
if (strcmp (argv [2], "bash -c 'read -p \"Press any key to continue...\" -n1;'"))
return FAILED ("7. Got unexpected result: %s\n", argv [2]);
return OK;
}
RESULT
test_quote ()
{
@@ -244,6 +277,7 @@ static Test shell_tests [] = {
{"g_shell_parse_argv1", test_shell_argv1},
{"g_shell_parse_argv2", test_shell_argv2},
{"g_shell_parse_argv3", test_shell_argv3},
{"g_shell_parse_argv4", test_shell_argv4},
{"g_shell_quote", test_quote},
{NULL, NULL}
};
+6
View File
@@ -177,6 +177,11 @@ FAILED(const gchar *format, ...)
va_list args;
gint n;
#if !defined(HAVE_VASPRINTF) && !defined(_EGLIB_MAJOR)
/* We are linked against the real glib, no vasprintf */
g_assert_not_reached ();
return NULL;
#else
va_start(args, format);
n = vasprintf(&ret, format, args);
va_end(args);
@@ -188,6 +193,7 @@ FAILED(const gchar *format, ...)
last_result = ret;
return ret;
#endif
}
gdouble
+2
View File
@@ -0,0 +1,2 @@
/BCC_MAKEFILE -crlf
/digimars.mak -crlf
+4
View File
@@ -1,3 +1,7 @@
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
+6
View File
@@ -489,6 +489,7 @@ if test "${enable_gc_assertions}" = yes; then
AC_DEFINE(GC_ASSERTIONS)
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
if test "${multilib}" = "yes"; then
@@ -497,6 +498,11 @@ else
multilib_arg=
fi
if test x$enable_quiet_build = xyes; then
AC_CONFIG_COMMANDS([quiet], [for i in `find . -name Makefile.in | sed -e 's/Makefile.in/Makefile/g'`; do if test -f $i; then $srcdir/../scripts/patch-quiet.sh $i; fi; done], [shell=$SHELL])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/$echo "copying selected/$show "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
fi
AC_OUTPUT(Makefile
include/Makefile
include/private/Makefile
-6
View File
@@ -146,7 +146,6 @@ void GC_push_all_stacks() {
GC_push_one(state.__rdi);
GC_push_one(state.__rsi);
GC_push_one(state.__rbp);
GC_push_one(state.__rsp);
GC_push_one(state.__r8);
GC_push_one(state.__r9);
GC_push_one(state.__r10);
@@ -155,11 +154,6 @@ void GC_push_all_stacks() {
GC_push_one(state.__r13);
GC_push_one(state.__r14);
GC_push_one(state.__r15);
GC_push_one(state.__rip);
GC_push_one(state.__rflags);
GC_push_one(state.__cs);
GC_push_one(state.__fs);
GC_push_one(state.__gs);
#elif defined(POWERPC)
#if defined(_STRUCT_PPC_EXCEPTION_STATE) && defined(__DARWIN_UNIX03)
lo = (void*)(state.__r1 - PPC_RED_ZONE_SIZE);
+13 -13
View File
@@ -408,18 +408,18 @@
# else
# if (defined(_MSDOS) || defined(_MSC_VER)) && (_M_IX86 >= 300) \
|| defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
# if defined(__LP64__) || defined(_WIN64)
# define X86_64
# else
# define I386
# endif
# define MSWIN32 /* or Win64 */
# define mach_type_known
# endif
# if defined(_MSC_VER) && defined(_M_IA64)
# define IA64
# define MSWIN32 /* Really win64, but we don't treat 64-bit */
/* variants as a differnt platform. */
# if defined(__LP64__) || defined(_WIN64)
# define X86_64
# else
# define I386
# endif
# define MSWIN32 /* or Win64 */
# define mach_type_known
# endif
# if defined(_MSC_VER) && defined(_M_IA64)
# define IA64
# define MSWIN32 /* Really win64, but we don't treat 64-bit */
/* variants as a differnt platform. */
# endif
# endif
# if defined(__DJGPP__)
@@ -808,7 +808,7 @@
# define STACKBOTTOM ((ptr_t) LMGetCurStackBase())
# define DATAEND /* not needed */
# endif
# ifdef LINUX
# if defined(__powerpc64__)
# define ALIGNMENT 8
+2
View File
@@ -1061,6 +1061,8 @@ void GC_thr_init()
GC_markers = atoi(markers_string);
} else {
GC_markers = GC_nprocs;
if (GC_markers > MAX_MARKERS)
GC_markers = MAX_MARKERS;
}
}
# endif
+4 -4
View File
@@ -385,10 +385,10 @@ void GC_push_all_stacks()
# define PUSH4(r1,r2,r3,r4) PUSH2(r1,r2), PUSH2(r3,r4)
# if defined(I386)
PUSH4(Edi,Esi,Ebx,Edx), PUSH2(Ecx,Eax), PUSH1(Ebp);
sp = (ptr_t)context.Esp;
# elif defined(X86_64)
PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Esp;
# elif defined(X86_64)
PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Rsp;
# elif defined(ARM32)
PUSH4(R0,R1,R2,R3),PUSH4(R4,R5,R6,R7),PUSH4(R8,R9,R10,R11),PUSH1(R12);
+5
View File
@@ -1,3 +1,8 @@
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.
+3 -1
View File
@@ -33,6 +33,7 @@ man_MANS = \
monodocs2html.1 \
monolinker.1 \
monop.1 \
mono-api-info.1 \
mono-service.1 \
mono-shlib-cop.1 \
mono-xmltool.1 \
@@ -51,6 +52,7 @@ man_MANS = \
wsdl.1 \
xbuild.1 \
xsd.1 \
mono-configuration-crypto.1
mono-configuration-crypto.1 \
ccrewrite.1
EXTRA_DIST = $(man_MANS)
+67
View File
@@ -0,0 +1,67 @@
.\"
.\" ccrewrite manual page.
.\" Copyright (C) 2010 Novell, Inc (http://www.novell.com)
.\" Author:
.\" Chris Bacon <[email protected]>
.\"
.TH Mono "ccrewrite"
.SH NAME
ccrewrite \- Rewrite CLR assemblies for runtime code contract verification.
.SH SYNOPSIS
.PP
.B ccrewrite --assembly=<assembly> [options]
.SH DESCRIPTION
Rewrite CLR assemblies to convert calls into the System.Diagnostics.Contracts
namespace to perform runtime contract verification. This includes
contract inheritance for virtual methods.
.PP
The assembly must have been built with the symbol CONTRACTS_FULL defined,
otherwise the calls to the contract methods will have been removed
by the compiler.
.PP
Currently only pre-conditions are supported, using the Contract.Requires()
method. Contract inheritance for virtual methods is supported. Only a
limited range of operations and types can be used within a pre-condition,
an error message will be shown if ccrewrite is unable to process the
specified assembly.
.SH CONFIGURATION OPTIONS
.TP
.I "--assembly <assembly-name>"
The assembly to rewrite. If no --output option is specified, then this file
overwritten with the rewritten version.
.TP
.I "--debug"
Use debug information if available to improve the usefulness of contract
failure messages.
.TP
.I "--help"
Show help for ccrewrite, listing configuration options.
.TP
.I "--level <level> (default=4)"
Set the which contract types are present in rewritten assembly:
0 = No contracts;
1 = Release requires;
2 = Requires;
3 = Ensures;
4 = Invariants;
(Each level includes all previous levels)
.TP
.I "--output <file-name>"
Write the rewritten assembly to the specified file. If this is not present
then the input assembly file is overwritten with the rewritten version.
.TP
.I "--rewrite (default=true)"
Rewrite the assembly. If false, then nothing is done.
.TP
.I "--throwOnFailure (default=false)"
Throw a ContractException on unhandled contract failure. The default
behaviour is to Assert.
.SH AUTHOR
Written by Chris Bacon
.SH COPYRIGHT
Copyright (C) 2010 Chris Bacon.
Released under MIT license.
.SH WEB SITE
Visit http://www.mono-project.com for details
+1
View File
@@ -22,4 +22,5 @@
<manpage name="xsd" page="xsd.1" />
<manpage name="caspol" page="caspol.1" />
<manpage name="al" page="al.1" />
<manpage name="ccrewrite" page="ccrewrite.1" />
</manpages>
+36
View File
@@ -0,0 +1,36 @@
.\"
.\" mono-api-info manual page.
.\" Copyright (C) 2010 Linden Lab, Inc (http://www.lindenlab.com)
.\" Author:
.\" Andrés G. Aragoneses <[email protected]>
.\"
.TH Mono "mono-api-info"
.SH NAME
mono-api-info \- Expose IL structure of CLR assemblies as XML.
.
.SH SYNOPSIS
.PP
.B mono-api-info [--abi] assembly1.dll assembly2.exe ...
.SH DESCRIPTION
Expose the structure of your CLR assemblies by examining their IL and
giving XML output.
.PP
By default this tool gives information about just the public API of the
assemblies to scan. So it's good for comparing API compatibility between
versions of libraries.
.SH OPTIONS
.TP
.I "--abi"
Show the ABI instead of the API, that is, non-static fields (even the
non-public ones) that are not marked as [NonSerialized()].
.SH AUTHOR
Written by Andrés G. Aragoneses
.SH COPYRIGHT
Copyright (C) 2010 LindenLab.
Released under BSD license.
.SH MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
.SH WEB SITE
Visit http://www.mono-project.com for details
.SH SEE ALSO
.BR mono(1)
+53 -2
View File
@@ -1347,10 +1347,49 @@ the right file name it is not necessarily possible to open the file.
In general if you have problems with encodings in your filenames you
should use the "convmv" program.
.TP
\fBMONO_GC_PARAMS\fR
When using Mono with the SGen garbage collector this variable controls
several parameters of the collector. The variable's value is a comma
separated list of words.
.RS
.ne 8
.TP
\fBnursery-size=\fIsize\fR
Sets the size of the nursery. The size is specified in bytes and must
be a power of two. The suffixes `k', `m' and `g' can be used to
specify kilo-, mega- and gigabytes, respectively. The nursery is the
first generation (of two). A larger nursery will usually speed up the
program but will obviously use more memory. The default nursery size
4 MB.
.TP
\fBmajor=\fIcollector\fR
Specifies which major collector to use. Options are `marksweep' for
the Mark&Sweep collector, `marksweep-par' for parallel Mark&Sweep,
`marksweep-fixed' for Mark&Sweep with a fixed heap,
`marksweep-fixed-par' for parallel Mark&Sweep with a fixed heap and
`copying' for the copying collector. The Mark&Sweep collector is the
default.
.TP
\fBmajor-heap-size=\fIsize\fR
Sets the size of the major heap (not including the large object space)
for the fixed-heap Mark&Sweep collector (i.e. `marksweep-fixed' and
`marksweep-fixed-par'). The size is in bytes, with optional suffixes
`k', `m' and `g' to specify kilo-, mega- and gigabytes, respectively.
The default is 512 megabytes.
.TP
\fBwbarrier=\fIwbarrier\fR
Specifies which write barrier to use. Options are `cardtable' and
`remset'. The card table barrier is faster but less precise, and only
supported for the Mark&Sweep major collector on 32 bit platforms. The
default is `cardtable' if it is supported, otherwise `remset'.
.ne
.RE
.TP
\fBMONO_GC_DEBUG\fR
When using Mono with the SGen garbage collector this environment
variable can be used to control different aspects of the GC processs.
The value of this variable is a comma separated list of words.
variable can be used to turn on various debugging features of the
collector. The value of this variable is a comma separated list of
words.
.RS
.ne 8
.TP
@@ -1565,6 +1604,13 @@ interpreter. The possible values are `no' to disable the use of a
custom serializer or a number to indicate when the XmlSerializer
should start serializing. The default value is 50, which means that
the a custom serializer will be produced on the 50th use.
.TP
\fBMONO_X509_REVOCATION_MODE\fR
Sets the revocation mode used when validating a X509 certificate chain (https,
ftps, smtps...). The default is 'nocheck', which performs no revocation check
at all. The other possible values are 'offline', which performs CRL check (not
implemented yet) and 'online' which uses OCSP and CRL to verify the revocation
status (not implemented yet).
.SH ENVIRONMENT VARIABLES FOR DEBUGGING
.TP
\fBMONO_ASPNET_NODELETE\fR
@@ -1584,6 +1630,11 @@ If this variable is set, when the Mono VM runs into a verification
problem, instead of throwing an exception it will break into the
debugger. This is useful when debugging verifier problems
.TP
\fBcasts\fR
This option can be used to get more detailed information from
InvalidCast exceptions, it will provide information about the types
involved.
.TP
\fBcollect-pagefault-stats\fR
Collects information about pagefaults. This is used internally to
track the number of page faults produced to load metadata. To display
+1
View File
@@ -111,6 +111,7 @@ Here is an example that shows all the possibilities of this format:
<type fullname="Gazonk">
<method signature="System.Void .ctor(System.String)" />
<field signature="System.String _blah" />
<field name="someFieldName" />
</type>
</assembly>
</linker>
+34 -1
View File
@@ -23,6 +23,15 @@ Set or override project properties
.B \//logger:<logger>
Custom logger to log build events
.TP
.B \//toolsversion:version , /tv:version
Specify the toolset version to use.
Eg. /tv:4.0
This would cause 4.0 version of the Microsoft.Common.targets (among others) to be used. This overrides
the value specified in a project file.
Valid values: 2.0, 3.0, 3.5 and 4.0
.TP
.B \//verbosity:<level>
Logger verbosity level : quiet, minimal, normal, detailed, diagnostic
.TP
@@ -33,7 +42,7 @@ Validate the project file against the schema
Validate the project file against the specified schema
.TP
.B \//consoleloggerparameters:<params>
Parameters for the console logger
Parameters for the console logger : PerfomanceSummary, NoSummary, NoItemAndPropertyList
.TP
.B \//nologo
Don't show the initial xbuild banner
@@ -49,6 +58,30 @@ Display xbuild version
If this variable is set, then the project file generated from a solution
file is emitted.
.TP
.I "XBUILD_LOG_REFERENCE_RESOLVER"
References are resolved by trying a list of assembly search paths ($(AssemblySearchPaths)).
If xbuild is unable to resolve a reference, then it logs details of why the various
search paths failed. If this variable is set, then it logs the same even for references
that were resolved successfully. These logs show up if the verbosity is set to detailed
or higher.
.TP
.I "MSBuildExtensionsPath"
MSBuild extensions are usually installed in $(MSBuildExtensionsPath), which xbuild resolves
to $prefix/lib/mono/xbuild . When used in Import, like:
<Import Project="$(MSBuildExtensionsPath)\\TestTargets.targets"/>
xbuild tries various values for the msbuild property $(MSBuildExtensionsPath), in order:
1. Paths specified in the environment variable $MSBuildExtensionsPath.
2. $XDG_CONFIG_HOME/xbuild/tasks (or Environment.SpecialFolder.ApplicationData)
3. $prefix/lib/mono/xbuild (default location)
Anywhere else in the project files, $(MSBuildExtensionsPath) will always resolve to the default
location. This is a xbuild-only feature.
This is also applicable for the properties $(MSBuildExtensionsPath32) and $(MSBuildExtensionsPath64),
and the environment variables have the corresponding names - MSBuildExtensionsPath32/64 .
.TP
.I "XBUILD_COLORS"
If this variable is set, it contains a string of the form
"type=foreground,type=.." that specifies which color to use to display
+2
View File
@@ -0,0 +1,2 @@
/LICENSE.MSPL -crlf
/ScalableMonoIcon.svg -crlf
+10 -5
View File
@@ -1,6 +1,15 @@
*.mdb
*.exe
*.dll
*_test_*.dll.config
*_test_*.xml
*.o
TestResult-*.log
TestResult-*.xml
TestResult*.xml
errors/?mcs.log
errors/dummy.xml
tests/?mcs.log
tests/gtest-*.dll
tests/test-*.dll
tests/xml-*.xml
@@ -8,11 +17,7 @@ tests/test-*.netmodule
tests/gxml-*.xml
tests/test-*.xml
tests/data.xml
tests/gmcs.log
System_test_net_2_0.dll
System_test_net_2_0.dll.config
TestResult-net_2_0.log
TestResult-net_2_0.xml
class/Mono.Data.Sqlite/test.db
class/Mono.CSharp/Mono.CSharp.dll.sources
class/RabbitMQ.Client/docs/specs/autogenerated-api-0-8.cs
class/RabbitMQ.Client/docs/specs/autogenerated-api-0-9.cs
+1 -1
View File
@@ -80,7 +80,7 @@ all-local $(STD_TARGETS:=-local):
@:
dir-check:
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then echo "Running make from the mcs directory is not supported. Run make from the parent directory (if using a tarball), or from the directory where the runtime is checked out (if using an SVN checkout)."; exit 1; fi
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then echo "Running make from the mcs directory is not supported. Run make from the parent directory."; exit 1; fi
# fun specialty targets
+6
View File
@@ -1,3 +1,9 @@
2010-07-14 Miguel de Icaza <[email protected]>
* tests.make: Do not run the tests under the verifier until the
verifier bug is fixed so at least we can see what is going on in
our buildbots.
2010-07-12 Marek Safar <[email protected]>
* tests.make: Run all tests under verifier.
+2
View File
@@ -0,0 +1,2 @@
/Mono.Common.targets -crlf
/Mono.Default.targets -crlf
+1 -1
View File
@@ -16,7 +16,7 @@ endif
MCS = $(with_mono_path) $(INTERNAL_GMCS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:BOOTSTRAP_BASIC
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:BOOTSTRAP_BASIC -nowarn:1699
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
NO_INSTALL = yes
-28
View File
@@ -1,28 +0,0 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
BOOTSTRAP_PROFILE = net_1_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
FRAMEWORK_VERSION = 1.0
@@ -1,6 +1,7 @@
#! -*- makefile -*-
INTERNAL_SMCS = $(RUNTIME) $(RUNTIME_FLAGS) --security=temporary-smcs-hack $(topdir)/class/lib/$(PROFILE)/smcs.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/basic/gmcs.exe
BOOTSTRAP_PROFILE = basic
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
-11
View File
@@ -1,11 +0,0 @@
# -*- Makefile -*-
#
# Only build .NET 1.0 classes.
# (will probably not work)
include $(topdir)/build/profiles/default.make
PROFILE_MCS_FLAGS = /d:NET_1_0 /d:ONLY_1_0
FRAMEWORK_VERSION = 1.0
# done
-28
View File
@@ -1,28 +0,0 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
BOOTSTRAP_PROFILE = net_1_1_bootstrap
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BOOTSTRAP_PROFILE)/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1
FRAMEWORK_VERSION = 1.0
-50
View File
@@ -1,50 +0,0 @@
# -*- makefile -*-
#
# The default 'bootstrap' profile -- builds so that we link against
# the libraries as we build them.
#
# We use the platform's native C# runtime and compiler if possible.
# Note that we have sort of confusing terminology here; BOOTSTRAP_MCS
# is what allows us to bootstrap ourselves, but when we are bootstrapping,
# we use INTERNAL_MCS.
# When bootstrapping, compile against our new assemblies.
# (MONO_PATH doesn't just affect what assemblies are loaded to
# run the compiler; /r: flags are by default loaded from whatever's
# in the MONO_PATH too).
EXTERNAL_MCS = csc.exe
NO_SIGN_ASSEMBLY = yes
#DEXT = pdb
ifdef PLATFORM_MONO_NATIVE
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_1_1_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_1_1_bootstrap/mcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MCS)
MBAS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_MBAS)
else
BOOTSTRAP_MCS = $(EXTERNAL_MCS)
MCS = $(PLATFORM_RUNTIME) $(EXTERNAL_MCS) /lib:$(topdir)/class/lib/$(PROFILE)
MBAS = $(PLATFORM_RUNTIME) $(EXTERNAL_MBAS) /lib:$(topdir)/class/lib/$(PROFILE)
endif
# nuttzing!
profile-check:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:ONLY_1_1 -d:TARGET_JVM -d:JAVA
PROFILE_MBAS_FLAGS = -d:NET_1_1 -d:ONLY_1_1 -d:TARGET_JVM -d:JAVA
FRAMEWORK_VERSION = 1.0
CONVERTER_DEBUG_LEVEL = 3
ifeq ($(CONFIG),Release)
PLATFORM_DEBUG_FLAGS = /debug:pdbonly
CONVERTER_DEBUG_LEVEL = 2
endif
library_CLEAN_FILES += $(build_lib:.dll=.jar) $(build_lib:.dll=.pdb)
all-local:
$(MAKE) $(build_lib:.dll=.jar)
%.jar:%.dll
converter.exe /debug:$(CONVERTER_DEBUG_LEVEL) $< /out:$@ $(KEY) /lib:$(dir $@)
+1 -1
View File
@@ -10,5 +10,5 @@ MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_
profile-check:
@:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -nowarn:1699
FRAMEWORK_VERSION = 2.0
+2
View File
@@ -1,5 +1,7 @@
# -*- makefile -*-
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_2_0/gmcs.exe
MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# nuttzing!
+1 -1
View File
@@ -13,5 +13,5 @@ MCS = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_
profile-check:
@:
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699
FRAMEWORK_VERSION = 4.0
+1 -1
View File
@@ -38,7 +38,7 @@ INSTALL_LIB = $(INSTALL_BIN)
MKINSTALLDIRS = $(SHELL) $(topdir)/mkinstalldirs
INTERNAL_MCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/mcs.exe
INTERNAL_MBAS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mbas/mbas.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/mcs/gmcs.exe
INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/gmcs.exe
INTERNAL_ILASM = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/ilasm.exe
corlib = mscorlib.dll
+6 -2
View File
@@ -84,13 +84,17 @@ endif
## FIXME: i18n problem in the 'sed' command below
run-test-lib: test-local
ok=:; \
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) --verify-all $(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) -xml=TestResult-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG)|| ok=false; \
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" MONO_REGISTRY_PATH="$(HOME)/.mono/registry" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) $(TEST_HARNESS_EXCLUDES) $(TEST_HARNESS_OUTPUT) -xml=TestResult-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG)|| ok=false; \
$(TEST_HARNESS_POSTPROC) ; $$ok
## Instructs compiler to compile to target .net execution, it can be usefull in rare cases when runtime detection is not possible
run-test-ondotnet-lib: LOCAL_TEST_COMPILER_ONDOTNET_FLAGS:=-d:RUN_ONDOTNET
run-test-ondotnet-lib: test-local
ok=:; \
$(TEST_HARNESS) $(test_assemblies) -noshadow $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS) $(TEST_HARNESS_EXCLUDES_ONDOTNET) $(TEST_HARNESS_OUTPUT_ONDOTNET) -xml=TestResult-ondotnet-$(PROFILE).xml $(FIXTURE_ARG) $(TESTNAME_ARG) || ok=false; \
$(TEST_HARNESS_POSTPROC_ONDOTNET) ; $$ok
endif # test_assemblies
TEST_FILES =
@@ -102,7 +106,7 @@ endif
ifdef HAVE_CS_TESTS
$(test_lib): $(the_assembly) $(test_response) $(test_nunit_dep)
$(TEST_COMPILE) -target:library -out:$@ $(test_flags) @$(test_response)
$(TEST_COMPILE) -target:library -out:$@ $(test_flags) $(LOCAL_TEST_COMPILER_ONDOTNET_FLAGS) @$(test_response)
$(test_response): $(test_sourcefile)
@echo Creating $@ ...
+1
View File
@@ -0,0 +1 @@
/makefile.build -crlf
@@ -0,0 +1 @@
/README -crlf
@@ -0,0 +1,2 @@
/RncTokenizer.cs -crlf
/RncWriter.cs -crlf
@@ -118,9 +118,9 @@ namespace Commons.Xml.Relaxng.Rnc
if (p is RelaxngGrammar)
((RelaxngGrammar) p).IsSourceCompactSyntax = true;
return p;
} catch (Exception ex) {
throw new RelaxngException (String.Format ("Tokenizer error at line {0}, column {1}: {2}", Line, Column, ex.Message), ex);
}
} catch (Exception ex) {
throw new RelaxngException (String.Format ("Tokenizer error at line {0}, column {1}: {2}", Line, Column, ex.Message), ex);
}
}
private void FillLocation (RelaxngElementBase el)
@@ -7,27 +7,27 @@
// (C)2003 Atsushi Enomoto
// (C)2004 Novell Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -508,4 +508,4 @@ namespace Commons.Xml.Relaxng.Rnc
}
}
}
}
@@ -6,27 +6,27 @@
//
// (C)2005 Novell Inc.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
@@ -554,4 +554,4 @@ namespace Commons.Xml.Relaxng.Rnc
}
#endregion
}
}
}
+5
View File
@@ -1,3 +1,8 @@
2010-07-23 Atsushi Enomoto <[email protected]>
* RelaxngPattern.cs : inherit XmlResolver to parsed rng component.
Fixed bug #622630.
2010-06-25 Atsushi Enomoto <[email protected]>
* RelaxngReader.cs : don't use Name, use LocalName. Fixed bug #617264.
+5 -2
View File
@@ -81,14 +81,15 @@ namespace Commons.Xml.Relaxng
{
XmlTextReader xtr = null;
RelaxngGrammar g = null;
RelaxngPattern p;
try {
if (grammar.IsSourceCompactSyntax) {
return RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri, nsContext);
p = RncParser.ParseRnc (new StreamReader ((Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream))), null, BaseUri, nsContext);
} else {
xtr = new XmlTextReader (uri.AbsoluteUri, (Stream) grammar.Resolver.GetEntity (uri, null, typeof (Stream)));
RelaxngReader r = new RelaxngReader (xtr, nsContext, grammar.Resolver);
r.MoveToContent ();
return r.ReadPattern ();
p = r.ReadPattern ();
}
} catch (Exception ex) { // umm, bad catch though :-(
throw new RelaxngException (this, String.Format("Could not include grammar {0}: {1}", uri.AbsoluteUri, ex.Message), ex);
@@ -96,6 +97,8 @@ namespace Commons.Xml.Relaxng
if (xtr != null)
xtr.Close ();
}
p.XmlResolver = grammar.Resolver;
return p;
}
}
@@ -0,0 +1 @@
/XmlDefaultReader.cs -crlf
@@ -8,26 +8,26 @@
//
// Copyright (c) 2004 Novell Inc.
// All rights reserved
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Similar to SAX DefaultHandler
@@ -0,0 +1,2 @@
/ns-Commons.Xml.Nvdl.xml -crlf
/ns-Commons.Xml.Relaxng.xml -crlf
@@ -0,0 +1,49 @@
/Nvdl.xml -crlf
/NvdlAction.xml -crlf
/NvdlActionList.xml -crlf
/NvdlAllow.xml -crlf
/NvdlAnyNamespace.xml -crlf
/NvdlAttach.xml -crlf
/NvdlAttachPlaceHolder.xml -crlf
/NvdlAttributable.xml -crlf
/NvdlBuiltInValidationProvider.xml -crlf
/NvdlCancelAction.xml -crlf
/NvdlCompileException.xml -crlf
/NvdlConfig.xml -crlf
/NvdlContext.xml -crlf
/NvdlContextList.xml -crlf
/NvdlElementBase.xml -crlf
/NvdlException.xml -crlf
/NvdlIncludedMode.xml -crlf
/NvdlMessage.xml -crlf
/NvdlMessageEventArgs.xml -crlf
/NvdlMessageEventHandler.xml -crlf
/NvdlMessageList.xml -crlf
/NvdlMode.xml -crlf
/NvdlModeBase.xml -crlf
/NvdlModeList.xml -crlf
/NvdlModeUsage.xml -crlf
/NvdlNamespace.xml -crlf
/NvdlNestedMode.xml -crlf
/NvdlNoCancelAction.xml -crlf
/NvdlNoResultAction.xml -crlf
/NvdlOption.xml -crlf
/NvdlOptionList.xml -crlf
/NvdlReader.xml -crlf
/NvdlReject.xml -crlf
/NvdlRelaxngValidatorProvider.xml -crlf
/NvdlResultAction.xml -crlf
/NvdlResultType.xml -crlf
/NvdlRule.xml -crlf
/NvdlRuleList.xml -crlf
/NvdlRuleTarget.xml -crlf
/NvdlRules.xml -crlf
/NvdlTrigger.xml -crlf
/NvdlTriggerList.xml -crlf
/NvdlUnwrap.xml -crlf
/NvdlValidate.xml -crlf
/NvdlValidatingReader.xml -crlf
/NvdlValidationException.xml -crlf
/NvdlValidationProvider.xml -crlf
/NvdlValidatorGenerator.xml -crlf
/NvdlXsdValidatorProvider.xml -crlf
@@ -0,0 +1 @@
/RncParser.xml -crlf
@@ -0,0 +1,50 @@
/IGrammarContent.xml -crlf
/RelaxngAnyName.xml -crlf
/RelaxngAttribute.xml -crlf
/RelaxngBinaryContentPattern.xml -crlf
/RelaxngChoice.xml -crlf
/RelaxngData.xml -crlf
/RelaxngDataSupport.xml -crlf
/RelaxngDatatype.xml -crlf
/RelaxngDatatypeProvider.xml -crlf
/RelaxngDefine.xml -crlf
/RelaxngDiv.xml -crlf
/RelaxngElement.xml -crlf
/RelaxngElementBase.xml -crlf
/RelaxngEmpty.xml -crlf
/RelaxngExcept.xml -crlf
/RelaxngExceptNameClass.xml -crlf
/RelaxngException.xml -crlf
/RelaxngExternalRef.xml -crlf
/RelaxngGrammar.xml -crlf
/RelaxngGrammarContentList.xml -crlf
/RelaxngGroup.xml -crlf
/RelaxngInclude.xml -crlf
/RelaxngInterleave.xml -crlf
/RelaxngList.xml -crlf
/RelaxngMergedProvider.xml -crlf
/RelaxngMixed.xml -crlf
/RelaxngName.xml -crlf
/RelaxngNameChoice.xml -crlf
/RelaxngNameClass.xml -crlf
/RelaxngNameClassList.xml -crlf
/RelaxngNotAllowed.xml -crlf
/RelaxngNsName.xml -crlf
/RelaxngOneOrMore.xml -crlf
/RelaxngOptional.xml -crlf
/RelaxngParam.xml -crlf
/RelaxngParamList.xml -crlf
/RelaxngParentRef.xml -crlf
/RelaxngPattern.xml -crlf
/RelaxngPatternList.xml -crlf
/RelaxngPatternType.xml -crlf
/RelaxngReader.xml -crlf
/RelaxngRef.xml -crlf
/RelaxngSingleContentPattern.xml -crlf
/RelaxngStart.xml -crlf
/RelaxngString.xml -crlf
/RelaxngText.xml -crlf
/RelaxngToken.xml -crlf
/RelaxngValidatingReader.xml -crlf
/RelaxngValue.xml -crlf
/RelaxngZeroOrMore.xml -crlf
@@ -0,0 +1 @@
/XmlDefaultReader.xml -crlf
@@ -0,0 +1,7 @@
/SimpleElementPattern1.rng -crlf
/SimpleElementPattern1.xml -crlf
/SimpleElementPattern2.rng -crlf
/SimpleElementPattern2.xml -crlf
/atom.rnc -crlf
/relaxng.rnc -crlf
/team.rng -crlf
@@ -0,0 +1,3 @@
/README -crlf
/anglia-test-runner.cs -crlf
/relaxngtest.cs -crlf
@@ -0,0 +1,2 @@
/AssemblyInfo.cs -crlf
/ZipException.cs -crlf
@@ -47,12 +47,12 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if NET_2_0
#if NET_2_0
[assembly: AssemblyVersion("2.6.0.0")]
#else
// not worrying about the NET_1_0 profile for now.
#else
// not worrying about the NET_1_0 profile for now.
[assembly: AssemblyVersion("0.6.0.0")]
#endif
#endif
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile ("SharpZipLib.pub")]
@@ -0,0 +1,4 @@
/BZip2.cs -crlf
/BZip2Constants.cs -crlf
/BZip2InputStream.cs -crlf
/BZip2OutputStream.cs -crlf
@@ -0,0 +1,4 @@
/Adler32.cs -crlf
/Crc32.cs -crlf
/IChecksum.cs -crlf
/StrangeCrc.cs -crlf
@@ -0,0 +1,3 @@
/GZipConstants.cs -crlf
/GZipInputStream.cs -crlf
/GZipOutputStream.cs -crlf
@@ -0,0 +1,7 @@
/InvalidHeaderException.cs -crlf
/TarArchive.cs -crlf
/TarBuffer.cs -crlf
/TarEntry.cs -crlf
/TarHeader.cs -crlf
/TarInputStream.cs -crlf
/TarOutputStream.cs -crlf
@@ -0,0 +1,5 @@
/ZipConstants.cs -crlf
/ZipEntry.cs -crlf
/ZipFile.cs -crlf
/ZipInputStream.cs -crlf
/ZipOutputStream.cs -crlf
@@ -0,0 +1,9 @@
/Deflater.cs -crlf
/DeflaterConstants.cs -crlf
/DeflaterEngine.cs -crlf
/DeflaterHuffman.cs -crlf
/DeflaterPending.cs -crlf
/Inflater.cs -crlf
/InflaterDynHeader.cs -crlf
/InflaterHuffmanTree.cs -crlf
/PendingBuffer.cs -crlf
@@ -0,0 +1,4 @@
/DeflaterOutputStream.cs -crlf
/InflaterInputStream.cs -crlf
/OutputWindow.cs -crlf
/StreamManipulator.cs -crlf
+12 -12
View File
@@ -371,21 +371,21 @@ public abstract class ByteEncoding : MonoEncoding
("count", Strings.GetString("ArgRange_Array"));
}
if (count == 0)
return string.Empty;
string s = new string ((char) 0, count);
fixed (byte* bytePtr = bytes)
fixed (char* charPtr = s)
fixed (char* cvt = toChars) {
byte* b = bytePtr + index;
char* c = charPtr;
if (count == 0)
return string.Empty;
string s = new string ((char) 0, count);
fixed (byte* bytePtr = bytes)
fixed (char* charPtr = s)
fixed (char* cvt = toChars) {
byte* b = bytePtr + index;
char* c = charPtr;
while(count-- != 0)
*(c++) = cvt[*(b++)];
}
return s;
return s;
}
public override String GetString(byte[] bytes)
{
@@ -0,0 +1 @@
/AssemblyInfo.cs -crlf
@@ -0,0 +1,17 @@
/DB2ClientUtils.cs -crlf
/DB2Command.cs -crlf
/DB2Connection.cs -crlf
/DB2ConnectionPool.cs -crlf
/DB2ConnectionSettings.cs -crlf
/DB2Constants.cs -crlf
/DB2DataReader.cs -crlf
/DB2Environment.cs -crlf
/DB2Error.cs -crlf
/DB2ErrorCollection.cs -crlf
/DB2Exception.cs -crlf
/DB2InfoMessageEventHandler.cs -crlf
/DB2OpenConnection.cs -crlf
/DB2Parameter.cs -crlf
/DB2ParameterCollection.cs -crlf
/DB2Transaction.cs -crlf
/DB2Type.cs -crlf
@@ -46,7 +46,7 @@ namespace IBM.Data.DB2
DataAdapter = adapter;
}
public DB2DataAdapter DataAdapter
public DB2DataAdapter DataAdapter
{
get
{
@@ -77,7 +77,7 @@ namespace IBM.Data.DB2
}
}
public string QuotePrefix
public string QuotePrefix
{
get
{
@@ -87,7 +87,7 @@ namespace IBM.Data.DB2
{ }
}
public string QuoteSuffix
public string QuoteSuffix
{
get
{
@@ -119,7 +119,7 @@ namespace IBM.Data.DB2
values += ", ";
}
if(!((bool)dr["IsAutoIncrement"]))
if(!((bool)dr["IsAutoIncrement"]))
{
fields += column.ColumnName;
//values += ":v_" + column.ColumnName;
@@ -135,8 +135,8 @@ namespace IBM.Data.DB2
{
//DataColumn column = dt.Columns[i];
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (!((bool)dr["IsAutoIncrement"]))
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (!((bool)dr["IsAutoIncrement"]))
{
DB2Parameter aux = new DB2Parameter("v_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
@@ -158,7 +158,7 @@ namespace IBM.Data.DB2
string wheres = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"]))
if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"]))
{
sets += ", ";
}
@@ -180,7 +180,7 @@ namespace IBM.Data.DB2
{
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
if (!((bool)dr["IsAutoIncrement"]))
if (!((bool)dr["IsAutoIncrement"]))
{
DB2Parameter aux = new DB2Parameter("s_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
@@ -251,7 +251,7 @@ namespace IBM.Data.DB2
deleteCommand = null;
}
private DataTable GetSchema()
private DataTable GetSchema()
{
dataAdapter.SelectCommand.Connection.Open();
DB2Command cmd = new DB2Command(dataAdapter.SelectCommand.CommandText, dataAdapter.SelectCommand.Connection);
@@ -1,24 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Text;
@@ -1,24 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.InteropServices;
using System.Text;
@@ -1,24 +1,24 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
namespace IBM.Data.DB2
@@ -1,45 +1,45 @@
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Data;
using System.Runtime.InteropServices;
using System.Globalization;
using System.Text;
namespace IBM.Data.DB2
{
/// <summary>
/// Summary description for DB2ClientDataReader.
/// DB2ClientDataReader.
/// </summary>
public sealed class DB2DataReader : MarshalByRefObject, IDataReader
{
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Data;
using System.Runtime.InteropServices;
using System.Globalization;
using System.Text;
namespace IBM.Data.DB2
{
/// <summary>
/// Summary description for DB2ClientDataReader.
/// DB2ClientDataReader.
/// </summary>
public sealed class DB2DataReader : MarshalByRefObject, IDataReader
{
private struct ColumnInfo
{
public string Colname;
public int Sqltype;
}
}
private object[] _resultSet;
private ColumnInfo[] columnInfo;
private Hashtable columnsNames;
@@ -54,8 +54,8 @@ namespace IBM.Data.DB2
private CommandBehavior behavior;
private bool hasRows;
private bool skipReadOnce;
#region Constructors and destructors
/// <summary>
///
@@ -78,7 +78,7 @@ namespace IBM.Data.DB2
}
#endregion
private void GetFieldCountAndAffectedRows()
{
short sqlRet;
@@ -93,64 +93,64 @@ namespace IBM.Data.DB2
sqlRet = DB2CLIWrapper.SQLNumResultCols(hwndStmt, out colCount);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLNumResultCols", db2Conn);
fieldCount = colCount;
}
#region Properties
#region Depth property
///
///Depth of nesting for the current row, need to figure out what this translates into
///with DB2.
///
private int depth = 0;
public int Depth
{
get
{
}
#region Properties
#region Depth property
///
///Depth of nesting for the current row, need to figure out what this translates into
///with DB2.
///
private int depth = 0;
public int Depth
{
get
{
if(isClosed)
{
throw new InvalidOperationException("Reader is closed");
}
return depth;
}
}
#endregion
#region IsClosed property
/// <summary>
/// True if the reader is closed.
/// </summary>
private bool isClosed = true;
public bool IsClosed
{
get
{
return isClosed;
}
}
#endregion
#region RecordsAffected property
///
/// Number of records affected by this operation. Will be zero until we close the
/// reader
///
public int RecordsAffected
{
get
{
return recordsAffected;
}
}
#endregion
#endregion
#region Methods
}
return depth;
}
}
#endregion
#region IsClosed property
/// <summary>
/// True if the reader is closed.
/// </summary>
private bool isClosed = true;
public bool IsClosed
{
get
{
return isClosed;
}
}
#endregion
#region RecordsAffected property
///
/// Number of records affected by this operation. Will be zero until we close the
/// reader
///
public int RecordsAffected
{
get
{
return recordsAffected;
}
}
#endregion
#endregion
#region Methods
#region Close method
public void Close()
@@ -197,10 +197,10 @@ namespace IBM.Data.DB2
Dispose(false);
}
#endregion
#region GetSchemaTable
#endregion
#region GetSchemaTable
public DataTable GetSchemaTable()
{
if(isClosed)
@@ -378,11 +378,11 @@ namespace IBM.Data.DB2
}
}
return _schemaTable;
}
#endregion
#region NextResult
}
#endregion
#region NextResult
public bool NextResult()
{
hasRows = false;
@@ -399,11 +399,11 @@ namespace IBM.Data.DB2
return false;
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Db2ClientDataReader - SQLMoreResults", db2Conn);
return true;
}
#endregion
#region Read
}
#endregion
#region Read
#if !NET_1_0
public bool HasRows
{
@@ -418,8 +418,8 @@ namespace IBM.Data.DB2
return hasRows;
}
}
#endif
#endif
public bool Read()
{
if (isClosed)
@@ -444,10 +444,10 @@ namespace IBM.Data.DB2
hasData = true;
return true;
}
#endregion
#region GetColumnInfo
}
#endregion
#region GetColumnInfo
private void GetColumnInfo()
{
if(isClosed)
@@ -477,22 +477,22 @@ namespace IBM.Data.DB2
}
}
#endregion
#region Describe/Bind/Fetch functions
///
///Broke these out so that we can use different paths for Immediate executions and Prepared executions
/// <summary>
/// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries.
/// </summary>
/// <summary>
/// FetchResults does what it says.
/// </summary>
/// <param name="dbVals"></param>
/// <param name="sqlLen_or_IndPtr"></param>
/// <param name="_resultSet"></param>
}
#endregion
#region Describe/Bind/Fetch functions
///
///Broke these out so that we can use different paths for Immediate executions and Prepared executions
/// <summary>
/// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries.
/// </summary>
/// <summary>
/// FetchResults does what it says.
/// </summary>
/// <param name="dbVals"></param>
/// <param name="sqlLen_or_IndPtr"></param>
/// <param name="_resultSet"></param>
private int FieldNameLookup(DataTable _schemaTable, string name)
{
for(int i = 0; i < _schemaTable.Rows.Count; i++)
@@ -504,16 +504,16 @@ namespace IBM.Data.DB2
}
}
return -1;
}
#endregion
#region IDataRecord Interface
///Code for the IDataRecord interface
///
#region FieldCount
///
///
}
#endregion
#region IDataRecord Interface
///Code for the IDataRecord interface
///
#region FieldCount
///
///
public int FieldCount
{
get
@@ -523,10 +523,10 @@ namespace IBM.Data.DB2
return fieldCount;
}
}
#endregion
#region Item accessors
}
#endregion
#region Item accessors
public object this[string name]
{
get
@@ -576,9 +576,9 @@ namespace IBM.Data.DB2
}
throw new NotImplementedException("Unknown SQL type " + columnInfo[col].Sqltype);
}
}
#endregion
}
#endregion
#region GetBytes
///
/// GetBytes, return a stream of bytes
@@ -602,8 +602,8 @@ namespace IBM.Data.DB2
return sourceArray.LongLength;
#endif
}
#endregion
#endregion
#region GetChars
///
///GetChars, returns char array
@@ -619,10 +619,10 @@ namespace IBM.Data.DB2
}
return (long)sourceString.Length;
}
#endregion
#region GetBoolean method
#endregion
#region GetBoolean method
public Boolean GetBoolean(int col)
{
return (Boolean)GetBooleanInternal(col);
@@ -655,9 +655,9 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
}
#endregion
#region GetGuid
///
/// GetDateTime method
@@ -696,12 +696,12 @@ namespace IBM.Data.DB2
return _resultSet[col];
}
#endregion
#region GetByte
///
///GetByte
///
#endregion
#region GetByte
///
///GetByte
///
public Byte GetByte(int col)
{
return (Byte)GetByteInternal(col);
@@ -734,13 +734,13 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
#region GetChar
///
///GetChar, return column as a char
///
}
#endregion
#region GetChar
///
///GetChar, return column as a char
///
public Char GetChar(int col)
{
return (Char)GetCharInternal(col);
@@ -773,25 +773,25 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
#region GetData
///
/// GetData method
///
public IDataReader GetData(int col)
{
//Have to research this one, not quite sure what the docs mean
//DB2 does have some structured data types, is that what this is for?
throw new NotSupportedException();
}
#endregion
#region GetDataTypeName
///
///GetDataTypeName return the type of data
///
}
#endregion
#region GetData
///
/// GetData method
///
public IDataReader GetData(int col)
{
//Have to research this one, not quite sure what the docs mean
//DB2 does have some structured data types, is that what this is for?
throw new NotSupportedException();
}
#endregion
#region GetDataTypeName
///
///GetDataTypeName return the type of data
///
public string GetDataTypeName(int col)
{
if(columnInfo == null)
@@ -836,14 +836,14 @@ namespace IBM.Data.DB2
return "VARBINARY";
}
throw new NotImplementedException("Unknown SQL type " + columnInfo[col].Sqltype);
}
#endregion
#region GetDateTime
///
/// GetDateTime method
///
}
#endregion
#region GetDateTime
///
/// GetDateTime method
///
public DateTime GetDateTime(int col)
{
return (DateTime)GetDateTimeInternal(col);
@@ -883,9 +883,9 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
}
#endregion
#region GetDate
///
/// GetDate method
@@ -927,8 +927,8 @@ namespace IBM.Data.DB2
return _resultSet[col];
}
#endregion
#endregion
#region GetTime
///
/// GetTime method
@@ -974,13 +974,13 @@ namespace IBM.Data.DB2
return _resultSet[col];
}
#endregion
#region GetDecimal
///
///GetDecimal method
///
#endregion
#region GetDecimal
///
///GetDecimal method
///
public Decimal GetDecimal(int col)
{
@@ -1020,13 +1020,13 @@ namespace IBM.Data.DB2
// }
// }
return _resultSet[col];
}
#endregion
#region GetDouble
///
/// GetDouble
///
}
#endregion
#region GetDouble
///
/// GetDouble
///
public Double GetDouble(int col)
{
return (Double)GetDoubleInternal(col);
@@ -1059,13 +1059,13 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
#region GetFieldType
///
/// Type GetFieldType
///
}
#endregion
#region GetFieldType
///
/// Type GetFieldType
///
public Type GetFieldType(int col)
{
if(columnInfo == null)
@@ -1073,13 +1073,13 @@ namespace IBM.Data.DB2
GetColumnInfo();
}
return GetManagedType(columnInfo[col].Sqltype);
}
#endregion
#region GetFloat
///
/// GetFloat
///
}
#endregion
#region GetFloat
///
/// GetFloat
///
public float GetFloat(int col)
{
return (float)GetFloatInternal(col);
@@ -1112,13 +1112,13 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
#region The GetInt?? series
///
///GetInt16
///
}
#endregion
#region The GetInt?? series
///
///GetInt16
///
public short GetInt16(int col)
{
return (short)GetInt16Internal(col);
@@ -1228,13 +1228,13 @@ namespace IBM.Data.DB2
}
return _resultSet[col];
}
#endregion
#region GetName
///
///GetName, returns the name of the field
///
#endregion
#region GetName
///
///GetName, returns the name of the field
///
public string GetName(int col)
{
if(columnInfo == null)
@@ -1242,13 +1242,13 @@ namespace IBM.Data.DB2
GetColumnInfo();
}
return columnInfo[col].Colname;
}
#endregion
#region GetOrdinal
///
/// GetOrdinal, return the index of the named column
///
}
#endregion
#region GetOrdinal
///
/// GetOrdinal, return the index of the named column
///
public int GetOrdinal(string name)
{
if(columnInfo == null)
@@ -1261,13 +1261,13 @@ namespace IBM.Data.DB2
throw new IndexOutOfRangeException("name");
}
return (int)ordinal;
}
#endregion
#region GetString
///
/// GetString returns a string
///
}
#endregion
#region GetString
///
/// GetString returns a string
///
public string GetString(int col)
{
return (string)GetStringInternal(col);
@@ -1304,23 +1304,23 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
#endregion
#region GetValue
///
/// GetVCalue, returns an object
///
public object GetValue(int col)
{
return this[col];
}
#endregion
#region GetValues
///
/// GetValues returns all columns in the row through the argument, and the number of columns in the return value
///
}
#endregion
#region GetValue
///
/// GetVCalue, returns an object
///
public object GetValue(int col)
{
return this[col];
}
#endregion
#region GetValues
///
/// GetValues returns all columns in the row through the argument, and the number of columns in the return value
///
public int GetValues(object[] values)
{
int count = Math.Min(fieldCount, values.Length);
@@ -1332,24 +1332,24 @@ namespace IBM.Data.DB2
}
return count;
}
#endregion
#region IsDBNull
///
/// IsDBNull Is the column null
///
}
#endregion
#region IsDBNull
///
/// IsDBNull Is the column null
///
public bool IsDBNull(int col)
{
//Proper implementation once I get the SQLDescribe/SQLBind/SQLFetch stuff in place
return Convert.IsDBNull(this[col]);
}
#endregion
#endregion ///For IDataRecord
#region private methods
}
#endregion
#endregion ///For IDataRecord
#region private methods
private DataTable BuildNewSchemaTable()
{
DataTable schemaTable = new DataTable("SchemaTable");
@@ -1375,19 +1375,19 @@ namespace IBM.Data.DB2
schemaTable.Columns.Add(new DataColumn("BaseColumnName", typeof(string)));
return schemaTable;
}
#endregion
private void InitMem(int memSize, ref IntPtr ptr){
if (ptr.ToInt32() == 0){
unsafe{
fixed(byte* arr = new byte[memSize]){
ptr = new IntPtr(arr);
}
}
}
}
}
#endregion
private void InitMem(int memSize, ref IntPtr ptr){
if (ptr.ToInt32() == 0){
unsafe{
fixed(byte* arr = new byte[memSize]){
ptr = new IntPtr(arr);
}
}
}
}
private Type GetManagedType(int sql_type)
{
switch(sql_type)
@@ -1419,8 +1419,8 @@ namespace IBM.Data.DB2
return typeof(byte[]);
}
throw new NotImplementedException("Unknown SQL type " + sql_type);
}
}
private bool IsLong(short sql_type)
{
switch(sql_type)
@@ -1430,7 +1430,7 @@ namespace IBM.Data.DB2
return true;
}
return false;
}
}
private object GetBlobDataInternal(int col)
{
if((col < 0) || (col >= fieldCount))
@@ -1461,8 +1461,8 @@ namespace IBM.Data.DB2
}
}
return _resultSet[col];
}
}
}
#endregion
}
}
}
#endregion
Loaded 100 of 2367 files, more files were not shown because too many files have changed in this diff. Show more