Marek Safar [Tue, 14 Sep 2010 14:49:13 +0000 (15:49 +0100)]
Fixes mixed line ending.
Marek Safar [Tue, 14 Sep 2010 14:43:43 +0000 (15:43 +0100)]
Merge branch 'marek'
Marek Safar [Tue, 14 Sep 2010 14:41:17 +0000 (15:41 +0100)]
Recover wrong invalid initializer syntax.
Marek Safar [Tue, 14 Sep 2010 13:13:44 +0000 (14:13 +0100)]
Finish predefined attributes instance access to allow compile time dynamic support in repl.
Carlos Alberto Cortez [Tue, 14 Sep 2010 08:06:38 +0000 (10:06 +0200)]
In 4.0 the constructors of TypeConverter.SimplePropertyDescriptor are protected.
* TypeConverter.cs: The constructors of SimplePropertyDescriptor
are protected in 4.0.
Carlos Alberto Cortez [Tue, 14 Sep 2010 03:43:30 +0000 (05:43 +0200)]
Add a new test for TypeDescriptor.InterfaceType.
* TypeDescriptorTests.cs: New test for InterfaceType.
Carlos Alberto Cortez [Tue, 14 Sep 2010 03:34:14 +0000 (05:34 +0200)]
Implement TypeDescriptor.InterfaceType.
* TypeDescriptor.cs: Implement 4.0 InterfaceType property, which
seems to be a simple dummy and empty class in .Net, internally
used to represent all interfaces.
Carlos Alberto Cortez [Tue, 14 Sep 2010 00:21:11 +0000 (02:21 +0200)]
Remove the NET_2_0 directives from TypeDescriptor.cs
* TypeDescriptor.cs: Remove the NET_2_0 directives, as we don't
need them anymore.
Carlos Alberto Cortez [Mon, 13 Sep 2010 23:57:38 +0000 (01:57 +0200)]
Remove the NET_2_0 and ONLY_1_1 directives from TypeDescriptorTests.cs
* TypeDescriptorTests.cs: Remove the NET_2_0 and ONLY_1_1
directives, as we don't need them anymore.
Carlos Alberto Cortez [Mon, 13 Sep 2010 18:08:00 +0000 (20:08 +0200)]
Include TypeDescriptionProviderTest.cs in our build.
* System_test.dll.sources: Include
TypeDescriptionProviderTest.cs in our build.
Carlos Alberto Cortez [Mon, 13 Sep 2010 18:07:03 +0000 (20:07 +0200)]
Add new TypeDescriptionProviderTest.cs test file.
* TypeDescriptionProviderTest.cs: New test file.
Carlos Alberto Cortez [Mon, 13 Sep 2010 18:03:07 +0000 (20:03 +0200)]
Implement IsSupportedType, GetExtenderProviders and GetRuntimeType for TypeDescriptionProvider.
* TypeDescriptionProvider.cs: Implement 4.0 IsSupportedType,
GetExtenderProviders and GetRuntimeType methods.
Carlos Alberto Cortez [Mon, 13 Sep 2010 10:43:52 +0000 (12:43 +0200)]
Remove the NET_2_0 directive from TypeDescriptionProvider.cs
* TypeDescriptionProvider.cs: Remove the NET_2_0 directive.
Atsushi Eno [Tue, 14 Sep 2010 12:14:00 +0000 (21:14 +0900)]
ongoing standard endpoint configuration support work.
Jonathan Pryor [Tue, 14 Sep 2010 10:39:57 +0000 (06:39 -0400)]
Distribute DbmlSchema.xsd so that tarball builds work.
Atsushi Eno [Tue, 14 Sep 2010 07:43:56 +0000 (16:43 +0900)]
Add new properties in 4.0.
Atsushi Eno [Tue, 14 Sep 2010 07:43:26 +0000 (16:43 +0900)]
Avoid crash by missing config attributes.
Atsushi Eno [Tue, 14 Sep 2010 07:32:31 +0000 (16:32 +0900)]
Remove Console.WriteLine.
Marek Safar [Tue, 14 Sep 2010 07:28:57 +0000 (08:28 +0100)]
Initialize all core types
Rodrigo Kumpera [Tue, 14 Sep 2010 00:44:53 +0000 (21:44 -0300)]
Add v4.0 beta to runtime versions list.
Rodrigo Kumpera [Mon, 13 Sep 2010 23:56:07 +0000 (20:56 -0300)]
Fix fallthru of EH block check.
* verify.c (mono_method_verify): Only skip dead code
after checking for fallthru.
* unverifiable_fallout_of_finally_block.il: Regression
test for fallthru on dead code.
Fixes #597072
Zoltan Varga [Tue, 14 Sep 2010 00:04:37 +0000 (02:04 +0200)]
Add casts to the macros on netbsd so the caller doesn't have to reference ucontext_t which is not available on some platforms like android.
Geoff Norton [Mon, 13 Sep 2010 22:42:27 +0000 (18:42 -0400)]
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.
Sebastien Pouliot [Mon, 13 Sep 2010 21:38:42 +0000 (17:38 -0400)]
Fix URi tests (and class) to be omcpatible with both 2.0 and 4.0 (and SL4)
* System/Uri.cs: Fix some "bugs" that are not part of FX4 anymore.
Change how Query/Fragment are merged to match FX4 (while keeping it
compatible with buggy FX2 under the NET_2_0 profile)
* Test/System/UriTest.cs: Adjust test cases to work with 4.0. Mark with
NotDotNet two test cases that are Mono/Unix-specific
* Test/System/UriTest2.cs: Add new test cases where a relative Uri is
merged with an absolute Uri (some changes in SL4/FX4 wrt FX2)
* Test/System/UriTest3.cs: Adjust for bugs fixed after FX 2.0.
Zoltan Varga [Mon, 13 Sep 2010 21:21:21 +0000 (23:21 +0200)]
Bump minor version to 2 to be compatible with the runtime.
Marek Safar [Mon, 13 Sep 2010 19:06:33 +0000 (20:06 +0100)]
Removed confusing catch error message.
Geoff Norton [Mon, 13 Sep 2010 18:39:41 +0000 (14:39 -0400)]
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.
Geoff Norton [Mon, 13 Sep 2010 18:38:39 +0000 (14:38 -0400)]
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.
Marek Safar [Mon, 13 Sep 2010 18:25:40 +0000 (19:25 +0100)]
Add a test for arrays with dynamic elements.
Marek Safar [Mon, 13 Sep 2010 18:02:48 +0000 (19:02 +0100)]
Implement foreach over nullable values.
Rodrigo Kumpera [Mon, 13 Sep 2010 17:51:59 +0000 (14:51 -0300)]
CompiledContext is no longer needed.
* MethodBuilder.cs (GetGenericArguments): No need to
check for compiler context. It's gone.
Jonathan Pryor [Mon, 13 Sep 2010 17:34:36 +0000 (13:34 -0400)]
[sqlmetal] Fix /code from DBML file.
sqlmetal.exe is supposed to allow generating source code from a .dbml file:
sqlmetal /code:foo.cs foo.dbml
However, this failed because the DbmlSchema.xsd file couldn't be found (so
that the DBML file could be validated).
Embed the DbmlSchema.xsd file so that the above `sqlmetal` command works.
Rodrigo Kumpera [Mon, 13 Sep 2010 17:24:45 +0000 (14:24 -0300)]
MethodBuilder should return null for generic arguments of non generic method.
* MethodBuilder.cs (GetGenericArguments): Return null if not
generic.
* MethodBuilderTest.cs: Add test for #384127.
Fixes bug #384127.
Marek Safar [Mon, 13 Sep 2010 16:52:35 +0000 (17:52 +0100)]
Keep only 1 using implementation and handle all nullable and dynamic cases there.
Marek Safar [Mon, 13 Sep 2010 08:46:59 +0000 (09:46 +0100)]
Better error reporting for missing identifiers.
Michael Hutchinson [Mon, 13 Sep 2010 15:00:26 +0000 (11:00 -0400)]
[Embedding] Make mono-dl-fallback.h public-safe
Zoltan Varga [Mon, 13 Sep 2010 13:56:40 +0000 (15:56 +0200)]
Fix a problem in mono_arch_get_argument_info () introduced by the last change.
Zoltan Varga [Mon, 13 Sep 2010 13:45:35 +0000 (15:45 +0200)]
Fix a warning.
Atsushi Eno [Mon, 13 Sep 2010 13:36:37 +0000 (22:36 +0900)]
implemented large parts of WCF standard endpoints and configuration support.
Marek Habersack [Mon, 13 Sep 2010 12:32:16 +0000 (14:32 +0200)]
[asp.net] Menu 4.0 List rendering mode JavaScript fixes
This makes the new script work correctly with IE, which has a different way of
hooking up of events and cancelling of their bubling. Previously the mouse-over
handler would be called for each and every submenu causing the leaf menus not
to appear. With this fix the handler is called only once.
Rodrigo Kumpera [Mon, 13 Sep 2010 11:28:15 +0000 (08:28 -0300)]
Fix a warning.
* glib.h: Fix propotype.
Rodrigo Kumpera [Mon, 13 Sep 2010 11:09:01 +0000 (08:09 -0300)]
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.
Geoff Norton [Sun, 12 Sep 2010 02:38:35 +0000 (22:38 -0400)]
Implement GByteArray, g_hash_table_remove_all, g_queue_foreach and some missing byteswap macros.
Miguel de Icaza [Sat, 11 Sep 2010 19:32:15 +0000 (15:32 -0400)]
Do not install sample header, add to EXTRA_DIST
Ankit Jain [Sat, 11 Sep 2010 19:17:27 +0000 (00:47 +0530)]
[xbuild] Fix ConsoleLogger's output, extra blank lines etc.
Zoltan Varga [Sat, 11 Sep 2010 19:16:05 +0000 (21:16 +0200)]
Remove -Werror from the eglib tests too.
Ankit Jain [Sat, 11 Sep 2010 18:15:20 +0000 (23:45 +0530)]
[xbuild] Reduce ConsoleLogger's unnecessary output.
ConsoleLogger was emitting target names, even if they didn't have
any useful output, which resulted in lots of "Target foo:" in the
output, with no other related msgs.
Target Foo:
Target Bar:
Target Xyz:
Emit project/target/task headers only if they result in a message,
error or warning. This results in much cleaner output.
Ankit Jain [Sat, 11 Sep 2010 18:14:36 +0000 (23:44 +0530)]
[xbuild] Log default msg for TargetSkipped if @reason is null or empty.
joncham [Sat, 11 Sep 2010 02:38:36 +0000 (22:38 -0400)]
Update mono.sln for 2010
joncham [Fri, 10 Sep 2010 21:28:29 +0000 (17:28 -0400)]
Add vcxproj files
joncham [Wed, 8 Sep 2010 00:06:01 +0000 (20:06 -0400)]
Migrate vcproj files to VS2010
unknown [Sat, 11 Sep 2010 01:58:44 +0000 (21:58 -0400)]
[windows] Update Mono.def
Gonzalo Paniagua Javier [Sat, 11 Sep 2010 00:51:13 +0000 (20:51 -0400)]
Fix the windows build
Avoid warnings in windows.
Marek Safar [Fri, 10 Sep 2010 21:43:56 +0000 (22:43 +0100)]
Always compare original block for cloned versions.
Marek Safar [Fri, 10 Sep 2010 18:45:07 +0000 (19:45 +0100)]
Tweak few error reports
Zoltan Varga [Fri, 10 Sep 2010 21:38:37 +0000 (23:38 +0200)]
Log the clearing of nursery fragments, avoid clearing small fragments twice.
Rodrigo Kumpera [Fri, 10 Sep 2010 15:59:39 +0000 (12:59 -0300)]
Rework major cardtable scan to have less active vars.
* sgen-marksweep.c (major_scan_card_table): Rework the small
object size loop to have a single induction variable.
In adition to that, add a fast initial card skip code.
Rodrigo Kumpera [Thu, 9 Sep 2010 21:01:11 +0000 (18:01 -0300)]
Look for marked cards while copying them.
* sgen-cardtable.c (sgen_card_table_get_card_data): Check
if any card is marked and return it.
* sgen-marksweep.c (major_scan_card_table): Don't waste time
scanning a block if no card was marked.
Rodrigo Kumpera [Thu, 9 Sep 2010 20:09:35 +0000 (17:09 -0300)]
Manually hoist card lookup out of scan loops.
* sgen-cardtable.c (sgen_cardtable_scan_object): Lookup
the card once and then bump over it. This saves a bunch
of stores and opens up for later improvements.
* sgen-marksweep.c (major_scan_card_table): Ditto.
* sgen-cardtable.h: Add new inline function to return the
card scan pointer of a given adddress.
Miguel de Icaza [Fri, 10 Sep 2010 21:01:48 +0000 (17:01 -0400)]
[Embedded] Add new fallback API to allow hooking up to the P/Invoke lookup system
This patch allows a developer to register a fallback for P/Invoke when
embedding Mono. Typically this is done when you statically link all of your
libraries in some embedded systems and you need to dynamically resolve symbol
names.
There is a *sample* API included (but not compiled into Mono itself) called
mono-embed.c that shows a layman use of the API. A full implementation would
mandate sorted tables, and would use a bsearch or a hashtable instead of having
linear searches.
Geoff Norton [Fri, 10 Sep 2010 20:50:13 +0000 (16:50 -0400)]
Forward port this change for MonoVS
Geoff Norton [Tue, 22 Dec 2009 19:16:36 +0000 (19:16 +0000)]
fix typo
svn path=/branches/mono-2-6/mono/; revision=148851
Geoff Norton [Mon, 14 Dec 2009 21:57:44 +0000 (21:57 +0000)]
2009-12-14 Geoff Norton <gnorton@novell.com>
* 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
Marek Safar [Fri, 10 Sep 2010 17:25:37 +0000 (18:25 +0100)]
Add comments.
Marek Safar [Fri, 10 Sep 2010 17:25:17 +0000 (18:25 +0100)]
New test.
Marek Safar [Fri, 10 Sep 2010 17:18:20 +0000 (18:18 +0100)]
Converting the switch statement into normal statement (the block part).
Andrew Jorgensen [Fri, 10 Sep 2010 16:55:20 +0000 (10:55 -0600)]
Dist the 2.0 resource files also
Andrew Jorgensen [Fri, 10 Sep 2010 15:51:44 +0000 (09:51 -0600)]
Dist sgen-cardtable.h
Marek Safar [Fri, 10 Sep 2010 15:43:20 +0000 (16:43 +0100)]
Update to the latest dmcs
Jb Evain [Fri, 10 Sep 2010 14:18:35 +0000 (16:18 +0200)]
Add test for #636939
Jb Evain [Fri, 10 Sep 2010 14:16:47 +0000 (16:16 +0200)]
[Fix] Fix the default binder when selecting params methods.
Use full assignability check instead of type equality
when selecting methods with a params array parameter.
Fixes #636939.
Marek Habersack [Wed, 8 Sep 2010 08:29:08 +0000 (10:29 +0200)]
[asp.net] Onobtrusive JavaScript for the 4.0 Menu control List mode
Marek Habersack [Thu, 19 Aug 2010 21:20:03 +0000 (23:20 +0200)]
[asp.net] Menu 4.0 List mode rendering
Marek Habersack [Sat, 4 Sep 2010 01:15:00 +0000 (03:15 +0200)]
[asp.net] Made GetExtension static and internal, so that it can be used from code outsude Unit
Marek Habersack [Thu, 2 Sep 2010 23:46:13 +0000 (01:46 +0200)]
[asp.net] Added first test for Menu list rendering in 4.0
Marek Habersack [Thu, 2 Sep 2010 23:47:44 +0000 (01:47 +0200)]
[asp.net] Standalone runner helper method to remove WebResource.axd from HTML now uses regexps
Atsushi Eno [Fri, 10 Sep 2010 13:26:44 +0000 (22:26 +0900)]
Remove USE_DATA_CONTRACT_IMPORTER conditional compilation flag.
Atsushi Eno [Fri, 10 Sep 2010 13:12:44 +0000 (22:12 +0900)]
Flush ongoing WCF Discovery configuration work.
Rolf Bjarne Kvinge [Fri, 10 Sep 2010 09:04:10 +0000 (11:04 +0200)]
XmlFormatterDeserializer: handle ReflectionTypeLoadExceptions better
Marek Safar [Fri, 10 Sep 2010 10:36:24 +0000 (11:36 +0100)]
When doing member access left side lookup the arity value is actually the exact value.
Marek Safar [Fri, 10 Sep 2010 09:58:20 +0000 (10:58 +0100)]
Reject varianly implemented interface members.
Atsushi Eno [Fri, 10 Sep 2010 10:28:20 +0000 (19:28 +0900)]
Add missing members and implement most of it.
Atsushi Eno [Fri, 10 Sep 2010 09:49:35 +0000 (18:49 +0900)]
Cosmetic warning cleanups.
Atsushi Eno [Fri, 10 Sep 2010 09:48:14 +0000 (18:48 +0900)]
Implement discovery version converter.
Atsushi Eno [Fri, 10 Sep 2010 09:46:46 +0000 (18:46 +0900)]
Add lacking property initializer.
Atsushi Eno [Fri, 10 Sep 2010 09:44:07 +0000 (18:44 +0900)]
Remove unnecessary common types (as they are imported from internal-visible ones).
Jb Evain [Fri, 10 Sep 2010 09:40:50 +0000 (11:40 +0200)]
Add another stub for the compatibility with the SL SDK
Jb Evain [Fri, 10 Sep 2010 09:21:53 +0000 (11:21 +0200)]
Fix the moonlight build
Atsushi Eno [Fri, 10 Sep 2010 08:54:50 +0000 (17:54 +0900)]
Ongoing WCF discovery configuration implementation.
Atsushi Eno [Fri, 10 Sep 2010 08:51:30 +0000 (17:51 +0900)]
Avoid holding WebRequest. This should fix part of bug #636500.
Marek Safar [Fri, 10 Sep 2010 08:25:27 +0000 (09:25 +0100)]
Merge branch 'marek'
Marek Safar [Fri, 10 Sep 2010 08:24:24 +0000 (09:24 +0100)]
Try to speep up the GetLocation by a bit.
Carlos Alberto Cortez [Fri, 10 Sep 2010 02:53:45 +0000 (04:53 +0200)]
Add a test case for DateTimeOffsetConverter converting to InstanceDescriptor.
* DateTimeOffsetConverterTests.cs: New test for conversions to
InstanceDescriptor.
Carlos Alberto Cortez [Fri, 10 Sep 2010 02:49:24 +0000 (04:49 +0200)]
Use the DateTimeOffset .ctor that .net uses when converting it to InstanceDescriptor.
* DateTimeOffsetConverter.cs: Use the same DateTimeOffset .ctor
that .net uses when converting to a InstanceDescriptor.
Jb Evain [Fri, 10 Sep 2010 06:20:48 +0000 (08:20 +0200)]
Add FileStream.Flush(bool) to the moonlight profile
Miguel de Icaza [Fri, 10 Sep 2010 05:00:10 +0000 (01:00 -0400)]
[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.
Miguel de Icaza [Thu, 9 Sep 2010 23:46:25 +0000 (19:46 -0400)]
[Fix] Allow escape characters inside quoted text, and do not let nested quote reset the quoting state
This should fix #637680
Zoltan Varga [Thu, 9 Sep 2010 22:37:18 +0000 (00:37 +0200)]
Fix x86 trace support after the callconv changes.
Marek Safar [Thu, 9 Sep 2010 19:14:54 +0000 (20:14 +0100)]
Recover from broken single parameter
Chris Toshok [Thu, 9 Sep 2010 17:08:59 +0000 (10:08 -0700)]
move the call to mono_gc_base_init into mono_debug_init
mono_debug_init is a public embedding interface and calls into
mono_debugger_initialize, which registers a GC root. driver.c calls
mono_gc_base_init before calling mono_debug_init for this reason, but
that's not an option for embedding (as mono_gc_base_init is internal.)
since mono_gc_base_init is idempotent, just add a call to
mono_debug_init (and remove the driver.c call). Document (in sgen-gc
and sgen-gc.h) the fact that although mono_gc_base_init is idempotent,
changing LOCK_INIT to something non-idempotent will break this.