mono.git
12 years ago[Mono.Debugger.Soft] Oops, fixed build.
Jeffrey Stedfast [Mon, 30 Jan 2012 17:29:49 +0000 (12:29 -0500)]
[Mono.Debugger.Soft] Oops, fixed build.

12 years ago[Mono.Debugger.Soft] Implement IsGenericType/Method for protocol < 2.12
Jeffrey Stedfast [Mon, 30 Jan 2012 16:59:43 +0000 (11:59 -0500)]
[Mono.Debugger.Soft] Implement IsGenericType/Method for protocol < 2.12

12 years agoDocument new setting
Miguel de Icaza [Mon, 30 Jan 2012 16:37:55 +0000 (11:37 -0500)]
Document new setting

12 years agoSort the options
Miguel de Icaza [Mon, 30 Jan 2012 16:36:21 +0000 (11:36 -0500)]
Sort the options

12 years ago[monodoc, mdoc] Recognize and process a documentation 'Related Content' section
Jeremie Laval [Mon, 30 Jan 2012 16:33:56 +0000 (17:33 +0100)]
[monodoc, mdoc] Recognize and process a documentation 'Related Content' section

12 years ago[monodoc] Add value of MTouch/MMac Export attribute to search index
Jeremie Laval [Mon, 30 Jan 2012 14:14:42 +0000 (15:14 +0100)]
[monodoc] Add value of MTouch/MMac Export attribute to search index

12 years ago[mdoc] change index subparameters and explain them
Jeremie Laval [Mon, 30 Jan 2012 09:35:29 +0000 (10:35 +0100)]
[mdoc] change index subparameters and explain them

12 years agoAOT: add support for calling pinvoke methods directly, instead of going through dlsym.
Rolf Bjarne Kvinge [Fri, 27 Jan 2012 13:52:46 +0000 (14:52 +0100)]
AOT: add support for calling pinvoke methods directly, instead of going through dlsym.

12 years agoMerge pull request #222 from pruiz/httpreq-validation-fix
Marek Habersack [Mon, 30 Jan 2012 08:46:41 +0000 (00:46 -0800)]
Merge pull request #222 from pruiz/httpreq-validation-fix

Ensure only first call to HttpRequest.QueryString should trigger validation exception. Just the same behaviour of HttpRequest.Form && HttpRequest.Cookies.

12 years agoEnsure only first call to HttpRequest.QueryString should trigger validation exception...
Pablo Ruiz Garcia [Sun, 29 Jan 2012 23:35:15 +0000 (00:35 +0100)]
Ensure only first call to HttpRequest.QueryString should trigger validation exception. Just the same behaviour of HttpRequest.Form && HttpRequest.Cookies.

12 years agoGuard against lazy initialization of idepth.
Rodrigo Kumpera [Sun, 29 Jan 2012 14:59:33 +0000 (12:59 -0200)]
Guard against lazy initialization of idepth.

12 years agoImplement IsGenericType etc. in TypeMirror/MethodMirror.
Zoltan Varga [Sun, 29 Jan 2012 10:16:03 +0000 (11:16 +0100)]
Implement IsGenericType etc. in  TypeMirror/MethodMirror.

12 years agoFix gshared support in sdb.
Zoltan Varga [Sun, 29 Jan 2012 09:36:41 +0000 (10:36 +0100)]
Fix gshared support in sdb.

12 years agoLast round of fullaot fixes for lazy init'ng supertypes.
Rodrigo Kumpera [Sun, 29 Jan 2012 01:20:24 +0000 (01:20 +0000)]
Last round of fullaot fixes for lazy init'ng supertypes.

12 years agoDisable some TLS fallback code on ppc as it does not work. Fixes #2717.
Zoltan Varga [Sat, 28 Jan 2012 16:59:51 +0000 (17:59 +0100)]
Disable some TLS fallback code on ppc as it does not work. Fixes #2717.

12 years agoAdd precise location info for this/rgctx in gshared methods, to avoid crashes in...
Zoltan Varga [Sat, 28 Jan 2012 09:29:08 +0000 (10:29 +0100)]
Add precise location info for this/rgctx in gshared methods, to avoid crashes in get_generic_info_from_stack_frame (). Fixes #2862.

