mono.git
12 years agoAdd symbol file testing to compiler tester
Marek Safar [Wed, 1 Feb 2012 11:24:24 +0000 (11:24 +0000)]
Add symbol file testing to compiler tester

12 years agoFix single test
Marek Safar [Wed, 1 Feb 2012 11:23:04 +0000 (11:23 +0000)]
Fix single test

12 years agoRemove NET_2_0 conditional
Marek Safar [Tue, 31 Jan 2012 15:20:25 +0000 (15:20 +0000)]
Remove NET_2_0 conditional

12 years agoRemove some unwanted explicit casts
Marek Safar [Tue, 31 Jan 2012 15:08:33 +0000 (15:08 +0000)]
Remove some unwanted explicit casts

12 years agoRemove writing of namespace usings into symbol file. It's useless without project...
Marek Safar [Tue, 31 Jan 2012 14:28:36 +0000 (14:28 +0000)]
Remove writing of namespace usings into symbol file. It's useless without project file.

12 years agoEnable some previously disabled optimizations when using sdb.
Zoltan Varga [Wed, 1 Feb 2012 10:48:36 +0000 (11:48 +0100)]
Enable some previously disabled optimizations when using sdb.

12 years ago[monodoc] Implement range Lucene.NET search
Jeremie Laval [Tue, 31 Jan 2012 18:25:51 +0000 (19:25 +0100)]
[monodoc] Implement range Lucene.NET search

12 years agoRevert "[Profiler] Add a new profiler module to track GCHandle allocations"
Alan McGovern [Tue, 31 Jan 2012 17:39:37 +0000 (17:39 +0000)]
Revert "[Profiler] Add a new profiler module to track GCHandle allocations"

This reverts commit a5e3e50512b24064d7df3bdc4b9c4c1afe574580.

12 years agoRevert "FIX a compilation linker error with static mono-sgen and dynamic libmono"
Alan McGovern [Tue, 31 Jan 2012 17:39:22 +0000 (17:39 +0000)]
Revert "FIX a compilation linker error with static mono-sgen and dynamic libmono"

This reverts commit abbdf9b70a1fecdfe2ac573bd50fbc14ae346074.

12 years agoRemove an extra comma from 'Xamarin Inc'.
Alan McGovern [Tue, 31 Jan 2012 17:37:55 +0000 (17:37 +0000)]
Remove an extra comma from 'Xamarin Inc'.

12 years agoFIX a compilation linker error with static mono-sgen and dynamic libmono
Alan McGovern [Tue, 10 Jan 2012 14:13:26 +0000 (14:13 +0000)]
FIX a compilation linker error with static mono-sgen and dynamic libmono
with the ghcnalde profiler

12 years ago[Profiler] Add a new profiler module to track GCHandle allocations
Alan McGovern [Thu, 31 Mar 2011 15:24:36 +0000 (16:24 +0100)]
[Profiler] Add a new profiler module to track GCHandle allocations

This profiler was initially developed for Moonlight to diagnose and
fix issues where objects were never being GC'ed due to gchandles
being attached to objects and not freed. This profiler is just as
useful for other frameworks which rely on GCHandles to provide memory
management facilities such as gtk-sharp.

The aim of this profiler is to allow you to easily see how many instances
of each class are being kept alive by GCHandles and also the stacktrace
from where the GCHandle was allocated.

The profiler also tracks when instance delegates are passed to/from native
code as this can be a severe performance hit if it is done frequently.

Conflicts:

mono/profiler/Makefile.am

12 years agoMerge branch 'master' of ssh://github.com/mono/mono
Neale Ferguson [Tue, 31 Jan 2012 16:38:53 +0000 (11:38 -0500)]
Merge branch 'master' of ssh://github.com/mono/mono

12 years agoAdd TLS_GET support for s390x
Neale Ferguson [Tue, 31 Jan 2012 16:38:11 +0000 (11:38 -0500)]
Add TLS_GET support for s390x

12 years ago[monodoc] Also fill in fulltitle info for enum and delegates
Jeremie Laval [Tue, 31 Jan 2012 13:46:50 +0000 (14:46 +0100)]
[monodoc] Also fill in fulltitle info for enum and delegates

12 years agoFix type inference of recursive explicit type parameters. Fixes #3142
Marek Safar [Tue, 31 Jan 2012 10:26:14 +0000 (10:26 +0000)]
Fix type inference of recursive explicit type parameters. Fixes #3142

12 years agoNew test
Marek Safar [Tue, 31 Jan 2012 10:19:03 +0000 (10:19 +0000)]
New test

12 years agoRemove obsolete code
Marek Safar [Mon, 30 Jan 2012 17:24:57 +0000 (17:24 +0000)]
Remove obsolete code

12 years agoAdd test for reusing compiler settings
Marek Safar [Mon, 30 Jan 2012 17:17:10 +0000 (17:17 +0000)]
Add test for reusing compiler settings

12 years agoUpdate compiler documentation.
Marek Safar [Mon, 30 Jan 2012 16:19:52 +0000 (16:19 +0000)]
Update compiler documentation.

12 years agoFloating point numbers needs to be encoded using the invariant culture. Fix bug ...
Sebastien Pouliot [Mon, 30 Jan 2012 23:35:26 +0000 (18:35 -0500)]
Floating point numbers needs to be encoded using the invariant culture. Fix bug #3137

12 years ago[monodoc] Process MonoTouch's [Since] attribute and shows it in Requirements section
Jeremie Laval [Mon, 30 Jan 2012 22:15:46 +0000 (23:15 +0100)]
[monodoc] Process MonoTouch's [Since] attribute and shows it in Requirements section

12 years agoFix the encoding of strings in the sdb wire protocol.
Zoltan Varga [Mon, 30 Jan 2012 17:31:04 +0000 (18:31 +0100)]
Fix the encoding of strings in the sdb wire protocol.

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.