Zoltan Varga [Mon, 25 Oct 2010 16:08:51 +0000 (18:08 +0200)]
Add a test for #632224. Fix dtest-app.exe dependencies.
Zoltan Varga [Mon, 25 Oct 2010 16:08:10 +0000 (18:08 +0200)]
Disable catchpoints when the DISABLE_BREAKPOINTS flag is used during an invoke. Fixes #632224.
Atsushi Eno [Mon, 25 Oct 2010 13:34:42 +0000 (22:34 +0900)]
checkin forgotten files.
Atsushi Eno [Mon, 25 Oct 2010 13:33:01 +0000 (22:33 +0900)]
Add PositionalParameters tests (NotWorking).
Before hacking StaticExtension support, we need it working.
Marek Habersack [Sun, 24 Oct 2010 09:00:30 +0000 (11:00 +0200)]
[corlib] added a few missing Environment.SpecialFolder definitions to InternalGetFolderPath (4.0)
Marek Habersack [Sat, 23 Oct 2010 22:47:01 +0000 (00:47 +0200)]
[asp.net] Better handling of application's AppDomain restart
* HttpRuntime.cs: disable filesystem watchers on appdomain shutdown and refuse to process
requests while the current AppDomain is unloading
* HttpApplicationFactory.cs: if the current AppDomain is unloading, ignore FileSystemWatcher
notifications
* WebConfigurationManager.cs: work around a deadlock issue when entering a ReaderWriterLockSlim
upgradeable read lock very early during ASP.NET runtime/AppDomain initialization. Every few runs
the attempt would lock up and since adding a section to cache is not a critical operation we can
afford timing the lock out in this case. The lockup is probably due to the fact that RWLS is using
thread local storage to store the current thread's lock status and it may happen that the TLS is
not cleared during thread object finalization (see metadata/threads.c, the start_wrapper function)
Atsushi Eno [Mon, 25 Oct 2010 11:19:24 +0000 (20:19 +0900)]
Refactoring namespace declaration output for getting .NET-like attribute output.
Atsushi Eno [Mon, 25 Oct 2010 08:57:58 +0000 (17:57 +0900)]
Write some special names back when writing xaml to XmlWriter.
Atsushi Eno [Mon, 25 Oct 2010 07:17:53 +0000 (16:17 +0900)]
Add a couple of writer tests (NotWorking) and fixed XamlServices to not omit xmldecl.
Gonzalo Paniagua Javier [Sun, 24 Oct 2010 22:44:33 +0000 (18:44 -0400)]
Throw exceptions here instead of in DeflateStream
To get the same stack trace as in bug #647948, we need to set the
underlying DeflateStream to null and throw the ObjectDisposedException
from this class. Same applies to the NotSupportedException.
Gonzalo Paniagua Javier [Sun, 24 Oct 2010 22:43:18 +0000 (18:43 -0400)]
BinaryWriter.BaseStream calls Flush()
Before returning the base stream, BinaryWriter.BaseStream calls Flush
on it. Added test for this.
Fixes bug #647948.
Zoltan Varga [Sun, 24 Oct 2010 17:29:44 +0000 (19:29 +0200)]
Add tests for the eglib remapper.
Zoltan Varga [Sun, 24 Oct 2010 17:29:20 +0000 (19:29 +0200)]
Add a g_hash_iter symbols to the eglib remapper.
Marek Safar [Sat, 23 Oct 2010 16:06:40 +0000 (17:06 +0100)]
Add missing v3 language version
Marek Safar [Sat, 23 Oct 2010 09:19:06 +0000 (10:19 +0100)]
New test.
Zoltan Varga [Sat, 23 Oct 2010 21:41:56 +0000 (23:41 +0200)]
Extract the default profiler into its own file.
Zoltan Varga [Sat, 23 Oct 2010 18:38:12 +0000 (20:38 +0200)]
Use int 3 as G_BREAKPOINT on x86-64 too. Hopefully fixes #648838.
Zoltan Varga [Sat, 23 Oct 2010 14:47:30 +0000 (16:47 +0200)]
Fix another regression in the Array.Sort () methods, allow keys and items to be of different length. Fixes #648828.
Zoltan Varga [Sat, 23 Oct 2010 14:29:48 +0000 (16:29 +0200)]
Implement memory barriers for amd64/x86. Fixes #648831.
Michael Hutchinson [Sat, 23 Oct 2010 08:06:29 +0000 (04:06 -0400)]
[SDB] Add BeginConnect/EndConnect to VirtualMachineManager
Launch and Listen methods had async version but Connect did not.
Rodrigo Kumpera [Fri, 22 Oct 2010 21:18:01 +0000 (19:18 -0200)]
MonoType::GetGenericArguments don't need to mono_class_init.
* icall.c (ves_icall_MonoType_GetGenericArguments): Don't
mono_class_init here since it's not needed.
Fixes #648725
Rodrigo Kumpera [Fri, 22 Oct 2010 19:57:00 +0000 (17:57 -0200)]
Checks the constructor declaring type.
* TypeBuilder.cs (GetConstructor): Check if the ctor
declaring type is the right one and the same as type.
* TypeBuilderTest.cs: Add regression test.
Fixes #648391
Rodrigo Kumpera [Fri, 22 Oct 2010 19:05:25 +0000 (17:05 -0200)]
Correctly encode fields with GTD types.
* reflection.c (mono_image_get_generic_field_token): If
the field type is a GTD, ensure its generic_container is
properly initialized.
Fixes #648616
Marek Safar [Fri, 22 Oct 2010 18:29:50 +0000 (19:29 +0100)]
Use faster MemberKind when checking for a nested type
Marek Safar [Fri, 22 Oct 2010 15:06:24 +0000 (16:06 +0100)]
Include parent type parameters when inflating nested type parameter constraint of type parameter type
Marek Safar [Fri, 22 Oct 2010 10:16:54 +0000 (11:16 +0100)]
Move nested declaration looup to TypeContainer
Marek Safar [Thu, 21 Oct 2010 16:30:32 +0000 (17:30 +0100)]
Add dynamic conversion to coalescing operator
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 18:20:38 +0000 (14:20 -0400)]
Unbreak the world
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 16:53:17 +0000 (12:53 -0400)]
Remove 'web' directory
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 16:52:19 +0000 (12:52 -0400)]
Sniff, sniff
Remove the old (really) stuff to generate the website from makefiles.
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 16:48:39 +0000 (12:48 -0400)]
Update mappings after latest changes to Mono.Posix
New mappings created for the epoll code.
Zoltan Varga [Fri, 22 Oct 2010 15:56:26 +0000 (17:56 +0200)]
Emit GenericEqualityComparer<T> instances for each EqualityComparer<T> instance in AOT, the former is created dynamically by the latter.
Zoltan Varga [Fri, 22 Oct 2010 15:25:30 +0000 (17:25 +0200)]
Use locale_charset() from iconv which will use nl_langinfo (CODESET) anyways but it will
do canonicalization so we will get the correct charset name, because nl_langinfo (CODESET)
can return different things on different systems. This at least fixes OpenBSD.
Jérémie Laval [Fri, 22 Oct 2010 14:15:18 +0000 (15:15 +0100)]
Use test-and-test-and-set pattern in LazyInitializer::EnsureInitialized
Jérémie Laval [Fri, 22 Oct 2010 14:14:48 +0000 (15:14 +0100)]
Fix a dodgy ReaderWriterLockSlim unit test
Atsushi Eno [Fri, 22 Oct 2010 10:07:46 +0000 (19:07 +0900)]
We can use ImportAllEndpoints().
Atsushi Eno [Fri, 22 Oct 2010 10:06:20 +0000 (19:06 +0900)]
It should not have to import all schema elements, but those only used by contracts.
Atsushi Eno [Fri, 22 Oct 2010 08:58:16 +0000 (17:58 +0900)]
Small refactoring on enumerating message schema element contents.
Zoltan Varga [Fri, 22 Oct 2010 07:28:20 +0000 (09:28 +0200)]
Fix test compilation with older glibs.
Atsushi Eno [Fri, 22 Oct 2010 07:23:24 +0000 (16:23 +0900)]
Don't put KnownTypeAttributes on enums.
Atsushi Eno [Fri, 22 Oct 2010 06:49:51 +0000 (15:49 +0900)]
Make generated type names unique.
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 04:24:47 +0000 (00:24 -0400)]
Update
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 04:13:41 +0000 (00:13 -0400)]
Update zlib to version 1.2.5
Gonzalo Paniagua Javier [Fri, 22 Oct 2010 04:00:33 +0000 (00:00 -0400)]
Remove arbitrary 1024 limit in GetProcesses
Reallocate the array of PIDs if EnumProcesses used all of it and try
again.
Zoltan Varga [Fri, 22 Oct 2010 00:59:48 +0000 (02:59 +0200)]
Implement GHashTable iterators.
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 20:00:56 +0000 (16:00 -0400)]
FromBinary does not need ToLocalTime
When converting to DateTime from a long, we don't need ToLocalTime().
Setting the kind to Local is enough.
Patch from Mig.
Fixes bug #648252.
Zoltan Varga [Thu, 21 Oct 2010 19:56:31 +0000 (21:56 +0200)]
Fix building the logging profiler.
Miguel de Icaza [Thu, 21 Oct 2010 18:09:49 +0000 (14:09 -0400)]
Document server option to --debugger-agent
Zoltan Varga [Thu, 21 Oct 2010 17:01:02 +0000 (19:01 +0200)]
Fix an assert in the LLVM backend if a long value was passed to 'localloc'.
Zoltan Varga [Thu, 21 Oct 2010 16:49:52 +0000 (18:49 +0200)]
Fix the assembly/class caching problems in the threadpool code too.
Marek Safar [Thu, 21 Oct 2010 15:07:05 +0000 (16:07 +0100)]
Update issues list
Marek Safar [Thu, 21 Oct 2010 15:01:19 +0000 (16:01 +0100)]
Implement closest override return type matching
Marek Safar [Wed, 20 Oct 2010 15:32:32 +0000 (16:32 +0100)]
Forget to re-add this test file
Zoltan Varga [Thu, 21 Oct 2010 14:37:48 +0000 (16:37 +0200)]
Add an assert to mono_class_from_name_cached () to make sure it is only called for mscorlib.
Zoltan Varga [Thu, 21 Oct 2010 14:15:14 +0000 (16:15 +0200)]
Avoid caching stuff in socket-io.c in static variables, since the socket assembly can be unloaded, cache them in MonoDomain instead.
Atsushi Eno [Thu, 21 Oct 2010 11:53:00 +0000 (20:53 +0900)]
OnEndXxx() methods should not try to let void return to a local variable.
Atsushi Eno [Thu, 21 Oct 2010 11:27:48 +0000 (20:27 +0900)]
Since event arg type name can be EventArgs1, do not match by type name. Check rather base type instead.
Atsushi Eno [Thu, 21 Oct 2010 10:44:20 +0000 (19:44 +0900)]
Void event should not have Result of type void.
Atsushi Eno [Thu, 21 Oct 2010 10:06:56 +0000 (19:06 +0900)]
Make generated type names unique.
Atsushi Eno [Thu, 21 Oct 2010 09:28:02 +0000 (18:28 +0900)]
Async end operation needs cast.
Atsushi Eno [Thu, 21 Oct 2010 07:54:19 +0000 (16:54 +0900)]
Remove ExtensionData from moonlight proxy.
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 06:42:38 +0000 (02:42 -0400)]
Replace EnumProcesses with OpenProcess
namedmutex_prewait was (partially) listing the running processes and
then searching through them. Now we use OpenProcess to verify the owner
of the mutex is still alive.
Fixes bug #648133 (note that you need MONO_ENABLE_SHM for this to work)
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 06:17:12 +0000 (02:17 -0400)]
No need to use a GArray in EnumProcesses
Use the provided array instead of creating a new one and then copying
it to the result.
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 06:14:31 +0000 (02:14 -0400)]
Fix typo
element_size is not a boolean.
Atsushi Eno [Thu, 21 Oct 2010 06:32:39 +0000 (15:32 +0900)]
Add some WCF types in moonlight_raw System.Xml.Serialization.dll.
Atsushi Eno [Thu, 21 Oct 2010 06:30:23 +0000 (15:30 +0900)]
Add #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy.
Gonzalo Paniagua Javier [Thu, 21 Oct 2010 04:08:54 +0000 (00:08 -0400)]
Fix the collision handling code
After the fix for bug #605092, inserting timers with an equal due time
was failing because searching in the list was also using a reference
comparison. Now, when adding a new timer, we search using just the due
time.
Fixes bug #648130.
Marek Habersack [Wed, 20 Oct 2010 23:21:53 +0000 (01:21 +0200)]
[asp.net] ObjectStateFormatter.{De}serialize methods taking stream use a magic value to mark the stream.
Andrew Jorgensen [Wed, 20 Oct 2010 15:55:18 +0000 (09:55 -0600)]
README.tests was deleted in
d9c8bdf
Marek Safar [Wed, 20 Oct 2010 15:21:22 +0000 (16:21 +0100)]
Clean up test files
Marek Safar [Wed, 20 Oct 2010 15:00:14 +0000 (16:00 +0100)]
[601801] Fixes for parsing nant documentation
Gleb Golubitsky <rush.william@gmail.com>
Marek Safar [Wed, 20 Oct 2010 14:40:36 +0000 (15:40 +0100)]
Check for name conflicts between parent members and child block variables
Marek Safar [Wed, 20 Oct 2010 10:30:26 +0000 (11:30 +0100)]
[647845] Don't skip parent types when looking for simple name
Marek Habersack [Wed, 20 Oct 2010 14:06:26 +0000 (16:06 +0200)]
[asp.net,wcf] WCF proxies are generated using a slightly different mode of operation.
WCF proxies don't include full namespace of the contract.
Tak [Wed, 20 Oct 2010 09:37:40 +0000 (11:37 +0200)]
[Fix] Ensure correct stack pointer initialization on !POSIX
* metadata/threads.c: Ensure correct stack pointer initialization on !POSIX.
This fixes some random crashes with embedded, release-optimized binaries on windows.
License: MIT/X11
Marek Habersack [Wed, 20 Oct 2010 00:02:27 +0000 (02:02 +0200)]
[wcf] make /js and /jsdebug dispatchers work.
There were several issues here:
- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
when it should first try to find one whose URL matches the current request exactly.
Atsushi Eno [Wed, 20 Oct 2010 10:23:02 +0000 (19:23 +0900)]
Forgot #if NET_4_0.
Atsushi Eno [Wed, 20 Oct 2010 09:06:02 +0000 (18:06 +0900)]
Add ExtendedProtectionPolicy members. Required by .config files by .NET svcutil.
Atsushi Eno [Wed, 20 Oct 2010 08:24:51 +0000 (17:24 +0900)]
ExtendedProtection Configuration types are also used in WCF 4.0.
Marek Safar [Wed, 20 Oct 2010 08:09:22 +0000 (09:09 +0100)]
More work on ambiguous named arguments
Marek Safar [Tue, 19 Oct 2010 12:33:54 +0000 (13:33 +0100)]
More optional parameter VB compatibility fixes
Atsushi Eno [Wed, 20 Oct 2010 07:26:07 +0000 (16:26 +0900)]
Add System.Security.Authentication.ExtendedProtection stubs, referenced by WCF 4.0.
Gonzalo Paniagua Javier [Wed, 20 Oct 2010 04:56:45 +0000 (00:56 -0400)]
Able to read MS serialized nullable<primitive>
Handle boxed primitive types for nullable fields.
Fixes bug #646556.
Rodrigo Kumpera [Tue, 19 Oct 2010 18:31:08 +0000 (16:31 -0200)]
Implement better explicit override checks.
* metadata-verify.c: Add mono_verifier_verify_methodimpl_row.
* metadata.c (mono_class_get_overrides_full): Call in the
verifier.
* verify.c: Add mono_verifier_is_signature_compatible that
does propery signature variance checking.
Rodrigo Kumpera [Wed, 20 Oct 2010 03:39:48 +0000 (01:39 -0200)]
Merge branch 'master' of github.com:mono/mono
Rodrigo Kumpera [Wed, 20 Oct 2010 03:25:27 +0000 (01:25 -0200)]
Proper recursive vtable checking.
* class.c: Pass around a list of currently been built vtables
to really avoid going into loop.
* reflection.c: Adjust to extra arguments.
* object.c: Ditto.
Zoltan Varga [Wed, 20 Oct 2010 03:09:14 +0000 (05:09 +0200)]
Avoid trying to read the gc name in the AOT runtime from older AOT images. Fixes #647918.
Rodrigo Kumpera [Tue, 19 Oct 2010 18:38:19 +0000 (16:38 -0200)]
Temporarily disable iface check o generic instances
Zoltan Varga [Tue, 19 Oct 2010 13:06:39 +0000 (15:06 +0200)]
Remove the duplicate assembly name->string code from two places, uses mono_stringify_assembly_name ().
Rodrigo Kumpera [Tue, 19 Oct 2010 13:46:43 +0000 (11:46 -0200)]
Add regression test for #640780
Rodrigo Kumpera [Tue, 19 Oct 2010 13:36:39 +0000 (11:36 -0200)]
Don't assign vtable slots to static iface methods.
* reflection.c (ensure_runtime_vtable): When recalculating
method slots, ignore static methods.
Fixes #640780
Sebastien Pouliot [Mon, 18 Oct 2010 20:37:52 +0000 (16:37 -0400)]
Remove dead code from BigInteger since it confuse some people
* corlib/Mono.Math/BigInteger.cs:
* Mono.Security/Mono.Math/BigInteger.cs:
Remove Montgomery internal inner class since it's buggy, has not
been used for years and confuse some people (seeing ghosts of
CVE-2007-5197)
Zoltan Varga [Tue, 19 Oct 2010 12:55:20 +0000 (14:55 +0200)]
Avoid crashes in the assembly name->string code if aname->name is NULL.
Tak [Tue, 19 Oct 2010 09:06:10 +0000 (11:06 +0200)]
Don't disconnect an unconnected socket. Fixes #606809.
* Mono.Debugger.Soft/VirtualMachineManager.cs: Don't disconnect an unconnected socket. Fixes #606809.
This patch is licensed MIT/X11.
Atsushi Eno [Tue, 19 Oct 2010 12:38:38 +0000 (21:38 +0900)]
Add complicated dictionary state and support dictionary in XamlObjectReader.
Zoltan Varga [Tue, 19 Oct 2010 12:34:32 +0000 (14:34 +0200)]
[Fix] Turn off exception callback filtering on WoW64.
* mini/exceptions-x86.c: Turn off exception callback filtering on WoW64. This allows managed exceptions to actually work when using 32bit mono on 64bit Windows.
License: MIT/X11
Tak [Tue, 19 Oct 2010 09:58:36 +0000 (11:58 +0200)]
[Fix] Ensure that exceptions are propagated when embedding
* metadata/object.c:
* mini/mini.c:
Ensure that exceptions get propagated back to the caller
when mono is being embedded.
License: MIT/X11
Atsushi Eno [Tue, 19 Oct 2010 11:08:51 +0000 (20:08 +0900)]
Make XamlType.GetMember() and XamlType.GetAllMembers() consistent. Return Items for Dictionary.
Atsushi Eno [Tue, 19 Oct 2010 09:39:02 +0000 (18:39 +0900)]
Add Dictionary reader test and made some fixes towards it.
Marek Safar [Tue, 19 Oct 2010 08:29:45 +0000 (09:29 +0100)]
Restore altered arguments when overload resolution ends up in dynamic dispatch