12 years agoFix linux builds.
Rodrigo Kumpera [Sat, 28 Jan 2012 02:33:36 +0000 (02:33 +0000)]
Fix linux builds.

12 years agoMove clear_remsets to ssb file. Cleanup remset major initialization.
Rodrigo Kumpera [Sat, 28 Jan 2012 01:03:57 +0000 (23:03 -0200)]
Move clear_remsets to ssb file. Cleanup remset major initialization.

12 years agoMove the bulk of mono_sgen_add_to_global_remset to separate files.
Rodrigo Kumpera [Sat, 28 Jan 2012 00:33:47 +0000 (22:33 -0200)]
Move the bulk of mono_sgen_add_to_global_remset to separate files.

12 years agoMark some cardtable functions as inline.
Rodrigo Kumpera [Sat, 28 Jan 2012 00:24:43 +0000 (22:24 -0200)]
Mark some cardtable functions as inline.

12 years agoMove the global remset location cache to its own file.
Rodrigo Kumpera [Fri, 27 Jan 2012 23:03:19 +0000 (21:03 -0200)]
Move the global remset location cache to its own file.

12 years agoMove ssb thread cleanup to its file.
Rodrigo Kumpera [Fri, 27 Jan 2012 22:32:54 +0000 (20:32 -0200)]
Move ssb thread cleanup to its file.

12 years agoMove dummy_use to a header and give it a sucky MSVC implementation.
Rodrigo Kumpera [Fri, 27 Jan 2012 21:10:16 +0000 (19:10 -0200)]
Move dummy_use to a header and give it a sucky MSVC implementation.

12 years agoMove the bulk of all custom write barriers to each implementation (card table, seq...
Rodrigo Kumpera [Fri, 27 Jan 2012 16:26:31 +0000 (14:26 -0200)]
Move the bulk of all custom write barriers to each implementation (card table, seq store buffers) file.

12 years agoAdd new test
Marek Safar [Fri, 27 Jan 2012 15:06:00 +0000 (15:06 +0000)]
Add new test

12 years agoRemove unit index from Location to allow compilation from text buffer
Marek Safar [Fri, 27 Jan 2012 14:38:13 +0000 (14:38 +0000)]
Remove unit index from Location to allow compilation from text buffer

12 years agoMove all remaining compiler settings into Settings class
Marek Safar [Fri, 27 Jan 2012 09:08:43 +0000 (09:08 +0000)]
Move all remaining compiler settings into Settings class

12 years agoFix infinite loop in TestDriver.cs when using the -v option.
Zoltan Varga [Fri, 27 Jan 2012 14:54:30 +0000 (15:54 +0100)]
Fix infinite loop in TestDriver.cs when using the -v option.

12 years agoRevert ".NET 4.5 targets should use dmcs"
Marek Habersack [Fri, 27 Jan 2012 14:25:53 +0000 (15:25 +0100)]
Revert ".NET 4.5 targets should use dmcs"

This reverts commit d259c15ad81c521bf94e4b9c86f4398118903883.

The fix doesn't work

12 years agoFix typo
Miguel de Icaza [Fri, 27 Jan 2012 04:23:11 +0000 (23:23 -0500)]
Fix typo

12 years agoFix the debug-parser target
Miguel de Icaza [Fri, 27 Jan 2012 02:03:44 +0000 (21:03 -0500)]
Fix the debug-parser target

12 years agoUpdate the compiler docs
Miguel de Icaza [Fri, 27 Jan 2012 02:02:03 +0000 (21:02 -0500)]
Update the compiler docs

12 years agoFix aot miscompilation due to the lazy supertypes initialization.
Rodrigo Kumpera [Thu, 26 Jan 2012 19:25:47 +0000 (17:25 -0200)]
Fix aot miscompilation due to the lazy supertypes initialization.

12 years agoGreat new file sgen-ssb.c to get all sequential store barrier awesomeness.
Rodrigo Kumpera [Wed, 25 Jan 2012 22:24:06 +0000 (20:24 -0200)]
Great new file sgen-ssb.c to get all sequential store barrier awesomeness.

12 years agoImplement clone wbarrier for cardtable.
Rodrigo Kumpera [Wed, 25 Jan 2012 21:55:47 +0000 (19:55 -0200)]
Implement clone wbarrier for cardtable.

12 years agoFix support for synchronized methods + ldftn. Fixes #3088.
Zoltan Varga [Thu, 26 Jan 2012 19:13:48 +0000 (20:13 +0100)]
Fix support for synchronized methods + ldftn. Fixes #3088.

12 years ago.NET 4.5 targets should use dmcs
Marek Habersack [Thu, 26 Jan 2012 15:24:25 +0000 (16:24 +0100)]
.NET 4.5 targets should use dmcs

12 years agoUse correct time zone offset for invariant DateTimeOffset formats
Marek Safar [Thu, 26 Jan 2012 12:10:55 +0000 (07:10 -0500)]
Use correct time zone offset for invariant DateTimeOffset formats

12 years agoFix time zone dependant test
Marek Safar [Thu, 26 Jan 2012 10:19:38 +0000 (05:19 -0500)]
Fix time zone dependant test

12 years agoUpdate to the latest IKVM.Reflection
Marek Safar [Thu, 26 Jan 2012 10:00:33 +0000 (05:00 -0500)]
Update to the latest IKVM.Reflection

12 years agoDon't try to emit closed containers
Marek Safar [Wed, 25 Jan 2012 18:44:17 +0000 (18:44 +0000)]
Don't try to emit closed containers

12 years agoUse same members for partial classes as normal classes or MD cannot see them
Marek Safar [Wed, 25 Jan 2012 18:22:57 +0000 (18:22 +0000)]
Use same members for partial classes as normal classes or MD cannot see them

12 years agoUpdate to the latest ikvm reflection
Marek Safar [Wed, 25 Jan 2012 11:02:38 +0000 (11:02 +0000)]
Update to the latest ikvm reflection

12 years agoOptimize extension methods lookup
Marek Safar [Wed, 25 Jan 2012 10:38:23 +0000 (10:38 +0000)]
Optimize extension methods lookup

12 years agoCache extension methods lookup failures
Marek Safar [Tue, 24 Jan 2012 18:45:21 +0000 (18:45 +0000)]
Cache extension methods lookup failures

12 years agoMake private fields not visible
Marek Safar [Tue, 24 Jan 2012 18:11:23 +0000 (18:11 +0000)]
Make private fields not visible

12 years agoAvoid an assert in sdb if a method doesn't have seq point info.
Zoltan Varga [Wed, 25 Jan 2012 16:49:35 +0000 (17:49 +0100)]
Avoid an assert in sdb if a method doesn't have seq point info.

12 years agoFix asserts in add_var () when sdb encounters a dead variable because of an aot image...
Zoltan Varga [Wed, 25 Jan 2012 16:41:41 +0000 (17:41 +0100)]
Fix asserts in add_var () when sdb encounters a dead variable because of an aot image compiled without 'soft-debug'. Fixes #3043.

12 years agoFix consumers of supertypes information to account for lazyness.
Rodrigo Kumpera [Wed, 25 Jan 2012 16:11:46 +0000 (14:11 -0200)]
Fix consumers of supertypes information to account for lazyness.

* class-internals.h (mono_class_has_parent): Convert this macro into
an inline function that guards against non initialized supertypes info.

Fix random breakage all over the place.

12 years agoFix the returning of cattr field information in sdb.
Zoltan Varga [Wed, 25 Jan 2012 01:18:19 +0000 (02:18 +0100)]
Fix the returning of cattr field information in sdb.

12 years agoInit the unwind state struct so callers can rely on its content on failure.
Rodrigo Kumpera [Tue, 24 Jan 2012 18:12:09 +0000 (16:12 -0200)]
Init the unwind state struct so callers can rely on its content on failure.

12 years agoEnable fast tls on amd64, so sgen works.
Rodrigo Kumpera [Tue, 24 Jan 2012 16:37:00 +0000 (14:37 -0200)]
Enable fast tls on amd64, so sgen works.

12 years agoRename test_sgen make target to test-sgen.
Zoltan Varga [Tue, 24 Jan 2012 16:36:34 +0000 (17:36 +0100)]
Rename test_sgen make target to test-sgen.

12 years agoDisable identifiers interning for full ast mode
Marek Safar [Tue, 24 Jan 2012 15:13:01 +0000 (15:13 +0000)]
Disable identifiers interning for full ast mode

12 years agoRemove some static fields
Marek Safar [Tue, 24 Jan 2012 14:41:52 +0000 (14:41 +0000)]
Remove some static fields

12 years agoEmit MethodAttributes.HideBySig for static constructors
Marek Safar [Tue, 24 Jan 2012 13:42:58 +0000 (13:42 +0000)]
Emit MethodAttributes.HideBySig for static constructors

12 years agoFix the build.
Zoltan Varga [Tue, 24 Jan 2012 14:58:31 +0000 (15:58 +0100)]
Fix the build.

12 years agoKeep order of parsed members (required by MD) to be more compatible with csc
Marek Safar [Tue, 24 Jan 2012 13:26:19 +0000 (13:26 +0000)]
Keep order of parsed members (required by MD) to be more compatible with csc

12 years agoMerge pull request #220 from metanest/includeproblem_2012Jan_spike
Zoltan Varga [Tue, 24 Jan 2012 09:28:34 +0000 (01:28 -0800)]
Merge pull request #220 from metanest/includeproblem_2012Jan_spike

fix including basesystem's gc.h problem

12 years agorename LIBGC_INCLUDES to LIBGC_CPPFLAGS
KISHIMOTO, Makoto [Tue, 24 Jan 2012 08:51:05 +0000 (17:51 +0900)]
rename LIBGC_INCLUDES to LIBGC_CPPFLAGS

12 years agoEnable support for OP_MEMORY_BARRIER on llvm+arm, newer llvm versions support it.
Zoltan Varga [Tue, 24 Jan 2012 06:14:31 +0000 (07:14 +0100)]
Enable support for OP_MEMORY_BARRIER on llvm+arm, newer llvm versions support it.

12 years agoAdd a nunit-console4 script. Fixes #2156.
Zoltan Varga [Tue, 24 Jan 2012 05:48:23 +0000 (06:48 +0100)]
Add a nunit-console4 script. Fixes #2156.

12 years agofix including basesystem's gc.h problem
KISHIMOTO, Makoto [Tue, 24 Jan 2012 03:05:20 +0000 (12:05 +0900)]
fix including basesystem's gc.h problem

12 years agoAllow assemblies without AOT images in full-aot mode if they don't have any methods.
Zoltan Varga [Tue, 24 Jan 2012 02:05:50 +0000 (03:05 +0100)]
Allow assemblies without AOT images in full-aot mode if they don't have any methods.

12 years agoA regression test for bxc #795.
Rodrigo Kumpera [Tue, 24 Jan 2012 00:50:47 +0000 (22:50 -0200)]
A regression test for bxc #795.

12 years agoBe lazy'er when setting up supertype information. Fixes bxc #795
Rodrigo Kumpera [Tue, 24 Jan 2012 00:40:29 +0000 (22:40 -0200)]
Be lazy'er when setting up supertype information. Fixes bxc #795

* class.c (mono_class_setup_parent): We can't setup supertypes here
since we might be initializing our parent as well, which will cause
the current type to have broken values.

Since we're lazier, we need to check for it in more places.

Fixes bxc #795.

12 years agoLazily nit mono_class_setup_supertypes correctly.
Rodrigo Kumpera [Tue, 24 Jan 2012 00:31:23 +0000 (22:31 -0200)]
Lazily nit mono_class_setup_supertypes correctly.

12 years agoImprove test.
Rodrigo Kumpera [Mon, 23 Jan 2012 23:08:24 +0000 (21:08 -0200)]
Improve test.

12 years ago[mdoc] Generate docs for nested `protected` types.
Jonathan Pryor [Mon, 23 Jan 2012 22:40:55 +0000 (17:40 -0500)]
[mdoc] Generate docs for nested `protected` types.

Nested `protected` types are accessible from subclasses, and thus
should be documented just as `public` nested types are.

12 years ago[mdoc] Fix `make run-tests`
Jonathan Pryor [Mon, 23 Jan 2012 22:17:56 +0000 (17:17 -0500)]
[mdoc] Fix `make run-tests`

The `all` make target no longer creates ./mdoc.exe (!), so create
./mdoc.exe so that the test targets can run $(PROGRAM) as expected.

12 years agoUpdated API docs
Miguel de Icaza [Mon, 23 Jan 2012 20:52:19 +0000 (15:52 -0500)]
Updated API docs

12 years agoEnable fast tls on LMF for OSX.
Rodrigo Kumpera [Mon, 23 Jan 2012 18:12:11 +0000 (16:12 -0200)]
Enable fast tls on LMF for OSX.

12 years agoFinish fast tls support on OSX.
Rodrigo Kumpera [Mon, 23 Jan 2012 18:04:35 +0000 (16:04 -0200)]
Finish fast tls support on OSX.

* mini-x86.c (mono_arch_emit_prolog): Use proper functions to
emit tls access.

Add mono_x86_emit_tls_set to emit tls stores.

12 years agoRename mono_arch_setup_jit_tls_data to mono_arch_finish_init.
Rodrigo Kumpera [Mon, 23 Jan 2012 17:13:33 +0000 (15:13 -0200)]
Rename mono_arch_setup_jit_tls_data to mono_arch_finish_init.

12 years agoCall mono_arch_setup_jit_tls_data during mini_init after metadata.
Rodrigo Kumpera [Mon, 23 Jan 2012 15:10:19 +0000 (13:10 -0200)]
Call mono_arch_setup_jit_tls_data during mini_init after metadata.

* mini.c (mini_init): Explicitly call mono_arch_setup_jit_tls_data
to initialize tls offsets. This used to be called on a per-thread
basis but no arch every did anything but init offsets.

We do it after metadata is initialized so we can catch dynamic
offset for the appdomain key.

12 years agoFix another stack alignment issue under osx-x86.
Rodrigo Kumpera [Mon, 23 Jan 2012 15:07:42 +0000 (13:07 -0200)]
Fix another stack alignment issue under osx-x86.

12 years agoIf we call mono_pmip from a detached thread, try looking up in the root domain instea...
Rodrigo Kumpera [Mon, 23 Jan 2012 15:04:15 +0000 (13:04 -0200)]
If we call mono_pmip from a detached thread, try looking up in the root domain instead of crashing.

12 years agoFix darwin specific code to support fasttls on the lmf var.
Rodrigo Kumpera [Mon, 23 Jan 2012 14:50:24 +0000 (12:50 -0200)]
Fix darwin specific code to support fasttls on the lmf var.

* mini-darwin.c (mono_thread_state_init_from_handle): If fast
tls is enabled for the lmf var, we need to fetch it in the
same way as jit_tls and appdomain.

12 years agoUse MONO_FAST_TLS_ADDR instead of explicitly taking the address of mono_lmf.
Rodrigo Kumpera [Thu, 19 Jan 2012 21:35:42 +0000 (19:35 -0200)]
Use MONO_FAST_TLS_ADDR instead of explicitly taking the address of mono_lmf.

12 years agoAdd MONO_FAST_TLS_ADDR so we can get the address of a fast tls var.
Rodrigo Kumpera [Thu, 19 Jan 2012 21:34:30 +0000 (19:34 -0200)]
Add MONO_FAST_TLS_ADDR so we can get the address of a fast tls var.

12 years agoAdd mono_mach_get_tls_address_from_thread for arm/x86/amd64.
Rodrigo Kumpera [Thu, 19 Jan 2012 21:33:44 +0000 (19:33 -0200)]
Add mono_mach_get_tls_address_from_thread for arm/x86/amd64.

12 years agoBetter assembly dump experience on OSX.
Rodrigo Kumpera [Thu, 19 Jan 2012 21:28:58 +0000 (19:28 -0200)]
Better assembly dump experience on OSX.

12 years agoDisable debugging parser on the default compiler build
Miguel de Icaza [Mon, 23 Jan 2012 00:25:19 +0000 (19:25 -0500)]
Disable debugging parser on the default compiler build

12 years agomcs/parser: make it so that an incomplete statement without a semicolon
Miguel de Icaza [Mon, 23 Jan 2012 00:19:39 +0000 (19:19 -0500)]
mcs/parser: make it so that an incomplete statement without a semicolon
continue parsing as if there was a brace as the next token in the stream.

This allows the following sample to report only the missing semicolon
as error 1525:

using System;
class Program
{
   public static void Main ()
   {
       TestMethod (delegate (object sender, EventArgs args) {

       })
   }
}

Instead of reporting both 1525 and later on a second 1525 for the
end-of-file token

12 years agomcs/error recovery: handle errors caused by closing braces after a statement expressi...
Miguel de Icaza [Mon, 23 Jan 2012 00:02:57 +0000 (19:02 -0500)]
mcs/error recovery: handle errors caused by closing braces after a statement expression manually.

This allows the statement to be added after the error has been reported, this helps
MonoDevelop code completion.

12 years agoAdd a test for #2775.
Zoltan Varga [Sun, 22 Jan 2012 20:43:15 +0000 (21:43 +0100)]
Add a test for #2775.

12 years agoFix the setting of sp in mono_monoctx_to_sigctx () on arm. Fixes #2775.
Zoltan Varga [Sun, 22 Jan 2012 20:42:42 +0000 (21:42 +0100)]
Fix the setting of sp in mono_monoctx_to_sigctx () on arm. Fixes #2775.

12 years agoFix the build.
Zoltan Varga [Sun, 22 Jan 2012 11:00:43 +0000 (12:00 +0100)]
Fix the build.

12 years agoImplement GetFolderPath(Environment.SpecialFolder.UserProfile) on unix. Fixes #2873.
Zoltan Varga [Sun, 22 Jan 2012 09:37:49 +0000 (10:37 +0100)]
Implement GetFolderPath(Environment.SpecialFolder.UserProfile) on unix. Fixes #2873.

12 years agoMerge pull request #219 from dhasenan/master
Atsushi Eno [Sun, 22 Jan 2012 04:44:37 +0000 (20:44 -0800)]
Merge pull request #219 from dhasenan/master

Fix SOAP binding configuration for WCF services

12 years agoFix SOAP configuration error
Christopher Wright [Sat, 21 Jan 2012 22:33:45 +0000 (22:33 +0000)]
Fix SOAP configuration error

Was getting a configuration error saying that the type of the default
value for these two configuration options does not match the type of the
configuration options. Fixed by changing the literals to be longs
explicitly.

12 years agoFix reading of freed memory in GetVolumeInformation () on osx. Fixes #1885.
Zoltan Varga [Sat, 21 Jan 2012 02:05:52 +0000 (03:05 +0100)]
Fix reading of freed memory in GetVolumeInformation () on osx. Fixes #1885.

12 years agoMake the sorting done by MSCompatUnicodeTable stable. Fixes #1358.
Zoltan Varga [Sat, 21 Jan 2012 01:22:41 +0000 (02:22 +0100)]
Make the sorting done by MSCompatUnicodeTable stable. Fixes #1358.

12 years agoFix an out-of-bounds write in the llvm backend initialization code.
Zoltan Varga [Fri, 20 Jan 2012 17:05:19 +0000 (18:05 +0100)]
Fix an out-of-bounds write in the llvm backend initialization code.

12 years agoImplements more System.Net.Http.Headers
Marek Safar [Fri, 20 Jan 2012 13:33:32 +0000 (13:33 +0000)]
Implements more System.Net.Http.Headers

12 years agoRun check for unused fields only when compilation succeeded
Marek Safar [Fri, 20 Jan 2012 13:30:30 +0000 (13:30 +0000)]
Run check for unused fields only when compilation succeeded

12 years agoImplement DateTimeOffset quoted values parsing
Marek Safar [Fri, 20 Jan 2012 12:25:37 +0000 (12:25 +0000)]
Implement DateTimeOffset quoted values parsing

12 years agoInvalidate the frame info computed in ss_start (), since it becomes invalid after...
Zoltan Varga [Fri, 20 Jan 2012 11:32:21 +0000 (12:32 +0100)]
Invalidate the frame info computed in ss_start (), since it becomes invalid after we continue.

12 years agoChange to ensure that correct BufferHeight and BufferWidth are returned after termina...
Kevin Houlihan [Sat, 17 Sep 2011 14:46:28 +0000 (15:46 +0100)]
Change to ensure that correct BufferHeight and BufferWidth are returned after terminal resize.

Console.BufferHeight and Console.BufferWidth were returning incorrect values after a terminal window resize on Linux (bug 874). I added CheckWindowDimensions calls to the getters of these properties to ensure that the values are up to date.

12 years agoFix Type.GetType () when an assembly resolver is used without a type resolver. Fixes...
Zoltan Varga [Fri, 20 Jan 2012 05:32:15 +0000 (06:32 +0100)]
Fix Type.GetType () when an assembly resolver is used without a type resolver. Fixes #644.